SMRTC01400_근무코드관리.xrw 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. <ngdtcd>
  11. <ngdtcdlist/>
  12. </ngdtcd>
  13. <ngdtdeptcd>
  14. <ngdtdeptcdlist/>
  15. </ngdtdeptcd>
  16. </main>
  17. <send>
  18. <save>
  19. <ngdtcdlist/>
  20. <ngdtdeptcdlist/>
  21. </save>
  22. <ngdtcd>
  23. <instcd/>
  24. </ngdtcd>
  25. <ngdtdeptcd>
  26. <instcd/>
  27. <ngdtcd/>
  28. </ngdtdeptcd>
  29. </send>
  30. <init>
  31. </init>
  32. <temp>
  33. </temp>
  34. </root>
  35. </instance>
  36. <submission id="TRRTC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ngdtcd" resultref="/root/main/ngdtcd"/>
  37. <submission id="TXRTC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  38. <submission id="TRRTC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ngdtdeptcd" resultref="/root/main/ngdtdeptcd"/>
  39. </model>
  40. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  46. <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. //사용자 권한
  50. fCheckAuth();
  51. misfGridInit(grd_ngdtcdlist);
  52. misfGridInit(grd_deptcd);
  53. misfMsterDetailSet(grd_ngdtcdlist, null, "TRRTC01401", "Y");
  54. misfMsterDetailSet(grd_deptcd, grd_ngdtcdlist, "TRRTC01402", "Y");
  55. misfComboComCdListMulti("R0234", "grd_deptcd.deptcd");
  56. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  57. var dutplceinstcd = getUserInfo("dutplceinstcd");
  58. model.setValue("/root/send/ngdtcd/instcd", dutplceinstcd);
  59. if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
  60. cmb_instcd.disabled = false;
  61. }else {
  62. cmb_instcd.disabled = true;
  63. }
  64. model.refresh();
  65. ]]>
  66. </script>
  67. <script type="javascript">
  68. <![CDATA[
  69. //========================================================================================
  70. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  71. //========================================================================================
  72. function fCheckAuth() {
  73. btn_search.disabled =!checkAuth("R") ;
  74. btn_save.disabled = !checkAuth("X") ;
  75. }
  76. ]]>
  77. </script>
  78. </xhtml:head>
  79. <xhtml:body style="margin-left:8; margin-right:8; ">
  80. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  81. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직코드등록</caption>
  82. </group>
  83. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  84. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  85. <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">기 관 :</caption>
  86. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. if(!isRequiredControls("cmb_instcd"))return;
  91. var updtdata = getGridUpdateData(grd_ngdtcdlist);
  92. if ( updtdata != "")
  93. {
  94. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  95. if (ret == 7) { // not OK
  96. return;
  97. }
  98. }
  99. misfMsterDetailRetrieve();
  100. misfSetReadOnlyCol(grd_ngdtcdlist, "ngdtcd", true);
  101. model.refresh();
  102. ]]>
  103. </script>
  104. </button>
  105. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  106. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:630px; y2:70px; "/>
  107. <datagrid id="grd_ngdtcdlist" nodeset="/root/main/ngdtcd/ngdtcdlist" caption="당직코드^당직명칭^시작일자^종료일자^순서^기관|당직코드^당직명칭^시작일자^종료일자^순서^기관" colsep="^" colwidth="80, 236, 127, 104, 41, 31" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:630px; height:660px; ">
  108. <col ref="ngdtcd" type="input" _key="true"/>
  109. <col ref="ngdtnm" type="input"/>
  110. <col ref="fromdd" type="inputdate" value="99991231"/>
  111. <col ref="todd" type="inputdate"/>
  112. <col ref="dispseq" type="input" format="99999"/>
  113. <col ref="instcd" visibility="hidden"/>
  114. <script type="javascript" ev:event="onrowchanged">
  115. <![CDATA[
  116. misfMsterDetailRetrieve();
  117. ]]>
  118. </script>
  119. </datagrid>
  120. <button id="btn_grddel" class="btn2_letter3" style="left:509px; top:47px; width:53px; height:19px; ">
  121. <caption>행삭제</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. misfGridIUD(grd_ngdtcdlist, "D");
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="btn_grdadd" class="btn2_letter3" style="left:453px; top:47px; width:53px; height:19px; ">
  129. <caption>행추가</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. if(!isRequiredControls("cmb_instcd"))return;
  133. misfGridIUD(grd_ngdtcdlist, "A");
  134. model.removeNodeset(grd_deptcd.nodeset);
  135. model.refresh();
  136. grd_ngdtcdlist.valueMatrix(grd_ngdtcdlist.row, grd_ngdtcdlist.colRef("todd")) = "99991231";
  137. ]]>
  138. </script>
  139. </button>
  140. <select1 id="cmb_instcd" ref="/root/send/ngdtcd/instcd" appearance="minimal" style="left:100px; top:20px; width:150px; height:19px; ">
  141. <choices>
  142. <itemset>
  143. <label/>
  144. <value/>
  145. </itemset>
  146. </choices>
  147. </select1>
  148. <datagrid id="grd_deptcd" nodeset="/root/main/ngdtdeptcd/ngdtdeptcdlist" caption="임상과^시작일자^종료일자^기관^당직코드^old과|임상과^시작일자^종료일자^기관^당직코드^old과" colsep="^" colwidth="273, 126, 118, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:637px; top:75px; width:555px; height:660px; ">
  149. <col ref="deptcd" type="combo" _key="true">
  150. <choices>
  151. <itemset>
  152. <label/>
  153. <value/>
  154. </itemset>
  155. </choices>
  156. </col>
  157. <col ref="fromdd" type="inputdate"/>
  158. <col ref="todd" type="inputdate"/>
  159. <col ref="instcd" visibility="hidden"/>
  160. <col ref="ngdtcd" visibility="hidden"/>
  161. <col ref="olddeptcd" visibility="hidden"/>
  162. </datagrid>
  163. <line id="line1" class="line_1" style="x1:637px; y1:69px; x2:1192px; y2:70px; "/>
  164. <caption id="caption5" class="tit_2" style="left:5px; top:50px; width:140px; height:15px; font-size:10pt; ">당직 코드 List</caption>
  165. <caption id="caption1" class="tit_2" style="left:637px; top:50px; width:275px; height:13px; font-size:10pt; ">당직 코드 사용 임상과 List</caption>
  166. <button id="button1" class="btn2_letter3" style="left:1069px; top:47px; width:53px; height:19px; ">
  167. <caption>행삭제</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. misfGridIUD(grd_deptcd, "D");
  171. ]]>
  172. </script>
  173. </button>
  174. <button id="button2" class="btn2_letter3" style="left:1013px; top:47px; width:53px; height:19px; ">
  175. <caption>행추가</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. if(!isRequiredControls("cmb_instcd"))return;
  179. misfGridIUD(grd_deptcd, "A");
  180. grd_deptcd.valueMatrix(grd_deptcd.row, grd_deptcd.colRef("todd")) = "99991231";
  181. ]]>
  182. </script>
  183. </button>
  184. <button id="btn_execl" class="btn2_letter4" style="left:565px; top:47px; width:64px; height:19px; ">
  185. <caption>엑셀저장</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  189. if (fileName != "") {
  190. grd_ngdtcdlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  191. }
  192. ]]>
  193. </script>
  194. </button>
  195. <button id="button3" class="btn2_letter4" style="left:1125px; top:47px; width:64px; height:19px; ">
  196. <caption>엑셀저장</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  200. if (fileName != "") {
  201. grd_deptcd.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  202. }
  203. ]]>
  204. </script>
  205. </button>
  206. </group>
  207. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  208. <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
  209. <caption>저장</caption>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. if(!checkKeyColumn("grd_ngdtcdlist")) return;
  213. misfSave("TXRTC01401");
  214. btn_search.dispatch("DOMActivate");
  215. model.refresh();
  216. ]]>
  217. </script>
  218. </button>
  219. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  220. </group>
  221. </xhtml:body>
  222. </xhtml:html>