@@ -29,6 +29,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult FormIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 表单页 | /// 表单页 | ||||
/// <summary> | /// <summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
@@ -119,6 +128,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
entity.State = 1; | entity.State = 1; | ||||
} | } | ||||
else if (entity.State == 1) | |||||
{ | |||||
entity.State = 2; | |||||
} | |||||
if (string.IsNullOrEmpty(keyValue)) | if (string.IsNullOrEmpty(keyValue)) | ||||
{ | { | ||||
} | } | ||||
@@ -0,0 +1,50 @@ | |||||
@{ | |||||
ViewBag.Title = "质量目标管理体系指标模块"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout " > | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="multiple_condition_query"> | |||||
<div class="lr-query-formcontent"> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">核心工作模块</div> | |||||
<input id="WorderModule" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">项目名称</div> | |||||
<input id="ProjectName" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">填报周期</div> | |||||
<div id="FillingCycle"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">状态</div> | |||||
<input id="State" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">填报人</div> | |||||
<div id="FillingPeople"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-right"> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||||
</div> | |||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||||
<a id="lr_people" class="btn btn-default"><i class="fa fa-trash-o"></i> 设置填报人</a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/Index.js") |
@@ -0,0 +1,241 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-06-21 18:39 | |||||
* 描 述:质量目标管理体系指标模块 | |||||
*/ | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||||
page.search(queryJson); | |||||
}, 220, 400); | |||||
$('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle' }); | |||||
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 新增 | |||||
$('#lr_add').on('click', function () { | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '新增', | |||||
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/Form', | |||||
width: 500, | |||||
height: 400, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
}); | |||||
// 编辑 | |||||
$('#lr_edit').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var State = $('#gridtable').jfGridValue('State'); | |||||
if (State !== 0) { | |||||
learun.alert.warning("当前项目已提交不能修改!"); | |||||
return; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '编辑', | |||||
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/Form?keyValue=' + keyValue, | |||||
width: 600, | |||||
height: 400, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
// 删除 | |||||
$('#lr_delete').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var State = $('#gridtable').jfGridValue('State'); | |||||
if (State !== 0) { | |||||
learun.alert.warning("当前项目已提交不能删除!"); | |||||
return; | |||||
} | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//撤回 | |||||
$('#lr_cancel').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var RStatus = $('#gridtable').jfGridValue('State'); | |||||
if (RStatus == 1) { | |||||
learun.alert.warning("已提交!"); | |||||
return false; | |||||
} | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//设置公式 | |||||
$('#lr_formula').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var RStatus = $('#gridtable').jfGridValue('State'); | |||||
if (RStatus == 1) { | |||||
learun.alert.warning("已提交!"); | |||||
return false; | |||||
} | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//设置填报人 | |||||
$('#lr_people').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var RStatus = $('#gridtable').jfGridValue('State'); | |||||
if (RStatus !== 1) { | |||||
learun.alert.warning("当前项不能设置填报人!"); | |||||
return false; | |||||
} | |||||
learun.layerForm({ | |||||
id: 'form', | |||||
title: '设置填报人', | |||||
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/FormPeople?keyValue=' + keyValue, | |||||
width: 600, | |||||
height: 400, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(refreshGirdData); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
//隐藏撤下 | |||||
$('#lr_hide').on('click', function () { | |||||
var keyValue = $('#gridtable').jfGridValue('Id'); | |||||
if (learun.checkrow(keyValue)) { | |||||
var RStatus = $('#gridtable').jfGridValue('State'); | |||||
if (RStatus == 1) { | |||||
learun.alert.warning("已提交!"); | |||||
return false; | |||||
} | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | |||||
if (res) { | |||||
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/GetPageList', | |||||
headData: [ | |||||
{ label: "核心工作模块", name: "WorderModule", width: 300, align: "center" }, | |||||
{ label: "序号", name: "SerialNo", width: 100, align: "center" }, | |||||
{ label: "项目名称", name: "ProjectName", width: 300, align: "center" }, | |||||
{ | |||||
label: "填报周期", name: "FillingCycle", width: 100, align: "center", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'ThisCycle', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "填报时间", name: "FillingTime", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'CycleTime', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "填报部门", name: "FillingDept", width: 100, align: "center", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', | |||||
key: value, | |||||
keyId: 'id', | |||||
callback: function (_data) { | |||||
callback(_data['name']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "填报人", name: "FillingPeople", width: 150, align: "center", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata', | |||||
key: value, | |||||
keyId: 'f_userid', | |||||
callback: function (_data) { | |||||
callback(_data['f_realname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "状态", name: "State", width: 150, align: "center", | |||||
formatter: function (cellvalue) { | |||||
if (cellvalue === 0) { | |||||
return '<span class=\"label label-warning\">草稿</span>'; | |||||
} else if (cellvalue === 1) { | |||||
return '<span class=\"label label-success\">待设置填报人</span>'; | |||||
} else if (cellvalue === 2) { | |||||
return '<span class=\"label label-success\">待设置公式</span>'; | |||||
} else { | |||||
return '<span class=\"label label-default\">已完成</span>'; | |||||
} | |||||
} | |||||
}, | |||||
{ label: "备注", name: "Demo", width: 300, align: "center" }, | |||||
], | |||||
mainId: 'Id', | |||||
isPage: true | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
$('#gridtable').jfGridSet('reload'); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -15,7 +15,6 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
console.log($('#FillingDept').lrDataSourceSelect); | |||||
$('#FillingDept').lrDataSourceSelect({ | $('#FillingDept').lrDataSourceSelect({ | ||||
code: 'classdata', | code: 'classdata', | ||||
value: 'id', | value: 'id', | ||||
@@ -23,18 +22,16 @@ var bootstrap = function ($, learun) { | |||||
select: function (item) { | select: function (item) { | ||||
var DeptCode = $('#FillingDept').lrselectGet(); | var DeptCode = $('#FillingDept').lrselectGet(); | ||||
if (DeptCode != null && DeptCode != "" && DeptCode != undefined) { | if (DeptCode != null && DeptCode != "" && DeptCode != undefined) { | ||||
$('#FillingPeople').lrDataSourceSelect({ | |||||
$('#FillingPeople').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=teacheruserdata', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=teacheruserdata', | ||||
value: 'f_userid', | value: 'f_userid', | ||||
text: 'f_realname', | text: 'f_realname', | ||||
param: { strWhere: " 1=1 and f_encode ='' " }, | |||||
param: { strWhere: " 1=1 and f_departmentid in ('" + DeptCode + "')" } | |||||
}); | }); | ||||
} | } | ||||
} | } | ||||
}); | }); | ||||
$("#FillingPeople").lrselect(); | $("#FillingPeople").lrselect(); | ||||
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }); | |||||
//设置周期 | //设置周期 | ||||
$('#FillingCycle').lrDataItemSelect({ | $('#FillingCycle').lrDataItemSelect({ | ||||
code: 'ThisCycle', | code: 'ThisCycle', | ||||
@@ -957,6 +957,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\EvaViolationOfDiscipline\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\EvaViolationOfDiscipline\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\EvaViolationOfDiscipline\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\EvaViolationOfDiscipline\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormPeople.js" /> | <Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormPeople.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormIndex.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\JournalSend\FormOfDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\JournalSend\FormOfDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\JournalSend\IndexOfDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\JournalSend\IndexOfDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\LeaveSchoolA\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\LeaveSchoolA\Form.js" /> | ||||
@@ -7319,6 +7320,7 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\PM_Resume\StatisticIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\PM_Resume\StatisticIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\PM_WorkerTechnology\StatisticIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\PM_WorkerTechnology\StatisticIndex.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormPeople.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormPeople.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormIndex.cshtml" /> | |||||
<None Include="Areas\EducationalAdministration\Views\SchoolNews\Index.cshtml" /> | <None Include="Areas\EducationalAdministration\Views\SchoolNews\Index.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StuTuition.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuEnroll\StuTuition.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\IsHelpForm.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuEnroll\IsHelpForm.cshtml" /> | ||||