DevApp/Gs.DevApp/App.config | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/WW/Frm_WwTbl.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_ArrivalBarcode.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_InitialBarcode.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesShouTuo.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
DevApp/Gs.DevApp/App.config
@@ -28,8 +28,8 @@ </assemblyBinding> </runtime> <appSettings> <add key="WebApiUrl" value="http://localhost:5263/" /> <!--<add key="WebApiUrl" value="http://192.168.1.145:81/" />--> <!--<add key="WebApiUrl" value="http://localhost:5263/" />--> <add key="WebApiUrl" value="http://192.168.1.145:81/" /> <add key="LogPath" value="logs" /> <add key="ProductName" value="G-MES V2.0" /> <add key="PageSize" value="50" /> DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
@@ -89,14 +89,14 @@ ucBtnPrint1.guidKey = ""; string rowGuid = lbMxGuid.Text.Trim(); ucBtnPrint1.guidKey = rowGuid; if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs
@@ -112,14 +112,14 @@ ucBtnPrint1.guidKey = ""; string rowGuid = lbMxGuid.Text.Trim(); ucBtnPrint1.guidKey = rowGuid; if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); DevApp/Gs.DevApp/DevFrm/Sales/Frm_SalesReturnNotice.cs
@@ -84,14 +84,14 @@ ucBtnPrint1.guidKey = ""; string rowGuid = lbMxGuid.Text.Trim(); ucBtnPrint1.guidKey = rowGuid; if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs
@@ -562,16 +562,16 @@ this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择内包装数量!"); Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; @@ -600,7 +600,7 @@ this.ucBtnPrint98.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_iCount_98.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_98.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_98.Focus(); @@ -631,7 +631,6 @@ this.ucBtnPrint100.rptParameter = "return false"; return; } this.ucBtnPrint100.rptParameter = "rpt_hgm{" + "100" + "," + "" @@ -674,8 +673,6 @@ } } } #endregion } } DevApp/Gs.DevApp/DevFrm/WW/Frm_WwTbl.cs
@@ -97,14 +97,14 @@ ucBtnPrint1.guidKey = ""; string rowGuid = lbMxGuid.Text.Trim(); ucBtnPrint1.guidKey = rowGuid; if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_ArrivalBarcode.cs
@@ -44,14 +44,14 @@ { string rowGuid = lbMxGuid.Text.Trim(); ucBtnPrint1.guidKey = rowGuid; if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_InitialBarcode.cs
@@ -40,7 +40,6 @@ { txt_suppId.Text = this.txt_suppNo_1.GetCode(); }; this.ucBtnPrint1.btnDesignClick += (s, e) => { ucBtnPrint1.rptParameter = "rpt_ItemInv{}"; @@ -58,14 +57,14 @@ this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesShouTuo.cs
@@ -82,14 +82,14 @@ ucBtnPrint1.guidKey = ""; string rowGuid = lbMxGuid.Text.Trim(); ucBtnPrint1.guidKey = rowGuid; if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!"); txt_iCount_1.Focus(); this.ucBtnPrint1.rptParameter = "return false"; return; } if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim())) if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_psnQty_1.Text.Trim())) { Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!"); txt_psnQty_1.Focus(); DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -1722,7 +1722,7 @@ } }; gridView1.OptionsView.ColumnAutoWidth = false;//自动调整列宽 if (isPostSearch == true) { gridView1.OptionsView.ShowGroupPanel = false; @@ -2044,7 +2044,20 @@ bool isNumeric = decimal.TryParse(input, out number); return isNumeric; } /// <summary> /// 判断是不是一个有效的正整数 /// </summary> /// <param name="str"></param> /// <returns></returns> public static bool IsNumeric3(string str) { string input = str; decimal number; bool isNumeric = decimal.TryParse(input, out number); if (isNumeric && number > 0) return true; return false; } public static void PrintJiSuan(DevExpress.XtraEditors.TextEdit box1, DevExpress.XtraEditors.TextEdit box2, string sum, DevExpress.XtraEditors.RadioGroup rd) { if (rd.SelectedIndex == 2) @@ -2107,7 +2120,7 @@ // private GridColumn checkBoxColumn = null; public static void CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e) { Rectangle checkBoxColumnHeaderRect = new Rectangle(51, 1, 37, 57); if (e.Column != null && e.Column.AbsoluteIndex == 0) {