schangxiang@126.com
2025-05-11 f12cbfe9cba26c1a0e3abf1fe09a3c9cd9586a81
Weben_CMSרÓôúÂëÉú³ÉÆ÷/Code/MainForm.cs
@@ -43,7 +43,7 @@
            this.tb_LikeQueryAttrsName.Text = "请输入物料编码/物料名称/备注";
            //this.tb_EntityProName.Text = "wmsMaterial";//实体类对象名
            this.tb_EnumList.Text = "PurchaseType|PurchaseTypeEnum|PurchaseTypeDesc,MaterialType|MaterialTypeEnum|MaterialTypeDesc,IsMainBranch|YesNoEnum|IsMainBranchDesc";
            this.tb_EnumList.Text = "PurchaseType,PurchaseTypeEnum&MaterialType,MaterialTypeEnum&IsMainBranch,YesNoEnum";
            this.cmb_DataSource.DropDownStyle = ComboBoxStyle.DropDownList;
            List<ListItem> itemList = CommonHelper.GetDataSources();
@@ -246,20 +246,20 @@
                //处理枚举类型
                List<EnumModel> enumList = new List<EnumModel>();
                var str_enumList = this.tb_EnumList.Text.Trim();
                if (str_enumList.IndexOf(',') > -1)
                if (str_enumList.IndexOf('&') > -1)
                {
                    str_enumList = str_enumList.Replace("\n", "");
                    str_enumList = str_enumList.Replace("\t", "");
                    str_enumList = str_enumList.Replace("\r", "");
                    var arr_enumList = str_enumList.Split(',');
                    var arr_enumList = str_enumList.Split('&');
                    foreach (var item in arr_enumList)
                    {
                        var arr_single = item.Split('|');
                        var arr_single = item.Split(',');
                        enumList.Add(new EnumModel()
                        {
                            EnumAttrName = arr_single[0],
                            EnumType = arr_single[1],
                            EnumTypeDesc = arr_single[2]
                            EnumTypeDesc = arr_single[0] + SystemConst.enumDescName
                        });
                    }
                }
@@ -267,12 +267,12 @@
                {
                    if (!string.IsNullOrEmpty(str_enumList))
                    {
                        var arr_single = str_enumList.Split('|');
                        var arr_single = str_enumList.Split(',');
                        enumList.Add(new EnumModel()
                        {
                            EnumAttrName = arr_single[0],
                            EnumType = arr_single[1],
                            EnumTypeDesc = arr_single[2]
                            EnumTypeDesc = arr_single[0] + SystemConst.enumDescName
                        });
                    }
                }