| | |
| | | toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; |
| | | toolBarMenu1.btnPingZhiClick += ToolBarMenu1_btnPingZhiClick; |
| | | toolBarMenu1.btnFPingZhiClick += ToolBarMenu1_btnFPingZhiClick; |
| | | toolBarMenu1.btnWjClick += ToolBarMenu1_btnWjClick; |
| | | this.toolBarMenu1.getXmlConfig(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); |
| | |
| | | { |
| | | 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_SCTL"; |
| | | this.ucBtnPrintAll1.mxList = lst; |
| | | }; |
| | | #endregion |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 打印 |
| | | /// </summary> |
| | |
| | | _filterList = e.FilterList; |
| | | getPageList(1); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 完结 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnWjClick(object sender, EventArgs e) |
| | | { |
| | | _toolCk(199); |
| | | } |
| | | /// <summary> |
| | | /// 批准 |
| | | /// </summary> |
| | |
| | | case 5: |
| | | strMsg = "品质反审核"; |
| | | break; |
| | | case 199: |
| | | strMsg = "完结"; |
| | | break; |
| | | } |
| | | ; |
| | | toolBarMenu1.guidKey = ""; |
| | |
| | | var rowhandle = gvMx1.FocusedRowHandle; |
| | | if (rowhandle < 0) |
| | | return; |
| | | UcDictionarySelect frm = new UcDictionarySelect("异常描述", " a.s_type='QC异常描述' and a.pid<>'00000000-0000-0000-0000-000000000000'"); |
| | | UcDictionarySelect frm = new UcDictionarySelect("退料类别", " a.s_type='生产退料类别' and a.pid<>'00000000-0000-0000-0000-000000000000'"); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); |