diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_ServiceController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_ServiceController.cs
new file mode 100644
index 000000000..19153f5d4
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_ServiceController.cs
@@ -0,0 +1,187 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System.Web.Mvc;
+using System.Collections.Generic;
+
+namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-06-25 18:33
+ /// 描 述:申请类
+ ///
+ public class Purchase_ServiceController : MvcControllerBase
+ {
+ private Purchase_ServiceIBLL Purchase_ServiceIBLL = new Purchase_ServiceBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ ///
+ /// 表单查看页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult FormView()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+ ///
+ /// 获取数据字典明显根据分类编号
+ ///
+ /// 分类编号
+ /// 查询条件
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetDetailList(string keyword)
+ {
+ var data = Purchase_ServiceIBLL.GetDataList( keyword);
+ return JsonResult(data);
+ }
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = Purchase_ServiceIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var Purchase_ServiceData = Purchase_ServiceIBLL.GetPurchase_ServiceEntity( keyValue );
+ var Purchase_Service_DetailsData = Purchase_ServiceIBLL.GetPurchase_Service_DetailsList( Purchase_ServiceData.Id );
+ var jsonData = new {
+ Purchase_Service = Purchase_ServiceData,
+ Purchase_Service_Details = Purchase_Service_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormDetailData(string keyValue)
+ {
+ var Purchase_Service_DetailsData = Purchase_ServiceIBLL.GetPurchase_Service_DetailsList(keyValue);
+
+ return Success(Purchase_Service_DetailsData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormDataByProcessId(string processId)
+ {
+ var ArrangeLessonTermAttemperData = Purchase_ServiceIBLL.GetEntityByProcessId(processId);
+ var Purchase_Service_DetailsData = Purchase_ServiceIBLL.GetPurchase_Service_DetailsList(ArrangeLessonTermAttemperData.Id);
+ var jsonData = new
+ {
+ Purchase_Service = ArrangeLessonTermAttemperData,
+ Purchase_Service_Details = Purchase_Service_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ Purchase_ServiceIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity, string strPurchase_Service_DetailsList)
+ {
+ Purchase_ServiceEntity entity = strEntity.ToObject();
+ List Purchase_Service_DetailsList = strPurchase_Service_DetailsList.ToObject>();
+ Purchase_ServiceIBLL.SaveEntity(keyValue,entity,Purchase_Service_DetailsList);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ #region 扩展数据
+ ///
+ /// 提交课程异动记录
+ ///
+ /// 课程异动主键
+ /// 审核状态
+ /// 流程Id
+ ///
+ public ActionResult ModifyStatus(string keyValue, int status, string processId)
+ {
+ Purchase_ServiceIBLL.ModifyStatus(keyValue, status, processId);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_Service_ApplyController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_Service_ApplyController.cs
new file mode 100644
index 000000000..4350ee2f9
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_Service_ApplyController.cs
@@ -0,0 +1,172 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System.Web.Mvc;
+using System.Collections.Generic;
+
+namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-07-14 12:15
+ /// 描 述:教务报账申请
+ ///
+ public class Purchase_Service_ApplyController : MvcControllerBase
+ {
+ private Purchase_Service_ApplyIBLL Purchase_Service_ApplyIBLL = new Purchase_Service_ApplyBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ ///
+ /// 查看页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult FormView()
+ {
+ return View();
+ }
+ ///
+ /// 查找带回页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult FindBack()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = Purchase_Service_ApplyIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var Purchase_Service_applyData = Purchase_Service_ApplyIBLL.GetPurchase_Service_ApplyEntity( keyValue );
+ var Purchase_Service_applydetailsData = Purchase_Service_ApplyIBLL.GetPurchase_Service_ApplydetailsList( Purchase_Service_applyData.Id );
+ //var Purchase_ServiceData = Purchase_Service_ApplyIBLL.GetPurchase_ServiceEntity( Purchase_Service_applydetailsData.purchaseid );
+ var jsonData = new {
+ Purchase_Service_apply = Purchase_Service_applyData,
+ Purchase_Service_applydetails = Purchase_Service_applydetailsData,
+ //Purchase_Service = Purchase_ServiceData,
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormDataByProcessId(string processId)
+ {
+ var Data = Purchase_Service_ApplyIBLL.GetEntityByProcessId(processId);
+ var Purchase_Service_DetailsData = Purchase_Service_ApplyIBLL.GetPurchase_Service_ApplydetailsList(Data.Id);
+ var jsonData = new
+ {
+ Purchase_Service_apply = Data,
+ Purchase_Service_applydetails = Purchase_Service_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ Purchase_Service_ApplyIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity, string strPurchase_Service_applydetailsList, string strPurchase_ServiceEntity)
+ {
+ Purchase_Service_ApplyEntity entity = strEntity.ToObject();
+ List Purchase_Service_applydetailsList = strPurchase_Service_applydetailsList.ToObject>();
+ Purchase_Service_ApplyIBLL.SaveEntity(keyValue,entity,Purchase_Service_applydetailsList);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ #region 扩展数据
+ ///
+ /// 提交课程异动记录
+ ///
+ /// 课程异动主键
+ /// 审核状态
+ /// 流程Id
+ ///
+ public ActionResult ModifyStatus(string keyValue, int status, string processId)
+ {
+ Purchase_Service_ApplyIBLL.ModifyStatus(keyValue, status, processId);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_TravelController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_TravelController.cs
new file mode 100644
index 000000000..a926eff42
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_TravelController.cs
@@ -0,0 +1,174 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System.Web.Mvc;
+using System.Collections.Generic;
+
+namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-06-25 18:33
+ /// 描 述:申请类
+ ///
+ public class Purchase_TravelController : MvcControllerBase
+ {
+ private Purchase_TravelIBLL Purchase_TravelIBLL = new Purchase_TravelBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ ///
+ /// 表单查看页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult FormView()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+ ///
+ /// 获取数据字典明显根据分类编号
+ ///
+ /// 分类编号
+ /// 查询条件
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetDetailList(string keyword)
+ {
+ var data = Purchase_TravelIBLL.GetDataList( keyword);
+ return JsonResult(data);
+ }
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = Purchase_TravelIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var Purchase_TravelData = Purchase_TravelIBLL.GetPurchase_TravelEntity( keyValue );
+ //var Purchase_Travel_DetailsData = Purchase_TravelIBLL.GetPurchase_Travel_DetailsList( Purchase_TravelData.Id );
+ var jsonData = new {
+ Purchase_Travel = Purchase_TravelData,
+ //Purchase_Travel_Details = Purchase_Travel_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormDataByProcessId(string processId)
+ {
+ var ArrangeLessonTermAttemperData = Purchase_TravelIBLL.GetEntityByProcessId(processId);
+ //var Purchase_Travel_DetailsData = Purchase_TravelIBLL.GetPurchase_Travel_DetailsList(ArrangeLessonTermAttemperData.Id);
+ var jsonData = new
+ {
+ Purchase_Travel = ArrangeLessonTermAttemperData,
+ //Purchase_Travel_Details = Purchase_Travel_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ Purchase_TravelIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity, string strPurchase_Travel_DetailsList)
+ {
+ Purchase_TravelEntity entity = strEntity.ToObject();
+ // List Purchase_Travel_DetailsList = strPurchase_Travel_DetailsList.ToObject>();
+ Purchase_TravelIBLL.SaveEntity(keyValue,entity);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ #region 扩展数据
+ ///
+ /// 提交课程异动记录
+ ///
+ /// 课程异动主键
+ /// 审核状态
+ /// 流程Id
+ ///
+ public ActionResult ModifyStatus(string keyValue, int status, string processId)
+ {
+ Purchase_TravelIBLL.ModifyStatus(keyValue, status, processId);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_Travel_ApplyController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_Travel_ApplyController.cs
new file mode 100644
index 000000000..0dac34175
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Controllers/Purchase_Travel_ApplyController.cs
@@ -0,0 +1,172 @@
+using Learun.Util;
+using System.Data;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System.Web.Mvc;
+using System.Collections.Generic;
+
+namespace Learun.Application.Web.Areas.LogisticsManagement.Controllers
+{
+ ///
+ /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
+ /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2023-07-14 12:15
+ /// 描 述:教务报账申请
+ ///
+ public class Purchase_Travel_ApplyController : MvcControllerBase
+ {
+ private Purchase_Travel_ApplyIBLL Purchase_Travel_ApplyIBLL = new Purchase_Travel_ApplyBLL();
+
+ #region 视图功能
+
+ ///
+ /// 主页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Index()
+ {
+ return View();
+ }
+ ///
+ /// 表单页
+ ///
+ ///
+ [HttpGet]
+ public ActionResult Form()
+ {
+ return View();
+ }
+ ///
+ /// 查看页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult FormView()
+ {
+ return View();
+ }
+ ///
+ /// 查找带回页面
+ ///
+ ///
+ [HttpGet]
+ public ActionResult FindBack()
+ {
+ return View();
+ }
+ #endregion
+
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表数据
+ ///
+ /// 分页参数
+ /// 查询参数
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetPageList(string pagination, string queryJson)
+ {
+ Pagination paginationobj = pagination.ToObject();
+ var data = Purchase_Travel_ApplyIBLL.GetPageList(paginationobj, queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = paginationobj.total,
+ page = paginationobj.page,
+ records = paginationobj.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ /// 主键
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormData(string keyValue)
+ {
+ var Purchase_Travel_applyData = Purchase_Travel_ApplyIBLL.GetPurchase_Travel_ApplyEntity( keyValue );
+ var Purchase_Travel_applydetailsData = Purchase_Travel_ApplyIBLL.GetPurchase_Travel_ApplydetailsList( Purchase_Travel_applyData.Id );
+ //var Purchase_TravelData = Purchase_Travel_ApplyIBLL.GetPurchase_TravelEntity( Purchase_Travel_applydetailsData.purchaseid );
+ var jsonData = new {
+ Purchase_Travel_apply = Purchase_Travel_applyData,
+ Purchase_Travel_applydetails = Purchase_Travel_applydetailsData,
+ //Purchase_Travel = Purchase_TravelData,
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetFormDataByProcessId(string processId)
+ {
+ var Data = Purchase_Travel_ApplyIBLL.GetEntityByProcessId(processId);
+ var Purchase_Travel_DetailsData = Purchase_Travel_ApplyIBLL.GetPurchase_Travel_ApplydetailsList(Data.Id);
+ var jsonData = new
+ {
+ Purchase_Travel_apply = Data,
+ Purchase_Travel_applydetails = Purchase_Travel_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ /// 主键
+ ///
+ [HttpPost]
+ [AjaxOnly]
+ public ActionResult DeleteForm(string keyValue)
+ {
+ Purchase_Travel_ApplyIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ /// 主键
+ /// 实体
+ ///
+ [HttpPost]
+ [ValidateAntiForgeryToken]
+ [AjaxOnly]
+ public ActionResult SaveForm(string keyValue, string strEntity, string strPurchase_Travel_applydetailsList, string strPurchase_TravelEntity)
+ {
+ Purchase_Travel_ApplyEntity entity = strEntity.ToObject();
+ List Purchase_Travel_applydetailsList = strPurchase_Travel_applydetailsList.ToObject>();
+ Purchase_Travel_ApplyIBLL.SaveEntity(keyValue,entity,Purchase_Travel_applydetailsList);
+ if (string.IsNullOrEmpty(keyValue))
+ {
+ }
+ return Success("保存成功!");
+ }
+ #endregion
+
+ #region 扩展数据
+ ///
+ /// 提交课程异动记录
+ ///
+ /// 课程异动主键
+ /// 审核状态
+ /// 流程Id
+ ///
+ public ActionResult ModifyStatus(string keyValue, int status, string processId)
+ {
+ Purchase_Travel_ApplyIBLL.ModifyStatus(keyValue, status, processId);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ }
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.cshtml
new file mode 100644
index 000000000..ff2afa9aa
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.cshtml
@@ -0,0 +1,32 @@
+@{
+ ViewBag.Title = "申请类";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.js
new file mode 100644
index 000000000..296954025
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.js
@@ -0,0 +1,141 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-06-25 18:33
+ * 描 述:申请类
+ */
+var acceptClick;
+var computeamount;
+var userinfo;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ userinfo = learun.clientdata.get(['userinfo']);//用户数据
+ console.log(userinfo)
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ //加载部门、用户
+ $('#DepartmentId')[0].lrvalue = userinfo.departmentId;
+ learun.clientdata.getAsync('department', {
+ key: userinfo.departmentId,
+ callback: function (_data) {
+ $('#DepartmentId').val(_data.name);
+ $('#DepartmentName')[0].lrvalue = _data.name;
+ }
+ });
+ //加载用户
+ $('#CreatorId')[0].lrvalue = userinfo.userId;
+ $('#CreatorName')[0].lrvalue = userinfo.realName;
+ $('#CreatorId').val(userinfo.realName);
+
+
+ $('#FilePath').lrUploader();
+ $('#Purchase_Service_Details').jfGrid({
+ headData: [
+ {
+ label: '劳务维修内容', name: 'ServiceContent', width: 150, align: 'left',
+ edit: {
+ type:'input'
+ }
+ },
+ {
+ label: '估值', name: 'Price', width:100, align: 'left',
+ edit: {
+ type: 'input',
+ init: function (data, $edit) {// 在点击单元格的时候触发,可以用来初始化输入控件,行数据和控件对象
+
+ },
+ change: function (data, num) {// 行数据和行号
+ if (!isNaN(data.Price)) {
+ computeamount();
+ } else {
+ learun.alert.warning("只能是数字");
+ data.Price=0
+ }
+ }
+ }
+ },
+ {
+ label: '人数', name: 'Peoplecount', width: 100, align: 'left',
+ edit: {
+ type: 'input',
+ }
+ },
+ {
+ label: '天数', name: 'Days', width: 100, align: 'left',
+ edit: {
+ type:'input'
+ }
+ },
+ {
+ label: '标准', name: 'Standar', width: 100, align: 'left',
+ edit: {
+ type:'input'
+ }
+ },
+ {
+ label: 'Id', name: 'Id', width: 100, align: 'left', ishide: true
+ },
+ ],
+ isEdit: true,
+ height: 400,
+ onMinusRow: function (row, rows) {//行数据和所有行数据
+ computeamount();
+ },
+ });
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/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]);
+ }
+ }
+ });
+ }
+ },
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Service"]').lrGetFormData());
+ postData.strPurchase_Service_DetailsList = JSON.stringify($('#Purchase_Service_Details').jfGridGet('rowdatas'));
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ computeamount= function () {
+ var rowdatas = $('#Purchase_Service_Details').jfGridGet('rowdatas');
+ var totalamount = 0;
+ for (var i = 0; i < rowdatas.length; i++) {
+ if (rowdatas[i].Price) {
+ totalamount += parseFloat( rowdatas[i].Price);
+ }
+ }
+ $('#TotalAmount').val(totalamount);
+ if ($("#TotalAmount").val() != '') {
+ if (parseFloat($("#TotalAmount").val()) > 0) {
+ if ($('#TotalAmount').parent().find('.lr-field-error-info').length > 0) {
+ $('#TotalAmount').parent().find('.lr-field-error-info')[0].remove();
+ $('#TotalAmount').removeClass('lr-field-error');
+ }
+ }
+ }
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/FormView.cshtml
new file mode 100644
index 000000000..99a09c799
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/FormView.cshtml
@@ -0,0 +1,56 @@
+@{
+ ViewBag.Title = "教学调度";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service/FormView.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/FormView.js
new file mode 100644
index 000000000..27f6c30ec
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/FormView.js
@@ -0,0 +1,131 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-09-26 10:47
+ * 描 述:办公采购申请
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+// 设置权限
+var setAuthorize;
+// 设置表单数据
+var setFormData;
+// 验证数据是否填写完整
+var validForm;
+// 保存数据
+var save;
+//绑定原课程安排
+var bindData;
+//绑定新课程安排
+var bindDataNew;
+var bootstrap = function ($, learun) {
+ "use strict";
+ // 设置权限
+ setAuthorize = function (data) {
+ };
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ ////加载部门、用户
+ //$('#DepartmentId')[0].lrvalue = userinfo.departmentId;
+ //learun.clientdata.getAsync('department', {
+ // key: userinfo.departmentId,
+ // callback: function (_data) {
+ // $('#DepartmentId').val(_data.name);
+ // $('#DepartmentName')[0].lrvalue = _data.name;
+ // }
+ //});
+ ////加载用户
+ //$('#CreatorId')[0].lrvalue = userinfo.userId;
+ //$('#CreatorName')[0].lrvalue = userinfo.realName;
+ //$('#CreatorId').val(userinfo.realName);
+
+
+ $('#FilePath').lrUploader({ isUpload: false });
+ $('#Purchase_Service_Details').jfGrid({
+ headData: [
+ { label: '劳务维修内容', name: 'ServiceContent', width: 100, align: 'left' },
+ { label: '估值', name: 'Price', width: 100, align: 'left' },
+ { label: '人数', name: 'Peoplecount', width: 100, align: 'left' },
+ { label: '天数', name: 'Days', width: 100, align: 'left' },
+ { label: '标准', name: 'Standar', width: 100, align: 'left' },
+ { label: 'Id', name: 'Id', width: 100, align: 'left', ishide: true },
+ ],
+ isEdit: false,
+ height: 400,
+ onMinusRow: function (row, rows) {//行数据和所有行数据
+ computeamount();
+ },
+ });
+ },
+ initData: function () {
+ console.log(keyValue)
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/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]);
+ }
+ }
+ });
+ }
+ },
+ };
+ // 设置表单数据
+ setFormData = function (processId, param, callback) {
+ if (!!processId) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/GetFormDataByProcessId?processId=' + processId, function (data) {
+ for (var id in data) {
+ if (!!data[id] && data[id].length > 0) {
+ $('#' + id).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ //if (id == 'ArrangeLessonTermAttemper') {
+ keyValue = data[id].Id;
+ //}
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ callback && callback();
+ }
+ // 验证数据是否填写完整
+ validForm = function () {
+ if (!$('#form').lrValidform()) {
+ return false;
+ }
+ return true;
+ };
+ // 保存数据
+ save = function (processId, callBack, i) {
+ var formData = $('body').lrGetFormData();
+
+ if (!!processId) {
+ formData.ProcessId = processId;
+ }
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Service"]').lrGetFormData());
+ postData.strPurchase_Service_DetailsList = JSON.stringify($('#Purchase_Service_Details').jfGridGet('rowdatas'));
+ //var postData = {
+ // strEntity: JSON.stringify(formData)
+ //};
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack(res, i);
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.cshtml
new file mode 100644
index 000000000..fe7bd14a5
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.cshtml
@@ -0,0 +1,49 @@
+@{
+ ViewBag.Title = "申请类";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.js
new file mode 100644
index 000000000..3436eb2af
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.js
@@ -0,0 +1,264 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-06-25 18:33
+ * 描 述:申请类
+ */
+var refreshGirdData;
+var selectedRow;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var logbegin = '';
+ var logend = '';
+ var processId = '';
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ // 默认
+ selectfn: function (begin, end) {
+ logbegin = begin;
+ logend = end;
+
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#checkstatus').lrselect({
+ data: [{ text: '待审核', value: '0' }, { text: '审核中', value: '1' }, { text: '已审核', value: '2' }],
+ text: 'text',
+ value: 'value',
+ });
+ $('#ApplyStatus').lrselect({
+ data: [{ text: '待报账', value: '0' }, { text: '报账中', value: '1' }, { text: '已报账', value: '2' }],
+ text: 'text',
+ value: 'value',
+ });
+ // 刷新
+ // 查询
+ $('#btn_Search').on('click', function () {
+ var keyword = $('#txt_Keyword').val();
+ page.search({ keyword: keyword });
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/Form',
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ //res = top[id].save('', function () {
+ // page.search();
+ //});
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status == 1) {//提交
+ learun.alert.warning("当前课程异动记录已提交!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/Form?keyValue=' + keyValue,
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ var res = false;
+ // 验证数据
+ //res = top[id].validForm();
+ // 保存数据
+ //if (res) {
+ //res = top[id].save('', function () {
+ // page.search();
+ //});
+ return top[id].acceptClick(refreshGirdData);
+ //}
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status !== 0) {
+ learun.alert.warning("当前课程异动记录已提交,无法删除!");
+ return false;
+ }
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/DeleteForm', { keyValue: keyValue}, function () {
+ //refreshGirdData();
+ page.search();
+ });
+ }
+ });
+ }
+ });
+ // 提交
+ $('#lr_submit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status !== 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerConfirm('是否确认提交该项!', function (res) {
+ if (res) {
+ processId = learun.newGuid();
+ learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) {
+ //selectedRow.ProcessId = processId;
+ refreshGirdData(res, {});
+ });
+ }
+ });
+ }
+ });
+ // 查看
+ $('#lr_view').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status == 0) {
+ learun.alert.warning("当前记录未提交,请提交后再查看!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'formview',
+ title: '查看',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/FormView?keyValue=' + keyValue,
+ width: 1000,
+ height: 600,
+ btn: null
+ });
+ }
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/GetPageList',
+ headData: [
+ { label: "部门", name: "DepartmentId", width: 150, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.DepartmentName;
+ }
+ },
+ {
+ label: "申请人", name: "CreatorId", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.CreatorName;
+ }
+ },
+ { label: "总价格", name: "TotalAmount", width: 100, align: "left"},
+ { label: "备注", name: "Remark", width: 100, align: "left"},
+
+ { label: "提交时间", name: "SubmitTime", width: 130, align: "left" },
+ {
+ label: "状态", name: "Status", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '已提交';
+ } else {
+ return '未提交';
+ }
+ }
+ },
+ //{
+ // label: "审核用户", name: "CheckUserId", width: 100, align: "left",
+ // formatter: function (cellvalue, row) {
+ // return row.CheckUserName;
+ // }
+ //},
+ { label: "审核时间", name: "CheckTime", width: 130, align: "left" },
+ {
+ label: "审核状态", name: "CheckStatus", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '审核中';
+ } else if (cellvalue == 2) {
+ return '审核通过';
+ } else {
+ return '草稿';
+ }
+ }
+ },
+ {
+ label: "报账状态", name: "ApplyStatus", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ console.log(cellvalue)
+ if (cellvalue == 0) {
+ return '待报账';
+ } else if (cellvalue == 1) {
+ return '报账中';
+ } else if (cellvalue == 2) {
+ return '已报账';
+ }
+ }
+ },
+ ],
+ mainId:'Id',
+ isPage: true
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = logbegin;
+ param.EndTime = logend;
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function (res, postData) {
+ if (res && res.code && res.code == 200) {
+ // 发起流程
+ var postData = {
+ schemeCode: '1-14',// 填写流程对应模板编号
+ processId: processId,
+ level: '1',
+ };
+ learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
+ learun.loading(false);
+ });
+ }
+ page.search();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FindBack.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FindBack.cshtml
new file mode 100644
index 000000000..6fe02938b
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FindBack.cshtml
@@ -0,0 +1,33 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FindBack.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FindBack.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FindBack.js
new file mode 100644
index 000000000..f1878c259
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FindBack.js
@@ -0,0 +1,158 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-07-14 12:15
+ * 描 述:教务报账申请
+ */
+var acceptClick;
+var refreshGirdData;
+var list=[];
+var bootstrap = function ($, learun) {
+ "use strict";
+ var startTime;
+ var endTime;
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ // 时间搜索框
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ // 默认
+ dfvalue: '1',
+ selectfn: function (begin, end) {
+ startTime = begin;
+ endTime = end;
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#DepartmentId').lrDepartmentSelect();
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/GetPageList',
+ headData: [
+ {
+ label: "部门", name: "DepartmentId", width: 150, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.DepartmentName;
+ }
+ },
+ {
+ label: "申请人", name: "CreatorId", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.CreatorName;
+ }
+ },
+ { label: "总价格", name: "TotalAmount", width: 100, align: "left" },
+ { label: "备注", name: "Remark", width: 100, align: "left" },
+ ],
+ mainId: 'Id',
+ isPage: true,
+ isMultiselect: true,
+ onSelectRow: function (rowdata, type) {
+ if (type) {
+ list.push(rowdata)
+ //let temp = {}
+ //list = list.reduce((prev, curv) => {
+ // if (temp[curv.StuNo]) { }
+ // else {
+ // temp[curv.StuNo] = true
+ // prev.push(curv)
+ // }
+ // return prev
+ //}, [])
+ } else {
+ list = $.grep(list, function (item, index) {
+ return item.Id!=rowdata.Id
+ })
+
+ }
+ console.log(list)
+ },
+ isSubGrid: true,
+ subGridExpanded: function (subContentId, rowItem) {
+ $('#' + subContentId).jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/GetFormDetailData?keyValue=' + rowItem.Id,
+ headData: [
+ { label: "采购物品名称", name: "Name", width: 100, align: "left" },
+ { label: "价格", name: "Price", width: 130, align: "left" },
+ { label: "采购数量", name: "Quantity", width: 100, align: "left" },
+ { label: "单位", name: "Unit", width: 150, align: "left" },
+ { label: "用途", name: "UseTo", width: 150, align: "left" },
+ ],
+ mainId: 'LessonNo',
+ isPage: false,
+ sidx: 'ReviewTime desc'
+ });
+ var param;
+ param = param || {};
+ param.StuNo = rowItem.StuNo;
+ $('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ });
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = startTime;
+ param.EndTime = endTime;
+ param.ApplyStatus = 0;
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ $('#gridtable').jfGridSet('reload');
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ //console.log(list)
+ if (list.length > 0) {
+ if (!!callBack) {
+ callBack(list);
+ return true;
+ }
+ } else {
+
+ }
+ //if (!$('body').lrValidform()) {
+ // return false;
+ //}
+ //var postData = {};
+ //postData.strEntity = JSON.stringify($('[data-table="Purchase_Service_apply"]').lrGetFormData());
+ //postData.strPurchase_Service_applydetailsList = JSON.stringify($('#Purchase_Service_applydetails').jfGridGet('rowdatas'));
+ //postData.strPurchase_ServiceEntity = JSON.stringify($('[data-table="Purchase_Service"]').lrGetFormData());
+ //$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // // 保存成功后才回调
+ // if (!!callBack) {
+ // callBack();
+ // }
+ //});
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.cshtml
new file mode 100644
index 000000000..fc2e53e6b
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.cshtml
@@ -0,0 +1,47 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.js
new file mode 100644
index 000000000..e2c773562
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.js
@@ -0,0 +1,163 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-07-14 12:15
+ * 描 述:教务报账申请
+ */
+var acceptClick;
+var userinfo;
+var selectedRow;
+var refreshGirdData;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ userinfo = learun.clientdata.get(['userinfo']);//用户数据
+
+ $("#detailadd").on('click', function () {
+ selectedRow = null;
+ ///LogisticsManagement/Purchase_Service/GetDetailList
+ learun.layerForm({
+ id: 'findback',
+ title: '新增明细',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/FindBack',
+ width: 860,
+ height: 580,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ $("#detaildel").on('click', function () {
+ var keyValue = $('#Purchase_Service_applydetails').jfGridValue('purchaseid');
+ selectedRow = $('#Purchase_Service_applydetails').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res, index) {
+ if (res) {
+ $('#Purchase_Service_applydetails').jfGridSet('removeRow', selectedRow.purchaseid);
+
+ let totalamount = parseFloat($('#Totalamount').val());
+
+ totalamount -= selectedRow.TotalAmount;
+ $('#Totalamount').val(totalamount);
+ }
+ });
+ }
+ });
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#DepartmentId')[0].lrvalue = userinfo.departmentId;
+ learun.clientdata.getAsync('department', {
+ key: userinfo.departmentId,
+ callback: function (_data) {
+ $('#DepartmentId').val(_data.name);
+ }
+ });
+
+ $('#Creator')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
+ $('#Creator').val(learun.clientdata.get(['userinfo']).realName);
+ $('#Createtime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
+ $('#FilePath').lrUploader();
+ $('#Purchase_Service_applydetails').jfGrid({
+ headData: [
+ {
+ label: '采购单备注', name: 'Remark', width: 120, align: 'left'
+ },
+ {
+ label: '金额', name: 'TotalAmount', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'CreateTime', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'purchaseid', width: 120, align: 'left', ishide:true
+ }
+ ],
+ //isEdit:true,
+ isSubGrid: true,
+ mainId:'purchaseid',
+ height: 400,
+ isSubGrid: true,
+ subGridExpanded: function (subContentId, rowItem) {
+ $('#' + subContentId).jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/GetFormDetailData?keyValue=' + rowItem.purchaseid,
+ headData: [
+ { label: "采购物品名称", name: "Name", width: 100, align: "left" },
+ { label: "价格", name: "Price", width: 130, align: "left" },
+ { label: "采购数量", name: "Quantity", width: 100, align: "left" },
+ { label: "单位", name: "Unit", width: 150, align: "left" },
+ { label: "用途", name: "UseTo", width: 150, align: "left", },
+ ],
+ mainId: 'LessonNo',
+ isPage: false,
+ sidx: 'ReviewTime desc'
+ });
+ var param;
+ param = param || {};
+ param.StuNo = rowItem.StuNo;
+ $('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ });
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/GetFormData?keyValue=' + keyValue, function (data) {
+ console.log(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]);
+ }
+ }
+ });
+ }
+ }
+ };
+ refreshGirdData = function (e) {
+ //console.log(e)
+ //计算总金额
+ let totalamount = 0;
+ //清楚所有
+ var datas = $('#Purchase_Service_applydetails').jfGridGet('rowdatas').length
+ for (var i = 0; i < datas; i++) {
+ $('#Purchase_Service_applydetails').jfGridSet('removeRow', $('#Purchase_Service_applydetails').jfGridGet('rowdatas')[0].purchaseid);
+ }
+
+ for (var i = 0; i < e.length; i++) {
+ var itemdata = {
+ 'Id': '',
+ 'Remark': e[i].Remark,
+ 'TotalAmount': e[i].TotalAmount,
+ 'CreateTime': e[i].CreateTime,
+ 'purchaseid': e[i].Id
+ };
+ $('#Purchase_Service_applydetails').jfGridSet('addRow', itemdata);
+ totalamount += e[i].TotalAmount;
+ }
+ $('#Totalamount').val(totalamount);
+
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Service_apply"]').lrGetFormData());
+ postData.strPurchase_Service_applydetailsList = JSON.stringify($('#Purchase_Service_applydetails').jfGridGet('rowdatas'));
+ //postData.strPurchase_ServiceEntity = JSON.stringify($('[data-table="Purchase_Service"]').lrGetFormData());
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FormView.cshtml
new file mode 100644
index 000000000..6b69801d1
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FormView.cshtml
@@ -0,0 +1,47 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FormView.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FormView.js
new file mode 100644
index 000000000..c16033cff
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/FormView.js
@@ -0,0 +1,141 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-09-26 10:47
+ * 描 述:办公采购申请
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+// 设置权限
+var setAuthorize;
+// 设置表单数据
+var setFormData;
+// 验证数据是否填写完整
+var validForm;
+// 保存数据
+var save;
+//绑定原课程安排
+var bindData;
+//绑定新课程安排
+var bindDataNew;
+var bootstrap = function ($, learun) {
+ "use strict";
+ // 设置权限
+ setAuthorize = function (data) {
+ };
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#FilePath').lrUploader({ isUpload: false });
+ $('#Purchase_Service_applydetails').jfGrid({
+ headData: [
+ {
+ label: '采购单备注', name: 'Remark', width: 120, align: 'left'
+ },
+ {
+ label: '金额', name: 'TotalAmount', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'CreateTime', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'purchaseid', width: 120, align: 'left', ishide: true
+ }
+ ],
+ //isEdit:true,
+ isSubGrid: true,
+ mainId: 'purchaseid',
+ height: 400,
+ isSubGrid: true,
+ subGridExpanded: function (subContentId, rowItem) {
+ $('#' + subContentId).jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service/GetFormDetailData?keyValue=' + rowItem.purchaseid,
+ headData: [
+ { label: "采购物品名称", name: "Name", width: 100, align: "left" },
+ { label: "价格", name: "Price", width: 130, align: "left" },
+ { label: "采购数量", name: "Quantity", width: 100, align: "left" },
+ { label: "单位", name: "Unit", width: 150, align: "left" },
+ { label: "用途", name: "UseTo", width: 150, align: "left", },
+ ],
+ mainId: 'LessonNo',
+ isPage: false,
+ sidx: 'ReviewTime desc'
+ });
+ var param;
+ param = param || {};
+ param.StuNo = rowItem.StuNo;
+ $('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ });
+ },
+ initData: function () {
+ console.log(keyValue)
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/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]);
+ }
+ }
+ });
+ }
+ },
+ };
+ // 设置表单数据
+ setFormData = function (processId, param, callback) {
+ if (!!processId) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/GetFormDataByProcessId?processId=' + processId, function (data) {
+ for (var id in data) {
+ if (!!data[id] && data[id].length > 0) {
+ $('#' + id).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ //if (id == 'ArrangeLessonTermAttemper') {
+ keyValue = data[id].Id;
+ //}
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ callback && callback();
+ }
+ // 验证数据是否填写完整
+ validForm = function () {
+ if (!$('#form').lrValidform()) {
+ return false;
+ }
+ return true;
+ };
+ // 保存数据
+ save = function (processId, callBack, i) {
+ var formData = $('body').lrGetFormData();
+
+ if (!!processId) {
+ formData.ProcessId = processId;
+ }
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Service_Apply"]').lrGetFormData());
+ postData.strPurchase_Service_applydetailsList = JSON.stringify($('#Purchase_Service_applydetails').jfGridGet('rowdatas'));
+ //var postData = {
+ // strEntity: JSON.stringify(formData)
+ //};
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack(res, i);
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.cshtml
new file mode 100644
index 000000000..5e6775a5e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.cshtml
@@ -0,0 +1,51 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js
new file mode 100644
index 000000000..2c9d43df2
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js
@@ -0,0 +1,245 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-07-14 12:15
+ * 描 述:教务报账申请
+ */
+var refreshGirdData;
+var selectedRow;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var startTime;
+ var endTime;
+ var processId = '';
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ // 时间搜索框
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ // 默认
+ dfvalue: '1',
+ selectfn: function (begin, end) {
+ startTime = begin;
+ endTime = end;
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#DepartmentId').lrDepartmentSelect();
+ $('#checkstatus').lrselect({
+ data: [{ text: '待审核', value: '0' }, { text: '审核中', value: '1' }, { text: '已审核', value: '2' }],
+ text: 'text',
+ value: 'value',
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/Form',
+ //url: top.$.rootUrl + '/lr_codedemo/griddemo/editindex',
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status != 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/Form?keyValue=' + keyValue,
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status != 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/DeleteForm', { keyValue: keyValue}, function () {
+ //refreshGirdData();
+ page.search();
+ });
+ }
+ });
+ }
+ });
+ // 提交
+ $('#lr-sub').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ console.log(keyValue)
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status != 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerConfirm('是否确认提交该项!', function (res) {
+ if (res) {
+ processId = learun.newGuid();
+ learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) {
+ //selectedRow.ProcessId = processId;
+ refreshGirdData(res, {});
+ });
+ }
+ });
+ }
+ });
+ // 查看
+ $('#lr-view').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status == 0) {
+ learun.alert.warning("当前记录未提交,请提交后再查看!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'formview',
+ title: '查看',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/FormView?keyValue=' + keyValue,
+ width: 1000,
+ height: 800,
+ btn: null
+ });
+ }
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/GetPageList',
+ headData: [
+ { label: "填报部门", name: "DepartmentId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('department', {
+ key: value,
+ callback: function (_data) {
+ callback(_data.name);
+ }
+ });
+ }},
+ { label: "填报人", name: "Creator", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('user', {
+ key: value,
+ callback: function (_data) {
+ callback(_data.name);
+ }
+ });
+ }},
+ { label: "填报时间", name: "Createtime", width: 100, align: "left"},
+ { label: "收款人", name: "Payee", width: 100, align: "left"},
+ { label: "附件张数", name: "Attachcount", width: 100, align: "left"},
+ { label: "申请报账金额", name: "Totalamount", width: 100, align: "left"},
+ //{ label: "附件上传", name: "FilePath", width: 100, align: "left"},
+ { label: "核准金额", name: "Approvalamount", width: 100, align: "left" },
+ { label: "提交时间", name: "SubmitTime", width: 130, align: "left" },
+ {
+ label: "状态", name: "Status", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '已提交';
+ } else {
+ return '未提交';
+ }
+ }
+ },
+ //{
+ // label: "审核用户", name: "CheckUserId", width: 100, align: "left",
+ // formatter: function (cellvalue, row) {
+ // return row.CheckUserName;
+ // }
+ //},
+ { label: "审核时间", name: "CheckTime", width: 130, align: "left" },
+ {
+ label: "审核状态", name: "CheckStatus", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '审核中';
+ } else if (cellvalue == 2) {
+ return '审核通过';
+ } else {
+ return '草稿';
+ }
+ }
+ },
+ ],
+ mainId:'Id',
+ isPage: true
+ });
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = startTime;
+ param.EndTime = endTime;
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function (res, postData) {
+ //$('#gridtable').jfGridSet('reload');
+
+ if (res && res.code && res.code == 200) {
+ // 发起流程
+
+ var postData = {
+ schemeCode: '1-13',// 填写流程对应模板编号
+ processId: processId,
+ level: '1',
+ };
+ learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
+ learun.loading(false);
+ });
+
+ }
+ page.search();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Form.cshtml
new file mode 100644
index 000000000..273bfd193
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Form.cshtml
@@ -0,0 +1,42 @@
+@{
+ ViewBag.Title = "申请类";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Form.js
new file mode 100644
index 000000000..62157f3ae
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Form.js
@@ -0,0 +1,71 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-06-25 18:33
+ * 描 述:申请类
+ */
+var acceptClick;
+var computeamount;
+var userinfo;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ userinfo = learun.clientdata.get(['userinfo']);//用户数据
+ console.log(userinfo)
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ //加载部门、用户
+ //$('#DepartmentId')[0].lrvalue = userinfo.departmentId;
+ //learun.clientdata.getAsync('department', {
+ // key: userinfo.departmentId,
+ // callback: function (_data) {
+ // $('#DepartmentId').val(_data.name);
+ // $('#DepartmentName')[0].lrvalue = _data.name;
+ // }
+ //});
+ //加载用户
+ $('#CreatorId')[0].lrvalue = userinfo.userId;
+ $('#CreatorName')[0].lrvalue = userinfo.realName;
+ $('#CreatorId').val(userinfo.realName);
+
+
+ $('#FilePath').lrUploader();
+
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/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]);
+ }
+ }
+ });
+ }
+ },
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Travel"]').lrGetFormData());
+ //postData.strPurchase_Travel_DetailsList = JSON.stringify($('#Purchase_Travel_Details').jfGridGet('rowdatas'));
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/FormView.cshtml
new file mode 100644
index 000000000..477c86856
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/FormView.cshtml
@@ -0,0 +1,56 @@
+@{
+ ViewBag.Title = "教学调度";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/FormView.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/FormView.js
new file mode 100644
index 000000000..56d55d02e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/FormView.js
@@ -0,0 +1,131 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-09-26 10:47
+ * 描 述:办公采购申请
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+// 设置权限
+var setAuthorize;
+// 设置表单数据
+var setFormData;
+// 验证数据是否填写完整
+var validForm;
+// 保存数据
+var save;
+//绑定原课程安排
+var bindData;
+//绑定新课程安排
+var bindDataNew;
+var bootstrap = function ($, learun) {
+ "use strict";
+ // 设置权限
+ setAuthorize = function (data) {
+ };
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ ////加载部门、用户
+ //$('#DepartmentId')[0].lrvalue = userinfo.departmentId;
+ //learun.clientdata.getAsync('department', {
+ // key: userinfo.departmentId,
+ // callback: function (_data) {
+ // $('#DepartmentId').val(_data.name);
+ // $('#DepartmentName')[0].lrvalue = _data.name;
+ // }
+ //});
+ ////加载用户
+ //$('#CreatorId')[0].lrvalue = userinfo.userId;
+ //$('#CreatorName')[0].lrvalue = userinfo.realName;
+ //$('#CreatorId').val(userinfo.realName);
+
+
+ $('#FilePath').lrUploader({ isUpload: false });
+ $('#Purchase_Travel_Details').jfGrid({
+ headData: [
+ { label: '采购物品名称', name: 'Name', width: 100, align: 'left' },
+ { label: '价格', name: 'Price', width: 100, align: 'left' },
+ { label: '采购数量', name: 'Quantity', width: 100, align: 'left' },
+ { label: '单位', name: 'Unit', width: 100, align: 'left' },
+ { label: '用途', name: 'UseTo', width: 100, align: 'left' },
+ { label: 'Id', name: 'Id', width: 100, align: 'left', ishide: true },
+ ],
+ isEdit: false,
+ height: 400,
+ onMinusRow: function (row, rows) {//行数据和所有行数据
+ computeamount();
+ },
+ });
+ },
+ initData: function () {
+ console.log(keyValue)
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/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]);
+ }
+ }
+ });
+ }
+ },
+ };
+ // 设置表单数据
+ setFormData = function (processId, param, callback) {
+ if (!!processId) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/GetFormDataByProcessId?processId=' + processId, function (data) {
+ for (var id in data) {
+ if (!!data[id] && data[id].length > 0) {
+ $('#' + id).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ //if (id == 'ArrangeLessonTermAttemper') {
+ keyValue = data[id].Id;
+ //}
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ callback && callback();
+ }
+ // 验证数据是否填写完整
+ validForm = function () {
+ if (!$('#form').lrValidform()) {
+ return false;
+ }
+ return true;
+ };
+ // 保存数据
+ save = function (processId, callBack, i) {
+ var formData = $('body').lrGetFormData();
+
+ if (!!processId) {
+ formData.ProcessId = processId;
+ }
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Travel"]').lrGetFormData());
+ postData.strPurchase_Travel_DetailsList = JSON.stringify($('#Purchase_Travel_Details').jfGridGet('rowdatas'));
+ //var postData = {
+ // strEntity: JSON.stringify(formData)
+ //};
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack(res, i);
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.cshtml
new file mode 100644
index 000000000..3b413e5f2
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.cshtml
@@ -0,0 +1,49 @@
+@{
+ ViewBag.Title = "申请类";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js
new file mode 100644
index 000000000..b373a93c1
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js
@@ -0,0 +1,264 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-06-25 18:33
+ * 描 述:申请类
+ */
+var refreshGirdData;
+var selectedRow;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var logbegin = '';
+ var logend = '';
+ var processId = '';
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ // 默认
+ selectfn: function (begin, end) {
+ logbegin = begin;
+ logend = end;
+
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#checkstatus').lrselect({
+ data: [{ text: '待审核', value: '0' }, { text: '审核中', value: '1' }, { text: '已审核', value: '2' }],
+ text: 'text',
+ value: 'value',
+ });
+ $('#ApplyStatus').lrselect({
+ data: [{ text: '待报账', value: '0' }, { text: '报账中', value: '1' }, { text: '已报账', value: '2' }],
+ text: 'text',
+ value: 'value',
+ });
+ // 刷新
+ // 查询
+ $('#btn_Search').on('click', function () {
+ var keyword = $('#txt_Keyword').val();
+ page.search({ keyword: keyword });
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/Form',
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ //res = top[id].save('', function () {
+ // page.search();
+ //});
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status == 1) {//提交
+ learun.alert.warning("当前课程异动记录已提交!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/Form?keyValue=' + keyValue,
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ var res = false;
+ // 验证数据
+ //res = top[id].validForm();
+ // 保存数据
+ //if (res) {
+ //res = top[id].save('', function () {
+ // page.search();
+ //});
+ return top[id].acceptClick(refreshGirdData);
+ //}
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status !== 0) {
+ learun.alert.warning("当前课程异动记录已提交,无法删除!");
+ return false;
+ }
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/DeleteForm', { keyValue: keyValue}, function () {
+ //refreshGirdData();
+ page.search();
+ });
+ }
+ });
+ }
+ });
+ // 提交
+ $('#lr_submit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status !== 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerConfirm('是否确认提交该项!', function (res) {
+ if (res) {
+ processId = learun.newGuid();
+ learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) {
+ //selectedRow.ProcessId = processId;
+ refreshGirdData(res, {});
+ });
+ }
+ });
+ }
+ });
+ // 查看
+ $('#lr_view').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status == 0) {
+ learun.alert.warning("当前记录未提交,请提交后再查看!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'formview',
+ title: '查看',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/FormView?keyValue=' + keyValue,
+ width: 1000,
+ height: 600,
+ btn: null
+ });
+ }
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/GetPageList',
+ headData: [
+ { label: "部门", name: "DepartmentId", width: 150, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.DepartmentName;
+ }
+ },
+ {
+ label: "申请人", name: "CreatorId", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.CreatorName;
+ }
+ },
+ { label: "总价格", name: "TotalAmount", width: 100, align: "left"},
+ { label: "备注", name: "Remark", width: 100, align: "left"},
+
+ { label: "提交时间", name: "SubmitTime", width: 130, align: "left" },
+ {
+ label: "状态", name: "Status", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '已提交';
+ } else {
+ return '未提交';
+ }
+ }
+ },
+ //{
+ // label: "审核用户", name: "CheckUserId", width: 100, align: "left",
+ // formatter: function (cellvalue, row) {
+ // return row.CheckUserName;
+ // }
+ //},
+ { label: "审核时间", name: "CheckTime", width: 130, align: "left" },
+ {
+ label: "审核状态", name: "CheckStatus", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '审核中';
+ } else if (cellvalue == 2) {
+ return '审核通过';
+ } else {
+ return '草稿';
+ }
+ }
+ },
+ {
+ label: "报账状态", name: "ApplyStatus", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ console.log(cellvalue)
+ if (cellvalue == 0) {
+ return '待报账';
+ } else if (cellvalue == 1) {
+ return '报账中';
+ } else if (cellvalue == 2) {
+ return '已报账';
+ }
+ }
+ },
+ ],
+ mainId:'Id',
+ isPage: true
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = logbegin;
+ param.EndTime = logend;
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function (res, postData) {
+ if (res && res.code && res.code == 200) {
+ // 发起流程
+ var postData = {
+ schemeCode: '0.1',// 填写流程对应模板编号
+ processId: processId,
+ level: '1',
+ };
+ learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
+ learun.loading(false);
+ });
+ }
+ page.search();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FindBack.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FindBack.cshtml
new file mode 100644
index 000000000..35c66461b
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FindBack.cshtml
@@ -0,0 +1,33 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FindBack.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FindBack.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FindBack.js
new file mode 100644
index 000000000..a4b7e4137
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FindBack.js
@@ -0,0 +1,158 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-07-14 12:15
+ * 描 述:教务报账申请
+ */
+var acceptClick;
+var refreshGirdData;
+var list=[];
+var bootstrap = function ($, learun) {
+ "use strict";
+ var startTime;
+ var endTime;
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ // 时间搜索框
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ // 默认
+ dfvalue: '1',
+ selectfn: function (begin, end) {
+ startTime = begin;
+ endTime = end;
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#DepartmentId').lrDepartmentSelect();
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/GetPageList',
+ headData: [
+ {
+ label: "部门", name: "DepartmentId", width: 150, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.DepartmentName;
+ }
+ },
+ {
+ label: "申请人", name: "CreatorId", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ return row.CreatorName;
+ }
+ },
+ { label: "总价格", name: "TotalAmount", width: 100, align: "left" },
+ { label: "备注", name: "Remark", width: 100, align: "left" },
+ ],
+ mainId: 'Id',
+ isPage: true,
+ isMultiselect: true,
+ onSelectRow: function (rowdata, type) {
+ if (type) {
+ list.push(rowdata)
+ //let temp = {}
+ //list = list.reduce((prev, curv) => {
+ // if (temp[curv.StuNo]) { }
+ // else {
+ // temp[curv.StuNo] = true
+ // prev.push(curv)
+ // }
+ // return prev
+ //}, [])
+ } else {
+ list = $.grep(list, function (item, index) {
+ return item.Id!=rowdata.Id
+ })
+
+ }
+ console.log(list)
+ },
+ isSubGrid: true,
+ subGridExpanded: function (subContentId, rowItem) {
+ $('#' + subContentId).jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/GetFormDetailData?keyValue=' + rowItem.Id,
+ headData: [
+ { label: "采购物品名称", name: "Name", width: 100, align: "left" },
+ { label: "价格", name: "Price", width: 130, align: "left" },
+ { label: "采购数量", name: "Quantity", width: 100, align: "left" },
+ { label: "单位", name: "Unit", width: 150, align: "left" },
+ { label: "用途", name: "UseTo", width: 150, align: "left" },
+ ],
+ mainId: 'LessonNo',
+ isPage: false,
+ sidx: 'ReviewTime desc'
+ });
+ var param;
+ param = param || {};
+ param.StuNo = rowItem.StuNo;
+ $('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ });
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = startTime;
+ param.EndTime = endTime;
+ param.ApplyStatus = 0;
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ $('#gridtable').jfGridSet('reload');
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ //console.log(list)
+ if (list.length > 0) {
+ if (!!callBack) {
+ callBack(list);
+ return true;
+ }
+ } else {
+
+ }
+ //if (!$('body').lrValidform()) {
+ // return false;
+ //}
+ //var postData = {};
+ //postData.strEntity = JSON.stringify($('[data-table="Purchase_Travel_apply"]').lrGetFormData());
+ //postData.strPurchase_Travel_applydetailsList = JSON.stringify($('#Purchase_Travel_applydetails').jfGridGet('rowdatas'));
+ //postData.strPurchase_TravelEntity = JSON.stringify($('[data-table="Purchase_Travel"]').lrGetFormData());
+ //$.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // // 保存成功后才回调
+ // if (!!callBack) {
+ // callBack();
+ // }
+ //});
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.cshtml
new file mode 100644
index 000000000..a7e7c1e8d
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.cshtml
@@ -0,0 +1,47 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.js
new file mode 100644
index 000000000..1039dc9d2
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.js
@@ -0,0 +1,163 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-07-14 12:15
+ * 描 述:教务报账申请
+ */
+var acceptClick;
+var userinfo;
+var selectedRow;
+var refreshGirdData;
+var keyValue = request('keyValue');
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ userinfo = learun.clientdata.get(['userinfo']);//用户数据
+
+ $("#detailadd").on('click', function () {
+ selectedRow = null;
+ ///LogisticsManagement/Purchase_Travel/GetDetailList
+ learun.layerForm({
+ id: 'findback',
+ title: '新增明细',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/FindBack',
+ width: 860,
+ height: 580,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ $("#detaildel").on('click', function () {
+ var keyValue = $('#Purchase_Travel_applydetails').jfGridValue('purchaseid');
+ selectedRow = $('#Purchase_Travel_applydetails').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认删除该项!', function (res, index) {
+ if (res) {
+ $('#Purchase_Travel_applydetails').jfGridSet('removeRow', selectedRow.purchaseid);
+
+ let totalamount = parseFloat($('#Totalamount').val());
+
+ totalamount -= selectedRow.TotalAmount;
+ $('#Totalamount').val(totalamount);
+ }
+ });
+ }
+ });
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#DepartmentId')[0].lrvalue = userinfo.departmentId;
+ learun.clientdata.getAsync('department', {
+ key: userinfo.departmentId,
+ callback: function (_data) {
+ $('#DepartmentId').val(_data.name);
+ }
+ });
+
+ $('#Creator')[0].lrvalue = learun.clientdata.get(['userinfo']).userId;
+ $('#Creator').val(learun.clientdata.get(['userinfo']).realName);
+ $('#Createtime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'));
+ $('#FilePath').lrUploader();
+ $('#Purchase_Travel_applydetails').jfGrid({
+ headData: [
+ {
+ label: '采购单备注', name: 'Remark', width: 120, align: 'left'
+ },
+ {
+ label: '金额', name: 'TotalAmount', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'CreateTime', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'purchaseid', width: 120, align: 'left', ishide:true
+ }
+ ],
+ //isEdit:true,
+ isSubGrid: true,
+ mainId:'purchaseid',
+ height: 400,
+ isSubGrid: true,
+ subGridExpanded: function (subContentId, rowItem) {
+ $('#' + subContentId).jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/GetFormDetailData?keyValue=' + rowItem.purchaseid,
+ headData: [
+ { label: "采购物品名称", name: "Name", width: 100, align: "left" },
+ { label: "价格", name: "Price", width: 130, align: "left" },
+ { label: "采购数量", name: "Quantity", width: 100, align: "left" },
+ { label: "单位", name: "Unit", width: 150, align: "left" },
+ { label: "用途", name: "UseTo", width: 150, align: "left", },
+ ],
+ mainId: 'LessonNo',
+ isPage: false,
+ sidx: 'ReviewTime desc'
+ });
+ var param;
+ param = param || {};
+ param.StuNo = rowItem.StuNo;
+ $('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ });
+ },
+ initData: function () {
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/GetFormData?keyValue=' + keyValue, function (data) {
+ console.log(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]);
+ }
+ }
+ });
+ }
+ }
+ };
+ refreshGirdData = function (e) {
+ //console.log(e)
+ //计算总金额
+ let totalamount = 0;
+ //清楚所有
+ var datas = $('#Purchase_Travel_applydetails').jfGridGet('rowdatas').length
+ for (var i = 0; i < datas; i++) {
+ $('#Purchase_Travel_applydetails').jfGridSet('removeRow', $('#Purchase_Travel_applydetails').jfGridGet('rowdatas')[0].purchaseid);
+ }
+
+ for (var i = 0; i < e.length; i++) {
+ var itemdata = {
+ 'Id': '',
+ 'Remark': e[i].Remark,
+ 'TotalAmount': e[i].TotalAmount,
+ 'CreateTime': e[i].CreateTime,
+ 'purchaseid': e[i].Id
+ };
+ $('#Purchase_Travel_applydetails').jfGridSet('addRow', itemdata);
+ totalamount += e[i].TotalAmount;
+ }
+ $('#Totalamount').val(totalamount);
+
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Travel_apply"]').lrGetFormData());
+ postData.strPurchase_Travel_applydetailsList = JSON.stringify($('#Purchase_Travel_applydetails').jfGridGet('rowdatas'));
+ //postData.strPurchase_TravelEntity = JSON.stringify($('[data-table="Purchase_Travel"]').lrGetFormData());
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FormView.cshtml
new file mode 100644
index 000000000..99feef5ff
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FormView.cshtml
@@ -0,0 +1,47 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FormView.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FormView.js
new file mode 100644
index 000000000..971fe96c3
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/FormView.js
@@ -0,0 +1,141 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-09-26 10:47
+ * 描 述:办公采购申请
+ */
+var acceptClick;
+var keyValue = request('keyValue');
+// 设置权限
+var setAuthorize;
+// 设置表单数据
+var setFormData;
+// 验证数据是否填写完整
+var validForm;
+// 保存数据
+var save;
+//绑定原课程安排
+var bindData;
+//绑定新课程安排
+var bindDataNew;
+var bootstrap = function ($, learun) {
+ "use strict";
+ // 设置权限
+ setAuthorize = function (data) {
+ };
+ var page = {
+ init: function () {
+ $('.lr-form-wrap').lrscroll();
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ $('#FilePath').lrUploader({ isUpload: false });
+ $('#Purchase_Travel_applydetails').jfGrid({
+ headData: [
+ {
+ label: '采购单备注', name: 'Remark', width: 120, align: 'left'
+ },
+ {
+ label: '金额', name: 'TotalAmount', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'CreateTime', width: 120, align: 'left'
+ },
+ {
+ label: '时间', name: 'purchaseid', width: 120, align: 'left', ishide: true
+ }
+ ],
+ //isEdit:true,
+ isSubGrid: true,
+ mainId: 'purchaseid',
+ height: 400,
+ isSubGrid: true,
+ subGridExpanded: function (subContentId, rowItem) {
+ $('#' + subContentId).jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/GetFormDetailData?keyValue=' + rowItem.purchaseid,
+ headData: [
+ { label: "采购物品名称", name: "Name", width: 100, align: "left" },
+ { label: "价格", name: "Price", width: 130, align: "left" },
+ { label: "采购数量", name: "Quantity", width: 100, align: "left" },
+ { label: "单位", name: "Unit", width: 150, align: "left" },
+ { label: "用途", name: "UseTo", width: 150, align: "left", },
+ ],
+ mainId: 'LessonNo',
+ isPage: false,
+ sidx: 'ReviewTime desc'
+ });
+ var param;
+ param = param || {};
+ param.StuNo = rowItem.StuNo;
+ $('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ });
+ },
+ initData: function () {
+ console.log(keyValue)
+ if (!!keyValue) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/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]);
+ }
+ }
+ });
+ }
+ },
+ };
+ // 设置表单数据
+ setFormData = function (processId, param, callback) {
+ if (!!processId) {
+ $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/GetFormDataByProcessId?processId=' + processId, function (data) {
+ for (var id in data) {
+ if (!!data[id] && data[id].length > 0) {
+ $('#' + id).jfGridSet('refreshdata', data[id]);
+ }
+ else {
+ //if (id == 'ArrangeLessonTermAttemper') {
+ keyValue = data[id].Id;
+ //}
+ $('[data-table="' + id + '"]').lrSetFormData(data[id]);
+ }
+ }
+ });
+ }
+ callback && callback();
+ }
+ // 验证数据是否填写完整
+ validForm = function () {
+ if (!$('#form').lrValidform()) {
+ return false;
+ }
+ return true;
+ };
+ // 保存数据
+ save = function (processId, callBack, i) {
+ var formData = $('body').lrGetFormData();
+
+ if (!!processId) {
+ formData.ProcessId = processId;
+ }
+ if (!$('body').lrValidform()) {
+ return false;
+ }
+ var postData = {};
+ postData.strEntity = JSON.stringify($('[data-table="Purchase_Travel_Apply"]').lrGetFormData());
+ postData.strPurchase_Travel_applydetailsList = JSON.stringify($('#Purchase_Travel_applydetails').jfGridGet('rowdatas'));
+ //var postData = {
+ // strEntity: JSON.stringify(formData)
+ //};
+ $.lrSaveForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack(res, i);
+ }
+ });
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.cshtml
new file mode 100644
index 000000000..3dc1e733f
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.cshtml
@@ -0,0 +1,51 @@
+@{
+ ViewBag.Title = "教务报账申请";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js
new file mode 100644
index 000000000..650224162
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js
@@ -0,0 +1,245 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-07-14 12:15
+ * 描 述:教务报账申请
+ */
+var refreshGirdData;
+var selectedRow;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var startTime;
+ var endTime;
+ var processId = '';
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ // 时间搜索框
+ $('#datesearch').lrdate({
+ dfdata: [
+ { name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
+ { name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }
+ ],
+ // 月
+ mShow: false,
+ premShow: false,
+ // 季度
+ jShow: false,
+ prejShow: false,
+ // 年
+ ysShow: false,
+ yxShow: false,
+ preyShow: false,
+ yShow: false,
+ // 默认
+ dfvalue: '1',
+ selectfn: function (begin, end) {
+ startTime = begin;
+ endTime = end;
+ page.search();
+ }
+ });
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 400);
+ $('#DepartmentId').lrDepartmentSelect();
+ $('#checkstatus').lrselect({
+ data: [{ text: '待审核', value: '0' }, { text: '审核中', value: '1' }, { text: '已审核', value: '2' }],
+ text: 'text',
+ value: 'value',
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ // 新增
+ $('#lr_add').on('click', function () {
+ learun.layerForm({
+ id: 'form',
+ title: '新增',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/Form',
+ //url: top.$.rootUrl + '/lr_codedemo/griddemo/editindex',
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ });
+ // 编辑
+ $('#lr_edit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status != 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'form',
+ title: '编辑',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/Form?keyValue=' + keyValue,
+ width: 1000,
+ height: 800,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData);
+ }
+ });
+ }
+ });
+ // 删除
+ $('#lr_delete').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status != 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerConfirm('是否确认删除该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/DeleteForm', { keyValue: keyValue}, function () {
+ //refreshGirdData();
+ page.search();
+ });
+ }
+ });
+ }
+ });
+ // 提交
+ $('#lr-sub').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ console.log(keyValue)
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status != 0) {
+ learun.alert.warning("当前记录已提交!");
+ return false;
+ }
+ learun.layerConfirm('是否确认提交该项!', function (res) {
+ if (res) {
+ processId = learun.newGuid();
+ learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) {
+ //selectedRow.ProcessId = processId;
+ refreshGirdData(res, {});
+ });
+ }
+ });
+ }
+ });
+ // 查看
+ $('#lr-view').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('Id');
+ selectedRow = $('#gridtable').jfGridGet('rowdata');
+ if (learun.checkrow(keyValue)) {
+ if (selectedRow.Status == 0) {
+ learun.alert.warning("当前记录未提交,请提交后再查看!");
+ return false;
+ }
+ learun.layerForm({
+ id: 'formview',
+ title: '查看',
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/FormView?keyValue=' + keyValue,
+ width: 1000,
+ height: 800,
+ btn: null
+ });
+ }
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/GetPageList',
+ headData: [
+ { label: "填报部门", name: "DepartmentId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('department', {
+ key: value,
+ callback: function (_data) {
+ callback(_data.name);
+ }
+ });
+ }},
+ { label: "填报人", name: "Creator", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op,$cell) {
+ learun.clientdata.getAsync('user', {
+ key: value,
+ callback: function (_data) {
+ callback(_data.name);
+ }
+ });
+ }},
+ { label: "填报时间", name: "Createtime", width: 100, align: "left"},
+ { label: "收款人", name: "Payee", width: 100, align: "left"},
+ { label: "附件张数", name: "Attachcount", width: 100, align: "left"},
+ { label: "申请报账金额", name: "Totalamount", width: 100, align: "left"},
+ //{ label: "附件上传", name: "FilePath", width: 100, align: "left"},
+ { label: "核准金额", name: "Approvalamount", width: 100, align: "left" },
+ { label: "提交时间", name: "SubmitTime", width: 130, align: "left" },
+ {
+ label: "状态", name: "Status", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '已提交';
+ } else {
+ return '未提交';
+ }
+ }
+ },
+ //{
+ // label: "审核用户", name: "CheckUserId", width: 100, align: "left",
+ // formatter: function (cellvalue, row) {
+ // return row.CheckUserName;
+ // }
+ //},
+ { label: "审核时间", name: "CheckTime", width: 130, align: "left" },
+ {
+ label: "审核状态", name: "CheckStatus", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 1) {
+ return '审核中';
+ } else if (cellvalue == 2) {
+ return '审核通过';
+ } else {
+ return '草稿';
+ }
+ }
+ },
+ ],
+ mainId:'Id',
+ isPage: true
+ });
+ },
+ search: function (param) {
+ param = param || {};
+ param.StartTime = startTime;
+ param.EndTime = endTime;
+ $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function (res, postData) {
+ //$('#gridtable').jfGridSet('reload');
+
+ if (res && res.code && res.code == 200) {
+ // 发起流程
+
+ var postData = {
+ schemeCode: '1-5',// 填写流程对应模板编号
+ processId: processId,
+ level: '1',
+ };
+ learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) {
+ learun.loading(false);
+ });
+
+ }
+ page.search();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jqprint.css b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jqprint.css
index f9e836c8c..98164c980 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jqprint.css
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jqprint.css
@@ -528,14 +528,19 @@ td,th {
.titletd {
border:none!important;
}
-.inputname {
- text-align: right;
+.input{
+ text-align:center;
+ font-size:20px
}
+ .input.inputname {
+ text-align: center;
+ }
.anodeinfod {
position:relative;
width:100%;
- height:120px;
+ height:170px;
padding:10px;
+ font-size:18px!important;
}
.anodeinfod .tuser, .anodeinfod .tdate {
@@ -547,8 +552,10 @@ td,th {
bottom: 10px;
}
.anodeinfod img {
- height:100px;
+ height:70px;
position:absolute;
- top:10px;
- right:100px;
+ top:50px;
+ right:0;
+ left:0;
+ margin:0 auto;
}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js
index 4f0e47ff0..b54b15afb 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/jquery/plugin/jqprint/jquery.jqprint-0.3.js
@@ -140,7 +140,7 @@
};
//// 打印表单
- a.jqprintForm = function (data) {
+ a.jqprintForm = function (data,cssUrl) {
b = a.fn.jqprint.defaults;
if (b.operaSupport && a.browser.opera) {
var c = window.open("", "jqPrint-preview");
@@ -160,10 +160,12 @@
}
d.write("");
d.write("");
+ if(cssUrl)d.write("");
//d.write("塔里木职业技术学院 收文 (办件)处理笺
");
var $table = a('');
var num = 24;
var $tr = a('
');
+ var anodeinfoIng = false
$.each(data, function (_index, _item) {
if (_item.type == 'gird' && _item.data.length > 0) {
if (num > 0 && num < 24) {
@@ -219,15 +221,21 @@
}
else if (_item.type == 'anodeinfo') {
- if (num >= 0 && num < 24) {
+ if (!anodeinfoIng) {
+ anodeinfoIng = true
+
$table.append($tr);
$tr = a('
');
num = 24;
}
+ let isLast = false
+ if(!data[_index+1]||data[_index+1].type!='anodeinfo'){
+ anodeinfoIng = false
+ isLast = true
+ }
-
- $tr.append('' + _item.title + ': | ');
- var __$td = a('' + _item.content + ' | ');
+ $tr.append('' + _item.title + ': | ');
+ var __$td = a('' + _item.content + ' | ');
var _$div = __$td.find('div');
_$div.append('' + _item.user + '
');
@@ -241,8 +249,12 @@
$tr.append(__$td);
- $table.append($tr);
- $tr = a('
');
+ num = num - 12;
+ if (num <= 0 || isLast) {
+ num = 24;
+ $table.append($tr);
+ $tr = a('
');
+ }
}
else {
var _colspan = _item.col * 2;
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 438dc7087..668b4ca10 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
@@ -410,7 +410,11 @@
+
+
+
+
@@ -1431,6 +1435,13 @@
+
+
+
+
+
+
+
@@ -1438,6 +1449,13 @@
+
+
+
+
+
+
+
@@ -7929,6 +7947,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
index fcc90310e..3eb4bc115 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
@@ -190,7 +190,17 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseEduApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseEduApi.cs
index 862b66dde..c672dacb9 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseEduApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseEduApi.cs
@@ -143,7 +143,7 @@ namespace Learun.Application.WebApi
var processId = Guid.NewGuid().ToString();
purchaseeduIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
- nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo);
+ nWFProcessIBLL.CreateFlow("2-7", processId, "", 1, "", userInfo);
return Success("提交成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseInfoApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseInfoApi.cs
index 530f3aa5d..4b47eed22 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseInfoApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseInfoApi.cs
@@ -129,7 +129,7 @@ namespace Learun.Application.WebApi
var processId = Guid.NewGuid().ToString();
PurchaseInfoIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
- nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo);
+ nWFProcessIBLL.CreateFlow("2-4", processId, "", 1, "", userInfo);
return Success("提交成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseLogisticApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseLogisticApi.cs
index 78832810c..520df171a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseLogisticApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseLogisticApi.cs
@@ -129,7 +129,7 @@ namespace Learun.Application.WebApi
var processId = Guid.NewGuid().ToString();
PurchaseLogisticIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
- nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo);
+ nWFProcessIBLL.CreateFlow("2-2", processId, "", 1, "", userInfo);
return Success("提交成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseOtherApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseOtherApi.cs
index 11b3fdcc7..7a719fa19 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseOtherApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseOtherApi.cs
@@ -129,7 +129,7 @@ namespace Learun.Application.WebApi
var processId = Guid.NewGuid().ToString();
PurchaseOtherIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
- nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo);
+ nWFProcessIBLL.CreateFlow("2-6", processId, "", 1, "", userInfo);
return Success("提交成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchasePrintApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchasePrintApi.cs
index 6e8ced1f4..fac603902 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchasePrintApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchasePrintApi.cs
@@ -17,14 +17,14 @@ namespace Learun.Application.WebApi
///
public class PurchasePrintApi : BaseApi
{
- private Purchase_PrintIBLL purchaseworkIBLL = new Purchase_PrintBLL();
+ private Purchase_PrintIBLL PurchaseprintIBLL = new Purchase_PrintBLL();
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
///
/// 注册接口
///
public PurchasePrintApi()
- : base("/learun/adms/purchasework")
+ : base("/learun/adms/Purchaseprint")
{
Get["/pagelist"] = GetPageList;
Get["/form"] = GetForm;
@@ -43,7 +43,7 @@ namespace Learun.Application.WebApi
public Response GetPageList(dynamic _)
{
ReqPageParam parameter = this.GetReqData();
- var data = purchaseworkIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var data = PurchaseprintIBLL.GetPageList(parameter.pagination, parameter.queryJson);
var jsonData = new
{
rows = data,
@@ -61,8 +61,8 @@ namespace Learun.Application.WebApi
public Response GetForm(dynamic _)
{
string keyValue = this.GetReqData();
- var Purchase_PrintData = purchaseworkIBLL.GetPurchase_PrintEntity(keyValue);
- var Purchase_Print_DetailsData = purchaseworkIBLL.GetPurchase_Print_DetailsList(Purchase_PrintData.Id);
+ var Purchase_PrintData = PurchaseprintIBLL.GetPurchase_PrintEntity(keyValue);
+ var Purchase_Print_DetailsData = PurchaseprintIBLL.GetPurchase_Print_DetailsList(Purchase_PrintData.Id);
var jsonData = new
{
Purchase_Print = Purchase_PrintData,
@@ -100,7 +100,7 @@ namespace Learun.Application.WebApi
public Response DeleteForm(dynamic _)
{
string keyValue = this.GetReqData();
- purchaseworkIBLL.DeleteEntity(keyValue);
+ PurchaseprintIBLL.DeleteEntity(keyValue);
return Success("删除成功!");
}
///
@@ -115,7 +115,7 @@ namespace Learun.Application.WebApi
List detailList = parameter.DetailList.ToObject>();
//var code = entity.EnCode;
- purchaseworkIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ PurchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList);
return Success("保存成功!");
}
///
@@ -127,9 +127,9 @@ namespace Learun.Application.WebApi
{
string keyValue = this.GetReqData();
var processId = Guid.NewGuid().ToString();
- purchaseworkIBLL.ModifyStatus(keyValue, 1, processId);
+ PurchaseprintIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
- nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo);
+ nWFProcessIBLL.CreateFlow("2-3", processId, "", 1, "", userInfo);
return Success("提交成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseServiceApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseServiceApi.cs
new file mode 100644
index 000000000..2ce94bddc
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseServiceApi.cs
@@ -0,0 +1,164 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseServiceApi : BaseApi
+ {
+ private Purchase_ServiceIBLL PurchaseServiceIBLL = new Purchase_ServiceBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchaseServiceApi()
+ : base("/learun/adms/PurchaseService")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ Get["/formdetail"] = GetFormDetails;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = PurchaseServiceIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_ServiceData = PurchaseServiceIBLL.GetPurchase_ServiceEntity(keyValue);
+ var Purchase_Service_DetailsData = PurchaseServiceIBLL.GetPurchase_Service_DetailsList(Purchase_ServiceData.Id);
+ var jsonData = new
+ {
+ Purchase_Service = Purchase_ServiceData,
+ Purchase_Service_Details = Purchase_Service_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetFormDetails(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+
+ var Purchase_Service_DetailsData = PurchaseServiceIBLL.GetPurchase_Service_DetailsList(keyValue);
+
+ return Success(Purchase_Service_DetailsData);
+ }
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ PurchaseServiceIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_ServiceEntity entity = parameter.strEntity.ToObject();
+ List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ PurchaseServiceIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("1-14", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseStudentApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseStudentApi.cs
index 59371e697..1d48915d1 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseStudentApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseStudentApi.cs
@@ -129,7 +129,7 @@ namespace Learun.Application.WebApi
var processId = Guid.NewGuid().ToString();
PurchaseStudentIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
- nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo);
+ nWFProcessIBLL.CreateFlow("2-5", processId, "", 1, "", userInfo);
return Success("提交成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseTravelApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseTravelApi.cs
new file mode 100644
index 000000000..78d3f149d
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Purchase/PurchaseTravelApi.cs
@@ -0,0 +1,164 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseTravelApi : BaseApi
+ {
+ private Purchase_TravelIBLL PurchaseTravelIBLL = new Purchase_TravelBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchaseTravelApi()
+ : base("/learun/adms/PurchaseTravel")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ //Get["/formdetail"] = GetFormDetails;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = PurchaseTravelIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_TravelData = PurchaseTravelIBLL.GetPurchase_TravelEntity(keyValue);
+ //var Purchase_Travel_DetailsData = PurchaseTravelIBLL.GetPurchase_Travel_DetailsList(Purchase_TravelData.Id);
+ var jsonData = new
+ {
+ Purchase_Travel = Purchase_TravelData,
+ //Purchase_Travel_Details = Purchase_Travel_DetailsData,
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ //public Response GetFormDetails(dynamic _)
+ //{
+ // string keyValue = this.GetReqData();
+
+ // var Purchase_Travel_DetailsData = PurchaseTravelIBLL.GetPurchase_Travel_DetailsList(keyValue);
+
+ // return Success(Purchase_Travel_DetailsData);
+ //}
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ PurchaseTravelIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_TravelEntity entity = parameter.strEntity.ToObject();
+ //List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ PurchaseTravelIBLL.SaveEntity(parameter.keyValue, entity);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ PurchaseTravelIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("0.1", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseEduApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseEduApplyApi.cs
index 183aa3f46..9b11eba7c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseEduApplyApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseEduApplyApi.cs
@@ -132,7 +132,7 @@ namespace Learun.Application.WebApi
var processId = Guid.NewGuid().ToString();
purchaseeduIBLL.ModifyStatus(keyValue, 1, processId);
UserInfo userInfo = LoginUserInfo.Get();
- nWFProcessIBLL.CreateFlow("2-1", processId, "", 1, "", userInfo);
+ nWFProcessIBLL.CreateFlow("1-1", processId, "", 1, "", userInfo);
return Success("提交成功!");
}
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseInfoApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseInfoApplyApi.cs
new file mode 100644
index 000000000..51bddc9fc
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseInfoApplyApi.cs
@@ -0,0 +1,152 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseInfoApplyApi : BaseApi
+ {
+ private Purchase_Info_ApplyIBLL purchaseinfoIBLL = new Purchase_Info_ApplyBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchaseInfoApplyApi()
+ : base("/learun/adms/purchaseinfoapply")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = purchaseinfoIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_InfoData = purchaseinfoIBLL.GetPurchase_Info_ApplyEntity(keyValue);
+ var Purchase_Info_DetailsData = purchaseinfoIBLL.GetPurchase_Info_ApplydetailsList(Purchase_InfoData.Id);
+ var jsonData = new
+ {
+ Purchase_Info = Purchase_InfoData,
+ Purchase_Info_Details = Purchase_Info_DetailsData,
+ };
+ return Success(jsonData);
+ }
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ purchaseinfoIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ //Purchase_InfoEntity entity = strEntity.ToObject();
+ //List purchase_Info_DetailsList = strpurchase_Info_DetailsList.ToObject>();
+ //purchase_InfoIBLL.SaveEntity(keyValue, entity, purchase_Info_DetailsList);
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_Info_ApplyEntity entity = parameter.strEntity.ToObject();
+ List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ purchaseinfoIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ purchaseinfoIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("1-4", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseLogisticApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseLogisticApplyApi.cs
new file mode 100644
index 000000000..4360c7218
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseLogisticApplyApi.cs
@@ -0,0 +1,152 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseLogisticApplyApi : BaseApi
+ {
+ private Purchase_Logistic_ApplyIBLL purchaselogisticIBLL = new Purchase_Logistic_ApplyBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchaseLogisticApplyApi()
+ : base("/learun/adms/purchaselogisticapply")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = purchaselogisticIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_LogisticData = purchaselogisticIBLL.GetPurchase_Logistic_ApplyEntity(keyValue);
+ var Purchase_Logistic_DetailsData = purchaselogisticIBLL.GetPurchase_Logistic_ApplydetailsList(Purchase_LogisticData.Id);
+ var jsonData = new
+ {
+ Purchase_Logistic = Purchase_LogisticData,
+ Purchase_Logistic_Details = Purchase_Logistic_DetailsData,
+ };
+ return Success(jsonData);
+ }
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ purchaselogisticIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ //Purchase_LogisticEntity entity = strEntity.ToObject();
+ //List purchase_Logistic_DetailsList = strpurchase_Logistic_DetailsList.ToObject>();
+ //purchase_LogisticIBLL.SaveEntity(keyValue, entity, purchase_Logistic_DetailsList);
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_Logistic_ApplyEntity entity = parameter.strEntity.ToObject();
+ List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ purchaselogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ purchaselogisticIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("1-3", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseOtherApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseOtherApplyApi.cs
new file mode 100644
index 000000000..93eab32b3
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseOtherApplyApi.cs
@@ -0,0 +1,152 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseOtherApplyApi : BaseApi
+ {
+ private Purchase_Other_ApplyIBLL PurchaseOtherIBLL = new Purchase_Other_ApplyBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchaseOtherApplyApi()
+ : base("/learun/adms/PurchaseOtherapply")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = PurchaseOtherIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_OtherData = PurchaseOtherIBLL.GetPurchase_Other_ApplyEntity(keyValue);
+ var Purchase_Other_DetailsData = PurchaseOtherIBLL.GetPurchase_Other_ApplydetailsList(Purchase_OtherData.Id);
+ var jsonData = new
+ {
+ Purchase_Other = Purchase_OtherData,
+ Purchase_Other_Details = Purchase_Other_DetailsData,
+ };
+ return Success(jsonData);
+ }
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ PurchaseOtherIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ //Purchase_OtherEntity entity = strEntity.ToObject();
+ //List purchase_Other_DetailsList = strpurchase_Other_DetailsList.ToObject>();
+ //Purchase_OtherIBLL.SaveEntity(keyValue, entity, purchase_Other_DetailsList);
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_Other_ApplyEntity entity = parameter.strEntity.ToObject();
+ List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ PurchaseOtherIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("1-2", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchasePrintApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchasePrintApplyApi.cs
new file mode 100644
index 000000000..5c06293b9
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchasePrintApplyApi.cs
@@ -0,0 +1,152 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchasePrintApplyApi : BaseApi
+ {
+ private Purchase_Print_ApplyIBLL purchaseprintIBLL = new Purchase_Print_ApplyBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchasePrintApplyApi()
+ : base("/learun/adms/purchaseprintapply")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = purchaseprintIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_PrintData = purchaseprintIBLL.GetPurchase_Print_ApplyEntity(keyValue);
+ var Purchase_Print_DetailsData = purchaseprintIBLL.GetPurchase_Print_ApplydetailsList(Purchase_PrintData.Id);
+ var jsonData = new
+ {
+ Purchase_Print = Purchase_PrintData,
+ Purchase_Print_Details = Purchase_Print_DetailsData,
+ };
+ return Success(jsonData);
+ }
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ purchaseprintIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ //Purchase_PrintEntity entity = strEntity.ToObject();
+ //List purchase_Print_DetailsList = strpurchase_Print_DetailsList.ToObject>();
+ //purchase_PrintIBLL.SaveEntity(keyValue, entity, purchase_Print_DetailsList);
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_Print_ApplyEntity entity = parameter.strEntity.ToObject();
+ List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ purchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ purchaseprintIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("1-6", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseServiceApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseServiceApplyApi.cs
new file mode 100644
index 000000000..ff18fa5ce
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseServiceApplyApi.cs
@@ -0,0 +1,152 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseServiceApplyApi : BaseApi
+ {
+ private Purchase_Service_ApplyIBLL PurchaseServiceIBLL = new Purchase_Service_ApplyBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchaseServiceApplyApi()
+ : base("/learun/adms/PurchaseServiceapply")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = PurchaseServiceIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_ServiceData = PurchaseServiceIBLL.GetPurchase_Service_ApplyEntity(keyValue);
+ var Purchase_Service_DetailsData = PurchaseServiceIBLL.GetPurchase_Service_ApplydetailsList(Purchase_ServiceData.Id);
+ var jsonData = new
+ {
+ Purchase_Service = Purchase_ServiceData,
+ Purchase_Service_Details = Purchase_Service_DetailsData,
+ };
+ return Success(jsonData);
+ }
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ PurchaseServiceIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ //Purchase_ServiceEntity entity = strEntity.ToObject();
+ //List Purchase_Service_DetailsList = strPurchase_Service_DetailsList.ToObject>();
+ //Purchase_ServiceIBLL.SaveEntity(keyValue, entity, Purchase_Service_DetailsList);
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_Service_ApplyEntity entity = parameter.strEntity.ToObject();
+ List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ PurchaseServiceIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("1-13", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseStudentApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseStudentApplyApi.cs
new file mode 100644
index 000000000..00b96f967
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseStudentApplyApi.cs
@@ -0,0 +1,152 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseStudentApplyApi : BaseApi
+ {
+ private Purchase_Student_ApplyIBLL PurchaseStudentIBLL = new Purchase_Student_ApplyBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///
+ public PurchaseStudentApplyApi()
+ : base("/learun/adms/PurchaseStudentapply")
+ {
+ Get["/pagelist"] = GetPageList;
+ Get["/form"] = GetForm;
+ Post["/delete"] = DeleteForm;
+ Post["/save"] = SaveForm;
+ Post["/submit"] = Submit;
+ //Get["/shList"] = GetshList;
+ }
+ #region 获取数据
+
+ ///
+ /// 获取页面显示列表分页数据
+ ///
+ ///
+ ///
+ public Response GetPageList(dynamic _)
+ {
+ ReqPageParam parameter = this.GetReqData();
+ var data = PurchaseStudentIBLL.GetPageList(parameter.pagination, parameter.queryJson);
+ var jsonData = new
+ {
+ rows = data,
+ total = parameter.pagination.total,
+ page = parameter.pagination.page,
+ records = parameter.pagination.records
+ };
+ return Success(jsonData);
+ }
+ ///
+ /// 获取表单数据
+ ///
+ ///
+ ///
+ public Response GetForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var Purchase_StudentData = PurchaseStudentIBLL.GetPurchase_Student_ApplyEntity(keyValue);
+ var Purchase_Student_DetailsData = PurchaseStudentIBLL.GetPurchase_Student_ApplydetailsList(Purchase_StudentData.Id);
+ var jsonData = new
+ {
+ Purchase_Student = Purchase_StudentData,
+ Purchase_Student_Details = Purchase_Student_DetailsData,
+ };
+ return Success(jsonData);
+ }
+
+ /////
+ ///// 获取页面显示列表数据
+ /////
+ /////
+ /////
+ //public Response GetshList(dynamic _)
+ //{
+ // FundsApplyEntity parameter = this.GetReqData();
+ // var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId);
+ // var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id);
+ // var jsonData = new
+ // {
+ // FundsApply = FundsApplyData,
+ // FundsApplyDetail = FundsApplyDetailData,
+ // };
+ // return Success(jsonData);
+ //}
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ ///
+ ///
+ ///
+ public Response DeleteForm(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ PurchaseStudentIBLL.DeleteEntity(keyValue);
+ return Success("删除成功!");
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ ///
+ ///
+ ///
+ public Response SaveForm(dynamic _)
+ {
+ //Purchase_StudentEntity entity = strEntity.ToObject();
+ //List Purchase_Student_DetailsList = strPurchase_Student_DetailsList.ToObject>();
+ //Purchase_StudentIBLL.SaveEntity(keyValue, entity, Purchase_Student_DetailsList);
+ ReqFormEntity parameter = this.GetReqData();
+ Purchase_Student_ApplyEntity entity = parameter.strEntity.ToObject();
+ List detailList = parameter.DetailList.ToObject>();
+ //var code = entity.EnCode;
+
+ PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList);
+ return Success("保存成功!");
+ }
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ public Response Submit(dynamic _)
+ {
+ string keyValue = this.GetReqData();
+ var processId = Guid.NewGuid().ToString();
+ PurchaseStudentIBLL.ModifyStatus(keyValue, 1, processId);
+ UserInfo userInfo = LoginUserInfo.Get();
+ nWFProcessIBLL.CreateFlow("1-8", processId, "", 1, "", userInfo);
+ return Success("提交成功!");
+ }
+ #endregion
+
+ #region 私有类
+ ///
+ /// 表单实体类
+ ///
+ private class ReqFormEntity
+ {
+ public string keyValue { get; set; }
+ public string strEntity { get; set; }
+ public string DetailList { get; set; }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseTravelApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseTravelApplyApi.cs
new file mode 100644
index 000000000..054505317
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/PurchaseApply/PurchaseTravelApplyApi.cs
@@ -0,0 +1,152 @@
+using Nancy;
+using Learun.Util;
+using System.Collections.Generic;
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using Learun.Application.TwoDevelopment.LogisticsManagement;
+using System;
+using Learun.Application.WorkFlow;
+
+namespace Learun.Application.WebApi
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2020-06-03 14:29
+ /// 描 述:系部数据
+ ///
+ public class PurchaseTravelApplyApi : BaseApi
+ {
+ private Purchase_Travel_ApplyIBLL PurchaseTravelIBLL = new Purchase_Travel_ApplyBLL();
+ private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL();
+
+ ///
+ /// 注册接口
+ ///