Sfoglia il codice sorgente

设置公式,撤回,隐藏

金隅分支
edy 3 anni fa
parent
commit
ab552571d1
18 ha cambiato i file con 547 aggiunte e 124 eliminazioni
  1. +49
    -12
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs
  2. +15
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml
  3. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js
  4. +2
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.cshtml
  5. +24
    -17
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.js
  6. +23
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml
  7. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js
  8. +59
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.cshtml
  9. +97
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.js
  10. +55
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.cshtml
  11. +70
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.js
  12. +2
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml
  13. +19
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js
  14. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  15. +26
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromBLL.cs
  16. +52
    -37
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromEntity.cs
  17. +8
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromIBLL.cs
  18. +34
    -10
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs

+ 49
- 12
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs Vedi File

@@ -55,6 +55,16 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}

/// <summary>
/// 设置公式
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult Formula()
{
return View();
}
#endregion

#region 获取数据
@@ -124,17 +134,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public ActionResult SaveForm(string keyValue, string strEntity)
{
FillinFromEntity entity = strEntity.ToObject<FillinFromEntity>();
if (entity.State == 0)
if (!string.IsNullOrEmpty(keyValue))
{
entity.State = 1;
#region 修改状态
if (entity.State == 1)
{
entity.State = 2;
}
else if (entity.State == 2)
{
entity.State = 3;
}
#endregion
}
else if (entity.State == 1)
{
entity.State = 2;
}

if (string.IsNullOrEmpty(keyValue))
else
{
entity.State = 1;
}
fillinFromIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
@@ -149,14 +164,36 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult HideList(string keyValue,string strEntity)
public ActionResult HideList(string keyValue)
{
FillinFromEntity entity = strEntity.ToObject<FillinFromEntity>();
entity.State = 0;
fillinFromIBLL.SaveEntity(keyValue, entity);
var Model = fillinFromIBLL.GetFillInNo(keyValue);
if (Model != null)
{
//隐藏
Model.IsFlag = 1;
}
fillinFromIBLL.SaveEntity(keyValue, Model);
return Success("保存成功!");
}

/// <summary>
/// 撤回
/// </summary>
/// <param name="keyValue"></param>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DoCanCel(string keyValue)
{
var Model = fillinFromIBLL.GetFillInNo(keyValue);
if (Model != null)
{
//重新填写
Model.State = 3;
}
fillinFromIBLL.SaveEntity(keyValue, Model);
return Success("保存成功!");
}
#endregion
}
}

+ 15
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml Vedi File

@@ -20,8 +20,8 @@
<div id="FillingDept" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报周期</div>
<div id="FillingCycle"></div>
<div class="lr-form-item-title">填报周期<font face="宋体">*</font></div>
<div id="FillingCycle" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报时间</div>
@@ -35,9 +35,21 @@
<div class="lr-form-item-title">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</div>
<textarea id="Demo" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">状态</div>
<input id="State" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前用户</div>
<input id="lrPeople" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前时间</div>
<input id="lrTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">隐藏/撤下</div>
<input id="IsFlag" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/Form.js")

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js Vedi File

@@ -15,6 +15,9 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
$('#lrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' });
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
$('#FillingCycle').lrDataItemSelect({
@@ -43,6 +46,7 @@ var bootstrap = function ($, learun) {
});
}
$('#State').val('0');
$('#IsFlag').val('0');
}
};
// 保存数据


+ 2
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.cshtml Vedi File

@@ -11,25 +11,17 @@
<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>
<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="col-xs-12 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>


+ 24
- 17
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.js Vedi File

@@ -93,23 +93,30 @@ var bootstrap = function ($, learun) {
}
});
//设置公式
$('#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_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.layerForm({
// id: 'form',
// title: '设置公式',
// url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/FormPeople?keyValue=' + keyValue,
// // url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList',
// //param: { itemCode: 'Client_ProductInfo' },
// //selectWord: 'F_ItemName',
// //value: 'F_ItemValue',
// //text: 'F_ItemName',
// //headData: [{ label: "商品编号", name: "F_ItemValue", width: 100, align: "left" },
// //{ label: "商品名称", name: "F_ItemName", width: 450, align: "left" }],
// //select: function (item) {
// //}
// });
// }
//});
//设置填报人
$('#lr_people').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');


+ 23
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml Vedi File

@@ -5,39 +5,51 @@
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">工作模块<font face="宋体">*</font></div>
<input id="WorderModule" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
<input id="WorderModule" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">项目名称<font face="宋体">*</font></div>
<input id="ProjectName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
<input id="ProjectName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">序&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号<font face="宋体">*</font></div>
<input id="SerialNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
<input id="SerialNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报部门<font face="宋体">*</font></div>
<div id="FillingDept" isvalid="yes" checkexpession="NotNull"></div>
<div id="FillingDept" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报周期</div>
<div id="FillingCycle"></div>
<div id="FillingCycle" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报时间</div>
<div id="FillingTime"></div>
<div id="FillingTime" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报人<font face="宋体">*</font></div>
<div id="FillingPeople" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom" >
<div class="lr-form-item-title">填报人<font face="宋体">*</font></div>
<div id="FillingPeople" isvalid="yes" checkexpession="NotNull" ></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</div>
<textarea id="Demo" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">状态</div>
<input id="State" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前用户</div>
<input id="lrPeople" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前时间</div>
<input id="lrTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">隐藏/撤下</div>
<input id="IsFlag" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js")

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js Vedi File

@@ -15,6 +15,9 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
$('#lrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#FillingDept').lrDataSourceSelect({
code: 'classdata',
value: 'id',
@@ -59,6 +62,7 @@ var bootstrap = function ($, learun) {
});
}
$('#State').val('0');
$('#IsFlag').val('0');
}
};
// 保存数据


