SPZTP01200_프로젝트진척관리(소위원회부서팝업).xrw 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>소위원회-해당부서</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <ranklist>
  11. <list>
  12. <rank>
  13. <reprdept/>
  14. <dept/>
  15. </rank>
  16. </list>
  17. </ranklist>
  18. </main>
  19. <send>
  20. <search>
  21. <reprdept/>
  22. <insuimp/>
  23. <appdd/>
  24. </search>
  25. </send>
  26. <target/>
  27. <temp>
  28. <combo>
  29. <appdd/>
  30. <value/>
  31. </combo>
  32. </temp>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. // 검색 조건 강제 지정
  38. model.setValue("/root/send/search/reprdept","d");
  39. model.setValue("/root/send/search/insuimp","A");
  40. model.setValue("/root/send/search/appdd","-");
  41. submit("TRZTP00801");
  42. // 소위원회 명이 동일하면 Merge하기 위해 정렬을 한다.
  43. var grd_length;
  44. grd_length = grd_ranklist.rows - grd_ranklist.fixedRows;
  45. grd_ranklist.sort(1, 1, grd_length, 2) = "asc";
  46. // 정렬 후 refresh를 해야 적용이 된다.
  47. grd_ranklist.mergeCells = "bycol";
  48. grd_ranklist.mergeCol(1) = true;
  49. grd_ranklist.mergeCol(2) = false;
  50. grd_ranklist.refresh();
  51. ]]>
  52. </script>
  53. <submission id="TRZTP00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/ranklist/list"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. </xhtml:head>
  58. <xhtml:body pagewidth="330" pageheight="470">
  59. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:126px; height:14px; ">소위원회-해당부서</caption>
  60. <datagrid id="grd_ranklist" nodeset="/root/main/ranklist/list/rank" caption="소위원회^해당부서" colsep="^" colwidth="113, 79" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:25px; width:320px; height:435px; ">
  61. <col ref="reprdept"/>
  62. <col ref="dept"/>
  63. <script type="javascript" ev:event="ondblclick">
  64. <![CDATA[
  65. // 데이터 컬럼이 아니라면 실행 하지 않는다. isDataCell 공통 함수
  66. // 컬럼헤드, 총계, 소계 일 경우 실행하지 않는다.
  67. var cur_row = grd_ranklist.row;
  68. var cur_col = grd_ranklist.col;
  69. var reprdept = grd_ranklist.textmatrix(cur_row,cur_col-1);
  70. var dept = grd_ranklist.textmatrix(cur_row,cur_col);
  71. if( isDataCell() )
  72. {
  73. if ( grd_ranklist.row > 0 && grd_ranklist.col > 1)
  74. {
  75. // alert(reprdept + " " + dept);
  76. opener.model.setValue("/root/main/reprdept",reprdept);
  77. opener.model.setValue("/root/main/dept",dept);
  78. opener.group2.refresh();
  79. window.close();
  80. }
  81. }
  82. ]]>
  83. </script>
  84. </datagrid>
  85. </xhtml:body>
  86. </xhtml:html>