Просмотр исходного кода

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

金隅分支
liangkun 3 лет назад
Родитель
Сommit
d4def84304
17 измененных файлов: 136 добавлений и 58 удалений
  1. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js
  3. +7
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.cshtml
  4. +7
    -26
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.js
  5. +4
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js
  6. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.js
  7. +1
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.js
  8. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js
  9. +12
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/QualityReportController.cs
  10. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/Index.js
  11. +5
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Form.js
  12. +14
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js
  13. +3
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.cshtml
  14. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.js
  15. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs
  16. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildBLL.cs
  17. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildService.cs

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/FillinFromController.cs Просмотреть файл

@@ -35,6 +35,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
[HttpGet] [HttpGet]
public ActionResult FormIndex() public ActionResult FormIndex()
{ {
var logininfo = LoginUserInfo.Get();
ViewBag.userId = logininfo.userId;
ViewBag.isSystem = logininfo.isSystem;
ViewBag.departmentId = logininfo.departmentId;
return View(); return View();
} }
/// <summary> /// <summary>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js Просмотреть файл

@@ -19,7 +19,7 @@ var bootstrap = function ($, learun) {
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName); $('#lrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')); $('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); $('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' });
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
//$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
$('#FillingCycle').lrDataItemSelect({ $('#FillingCycle').lrDataItemSelect({
code: 'ThisCycle', code: 'ThisCycle',
select: function (item) { select: function (item) {


+ 7
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.cshtml Просмотреть файл

@@ -2,7 +2,12 @@
ViewBag.Title = "质量目标管理体系指标模块"; ViewBag.Title = "质量目标管理体系指标模块";
Layout = "~/Views/Shared/_Index.cshtml"; Layout = "~/Views/Shared/_Index.cshtml";
} }
<div class="lr-layout " >
<script type="text/javascript">
var userId = '@ViewBag.userId';
var isSystem = '@ViewBag.isSystem';
var departmentId= '@ViewBag.departmentId'
</script>
<div class="lr-layout ">
<div class="lr-layout-center"> <div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle "> <div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool"> <div class="lr-layout-tool">
@@ -39,4 +44,4 @@
</div> </div>
</div> </div>
</div> </div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/Index.js")
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.js")

+ 7
- 26
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormIndex.js Просмотреть файл

@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) {
page.search(queryJson); page.search(queryJson);
}, 220, 400); }, 220, 400);
$('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle' }); $('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle' });
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
//$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
// 刷新 // 刷新
$('#lr_refresh').on('click', function () { $('#lr_refresh').on('click', function () {
location.reload(); location.reload();
@@ -92,31 +92,6 @@ 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.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 () { $('#lr_people').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id'); var keyValue = $('#gridtable').jfGridValue('Id');
@@ -224,6 +199,8 @@ var bootstrap = function ($, learun) {
return '<span class=\"label label-success\">待设置填报人</span>'; return '<span class=\"label label-success\">待设置填报人</span>';
} else if (cellvalue === 2) { } else if (cellvalue === 2) {
return '<span class=\"label label-success\">待设置公式</span>'; return '<span class=\"label label-success\">待设置公式</span>';
} else if (cellvalue === 3) {
return '<span class=\"label label-success\">待填报</span>';
} else { } else {
return '<span class=\"label label-default\">已完成</span>'; return '<span class=\"label label-default\">已完成</span>';
} }
@@ -238,6 +215,10 @@ var bootstrap = function ($, learun) {
}, },
search: function (param) { search: function (param) {
param = param || {}; param = param || {};
param.IsFlag = 0;
param.userId = userId;
param.isSystem = isSystem;
param.departmentId = departmentId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
} }
}; };


+ 4
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js Просмотреть файл

@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) {
bind: function () { bind: function () {
$('#lrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; $('#lrPeople')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName); $('#lrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#FillingDept').lrDataSourceSelect({ $('#FillingDept').lrDataSourceSelect({
code: 'classdata', code: 'classdata',
value: 'id', value: 'id',
@@ -29,7 +29,8 @@ var bootstrap = function ($, learun) {
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_departmentid in ('" + DeptCode + "')" }
param: { strWhere: " 1=1 and f_departmentid in ('" + DeptCode + "')" },
maxHeight: 200,
}); });
} }
} }
@@ -62,7 +63,7 @@ var bootstrap = function ($, learun) {
}); });
} }
$('#State').val('0'); $('#State').val('0');
$('#IsFlag').val('0');
$('#IsFlag').val('0');
} }
}; };
// 保存数据 // 保存数据


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Formula.js Просмотреть файл

