Bladeren bron

宿舍管理--床位排序修改,床位管理新增编辑更新DNo字段

临城职教中职
zhangli 2 jaren geleden
bovenliggende
commit
6f5f4082f2
5 gewijzigde bestanden met toevoegingen van 11 en 4 verwijderingen
  1. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Index.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexDistribution.js
  5. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/AccommodationController.cs Bestand weergeven

@@ -243,7 +243,7 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
[AjaxOnly]
public ActionResult GetBedListByRoomId(string RoomId)
{
var data = accommodationIBLL.GetBedListByRoomId(RoomId).OrderBy(x => x.DNo);
var data = accommodationIBLL.GetBedListByRoomId(RoomId).OrderBy(x => Convert.ToInt32(x.DNo));
return Success(data);
}
/// <summary>
@@ -434,6 +434,11 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
public ActionResult SaveBedForm(string keyValue, string ParentID, string strEntity)
{
Acc_DormitoryBuildEntity entity = strEntity.ToObject<Acc_DormitoryBuildEntity>();
if (entity.Name.Contains("床"))
{
entity.DNo = entity.Name.Replace("床", "");
}

accommodationIBLL.SaveBedEntity(keyValue, ParentID, entity);
return Success("保存成功!");
}


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Index.js Bestand weergeven

@@ -455,7 +455,7 @@ var bootstrap = function ($, learun) {
],
mainId: 'ID',
isPage: false,
sidx: ' REPLACE(Name,\'床\',\'\')'
sidx: ' CAST(REPLACE(Name,\'床\',\'\') as int)'
//sord: 'ASC',
});
//var param;


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js Bestand weergeven

@@ -85,7 +85,7 @@ var bootstrap = function ($, learun) {
],
mainId: 'ID',
isPage: false,
sidx: ' REPLACE(Name,\'床\',\'\')'
//sidx: ' CAST(REPLACE(Name,\'床\',\'\') as int)'

});
page.search();


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexDistribution.js Bestand weergeven

@@ -490,7 +490,7 @@ var bootstrap = function ($, learun) {
],
mainId: 'ID',
isPage: false,
sidx: ' REPLACE(Name,\'床\',\'\')'
//sidx: ' CAST(REPLACE(Name,\'床\',\'\') as int)'
});
//var param;
//param = param || {};


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Bestand weergeven

@@ -7775,6 +7775,8 @@
<None Include="Properties\PublishProfiles\FolderProfile3.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile4.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile5.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile6.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile7.pubxml" />
<None Include="Properties\PublishProfiles\learunadms6.1.pubxml" />
<Content Include="Views\Utility\ListContentIndexLost.cshtml" />
</ItemGroup>


Laden…
Annuleren
Opslaan