SMMNP04430_중분류코드HELP.xrw 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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>중분류HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <mdllist>
  11. <mdlcd/>
  12. <mdlnm/>
  13. </mdllist>
  14. <cond>
  15. <ccrlrgcd/>
  16. <tabflag/>
  17. </cond>
  18. </main>
  19. <init>
  20. </init>
  21. <send>
  22. <reqdata/>
  23. </send>
  24. </root>
  25. </instance>
  26. <script type="javascript" ev:event="xforms-ready">
  27. <![CDATA[
  28. model.removeNodeset("/root/main/mdllist");
  29. if ( checkOpener() != false){
  30. var ccrlrgcd = opener.javascript.getParameter("ccrlrgcd");
  31. if( ccrlrgcd != "" ) {
  32. model.setValue("/root/main/cond/ccrlrgcd", ccrlrgcd);
  33. model.setValue("/root/main/cond/tabflag", "CCR");
  34. }
  35. }
  36. if( model.getValue("/root/main/cond/ccrlrgcd") == "" ) {
  37. messageBox("대분류를 먼저", "C002");
  38. window.close();
  39. }else{
  40. model.copyNode("/root/send/reqdata", "/root/main/cond");
  41. submit("TRMNP04431");
  42. }
  43. ]]>
  44. </script>
  45. <submission id="TRMNP04431" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/ccrmdllist"/>
  46. </model>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  49. </xhtml:head>
  50. <xhtml:body pagewidth="620" pageheight="520" guideline="2,343;1,559;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  51. <group id="group3" scroll="auto" style="left:0px; top:0px; width:602px; height:455px; ">
  52. <caption id="caption1" class="tit_2" style="left:5px; top:1px; width:145px; height:13px; ">중분류리스트</caption>
  53. <line id="line1" class="line_1" style="x1:0px; y1:16px; x2:599px; y2:16px; "/>
  54. <datagrid id="grd_mdlllist" nodeset="/root/main/mdllist" class="grd_mdlllist" caption="중분류코드^중분류명^물품구분^대분류코드^계정코드^비용계정" colsep="^" colwidth="120, 216,120,120, 130,110" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:18px; width:599px; height:430px; ">
  55. <col ref="mdlcd"/>
  56. <col ref="mdlnm"/>
  57. <script type="javascript" ev:event="ondblclick">
  58. <![CDATA[
  59. var iRow = -1;
  60. iRow = grd_mdlllist.row;
  61. if(iRow < 1)
  62. {
  63. messageBox("리스트에서 선택한 것이", "I004");
  64. return;
  65. }else
  66. {
  67. model.setValue(opener.root.main.goodinfo.gooddetlinfo.ccrmdlcd, model.getValue("/root/main/mdllist"+"["+iRow+"]/mdlcd"));
  68. model.setValue(opener.root.main.goodinfo.gooddetlinfo.ccrmdl, model.getValue("/root/main/mdllist"+"["+iRow+"]/mdlnm"));
  69. opener.model.refresh();
  70. window.close();
  71. }
  72. ]]>
  73. </script>
  74. </datagrid>
  75. </group>
  76. <group id="group1" scroll="auto" style="left:0px; top:454px; width:600px; height:27px; ">
  77. <button id="btn_confirm" class="btn4_letter2" style="left:484px; top:2px; width:56px; height:22px; ">
  78. <caption>확인</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. var iRow = -1;
  82. iRow = grd_mdlllist.row;
  83. if(iRow < 1)
  84. {
  85. messageBox("리스트에서 선택한 것이", "I004");
  86. return;
  87. }else
  88. {
  89. model.setValue(opener.root.main.goodinfo.gooddetlinfo.ccrmdlcd, model.getValue("/root/main/mdllist"+"["+iRow+"]/mdlcd"));
  90. model.setValue(opener.root.main.goodinfo.gooddetlinfo.ccrmdl, model.getValue("/root/main/mdllist"+"["+iRow+"]/mdlnm"));
  91. opener.model.refresh();
  92. window.close();
  93. }
  94. ]]>
  95. </script>
  96. </button>
  97. <button id="btn_cancel" class="btn4_letter2" style="left:541px; top:2px; width:56px; height:22px; ">
  98. <caption>취소</caption>
  99. <script type="javascript" ev:event="DOMActivate">
  100. <![CDATA[
  101. window.close();
  102. ]]>
  103. </script>
  104. </button>
  105. </group>
  106. </xhtml:body>
  107. </xhtml:html>