From 96a1a008a2bfe49cfecd17db29cc4f49a5bcffa6 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期二, 11 十一月 2025 08:57:35 +0800
Subject: [PATCH] 其他入库报表
---
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