+ 59
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.cshtml Vedi File

@@ -0,0 +1,59 @@
@{
ViewBag.Title = "质量目标管理体系指标模块";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">工作模块<font face="宋体">*</font></div>
<input id="WorderModule" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">项目名称<font face="宋体">*</font></div>
<input id="ProjectName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">序&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号<font face="宋体">*</font></div>
<input id="SerialNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报部门<font face="宋体">*</font></div>
<div id="FillingDept" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报周期</div>
<div id="FillingCycle" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报时间</div>
<div id="FillingTime" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报人<font face="宋体">*</font></div>
<div id="FillingPeople" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">设置公式<font face="宋体">*</font></div>
<div id="Formula" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</div>
<textarea id="Demo" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">状态</div>
<input id="State" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前用户</div>
<input id="lrPeople" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前时间</div>
<input id="lrTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">隐藏/撤下</div>
<input id="IsFlag" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/Formula.js")

+ 97
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.js Vedi File

@@ -0,0 +1,97 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-06-21 18:39
* 描 述:质量目标管理体系指标模块
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#Formula').lrGirdSelect({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=FormulaMain',
selectWord: 'name',
value: 'result',
text: 'name',
headData:
[
{ label: "公式", name: "result", width: 300, align: "left" },
{ label: "公式名称", name: "name", width: 300, align: "left" }
],
select: function (item) {
}
});
$('#lrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#FillingDept').lrDataSourceSelect({
code: 'classdata',
value: 'id',
text: 'name',
select: function (item) {
var DeptCode = $('#FillingDept').lrselectGet();
if (DeptCode != null && DeptCode != "" && DeptCode != undefined) {
$('#FillingPeople').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=teacheruserdata',
value: 'f_userid',
text: 'f_realname',
param: { strWhere: " 1=1 and f_departmentid in ('" + DeptCode + "')" }
});
}
}
});
$("#FillingPeople").lrselect();
//设置周期
$('#FillingCycle').lrDataItemSelect({
code: 'ThisCycle',
select: function (item) {
var Cycles = $("#FillingCycle").lrselectGet();
if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) {
$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' });
} else {
$('#FillingTime').lrDataItemSelect({ code: 'undefined' });
}
}
});
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
$('#State').val('0');
$('#IsFlag').val('0');
}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 55
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.cshtml Vedi File

@@ -0,0 +1,55 @@
@{
ViewBag.Title = "质量目标管理体系指标模块";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">工作模块<font face="宋体">*</font></div>
<input id="WorderModule" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">项目名称<font face="宋体">*</font></div>
<input id="ProjectName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">序&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号<font face="宋体">*</font></div>
<input id="SerialNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报部门<font face="宋体">*</font></div>
<div id="FillingDept" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报周期<font face="宋体">*</font></div>
<div id="FillingCycle" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报时间</div>
<div id="FillingTime"></div>
</div>
@*<div class="col-xs-6 lr-form-item" data-table="FillinFrom" >
<div class="lr-form-item-title">填报人<font face="宋体">*</font></div>
<div id="FillingPeople" isvalid="yes" checkexpession="NotNull" ></div>
</div>*@
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</div>
<textarea id="Demo" class="form-control" style="height:100px;"></textarea>
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">状态</div>
<input id="State" type="text" class="form-control" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前用户</div>
<input id="lrPeople" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">当前时间</div>
<input id="lrTime" type="text" readonly class="form-control currentInfo lr-currentInfo-time" />
</div>
<div class="col-xs-4 lr-form-item" data-table="FillinFrom" style="display: none; ">
<div class="lr-form-item-title">隐藏/撤下</div>
<input id="IsFlag" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.js")

+ 70
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.js Vedi File

@@ -0,0 +1,70 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-06-21 18:39
* 描 述:质量目标管理体系指标模块
*/
var acceptClick;
var keyValue = request('keyValue');
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
$('.lr-form-wrap').lrscroll();
page.bind();
page.initData();
},
bind: function () {
$('#lrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' });
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
$('#FillingCycle').lrDataItemSelect({
code: 'ThisCycle',
select: function (item) {
var Cycles = $("#FillingCycle").lrselectGet();
if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) {
$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' });
} else {
$('#FillingTime').lrDataItemSelect({ code: 'undefined' });
}
}
});
},
initData: function () {
if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/GetFormData?keyValue=' + keyValue, function (data) {
for (var id in data) {
if (!!data[id].length && data[id].length > 0) {
$('#' + id).jfGridSet('refreshdata', data[id]);
}
else {
$('[data-table="' + id + '"]').lrSetFormData(data[id]);
}
}
});
}
$('#State').val('0');
$('#IsFlag').val('0');

}
};
// 保存数据
acceptClick = function (callBack) {
if (!$('body').lrValidform()) {
return false;
}
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/SaveForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {
callBack();
}
});
};
page.init();
}

