From 282173144fd6b2c2d36057eb03b3044d597efe79 Mon Sep 17 00:00:00 2001 From: liangkun Date: Fri, 8 Dec 2023 21:51:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=B9=B4=E5=BA=A6?= =?UTF-8?q?=E6=94=B6=E8=B4=B9=E7=AE=A1=E7=90=86=E5=86=85=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=EF=BC=8C=E8=A1=A5=E5=BC=80=E5=8F=91=E7=A5=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FinaChargeStuYearController.cs | 12 ++++++++ .../Views/FinaChargeStuYear/Index.cshtml | 3 +- .../Views/FinaChargeStuYear/Index.js | 29 +++++++++++++++++++ .../Learun.Application.Web.csproj | 1 + 4 files changed, 44 insertions(+), 1 deletion(-) 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 From d09b7b7f0bff8ad12f7a2de0ae3f4bf1d59a409a Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Mon, 27 May 2024 17:04:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91system?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=A1=A5=E5=BC=80=E5=8F=91=E7=A5=A8=E9=85=8D=E7=BD=AE=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.Web/XmlConfig/system.config | 1 + 1 file changed, 1 insertion(+) 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