SMLLR00600_이상치결과일괄관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 이상치 결과 보고.xrw
  4. * 설 명 : 이상치 결과 보고
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2011.02.16
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>이상치결과일괄보고</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <abnormallist>
  20. <chk/>
  21. <rstimg/>
  22. <bcno/>
  23. <pid/>
  24. <patnm/>
  25. <orddeptnm/>
  26. <wardroom/>
  27. <testcd/>
  28. <tclsscrnnm/>
  29. <spccd/>
  30. <spcnm/>
  31. <inptrslt/>
  32. <reptdt/>
  33. <bfreptrslt/>
  34. <bfreptdt/>
  35. <panic/>
  36. <delta/>
  37. <critical/>
  38. <rsltstat/>
  39. </abnormallist>
  40. <getUsernm>
  41. <usernm/>
  42. </getUsernm>
  43. </main>
  44. <send>
  45. <param/>
  46. <data2/>
  47. <data1/>
  48. <XFMGbn>00600</XFMGbn>
  49. </send>
  50. <init>
  51. </init>
  52. <hidden>
  53. <ref>
  54. <fromdd/>
  55. <fromtm/>
  56. <todd/>
  57. <totm/>
  58. <eqmtcd>00</eqmtcd>
  59. <panic/>
  60. <delta/>
  61. <critical/>
  62. <pdcmark/>
  63. </ref>
  64. <refflag>
  65. <rsltstat>4</rsltstat>
  66. <userid/>
  67. <testlrgkind>-</testlrgkind>
  68. </refflag>
  69. </hidden>
  70. </root>
  71. </instance>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  75. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  76. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  77. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. fSetInit();
  81. ]]>
  82. </script>
  83. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  84. <submission id="TRLLR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/param" replace="instance" resultref="/root/main/abnormallist"/>
  85. <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
  86. <submission id="TXLLR00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  87. </model>
  88. <script type="javascript">
  89. <![CDATA[
  90. function fSetInit(){
  91. var toDay = getCurrentDate();
  92. var fromDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-1);
  93. model.setValue("/root/hidden/ref/fromdd", fromDay.getDateFormat("YYYYMMDD"));
  94. model.setValue("/root/hidden/ref/todd", toDay);
  95. model.setValue("/root/hidden/ref/fromtm", "0000");
  96. model.setValue("/root/hidden/ref/totm", "2359");
  97. model.removeNodeset("/root/main/abnormallist");
  98. grd_abnormallist.fixedcellcheckbox(0,0) = true;
  99. fBaseInfoRef("0115|"); //기초자료 조회 0115 장비코드
  100. }
  101. function fGetAbnormalList(){
  102. var pdcmark = "";
  103. var panic = model.getValue("/root/hidden/ref/panic");
  104. var delta = model.getValue("/root/hidden/ref/delta");
  105. var critical = model.getValue("/root/hidden/ref/critical");
  106. var eqmtcd = model.getValue("/root/hidden/ref/eqmtcd");
  107. pdcmark = panic + delta + critical;
  108. if(pdcmark == ""){
  109. alert("Panic, Delta, Critical 구분을 하나라도 선택하십시오.");
  110. return;
  111. }
  112. if(eqmtcd == "00"){
  113. alert("장비코드를 선택하십시오.");
  114. return;
  115. }
  116. model.setValue("/root/hidden/ref/pdcmark", pdcmark);
  117. model.copyNode("/root/send/param", "/root/hidden/ref");
  118. model.removeNodeset("/root/main/abnormallist");
  119. submit("TRLLR00601");
  120. fSetGridColor();
  121. }
  122. function fSetGridColor(){
  123. for(var aRow = 1 ; aRow < grd_abnormallist.rows ; aRow++){
  124. if(model.getValue("/root/main/abnormallist["+ aRow +"]/panic") == "P"){
  125. grd_abnormallist.cellStyle ("background-color",aRow,15,aRow,15) = "#7BE6B7";
  126. }else{
  127. grd_abnormallist.cellStyle ("background-color",aRow,15,aRow,15) = "#ffffff";
  128. }
  129. if(model.getValue("/root/main/abnormallist["+ aRow +"]/delta") == "D"){
  130. grd_abnormallist.cellStyle ("background-color",aRow,16,aRow,16) = "#dec6a4";
  131. }else{
  132. grd_abnormallist.cellStyle ("background-color",aRow,16,aRow,16) = "#ffffff";
  133. }
  134. if(model.getValue("/root/main/abnormallist["+ aRow +"]/critical") == "C"){
  135. grd_abnormallist.cellStyle ("background-color",aRow,17,aRow,17) = "#ffe79d";
  136. }else{
  137. grd_abnormallist.cellStyle ("background-color",aRow,17,aRow,17) = "#ffffff";
  138. }
  139. if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "-"){
  140. grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_N.gif";
  141. grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
  142. }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "1"){
  143. grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_1.gif";
  144. grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
  145. }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "2"){
  146. grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_2.gif";
  147. grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
  148. }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "4"){
  149. grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_3.gif";
  150. grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
  151. }else if(model.getValue("/root/main/abnormallist["+ aRow +"]/rsltstat") == "3"){
  152. grd_abnormallist.cellstyle("background-image", aRow, 1) = "../../../lis/commonweb/images/icnRSTFLAG_F.gif";
  153. grd_abnormallist.cellstyle("background-position", aRow, 1) = "center"
  154. }
  155. }
  156. model.refresh();
  157. }
  158. function fSetLstRept(){
  159. if(model.getvalue("/root/main/getUsernm/usernm") == ""){
  160. alert("검사자를 입력하십시오.");
  161. return;
  162. }
  163. for(var aRow = 1 ; aRow < grd_abnormallist.rows ; aRow++){
  164. if(model.getValue("/root/main/abnormallist["+ aRow +"]/chk") == "true"){
  165. grd_abnormallist.rowStatus(aRow) = 2;
  166. }else{
  167. grd_abnormallist.rowStatus(aRow) = 0;
  168. }
  169. }
  170. model.copyNode("/root/send/data1" , "/root/hidden/refflag");
  171. model.setValue("/root/send/data2", grd_abnormallist.getUpdateData());
  172. submit("TXLLR00401" , false);
  173. fGetAbnormalList();
  174. }
  175. function fUserNMRef(){
  176. if(model.getvalue("/root/hidden/refflag/userid") != ""){
  177. model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/refflag/userid"));
  178. submit("TRLZZ00104");
  179. if(model.getvalue("/root/main/getUsernm/usernm") == ""){
  180. model.setvalue("/root/hidden/refflag/userid", "");
  181. }
  182. model.refresh();
  183. }
  184. }
  185. ]]>
  186. </script>
  187. </xhtml:head>
  188. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  189. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  190. <line id="line1" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
  191. <group id="group1" style="left:0px; top:10px; width:1195px; height:70px; font-weight:bold; ">
  192. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:70px; "/>
  193. <line id="line3" class="line_4" style="x1:1123px; y1:40px; x2:1123px; y2:62px; "/>
  194. <button id="btn_Ref" class="btn1_letter2" style="left:1133px; top:40px; width:56px; height:22px; ">
  195. <caption>조회</caption>
  196. <script type="javascript" ev:event="DOMActivate">
  197. <![CDATA[
  198. fGetAbnormalList();
  199. ]]>
  200. </script>
  201. </button>
  202. <caption id="caption11" class="search_name" style="left:15px; top:10px; width:91px; height:17px; text-align:left; ">조회일자 :</caption>
  203. <caption id="caption4" style="left:245px; top:10px; width:20px; height:20px; text-align:center; ">~</caption>
  204. <input id="input1" ref="/root/hidden/ref/fromtm" class="input_search" format="hh:nn" rclass="input_search" style="left:206px; top:9px; width:40px; height:19px; "/>
  205. <input id="input2" ref="/root/hidden/ref/totm" class="input_search" format="hh:nn" rclass="input_search" style="left:366px; top:9px; width:40px; height:19px; "/>
  206. <input id="ipt_acpttodd" ref="/root/hidden/ref/todd" class="input_s_essential" inputtype="date" style="left:265px; top:9px; width:100px; height:19px; "/>
  207. <input id="ipt_acptfromdd" ref="/root/hidden/ref/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:9px; width:100px; height:19px; "/>
  208. <caption id="caption1" class="search_name" style="left:455px; top:10px; width:91px; height:17px; text-align:left; ">검사 장비 :</caption>
  209. <select1 id="combo1" ref="/root/hidden/ref/eqmtcd" appearance="minimal" style="left:550px; top:9px; width:160px; height:19px; ">
  210. <choices>
  211. <itemset nodeset="/root/init/LB0115">
  212. <label ref="nm"/>
  213. <value ref="cd"/>
  214. </itemset>
  215. </choices>
  216. </select1>
  217. <caption id="caption2" class="search_name" style="left:455px; top:40px; width:95px; height:17px; text-align:left; ">PDC 구분 :</caption>
  218. <select id="checkbox1" ref="/root/hidden/ref/panic" overflow="visible" appearance="full" style="left:550px; top:40px; width:60px; height:20px; border-style:none; ">
  219. <choices>
  220. <item>
  221. <label>Panic</label>
  222. <value>P</value>
  223. </item>
  224. </choices>
  225. </select>
  226. <select id="checkbox2" ref="/root/hidden/ref/delta" overflow="visible" appearance="full" style="left:610px; top:40px; width:60px; height:20px; border-style:none; ">
  227. <choices>
  228. <item>
  229. <label>Delta</label>
  230. <value>D</value>
  231. </item>
  232. </choices>
  233. </select>
  234. <select id="checkbox3" ref="/root/hidden/ref/critical" overflow="visible" appearance="full" style="left:670px; top:40px; width:70px; height:20px; border-style:none; ">
  235. <choices>
  236. <item>
  237. <label>Critical</label>
  238. <value>C</value>
  239. </item>
  240. </choices>
  241. </select>
  242. <input id="ipt_testpsn" ref="/root/hidden/refflag/userid" class="input_essential" imemode="disabled" _chartype="upper" style="left:1023px; top:7px; width:80px; height:19px; ">
  243. <script type="javascript" ev:event="onkeyup">
  244. <![CDATA[
  245. if(event.keyCode == "13"){
  246. model.setvalue("/root/hidden/refflag/userid",ipt_testpsn.currentText);
  247. model.refresh();
  248. fUserNMRef();
  249. ipt_testpsn.selBegin = 0;
  250. ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
  251. }
  252. ]]>
  253. </script>
  254. </input>
  255. <output id="opt_testpsn" ref="/root/main/getUsernm/usernm" class="output_fix" style="left:1106px; top:7px; width:80px; height:19px; "/>
  256. <caption id="caption19" class="tit_2" style="left:953px; top:10px; width:66px; height:13px; ">검사자 :</caption>
  257. </group>
  258. <caption id="caption3" class="tit_2" style="left:5px; top:90px; width:134px; height:13px; ">결과 리스트</caption>
  259. <datagrid id="grd_abnormallist" nodeset="/root/main/abnormallist" caption="^^바코드번호^등록번호^환자명^진료과^병동/병실^testcd^검사명^spccd^검체명^결과^결과보고일시^이전결과^이전결과일시^P^D^C" colwidth="22, 20, 85, 75, 85, 50, 65, 45, 160, 50, 70, 80, 115, 80, 115, 25, 25, 25, 100" dataheight="25" defaultrows="1" mergecellsfixedrows="never" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:110px; width:1194px; height:630px; font-weight:normal; ">
  260. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  261. <col ref="rstimg" style="text-align:center; "/>
  262. <col ref="bcno" style="text-align:center; "/>
  263. <col ref="pid" style="text-align:center; "/>
  264. <col ref="patnm" style="text-align:center; "/>
  265. <col ref="orddeptnm" style="text-align:center; "/>
  266. <col ref="wardroom" style="text-align:center; "/>
  267. <col ref="testcd" visibility="hidden"/>
  268. <col ref="tclsscrnnm"/>
  269. <col ref="spccd" visibility="hidden" style="text-align:center; "/>
  270. <col ref="spcnm" style="text-align:center; "/>
  271. <col ref="inptrslt" style="text-align:left; "/>
  272. <col ref="reptdt" format="yyyy-mm-dd hh:nn:ss"/>
  273. <col ref="bfreptrslt" style="text-align:left; "/>
  274. <col ref="bfreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  275. <col ref="panic" style="text-align:center; "/>
  276. <col ref="delta" style="text-align:center; "/>
  277. <col ref="critical" style="text-align:center; "/>
  278. <col ref="rsltstat" visibility="hidden" style="text-align:center; "/>
  279. </datagrid>
  280. </group>
  281. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  282. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">이상치결과일괄보고</caption>
  283. </group>
  284. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  285. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  286. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  287. <caption>초기화</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. fSetInit();
  291. ]]>
  292. </script>
  293. </button>
  294. <button id="button11" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  295. <caption>출력</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. fReportPrint();
  299. ]]>
  300. </script>
  301. </button>
  302. <button id="btn_lstrept" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
  303. <caption>최종보고</caption>
  304. <script type="javascript" ev:event="onclick">
  305. <![CDATA[
  306. fSetLstRept();
  307. ]]>
  308. </script>
  309. </button>
  310. </group>
  311. </xhtml:body>
  312. </xhtml:html>