From 2e3496c2bc19c1dcb25dbbde0022a6a6d2b4ff7b Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期六, 22 十一月 2025 13:27:18 +0800
Subject: [PATCH] ID转人名:受托退料申请、受托退料单
---
DevApp/Gs.DevApp/XtraForm1.cs | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 59 insertions(+), 0 deletions(-)
diff --git a/DevApp/Gs.DevApp/XtraForm1.cs b/DevApp/Gs.DevApp/XtraForm1.cs
index 7ecc96b..0299600 100644
--- a/DevApp/Gs.DevApp/XtraForm1.cs
+++ b/DevApp/Gs.DevApp/XtraForm1.cs
@@ -324,5 +324,64 @@
}
richTextBox1.Text = sbLine.ToString();
}
+
+ private void simpleButton3_Click(object sender, EventArgs e)
+ {
+ string ddd = "1";
+ try
+ {
+ if (IsValidDate(ddd, "鏃ユ湡"))
+ MessageBox.Show("姝e父");
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.Message);
+ }
+
+ }
+
+ /// <summary>
+ /// 鍒ゆ柇鏄惁涓烘棩鏈�
+ /// </summary>
+ /// <param name="dateString"></param>
+ /// <returns></returns>
+ public bool IsValidDate(string dateString, string ziDuan = "")
+ {
+ bool bl = DateTime.TryParse(dateString, out _);
+ if (bl == true)
+ return bl;
+ if (string.IsNullOrEmpty(ziDuan))
+ return bl;
+ throw new Exception(ziDuan + "涓嶆槸鍚堟硶鐨勬棩鏈熺被鍨嬶紒");
+ }
+
+ private void simpleButton4_Click(object sender, EventArgs e)
+ {
+
+ Toast vm = new Toast(0, simpleButton4.Text);
+ vm.Show();
+ return;
+ }
+
+ private void simpleButton5_Click(object sender, EventArgs e)
+ {
+ Toast vm = new Toast(0, simpleButton5.Text);
+ vm.Show();
+ return;
+ }
+
+ private void simpleButton6_Click(object sender, EventArgs e)
+ {
+ Toast vm = new Toast(0, simpleButton6.Text);
+ vm.Show();
+ return;
+ }
+
+ private void simpleButton7_Click(object sender, EventArgs e)
+ {
+ Toast vm = new Toast(0, simpleButton7.Text);
+ vm.Show();
+ return;
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.3