diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OuoutsourcingController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OuoutsourcingController.cs index e5b424a3d..eaa48e33c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OuoutsourcingController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/OuoutsourcingController.cs @@ -82,8 +82,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetFormData(string keyValue) { - var data = ououtsourcingIBLL.GetEntity(keyValue); - return Success(data); + var OuoutsourcingData = ououtsourcingIBLL.GetEntity(keyValue); + var jsonData = new + { + Ououtsourcing = OuoutsourcingData, + }; + return Success(jsonData); } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs index 7721703d0..e81f03a92 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WageScheduleController.cs @@ -82,8 +82,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetFormData(string keyValue) { - var data = wageScheduleIBLL.GetEntity(keyValue); - return Success(data); + var WageScheduleData = wageScheduleIBLL.GetEntity(keyValue); + var jsonData = new + { + WageSchedule = WageScheduleData, + }; + return Success(jsonData); } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WelfarePositionController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WelfarePositionController.cs index 04f306ced..da46762d1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WelfarePositionController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/WelfarePositionController.cs @@ -82,8 +82,12 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers [AjaxOnly] public ActionResult GetFormData(string keyValue) { - var data = welfarePositionIBLL.GetEntity(keyValue); - return Success(data); + var WelfarePositionData = welfarePositionIBLL.GetEntity(keyValue); + var jsonData = new + { + WelfarePosition = WelfarePositionData, + }; + return Success(jsonData); } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.cshtml index 989e7afd8..e1ea38cff 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.cshtml @@ -12,8 +12,8 @@
-
身份证号
- +
身份证号*
+
工资卡号
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.js index 653bed249..ae8e94b09 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Ououtsourcing/Form.js @@ -25,8 +25,21 @@ var bootstrap = function ($, learun) { $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' }); }, initData: function () { - if (!!selectedRow) { - $('#form').lrSetFormData(selectedRow); + //if (!!selectedRow) { + // $('#form').lrSetFormData(selectedRow); + //} + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/Ououtsourcing/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]); + $('#form').lrSetFormData(data[id]); + } + } + }); } } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.cshtml index 700f008aa..6cbca223d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.cshtml @@ -12,8 +12,8 @@
-
身份证号
- +
身份证号*
+
人员类别
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js index e4ce479f1..a787df44b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Form.js @@ -9,6 +9,7 @@ var keyValue = request('keyValue'); var bootstrap = function ($, learun) { "use strict"; var selectedRow = learun.frameTab.currentIframe().selectedRow; + console.log(selectedRow); var page = { init: function () { page.initData(); @@ -25,8 +26,21 @@ var bootstrap = function ($, learun) { $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' }); }, initData: function () { - if (!!selectedRow) { - $('#form').lrSetFormData(selectedRow); + //if (!!selectedRow) { + // $('#form').lrSetFormData(selectedRow); + //} + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/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]); + $('#form').lrSetFormData(data[id]); + } + } + }); } } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.cshtml index c33af50e2..98321e2c3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.cshtml @@ -12,8 +12,8 @@
-
身份证号
- +
身份证号*
+
工资卡号
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.js index fd69307b5..7b0b05d18 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WelfarePosition/Form.js @@ -25,8 +25,21 @@ var bootstrap = function ($, learun) { $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' }); }, initData: function () { - if (!!selectedRow) { - $('#form').lrSetFormData(selectedRow); + //if (!!selectedRow) { + // $('#form').lrSetFormData(selectedRow); + //} + if (!!keyValue) { + $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/WelfarePosition/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]); + $('#form').lrSetFormData(data[id]); + } + } + }); } } };