SMLLP01300_수정된검사결과조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP01300_수정된검사결과조회.xrw
  4. * 설 명 : 수정된검사결과조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.07.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <![CDATA[]]>
  15. <xhtml:title/>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <updtrsltlist>
  21. <chk/>
  22. <updtdt/>
  23. <pid/>
  24. <patnm/>
  25. <orddeptnm/>
  26. <wardroom/>
  27. <tclsnm/>
  28. <updtbfrslt/>
  29. <updtbfreptnm/>
  30. <updtaftrslt/>
  31. <updtaftreptnm/>
  32. <updtresn/>
  33. <notidt/>
  34. </updtrsltlist>
  35. </main>
  36. <send>
  37. <codeflag/>
  38. <usdd/>
  39. <uedd/>
  40. <testlrgcd/>
  41. <sectcd/>
  42. <refflag/>
  43. <bcno/>
  44. <pid/>
  45. </send>
  46. <init>
  47. </init>
  48. <hidden>
  49. <ref>
  50. <refrgstsdd/>
  51. <refrgstedd/>
  52. </ref>
  53. <testlrgcd>00</testlrgcd>
  54. <sectcd>00</sectcd>
  55. <refflag>1</refflag>
  56. <pid/>
  57. <bcno/>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. var toDay = getCurrentDate();
  66. model.setValue("/root/hidden/ref/refrgstsdd", toDay);
  67. model.setValue("/root/hidden/ref/refrgstedd", toDay);
  68. ipt_usdt.refresh();
  69. ipt_uedt.refresh();
  70. // 초기정보 조회
  71. model.setValue("/root/send/codeflag", "0104|0111|"); //0104 검사 대분류
  72. updtrsltlist.fixedcellcheckbox(0,1) = true;
  73. submit("TRLZZ00101");
  74. ]]>
  75. </script>
  76. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
  77. <submission id="TRLLP01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/updtrsltlist"/>
  78. <submission id="TXLLP01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  79. </model>
  80. <script type="javascript">
  81. <![CDATA[
  82. // 조회
  83. function fupdtaftrsltlist(){
  84. model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/refrgstsdd"));
  85. model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/refrgstedd"));
  86. model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/testlrgcd"));
  87. model.setValue("/root/send/sectcd", model.getValue("/root/hidden/sectcd"));
  88. model.setValue("/root/send/refflag", model.getValue("/root/hidden/refflag"));
  89. model.setValue("/root/send/pid", model.getValue("/root/hidden/pid"));
  90. model.setValue("/root/send/bcno", model.getValue("/root/hidden/bcno"));
  91. //alert(model.getValue("/root/send/usdd"));
  92. //alert(model.getValue("/root/send/uedd"));
  93. //alert(model.getValue("/root/send/testlrgcd"));
  94. submit("TRLLP01301");
  95. // ↓ 환자이름 동일하면 같은내용 안보이게
  96. var pid = model.getValue("/root/main/updtrsltlist[1]/pid");
  97. for(i = 1; i < updtrsltlist.rows; i++) {
  98. if(i == 1 || model.getValue("/root/main/updtrsltlist["+i+"]/pid") != pid) {
  99. pid = model.getValue("/root/main/updtrsltlist["+i+"]/pid");
  100. } else if(model.getValue("/root/main/updtrsltlist["+i+"]/pid") == pid) {
  101. model.setValue("/root/main/updtrsltlist["+i+"]/updtdt", "");
  102. model.setValue("/root/main/updtrsltlist["+i+"]/pid", "");
  103. model.setValue("/root/main/updtrsltlist["+i+"]/patnm", "");
  104. model.setValue("/root/main/updtrsltlist["+i+"]/orddeptnm", "");
  105. model.setValue("/root/main/updtrsltlist["+i+"]/wardroom", "");
  106. }
  107. }
  108. }
  109. //수정결과 삭제
  110. function fDelete(){
  111. for(i=1; i<updtrsltlist.rows; i++ ){
  112. if(model.getValue("/root/main/updtrsltlist["+i+"]/chk")=="Y"){
  113. updtrsltlist.rowStatus(i)= 2;
  114. }else{
  115. updtrsltlist.rowStatus(i)= 0;
  116. }
  117. }
  118. model.makeValue("/root/send/updtrsltlist", updtrsltlist.getUpdateData());
  119. if(submit("TXLLP01301")){
  120. fupdtaftrsltlist();
  121. }
  122. }
  123. // 엑셀저장
  124. function fExeExcel(pGridId) {
  125. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  126. if (fileName != "")
  127. {
  128. pGridId.saveExcel(fileName);
  129. }
  130. }
  131. function fKeyEvent(){
  132. if(event.keyCode == "13"){
  133. // 등록번호 바코드 리딩시
  134. if(event.target == "ipt_pid"){
  135. model.setvalue("/root/hidden/pid", (ipt_pid.currentText).toUpperCase());
  136. fupdtaftrsltlist();
  137. ipt_pid.selBegin = 0;
  138. ipt_pid.selEnd = ipt_pid.currentText.length;
  139. }
  140. // 검체번호 바코드 리딩시
  141. if(event.target == "ipt_bcno"){
  142. model.setvalue("/root/hidden/bcno", (ipt_bcno.currentText).toUpperCase());
  143. fupdtaftrsltlist();
  144. ipt_bcno.selBegin = 0;
  145. ipt_bcno.selEnd = ipt_bcno.currentText.length;
  146. }
  147. }
  148. }
  149. ]]>
  150. </script>
  151. </xhtml:head>
  152. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  153. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  154. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  155. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
  156. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  157. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  158. <caption id="caption2" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">등록일자 :</caption>
  159. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. fupdtaftrsltlist()
  164. ]]>
  165. </script>
  166. </button>
  167. <caption id="caption11" class="search_n_b" style="left:196px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  168. <caption id="caption1" class="search_name" style="left:316px; top:9px; width:99px; height:17px; ">조회구분 :</caption>
  169. <select1 id="cmb_sectcd" ref="/root/hidden/sectcd" visibility="hidden" appearance="minimal" style="left:494px; top:8px; width:155px; height:19px; font-weight:normal; ">
  170. <choices>
  171. <itemset nodeset="/root/init/LB0111">
  172. <label ref="nm"/>
  173. <value ref="cd"/>
  174. </itemset>
  175. </choices>
  176. </select1>
  177. <select1 id="testlrgcd" ref="/root/hidden/testlrgcd" appearance="minimal" style="left:494px; top:8px; width:155px; height:19px; font-weight:normal; ">
  178. <choices>
  179. <itemset nodeset="/root/init/LB0104">
  180. <label ref="nm"/>
  181. <value ref="cd"/>
  182. </itemset>
  183. </choices>
  184. </select1>
  185. <input id="ipt_usdt" ref="/root/hidden/ref/refrgstsdd" class="input_s_essential" inputtype="date" style="left:94px; top:8px; width:100px; height:19px; font-weight:normal; "/>
  186. <input id="ipt_uedt" ref="/root/hidden/ref/refrgstedd" class="input_s_essential" inputtype="date" style="left:209px; top:8px; width:100px; height:19px; font-weight:normal; "/>
  187. <select1 id="combo2" ref="/root/hidden/refflag" appearance="minimal" style="left:404px; top:8px; width:85px; height:19px; font-weight:normal; ">
  188. <choices>
  189. <item>
  190. <label>검사분류</label>
  191. <value>1</value>
  192. </item>
  193. <item>
  194. <label>시행부서</label>
  195. <value>2</value>
  196. </item>
  197. </choices>
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. if(combo2.value == "1"){ //검사분류
  201. testlrgcd.visible = true;
  202. cmb_sectcd.visible = false;
  203. }else{
  204. testlrgcd.visible = false;
  205. cmb_sectcd.visible = true;
  206. }
  207. ]]>
  208. </script>
  209. </select1>
  210. <caption id="caption4" class="search_name" style="left:660px; top:10px; width:99px; height:17px; ">등록번호 :</caption>
  211. <caption id="caption5" class="search_name" style="left:875px; top:10px; width:99px; height:17px; ">바코드번호 :</caption>
  212. <input id="ipt_pid" ref="/root/hidden/pid" class="input_s_button" inputtype="button" style="left:750px; top:10px; width:120px; height:19px; ">
  213. <script type="javascript" ev:event="onbuttonclick">
  214. <![CDATA[
  215. if(model.getValue("/root/hidden/pid") == ""){
  216. alert("등록번호를 입력하십시오");
  217. }else{
  218. fupdtaftrsltlist();
  219. }
  220. ]]>
  221. </script>
  222. <script type="javascript" ev:event="onkeypress">
  223. <![CDATA[
  224. fKeyEvent();
  225. ]]>
  226. </script>
  227. </input>
  228. <input id="ipt_bcno" ref="/root/hidden/bcno" class="input_s_button" inputtype="button" style="left:980px; top:9px; width:120px; height:19px; ">
  229. <script type="javascript" ev:event="onkeypress">
  230. <![CDATA[
  231. fKeyEvent();
  232. ]]>
  233. </script>
  234. <script type="javascript" ev:event="onbuttonclick">
  235. <![CDATA[
  236. if(model.getValue("/root/hidden/bcno") == ""){
  237. alert("바코드번호를 입력하십시오");
  238. }else{
  239. fupdtaftrsltlist();
  240. }
  241. ]]>
  242. </script>
  243. </input>
  244. </group>
  245. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">수정결과조회</caption>
  246. <datagrid id="updtrsltlist" nodeset="/root/main/updtrsltlist" caption="^수정일시^등록번호^성명^진료과^병동/병실^수정검사항목^수정전결과^수정전보고자^수정후결과^수정후보고자^수정사유^bcno^통보시간" colwidth="30, 137, 76, 82, 67, 106, 131, 120, 83, 120, 85, 143, 100, 105" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:646px; ">
  247. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  248. <col ref="updtdt" type="output" format="yyyy-mm-dd hh:nn:ss"/>
  249. <col ref="pid" type="output"/>
  250. <col ref="patnm" type="output"/>
  251. <col ref="orddeptnm" type="output"/>
  252. <col ref="wardroom" type="output"/>
  253. <col ref="tclsnm" type="output"/>
  254. <col ref="updtbfrslt" type="output"/>
  255. <col ref="updtbfreptnm"/>
  256. <col ref="updtaftrslt" type="output"/>
  257. <col ref="updtaftreptnm"/>
  258. <col ref="updtresn" type="output"/>
  259. <col ref="bcno" visibility="hidden"/>
  260. <col ref="notidt" type="output" visibility="hidden"/>
  261. </datagrid>
  262. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:48px; width:42px; height:19px; ">
  263. <caption>엑셀</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. fExeExcel(updtrsltlist);
  267. ]]>
  268. </script>
  269. </button>
  270. </group>
  271. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  272. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">수정결과조회</caption>
  273. </group>
  274. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  275. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  276. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  277. <caption>초기화</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. model.reset();
  281. ]]>
  282. </script>
  283. </button>
  284. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  285. <caption>출력</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. model.makeValue("/root/main/print/fromdd", model.getValue("/root/hidden/ref/refrgstsdd") );
  289. model.makeValue("/root/main/print/todd", model.getValue("/root/hidden/ref/refrgstedd") );
  290. exeReportPreview("RPLLP01300", "XMLSTR");
  291. model.removeNodeset("/root/main/print");
  292. ]]>
  293. </script>
  294. </button>
  295. <button id="btn_delete" class="btn4_letter2" style="left:1068px; top:3px; width:68px; height:22px; ">
  296. <caption>삭제</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. fDelete();
  300. ]]>
  301. </script>
  302. </button>
  303. </group>
  304. </xhtml:body>
  305. </xhtml:html>