@@ -114,6 +114,11 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers | |||||
return Fail("晚归时间格式不正确!"); | return Fail("晚归时间格式不正确!"); | ||||
} | } | ||||
if (!(entity.PushHour >= 0 && entity.PushHour <= 23)) | |||||
{ | |||||
return Fail("推送时间点填写不正确!"); | |||||
} | |||||
var model = acc_DormitoryRuleIBLL.GetEnableEntity(); | var model = acc_DormitoryRuleIBLL.GetEnableEntity(); | ||||
if (entity.IsEnable == 1) | if (entity.IsEnable == 1) | ||||
{ | { | ||||
@@ -7,15 +7,19 @@ | |||||
<div class="lr-form-item-title">晚归时间<font face="宋体">*</font></div> | <div class="lr-form-item-title">晚归时间<font face="宋体">*</font></div> | ||||
<input id="LateReturnTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请填写时分,例如:22:00" /> | <input id="LateReturnTime" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请填写时分,例如:22:00" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Acc_DormitoryRule" > | |||||
<div class="col-xs-12 lr-form-item" data-table="Acc_DormitoryRule"> | |||||
<div class="lr-form-item-title">推送人<font face="宋体">*</font></div> | <div class="lr-form-item-title">推送人<font face="宋体">*</font></div> | ||||
<div id="PushUser" isvalid="yes" checkexpession="NotNull" ></div> | |||||
<div id="PushUser" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Acc_DormitoryRule" > | |||||
<div class="col-xs-12 lr-form-item" data-table="Acc_DormitoryRule"> | |||||
<div class="lr-form-item-title">推送班主任<font face="宋体">*</font></div> | <div class="lr-form-item-title">推送班主任<font face="宋体">*</font></div> | ||||
<div id="ClassDiredctor"></div> | <div id="ClassDiredctor"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Acc_DormitoryRule" > | |||||
<div class="col-xs-12 lr-form-item" data-table="Acc_DormitoryRule"> | |||||
<div class="lr-form-item-title">推送时间点<font face="宋体">*</font></div> | |||||
<input id="PushHour" type="number" class="form-control" isvalid="yes" checkexpession="NotNull" placeholder="请填写0-23数字" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Acc_DormitoryRule"> | |||||
<div class="lr-form-item-title">启用<font face="宋体">*</font></div> | <div class="lr-form-item-title">启用<font face="宋体">*</font></div> | ||||
<div id="IsEnable"></div> | <div id="IsEnable"></div> | ||||
</div> | </div> | ||||
@@ -66,7 +66,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
// 初始化列表 | // 初始化列表 | ||||
initGird: function () { | initGird: function () { | ||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/LogisticsManagement/Acc_DormitoryRule/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/Acc_DormitoryRule/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ label: "晚归时间", name: "LateReturnTime", width: 100, align: "left" }, | { label: "晚归时间", name: "LateReturnTime", width: 100, align: "left" }, | ||||
@@ -113,6 +113,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "推送时间点", name: "PushHour", width: 100, align: "left" }, | |||||
{ | { | ||||
label: "启用", name: "IsEnable", width: 100, align: "left", | label: "启用", name: "IsEnable", width: 100, align: "left", | ||||
formatter: function (cellvalue, rowObject) { | formatter: function (cellvalue, rowObject) { | ||||
@@ -35,6 +35,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("CLASSDIREDCTOR")] | [Column("CLASSDIREDCTOR")] | ||||
public int? ClassDiredctor { get; set; } | public int? ClassDiredctor { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 推送时间点 | |||||
/// </summary> | |||||
[Column("PUSHHOUR")] | |||||
public int? PushHour { get; set; } | |||||
/// <summary> | |||||
/// 是否启用 | /// 是否启用 | ||||
/// </summary> | /// </summary> | ||||
[Column("ISENABLE")] | [Column("ISENABLE")] | ||||
@@ -32,11 +32,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | strSql.Append(@" | ||||
t.Id, | |||||
t.LateReturnTime, | |||||
t.PushUser, | |||||
t.ClassDiredctor, | |||||
t.IsEnable | |||||
t.* | |||||
"); | "); | ||||
strSql.Append(" FROM Acc_DormitoryRule t "); | strSql.Append(" FROM Acc_DormitoryRule t "); | ||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||