SMRPC00400_조직도.xrw 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. <indxlist>
  11. <item>
  12. <depth/>
  13. <deptcd/>
  14. <psnworksupdeptcd/>
  15. <depthngnm/>
  16. <pathcd/>
  17. </item>
  18. </indxlist>
  19. <empllist>
  20. <emplno/>
  21. <emplnm/>
  22. <jobrespnm/>
  23. <depthngnm/>
  24. </empllist>
  25. </main>
  26. <send>
  27. <instcd/>
  28. <deptcd/>
  29. <jobrespcd/>
  30. <psnworksupdeptcd/>
  31. <deptgbn/>
  32. </send>
  33. <init/>
  34. </root>
  35. </instance>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. misfComboInstCdListMulti("cmb_instcd", getCurrentDate(),"","N","Y");
  41. misfGridInit(grd_empllist);
  42. var instcd = getUserInfo("dutplceinstcd");
  43. cmb_instcd.value=instcd;
  44. submit("TRRPC00401");
  45. model.refresh();
  46. ]]>
  47. </script>
  48. <submission id="TRRPC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/indxlist"/>
  49. <submission id="TRRPC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/empllist"/>
  50. </model>
  51. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. </xhtml:head>
  55. <xhtml:body pagewidth="900" pageheight="800" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  56. <group id="group1" style="left:0px; top:0px; width:900; height:13px; ">
  57. <caption id="caption6selctedmode" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">조직도</caption>
  58. </group>
  59. <group id="group2" style="left:0px; top:12px; width:900px; height:754px; vertical-align:top; ">
  60. <line id="line11" class="line_2" style="x1:0px; y1:70px; x2:250px; y2:70px; "/>
  61. <line id="line12" class="line_1" style="x1:0px; y1:68px; x2:355; y2:68px; "/>
  62. <treeview id="trv_dgindx" ref="/root/main/indxlist/item" expanddepth="0" itemsettype="depth" style="left:0px; top:73px; width:355px; height:671px; padding-left:20; border-color:#c0c0c0; border-style:solid; ">
  63. <itemset nodeset="/root/main/indxlist/item">
  64. <label ref="depthngnm"/>
  65. <value ref="deptcd"/>
  66. <depth ref="depth"/>
  67. <upcode ref="psnworksupdeptcd"/>
  68. </itemset>
  69. <script type="javascript" ev:event="onclick">
  70. <![CDATA[
  71. //var deptindex=trv_dgindx.label.lastIndexOf("부");
  72. //ipt_jobrespcd.value=jobrespcd;
  73. misfGridInit(grd_empllist);
  74. var iIndx = trv_dgindx.focusIndex + 1;
  75. var iIndx2 = trv_dgindx.focusIndex + 2;
  76. var psnworksupdeptcd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/psnworksupdeptcd");
  77. var deptcd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/deptcd");
  78. var depth = model.getValue("/root/main/indxlist/item[" + iIndx + "]/depth");
  79. var nextdeptcd = model.getValue("/root/main/indxlist/item[" + iIndx2 + "]/psnworksupdeptcd");
  80. if(deptcd != nextdeptcd){
  81. model.setValue("/root/send/deptgbn","L");
  82. }else{
  83. model.setValue("/root/send/deptgbn","B");
  84. }
  85. if(parseFloat(depth) >=2){
  86. ipt_deptcd.value=deptcd;
  87. ipt_psnworksupdeptcd.value=psnworksupdeptcd;
  88. if(ipt_deptcd.value != ""){
  89. submit("TRRPC00402");
  90. model.refresh();
  91. }
  92. }
  93. ]]>
  94. </script>
  95. </treeview>
  96. <group id="group4" style="left:0px; top:10px; width:880px; height:35px; vertical-align:top; ">
  97. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:880px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  98. <line id="line3" class="line_4" style="x1:804px; y1:7px; x2:804px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  99. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:819px; top:7px; width:56px; height:22px; text-align:left; ">
  100. <caption>조회</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. misfGridInit(grd_empllist);
  104. submit("TRRPC00401");
  105. ]]>
  106. </script>
  107. </button>
  108. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:85px; height:17px; ">기 관 :</caption>
  109. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_default" appearance="minimal" style="left:100; top:8; width:200px; height:19px; ">
  110. <choices>
  111. <itemset nodeset="/root/main/init">
  112. <label ref="cnstnm"/>
  113. <value ref="cnstcd"/>
  114. </itemset>
  115. </choices>
  116. <script type="javascript" ev:event="xforms-value-changed">
  117. <![CDATA[
  118. misfGridInit(grd_empllist);
  119. submit("TRRPC00401");
  120. ]]>
  121. </script>
  122. </select1>
  123. <input id="ipt_deptcd" ref="/root/send/deptcd" visibility="hidden" style="left:325px; top:8px; width:90px; height:19px; "/>
  124. <input id="ipt_jobrespcd" ref="/root/send/jobrespcd" visibility="hidden" style="left:330px; top:8px; width:90px; height:19px; "/>
  125. <input id="ipt_psnworksupdeptcd" ref="/root/send/psnworksupdeptcd" visibility="hidden" style="left:335px; top:8px; width:90px; height:19px; "/>
  126. </group>
  127. <datagrid id="grd_empllist" nodeset="/root/main/empllist" caption="사원번호^성명^부서^직책^직위" colsep="^" colwidth="74, 72, 125, 108, 109" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:360px; top:73px; width:530px; height:671px; text-align:center; ">
  128. <col ref="emplno" style="text-align:center; "/>
  129. <col ref="emplnm" style="text-align:center; "/>
  130. <col ref="depthngnm" style="text-align:center; "/>
  131. <col ref="jobrespnm" style="text-align:center; "/>
  132. <col ref="jobposnm" style="text-align:center; "/>
  133. </datagrid>
  134. <line id="line1" class="line_1" style="x1:360px; y1:68px; x2:890px; y2:68px; "/>
  135. </group>
  136. </xhtml:body>
  137. </xhtml:html>