SMMNP04620_사원조회.xrw 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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>사원조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <emplist>
  11. <empid/>
  12. <empnm/>
  13. </emplist>
  14. <cond>
  15. </cond>
  16. </main>
  17. <init>
  18. </init>
  19. <send>
  20. <reqdata>
  21. <userid/>
  22. <usernm/>
  23. </reqdata>
  24. </send>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. if( checkOpener() ) {
  30. model.setValue("/root/send/reqdata/userid", opener.javascript.getParameter("userid"));
  31. model.setValue("/root/send/reqdata/usernm", opener.javascript.getParameter("usernm"));
  32. model.refresh();
  33. submit("TRMNP04612", false);
  34. //var refMsg = model.getValue("/root/properties/error/msg");
  35. //var refMsgCnt = refMsg.substring(0, 1);
  36. //if( refMsgCnt == "1" ) { //조회가 1건일때 자동 선택
  37. // model.setValue(opener.root.temp.userid, model.getValue("/root/main/emplist/empid"));
  38. // model.setValue(opener.root.temp.usernm, model.getValue("/root/main/emplist/empnm"));
  39. // opener.model.refresh();
  40. // window.close();
  41. //}
  42. model.refresh();
  43. }
  44. ]]>
  45. </script>
  46. <submission id="TRMNP04612" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/emplist"/>
  47. </model>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  50. </xhtml:head>
  51. <xhtml:body pagewidth="320" pageheight="320" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  52. <group id="group3" scroll="auto" style="left:0px; top:0px; width:300px; height:305px; ">
  53. <caption id="caption1" class="tit_2" style="left:5px; top:6px; width:145px; height:13px; ">사원 리스트</caption>
  54. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:300px; y2:21px; "/>
  55. <datagrid id="grd_emplist" nodeset="/root/main/emplist" class="grd_agtplcelist" autoresize="true" caption="사원번호^이름" colsep="^" colwidth="123, 134" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:26px; width:300px; height:279px; ">
  56. <col ref="empid"/>
  57. <col ref="empnm" style="text-align:center; "/>
  58. <script type="javascript" ev:event="ondblclick">
  59. <![CDATA[
  60. var iRow = -1;
  61. iRow = grd_emplist.row;
  62. model.setValue(opener.root.temp.userid, model.getValue("/root/main/emplist"+"["+iRow+"]/empid"));
  63. model.setValue(opener.root.temp.usernm, model.getValue("/root/main/emplist"+"["+iRow+"]/empnm"));
  64. opener.model.refresh();
  65. window.close();
  66. ]]>
  67. </script>
  68. </datagrid>
  69. </group>
  70. </xhtml:body>
  71. </xhtml:html>