lu
2025-06-06 33e40a739ef06ee82f6c1869ce4f5088b57ed769
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesDefectCodeShow.cs
@@ -13,9 +13,8 @@
    {
        string strGuid = "";
        string strUpGuid = "";
        string  strType = "";//类别(普通信息,认证信息)
        string strType = "";//信息的分类s_type
        string _webServiceName = "MesDefectCodeManager/";
        /// <summary>
        /// 
@@ -30,7 +29,7 @@
            this.strUpGuid = _strUpGuid;
            this.strType = _strType;
            getSelect();
            //这是更新
            //这是更新,禁止类型和编号
            if (!string.IsNullOrEmpty(this.strGuid))
            {
                getMode(strGuid);
@@ -39,14 +38,13 @@
                txt_defectCode.ReadOnly = true;
                return;
            }
            //这是增加子项
            //这是增加子项,需要初始化它的编号
            if (!string.IsNullOrEmpty(strUpGuid))
            {
                getMode(strUpGuid);
                this.Text = "增加【" + txt_defectName.Text + "】的子项目";
                txt_sType.Enabled = false;
                txt_defectCode.ReadOnly = false;
                txt_defectCode.Text = "";
                txt_defectName.Text = "";
                return;
            }
@@ -139,11 +137,11 @@
        /// 读取实体
        /// </summary>
        /// <param name="strGuid"></param>
        private void getMode(string strGuid)
        private void getMode(string guid)
        {
            var _obj = new
            {
                guid = strGuid,//主建
                guid = guid,//主建
            };
            try
            {
@@ -153,6 +151,8 @@
                {
                    dynamic dy = _rtn.rtnData;
                    UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, true);
                    if(string.IsNullOrEmpty(strGuid))
                    txt_defectCode.Text = dy.maxNo;
                }
                else
                    ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg);