Browse Source

修改看板和XML解析器

章政 8 years ago
parent
commit
71ccc41a47

+ 12 - 0
UAS_KanBan/App.config

@@ -13,6 +13,18 @@
             <setting name="MES" serializeAs="String">
                 <value>Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</value>
             </setting>
+            <setting name="LineCode" serializeAs="String">
+                <value />
+            </setting>
+            <setting name="WorkCenter" serializeAs="String">
+                <value />
+            </setting>
+            <setting name="Master" serializeAs="String">
+                <value />
+            </setting>
+            <setting name="TimeSpan" serializeAs="String">
+                <value />
+            </setting>
         </UAS_KanBan.Properties.Settings>
     </userSettings>
 </configuration>

+ 248 - 256
UAS_KanBan/Process.Designer.cs

@@ -33,8 +33,8 @@
             this.BottomLine = new CCWin.SkinControl.SkinPanel();
             this.Line1 = new CCWin.SkinControl.SkinPanel();
             this.Line2 = new CCWin.SkinControl.SkinPanel();
-            this.skinPanel7 = new CCWin.SkinControl.SkinPanel();
-            this.skinLabel1 = new CCWin.SkinControl.SkinLabel();
+            this.MidLine = new CCWin.SkinControl.SkinPanel();
+            this.Title = new CCWin.SkinControl.SkinLabel();
             this.Line3 = new CCWin.SkinControl.SkinPanel();
             this.skinLabel3 = new CCWin.SkinControl.SkinLabel();
             this.skinLabel6 = new CCWin.SkinControl.SkinLabel();
@@ -42,20 +42,20 @@
             this.skinLabel4 = new CCWin.SkinControl.SkinLabel();
             this.skinLabel5 = new CCWin.SkinControl.SkinLabel();
             this.skinLabel8 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel9 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel10 = new CCWin.SkinControl.SkinLabel();
-            this.skinPictureBox1 = new CCWin.SkinControl.SkinPictureBox();
-            this.skinLabel2 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel11 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel12 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel13 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel14 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel15 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel16 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel17 = new CCWin.SkinControl.SkinLabel();
-            this.skinLabel18 = new CCWin.SkinControl.SkinLabel();
+            this.LineCode_label = new CCWin.SkinControl.SkinLabel();
+            this.WorkShift_label = new CCWin.SkinControl.SkinLabel();
+            this.Logo = new CCWin.SkinControl.SkinPictureBox();
+            this.投入 = new CCWin.SkinControl.SkinLabel();
+            this.产出 = new CCWin.SkinControl.SkinLabel();
+            this.机型 = new CCWin.SkinControl.SkinLabel();
+            this.收益率 = new CCWin.SkinControl.SkinLabel();
+            this.故障数 = new CCWin.SkinControl.SkinLabel();
+            this.直通率 = new CCWin.SkinControl.SkinLabel();
+            this.班制 = new CCWin.SkinControl.SkinLabel();
+            this.Line = new CCWin.SkinControl.SkinLabel();
+            this.Title2 = new CCWin.SkinControl.SkinLabel();
             this.Refresh = new System.Windows.Forms.Timer(this.components);
-            ((System.ComponentModel.ISupportInitialize)(this.skinPictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.Logo)).BeginInit();
             this.SuspendLayout();
             // 
             // TopLine
@@ -118,33 +118,33 @@
             this.Line2.Size = new System.Drawing.Size(2, 110);
             this.Line2.TabIndex = 3;
             // 
-            // skinPanel7
+            // MidLine
             // 
-            this.skinPanel7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            this.MidLine.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.skinPanel7.BackColor = System.Drawing.Color.White;
-            this.skinPanel7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.skinPanel7.ControlState = CCWin.SkinClass.ControlState.Normal;
-            this.skinPanel7.DownBack = null;
-            this.skinPanel7.Location = new System.Drawing.Point(841, 92);
-            this.skinPanel7.MouseBack = null;
-            this.skinPanel7.Name = "skinPanel7";
-            this.skinPanel7.NormlBack = null;
-            this.skinPanel7.Size = new System.Drawing.Size(341, 2);
-            this.skinPanel7.TabIndex = 2;
-            // 
-            // skinLabel1
-            // 
-            this.skinLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.skinLabel1.AutoSize = true;
-            this.skinLabel1.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel1.BorderColor = System.Drawing.Color.White;
-            this.skinLabel1.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel1.Location = new System.Drawing.Point(448, 74);
-            this.skinLabel1.Name = "skinLabel1";
-            this.skinLabel1.Size = new System.Drawing.Size(271, 33);
-            this.skinLabel1.TabIndex = 4;
-            this.skinLabel1.Text = "产线执行进度看板";
+            this.MidLine.BackColor = System.Drawing.Color.White;
+            this.MidLine.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.MidLine.ControlState = CCWin.SkinClass.ControlState.Normal;
+            this.MidLine.DownBack = null;
+            this.MidLine.Location = new System.Drawing.Point(841, 92);
+            this.MidLine.MouseBack = null;
+            this.MidLine.Name = "MidLine";
+            this.MidLine.NormlBack = null;
+            this.MidLine.Size = new System.Drawing.Size(341, 2);
+            this.MidLine.TabIndex = 2;
+            // 
+            // Title
+            // 
+            this.Title.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.Title.AutoSize = true;
+            this.Title.BackColor = System.Drawing.Color.Transparent;
+            this.Title.BorderColor = System.Drawing.Color.White;
+            this.Title.Font = new System.Drawing.Font("宋体", 45F);
+            this.Title.Location = new System.Drawing.Point(319, 60);
+            this.Title.Name = "Title";
+            this.Title.Size = new System.Drawing.Size(505, 60);
+            this.Title.TabIndex = 4;
+            this.Title.Text = "产线执行进度看板";
             // 
             // Line3
             // 
@@ -168,10 +168,10 @@
             this.skinLabel3.AutoSize = true;
             this.skinLabel3.BackColor = System.Drawing.Color.Transparent;
             this.skinLabel3.BorderColor = System.Drawing.Color.White;
-            this.skinLabel3.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel3.Location = new System.Drawing.Point(45, 265);
+            this.skinLabel3.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.skinLabel3.Location = new System.Drawing.Point(7, 265);
             this.skinLabel3.Name = "skinLabel3";
-            this.skinLabel3.Size = new System.Drawing.Size(159, 35);
+            this.skinLabel3.Size = new System.Drawing.Size(314, 70);
             this.skinLabel3.TabIndex = 6;
             this.skinLabel3.Text = "生产机型";
             // 
@@ -182,10 +182,10 @@
             this.skinLabel6.AutoSize = true;
             this.skinLabel6.BackColor = System.Drawing.Color.Transparent;
             this.skinLabel6.BorderColor = System.Drawing.Color.White;
