SMPID27100_상세불명희귀대상자관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  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="TRPID27100" 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="TXPID27100" 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("TRPID27100");
  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:20px; ">상세불명희귀대상자관리 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="순번^진료과^진료의사^환자번호^환자성명^상병명^상병코드^사전승인&#xA;신청일^최초&#xA;승인일^승인일^종료일^상담내용^최초&#xA;등록자^기관코드|순번^진료과^진료의사^환자번호^환자성명^상병명^상병코드^사전승인&#xA;신청일^최초&#xA;승인일^승인일^종료일^상담내용^최초&#xA;등록자^기관코드" colsep="^" colwidth="35, 100, 65, 70, 62, 149, 74, 86, 86, 85, 86, 232, 60" 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" visibility="hidden" style="text-align:center; "/>
  233. <col ref="orddeptcd" type="combo" style="text-align:center; ">
  234. <choices>
  235. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  236. <label ref="nm"/>
  237. <value ref="cd"/>
  238. </itemset>
  239. </choices>
  240. </col>
  241. <col ref="orddrid" type="combo">
  242. <choices>
  243. <itemset nodeset="/root/init/orddrid/orddridlist">
  244. <label ref="nm"/>
  245. <value ref="cd"/>
  246. </itemset>
  247. </choices>
  248. </col>
  249. <col ref="pid" type="input" style="text-align:center; "/>
  250. <col ref="hngnm" type="output" style="text-align:center; "/>
  251. <col ref="diagnm" type="output" format="yyyy-mm" style="text-align:center; "/>
  252. <col ref="diagcd" type="input" style="text-align:center; "/>
  253. <col ref="bfregdd" type="inputdate" format="yyyy-mm-dd"/>
  254. <col ref="fsregdd" type="inputdate" format="yyyy-mm-dd"/>
  255. <col ref="fromdd" type="inputdate" format="yyyy-mm-dd"/>
  256. <col ref="todd" type="inputdate" format="yyyy-mm-dd"/>
  257. <col ref="memo" type="input" style="text-align:left; "/>
  258. <col ref="fstrgstrnm" type="output" style="text-align:center; "/>
  259. <script type="javascript" ev:event="onbuttonclick">
  260. <![CDATA[
  261. var rowno = grd_ordcnstlist.row;
  262. if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("diagcd")) {
  263. model.setValue("/root/hidden/sppiz00400/cond/basedd", model.getValue("/root/hidden/currendate"));
  264. model.setValue("/root/hidden/sppiz00400/cond/diagcd", grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")));
  265. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", "2");
  266. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  267. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  268. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")) = model.getvalue("/root/hidden/sppiz00400/rslt/termcd");
  269. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm");
  270. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagengnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diagengnm");
  271. model.refresh();
  272. }
  273. ]]>
  274. </script>
  275. <script type="javascript" ev:event="onendedit">
  276. <![CDATA[
  277. ]]>
  278. </script>
  279. <script type="javascript" ev:event="onkeydown">
  280. <![CDATA[
  281. if (event.keyCode == '13') {
  282. if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("pid")) {
  283. grd_ordcnstlist.endEditCell();
  284. model.makeValue("/root/tmp/pid", grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("pid")));
  285. model.makeValue("/root/tmp/srchcond", 1);
  286. model.makeValue("/root/tmp/autoflag", "Y"); // 1건인경우 자동으로닫힘
  287. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
  288. grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("pid")) = model.getValue("/root/main/patinfo/patinfolist/pid");
  289. grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("hngnm")) = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  290. grd_ordcnstlist.rightCol = grd_ordcnstlist.colRef("orddeptcd")
  291. }
  292. }
  293. ]]>
  294. </script>
  295. <script type="javascript" ev:event="onkeypress">
  296. <![CDATA[
  297. if (event.keyCode == 13){
  298. var rowno = grd_ordcnstlist.row;
  299. if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("diagcd")) {
  300. model.setValue("/root/hidden/sppiz00400/cond/basedd", model.getValue("/root/hidden/currendate"));
  301. model.setValue("/root/hidden/sppiz00400/cond/diagcd", grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")));
  302. model.setValue("/root/hidden/sppiz00400/cond/selectedrdodiagkind", "2");
  303. model.setValue("/root/hidden/sppiz00400/cond/flag", "P");
  304. modal("../../../pam/insucomweb/xrw/SPPIZ00400", "", "200", "200" ,"SPPIZ00400", "/root/hidden/sppiz00400/cond", "/root/init", "", "");
  305. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagcd")) = model.getvalue("/root/hidden/sppiz00400/rslt/termcd");
  306. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diaghngnm");
  307. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("diagengnm")) = model.getvalue("/root/hidden/sppiz00400/rslt/diagengnm");
  308. model.refresh();
  309. }
  310. }
  311. ]]>
  312. </script>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. if(grd_ordcnstlist.col == grd_ordcnstlist.colRef("orddeptcd")) {
  316. var nodeset = grd_ordcnstlist.cellComboNodeset(grd_ordcnstlist.row, grd_ordcnstlist.colRef("orddrid"));
  317. var rowval = grd_ordcnstlist.valueMatrix(grd_ordcnstlist.row, grd_ordcnstlist.colRef("orddeptcd"));
  318. grd_ordcnstlist.cellComboNodeset(grd_ordcnstlist.row, grd_ordcnstlist.colRef("orddrid")) = nodeset + "[dp='"+ rowval +"']";
  319. }
  320. ]]>
  321. </script>
  322. </datagrid>
  323. <button id="button5" class="btn2_letter4" visibility="visible" style="left:1140px; top:57px; width:64px; height:19px; ">
  324. <caption>엑셀저장</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  328. if (fileName != "")
  329. {
  330. grd_ordcnstlist.saveExcel(fileName, "희귀난치질환기준자료", true, true, "", "", true);
  331. }
  332. ]]>
  333. </script>
  334. </button>
  335. <button id="btn_rowdel" class="btn2_letter3" style="left:1084px; top:57px; width:53px; height:19px; ">
  336. <caption>행삭제</caption>
  337. <script type="javascript" ev:event="DOMActivate">
  338. <![CDATA[
  339. var row = grd_ordcnstlist.row;
  340. grd_ordcnstlist.deleteRow(row);
  341. ]]>
  342. </script>
  343. </button>
  344. <button id="btn_rowadd" class="btn2_letter3" style="left:1028px; top:57px; width:53px; height:19px; ">
  345. <caption>행추가</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. grd_ordcnstlist.addRow();
  349. var rowno = grd_ordcnstlist.row;
  350. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("regdd")) = getCurrentDate();
  351. grd_ordcnstlist.valueMatrix(rowno, grd_ordcnstlist.colRef("fromtm")) = getCurrentTime().substr(0,4);
  352. model.refresh();
  353. ]]>
  354. </script>
  355. </button>
  356. <button id="btn_patsrch" class="btn1_letter2" visibility="hidden" style="left:890px; top:50px; width:56px; height:22px; ">
  357. <caption>조회</caption>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. fPatSrch();
  361. ]]>
  362. </script>
  363. </button>
  364. </group>
  365. <group id="group4" scroll="auto" style="left:0px; top:744px; width:1211px; height:40px; ">
  366. <line id="line23" class="line_6" style="x1:0px; y1:3px; x2:1211px; y2:3px; "/>
  367. <button id="button1" class="btn4_letter3" style="left:1134px; top:10px; width:68px; height:22px; ">
  368. <caption>저 장</caption>
  369. <script type="javascript" ev:event="DOMActivate">
  370. <![CDATA[
  371. if ( messageBox("","Q002")==6 ) {
  372. var update = getGridUpdateData( grd_ordcnstlist);
  373. if(update == ""){
  374. messageBox("업데이트 정보가 없습니다.", "I");
  375. return 0;
  376. } else {
  377. model.setValue("/root/send/data2/ordcnstlist", update);
  378. submit("TXPID27100");
  379. btn_search.dispatch("DOMActivate");
  380. }
  381. }
  382. ]]>
  383. </script>
  384. </button>
  385. </group>
  386. </xhtml:body>
  387. </xhtml:html>