From f788e188fdeeb74cec845cd2c5df4976f7ff1ed5 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期五, 18 四月 2025 15:57:14 +0800 Subject: [PATCH] 委外 --- DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs | 39 +++++++++++++++++++++++++++++++-------- 1 files changed, 31 insertions(+), 8 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs index a9ef7e8..400407a 100644 --- a/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs +++ b/DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs @@ -36,7 +36,7 @@ Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "chkStatus", "", (value) => { Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); - }); + }, tips); Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => { getModel(value); @@ -57,7 +57,7 @@ txt_custName.Text = txt_salesOrderId.GetSalesCusName(); txt_xsOrgName.Text = txt_salesOrderId.GetSalesOrgName(); string _xsOrgFid = txt_salesOrderId.GetSalesOrgFid(); - txt_fstockid.getSuppler(_xsOrgFid,_ucCk); + txt_fstockid.getSuppler(_xsOrgFid, _ucCk); System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(); var _obj = new PageQueryModel(1, 999999, "item_no", "asc", "", sbWhere.ToString(), _sqGuid); var json = JsonConvert.SerializeObject(_obj); @@ -106,10 +106,20 @@ } this.ucBtnPrint1.rptParameter = "rpt_Xsth{" + 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); }; } @@ -138,7 +148,7 @@ 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(); } @@ -652,12 +662,25 @@ DataRow row = gvMx1.GetDataRow(e.FocusedRowHandle); lbMxGuid.Text = row["guid"].ToString(); ucBtnPrint1.guidKey = row["guid"].ToString(); - txtWlid.Text = row["itemId"].ToString(); - txtWlgg.Text = row["itemNo"].ToString(); + txtWlid.Text = row["itemNo"].ToString(); + txtWlgg.Text = row["itemModel"].ToString(); txtWlmc.Text = row["itemName"].ToString(); txtQuantity.Text = row["sqQty"].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 = ""; } } -- Gitblit v1.9.3