15 changed files with 945 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00 |
|||
# Visual Studio Version 16 |
|||
VisualStudioVersion = 16.0.35026.282 |
|||
MinimumVisualStudioVersion = 10.0.40219.1 |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "调度窗口", "调度窗口\调度窗口.csproj", "{78049AE8-6F50-451F-84D1-2BFF55B7C6A3}" |
|||
EndProject |
|||
Global |
|||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|||
Debug|Any CPU = Debug|Any CPU |
|||
Release|Any CPU = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|||
{78049AE8-6F50-451F-84D1-2BFF55B7C6A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{78049AE8-6F50-451F-84D1-2BFF55B7C6A3}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{78049AE8-6F50-451F-84D1-2BFF55B7C6A3}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{78049AE8-6F50-451F-84D1-2BFF55B7C6A3}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(SolutionProperties) = preSolution |
|||
HideSolutionNode = FALSE |
|||
EndGlobalSection |
|||
GlobalSection(ExtensibilityGlobals) = postSolution |
|||
SolutionGuid = {26F83C09-4C62-4E8B-852C-DBEC06C5056C} |
|||
EndGlobalSection |
|||
EndGlobal |
@ -0,0 +1,10 @@ |
|||
# 若要了解有关 .editorconfig 的详细信息,请参阅 https://aka.ms/editorconfigdocs |
|||
root = true |
|||
|
|||
# All files |
|||
[*] |
|||
indent_style = space |
|||
|
|||
# Xml files |
|||
[*.xml] |
|||
indent_size = 2 |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<configuration> |
|||
<startup> |
|||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> |
|||
</startup> |
|||
</configuration> |
@ -0,0 +1,40 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data.SqlClient; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace 调度窗口 |
|||
{ |
|||
class Dao |
|||
{ |
|||
SqlConnection sc; |
|||
//连接数据库
|
|||
public SqlConnection Connect() |
|||
{ |
|||
string str = @"Server=DESKTOP-PE4T4D8;Database=Test;Trusted_Connection=true;"; |
|||
sc = new SqlConnection(str); |
|||
sc.Open(); |
|||
return sc; //数据库连接的对象
|
|||
} |
|||
|
|||
public SqlCommand command(string sql) |
|||
{ |
|||
SqlCommand cmd = new SqlCommand(sql, Connect()); |
|||
return cmd; |
|||
} |
|||
public int Execute(string sql) //更新操作
|
|||
{ |
|||
return command(sql).ExecuteNonQuery(); |
|||
} |
|||
public SqlDataReader read(string sql) //读取操作
|
|||
{ |
|||
return command(sql).ExecuteReader(); |
|||
} |
|||
public void Daoclose() |
|||
{ |
|||
sc.Close();//关闭数据库连接
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace 调度窗口 |
|||
{ |
|||
class Data |
|||
{ |
|||
|
|||
} |
|||
} |
@ -0,0 +1,192 @@ |
|||
|
|||
namespace 调度窗口 |
|||
{ |
|||
partial class Form1 |
|||
{ |
|||
/// <summary>
|
|||
/// 必需的设计器变量。
|
|||
/// </summary>
|
|||
private System.ComponentModel.IContainer components = null; |
|||
|
|||
/// <summary>
|
|||
/// 清理所有正在使用的资源。
|
|||
/// </summary>
|
|||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|||
protected override void Dispose(bool disposing) |
|||
{ |
|||
if (disposing && (components != null)) |
|||
{ |
|||
components.Dispose(); |
|||
} |
|||
base.Dispose(disposing); |
|||
} |
|||
|
|||
#region Windows 窗体设计器生成的代码
|
|||
|
|||
/// <summary>
|
|||
/// 设计器支持所需的方法 - 不要修改
|
|||
/// 使用代码编辑器修改此方法的内容。
|
|||
/// </summary>
|
|||
private void InitializeComponent() |
|||
{ |
|||
this.components = new System.ComponentModel.Container(); |
|||
this.label3 = new System.Windows.Forms.Label(); |
|||
this.textBox1 = new System.Windows.Forms.TextBox(); |
|||
this.dataGridView1 = new System.Windows.Forms.DataGridView(); |
|||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); |
|||
this.任务完成ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.任务删除ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); |
|||
this.button1 = new System.Windows.Forms.Button(); |
|||
this.comboBox1 = new System.Windows.Forms.ComboBox(); |
|||
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); |
|||
this.button2 = new System.Windows.Forms.Button(); |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); |
|||
this.contextMenuStrip1.SuspendLayout(); |
|||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); |
|||
this.splitContainer1.Panel1.SuspendLayout(); |
|||
this.splitContainer1.Panel2.SuspendLayout(); |
|||
this.splitContainer1.SuspendLayout(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// label3
|
|||
//
|
|||
this.label3.Location = new System.Drawing.Point(0, 0); |
|||
this.label3.Name = "label3"; |
|||
this.label3.Size = new System.Drawing.Size(100, 23); |
|||
this.label3.TabIndex = 12; |
|||
//
|
|||
// textBox1
|
|||
//
|
|||
this.textBox1.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.textBox1.Location = new System.Drawing.Point(465, 10); |
|||
this.textBox1.Name = "textBox1"; |
|||
this.textBox1.Size = new System.Drawing.Size(183, 31); |
|||
this.textBox1.TabIndex = 9; |
|||
//
|
|||
// dataGridView1
|
|||
//
|
|||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|||
this.dataGridView1.ContextMenuStrip = this.contextMenuStrip1; |
|||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.dataGridView1.Location = new System.Drawing.Point(0, 0); |
|||
this.dataGridView1.Name = "dataGridView1"; |
|||
this.dataGridView1.RowHeadersWidth = 51; |
|||
this.dataGridView1.RowTemplate.Height = 27; |
|||
this.dataGridView1.Size = new System.Drawing.Size(1224, 701); |
|||
this.dataGridView1.TabIndex = 11; |
|||
//
|
|||
// contextMenuStrip1
|
|||
//
|
|||
this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); |
|||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
|||
this.任务完成ToolStripMenuItem1, |
|||
this.任务删除ToolStripMenuItem1}); |
|||
this.contextMenuStrip1.Name = "contextMenuStrip1"; |
|||
this.contextMenuStrip1.Size = new System.Drawing.Size(139, 52); |
|||
//
|
|||
// 任务完成ToolStripMenuItem1
|
|||
//
|
|||
this.任务完成ToolStripMenuItem1.Name = "任务完成ToolStripMenuItem1"; |
|||
this.任务完成ToolStripMenuItem1.Size = new System.Drawing.Size(138, 24); |
|||
this.任务完成ToolStripMenuItem1.Text = "任务完成"; |
|||
this.任务完成ToolStripMenuItem1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.任务完成ToolStripMenuItem1_MouseUp); |
|||
//
|
|||
// 任务删除ToolStripMenuItem1
|
|||
//
|
|||
this.任务删除ToolStripMenuItem1.Name = "任务删除ToolStripMenuItem1"; |
|||
this.任务删除ToolStripMenuItem1.Size = new System.Drawing.Size(138, 24); |
|||
this.任务删除ToolStripMenuItem1.Text = "任务删除"; |
|||
this.任务删除ToolStripMenuItem1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.任务删除ToolStripMenuItem1_MouseUp); |
|||
//
|
|||
// button1
|
|||
//
|
|||
this.button1.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.button1.Location = new System.Drawing.Point(3, 8); |
|||
this.button1.Name = "button1"; |
|||
this.button1.Size = new System.Drawing.Size(129, 34); |
|||
this.button1.TabIndex = 12; |
|||
this.button1.Text = "全部任务"; |
|||
this.button1.UseVisualStyleBackColor = true; |
|||
this.button1.Click += new System.EventHandler(this.button1_Click); |
|||
//
|
|||
// comboBox1
|
|||
//
|
|||
this.comboBox1.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.comboBox1.FormattingEnabled = true; |
|||
this.comboBox1.Items.AddRange(new object[] { |
|||
"条码", |
|||
"调度任务索引"}); |
|||
this.comboBox1.Location = new System.Drawing.Point(263, 8); |
|||
this.comboBox1.Name = "comboBox1"; |
|||
this.comboBox1.Size = new System.Drawing.Size(183, 33); |
|||
this.comboBox1.TabIndex = 13; |
|||
//
|
|||
// splitContainer1
|
|||
//
|
|||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; |
|||
this.splitContainer1.Location = new System.Drawing.Point(0, 0); |
|||
this.splitContainer1.Name = "splitContainer1"; |
|||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; |
|||
//
|
|||
// splitContainer1.Panel1
|
|||
//
|
|||
this.splitContainer1.Panel1.Controls.Add(this.button2); |
|||
this.splitContainer1.Panel1.Controls.Add(this.comboBox1); |
|||
this.splitContainer1.Panel1.Controls.Add(this.button1); |
|||
this.splitContainer1.Panel1.Controls.Add(this.textBox1); |
|||
//
|
|||
// splitContainer1.Panel2
|
|||
//
|
|||
this.splitContainer1.Panel2.Controls.Add(this.dataGridView1); |
|||
this.splitContainer1.Panel2.Controls.Add(this.label3); |
|||
this.splitContainer1.Size = new System.Drawing.Size(1224, 753); |
|||
this.splitContainer1.SplitterDistance = 48; |
|||
this.splitContainer1.TabIndex = 14; |
|||
//
|
|||
// button2
|
|||
//
|
|||
this.button2.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.button2.Location = new System.Drawing.Point(678, 8); |
|||
this.button2.Name = "button2"; |
|||
this.button2.Size = new System.Drawing.Size(116, 34); |
|||
this.button2.TabIndex = 15; |
|||
this.button2.Text = "开始查询"; |
|||
this.button2.UseVisualStyleBackColor = true; |
|||
this.button2.Click += new System.EventHandler(this.button2_Click); |
|||
//
|
|||
// Form1
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(1224, 753); |
|||
this.Controls.Add(this.splitContainer1); |
|||
this.Name = "Form1"; |
|||
this.Text = "调度管理系统"; |
|||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); |
|||
this.contextMenuStrip1.ResumeLayout(false); |
|||
this.splitContainer1.Panel1.ResumeLayout(false); |
|||
this.splitContainer1.Panel1.PerformLayout(); |
|||
this.splitContainer1.Panel2.ResumeLayout(false); |
|||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); |
|||
this.splitContainer1.ResumeLayout(false); |
|||
this.ResumeLayout(false); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.Label label3; |
|||
private System.Windows.Forms.TextBox textBox1; |
|||
//private System.Windows.Forms.Label label1;
|
|||
private System.Windows.Forms.DataGridView dataGridView1; |
|||
private System.Windows.Forms.Button button1; |
|||
private System.Windows.Forms.ComboBox comboBox1; |
|||
private System.Windows.Forms.SplitContainer splitContainer1; |
|||
private System.Windows.Forms.Button button2; |
|||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; |
|||
private System.Windows.Forms.ToolStripMenuItem 任务完成ToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem 任务删除ToolStripMenuItem; |
|||
private System.Windows.Forms.ToolStripMenuItem 任务完成ToolStripMenuItem1; |
|||
private System.Windows.Forms.ToolStripMenuItem 任务删除ToolStripMenuItem1; |
|||
} |
|||
} |
|||
|
@ -0,0 +1,173 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Data.SqlClient; |
|||
using System.Drawing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace 调度窗口 |
|||
{ |
|||
public partial class Form1 : Form |
|||
{ |
|||
|
|||
public Form1() |
|||
{ |
|||
InitializeComponent(); |
|||
LoadData(); |
|||
} |
|||
|
|||
private void button1_Click(object sender, EventArgs e) |
|||
{ |
|||
string constr = @"Server=DESKTOP-PE4T4D8;Database=Test;Trusted_Connection=true;"; |
|||
SqlConnection con = new SqlConnection(constr); |
|||
con.Open(); |
|||
|
|||
string sql1 = "select * from Table_1"; |
|||
SqlDataAdapter da = new SqlDataAdapter(sql1, con); |
|||
DataTable dt = new DataTable(); |
|||
da.Fill(dt); |
|||
dataGridView1.DataSource = dt; |
|||
//listBox1.DataSource = dt;
|
|||
con.Close(); |
|||
} |
|||
|
|||
private void button2_Click(object sender, EventArgs e) //开始查询
|
|||
{ |
|||
string constr = @"Server=DESKTOP-PE4T4D8;Database=Test;Trusted_Connection=true;"; |
|||
SqlConnection con = new SqlConnection(constr); |
|||
con.Open(); |
|||
|
|||
string sql1 = null; |
|||
if (comboBox1.Text == "条码") |
|||
{ |
|||
sql1 = $"select * from Table_1 where 条码 ='" + textBox1.Text + "'"; |
|||
} |
|||
else if (comboBox1.Text == "调度任务索引") |
|||
{ |
|||
sql1 = $"select * from Table_1 where 调度任务索引 ='" + textBox1.Text + "' "; |
|||
} |
|||
|
|||
SqlDataAdapter da = new SqlDataAdapter(sql1, con); |
|||
DataTable dt = new DataTable(); |
|||
da.Fill(dt); |
|||
dataGridView1.DataSource = dt; |
|||
con.Close(); |
|||
} |
|||
|
|||
|
|||
private SqlConnection c; |
|||
private SqlDataAdapter DA; |
|||
private DataTable DT; |
|||
private DataSet dataSet2; |
|||
private void LoadData() |
|||
{ |
|||
string c = "Server=localhost;Database=Test;Integrated Security=True;"; |
|||
SqlConnection c1 = new SqlConnection(c); |
|||
dataSet2 = new DataSet(); |
|||
c1.Open(); |
|||
string query = "select* from Table_1"; |
|||
DA = new SqlDataAdapter(query, c); |
|||
DT = new DataTable(); |
|||
DA.Fill(dataSet2, "Table_1"); |
|||
dataGridView1.DataSource = DT; |
|||
c1.Close(); |
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
private DataSet dataSet1; |
|||
private SqlDataAdapter dataAdapter1; |
|||
private void 任务完成ToolStripMenuItem1_MouseUp(object sender, MouseEventArgs e) |
|||
{ |
|||
string con = "Server=localhost;Database=Test;Integrated Security=True;"; |
|||
SqlConnection conn = new SqlConnection(con); |
|||
dataSet1 = new DataSet(); |
|||
conn.Open(); |
|||
dataAdapter1 = new SqlDataAdapter("select * from Table_1", conn); |
|||
dataAdapter1.Fill(dataSet1, "Table_1"); |
|||
dataGridView1.DataSource = dataSet1.Tables["Table_1"]; |
|||
SqlCommandBuilder commandBuilder = new SqlCommandBuilder(dataAdapter1); |
|||
if (dataGridView1.CurrentCell.RowIndex != null) //CurrentRow
|
|||
{ |
|||
// 获取选中行内容
|
|||
DataRow row = ((DataRowView)dataGridView1.CurrentRow.DataBoundItem).Row; |
|||
// 获取任务索引
|
|||
String index = (String)row["条码"]; |
|||
// 构建删除语句
|
|||
string finstr = $"update Table_1 set 任务状态 = '已完成' where 条码 = '{index}';"; |
|||
using (SqlConnection connection3 = new SqlConnection(con)) |
|||
{ |
|||
SqlCommand command = new SqlCommand(finstr, conn); |
|||
command.Parameters.AddWithValue("@条码", index); |
|||
int rowsAffected = command.ExecuteNonQuery(); |
|||
conn.Close(); |
|||
connection3.Open(); |
|||
if (rowsAffected > 0) |
|||
{ |
|||
// 删除成功,移除 DataRow
|
|||
row.Delete(); |
|||
|
|||
// 重新加载数据
|
|||
dataSet1.Tables["Table_1"].AcceptChanges(); |
|||
dataGridView1.DataSource = dataSet1.Tables["Table_1"]; |
|||
connection3.Close(); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
private DataSet dataSet; |
|||
private SqlDataAdapter dataAdapter; |
|||
private void 任务删除ToolStripMenuItem1_MouseUp(object sender, MouseEventArgs e) |
|||
{ |
|||
// 初始化数据库连接和数据适配器
|
|||
string connectionString = "Server=localhost;Database=Test;Integrated Security=True;"; |
|||
SqlConnection connection = new SqlConnection(connectionString); |
|||
dataSet = new DataSet(); |
|||
connection.Open(); |
|||
dataAdapter = new SqlDataAdapter("select * from Table_1",connection); |
|||
dataAdapter.Fill(dataSet,"Table_1"); |
|||
// 将数据绑定到 DataGridView
|
|||
dataGridView1.DataSource = dataSet.Tables["Table_1"]; |
|||
// 使用 SqlCommandBuilder 生成 SQL 命令
|
|||
SqlCommandBuilder commandBuilder = new SqlCommandBuilder(dataAdapter); |
|||
// 获取当前选中的行
|
|||
if (dataGridView1.CurrentRow != null) |
|||
{ |
|||
// 获取选中行的 DataRow
|
|||
DataRow row = ((DataRowView)dataGridView1.CurrentRow.DataBoundItem).Row; |
|||
// 获取任务ID
|
|||
String id = (String)row["条码"]; |
|||
// 构建删除语句
|
|||
string deleteQuery = $"delete from Table_1 where 条码 = '{id}' "; |
|||
|
|||
using (SqlConnection connection1 = new SqlConnection(connectionString)) |
|||
{ |
|||
SqlCommand command = new SqlCommand(deleteQuery, connection); |
|||
command.Parameters.AddWithValue("@条码", id); |
|||
int rowsAffected = command.ExecuteNonQuery(); |
|||
LoadData(); |
|||
//if (rowsAffected > 0)
|
|||
//{
|
|||
// // 删除成功,移除 DataRow
|
|||
// row.Delete();
|
|||
|
|||
// // 重新加载数据
|
|||
// dataSet.Tables["Table_1"].AcceptChanges();
|
|||
// dataGridView1.DataSource = dataSet.Tables["Table_1"];
|
|||
// connection.Close();
|
|||
//}
|
|||
} |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,123 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
<xsd:attribute ref="xml:space" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
|||
<value>17, 17</value> |
|||
</metadata> |
|||
</root> |
@ -0,0 +1,22 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace 调度窗口 |
|||
{ |
|||
static class Program |
|||
{ |
|||
/// <summary>
|
|||
/// 应用程序的主入口点。
|
|||
/// </summary>
|
|||
[STAThread] |
|||
static void Main() |
|||
{ |
|||
Application.EnableVisualStyles(); |
|||
Application.SetCompatibleTextRenderingDefault(false); |
|||
Application.Run(new Form1()); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,36 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// 有关程序集的一般信息由以下
|
|||
// 控制。更改这些特性值可修改
|
|||
// 与程序集关联的信息。
|
|||
[assembly: AssemblyTitle("调度窗口")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("")] |
|||
[assembly: AssemblyProduct("调度窗口")] |
|||
[assembly: AssemblyCopyright("Copyright © 2024")] |
|||
[assembly: AssemblyTrademark("")] |
|||
[assembly: AssemblyCulture("")] |
|||
|
|||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
|||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
|||
//请将此类型的 ComVisible 特性设置为 true。
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|||
[assembly: Guid("78049ae8-6f50-451f-84d1-2bff55b7c6a3")] |
|||
|
|||
// 程序集的版本信息由下列四个值组成:
|
|||
//
|
|||
// 主版本
|
|||
// 次版本
|
|||
// 生成号
|
|||
// 修订号
|
|||
//
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
|||
//通过使用 "*",如下所示:
|
|||
// [assembly: AssemblyVersion("1.0.*")]
|
|||
[assembly: AssemblyVersion("1.0.0.0")] |
|||
[assembly: AssemblyFileVersion("1.0.0.0")] |
@ -0,0 +1,70 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// 此代码由工具生成。
|
|||
// 运行时版本: 4.0.30319.42000
|
|||
//
|
|||
// 对此文件的更改可能导致不正确的行为,如果
|
|||
// 重新生成代码,则所做更改将丢失。
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
|
|||
namespace 调度窗口.Properties |
|||
{ |
|||
/// <summary>
|
|||
/// 强类型资源类,用于查找本地化字符串等。
|
|||
/// </summary>
|
|||
// 此类是由 StronglyTypedResourceBuilder
|
|||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
|||
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
|||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
|||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] |
|||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|||
internal class Resources |
|||
{ |
|||
|
|||
private static global::System.Resources.ResourceManager resourceMan; |
|||
|
|||
private static global::System.Globalization.CultureInfo resourceCulture; |
|||
|
|||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
|||
internal Resources() |
|||
{ |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 返回此类使用的缓存 ResourceManager 实例。
|
|||
/// </summary>
|
|||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
|||
internal static global::System.Resources.ResourceManager ResourceManager |
|||
{ |
|||
get |
|||
{ |
|||
if ((resourceMan == null)) |
|||
{ |
|||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("调度窗口.Properties.Resources", typeof(Resources).Assembly); |
|||
resourceMan = temp; |
|||
} |
|||
return resourceMan; |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 重写当前线程的 CurrentUICulture 属性,对
|
|||
/// 使用此强类型资源类的所有资源查找执行重写。
|
|||
/// </summary>
|
|||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
|||
internal static global::System.Globalization.CultureInfo Culture |
|||
{ |
|||
get |
|||
{ |
|||
return resourceCulture; |
|||
} |
|||
set |
|||
{ |
|||
resourceCulture = value; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,117 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 2.0 |
|||
|
|||
The primary goals of this format is to allow a simple XML format |
|||
that is mostly human readable. The generation and parsing of the |
|||
various data types are done through the TypeConverter classes |
|||
associated with the data types. |
|||
|
|||
Example: |
|||
|
|||
... ado.net/XML headers & schema ... |
|||
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|||
<resheader name="version">2.0</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|||
<comment>This is a comment</comment> |
|||
</data> |
|||
|
|||
There are any number of "resheader" rows that contain simple |
|||
name/value pairs. |
|||
|
|||
Each data row contains a name, and value. The row also contains a |
|||
type or mimetype. Type corresponds to a .NET class that support |
|||
text/value conversion through the TypeConverter architecture. |
|||
Classes that don't support this are serialized and stored with the |
|||
mimetype set. |
|||
|
|||
The mimetype is used for serialized objects, and tells the |
|||
ResXResourceReader how to depersist the object. This is currently not |
|||
extensible. For a given mimetype the value must be set accordingly: |
|||
|
|||
Note - application/x-microsoft.net.object.binary.base64 is the format |
|||
that the ResXResourceWriter will generate, however the reader can |
|||
read any of the formats listed below. |
|||
|
|||
mimetype: application/x-microsoft.net.object.binary.base64 |
|||
value : The object must be serialized with |
|||
: System.Serialization.Formatters.Binary.BinaryFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.soap.base64 |
|||
value : The object must be serialized with |
|||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|||
: and then encoded with base64 encoding. |
|||
|
|||
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|||
value : The object must be serialized into a byte array |
|||
: using a System.ComponentModel.TypeConverter |
|||
: and then encoded with base64 encoding. |
|||
--> |
|||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|||
<xsd:element name="root" msdata:IsDataSet="true"> |
|||
<xsd:complexType> |
|||
<xsd:choice maxOccurs="unbounded"> |
|||
<xsd:element name="metadata"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
<xsd:attribute name="type" type="xsd:string" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="assembly"> |
|||
<xsd:complexType> |
|||
<xsd:attribute name="alias" type="xsd:string" /> |
|||
<xsd:attribute name="name" type="xsd:string" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="data"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
|||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
<xsd:element name="resheader"> |
|||
<xsd:complexType> |
|||
<xsd:sequence> |
|||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|||
</xsd:sequence> |
|||
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:choice> |
|||
</xsd:complexType> |
|||
</xsd:element> |
|||
</xsd:schema> |
|||
<resheader name="resmimetype"> |
|||
<value>text/microsoft-resx</value> |
|||
</resheader> |
|||
<resheader name="version"> |
|||
<value>2.0</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
</root> |
@ -0,0 +1,29 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was generated by a tool.
|
|||
// Runtime Version:4.0.30319.42000
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
|
|||
namespace 调度窗口.Properties |
|||
{ |
|||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] |
|||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase |
|||
{ |
|||
|
|||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
|||
|
|||
public static Settings Default |
|||
{ |
|||
get |
|||
{ |
|||
return defaultInstance; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,7 @@ |
|||
<?xml version='1.0' encoding='utf-8'?> |
|||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> |
|||
<Profiles> |
|||
<Profile Name="(Default)" /> |
|||
</Profiles> |
|||
<Settings /> |
|||
</SettingsFile> |
@ -0,0 +1,82 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
|||
<PropertyGroup> |
|||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|||
<ProjectGuid>{78049AE8-6F50-451F-84D1-2BFF55B7C6A3}</ProjectGuid> |
|||
<OutputType>WinExe</OutputType> |
|||
<RootNamespace>调度窗口</RootNamespace> |
|||
<AssemblyName>调度窗口</AssemblyName> |
|||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
|||
<FileAlignment>512</FileAlignment> |
|||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
|||
<Deterministic>true</Deterministic> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|||
<PlatformTarget>AnyCPU</PlatformTarget> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<DebugType>full</DebugType> |
|||
<Optimize>false</Optimize> |
|||
<OutputPath>bin\Debug\</OutputPath> |
|||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|||
<PlatformTarget>AnyCPU</PlatformTarget> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<OutputPath>bin\Release\</OutputPath> |
|||
<DefineConstants>TRACE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Reference Include="System" /> |
|||
<Reference Include="System.Core" /> |
|||
<Reference Include="System.Xml.Linq" /> |
|||
<Reference Include="System.Data.DataSetExtensions" /> |
|||
<Reference Include="Microsoft.CSharp" /> |
|||
<Reference Include="System.Data" /> |
|||
<Reference Include="System.Deployment" /> |
|||
<Reference Include="System.Drawing" /> |
|||
<Reference Include="System.Net.Http" /> |
|||
<Reference Include="System.Windows.Forms" /> |
|||
<Reference Include="System.Xml" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="Dao.cs" /> |
|||
<Compile Include="Data.cs" /> |
|||
<Compile Include="Form1.cs"> |
|||
<SubType>Form</SubType> |
|||
</Compile> |
|||
<Compile Include="Form1.Designer.cs"> |
|||
<DependentUpon>Form1.cs</DependentUpon> |
|||
</Compile> |
|||
<Compile Include="Program.cs" /> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
<EmbeddedResource Include="Form1.resx"> |
|||
<DependentUpon>Form1.cs</DependentUpon> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="Properties\Resources.resx"> |
|||
<Generator>ResXFileCodeGenerator</Generator> |
|||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
|||
<SubType>Designer</SubType> |
|||
</EmbeddedResource> |
|||
<Compile Include="Properties\Resources.Designer.cs"> |
|||
<AutoGen>True</AutoGen> |
|||
<DependentUpon>Resources.resx</DependentUpon> |
|||
</Compile> |
|||
<None Include="Properties\Settings.settings"> |
|||
<Generator>SettingsSingleFileGenerator</Generator> |
|||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
|||
</None> |
|||
<Compile Include="Properties\Settings.Designer.cs"> |
|||
<AutoGen>True</AutoGen> |
|||
<DependentUpon>Settings.settings</DependentUpon> |
|||
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
|||
</Compile> |
|||
</ItemGroup> |
|||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|||
</Project> |
Loading…
Reference in new issue