資源簡介
實現隨機抽簽模板中的人員
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?whhyxmjbqk;
namespace?cq2
{
????public?partial?class?Form1?:?Form
????{
????????Random?rd?=null;
???????//?config?con?=?new?config(System.Windows.Forms.Application.StartupPath?+?“\\data\\“?+?“htwh.xls“);
????????Business_Logic?bl?=?null;
????????DataSet?set?=?null;?DataTable?s?=?null;
????????public?Form1()
????????{
????????????InitializeComponent();
????????
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{int?cqnum=-1;?int?rynum=-1;
????????????try?
????????{ ????????
???????????cqnum=Convert.ToInt32(textBox3.Text);
???????????????????rynum?=?set.Tables[0].Rows.Count;
????????}
????????catch?(Exception)
????????{
???????? MessageBox.Show(“輸入的內容有誤,請填寫數字類型的抽簽人數“);
????????return?;
????????}
????????????if?(cqnum?>=?rynum)
????????????{
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????61440??2016-12-26?10:44??cq2\cq2\AxInterop.grproLib.dll
?????文件??????61440??2016-12-26?10:44??cq2\cq2\bin\Debug\AxInterop.grproLib.dll
?????文件??????28672??2017-11-09?16:19??cq2\cq2\bin\Debug\cq2.exe
?????文件??????36352??2017-11-09?16:19??cq2\cq2\bin\Debug\cq2.pdb
?????文件???????5632??2016-12-26?14:08??cq2\cq2\bin\Debug\cq2.vshost.exe
?????文件??????40960??2016-12-26?10:44??cq2\cq2\bin\Debug\Interop.grdesLib.dll
?????文件?????307200??2016-12-26?10:44??cq2\cq2\bin\Debug\Interop.grproLib.dll
?????文件????1100392??2016-12-26?10:31??cq2\cq2\bin\Debug\Microsoft.Office.Interop.Excel.dll
?????文件??????18432??2017-11-09?16:17??cq2\cq2\bin\Debug\人員模板\人員模板.xls
?????文件?????278116??2017-11-09?16:19??cq2\cq2\bin\抽簽程序new.rar
?????文件???????4077??2017-11-08?14:46??cq2\cq2\cq2.csproj
?????文件????????168??2016-12-26?10:04??cq2\cq2\cq2.csproj.user
?????文件???????4817??2017-11-09?16:19??cq2\cq2\Form1.cs
?????文件???????8492??2017-11-08?15:02??cq2\cq2\Form1.Designer.cs
?????文件???????5814??2017-11-08?15:02??cq2\cq2\Form1.resx
?????文件??????40960??2016-12-26?10:44??cq2\cq2\Interop.grdesLib.dll
?????文件?????307200??2016-12-26?10:44??cq2\cq2\Interop.grproLib.dll
?????文件????1100392??2016-12-26?10:31??cq2\cq2\Microsoft.Office.Interop.Excel.dll
?????文件???????1200??2018-03-27?09:58??cq2\cq2\obj\cq2.csproj.FileListAbsolute.txt
?????文件????????842??2017-11-09?16:16??cq2\cq2\obj\Debug\cq2.csproj.GenerateResource.Cache
?????文件??????28672??2017-11-09?16:19??cq2\cq2\obj\Debug\cq2.exe
?????文件????????180??2017-11-09?16:16??cq2\cq2\obj\Debug\cq2.Form1.resources
?????文件??????36352??2017-11-09?16:19??cq2\cq2\obj\Debug\cq2.pdb
?????文件????????180??2016-12-26?10:45??cq2\cq2\obj\Debug\cq2.Properties.Resources.resources
?????文件??????12699??2017-11-08?11:32??cq2\cq2\obj\Debug\ResolveAssemblyReference.cache
?????文件????????462??2016-12-26?09:56??cq2\cq2\Program.cs
?????文件???????1154??2016-12-26?09:56??cq2\cq2\Properties\AssemblyInfo.cs
?????文件???????2862??2016-12-26?09:56??cq2\cq2\Properties\Resources.Designer.cs
?????文件???????5612??2016-12-26?09:56??cq2\cq2\Properties\Resources.resx
?????文件???????1088??2016-12-26?09:56??cq2\cq2\Properties\Settings.Designer.cs
............此處省略19個文件信息
- 上一篇:C# 中國象棋單機版
- 下一篇:C#獲取ADAM4150數字量
評論
共有 條評論