diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs index 4110c015b..cf348c360 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearController.cs @@ -14,6 +14,7 @@ using Learun.Application.TwoDevelopment.EducationalAdministration; using Learun.Util.Operat; using Newtonsoft.Json; using ThoughtWorks.QRCode.Codec; +using System.Threading.Tasks; namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers { @@ -205,6 +206,17 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers { finaChargeStuYearIBLL.DeleteEntity(keyValue); return Success("删除成功!"); + } + + [HttpPost] + [AjaxOnly] + public ActionResult SetUnInvoiceHandleByFSYID(string keyValue) + { + //触发开具发票任务 + //通过调用digitalschoolapi的接口实现任务触发 + string excelInvoice = Config.GetValue("ExcelInvoiceTwo"); + Task.Run(() => HttpMethods.Post(excelInvoice+ "?FSYID="+keyValue)); + return Success("操作成功!"); } /// /// 保存实体数据(新增、修改) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.cshtml index 459ea2c14..a6d9bdc69 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.cshtml @@ -51,9 +51,10 @@
-
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.js index 3e954a123..ff0a96337 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FinaChargeStuYear/Index.js @@ -63,6 +63,35 @@ var bootstrap = function ($, learun) { } }); }); + //补开发票 + $('#lr_viewinvoice').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('FSYId'); + var selectedRow = $('#gridtable').jfGridGet('rowdata'); + if (learun.checkrow(keyValue)) { + if (selectedRow.PayFeeStatus == "1") { + //查询发票链接 + learun.httpAsyncGet( + top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYear/GetInvoiceRecord?keyValue=' + keyValue, function (res) { + if (!!res.data && res.data.length > 0) { + learun.alert.warning("当前学生已开具发票,请登录学生端查看!"); + return; + } else { + //开票 + learun.layerConfirm('是否确认补开发票?', function (res) { + if (res) { + learun.postForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYear/SetUnInvoiceHandleByFSYID', { keyValue: keyValue }, function () { + refreshGirdData(); + }); + } + }); + } + }); + } else { + learun.alert.warning("当前学生尚未全额缴费,请缴费成功后再试!"); + return; + } + } + }); }, // 初始化列表 initGird: function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 0aa27f508..efbb521bd 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -46,6 +46,7 @@ 4 false false + AnyCPU pdbonly diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config index f03afee23..ebbefd435 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config @@ -179,6 +179,7 @@ + \ No newline at end of file