SMRPV98100_부서(Unit)HELP.xrw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>부서(Unit)HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <unit>
  11. <unitlist/>
  12. </unit>
  13. </main>
  14. <target/>
  15. <init>
  16. </init>
  17. <send>
  18. <unit>
  19. <instcd/>
  20. <deptcd/>
  21. </unit>
  22. </send>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. misfGridInit(grd_instdeptresp);
  28. misfMsterDetailSet(grd_instdeptresp,null, "TRRPV98101" ,"N");
  29. grd_instdeptresp.fixedcellcheckbox(0,2) = true;
  30. try {
  31. model.setValue(ipt_deptcd.attribute("ref"),model.getValue("/root/target/defaultvalue/ipt_deptcd"));
  32. model.setValue(ipt_instcd.attribute("ref"),model.getValue("/root/target/defaultvalue/cmb_instcd"));
  33. // model.setValue(ipt_deptcd.attribute("ref"),"4020500000");
  34. // model.setValue(ipt_instcd.attribute("ref"),"001");
  35. } catch (ex) {
  36. }
  37. model.refresh();
  38. submit("TRRPV98101");
  39. ]]>
  40. </script>
  41. <submission id="TRRPV98101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unit" resultref="/root/main/unit"/>
  42. </model>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  46. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  47. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  48. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  49. </xhtml:head>
  50. <xhtml:body pagewidth="420" pageheight="570" guideline="1,156;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  51. <group id="group3" scroll="auto" style="left:10px; top:0px; width:390px; height:522px; ">
  52. <caption id="caption1" class="tit_2" style="left:5px; top:14px; width:175px; height:14px; ">부서 List</caption>
  53. <line id="line1" class="line_1" style="x1:0px; y1:28px; x2:385px; y2:28px; "/>
  54. <datagrid id="grd_instdeptresp" nodeset="/root/main/unit/unitlist" caption="부서^" colsep="^" colwidth="317, 30, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:33px; width:385px; height:449px; ">
  55. <col ref="deptnm"/>
  56. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  57. <col ref="instcd" visibility="hidden"/>
  58. <col ref="jobrespcd" visibility="hidden"/>
  59. <col ref="deptcd" visibility="hidden"/>
  60. <script type="javascript" ev:event="ondblclick">
  61. <![CDATA[
  62. if( grd_instdeptresp.isCell(event.target) && grd_instdeptresp.row >= grd_instdeptresp.fixedRows )
  63. {
  64. model.setValue(grd_instdeptresp.nodeset + "[" + (grd_instdeptresp.row - grd_instdeptresp.fixedRows + 1) + "]/check" , "Y");
  65. btn_confirm.dispatch("DOMActivate");
  66. }
  67. ]]>
  68. </script>
  69. </datagrid>
  70. <input id="ipt_deptcd" ref="/root/send/unit/deptcd" class="input_default" visibility="hidden" style="left:200px; top:5px; width:50px; height:19px; "/>
  71. <input id="ipt_instcd" ref="/root/send/unit/instcd" class="input_default" visibility="hidden" style="left:260px; top:5px; width:50px; height:19px; "/>
  72. </group>
  73. <group id="group1" scroll="auto" style="left:10px; top:491px; width:385px; height:27px; ">
  74. <button id="btn_confirm" class="btn4_letter2" style="left:265px; top:2px; width:56px; height:22px; ">
  75. <caption>확인</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. if(grd_instdeptresp.rows - grd_instdeptresp.fixedRows == 0)
  79. {
  80. messageBox("적용할 내역이","I004");
  81. window.close();
  82. return;
  83. }
  84. var iParam = model.getValue(grd_instdeptresp.nodeset);
  85. var nodelist = instance1.selectNodes(grd_instdeptresp.nodeset + "[check='Y']");
  86. var rCVS = getNodeListCSV(nodelist);
  87. //alert(nodelist);
  88. //alert(rCVS);
  89. if ( checkOpener() ) {
  90. opener.javascript.setParameter("SMRPV98100_", rCVS);
  91. } else {
  92. var rtn = messageBox("상위화면을 찾을 수", "E001");
  93. }
  94. window.close();
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="btn_cancel" class="btn4_letter2" style="left:322px; top:2px; width:56px; height:22px; ">
  99. <caption>취소</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. window.close();
  103. ]]>
  104. </script>
  105. </button>
  106. </group>
  107. </xhtml:body>
  108. </xhtml:html>