| | |
| | | } |
| | | this.ucBtnPrint1.rptParameter = "rpt_Qtrk{" + lbMxGuid.Text.Trim() |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + Gs.DevApp.ToolBox.UtilityHelper.PrintYuLiang(radOut).ToString() |
| | | + "," + txt_iCount_1.Text.Trim() |
| | | + "," + txt_psnQty_1.Text.Trim() |
| | | + "}"; |
| | | }; |
| | | |
| | | //自动计算打印量 |
| | | txt_psnQty_1.TextChanged += (s, e) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(txt_psnQty_1, txt_iCount_1, txt_kQty.Text.Trim(), radOut); |
| | | }; |
| | | |
| | | radOut.SelectedIndexChanged += (s, e) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut); |
| | | }; |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | |
| | | gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; |
| | | gridView1.ActiveFilter.Clear(); |
| | | gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; |
| | | var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); |
| | | var frm = new ShowFilter(gridView1.Columns, _filterList, this.GetType().FullName); |
| | | frm.UpdateParent += Frm_UpdateParent; |
| | | frm.ShowDialog(); |
| | | } |
| | |
| | | gcMx1.DataSource = dt; |
| | | gcMx1.ForceInitialize(); |
| | | gvMx1.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx1); |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | private void GvMx1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) |
| | | { |
| | | |
| | | if (e.FocusedRowHandle >= 0) |
| | | { |
| | | DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle); |
| | |
| | | txtWlgg.Text = row["qd004"].ToString(); |
| | | txtWlmc.Text = row["qd003"].ToString(); |
| | | txtQuantity.Text = row["qd007"].ToString();//申请总量 |
| | | txtYdy.Text = row["ydy"].ToString();//已打印总量 |
| | | txtKdy.Text = row["kdy"].ToString();//可打印总量 |
| | | txt_yQty.Text = row["ydy"].ToString();//已打印总量 |
| | | txt_kQty.Text = row["kdy"].ToString();//可打印总量 |
| | | } |
| | | else |
| | | { |
| | | lbMxGuid.Text = ""; |
| | | ucBtnPrint1.guidKey = ""; |
| | | txtWlid.Text = ""; |
| | | txtWlgg.Text = ""; |
| | | txtWlmc.Text = ""; |
| | | txtQuantity.Text = ""; |
| | | txt_yQty.Text = ""; |
| | | txt_kQty.Text = ""; |
| | | txt_psnQty_1.Text = ""; |
| | | txt_iCount_1.Text = ""; |
| | | } |
| | | } |
| | | /// <summary> |