lu
2025-05-29 0577ec53bf1bddb17c74618d1cf60ca6ec837949
认证信息
已添加8个文件
已修改4个文件
963 ■■■■■ 文件已修改
DevApp/Gs.DevApp/DevFrm/QC/DefectCode.Designer.cs 290 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCode.cs 210 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCode.resx 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeDic.Designer.cs 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeDic.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeDic.resx 120 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeRenZheng.Designer.cs 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeRenZheng.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesDefectCode.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesDefectCodeShow.Designer.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesDefectCodeShow.cs 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/Gs.DevApp.csproj 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/DevFrm/QC/DefectCode.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,290 @@
namespace Gs.DevApp.DevFrm.QC
{
    partial class DefectCode
    {
        /// <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 Component 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.components = new System.ComponentModel.Container();
            this.toolStripMenuItemRoot = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItemEdt = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem();
            this.cms1 = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.toolStripMenuItemDel = new System.Windows.Forms.ToolStripMenuItem();
            this.treeListColumn1 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
            this.tl9 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
            this.tl8 = new DevExpress.XtraTreeList.Columns.TreeListColumn();
            this.tlcActions = new DevExpress.XtraTreeList.Columns.TreeListColumn();
            this.tlcMenuCaption = new DevExpress.XtraTreeList.Columns.TreeListColumn();
            this.tlcModuleID = new DevExpress.XtraTreeList.Columns.TreeListColumn();
            this.split1 = new DevExpress.XtraEditors.SplitContainerControl();
            this.tlMenu = new DevExpress.XtraTreeList.TreeList();
            this.tlcMenuName = new DevExpress.XtraTreeList.Columns.TreeListColumn();
            this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
            this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
            this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu();
            this.cms1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.split1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).BeginInit();
            this.split1.Panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.split1.Panel2)).BeginInit();
            this.split1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.tlMenu)).BeginInit();
            this.xtraTabPage1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
            this.xtraTabControl1.SuspendLayout();
            this.SuspendLayout();
            //
            // toolStripMenuItemRoot
            //
            this.toolStripMenuItemRoot.Image = global::Gs.DevApp.Properties.Resources.trackingchanges_allmarkup_16x16;
            this.toolStripMenuItemRoot.Name = "toolStripMenuItemRoot";
            this.toolStripMenuItemRoot.Size = new System.Drawing.Size(214, 26);
            this.toolStripMenuItemRoot.Text = "增加主项";
            //
            // toolStripMenuItemEdt
            //
            this.toolStripMenuItemEdt.Image = global::Gs.DevApp.Properties.Resources.trackingchanges_trackchanges_16x16;
            this.toolStripMenuItemEdt.Name = "toolStripMenuItemEdt";
            this.toolStripMenuItemEdt.Size = new System.Drawing.Size(214, 26);
            this.toolStripMenuItemEdt.Text = "编辑该项";
            //
            // toolStripMenuItemAdd
            //
            this.toolStripMenuItemAdd.Image = global::Gs.DevApp.Properties.Resources.trackingchanges_allmarkup_16x16;
            this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd";
            this.toolStripMenuItemAdd.Size = new System.Drawing.Size(214, 26);
            this.toolStripMenuItemAdd.Text = "增加子项";
            //
            // cms1
            //
            this.cms1.ImageScalingSize = new System.Drawing.Size(20, 20);
            this.cms1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripMenuItemAdd,
            this.toolStripMenuItemEdt,
            this.toolStripMenuItemDel,
            this.toolStripMenuItemRoot});
            this.cms1.Name = "contextMenuStrip1";
            this.cms1.Size = new System.Drawing.Size(215, 136);
            //
            // toolStripMenuItemDel
            //
            this.toolStripMenuItemDel.Image = global::Gs.DevApp.Properties.Resources.deletelist2_16x16;
            this.toolStripMenuItemDel.Name = "toolStripMenuItemDel";
            this.toolStripMenuItemDel.Size = new System.Drawing.Size(214, 26);
            this.toolStripMenuItemDel.Text = "删除该项";
            //
            // treeListColumn1
            //
            this.treeListColumn1.Caption = "可用标识";
            this.treeListColumn1.FieldName = "type1";
            this.treeListColumn1.Name = "treeListColumn1";
            this.treeListColumn1.Visible = true;
            this.treeListColumn1.VisibleIndex = 4;
            //
            // tl9
            //
            this.tl9.Caption = "最后更新时间";
            this.tl9.FieldName = "lastupdateDate";
            this.tl9.Name = "tl9";
            this.tl9.Visible = true;
            this.tl9.VisibleIndex = 6;
            //
            // tl8
            //
            this.tl8.Caption = "最后更新人";
            this.tl8.FieldName = "lastupdateBy";
            this.tl8.Name = "tl8";
            this.tl8.Visible = true;
            this.tl8.VisibleIndex = 5;
            //
            // tlcActions
            //
            this.tlcActions.Caption = "字典分组";
            this.tlcActions.FieldName = "sType";
            this.tlcActions.MinWidth = 23;
            this.tlcActions.Name = "tlcActions";
            this.tlcActions.Visible = true;
            this.tlcActions.VisibleIndex = 3;
            this.tlcActions.Width = 50;
            //
            // tlcMenuCaption
            //
            this.tlcMenuCaption.Caption = "字典编号";
            this.tlcMenuCaption.FieldName = "defectCode";
            this.tlcMenuCaption.MinWidth = 23;
            this.tlcMenuCaption.Name = "tlcMenuCaption";
            this.tlcMenuCaption.Visible = true;
            this.tlcMenuCaption.VisibleIndex = 1;
            this.tlcMenuCaption.Width = 139;
            //
            // tlcModuleID
            //
            this.tlcModuleID.Caption = "guid";
            this.tlcModuleID.FieldName = "guid";
            this.tlcModuleID.MinWidth = 23;
            this.tlcModuleID.Name = "tlcModuleID";
            this.tlcModuleID.Visible = true;
            this.tlcModuleID.VisibleIndex = 0;
            this.tlcModuleID.Width = 103;
            //
            // split1
            //
            this.split1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.split1.FixedPanel = DevExpress.XtraEditors.SplitFixedPanel.Panel2;
            this.split1.Horizontal = false;
            this.split1.Location = new System.Drawing.Point(0, 0);
            this.split1.Name = "split1";
            //
            // split1.Panel1
            //
            this.split1.Panel1.Controls.Add(this.tlMenu);
            this.split1.Panel1.Text = "Panel1";
            //
            // split1.Panel2
            //
            this.split1.Panel2.Text = "Panel2";
            this.split1.ShowSplitGlyph = DevExpress.Utils.DefaultBoolean.True;
            this.split1.Size = new System.Drawing.Size(988, 679);
            this.split1.SplitterPosition = 0;
            this.split1.TabIndex = 0;
            //
            // tlMenu
            //
            this.tlMenu.Appearance.Row.Options.UseFont = true;
            this.tlMenu.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] {
            this.tlcModuleID,
            this.tlcMenuCaption,
            this.tlcMenuName,
            this.tlcActions,
            this.tl8,
            this.tl9,
            this.treeListColumn1});
            this.tlMenu.Cursor = System.Windows.Forms.Cursors.Default;
            this.tlMenu.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tlMenu.Location = new System.Drawing.Point(0, 0);
            this.tlMenu.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.tlMenu.MinWidth = 23;
            this.tlMenu.Name = "tlMenu";
            this.tlMenu.OptionsBehavior.Editable = false;
            this.tlMenu.OptionsFind.AlwaysVisible = true;
            this.tlMenu.OptionsMenu.EnableColumnMenu = false;
            this.tlMenu.OptionsMenu.EnableFooterMenu = false;
            this.tlMenu.OptionsMenu.EnableNodeMenu = false;
            this.tlMenu.OptionsMenu.ShowAddNodeItems = DevExpress.Utils.DefaultBoolean.False;
            this.tlMenu.OptionsMenu.ShowAutoFilterRowItem = false;
            this.tlMenu.OptionsView.TreeLineStyle = DevExpress.XtraTreeList.LineStyle.Solid;
            this.tlMenu.Size = new System.Drawing.Size(988, 667);
            this.tlMenu.TabIndex = 3;
            this.tlMenu.TreeLevelWidth = 21;
            //
            // tlcMenuName
            //
            this.tlcMenuName.Caption = "字典名称值";
            this.tlcMenuName.FieldName = "defectName";
            this.tlcMenuName.MinWidth = 38;
            this.tlcMenuName.Name = "tlcMenuName";
            this.tlcMenuName.Visible = true;
            this.tlcMenuName.VisibleIndex = 2;
            this.tlcMenuName.Width = 215;
            //
            // xtraTabPage1
            //
            this.xtraTabPage1.Controls.Add(this.split1);
            this.xtraTabPage1.Name = "xtraTabPage1";
            this.xtraTabPage1.Size = new System.Drawing.Size(988, 679);
            this.xtraTabPage1.Text = "数据列表";
            //
            // xtraTabControl1
            //
            this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.xtraTabControl1.Location = new System.Drawing.Point(0, 80);
            this.xtraTabControl1.Name = "xtraTabControl1";
            this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
            this.xtraTabControl1.Size = new System.Drawing.Size(990, 711);
            this.xtraTabControl1.TabIndex = 5;
            this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
            this.xtraTabPage1});
            //
            // toolBarMenu1
            //
            this.toolBarMenu1.chkParameter = null;
            this.toolBarMenu1.currentAction = null;
            this.toolBarMenu1.defaultActions = null;
            this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top;
            this.toolBarMenu1.guidKey = null;
            this.toolBarMenu1.isSetBtn = false;
            this.toolBarMenu1.Location = new System.Drawing.Point(0, 0);
            this.toolBarMenu1.Name = "toolBarMenu1";
            this.toolBarMenu1.rptParameter = null;
            this.toolBarMenu1.Size = new System.Drawing.Size(990, 80);
            this.toolBarMenu1.TabIndex = 4;
            this.toolBarMenu1.xlsInService = null;
            this.toolBarMenu1.xlsOutParameter = null;
            //
            // DefectCode
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.xtraTabControl1);
            this.Controls.Add(this.toolBarMenu1);
            this.Name = "DefectCode";
            this.Size = new System.Drawing.Size(990, 791);
            this.cms1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).EndInit();
            this.split1.Panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.split1.Panel2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.split1)).EndInit();
            this.split1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.tlMenu)).EndInit();
            this.xtraTabPage1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
            this.xtraTabControl1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
        #endregion
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemRoot;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemEdt;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemAdd;
        private System.Windows.Forms.ContextMenuStrip cms1;
        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDel;
        private DevExpress.XtraTreeList.Columns.TreeListColumn treeListColumn1;
        private DevExpress.XtraTreeList.Columns.TreeListColumn tl9;
        private DevExpress.XtraTreeList.Columns.TreeListColumn tl8;
        private DevExpress.XtraTreeList.Columns.TreeListColumn tlcActions;
        private DevExpress.XtraTreeList.Columns.TreeListColumn tlcMenuCaption;
        private DevExpress.XtraTreeList.Columns.TreeListColumn tlcModuleID;
        private DevExpress.XtraEditors.SplitContainerControl split1;
        private DevExpress.XtraTreeList.TreeList tlMenu;
        private DevExpress.XtraTreeList.Columns.TreeListColumn tlcMenuName;
        private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
        private DevExpress.XtraTab.XtraTabControl xtraTabControl1;
        private UserControl.UcToolBarMenu toolBarMenu1;
    }
}
DevApp/Gs.DevApp/DevFrm/QC/DefectCode.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,210 @@
using DevExpress.XtraEditors;
using DevExpress.XtraTreeList.Nodes;
using DevExpress.XtraTreeList;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
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.QC
{
    public partial class DefectCode : DevExpress.XtraEditors.XtraUserControl
    {
        string _webServiceName = "MesDefectCodeManager/";
        List<FilterEntity> _filterList = new List<FilterEntity>();
        public string strType = "";//类别(普通信息,认证信息)
        public DefectCode(string _strType)
        {
            InitializeComponent();
            strType = _strType;
            toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick;
            this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
            tlMenu.IndicatorWidth = 50;
            tlMenu.CustomDrawNodeIndicator += (s, ee) =>
            {
                if (ee.IsNodeIndicator)
                {
                    var index = ee.Node.TreeList.GetVisibleIndexByNode(ee.Node);
                    ee.Info.DisplayText = (index + 1).ToString();
                }
            };
            getPageList(1);
            this.tlMenu.MouseDown += TlMenu_MouseDown;
            this.toolStripMenuItemAdd.Click += (s, ee) =>
            {
                string strGuid = "";
                string strUpGuid = "";
                if (tlMenu.FocusedNode != null)
                {
                    strUpGuid = tlMenu.FocusedNode.GetValue("guid").ToString();
                }
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid,strType);
                frm.UpdateParent += (s2, ee2) =>
                {
                    getPageList(1);
                };
                frm.ShowDialog();
            };
            this.toolStripMenuItemRoot.Click += (s, ee) =>
            {
                string strGuid = "";
                string strUpGuid = "";
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid, strType);
                frm.UpdateParent += (s2, ee2) =>
                {
                    getPageList(1);
                };
                frm.ShowDialog();
            };
            this.toolStripMenuItemDel.Click += (s, ee) =>
            {
                if (tlMenu.FocusedNode != null)
                {
                    string rowGuid = "";
                    string rowName = "";
                    rowGuid = tlMenu.FocusedNode.GetValue("guid").ToString();
                    rowName = tlMenu.FocusedNode.GetValue("defectName").ToString();
                    if (string.IsNullOrEmpty(rowGuid))
                    {
                        ToolBox.MsgHelper.Warning("请先选择你要操作的行!");
                        return;
                    }
                    if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定删除吗?"))
                        return;
                    List<dynamic> lst = new List<dynamic>();
                    lst.Add(rowGuid);
                    var _obj = lst;
                    try
                    {
                        string strJson = UtilityHelper.HttpPost("", _webServiceName + "DeleteModel", JsonConvert.SerializeObject(_obj));
                        ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson);
                        if (_rtn.rtnCode > 0)
                        {
                            tlMenu.DeleteNode(tlMenu.FocusedNode);
                        }
                        else
                            ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg);
                    }
                    catch (Exception ex)
                    {
                        ToolBox.MsgHelper.Warning("提示:" + ex.Message);
                    }
                }
            };
            this.toolStripMenuItemEdt.Click += (s, ee) =>
            {
                string strGuid = "";
                string strUpGuid = "";
                if (tlMenu.FocusedNode != null)
                {
                    strGuid = tlMenu.FocusedNode.GetValue("guid").ToString();
                    strUpGuid = tlMenu.FocusedNode.GetValue("pid").ToString();
                }
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid, strType);
                frm.UpdateParent += (s2, ee2) =>
                {
                    getPageList(1);
                };
                frm.ShowDialog();
            };
        }
        /// <summary>
        /// å³é”®å¼¹å‡ºèœå•,如果是行,增加子项目,否则增加主项
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TlMenu_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                TreeListHitInfo hInfo = tlMenu.CalcHitInfo(new Point(e.X, e.Y));
                TreeListNode node = hInfo.Node;
                tlMenu.FocusedNode = node;
                if (hInfo.HitInfoType == HitInfoType.Cell ||
                    hInfo.HitInfoType == HitInfoType.Row ||
                    hInfo.HitInfoType == HitInfoType.RowIndent ||
                    hInfo.HitInfoType == HitInfoType.RowIndicator
                    )
                {
                    if (node != null)
                    {
                        toolStripMenuItemAdd.Visible = true;
                        toolStripMenuItemEdt.Visible = true;
                        toolStripMenuItemDel.Visible = true;
                        toolStripMenuItemRoot.Visible = false;
                        cms1.Show(tlMenu, e.Location);
                    }
                }
                else
                {
                    toolStripMenuItemAdd.Visible = false;
                    toolStripMenuItemEdt.Visible = false;
                    toolStripMenuItemDel.Visible = false;
                    toolStripMenuItemRoot.Visible = true;
                    cms1.Show(tlMenu, e.Location);
                }
            }
        }
        /// <summary>
        /// æŸ¥è¯¢äº‹ä»¶
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e)
        {
            Gs.DevApp.ToolBox.MsgHelper.ShowInformation("该窗体不支持查询,若想更新页面,请点击 åˆ·æ–°");
        }
        /// <summary>
        /// åˆ·æ–°äº‹ä»¶
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e)
        {
            _filterList.Clear();
            getPageList(1);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="curPage">第几页</param>
        /// <param name="pageSize">每页几条</param>
        private void getPageList(int curPage)
        {
            System.Text.StringBuilder sbWhere = new StringBuilder();
            sbWhere.Append(" and a.defect_sort='" + strType + "'");
            var pgq = new PageQueryModel(1, 999999, "a.defect_code ", "asc","", sbWhere.ToString());
            var json = JsonConvert.SerializeObject(pgq);
            try
            {
                var strReturn =
                    UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json);
                var dd = UtilityHelper.ReturnToTablePage(strReturn);
                var dt = dd.rtnData.list;
                tlMenu.DataSource = dt;
                tlMenu.KeyFieldName = "guid";
                tlMenu.ParentFieldName = "pid";
                tlMenu.EndUpdate();
                this.tlMenu.CollapseAll();
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
            }
        }
    }
}
DevApp/Gs.DevApp/DevFrm/QC/DefectCode.resx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,123 @@
<?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>
  <metadata name="cms1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
