Преглед на файлове

收费项目明细,作废,恢复

西昌缴费二期
fzp преди 1 година
родител
ревизия
803eb9aaf1
променени са 7 файла, в които са добавени 149 реда и са изтрити 52 реда
  1. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearItemController.cs
  2. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYearItem/Index.cshtml
  3. +68
    -42
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYearItem/Index.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStudent/Index.js
  5. +19
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuYearItem/FinaChargeStuYearItemBLL.cs
  6. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuYearItem/FinaChargeStuYearItemIBLL.cs
  7. +46
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuYearItem/FinaChargeStuYearItemService.cs

+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearItemController.cs Целия файл

@@ -91,7 +91,14 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers
public ActionResult DeleteForm(string keyValue)
{
finaChargeStuYearItemIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
return Success("操作成功!");
}
[HttpPost]
[AjaxOnly]
public ActionResult UnDeleteForm(string keyValue)
{
finaChargeStuYearItemIBLL.UnDeleteEntity(keyValue);
return Success("操作成功!");
}
/// <summary>
/// 保存实体数据(新增、修改)


+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYearItem/Index.cshtml Целия файл

@@ -19,11 +19,11 @@
<input id="StuName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">收费项目名称</div>
<div class="lr-form-item-title">项目名称</div>
<input id="ChargeItemName" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">收费项目编号</div>
<div class="lr-form-item-title">项目编号</div>
<input id="ChargeItemCode" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
@@ -35,7 +35,7 @@
<div id="PayFeeStatus"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">收费项目类型</div>
<div class="lr-form-item-title">项目类型</div>
<div id="ChargeItemType"></div>
</div>
<div class="col-xs-12 lr-form-item">
@@ -56,8 +56,8 @@
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;恢复</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;作废</a>
</div>
</div>
</div>


+ 68
- 42
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYearItem/Index.js Целия файл

@@ -10,18 +10,24 @@ var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
setTimeout(function () {
page.initGird();
}, 500);//延迟

},
bind: function () {
$('#SYear').lrselect({
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 300, 400);
$('#FSYear').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GenerateNearByYear',
value: 'value',
text: 'text'
});
var now = new Date();
sYear = now.getFullYear();
$('#SYear').lrselectSet(sYear);
$('#FSYear').lrselectSet(sYear);
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
$('#PayFeeStatus').lrDataItemSelect({ code: 'PayStatus' });
@@ -43,18 +49,20 @@ var bootstrap = function ($, learun) {
}
});
});
// 编辑
$('#lr_edit').on('click', function () {
// 恢复
$('#lr_undelete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('FSYIId');
var ChargeItemType = $('#gridtable').jfGridValue('F_DeleteMark');
if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYearItem/Form?keyValue=' + keyValue,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
if (ChargeItemType.indexOf('1') != -1) {
learun.alert.error("包含未作废项目,不能恢复");
return;
}
learun.layerConfirm('是否确认恢复该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYearItem/UnDeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
});
}
@@ -62,10 +70,20 @@ var bootstrap = function ($, learun) {
// 作废
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('FSYIId');
var ChargeItemType = $('#gridtable').jfGridValue('ChargeItemType');
var PayFeeStatus = $('#gridtable').jfGridValue('PayFeeStatus');
if (learun.checkrow(keyValue)) {
if (ChargeItemType.indexOf('1')!=-1) {
learun.alert.error("包含固定收费项目,不能作废");
return;
}
if (PayFeeStatus.indexOf('1') != -1 || PayFeeStatus.indexOf('4') != -1) {
learun.alert.error("包含已缴费项目,不能作废");
return;
}
learun.layerConfirm('是否确认作废该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYearItem/DeleteForm', { keyValue: keyValue}, function () {
learun.deleteForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYearItem/DeleteForm', { keyValue: keyValue }, function () {
refreshGirdData();
});
}
@@ -107,48 +125,56 @@ var bootstrap = function ($, learun) {
}
},
{ label: "缴费年度", name: "FSYear", width: 100, align: "left" },
{ label: "收费项目编号", name: "ChargeItemCode", width: 100, align: "left"},
{ label: "收费项名称", name: "ChargeItemName", width: 100, align: "left"},
{ label: "收费项目类型", name: "ChargeItemType", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'ChargeItemType',
callback: function (_data) {
callback(_data.text);
}
});
}},
{ label: "收费标准", name: "Standard", width: 100, align: "left"},
{ label: "收费项目编号", name: "ChargeItemCode", width: 100, align: "left" },
{ label: "收费项名称", name: "ChargeItemName", width: 100, align: "left" },
{
label: "收费项目类型", name: "ChargeItemType", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'ChargeItemType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "收费标准", name: "Standard", width: 100, align: "left" },
{ label: "实缴金额", name: "SJAmount", width: 100, align: "left" },
{ label: "应缴余额", name: "FSBlance", width: 100, align: "left" },
{ label: "缴费状态", name: "PayFeeStatus", width: 100, align: "left",
formatterAsync: function (callback, value, row, op,$cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'PayStatus',
callback: function (_data) {
callback(_data.text);
}
});
{
label: "缴费状态", name: "PayFeeStatus", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'PayStatus',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "是否作废", name: "F_DeleteMark", width: 100, align: "left",
formatter: function (cellvalue, rowObject) {
return cellvalue == "1" ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>";
formatter: function (cellvalue, row) {
if (cellvalue ===true) {
return '<span class=\"label label-warning\">作废</span>';
} else{
return '<span class=\"label label-success\">正常</span>';
}
}
}
],
mainId:'FSYIId',
isPage: true
mainId: 'FSYIId',
isPage: true,
isMultiselect: true
});
page.search();
},
search: function (param) {
param = param || {};
param.SYear = sYear;
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
param.FSYear = $('#FSYear').lrselectGet();
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStudent/Index.js Целия файл

@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) {
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
}, 250, 400);
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });


+ 19
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuYearItem/FinaChargeStuYearItemBLL.cs Целия файл

@@ -119,6 +119,25 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
}
}

public void UnDeleteEntity(string keyValue)
{
try
{
FinaChargeStuYearItemService.UnDeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

#endregion

}


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuYearItem/FinaChargeStuYearItemIBLL.cs Целия файл

@@ -43,6 +43,7 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
/// <param name="entity">实体</param>
void SaveEntity(string keyValue, FinaChargeStuYearItemEntity entity);
#endregion

void UnDeleteEntity(string keyValue);
}
}

+ 46
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FinaChargeStuYearItem/FinaChargeStuYearItemService.cs Целия файл

@@ -115,17 +115,61 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
#region 提交数据

/// <summary>
/// 删除实体数据
/// 作废
/// </summary>
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
this.BaseRepository("CollegeMIS").Delete<FinaChargeStuYearItemEntity>(t=>t.FSYIId == keyValue);
//单个启用
//this.BaseRepository("CollegeMIS").ExecuteBySql("update ClassInfo set CheckMark=1 where ClassId='" + keyValue + "'");

//多个启用
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
db.ExecuteBySql("update FinaChargeStuYearItem set F_DeleteMark=1 where FSYIId='" + item + "'");
}
db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 恢复
/// </summary>
/// <param name="keyValue"></param>
public void UnDeleteEntity(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
//单个启用
//this.BaseRepository("CollegeMIS").ExecuteBySql("update ClassInfo set CheckMark=1 where ClassId='" + keyValue + "'");

//多个启用
var keyValueArr = keyValue.Split(',');
foreach (var item in keyValueArr)
{
db.ExecuteBySql("update FinaChargeStuYearItem set F_DeleteMark=0 where FSYIId='" + item + "'");
}
db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;


Зареждане…
Отказ
Запис