SMRPS05000_의평직종코드관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. <healcarelist/>
  11. </main>
  12. <send>
  13. <appyy/>
  14. <instcd/>
  15. <instnm/>
  16. <healcarevalucd/>
  17. <grupjobln/>
  18. <jobln/>
  19. <jobkind/>
  20. </send>
  21. <init>
  22. </init>
  23. <temp>
  24. </temp>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. // user 권한체크
  30. fCheckAuth() ;
  31. fInit() ;
  32. model.refresh();
  33. ]]>
  34. </script>
  35. <submission id="TRRPS05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/healcarelist"/>
  36. <submission id="TXRPS05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/healcarelist" resultref="/root/temp"/>
  37. </model>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  44. <script type="javascript" src="../../../mis/educationmngtweb/js/RPS001.js"/>
  45. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  46. <script type="javascript">
  47. <![CDATA[
  48. var FLAG = false;
  49. //========================================================================================
  50. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  51. //========================================================================================
  52. function fCheckAuth() {
  53. btn_search.disabled = !checkAuth("R") ;
  54. btn_save.disabled = !checkAuth("X") ;
  55. }
  56. function fInit() {
  57. var curdate = getCurrentDate();
  58. model.setValue(ipt_appyy.attribute("ref") , curdate.substr(0, 4));
  59. misfComboComCdListMulti("R0059,R0060,R0061", "lst_grupjobln,lst_jobln,lst_jobkind");
  60. model.setValue("/root/send/instnm", getUserInfo("dutplceinstnm") );
  61. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd") );
  62. model.removeNodeset(grd_healcarelist.nodeset);
  63. misfMsterDetailSet(grd_healcarelist,null, "TRRPS05001" ,"Y");
  64. model.refresh();
  65. }
  66. ]]>
  67. </script>
  68. </xhtml:head>
  69. <xhtml:body style="margin-left:8; margin-right:8; ">
  70. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  71. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">의평직종코드관리</caption>
  72. </group>
  73. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  74. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  75. <button id="btn_search" class="btn1_letter2" style="left:1110px; top:13px; width:56px; height:22px; ">
  76. <caption>조회</caption>
  77. <script type="javascript" ev:event="DOMActivate">
  78. <![CDATA[
  79. if(!isRequiredControls("ipt_appyy")) return;
  80. submit("TRRPS05001");
  81. ]]>
  82. </script>
  83. </button>
  84. <line id="line13" class="line_4" style="x1:1073px; y1:10px; x2:1073px; y2:37px; "/>
  85. <line id="line8" class="line_1" style="x1:0px; y1:59px; x2:1195px; y2:59px; "/>
  86. <caption id="caption20" class="tit_2" style="left:5px; top:45px; width:169px; height:13px; ">직종추가</caption>
  87. <button id="btn_del" class="btn2_letter3" style="left:1070px; top:500px; width:53px; height:19px; ">
  88. <caption>행삭제</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. if(!isRequiredControls("ipt_appyy")) return;
  92. misfGridIUD(grd_healcarelist, "D");
  93. model.refresh();
  94. ]]>
  95. </script>
  96. </button>
  97. <button id="btn_add" class="btn2_letter3" visibility="hidden" style="left:1125px; top:485px; width:53px; height:19px; ">
  98. <caption>행추가</caption>
  99. <script type="javascript" ev:event="DOMActivate">
  100. <![CDATA[
  101. if(!isRequiredControls("ipt_appyy")) return;
  102. misfGridIUD(grd_rpsmedcdlist, "A");
  103. model.refresh();
  104. ]]>
  105. </script>
  106. </button>
  107. <caption id="cap_instcd" class="search_name" style="left:320px; top:14px; width:86px; height:17px; ">기 관 :</caption>
  108. <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:500px; width:64px; height:19px; ">
  109. <caption>엑셀저장</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. misfSaveExcel(grd_healcarelist);
  113. ]]>
  114. </script>
  115. </button>
  116. <button id="button8" class="icon_search" style="left:566px; top:14px; width:16px; height:16px; ">
  117. <caption/>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. var recv_list = "instcd,instnm";
  121. misfOpenPopUpList("03", ipt_instnm,"Z0007", recv_list, "", "") ;
  122. model.refresh();
  123. ]]>
  124. </script>
  125. </button>
  126. <input id="ipt_instnm" ref="/root/send/instnm" class="input_search" appearance="input" style="left:407px; top:14px; width:155px; height:19px; ">
  127. <script type="javascript" ev:event="xforms-value-changed">
  128. <![CDATA[
  129. if( ipt_instnm.value.getByteLength() == '0' ) {
  130. ipt_instcd.value = "" ;
  131. }
  132. model.refresh();
  133. ]]>
  134. </script>
  135. </input>
  136. <input id="ipt_instcd" ref="/root/send/instcd" disabled="true" visibility="hidden" style="left:587px; top:14px; width:50px; height:19px; "/>
  137. <datagrid id="grd_healcarelist" nodeset="/root/main/healcarelist" caption="년도^기관^기관명^seq^의평직종코드^의평직종분류^직군^직군코드^직렬^직렬코드^직종^직종코드" colsep="^" colwidth="70, 50, 199, 39, 100, 130, 130, 52, 130, 42, 130, 56" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:525px; width:1194px; height:207px; ">
  138. <col ref="appyy" _key="true" style="text-align:center; "/>
  139. <col ref="instcd" visibility="hidden" _key="true" style="text-align:center; "/>
  140. <col ref="instnm" _key="true" style="text-align:center; "/>
  141. <col ref="seqno" visibility="hidden" style="text-align:center; "/>
  142. <col ref="healcarecd" visibility="hidden" _key="true" style="text-align:center; "/>
  143. <col ref="healcarenm" _key="true" style="text-align:center; "/>
  144. <col ref="grupjobln" _key="true" style="text-align:center; "/>
  145. <col ref="grupjoblncd" visibility="hidden" _key="true" style="text-align:center; "/>
  146. <col ref="jobln" _key="true" style="text-align:center; "/>
  147. <col ref="joblncd" visibility="hidden" _key="true" style="text-align:center; "/>
  148. <col ref="jobkind" _key="true" style="text-align:center; "/>
  149. <col ref="jobkindcd" visibility="hidden" _key="true" style="text-align:center; "/>
  150. </datagrid>
  151. <select id="lst_grupjobln" ref="/root/send/grupjobln" overflow="scroll" appearance="compact" sep="|" style="left:0px; top:90px; width:395px; height:395px; ">
  152. <choices>
  153. <itemset>
  154. <label/>
  155. <value/>
  156. </itemset>
  157. </choices>
  158. <script type="javascript" ev:event="onmouseup">
  159. <![CDATA[
  160. var grupjobln = lst_grupjobln.value;
  161. grupjoblnlist = grupjobln.split("|");
  162. lst_grupjobln.value = grupjoblnlist[grupjoblnlist.length-1];
  163. ]]>
  164. </script>
  165. </select>
  166. <line id="line1" class="line_1" style="x1:0px; y1:520px; x2:1195px; y2:520px; "/>
  167. <caption id="caption1" class="tit_2" style="left:5px; top:506px; width:169px; height:14px; ">의평 직종 List</caption>
  168. <select id="lst_jobln" ref="/root/send/jobln" overflow="scroll" appearance="compact" sep="|" style="left:398px; top:90px; width:395px; height:395px; ">
  169. <choices>
  170. <itemset>
  171. <label/>
  172. <value/>
  173. </itemset>
  174. </choices>
  175. <script type="javascript" ev:event="onmouseup">
  176. <![CDATA[
  177. var jobln = lst_jobln.value;
  178. joblnlist = jobln.split("|");
  179. lst_jobln.value = joblnlist[joblnlist.length-1];
  180. ]]>
  181. </script>
  182. </select>
  183. <select id="lst_jobkind" ref="/root/send/jobkind" overflow="scroll" appearance="compact" sep="|" style="left:796px; top:90px; width:395px; height:395px; ">
  184. <choices>
  185. <itemset>
  186. <label/>
  187. <value/>
  188. </itemset>
  189. </choices>
  190. </select>
  191. <caption id="caption2" class="search_name" style="left:700px; top:14px; width:101px; height:17px; ">의 평 직 종 :</caption>
  192. <select1 id="cmb_healcarevalucd" ref="/root/send/healcarevalucd" appearance="minimal" style="left:810px; top:14px; width:125px; height:19px; ">
  193. <choices>
  194. <item>
  195. <label>전체</label>
  196. <value/>
  197. </item>
  198. <item>
  199. <label>의사직</label>
  200. <value>01</value>
  201. </item>
  202. <item>
  203. <label>간호직</label>
  204. <value>02</value>
  205. </item>
  206. <item>
  207. <label>보건직</label>
  208. <value>03</value>
  209. </item>
  210. <item>
  211. <label>행정직</label>
  212. <value>04</value>
  213. </item>
  214. </choices>
  215. </select1>
  216. <caption id="cap_appyy" class="search_name" style="left:20px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  217. <input id="ipt_appyy" ref="/root/send/appyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:103px; top:14px; width:110px; height:19px; "/>
  218. <caption id="cap_grupjobln" class="cell_1" style="left:0px; top:64px; width:395px; height:25px; font-weight:bold; text-align:center; ">직군</caption>
  219. <caption id="cap_jobln" class="cell_1" style="left:398px; top:64px; width:395px; height:25px; font-weight:bold; text-align:center; ">직렬</caption>
  220. <caption id="cap_jobkind" class="cell_1" style="left:796px; top:64px; width:395px; height:25px; font-weight:bold; text-align:center; ">직종</caption>
  221. <img id="btn_addtrgtman" class="icon_bottom" style="left:570px; top:490px; width:26px; height:19px; background-stretch:stretch; ">
  222. <script type="javascript" ev:event="onclick">
  223. <![CDATA[
  224. if(!isRequiredControls("ipt_instcd")) return;
  225. if(cmb_healcarevalucd.value == '' ) {
  226. messageBox("의평직종을 선택하세요.","I999");
  227. model.setFocus("cmb_healcarevalucd.input");
  228. return;
  229. }
  230. if(!isRequiredControls("lst_grupjobln")) return;
  231. if(!isRequiredControls("lst_jobln")) return;
  232. if(!isRequiredControls("lst_jobkind")) return;
  233. var jobkind = lst_jobkind.value;
  234. var jobkindnm = lst_jobkind.label;
  235. jobkindnmlist = jobkindnm.split("|");
  236. jobkindlist = jobkind.split("|");
  237. for ( var i = 0; i < jobkindlist.length ; i++ ) {
  238. grd_healcarelist.addRow(false);
  239. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("appyy")) = ipt_appyy.value;
  240. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("instcd")) = ipt_instcd.value ;
  241. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("instnm")) = ipt_instnm.value ;
  242. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("healcarecd")) = cmb_healcarevalucd.value ;
  243. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("healcarenm")) = cmb_healcarevalucd.label ;
  244. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("grupjobln")) = lst_grupjobln.label ;
  245. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("grupjoblncd")) = lst_grupjobln.value ;
  246. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobln")) = lst_jobln.label ;
  247. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("joblncd")) = lst_jobln.value ;
  248. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobkind")) = jobkindnmlist[i] ;
  249. grd_healcarelist.valueMatrix(grd_healcarelist.row, grd_healcarelist.colRef("jobkindcd")) = jobkindlist[i] ;
  250. }
  251. model.refresh();
  252. ]]>
  253. </script>
  254. </img>
  255. <button id="btn_save" class="btn5_letter2" style="left:1020px; top:500px; width:42px; height:19px; ">
  256. <caption>저장</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. if( checkKeyColumn("grd_healcarelist") == false) return;
  260. if( misfSave("TXRPS05001") ) {
  261. messageBox("","I001");
  262. btn_init.dispatch("DOMActivate");
  263. btn_search.dispatch("DOMActivate");
  264. }
  265. ]]>
  266. </script>
  267. </button>
  268. </group>
  269. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  270. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  271. <caption>초기화</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. model.setValue("/root/send/grupjobln",'');
  275. model.setValue("/root/send/jobln",'');
  276. model.setValue("/root/send/jobkind",'');
  277. model.refresh();
  278. ]]>
  279. </script>
  280. </button>
  281. </group>
  282. </xhtml:body>
  283. </xhtml:html>