From b084bd77d01a94c8f0a2d20c86a1f45ba7c8a23c Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 19 四月 2025 14:08:05 +0800 Subject: [PATCH] 页面跳转 --- DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs | 24 ++++++++---------------- 1 files changed, 8 insertions(+), 16 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs index c1b0f62..f5f6c7b 100644 --- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs +++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs @@ -78,17 +78,12 @@ }; txt_psnQty_1.TextChanged += (s, e) => { - Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(this, txt_psnQty_1, txt_iCount_1, txt_kQty.Text.Trim(), radOut); + Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(txt_psnQty_1, txt_iCount_1, txt_kQty.Text.Trim(), radOut); }; - txt_iCount_1.TextChanged += (s, e) => - { - Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(this, txt_iCount_1, txt_psnQty_1, txt_kQty.Text.Trim(), radOut); - }; + radOut.SelectedIndexChanged += (s, e) => { - txt_psnQty_1.Text = ""; - txt_iCount_1.Text = ""; - radOut.Properties.Items[0].Description = "鍏ㄨ嚜鍔�"; + Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut); }; } @@ -567,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; @@ -605,14 +600,14 @@ 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(); this.ucBtnPrint98.rptParameter = "return false"; return; } - this.ucBtnPrint98.rptParameter = "rpt_trace{" + this.ucBtnPrint98.rptParameter = "rpt_trace{" + "" + "," + txt_printRemark98.Text.Trim() + "," + "" @@ -636,7 +631,6 @@ this.ucBtnPrint100.rptParameter = "return false"; return; } - this.ucBtnPrint100.rptParameter = "rpt_hgm{" + "100" + "," + "" @@ -679,8 +673,6 @@ } } } - #endregion - } } \ No newline at end of file -- Gitblit v1.9.3