SMASB01100_격리주의표시등록.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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. <infctioninfo>
  11. <pid/>
  12. <hngnm/>
  13. <sexflag/>
  14. <age/>
  15. <isoldispcd/>
  16. <isoldiagcd/>
  17. <etccnts/>
  18. <dispfromdt/>
  19. <disptodt/>
  20. <fstrgstrid/>
  21. <fstrgstdt/>
  22. <lastupdtid/>
  23. <seqno/>
  24. <indd/>
  25. <cretno/>
  26. <status/>
  27. </infctioninfo>
  28. <infclist/>
  29. <getinfclist/>
  30. <paminfo/>
  31. <isolinfo/>
  32. </main>
  33. <hidden>
  34. <condition>
  35. <pid/>
  36. <indd/>
  37. <cretno/>
  38. <orddeptcd/>
  39. </condition>
  40. </hidden>
  41. <send>
  42. <reqdata/>
  43. <savedata/>
  44. </send>
  45. <init>
  46. <A0140list/>
  47. <A0220list/>
  48. <A0910list/>
  49. <A0920list/>
  50. <A0930list/>
  51. <A0940list/>
  52. </init>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. zbcfGetCodeList(new Array( "A0140", "A0220", "A0910", "A0920", "A0930", "A0940"),
  58. new Array("/root/init/A0140list", "/root/init/A0220list", "/root/init/A0910list", "/root/init/A0920list", "/root/init/A0930list", "/root/init/A0940list"));
  59. model.refresh();
  60. var pid = "";
  61. var strRegtdt = "";
  62. var iDate = new Date();
  63. var strYearCal = "";
  64. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  65. if(pamInfoCvs != ""){ //cvs가 ""이 아닌 경우에만 처리함.
  66. model.removeNodeSet("/root/main/paminfo/list");
  67. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  68. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  69. if(ioflag == "I" || ioflag == "E" || ioflag == "D"){
  70. model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/paminfo/list/pid") );
  71. model.setValue("/root/hidden/condition/indd", model.getValue("/root/main/paminfo/list/indd"));
  72. model.setValue("/root/hidden/condition/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  73. model.setValue("/root/hidden/condition/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
  74. model.refresh();
  75. }else if(ioflag == "O" || ioflag == "S"){
  76. model.setValue("/root/hidden/condition/pid", model.getValue("/root/main/paminfo/list/pid") );
  77. model.setValue("/root/hidden/condition/indd", model.getValue("/root/main/paminfo/list/orddd"));
  78. model.setValue("/root/hidden/condition/cretno", model.getValue("/root/main/paminfo/list/cretno"));
  79. model.setValue("/root/hidden/condition/orddeptcd", model.getValue("/root/main/paminfo/list/orddeptcd"));
  80. model.refresh();
  81. }else{
  82. var rtn = messageBox("상단의 정보와 ", "E004");
  83. return;
  84. }
  85. }
  86. model.setValue("/root/main/infctioninfo/pid", model.getValue("/root/main/paminfo/list/pid"));
  87. model.setValue("/root/main/infctioninfo/hngnm", model.getValue("/root/main/paminfo/list/hngnm"));
  88. model.setValue("/root/main/infctioninfo/sexflag", model.getValue("/root/main/paminfo/list/sex"));
  89. model.setValue("/root/main/infctioninfo/age", model.getValue("/root/main/paminfo/list/age"));
  90. if(model.getValue("/root/hidden/condition/pid") != "" && model.getValue("/root/hidden/condition/pid") != null) {
  91. model.makeValue("/root/send/reqdata/pid",model.getValue( "/root/hidden/condition/pid"));
  92. submit("TRASB01101");
  93. }
  94. var grd_rows=grd_infclist.rows;
  95. var grd_fixrows=grd_infclist.fixedRows;
  96. if(grd_rows>grd_fixrows){
  97. for(var i=grd_fixrows; i<grd_rows; i++){
  98. var end_day=grd_infclist.valueMatrix(i, grd_infclist.colRef("disptodt"));
  99. var current_day=getCurrentDate();
  100. if(current_day <end_day){
  101. grd_infclist.rowstyle(i, "data", "background-color") = "#FFF000";
  102. }
  103. }
  104. }
  105. if( isNull(model.getValue("/root/main/infctioninfo/dispfromdt")) ){
  106. model.setValue("/root/main/infctioninfo/dispfromdt", getCurrentDate());
  107. }
  108. if( isNull(model.getValue("/root/main/infctioninfo/disptodt")) ){
  109. model.setValue("/root/main/infctioninfo/disptodt","99991231");
  110. }
  111. model.refresh();
  112. ]]>
  113. </script>
  114. <submission id="TRASB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/infclist"/>
  115. <submission id="TRASB01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/isolinfo"/>
  116. <submission id="TXASB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/getinfclist"/>
  117. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  118. </model>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  122. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  123. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  124. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  125. </xhtml:head>
  126. <xhtml:body pagewidth="886" pageheight="360" guideline="2,348;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  127. <group id="group3" scroll="auto" style="left:0px; top:13px; width:870px; height:320px; ">
  128. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:95px; height:13px; ">감염리스트</caption>
  129. <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
  130. <datagrid id="grd_infclist" nodeset="/root/main/infclist/info" caption="주의종류^감염질환^시작일^해제일^등록자^수정자^caption1" colsep="^" colwidth="73, 155, 67, 67, 68, 68, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:21px; width:517px; height:299px; text-align:center; ">
  131. <col disabled="true" ref="isoldispcd" type="combo">
  132. <choices>
  133. <itemset nodeset="/root/init/A0140list/A0140">
  134. <label ref="cdnm"/>
  135. <value ref="cdid"/>
  136. </itemset>
  137. </choices>
  138. </col>
  139. <col disabled="true" ref="isoldiagcd" type="combo">
  140. <choices>
  141. <itemset nodeset="/root/init/A0220list/A0220">
  142. <label ref="cdnm"/>
  143. <value ref="cdid"/>
  144. </itemset>
  145. </choices>
  146. </col>
  147. <col ref="dispfromdt" format="yyyy-mm-dd"/>
  148. <col ref="disptodt" format="yyyy-mm-dd"/>
  149. <col ref="fstrgstrid"/>
  150. <col ref="lastupdtrid"/>
  151. <col ref="pid" visibility="hidden"/>
  152. <col ref="seqno" visibility="hidden"/>
  153. <col ref="hngnm" visibility="hidden"/>
  154. <col ref="sexflag" visibility="hidden"/>
  155. <col ref="age" visibility="hidden"/>
  156. <col ref="indd" visibility="hidden"/>
  157. <col ref="cretno" visibility="hidden"/>
  158. <col ref="etccnts" visibility="hidden"/>
  159. <script type="javascript" ev:event="onclick">
  160. <![CDATA[
  161. var currentRow = grd_infclist.mouseRow;
  162. var lastRow = grd_infclist.rows - grd_infclist.fixedRows;
  163. if(currentRow > 0 && currentRow <= lastRow ){
  164. model.removenode("/root/main/infctioninfo");
  165. model.makeNode("/root/main/infctioninfo");
  166. model.makeValue("/root/main/infctioninfo/isoldispcd", model.getValue("/root/main/infclist/info["+grd_infclist.row+"]/isoldispcd"));
  167. radio1.dispatch("xforms-value-changed");
  168. model.copyNode("/root/main/infctioninfo", "/root/main/infclist/info["+grd_infclist.row+"]");
  169. radio1.disabled=true;
  170. cmb_isoldiagcd.disabled=true;
  171. model.refresh();
  172. }
  173. ]]>
  174. </script>
  175. </datagrid>
  176. <caption id="caption3" class="tit_2" style="left:522px; top:5px; width:95px; height:13px; ">감염정보</caption>
  177. <caption id="caption8" class="cell_1" style="left:522px; top:22px; width:80px; height:22px; text-align:center; vertical-align:middle; ">환자정보</caption>
  178. <line id="line3" class="line_2" style="x1:521px; y1:45px; x2:864px; y2:45px; "/>
  179. <caption id="cap_isoldispcd" class="cell_1" style="left:522px; top:47px; width:80px; height:23px; text-align:center; vertical-align:middle; ">주의종류</caption>
  180. <line id="line4" class="line_2" style="x1:521px; y1:71px; x2:864px; y2:71px; "/>
  181. <caption id="cap_isoldiagcd" class="cell_1" style="left:522px; top:73px; width:80px; height:23px; text-align:center; vertical-align:middle; ">감염질환</caption>
  182. <line id="line5" class="line_2" style="x1:521px; y1:97px; x2:864px; y2:97px; "/>
  183. <caption id="caption9" class="cell_1" style="left:522px; top:99px; width:80px; height:23px; text-align:center; vertical-align:middle; ">시 작 일</caption>
  184. <line id="line8" class="line_2" style="x1:521px; y1:149px; x2:864px; y2:149px; "/>
  185. <line id="line9" class="line_2" style="x1:521px; y1:123px; x2:864px; y2:123px; "/>
  186. <caption id="caption10" class="cell_1" style="left:522px; top:125px; width:80px; height:23px; text-align:center; vertical-align:middle; ">해 제 일</caption>
  187. <caption id="caption12" class="cell_1" style="left:522px; top:150px; width:80px; height:165px; text-align:center; vertical-align:middle; ">안 내 문</caption>
  188. <line id="line2" class="line_3" style="x1:522px; y1:318px; x2:865px; y2:318px; "/>
  189. <textarea id="textarea1" ref="/root/main/infctioninfo/etccnts" style="left:605px; top:151px; width:259px; height:164px; "/>
  190. <input id="input1" ref="/root/main/infctioninfo/disptodt" class="input_default" disabled="false" inputtype="date" style="left:605px; top:127px; width:115px; height:19px; "/>
  191. <input id="input2" ref="/root/main/infctioninfo/dispfromdt" class="input_default" disabled="true" inputtype="date" style="left:605px; top:101px; width:115px; height:19px; "/>
  192. <select1 id="cmb_isoldiagcd" ref="/root/main/infctioninfo/isoldiagcd" class="combo_essential" appearance="minimal" style="left:605px; top:75px; width:225px; height:19px; ">
  193. <choices>
  194. <itemset nodeset="/root/main/getinfclist/diaginfo">
  195. <label ref="cdnm"/>
  196. <value ref="cdid"/>
  197. </itemset>
  198. </choices>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. var type=model.getValue("/root/main/infctioninfo/isoldispcd");
  202. var cdid=model.getValue("/root/main/infctioninfo/isoldiagcd");
  203. var today = getCurrentDate();
  204. if(type=="B"){
  205. model.setValue("/root/main/infctioninfo/disptodt","99991231");
  206. }else if(type=="C"){
  207. if(cdid=="I04"||cdid=="I05"||cdid=="I06"||cdid=="I07"||cdid=="I08"||cdid=="I09"||
  208. cdid=="I10"||cdid=="I11"||cdid=="I12"||cdid=="I20"||cdid=="I21"||cdid=="I22"){
  209. var disptodt = (today.toDate()).getAddDate(21);
  210. model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
  211. }else if(cdid=="I13"){
  212. var disptodt = (today.toDate()).getAddDate(7);
  213. model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
  214. }
  215. }else if(type=="A"){
  216. if(cdid=="I14"||cdid=="I15"||cdid=="I17"||cdid=="I22"){
  217. var disptodt = (today.toDate()).getAddDate(14);
  218. model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
  219. }else if(cdid=="I19"||cdid=="I16"||cdid=="I18"){
  220. var disptodt = (today.toDate()).getAddDate(7);
  221. model.setValue("/root/main/infctioninfo/disptodt",disptodt.getDateFormat());
  222. }
  223. }
  224. if(cdid!=null && cdid!=""){
  225. model.setValue("/root/main/infctioninfo/etccnts", model.getValue("/root/init/A0940list/A0940[cdid='"+cdid+"']/cdnm"));
  226. }
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </select1>
  231. <output id="output1" ref="/root/main/infctioninfo/hngnm" class="output_fix" appearance="output" style="left:686px; top:24px; width:53px; height:19px; "/>
  232. <output id="output2" ref="/root/main/infctioninfo/sexflag" class="output_fix" appearance="output" style="left:813px; top:24px; width:23px; height:19px; "/>
  233. <output id="output3" ref="/root/main/infctioninfo/age" class="output_fix" appearance="output" style="left:839px; top:24px; width:23px; height:19px; "/>
  234. <caption id="caption13" class="cell_1" style="left:744px; top:22px; width:66px; height:22px; vertical-align:middle; ">성별/나이</caption>
  235. <line id="line6" class="line_3" style="x1:520px; y1:20px; x2:863px; y2:20px; "/>
  236. <select1 id="radio1" ref="/root/main/infctioninfo/isoldispcd" appearance="full" cols="3" rows="1" overflow="visible" style="left:605px; top:50px; width:225px; height:20px; border-style:none; ">
  237. <choices>
  238. <itemset nodeset="/root/init/A0140list/A0140">
  239. <label ref="cdnm"/>
  240. <value ref="cdid"/>
  241. </itemset>
  242. </choices>
  243. <script type="javascript" ev:event="xforms-value-changed">
  244. <![CDATA[
  245. var isoresncd=model.getValue("/root/main/infctioninfo/isoldispcd");
  246. if(isoresncd=="A"){
  247. copyNodeset("/root/main/getinfclist/diaginfo", "/root/init/A0930list/A0930");
  248. }else if(isoresncd=="B"){
  249. copyNodeset("/root/main/getinfclist/diaginfo", "/root/init/A0910list/A0910");
  250. }else if(isoresncd=="C"){
  251. copyNodeset("/root/main/getinfclist/diaginfo", "/root/init/A0920list/A0920");
  252. }
  253. model.makeValue("/root/main/infctioninfo/disptodt","");
  254. model.makeValue("/root/main/infctioninfo/etccnts","");
  255. model.makeValue("/root/main/infctioninfo/isoldiagcd", "");
  256. model.refresh();
  257. ]]>
  258. </script>
  259. </select1>
  260. <input id="input3" ref="/root/main/infctioninfo/pid" style="left:607px; top:24px; width:75px; height:19px; ">
  261. <script type="javascript" ev:event="onkeypress">
  262. <![CDATA[
  263. if(event.keyCode == "13"){
  264. setInputNodeCurText();
  265. model.makeValue("/root/send/reqdata/pid",model.getValue("/root/main/infctioninfo/pid"));
  266. submit("TRASB01101");
  267. }
  268. ]]>
  269. </script>
  270. </input>
  271. </group>
  272. <group id="group1" scroll="auto" style="left:0px; top:333px; width:870px; height:27px; ">
  273. <line id="line12" class="line_6" style="x1:0px; y1:0px; x2:864px; y2:0px; "/>
  274. <button id="button5" class="btn4_letter2" style="left:810px; top:3px; width:56px; height:22px; ">
  275. <caption>저장</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. model.removeNodeset("/root/main/getinfclist");
  279. model.makeNode("/root/main/getinfclist");
  280. if( !isRequiredControls("rdo_isoldispcd","cmb_isoldiagcd")){
  281. return;
  282. }
  283. if( isNull(model.getValue("/root/main/infctioninfo/seqno")) ){
  284. model.makeValue("/root/main/infctioninfo/status", "i");
  285. }else{
  286. model.makeValue("/root/main/infctioninfo/status", "u");
  287. }
  288. var strStatus = model.getValue("/root/main/infctioninfo/status");
  289. var updRow = grd_infclist.row;
  290. model.setValue("/root/main/infctioninfo/indd", model.getValue("/root/hidden/condition/indd") );
  291. model.setValue("/root/main/infctioninfo/cretno", model.getValue("/root/hidden/condition/cretno") );
  292. model.makeValue("/root/main/infctioninfo/orddeptcd", model.getValue("/root/hidden/condition/orddeptcd") );
  293. model.makeValue("/root/main/infctioninfo/isoresncd", model.getValue("/root/main/infctioninfo/isoldiagcd"));
  294. if(isNull(model.getValue("/root/main/infctioninfo/disptodt"))){
  295. model.makeValue("/root/main/infctioninfo/disptodt","99991231");
  296. }
  297. model.removeNodeset("/root/send/savedata");
  298. model.makeNode("/root/send/savedata");
  299. model.copyNode("/root/send/savedata", "/root/main/infctioninfo");
  300. submit("TXASB01101");
  301. model.copyNode("/root/main/infclist", "/root/main/getinfclist");
  302. model.refresh();
  303. model.makeValue("/root/send/reqdata/pid",model.getValue( "/root/hidden/condition/pid"));
  304. if( submit("TRASB01102")){
  305. var sEYN = model.getValue("/root/main/isolinfo/info/existyn");
  306. //setPatientInfo("infection","12345678|Y^N^Y");
  307. setPatientInfo("infection", sEYN);
  308. }
  309. if(isPopup()) {
  310. model.close();
  311. }
  312. ]]>
  313. </script>
  314. </button>
  315. <button id="button6" class="btn4_letter2" style="left:753px; top:3px; width:56px; height:22px; ">
  316. <caption>신규</caption>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. model.makeValue("/root/main/infctioninfo/isoldispcd", "");
  320. model.makeValue("/root/main/infctioninfo/isoldiagcd", "");
  321. model.makeValue("/root/main/infctioninfo/testrsltdt", "");
  322. model.makeValue("/root/main/infctioninfo/dispfromdt", getCurrentDate());
  323. model.makeValue("/root/main/infctioninfo/disptodt", "");
  324. model.makeValue("/root/main/infctioninfo/etccnts", "");
  325. model.makeValue("/root/main/infctioninfo/seqno", "");
  326. radio1.disabled=false;
  327. cmb_isoldiagcd.disabled=false;
  328. model.refresh();
  329. ]]>
  330. </script>
  331. </button>
  332. </group>
  333. <group id="grp_tle" style="left:0px; top:0px; width:870px; height:13px; ">
  334. <caption id="caption14" class="tit_1" style="left:0px; top:0px; width:162px; height:15px; ">감염주의 표시등록</caption>
  335. </group>
  336. </xhtml:body>
  337. </xhtml:html>