浏览代码

Merge branch '金隅分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 金隅分支

金隅分支
zhangli 3 年前
父节点
当前提交
146a0d24ec
共有 12 个文件被更改,包括 88 次插入353 次删除
  1. +10
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs
  2. +0
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml
  3. +5
    -6
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js
  4. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml
  5. +14
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js
  6. +0
    -59
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.cshtml
  7. +0
    -100
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.js
  8. +0
    -55
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.cshtml
  9. +0
    -75
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.js
  10. +50
    -38
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js
  11. +0
    -5
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromEntity.cs
  12. +1
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs

+ 10
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs 查看文件

@@ -5,6 +5,7 @@ using System.Web.Mvc;
using System.Collections.Generic;
using System.Linq;
using Learun.Application.Organization;
using Learun.Application.TwoDevelopment.LR_Desktop;

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
@@ -19,6 +20,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
private FillinFromIBLL fillinFromIBLL = new FillinFromBLL();
private DepartmentBLL departmentIBLL = new DepartmentBLL();
private QualityReportMainIBLL fualityReportMainIBLL = new QualityReportMainBLL();
#region 视图功能

/// <summary>
@@ -140,10 +142,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
var Model = fillinFromIBLL.GetFillInNo(keyValue);
if (Model != null)
{
//重新填写
Model.IsDel = 1;
Model.State = -1;
fualityReportMainIBLL.DelProjectByFId(keyValue);
}

fillinFromIBLL.SaveEntity(keyValue, Model);
return Success("作废成功!");
}
@@ -168,6 +169,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
entity.State = 2;
}
#endregion
fualityReportMainIBLL.EditProjectByFId(keyValue);

}
fillinFromIBLL.SaveEntity(keyValue, entity);
return Success("保存成功!");
@@ -189,7 +192,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
if (Model != null)
{
//重新填写
Model.State = 2;
Model.State = 1;
}
fillinFromIBLL.SaveEntity(keyValue, Model);
return Success("保存成功!");
@@ -233,8 +236,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
if (Model != null)
{
//重新填写
Model.State = 3;
Model.State = 0;
Model.FillingPeople = "";
}
fualityReportMainIBLL.EditProjectByFId(keyValue);
fillinFromIBLL.SaveEntity(keyValue, Model);
return Success("保存成功!");
}


+ 0
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml 查看文件

@@ -51,9 +51,5 @@
<div class="lr-form-item-title">隐藏/显示</div>
<input id="IsFlag" 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="IsDel" type="text" class="form-control" />
</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/Form.js")

+ 5
- 6
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js 查看文件

@@ -15,17 +15,17 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
$('#Formula').lrDataSourceSelect({ code: 'FormulaMain', value: 'id', text: 'name' });
$('#Formula').lrDataSourceSelect({ code: 'FormulaMain', value: 'id', text: 'name' });
$('#Formula').lrGirdSelect({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=FormulaMain',
selectWord: 'name',
value: 'id',
text: 'name',
headData:
[
{ label: "公式", name: "result", width: 300, align: "left" },
{ label: "公式名称", name: "name", width: 300, align: "left" }
],
[
{ label: "公式", name: "result", width: 300, align: "left" },
{ label: "公式名称", name: "name", width: 300, align: "left" }
],
select: function (item) {
}
});
@@ -63,7 +63,6 @@ var bootstrap = function ($, learun) {
}
$('#State').val('0');
$('#IsFlag').val('0');
$('#IsDel').val('0');
}
};
// 保存数据


+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml 查看文件

@@ -12,7 +12,7 @@
<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>
<div class="lr-form-item-title">序&nbsp;&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">
@@ -20,7 +20,7 @@
<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 class="lr-form-item-title">填报周期<font face="宋体">*</font></div>
<div id="FillingCycle" readonly="readonly"></div>
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
@@ -28,8 +28,12 @@
<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 class="lr-form-item-title">填&nbsp;&nbsp;报&nbsp;&nbsp;人<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;式<font face="宋体">*</font></div>
<div id="Formula" isvalid="yes" checkexpession="NotNull" readonly="readonly"></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>


+ 14
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js 查看文件

