SMRTS03700_전공의BP등록.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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>전공의 BP등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <trngbpno>
  11. <trngbpnolist/>
  12. </trngbpno>
  13. <excel>
  14. <excellist/>
  15. </excel>
  16. </main>
  17. <hidden>
  18. </hidden>
  19. <temp>
  20. </temp>
  21. <init>
  22. <systemflag>T</systemflag>
  23. </init>
  24. <send>
  25. <trngbpno>
  26. <instcd/>
  27. <baseym/>
  28. <deptcd/>
  29. <apprtcdrflag/>
  30. </trngbpno>
  31. <save>
  32. <trngbpnolist/>
  33. </save>
  34. <attach>
  35. <file/>
  36. <instcd/>
  37. </attach>
  38. </send>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. misfGridInit(grd_trngbpnolist);
  44. misfMsterDetailSet(grd_trngbpnolist, null, "TRRTS03701" ,"Y");
  45. misfComboComCdListMulti("R0305,R0151", "cmb_instcd,cmb_apprtcdrflag");
  46. submit("TRRTS00602");
  47. var dutplceinstcd = getUserInfo("dutplceinstcd");
  48. model.setValue("/root/send/trngbpno/instcd", dutplceinstcd);
  49. var today = getCurrentDate();
  50. ipt_baseym.value = today.substring(0, 6);
  51. addComboItem( "cmb_apprtcdrflag", "전체", "", "above");
  52. model.setValue(cmb_apprtcdrflag.attribute("ref"), "");
  53. if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
  54. cmb_instcd.disabled = false;
  55. }else{
  56. cmb_instcd.disabled = true;
  57. }
  58. ]]>
  59. </script>
  60. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngbpno" resultref="/root/main/tisorddeptcdlist"/>
  61. <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
  62. <submission id="TRRTS03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngbpno" resultref="/root/main/trngbpno"/>
  63. <submission id="TXRTS03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  64. <submission id="TXRTS03702" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  71. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  72. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fExcelUpload() {
  76. var maxsize = upload1.attribute("filesize");
  77. var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  78. var filelist = filename.split("|");
  79. model.removeNodeset("/root/main/list/filelist");
  80. model.removeNodeset("/root/send/attach");
  81. //타이틀을 획득한다.
  82. var s = new String(filelist[filelist.length-1]);
  83. var ss = s.split("\\");
  84. if(filename !=""){
  85. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  86. for(var i = 0 ; i < filelist.length ; i++ ){
  87. grd_attach.addRow(false);
  88. if(filelist[i] == ""){
  89. //alert(grd_attach.rows - 1);
  90. grd_attach.removeRow(false);
  91. grd_attach.refresh();
  92. }else{
  93. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  94. //파일크기('tfHelper.checkFileSize' 참조)
  95. var fileCnt = upload1.getFileCount();
  96. var lastIndex = fileCnt - 1;
  97. var fileSize = upload1.getFileSize(lastIndex);
  98. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  99. if (!checkFileSize(upload1)){
  100. grd_attach.removeItem();
  101. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  102. return;
  103. }
  104. }
  105. }
  106. model.makeValue("/root/send/attach/instcd",cmb_instcd.value);
  107. openLoadingBar("파일업로드 작업중입니다... ") ;
  108. submit("TXRTS03702");
  109. closeLoadingBar();
  110. //btn_search.dispatch("DOMActivate");
  111. }
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body>
  117. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  118. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">전공의 BP등록</caption>
  119. </group>
  120. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  121. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  122. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:60px; height:17px; ">년월 :</caption>
  123. <datagrid id="grd_trngbpnolist" nodeset="/root/main/trngbpno/trngbpnolist" caption="임상과^사번^성명^년차^I/R^BP번호^휴대폰^instcd^posdeptcd^posdeptcd^baseym|임상과^사번^성명^년차^I/R^BP번호^휴대폰^instcd^posdeptcd^posdeptcd^baseym" colsep="^" colwidth="351, 157, 149, 99, 97, 156, 140, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
  124. <col ref="deptnm" type="output">
  125. <choices>
  126. <itemset>
  127. <label/>
  128. <value/>
  129. </itemset>
  130. </choices>
  131. </col>
  132. <col ref="emplno" type="inputbutton" style="text-align:center; "/>
  133. <col ref="emplnm" style="text-align:center; "/>
  134. <col ref="anual" style="text-align:center; "/>
  135. <col ref="apprtcdrflag" style="text-align:center; "/>
  136. <col ref="bpno" type="input" style="text-align:center; "/>
  137. <col ref="mpphonno" style="text-align:center; "/>
  138. <col ref="instcd" visibility="hidden"/>
  139. <col ref="posdeptcd" visibility="hidden"/>
  140. </datagrid>
  141. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  142. <caption>조회</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. if ( !isRequiredControls("ipt_baseym", "cmb_instcd") ) {
  146. return false;
  147. }
  148. submit("TRRTS03701");
  149. // if ( !isRequiredControls("ipt_yy", "ipt_mm", "cmb_instcd") ) {
  150. // return false;
  151. // }
  152. // model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  153. // ipt_mm.refresh();
  154. //
  155. // submit("TRRTS03001");
  156. ]]>
  157. </script>
  158. </button>
  159. <script type="javascript" ev:event="onbuttonclick">
  160. <![CDATA[
  161. if(grd_trngbpnolist.col == grd_trngbpnolist.colRef("emplno")){
  162. var recv_list = "emplno,emplnm";
  163. rpbfOpenPopUpList("SPRPB00101", grd_trngbpnolist, recv_list,"ipt_systemflag","N");
  164. model.refresh();
  165. }
  166. ]]>
  167. </script>
  168. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  169. <line id="line1" class="line_1" style="x1:0px; y1:66px; x2:1190px; y2:67px; "/>
  170. <select1 id="cmb_instcd" ref="/root/send/trngbpno/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:260px; top:14px; width:120px; height:19px; ">
  171. <choices>
  172. <itemset>
  173. <label/>
  174. <value/>
  175. </itemset>
  176. </choices>
  177. </select1>
  178. <caption id="cap_instcd" class="search_name" style="left:174px; top:14px; width:94px; height:17px; ">근무병원 :</caption>
  179. <input id="ipt_baseym" ref="/root/send/trngbpno/baseym" inputtype="date" format="yyyy-mm" style="left:65px; top:14px; width:80px; height:19px; "/>
  180. <button id="btn_execl" class="btn2_letter4" style="left:1125px; top:45px; width:64px; height:19px; ">
  181. <caption>엑셀저장</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  185. if (fileName != "") {
  186. grd_trngbpnolist.saveExcel(fileName);
  187. }
  188. ]]>
  189. </script>
  190. </button>
  191. <select1 id="cmb_deptcd" ref="/root/send/trngbpno/deptcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:490px; top:14px; width:125px; height:19px; ">
  192. <choices>
  193. <itemset nodeset="/root/main/tisorddeptcdlist">
  194. <label ref="deptnm"/>
  195. <value ref="deptcd"/>
  196. </itemset>
  197. </choices>
  198. </select1>
  199. <caption id="caption1" class="search_name" style="left:414px; top:14px; width:94px; height:17px; ">임상과 :</caption>
  200. <caption id="caption2" class="search_name" style="left:639px; top:15px; width:99px; height:17px; ">전공의구분 :</caption>
  201. <select1 id="cmb_apprtcdrflag" ref="/root/send/trngbpno/apprtcdrflag" class="combo_s_essential" disabled="false" appearance="minimal" style="left:740px; top:15px; width:125px; height:19px; ">
  202. <choices>
  203. <itemset>
  204. <label/>
  205. <value/>
  206. </itemset>
  207. </choices>
  208. </select1>
  209. <button id="button1" class="btn2_letter3" visibility="hidden" style="left:1015px; top:45px; width:53px; height:19px; ">
  210. <caption>행추가</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  214. if (fileName != "") {
  215. grd_reptinfo.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  216. }
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="button2" class="btn2_letter3" visibility="hidden" style="left:1070px; top:45px; width:53px; height:19px; ">
  221. <caption>행삭제</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  225. if (fileName != "") {
  226. grd_reptinfo.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  227. }
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="button3" class="btn5_letter6" style="left:920px; top:45px; width:76px; height:19px; ">
  232. <caption>엑셀Upload</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. if ( !isRequiredControls("ipt_baseym", "cmb_instcd") ) {
  236. return false;
  237. }
  238. fExcelUpload();
  239. btn_search.dispatch("DOMActivate");
  240. model.refresh();
  241. ]]>
  242. </script>
  243. </button>
  244. <caption id="caption3" style="left:62px; top:45px; width:708px; height:20px; font-weight:bold; color:#ff0000; ">※ Excel Upload 작업시 Excel저장 양식 그대로 작성 하시기 바랍니다.</caption>
  245. <upload id="upload1" nodeset="/root/send/attach/file" ext="xls" filecount="5" filesize="41943040" validate="true" style="left:890px; top:45px; width:20px; height:20px; "/>
  246. <input id="input1" ref="/root/init/systemflag" visibility="hidden" style="left:880px; top:15px; width:95px; height:19px; "/>
  247. </group>
  248. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  249. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
  250. <caption>저장</caption>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. misfSave("TXRTS03701");
  254. btn_search.dispatch("DOMActivate");
  255. model.refresh();
  256. /*
  257. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  258. if ( retMes != 6) {
  259. return;
  260. }
  261. model.setValue("/root/send/save", grd_trngbpnolist.getUpdateData("update"));
  262. if (submit("TXRTS03701")){
  263. grd_trngbpnolist.clearStatus();
  264. }*/
  265. ]]>
  266. </script>
  267. </button>
  268. </group>
  269. <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:605px; top:430px; width:505px; height:69px; ">
  270. <col ref="file" style="text-align:center; "/>
  271. <col ref="filesize" format="#,###" style="text-align:right; "/>
  272. </datagrid>
  273. </xhtml:body>
  274. </xhtml:html>