SMMNP04410_거래처코드HELP.xrw 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. <custlist>
  11. <custcd/>
  12. <custnm/>
  13. <custtel/>
  14. </custlist>
  15. <cond>
  16. <refflag>1</refflag>
  17. <refnm/>
  18. <refcls/>
  19. </cond>
  20. </main>
  21. <init>
  22. </init>
  23. <send>
  24. <reqdata/>
  25. </send>
  26. <hidden/>
  27. </root>
  28. </instance>
  29. <submission id="TRMNP04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prodcmpylist"/>
  30. <script type="javascript" ev:event="xforms-ready">
  31. <![CDATA[
  32. model.removenode("/root/main/custlist");
  33. model.refresh();
  34. ]]>
  35. </script>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript">
  40. <![CDATA[
  41. function fGetValue(node, row, element) {
  42. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  43. return rtnValue;
  44. }
  45. function fDblClick(iRow) {
  46. var iParam="";
  47. var iNode = "/root/main/custlist";
  48. var iParam_custcd = fGetValue(iNode, iRow, "custcd");
  49. var iParam_custnm = fGetValue(iNode, iRow, "custnm");
  50. var iParam_custtel = fGetValue(iNode, iRow, "custtel");
  51. iParam = iParam_custcd +"|"+ iParam_custnm +"|"
  52. + iParam_custtel ;
  53. opener.javascript.setParameter("SendData", iParam);
  54. window.close();
  55. }
  56. ]]>
  57. </script>
  58. </xhtml:head>
  59. <xhtml:body pagewidth="620" pageheight="570" guideline="1,595;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  60. <group id="group3" scroll="auto" style="left:0px; top:0px; width:602px; height:552px; ">
  61. <group id="group2" style="left:0px; top:0px; width:599px; height:40px; ">
  62. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:598px; height:40px; "/>
  63. <input id="ipt_refcond" ref="/root/main/cond/refnm" class="input_s_essential" style="left:376px; top:11px; width:148px; height:19px; ">
  64. <script type="javascript" ev:event="onkeyup">
  65. <![CDATA[
  66. inputEnterKey("btn_search", "DOMActivate");
  67. ]]>
  68. </script>
  69. </input>
  70. <button id="btn_search" class="btn1_letter2" style="left:541px; top:9px; width:56px; height:22px; ">
  71. <caption>조회</caption>
  72. <script type="javascript" ev:event="DOMActivate">
  73. <![CDATA[
  74. model.copyNode("/root/send/reqdata", "/root/main/cond");
  75. submit("TRMNP04411");
  76. ]]>
  77. </script>
  78. </button>
  79. <line id="line13" class="line_4" style="x1:532px; y1:5px; x2:532px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
  80. <caption id="caption2" class="search_name" style="left:295px; top:11px; width:86px; height:17px; ">조 회 명:</caption>
  81. <caption id="caption3" class="search_name" style="left:3px; top:12px; width:86px; height:17px; ">조회조건:</caption>
  82. <select1 id="rdo_refcond" ref="/root/main/cond/refflag" class="radio_search" overflow="visible" appearance="full" cols="2" style="left:87px; top:11px; width:178px; height:20px; border-style:none; ">
  83. <choices>
  84. <item>
  85. <label>거래처명</label>
  86. <value>1</value>
  87. </item>
  88. <item>
  89. <label>거래처코드</label>
  90. <value>2</value>
  91. </item>
  92. </choices>
  93. <script type="javascript" ev:event="xforms-select">
  94. <![CDATA[
  95. model.setFocus("ipt_refcond");
  96. ]]>
  97. </script>
  98. </select1>
  99. </group>
  100. <caption id="caption1" class="tit_2" style="left:5px; top:41px; width:145px; height:13px; ">거래처리스트</caption>
  101. <line id="line1" class="line_1" style="x1:0px; y1:56px; x2:599px; y2:56px; "/>
  102. <datagrid id="grd_custlist" nodeset="/root/main/custlist" class="grd_agtplcelist" caption="거래처코드^거래처 명^거래처전화" colsep="^" colwidth="135, 266, 156" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:62px; width:599px; height:478px; ">
  103. <col ref="custcd"/>
  104. <col ref="custnm"/>
  105. <col ref="custtel"/>
  106. <script type="javascript" ev:event="ondblclick">
  107. <![CDATA[
  108. var iRow = -1;
  109. iRow = grd_custlist.row;
  110. if(iRow < 1) {
  111. messageBox("리스트에서 선택한 것이", "I004");
  112. return;
  113. }else {
  114. fDblClick(iRow);
  115. }
  116. ]]>
  117. </script>
  118. </datagrid>
  119. </group>
  120. </xhtml:body>
  121. </xhtml:html>