SMMMO18000_협진환자리스트.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <prid/>
  14. <cnstorddeptcd/>
  15. <orddrid/>
  16. <pid/>
  17. <hngnm/>
  18. <allcheck/>
  19. </cond>
  20. <cnstpatinfo>
  21. <cnstpatlist/>
  22. </cnstpatinfo>
  23. </main>
  24. <send>
  25. <reqdata/>
  26. </send>
  27. <hidden>
  28. </hidden>
  29. <init>
  30. <orddept/>
  31. </init>
  32. <temp/>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. var today = getCurrentDate();
  38. var idate = new Date();
  39. var peveDate = idate.getAddDate(-1, "M");
  40. model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
  41. model.setValue("/root/main/cond/todd", today);
  42. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
  43. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  44. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", getUserInfo("dutplcecd"), "0330");
  45. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  46. model.setValue("/root/main/cond/cnstorddeptcd", getUserInfo("dutplcecd"));
  47. model.removenode("/root/main/cnstpatinfo/cnstpatlist" );
  48. model.refresh();
  49. ]]>
  50. </script>
  51. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  52. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  53. <submission id="TRMMO18001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/cnstinfo"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  60. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  61. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  62. </xhtml:head>
  63. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:13px; ">협진환자리스트</caption>
  65. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:16px; width:1174px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  66. <line id="line3" style="x1:1096px; y1:22px; x2:1096px; y2:71px; border-color:#ffe4bb; border-left-style:solid; "/>
  67. <caption id="caption3" class="tit_2" style="left:0px; top:80px; width:126px; height:13px; vertical-align:middle; ">협진환자리스트</caption>
  68. <line id="line6" class="line_1" style="x1:0px; y1:95px; x2:1174px; y2:95px; "/>
  69. <caption id="caption5" class="search_name" style="left:8px; top:25px; width:76px; height:17px; ">협진일</caption>
  70. <caption id="caption8" class="search_name" style="left:487px; top:26px; width:76px; height:17px; ">상 정 과</caption>
  71. <input id="input4" ref="/root/main/cond/fromdd" class="input" inputtype="date" style="left:86px; top:25px; width:90px; height:19px; "/>
  72. <caption id="caption29" class="search_name" style="left:802px; top:21px; width:76px; height:17px; ">진 료 의</caption>
  73. <input id="ipt_pid" ref="/root/main/cond/pid" class="input_search" maxlength="10" style="left:565px; top:50px; width:90px; height:19px; ">
  74. <script type="javascript" ev:event="onkeypress">
  75. <![CDATA[
  76. inputEnterKey("btn_reqpatnm", "DOMActivate");
  77. ]]>
  78. </script>
  79. </input>
  80. <caption id="caption4" class="search_name" style="left:802px; top:51px; width:76px; height:17px; ">환 자 명</caption>
  81. <input id="input1" ref="/root/main/cond/hngnm" class="input_search" style="left:880px; top:51px; width:90px; height:19px; ">
  82. <script type="javascript" ev:event="onkeyup">
  83. <![CDATA[
  84. inputEnterKey("btn_patsrch", "DOMActivate");
  85. ]]>
  86. </script>
  87. </input>
  88. <caption id="caption1" class="search_name" style="left:487px; top:50px; width:76px; height:17px; ">등록번호</caption>
  89. <input id="input2" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:193px; top:25px; width:90px; height:19px; "/>
  90. <button id="btn_prcpclsnm" class="icon_search" style="left:977px; top:51px; width:16px; height:16px; ">
  91. <caption/>
  92. <script type="javascript" ev:event="DOMActivate">
  93. <![CDATA[
  94. modal("SPPMC02500");
  95. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  96. var hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  97. model.setValue("/root/main/cond/pid", pid);
  98. model.setValue("/root/main/cond/hngnm", hngnm);
  99. model.refresh();
  100. ]]>
  101. </script>
  102. </button>
  103. <caption id="caption9" style="left:178px; top:26px; width:15px; height:20px; ">~</caption>
  104. <button id="btn_reqpatnm" disabled="true" style="left:730px; top:50px; width:45px; height:20px; ">
  105. <caption/>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. fPidTrim("/root/main/cond/pid");
  109. var pid = model.getValue("/root/main/cond/pid");
  110. if(pid == ""){
  111. return;
  112. }
  113. if(reqPatInfo("pid", "ptbs", pid)==true){
  114. var hngnm = model.getValue("/root/init/patnm/patnm/hngnm");
  115. model.setValue("/root/main/cond/hngnm", hngnm);
  116. model.refresh();
  117. }
  118. ]]>
  119. </script>
  120. </button>
  121. <button id="btn_req" class="btn1_letter2" style="left:1109px; top:37px; width:56px; height:22px; ">
  122. <caption>조회</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. model.removenode("/root/main/cnstpatinfo" );
  126. submit("TRMMO18001");
  127. ]]>
  128. </script>
  129. </button>
  130. <select1 id="cmb_orddept" ref="/root/main/cond/cnstorddeptcd" class="combo_search" appearance="minimal" editmode="search" _inputmode="koreanOnly" style="left:565px; top:26px; width:150px; height:19px; ">
  131. <choices>
  132. <itemset nodeset="/root/init/orddept/dept">
  133. <label ref="depthngnm"/>
  134. <value ref="deptcd"/>
  135. </itemset>
  136. </choices>
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. model.removeNodeset("/root/init/userlist");
  140. model.makeNode("/root/init/userlist/usercombo");
  141. if(cmb_orddept.value == "-"){
  142. model.removeNode("/root/init/userlist/usercombo");
  143. model.makeValue("/root/init/userlist/usercombo/userid", "-");
  144. model.makeValue("/root/init/userlist/usercombo/usernm", "전체");
  145. }else{
  146. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
  147. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  148. }
  149. model.setValue("/root/main/cond/orddrid", "-");
  150. model.refresh();
  151. ]]>
  152. </script>
  153. </select1>
  154. <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_default" appearance="minimal" itemcount="30" style="left:880px; top:20px; width:90px; height:19px; ">
  155. <choices>
  156. <itemset nodeset="/root/init/userlist/usercombo">
  157. <label ref="usernm"/>
  158. <value ref="userid"/>
  159. </itemset>
  160. </choices>
  161. </select1>
  162. <button id="btn_patsrch" disabled="true" style="left:745px; top:46px; width:45px; height:20px; ">
  163. <caption/>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. var pid = model.getValue("/root/main/cond/pid");
  167. var hngnm = model.getValue("/root/main/cond/hngnm");
  168. if((pid =="")&&(hngnm !="")){
  169. fPatSrch(hngnm, "2");
  170. } else if((pid !="")&&(hngnm == "")){
  171. fPatSrch(pid, "1");
  172. } else {
  173. modal("SPPMC02500")
  174. }
  175. model.setValue("/root/main/cond/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  176. model.setValue("/root/main/cond/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  177. model.refresh();
  178. ]]>
  179. </script>
  180. </button>
  181. <select1 id="cmb_prid" ref="/root/main/cond/prid" appearance="minimal" style="left:290px; top:25px; width:55px; height:19px; ">
  182. <choices>
  183. <item>
  184. <label>3개월</label>
  185. <value>3M</value>
  186. </item>
  187. <item>
  188. <label>6개월</label>
  189. <value>6M</value>
  190. </item>
  191. <item>
  192. <label>9개월</label>
  193. <value>9M</value>
  194. </item>
  195. <item>
  196. <label>1년</label>
  197. <value>1Y</value>
  198. </item>
  199. <item>
  200. <label>2년</label>
  201. <value>2Y</value>
  202. </item>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. var today = getCurrentDate();
  207. var idate = new Date();
  208. var prid = model.getValue("/root/main/cond/prid");
  209. // model.makeValue("/root/send/cond/fromdd", peveDate.getDateFormat());
  210. // model.makeValue("/root/send/cond/todd", today);
  211. if (prid =="3M") {
  212. var threeMDate = idate.getAddDate(-3, "M");
  213. model.setValue("/root/main/cond/fromdd", threeMDate.getDateFormat());
  214. model.setValue("/root/main/cond/todd", today);
  215. } else if (prid =="6M") {
  216. var sixMDate = idate.getAddDate(-6, "M");
  217. model.setValue("/root/main/cond/fromdd", sixMDate.getDateFormat());
  218. model.setValue("/root/main/cond/todd", today);
  219. } else if (prid =="9M") {
  220. var nineMDate = idate.getAddDate(-9, "M");
  221. model.setValue("/root/main/cond/fromdd", nineMDate.getDateFormat());
  222. model.setValue("/root/main/cond/todd", today);
  223. } else if (prid =="1Y") {
  224. var oneYDate = idate.getAddDate(-1, "Y");
  225. model.setValue("/root/main/cond/fromdd", oneYDate.getDateFormat());
  226. model.setValue("/root/main/cond/todd", today);
  227. } else if (prid =="2Y") {
  228. var twoYDate = idate.getAddDate(-2, "Y");
  229. model.setValue("/root/main/cond/fromdd", twoYDate.getDateFormat());
  230. model.setValue("/root/main/cond/todd", today);
  231. }
  232. model.refresh();
  233. ]]>
  234. </script>
  235. </select1>
  236. <datagrid id="grd_cnstlist" nodeset="/root/main/cnstpatinfo/cnstpatlist" caption="^협진일^병실^성명^성별/나이^상정과^진단명^부진단명^ECOG^병기^흡연력^회의제목^회의일시^회의장소^회의내용^결과^상정이유^작성자" colsep="^" colwidth="22, 86, 65, 59, 69, 100, 194, 175, 54, 154, 170, 198, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:100px; width:1175px; height:645px; ">
  237. <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
  238. <col ref="confdd" format="yyyy-mm-dd"/>
  239. <col ref="roomcd"/>
  240. <col ref="hngnm"/>
  241. <col ref="sa"/>
  242. <col ref="orddeptnm"/>
  243. <col ref="diagnm"/>
  244. <col ref="subdiagnm"/>
  245. <col ref="ecogscale"/>
  246. <col ref="stage"/>
  247. <col ref="smokcnts"/>
  248. <col ref="conftitl"/>
  249. <col ref="confplce" visibility="hidden"/>
  250. <col ref="confcnts" visibility="hidden"/>
  251. <col ref="pid" visibility="hidden"/>
  252. <col ref="orddeptcd" visibility="hidden"/>
  253. <col ref="orddrnm" visibility="hidden"/>
  254. <col ref="orddrid" visibility="hidden"/>
  255. <col ref="orgdiagcd" visibility="hidden"/>
  256. <col ref="stagecd" visibility="hidden"/>
  257. <col ref="tnmcd1" visibility="hidden"/>
  258. <col ref="tnmcd2" visibility="hidden"/>
  259. <col ref="tnmcd3" visibility="hidden"/>
  260. <col ref="asumresn" visibility="hidden"/>
  261. <col ref="rsltcnts" visibility="hidden"/>
  262. <col ref="writid" visibility="hidden"/>
  263. <col ref="writnm" visibility="hidden"/>
  264. <col ref="smokday" visibility="hidden"/>
  265. <col ref="smokyear" visibility="hidden"/>
  266. <col ref="smokyn" visibility="hidden"/>
  267. <col ref="smokstrtyear" visibility="hidden"/>
  268. <col ref="smokendyear" visibility="hidden"/>
  269. </datagrid>
  270. <button id="btn_print" class="btn6_letter2" style="left:0px; top:746px; width:58px; height:22px; ">
  271. <caption>출력</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. model.removenode("/root/temp/templist");
  275. model.makeNode("/root/temp/templist");
  276. var rows = grd_cnstlist.rows;
  277. for (var i =0 ; i < rows ; i++ ) {
  278. var chkyn = model.getValue("/root/main/cnstpatinfo/cnstpatlist[" + i + "]/checkyn");
  279. if (chkyn =="Y") {
  280. copyNodeListType("/root/temp/templist", "/root/main/cnstpatinfo/cnstpatlist[" + i + "]", "after");
  281. }
  282. }
  283. var Nodes = instance1.selectNodes("/root/temp/templist");
  284. if (Nodes.length > 0) {
  285. exeReportPreview("RPMMO18001", "XMLSTR");
  286. } else {
  287. messageBox("출력할 대상이 없습니다.", "I");
  288. }
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="button1" class="btn1_letter2" style="left:1118px; top:746px; width:56px; height:22px; ">
  293. <caption>닫기</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. window.close();
  297. ]]>
  298. </script>
  299. </button>
  300. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/allcheck" style="left:2px; top:103px; width:20px; height:20px; ">
  301. <script type="javascript" ev:event="onclick">
  302. <![CDATA[
  303. var allcheck = model.getValue("/root/main/cond/allcheck");
  304. if (allcheck == "Y") {
  305. for (i =1; i < grd_cnstlist.rows ; i++ ) {
  306. model.setValue("/root/main/cnstpatinfo/cnstpatlist[" + i + "]/checkyn", "N");
  307. }
  308. } else {
  309. for (i =1; i < grd_cnstlist.rows ; i++ ) {
  310. model.setValue("/root/main/cnstpatinfo/cnstpatlist[" + i + "]/checkyn", "Y");
  311. }
  312. }
  313. model.refresh();
  314. ]]>
  315. </script>
  316. </bool>
  317. </xhtml:body>
  318. </xhtml:html>