| | |
| | | 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(); |
| | |
| | | //å¤çæä¸¾ç±»å |
| | | 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 |
| | | }); |
| | | } |
| | | } |
| | |
| | | { |
| | | 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 |
| | | }); |
| | | } |
| | | } |