| DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/QC/SelOutType.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/QC/SelOutType.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/QC/SelOutType.resx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/Rpt/WOTraceCodes.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.Designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| DevApp/Gs.DevApp/Gs.DevApp.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
DevApp/Gs.DevApp/DevFrm/FQC/Frm_FqcDetect01.cs
@@ -7,8 +7,10 @@ using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlTypes; using System.Net; using System.Threading.Tasks; using System.Windows.Forms; @@ -33,6 +35,7 @@ toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; toolBarMenu1.btnBaoGaoClick += ToolBarMenu1_btnBaoGaoClick; toolBarMenu1.btnOutClick += ToolBarMenu1_btnOutClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1, tips); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); @@ -1086,5 +1089,53 @@ MsgHelper.ShowError("æç¤ºï¼" + ex.Message); } } private void ToolBarMenu1_btnOutClick(object sender, EventArgs e) { using (FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog()) { folderBrowserDialog.Description = "éæ©å¯¼åºæä»¶çä¿åè·¯å¾"; DialogResult dialogResult = folderBrowserDialog.ShowDialog(); System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder(); _sbSqlWhere.Append(" and daa.erp_sczz in"); _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere()); _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList)); if (dialogResult == DialogResult.OK) { string _folder = folderBrowserDialog.SelectedPath; var _params = new { inSortName = "", inSortOrder = "", inQueryWhere = _sbSqlWhere.ToString() }; var _obj = new Gs.DevApp.Entity.XlsOutModel("xlsOut_fqclst", "", "", "", _params); try { string strJson = UtilityHelper.HttpPost("", "XlsInOut/XlsOutView_NEW", 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.Warning("æç¤ºï¼" + _rtn.rtnMsg); } } catch (Exception ex) { ToolBox.MsgHelper.Warning("æç¤ºï¼" + ex.Message); } } } } } } DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01.cs
@@ -1,4 +1,5 @@ using Gs.DevApp.DevFrm.QC; using Gs.DevApp.DevFrm.Rpt; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -431,6 +432,39 @@ /// <exception cref="NotImplementedException"></exception> private void ToolBarMenu1_btnOutClick(object sender, EventArgs e) { var frm = new SelOutType(); var type = 0; //èµå¼ç»æç»è¡¨ frm.UpdateParent += (ss, ee) => { var lst = new List<string>(); lst = ee.StringList; if (!string.IsNullOrEmpty(lst[0])) { if(lst[0] == "å表导åº") { type = 1; } else if (lst[0] == "æç»å¯¼åº") { type = 2; } } }; frm.ShowDialog(); if(type == 1) { LstOutput(); } if(type == 2) { MxOutput(); } } private void MxOutput() { string rowGuid = "", rowName = ""; (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_releaseNo, gridView1, "releaseNo"); @@ -481,6 +515,54 @@ } } private void LstOutput() { using (FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog()) { folderBrowserDialog.Description = "éæ©å¯¼åºæä»¶çä¿åè·¯å¾"; DialogResult dialogResult = folderBrowserDialog.ShowDialog(); System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder(); _sbSqlWhere.Append(" and a.ReceiveOrgId in"); _sbSqlWhere.Append(ToolBox.UtilityHelper.GetOrgWhere()); _sbSqlWhere.Append(UtilityHelper.GetSearchWhere(_filterList)); if (dialogResult == DialogResult.OK) { string _folder = folderBrowserDialog.SelectedPath; var _params = new { inSortName = "", inSortOrder = "", inQueryWhere = _sbSqlWhere.ToString() }; var _obj = new Gs.DevApp.Entity.XlsOutModel("xlsOut_iqcdetect01lst", "", "", "", _params); try { string strJson = UtilityHelper.HttpPost("", "XlsInOut/XlsOutView_NEW", 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.Warning("æç¤ºï¼" + _rtn.rtnMsg); } } catch (Exception ex) { ToolBox.MsgHelper.Warning("æç¤ºï¼" + ex.Message); } } } } /// <summary> /// å·æ°äºä»¶ /// </summary> DevApp/Gs.DevApp/DevFrm/QC/SelOutType.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,95 @@ namespace Gs.DevApp.DevFrm.QC { partial class SelOutType { /// <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() { this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.textEdit1 = new DevExpress.XtraEditors.ComboBoxEdit(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit(); this.SuspendLayout(); // // simpleButton1 // this.simpleButton1.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.lookup_reference_16x161; this.simpleButton1.Location = new System.Drawing.Point(224, 140); this.simpleButton1.Margin = new System.Windows.Forms.Padding(2); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(138, 44); this.simpleButton1.TabIndex = 3; this.simpleButton1.Text = "导åº"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(65, 45); this.labelControl1.Margin = new System.Windows.Forms.Padding(2); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(114, 22); this.labelControl1.TabIndex = 4; this.labelControl1.Text = "鿩坼åºç±»å:"; // // textEdit1 // this.textEdit1.Location = new System.Drawing.Point(209, 45); this.textEdit1.Name = "textEdit1"; this.textEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.textEdit1.Properties.Items.AddRange(new object[] { "å表导åº", "æç»å¯¼åº"}); this.textEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.textEdit1.Size = new System.Drawing.Size(386, 28); this.textEdit1.TabIndex = 6; // // SelOutType // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(646, 248); this.Controls.Add(this.labelControl1); this.Controls.Add(this.simpleButton1); this.Controls.Add(this.textEdit1); this.Margin = new System.Windows.Forms.Padding(2); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SelOutType"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "鿩坼åºç±»å"; ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private DevExpress.XtraEditors.SimpleButton simpleButton1; private DevExpress.XtraEditors.LabelControl labelControl1; private DevExpress.XtraEditors.ComboBoxEdit textEdit1; } } DevApp/Gs.DevApp/DevFrm/QC/SelOutType.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,29 @@ using Gs.DevApp.ToolBox; using System; using System.Collections.Generic; namespace Gs.DevApp.DevFrm.QC { public partial class SelOutType : DevExpress.XtraEditors.XtraForm { string _webServiceName = "MesAttanCon/"; public SelOutType() { InitializeComponent(); } /// <summary> /// éæ©åçåè°äºä»¶ /// </summary> public event EventHandler<UpdateParentEventArgs> UpdateParent; private void simpleButton1_Click(object sender, EventArgs e) { var list = new List<string>(); list.Add(textEdit1.EditValue?.ToString() ?? ""); UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringList = list }); Close(); } } } DevApp/Gs.DevApp/DevFrm/QC/SelOutType.resx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,120 @@ <?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> </root> DevApp/Gs.DevApp/DevFrm/Rpt/WOTraceCodes.cs
@@ -4,7 +4,9 @@ using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Net; using System.Threading.Tasks; using System.Windows.Forms; @@ -20,6 +22,7 @@ InitializeComponent(); this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; toolBarMenu1.btnOutClick += ToolBarMenu1_btnOutClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, this, "", "", (value) => { @@ -128,5 +131,50 @@ ToolBox.MsgHelper.ShowError("æç¤ºï¼" + ex.Message); } } private void ToolBarMenu1_btnOutClick(object sender, EventArgs e) { using (FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog()) { folderBrowserDialog.Description = "éæ©å¯¼åºæä»¶çä¿åè·¯å¾"; DialogResult dialogResult = folderBrowserDialog.ShowDialog(); var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); if (dialogResult == DialogResult.OK) { string _folder = folderBrowserDialog.SelectedPath; var _params = new { inSortName = "", inSortOrder = "", inQueryWhere = _sbSqlWhere.ToString() }; var _obj = new Gs.DevApp.Entity.XlsOutModel("xlsout_WOTraceCodes", "", "", "", _params); try { string strJson = UtilityHelper.HttpPost("", "XlsInOut/XlsOutView_NEW", 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.Warning("æç¤ºï¼" + _rtn.rtnMsg); } } catch (Exception ex) { ToolBox.MsgHelper.Warning("æç¤ºï¼" + ex.Message); } } } } } } DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.Designer.cs
@@ -35,6 +35,7 @@ DevExpress.XtraLayout.ColumnDefinition columnDefinition4 = new DevExpress.XtraLayout.ColumnDefinition(); DevExpress.XtraLayout.ColumnDefinition columnDefinition5 = new DevExpress.XtraLayout.ColumnDefinition(); DevExpress.XtraLayout.ColumnDefinition columnDefinition6 = new DevExpress.XtraLayout.ColumnDefinition(); DevExpress.XtraLayout.ColumnDefinition columnDefinition7 = new DevExpress.XtraLayout.ColumnDefinition(); DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition(); DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); @@ -52,7 +53,6 @@ this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.gcMain1 = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); @@ -67,6 +67,9 @@ this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); this.rptBtnView = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); this.tips = new DevExpress.Utils.ToolTipController(this.components); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.btnBOMQuery = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1.Panel1)).BeginInit(); this.splitContainerControl1.Panel1.SuspendLayout(); @@ -83,11 +86,12 @@ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.rptBtnView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); this.SuspendLayout(); // // splitContainerControl1 @@ -114,6 +118,7 @@ // // layoutControl1 // this.layoutControl1.Controls.Add(this.btnBOMQuery); this.layoutControl1.Controls.Add(this.btnOutput); this.layoutControl1.Controls.Add(this.ucLookOrg1); this.layoutControl1.Controls.Add(this.dateEdit1); @@ -196,8 +201,9 @@ this.layoutControlItem2, this.layoutControlItem1, this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem5, this.layoutControlItem4}); this.layoutControlItem6}); this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table; this.Root.Name = "Root"; columnDefinition1.SizeType = System.Windows.Forms.SizeType.Absolute; @@ -210,15 +216,18 @@ columnDefinition4.Width = 187D; columnDefinition5.SizeType = System.Windows.Forms.SizeType.Absolute; columnDefinition5.Width = 187D; columnDefinition6.SizeType = System.Windows.Forms.SizeType.AutoSize; columnDefinition6.Width = 451D; columnDefinition6.SizeType = System.Windows.Forms.SizeType.Absolute; columnDefinition6.Width = 187D; columnDefinition7.SizeType = System.Windows.Forms.SizeType.AutoSize; columnDefinition7.Width = 264D; this.Root.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] { columnDefinition1, columnDefinition2, columnDefinition3, columnDefinition4, columnDefinition5, columnDefinition6}); columnDefinition6, columnDefinition7}); rowDefinition1.Height = 100D; rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { @@ -256,16 +265,6 @@ this.layoutControlItem3.Text = "ç¡®å®æ¥è¯¢"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextVisible = false; // // layoutControlItem5 // this.layoutControlItem5.Control = this.btnOutput; this.layoutControlItem5.Location = new System.Drawing.Point(1062, 0); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 4; this.layoutControlItem5.Size = new System.Drawing.Size(187, 36); this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextVisible = false; // // layoutControlItem4 // @@ -408,6 +407,38 @@ this.rptBtnView.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; this.rptBtnView.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.rptBtnView_ButtonClick); // // layoutControlItem5 // this.layoutControlItem5.Control = this.btnOutput; this.layoutControlItem5.Location = new System.Drawing.Point(1062, 0); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 4; this.layoutControlItem5.Size = new System.Drawing.Size(187, 36); this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextVisible = false; // // btnBOMQuery // this.btnBOMQuery.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.viewmergeddata_16x16; this.btnBOMQuery.Location = new System.Drawing.Point(1261, 12); this.btnBOMQuery.Margin = new System.Windows.Forms.Padding(4); this.btnBOMQuery.Name = "btnBOMQuery"; this.btnBOMQuery.Size = new System.Drawing.Size(183, 32); this.btnBOMQuery.StyleController = this.layoutControl1; this.btnBOMQuery.TabIndex = 9; this.btnBOMQuery.Text = "BOMæ¥è¯¢"; this.btnBOMQuery.Click += new System.EventHandler(this.btnBOMQuery_Click); // // layoutControlItem6 // this.layoutControlItem6.Control = this.btnBOMQuery; this.layoutControlItem6.Location = new System.Drawing.Point(1249, 0); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.OptionsTableLayoutItem.ColumnIndex = 5; this.layoutControlItem6.Size = new System.Drawing.Size(187, 36); this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem6.TextVisible = false; // // WomShjh // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); @@ -433,11 +464,12 @@ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.rptBtnView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); this.ResumeLayout(false); } @@ -468,7 +500,9 @@ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraGrid.Columns.GridColumn gridColumn9; private DevExpress.XtraEditors.SimpleButton btnOutput; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; private DevExpress.XtraEditors.SimpleButton btnBOMQuery; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; } } DevApp/Gs.DevApp/DevFrm/Rpt/WomShjh.cs
@@ -1,4 +1,5 @@ using DevExpress.Utils; using DevExpress.Pdf.Native.BouncyCastle.Asn1.X509; using DevExpress.Utils; using DevExpress.XtraGrid.Views.Grid.ViewInfo; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; @@ -191,5 +192,24 @@ } } } private void btnBOMQuery_Click(object sender, EventArgs e) { try { var strJson = UtilityHelper.HttpPost("", _webServiceName + "GetErpBOM",""); var _rtn = UtilityHelper.ReturnToDynamic(strJson); if (_rtn.rtnCode > 0) { MsgHelper.ShowInformation("BOMæ°æ®æ´æ°æå"); } else MsgHelper.ShowError("æç¤ºï¼" + _rtn.rtnMsg); } catch (Exception ex) { MsgHelper.ShowError("æç¤ºï¼" + ex.Message); } } } } DevApp/Gs.DevApp/Gs.DevApp.csproj
@@ -705,6 +705,12 @@ <Compile Include="DevFrm\QC\Models\MesQmCheckitemDt.cs" /> <Compile Include="DevFrm\QC\Models\MesSysLookups.cs" /> <Compile Include="DevFrm\QC\Models\MesSysLookupTypes.cs" /> <Compile Include="DevFrm\QC\SelOutType.cs"> <SubType>Form</SubType> </Compile> <Compile Include="DevFrm\QC\SelOutType.Designer.cs"> <DependentUpon>SelOutType.cs</DependentUpon> </Compile> <Compile Include="DevFrm\QC\Xls.cs"> <SubType>Form</SubType> </Compile> @@ -1952,6 +1958,9 @@ <EmbeddedResource Include="DevFrm\QC\MesQcExceptional.resx"> <DependentUpon>MesQcExceptional.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="DevFrm\QC\SelOutType.resx"> <DependentUpon>SelOutType.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="DevFrm\QC\Xls.resx"> <DependentUpon>Xls.cs</DependentUpon> </EmbeddedResource>