SMMNP04440_소분류코드HELP.xrw 4.4 KB

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