-            this.skinLabel6.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel6.Location = new System.Drawing.Point(45, 488);
+            this.skinLabel6.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.skinLabel6.Location = new System.Drawing.Point(7, 488);
             this.skinLabel6.Name = "skinLabel6";
-            this.skinLabel6.Size = new System.Drawing.Size(123, 35);
+            this.skinLabel6.Size = new System.Drawing.Size(243, 70);
             this.skinLabel6.TabIndex = 9;
             this.skinLabel6.Text = "总产出";
             // 
@@ -196,10 +196,10 @@
             this.skinLabel7.AutoSize = true;
             this.skinLabel7.BackColor = System.Drawing.Color.Transparent;
             this.skinLabel7.BorderColor = System.Drawing.Color.White;
-            this.skinLabel7.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel7.Location = new System.Drawing.Point(45, 376);
+            this.skinLabel7.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.skinLabel7.Location = new System.Drawing.Point(7, 376);
             this.skinLabel7.Name = "skinLabel7";
-            this.skinLabel7.Size = new System.Drawing.Size(123, 35);
+            this.skinLabel7.Size = new System.Drawing.Size(243, 70);
             this.skinLabel7.TabIndex = 10;
             this.skinLabel7.Text = "总投入";
             // 
@@ -210,10 +210,10 @@
             this.skinLabel4.AutoSize = true;
             this.skinLabel4.BackColor = System.Drawing.Color.Transparent;
             this.skinLabel4.BorderColor = System.Drawing.Color.White;
-            this.skinLabel4.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel4.Location = new System.Drawing.Point(684, 376);
+            this.skinLabel4.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.skinLabel4.Location = new System.Drawing.Point(662, 376);
             this.skinLabel4.Name = "skinLabel4";
-            this.skinLabel4.Size = new System.Drawing.Size(123, 35);
+            this.skinLabel4.Size = new System.Drawing.Size(243, 70);
             this.skinLabel4.TabIndex = 13;
             this.skinLabel4.Text = "收益率";
             // 
@@ -224,10 +224,10 @@
             this.skinLabel5.AutoSize = true;
             this.skinLabel5.BackColor = System.Drawing.Color.Transparent;
             this.skinLabel5.BorderColor = System.Drawing.Color.White;
-            this.skinLabel5.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel5.Location = new System.Drawing.Point(684, 488);
+            this.skinLabel5.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.skinLabel5.Location = new System.Drawing.Point(662, 488);
             this.skinLabel5.Name = "skinLabel5";
-            this.skinLabel5.Size = new System.Drawing.Size(123, 35);
+            this.skinLabel5.Size = new System.Drawing.Size(243, 70);
             this.skinLabel5.TabIndex = 12;
             this.skinLabel5.Text = "故障数";
             // 
@@ -238,188 +238,180 @@
             this.skinLabel8.AutoSize = true;
             this.skinLabel8.BackColor = System.Drawing.Color.Transparent;
             this.skinLabel8.BorderColor = System.Drawing.Color.White;
-            this.skinLabel8.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel8.Location = new System.Drawing.Point(684, 265);
+            this.skinLabel8.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.skinLabel8.Location = new System.Drawing.Point(662, 265);
             this.skinLabel8.Name = "skinLabel8";
-            this.skinLabel8.Size = new System.Drawing.Size(123, 35);
+            this.skinLabel8.Size = new System.Drawing.Size(243, 70);
             this.skinLabel8.TabIndex = 11;
             this.skinLabel8.Text = "直通率";
             // 
-            // skinLabel9
-            // 
-            this.skinLabel9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.skinLabel9.AutoSize = true;
-            this.skinLabel9.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel9.BorderColor = System.Drawing.Color.White;
-            this.skinLabel9.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel9.Location = new System.Drawing.Point(860, 50);
-            this.skinLabel9.Name = "skinLabel9";
-            this.skinLabel9.Size = new System.Drawing.Size(71, 29);
-            this.skinLabel9.TabIndex = 14;
-            this.skinLabel9.Text = "线体";
-            // 
-            // skinLabel10
-            // 
-            this.skinLabel10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.skinLabel10.AutoSize = true;
-            this.skinLabel10.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel10.BorderColor = System.Drawing.Color.White;
-            this.skinLabel10.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel10.Location = new System.Drawing.Point(860, 106);
-            this.skinLabel10.Name = "skinLabel10";
-            this.skinLabel10.Size = new System.Drawing.Size(71, 29);
-            this.skinLabel10.TabIndex = 15;
-            this.skinLabel10.Text = "班次";
-            // 
-            // skinPictureBox1
-            // 
-            this.skinPictureBox1.BackColor = System.Drawing.Color.Transparent;
-            this.skinPictureBox1.Image = global::UAS_KanBan.Properties.Resources.malata_logo;
-            this.skinPictureBox1.Location = new System.Drawing.Point(6, 55);
-            this.skinPictureBox1.Name = "skinPictureBox1";
-            this.skinPictureBox1.Size = new System.Drawing.Size(289, 71);
-            this.skinPictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
-            this.skinPictureBox1.TabIndex = 16;
-            this.skinPictureBox1.TabStop = false;
-            // 
-            // skinLabel2
-            // 
-            this.skinLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            // LineCode_label
+            // 
+            this.LineCode_label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.LineCode_label.AutoSize = true;
+            this.LineCode_label.BackColor = System.Drawing.Color.Transparent;
+            this.LineCode_label.BorderColor = System.Drawing.Color.White;
+            this.LineCode_label.Font = new System.Drawing.Font("宋体", 30F);
+            this.LineCode_label.Location = new System.Drawing.Point(846, 45);
+            this.LineCode_label.Name = "LineCode_label";
+            this.LineCode_label.Size = new System.Drawing.Size(97, 40);
+            this.LineCode_label.TabIndex = 14;
+            this.LineCode_label.Text = "线体";
+            // 
+            // WorkShift_label
+            // 
+            this.WorkShift_label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.WorkShift_label.AutoSize = true;
+            this.WorkShift_label.BackColor = System.Drawing.Color.Transparent;
+            this.WorkShift_label.BorderColor = System.Drawing.Color.White;
+            this.WorkShift_label.Font = new System.Drawing.Font("宋体", 30F);
+            this.WorkShift_label.Location = new System.Drawing.Point(848, 102);
+            this.WorkShift_label.Name = "WorkShift_label";
+            this.WorkShift_label.Size = new System.Drawing.Size(97, 40);
+            this.WorkShift_label.TabIndex = 15;
+            this.WorkShift_label.Text = "班次";
+            // 
+            // Logo
+            // 
+            this.Logo.BackColor = System.Drawing.Color.Transparent;
+            this.Logo.Image = global::UAS_KanBan.Properties.Resources.malata_logo;
+            this.Logo.Location = new System.Drawing.Point(6, 42);
+            this.Logo.Name = "Logo";
+            this.Logo.Size = new System.Drawing.Size(289, 71);
+            this.Logo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+            this.Logo.TabIndex = 16;
+            this.Logo.TabStop = false;
+            // 
+            // 投入
+            // 
+            this.投入.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left)));
-            this.skinLabel2.AutoSize = true;
-            this.skinLabel2.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel2.BorderColor = System.Drawing.Color.White;
-            this.skinLabel2.BorderSize = 0;
-            this.skinLabel2.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel2.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel2.Location = new System.Drawing.Point(241, 370);
-            this.skinLabel2.Name = "skinLabel2";
-            this.skinLabel2.Size = new System.Drawing.Size(86, 46);
-            this.skinLabel2.TabIndex = 19;
-            this.skinLabel2.Text = "100";
-            // 
-            // skinLabel11
-            // 
-            this.skinLabel11.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.投入.AutoSize = true;
+            this.投入.BackColor = System.Drawing.Color.Transparent;
+            this.投入.BorderColor = System.Drawing.Color.White;
+            this.投入.BorderSize = 0;
+            this.投入.Font = new System.Drawing.Font("微软雅黑", 52F, System.Drawing.FontStyle.Bold);
+            this.投入.ForeColor = System.Drawing.Color.Red;
+            this.投入.Location = new System.Drawing.Point(353, 370);
+            this.投入.Name = "投入";
+            this.投入.Size = new System.Drawing.Size(0, 93);
+            this.投入.TabIndex = 19;
+            // 
+            // 产出
+            // 
+            this.产出.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left)));
-            this.skinLabel11.AutoSize = true;
-            this.skinLabel11.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel11.BorderColor = System.Drawing.Color.White;
-            this.skinLabel11.BorderSize = 0;
-            this.skinLabel11.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel11.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel11.Location = new System.Drawing.Point(241, 482);
-            this.skinLabel11.Name = "skinLabel11";
-            this.skinLabel11.Size = new System.Drawing.Size(86, 46);
-            this.skinLabel11.TabIndex = 18;
-            this.skinLabel11.Text = "100";
-            // 
-            // skinLabel12
-            // 
-            this.skinLabel12.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.产出.AutoSize = true;
+            this.产出.BackColor = System.Drawing.Color.Transparent;
+            this.产出.BorderColor = System.Drawing.Color.White;
+            this.产出.BorderSize = 0;
+            this.产出.Font = new System.Drawing.Font("微软雅黑", 52F, System.Drawing.FontStyle.Bold);
+            this.产出.ForeColor = System.Drawing.Color.Red;
+            this.产出.Location = new System.Drawing.Point(353, 482);
+            this.产出.Name = "产出";
+            this.产出.Size = new System.Drawing.Size(0, 93);
+            this.产出.TabIndex = 18;
+            // 
+            // 机型
+            // 
+            this.机型.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left)));
-            this.skinLabel12.AutoSize = true;
-            this.skinLabel12.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel12.BorderColor = System.Drawing.Color.White;
-            this.skinLabel12.BorderSize = 0;
-            this.skinLabel12.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel12.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel12.Location = new System.Drawing.Point(241, 259);
-            this.skinLabel12.Name = "skinLabel12";
-            this.skinLabel12.Size = new System.Drawing.Size(162, 46);
-            this.skinLabel12.TabIndex = 17;
-            this.skinLabel12.Text = "ABCDEF";
-            // 
-            // skinLabel13
-            // 
-            this.skinLabel13.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.机型.AutoSize = true;
+            this.机型.BackColor = System.Drawing.Color.Transparent;
+            this.机型.BorderColor = System.Drawing.Color.White;
+            this.机型.BorderSize = 0;
+            this.机型.Font = new System.Drawing.Font("微软雅黑", 52F, System.Drawing.FontStyle.Bold);
+            this.机型.ForeColor = System.Drawing.Color.Red;
+            this.机型.Location = new System.Drawing.Point(353, 259);
+            this.机型.Name = "机型";
+            this.机型.Size = new System.Drawing.Size(0, 93);
+            this.机型.TabIndex = 17;
+            // 
+            // 收益率
+            // 
+            this.收益率.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left)));
-            this.skinLabel13.AutoSize = true;
-            this.skinLabel13.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel13.BorderColor = System.Drawing.Color.White;
-            this.skinLabel13.BorderSize = 0;
-            this.skinLabel13.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel13.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel13.Location = new System.Drawing.Point(848, 370);
-            this.skinLabel13.Name = "skinLabel13";
-            this.skinLabel13.Size = new System.Drawing.Size(119, 46);
-            this.skinLabel13.TabIndex = 22;
-            this.skinLabel13.Text = "100%";
-            // 
-            // skinLabel14
-            // 
-            this.skinLabel14.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.收益率.AutoSize = true;
+            this.收益率.BackColor = System.Drawing.Color.Transparent;
+            this.收益率.BorderColor = System.Drawing.Color.White;
+            this.收益率.BorderSize = 0;
+            this.收益率.Font = new System.Drawing.Font("微软雅黑", 52F, System.Drawing.FontStyle.Bold);
+            this.收益率.ForeColor = System.Drawing.Color.Red;
+            this.收益率.Location = new System.Drawing.Point(932, 370);
+            this.收益率.Name = "收益率";
+            this.收益率.Size = new System.Drawing.Size(0, 93);
+            this.收益率.TabIndex = 22;
+            // 
+            // 故障数
+            // 
+            this.故障数.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left)));
-            this.skinLabel14.AutoSize = true;
-            this.skinLabel14.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel14.BorderColor = System.Drawing.Color.White;
-            this.skinLabel14.BorderSize = 0;
-            this.skinLabel14.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel14.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel14.Location = new System.Drawing.Point(848, 482);
-            this.skinLabel14.Name = "skinLabel14";
-            this.skinLabel14.Size = new System.Drawing.Size(42, 46);
-            this.skinLabel14.TabIndex = 21;
-            this.skinLabel14.Text = "0";
-            // 
-            // skinLabel15
-            // 
-            this.skinLabel15.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.故障数.AutoSize = true;
+            this.故障数.BackColor = System.Drawing.Color.Transparent;
+            this.故障数.BorderColor = System.Drawing.Color.White;
+            this.故障数.BorderSize = 0;
+            this.故障数.Font = new System.Drawing.Font("微软雅黑", 52F, System.Drawing.FontStyle.Bold);
+            this.故障数.ForeColor = System.Drawing.Color.Red;
+            this.故障数.Location = new System.Drawing.Point(932, 482);
+            this.故障数.Name = "故障数";
+            this.故障数.Size = new System.Drawing.Size(0, 93);
+            this.故障数.TabIndex = 21;
+            // 
+            // 直通率
+            // 
+            this.直通率.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left)));
-            this.skinLabel15.AutoSize = true;
-            this.skinLabel15.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel15.BorderColor = System.Drawing.Color.White;
-            this.skinLabel15.BorderSize = 0;
-            this.skinLabel15.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel15.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel15.Location = new System.Drawing.Point(848, 259);
-            this.skinLabel15.Name = "skinLabel15";
-            this.skinLabel15.Size = new System.Drawing.Size(119, 46);
-            this.skinLabel15.TabIndex = 20;
-            this.skinLabel15.Text = "100%";
-            // 
-            // skinLabel16
-            // 
-            this.skinLabel16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.skinLabel16.AutoSize = true;
-            this.skinLabel16.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel16.BorderColor = System.Drawing.Color.White;
-            this.skinLabel16.BorderSize = 0;
-            this.skinLabel16.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel16.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel16.Location = new System.Drawing.Point(973, 101);
-            this.skinLabel16.Name = "skinLabel16";
-            this.skinLabel16.Size = new System.Drawing.Size(70, 39);
-            this.skinLabel16.TabIndex = 24;
-            this.skinLabel16.Text = "S02";
-            // 
-            // skinLabel17
-            // 
-            this.skinLabel17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.skinLabel17.AutoSize = true;
-            this.skinLabel17.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel17.BorderColor = System.Drawing.Color.White;
-            this.skinLabel17.BorderSize = 0;
-            this.skinLabel17.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel17.ForeColor = System.Drawing.Color.Red;
-            this.skinLabel17.Location = new System.Drawing.Point(973, 45);
-            this.skinLabel17.Name = "skinLabel17";
-            this.skinLabel17.Size = new System.Drawing.Size(118, 39);
-            this.skinLabel17.TabIndex = 23;
-            this.skinLabel17.Text = "SMT01";
-            // 
-            // skinLabel18
-            // 
-            this.skinLabel18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.skinLabel18.AutoSize = true;
-            this.skinLabel18.BackColor = System.Drawing.Color.Transparent;
-            this.skinLabel18.BorderColor = System.Drawing.Color.White;
-            this.skinLabel18.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.skinLabel18.Location = new System.Drawing.Point(385, 168);
-            this.skinLabel18.Name = "skinLabel18";
-            this.skinLabel18.Size = new System.Drawing.Size(428, 48);
-            this.skinLabel18.TabIndex = 25;
-            this.skinLabel18.Text = "投入\\产出实时统计";
+            this.直通率.AutoSize = true;
+            this.直通率.BackColor = System.Drawing.Color.Transparent;
+            this.直通率.BorderColor = System.Drawing.Color.White;
+            this.直通率.BorderSize = 0;
+            this.直通率.Font = new System.Drawing.Font("微软雅黑", 52F, System.Drawing.FontStyle.Bold);
+            this.直通率.ForeColor = System.Drawing.Color.Red;
+            this.直通率.Location = new System.Drawing.Point(932, 259);
+            this.直通率.Name = "直通率";
+            this.直通率.Size = new System.Drawing.Size(0, 93);
+            this.直通率.TabIndex = 20;
+            // 
+            // 班制
+            // 
+            this.班制.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.班制.AutoSize = true;
+            this.班制.BackColor = System.Drawing.Color.Transparent;
+            this.班制.BorderColor = System.Drawing.Color.White;
+            this.班制.BorderSize = 0;
+            this.班制.Font = new System.Drawing.Font("微软雅黑", 25F, System.Drawing.FontStyle.Bold);
+            this.班制.ForeColor = System.Drawing.Color.Red;
+            this.班制.Location = new System.Drawing.Point(973, 99);
+            this.班制.Name = "班制";
+            this.班制.Size = new System.Drawing.Size(0, 45);
+            this.班制.TabIndex = 24;
+            // 
+            // Line
+            // 
+            this.Line.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.Line.AutoSize = true;
+            this.Line.BackColor = System.Drawing.Color.Transparent;
+            this.Line.BorderColor = System.Drawing.Color.White;
+            this.Line.BorderSize = 0;
+            this.Line.Font = new System.Drawing.Font("微软雅黑", 25F, System.Drawing.FontStyle.Bold);
+            this.Line.ForeColor = System.Drawing.Color.Red;
+            this.Line.Location = new System.Drawing.Point(973, 43);
+            this.Line.Name = "Line";
+            this.Line.Size = new System.Drawing.Size(0, 45);
+            this.Line.TabIndex = 23;
+            // 
+            // Title2
+            // 
+            this.Title2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.Title2.AutoSize = true;
+            this.Title2.BackColor = System.Drawing.Color.Transparent;
+            this.Title2.BorderColor = System.Drawing.Color.White;
+            this.Title2.Font = new System.Drawing.Font("宋体", 50F);
+            this.Title2.Location = new System.Drawing.Point(344, 168);
+            this.Title2.Name = "Title2";
+            this.Title2.Size = new System.Drawing.Size(599, 67);
+            this.Title2.TabIndex = 25;
+            this.Title2.Text = "投入\\产出实时统计";
             // 
             // Process
             // 
