| | |
| | | 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(); |
| | |
| | | string _tb_LikeQueryAttrsName = this.tb_LikeQueryAttrsName.Text.Trim();//ä¸ææ³¨é |
| | | if (_tb_LikeQueryAttrsName == "") |
| | | { |
| | | MessageBox.Show("请è¾å
¥ æ¨¡ç³æ¥è¯¢å段åï¼"); |
| | | this.tb_LikeQueryAttrsName.Focus(); |
| | | return; |
| | | //MessageBox.Show("请è¾å
¥ æ¨¡ç³æ¥è¯¢å段åï¼"); |
| | | //this.tb_LikeQueryAttrsName.Focus(); |
| | | //return; |
| | | } |
| | | |
| | | string _tb_LikeQueryAttrs = this.tb_LikeQueryAttrs.Text.Trim();//ä¸ææ³¨é |
| | | if (_tb_LikeQueryAttrs == "") |
| | | { |
| | | MessageBox.Show("请è¾å
¥ æ¨¡ç³æ¥è¯¢å段ï¼"); |
| | | this.tb_LikeQueryAttrs.Focus(); |
| | | return; |
| | | //MessageBox.Show("请è¾å
¥ æ¨¡ç³æ¥è¯¢å段ï¼"); |
| | | //this.tb_LikeQueryAttrs.Focus(); |
| | | //return; |
| | | } |
| | | |
| | | string chinaComment = this.tb_ChinaComment.Text.Trim();//ä¸ææ³¨é |
| | |
| | | return; |
| | | } |
| | | //å¢å æ ¡éª |
| | | if (columnList.Where(x => x.ColumnName.ToUpper() == SystemCommonVar.c_creator.ToUpper()).Count() == 0) |
| | | { |
| | | MessageBox.Show($"è¡¨ä¸æ²¡æå段{SystemCommonVar.c_creator}ï¼"); |
| | | return; |
| | | } |
| | | //if (columnList.Where(x => x.ColumnName.ToUpper() == SystemCommonVar.c_creator.ToUpper()).Count() == 0) |
| | | //{ |
| | | // MessageBox.Show($"è¡¨ä¸æ²¡æå段{SystemCommonVar.c_creator}ï¼"); |
| | | // return; |
| | | //} |
| | | |
| | | |
| | | |
| | |
| | | EntityInstanceName = tableAlias, |
| | | LikeQueryAttrs = _tb_LikeQueryAttrs, |
| | | LikeQueryAttrsName = _tb_LikeQueryAttrsName, |
| | | ValidateRepeatName = this.tb_ValidateRepeatName.Text |
| | | ValidateRepeatName = this.tb_ValidateRepeatName.Text, |
| | | TableName = tableName |
| | | }; |
| | | //å¤çæä¸¾ç±»å |
| | | 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 |
| | | }); |
| | | } |
| | | } |