</root>
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeDic.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,58 @@
namespace Gs.DevApp.DevFrm.QC
{
    partial class DefectCodeDic
    {
        /// <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.defectCode1 = new Gs.DevApp.DevFrm.QC.DefectCode("普通信息");
            this.SuspendLayout();
            //
            // defectCode1
            //
            this.defectCode1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.defectCode1.Location = new System.Drawing.Point(0, 0);
            this.defectCode1.Name = "defectCode1";
            this.defectCode1.Size = new System.Drawing.Size(1001, 568);
            this.defectCode1.TabIndex = 0;
            //
            // DefectCodeDic
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1001, 568);
            this.Controls.Add(this.defectCode1);
            this.Name = "DefectCodeDic";
            this.Text = "DefectCodeDic";
            this.ResumeLayout(false);
        }
        #endregion
        private DefectCode defectCode1;
    }
}
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeDic.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,21 @@
using DevExpress.XtraEditors;
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.QC
{
    public partial class DefectCodeDic : DevExpress.XtraEditors.XtraForm
    {
        public DefectCodeDic()
        {
            InitializeComponent();
        }
    }
}
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeDic.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/QC/DefectCodeRenZheng.Designer.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,58 @@
namespace Gs.DevApp.DevFrm.QC
{
    partial class DefectCodeRenZheng
    {
        /// <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.defectCode1 = new Gs.DevApp.DevFrm.QC.DefectCode("认证信息");
            this.SuspendLayout();
            //
            // defectCode1
            //
            this.defectCode1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.defectCode1.Location = new System.Drawing.Point(0, 0);
            this.defectCode1.Name = "defectCode1";
            this.defectCode1.Size = new System.Drawing.Size(1001, 568);
            this.defectCode1.TabIndex = 0;
            //
            // DefectCodeDic
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1001, 568);
            this.Controls.Add(this.defectCode1);
            this.Name = "DefectCodeDic";
            this.Text = "DefectCodeDic";
            this.ResumeLayout(false);
        }
        #endregion
        private DefectCode defectCode1;
    }
}
DevApp/Gs.DevApp/DevFrm/QC/DefectCodeRenZheng.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,21 @@
using DevExpress.XtraEditors;
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.QC
{
    public partial class DefectCodeRenZheng : DevExpress.XtraEditors.XtraForm
    {
        public DefectCodeRenZheng()
        {
            InitializeComponent();
        }
    }
}
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesDefectCode.cs
@@ -40,7 +40,7 @@
                {
                    strUpGuid = tlMenu.FocusedNode.GetValue("guid").ToString();
                }
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid);
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid,strType);
                frm.UpdateParent += (s2, ee2) =>
                {
                    getPageList(1);
@@ -51,7 +51,7 @@
            {
                string strGuid = "";
                string strUpGuid = "";
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid);
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid, strType);
                frm.UpdateParent += (s2, ee2) =>
                {
                    getPageList(1);
@@ -102,7 +102,7 @@
                    strGuid = tlMenu.FocusedNode.GetValue("guid").ToString();
                    strUpGuid = tlMenu.FocusedNode.GetValue("pid").ToString();
                }
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid);
                Frm_MesDefectCodeShow frm = new Frm_MesDefectCodeShow(strGuid, strUpGuid, strType);
                frm.UpdateParent += (s2, ee2) =>
                {
                    getPageList(1);
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesDefectCodeShow.Designer.cs
@@ -107,6 +107,7 @@
            // 
            // txt_type1
            // 
            this.txt_type1.EditValue = true;
            this.txt_type1.Location = new System.Drawing.Point(12, 211);
            this.txt_type1.Name = "txt_type1";
            this.txt_type1.Properties.Caption = "可用标识";
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesDefectCodeShow.cs
@@ -4,6 +4,7 @@
using Newtonsoft.Json;
using System;
using System.Data;
using System.Text;
namespace Gs.DevApp.DevFrm.QC
@@ -12,14 +13,23 @@
    {
        string strGuid = "";
        string strUpGuid = "";
        string  strType = "";//类别(普通信息,认证信息)
        string _webServiceName = "MesDefectCodeManager/";
        public Frm_MesDefectCodeShow(string _strGuid, string _strUpGuid)
        /// <summary>
        ///
        /// </summary>
        /// <param name="_strGuid">主键</param>
        /// <param name="_strUpGuid">父亲主键</param>
        /// <param name="_strType">类别</param>
        public Frm_MesDefectCodeShow(string _strGuid, string _strUpGuid, string _strType)
        {
            InitializeComponent();
            getSelect();
            this.strGuid = _strGuid;
            this.strUpGuid = _strUpGuid;
            this.strType = _strType;
            getSelect();
            //这是更新
            if (!string.IsNullOrEmpty(this.strGuid))
            {
@@ -74,7 +84,8 @@
                SType = txt_sType.Text.Trim(),
                DefectName = txt_defectName.Text.Trim(),
                Pid = UtilityHelper.ToGuid(strUpGuid.Trim()),
                Type1 = txt_type1.Checked
                Type1 = txt_type1.Checked,
                DefectSort = strType,
            };
            try
            {
@@ -108,8 +119,11 @@
        /// </summary>
        private void getSelect()
        {
            System.Text.StringBuilder sbWhere = new StringBuilder();
            sbWhere.Append(" and a.defect_sort='" + strType + "'");
            var _obj = new
            {
                strWhere = sbWhere.ToString()
            };
            var strReturn = UtilityHelper.HttpPost("", _webServiceName + "SelectCategory", JsonConvert.SerializeObject(_obj));
            var dd = UtilityHelper.ReturnToList(strReturn);
DevApp/Gs.DevApp/Gs.DevApp.csproj
@@ -419,17 +419,29 @@
    <Compile Include="DevFrm\PDA\SelectUser.Designer.cs">
      <DependentUpon>SelectUser.cs</DependentUpon>
    </Compile>
    <Compile Include="DevFrm\QC\DefectCode.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="DevFrm\QC\DefectCode.Designer.cs">
      <DependentUpon>DefectCode.cs</DependentUpon>
    </Compile>
    <Compile Include="DevFrm\QC\DefectCodeDic.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="DevFrm\QC\DefectCodeDic.Designer.cs">
      <DependentUpon>DefectCodeDic.cs</DependentUpon>
    </Compile>
    <Compile Include="DevFrm\QC\DefectCodeRenZheng.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="DevFrm\QC\DefectCodeRenZheng.Designer.cs">
      <DependentUpon>DefectCodeRenZheng.cs</DependentUpon>
    </Compile>
    <Compile Include="DevFrm\QC\Frm_IQCLookups.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="DevFrm\QC\Frm_IQCLookups.Designer.cs">
      <DependentUpon>Frm_IQCLookups.cs</DependentUpon>
    </Compile>
    <Compile Include="DevFrm\QC\Frm_MesDefectCode.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="DevFrm\QC\Frm_MesDefectCode.Designer.cs">
      <DependentUpon>Frm_MesDefectCode.cs</DependentUpon>
    </Compile>
    <Compile Include="DevFrm\QC\Frm_MesDefectCodeShow.cs">
      <SubType>Form</SubType>
@@ -1333,11 +1345,14 @@
    <EmbeddedResource Include="DevFrm\PDA\SelectUser.resx">
      <DependentUpon>SelectUser.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="DevFrm\QC\DefectCode.resx">
      <DependentUpon>DefectCode.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="DevFrm\QC\DefectCodeDic.resx">
      <DependentUpon>DefectCodeDic.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="DevFrm\QC\Frm_IQCLookups.resx">
      <DependentUpon>Frm_IQCLookups.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="DevFrm\QC\Frm_MesDefectCode.resx">
      <DependentUpon>Frm_MesDefectCode.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="DevFrm\QC\Frm_MesDefectCodeShow.resx">
      <DependentUpon>Frm_MesDefectCodeShow.cs</DependentUpon>