123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- //2015-09-29 可以取到父页面的预案ID
- var sub_fd_id1 ="";
- //取页面传过来的预案主键ID
- sub_fd_id1 = parent.sub_fd_id;
-
- $(function(){
- var url = $.pathname()
- + "/ws/sendmenu/SendMsgService/PlanInfo";
- var params = {
- file_id : sub_fd_id1,
- grade_type:'5_1',
- };
-
- $.ajax({
- url : url,
- type : 'post',
- timeout : 12000,
- data : params,
- dataType : 'json',
- success : function(data) {
- var FRIST_GRADE = data.rows[0].FRIST_GRADE;//FRIST_GRADE
- var temp = FRIST_GRADE.split("||");
- var FIRST_DEPT = temp[0];
- var FIRST_TEAM = temp[1];
- var FIRST_EXPERT = temp[2];
-
- var SECOND_GRADE = data.rows[0].SECOND_GRADE;
- var temp1 = SECOND_GRADE.split("||");
- var SECOND_DEPT = temp1[0];
- var SECOND_TEAM = temp1[1];
- var SECOND_EXPERT = temp1[2];
-
- var THRID_GRADE = data.rows[0].THRID_GRADE;
- var temp2 = THRID_GRADE.split("||");
- var THIRD_DEPT = temp2[0];
- var THIRD_TEAM = temp2[1];
- var THIRD_EXPERT = temp2[2];
-
- var FOURTH_GRADE = data.rows[0].FOURTH_GRADE;
- var temp3 = FOURTH_GRADE.split("||");
- var FOURTH_DEPT = temp3[0];
- var FOURTH_TEAM = temp3[1];
- var FOURTH_EXPERT = temp3[2];
-
-
- $("#FIRST_DEPT").val(FIRST_DEPT);
- $("#FIRST_TEAM").val(FIRST_TEAM);
- $("#FIRST_EXPERT").val(FIRST_EXPERT);
-
- $("#SECOND_DEPT").val(SECOND_DEPT);
- $("#SECOND_TEAM").val(SECOND_TEAM);
- $("#SECOND_EXPERT").val(SECOND_EXPERT);
-
- $("#THIRD_DEPT").val(THIRD_DEPT);
- $("#THIRD_TEAM").val(THIRD_TEAM);
- $("#THIRD_EXPERT").val(THIRD_EXPERT);
-
- $("#FOURTH_DEPT").val(FOURTH_DEPT);
- $("#FOURTH_TEAM").val(FOURTH_TEAM);
- $("#FOURTH_EXPERT").val(FOURTH_EXPERT);
- for ( var i in data) {
- $('#' + i).html(data[i]);
- }
- $("#infotab").init();
- },
- error : function(e) {
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
-
- //查询信息
- /* var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '215',
- objectID : sub_fd_id
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- async:false, //异步
- data : params,
- dataType : 'json',
- success : function(data){
- $('#fillForm').ajaxWrite({data:data});
- $('#fillForm input[name="classid"]').val('215');
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- */}
- );
-
- $.messager=top.Dialog;
|