From 6d93b7c3b31dbc550d5957da6fe85043278b542c Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期三, 20 八月 2025 16:02:57 +0800 Subject: [PATCH] 增加成品检验报告和导出功能 --- DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs | 213 +++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 148 insertions(+), 65 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs b/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs index 3d36ed3..d9c7793 100644 --- a/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs +++ b/DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs @@ -1,4 +1,5 @@ -锘縰sing Gs.DevApp.DevFrm.Work; +锘縰sing DevExpress.XtraGrid.Drawing; +using Gs.DevApp.DevFrm.Work; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -7,6 +8,7 @@ using System; using System.Collections.Generic; using System.Data; +using System.Data.SqlTypes; using System.Threading.Tasks; using System.Windows.Forms; @@ -30,6 +32,7 @@ toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; + toolBarMenu1.btnBaoGaoClick += ToolBarMenu1_btnBaoGaoClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); @@ -75,7 +78,7 @@ } catch (Exception ex) { - MessageBox.Show(ex.Message); + ToolBox.MsgHelper.ShowError(ex.Message); } }; frm.ShowDialog(); @@ -86,7 +89,7 @@ string _lotNo = txt_lotNo.Text.Trim(); if (string.IsNullOrEmpty(_lotNo)) { - Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇峰厛閫夋嫨宸ュ崟锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇峰厛閫夋嫨宸ュ崟锛�"); return; } var frm = new SelectFqcBox(_lotNo); @@ -110,7 +113,7 @@ } catch (Exception ex) { - MessageBox.Show(ex.Message); + Gs.DevApp.ToolBox.MsgHelper.ShowError(ex.Message); } }; frm.ShowDialog(); @@ -118,7 +121,7 @@ // 璇诲彇缂洪櫡绛夌骇 getRptDefectLevel(); } - + /// <summary> /// 鎵归噺褰曞叆 /// </summary> @@ -160,7 +163,7 @@ string strGuid = lbGuid.Text.Trim(); if (string.IsNullOrEmpty(strGuid)) { - ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + ToolBox.MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); return; } var _obj = new @@ -177,12 +180,12 @@ } else { - Gs.DevApp.ToolBox.MsgHelper.ShowInformation(_rtn.rtnMsg); + Gs.DevApp.ToolBox.MsgHelper.ShowError(_rtn.rtnMsg); } } catch (Exception ex) { - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } /// <summary> @@ -195,7 +198,7 @@ int intHandle = this.gvMx1.FocusedRowHandle; if (intHandle < 0) { - ToolBox.MsgHelper.Warning("鎻愮ず锛氳閫夋嫨妫�楠岄」鐩紒"); + ToolBox.MsgHelper.ShowError("鎻愮ず锛氳閫夋嫨妫�楠岄」鐩紒"); return; } if (e.KeyCode == Keys.Enter) @@ -244,7 +247,7 @@ } catch (Exception ex) { - MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } } @@ -331,7 +334,7 @@ lbGuid, txt_releaseNo, gridView1, "releaseNo"); if (string.IsNullOrEmpty(rowGuid)) { - MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); return; } if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鍒犻櫎鍚楋紵")) @@ -348,17 +351,19 @@ var _rtn = UtilityHelper.ReturnToDynamic(strJson); if (_rtn.rtnCode > 0) { + MsgHelper.ShowInformation("鎻愮ず锛�" + _rtn.rtnMsg); if (xtraTabControl1.SelectedTabPageIndex == 0) { } else Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 2); getPageList(this.pageBar1.CurrentPage); } - MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + else + MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); } catch (Exception ex) { - MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } /// <summary> @@ -399,6 +404,14 @@ this.ucUpFileList1.pGuid = ""; this.ucChouJianList1.pGuid = ""; this.setEable(false); + + //澧炲姞鐨勬椂鍊欑姝�2025-08-14 beg + this.txt_msg.Enabled = false; + this.txt_fngHandle.Enabled = false; + this.txt_zrType.Enabled = false; + this.txt_fzrId.Enabled = false; + this.txt_fmrmode.Enabled = false; + //澧炲姞鐨勬椂鍊欑姝�2025-08-14 end } /// <summary> /// 淇敼浜嬩欢 @@ -428,6 +441,16 @@ UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true, gvList); this.setEable(true); } + + //2025/07/12鍔犱笂淇敼鐘舵�佷笅涓嶈兘淇敼 + txt_lotNo.Enabled = false; + txt_kbList.Enabled = false; + //txt_fPurchaserId.IsReadly = true; + this.txt_msg.Enabled = true; + this.txt_fngHandle.Enabled = true; + this.txt_zrType.Enabled = true; + this.txt_fzrId.Enabled = true; + this.txt_fmrmode.Enabled = true; } /// <summary> @@ -451,57 +474,57 @@ string _txt_lotNo1 = txt_lotNo1.Text.Trim();//閫佹鎵瑰彿 string _txt_lotNo = txt_lotNo.Text.Trim();//鐢熶骇宸ュ崟 string _kbList = txt_kbList.Text.Trim(); - if (txt_djType.SelectedIndex <= 0) + if (txt_djType.SelectedIndex < 0) { - Gs.DevApp.ToolBox.MsgHelper.Warning("鍗曟嵁绫诲瀷涓嶈兘涓虹┖锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("鍗曟嵁绫诲瀷涓嶈兘涓虹┖锛�"); txt_djType.Focus(); return; } if (string.IsNullOrEmpty(_txt_lotNo.Trim())) { - Gs.DevApp.ToolBox.MsgHelper.Warning("宸ュ崟鍙蜂笉鑳戒负绌猴紒"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("宸ュ崟鍙蜂笉鑳戒负绌猴紒"); txt_lotNo.Focus(); return; } if (string.IsNullOrEmpty(_kbList.Trim())) { - Gs.DevApp.ToolBox.MsgHelper.Warning("閫佹绠辩爜涓嶈兘涓虹┖锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("閫佹绠辩爜涓嶈兘涓虹┖锛�"); txt_kbList.Focus(); return; } if (string.IsNullOrEmpty(txt_kbSl.Text.Trim())) { - Gs.DevApp.ToolBox.MsgHelper.Warning("閫佹鏁伴噺涓嶈兘涓虹┖锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("閫佹鏁伴噺涓嶈兘涓虹┖锛�"); txt_kbList.Focus(); return; } if (string.IsNullOrEmpty(_txt_fbatchQty.Trim())) { - Gs.DevApp.ToolBox.MsgHelper.Warning("鎶芥鏁伴噺涓嶈兘涓虹┖锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("鎶芥鏁伴噺涓嶈兘涓虹┖锛�"); txt_fbatchQty.Focus(); return; } if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric2(_txt_fbatchQty)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇疯緭鍏ユ纭殑鎶芥鏁伴噺锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇疯緭鍏ユ纭殑鎶芥鏁伴噺锛�"); txt_fbatchQty.Focus(); return; } if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric2(txt_kbSl.Text.Trim())) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇疯緭鍏ユ纭殑閫佹鏁伴噺锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇疯緭鍏ユ纭殑閫佹鏁伴噺锛�"); txt_kbList.Focus(); return; } if (Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(_txt_fbatchQty) > Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(txt_kbSl.Text.Trim())) { - Gs.DevApp.ToolBox.MsgHelper.Warning("鎶芥鏁伴噺涓嶈兘澶т簬閫佹鏁伴噺锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("鎶芥鏁伴噺涓嶈兘澶т簬閫佹鏁伴噺锛�"); txt_fbatchQty.Focus(); return; } //褰撲笉鍚堟牸鏃剁殑妫�鏌� string _txt_fngHandle = txt_fngHandle.Text.Trim(); - string _txt_fmrmode = txt_fmrmode.GetCode(); + string _txt_fmrmode = txt_fmrmode.Text.Trim(); string _txt_fzrId = txt_fzrId.GetId(); string _txt_workNo = txt_workNo.Text.Trim(); string _txt_zrType = txt_zrType.Text.Trim(); @@ -509,41 +532,41 @@ { if (string.IsNullOrEmpty(txt_msg.TextTxt.Trim())) { - MsgHelper.Warning("褰撲笉鍚堟牸鏃讹紝璇峰~鍐欒繚瑙勪俊鎭紒"); + MsgHelper.ShowError("褰撲笉鍚堟牸鏃讹紝璇峰~鍐欒繚瑙勪俊鎭紒"); txt_msg.Focus(); return; } if (txt_fngHandle.SelectedIndex <= 0) { - Gs.DevApp.ToolBox.MsgHelper.Warning("褰撲笉鍚堟牸鏃讹紝璇烽�夋嫨澶勭疆缁撴灉锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("褰撲笉鍚堟牸鏃讹紝璇烽�夋嫨澶勭疆缁撴灉锛�"); txt_fngHandle.Focus(); return; } if (txt_zrType.SelectedIndex <= 0) { - Gs.DevApp.ToolBox.MsgHelper.Warning("褰撲笉鍚堟牸鏃讹紝璇烽�夋嫨璐d换鍒ゅ畾锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("褰撲笉鍚堟牸鏃讹紝璇烽�夋嫨璐d换鍒ゅ畾锛�"); txt_zrType.Focus(); return; } if (_txt_fzrId.Length <= 0) { - Gs.DevApp.ToolBox.MsgHelper.Warning("褰撲笉鍚堟牸鏃讹紝璇烽�夋嫨璐d换浜猴紒"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("褰撲笉鍚堟牸鏃讹紝璇烽�夋嫨璐d换浜猴紒"); txt_fzrId.Focus(); return; } //褰撳缃粨鏋滀负鍙嶅伐鏃讹紝瑕侀�夋嫨宸ュ簭鍜屽弽宸ョ紪鍙� if (txt_fngHandle.SelectedIndex == 1) { - if (string.IsNullOrEmpty(_txt_workNo)) - { - Gs.DevApp.ToolBox.MsgHelper.Warning("褰撲笉鍚堟牸鏃讹紝璇峰~鍐欏弽宸ュ崟鍙凤紒"); - txt_workNo.Focus(); - return; - } + //if (string.IsNullOrEmpty(_txt_workNo)) + //{ + // Gs.DevApp.ToolBox.MsgHelper.ShowError("褰撲笉鍚堟牸鏃讹紝璇峰~鍐欏弽宸ュ崟鍙凤紒"); + // txt_workNo.Focus(); + // return; + //} if (string.IsNullOrEmpty(_txt_fmrmode)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("褰撲笉鍚堟牸鏃讹紝璇峰~閫夋嫨鍙嶅伐宸ュ簭锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("褰撲笉鍚堟牸鏃讹紝璇峰~閫夋嫨鍙嶅伐宸ュ簭锛�"); txt_fmrmode.Focus(); return; } @@ -552,13 +575,13 @@ { if (!string.IsNullOrEmpty(_txt_workNo)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("涓嶉渶瑕佸~鍐欏弽宸ュ崟鍙凤紒"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("涓嶉渶瑕佸~鍐欏弽宸ュ崟鍙凤紒"); txt_workNo.Focus(); return; } if (!string.IsNullOrEmpty(_txt_fmrmode)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("涓嶉渶瑕侀�夋嫨鍙嶅伐宸ュ簭锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("涓嶉渶瑕侀�夋嫨鍙嶅伐宸ュ簭锛�"); txt_fmrmode.Focus(); return; } @@ -625,9 +648,9 @@ { string strJson = UtilityHelper.HttpPost("", _webServiceName + "EditModel", JsonConvert.SerializeObject(_obj)); ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); if (_rtn.rtnCode > 0) { + ToolBox.MsgHelper.ShowInformation("鎻愮ず锛�" + _rtn.rtnMsg); lbGuid.Text = _rtn.rtnData.outGuid; txt_releaseNo.Text = _rtn.rtnData.outNo; toolBarMenu1.isSetBtn = true; @@ -637,10 +660,12 @@ Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); getModel(lbGuid.Text, "0"); } + else + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); } catch (Exception ex) { - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } @@ -652,7 +677,6 @@ private void getPageList(int curPage) { gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); - // _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 @@ -684,7 +708,7 @@ } catch (Exception ex) { - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } private void getModel(string strGuid, string guid5) @@ -694,7 +718,7 @@ if (toolBarMenu1.currentAction == "edit") isEdit = true; if (string.IsNullOrEmpty(strGuid)) { - ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + ToolBox.MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); return; } var _obj = new @@ -742,13 +766,42 @@ { Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); } + getGxList(dy.aboutGuid.ToString()); } else - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); } catch (Exception ex) { - ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// 璇诲彇宸ュ簭 + /// </summary> + /// <param name="daaGuid"></param> + private void getGxList(string daaGuid) + { + txt_fmrmode.Properties.Items.Clear(); + var _obj = new + { + guid = daaGuid, + }; + var json = JsonConvert.SerializeObject(_obj); + try + { + var strReturn = UtilityHelper.HttpPost("", "WomdaaManager/GetGyList", json); + var dd = UtilityHelper.ReturnToList(strReturn); + var dt = dd.rtnData; + foreach (DataRow row in dt.Rows) + { + txt_fmrmode.Properties.Items.Add(row["processNo"].ToString()); + } + } + catch (Exception ex) + { + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } @@ -762,7 +815,6 @@ if (e.Page.Name == "tabMxPage2") { ucChouJianList1.getList14(); - } if (e.Page.Name == "tabMxPage3") { @@ -807,7 +859,7 @@ } catch (Exception ex) { - MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } @@ -817,7 +869,6 @@ btnLoad.Enabled = bl; ucChouJianList1.IsReadOnly(!bl); btnIpt.Text = (bl == true ? "褰曞叆鏍锋湰" : "鏌ョ湅鏍锋湰"); - } /// <summary> @@ -841,7 +892,7 @@ } catch (Exception ex) { - MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } /// <summary> @@ -871,6 +922,37 @@ frm.ShowDialog(); } + //鐢熶骇鎶ュ憡 + private void ToolBarMenu1_btnBaoGaoClick(object sender, EventArgs e) + { + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, + lbGuid, txt_releaseNo, gridView1, "releaseNo"); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + var _obj = new + { + guid = rowGuid, + }; + try + { + var strJson = UtilityHelper.HttpPost("", _webServiceName + "GetBaoGao", JsonConvert.SerializeObject(_obj)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + MsgHelper.ShowInformation("鐢熸垚鎴愬姛"); + } + else + MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + } + } /// <summary> /// 妫�楠屽拰鍙嶆楠� @@ -895,7 +977,7 @@ toolBarMenu1.guidKey = rowGuid; if (string.IsNullOrEmpty(rowGuid)) { - MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + MsgHelper.ShowError("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); return; } if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾" + strMsg + "鍚楋紵")) @@ -906,45 +988,45 @@ { if (string.IsNullOrEmpty(txt_msg.TextTxt.Trim())) { - MsgHelper.Warning("鍗曟嵁涓轰笉鍚堟牸鏃讹紝璇峰~鍐欒繚瑙勪俊鎭紒"); + MsgHelper.ShowError("鍗曟嵁涓轰笉鍚堟牸鏃讹紝璇峰~鍐欒繚瑙勪俊鎭紒"); return; } string _txt_fngHandle = txt_fngHandle.Text.Trim(); - string _txt_fmrmode = txt_fmrmode.GetCode(); + string _txt_fmrmode = txt_fmrmode.Text.Trim(); string _txt_fzrId = txt_fzrId.GetId(); string _txt_workNo = txt_workNo.Text.Trim(); string _txt_msg = txt_msg.TextTxt; string _txt_zrType = txt_zrType.Text.Trim(); if (txt_fngHandle.SelectedIndex <= 0) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨澶勭疆缁撴灉锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨澶勭疆缁撴灉锛�"); txt_fngHandle.Focus(); return; } if (txt_zrType.SelectedIndex <= 0) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨璐d换鍒ゅ畾锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨璐d换鍒ゅ畾锛�"); txt_zrType.Focus(); return; } if (_txt_fzrId.Length <= 0) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨璐d换浜猴紒"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨璐d换浜猴紒"); txt_fzrId.Focus(); return; } //褰撳缃粨鏋滀负鍙嶅伐鏃讹紝瑕侀�夋嫨宸ュ簭鍜屽弽宸ョ紪鍙� if (txt_fngHandle.SelectedIndex == 1) { - if (string.IsNullOrEmpty(_txt_workNo)) - { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇峰~鍐欏弽宸ュ崟鍙凤紒"); - txt_workNo.Focus(); - return; - } + //if (string.IsNullOrEmpty(_txt_workNo)) + //{ + // Gs.DevApp.ToolBox.MsgHelper.Warning("璇峰~鍐欏弽宸ュ崟鍙凤紒"); + // txt_workNo.Focus(); + // return; + //} if (string.IsNullOrEmpty(_txt_fmrmode)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("璇峰~閫夋嫨鍙嶅伐宸ュ簭锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇峰~閫夋嫨鍙嶅伐宸ュ簭锛�"); txt_fmrmode.Focus(); return; } @@ -953,13 +1035,13 @@ { if (!string.IsNullOrEmpty(_txt_workNo)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("涓嶉渶瑕佸~鍐欏弽宸ュ崟鍙凤紒"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("涓嶉渶瑕佸~鍐欏弽宸ュ崟鍙凤紒"); txt_workNo.Focus(); return; } if (!string.IsNullOrEmpty(_txt_fmrmode)) { - Gs.DevApp.ToolBox.MsgHelper.Warning("涓嶉渶瑕侀�夋嫨鍙嶅伐宸ュ簭锛�"); + Gs.DevApp.ToolBox.MsgHelper.ShowError("涓嶉渶瑕侀�夋嫨鍙嶅伐宸ュ簭锛�"); txt_fmrmode.Focus(); return; } @@ -978,9 +1060,9 @@ _webServiceName + "EditModelSubmit", JsonConvert.SerializeObject(_obj)); var _rtn = UtilityHelper.ReturnToDynamic(strJson); - MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnData.outMsg); if (_rtn.rtnCode > 0 && _rtn.rtnData.outSum * 1 > 0) { + MsgHelper.ShowInformation("鎻愮ず锛�" + _rtn.rtnData.outMsg); if (xtraTabControl1.SelectedTabPageIndex == 1) { getModel(lbGuid.Text.Trim(), "0"); @@ -989,12 +1071,13 @@ gridView1.FocusedRowHandle = rowHandle; UtilityHelper.SetCheckIco(gridView1, "fsubmitTxt", "", "iqcDate", picCheckBox, this, _inFieldValue.ToString()); } + else + MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnData.outMsg); } catch (Exception ex) { - MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } - } } \ No newline at end of file -- Gitblit v1.9.3