ソースを参照

填报时间 单选 多选

金隅分支
edy 3年前
コミット
0acf7280bb
4個のファイルの変更41行の追加28行の削除
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml
  2. +23
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js
  3. +0
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml
  4. +16
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml ファイルの表示

@@ -25,7 +25,8 @@
</div>
<div class="col-xs-6 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">填报时间</div>
<div id="FillingTime"></div>
<div id="FillingTime1"></div>
<div id="FillingTime2"></div>
</div>
<div class="col-xs-12 lr-form-item" data-table="FillinFrom">
<div class="lr-form-item-title">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;式<font face="宋体">*</font></div>


+ 23
- 11
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) {


+ 0
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.cshtml ファイルの表示

@@ -46,8 +46,6 @@
<li id="lr_cancel"><a><i></i>&nbsp;<span class="lrlt">撤回</span></a></li>
<li id="lr_people"><a><i></i>&nbsp;<span class="lrlt">设置填报人</span></a></li>
<li id="lr_hide"><a><i></i>&nbsp;<span class="lrlt">隐藏/显示</span></a></li>
<li id="lr_import"><a><i></i>&nbsp;<span class="lrlt">导入</span></a></li>

</ul>
</div>
</div>


+ 16
- 14
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);
}
})
}
});
}
})
}
});


読み込み中…
キャンセル
保存