From b437a00db77cee8b767d30486e7935b57242a236 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 04 一月 2025 22:04:22 +0800 Subject: [PATCH] 仓库细节 --- DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs | 41 ++++++++++++++++++++++++----------------- 1 files changed, 24 insertions(+), 17 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs index d272fb2..dd68677 100644 --- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs +++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs @@ -15,7 +15,7 @@ { public partial class Frm_MesQaItemsDetect01 : DevExpress.XtraEditors.XtraForm { - int _currentHandle5 =0; + int _currentHandle5 = 0; string _webServiceName = "MesQaItemsDetect01Manager/"; List<FilterEntity> _filterList = new List<FilterEntity>(); public Frm_MesQaItemsDetect01() @@ -25,7 +25,7 @@ this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; - // this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + // this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; @@ -97,7 +97,8 @@ { getModel(lbGuid.Text.Trim()); } - else { + else + { Gs.DevApp.ToolBox.MsgHelper.ShowInformation(_rtn.rtnMsg); } } @@ -179,13 +180,12 @@ _webServiceName + "EdtModel12", JsonConvert.SerializeObject(_obj)); var _rtn = UtilityHelper.ReturnToDynamic(strJson); - if (_rtn.rtnCode > 0) { - this.alertControl1.Show(this, "鎻愮ず!", _rtn.rtnMsg); getModel(lbGuid.Text.Trim()); } - else { + else + { Gs.DevApp.ToolBox.MsgHelper.ShowInformation(_rtn.rtnMsg); } txtJianYan.Text = ""; @@ -249,7 +249,7 @@ /// <param name="sender"></param> /// <param name="e"></param> /// <exception cref="NotImplementedException"></exception> - private void ToolBarMenu1_btnJianYanClick(object sender, EventArgs e) + private void ToolBarMenu1_btnJianYanClick(object sender, EventArgs e) { toolBarMenu1.guidKey = ""; string rowGuid, rowName; @@ -263,7 +263,14 @@ } if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鎻愪氦妫�楠屽悧锛�")) return; - + if (txt_fcheckResu.Text.Trim() == "涓嶅悎鏍�") + { + if (string.IsNullOrEmpty(txt_lotNo1.Text.Trim())|| string.IsNullOrEmpty(txt_fngDesc.Text.Trim())) + { + MsgHelper.Warning("鍗曟嵁涓轰笉鍚堟牸鏃讹紝璇峰~鍐欏娉ㄤ俊鎭拰涓嶈壇鎻忚堪锛�"); + return; + } + }; var _obj = new { guid = rowGuid, @@ -279,7 +286,7 @@ { if (xtraTabControl1.SelectedTabPageIndex == 1) { - // getModel(lbGuid.Text.Trim()); + // getModel(lbGuid.Text.Trim()); } else getPageList(this.pageBar1.CurrentPage); @@ -289,7 +296,7 @@ { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - + } /// <summary> @@ -442,10 +449,10 @@ /// </summary> /// <param name="curPage">绗嚑椤�</param> /// <param name="pageSize">姣忛〉鍑犳潯</param> - private void getPageList(int curPage) + private void getPageList(int curPage) { var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); - // _sbSqlWhere += " and isnull(fsubmit,0)=0"; + // _sbSqlWhere += " and isnull(fsubmit,0)=0"; PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "release_no", "asc", "", _sbSqlWhere.ToString()); string json = JsonConvert.SerializeObject(pgq); try @@ -478,9 +485,9 @@ { ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - + } - private void getModel(string strGuid) + private void getModel(string strGuid) { bool isEdit = false; if (toolBarMenu1.currentAction == "add") return; @@ -538,7 +545,7 @@ { ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - + } @@ -594,7 +601,7 @@ /// 鏍规嵁妫�楠岄」鐩鍙栨娊鏍风粨鏋� /// </summary> /// <param name="guid5"></param> - private void getList12(string guid5) + private void getList12(string guid5) { var _obj = new { @@ -614,7 +621,7 @@ { MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } - + } private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) -- Gitblit v1.9.3