From 3c6cad1224e7cb985f03d15cc98a4a2074a5af49 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期一, 22 十二月 2025 22:25:33 +0800
Subject: [PATCH] 增加轮播看板
---
DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs | 61 ++++++++++++++++++++++++++++++
1 files changed, 60 insertions(+), 1 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs b/DevApp/Gs.DevApp/DevFrm/Work/Frm_WorkStart.cs
index fb467b3..b723762 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
{
@@ -22,8 +23,66 @@
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;
+
+
+ if (fGx == "G001:鎶曞叆")
+ {
+ btnFg.Visible = true;
+ }
+ else
+ btnFg.Visible = false;
+
+ };
+
+ btnFg.Click += BtnFg_Click;
}
+ /// <summary>
+ /// 杩斿伐绫诲瀷杩涘叆
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ /// <exception cref="NotImplementedException"></exception>
+ private void BtnFg_Click(object sender, EventArgs e)
+ {
+ if (txt_bc.SelectedIndex <= 0)
+ {
+ txt_bc.Focus();
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鐝锛�");
+ return;
+ }
+ if (txt_gx.SelectedIndex <= 0)
+ {
+ txt_gx.Focus();
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨宸ュ簭锛�");
+ return;
+ }
+ string fGx = txt_gx.Text.Trim();
+ string fBc = txt_bc.Text.Trim();
+ if (fGx == "G001:鎶曞叆")
+ {
+ Frm_Work01Fg frm = new Frm_Work01Fg(fGx, fBc);
+ frm.ShowDialog();
+ return;
+ }
+ Gs.DevApp.ToolBox.MsgHelper.ShowError("閫夋嫨閿欒锛岃閲嶈瘯锛�");
+ return;
+ }
+
+ /// <summary>
+ /// 姝e父杩涘叆
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
private void BtnLogin_Click(object sender, EventArgs e)
{
if (txt_bc.SelectedIndex <= 0)
@@ -49,7 +108,7 @@
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();
}
--
Gitblit v1.9.3