SMPID25100_진료내역상담대장.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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. <ordcnstlist/>
  11. <patinfo>
  12. <patinfolist/>
  13. </patinfo>
  14. <picmrudtlist>
  15. <rulecd/>
  16. </picmrudtlist>
  17. </main>
  18. <send>
  19. <data1>
  20. <pid/>
  21. <diagnm/>
  22. <spclcd/>
  23. <aplydd/>
  24. <cretflag/>
  25. <patnm/>
  26. <regtodd/>
  27. <regfromdd/>
  28. </data1>
  29. <data2>
  30. <ordcnstlist/>
  31. </data2>
  32. <data3>
  33. <termcd_from/>
  34. <termcd_to/>
  35. </data3>
  36. </send>
  37. <init>
  38. <P0509list>
  39. </P0509list>
  40. <patinfo>
  41. <pid/>
  42. <hngnm/>
  43. </patinfo>
  44. </init>
  45. <hidden>
  46. <sppiz00400>
  47. <cond>
  48. <basedd/>
  49. <diagcd/>
  50. <diagnm/>
  51. <selectedrdodiagkind/>
  52. <flag/>
  53. </cond>
  54. <rslt>
  55. <diagcd/>
  56. <diaghngnm/>
  57. <diagengnm/>
  58. <termcd/>
  59. </rslt>
  60. </sppiz00400>
  61. <currendate/>
  62. </hidden>
  63. <temp>
  64. <calcscorcd/>
  65. <aplydd/>
  66. <sflag/>
  67. </temp>
  68. <source>
  69. <srchcond/>
  70. <pid/>
  71. <hngnm/>
  72. <rrgstno1/>
  73. <rrgstno2/>
  74. <acptdd/>
  75. </source>
  76. <tmp>
  77. <pid/>
  78. <srchcond/>
  79. <autoflag/>
  80. </tmp>
  81. </root>
  82. </instance>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  90. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  91. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. model.removeNodeset("/root/main/ordcnstlist");
  95. // (PAM.js) submission id="TRPAM00101" 를 사용하여 진료과 / 의사명 Combo item을 가져온다.
  96. pamGetDeptCDDrIDList();
  97. model.makeNode("/root/init/P0509list")
  98. zbcfGetCodeList(new Array("P0509"), new Array("/root/init/P0509list"));
  99. var fromdd = getCurrentDate();
  100. fromdd = fromdd.toDate().getAddDate(-7, 'D');
  101. fromdd = fromdd.getDateFormat("YYYYMMDD");
  102. model.setValue(ipt_aplydd.attribute("ref") ,fromdd);
  103. model.setValue(input1.attribute("ref") ,getCurrentDate());
  104. model.setValue("/root/hidden/currendate" ,getCurrentDate());
  105. model.refresh();
  106. ]]>
  107. </script>
  108. <script type="javascript">
  109. <![CDATA[
  110. var sEXPT_INFO_PATH = '';
  111. function fPatSrch(){
  112. var sCurrentDate = getCurrentDate();
  113. clearParameter("SPMMO017300_fromdd" );
  114. clearParameter("SPMMO017300_todd" );
  115. clearParameter("SPMMO017300_pid" );
  116. clearParameter("SPMMO017300_hngnm" );
  117. clearParameter("SPMMO017300_orddd" );
  118. clearParameter("SPMMO017300_orddeptcd" );
  119. clearParameter("SPMMO017300_orddrid" );
  120. setParameter("SPMMO017300_fromdd", sCurrentDate);
  121. setParameter("SPMMO017300_todd", sCurrentDate);
  122. setParameter("SPMMO017300_pid", model.getValue(sEXPT_INFO_PATH + "/pid"));
  123. modal("SPMMO173000");
  124. var sPid = getParameter("SPMMO017300_pid");
  125. var sHngnm = getParameter("SPMMO017300_hngnm");
  126. var sOrddd = getParameter("SPMMO017300_orddd");
  127. var sOrddeptcd = getParameter("SPMMO017300_orddeptcd");
  128. var sOrddrid = getParameter("SPMMO017300_orddrid");
  129. model.resetInstanceNode(sEXPT_INFO_PATH);
  130. if(!isNull(sHngnm)) {
  131. model.makeValue(sEXPT_INFO_PATH + "/status", "I");
  132. model.setValue(sEXPT_INFO_PATH + "/excpcls", "001");
  133. model.setValue(sEXPT_INFO_PATH + "/genrdd", sCurrentDate);
  134. model.setValue(sEXPT_INFO_PATH + "/genrno", "");
  135. model.setValue(sEXPT_INFO_PATH + "/pid", sPid);
  136. model.setValue(sEXPT_INFO_PATH + "/hngnm", sHngnm);
  137. model.setValue(sEXPT_INFO_PATH + "/histno", "0"); // 숫자 0
  138. model.setValue(sEXPT_INFO_PATH + "/histcd", "O"); // 문자 O
  139. model.setValue(sEXPT_INFO_PATH + "/excpcd", "999"); // 디폴트로 저장
  140. model.setValue(sEXPT_INFO_PATH + "/fromdd", sOrddd);
  141. model.setValue(sEXPT_INFO_PATH + "/todd", sCurrentDate);
  142. model.setValue(sEXPT_INFO_PATH + "/histnm", "신규등록");
  143. model.removeNodeset("/root/init/userlist2");
  144. model.makeNode("/root/init/userlist2/usercombo");
  145. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", getUserInfo("dutplcecd"), "0330");
  146. addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  147. model.setValue(sEXPT_INFO_PATH + "/deptcd", sOrddeptcd);
  148. cmb_orddept2.dispatch("xforms-value-changed");
  149. model.setValue(sEXPT_INFO_PATH + "/userid", sOrddrid);
  150. }
  151. group_info.refresh();
  152. }
  153. ]]>
  154. </script>
  155. <submission id="TRPID25100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/main/ordcnstlist"/>
  156. <submission id="TRPPI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/main/picmrudtlist"/>
  157. <submission id="TXPID25100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/ordcnstlist" replace="instance" resultref="/root/temp"/>
  158. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  159. </model>
  160. </xhtml:head>
  161. <xhtml:body guideline="1,1213;2,783;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  162. <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
  163. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:343px; height:15px; ">진료내역 상담대장</caption>
  164. </group>
  165. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1211px; height:732px; ">
  166. <group id="group2" style="left:0px; top:10px; width:1211px; height:40px; vertical-align:top; ">
  167. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1211px; height:40px; "/>
  168. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:10px; width:56px; height:22px; ">
  169. <caption>조회</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. submit("TRPID25100");
  173. ]]>
  174. </script>
  175. </button>
  176. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:34px; "/>
  177. <caption id="caption5" class="search_name" style="left:5px; top:11px; width:86px; height:17px; ">환자번호 :</caption>
  178. <caption id="caption4" class="search_name" style="left:322px; top:11px; width:95px; height:17px; ">상담기간 :</caption>
  179. <input id="ipt_aplydd" ref="/root/send/data1/regfromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:410px; top:10px; width:85px; height:19px; ">
  180. <script type="javascript" ev:event="onkeyup">
  181. <![CDATA[
  182. if (event.keyCode == '13') {
  183. inputEnterKey("btn_search", "DOMActivate");
  184. }
  185. ]]>
  186. </script>
  187. </input>
  188. <button id="button2" class="icon_search" navindex="5" style="left:208px; top:11px; width:22px; height:16px; ">
  189. <caption/>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. model.makeValue("/root/tmp/pid", ipt_pid.currentText);
  193. model.makeValue("/root/tmp/srchcond", 1);
  194. model.makeValue("/root/tmp/autoflag", "Y"); // 1건인경우 자동으로닫힘
  195. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
  196. ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
  197. ipt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  198. ]]>
  199. </script>
  200. </button>
  201. <input id="ipt_pid" ref="/root/send/data1/pid" class="input_search" style="left:99px; top:10px; width:103px; height:19px; ">
  202. <script type="javascript" ev:event="onkeydown">
  203. <![CDATA[
  204. // if (event.keyCode == '13') {
  205. // model.makeValue("/root/tmp/pid", ipt_pid.currentText);
  206. // model.makeValue("/root/tmp/srchcond", 1);
  207. // model.makeValue("/root/tmp/autoflag", "Y"); // 1건인경우 자동으로닫힘
  208. //
  209. // modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
  210. //
  211. // ipt_pid.value = model.getValue("/root/main/patinfo/patinfolist/pid");
  212. // ipt_patnm.value = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  213. // }
  214. ]]>
  215. </script>
  216. </input>
  217. <input id="ipt_patnm" ref="/root/send/data1/patnm" style="left:235px; top:10px; width:70px; height:19px; "/>
  218. <input id="input1" ref="/root/send/data1/regtodd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:520px; top:10px; width:90px; height:19px; ">
  219. <script type="javascript" ev:event="onkeyup">
  220. <![CDATA[
  221. if (event.keyCode == '13') {
  222. inputEnterKey("btn_search", "DOMActivate");
  223. }
  224. ]]>
  225. </script>
  226. </input>
  227. <caption id="caption2" style="left:503px; top:10px; width:15px; height:20px; ">~</caption>
  228. </group>
  229. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:200px; height:15px; ">진료내역 상담대장 List</caption>
  230. <line id="line1" class="line_1" style="x1:0px; y1:82px; x2:1204px; y2:81px; "/>
  231. <datagrid id="grd_ordcnstlist" nodeset="/root/main/ordcnstlist" class="datagrid2" autoresize="true" caption="순번^상담일자^시작시간^종료시간^total &#xA;상담시간^환자번호^환자성명^진료과^진료년월^진료구분^환자확인란^환자확인란^환자확인란^환자확인란^환자확인란^환자확인란^환자확인란^상담내용^확인자^기관코드|순번^상담일자^시작시간^종료시간^total &#xA;상담시간^환자번호^환자성명^진료과^진료년월^진료구분^환자본인^보호자만^보호자 성명^관계^보호자신분증^관계증명서류^동의^상담내용^확인자^기관코드" colsep="^" colwidth="35, 90, 60, 60, 60, 70, 72, 120, 76, 56, 61, 68, 89, 95, 82, 82, 41, 169, 65" dataheight="40" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:85px; width:1205px; height:640px; ">
  232. <col ref="seq" type="output" style="text-align:center; "/>
  233. <col ref="regdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  234. <col ref="fromtm" type="input" visibility="visible" format="hh:nn" style="text-align:center; "/>
  235. <col ref="totm" type="input" format="hh:nn" style="text-align:center; "/>
  236. <col ref="tottm" type="input" format="hh:nn:ss" style="text-align:center; "/>
  237. <col ref="pid" type="input" style="text-align:center; "/>
  238. <col ref="patnm" type="output" style="text-align:center; "/>
  239. <col ref="orddeptcd" type="combo" style="text-align:center; ">
  240. <choices>
  241. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  242. <label ref="nm"/>
  243. <value ref="cd"/>
  244. </itemset>
  245. </choices>
  246. </col>
  247. <col ref="ordym" type="inputdate" format="yyyy-mm" style="text-align:center; "/>
  248. <col ref="ioflag" type="combo" style="text-align:center; ">
  249. <choices>
  250. <item>
  251. <label>입원</label>
  252. <value>I</value>
  253. </item>
  254. <item>
  255. <label>외래</label>
  256. <value>O</value>
  257. </item>
  258. </choices>
  259. </col>
  260. <col checkvalue="Y,N" ref="patownyn" type="checkbox"/>
  261. <col checkvalue="Y,N" ref="prtcteryn" type="checkbox"/>
  262. <col checkvalue="Y,N" ref="prtcternm" type="input" style="text-align:center; "/>
  263. <col checkvalue="Y,N" ref="rela" type="combo" style="text-align:center; ">
  264. <choices>
  265. <item>
  266. <label>본인</label>
  267. <value>1</value>
  268. </item>
  269. <item>
  270. <label>배우자</label>
  271. <value>2</value>
  272. </item>
  273. <item>
  274. <label>자녀</label>
  275. <value>3</value>
  276. </item>
  277. <item>
  278. <label>부모</label>
  279. <value>4</value>
  280. </item>
  281. <item>
  282. <label>기타</label>
  283. <value>5</value>
  284. </item>
  285. </choices>
  286. </col>
  287. <col checkvalue="Y,N" ref="prtcteridyn" type="checkbox"/>
  288. <col checkvalue="Y,N" ref="famyrelcrtfctyn" type="checkbox"/>
  289. <col ref="essntestasso" type="checkbox"/>
  290. <col ref="cmnt" type="input" style="text-align:left; "/>
  291. <col ref="fstrgstrnm" type="output" style="text-align:center; "/>
  292. <script type="javascript" ev:event="onbuttonclick">
  293. <![CDATA[
  294. var rowno = grd_ordcnstlist.row;
  295. if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("diagcd")) {
  296. model.setValue("/root/hidden/sppiz00400/cond/basedd", model.getValue("/root/hidden/currendate"));
  297. model.setValue("/root/hidden/sppiz00400/cond/diagcd", grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")));
  298. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", "2");
  299. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  300. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  301. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")) = model.getvalue("/root/hidden/sppiz00400/rslt/termcd");
  302. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm");
  303. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagengnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diagengnm");
  304. model.refresh();
  305. }
  306. ]]>
  307. </script>
  308. <script type="javascript" ev:event="onendedit">
  309. <![CDATA[
  310. ]]>
  311. </script>
  312. <script type="javascript" ev:event="onkeydown">
  313. <![CDATA[
  314. if (event.keyCode == '13') {
  315. if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("pid")) {
  316. grd_ordcnstlist.endEditCell();
  317. model.makeValue("/root/tmp/pid", grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("pid")));
  318. model.makeValue("/root/tmp/srchcond", 1);
  319. model.makeValue("/root/tmp/autoflag", "Y"); // 1건인경우 자동으로닫힘
  320. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
  321. grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("pid")) = model.getValue("/root/main/patinfo/patinfolist/pid");
  322. grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("patnm")) = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  323. grd_ordcnstlist.rightCol = grd_ordcnstlist.colRef("orddeptcd")
  324. }
  325. }
  326. ]]>
  327. </script>
  328. </datagrid>
  329. <button id="button5" class="btn2_letter4" visibility="visible" style="left:1140px; top:57px; width:64px; height:19px; ">
  330. <caption>엑셀저장</caption>
  331. <script type="javascript" ev:event="DOMActivate">
  332. <![CDATA[
  333. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  334. if (fileName != "")
  335. {
  336. grd_ordcnstlist.saveExcel(fileName, "희귀난치질환기준자료", true, true, "", "", true);
  337. }
  338. ]]>
  339. </script>
  340. </button>
  341. <button id="btn_rowdel" class="btn2_letter3" style="left:1084px; top:57px; width:53px; height:19px; ">
  342. <caption>행삭제</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. var row = grd_ordcnstlist.row;
  346. grd_ordcnstlist.deleteRow(row);
  347. ]]>
  348. </script>
  349. </button>
  350. <button id="btn_rowadd" class="btn2_letter3" style="left:1028px; top:57px; width:53px; height:19px; ">
  351. <caption>행추가</caption>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. grd_ordcnstlist.addRow();
  355. var rowno = grd_ordcnstlist.row;
  356. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("regdd")) = getCurrentDate();
  357. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("fromtm")) = getCurrentTime().substr(0,4);
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </button>
  362. <button id="btn_patsrch" class="btn1_letter2" visibility="hidden" style="left:890px; top:50px; width:56px; height:22px; ">
  363. <caption>조회</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. fPatSrch();
  367. ]]>
  368. </script>
  369. </button>
  370. </group>
  371. <group id="group4" scroll="auto" style="left:0px; top:744px; width:1211px; height:40px; ">
  372. <line id="line23" class="line_6" style="x1:0px; y1:3px; x2:1211px; y2:3px; "/>
  373. <button id="button1" class="btn4_letter3" style="left:1134px; top:10px; width:68px; height:22px; ">
  374. <caption>저 장</caption>
  375. <script type="javascript" ev:event="DOMActivate">
  376. <![CDATA[
  377. if ( messageBox("","Q002")==6 ) {
  378. var update = getGridUpdateData( grd_ordcnstlist);
  379. if(update == ""){
  380. messageBox("업데이트 정보가 없습니다.", "I");
  381. return 0;
  382. } else {
  383. model.setValue("/root/send/data2/ordcnstlist", update);
  384. submit("TXPID25100");
  385. btn_search.dispatch("DOMActivate");
  386. }
  387. }
  388. ]]>
  389. </script>
  390. </button>
  391. </group>
  392. </xhtml:body>
  393. </xhtml:html>