@@ -15,6 +15,20 @@ var bootstrap = function ($, learun) {
page.initData();
},
bind: function () {
$('#Formula').lrDataSourceSelect({ code: 'FormulaMain', value: 'id', text: 'name' });
$('#Formula').lrGirdSelect({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=FormulaMain',
selectWord: 'name',
value: 'id',
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'));


+ 0
- 59
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.cshtml 查看文件

@@ -1,59 +0,0 @@
@{
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")

+ 0
- 100
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.js 查看文件

@@ -1,100 +0,0 @@
/* * 版 本 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: 'id',
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 + "')" },
maxHeight: 200
});
}
}
});
$("#FillingPeople").lrselect();
//设置周期
$('#FillingCycle').lrDataItemSelect({
code: 'ThisCycle',
select: function (item) {
var Cycles = $("#FillingCycle").lrselectGet();
if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 3) {
$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' });
} else if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) {
$('#FillingTime').lrDataItemSelect({ code: 'undefined' });
} 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();
}

+ 0
- 55
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.cshtml 查看文件

@@ -1,55 +0,0 @@
@{
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")

+ 0
- 75
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.js 查看文件

@@ -1,75 +0,0 @@
/* * 版 本 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 == 3) {
$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' });
} else if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) {
//$('#FillingTime').lrselect({
// code: 'CycleTime', value: 'id', text: 'name',
// maxHeight: 200,
// select: function (item) { }
//})
$('#FillingTime').lrDataItemSelect({ code: 'undefined' });
} 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();
}

+ 50
- 38
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js 查看文件

@@ -28,30 +28,38 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/Form',
width: 500,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
});
//提交
// 提交
$('#lr_submit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var State = $('#gridtable').jfGridValue('State');
if (State == 0) {
learun.alert.warning("当前项已提交,不能重复提交!");
var IsFlag = $('#gridtable').jfGridValue('IsFlag');
if (State >= 1) {
learun.alert.warning("当前项已提交,请勿重复提交!");
return false;
} else if (State == -1) {
learun.alert.warning("当前项已作废,不能提交!");
return false;
}
if (IsFlag == 1) {
learun.alert.warning("当前项已作废,不能提交!");
return false;
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/Submit', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/Submit', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
@@ -62,16 +70,22 @@ var bootstrap = function ($, learun) {
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);
}
});
learun.layerConfirm('是否确认修改该项,修改成后会影响数据!', function (res) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
learun.layerConfirm('确定要修改当前项吗!', function (res) {
if (res) {
return top[id].acceptClick(refreshGirdData);
}
})
}
});
})
}
});
//作废
@@ -79,11 +93,11 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var State = $('#gridtable').jfGridValue('State');
if (State !== 0) {
learun.alert.warning("当前项目已提交不能删除!");
return;
if (State == -1) {
learun.alert.warning("当前项已作废,请勿重复操作 !");
return false;
}
learun.layerConfirm('是否确认删除该项!', function (res) {
learun.layerConfirm('是否确认作废该项,此操作将改变数据!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/FillinFrom/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
@@ -97,9 +111,9 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var State = $('#gridtable').jfGridValue('State');
if (State <= 3) {
learun.alert.warning("当前项未执行到此处,不能测回!");
return false;
if (State <= 0) {
learun.alert.warning("当前项已撤回或作废,请勿重复操作!");
return;
}
learun.layerConfirm('是否确认撤回该项!', function (res) {
if (res) {
@@ -124,7 +138,7 @@ var bootstrap = function ($, learun) {
title: '设置填报人',
url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/FormPeople?keyValue=' + keyValue,
width: 600,
height: 400,
height: 500,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -154,7 +168,7 @@ var bootstrap = function ($, learun) {
{ label: "序号", name: "SerialNo", width: 100, align: "center" },
{ label: "项目名称", name: "ProjectName", width: 250, align: "center" },
{
label: "填报周期", name: "FillingCycle", width: 100, align: "center",
label: "填报周期", name: "FillingCycle", width: 80, align: "center",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
@@ -219,22 +233,20 @@ var bootstrap = function ($, learun) {
{
label: "状态", name: "State", width: 150, align: "center",
formatter: function (cellvalue) {
if (cellvalue === 0) {
if (cellvalue === -1) {
return '<span class=\"label label-danger\">作废</span>';
} else 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 if (cellvalue === 3) {
return '<span class=\"label label-success\">待填报</span>';
} else {
return '<span class=\"label label-default\">已完成</span>';
return '<span class=\"label label-default\">待填报</span>';
}
}
},
{ label: "备注", name: "Demo", width: 250, align: "center" },
{ label: "备注", name: "Demo", width: 240, align: "center" },
{
label: "隐藏/显示", name: "IsFlag", width: 150, align: "center",
label: "隐藏/显示", name: "IsFlag", width: 100, align: "center",
formatter: function (cellvalue) {
if (cellvalue === 0) {
return '<span class=\"label label-success\">显示</span>';


+ 0
- 5
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromEntity.cs 查看文件

@@ -89,11 +89,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
[Column("ISFLAG")]
public int? IsFlag { get; set; }
/// <summary>
/// 是否作废 0 否 1 是
/// </summary>
[Column("ISDEL")]
public int? IsDel { get; set; }
#endregion

#region 扩展操作


+ 1
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs 查看文件

@@ -46,8 +46,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
t.State,
t.lrPeople,
t.lrTime,
t.IsFlag,
t.IsDel
t.IsFlag
");
strSql.Append(" FROM FillinFrom t ");
strSql.Append(" WHERE 1=1 ");


正在加载...
取消
保存