@@ -427,18 +419,18 @@
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1184, 687);
-            this.Controls.Add(this.skinLabel18);
-            this.Controls.Add(this.skinLabel16);
-            this.Controls.Add(this.skinLabel17);
-            this.Controls.Add(this.skinLabel13);
-            this.Controls.Add(this.skinLabel14);
-            this.Controls.Add(this.skinLabel15);
-            this.Controls.Add(this.skinLabel2);
-            this.Controls.Add(this.skinLabel11);
-            this.Controls.Add(this.skinLabel12);
-            this.Controls.Add(this.skinPictureBox1);
-            this.Controls.Add(this.skinLabel10);
-            this.Controls.Add(this.skinLabel9);
+            this.Controls.Add(this.Title2);
+            this.Controls.Add(this.班制);
+            this.Controls.Add(this.Line);
+            this.Controls.Add(this.收益率);
+            this.Controls.Add(this.故障数);
+            this.Controls.Add(this.直通率);
+            this.Controls.Add(this.投入);
+            this.Controls.Add(this.产出);
+            this.Controls.Add(this.机型);
+            this.Controls.Add(this.Logo);
+            this.Controls.Add(this.WorkShift_label);
+            this.Controls.Add(this.LineCode_label);
             this.Controls.Add(this.skinLabel4);
             this.Controls.Add(this.skinLabel5);
             this.Controls.Add(this.skinLabel8);
@@ -446,8 +438,8 @@
             this.Controls.Add(this.skinLabel6);
             this.Controls.Add(this.skinLabel3);
             this.Controls.Add(this.Line3);
-            this.Controls.Add(this.skinLabel1);
-            this.Controls.Add(this.skinPanel7);
+            this.Controls.Add(this.Title);
+            this.Controls.Add(this.MidLine);
             this.Controls.Add(this.Line2);
             this.Controls.Add(this.Line1);
             this.Controls.Add(this.BottomLine);
