SPPMI02900_외래전환.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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. <otptlist>
  11. <grdoutchoshist/>
  12. </otptlist>
  13. <inpt>
  14. <inpt_pid/>
  15. <inpt_cretno/>
  16. <inpt_indd/>
  17. <inpt_mskind/>
  18. </inpt>
  19. </main>
  20. <send>
  21. <data1>
  22. <pid/>
  23. <mskind/>
  24. <indd/>
  25. <cretno/>
  26. <out_orddd/>
  27. <out_cretno/>
  28. </data1>
  29. <data2>
  30. <sess_posinstcd/>
  31. </data2>
  32. <data3>
  33. <s_inpt/>
  34. <s_flag>
  35. <flag/>
  36. </s_flag>
  37. </data3>
  38. </send>
  39. <hidden>
  40. <init>
  41. <disccd>
  42. <cd/>
  43. <nm/>
  44. </disccd>
  45. <insukind>
  46. <cd/>
  47. <nm/>
  48. </insukind>
  49. <suppkind>
  50. <cd/>
  51. <nm/>
  52. <up/>
  53. <io/>
  54. </suppkind>
  55. <orddeptcd>
  56. <cd/>
  57. <nm/>
  58. </orddeptcd>
  59. <orddrid>
  60. <cd/>
  61. <nm/>
  62. <dp/>
  63. <sp/>
  64. </orddrid>
  65. <flag>
  66. <prestdd/>
  67. <mskindflag/>
  68. </flag>
  69. <wardcd>
  70. <cd/>
  71. <nm/>
  72. <of/>
  73. </wardcd>
  74. <roomcd>
  75. <cd/>
  76. <nm/>
  77. <wd/>
  78. <gr/>
  79. <ty/>
  80. </roomcd>
  81. </init>
  82. <session/>
  83. <temp/>
  84. <rsltflag>
  85. <rgst_cnt>
  86. <cvrt_cnt/>
  87. </rgst_cnt>
  88. </rsltflag>
  89. </hidden>
  90. <init>
  91. <P0032list>
  92. <P0032>
  93. <cdnm/>
  94. <cdid/>
  95. </P0032>
  96. </P0032list>
  97. <P0021list>
  98. <P0021>
  99. <cdnm/>
  100. <cdid/>
  101. </P0021>
  102. </P0021list>
  103. <P0006list>
  104. <P0006>
  105. <cdnm/>
  106. <cdid/>
  107. </P0006>
  108. </P0006list>
  109. </init>
  110. </root>
  111. </instance>
  112. <script type="javascript" ev:event="xforms-ready">
  113. <![CDATA[
  114. zbcfGetCodeList(new Array("P0006","P0021","P0032"),new Array("/root/init/P0006list","/root/init/P0021list","/root/init/P0032list"));
  115. if (instance1.selectSingleNode("/root/init/P0032list") != null) {
  116. model.setValue("/root/init/P0032list/P0032/cdid","-");
  117. model.setValue("/root/init/P0032list/P0032/cdnm","-");
  118. }
  119. fGetUserInfosSampling();//세션정보
  120. grd_outchoshist.fixedcellcheckbox(0,1) = true;
  121. model.setValue("/root/send/data2/sess_posinstcd",model.getValue("/root/hidden/session/posinstcd"));
  122. submit("TRPMI00106");
  123. fPatOutChosList();
  124. //fPatTelInfoRef();
  125. model.refresh();
  126. ]]>
  127. </script>
  128. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  129. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
  130. <submission id="TRPMI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/otptlist"/>
  131. <submission id="TXPMI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="root/hidden/rsltflag"/>
  132. </model>
  133. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  135. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  137. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  138. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  139. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  140. <script type="javascript">
  141. <![CDATA[
  142. function fPatOutChosList()
  143. {
  144. //inpt생성 전환버튼누를시 기준
  145. model.setValue("/root/main/inpt/inpt_pid" ,model.getValue("/root/send/data1/pid"));
  146. model.setValue("/root/main/inpt/inpt_mskind" ,model.getValue("/root/send/data1/mskind"));
  147. model.setValue("/root/main/inpt/inpt_indd" ,model.getValue("/root/send/data1/indd"));
  148. model.setValue("/root/main/inpt/inpt_cretno" ,model.getValue("/root/send/data1/cretno"));
  149. if(model.getValue("/root/send/data1/out_orddd") == "") {
  150. model.setValue("/root/send/data1/out_orddd" ,model.getValue("/root/send/data1/indd"));
  151. }
  152. if(model.getValue("/root/send/data1/out_cretno") == "") {
  153. model.setValue("/root/send/data1/out_cretno" ,model.getValue("/root/send/data1/cretno"));
  154. }
  155. var otpt_pid = model.getValue("/root/send/data1/pid");
  156. if (otpt_pid != null && otpt_pid !="" && otpt_pid != " ") {
  157. submit("TRPMI02901");
  158. }
  159. }
  160. //세션정보
  161. function fGetUserInfosSampling()
  162. {
  163. var sUserInfosS = getUserInfos();
  164. sUserInfosS = sUserInfosS + "|";
  165. var UserInfosS_Array = sUserInfosS.split("|");
  166. var userid = UserInfosS_Array[0]; //사용자번호
  167. var usernm = UserInfosS_Array[1]; //사용자이름
  168. //var posinstcd = UserInfosS_Array[2]; //소속기관코드
  169. //var posinstnm = UserInfosS_Array[3]; //소속기관명
  170. var posinstcd = UserInfosS_Array[6]; //근무지기관코드 2009.04.15
  171. var posinstnm = UserInfosS_Array[7]; //근무지기관명 2009.04.15
  172. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  173. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  174. model.makeNode("/root/hidden/session/" + "userid");
  175. model.makeNode("/root/hidden/session/" + "usernm");
  176. model.makeNode("/root/hidden/session/" + "posinstcd");
  177. model.makeNode("/root/hidden/session/" + "posinstnm");
  178. model.makeNode("/root/hidden/session/" + "posdeptcd");
  179. model.makeNode("/root/hidden/session/" + "posdeptnm")
  180. if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
  181. //if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "";
  182. model.setValue("/root/hidden/session/userid",userid);
  183. model.setValue("/root/hidden/session/usernm",usernm);
  184. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  185. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  186. model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
  187. model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
  188. model.refresh();
  189. }
  190. ]]>
  191. </script>
  192. </xhtml:head>
  193. <xhtml:body pagewidth="784" pageheight="350" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  194. <group id="group3" scroll="auto" style="left:0px; top:0px; width:765px; height:330px; ">
  195. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:108px; height:13px; ">외래내원내역</caption>
  196. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:765px; y2:25px; "/>
  197. <group id="group1" scroll="auto" style="left:0px; top:303px; width:760px; height:27px; ">
  198. <button id="btn_confirm" class="btn4_letter2" style="left:645px; top:5px; width:56px; height:22px; ">
  199. <caption>전환</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. var cnt = getNodesetCount("/root/main/otptlist/grdoutchoshist[cvrtflag='true']");
  203. if(cnt <1){
  204. messageBox("내역을 선택해주십시오!","I999");
  205. return;
  206. }
  207. model.removenode("/root/send/data3");
  208. model.makeNode("/root/send/data3");
  209. model.makeNode("/root/send/data3/s_inpt");
  210. var otptlist = instance1.selectNodes("/root/main/otptlist/grdoutchoshist[cvrtflag='true']");
  211. var otpt_rcvtmp = getNodeListCSV(otptlist);
  212. model.setValue("/root/hidden/temp", otpt_rcvtmp);
  213. var otpt_tmp = model.getValue("/root/hidden/temp");
  214. setCSVToNode("/root/send/data3", otpt_tmp);
  215. copyNodeType("/root/send/data3/s_inpt","/root/main/inpt","replace");
  216. model.makeValue("/root/send/data3/s_flag/flag","R");
  217. // 20100601 JHP 수정이력 : 보험(61,71,81), 보조(10,11,37,38,60)번에대해 덤프 막혀있지만 이건 막힘과 상관없이 진행되게 한다.
  218. // 입원등록의 입원전환버튼에서만 dumpflag를 만들어준다. 다른곳에서는 안만들어주므로 무조건 dump된다 .
  219. var dumpcnt = getNodesetCount("/root/send/data1/dumpflag");
  220. if(dumpcnt > 0){
  221. model.makeValue("/root/send/data3/s_dumpflag/dumpflag","Y");
  222. }
  223. if(submit("TXPMI02901")){
  224. // messageBox("입원 전환 완료 됐습니다.", "I999", "");
  225. // model.window.close();
  226. model.removeNodeset("/root/main/otptlist/grdoutchoshist[cvrtflag='true']");
  227. model.refresh();
  228. }
  229. // var cvrt_cnt = model.getValue("/root/hidden/rsltflag/rgst_cnt/cvrt_cnt");
  230. // if (cvrt_cnt != null && cvrt_cnt != " " && cvrt_cnt != "" && cvrt_cnt != "-") {
  231. // fPatOutChosList();
  232. // model.refresh();
  233. // }
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="btn_cancel" class="btn4_letter2" style="left:704px; top:5px; width:56px; height:22px; ">
  238. <caption>닫기</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. window.close();
  242. ]]>
  243. </script>
  244. </button>
  245. <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:760px; y2:0px; "/>
  246. </group>
  247. <datagrid id="grd_outchoshist" nodeset="/root/main/otptlist/grdoutchoshist" caption="^환자번호^환자성명^진료일자^진료시간^진료과^진료의사^선택^주/부^초/재^보험유형^보조유형^유형보조사유^진찰료^선후불^수납^caption1^caption3^caption2" colsep="^" colwidth="22, 76, 76, 80, 62, 120, 76, 52, 52, 52, 72, 72, 90, 72, 72, 72, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:30px; width:765px; height:273px; ">
  248. <col ref="cvrtflag" type="checkbox"/>
  249. <col ref="pid"/>
  250. <col ref="hngnm"/>
  251. <col ref="orddd" format="yyyy-mm-dd"/>
  252. <col ref="ordtm" format="hh:nn"/>
  253. <col disabled="true" ref="orddeptcd" type="combo">
  254. <choices>
  255. <itemset nodeset="/root/hidden/init/orddeptcd">
  256. <label ref="nm"/>
  257. <value ref="cd"/>
  258. </itemset>
  259. </choices>
  260. </col>
  261. <col disabled="true" ref="orddrid" type="combo">
  262. <choices>
  263. <itemset nodeset="/root/hidden/init/orddrid">
  264. <label ref="nm"/>
  265. <value ref="cd"/>
  266. </itemset>
  267. </choices>
  268. </col>
  269. <col disabled="true" ref="specordyn" type="combo">
  270. <choices>
  271. <item>
  272. <label>선택</label>
  273. <value>Y</value>
  274. </item>
  275. <item>
  276. <label>비선택</label>
  277. <value>N</value>
  278. </item>
  279. </choices>
  280. </col>
  281. <col disabled="true" ref="mskind" type="combo">
  282. <choices>
  283. <itemset nodeset="/root/init/P0006list/P0006">
  284. <label ref="cdnm"/>
  285. <value ref="cdid"/>
  286. </itemset>
  287. </choices>
  288. </col>
  289. <col disabled="true" ref="fsexamflag" type="combo">
  290. <choices>
  291. <itemset nodeset="/root/init/P0021list/P0021">
  292. <label ref="cdnm"/>
  293. <value ref="cdid"/>
  294. </itemset>
  295. </choices>
  296. </col>
  297. <col disabled="true" ref="insukind" type="combo">
  298. <choices>
  299. <itemset nodeset="/root/hidden/init/insukind">
  300. <label ref="nm"/>
  301. <value ref="cd"/>
  302. </itemset>
  303. </choices>
  304. </col>
  305. <col disabled="true" ref="suppkind" type="combo">
  306. <choices>
  307. <itemset nodeset="/root/hidden/init/suppkind">
  308. <label ref="nm"/>
  309. <value ref="cd"/>
  310. </itemset>
  311. </choices>
  312. </col>
  313. <col disabled="true" ref="suppkindresn" type="combo">
  314. <choices>
  315. <itemset nodeset="/root/init/P0032list/P0032">
  316. <label ref="cdnm"/>
  317. <value ref="cdid"/>
  318. </itemset>
  319. </choices>
  320. </col>
  321. <col disabled="true" ref="medamtestmyn" type="combo">
  322. <choices>
  323. <item>
  324. <label>산정</label>
  325. <value>Y</value>
  326. </item>
  327. <item>
  328. <label>미산정</label>
  329. <value>N</value>
  330. </item>
  331. </choices>
  332. </col>
  333. <col disabled="true" ref="medamtpostyn" type="combo">
  334. <choices>
  335. <item>
  336. <label>선불</label>
  337. <value>N</value>
  338. </item>
  339. <item>
  340. <label>후불</label>
  341. <value>Y</value>
  342. </item>
  343. </choices>
  344. </col>
  345. <col disabled="true" ref="calcflag" type="combo">
  346. <choices>
  347. <item>
  348. <label>미수납</label>
  349. <value>Y</value>
  350. </item>
  351. <item>
  352. <label>미수납</label>
  353. <value>S</value>
  354. </item>
  355. <item>
  356. <label>수납</label>
  357. <value>N</value>
  358. </item>
  359. </choices>
  360. </col>
  361. <col ref="fsexammanlyn" visibility="hidden"/>
  362. <col ref="medamtfreeresn" visibility="hidden"/>
  363. <col ref="holiflag" visibility="hidden"/>
  364. </datagrid>
  365. </group>
  366. </xhtml:body>
  367. </xhtml:html>