瀏覽代碼

调整值班管理

临城职教中职
ndbs 2 年之前
父節點
當前提交
452edfe514
共有 4 個文件被更改,包括 48 次插入30 次删除
  1. +10
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DutySchedule/Form.cshtml
  2. +20
    -17
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DutySchedule/Index.js
  3. +16
    -6
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DutySchedule/DutyScheduleEntity.cs
  4. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DutySchedule/DutyScheduleService.cs

+ 10
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DutySchedule/Form.cshtml 查看文件

@@ -4,16 +4,20 @@
}
<div class="lr-form-wrap">
<div class="col-xs-12 lr-form-item" data-table="DutySchedule">
<div class="lr-form-item-title">时间</div>
<input id="Date" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked: function () { $('#Date').trigger('change'); } })" />
<div class="lr-form-item-title">开始时间</div>
<input id="StartTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked: function () { $('#Date').trigger('change'); } })" />
</div>
<div class="col-xs-12 lr-form-item" data-table="DutySchedule" >
<div class="col-xs-12 lr-form-item" data-table="DutySchedule">
<div class="lr-form-item-title">结束时间</div>
<input id="EndTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked: function () { $('#Date').trigger('change'); } })" />
</div>
<div class="col-xs-12 lr-form-item" data-table="DutySchedule">
<div class="lr-form-item-title">值班人</div>
<div id="Person" ></div>
<div id="Person"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="DutySchedule" >
<div class="col-xs-12 lr-form-item" data-table="DutySchedule">
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height:100px;" ></textarea>
<textarea id="Remark" class="form-control" style="height:100px;"></textarea>
</div>
</div>
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/DutySchedule/Form.js")

+ 20
- 17
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/DutySchedule/Index.js 查看文件

@@ -19,7 +19,7 @@ var bootstrap = function ($, learun) {
});
// 新增
$('#lr_add').on('click', function () {
learun.layerForm({
learun.layerForm({
id: 'form',
title: '新增',
url: top.$.rootUrl + '/PersonnelManagement/DutySchedule/Form',
@@ -50,9 +50,9 @@ var bootstrap = function ($, learun) {
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认删除该项!', function (res) {
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/DutySchedule/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/DutySchedule/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -65,26 +65,29 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/PersonnelManagement/DutySchedule/GetPageList',
headData: [
{ label: "时间", name: "Date", width: 100, align: "left"},
{ label: "值班人", name: "Person", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}},
{ label: "备注", name: "Remark", width: 100, align: "left"},
{ label: "值班开始时间", name: "StartTime", width: 200, align: "left" },
{ label: "值班结束时间", name: "EndTime", width: 200, align: "left" },
{
label: "值班人", name: "Person", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{ label: "备注", name: "Remark", width: 200, align: "left" },
],
mainId:'ID',
isPage: true
mainId: 'ID',
isPage: true,
});
page.search();
},
search: function (param) {
param = param || {};
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 16
- 6
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DutySchedule/DutyScheduleEntity.cs 查看文件

@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// 日 期:2019-11-19 15:30
/// 描 述:值班安排
/// </summary>
public class DutyScheduleEntity
public class DutyScheduleEntity
{
#region 实体成员
/// <summary>
@@ -20,11 +20,6 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
[Column("ID")]
public string ID { get; set; }
/// <summary>
/// 日期
/// </summary>
[Column("DATE")]
public DateTime? Date { get; set; }
/// <summary>
/// 值班人员
/// </summary>
[Column("PERSON")]
@@ -34,6 +29,21 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// </summary>
[Column("REMARK")]
public string Remark { get; set; }
/// <summary>
/// 日期
/// </summary>
[Column("STARTTIME")]
public DateTime? StartTime { get; set; }
/// <summary>
/// 日期
/// </summary>
[Column("ENDTIME")]
public DateTime? EndTime { get; set; }
/// <summary>
/// 日期
/// </summary>
[Column("CREATETIME")]
public DateTime? CreateTime { get; set; }
#endregion

#region 扩展操作


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/DutySchedule/DutyScheduleService.cs 查看文件

@@ -32,7 +32,8 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
strSql.Append("SELECT ");
strSql.Append(@"
t.ID,
t.Date,
t.StartTime,
t.EndTime,
t.Person,
t.Remark,u.F_Account,F_RealName
");


Loading…
取消
儲存