| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx3); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx4); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | |
| | | //这是报工码 |
| | | //这是卡板码 |
| | | this.ucBtnPrint1.btnDesignClick += (s, e) => |
| | | { |
| | | ucBtnPrint1.rptParameter = "rpt_daa{}"; |
| | |
| | | { |
| | | _print98(); |
| | | }; |
| | | //这是后盖码,仅仅打印, |
| | | this.ucBtnPrint100.btnDesignClick += (s, e) => |
| | | { |
| | | ucBtnPrint100.rptParameter = "rpt_trace{}"; |
| | | }; |
| | | this.ucBtnPrint100.btnReportClick += (s, e) => |
| | | { |
| | | _print100(); |
| | | }; |
| | | txt_psnQty_1.TextChanged += Txt_psnQty_1_TextChanged; |
| | | } |
| | | |
| | | private void Txt_psnQty_1_TextChanged(object sender, EventArgs e) |
| | | { |
| | | string sum = txt_kQty.Text.Trim(); |
| | | string t1 = txt_psnQty_1.Text.Trim(); |
| | | string t2 = txt_iCount_1.Text.Trim(); |
| | | if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric2(sum)) |
| | | sum = txt_kQty.Text = "0"; |
| | | |
| | | if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric2(t1)) |
| | | t1 = txt_psnQty_1.Text = "0"; |
| | | |
| | | if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric2(t2)) |
| | | t2 = txt_iCount_1.Text = "0"; |
| | | |
| | | if (t1 == "0") |
| | | { |
| | | t2 = txt_iCount_1.Text = "0"; |
| | | return; |
| | | } |
| | | |
| | | decimal? dc = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(sum); |
| | | decimal? dc1 = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(t1); |
| | | |
| | | int dividend = int.Parse(sum); // 被除数 |
| | | int divisor = int.Parse(t1); // 除数 |
| | | |
| | | int quotient = dividend / divisor; // 整数部分 |
| | | int remainder = dividend % divisor; // 余数 |
| | | |
| | | txt_iCount_1.Text = quotient.ToString(); |
| | | radOut.Properties.Items[0].Description = "另印" + remainder.ToString(); |
| | | |
| | | } |
| | | |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx3, gvMx3); |
| | | } |
| | | JArray array4 = new JArray(); |
| | | foreach (var a in _job["rtnData"]["list4"]) |
| | | { |
| | | array4.Add(a); |
| | | } |
| | | DataTable dt4 = JsonConvert.DeserializeObject<DataTable>(array4.ToString()); |
| | | if (dt4.Rows.Count > 0) |
| | | { |
| | | gcMx4.BindingContext = new BindingContext(); |
| | | gcMx4.DataSource = dt4; |
| | | gcMx4.ForceInitialize(); |
| | | gvMx4.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx4); |
| | | } |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx4, gvMx4); |
| | | } |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | |
| | | #region 各种打印 |
| | | |
| | | /// <summary> |
| | | /// 这是卡板码 |
| | | /// </summary> |
| | | private void _print() |
| | | { |
| | | string rowGuid, rowName; |
| | |
| | | + "," + txt_psnQty_1.Text.Trim() |
| | | + "}"; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 这是追溯码 |
| | | /// </summary> |
| | | private void _print98() |
| | | { |
| | | string rowGuid, rowName; |
| | |
| | | + "}"; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 这是后盖码,仅仅打印, |
| | | /// </summary> |
| | | private void _print100() |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_daa001, gridView1); |
| | | ucBtnPrint100.guidKey = rowGuid; |
| | | if (rowGuid.Length < 36) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择你要打印的行!"); |
| | | this.ucBtnPrint100.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | |
| | | this.ucBtnPrint100.rptParameter = "rpt_trace{" |
| | | + lbGuid.Text.Trim() |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "}"; |
| | | } |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | | { |
| | | var rowhandle = gvMx2.FocusedRowHandle; |
| | |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | } |