SPPMB01600_대진신청의사별대상환자조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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. <send>
  10. <data1>
  11. <sess_posinstcd/>
  12. </data1>
  13. <data2>
  14. <orddeptcd/>
  15. <orddrid/>
  16. </data2>
  17. </send>
  18. <main>
  19. <list1>
  20. <grdaltorddrlist/>
  21. </list1>
  22. </main>
  23. <hidden>
  24. <init>
  25. <disccd>
  26. <cd/>
  27. <nm/>
  28. </disccd>
  29. <insukind>
  30. <cd/>
  31. <nm/>
  32. </insukind>
  33. <suppkind>
  34. <cd/>
  35. <nm/>
  36. <up/>
  37. <io/>
  38. </suppkind>
  39. <orddeptcd>
  40. <cd/>
  41. <nm/>
  42. </orddeptcd>
  43. <orddrid>
  44. <cd/>
  45. <nm/>
  46. <dp/>
  47. </orddrid>
  48. <flag>
  49. <prestdd/>
  50. <mskindflag/>
  51. </flag>
  52. <wardcd>
  53. <cd/>
  54. <nm/>
  55. </wardcd>
  56. <roomcd>
  57. <cd/>
  58. <nm/>
  59. <wd/>
  60. </roomcd>
  61. </init>
  62. <session/>
  63. <source>
  64. <orddeptcd/>
  65. <orddrid/>
  66. </source>
  67. <temp/>
  68. <specprn/>
  69. </hidden>
  70. <init>
  71. <P0325list>
  72. <P0325>
  73. <cdid/>
  74. <cdnm/>
  75. </P0325>
  76. </P0325list>
  77. </init>
  78. </root>
  79. </instance>
  80. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. fGetUserInfosSampling(); //세션정보....
  84. zbcfGetCodeList(new Array("P0325"), new Array("/root/init/P0325list")); //공통코드
  85. grd_altorddrlist.fixedcellcheckbox(0,1) = true;
  86. model.setValue("/root/send/data1/sess_posinstcd",model.getValue("/root/hidden/session/posinstcd"));
  87. submit("TRPMB00302");
  88. var inpt_orddeptcd = model.getValue("/root/hidden/source/orddeptcd");
  89. var inpt_orddrid = model.getValue("/root/hidden/source/orddrid");
  90. if (inpt_orddeptcd != null && inpt_orddeptcd != " " && inpt_orddeptcd != "") {
  91. model.setValue("/root/send/data2/orddeptcd",inpt_orddeptcd);
  92. }
  93. if (inpt_orddrid != null && inpt_orddrid != " " && inpt_orddrid != "") {
  94. model.setValue("/root/send/data2/orddrid",inpt_orddrid);
  95. }
  96. submit("TRPMB01602");
  97. ]]>
  98. </script>
  99. <submission id="TRPMB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/init"/>
  100. <submission id="TRPMB01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/list1/grdaltorddrlist"/>
  101. </model>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  105. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  107. <script type="javascript">
  108. <![CDATA[
  109. //세션정보
  110. function fGetUserInfosSampling()
  111. {
  112. var sUserInfosS = getUserInfos();
  113. sUserInfosS = sUserInfosS + "|";
  114. var UserInfosS_Array = sUserInfosS.split("|");
  115. var userid = UserInfosS_Array[0]; //사용자번호
  116. var usernm = UserInfosS_Array[1]; //사용자이름
  117. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  118. var posinstnm = UserInfosS_Array[3]; //소속기관명
  119. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  120. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  121. model.makeNode("/root/hidden/session/" + "userid");
  122. model.makeNode("/root/hidden/session/" + "usernm");
  123. model.makeNode("/root/hidden/session/" + "posinstcd");
  124. model.makeNode("/root/hidden/session/" + "posinstnm");
  125. model.makeNode("/root/hidden/session/" + "posdeptcd");
  126. model.makeNode("/root/hidden/session/" + "posdeptnm")
  127. if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
  128. if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
  129. model.setValue("/root/hidden/session/userid",userid);
  130. model.setValue("/root/hidden/session/usernm",usernm);
  131. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  132. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  133. model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
  134. model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
  135. model.refresh();
  136. }
  137. function fInitialize(){
  138. model.resetInstanceNode("/root/send");
  139. model.resetInstanceNode("/root/main");
  140. model.resetInstanceNode("/root/main/drholiordsche");
  141. model.setValue("/root/main/srchflag","A");
  142. //조회조건 세팅
  143. model.setValue("/root/main/srchcond", 'A'); //휴진기간 조회로 세팅
  144. //end..
  145. //날자 입력 항목에 오늘 날자 세팅
  146. var curDate = getCurrentDate();
  147. model.setValue("/root/main/fromdd", curDate);
  148. //현재일자 + 1달
  149. curDate = curDate.toDate().getAddDate(1,"M");
  150. var nextDate = curDate.getFullYear();
  151. nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
  152. nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
  153. model.setValue("/root/main/todd", nextDate);
  154. radio1.visible = true;
  155. ipt_fromdd.attribute("left") = "473px";
  156. caption10.attribute("left") = "560px";
  157. ipt_todd.attribute("left") = "575px";
  158. caption5.attribute("left") = "671px";
  159. cmb_orddeptcd.attribute("left") = "745px";
  160. caption7.attribute("left") = "956px";
  161. cmb_orddrid.attribute("left") = "1044px";
  162. grd_holische.colHidden(5) = false;
  163. grd_holische.colHidden(6) = true;
  164. grd_holische.colHidden(7) = true;
  165. grd_holische.colHidden(8) = false;
  166. grd_holische.colHidden(9) = false;
  167. grd_holische.colHidden(10) = false;
  168. grd_holische.colHidden(11) = false;
  169. grd_holische.colHidden(12) = false;
  170. grd_holische.colHidden(13) = false;
  171. grd_holische.colHidden(14) = true;
  172. model.refresh();
  173. }
  174. function fDataCheck( flag ){
  175. var ordendcnfmyn = "";
  176. for( var i = grd_holische.fixedRows; i < grd_holische.rows; i++){
  177. //model.getValue("/root/main/ordlist/ordschecrite/ordschecritelist[" + (i - 1) + "]/check")
  178. if( grd_holische.valueMatrix( i, grd_holische.colRef("check") ) == 'Y' ){
  179. if( flag == 'ok' ){
  180. if( 'Y' == model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/ordendcnfmyn")){
  181. messageBox("이미 마감확인 하신 휴진일정을 다시 마감확인 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
  182. return false;
  183. }
  184. }else{
  185. if( 'Y' != model.getValue("/root/main/drholiordsche/drholiordschelist[" + i + "]/ordendcnfmyn")){
  186. messageBox("마감확인 하지 않은 휴진일정을 마감취소 하실 수 없습니다.( " + i + " 번째 줄 확인! )", "E999", "");
  187. return false;
  188. }
  189. }
  190. }
  191. }
  192. return true;
  193. }
  194. //의사휴진일정 조회
  195. function fSearchDrHoliSche(strFlag){
  196. // model.resetInstanceNode("/root/send");
  197. var checkflag = model.getValue("/root/main/srchflag");
  198. model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
  199. model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
  200. model.setValue("/root/send/srchcond", model.getValue("/root/main/srchcond"));
  201. model.setValue("/root/send/fromdd", model.getValue("/root/main/fromdd"));
  202. model.setValue("/root/send/todd", model.getValue("/root/main/todd"));
  203. if(checkflag == 'A') {
  204. if( model.getValue("/root/send/srchcond") !='' && model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
  205. submit("TRPMB00901");
  206. }else{
  207. messageBox("조회기간 정보를 입려하지", "E007");
  208. }
  209. }
  210. else if(checkflag == 'B') {
  211. if( model.getValue("/root/send/srchcond") !='' && model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
  212. submit("TRPMB00902");
  213. }else{
  214. messageBox("조회기간 정보를 입려하지", "E007");
  215. }
  216. }
  217. model.refresh();
  218. }
  219. ]]>
  220. </script>
  221. </xhtml:head>
  222. <xhtml:body pagewidth="800" pageheight="784" guideline="1,876;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  223. <group id="group1" style="left:0px; top:0px; width:780px; height:13px; ">
  224. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:13px; ">대진신청 의사별 대상환자 조회</caption>
  225. </group>
  226. <group id="group3" scroll="auto" style="left:0px; top:13px; width:780px; height:744px; ">
  227. <col type="checkbox"/>
  228. <caption id="caption4" class="tit_2" style="left:5px; top:10px; width:214px; height:13px; ">대진신청 의사별 대상환자 리스트</caption>
  229. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:780px; y2:25px; "/>
  230. <datagrid id="grd_altorddrlist" nodeset="/root/main/list1/grdaltorddrlist" class="datagrid2" caption="^진료과^휴진신청의사^환자번호^환자성명^입원일자^병동^병실^선택진료여부" colsep="^" colwidth="22, 117, 85, 79, 82, 80, 140, 76, 60" dataheight="25" explorerbar="sort" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:30px; width:780px; height:714px; ">
  231. <col ref="checkflag" type="checkbox"/>
  232. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  233. <choices>
  234. <itemset nodeset="/root/hidden/init/orddeptcd">
  235. <label ref="nm"/>
  236. <value ref="cd"/>
  237. </itemset>
  238. </choices>
  239. </col>
  240. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  241. <choices>
  242. <itemset nodeset="/root/hidden/init/orddrid">
  243. <label ref="nm"/>
  244. <value ref="cd"/>
  245. </itemset>
  246. </choices>
  247. </col>
  248. <col ref="pid" style="text-align:center; "/>
  249. <col ref="hngnm" style="text-align:center; "/>
  250. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  251. <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
  252. <choices>
  253. <itemset nodeset="/root/hidden/init/wardcd">
  254. <label ref="nm"/>
  255. <value ref="cd"/>
  256. </itemset>
  257. </choices>
  258. </col>
  259. <col ref="roomcd" style="text-align:center; "/>
  260. <col disabled="true" ref="specordyn" type="combo" style="text-align:center; ">
  261. <choices>
  262. <itemset nodeset="/root/init/P0325list/P0325">
  263. <label ref="cdnm"/>
  264. <value ref="cdid"/>
  265. </itemset>
  266. </choices>
  267. </col>
  268. <script type="javascript" ev:event="onclick">
  269. <![CDATA[]]>
  270. </script>
  271. </datagrid>
  272. <iviewer id="iviewer1" visibility="hidden" src="../../../emr/formmngtweb/xrw/SSMRF03800_OCR뷰어.xrw" style="left:250px; top:245px; width:450px; height:150px; "/>
  273. </group>
  274. <group id="group2" scroll="auto" style="left:0px; top:757px; width:780px; height:27px; ">
  275. <button id="btn_saveSche7" class="btn4_letter3" visibility="hidden" style="left:709px; top:5px; width:68px; height:22px; ">
  276. <caption>초기화</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. fInitialize();
  280. ]]>
  281. </script>
  282. </button>
  283. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:780px; y2:0px; "/>
  284. <button id="button1" class="btn3_letter5" style="left:0px; top:5px; width:92px; height:22px; ">
  285. <caption>선택신청서</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. model.removeNodeset("/root/hidden/temp");
  289. model.makeNode("/root/hidden/temp");
  290. model.removeNodeset("/root/hidden/specprn");
  291. model.makeNode("/root/hidden/specprn");
  292. model.resetInstanceNode("/root/hidden/temp");
  293. var nodeList = instance1.selectNodes("/root/main/list1/grdaltorddrlist[checkflag='true']");
  294. var rCSV = getNodeListCSV(nodeList);
  295. model.setValue("/root/hidden/temp", rCSV);
  296. var CSV = model.getValue("/root/hidden/temp");
  297. if (CSV == null || CSV == "" || CSV == " ") {
  298. messageBox("선택된 데이터가","I004","");
  299. return false;
  300. } else {
  301. setCSVToNode("/root/hidden/specprn", CSV);
  302. if( getNodesetCount("/root/hidden/specprn/list/pid") > 0 ){
  303. for( i = 1; i <= getNodesetCount("/root/hidden/specprn/list/pid"); i++)
  304. {
  305. iviewer1.window.javascript.fGetOCRInfo("0000001800",model.getValue("/root/hidden/specprn/list[" + i + "]/pid"),
  306. model.getValue("/root/hidden/specprn/list[" + i + "]/indd"),model.getValue("/root/hidden/specprn/list[" + i + "]/cretno"),
  307. model.getValue("/root/hidden/specprn/list[" + i + "]/ordtype"), "3", "Y");
  308. iviewer1.window.javascript.fPrint();
  309. }
  310. }
  311. }
  312. ]]>
  313. </script>
  314. </button>
  315. </group>
  316. </xhtml:body>
  317. </xhtml:html>