SPZSD00400_기관별부서위치이동팝업.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. <deptlist>
  11. <dept>
  12. <deptcd/>
  13. <valitodd/>
  14. <instcd/>
  15. <depthngnm/>
  16. <deptengnm/>
  17. <deptchinm/>
  18. <fstrgstdt/>
  19. <valifromdd/>
  20. <lastrgstrid/>
  21. <lastrgstdt/>
  22. <deptplce/>
  23. <deptengabbr/>
  24. <depthngabbr/>
  25. <reqfild/>
  26. <orddeptflag/>
  27. <reqdeptno/>
  28. <nextplceyn/>
  29. <nextplceprity/>
  30. <inetrsrvyn/>
  31. <cntctel/>
  32. <dutplceuseyn/>
  33. <reqauthdeptyn/>
  34. <planuseyn/>
  35. <planupdeptcd/>
  36. <plandispseq/>
  37. <orduseyn/>
  38. <ordupdeptcd/>
  39. <orddispseq/>
  40. <psnworkuseyn/>
  41. <psnworkupdeptcd/>
  42. <psnworkdispseq/>
  43. <purcuseyn/>
  44. <purcupdeptcd/>
  45. <purcdispseq/>
  46. <fnworkuseyn/>
  47. <fnworkupdeptcd/>
  48. <fnworkdispseq/>
  49. <careuseyn/>
  50. <careupdeptcd/>
  51. <caredispseq/>
  52. <gafruseyn/>
  53. <gafrupdeptcd/>
  54. <gafrdispseq/>
  55. <rcptuseyn/>
  56. <rcptupdeptcd/>
  57. <rcptdispseq/>
  58. <pamuseyn/>
  59. <pamupdeptcd/>
  60. <pamdispseq/>
  61. <healcareinfouseyn/>
  62. <healcareinfoupdeptcd/>
  63. <healcareinfodispseq/>
  64. <insuuseyn/>
  65. <insuupdeptcd/>
  66. <insudispseq/>
  67. <dgenuseyn/>
  68. <dgenupdeptcd/>
  69. <dgendispseq/>
  70. <etcuseyn/>
  71. <etcupdeptcd/>
  72. <etcdispseq/>
  73. <level/>
  74. </dept>
  75. </deptlist>
  76. <search>
  77. <searchcondition>deptnm</searchcondition>
  78. <searchterm/>
  79. </search>
  80. </main>
  81. <send>
  82. <data>
  83. </data>
  84. </send>
  85. </root>
  86. </instance>
  87. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. var mv_src = opener.model.getValue("/root/main/move/mvsrc");
  92. var level = new Number(grd_deptlist.valueMatrix(mv_src, grd_deptlist.colRef("level")));
  93. var offset = mv_src;
  94. while( offset < grd_deptlist.rows){
  95. var comp_level = grd_deptlist.valueMatrix(offset, grd_deptlist.colRef("level"));
  96. if( offset == mv_src ){
  97. grd_deptlist.rowstyle( offset , "data" , "background-color" ) = "#c8e67b";
  98. }else if( comp_level > level){
  99. grd_deptlist.rowstyle( offset , "data" , "background-color" ) = "#c8e67b";
  100. }else if( comp_level <= level ){
  101. break;
  102. } else {
  103. break;
  104. }
  105. offset++;
  106. }
  107. setTreeItem( grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("depthngnm"));
  108. model.refresh();
  109. grd_deptlist.hscroll.attribute("pos") = 300;
  110. ]]>
  111. </script>
  112. <submission id="TRZSD00103" ref="/root/send/data" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/deptlist"/>
  113. </model>
  114. <script type="javascript" src="D:\CMCProject\application\webapps\com\hismainweb\js\DocTitle.js"/>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="517" pageheight="333" guideline="1,518;2,342;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  117. <group id="grp_dept" scroll="auto" style="left:0px; top:0px; width:501px; height:306px; ">
  118. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:105px; height:13px; ">부서코드 목록</caption>
  119. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
  120. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/dept" caption="행상태^상위 부서명^부서 한글명^부서코드^부서 영문명^부서 한문명^부서위치^부서 영문약어^부서 한글약어^청구분야^진료부서구분^청구부서번호^다음 가실곳 여부^다음 가실곳 우선순위^인터넷 예약구분^전화번호^근무지부서여부^청구권한부서^기획부서여부^기획상위부서^기획부서 출력순서^진료부서여부^진료상위부서^진료부서 출력순서^인사부서 여부^인사 상위부서^인사부서 출력순서^구매부서 사용여부^구매 상위부서^구매부서 출력순서^재무부서 사용여부^재무 상위부서^재무 출력순서^간호 사용여부^간호 상위부서^간호 출력순서^총무 사용여부^총무 상위부서^총무 출력순서^수납 사용여부^수납 상위부서^수납 출력순서^원무 사용여부^원무 상위부서^원무 출력순서^의료정보 사용여부^의료정보 상위부서^의료정보 출력순서^보험 사용여부^보험 상위부서^보험 출력순서^근태 사용여부^근태 상위부서^근태 출력순서^기타 사용여부^기타 상위부서^기타 출력순서^기관코드^유효 시작일자^유효 종료일자^레벨" colwidth="41, 300, 300, 127, 120, 100, 100, 100, 100, 100, 100, 124, 100, 100, 100, 121, 100, 100, 100, 100, 100, 100, 111, 100, 100, 113, 100, 100, 105, 111, 100, 107, 108, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 106, 107, 107, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:30px; width:500px; height:276px; ">
  121. <col ref="rowstatus" visibility="hidden"/>
  122. <col ref="supdeptnm"/>
  123. <col ref="depthngnm"/>
  124. <col ref="deptcd"/>
  125. <col ref="deptengnm"/>
  126. <col ref="deptchinm"/>
  127. <col ref="deptplce"/>
  128. <col ref="deptengabbr"/>
  129. <col ref="depthngabbr"/>
  130. <col ref="reqfild"/>
  131. <col ref="orddeptflag"/>
  132. <col ref="reqdeptno"/>
  133. <col ref="nextplceyn"/>
  134. <col ref="nextplceprity"/>
  135. <col ref="inetrsrvyn"/>
  136. <col ref="cntctel"/>
  137. <col ref="dutplceuseyn"/>
  138. <col ref="reqauthdeptyn"/>
  139. <col ref="planuseyn"/>
  140. <col ref="plansupdeptcd"/>
  141. <col ref="plandispseq"/>
  142. <col ref="orduseyn"/>
  143. <col ref="ordsupdeptcd"/>
  144. <col ref="orddispseq"/>
  145. <col ref="psnworkuseyn"/>
  146. <col ref="psnworksupdeptcd"/>
  147. <col ref="psnworkdispseq"/>
  148. <col ref="purcuseyn"/>
  149. <col ref="purcsupdeptcd"/>
  150. <col ref="purcdispseq"/>
  151. <col ref="fnworkuseyn"/>
  152. <col ref="fnworksupdeptcd"/>
  153. <col ref="fnworkdispseq"/>
  154. <col ref="careuseyn"/>
  155. <col ref="caresupdeptcd"/>
  156. <col ref="caredispseq"/>
  157. <col ref="gafruseyn"/>
  158. <col ref="gafrsupdeptcd"/>
  159. <col ref="gafrdispseq"/>
  160. <col ref="rcptuseyn"/>
  161. <col ref="rcptsupdeptcd"/>
  162. <col ref="rcptdispseq"/>
  163. <col ref="pamuseyn"/>
  164. <col ref="pamsupdeptcd"/>
  165. <col ref="pamdispseq"/>
  166. <col ref="healcareinfouseyn"/>
  167. <col ref="healcareinfosupdeptcd"/>
  168. <col ref="healcareinfodispseq"/>
  169. <col ref="insuuseyn"/>
  170. <col ref="insusupdeptcd"/>
  171. <col ref="insudispseq"/>
  172. <col ref="dgenuseyn"/>
  173. <col ref="dgensupdeptcd"/>
  174. <col ref="dgendispseq"/>
  175. <col ref="etcuseyn"/>
  176. <col ref="etcsupdeptcd"/>
  177. <col ref="etcdispseq"/>
  178. <col ref="instcd"/>
  179. <col ref="valifromdd"/>
  180. <col ref="valitodd"/>
  181. <col ref="level"/>
  182. </datagrid>
  183. </group>
  184. <group id="grp_btn" scroll="auto" style="left:0px; top:306px; width:501px; height:27px; ">
  185. <button id="btn_confirm" class="btn4_letter2" style="left:385px; top:5px; width:56px; height:22px; ">
  186. <caption>확인</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. var mv_dest = grd_deptlist.row;
  190. if(mv_dest==-1){
  191. messageBox("위치 이동할 대상 부서가 선택되지", "E007") ;
  192. return;
  193. }else if(grd_deptlist.rowstyle(mv_dest, "data", "background-color")=="#c8e67b"){
  194. messageBox("이동할 원본 부서와 하위의 부서들은 이동대상 부서로 지정", "E001") ;
  195. return;
  196. }
  197. opener.model.setValue("/root/main/move/mvdest", mv_dest);
  198. window.close();
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
  203. <caption>취소</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. window.close();
  207. ]]>
  208. </script>
  209. </button>
  210. </group>
  211. </xhtml:body>
  212. </xhtml:html>