@@ -460,7 +452,7 @@
             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Process_FormClosing);
             this.Load += new System.EventHandler(this.Process_Load);
             this.SizeChanged += new System.EventHandler(this.Process_SizeChanged);
-            ((System.ComponentModel.ISupportInitialize)(this.skinPictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.Logo)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -472,8 +464,8 @@
         private CCWin.SkinControl.SkinPanel BottomLine;
         private CCWin.SkinControl.SkinPanel Line1;
         private CCWin.SkinControl.SkinPanel Line2;
-        private CCWin.SkinControl.SkinPanel skinPanel7;
-        private CCWin.SkinControl.SkinLabel skinLabel1;
+        private CCWin.SkinControl.SkinPanel MidLine;
+        private CCWin.SkinControl.SkinLabel Title;
         private CCWin.SkinControl.SkinPanel Line3;
         private CCWin.SkinControl.SkinLabel skinLabel3;
         private CCWin.SkinControl.SkinLabel skinLabel6;
@@ -481,18 +473,18 @@
         private CCWin.SkinControl.SkinLabel skinLabel4;
         private CCWin.SkinControl.SkinLabel skinLabel5;
         private CCWin.SkinControl.SkinLabel skinLabel8;
-        private CCWin.SkinControl.SkinLabel skinLabel9;
-        private CCWin.SkinControl.SkinLabel skinLabel10;
-        private CCWin.SkinControl.SkinPictureBox skinPictureBox1;
-        private CCWin.SkinControl.SkinLabel skinLabel2;
-        private CCWin.SkinControl.SkinLabel skinLabel11;
-        private CCWin.SkinControl.SkinLabel skinLabel12;
-        private CCWin.SkinControl.SkinLabel skinLabel13;
-        private CCWin.SkinControl.SkinLabel skinLabel14;
-        private CCWin.SkinControl.SkinLabel skinLabel15;
-        private CCWin.SkinControl.SkinLabel skinLabel16;
-        private CCWin.SkinControl.SkinLabel skinLabel17;
-        private CCWin.SkinControl.SkinLabel skinLabel18;
+        private CCWin.SkinControl.SkinLabel LineCode_label;
+        private CCWin.SkinControl.SkinLabel WorkShift_label;
+        private CCWin.SkinControl.SkinPictureBox Logo;
+        private CCWin.SkinControl.SkinLabel 投入;
+        private CCWin.SkinControl.SkinLabel 产出;
+        private CCWin.SkinControl.SkinLabel 机型;
+        private CCWin.SkinControl.SkinLabel 收益率;
+        private CCWin.SkinControl.SkinLabel 故障数;
+        private CCWin.SkinControl.SkinLabel 直通率;
+        private CCWin.SkinControl.SkinLabel 班制;
+        private CCWin.SkinControl.SkinLabel Line;
+        private CCWin.SkinControl.SkinLabel Title2;
         private System.Windows.Forms.Timer Refresh;
     }
 }

+ 34 - 4
UAS_KanBan/Process.cs

@@ -21,24 +21,47 @@ namespace UAS_KanBan
 
         string Wccode;
 
-        public Process(string LineCode,string WcCode)
+        public Process(string LineCode, string WcCode)
         {
             InitializeComponent();
             Linecode = LineCode;
             Wccode = WcCode;
+            Line.Text = LineCode;
+            班制.Text = WcCode;
         }
 
         private void Process_Load(object sender, EventArgs e)
         {
             asc.controllInitializeSize(this);
+            Refresh_Tick(sender, e);
             Refresh.Tick += Refresh_Tick;
             Refresh.Interval = Setting.RefreshRate * 1000;
             Refresh.Start();
+            Width = Width + 1;
         }
 
         private void Refresh_Tick(object sender, EventArgs e)
         {
-            dh.ExecuteSql("select KBI_LINE_ZTL('"+Linecode+"','"+Wccode+"') from dual", "select");
+            DataTable dt = (DataTable)dh.ExecuteSql("select KBI_LINE_ZTL('" + Linecode + "','" + Wccode + "') from dual", "select");
+            string Data = dt.Rows[0][0].ToString();
+            string[] Item = Data.Split(':');
+            string[] ItemName = new string[Item.Length];
+            string[] ItemData = new string[Item.Length];
+            for (int i = 0; i < Item.Length; i++)
+            {
+                ItemName[i] = Item[i].Split('|')[0];
+                ItemData[i] = Item[i].Split('|')[1];
+            }
+            for (int i = 0; i < Item.Length; i++)
+            {
+                for (int j = 0; j < Controls.Count; j++)
+                {
+                    if (Controls[j].Name == ItemName[i])
+                    {
+                        Controls[j].Text = ItemData[i];
+                    }
+                }
+            }
         }
 
         private void Process_SizeChanged(object sender, EventArgs e)
@@ -47,11 +70,18 @@ namespace UAS_KanBan
             Line1.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
             Line2.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
             Line3.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
+            Title.Location = new Point(Line1.Location.X + (Line2.Location.X - Line1.Location.X - Title.Size.Width) / 2, TopLine.Location.Y + (BottomLine.Location.Y - TopLine.Location.Y - Title.Size.Height) / 2);
+            Title2.Location = new Point(Title.Location.X, Title2.Location.Y);
+            Logo.Size = new Size(Line1.Location.X - 20, BottomLine.Location.Y - TopLine.Location.Y - 20);
+            WorkShift_label.Location = new Point(Line2.Location.X + (Line3.Location.X - Line2.Location.X - WorkShift_label.Size.Width) / 2, MidLine.Location.Y+(BottomLine.Location.Y-MidLine.Location.Y- WorkShift_label.Size.Height) /2);
+            LineCode_label.Location = new Point(Line2.Location.X + (Line3.Location.X - Line2.Location.X - LineCode_label.Size.Width) / 2, TopLine.Location.Y + (MidLine.Location.Y - TopLine.Location.Y - LineCode_label.Size.Height) / 2);
+            Line.Location = new Point(Line.Location.X, TopLine.Location.Y + (MidLine.Location.Y - TopLine.Location.Y - LineCode_label.Size.Height) / 2);
+            班制.Location = new Point(班制.Location.X, MidLine.Location.Y + (BottomLine.Location.Y - MidLine.Location.Y - WorkShift_label.Size.Height) / 2);
         }
 
-        private void Process_FormClosing(object sender, FormClosingEventArgs e) 
+        private void Process_FormClosing(object sender, FormClosingEventArgs e)
         {
             Refresh.Stop();
         }
     }
-}
+}

+ 10 - 0
UAS_KanBan/Properties/Resources.Designer.cs

@@ -60,6 +60,16 @@ namespace UAS_KanBan.Properties {
             }
         }
         
