123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- var educationMissionIDs;
- var windowID;
- $(function () {
- $("#EducationMissionClassID").combobox({
- onSelect: function (data) {
- $("#ClassName").val(data.Text);
- }
- });
- })
- $.parser.onComplete = function () {
- $(function () {
- windowID = $.SystemGeneral.getUrlParam("WindowID");
- educationMissionIDs = top.$("#" + windowID).data("inputData");
- reload();
- });
- };
- function reload() {
- $("#hidEducationMissionClassIDs").val(educationMissionIDs.join(','));
- $("#dgEducationMissionClassConjunctionList").cmsXDataTable("load", $.getDataGridParams("dgEducationMissionClassConjunctionList"));
- }
- //获取下拉菜单
- function dgEducationMissionClassConjunctionList_LoadSuccess(educationMissionClassViewList) {
- if (educationMissionClassViewList.rows.length == 0) {
- return;
- }
- var dataList = [];
- $.each(educationMissionClassViewList.rows, function (index, value) {
- dataList.push({ "Text": value.Name, "Value": value.EducationMissionClassID });
- });
- $("#EducationMissionClassID").combobox("loadData", dataList);
- $("#Name").val(educationMissionClassViewList.rows[0].MissionClassClassmajorName);//初始化合班名称
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgEducationMissionClassConjunctionList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- //保存
- function EducationMissionClass_ConjunctionSave() {
- var educationMissionClassViewList = $("#dgEducationMissionClassConjunctionList").cmsXDataTable("getRows");
- $(document.forms[0]).submit();
- }
|