| | |
| | | this.tb_CreatePerson.Text = "shaocx";//å建人 |
| | | this.tb_EntityName.Text = "WmsMaterial";//å®ä½ç±»å |
| | | this.tb_EntityProName.Text = "_wmsMaterial";//å®ä½ç±»å¯¹è±¡å |
| | | this.tb_EnumList.Text = "PurchaseType|PurchaseTypeEnum|PurchaseTypeDesc,MaterialType|MaterialTypeEnum|MaterialTypeDesc,IsMainBranch|YesNoEnum|IsMainBranchDesc"; |
| | | |
| | | this.cmb_DataSource.DropDownStyle = ComboBoxStyle.DropDownList; |
| | | List<ListItem> itemList = CommonHelper.GetDataSources(); |
| | |
| | | str_generate = Dto_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(entityFilePath, $"{param.EntityName}Dto.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | //6ãçæ Export æä»¶ |
| | | str_generate = ExportModel_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(entityFilePath, $"{param.EntityName}ExportModel.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | //7ãçæ Import æä»¶ |
| | | str_generate = ImportModel_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(entityFilePath, $"{param.EntityName}sImportModel.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | #endregion |
| | | |
| | | #region AppSerivice |
| | | |
| | | //8ãçæ IAppService æä»¶ |
| | | var appServiceFilePath = tbPath.Text + @"\server\src\CMS.Plugin." + tb_WCF_NameSpacePath.Text.Trim() + @".Application.Contracts\Services"; |
| | | str_generate = IAppService_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(appServiceFilePath, $"I{param.EntityName}AppService.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | //9ãçæ AppService æä»¶ |
| | | appServiceFilePath = tbPath.Text + @"\server\src\CMS.Plugin." + tb_WCF_NameSpacePath.Text.Trim() + @".Application\Implements"; |
| | | str_generate = AppService_Generate.CreateText(param); |
| | | tf = TextHelper.Export2File_V2(appServiceFilePath, $"I{param.EntityName}AppService.cs", tableName, str_generate, FileType.InputModel, filePrefixName, entityName, modulelogo); |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |