Procházet zdrojové kódy

寝室晚归规则新增设置推送时间点

临城职教中职
zhangli před 2 roky
rodič
revize
d2197a6d2f
5 změnil soubory, kde provedl 21 přidání a 10 odebrání
  1. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Acc_DormitoryRuleController.cs
  2. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_DormitoryRule/Form.cshtml
  3. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_DormitoryRule/Index.js
  4. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleEntity.cs
  5. +1
    -5
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleService.cs

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Acc_DormitoryRuleController.cs Zobrazit soubor

@@ -114,6 +114,11 @@ namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
return Fail("晚归时间格式不正确!");
}

if (!(entity.PushHour >= 0 && entity.PushHour <= 23))
{
return Fail("推送时间点填写不正确!");
}

var model = acc_DormitoryRuleIBLL.GetEnableEntity();
if (entity.IsEnable == 1)
{


+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_DormitoryRule/Form.cshtml Zobrazit soubor

@@ -7,15 +7,19 @@
<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" />
</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 id="PushUser" isvalid="yes" checkexpession="NotNull" ></div>
<div id="PushUser" isvalid="yes" checkexpession="NotNull"></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 id="ClassDiredctor"></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 id="IsEnable"></div>
</div>


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Acc_DormitoryRule/Index.js Zobrazit soubor

@@ -66,7 +66,7 @@ var bootstrap = function ($, learun) {
},
// 初始化列表
initGird: function () {
$('#gridtable').lrAuthorizeJfGrid({
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LogisticsManagement/Acc_DormitoryRule/GetPageList',
headData: [
{ 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",
formatter: function (cellvalue, rowObject) {


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleEntity.cs Zobrazit soubor

@@ -35,6 +35,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
[Column("CLASSDIREDCTOR")]
public int? ClassDiredctor { get; set; }
/// <summary>
/// 推送时间点
/// </summary>
[Column("PUSHHOUR")]
public int? PushHour { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column("ISENABLE")]


+ 1
- 5
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleService.cs Zobrazit soubor

@@ -32,11 +32,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"
t.Id,
t.LateReturnTime,
t.PushUser,
t.ClassDiredctor,
t.IsEnable
t.*
");
strSql.Append(" FROM Acc_DormitoryRule t ");
strSql.Append(" WHERE 1=1 ");


Načítá se…
Zrušit
Uložit