diff --git a/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20220909103348_CompanyMaster.cs b/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20220909103348_CompanyMaster.cs deleted file mode 100644 index 232f883..0000000 --- a/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20220909103348_CompanyMaster.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace BCS.BMC.Migrations -{ - public partial class CompanyMaster : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "TopLevelDomainName", - table: "CompanyMaster", - newName: "Url"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "Url", - table: "CompanyMaster", - newName: "TopLevelDomainName"); - } - } -} diff --git a/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20220909103348_CompanyMaster.Designer.cs b/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20221011111318_CompanyMasters.Designer.cs similarity index 99% rename from BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20220909103348_CompanyMaster.Designer.cs rename to BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20221011111318_CompanyMasters.Designer.cs index d38db28..cdaa3de 100644 --- a/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20220909103348_CompanyMaster.Designer.cs +++ b/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20221011111318_CompanyMasters.Designer.cs @@ -12,8 +12,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace BCS.BMC.Migrations { [DbContext(typeof(BMCDbContext))] - [Migration("20220909103348_CompanyMaster")] - partial class CompanyMaster + [Migration("20221011111318_CompanyMasters")] + partial class CompanyMasters { protected override void BuildTargetModel(ModelBuilder modelBuilder) { diff --git a/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20221011111318_CompanyMasters.cs b/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20221011111318_CompanyMasters.cs new file mode 100644 index 0000000..6b363bf --- /dev/null +++ b/BCS.BMC/src/BCS.BMC.EntityFrameworkCore/Migrations/20221011111318_CompanyMasters.cs @@ -0,0 +1,42 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace BCS.BMC.Migrations +{ + public partial class CompanyMasters : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "CompanyMaster", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CompanyName = table.Column(type: "nvarchar(max)", nullable: true), + Url = table.Column(type: "nvarchar(max)", nullable: true), + DomainName = table.Column(type: "nvarchar(max)", nullable: true), + SubDomainName = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorUserId = table.Column(type: "bigint", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierUserId = table.Column(type: "bigint", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false), + DeleterUserId = table.Column(type: "bigint", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_CompanyMaster", x => x.Id); + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "CompanyMaster"); + } + } +} diff --git a/BCS.BMC/src/BCS.BMC.Web.Mvc/wwwroot/view-resources/Views/CompanyMaster/Index.js b/BCS.BMC/src/BCS.BMC.Web.Mvc/wwwroot/view-resources/Views/CompanyMaster/Index.js index 1d17d76..26682d4 100644 --- a/BCS.BMC/src/BCS.BMC.Web.Mvc/wwwroot/view-resources/Views/CompanyMaster/Index.js +++ b/BCS.BMC/src/BCS.BMC.Web.Mvc/wwwroot/view-resources/Views/CompanyMaster/Index.js @@ -91,10 +91,11 @@ return; } - + var companydetails = _$form.serializeFormToObject(); + abp.ui.setBusy(_$modal); - _companyService.createOrUpdateCompanyMaster(user).done(function () { + _companyService.createOrUpdateCompanyMaster(companydetails).done(function () { _$modal.modal('hide'); _$form[0].reset(); abp.notify.info(l('SavedSuccessfully'));