SMRTR01100_인턴병원생성TO관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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>인턴 병원생성 TO관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <instdivmancntlist/>
  11. </main>
  12. <send>
  13. <yy/>
  14. <fstlattrmflag>1</fstlattrmflag>
  15. <instcd/>
  16. <supinfqurtyyflag/>
  17. <instdivmancntlist/>
  18. <workgbn/>
  19. </send>
  20. <init>
  21. <fstlattrmflag>
  22. <label>전기</label>
  23. <value>1</value>
  24. <label>전기+후기</label>
  25. <value>2</value>
  26. </fstlattrmflag>
  27. </init>
  28. <hidden>
  29. <freemessage/>
  30. </hidden>
  31. <temp>
  32. </temp>
  33. </root>
  34. </instance>
  35. <submission id="TRRTR01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/instdivmancntlist"/>
  36. <submission id="TXRTR01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instdivmancntlist" resultref="/root/temp"/>
  37. <submission id="TXRTR01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  38. <submission id="TRRTR01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stat"/>
  39. <bind id="bind1" ref="/root/main/instdivmancntlist[instcd = '9998']/tschmanpsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/tschmanpsnnocnt)"/>
  40. <bind id="bind2" ref="/root/main/instdivmancntlist[instcd = '9998']/tschwompsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/tschwompsnnocnt)"/>
  41. <bind id="bind3" ref="/root/main/instdivmancntlist[instcd = '9998']/dschmanpsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/dschmanpsnnocnt)"/>
  42. <bind id="bind4" ref="/root/main/instdivmancntlist[instcd = '9998']/dschwompsnnocnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/dschwompsnnocnt)"/>
  43. <bind id="bind5" ref="/root/main/instdivmancntlist[instcd = '9998']/totmancnt" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/totmancnt)"/>
  44. <bind id="bind6" ref="/root/main/instdivmancntlist[instcd = '9998']/capadif" calculate="sum(/root/main/instdivmancntlist[instcd!= '9998' and instcd!='9999']/capadif)"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  51. <script type="javascript" src="../../../com/emailsenderweb/js/ZME001.js"/>
  52. <script type="javascript" ev:event="xforms-ready">
  53. <![CDATA[
  54. grd_instdivmancntlist.attribute("backcoloralternate") = "";
  55. //사용자 권한
  56. fCheckAuth();
  57. // 그리드 초기화
  58. misfGridInit(grd_instdivmancntlist);
  59. misfMsterDetailSet(grd_instdivmancntlist, null, "TRRTR01101", "Y");
  60. //misfComboComCdList('Z0007',cmb_instcd);
  61. misfComboComCdListMulti("R0237,Z0007", "cmb_supinfqurtyyflag,cmb_instcd");
  62. misfComboCopyItemSet(cmb_instcd, "", grd_instdivmancntlist, "instcd");
  63. // 2007-11-16 년도 디폴트설정 acwon수정
  64. /*var sDate = getNewDate();
  65. model.setValue("/root/send/yy", sDate.getFullYear());
  66. model.refresh();*/
  67. var today = getCurrentDate();
  68. var cur_mm = parseInt(today.substring(4, 6));
  69. var cur_yy = parseInt(today.substring(0, 4));
  70. if (cur_mm >= 11)
  71. cur_yy++;
  72. model.setValue("/root/send/yy", cur_yy);
  73. model.refresh();
  74. //end
  75. //그리드의 타이틀을 누르면 sort되는 기능
  76. grd_instdivmancntlist.explorerbar = "sort";
  77. ]]>
  78. </script>
  79. <script type="javascript">
  80. <![CDATA[
  81. //========================================================================================
  82. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  83. //========================================================================================
  84. function fCheckAuth() {
  85. btn_search.disabled = !checkAuth("R") ;
  86. btn_save.disabled = !checkAuth("X") ;
  87. }
  88. function fGetIntvPracScheGrid() {
  89. misfMsterDetailRetrieve();
  90. }
  91. function ftotManCnt(){
  92. var instcapa = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("instcapa"));
  93. var tschmanpsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("tschmanpsnnocnt"));
  94. var tschwompsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("tschwompsnnocnt"));
  95. var dschmanpsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("dschmanpsnnocnt"));
  96. var dschwompsnnocnt = grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("dschwompsnnocnt"));
  97. if(tschmanpsnnocnt ==''){
  98. tschmanpsnnocnt=0;
  99. }else{
  100. tschmanpsnnocnt=tschmanpsnnocnt;
  101. }
  102. if(tschwompsnnocnt ==''){
  103. tschwompsnnocnt=0;
  104. }else{
  105. tschwompsnnocnt=tschwompsnnocnt;
  106. }
  107. if(dschmanpsnnocnt ==''){
  108. dschmanpsnnocnt=0;
  109. }else{
  110. dschmanpsnnocnt=dschmanpsnnocnt;
  111. }
  112. if(dschwompsnnocnt ==''){
  113. dschwompsnnocnt=0;
  114. }else{
  115. dschwompsnnocnt=dschwompsnnocnt;
  116. }
  117. if(grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("tschmanpsnnocnt")||grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("tschwompsnnocnt")
  118. ||grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("dschmanpsnnocnt")||grd_instdivmancntlist.col == grd_instdivmancntlist.colRef("dschwompsnnocnt")){
  119. totmancnt=parseInt(tschmanpsnnocnt)+parseInt(tschwompsnnocnt)+parseInt(dschmanpsnnocnt)+parseInt(dschwompsnnocnt);
  120. grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("totmancnt")) = totmancnt;
  121. grd_instdivmancntlist.valueMatrix(grd_instdivmancntlist.row, grd_instdivmancntlist.colRef("capadif")) =parseInt(totmancnt)-parseInt(instcapa);
  122. }
  123. }
  124. ]]>
  125. </script>
  126. </xhtml:head>
  127. <xhtml:body guideline="1,-3;1,1125;" style="margin-left:8; margin-right:8; ">
  128. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  129. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인턴 병원생성 TO관리</caption>
  130. </group>
  131. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:727px; ">
  132. <group id="group4" style="left:0px; top:5px; width:1195px; height:40px; vertical-align:top; ">
  133. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  134. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
  135. <caption>조회</caption>
  136. <script type="javascript" ev:event="DOMActivate">
  137. <![CDATA[
  138. //필수 입력 항목 체크(공통 ftHelper.js)
  139. if ( !isRequiredControls("ipt_yy","supinfqurtyyflag","cmb_fstlattrmflag") ) {
  140. return false;
  141. }
  142. fGetIntvPracScheGrid();
  143. var colidx = grd_instdivmancntlist.colRef("instcd");
  144. for (var i=1; i<=grd_instdivmancntlist.rows; i++)
  145. {
  146. if (grd_instdivmancntlist.valueMatrix(i, colidx) == "9998")
  147. {
  148. grd_instdivmancntlist.rowStyle(i, "all", "background-color") = "#eeffff";
  149. }
  150. else if (grd_instdivmancntlist.valueMatrix(i, colidx) == "9999")
  151. {
  152. grd_instdivmancntlist.rowStyle(i, "all", "background-color") = "#ededed";
  153. }
  154. }
  155. // grd_instdivmancntlist.subtotal("clear", 0, 0);
  156. // grd_instdivmancntlist.subtotalPosition = "below";
  157. // grd_instdivmancntlist.multiTotals = true;
  158. //
  159. //
  160. // grd_instdivmancntlist.subtotal("sum", -1, 3, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
  161. // grd_instdivmancntlist.subtotal("sum", -1, 4, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
  162. // grd_instdivmancntlist.subtotal("sum", -1, 5, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
  163. // grd_instdivmancntlist.subtotal("sum", -1, 6, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
  164. // grd_instdivmancntlist.subtotal("sum", -1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
  165. // grd_instdivmancntlist.subtotal("sum", -1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
  166. // grd_instdivmancntlist.subtotal("sum", -1, 9, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 1, "계", false);
  167. ]]>
  168. </script>
  169. </button>
  170. <line id="line1" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  171. <caption id="cap_yy" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">년 도 :</caption>
  172. <caption id="cap_fstlattrmflag" class="search_name" style="left:435px; top:10px; width:86px; height:17px; ">전후기 :</caption>
  173. <select1 id="cmb_fstlattrmflag" ref="/root/send/fstlattrmflag" class="combo_s_essential" navindex="3" appearance="minimal" style="left:525px; top:11px; width:100px; height:19px; ">
  174. <choices>
  175. <itemset nodeset="/root/init/fstlattrmflag">
  176. <label ref="label"/>
  177. <value ref="value"/>
  178. </itemset>
  179. </choices>
  180. </select1>
  181. <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" format="yyyy" style="left:100px; top:10px; width:100px; height:19px; "/>
  182. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:685px; top:10px; width:144px; height:19px; ">
  183. <choices>
  184. <itemset>
  185. <label/>
  186. <value/>
  187. </itemset>
  188. </choices>
  189. </select1>
  190. <input id="input1" ref="/root/send/workgbn" visibility="hidden" style="left:900px; top:10px; width:70px; height:19px; "/>
  191. <select1 id="cmb_supinfqurtyyflag" ref="/root/send/supinfqurtyyflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:310px; top:10px; width:100px; height:19px; ">
  192. <choices>
  193. <itemset>
  194. <label/>
  195. <value/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. <caption id="cap_supinfqurtyyflag" class="search_name" style="left:225px; top:9px; width:86px; height:17px; ">상하반기 :</caption>
  200. </group>
  201. <caption id="caption11" class="tit_2" style="left:5px; top:50px; width:139px; height:13px; ">기관별 정원배정관리</caption>
  202. <button id="button4" class="btn2_letter4" style="left:1125px; top:45px; width:64px; height:19px; ">
  203. <caption>엑셀저장</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  207. if (fileName != "") {;
  208. grd_instdivmancntlist.saveExcel(fileName);
  209. }
  210. ]]>
  211. </script>
  212. </button>
  213. <line id="line3" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
  214. <button id="btn_grddel" class="btn2_letter3" style="left:1071px; top:45px; width:53px; height:19px; ">
  215. <caption>행삭제</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. misfGridIUD(grd_instdivmancntlist,"D");
  219. model.refresh();
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="btn_grdadd" class="btn2_letter3" style="left:1015px; top:45px; width:53px; height:19px; ">
  224. <caption>행추가</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. misfGridIUD(grd_instdivmancntlist, "A");
  228. ]]>
  229. </script>
  230. </button>
  231. <datagrid id="grd_instdivmancntlist" nodeset="/root/main/instdivmancntlist" caption="년도^기관^정원수^본교남^본교여^타교남^타교여^합계^차이" colsep="^" colwidth="100, 140, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:70px; width:1195px; height:640px; ">
  232. <col ref="yy" style="text-align:center; background-color:#ededed; "/>
  233. <col id="instcd" ref="instcd" type="combo" style="background-color:#ededed; ">
  234. <choices>
  235. <itemset>
  236. <label/>
  237. <value/>
  238. </itemset>
  239. </choices>
  240. </col>
  241. <col ref="instcapa" type="input" format="#,###" style="text-align:center; background-color:#ededed; "/>
  242. <col ref="tschmanpsnnocnt" type="input" format="#,###" style="text-align:center; "/>
  243. <col ref="tschwompsnnocnt" type="input" format="#,###" style="text-align:center; "/>
  244. <col ref="dschmanpsnnocnt" type="input" format="#,###" style="text-align:center; "/>
  245. <col ref="dschwompsnnocnt" type="input" format="#,###" style="text-align:center; "/>
  246. <col disabled="true" ref="totmancnt" type="output" format="#,###" style="text-align:center; background-color:#eeffff; "/>
  247. <col disabled="true" ref="capadif" type="input" format="(-)#,###" style="text-align:center; background-color:#eeffff; "/>
  248. <script type="javascript" ev:event="xforms-value-changed">
  249. <![CDATA[
  250. ftotManCnt();
  251. ]]>
  252. </script>
  253. </datagrid>
  254. <button id="button1" class="btn5_letter10" navindex="99" style="left:540px; top:45px; width:130px; height:19px; ">
  255. <caption>1. 기관별세부T-O생성</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. var retMes = messageBox("기관별 세부T-O를 생성 하시겠습니까?", "Q999");
  259. if ( retMes != 6) {
  260. return;
  261. }
  262. if ( !isRequiredControls("ipt_yy", "cmb_fstlattrmflag") ) {
  263. return false;
  264. }
  265. model.setValue("/root/send/workgbn","TO");
  266. submit("TXRTR01102");
  267. btn_search.dispatch("DOMActivate");
  268. ]]>
  269. </script>
  270. </button>
  271. <button id="button2" class="btn5_letter5" navindex="99" style="left:671px; top:45px; width:75px; height:19px; ">
  272. <caption>2. 병원배정</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. var retMes = messageBox("병원배정 자료를 생성 하시겠습니까?", "Q999");
  276. if ( retMes != 6) {
  277. return;
  278. }
  279. if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag", "cmb_fstlattrmflag") ) {
  280. return false;
  281. }
  282. model.setValue("/root/send/workgbn","DIV");
  283. submit("TXRTR01102");
  284. btn_search.dispatch("DOMActivate");
  285. ]]>
  286. </script>
  287. </button>
  288. <button id="button7" class="btn5_letter10" navindex="99" style="left:747px; top:45px; width:126px; height:19px; ">
  289. <caption>3. 인턴배정예외자관리</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. modal("SMRTR01400","","40","40","popup", "" ,"");
  293. ]]>
  294. </script>
  295. </button>
  296. <button id="button3" class="btn5_letter9" navindex="99" style="left:878px; top:45px; width:119px; height:19px; ">
  297. <caption>4. 인턴배정병원 조회</caption>
  298. <script type="javascript" ev:event="DOMActivate">
  299. <![CDATA[
  300. submit("TRRTR01102");
  301. grup_stat.visible = true;
  302. ]]>
  303. </script>
  304. </button>
  305. <group id="grup_stat" visibility="hidden" style="left:395px; top:95px; width:798px; height:625px; border-color:#c0c0c0; border-width:3px; border-style:solid; ">
  306. <datagrid id="grd_stat" nodeset="/root/main/stat/intnsethospstatlist" caption="사원번호^성명^성별^학교구분^석차^상반기병원^하반기병원^희망병원 1^희망병원 2^희망병원 3^희망병원 4^출신교" colsep="^" colwidth="70, 70, 50, 50, 50, 90, 90, 70, 70, 70, 70, 90" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:23px; width:792px; height:594px; ">
  307. <col ref="emplno"/>
  308. <col ref="korname"/>
  309. <col ref="gndr"/>
  310. <col ref="schflag"/>
  311. <col ref="rank"/>
  312. <col ref="firstinstcd"/>
  313. <col ref="secondinstcd"/>
  314. <col ref="hosp1"/>
  315. <col ref="hosp2"/>
  316. <col ref="hosp3"/>
  317. <col ref="hosp4"/>
  318. <col ref="schnm"/>
  319. </datagrid>
  320. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:139px; height:13px; ">인턴 배정병원 조회</caption>
  321. <button id="button5" class="btn2_letter4" style="left:677px; top:2px; width:64px; height:19px; ">
  322. <caption>엑셀저장</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  326. if (fileName != "") {;
  327. grd_stat.saveExcel(fileName);
  328. }
  329. ]]>
  330. </script>
  331. </button>
  332. <button id="button6" class="btn2_letter2" style="left:747px; top:2px; width:42px; height:19px; ">
  333. <caption>닫기</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. grup_stat.visible = false;
  337. ]]>
  338. </script>
  339. </button>
  340. </group>
  341. </group>
  342. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  343. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  344. <caption>저장</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  348. if ( retMes != 6) {
  349. return;
  350. }
  351. var updtdata = getGridUpdateData(grd_instdivmancntlist);
  352. if (updtdata == "") {
  353. messageBox("변경된 데이터가","I004");
  354. return;
  355. }
  356. misfSave("TXRTR01101");
  357. btn_search.dispatch("DOMActivate");
  358. // misfMsterDetailRetrieve();
  359. //model.refresh();
  360. ]]>
  361. </script>
  362. </button>
  363. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  364. </group>
  365. </xhtml:body>
  366. </xhtml:html>