DevApp/Gs.DevApp/App.config | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.resx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Work/Frm_Work09.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/DevFrm/Work/Frm_Work09.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/Gs.DevApp.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
DevApp/Gs.DevApp/App.config
@@ -29,7 +29,8 @@ </runtime> <appSettings> <!--<add key="WebApiUrl" value="http://localhost:5263/" />--> <add key="WebApiUrl" value="http://192.168.1.145:81/" /> <add key="WebApiUrl" value="http://192.168.1.145:8081/" /> <!--<add key="WebApiUrl" value="http://192.168.1.145:81/" />--> <add key="LogPath" value="logs" /> <add key="ProductName" value="GS-MES V2.0" /> <add key="PageSize" value="50" /> DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.Designer.cs
@@ -785,17 +785,17 @@ this.txt_remarks.Location = new System.Drawing.Point(84, 124); this.txt_remarks.Name = "txt_remarks"; this.txt_remarks.Properties.Appearance.Options.UseFont = true; this.txt_remarks.Size = new System.Drawing.Size(574, 24); this.txt_remarks.Size = new System.Drawing.Size(584, 24); this.txt_remarks.StyleController = this.layoutMx1; this.txt_remarks.TabIndex = 797; // // txt_fcheckResu // this.txt_fcheckResu.Location = new System.Drawing.Point(734, 124); this.txt_fcheckResu.Location = new System.Drawing.Point(744, 124); this.txt_fcheckResu.Name = "txt_fcheckResu"; this.txt_fcheckResu.Properties.Appearance.ForeColor = System.Drawing.Color.Blue; this.txt_fcheckResu.Properties.Appearance.Options.UseForeColor = true; this.txt_fcheckResu.Size = new System.Drawing.Size(249, 24); this.txt_fcheckResu.Size = new System.Drawing.Size(254, 24); this.txt_fcheckResu.StyleController = this.layoutMx1; this.txt_fcheckResu.TabIndex = 798; this.txt_fcheckResu.Tag = "readonly"; @@ -805,94 +805,94 @@ this.txt_releaseNo.Location = new System.Drawing.Point(84, 12); this.txt_releaseNo.Name = "txt_releaseNo"; this.txt_releaseNo.Properties.Appearance.Options.UseFont = true; this.txt_releaseNo.Size = new System.Drawing.Size(249, 24); this.txt_releaseNo.Size = new System.Drawing.Size(254, 24); this.txt_releaseNo.StyleController = this.layoutMx1; this.txt_releaseNo.TabIndex = 213; this.txt_releaseNo.Tag = "readonly"; // // txt_fcheckDate // this.txt_fcheckDate.Location = new System.Drawing.Point(734, 40); this.txt_fcheckDate.Location = new System.Drawing.Point(744, 40); this.txt_fcheckDate.Name = "txt_fcheckDate"; this.txt_fcheckDate.Properties.Appearance.Options.UseFont = true; this.txt_fcheckDate.Size = new System.Drawing.Size(249, 24); this.txt_fcheckDate.Size = new System.Drawing.Size(254, 24); this.txt_fcheckDate.StyleController = this.layoutMx1; this.txt_fcheckDate.TabIndex = 216; this.txt_fcheckDate.Tag = "readonly"; // // txt_lotNo1 // this.txt_lotNo1.Location = new System.Drawing.Point(734, 12); this.txt_lotNo1.Location = new System.Drawing.Point(744, 12); this.txt_lotNo1.Name = "txt_lotNo1"; this.txt_lotNo1.Properties.Appearance.Options.UseFont = true; this.txt_lotNo1.Size = new System.Drawing.Size(249, 24); this.txt_lotNo1.Size = new System.Drawing.Size(254, 24); this.txt_lotNo1.StyleController = this.layoutMx1; this.txt_lotNo1.TabIndex = 262; this.txt_lotNo1.Tag = ""; // // txt_itemNo // this.txt_itemNo.Location = new System.Drawing.Point(409, 68); this.txt_itemNo.Location = new System.Drawing.Point(414, 68); this.txt_itemNo.Name = "txt_itemNo"; this.txt_itemNo.Properties.Appearance.Options.UseFont = true; this.txt_itemNo.Size = new System.Drawing.Size(249, 24); this.txt_itemNo.Size = new System.Drawing.Size(254, 24); this.txt_itemNo.StyleController = this.layoutMx1; this.txt_itemNo.TabIndex = 789; this.txt_itemNo.Tag = "readonly"; // // txt_itemModel // this.txt_itemModel.Location = new System.Drawing.Point(409, 96); this.txt_itemModel.Location = new System.Drawing.Point(414, 96); this.txt_itemModel.Name = "txt_itemModel"; this.txt_itemModel.Size = new System.Drawing.Size(249, 24); this.txt_itemModel.Size = new System.Drawing.Size(254, 24); this.txt_itemModel.StyleController = this.layoutMx1; this.txt_itemModel.TabIndex = 801; this.txt_itemModel.Tag = "readonly"; // // txt_fcheckBy // this.txt_fcheckBy.Location = new System.Drawing.Point(734, 68); this.txt_fcheckBy.Location = new System.Drawing.Point(744, 68); this.txt_fcheckBy.Name = "txt_fcheckBy"; this.txt_fcheckBy.Properties.Appearance.Options.UseFont = true; this.txt_fcheckBy.Size = new System.Drawing.Size(249, 24); this.txt_fcheckBy.Size = new System.Drawing.Size(254, 24); this.txt_fcheckBy.StyleController = this.layoutMx1; this.txt_fcheckBy.TabIndex = 217; this.txt_fcheckBy.Tag = "readonly"; // // txt_fbatchQty // this.txt_fbatchQty.Location = new System.Drawing.Point(409, 12); this.txt_fbatchQty.Location = new System.Drawing.Point(414, 12); this.txt_fbatchQty.Name = "txt_fbatchQty"; this.txt_fbatchQty.Properties.Appearance.Options.UseFont = true; this.txt_fbatchQty.Size = new System.Drawing.Size(249, 24); this.txt_fbatchQty.Size = new System.Drawing.Size(254, 24); this.txt_fbatchQty.StyleController = this.layoutMx1; this.txt_fbatchQty.TabIndex = 222; this.txt_fbatchQty.Tag = ""; // // txt_fsubmitBy // this.txt_fsubmitBy.Location = new System.Drawing.Point(1059, 96); this.txt_fsubmitBy.Location = new System.Drawing.Point(1074, 96); this.txt_fsubmitBy.Name = "txt_fsubmitBy"; this.txt_fsubmitBy.Size = new System.Drawing.Size(250, 24); this.txt_fsubmitBy.Size = new System.Drawing.Size(256, 24); this.txt_fsubmitBy.StyleController = this.layoutMx1; this.txt_fsubmitBy.TabIndex = 804; this.txt_fsubmitBy.Tag = "readonly"; // // txt_fsubmitDate // this.txt_fsubmitDate.Location = new System.Drawing.Point(1059, 68); this.txt_fsubmitDate.Location = new System.Drawing.Point(1074, 68); this.txt_fsubmitDate.Name = "txt_fsubmitDate"; this.txt_fsubmitDate.Size = new System.Drawing.Size(250, 24); this.txt_fsubmitDate.Size = new System.Drawing.Size(256, 24); this.txt_fsubmitDate.StyleController = this.layoutMx1; this.txt_fsubmitDate.TabIndex = 805; this.txt_fsubmitDate.Tag = "readonly"; // // txt_fsubmit // this.txt_fsubmit.Location = new System.Drawing.Point(987, 124); this.txt_fsubmit.Location = new System.Drawing.Point(1002, 124); this.txt_fsubmit.Name = "txt_fsubmit"; this.txt_fsubmit.Properties.Caption = "å®¡æ ¸æ è¯"; this.txt_fsubmit.Size = new System.Drawing.Size(322, 24); this.txt_fsubmit.Size = new System.Drawing.Size(328, 24); this.txt_fsubmit.StyleController = this.layoutMx1; this.txt_fsubmit.TabIndex = 806; this.txt_fsubmit.Tag = "readonly"; @@ -910,36 +910,36 @@ // this.txt_lotNo.Location = new System.Drawing.Point(84, 40); this.txt_lotNo.Name = "txt_lotNo"; this.txt_lotNo.Size = new System.Drawing.Size(249, 24); this.txt_lotNo.Size = new System.Drawing.Size(254, 24); this.txt_lotNo.StyleController = this.layoutMx1; this.txt_lotNo.TabIndex = 815; this.txt_lotNo.Tag = "readonly"; // // txt_checkStates // this.txt_checkStates.Location = new System.Drawing.Point(734, 96); this.txt_checkStates.Location = new System.Drawing.Point(744, 96); this.txt_checkStates.Name = "txt_checkStates"; this.txt_checkStates.Properties.Appearance.ForeColor = System.Drawing.Color.Blue; this.txt_checkStates.Properties.Appearance.Options.UseForeColor = true; this.txt_checkStates.Size = new System.Drawing.Size(249, 24); this.txt_checkStates.Size = new System.Drawing.Size(254, 24); this.txt_checkStates.StyleController = this.layoutMx1; this.txt_checkStates.TabIndex = 819; this.txt_checkStates.Tag = "readonly"; // // txt_createBy // this.txt_createBy.Location = new System.Drawing.Point(1059, 12); this.txt_createBy.Location = new System.Drawing.Point(1074, 12); this.txt_createBy.Name = "txt_createBy"; this.txt_createBy.Size = new System.Drawing.Size(250, 24); this.txt_createBy.Size = new System.Drawing.Size(256, 24); this.txt_createBy.StyleController = this.layoutMx1; this.txt_createBy.TabIndex = 822; this.txt_createBy.Tag = "readonly"; // // txt_createDate // this.txt_createDate.Location = new System.Drawing.Point(1059, 40); this.txt_createDate.Location = new System.Drawing.Point(1074, 40); this.txt_createDate.Name = "txt_createDate"; this.txt_createDate.Size = new System.Drawing.Size(250, 24); this.txt_createDate.Size = new System.Drawing.Size(256, 24); this.txt_createDate.StyleController = this.layoutMx1; this.txt_createDate.TabIndex = 823; this.txt_createDate.Tag = "readonly"; @@ -948,16 +948,16 @@ // this.txt_itemName.Location = new System.Drawing.Point(84, 96); this.txt_itemName.Name = "txt_itemName"; this.txt_itemName.Size = new System.Drawing.Size(249, 24); this.txt_itemName.Size = new System.Drawing.Size(254, 24); this.txt_itemName.StyleController = this.layoutMx1; this.txt_itemName.TabIndex = 825; this.txt_itemName.Tag = "readonly"; // // txt_lineName // this.txt_lineName.Location = new System.Drawing.Point(409, 40); this.txt_lineName.Location = new System.Drawing.Point(414, 40); this.txt_lineName.Name = "txt_lineName"; this.txt_lineName.Size = new System.Drawing.Size(249, 24); this.txt_lineName.Size = new System.Drawing.Size(254, 24); this.txt_lineName.StyleController = this.layoutMx1; this.txt_lineName.TabIndex = 826; // @@ -965,7 +965,7 @@ // this.txt_itemId.Location = new System.Drawing.Point(84, 68); this.txt_itemId.Name = "txt_itemId"; this.txt_itemId.Size = new System.Drawing.Size(249, 24); this.txt_itemId.Size = new System.Drawing.Size(254, 24); this.txt_itemId.StyleController = this.layoutMx1; this.txt_itemId.TabIndex = 827; // @@ -973,7 +973,7 @@ // this.txt_fngDesc.Location = new System.Drawing.Point(84, 152); this.txt_fngDesc.Name = "txt_fngDesc"; this.txt_fngDesc.Size = new System.Drawing.Size(574, 24); this.txt_fngDesc.Size = new System.Drawing.Size(584, 24); this.txt_fngDesc.StyleController = this.layoutMx1; this.txt_fngDesc.TabIndex = 828; // @@ -1059,70 +1059,70 @@ rowDefinition4, rowDefinition5, rowDefinition6}); this.Root.Size = new System.Drawing.Size(1321, 188); this.Root.Size = new System.Drawing.Size(1342, 188); this.Root.TextVisible = false; // // layoutControlItem9 // this.layoutControlItem9.Control = this.txt_fbatchQty; this.layoutControlItem9.Location = new System.Drawing.Point(325, 0); this.layoutControlItem9.Location = new System.Drawing.Point(330, 0); this.layoutControlItem9.Name = "layoutControlItem9"; this.layoutControlItem9.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem9.Size = new System.Drawing.Size(325, 28); this.layoutControlItem9.Size = new System.Drawing.Size(330, 28); this.layoutControlItem9.Text = "æ½æ£æ°é"; this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem31 // this.layoutControlItem31.Control = this.txt_createBy; this.layoutControlItem31.Location = new System.Drawing.Point(975, 0); this.layoutControlItem31.Location = new System.Drawing.Point(990, 0); this.layoutControlItem31.Name = "layoutControlItem31"; this.layoutControlItem31.OptionsTableLayoutItem.ColumnIndex = 3; this.layoutControlItem31.Size = new System.Drawing.Size(326, 28); this.layoutControlItem31.Size = new System.Drawing.Size(332, 28); this.layoutControlItem31.Text = "å建人å"; this.layoutControlItem31.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem33 // this.layoutControlItem33.Control = this.txt_createDate; this.layoutControlItem33.Location = new System.Drawing.Point(975, 28); this.layoutControlItem33.Location = new System.Drawing.Point(990, 28); this.layoutControlItem33.Name = "layoutControlItem33"; this.layoutControlItem33.OptionsTableLayoutItem.ColumnIndex = 3; this.layoutControlItem33.OptionsTableLayoutItem.RowIndex = 1; this.layoutControlItem33.Size = new System.Drawing.Size(326, 28); this.layoutControlItem33.Size = new System.Drawing.Size(332, 28); this.layoutControlItem33.Text = "å建æ¶é´"; this.layoutControlItem33.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem16 // this.layoutControlItem16.Control = this.txt_fsubmitDate; this.layoutControlItem16.Location = new System.Drawing.Point(975, 56); this.layoutControlItem16.Location = new System.Drawing.Point(990, 56); this.layoutControlItem16.Name = "layoutControlItem16"; this.layoutControlItem16.OptionsTableLayoutItem.ColumnIndex = 3; this.layoutControlItem16.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem16.Size = new System.Drawing.Size(326, 28); this.layoutControlItem16.Size = new System.Drawing.Size(332, 28); this.layoutControlItem16.Text = "å®¡æ ¸äººå"; this.layoutControlItem16.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem15 // this.layoutControlItem15.Control = this.txt_fsubmitBy; this.layoutControlItem15.Location = new System.Drawing.Point(975, 84); this.layoutControlItem15.Location = new System.Drawing.Point(990, 84); this.layoutControlItem15.Name = "layoutControlItem15"; this.layoutControlItem15.OptionsTableLayoutItem.ColumnIndex = 3; this.layoutControlItem15.OptionsTableLayoutItem.RowIndex = 3; this.layoutControlItem15.Size = new System.Drawing.Size(326, 28); this.layoutControlItem15.Size = new System.Drawing.Size(332, 28); this.layoutControlItem15.Text = "å®¡æ ¸æ¥æ"; this.layoutControlItem15.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem14 // this.layoutControlItem14.Control = this.txt_fsubmit; this.layoutControlItem14.Location = new System.Drawing.Point(975, 112); this.layoutControlItem14.Location = new System.Drawing.Point(990, 112); this.layoutControlItem14.Name = "layoutControlItem14"; this.layoutControlItem14.OptionsTableLayoutItem.ColumnIndex = 3; this.layoutControlItem14.OptionsTableLayoutItem.RowIndex = 4; this.layoutControlItem14.Size = new System.Drawing.Size(326, 28); this.layoutControlItem14.Size = new System.Drawing.Size(332, 28); this.layoutControlItem14.Text = "å®¡æ ¸æ è¯"; this.layoutControlItem14.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem14.TextVisible = false; @@ -1132,7 +1132,7 @@ this.layoutControlItem1.Control = this.txt_releaseNo; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(325, 28); this.layoutControlItem1.Size = new System.Drawing.Size(330, 28); this.layoutControlItem1.Text = "æ£éªåå·"; this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 18); // @@ -1142,72 +1142,72 @@ this.layoutControlItem28.Location = new System.Drawing.Point(0, 28); this.layoutControlItem28.Name = "layoutControlItem28"; this.layoutControlItem28.OptionsTableLayoutItem.RowIndex = 1; this.layoutControlItem28.Size = new System.Drawing.Size(325, 28); this.layoutControlItem28.Size = new System.Drawing.Size(330, 28); this.layoutControlItem28.Text = "ç产工å"; this.layoutControlItem28.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem3 // this.layoutControlItem3.Control = this.txt_lotNo1; this.layoutControlItem3.Location = new System.Drawing.Point(650, 0); this.layoutControlItem3.Location = new System.Drawing.Point(660, 0); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.OptionsTableLayoutItem.ColumnIndex = 2; this.layoutControlItem3.Size = new System.Drawing.Size(325, 28); this.layoutControlItem3.Size = new System.Drawing.Size(330, 28); this.layoutControlItem3.Text = "鿣æ¹å·"; this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem2 // this.layoutControlItem2.Control = this.txt_fcheckDate; this.layoutControlItem2.Location = new System.Drawing.Point(650, 28); this.layoutControlItem2.Location = new System.Drawing.Point(660, 28); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 2; this.layoutControlItem2.OptionsTableLayoutItem.RowIndex = 1; this.layoutControlItem2.Size = new System.Drawing.Size(325, 28); this.layoutControlItem2.Size = new System.Drawing.Size(330, 28); this.layoutControlItem2.Text = "æ£éªæ¥æ"; this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem8 // this.layoutControlItem8.Control = this.txt_fcheckBy; this.layoutControlItem8.Location = new System.Drawing.Point(650, 56); this.layoutControlItem8.Location = new System.Drawing.Point(660, 56); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.OptionsTableLayoutItem.ColumnIndex = 2; this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem8.Size = new System.Drawing.Size(325, 28); this.layoutControlItem8.Size = new System.Drawing.Size(330, 28); this.layoutControlItem8.Text = "æ£éªäººå"; this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem32 // this.layoutControlItem32.Control = this.txt_checkStates; this.layoutControlItem32.Location = new System.Drawing.Point(650, 84); this.layoutControlItem32.Location = new System.Drawing.Point(660, 84); this.layoutControlItem32.Name = "layoutControlItem32"; this.layoutControlItem32.OptionsTableLayoutItem.ColumnIndex = 2; this.layoutControlItem32.OptionsTableLayoutItem.RowIndex = 3; this.layoutControlItem32.Size = new System.Drawing.Size(325, 28); this.layoutControlItem32.Size = new System.Drawing.Size(330, 28); this.layoutControlItem32.Text = "æ£éªç¶æ"; this.layoutControlItem32.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem10 // this.layoutControlItem10.Control = this.txt_fcheckResu; this.layoutControlItem10.Location = new System.Drawing.Point(650, 112); this.layoutControlItem10.Location = new System.Drawing.Point(660, 112); this.layoutControlItem10.Name = "layoutControlItem10"; this.layoutControlItem10.OptionsTableLayoutItem.ColumnIndex = 2; this.layoutControlItem10.OptionsTableLayoutItem.RowIndex = 4; this.layoutControlItem10.Size = new System.Drawing.Size(325, 28); this.layoutControlItem10.Size = new System.Drawing.Size(330, 28); this.layoutControlItem10.Text = "æ£éªç»æ"; this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 18); // // layoutControlItem7 // this.layoutControlItem7.Control = this.txt_lineName; this.layoutControlItem7.Location = new System.Drawing.Point(325, 28); this.layoutControlItem7.Location = new System.Drawing.Point(330, 28); this.layoutControlItem7.Name = "layoutControlItem7"; this.layoutControlItem7.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem7.OptionsTableLayoutItem.RowIndex = 1; this.layoutControlItem7.Size = new System.Drawing.Size(325, 28); this.layoutControlItem7.Size = new System.Drawing.Size(330, 28); this.layoutControlItem7.Text = "产线åç§°"; this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 18); // @@ -1217,7 +1217,7 @@ this.layoutControlItem4.Location = new System.Drawing.Point(0, 56); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem4.Size = new System.Drawing.Size(325, 28); this.layoutControlItem4.Size = new System.Drawing.Size(330, 28); this.layoutControlItem4.Text = "产åID"; this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 18); // @@ -1225,11 +1225,11 @@ // this.layoutControlItem5.Control = this.txt_itemNo; this.layoutControlItem5.CustomizationFormText = "产åç¼ç "; this.layoutControlItem5.Location = new System.Drawing.Point(325, 56); this.layoutControlItem5.Location = new System.Drawing.Point(330, 56); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem5.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem5.Size = new System.Drawing.Size(325, 28); this.layoutControlItem5.Size = new System.Drawing.Size(330, 28); this.layoutControlItem5.Text = "ç©æç¼ç "; this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 18); // @@ -1239,7 +1239,7 @@ this.layoutControlItem34.Location = new System.Drawing.Point(0, 84); this.layoutControlItem34.Name = "layoutControlItem34"; this.layoutControlItem34.OptionsTableLayoutItem.RowIndex = 3; this.layoutControlItem34.Size = new System.Drawing.Size(325, 28); this.layoutControlItem34.Size = new System.Drawing.Size(330, 28); this.layoutControlItem34.Text = "产ååç§°"; this.layoutControlItem34.TextSize = new System.Drawing.Size(60, 18); // @@ -1247,11 +1247,11 @@ // this.layoutControlItem6.Control = this.txt_itemModel; this.layoutControlItem6.CustomizationFormText = "产åè§æ ¼"; this.layoutControlItem6.Location = new System.Drawing.Point(325, 84); this.layoutControlItem6.Location = new System.Drawing.Point(330, 84); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 3; this.layoutControlItem6.Size = new System.Drawing.Size(325, 28); this.layoutControlItem6.Size = new System.Drawing.Size(330, 28); this.layoutControlItem6.Text = "ç©æè§æ ¼"; this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 18); // @@ -1262,7 +1262,7 @@ this.layoutControlItem12.Name = "layoutControlItem12"; this.layoutControlItem12.OptionsTableLayoutItem.ColumnSpan = 2; this.layoutControlItem12.OptionsTableLayoutItem.RowIndex = 4; this.layoutControlItem12.Size = new System.Drawing.Size(650, 28); this.layoutControlItem12.Size = new System.Drawing.Size(660, 28); this.layoutControlItem12.Text = "夿³¨è¯´æ"; this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 18); // @@ -1273,7 +1273,7 @@ this.layoutControlItem13.Name = "layoutControlItem13"; this.layoutControlItem13.OptionsTableLayoutItem.ColumnSpan = 2; this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 5; this.layoutControlItem13.Size = new System.Drawing.Size(650, 28); this.layoutControlItem13.Size = new System.Drawing.Size(660, 28); this.layoutControlItem13.Text = "å¼å¸¸å¤æ³¨"; this.layoutControlItem13.TextSize = new System.Drawing.Size(60, 18); // @@ -1946,7 +1946,7 @@ this.Controls.Add(this.xtraTabControl1); this.Controls.Add(this.toolBarMenu1); this.Name = "Frm_XunJianDetect01"; this.Text = "ipqc馿£"; this.Text = "ipqcå·¡æ£"; ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs
@@ -1,11 +1,14 @@ using Gs.DevApp.Entity; using DevExpress.XtraGrid.Views.Base.ViewInfo; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Net; using System.Threading.Tasks; using System.Windows.Forms; @@ -21,6 +24,7 @@ this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; toolBarMenu1.btnOutClick += ToolBarMenu1_btnOutClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); @@ -108,6 +112,58 @@ getPageList(1); } /// <summary> /// å¯¼åº /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <exception cref="NotImplementedException"></exception> private void ToolBarMenu1_btnOutClick(object sender, EventArgs e) { var frm = new Frm_XunJianDetect01Show(); frm.UpdateParent += (ss, ee) => { string begDate = ee.StringSingle.Trim(); using (FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog()) { folderBrowserDialog.Description = "éæ©å¯¼åºæä»¶çä¿åè·¯å¾"; DialogResult dialogResult = folderBrowserDialog.ShowDialog(); if (dialogResult == DialogResult.OK) { string _folder = folderBrowserDialog.SelectedPath; var _obj = new { begDate = begDate, }; try { string strJson = UtilityHelper.HttpPost("", "XlsInOut/XlsOutXunJian", JsonConvert.SerializeObject(_obj)); ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); if (_rtn.rtnCode > 0) { string _file = _rtn.rtnData.fileUrl.ToString(); string _folderName = _folder + "\\" + _file.Replace("down/", ""); string _url = ConfigurationManager.AppSettings["WebApiUrl"].ToString() + _file; using (WebClient client = new WebClient()) { client.DownloadFile(_url, _folderName); } ToolBox.MsgHelper.ShowInformation("å¯¼åºæåï¼"); } else { ToolBox.MsgHelper.ShowError("æç¤ºï¼" + _rtn.rtnMsg); } } catch (Exception ex) { ToolBox.MsgHelper.ShowError("æç¤ºï¼" + ex.Message); } } } }; frm.ShowDialog(); } /// <summary> /// æ¥å¿äºä»¶ /// </summary> /// <param name="sender"></param> DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,113 @@ namespace Gs.DevApp.DevFrm { partial class Frm_XunJianDetect01Show { /// <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() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_XunJianDetect01Show)); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.txt_fBegDate = new DevExpress.XtraEditors.DateEdit(); this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); this.btnSave = new DevExpress.XtraEditors.SimpleButton(); ((System.ComponentModel.ISupportInitialize)(this.txt_fBegDate.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txt_fBegDate.Properties.CalendarTimeProperties)).BeginInit(); this.SuspendLayout(); // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(67, 65); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(90, 18); this.labelControl1.TabIndex = 0; this.labelControl1.Text = "è¯·éæ©æ¥æï¼"; // // txt_fBegDate // this.txt_fBegDate.EditValue = null; this.txt_fBegDate.Location = new System.Drawing.Point(67, 112); this.txt_fBegDate.Name = "txt_fBegDate"; this.txt_fBegDate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.txt_fBegDate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.txt_fBegDate.Size = new System.Drawing.Size(200, 24); this.txt_fBegDate.TabIndex = 415; // // btnCancel // this.btnCancel.Appearance.Options.UseFont = true; this.btnCancel.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand; this.btnCancel.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.ImageOptions.Image"))); this.btnCancel.Location = new System.Drawing.Point(184, 177); this.btnCancel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(87, 37); this.btnCancel.TabIndex = 417; this.btnCancel.Text = "åæ¶ (&C)"; // // btnSave // this.btnSave.Appearance.Options.UseFont = true; this.btnSave.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.HotFlat; this.btnSave.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); this.btnSave.Location = new System.Drawing.Point(67, 177); this.btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(87, 37); this.btnSave.TabIndex = 416; this.btnSave.Text = "ç¡®å® (&L)"; // // Frm_XunJianDetect01Show // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(366, 260); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnSave); this.Controls.Add(this.txt_fBegDate); this.Controls.Add(this.labelControl1); this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black; this.Name = "Frm_XunJianDetect01Show"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "éæ©æ¥æ"; ((System.ComponentModel.ISupportInitialize)(this.txt_fBegDate.Properties.CalendarTimeProperties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txt_fBegDate.Properties)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private DevExpress.XtraEditors.LabelControl labelControl1; private DevExpress.XtraEditors.DateEdit txt_fBegDate; private DevExpress.XtraEditors.SimpleButton btnCancel; private DevExpress.XtraEditors.SimpleButton btnSave; } } DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,43 @@ using DevExpress.XtraEditors; using Gs.DevApp.ToolBox; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Gs.DevApp.DevFrm { public partial class Frm_XunJianDetect01Show : DevExpress.XtraEditors.XtraForm { public Frm_XunJianDetect01Show() { InitializeComponent(); btnSave.Click += (s, e) => { if (txt_fBegDate.Text.Length <= 0) { Gs.DevApp.ToolBox.MsgHelper.ShowInformation("æ¥æä¸è½ä¸ºç©ºï¼"); txt_fBegDate.Focus(); return; } string str = txt_fBegDate.Text.Trim(); UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = str }); Close(); }; btnCancel.Click += (s, e) => { this.Close(); }; } /// <summary> /// éæ©åçåè°äºä»¶ /// </summary> public event EventHandler<UpdateParentEventArgs> UpdateParent; } } DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.resx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,140 @@ <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <data name="btnCancel.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABF0RVh0VGl0 bGUAQ2xvc2U7RXhpdDsFGf+FAAAArElEQVQ4T7XSOwoCQRCE4c0E8XEDQTMRA+/gTTykGBuYGm6olxBE tP1LHGl1WoZVg2+DYrqYZrYys6/cPvVibk38teBUkkUFNcbYuGyFCXYuyxYcMYSyPlSi4fY9m+KMsECW aEF5D2m4gzUeZ6MC8SXZYflU4K8taZ2nc1GBH+4i3eStJFdwwABpWNf268xwQVggW4zgd1aJnnbvsrBA 9JyvWfGPVOx3Bc1ZdQWpA3U147gCvgAAAABJRU5ErkJggg== </value> </data> <data name="btnSave.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAACB0RVh0VGl0 bGUATmV3O05ld0VtcGxveWVlO05ld1BlcnNvbjveWVScAAAA3ElEQVQ4T5WOPQ5BQRSF3wYsgohCJXRq PRWJJaktgFLUOjsQ0egURKEgaj/NOEfuyJl5E4/iy8y5c7+Tyc6LruI0O+cKUbEVnUkhxhd4ycOcDUdL cgVjULKcK1AxyCbwJBPLuYKiH/iCm+VkgZf0VJlcKJNUgRZ9sshkRpkEBRr8AmiCJ/Ay75z9XED64GQM bPZGnSDYAsUjqFgmZXAAPWZ1goDHBngAfnsDqqAGtjbjW12duGBui9+YqhMXnKPlFCd14oJ9tJxip05c 0AFrcLdlhbMVaKsTFPyPy16LX4vunIH/egAAAABJRU5ErkJggg== </value> </data> </root> DevApp/Gs.DevApp/DevFrm/Work/Frm_Work09.Designer.cs
@@ -45,6 +45,7 @@ this.comStopBits = new DevExpress.XtraEditors.ComboBoxEdit(); this.comParity = new DevExpress.XtraEditors.ComboBoxEdit(); this.txtMsg = new DevExpress.XtraEditors.MemoEdit(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); this.cmbBaudRate1111 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -53,6 +54,7 @@ this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.gcMx1 = new DevExpress.XtraGrid.GridControl(); this.gvMx1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); @@ -67,8 +69,6 @@ this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.split1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).BeginInit(); this.split1.Panel1.SuspendLayout(); @@ -84,6 +84,7 @@ ((System.ComponentModel.ISupportInitialize)(this.comStopBits.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comParity.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtMsg.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbBaudRate1111)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); @@ -92,10 +93,9 @@ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); this.SuspendLayout(); // // split1 @@ -144,7 +144,7 @@ // comLine // this.comLine.IsReadly = false; this.comLine.Location = new System.Drawing.Point(94, 9); this.comLine.Location = new System.Drawing.Point(94, 12); this.comLine.Name = "comLine"; this.comLine.Size = new System.Drawing.Size(164, 24); this.comLine.TabIndex = 14; @@ -154,7 +154,7 @@ this.btnStart.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Question; this.btnStart.Appearance.Options.UseBackColor = true; this.btnStart.Appearance.Options.UseFont = true; this.btnStart.Location = new System.Drawing.Point(512, 9); this.btnStart.Location = new System.Drawing.Point(512, 12); this.btnStart.Name = "btnStart"; this.btnStart.Size = new System.Drawing.Size(246, 27); this.btnStart.StyleController = this.layoutMx1; @@ -164,7 +164,7 @@ // // cmbSerialPortNum // this.cmbSerialPortNum.Location = new System.Drawing.Point(344, 9); this.cmbSerialPortNum.Location = new System.Drawing.Point(344, 12); this.cmbSerialPortNum.Name = "cmbSerialPortNum"; this.cmbSerialPortNum.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); @@ -177,7 +177,7 @@ // cmbBaudRate // this.cmbBaudRate.EditValue = "9600"; this.cmbBaudRate.Location = new System.Drawing.Point(344, 40); this.cmbBaudRate.Location = new System.Drawing.Point(344, 43); this.cmbBaudRate.Name = "cmbBaudRate"; this.cmbBaudRate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); @@ -195,7 +195,7 @@ // // txtNum // this.txtNum.Location = new System.Drawing.Point(594, 50); this.txtNum.Location = new System.Drawing.Point(594, 53); this.txtNum.Name = "txtNum"; this.txtNum.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 15F); this.txtNum.Properties.Appearance.Options.UseFont = true; @@ -207,7 +207,7 @@ // comSjw // this.comSjw.EditValue = "8"; this.comSjw.Location = new System.Drawing.Point(94, 40); this.comSjw.Location = new System.Drawing.Point(94, 43); this.comSjw.Name = "comSjw"; this.comSjw.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); @@ -225,7 +225,7 @@ // comStopBits // this.comStopBits.EditValue = "1"; this.comStopBits.Location = new System.Drawing.Point(344, 71); this.comStopBits.Location = new System.Drawing.Point(344, 74); this.comStopBits.Name = "comStopBits"; this.comStopBits.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); @@ -241,7 +241,7 @@ // comParity // this.comParity.EditValue = "None"; this.comParity.Location = new System.Drawing.Point(94, 71); this.comParity.Location = new System.Drawing.Point(94, 74); this.comParity.Name = "comParity"; this.comParity.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); @@ -262,6 +262,18 @@ this.txtMsg.Size = new System.Drawing.Size(663, 27); this.txtMsg.StyleController = this.layoutMx1; this.txtMsg.TabIndex = 15; // // layoutControlItem5 // this.layoutControlItem5.Control = this.txtMsg; this.layoutControlItem5.Location = new System.Drawing.Point(250, 62); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem5.OptionsTableLayoutItem.ColumnSpan = 2; this.layoutControlItem5.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem5.Size = new System.Drawing.Size(749, 31); this.layoutControlItem5.Text = "æ¶å表"; this.layoutControlItem5.TextSize = new System.Drawing.Size(70, 18); // // Root // @@ -381,6 +393,17 @@ this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextVisible = false; // // layoutControlItem8 // this.layoutControlItem8.Control = this.comStopBits; this.layoutControlItem8.Location = new System.Drawing.Point(250, 62); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem8.Size = new System.Drawing.Size(250, 31); this.layoutControlItem8.Text = "忢ä½"; this.layoutControlItem8.TextSize = new System.Drawing.Size(70, 18); // // gcMx1 // this.gcMx1.Dock = System.Windows.Forms.DockStyle.Fill; @@ -416,6 +439,7 @@ this.gridColumn1.FieldName = "flowCode"; this.gridColumn1.MinWidth = 25; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.OptionsColumn.ReadOnly = true; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; this.gridColumn1.Width = 94; @@ -426,6 +450,7 @@ this.gridColumn2.FieldName = "gdbh"; this.gridColumn2.MinWidth = 25; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.OptionsColumn.ReadOnly = true; this.gridColumn2.Visible = true; this.gridColumn2.VisibleIndex = 1; this.gridColumn2.Width = 94; @@ -436,6 +461,7 @@ this.gridColumn3.FieldName = "itemNo"; this.gridColumn3.MinWidth = 25; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.OptionsColumn.ReadOnly = true; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 2; this.gridColumn3.Width = 94; @@ -446,6 +472,7 @@ this.gridColumn4.FieldName = "itemName"; this.gridColumn4.MinWidth = 25; this.gridColumn4.Name = "gridColumn4"; this.gridColumn4.OptionsColumn.ReadOnly = true; this.gridColumn4.Visible = true; this.gridColumn4.VisibleIndex = 3; this.gridColumn4.Width = 94; @@ -456,6 +483,7 @@ this.gridColumn5.FieldName = "itemModel"; this.gridColumn5.MinWidth = 25; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.OptionsColumn.ReadOnly = true; this.gridColumn5.Visible = true; this.gridColumn5.VisibleIndex = 4; this.gridColumn5.Width = 94; @@ -466,6 +494,7 @@ this.gridColumn6.FieldName = "processNo"; this.gridColumn6.MinWidth = 25; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.OptionsColumn.ReadOnly = true; this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 5; this.gridColumn6.Width = 94; @@ -476,6 +505,7 @@ this.gridColumn8.FieldName = "lineName"; this.gridColumn8.MinWidth = 25; this.gridColumn8.Name = "gridColumn8"; this.gridColumn8.OptionsColumn.ReadOnly = true; this.gridColumn8.Visible = true; this.gridColumn8.VisibleIndex = 6; this.gridColumn8.Width = 94; @@ -486,6 +516,7 @@ this.gridColumn9.FieldName = "createBy"; this.gridColumn9.MinWidth = 25; this.gridColumn9.Name = "gridColumn9"; this.gridColumn9.OptionsColumn.ReadOnly = true; this.gridColumn9.Visible = true; this.gridColumn9.VisibleIndex = 7; this.gridColumn9.Width = 94; @@ -496,6 +527,7 @@ this.gridColumn10.FieldName = "createDate"; this.gridColumn10.MinWidth = 25; this.gridColumn10.Name = "gridColumn10"; this.gridColumn10.OptionsColumn.ReadOnly = true; this.gridColumn10.Visible = true; this.gridColumn10.VisibleIndex = 8; this.gridColumn10.Width = 94; @@ -506,6 +538,7 @@ this.gridColumn11.FieldName = "sjWeight"; this.gridColumn11.MinWidth = 25; this.gridColumn11.Name = "gridColumn11"; this.gridColumn11.OptionsColumn.ReadOnly = true; this.gridColumn11.Visible = true; this.gridColumn11.VisibleIndex = 9; this.gridColumn11.Width = 94; @@ -516,6 +549,7 @@ this.gridColumn12.FieldName = "maxWeight"; this.gridColumn12.MinWidth = 25; this.gridColumn12.Name = "gridColumn12"; this.gridColumn12.OptionsColumn.ReadOnly = true; this.gridColumn12.Visible = true; this.gridColumn12.VisibleIndex = 10; this.gridColumn12.Width = 94; @@ -526,32 +560,10 @@ this.gridColumn13.FieldName = "minWeight"; this.gridColumn13.MinWidth = 25; this.gridColumn13.Name = "gridColumn13"; this.gridColumn13.OptionsColumn.ReadOnly = true; this.gridColumn13.Visible = true; this.gridColumn13.VisibleIndex = 11; this.gridColumn13.Width = 94; // // layoutControlItem5 // this.layoutControlItem5.Control = this.txtMsg; this.layoutControlItem5.Location = new System.Drawing.Point(250, 62); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem5.OptionsTableLayoutItem.ColumnSpan = 2; this.layoutControlItem5.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem5.Size = new System.Drawing.Size(749, 31); this.layoutControlItem5.Text = "æ¶å表"; this.layoutControlItem5.TextSize = new System.Drawing.Size(70, 18); // // layoutControlItem8 // this.layoutControlItem8.Control = this.comStopBits; this.layoutControlItem8.Location = new System.Drawing.Point(250, 62); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 2; this.layoutControlItem8.Size = new System.Drawing.Size(250, 31); this.layoutControlItem8.Text = "忢ä½"; this.layoutControlItem8.TextSize = new System.Drawing.Size(70, 18); // // Frm_Work09 // @@ -578,6 +590,7 @@ ((System.ComponentModel.ISupportInitialize)(this.comStopBits.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comParity.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtMsg.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbBaudRate1111)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); @@ -586,10 +599,9 @@ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); this.ResumeLayout(false); } DevApp/Gs.DevApp/DevFrm/Work/Frm_Work09.cs
@@ -1,10 +1,12 @@ using System; using System.Collections.Generic; using System.Data; using System.Drawing; using System.IO.Ports; using System.Linq; using System.Threading; using System.Timers; using System.Windows.Forms; using DevExpress.Utils; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; @@ -19,6 +21,9 @@ /// 串å£ç±» /// </summary> private SerialPort Sp = new SerialPort(); /// <summary> /// 宿¶å·æ° /// </summary> System.Timers.Timer timer = new System.Timers.Timer(10000); public Frm_Work09() { @@ -35,7 +40,31 @@ }; GetComList(); this.comLine.getSuppler(""); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); gvMx1.OptionsFind.ShowSearchNavButtons = false; gvMx1.OptionsView.ShowAutoFilterRow = false; gvMx1.OptionsView.ShowGroupPanel = false; gvMx1.RowStyle += (s, e) => { //é»è®¤éä¸è¡ä¸åè² gvMx1.OptionsSelection.EnableAppearanceFocusedRow = false; //é»è®¤éä¸åå æ ¼ä¸åè² gvMx1.OptionsSelection.EnableAppearanceFocusedCell = false; if (e.RowHandle >= 0) { DataRow row = gvMx1.GetDataRow(e.RowHandle); if (row == null) return; string colorString = row["bgColor"].ToString(); // 使ç¨åå è¿å¶è¡¨ç¤ºé¢è²çARGBå¼ Color color = ColorTranslator.FromHtml(colorString); e.Appearance.BackColor = color; } }; gvMx1.IndicatorWidth = 60; gvMx1.CustomDrawRowIndicator += (s, e) => { if (e.Info.IsRowIndicator && e.RowHandle >= 0) e.Info.DisplayText = (e.RowHandle + 1).ToString(); }; } /// <summary> DevApp/Gs.DevApp/Gs.DevApp.csproj
@@ -347,6 +347,12 @@ <Compile Include="DevFrm\FQC\UcChouJianList.Designer.cs"> <DependentUpon>UcChouJianList.cs</DependentUpon> </Compile> <Compile Include="DevFrm\IPQC\Frm_XunJianDetect01Show.cs"> <SubType>Form</SubType> </Compile> <Compile Include="DevFrm\IPQC\Frm_XunJianDetect01Show.Designer.cs"> <DependentUpon>Frm_XunJianDetect01Show.cs</DependentUpon> </Compile> <Compile Include="DevFrm\IPQC\Frm_ShouJian.cs"> <SubType>Form</SubType> </Compile> @@ -1351,6 +1357,9 @@ <EmbeddedResource Include="DevFrm\IPQC\Frm_XunJianDetect01.resx"> <DependentUpon>Frm_XunJianDetect01.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="DevFrm\IPQC\Frm_XunJianDetect01Show.resx"> <DependentUpon>Frm_XunJianDetect01Show.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="DevFrm\PDA\Frm_AreaBind.resx"> <DependentUpon>Frm_AreaBind.cs</DependentUpon> </EmbeddedResource> DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -2023,52 +2023,6 @@ } } }; //gridView1.RowStyle += (s, e) => //{ // //é»è®¤éä¸è¡ä¸åè² // gridView1.OptionsSelection.EnableAppearanceFocusedRow = false; // //é»è®¤éä¸åå æ ¼ä¸åè² // gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; // if (e.RowHandle >= 0) // { // DataRow row = gridView1.GetDataRow(e.RowHandle); // if (row == null) // return; // //è¿æ¯dangerè² // bool columnExists = row.Table.Columns.Contains("isRed"); // if (columnExists == true) // { // string _isRed = row["isRed"].ToString(); // if (_isRed == "1") // { // e.Appearance.ForeColor = Color.Tomato; // } // } // //è¿æ¯successè² // columnExists = row.Table.Columns.Contains("isSuccess"); // if (columnExists == true) // { // string _isRed = row["isSuccess"].ToString(); // if (_isRed == "1") // { // e.Appearance.ForeColor = Color.FromArgb(128, 255, 128); // } // } // // 设置ç¦ç¹è¡çèæ¯è² // if (gridView1.GetRow(e.RowHandle) == gridView1.GetFocusedRow()) // { // e.Appearance.BackColor = Color.Azure; // e.Appearance.BackColor2 = Color.LightSkyBlue; // } // //else if (gridView1.IsRowHotTracked(e.RowHandle)) // //{ // // // è®¾ç½®é¼ æ æ¬åè¡çèæ¯è² // // e.Appearance.BackColor = Color.LightBlue; // // e.Appearance.BackColor2 = Color.LightBlue; // //} // } //}; } #endregion