SMMNP04420_상용구 기준자료.xrw 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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>상용구 기준자료</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <commonlist>
  11. <cdnm/>
  12. <cdgrupid/>
  13. <cdid/>
  14. <sortseq/>
  15. </commonlist>
  16. </main>
  17. <init>
  18. </init>
  19. <send>
  20. <reqdata/>
  21. <savedata/>
  22. </send>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. model.removenode("/root/main/commonlist");
  28. model.removenode("/root/send");
  29. model.makeValue("/root/send/reqdata/cdgrupid", "200");
  30. submit("TRMNP04421");
  31. ]]>
  32. </script>
  33. <submission id="TRMNP04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/ccrlrglist"/>
  34. <submission id="TXMNP04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/commonlist"/>
  35. </model>
  36. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. </xhtml:head>
  39. <xhtml:body pagewidth="430" pageheight="500" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  40. <group id="group3" scroll="auto" style="left:0px; top:0px; width:410px; height:470px; ">
  41. <caption id="caption1" class="tit_2" style="left:5px; top:18px; width:145px; height:13px; ">상용구 리스트</caption>
  42. <line id="line1" class="line_1" style="x1:0px; y1:33px; x2:400px; y2:33px; "/>
  43. <datagrid id="grd_commonlist" nodeset="/root/main/commonlist" caption="상용구^cdgrupid^cdid^sortseq" colsep="^" colwidth="377, 0, 0, 0" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:38px; width:400px; height:430px; ">
  44. <col ref="cdnm" type="input"/>
  45. <col ref="cdgrupid"/>
  46. <col ref="cdid"/>
  47. <col ref="sortseq"/>
  48. </datagrid>
  49. <button id="button4" class="btn2_letter3" style="left:241px; top:13px; width:53px; height:19px; ">
  50. <caption>행추가</caption>
  51. <script type="javascript" ev:event="DOMActivate">
  52. <![CDATA[
  53. grd_commonlist.addRow();
  54. model.setValue("/root/main/commonlist[" + (grd_commonlist.rows-1) + "]/cdgrupid", "200");
  55. model.refresh();
  56. ]]>
  57. </script>
  58. </button>
  59. <button id="button1" class="btn2_letter3" style="left:298px; top:13px; width:53px; height:19px; ">
  60. <caption>행삭제</caption>
  61. <script type="javascript" ev:event="DOMActivate">
  62. <![CDATA[
  63. var selRow = grd_commonlist.row;
  64. var cdid = model.getValue("/root/main/commonlist[" + selRow + "]/cdid");
  65. if( cdid == "" ) {
  66. grd_commonlist.removeRow();
  67. }else {
  68. grd_commonlist.rowStatus(selRow) = 4;
  69. }
  70. ]]>
  71. </script>
  72. </button>
  73. <button id="button2" class="btn5_letter2" style="left:355px; top:13px; width:42px; height:19px; ">
  74. <caption>저장</caption>
  75. <script type="javascript" ev:event="DOMActivate">
  76. <![CDATA[
  77. model.removenode("/root/send");
  78. model.makeValue("/root/send/reqdata/cdgrupid", "200");
  79. model.makeValue("/root/send/savedata", grd_commonlist.getUpdateData());
  80. submit("TXMNP04421");
  81. ]]>
  82. </script>
  83. </button>
  84. </group>
  85. </xhtml:body>
  86. </xhtml:html>