| | |
| | | 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(); |
| | |
| | | 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 |
| | | }); |
| | | } |
| | | } |
| | |
| | | //CreateModelFile(columnList, tableName, filePrefixName, wcf_NameSpacePath, createPerson, chinaComment, entityName, modulelogo); |
| | | //CreateModelParamFile(columnList, tableName, filePrefixName, wcf_NameSpacePath, createPerson, chinaComment, entityName, modulelogo); |
| | | genCodeRootPath = tbPath.Text + @"\" + tb_WCF_NameSpacePath.Text.Trim(); |
| | | |
| | | //æ¯å¦è¦äºå
æ¸
çæä»¶å¤¹ |
| | | if (this.ck_IsDeletefile.Checked) |
| | | { |
| | | FileHelper.ClearFolder(genCodeRootPath); // éå½å é¤ |
| | | } |
| | | |
| | | //var webFolerPath = (tb_WCF_NameSpacePath.Text.Trim() + "_Web").ToLower(); |
| | | var webFolerPath = _tb_VueRootFolerName; |
| | | #region å®ä½ç±» |
| | |
| | | { |
| | | this.tb_FilePath.Text = ""; |
| | | } |
| | | |
| | | private void ck_IsDeletefile_CheckedChanged(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |