From baef454ef7dc66bc1dfbe7abef57f497ae1e05a1 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 04 六月 2025 08:28:15 +0800 Subject: [PATCH] iqc巡检导出 --- DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.resx | 140 ++++++++++++++ DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.Designer.cs | 140 +++++++------- DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs | 43 ++++ DevApp/Gs.DevApp/Gs.DevApp.csproj | 9 DevApp/Gs.DevApp/App.config | 4 DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs | 58 +++++ DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.Designer.cs | 113 +++++++++++ DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 46 ---- 8 files changed, 434 insertions(+), 119 deletions(-) diff --git a/DevApp/Gs.DevApp/App.config b/DevApp/Gs.DevApp/App.config index 1a9adea..ccfc5be 100644 --- a/DevApp/Gs.DevApp/App.config +++ b/DevApp/Gs.DevApp/App.config @@ -28,8 +28,8 @@ </assemblyBinding> </runtime> <appSettings> - <!--<add key="WebApiUrl" value="http://localhost:5263/" />--> - <add key="WebApiUrl" value="http://192.168.1.145:81/" /> + <add key="WebApiUrl" value="http://localhost:5263/" /> + <!--<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" /> diff --git a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.Designer.cs b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.Designer.cs index e02be5b..3cfba41 100644 --- a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.Designer.cs +++ b/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); diff --git a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs index 071b3c9..cac889c 100644 --- a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs +++ b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01.cs @@ -1,11 +1,14 @@ -锘縰sing Gs.DevApp.Entity; +锘縰sing 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> diff --git a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.Designer.cs b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.Designer.cs new file mode 100644 index 0000000..ebeac97 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.Designer.cs @@ -0,0 +1,113 @@ +锘縩amespace 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; + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs new file mode 100644 index 0000000..1f4ef45 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.cs @@ -0,0 +1,43 @@ +锘縰sing 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; + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.resx b/DevApp/Gs.DevApp/DevFrm/IPQC/Frm_XunJianDetect01Show.resx new file mode 100644 index 0000000..c0dfd5d --- /dev/null +++ b/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> \ No newline at end of file diff --git a/DevApp/Gs.DevApp/Gs.DevApp.csproj b/DevApp/Gs.DevApp/Gs.DevApp.csproj index 497ee52..2ca0d0a 100644 --- a/DevApp/Gs.DevApp/Gs.DevApp.csproj +++ b/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> diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index ce0d44c..e0885ab 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/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 -- Gitblit v1.9.3