+ 2
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml Vedi File

@@ -11,25 +11,17 @@
<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>
<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="col-xs-12 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>


+ 19
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js Vedi File

@@ -78,9 +78,10 @@ var bootstrap = function ($, learun) {
$('#lr_cancel').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
alert(111);
var State = $('#gridtable').jfGridValue('State');
if (State !== 1 && State !== 2 && State !== 0) {
learun.alert.warning("已提交!");
if (State <= 3) {
learun.alert.warning("当前项未执行到此处,不能测回!");
return false;
}
learun.layerConfirm('是否确认撤回该项!', function (res) {
@@ -96,16 +97,19 @@ var bootstrap = function ($, learun) {
$('#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("已提交!");
var State = $('#gridtable').jfGridValue('State');
if (State !== 2) {
learun.alert.warning("当前项不能设置公式!");
return false;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/AssetManagementSystem/Ass_Repair/DoSubmit', { keyValue: keyValue }, function () {
refreshGirdData();
});
learun.layerForm({
id: 'form',
title: '设置公式',
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/Formula?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
@@ -137,10 +141,9 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(keyValue)) {
learun.layerConfirm('是否确认隐藏该项!', function (res) {
if (res) {
param = param || {},
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/HideLis', { keyValue: keyValue, queryJson: JSON.stringify(param) }, function () {
refreshGirdData();
});
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/HideList', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
@@ -213,6 +216,8 @@ var bootstrap = function ($, learun) {
return '<span class=\"label label-success\">待设置填报人</span>';
} else if (cellvalue === 2) {
return '<span class=\"label label-success\">待设置公式</span>';
} else if (cellvalue === 3) {
return '<span class=\"label label-success\">待填报</span>';
} else {
return '<span class=\"label label-default\">已完成</span>';
}


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Vedi File

@@ -957,6 +957,8 @@
<Content Include="Areas\EducationalAdministration\Views\EvaHygieve\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\EvaViolationOfDiscipline\Form.js" />
<Content Include="Areas\EducationalAdministration\Views\EvaViolationOfDiscipline\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormulaIndex.js" />
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\Formula.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" />
@@ -7324,6 +7326,8 @@
<Content Include="Areas\EducationalAdministration\Views\PM_WorkerTechnology\StatisticIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormPeople.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormIndex.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\Formula.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\FillinFrom\FormulaIndex.cshtml" />
<None Include="Areas\EducationalAdministration\Views\SchoolNews\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\StuTuition.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuEnroll\IsHelpForm.cshtml" />


+ 26
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromBLL.cs Vedi File

@@ -121,5 +121,31 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

#endregion


#region 扩展数据
/// <summary>
/// 获取CdMajor表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public FillinFromEntity GetFillInNo(string keyValue)
{
try
{
return fillinFromService.GetFillInNo(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}

+ 52
- 37
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromEntity.cs Vedi File

@@ -14,66 +14,81 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
public class FillinFromEntity
{
#region 实体成员
/// <summary>
/// 主键
/// </summary>
/// <summary>
/// 主键
/// </summary>
[Column("ID")]
public string Id { get; set; }
/// <summary>
/// 工作模块
/// </summary>
/// <summary>
/// 工作模块
/// </summary>
[Column("WORDERMODULE")]
public string WorderModule { get; set; }
/// <summary>
/// 序号
/// </summary>
/// <summary>
/// 序号
/// </summary>
[Column("SERIALNO")]
public string SerialNo { get; set; }
/// <summary>
/// 项目名称
/// </summary>
/// <summary>
/// 项目名称
/// </summary>
[Column("PROJECTNAME")]
public string ProjectName { get; set; }
/// <summary>
/// 公式
/// </summary>
/// <summary>
/// 数1
/// </summary>
[Column("FORMULA")]
public string FORMULA { get; set; }
/// <summary>
/// 结果
/// </summary>
public string Formula { get; set; }
/// <summary>
/// 结果
/// </summary>
[Column("LASTRESULT")]
public string LastResult { get; set; }
/// <summary>
/// 填报周期
/// </summary>
/// <summary>
/// 填报周期
/// </summary>
[Column("FILLINGCYCLE")]
public string FillingCycle { get; set; }
/// <summary>
/// 填报时间
/// </summary>
/// <summary>
/// 填报时间
/// </summary>
[Column("FILLINGTIME")]
public string FillingTime { get; set; }
/// <summary>
/// 填报部门
/// </summary>
/// <summary>
/// 填报部门
/// </summary>
[Column("FILLINGDEPT")]
public string FillingDept { get; set; }
/// <summary>
/// 填报人
/// </summary>
/// <summary>
/// 填报人
/// </summary>
[Column("FILLINGPEOPLE")]
public string FillingPeople { get; set; }
/// <summary>
/// 状态 0:草稿 1待指派部门 2待填写公式 3 已完成
/// </summary>
/// <summary>
/// 提交人
/// </summary>
[Column("LRPEOPLE")]
public string lrPeople { get; set; }
/// <summary>
/// 录入时间
/// </summary>
[Column("LRTIME")]
public DateTime? lrTime { get; set; }
/// <summary>
/// 状态 0:草稿 1待指派部门 2待填写公式 3 已完成
/// </summary>
[Column("STATE")]
public int? State { get; set; }
/// <summary>
/// Demo
/// </summary>
/// <summary>
/// Demo
/// </summary>
[Column("DEMO")]
public string Demo { get; set; }
/// <summary>
/// 隐藏/撤下
/// </summary>
[Column("ISFLAG")]
public int? IsFlag { get; set; }
#endregion

#region 扩展操作


+ 8
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromIBLL.cs Vedi File

@@ -27,6 +27,14 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="keyValue">主键</param>
/// <returns></returns>
FillinFromEntity GetFillinFromEntity(string keyValue);


/// <summary>
/// 获取表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
FillinFromEntity GetFillInNo(string keyValue);
#endregion

#region 提交数据


+ 34
- 10
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs Vedi File

@@ -43,7 +43,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
t.FillingDept,
t.FillingPeople,
t.Demo,
t.State
t.State,
t.lrPeople,
t.lrTime,
t.IsFlag
");
strSql.Append(" FROM FillinFrom t ");
strSql.Append(" WHERE 1=1 ");
@@ -62,20 +65,15 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
if (!queryParam["FillingCycle"].IsEmpty())
{
dp.Add("FillingCycle",queryParam["FillingCycle"].ToString(), DbType.String);
dp.Add("FillingCycle", queryParam["FillingCycle"].ToString(), DbType.String);
strSql.Append(" AND t.FillingCycle = @FillingCycle ");
}
if (!queryParam["State"].IsEmpty())
{
dp.Add("State", "%" + queryParam["State"].ToString() + "%", DbType.String);
strSql.Append(" AND t.State Like @State ");
}
if (!queryParam["FillingPeople"].IsEmpty())
{
dp.Add("FillingPeople",queryParam["FillingPeople"].ToString(), DbType.String);
dp.Add("FillingPeople", queryParam["FillingPeople"].ToString(), DbType.String);
strSql.Append(" AND t.FillingPeople = @FillingPeople ");
}
return this.BaseRepository("CollegeMIS").FindList<FillinFromEntity>(strSql.ToString(),dp, pagination);
return this.BaseRepository("CollegeMIS").FindList<FillinFromEntity>(strSql.ToString(), dp, pagination);
}
catch (Exception ex)
{
@@ -126,7 +124,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
this.BaseRepository("CollegeMIS").Delete<FillinFromEntity>(t=>t.Id == keyValue);
this.BaseRepository("CollegeMIS").Delete<FillinFromEntity>(t => t.Id == keyValue);
}
catch (Exception ex)
{
@@ -176,5 +174,31 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration

#endregion

#region 扩展数据

/// <summary>
/// 获取CdMajor表实体数据
/// <param name="keyValue">主键</param>
/// <summary>
/// <returns></returns>
public FillinFromEntity GetFillInNo(string keyValue)
{
try
{
return this.BaseRepository("CollegeMIS").FindEntity<FillinFromEntity>(x => x.Id == keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion
}
}

Caricamento…
Annulla
Salva