Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge remote-tracking branch 'origin/Develop' into Develop

dbf6887541ebaac3668.

Conflicts:
  • Loading branch information...
commit fd542ec858bc9966bfb0d22479161659b6bb824c 1 parent 1f41761
qicb authored
View
2  Application/Program.cs
@@ -14,7 +14,7 @@ static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new frMain());
+ Application.Run(new frmMain());
}
}
}
View
10 Application/WorkStation.csproj
@@ -111,11 +111,11 @@
<Compile Include="frmAddTask.Designer.cs">
<DependentUpon>frmAddTask.cs</DependentUpon>
</Compile>
- <Compile Include="frMain.cs">
+ <Compile Include="frmMain.cs">
<SubType>Form</SubType>
</Compile>
- <Compile Include="frMain.Designer.cs">
- <DependentUpon>frMain.cs</DependentUpon>
+ <Compile Include="frmMain.Designer.cs">
+ <DependentUpon>frmMain.cs</DependentUpon>
</Compile>
<Compile Include="frmAddItem.cs">
<SubType>Form</SubType>
@@ -191,8 +191,8 @@
<EmbeddedResource Include="frmAddTask.resx">
<DependentUpon>frmAddTask.cs</DependentUpon>
</EmbeddedResource>
- <EmbeddedResource Include="frMain.resx">
- <DependentUpon>frMain.cs</DependentUpon>
+ <EmbeddedResource Include="frmMain.resx">
+ <DependentUpon>frmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmAddItem.resx">
<DependentUpon>frmAddItem.cs</DependentUpon>
View
699 Application/frmAddTask.Designer.cs.orig
@@ -0,0 +1,699 @@
+namespace WorkStation
+{
+ partial class frmAddTask
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+<<<<<<< HEAD
+ {
+ this.lblName = new System.Windows.Forms.Label();
+ this.lblAlias = new System.Windows.Forms.Label();
+ this.lblRount = new System.Windows.Forms.Label();
+ this.lblPost = new System.Windows.Forms.Label();
+ this.lblTime = new System.Windows.Forms.Label();
+ this.lblCycle = new System.Windows.Forms.Label();
+ this.lblshengxiao = new System.Windows.Forms.Label();
+ this.lblshixiao = new System.Windows.Forms.Label();
+ this.txtName = new System.Windows.Forms.TextBox();
+ this.txtAlias = new System.Windows.Forms.TextBox();
+ this.cboRoute = new System.Windows.Forms.ComboBox();
+ this.dtpStart = new System.Windows.Forms.DateTimePicker();
+ this.dtpEffect = new System.Windows.Forms.DateTimePicker();
+ this.dtpIneffect = new System.Windows.Forms.DateTimePicker();
+ this.cboUnit = new System.Windows.Forms.ComboBox();
+ this.dtpEnd = new System.Windows.Forms.DateTimePicker();
+ this.label1 = new System.Windows.Forms.Label();
+ this.cboPost = new System.Windows.Forms.ComboBox();
+ this.btnSave = new System.Windows.Forms.Button();
+ this.btnEdit = new System.Windows.Forms.Button();
+ this.btnDel = new System.Windows.Forms.Button();
+ this.txtInterval = new System.Windows.Forms.TextBox();
+ this.dgvPlan = new System.Windows.Forms.DataGridView();
+ this.chkColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.labPlanID = new System.Windows.Forms.Label();
+ this.btnSubmit = new System.Windows.Forms.Button();
+ this.btnUnSub = new System.Windows.Forms.Button();
+ this.label2 = new System.Windows.Forms.Label();
+ this.cboShow = new System.Windows.Forms.ComboBox();
+ this.labState = new System.Windows.Forms.Label();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvPlan)).BeginInit();
+ this.SuspendLayout();
+ //
+ // lblName
+ //
+ this.lblName.AutoSize = true;
+ this.lblName.Location = new System.Drawing.Point(68, 26);
+ this.lblName.Name = "lblName";
+ this.lblName.Size = new System.Drawing.Size(53, 12);
+ this.lblName.TabIndex = 0;
+ this.lblName.Text = "计划名称";
+ //
+ // lblAlias
+ //
+ this.lblAlias.AutoSize = true;
+ this.lblAlias.Location = new System.Drawing.Point(378, 27);
+ this.lblAlias.Name = "lblAlias";
+ this.lblAlias.Size = new System.Drawing.Size(53, 12);
+ this.lblAlias.TabIndex = 1;
+ this.lblAlias.Text = "计划别名";
+ //
+ // lblRount
+ //
+ this.lblRount.AutoSize = true;
+ this.lblRount.Location = new System.Drawing.Point(68, 64);
+ this.lblRount.Name = "lblRount";
+ this.lblRount.Size = new System.Drawing.Size(53, 12);
+ this.lblRount.TabIndex = 2;
+ this.lblRount.Text = "巡检路线";
+ //
+ // lblPost
+ //
+ this.lblPost.AutoSize = true;
+ this.lblPost.Location = new System.Drawing.Point(378, 64);
+ this.lblPost.Name = "lblPost";
+ this.lblPost.Size = new System.Drawing.Size(53, 12);
+ this.lblPost.TabIndex = 3;
+ this.lblPost.Text = "指派岗位";
+ //
+ // lblTime
+ //
+ this.lblTime.AutoSize = true;
+ this.lblTime.Location = new System.Drawing.Point(44, 105);
+ this.lblTime.Name = "lblTime";
+ this.lblTime.Size = new System.Drawing.Size(77, 12);
+ this.lblTime.TabIndex = 4;
+ this.lblTime.Text = "执行开始时间";
+ //
+ // lblCycle
+ //
+ this.lblCycle.AutoSize = true;
+ this.lblCycle.Location = new System.Drawing.Point(68, 183);
+ this.lblCycle.Name = "lblCycle";
+ this.lblCycle.Size = new System.Drawing.Size(53, 12);
+ this.lblCycle.TabIndex = 5;
+ this.lblCycle.Text = "循环周期";
+ //
+ // lblshengxiao
+ //
+ this.lblshengxiao.AutoSize = true;
+ this.lblshengxiao.Location = new System.Drawing.Point(44, 142);
+ this.lblshengxiao.Name = "lblshengxiao";
+ this.lblshengxiao.Size = new System.Drawing.Size(77, 12);
+ this.lblshengxiao.TabIndex = 6;
+ this.lblshengxiao.Text = "任务生效时间";
+ //
+ // lblshixiao
+ //
+ this.lblshixiao.AutoSize = true;
+ this.lblshixiao.Location = new System.Drawing.Point(354, 142);
+ this.lblshixiao.Name = "lblshixiao";
+ this.lblshixiao.Size = new System.Drawing.Size(77, 12);
+ this.lblshixiao.TabIndex = 7;
+ this.lblshixiao.Text = "任务失效时间";
+ //
+ // txtName
+ //
+ this.txtName.Location = new System.Drawing.Point(127, 22);
+ this.txtName.Name = "txtName";
+ this.txtName.Size = new System.Drawing.Size(183, 21);
+ this.txtName.TabIndex = 8;
+ //
+ // txtAlias
+ //
+ this.txtAlias.Location = new System.Drawing.Point(447, 22);
+ this.txtAlias.Name = "txtAlias";
+ this.txtAlias.Size = new System.Drawing.Size(183, 21);
+ this.txtAlias.TabIndex = 9;
+ //
+ // cboRoute
+ //
+ this.cboRoute.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cboRoute.FormattingEnabled = true;
+ this.cboRoute.Items.AddRange(new object[] {
+ "选择路线"});
+ this.cboRoute.Location = new System.Drawing.Point(127, 61);
+ this.cboRoute.Name = "cboRoute";
+ this.cboRoute.Size = new System.Drawing.Size(183, 20);
+ this.cboRoute.TabIndex = 18;
+ //
+ // dtpStart
+ //
+ this.dtpStart.CustomFormat = "yyyy\'年\'MM\'月\'dd\'日\' hh\':\'mm";
+ this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.dtpStart.Location = new System.Drawing.Point(127, 101);
+ this.dtpStart.Name = "dtpStart";
+ this.dtpStart.Size = new System.Drawing.Size(183, 21);
+ this.dtpStart.TabIndex = 19;
+ //
+ // dtpEffect
+ //
+ this.dtpEffect.Location = new System.Drawing.Point(127, 138);
+ this.dtpEffect.Name = "dtpEffect";
+ this.dtpEffect.Size = new System.Drawing.Size(183, 21);
+ this.dtpEffect.TabIndex = 22;
+ //
+ // dtpIneffect
+ //
+ this.dtpIneffect.Location = new System.Drawing.Point(447, 138);
+ this.dtpIneffect.Name = "dtpIneffect";
+ this.dtpIneffect.Size = new System.Drawing.Size(183, 21);
+ this.dtpIneffect.TabIndex = 23;
+ //
+ // cboUnit
+ //
+ this.cboUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cboUnit.FormattingEnabled = true;
+ this.cboUnit.Items.AddRange(new object[] {
+ "选择路线"});
+ this.cboUnit.Location = new System.Drawing.Point(179, 177);
+ this.cboUnit.Name = "cboUnit";
+ this.cboUnit.Size = new System.Drawing.Size(59, 20);
+ this.cboUnit.TabIndex = 24;
+ //
+ // dtpEnd
+ //
+ this.dtpEnd.CustomFormat = "yyyy\'年\'MM\'月\'dd\'日\' hh\':\'mm";
+ this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+ this.dtpEnd.Location = new System.Drawing.Point(447, 101);
+ this.dtpEnd.Name = "dtpEnd";
+ this.dtpEnd.Size = new System.Drawing.Size(183, 21);
+ this.dtpEnd.TabIndex = 25;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(354, 105);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 26;
+ this.label1.Text = "执行结束时间";
+ //
+ // cboPost
+ //
+ this.cboPost.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cboPost.FormattingEnabled = true;
+ this.cboPost.Items.AddRange(new object[] {
+ "选择路线"});
+ this.cboPost.Location = new System.Drawing.Point(447, 61);
+ this.cboPost.Name = "cboPost";
+ this.cboPost.Size = new System.Drawing.Size(183, 20);
+ this.cboPost.TabIndex = 27;
+ //
+ // btnSave
+ //
+ this.btnSave.Location = new System.Drawing.Point(280, 209);
+ this.btnSave.Name = "btnSave";
+ this.btnSave.Size = new System.Drawing.Size(75, 23);
+ this.btnSave.TabIndex = 29;
+ this.btnSave.Text = "保存";
+ this.btnSave.UseVisualStyleBackColor = true;
+ this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
+ //
+ // btnEdit
+ //
+ this.btnEdit.Location = new System.Drawing.Point(364, 209);
+ this.btnEdit.Name = "btnEdit";
+ this.btnEdit.Size = new System.Drawing.Size(75, 23);
+ this.btnEdit.TabIndex = 30;
+ this.btnEdit.Text = "编辑";
+ this.btnEdit.UseVisualStyleBackColor = true;
+ this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
+ //
+ // btnDel
+ //
+ this.btnDel.Location = new System.Drawing.Point(445, 209);
+ this.btnDel.Name = "btnDel";
+ this.btnDel.Size = new System.Drawing.Size(75, 23);
+ this.btnDel.TabIndex = 31;
+ this.btnDel.Text = "删除";
+ this.btnDel.UseVisualStyleBackColor = true;
+ this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
+ //
+ // txtInterval
+ //
+ this.txtInterval.Location = new System.Drawing.Point(127, 177);
+ this.txtInterval.Name = "txtInterval";
+ this.txtInterval.Size = new System.Drawing.Size(46, 21);
+ this.txtInterval.TabIndex = 32;
+ //
+ // dgvPlan
+ //
+ this.dgvPlan.AllowUserToAddRows = false;
+ this.dgvPlan.AllowUserToDeleteRows = false;
+ this.dgvPlan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvPlan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.chkColumn});
+ this.dgvPlan.Location = new System.Drawing.Point(24, 245);
+ this.dgvPlan.Name = "dgvPlan";
+ this.dgvPlan.ReadOnly = true;
+ this.dgvPlan.RowTemplate.Height = 23;
+ this.dgvPlan.Size = new System.Drawing.Size(686, 305);
+ this.dgvPlan.TabIndex = 33;
+ this.dgvPlan.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPlan_CellClick);
+ //
+ // chkColumn
+ //
+ this.chkColumn.HeaderText = "选择";
+ this.chkColumn.Name = "chkColumn";
+ this.chkColumn.ReadOnly = true;
+ this.chkColumn.Width = 38;
+ //
+ // labPlanID
+ //
+ this.labPlanID.AutoSize = true;
+ this.labPlanID.Location = new System.Drawing.Point(268, 181);
+ this.labPlanID.Name = "labPlanID";
+ this.labPlanID.Size = new System.Drawing.Size(41, 12);
+ this.labPlanID.TabIndex = 34;
+ this.labPlanID.Text = "计划ID";
+ this.labPlanID.Visible = false;
+ //
+ // btnSubmit
+ //
+ this.btnSubmit.Location = new System.Drawing.Point(526, 208);
+ this.btnSubmit.Name = "btnSubmit";
+ this.btnSubmit.Size = new System.Drawing.Size(75, 23);
+ this.btnSubmit.TabIndex = 35;
+ this.btnSubmit.Text = "提交";
+ this.btnSubmit.UseVisualStyleBackColor = true;
+ this.btnSubmit.Click += new System.EventHandler(this.btnSubmit_Click);
+ //
+ // btnUnSub
+ //
+ this.btnUnSub.Location = new System.Drawing.Point(607, 208);
+ this.btnUnSub.Name = "btnUnSub";
+ this.btnUnSub.Size = new System.Drawing.Size(75, 23);
+ this.btnUnSub.TabIndex = 36;
+ this.btnUnSub.Text = "撤销提交";
+ this.btnUnSub.UseVisualStyleBackColor = true;
+ this.btnUnSub.Click += new System.EventHandler(this.btnUnSub_Click);
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(68, 214);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(29, 12);
+ this.label2.TabIndex = 37;
+ this.label2.Text = "显示";
+ //
+ // cboShow
+ //
+ this.cboShow.FormattingEnabled = true;
+ this.cboShow.Location = new System.Drawing.Point(127, 210);
+ this.cboShow.Name = "cboShow";
+ this.cboShow.Size = new System.Drawing.Size(121, 20);
+ this.cboShow.TabIndex = 38;
+ this.cboShow.SelectedIndexChanged += new System.EventHandler(this.cboShow_SelectedIndexChanged);
+ //
+ // labState
+ //
+ this.labState.AutoSize = true;
+ this.labState.Location = new System.Drawing.Point(354, 181);
+ this.labState.Name = "labState";
+ this.labState.Size = new System.Drawing.Size(29, 12);
+ this.labState.TabIndex = 39;
+ this.labState.Text = "状态";
+ //
+ // frmAddTask
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+ this.ClientSize = new System.Drawing.Size(722, 562);
+ this.Controls.Add(this.labState);
+ this.Controls.Add(this.cboShow);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.btnUnSub);
+ this.Controls.Add(this.btnSubmit);
+ this.Controls.Add(this.labPlanID);
+ this.Controls.Add(this.dgvPlan);
+ this.Controls.Add(this.txtInterval);
+ this.Controls.Add(this.btnDel);
+ this.Controls.Add(this.btnEdit);
+ this.Controls.Add(this.btnSave);
+ this.Controls.Add(this.cboPost);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.dtpEnd);
+ this.Controls.Add(this.cboUnit);
+ this.Controls.Add(this.dtpIneffect);
+ this.Controls.Add(this.dtpEffect);
+ this.Controls.Add(this.dtpStart);
+ this.Controls.Add(this.cboRoute);
+ this.Controls.Add(this.txtAlias);
+ this.Controls.Add(this.txtName);
+ this.Controls.Add(this.lblshixiao);
+ this.Controls.Add(this.lblshengxiao);
+ this.Controls.Add(this.lblCycle);
+ this.Controls.Add(this.lblTime);
+ this.Controls.Add(this.lblPost);
+ this.Controls.Add(this.lblRount);
+ this.Controls.Add(this.lblAlias);
+ this.Controls.Add(this.lblName);
+ this.MaximizeBox = false;
+ this.Name = "frmAddTask";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "计划管理";
+ this.Load += new System.EventHandler(this.frmAddTask_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvPlan)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+=======
+ {
+ this.lblName = new System.Windows.Forms.Label();
+ this.lblAlias = new System.Windows.Forms.Label();
+ this.lblRount = new System.Windows.Forms.Label();
+ this.lblPost = new System.Windows.Forms.Label();
+ this.lblTime = new System.Windows.Forms.Label();
+ this.lblCycle = new System.Windows.Forms.Label();
+ this.lblshengxiao = new System.Windows.Forms.Label();
+ this.lblshixiao = new System.Windows.Forms.Label();
+ this.txtName = new System.Windows.Forms.TextBox();
+ this.txtAlias = new System.Windows.Forms.TextBox();
+ this.txtgangwei = new System.Windows.Forms.TextBox();
+ this.listView1 = new System.Windows.Forms.ListView();
+ this.ColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.ColumnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.btnSave = new System.Windows.Forms.Button();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.listBox1 = new System.Windows.Forms.ListBox();
+ this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
+ this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker();
+ this.SuspendLayout();
+ //
+ // lblName
+ //
+ this.lblName.AutoSize = true;
+ this.lblName.Location = new System.Drawing.Point(179, 35);
+ this.lblName.Name = "lblName";
+ this.lblName.Size = new System.Drawing.Size(29, 12);
+ this.lblName.TabIndex = 0;
+ this.lblName.Text = "名称";
+ //
+ // lblAlias
+ //
+ this.lblAlias.AutoSize = true;
+ this.lblAlias.Location = new System.Drawing.Point(179, 68);
+ this.lblAlias.Name = "lblAlias";
+ this.lblAlias.Size = new System.Drawing.Size(29, 12);
+ this.lblAlias.TabIndex = 1;
+ this.lblAlias.Text = "别名";
+ //
+ // lblRount
+ //
+ this.lblRount.AutoSize = true;
+ this.lblRount.Location = new System.Drawing.Point(155, 95);
+ this.lblRount.Name = "lblRount";
+ this.lblRount.Size = new System.Drawing.Size(53, 12);
+ this.lblRount.TabIndex = 2;
+ this.lblRount.Text = "巡检路线";
+ //
+ // lblPost
+ //
+ this.lblPost.AutoSize = true;
+ this.lblPost.Location = new System.Drawing.Point(155, 124);
+ this.lblPost.Name = "lblPost";
+ this.lblPost.Size = new System.Drawing.Size(53, 12);
+ this.lblPost.TabIndex = 3;
+ this.lblPost.Text = "指派岗位";
+ //
+ // lblTime
+ //
+ this.lblTime.AutoSize = true;
+ this.lblTime.Location = new System.Drawing.Point(155, 152);
+ this.lblTime.Name = "lblTime";
+ this.lblTime.Size = new System.Drawing.Size(53, 12);
+ this.lblTime.TabIndex = 4;
+ this.lblTime.Text = "巡检时间";
+ //
+ // lblCycle
+ //
+ this.lblCycle.AutoSize = true;
+ this.lblCycle.Location = new System.Drawing.Point(155, 187);
+ this.lblCycle.Name = "lblCycle";
+ this.lblCycle.Size = new System.Drawing.Size(53, 12);
+ this.lblCycle.TabIndex = 5;
+ this.lblCycle.Text = "巡检周期";
+ //
+ // lblshengxiao
+ //
+ this.lblshengxiao.AutoSize = true;
+ this.lblshengxiao.Location = new System.Drawing.Point(155, 223);
+ this.lblshengxiao.Name = "lblshengxiao";
+ this.lblshengxiao.Size = new System.Drawing.Size(53, 12);
+ this.lblshengxiao.TabIndex = 6;
+ this.lblshengxiao.Text = "生效时间";
+ //
+ // lblshixiao
+ //
+ this.lblshixiao.AutoSize = true;
+ this.lblshixiao.Location = new System.Drawing.Point(155, 260);
+ this.lblshixiao.Name = "lblshixiao";
+ this.lblshixiao.Size = new System.Drawing.Size(53, 12);
+ this.lblshixiao.TabIndex = 7;
+ this.lblshixiao.Text = "失效时间";
+ //
+ // txtName
+ //
+ this.txtName.Location = new System.Drawing.Point(263, 32);
+ this.txtName.Name = "txtName";
+ this.txtName.Size = new System.Drawing.Size(183, 21);
+ this.txtName.TabIndex = 8;
+ //
+ // txtAlias
+ //
+ this.txtAlias.Location = new System.Drawing.Point(263, 59);
+ this.txtAlias.Name = "txtAlias";
+ this.txtAlias.Size = new System.Drawing.Size(183, 21);
+ this.txtAlias.TabIndex = 9;
+ //
+ // txtgangwei
+ //
+ this.txtgangwei.Location = new System.Drawing.Point(263, 115);
+ this.txtgangwei.Name = "txtgangwei";
+ this.txtgangwei.Size = new System.Drawing.Size(183, 21);
+ this.txtgangwei.TabIndex = 11;
+ //
+ // listView1
+ //
+ this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.ColumnHeader,
+ this.ColumnHeader2,
+ this.ColumnHeader3,
+ this.ColumnHeader4,
+ this.ColumnHeader5,
+ this.ColumnHeader6,
+ this.ColumnHeader7,
+ this.ColumnHeader8,
+ this.ColumnHeader9});
+ this.listView1.GridLines = true;
+ this.listView1.Location = new System.Drawing.Point(8, 293);
+ this.listView1.Name = "listView1";
+ this.listView1.Size = new System.Drawing.Size(746, 219);
+ this.listView1.TabIndex = 16;
+ this.listView1.UseCompatibleStateImageBehavior = false;
+ this.listView1.View = System.Windows.Forms.View.Details;
+ //
+ // ColumnHeader
+ //
+ this.ColumnHeader.Text = "编号";
+ //
+ // ColumnHeader2
+ //
+ this.ColumnHeader2.Text = "名称";
+ //
+ // ColumnHeader3
+ //
+ this.ColumnHeader3.Text = "别名";
+ //
+ // ColumnHeader4
+ //
+ this.ColumnHeader4.Text = "巡检路线";
+ this.ColumnHeader4.Width = 109;
+ //
+ // ColumnHeader5
+ //
+ this.ColumnHeader5.Text = "指派岗位";
+ this.ColumnHeader5.Width = 105;
+ //
+ // ColumnHeader6
+ //
+ this.ColumnHeader6.Text = "巡检时间";
+ this.ColumnHeader6.Width = 100;
+ //
+ // ColumnHeader7
+ //
+ this.ColumnHeader7.Text = "巡检周期";
+ this.ColumnHeader7.Width = 75;
+ //
+ // ColumnHeader8
+ //
+ this.ColumnHeader8.Text = "生效时间";
+ this.ColumnHeader8.Width = 75;
+ //
+ // ColumnHeader9
+ //
+ this.ColumnHeader9.Text = "失效时间";
+ this.ColumnHeader9.Width = 80;
+ //
+ // btnSave
+ //
+ this.btnSave.Location = new System.Drawing.Point(590, 245);
+ this.btnSave.Name = "btnSave";
+ this.btnSave.Size = new System.Drawing.Size(75, 27);
+ this.btnSave.TabIndex = 17;
+ this.btnSave.Text = "保存";
+ this.btnSave.UseVisualStyleBackColor = true;
+ //
+ // comboBox1
+ //
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Items.AddRange(new object[] {
+ "选择路线"});
+ this.comboBox1.Location = new System.Drawing.Point(263, 89);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(183, 20);
+ this.comboBox1.TabIndex = 18;
+ //
+ // dateTimePicker1
+ //
+ this.dateTimePicker1.Location = new System.Drawing.Point(263, 143);
+ this.dateTimePicker1.Name = "dateTimePicker1";
+ this.dateTimePicker1.Size = new System.Drawing.Size(183, 21);
+ this.dateTimePicker1.TabIndex = 19;
+ //
+ // textBox1
+ //
+ this.textBox1.Location = new System.Drawing.Point(263, 178);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(68, 21);
+ this.textBox1.TabIndex = 20;
+ //
+ // listBox1
+ //
+ this.listBox1.FormattingEnabled = true;
+ this.listBox1.ItemHeight = 12;
+ this.listBox1.Items.AddRange(new object[] {
+ "时",
+ "天",
+ "周",
+ "月",
+ "年"});
+ this.listBox1.Location = new System.Drawing.Point(347, 174);
+ this.listBox1.Name = "listBox1";
+ this.listBox1.Size = new System.Drawing.Size(99, 40);
+ this.listBox1.TabIndex = 21;
+ //
+ // dateTimePicker2
+ //
+ this.dateTimePicker2.Location = new System.Drawing.Point(263, 223);
+ this.dateTimePicker2.Name = "dateTimePicker2";
+ this.dateTimePicker2.Size = new System.Drawing.Size(183, 21);
+ this.dateTimePicker2.TabIndex = 22;
+ //
+ // dateTimePicker3
+ //
+ this.dateTimePicker3.Location = new System.Drawing.Point(263, 256);
+ this.dateTimePicker3.Name = "dateTimePicker3";
+ this.dateTimePicker3.Size = new System.Drawing.Size(183, 21);
+ this.dateTimePicker3.TabIndex = 23;
+ //
+ // frmAddTask
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(766, 562);
+ this.Controls.Add(this.dateTimePicker3);
+ this.Controls.Add(this.dateTimePicker2);
+ this.Controls.Add(this.listBox1);
+ this.Controls.Add(this.textBox1);
+ this.Controls.Add(this.dateTimePicker1);
+ this.Controls.Add(this.comboBox1);
+ this.Controls.Add(this.btnSave);
+ this.Controls.Add(this.listView1);
+ this.Controls.Add(this.txtgangwei);
+ this.Controls.Add(this.txtAlias);
+ this.Controls.Add(this.txtName);
+ this.Controls.Add(this.lblshixiao);
+ this.Controls.Add(this.lblshengxiao);
+ this.Controls.Add(this.lblCycle);
+ this.Controls.Add(this.lblTime);
+ this.Controls.Add(this.lblPost);
+ this.Controls.Add(this.lblRount);
+ this.Controls.Add(this.lblAlias);
+ this.Controls.Add(this.lblName);
+ this.Name = "frmAddTask";
+ this.Text = "新建任务";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+>>>>>>> katway/Develop
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label lblName;
+ private System.Windows.Forms.Label lblAlias;
+ private System.Windows.Forms.Label lblRount;
+ private System.Windows.Forms.Label lblPost;
+ private System.Windows.Forms.Label lblTime;
+ private System.Windows.Forms.Label lblCycle;
+ private System.Windows.Forms.Label lblshengxiao;
+ private System.Windows.Forms.Label lblshixiao;
+ private System.Windows.Forms.TextBox txtName;
+ private System.Windows.Forms.TextBox txtAlias;
+ private System.Windows.Forms.ComboBox cboRoute;
+ private System.Windows.Forms.DateTimePicker dtpStart;
+ private System.Windows.Forms.DateTimePicker dtpEffect;
+ private System.Windows.Forms.DateTimePicker dtpIneffect;
+ private System.Windows.Forms.ComboBox cboUnit;
+ private System.Windows.Forms.DateTimePicker dtpEnd;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.ComboBox cboPost;
+ private System.Windows.Forms.Button btnSave;
+ private System.Windows.Forms.Button btnEdit;
+ private System.Windows.Forms.Button btnDel;
+ private System.Windows.Forms.TextBox txtInterval;
+ private System.Windows.Forms.DataGridView dgvPlan;
+ private System.Windows.Forms.DataGridViewCheckBoxColumn chkColumn;
+ private System.Windows.Forms.Label labPlanID;
+ private System.Windows.Forms.Button btnSubmit;
+ private System.Windows.Forms.Button btnUnSub;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.ComboBox cboShow;
+ private System.Windows.Forms.Label labState;
+ }
+}
View
356 Application/frmAddTask.cs.orig
@@ -0,0 +1,356 @@
+<<<<<<< HEAD
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using System.Data.SqlClient;
+
+namespace WorkStation
+{
+ public partial class frmAddTask : Form
+ {
+ public frmAddTask()
+ {
+ InitializeComponent();
+ }
+
+ private void frmAddTask_Load(object sender, EventArgs e)
+ {
+ this.labPlanID.Text = "";
+ this.labState.Text = "";
+ cboinit();
+
+ this.labState.Text = (this.cboShow.SelectedItem as BoxItem).Value.ToString() == "" ? "0,1,2,4,6,8,16" : (this.cboShow.SelectedItem as BoxItem).Value.ToString();
+ getDgvPlan();
+ }
+
+ private void dgvPlan_CellClick(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex == -1) return;
+ if (e.ColumnIndex == 0)
+ {
+ if ((bool)dgvPlan.Rows[e.RowIndex].Cells[0].EditedFormattedValue == false)
+ {
+ dgvPlan.Rows[e.RowIndex].Cells[0].Value = true;
+ }
+ else
+ {
+ dgvPlan.Rows[e.RowIndex].Cells[0].Value = false;
+ }
+ }
+ else
+ {
+ labPlanID.Text = dgvPlan.Rows[e.RowIndex].Cells[1].Value.ToString();
+ txtName.Text = dgvPlan.Rows[e.RowIndex].Cells[2].Value.ToString();
+ txtAlias.Text = dgvPlan.Rows[e.RowIndex].Cells[3].Value.ToString();
+ dtpStart.Value = Convert.ToDateTime(dgvPlan.Rows[e.RowIndex].Cells[4].Value.ToString());
+ dtpEnd.Value = Convert.ToDateTime(dgvPlan.Rows[e.RowIndex].Cells[6].Value.ToString());
+ cboPost.SelectedText = dgvPlan.Rows[e.RowIndex].Cells[7].Value.ToString();
+ cboRoute.SelectedText = dgvPlan.Rows[e.RowIndex].Cells[8].Value.ToString();
+ txtInterval.Text = dgvPlan.Rows[e.RowIndex].Cells[9].Value.ToString();
+ cboUnit.SelectedText = dgvPlan.Rows[e.RowIndex].Cells[10].Value.ToString();
+ dtpEffect.Value = Convert.ToDateTime(dgvPlan.Rows[e.RowIndex].Cells[11].Value.ToString());
+ dtpIneffect.Value = Convert.ToDateTime(dgvPlan.Rows[e.RowIndex].Cells[12].Value.ToString());
+
+ }
+ }
+
+ private void cboinit()
+ {
+ DataSet ds=SqlHelper.ExecuteDataset("Select Code,Meaning From Codes Where Purpose='IntervalUnit'");
+ cboUnit.DataSource=ds.Tables[0];
+ cboUnit.DisplayMember = "Meaning";
+ cboUnit.ValueMember = "Code";
+ cboUnit.SelectedIndex = cboUnit.Items.Count > 0 ? 0 : -1;
+
+ ds.Dispose();
+ ds = SqlHelper.ExecuteDataset("Select ID,Site_ID,Name From Post");
+ cboPost.DataSource=ds.Tables[0];
+ cboPost.DisplayMember = "Name";
+ cboPost.ValueMember = "ID";
+ cboPost.SelectedIndex = cboPost.Items.Count > 0 ? 0 : -1;
+
+ ds.Dispose();
+ ds = SqlHelper.ExecuteDataset("Select ID,Name From CheckRoute");
+ cboRoute.DataSource = ds.Tables[0];
+ cboRoute.DisplayMember = "Name";
+ cboRoute.ValueMember = "ID";
+ cboRoute.SelectedIndex = cboRoute.Items.Count > 0 ? 0 : -1;
+
+ ds.Dispose();
+
+ SqlDataReader dr = SqlHelper.ExecuteReader("Select Code,Meaning From Codes Where Purpose='PlanState'");
+ BoxItem item = null;
+ item = new BoxItem("全部","");
+ cboShow.Items.Add(item);
+ while (dr.Read())
+ {
+ item = new BoxItem();
+ item.Text = dr["Meaning"].ToString();
+ item.Value = dr["Code"].ToString();
+ cboShow.Items.Add(item);
+ }
+ dr.Dispose();
+ cboShow.SelectedIndex = cboShow.Items.Count > 0 ? 0 : -1;
+
+ }
+
+ private void getDgvPlan()
+ {
+ DataSet ds = SqlHelper.ExecuteDataset(@"Select
+ c.ID as 计划编号,
+ c.Name as 计划名称,
+ c.Alias as 别名,
+ c.StartTime as 计划开始时间,
+ c.Duration as 持续时间,
+ c.EndTime as 计划结束时间,
+ p.Name as 指派岗位,
+ r.Name as 路线,
+ c.Interval as 周期,
+ co.code as 周期单位,
+ c.EffectiveTime as 计划生效时间,
+ c.IneffectiveTime as 计划失效时间,
+ c.Planner as 计划制定人,
+ case c.PlanState when 0 then '新建'
+ when 1 then '已提交'
+ when 2 then '已审核'
+ when 4 then '已下发'
+ when 8 then '过期'
+ when '16' then '丢弃' end as 状态
+ From Checkplan as c left join CheckRoute as r on c.route_id=r.id
+ left join Post p on c.post=p.id
+ left join Codes co on c.IntervalUnit=co.purpose where c.PlanState in ("+labState.Text+")");
+ dgvPlan.DataSource=ds.Tables[0];
+ }
+
+ private void btnSave_Click(object sender, EventArgs e)
+ {
+ if (txtName.Text.Trim() == "" || txtInterval.Text.Trim() == "")
+ {
+ MessageBox.Show("请确保没有空值");
+ return;
+ }
+ if (SqlHelper.ExecuteScalar("Select count(1) From CheckPlan Where Name='" + this.txtName.Text.Trim() + "'").ToString()!="0")
+ {
+ MessageBox.Show("请确保计划名称的唯一性");
+ return;
+ }
+ string strInsert = @"Insert into CheckPlan(Name,Alias,StartTime,Duration,EndTime,Post,Route_ID,Interval,IntervalUnit,EffectiveTime,IneffectiveTime,Planner,PlanState) values
+ (@Name,@Alias,@StartTime,@Duration,@EndTime,@Post,@Route_ID,@Interval,@IntervalUnit,@EffectiveTime,@IneffectiveTime,@Planner,@PlanState)";
+ SqlParameter[] pars = new SqlParameter[] {
+ new SqlParameter("@Name",SqlDbType.VarChar),
+ new SqlParameter("@Alias",SqlDbType.VarChar),
+ new SqlParameter("@StartTime",SqlDbType.DateTime),
+ new SqlParameter("@Duration",SqlDbType.DateTime),
+ new SqlParameter("@EndTime",SqlDbType.DateTime),
+ new SqlParameter("@Post",SqlDbType.BigInt),
+ new SqlParameter("@Route_ID",SqlDbType.BigInt),
+ new SqlParameter("@Interval",SqlDbType.Int),
+ new SqlParameter("@IntervalUnit",SqlDbType.Char),
+ new SqlParameter("@EffectiveTime",SqlDbType.DateTime),
+ new SqlParameter("@IneffectiveTime",SqlDbType.DateTime),
+ new SqlParameter("@Planner",SqlDbType.Float),
+ new SqlParameter("@PlanState",SqlDbType.Int)
+ };
+ pars[0].Value = this.txtName.Text.Trim();
+ pars[1].Value = this.txtAlias.Text.Trim();
+ pars[2].Value = this.dtpStart.Value;
+ pars[3].Value = this.dtpStart.Value;
+ pars[4].Value = this.dtpEnd.Value;
+ pars[5].Value = this.cboPost.SelectedValue;
+ pars[6].Value = this.cboRoute.SelectedValue;
+ pars[7].Value = this.txtInterval.Text.Trim();
+ pars[8].Value = this.cboUnit.SelectedValue;
+ pars[9].Value = this.dtpEffect.Value;
+ pars[10].Value = this.dtpIneffect.Value;
+ pars[11].Value = 88888888;
+ pars[12].Value = 0;
+ if (SqlHelper.ExecuteNonQuery(strInsert, pars) != 1)
+ {
+ MessageBox.Show("保存失败,请稍后再试!");
+ }
+ getDgvPlan();
+ }
+
+ private void btnEdit_Click(object sender, EventArgs e)
+ {
+ if (labPlanID.Text.Trim() == "")
+ {
+ MessageBox.Show("请选择要修改的项");
+ return;
+ }
+ if (txtName.Text.Trim() == "" || txtInterval.Text.Trim() == "")
+ {
+ MessageBox.Show("请确保没有空值");
+ return;
+ }
+ if (SqlHelper.ExecuteScalar("Select count(1) From CheckPlan Where Name='" + this.txtName.Text.Trim() + "' and id !="+labPlanID.Text.Trim()).ToString() != "0")
+ {
+ MessageBox.Show("请确保计划名称的唯一性");
+ return;
+ }
+ string strInsert = "Update CheckPlan Set Name=@Name,Alias=@Alias,StartTime=@StartTime,Duration=@Duration,EndTime=@EndTime,Post=@Post,Route_ID=@Route_ID,Interval=@Interval,IntervalUnit=@IntervalUnit,EffectiveTime=@EffectiveTime,IneffectiveTime=@IneffectiveTime,Planner=@Planner Where ID=@ID and PlanState =0";
+ SqlParameter[] pars = new SqlParameter[] {
+ new SqlParameter("@Name",SqlDbType.VarChar),
+ new SqlParameter("@Alias",SqlDbType.VarChar),
+ new SqlParameter("@StartTime",SqlDbType.DateTime),
+ new SqlParameter("@Duration",SqlDbType.DateTime),
+ new SqlParameter("@EndTime",SqlDbType.DateTime),
+ new SqlParameter("@Post",SqlDbType.BigInt),
+ new SqlParameter("@Route_ID",SqlDbType.BigInt),
+ new SqlParameter("@Interval",SqlDbType.Int),
+ new SqlParameter("@IntervalUnit",SqlDbType.Char),
+ new SqlParameter("@EffectiveTime",SqlDbType.DateTime),
+ new SqlParameter("@IneffectiveTime",SqlDbType.DateTime),
+ new SqlParameter("Planner",SqlDbType.BigInt),
+ new SqlParameter("ID",SqlDbType.BigInt)
+ };
+ pars[0].Value = this.txtName.Text.Trim();
+ pars[1].Value = this.txtAlias.Text.Trim();
+ pars[2].Value = this.dtpStart.Value;
+ pars[3].Value = this.dtpStart.Value;
+ pars[4].Value = this.dtpEnd.Value;
+ pars[5].Value = this.cboPost.SelectedValue;
+ pars[6].Value = this.cboRoute.SelectedValue;
+ pars[7].Value = this.txtInterval.Text.Trim();
+ pars[8].Value = this.cboUnit.SelectedValue;
+ pars[9].Value = this.dtpEffect.Value;
+ pars[10].Value = this.dtpIneffect.Value;
+ pars[11].Value = 88888888;
+ pars[12].Value = this.labPlanID.Text.Trim();
+ if (SqlHelper.ExecuteNonQuery(strInsert, pars) != 1)
+ {
+ MessageBox.Show("保存失败,请稍后再试!");
+ }
+ getDgvPlan();
+ }
+
+ private void btnDel_Click(object sender, EventArgs e)
+ {
+ string Del = "";
+ string strsql = "Delete From CheckPlan Where ID in(";
+ for (int i = 0; i < dgvPlan.Rows.Count; i++)
+ {
+ try
+ {
+ if ((bool)dgvPlan.Rows[i].Cells[0].Value == true)
+ {
+ Del += dgvPlan.Rows[i].Cells[1].Value.ToString() + ",";
+ }
+ }
+ catch
+ {
+ continue;
+ }
+ }
+ if (Del != "")
+ {
+ Del = Del.Substring(0, Del.Length - 1);
+ strsql += Del + ") and PlanState=0";
+ SqlHelper.ExecuteNonQuery(strsql);
+ getDgvPlan();
+ }
+ else
+ {
+ MessageBox.Show("请选择要删除的项。");
+ }
+ }
+
+ private void btnSubmit_Click(object sender, EventArgs e)
+ {
+ string update = "";
+ string strUpdae = "Update CheckPlan Set PlanState=1 where Id in(";
+ for (int i = 0; i < dgvPlan.Rows.Count; i++)
+ {
+ try
+ {
+ if ((bool)dgvPlan.Rows[i].Cells[0].Value == true)
+ {
+ update += dgvPlan.Rows[i].Cells[1].Value.ToString() + ",";
+ }
+ }
+ catch
+ {
+ continue;
+ }
+ }
+ if (update != "")
+ {
+ update = update.Substring(0, update.Length - 1);
+ strUpdae += update + ") and PlanState=0";
+ SqlHelper.ExecuteNonQuery(strUpdae);
+ getDgvPlan();
+ }
+ else
+ {
+ MessageBox.Show("请选择要提交的项");
+ }
+ }
+
+ private void btnUnSub_Click(object sender, EventArgs e)
+ {
+ string update = "";
+ string strUpdae = "Update CheckPlan Set PlanState=0 where Id in(";
+ for (int i = 0; i < dgvPlan.Rows.Count; i++)
+ {
+ try
+ {
+ if ((bool)dgvPlan.Rows[i].Cells[0].Value == true)
+ {
+ update += dgvPlan.Rows[i].Cells[1].Value.ToString() + ",";
+ }
+ }
+ catch
+ {
+ continue;
+ }
+ }
+ if (update != "")
+ {
+ update = update.Substring(0, update.Length - 1);
+ strUpdae += update + ") and PlanState=1";
+ SqlHelper.ExecuteNonQuery(strUpdae);
+ getDgvPlan();
+ }
+ else
+ {
+ MessageBox.Show("请选择要撤销提交的项");
+ }
+ }
+
+ private void cboShow_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.labState.Text = (this.cboShow.SelectedItem as BoxItem).Value.ToString() == "" ? "0,1,2,4,6,8,16" : (this.cboShow.SelectedItem as BoxItem).Value.ToString();
+ getDgvPlan();
+ }
+
+
+ }
+}
+=======
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WorkStation
+{
+ public partial class frmAddTask : Form
+ {
+ public frmAddTask()
+ {
+ InitializeComponent();
+ }
+
+
+ }
+}
+>>>>>>> katway/Develop
View
229 Application/frmain.Designer.cs → Application/frmMain.Designer.cs
@@ -1,6 +1,6 @@
namespace WorkStation
{
- partial class frMain
+ partial class frmMain
{
/// <summary>
/// Required designer variable.
@@ -28,7 +28,7 @@ protected override void Dispose(bool disposing)
/// </summary>
private void InitializeComponent()
{
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frMain));
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel7 = new System.Windows.Forms.Panel();
@@ -104,14 +104,27 @@ private void InitializeComponent()
this.tsmixunjianxiangs = new System.Windows.Forms.ToolStripMenuItem();
this.tsmishebeixunjianxiang = new System.Windows.Forms.ToolStripMenuItem();
this.tsmjichu = new System.Windows.Forms.ToolStripMenuItem();
- this.tsmigongshimingcheng = new System.Windows.Forms.ToolStripMenuItem();
this.tsmichangquguanli = new System.Windows.Forms.ToolStripMenuItem();
- this.tsmichejian = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmichangquAdd = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmichangquEdit = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmichangquDelete = new System.Windows.Forms.ToolStripMenuItem();
this.tsmigangwei = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmigangweiAdd = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmigangweiEdit = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmigangweiDelete = new System.Windows.Forms.ToolStripMenuItem();
this.tsmirenyuan = new System.Windows.Forms.ToolStripMenuItem();
- this.tsmibanci = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmirenyuanAdd = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmirenyuanEdit = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmirenyuanDelete = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmiCompany = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmiCompanyAdd = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmiCompanyEdit = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmiCompanyDel = new System.Windows.Forms.ToolStripMenuItem();
this.tsmkapiam = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiluruxinka = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmiCardAdd = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmiCardEdit = new System.Windows.Forms.ToolStripMenuItem();
+ this.tsmiCardDel = new System.Windows.Forms.ToolStripMenuItem();
this.tsmibianjiyongtu = new System.Windows.Forms.ToolStripMenuItem();
this.tsmizhuxiaokapian = new System.Windows.Forms.ToolStripMenuItem();
this.tsmhelp = new System.Windows.Forms.ToolStripMenuItem();
@@ -158,7 +171,7 @@ private void InitializeComponent()
//
this.splitContainer1.Panel2.Controls.Add(this.panel1);
this.splitContainer1.Panel2.Controls.Add(this.toolStrip2);
- this.splitContainer1.Size = new System.Drawing.Size(831, 474);
+ this.splitContainer1.Size = new System.Drawing.Size(860, 474);
this.splitContainer1.SplitterDistance = 230;
this.splitContainer1.SplitterWidth = 3;
this.splitContainer1.TabIndex = 7;
@@ -421,7 +434,7 @@ private void InitializeComponent()
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 25);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(598, 449);
+ this.panel1.Size = new System.Drawing.Size(627, 449);
this.panel1.TabIndex = 1;
//
// listView1
@@ -440,7 +453,7 @@ private void InitializeComponent()
this.listView1.GridLines = true;
this.listView1.Location = new System.Drawing.Point(0, 0);
this.listView1.Name = "listView1";
- this.listView1.Size = new System.Drawing.Size(598, 449);
+ this.listView1.Size = new System.Drawing.Size(627, 449);
this.listView1.TabIndex = 2;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details;
@@ -460,26 +473,32 @@ private void InitializeComponent()
// columnHeader4
//
this.columnHeader4.Text = "巡检路线";
+ this.columnHeader4.Width = 63;
//
// columnHeader5
//
this.columnHeader5.Text = "指派岗位";
+ this.columnHeader5.Width = 68;
//
// columnHeader6
//
this.columnHeader6.Text = "巡检时间";
+ this.columnHeader6.Width = 65;
//
// columnHeader7
//
this.columnHeader7.Text = "巡检周期";
+ this.columnHeader7.Width = 69;
//
// columnHeader8
//
this.columnHeader8.Text = "生效时间";
+ this.columnHeader8.Width = 64;
//
// columnHeader9
//
this.columnHeader9.Text = "失效时间";
+ this.columnHeader9.Width = 67;
//
// toolStrip2
//
@@ -493,7 +512,7 @@ private void InitializeComponent()
this.toolStripButton9});
this.toolStrip2.Location = new System.Drawing.Point(0, 0);
this.toolStrip2.Name = "toolStrip2";
- this.toolStrip2.Size = new System.Drawing.Size(598, 25);
+ this.toolStrip2.Size = new System.Drawing.Size(627, 25);
this.toolStrip2.TabIndex = 0;
this.toolStrip2.Text = "toolStrip2";
//
@@ -546,7 +565,7 @@ private void InitializeComponent()
this.帮助LToolStripButton});
this.toolStrip1.Location = new System.Drawing.Point(0, 24);
this.toolStrip1.Name = "toolStrip1";
- this.toolStrip1.Size = new System.Drawing.Size(831, 31);
+ this.toolStrip1.Size = new System.Drawing.Size(860, 31);
this.toolStrip1.TabIndex = 5;
this.toolStrip1.Text = "toolStrip1";
//
@@ -637,7 +656,7 @@ private void InitializeComponent()
this.tsmhelp});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(831, 24);
+ this.menuStrip1.Size = new System.Drawing.Size(860, 24);
this.menuStrip1.TabIndex = 4;
this.menuStrip1.Text = "menuStrip1";
//
@@ -692,7 +711,8 @@ private void InitializeComponent()
// tsmidelete1
//
this.tsmidelete1.Name = "tsmidelete1";
- this.tsmidelete1.Size = new System.Drawing.Size(115, 6);
+ this.tsmidelete1.Size = new System.Drawing.Size(152, 22);
+ this.tsmidelete1.Text = "删除";
//
// tsmishenhe1
//
@@ -787,52 +807,138 @@ private void InitializeComponent()
// tsmjichu
//
this.tsmjichu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.tsmigongshimingcheng,
this.tsmichangquguanli,
- this.tsmichejian,
this.tsmigangwei,
this.tsmirenyuan,
- this.tsmibanci});
+ this.tsmiCompany});
this.tsmjichu.Image = ((System.Drawing.Image)(resources.GetObject("tsmjichu.Image")));
this.tsmjichu.Name = "tsmjichu";
this.tsmjichu.Size = new System.Drawing.Size(81, 20);
this.tsmjichu.Text = "基础信息";
//
- // tsmigongshimingcheng
- //
- this.tsmigongshimingcheng.Name = "tsmigongshimingcheng";
- this.tsmigongshimingcheng.Size = new System.Drawing.Size(118, 22);
- this.tsmigongshimingcheng.Text = "公司名称";
- //
// tsmichangquguanli
//
+ this.tsmichangquguanli.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.tsmichangquAdd,
+ this.tsmichangquEdit,
+ this.tsmichangquDelete});
this.tsmichangquguanli.Name = "tsmichangquguanli";
- this.tsmichangquguanli.Size = new System.Drawing.Size(118, 22);
+ this.tsmichangquguanli.Size = new System.Drawing.Size(152, 22);
this.tsmichangquguanli.Text = "厂区管理";
//
- // tsmichejian
+ // tsmichangquAdd
+ //
+ this.tsmichangquAdd.Name = "tsmichangquAdd";
+ this.tsmichangquAdd.Size = new System.Drawing.Size(94, 22);
+ this.tsmichangquAdd.Text = "新建";
+ this.tsmichangquAdd.Click += new System.EventHandler(this.tsmichangquAdd_Click);
+ //
+ // tsmichangquEdit
//
- this.tsmichejian.Name = "tsmichejian";
- this.tsmichejian.Size = new System.Drawing.Size(118, 22);
- this.tsmichejian.Text = "车间管理";
+ this.tsmichangquEdit.Name = "tsmichangquEdit";
+ this.tsmichangquEdit.Size = new System.Drawing.Size(94, 22);
+ this.tsmichangquEdit.Text = "编辑";
+ this.tsmichangquEdit.Click += new System.EventHandler(this.tsmichangquEdit_Click);
+ //
+ // tsmichangquDelete
+ //
+ this.tsmichangquDelete.Name = "tsmichangquDelete";
+ this.tsmichangquDelete.Size = new System.Drawing.Size(94, 22);
+ this.tsmichangquDelete.Text = "删除";
+ this.tsmichangquDelete.Click += new System.EventHandler(this.tsmichangquDelete_Click);
//
// tsmigangwei
//
+ this.tsmigangwei.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.tsmigangweiAdd,
+ this.tsmigangweiEdit,
+ this.tsmigangweiDelete});
this.tsmigangwei.Name = "tsmigangwei";
- this.tsmigangwei.Size = new System.Drawing.Size(118, 22);
+ this.tsmigangwei.Size = new System.Drawing.Size(152, 22);
this.tsmigangwei.Text = "岗位管理";
//
+ // tsmigangweiAdd
+ //
+ this.tsmigangweiAdd.Name = "tsmigangweiAdd";
+ this.tsmigangweiAdd.Size = new System.Drawing.Size(94, 22);
+ this.tsmigangweiAdd.Text = "新建";
+ this.tsmigangweiAdd.Click += new System.EventHandler(this.tsmigangweiAdd_Click);
+ //
+ // tsmigangweiEdit
+ //
+ this.tsmigangweiEdit.Name = "tsmigangweiEdit";
+ this.tsmigangweiEdit.Size = new System.Drawing.Size(94, 22);
+ this.tsmigangweiEdit.Text = "编辑";
+ this.tsmigangweiEdit.Click += new System.EventHandler(this.tsmigangweiEdit_Click);
+ //
+ // tsmigangweiDelete
+ //
+ this.tsmigangweiDelete.Name = "tsmigangweiDelete";
+ this.tsmigangweiDelete.Size = new System.Drawing.Size(94, 22);
+ this.tsmigangweiDelete.Text = "删除";
+ this.tsmigangweiDelete.Click += new System.EventHandler(this.tsmigangweiDelete_Click);
+ //
// tsmirenyuan
//
+ this.tsmirenyuan.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.tsmirenyuanAdd,
+ this.tsmirenyuanEdit,
+ this.tsmirenyuanDelete});
this.tsmirenyuan.Name = "tsmirenyuan";
- this.tsmirenyuan.Size = new System.Drawing.Size(118, 22);
+ this.tsmirenyuan.Size = new System.Drawing.Size(152, 22);
this.tsmirenyuan.Text = "人员管理";
//
- // tsmibanci
+ // tsmirenyuanAdd
+ //
+ this.tsmirenyuanAdd.Name = "tsmirenyuanAdd";
+ this.tsmirenyuanAdd.Size = new System.Drawing.Size(94, 22);
+ this.tsmirenyuanAdd.Text = "新建";
+ this.tsmirenyuanAdd.Click += new System.EventHandler(this.tsmirenyuanAdd_Click);
+ //
+ // tsmirenyuanEdit
+ //
+ this.tsmirenyuanEdit.Name = "tsmirenyuanEdit";
+ this.tsmirenyuanEdit.Size = new System.Drawing.Size(94, 22);
+ this.tsmirenyuanEdit.Text = "编辑";
+ this.tsmirenyuanEdit.Click += new System.EventHandler(this.tsmirenyuanEdit_Click);
//
- this.tsmibanci.Name = "tsmibanci";
- this.tsmibanci.Size = new System.Drawing.Size(118, 22);
- this.tsmibanci.Text = "班次管理";
+ // tsmirenyuanDelete
+ //
+ this.tsmirenyuanDelete.Name = "tsmirenyuanDelete";
+ this.tsmirenyuanDelete.Size = new System.Drawing.Size(94, 22);
+ this.tsmirenyuanDelete.Text = "删除";
+ this.tsmirenyuanDelete.Click += new System.EventHandler(this.tsmirenyuanDelete_Click);
+ //
+ // tsmiCompany
+ //
+ this.tsmiCompany.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.tsmiCompanyAdd,
+ this.tsmiCompanyEdit,
+ this.tsmiCompanyDel});
+ this.tsmiCompany.Name = "tsmiCompany";
+ this.tsmiCompany.Size = new System.Drawing.Size(152, 22);
+ this.tsmiCompany.Text = "公司管理";
+ //
+ // tsmiCompanyAdd
+ //
+ this.tsmiCompanyAdd.Name = "tsmiCompanyAdd";
+ this.tsmiCompanyAdd.Size = new System.Drawing.Size(152, 22);
+ this.tsmiCompanyAdd.Text = "新建";
+ this.tsmiCompanyAdd.Click += new System.EventHandler(this.tsmiCompanyAdd_Click);
+ //
+ // tsmiCompanyEdit
+ //
+ this.tsmiCompanyEdit.Name = "tsmiCompanyEdit";
+ this.tsmiCompanyEdit.Size = new System.Drawing.Size(152, 22);
+ this.tsmiCompanyEdit.Text = "编辑";
+ this.tsmiCompanyEdit.Click += new System.EventHandler(this.tsmiCompanyEdit_Click);
+ //
+ // tsmiCompanyDel
+ //
+ this.tsmiCompanyDel.Name = "tsmiCompanyDel";
+ this.tsmiCompanyDel.Size = new System.Drawing.Size(152, 22);
+ this.tsmiCompanyDel.Text = "删除";
+ this.tsmiCompanyDel.Click += new System.EventHandler(this.tsmiCompanyDel_Click);
//
// tsmkapiam
//
@@ -847,20 +953,45 @@ private void InitializeComponent()
//
// tsmiluruxinka
//
+ this.tsmiluruxinka.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.tsmiCardAdd,
+ this.tsmiCardEdit,
+ this.tsmiCardDel});
this.tsmiluruxinka.Name = "tsmiluruxinka";
- this.tsmiluruxinka.Size = new System.Drawing.Size(118, 22);
+ this.tsmiluruxinka.Size = new System.Drawing.Size(152, 22);
this.tsmiluruxinka.Text = "录入新卡";
//
+ // tsmiCardAdd
+ //
+ this.tsmiCardAdd.Name = "tsmiCardAdd";
+ this.tsmiCardAdd.Size = new System.Drawing.Size(94, 22);
+ this.tsmiCardAdd.Text = "新建";
+ this.tsmiCardAdd.Click += new System.EventHandler(this.tsmiCardAdd_Click);
+ //
+ // tsmiCardEdit
+ //
+ this.tsmiCardEdit.Name = "tsmiCardEdit";
+ this.tsmiCardEdit.Size = new System.Drawing.Size(94, 22);
+ this.tsmiCardEdit.Text = "编辑";
+ this.tsmiCardEdit.Click += new System.EventHandler(this.tsmiCardEdit_Click);
+ //
+ // tsmiCardDel
+ //
+ this.tsmiCardDel.Name = "tsmiCardDel";
+ this.tsmiCardDel.Size = new System.Drawing.Size(94, 22);
+ this.tsmiCardDel.Text = "删除";
+ this.tsmiCardDel.Click += new System.EventHandler(this.tsmiCardDel_Click);
+ //
// tsmibianjiyongtu
//
this.tsmibianjiyongtu.Name = "tsmibianjiyongtu";
- this.tsmibianjiyongtu.Size = new System.Drawing.Size(118, 22);
+ this.tsmibianjiyongtu.Size = new System.Drawing.Size(152, 22);
this.tsmibianjiyongtu.Text = "编辑用途";
//
// tsmizhuxiaokapian
//
this.tsmizhuxiaokapian.Name = "tsmizhuxiaokapian";
- this.tsmizhuxiaokapian.Size = new System.Drawing.Size(118, 22);
+ this.tsmizhuxiaokapian.Size = new System.Drawing.Size(152, 22);
this.tsmizhuxiaokapian.Text = "注销卡片";
//
// tsmhelp
@@ -885,20 +1016,20 @@ private void InitializeComponent()
this.toolStripStatusLabel2});
this.statusStrip1.Location = new System.Drawing.Point(0, 529);
this.statusStrip1.Name = "statusStrip1";
- this.statusStrip1.Size = new System.Drawing.Size(831, 22);
+ this.statusStrip1.Size = new System.Drawing.Size(860, 22);
this.statusStrip1.TabIndex = 6;
this.statusStrip1.Text = "statusStrip1";
//
- // frmain
+ // frmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(831, 551);
+ this.ClientSize = new System.Drawing.Size(860, 551);
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.statusStrip1);
- this.Name = "frmain";
+ this.Name = "frmMain";
this.Text = "frmain";
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
@@ -967,12 +1098,9 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem tsmixunjianxiangs;
private System.Windows.Forms.ToolStripMenuItem tsmishebeixunjianxiang;
private System.Windows.Forms.ToolStripMenuItem tsmjichu;
- private System.Windows.Forms.ToolStripMenuItem tsmigongshimingcheng;
private System.Windows.Forms.ToolStripMenuItem tsmichangquguanli;
- private System.Windows.Forms.ToolStripMenuItem tsmichejian;
private System.Windows.Forms.ToolStripMenuItem tsmigangwei;
private System.Windows.Forms.ToolStripMenuItem tsmirenyuan;
- private System.Windows.Forms.ToolStripMenuItem tsmibanci;
private System.Windows.Forms.ToolStripMenuItem tsmkapiam;
private System.Windows.Forms.ToolStripMenuItem tsmiluruxinka;
private System.Windows.Forms.ToolStripMenuItem tsmibianjiyongtu;
@@ -1021,6 +1149,21 @@ private void InitializeComponent()
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Button btnItem;
- private System.Windows.Forms.ToolStripSeparator tsmidelete1;
+ private System.Windows.Forms.ToolStripMenuItem tsmichangquAdd;
+ private System.Windows.Forms.ToolStripMenuItem tsmichangquEdit;
+ private System.Windows.Forms.ToolStripMenuItem tsmichangquDelete;
+ private System.Windows.Forms.ToolStripMenuItem tsmigangweiAdd;
+ private System.Windows.Forms.ToolStripMenuItem tsmigangweiEdit;
+ private System.Windows.Forms.ToolStripMenuItem tsmigangweiDelete;
+ private System.Windows.Forms.ToolStripMenuItem tsmirenyuanAdd;
+ private System.Windows.Forms.ToolStripMenuItem tsmirenyuanEdit;
+ private System.Windows.Forms.ToolStripMenuItem tsmirenyuanDelete;
+ private System.Windows.Forms.ToolStripMenuItem tsmiCardAdd;
+ private System.Windows.Forms.ToolStripMenuItem tsmiCardEdit;
+ private System.Windows.Forms.ToolStripMenuItem tsmiCardDel;
+ private System.Windows.Forms.ToolStripMenuItem tsmiCompany;
+ private System.Windows.Forms.ToolStripMenuItem tsmiCompanyAdd;
+ private System.Windows.Forms.ToolStripMenuItem tsmiCompanyEdit;
+ private System.Windows.Forms.ToolStripMenuItem tsmiCompanyDel;
}
}
View
316 Application/frmMain.cs
@@ -0,0 +1,316 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WorkStation
+{
+ public partial class frmMain : Form
+ {
+ public frmMain()
+ {
+ InitializeComponent();
+ }
+ private void Application_Load(object sender, EventArgs e)
+ {
+ btnItem_Click(sender, e);
+ }
+ private void ShowProject(int CurrentRow)
+ {
+ for (int i = 0; i < this.tableLayoutPanel1.RowStyles.Count; i++)
+ {
+ if (i == CurrentRow)
+ {
+ this.tableLayoutPanel1.RowStyles[i].SizeType = SizeType.Percent;
+ this.tableLayoutPanel1.RowStyles[i].Height = 1;
+ }
+ else
+ {
+ this.tableLayoutPanel1.RowStyles[i].SizeType = SizeType.Absolute;
+ this.tableLayoutPanel1.RowStyles[i].Height = 25;
+ }
+ }
+ }
+
+ private void btnItem_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(0);
+
+ this.treeView1.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("巡检项模版");
+ this.treeView1.Nodes.Add(root1);
+
+ TreeNode type_Build = new TreeNode("新建");
+ root1.Nodes.Add(type_Build);
+
+ TreeNode type_Edit = new TreeNode("编辑");
+ root1.Nodes.Add(type_Edit);
+
+ TreeNode type_Delete = new TreeNode("删除");
+ root1.Nodes.Add(type_Delete);
+ root1.Toggle();
+ }
+
+ private void btnTask_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(1);
+ this.treeView2.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("任务管理");
+ this.treeView2.Nodes.Add(root1);
+
+ TreeNode type_Buld = new TreeNode("新建");
+ root1.Nodes.Add(type_Buld);
+
+ TreeNode type_Edit = new TreeNode("编辑");
+ root1.Nodes.Add(type_Edit);
+
+ TreeNode type_Delete = new TreeNode("删除");
+ root1.Nodes.Add(type_Delete);
+
+ TreeNode type_shenhe1= new TreeNode("审核");
+ root1.Nodes.Add(type_shenhe1);
+
+ TreeNode type_xiafa= new TreeNode("下发");
+ root1.Nodes.Add(type_xiafa);
+
+ TreeNode type_Exits = new TreeNode("退出");
+ root1.Nodes.Add(type_Exits);
+
+ }
+
+ private void btnReport_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(2);
+ this.treeView3.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("统计报表");
+ this.treeView3.Nodes.Add(root1);
+
+ TreeNode type_renyuan = new TreeNode("人员出勤统计");
+ root1.Nodes.Add(type_renyuan);
+
+ TreeNode type_xunjianxiang = new TreeNode("巡检项统计");
+ root1.Nodes.Add(type_xunjianxiang);
+
+ TreeNode type_chuqin = new TreeNode("出勤异常统计");
+ root1.Nodes.Add(type_chuqin);
+
+ TreeNode type_dianjian = new TreeNode("点检异常统计");
+ root1.Nodes.Add(type_dianjian);
+
+ }
+
+ private void btnInfo_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(3);
+ this.treeView5.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("巡检信息");
+ this.treeView5.Nodes.Add(root1);
+
+ TreeNode type_xunjianluxian = new TreeNode("巡检路线管理");
+ root1.Nodes.Add(type_xunjianluxian);
+
+ TreeNode type_xunjiandian = new TreeNode("巡检点管理");
+ root1.Nodes.Add(type_xunjiandian);
+
+ TreeNode type_xunjianxiang = new TreeNode("巡检项管理");
+ root1.Nodes.Add(type_xunjianxiang);
+
+ TreeNode type_shebeixunjianxiang = new TreeNode("设备巡检项管理");
+ root1.Nodes.Add(type_shebeixunjianxiang);
+
+ }
+
+ private void btnBasic_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(4);
+ this.treeView6.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("基础信息");
+ this.treeView6.Nodes.Add(root1);
+
+ TreeNode type_Name = new TreeNode("公司名称");
+ root1.Nodes.Add(type_Name);
+
+ TreeNode type_changqu = new TreeNode("厂区管理");
+ root1.Nodes.Add(type_changqu);
+
+ TreeNode type_chejian = new TreeNode("车间管理");
+ root1.Nodes.Add(type_chejian);
+
+ TreeNode type_gangwei = new TreeNode("岗位管理");
+ root1.Nodes.Add(type_gangwei);
+
+ TreeNode type_renyuan = new TreeNode("人员管理");
+ root1.Nodes.Add(type_renyuan);
+
+ TreeNode type_banci = new TreeNode("班次管理");
+ root1.Nodes.Add(type_banci);
+
+ }
+
+ private void btnCard_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(5);
+ this.treeView7.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("卡片管理");
+ this.treeView7.Nodes.Add(root1);
+
+ TreeNode type_xinka = new TreeNode("录入新卡");
+ root1.Nodes.Add(type_xinka);
+
+ TreeNode type_yongtu = new TreeNode("编辑用途");
+ root1.Nodes.Add(type_yongtu);
+
+ TreeNode type_zhuxiaokapian = new TreeNode("注销卡片");
+ root1.Nodes.Add(type_zhuxiaokapian);
+
+ }
+
+ //新建巡检项
+ private void tsmixunjianxiangs_Click(object sender, EventArgs e)
+ {
+ frmAddItem additem = new frmAddItem();
+ additem.ShowDialog();
+ }
+
+ //新建巡检点
+ private void tsmixunjiandian_Click(object sender, EventArgs e)
+ {
+ frmAddPoint addpoint = new frmAddPoint();
+ addpoint.ShowDialog();
+ }
+
+ //新建设备
+ private void tsmishebeixunjianxiang_Click(object sender, EventArgs e)
+ {
+ frmAddMachine fm = new frmAddMachine();
+ fm.ShowDialog();
+ }
+
+ private void tsmixunjianluxian_Click(object sender, EventArgs e)
+ {
+ frmAddRoute frm = new frmAddRoute();
+ frm.Left = this.Left + (this.Width - frm.Width) / 2;
+ frm.Top = this.Top + (this.Height - frm.Height) / 2;
+ frm.Show() ;
+ }
+
+ private void tsmixinjian1_Click(object sender, EventArgs e)
+ {
+ frmAddPlan frm = new frmAddPlan();
+ frm.ShowDialog();
+ }
+
+ private void tsmishenhe1_Click(object sender, EventArgs e)
+ {
+ frmAddPlanExamine frm = new frmAddPlanExamine();
+ frm.Show();
+ }
+
+ private void tsmixiafa1_Click(object sender, EventArgs e)
+ {
+ frmAddPlanToTask add = new frmAddPlanToTask();
+ add.ShowDialog();
+ }
+
+ private void tsmigangweiAdd_Click(object sender, EventArgs e)
+ frmAddPost post = new frmAddPost();
+ post.Show();
+ private void tsmichangquAdd_Click(object sender, EventArgs e)
+ SiteNew site = new SiteNew();
+ site.Show();
+
+ private void tsmichangquEdit_Click(object sender, EventArgs e)
+ {
+ SiteEditDelete sitedel = new SiteEditDelete();
+ sitedel.Show();
+
+ }
+
+ private void tsmichangquDelete_Click(object sender, EventArgs e)
+ {
+ SiteEditDelete sitedel = new SiteEditDelete();
+ sitedel.Show();
+
+ }
+
+ private void tsmigangweiEdit_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeletePost post = new frmEditOrDeletePost();
+ post.Show();
+ }
+
+ private void tsmigangweiDelete_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeletePost post = new frmEditOrDeletePost();
+ post.Show();
+ }
+
+ private void tsmirenyuanAdd_Click(object sender, EventArgs e)
+ {
+ frmAddEmployee employee = new frmAddEmployee();
+ employee.Show();
+ }
+
+ private void tsmirenyuanEdit_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteEmployee frmdel = new frmEditOrDeleteEmployee();
+ frmdel.Show();
+ }
+
+ private void tsmirenyuanDelete_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteEmployee frmdel = new frmEditOrDeleteEmployee();
+ frmdel.Show();
+ }
+
+ private void tsmiCardAdd_Click(object sender, EventArgs e)
+ {
+ frmAddCard card = new frmAddCard();
+ card.Show();
+ }
+
+ private void tsmiCardEdit_Click(object sender, EventArgs e)
+ {
+ frmEditAndDeleteCard card1 = new frmEditAndDeleteCard();
+ card1.Show();
+ }
+
+ private void tsmiCardDel_Click(object sender, EventArgs e)
+ {
+ frmEditAndDeleteCard card1 = new frmEditAndDeleteCard();
+ card1.Show();
+
+ }
+
+ private void tsmiCompanyAdd_Click(object sender, EventArgs e)
+ {
+ frmAddCompany com = new frmAddCompany();
+ com.Show();
+ }
+
+ private void tsmiCompanyEdit_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteCompany com2 = new frmEditOrDeleteCompany();
+ com2.Show();
+
+ }
+
+ private void tsmiCompanyDel_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteCompany com2 = new frmEditOrDeleteCompany();
+ com2.Show();
+ }
+
+
+ }
+}
View
4 Application/frmain.cs → Application/frmMain.cs~HEAD
@@ -9,9 +9,9 @@
namespace WorkStation
{
- public partial class frMain : Form
+ public partial class frmMain : Form
{
- public frMain()
+ public frmMain()
{
InitializeComponent();
}
View
275 Application/frmMain.cs~katway_Develop
@@ -0,0 +1,275 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WorkStation
+{
+ public partial class frmMain : Form
+ {
+ public frmMain()
+ {
+ InitializeComponent();
+ }
+ private void Application_Load(object sender, EventArgs e)
+ {
+ btnItem_Click(sender, e);
+ }
+ private void ShowProject(int CurrentRow)
+ {
+ for (int i = 0; i < this.tableLayoutPanel1.RowStyles.Count; i++)
+ {
+ if (i == CurrentRow)
+ {
+ this.tableLayoutPanel1.RowStyles[i].SizeType = SizeType.Percent;
+ this.tableLayoutPanel1.RowStyles[i].Height = 1;
+ }
+ else
+ {
+ this.tableLayoutPanel1.RowStyles[i].SizeType = SizeType.Absolute;
+ this.tableLayoutPanel1.RowStyles[i].Height = 25;
+ }
+ }
+ }
+
+ private void btnItem_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(0);
+
+ this.treeView1.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("巡检项模版");
+ this.treeView1.Nodes.Add(root1);
+
+ TreeNode type_Build = new TreeNode("新建");
+ root1.Nodes.Add(type_Build);
+
+ TreeNode type_Edit = new TreeNode("编辑");
+ root1.Nodes.Add(type_Edit);
+
+ TreeNode type_Delete = new TreeNode("删除");
+ root1.Nodes.Add(type_Delete);
+ root1.Toggle();
+ }
+
+ private void btnTask_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(1);
+ this.treeView2.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("任务管理");
+ this.treeView2.Nodes.Add(root1);
+
+ TreeNode type_Buld = new TreeNode("新建");
+ root1.Nodes.Add(type_Buld);
+
+ TreeNode type_Edit = new TreeNode("编辑");
+ root1.Nodes.Add(type_Edit);
+
+ TreeNode type_Delete = new TreeNode("删除");
+ root1.Nodes.Add(type_Delete);
+
+ TreeNode type_shenhe1 = new TreeNode("审核");
+ root1.Nodes.Add(type_shenhe1);
+
+ TreeNode type_xiafa = new TreeNode("下发");
+ root1.Nodes.Add(type_xiafa);
+
+ TreeNode type_Exits = new TreeNode("退出");
+ root1.Nodes.Add(type_Exits);
+
+ }
+
+ private void btnReport_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(2);
+ this.treeView3.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("统计报表");
+ this.treeView3.Nodes.Add(root1);
+
+ TreeNode type_renyuan = new TreeNode("人员出勤统计");
+ root1.Nodes.Add(type_renyuan);
+
+ TreeNode type_xunjianxiang = new TreeNode("巡检项统计");
+ root1.Nodes.Add(type_xunjianxiang);
+
+ TreeNode type_chuqin = new TreeNode("出勤异常统计");
+ root1.Nodes.Add(type_chuqin);
+
+ TreeNode type_dianjian = new TreeNode("点检异常统计");
+ root1.Nodes.Add(type_dianjian);
+
+ }
+
+ private void btnInfo_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(3);
+ this.treeView5.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("巡检信息");
+ this.treeView5.Nodes.Add(root1);
+
+ TreeNode type_xunjianluxian = new TreeNode("巡检路线管理");
+ root1.Nodes.Add(type_xunjianluxian);
+
+ TreeNode type_xunjiandian = new TreeNode("巡检点管理");
+ root1.Nodes.Add(type_xunjiandian);
+
+ TreeNode type_xunjianxiang = new TreeNode("巡检项管理");
+ root1.Nodes.Add(type_xunjianxiang);
+
+ TreeNode type_shebeixunjianxiang = new TreeNode("设备巡检项管理");
+ root1.Nodes.Add(type_shebeixunjianxiang);
+
+ }
+
+ private void btnBasic_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(4);
+ this.treeView6.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("基础信息");
+ this.treeView6.Nodes.Add(root1);
+
+ TreeNode type_Name = new TreeNode("公司名称");
+ root1.Nodes.Add(type_Name);
+
+ TreeNode type_changqu = new TreeNode("厂区管理");
+ root1.Nodes.Add(type_changqu);
+
+ TreeNode type_chejian = new TreeNode("车间管理");
+ root1.Nodes.Add(type_chejian);
+
+ TreeNode type_gangwei = new TreeNode("岗位管理");
+ root1.Nodes.Add(type_gangwei);
+
+ TreeNode type_renyuan = new TreeNode("人员管理");
+ root1.Nodes.Add(type_renyuan);
+
+ TreeNode type_banci = new TreeNode("班次管理");
+ root1.Nodes.Add(type_banci);
+
+ }
+
+ private void btnCard_Click(object sender, EventArgs e)
+ {
+ this.ShowProject(5);
+ this.treeView7.Nodes.Clear();
+
+ TreeNode root1 = new TreeNode("卡片管理");
+ this.treeView7.Nodes.Add(root1);
+
+ TreeNode type_xinka = new TreeNode("录入新卡");
+ root1.Nodes.Add(type_xinka);
+
+ TreeNode type_yongtu = new TreeNode("编辑用途");
+ root1.Nodes.Add(type_yongtu);
+
+ TreeNode type_zhuxiaokapian = new TreeNode("注销卡片");
+ root1.Nodes.Add(type_zhuxiaokapian);
+
+ }
+
+ private void tsmigangweiAdd_Click(object sender, EventArgs e)
+ frmAddPost post = new frmAddPost();
+ post.Show();
+ private void tsmichangquAdd_Click(object sender, EventArgs e)
+ SiteNew site = new SiteNew();
+ site.Show();
+
+ private void tsmichangquEdit_Click(object sender, EventArgs e)
+ {
+ SiteEditDelete sitedel = new SiteEditDelete();
+ sitedel.Show();
+
+ }
+
+ private void tsmichangquDelete_Click(object sender, EventArgs e)
+ {
+ SiteEditDelete sitedel = new SiteEditDelete();
+ sitedel.Show();
+
+ }
+
+ private void tsmigangweiEdit_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeletePost post = new frmEditOrDeletePost();
+ post.Show();
+ }
+
+ private void tsmigangweiDelete_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeletePost post = new frmEditOrDeletePost();
+ post.Show();
+ }
+
+ private void tsmirenyuanAdd_Click(object sender, EventArgs e)
+ {
+ frmAddEmployee employee = new frmAddEmployee();
+ employee.Show();
+ }
+
+ private void tsmirenyuanEdit_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteEmployee frmdel = new frmEditOrDeleteEmployee();
+ frmdel.Show();
+ }
+
+ private void tsmirenyuanDelete_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteEmployee frmdel = new frmEditOrDeleteEmployee();
+ frmdel.Show();
+ }
+
+ private void tsmiCardAdd_Click(object sender, EventArgs e)
+ {
+ frmAddCard card = new frmAddCard();
+ card.Show();
+ }
+
+ private void tsmiCardEdit_Click(object sender, EventArgs e)
+ {
+ frmEditAndDeleteCard card1 = new frmEditAndDeleteCard();
+ card1.Show();
+ }
+
+ private void tsmiCardDel_Click(object sender, EventArgs e)
+ {
+ frmEditAndDeleteCard card1 = new frmEditAndDeleteCard();
+ card1.Show();
+
+ }
+
+ private void tsmiCompanyAdd_Click(object sender, EventArgs e)
+ {
+ frmAddCompany com = new frmAddCompany();
+ com.Show();
+ }
+
+ private void tsmiCompanyEdit_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteCompany com2 = new frmEditOrDeleteCompany();
+ com2.Show();
+
+ }
+
+ private void tsmiCompanyDel_Click(object sender, EventArgs e)
+ {
+ frmEditOrDeleteCompany com2 = new frmEditOrDeleteCompany();
+ com2.Show();
+ }
+
+
+
+
+
+
+
+
+ }
+}
View
0  Application/frmain.resx → Application/frmMain.resx
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.