@@ -42,7 +42,8 @@ var bootstrap = function ($, learun) {
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_departmentid in ('" + DeptCode + "')" }
param: { strWhere: " 1=1 and f_departmentid in ('" + DeptCode + "')" },
maxHeight: 200
}); });
} }
} }


+ 1
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormulaIndex.js Просмотреть файл

@@ -19,7 +19,7 @@ var bootstrap = function ($, learun) {
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName); $('#lrPeople').val(learun.clientdata.get(['userinfo']).realName);
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')); $('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
$('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); $('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' });
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
//$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
$('#FillingCycle').lrDataItemSelect({ $('#FillingCycle').lrDataItemSelect({
code: 'ThisCycle', code: 'ThisCycle',
select: function (item) { select: function (item) {
@@ -47,8 +47,6 @@ var bootstrap = function ($, learun) {
} }
$('#State').val('0'); $('#State').val('0');
$('#IsFlag').val('0'); $('#IsFlag').val('0');

} }
}; };
// 保存数据 // 保存数据


+ 12
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js Просмотреть файл

@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) {
page.search(queryJson); page.search(queryJson);
}, 220, 400); }, 220, 400);
$('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle' }); $('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle' });
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
//$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' });
// 刷新 // 刷新
$('#lr_refresh').on('click', function () { $('#lr_refresh').on('click', function () {
location.reload(); location.reload();
@@ -223,6 +223,17 @@ var bootstrap = function ($, learun) {
} }
}, },
{ label: "备注", name: "Demo", width: 300, align: "center" }, { label: "备注", name: "Demo", width: 300, align: "center" },
{
label: "隐藏/撤下", name: "IsFlag", width: 150, align: "center",
formatter: function (cellvalue) {
if (cellvalue === 0) {
return '<span class=\"label label-success\">显示</span>';
} else if (cellvalue === 1) {
return '<span class=\"label label-default\">隐藏</span>';
}
}
},
], ],
mainId: 'Id', mainId: 'Id',
isPage: true isPage: true


+ 12
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/QualityReportController.cs Просмотреть файл

@@ -145,6 +145,18 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers


return Success("操作成功!"); return Success("操作成功!");
} }
/// <summary>
/// 删除
/// </summary>
/// <returns></returns>
[HttpPost]
[AjaxOnly]
public ActionResult DeleteForm(string keyValue)
{
fualityReportChildIBLL.DeleteEntity(keyValue);

return Success("删除成功!");
}
#endregion #endregion




+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/Index.js Просмотреть файл

@@ -89,11 +89,11 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/LR_Desktop/FormulaMain/GetPageList', url: top.$.rootUrl + '/LR_Desktop/FormulaMain/GetPageList',
headData: [ headData: [
{ label: "名称", name: "Name", width: 150, align: "left" }, { label: "名称", name: "Name", width: 150, align: "left" },
{ label: "公式", name: "Result", width: 250, align: "left" },
{ label: "公式", name: "Result", width: 350, align: "left" },
{ label: "排序", name: "Sort", width: 100, align: "left" }, { label: "排序", name: "Sort", width: 100, align: "left" },
{ label: "描述", name: "Desc", width: 200, align: "left" }, { label: "描述", name: "Desc", width: 200, align: "left" },
{ {
label: "状态", name: "IsEnable", width: 100, align: "left",
label: "启用", name: "IsEnable", width: 100, align: "left",
formatter: function (cellvalue) { formatter: function (cellvalue) {
return cellvalue == 1 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; return cellvalue == 1 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
} }


+ 5
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Form.js Просмотреть файл

@@ -35,7 +35,7 @@ var bootstrap = function ($, learun) {
initData: function () { initData: function () {
if (!!keyValue) { if (!!keyValue) {
$.lrSetForm(top.$.rootUrl + '/LR_Desktop/QualityReport/GetFormData?keyValue=' + keyValue, function (data) { $.lrSetForm(top.$.rootUrl + '/LR_Desktop/QualityReport/GetFormData?keyValue=' + keyValue, function (data) {
$('#content').html(''); $('#content').html('');
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
var id = data[i].Id; var id = data[i].Id;
@@ -87,8 +87,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) { if (!$('body').lrValidform()) {
return false; return false;
} }
console.log('save', arr);
//return;
if (arr.count <= 0) {
return learun.alert.warning('请设置上报数据!');
}

var postData = { var postData = {
list: arr //JSON.stringify($('body').lrGetFormData()) list: arr //JSON.stringify($('body').lrGetFormData())
}; };


+ 14
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js Просмотреть файл

@@ -119,20 +119,20 @@ var bootstrap = function ($, learun) {
}); });
} }
}, },
{
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: "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" }, { label: "备注", name: "Demo", width: 300, align: "center" },
], ],
mainId: 'Id', mainId: 'Id',


+ 3
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.cshtml Просмотреть файл

@@ -23,8 +23,10 @@
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div> </div>
<div class=" btn-group btn-group-sm" learun-authorize="yes"> <div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;查看</a> <a id="lr_view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;查看</a>
<a id="lr_submit" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;提交</a>
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;提交</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a> <a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div> </div>
</div> </div>


+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.js Просмотреть файл

@@ -20,6 +20,23 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () { $('#lr_refresh').on('click', function () {
location.reload(); location.reload();
}); });
// 编辑
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('fid');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/LR_Desktop/QualityReport/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
});
// 查看 // 查看
$('#lr_view').on('click', function () { $('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('fid'); var keyValue = $('#gridtable').jfGridValue('fid');
@@ -52,6 +69,25 @@ var bootstrap = function ($, learun) {
}); });
} }
}); });

