From fbe33a615f1c4e798a0f8e58163e68c3ce789614 Mon Sep 17 00:00:00 2001
From: lg <123456>
Date: 星期四, 20 十一月 2025 10:17:49 +0800
Subject: [PATCH] 初始化标准版
---
DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs | 31 +++++++++++++++++++++----------
1 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs b/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs
index 863ce17..6843b0f 100644
--- a/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs
@@ -4,6 +4,7 @@
using System;
using System.Data;
using System.IO;
+using System.Windows;
namespace Gs.DevApp.DevFrm.Work
{
@@ -13,13 +14,25 @@
/// pc鍙渶瑕佽繃绔�
/// </summary>
private string isPc = "鎶曞叆,鐢垫,姘存,缁堟";
- //鐢垫鍙栧�艰矾寰�
+ /// <summary>
+ /// 鐢垫鍙栧�艰矾寰勶紝鐩墠閮芥槸瀛樼‖鐩�
+ /// </summary>
string dianJianPath = "";
public Frm_WorkStart()
{
InitializeComponent();
_getListJyxm();
btnLogin.Click += BtnLogin_Click;
+ txt_gx.EditValueChanged += (s, e) =>
+ {
+ string fGx = txt_gx.Text.Trim();
+ if (fGx == "G003:姘存")
+ {
+ chkWater.Visible = true;
+ }
+ else
+ chkWater.Visible = false;
+ };
}
private void BtnLogin_Click(object sender, EventArgs e)
@@ -27,13 +40,13 @@
if (txt_bc.SelectedIndex <= 0)
{
txt_bc.Focus();
- Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇烽�夋嫨鐝锛�");
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鐝锛�");
return;
}
if (txt_gx.SelectedIndex <= 0)
{
txt_gx.Focus();
- Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇烽�夋嫨宸ュ簭锛�");
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨宸ュ簭锛�");
return;
}
string fGx = txt_gx.Text.Trim();
@@ -47,18 +60,16 @@
return;
}
}
-
- Frm_Work01 frm = new Frm_Work01(fGx, fBc,dianJianPath);
+ Frm_Work01 frm = new Frm_Work01(fGx, fBc, dianJianPath, (chkWater.Checked ? 1 : 0));
frm.ShowDialog();
}
/// <summary>
- /// 鍏堣鍙栫數妫�閰嶇疆
+ /// 鍏堣鍙栫數妫�鐨勫瓨鍌ㄨ矾寰�
/// </summary>
/// <returns></returns>
private bool getConfigDianJian()
{
- //杩欐槸鐢垫鏁版嵁鐨勮矾寰�
string _where = " and 1=1 and defect_code='1008'";
var pgq = new PageQueryModel(1, 999999, "a.defect_code", "asc", "", _where);
var json = JsonConvert.SerializeObject(pgq);
@@ -83,13 +94,13 @@
}
catch (Exception ex)
{
- MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+ MsgHelper.ShowError("鎻愮ず锛�" + ex.Message);
return false;
}
}
/// <summary>
- /// 璇诲彇宸ュ簭涓嬫媺
+ /// 璇诲彇宸ュ簭涓嬫媺,鍚屾椂閰嶅isPc
/// </summary>
private void _getListJyxm()
{
@@ -111,7 +122,7 @@
}
catch (Exception ex)
{
- MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+ MsgHelper.ShowError("鎻愮ず锛�" + ex.Message);
}
}
}
--
Gitblit v1.9.3