+        /// <summary>
+        ///   查找类似于 (图标) 的 System.Drawing.Icon 类型的本地化资源。
+        /// </summary>
+        internal static System.Drawing.Icon board_windows_48px_14504_easyicon_net {
+            get {
+                object obj = ResourceManager.GetObject("board_windows_48px_14504_easyicon_net", resourceCulture);
+                return ((System.Drawing.Icon)(obj));
+            }
+        }
+        
         /// <summary>
         ///   查找 System.Drawing.Bitmap 类型的本地化资源。
         /// </summary>

+ 3 - 0
UAS_KanBan/Properties/Resources.resx

@@ -118,6 +118,9 @@
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+  <data name="board_windows_48px_14504_easyicon_net" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\Resources\board_windows_48px_14504_easyicon.net.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
   <data name="malata_logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\malata_logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
   </data>

+ 48 - 0
UAS_KanBan/Properties/Settings.Designer.cs

@@ -36,5 +36,53 @@ namespace UAS_KanBan.Properties {
                 this["MES"] = value;
             }
         }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string LineCode {
+            get {
+                return ((string)(this["LineCode"]));
+            }
+            set {
+                this["LineCode"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string WorkCenter {
+            get {
+                return ((string)(this["WorkCenter"]));
+            }
+            set {
+                this["WorkCenter"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string Master {
+            get {
+                return ((string)(this["Master"]));
+            }
+            set {
+                this["Master"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string TimeSpan {
+            get {
+                return ((string)(this["TimeSpan"]));
+            }
+            set {
+                this["TimeSpan"] = value;
+            }
+        }
     }
 }

+ 12 - 0
UAS_KanBan/Properties/Settings.settings

@@ -5,5 +5,17 @@
     <Setting Name="MES" Type="System.String" Scope="User">
       <Value Profile="(Default)">Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</Value>
     </Setting>
+    <Setting Name="LineCode" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
+    <Setting Name="WorkCenter" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
+    <Setting Name="Master" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
+    <Setting Name="TimeSpan" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
   </Settings>
 </SettingsFile>

BIN
UAS_KanBan/Resources/board_windows_48px_14504_easyicon.net.ico


+ 3 - 1
UAS_KanBan/Setting.Designer.cs

@@ -81,6 +81,7 @@
             this.Span_Label.Size = new System.Drawing.Size(37, 19);
             this.Span_Label.TabIndex = 3;
             this.Span_Label.Text = "期间";
+            this.Span_Label.Visible = false;
             // 
             // WorkCenter
             // 
@@ -111,6 +112,7 @@
             this.Span.Name = "Span";
             this.Span.Size = new System.Drawing.Size(125, 22);
             this.Span.TabIndex = 6;
+            this.Span.Visible = false;
             this.Span.WaterText = "";
             // 
             // skinLabel4
@@ -135,7 +137,7 @@
             this.skinLabel5.Name = "skinLabel5";
             this.skinLabel5.Size = new System.Drawing.Size(65, 19);
             this.skinLabel5.TabIndex = 9;
-            this.skinLabel5.Text = "刷新频率";
+            this.skinLabel5.Text = "运行看板";
             // 
             // skinRadioButton1
             // 

+ 9 - 0
UAS_KanBan/Setting.cs

@@ -32,6 +32,9 @@ namespace UAS_KanBan
             MasterCombo.ValueMember = "ma_user";
             dt =(DataTable) dh.ExecuteSql("select ms_pwd,ma_user,ma_address from master", "select");
             MasterCombo.DataSource = dt;
+            MasterCombo.Text = Properties.Settings.Default.Master;
+            WorkCenter.Text = Properties.Settings.Default.WorkCenter;
+            TimeSpan.Text = Properties.Settings.Default.TimeSpan;
         }
 
         private void Start_Click(object sender, EventArgs e)
@@ -46,6 +49,11 @@ namespace UAS_KanBan
                 return;
             }
             Hide();
+            Properties.Settings.Default.Master = MasterCombo.Text;
+            Properties.Settings.Default.LineCode = Line.Text;
+            Properties.Settings.Default.WorkCenter = WorkCenter.Text;
+            Properties.Settings.Default.TimeSpan = TimeSpan.Text;
+            Properties.Settings.Default.Save();
             Process pr = new Process(Line.SelectedValue.ToString(),WorkCenter.SelectedValue.ToString());
             pr.ShowDialog();
             Close();
@@ -56,6 +64,7 @@ namespace UAS_KanBan
             Line.DisplayMember = "li_name";
             Line.ValueMember = "li_code";
             Line.DataSource = dh.ExecuteSql("select li_code,li_name from line where li_wccode='"+WorkCenter.SelectedValue.ToString()+"'", "select");
+            Line.Text = Properties.Settings.Default.LineCode;
         }
 
         private void MasterCombo_SelectedIndexChanged(object sender, EventArgs e)

+ 13 - 6
UAS_KanBan/UAS_KanBan.csproj

@@ -14,26 +14,27 @@
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
     <TargetFrameworkProfile />
     <IsWebBootstrapper>true</IsWebBootstrapper>
-    <PublishUrl>ftp://192.168.253.9/MESSetting/Xml/</PublishUrl>
+    <PublishUrl>ftp://192.168.253.9/MESSetting/KanBan/</PublishUrl>
     <Install>true</Install>
     <InstallFrom>Web</InstallFrom>
-    <UpdateEnabled>false</UpdateEnabled>
+    <UpdateEnabled>true</UpdateEnabled>
     <UpdateMode>Foreground</UpdateMode>
     <UpdateInterval>7</UpdateInterval>
     <UpdateIntervalUnits>Days</UpdateIntervalUnits>
     <UpdatePeriodically>false</UpdatePeriodically>
     <UpdateRequired>false</UpdateRequired>
     <MapFileExtensions>true</MapFileExtensions>
-    <InstallUrl>http://218.17.158.219:8888/Xml/</InstallUrl>
-    <ProductName>XML解析器</ProductName>
+    <InstallUrl>http://218.17.158.219:8888/KanBan/</InstallUrl>
+    <ProductName>UAS看板</ProductName>
     <PublisherName>深圳市优软科技有限公司</PublisherName>
-    <SuiteName>XML解析器</SuiteName>
+    <SuiteName>UAS看板</SuiteName>
     <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
     <WebPage>publish.htm</WebPage>
     <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
-    <ApplicationRevision>4</ApplicationRevision>
+    <ApplicationRevision>8</ApplicationRevision>
     <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
     <UseApplicationTrust>false</UseApplicationTrust>
+    <CreateDesktopShortcut>true</CreateDesktopShortcut>
     <PublishWizardCompleted>true</PublishWizardCompleted>
     <BootstrapperEnabled>true</BootstrapperEnabled>
   </PropertyGroup>
@@ -68,6 +69,9 @@
   <PropertyGroup>
     <SignManifests>true</SignManifests>
   </PropertyGroup>
+  <PropertyGroup>
+    <ApplicationIcon>Resources\board_windows_48px_14504_easyicon.net.ico</ApplicationIcon>
+  </PropertyGroup>
   <ItemGroup>
     <Reference Include="CSkin">
       <HintPath>tool\CSkin.dll</HintPath>
@@ -144,6 +148,9 @@
       <Install>false</Install>
     </BootstrapperPackage>
   </ItemGroup>
+  <ItemGroup>
+    <None Include="Resources\board_windows_48px_14504_easyicon.net.ico" />
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.

+ 7 - 1
UAS_XmlAnalysor/App.config

@@ -11,7 +11,7 @@
     <userSettings>
         <UAS_XmlAnalysor.Properties.Settings>
             <setting name="MES" serializeAs="String">
-                <value>Password=select!#%*(;User ID=MES_TEST;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</value>
+                <value>Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</value>
             </setting>
             <setting name="FolderPath" serializeAs="String">
                 <value />
@@ -19,6 +19,12 @@
             <setting name="BackUpFolderPath" serializeAs="String">
                 <value />
             </setting>
+            <setting name="Source" serializeAs="String">
+                <value />
+            </setting>
+            <setting name="Master" serializeAs="String">
+                <value />
+            </setting>
         </UAS_XmlAnalysor.Properties.Settings>
     </userSettings>
 </configuration>

+ 40 - 14
UAS_XmlAnalysor/Form1.Designer.cs

@@ -42,6 +42,8 @@
             this.label2 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
             this.Source = new System.Windows.Forms.TextBox();
+            this.label4 = new System.Windows.Forms.Label();
+            this.Master = new System.Windows.Forms.ComboBox();
             ((System.ComponentModel.ISupportInitialize)(this.XmlWatcher)).BeginInit();
             this.SuspendLayout();
             // 
@@ -54,7 +56,7 @@
             // StartWatch
             // 
             this.StartWatch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.StartWatch.Location = new System.Drawing.Point(145, 199);
+            this.StartWatch.Location = new System.Drawing.Point(145, 256);
             this.StartWatch.Margin = new System.Windows.Forms.Padding(2);
             this.StartWatch.Name = "StartWatch";
             this.StartWatch.Size = new System.Drawing.Size(64, 28);
@@ -66,7 +68,7 @@
             // StopWatch
             // 
             this.StopWatch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.StopWatch.Location = new System.Drawing.Point(249, 199);
+            this.StopWatch.Location = new System.Drawing.Point(249, 256);
             this.StopWatch.Margin = new System.Windows.Forms.Padding(2);
             this.StopWatch.Name = "StopWatch";
             this.StopWatch.Size = new System.Drawing.Size(64, 28);
@@ -79,7 +81,7 @@
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label1.Location = new System.Drawing.Point(27, 82);
+            this.label1.Location = new System.Drawing.Point(27, 139);
             this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label1.Name = "label1";
             this.label1.Size = new System.Drawing.Size(84, 20);
@@ -89,7 +91,7 @@
             // FolderPath
             // 
             this.FolderPath.Enabled = false;
-            this.FolderPath.Location = new System.Drawing.Point(112, 82);
+            this.FolderPath.Location = new System.Drawing.Point(112, 139);
             this.FolderPath.Margin = new System.Windows.Forms.Padding(2);
             this.FolderPath.Name = "FolderPath";
             this.FolderPath.Size = new System.Drawing.Size(220, 21);
@@ -98,7 +100,7 @@
             // ChooseFolder
             // 
             this.ChooseFolder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ChooseFolder.Location = new System.Drawing.Point(346, 82);
+            this.ChooseFolder.Location = new System.Drawing.Point(346, 139);
             this.ChooseFolder.Margin = new System.Windows.Forms.Padding(2);
             this.ChooseFolder.Name = "ChooseFolder";
             this.ChooseFolder.Size = new System.Drawing.Size(78, 24);
@@ -109,17 +111,17 @@
             // 
             // OperateResult
             // 
-            this.OperateResult.Location = new System.Drawing.Point(446, 10);
+            this.OperateResult.Location = new System.Drawing.Point(446, 11);
             this.OperateResult.Margin = new System.Windows.Forms.Padding(2);
             this.OperateResult.Name = "OperateResult";
-            this.OperateResult.Size = new System.Drawing.Size(197, 214);
+            this.OperateResult.Size = new System.Drawing.Size(197, 270);
             this.OperateResult.TabIndex = 7;
             this.OperateResult.Text = "";
             // 
             // Clean
             // 
             this.Clean.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Clean.Location = new System.Drawing.Point(516, 230);
+            this.Clean.Location = new System.Drawing.Point(516, 287);
             this.Clean.Margin = new System.Windows.Forms.Padding(2);
             this.Clean.Name = "Clean";
             this.Clean.Size = new System.Drawing.Size(56, 24);
@@ -131,7 +133,7 @@
             // ChooseBackUpFolder
             // 
             this.ChooseBackUpFolder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ChooseBackUpFolder.Location = new System.Drawing.Point(346, 144);
+            this.ChooseBackUpFolder.Location = new System.Drawing.Point(346, 201);
             this.ChooseBackUpFolder.Margin = new System.Windows.Forms.Padding(2);
             this.ChooseBackUpFolder.Name = "ChooseBackUpFolder";
             this.ChooseBackUpFolder.Size = new System.Drawing.Size(78, 24);
@@ -143,7 +145,7 @@
             // BackUpFolderPath
             // 
             this.BackUpFolderPath.Enabled = false;
-            this.BackUpFolderPath.Location = new System.Drawing.Point(112, 144);
+            this.BackUpFolderPath.Location = new System.Drawing.Point(112, 201);
             this.BackUpFolderPath.Margin = new System.Windows.Forms.Padding(2);
             this.BackUpFolderPath.Name = "BackUpFolderPath";
             this.BackUpFolderPath.Size = new System.Drawing.Size(220, 21);
@@ -153,7 +155,7 @@
             // 
             this.label2.AutoSize = true;
             this.label2.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(27, 144);
+            this.label2.Location = new System.Drawing.Point(27, 201);
             this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(84, 20);
@@ -164,7 +166,7 @@
             // 
             this.label3.AutoSize = true;
             this.label3.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label3.Location = new System.Drawing.Point(27, 23);
+            this.label3.Location = new System.Drawing.Point(27, 80);
             this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(69, 20);
@@ -173,17 +175,39 @@
             // 
             // Source
             // 
-            this.Source.Location = new System.Drawing.Point(112, 22);
+            this.Source.Location = new System.Drawing.Point(112, 79);
             this.Source.Margin = new System.Windows.Forms.Padding(2);
             this.Source.Name = "Source";
             this.Source.Size = new System.Drawing.Size(220, 21);
             this.Source.TabIndex = 13;
             // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("微软雅黑", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.Location = new System.Drawing.Point(27, 23);
+            this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(69, 20);
+            this.label4.TabIndex = 14;
+            this.label4.Text = "账套选择";
+            // 
+            // Master
+            // 
+            this.Master.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.Master.FormattingEnabled = true;
+            this.Master.Location = new System.Drawing.Point(112, 23);
+            this.Master.Name = "Master";
+            this.Master.Size = new System.Drawing.Size(220, 20);
+            this.Master.TabIndex = 15;
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(665, 259);
+            this.ClientSize = new System.Drawing.Size(665, 316);
+            this.Controls.Add(this.Master);
+            this.Controls.Add(this.label4);
             this.Controls.Add(this.Source);
             this.Controls.Add(this.label3);
             this.Controls.Add(this.ChooseBackUpFolder);
@@ -222,6 +246,8 @@
         private System.Windows.Forms.Label label2;
         private System.Windows.Forms.TextBox Source;
         private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.ComboBox Master;
+        private System.Windows.Forms.Label label4;
     }
 }
 

+ 20 - 1
UAS_XmlAnalysor/Form1.cs

@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.Data;
 using System.IO;
 using System.Windows.Forms;
 using System.Xml;
@@ -11,6 +12,8 @@ namespace UAS_XmlAnalysor
 
         DataHelper dh = new DataHelper();
 
+        DataTable dt;
+
         public Form1()
         {
             InitializeComponent();
@@ -20,10 +23,24 @@ namespace UAS_XmlAnalysor
         {
             FolderPath.Text = Properties.Settings.Default.FolderPath;
             BackUpFolderPath.Text = Properties.Settings.Default.BackUpFolderPath;
+            Source.Text = Properties.Settings.Default.Source;
+            Master.Text = Properties.Settings.Default.Master;
+            dt = (DataTable)dh.ExecuteSql("select ms_pwd,ma_user,ma_address from master ", "select");
+            Master.DataSource = dt;
+            Master.DisplayMember = "ma_user";
+            Master.ValueMember = "ma_user";
         }
 
         private void StartWatch_Click(object sender, EventArgs e)
         {
+            for (int i = 0; i < dt.Rows.Count; i++)
+            {
+                if (Master.Text == dt.Rows[i]["ma_user"].ToString())
+                {
+                    DataHelper.DBConnectionString = "Data Source=" + dt.Rows[i]["ma_address"] + ";User ID=" + dt.Rows[i]["ma_user"] + ";PassWord=" + dt.Rows[i]["ms_pwd"]; ;
+                    dh = new DataHelper();
+                }
+            }
             if (!dh.CheckExist("source", "sc_code='" + Source.Text + "' and sc_statuscode='AUDITED'"))
             {
                 OperateResult.AppendText("岗位资源错误或者未审核\n");
@@ -35,6 +52,8 @@ namespace UAS_XmlAnalysor
             XmlWatcher.EnableRaisingEvents = true;
             Properties.Settings.Default.FolderPath = FolderPath.Text;
             Properties.Settings.Default.BackUpFolderPath = BackUpFolderPath.Text;
+            Properties.Settings.Default.Source = Source.Text;
+            Properties.Settings.Default.Master = Master.Text;
             Properties.Settings.Default.Save();
             Source.Enabled = false;
             OperateResult.AppendText("开始执行监控\n");
@@ -91,7 +110,7 @@ namespace UAS_XmlAnalysor
                 }
                 catch (Exception ex)
                 {
-                    Console.WriteLine(ex.Message);
+                    OperateResult.AppendText(e.Name + ex.Message+"\n");
                 }
             }
         }

+ 31 - 1
UAS_XmlAnalysor/Program.cs

@@ -1,4 +1,5 @@
-using System;
+using Microsoft.Win32;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Threading.Tasks;
@@ -16,7 +17,36 @@ namespace UAS_XmlAnalysor
         {
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
+            SetAutoRun(Application.StartupPath+@"\"+ "UAS_XML解析器.exe", true);
             Application.Run(new Form1());
         }
+
+        public static void SetAutoRun(string fileName, bool isAutoRun)
+        {
+            RegistryKey reg = null;
+            try
+            {
+                if (!System.IO.File.Exists(fileName))
+                    throw new Exception("该文件不存在!");
+                string name = fileName.Substring(fileName.LastIndexOf(@"\") + 1);
+                reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
+                if (reg == null)
+                    reg = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
+                if (isAutoRun)
+                    reg.SetValue(name, fileName);
+                else
+                    reg.SetValue(name, false);
+            }
+            catch (Exception ex)
+            {
+                throw new Exception(ex.ToString());
+            }
+            finally
+            {
+                if (reg != null)
+                    reg.Close();
+            }
+
+        }
     }
 }

+ 27 - 3
UAS_XmlAnalysor/Properties/Settings.Designer.cs

@@ -25,9 +25,9 @@ namespace UAS_XmlAnalysor.Properties {
         
         [global::System.Configuration.UserScopedSettingAttribute()]
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-        [global::System.Configuration.DefaultSettingValueAttribute("Password=select!#%*(;User ID=MES_TEST;Pooling=false;Data Source=(DESCRIPTION=(ADD" +
-            "RESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA" +
-            "=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));")]
+        [global::System.Configuration.DefaultSettingValueAttribute("Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_" +
+            "LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SER" +
+            "VER=DEDICATED)(SERVICE_NAME=orcl)));")]
         public string MES {
             get {
                 return ((string)(this["MES"]));
@@ -60,5 +60,29 @@ namespace UAS_XmlAnalysor.Properties {
                 this["BackUpFolderPath"] = value;
             }
         }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string Source {
+            get {
+                return ((string)(this["Source"]));
+            }
+            set {
+                this["Source"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string Master {
+            get {
+                return ((string)(this["Master"]));
+            }
+            set {
+                this["Master"] = value;
+            }
+        }
     }
 }

+ 7 - 1
UAS_XmlAnalysor/Properties/Settings.settings

@@ -3,7 +3,7 @@
   <Profiles />
   <Settings>
     <Setting Name="MES" Type="System.String" Scope="User">
-      <Value Profile="(Default)">Password=select!#%*(;User ID=MES_TEST;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</Value>
+      <Value Profile="(Default)">Password=select!#%*(;User ID=MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=117.25.180.218)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));</Value>
     </Setting>
     <Setting Name="FolderPath" Type="System.String" Scope="User">
       <Value Profile="(Default)" />
@@ -11,5 +11,11 @@
     <Setting Name="BackUpFolderPath" Type="System.String" Scope="User">
       <Value Profile="(Default)" />
     </Setting>
+    <Setting Name="Source" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
+    <Setting Name="Master" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
   </Settings>
 </SettingsFile>