| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut, txt_yuliang_1); |
| | | }; |
| | | //全部打印 |
| | | ucBtnPrintAll1.btnPrintClick += (s, e) => |
| | | { |
| | | this.ucBtnPrintAll1.rptType = ""; |
| | | this.ucBtnPrintAll1.mxList = null; |
| | | if (string.IsNullOrEmpty(lbGuid.Text.Trim())) |
| | | { |
| | | MsgHelper.ShowError("提示:打印前请先保存单据!"); |
| | | return; |
| | | } |
| | | getModel(lbGuid.Text.Trim()); |
| | | List<dynamic> lst = new List<dynamic>(); |
| | | DataTable dt = (DataTable)gcMx1.DataSource; |
| | | foreach (DataRow row in dt.Rows) |
| | | { |
| | | string guid = row["guid"].ToString(); |
| | | string psnQty = row["kdy"].ToString(); |
| | | if (string.IsNullOrEmpty(psnQty)) |
| | | { |
| | | continue; |
| | | } |
| | | if (psnQty == "0") |
| | | { |
| | | continue; |
| | | } |
| | | lst.Add(new |
| | | { |
| | | guid = guid, |
| | | kdy = psnQty, |
| | | }); |
| | | } |
| | | if (lst.Count <= 0) |
| | | { |
| | | MsgHelper.ShowError("提示:暂无可打印的物料!"); |
| | | return; |
| | | } |
| | | this.ucBtnPrintAll1.rptType = "rpt_Qtrk"; |
| | | this.ucBtnPrintAll1.mxList = lst; |
| | | }; |
| | | #region 2025-08-27 复制beg |
| | | btnCopyXls.Click += (s, e) => |
| | | { |
| | |
| | | #endregion |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 来源明细限制, |
| | | /// </summary> |
| | |
| | | _ucHzlx = dy.qt023; |
| | | _ucHz = dy.qt024; |
| | | lbGuid.Text = strGuid; |
| | | ucLookHuoZhu1.SetHzId(_ucHz); |
| | | ucLookHuoZhu1.SetHzLx(_ucHzlx); |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | | gvList.Add(gvMx2); |
| | |
| | | _ucHzlx = ""; |
| | | _ucHz = ""; |
| | | ucLookHuoZhu1.Enabled = isEdit; |
| | | |
| | | JObject _job = JObject.Parse(strJson); |
| | | JArray array = new JArray(); |
| | | foreach (var a in _job["rtnData"]["list"]) |