7346f56daf28e7fd38f3ecffb223334b52852b49.svn-base 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  2. var corp_Id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  3. var dept_id = top.com.sinosoft.lz.system.user.LoginInfo.getDept_id();
  4. Grade = function() {
  5. /** 定义变量* */
  6. var _this = this;
  7. _this.listGrid = null;// 数据列表
  8. //_this.searchPanel = null; // 查询面板
  9. $queryForm = null;// 查询区域表单
  10. $searchButt = null;// 查询按钮
  11. $more = null; // 更多
  12. $reported = null; //填报
  13. _this.loadParams = null;// 列表加载参数
  14. /** 私有方法* */
  15. /** *新增信息** */
  16. _this.addForm = function() {
  17. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/evaluate/grade/Grade_addEdit1.jsp?fd_id=");
  18. };
  19. /** *修改信息** */
  20. _this.editForm = function() {
  21. var rows = _this.listGrid.getSelectedRows();
  22. var rowsLength = rows.length;
  23. if (rowsLength == 0) {
  24. top.Dialog.alert("请至少选中要修改的记录!");
  25. return;
  26. }
  27. var ids = "" ;
  28. for ( var i = 0; i < rowsLength; i++) {
  29. ids += rows[i].FD_OBJECTID798 + ",";
  30. }
  31. //alert(ids)
  32. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/evaluate/grade/Grade_addEdit1.jsp?fd_id="+ ids);
  33. };
  34. /** *删除信息** */
  35. _this.del = function(){
  36. var rows = _this.listGrid.getSelectedRows();
  37. var rowsLength = rows.length;
  38. if (rowsLength == 0) {
  39. top.Dialog.alert("请选中要删除的记录!");
  40. return;
  41. }
  42. var ids = "";
  43. for ( var i = 0; i < rowsLength; i++) {
  44. ids += rows[i].FD_OBJECTID798 + ",";
  45. }
  46. var url = $.pathname() +"/ws/crud/CRUDService/delete/";
  47. var params = {
  48. objectIDs : ids,
  49. classid : 798
  50. };
  51. top.Dialog.confirm("确定要删除吗?|删除", function() {
  52. $.request.del(url,params,function(result){
  53. if (result.Msg.sucsess == true) {
  54. var url = $.pathname() + '/ws/scoreGrade/ScoreService/delectTaskPerson';
  55. var params = {
  56. busi_ids : ids
  57. };
  58. $.request.query(url,params,function(data){
  59. top.Dialog.alert("删除成功!");
  60. _this.listGrid.rend();
  61. });
  62. // 刷新表格数据
  63. //_this.listGrid.loadData();
  64. } else {
  65. top.Dialog.alert("删除失败!");
  66. }
  67. });
  68. });
  69. };
  70. /** **查看详细信息*** */
  71. _this.show = function() {
  72. var rows = _this.listGrid.getSelectedRows();
  73. var rowsLength = rows.length;
  74. if (rowsLength == 0) {
  75. top.Dialog.alert("请选中要查看评分的记录!");
  76. return;
  77. } else if (rowsLength > 1) {
  78. top.Dialog.alert("请选中一条要查看评分的记录!");
  79. return;
  80. } else {
  81. if(rows[0].STATE_798 != "1"){
  82. top.Dialog.alert("该记录未评分完,不能查看评分结果!");
  83. return ;
  84. }
  85. var fd_id = rows[0].FD_OBJECTID798;
  86. var connect_ids = rows[0].CONNECT_IDS_798;
  87. var sys_id = rows[0].SYS_ID_798;
  88. var sys_id_name = rows[0].SYS_ID_798_SHOW;
  89. var is_assigning = rows[0].IS_ASSIGNING_798;
  90. //console.log(rows[0]);
  91. var url1 = "/nwyj/page/business/em/evaluate/grade/Grade_inner_view.jsp?fd_id="+ fd_id +"&sys_id="+sys_id+"&isList=isList&isFrist=true&is_assigning="+is_assigning;
  92. var url2 = "/nwyj/page/business/em/evaluate/grade/Grade_score_show.jsp?fd_id="+ fd_id +"&sys_id="+sys_id+"&isFrist=true";
  93. if(rows[0].IS_CONNECT_798 == "1"){
  94. var inputbtn = "",height = 70;
  95. var url = $.pathname() + '/ws/scoreGrade/ScoreService/getOuterSysId';
  96. var params = {
  97. sys_id : sys_id
  98. };
  99. $.request.query(url,params,function(data){
  100. for(var i=0;i<data.length;i++){
  101. var outerUrl = "/nwyj/page/business/em/evaluate/grade/Grade_score_show.jsp?fd_id="+ connect_ids +"&sys_id="+data[i].CONECTION_ID+"&isFrist=true";
  102. console.log(outerUrl);
  103. inputbtn += '<input style="width:100%;margin-top:10px;" onclick="$.doEvalClick(\''+outerUrl+'\')" type="button" value="国家能源局'+data[i].NAME+'"></input><br />';
  104. }
  105. height += 40 * data.length;
  106. top.Dialog.open({
  107. Title:"选择查看",
  108. Width:340,
  109. Height:height,
  110. //这里还可以直接写html代码
  111. InnerHtml: '<div style="width:100%;text-align:center;" >'
  112. +'<span style="margin:20px auto;text-align:left;display:inline-block;width:80%;" >'
  113. +'<input style="width:100%;" onclick="$.doEvalClick(\''+url1+'\')" type="button" value="南方电网公司'+sys_id_name+'"></input><br />'
  114. +inputbtn
  115. +'</span>'
  116. +'</div>'
  117. });
  118. });
  119. }else{
  120. var url = $.pathname() + '/ws/targetManage/ManageService/getTiXiById';
  121. var params = {
  122. fd_id : sys_id
  123. };
  124. $.request.query(url,params,function(data){
  125. console.log(data);
  126. if(data[0].TYPE == "2"){
  127. $.indexOpenSelfWindow(url2);
  128. }else{
  129. $.indexOpenSelfWindow(url1);
  130. }
  131. });
  132. }
  133. }
  134. };
  135. _this.rePush = function(){
  136. var rows = _this.listGrid.getSelectedRows();
  137. var rowsLength = rows.length;
  138. if (rowsLength == 0) {
  139. top.Dialog.alert("请选中要发布的记录!");
  140. return;
  141. } else if (rowsLength > 1) {
  142. top.Dialog.alert("请选中一条要发布的记录!");
  143. return;
  144. } else {
  145. if(rows[0].STATE_798 == "2"){
  146. top.Dialog.alert("该记录已经发布!");
  147. return ;
  148. }
  149. if(rows[0].STATE_798 == "3"){
  150. top.Dialog.alert("该记录已经评分完!");
  151. return ;
  152. }
  153. var fdid = rows[0].FD_OBJECTID_798;
  154. var url = $.pathname() + '/ws/scoreGrade/ScoreService/rePushProject';
  155. var params = {
  156. fd_id : fdid
  157. };
  158. $.request.query(url,params,function(data){
  159. _this.listGrid.rend();//加载数据
  160. });
  161. }
  162. };
  163. _this.test = function(){
  164. var rows = _this.listGrid.getSelectedRows();
  165. var rowsLength = rows.length;
  166. if (rowsLength == 0) {
  167. top.Dialog.alert("请选中要评分的记录!");
  168. return;
  169. }
  170. if (rowsLength > 1) {
  171. top.Dialog.alert("请选中一条要评分的记录!");
  172. return;
  173. }
  174. var is_assinging = rows[0].IS_ASSIGNING_798;//是否分配任务
  175. if("0"==is_assinging && rows[0].WRITER_DEPT_ID_798 != corp_Id){
  176. top.Dialog.alert("该记录未分配任务,只能由本公司人员填写评分!");
  177. return ;
  178. }
  179. var fdId = rows[0].FD_OBJECTID_798;
  180. var sys_id = rows[0].SYS_ID_798;
  181. /*var url = $.pathname() + '/ws/scoreGrade/ScoreService/testscore';
  182. var params = {
  183. user_id : user_id,
  184. fd_id : fdId,
  185. sys_id : sys_id,
  186. is_assinging : is_assinging,
  187. };
  188. $.request.query(url,params,function(data){
  189. });*/
  190. };
  191. _this.goEval = function(){
  192. var rows = _this.listGrid.getSelectedRows();
  193. var rowsLength = rows.length;
  194. if (rowsLength == 0) {
  195. top.Dialog.alert("请选中要评分的记录!");
  196. return;
  197. } else if (rowsLength > 1) {
  198. top.Dialog.alert("请选中一条要评分的记录!");
  199. return;
  200. } else {
  201. if(rows[0].IS_HIDE_798 == "1"){
  202. top.Dialog.alert("该记录是隐藏关联项目,无需再评分!");
  203. return ;
  204. }
  205. if(rows[0].STATE_798 == "1"){
  206. top.Dialog.alert("该记录已经评分完,无需再评分!");
  207. return ;
  208. }
  209. //console.log(rows[0]);
  210. var is_assinging = rows[0].IS_ASSIGNING_798;//是否分配任务
  211. var fdId = rows[0].FD_OBJECTID_798;
  212. var sys_id = rows[0].SYS_ID_798;
  213. var event_id = rows[0].EVENT_ID_798;
  214. var eval_dept_id = rows[0].EVAL_DEPT_ID_798;
  215. var is_self_eval = rows[0].IS_SELF_EVAL_798;//是否自评
  216. if("0"==is_assinging ){
  217. if("1"==is_self_eval){
  218. if(eval_dept_id != corp_Id){
  219. top.Dialog.alert("该记录未分配任务且选择自评,只能由本公司人员填写评分!");
  220. return ;
  221. }else{
  222. window.open($.pathname()+ "/page/business/em/evaluate/grade/Grade_score.jsp?fd_id="+ fdId+"&event_id="+ event_id +"&eval_dept_id="+eval_dept_id);
  223. return ;
  224. }
  225. }else{
  226. window.open($.pathname()+ "/page/business/em/evaluate/grade/Grade_score.jsp?fd_id="+ fdId+"&event_id="+ event_id +"&eval_dept_id="+eval_dept_id);
  227. return ;
  228. }
  229. }
  230. /*if("0"==is_assinging ){
  231. if(rows[0].WRITER_DEPT_ID_798 != corp_Id){
  232. top.Dialog.alert("该记录未分配任务,只能由本公司人员填写评分!");
  233. return ;
  234. }else{
  235. window.open($.pathname()+ "/page/business/em/evaluate/grade/Grade_score.jsp?fd_id="+ fdId+"&event_id="+ event_id +"&eval_dept_id="+eval_dept_id);
  236. return ;
  237. }
  238. }*/
  239. var url = $.pathname() + '/ws/scoreGrade/ScoreService/checkTaskCompleted';
  240. var params = {
  241. fd_id : fdId,
  242. sys_id : sys_id,
  243. is_assinging : is_assinging,
  244. user_id : user_id
  245. };
  246. $.request.query(url,params,function(data){
  247. //console.log(data);
  248. if(data[0].result == "completed"){
  249. top.Dialog.alert("您在该记录下的任务已经完成!");
  250. }else if(data[0].result == "uncompleted"){
  251. window.open($.pathname()+ "/page/business/em/evaluate/grade/Grade_score.jsp?fd_id="+ fdId+"&event_id="+ event_id +"&eval_dept_id="+eval_dept_id);
  252. }else{
  253. top.Dialog.alert("您在该记录下没有任务!");
  254. }
  255. });
  256. }
  257. };
  258. _this.staticstic = function(){
  259. $.indexOpenNextWindow("/nwyj/page/business/em/evaluate/grade/Grade_staticstic.jsp");
  260. };
  261. _this.importExcel = function(){
  262. var rows = _this.listGrid.getSelectedRows();
  263. var rowsLength = rows.length;
  264. if (rowsLength != 1) {
  265. top.Dialog.alert("请选中一条要导入的记录!");
  266. return;
  267. } else {
  268. if(rows[0].STATE_798 == "1"){
  269. top.Dialog.alert("该记录已经评分完,无需再导入评分!");
  270. return ;
  271. }
  272. var fdId = rows[0].FD_OBJECTID_798;
  273. var sys_id = rows[0].SYS_ID_798;
  274. var eval_dept_id = rows[0].EVAL_DEPT_ID_798;
  275. var is_assigning = rows[0].IS_ASSIGNING_798;
  276. var sys_type = rows[0].SYS_TYPE_798;
  277. if(rows[0].SYS_TYPE_798 == "1"){
  278. if(is_assigning == "1"){
  279. var url = $.pathname() + '/ws/scoreGrade/ScoreService/checkTaskCompleted';
  280. var params = {
  281. fd_id : fdId,
  282. sys_id : sys_id,
  283. is_assinging : is_assigning,
  284. user_id : user_id
  285. };
  286. $.request.query(url,params,function(data){
  287. //console.log(data);
  288. if(data[0].result == "completed"){
  289. top.Dialog.alert("您在该记录下的任务已经完成,无需再导入!");
  290. return;
  291. }else if(data[0].result == "uncompleted"){
  292. //window.open($.pathname()+ "/page/business/em/evaluate/grade/Grade_score.jsp?fd_id="+ fdId+"&event_id="+ event_id +"&eval_dept_id="+eval_dept_id);
  293. $.indexOpenNextWindow("/nwyj/page/business/em/evaluate/inAndOutExcel/inner_scan.jsp?fd_id="+fdId+"&sys_id="+sys_id+"&is_assigning="+is_assigning+"&sys_type="+sys_type);
  294. }else{
  295. top.Dialog.alert("您在该记录下没有任务,无法导入!");
  296. return;
  297. }
  298. });
  299. }else if(corp_Id != eval_dept_id){
  300. top.Dialog.alert("只能导入本公司评分项目数据!");
  301. return ;
  302. }else{
  303. $.indexOpenNextWindow("/nwyj/page/business/em/evaluate/inAndOutExcel/inner_scan.jsp?fd_id="+fdId+"&sys_id="+sys_id+"&is_assigning="+is_assigning+"&sys_type="+sys_type);
  304. }
  305. }else{
  306. if(is_assigning == "1"){
  307. var url = $.pathname() + '/ws/scoreGrade/ScoreService/checkTaskCompleted';
  308. var params = {
  309. fd_id : fdId,
  310. sys_id : sys_id,
  311. is_assinging : is_assigning,
  312. user_id : user_id
  313. };
  314. $.request.query(url,params,function(data){
  315. //console.log(data);
  316. if(data[0].result == "completed"){
  317. top.Dialog.alert("您在该记录下的任务已经完成,无需再导入!");
  318. return;
  319. }else if(data[0].result == "uncompleted"){
  320. //window.open($.pathname()+ "/page/business/em/evaluate/grade/Grade_score.jsp?fd_id="+ fdId+"&event_id="+ event_id +"&eval_dept_id="+eval_dept_id);
  321. $.indexOpenNextWindow("/nwyj/page/business/em/evaluate/inAndOutExcel/other_import_scan.jsp?fd_id="+fdId+"&sys_id="+sys_id+"&is_assigning="+is_assigning+"&sys_type="+sys_type);
  322. }else{
  323. top.Dialog.alert("您在该记录下没有任务,无法导入!");
  324. return;
  325. }
  326. });
  327. }else if(corp_Id != eval_dept_id){
  328. top.Dialog.alert("只能导入本公司评分项目数据!");
  329. return ;
  330. }else {
  331. $.indexOpenNextWindow("/nwyj/page/business/em/evaluate/inAndOutExcel/other_import_scan.jsp?fd_id="+fdId+"&sys_id="+sys_id+"&is_assigning="+is_assigning+"&sys_type="+sys_type);
  332. }
  333. //top.Dialog.alert("您选择的不是南方电网应急评估,不能导入得分");
  334. return ;
  335. }
  336. }
  337. };
  338. _this.exportExcel = function(){
  339. var rows = _this.listGrid.getSelectedRows();
  340. var rowsLength = rows.length;
  341. if (rowsLength != 1) {
  342. top.Dialog.alert("请选中一条要导出的记录!");
  343. return;
  344. } else {
  345. var fdId = rows[0].FD_OBJECTID_798;
  346. var connect_ids=rows[0].CONNECT_IDS_798;
  347. //var destFileName = rows[0].NAME_798 + rows[0].SYS_ID_798_SHOW;
  348. var destFileName = rows[0].NAME_798;
  349. var is_assigning = rows[0].IS_ASSIGNING_798;
  350. var params = {
  351. fd_id : fdId,
  352. connect_ids:connect_ids,
  353. is_assigning:is_assigning
  354. };
  355. var url = $.pathname() + '/ws/evalExcel/EvalExcelService/ExportEvalExcelByFdId';
  356. if(rows[0].SYS_TYPE_798 == "2"){
  357. url = $.pathname() + '/ws/evalExcel/EvalExcelService/ExportOuterEvalExcelByFdId';
  358. }
  359. console.log(rows[0].SYS_TYPE_798);
  360. $.exportExcel(url,params,destFileName,"xlsx");
  361. }
  362. };
  363. // 查询
  364. function search(obj) {
  365. //去掉水印
  366. if($("#NAME_798").val().trim()==" 评 分 名 称" || $("#NAME_798").val().trim()==""){
  367. $("#NAME_798").val("");
  368. }
  369. $queryForm.serialize();
  370. //获取选中的值
  371. var searchCondition = getSelectCon(conditionData);
  372. var queryParams = getQueryFormParams($queryForm);
  373. var params=$.extend({},_this.loadParams,queryParams);
  374. //与之前参数条件拼接
  375. params.condition = searchCondition.condition + params.condition;
  376. _this.listGrid.setOptions({"params":params});
  377. //加载数据
  378. _this.listGrid.rend();//加载数据
  379. }
  380. // 更多
  381. function more() {
  382. $('#moreTable').toggle();
  383. // document.getElementById("queryForm").reset(); //重置一下表单
  384. // _this.listGrid.resetHeight(); //重新设置高度
  385. }
  386. //点击主键跳转详细信息页面
  387. _this.openDetail = function(rowindex) {
  388. var row = _this.listGrid.getRow(rowindex);
  389. var fd_id = row.FD_OBJECTID_798;
  390. /*var event_id = row.EVENT_ID_798;
  391. var eval_dept_id = row.EVAL_DEPT_ID_798;*/
  392. //console.log(row);
  393. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/em/evaluate/grade/Grade_view.jsp?fd_id="+ fd_id);
  394. };
  395. //点击主键跳转详细信息页面
  396. _this.openDetail1 = function(rowindex) {
  397. var row = _this.listGrid.getRow(rowindex);
  398. var fd_id = row.FD_OBJECTID_798;
  399. var sys_id = row.SYS_ID_798;
  400. var url = $.pathname() + '/ws/targetManage/ManageService/getTiXiById';
  401. var url1 = "/nwyj/page/business/em/evaluate/grade/Grade_inner_view.jsp?fd_id="+ fd_id +"&sys_id="+sys_id+"&isList=isList&isFrist=true";
  402. var url2 = "/nwyj/page/business/em/evaluate/grade/Grade_score_show.jsp?fd_id="+ fd_id +"&sys_id="+sys_id+"&isFrist=true";
  403. var params = {
  404. fd_id : sys_id
  405. };
  406. $.request.query(url,params,function(data){
  407. console.log(data);
  408. if(data[0].TYPE == "2"){
  409. $.indexOpenSelfWindow(url2);
  410. }else{
  411. $.indexOpenSelfWindow(url1);
  412. }
  413. });
  414. };
  415. return {
  416. init : function() {
  417. $queryForm = $("#queryForm");
  418. //绑定查询面板的按钮点击事件
  419. $searchButt = $("#searchButt");// 查询按钮
  420. $searchButt.bind('click', function() {
  421. search();
  422. });
  423. $('#NAME_798').keydown(function(e){
  424. if(e.keyCode==13){
  425. search();
  426. }
  427. });
  428. //绑定更多的按钮点击事件
  429. $more = $("#more"); // 更多按钮
  430. $more.bind('click', function() {
  431. more();
  432. });
  433. // 获得面板对象 12
  434. //_this.searchPanel = $("#searchPanel");
  435. //部门id--预警范围用到
  436. //var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  437. // 列表加载参数
  438. _this.loadParams = {
  439. listId : '798',
  440. direction:'desc',
  441. sort: 'UPDATEDATE',
  442. condition : " is_del = '0' and EVAL_DEPT_ID in (select dept_id from sys_department where dept_id='"+corp_Id+"' or parent_id='"+corp_Id+"') ",
  443. };
  444. var toolBarOpt1 = {
  445. items : [ {text : '新增',click : 'addForm',iconClass : 'add1_tem',id : '10000'},
  446. {text : '删除',click : 'del',iconClass : 'delete_tem',id : '10002'},
  447. {text : '修改',click : 'editForm',iconClass : 'update_tem',id : '10001'},
  448. // {text : '发布',click : 'rePush',iconClass : 'update_tem',id : '10001'},
  449. {text : '去评分',click : 'goEval',iconClass : 'issue_tem',id : '10003'},
  450. {text : '查看评分',click : 'show',iconClass : 'view_tem',id : '10004'},
  451. {text : '导出评分',click : 'exportExcel',iconClass : 'export_tem',id : '10005'},
  452. {text : '导入评分',click : 'importExcel',iconClass : 'import_tem',id : '10006'},
  453. {text : '统计查看',click : 'staticstic',iconClass : 'poll_tem',id : '10007'}
  454. ],
  455. roleCons:""
  456. };
  457. var grid_option1={
  458. columns : [
  459. {name : 'FD_OBJECTID798',hide : true},
  460. {display : '评价名称', name : 'NAME_798',align : 'center', width : "20%",isPrimaryKey:true,showTitle:true,
  461. render : function(rowdata, rowindex, value, column) {
  462. //console.log(rowdata);
  463. //var event_name = "("+rowdata.EVENT_NAME_798+")";
  464. var event_name = "";
  465. return "<a href='javascript:;' style='width:100%;height:100%;display:block' title='" + value + "' onclick='openDetail1(" + rowindex + ")'>" + value +"<span style='color:#848484;'>"+event_name+"</span>"+ "</a>";
  466. }
  467. },
  468. {display : '评价体系', name : 'SYS_ID_798_SHOW', align : 'center', width : "20%",showTitle:true},
  469. {display : '评估单位', name : 'EVAL_DEPT_ID_798_SHOW', align : 'center', width : "13%",showTitle:true},
  470. {display : '开始时间', name : 'START_TIME_798', align : 'center', width : "13%",showTitle:true},
  471. {display : '结束时间', name : 'END_TIME_798', align : 'center', width : "13%",showTitle:true},
  472. {display : '自评', name : 'IS_SELF_EVAL_798_SHOW', align : 'center', width : "7%",showTitle:true},
  473. {display : '隐藏关联项', name : 'IS_HIDE_798_SHOW', align : 'center', width : "7%",showTitle:true},
  474. {display : '状态', name : 'STATE_798_SHOW', align : 'center', width : "7%",showTitle:true}/*,
  475. {display : '总得分', name : 'TOTAL_SCORE_798', align : 'center', width : "6%",showTitle:true}*/
  476. ],
  477. checkbox : true,
  478. rownumbers : true,
  479. pageSize : 10,
  480. percentWidthMode : true,
  481. };
  482. var options1={
  483. url :$.pathname() + '/ws/crud/CRUDService/queryQui',
  484. params: _this.loadParams,
  485. width:960,
  486. gridOptions:grid_option1,
  487. singleRecodeOptions:{a:"aa"},
  488. paperOpration:{showInput:"true"},
  489. toolBarOptions:toolBarOpt1
  490. };
  491. _this.listGrid=gridAndSingleRecode=$("#dataGrid").quickgridAndSingleRecode(options1);
  492. }
  493. };
  494. }();
  495. $(function() {
  496. Grade.init();
  497. });
  498. function getParamsFromParent (){
  499. var userInfoStr = top.com.sinosoft.lz.system.user.LoginInfo.getUserInfo();
  500. return userInfoStr;
  501. }