Переглянути джерело

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

临城职教中职
zhangli 2 роки тому
джерело
коміт
6f5f4082f2
5 змінених файлів з 11 додано та 4 видалено
  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 Переглянути файл

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

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


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/Index.js Переглянути файл

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


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexBed.js Переглянути файл

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


}); });
page.search(); page.search();


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Accommodation/IndexDistribution.js Переглянути файл

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


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Переглянути файл

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


Завантаження…
Відмінити
Зберегти