//删除
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status == 1) {
return learun.alert.warning('该项已提交,不可删除!');
}
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/LR_Desktop/QualityReport/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
});
// 打印 // 打印
$('#lr_print').on('click', function () { $('#lr_print').on('click', function () {
$('#gridtable').jqprintTable(); $('#gridtable').jqprintTable();


+ 13
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs Просмотреть файл

@@ -73,6 +73,19 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
dp.Add("FillingPeople", queryParam["FillingPeople"].ToString(), DbType.String); dp.Add("FillingPeople", queryParam["FillingPeople"].ToString(), DbType.String);
strSql.Append(" AND t.FillingPeople = @FillingPeople "); strSql.Append(" AND t.FillingPeople = @FillingPeople ");
} }
if (!queryParam["IsFlag"].IsEmpty())
{
dp.Add("IsFlag", queryParam["IsFlag"].ToString(), DbType.String);
strSql.Append(" AND t.IsFlag = @IsFlag ");
}
if (!queryParam["userId"].IsEmpty() && !queryParam["isSystem"].ToBool() && !queryParam["departmentId"].IsEmpty())
{
if (queryParam["isSystem"].ToBool() == false)
{

}
//queryParam["userId"].ToString() != "System" &&
}
return this.BaseRepository("CollegeMIS").FindList<FillinFromEntity>(strSql.ToString(), dp, pagination); return this.BaseRepository("CollegeMIS").FindList<FillinFromEntity>(strSql.ToString(), dp, pagination);
} }
catch (Exception ex) catch (Exception ex)


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildBLL.cs Просмотреть файл

@@ -209,6 +209,7 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
} }
} }


#endregion #endregion


} }

+ 12
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildService.cs Просмотреть файл

@@ -164,6 +164,11 @@ where a.Id='{keyValue}' order by b.Sort";


int mouth = DateTime.Now.Month - 1; int mouth = DateTime.Now.Month - 1;
var entity = this.BaseRepository("CollegeMIS").FindEntity<FillinFromEntity>(x => x.Id == keyValue); var entity = this.BaseRepository("CollegeMIS").FindEntity<FillinFromEntity>(x => x.Id == keyValue);
if (string.IsNullOrEmpty(entity.Formula))
{
return "请先设置公式!";
}

if (entity.FillingCycle == "1") if (entity.FillingCycle == "1")
{ {
//填报周期--月(每月) //填报周期--月(每月)
@@ -220,12 +225,18 @@ where a.Id='{keyValue}' order by b.Sort";
        /// <param name="keyValue">主键</param>         /// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue) public void DeleteEntity(string keyValue)
{ {
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try try
{ {
this.BaseRepository("CollegeMIS").Delete<QualityReportChildEntity>(t => t.Id == keyValue);
db.Delete<QualityReportMainEntity>(t => t.Id == keyValue);
var sql = $"delete from QualityReportChild where MainId='{keyValue}'";
db.ExecuteBySql(sql);

db.Commit();
} }
catch (Exception ex) catch (Exception ex)
{ {
db.Rollback();
if (ex is ExceptionEx) if (ex is ExceptionEx)
{ {
throw; throw;


Загрузка…
Отмена
Сохранить