diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml index 5b66f8c15..eab6e7b89 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml @@ -25,7 +25,8 @@
填报时间
-
+
+
公      式*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js index 5a01ec390..f8db8f5de 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js @@ -33,25 +33,37 @@ var bootstrap = function ($, learun) { $('#lrPeople').val(learun.clientdata.get(['userinfo']).realName); $('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')); $('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); - //$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }); $('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle', select: function (item) { var Cycles = $("#FillingCycle").lrselectGet(); - if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 3) { - $('#FillingTime').lrDataItemSelect({ code: 'CycleTime' }); - } else if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) { - $('#FillingTime').lrDataItemSelect({ - code: 'CycleTime', - maxHeight: 200, + if (Cycles == 3) { + $('#FillingTime1').show(); + $('#FillingTime2').hide(); + $('#FillingTime1').lrDataItemSelect({ + code: 'CycleTime' }); - //$('#FillingTime').lrDataItemSelect({ code: 'undefined' }); - } else { - $('#FillingTime').lrDataItemSelect({ code: 'undefined' }); + } else if (Cycles == 2) { + $('#FillingTime1').hide(); + //$('#FillingTime1').lrDataItemSelect({ code: 'undefined' }); + $('#FillingTime2').show(); + //$('#FillingTime2').lrDataItemSelect({ + // type: 'multiple', + // code: 'CycleTime' + //}); + } else if (Cycles == 1) { + $('#FillingTime1').show(); + $('#FillingTime2').hide(); + $('#FillingTime1').lrDataItemSelect({ code: 'undefined' }); } } }); - $('#lrselect').lrselect(); + $('#FillingTime1').lrselect(); + $('#FillingTime2').lrDataItemSelect({ + type: 'multiple', + code: 'CycleTime' + }); + $('#FillingTime2').hide(); }, initData: function () { if (!!keyValue) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml index ac0e39e77..b76e7d410 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml @@ -46,8 +46,6 @@
  •  撤回
  •  设置填报人
  •  隐藏/显示
  • -
  •  导入
  • -
    diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js index d7c24c1c0..995d7b376 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js @@ -71,20 +71,22 @@ var bootstrap = function ($, learun) { return; } learun.layerConfirm('是否确认修改该项,修改成后会影响数据!', function (res) { - learun.layerForm({ - id: 'form', - title: '编辑', - url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/Form?keyValue=' + keyValue, - width: 600, - height: 400, - callBack: function (id) { - learun.layerConfirm('确定要修改当前项吗!', function (res) { - if (res) { - return top[id].acceptClick(refreshGirdData); - } - }) - } - }); + if (res) { + learun.layerForm({ + id: 'form', + title: '编辑', + url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/Form?keyValue=' + keyValue, + width: 600, + height: 400, + callBack: function (id) { + learun.layerConfirm('确定要修改当前项吗!', function (res) { + if (res) { + return top[id].acceptClick(refreshGirdData); + } + }) + } + }); + } }) } });