SMLLP00700_부적합검체조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 부적합검체조회.xrw
  4. * 설 명 : 부적합검체조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 윤재한
  7. * 작 성 일 : 2007.07.04
  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. <getinsgspc>
  20. <choi/>
  21. <rgstdt/>
  22. <patnm/>
  23. <pid/>
  24. <bcno/>
  25. <orddeptnm/>
  26. <wardroom/>
  27. <spcnm/>
  28. <rsltstat/>
  29. <spcstatdesc/>
  30. <notitrgtnm/>
  31. <notidt/>
  32. <lastupdtrid/>
  33. <measfact/>
  34. <tclslist/>
  35. <execdeptcd/>
  36. <lastupdtdt/>
  37. <phone/>
  38. <resncd/>
  39. </getinsgspc>
  40. </main>
  41. <send>
  42. <usdd/>
  43. <uedd/>
  44. <deptgbn/>
  45. <codeflag/>
  46. <insgspcdata/>
  47. <userdeptflagcd/>
  48. <deptL/>
  49. <deptM/>
  50. <pid/>
  51. <execdeptcd/>
  52. <wardcd/>
  53. </send>
  54. <init>
  55. <LB0001>
  56. <cd/>
  57. <nm/>
  58. </LB0001>
  59. </init>
  60. <hidden>
  61. <ref>
  62. <usdd/>
  63. <uedd/>
  64. <deptgbn>1</deptgbn>
  65. <deptL>00</deptL>
  66. <deptM>00</deptM>
  67. <pid/>
  68. <execdeptcd>00</execdeptcd>
  69. </ref>
  70. <report/>
  71. <JoHoiFlag>
  72. <wardcd2>00</wardcd2>
  73. </JoHoiFlag>
  74. </hidden>
  75. </root>
  76. </instance>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  80. <submission id="TRLLP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getInsgSpc"/>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. fSetInit();
  84. fGetInsgSpc();
  85. ]]>
  86. </script>
  87. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0106"/>
  88. <submission id="TXLLP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  89. </model>
  90. <script type="javascript">
  91. <![CDATA[
  92. //초기화
  93. function fSetInit(){
  94. grd_incgspc.fixedcellcheckbox(0, 1) = true;
  95. grd_incgspc.fixedcellischeck(0, 1) = false;
  96. var toDay = getCurrentDate();
  97. model.setValue("/root/hidden/ref/usdd", toDay);
  98. model.setValue("/root/hidden/ref/uedd", toDay);
  99. // 초기정보 조회
  100. model.setValue("/root/send/codeflag", "0001|0102|0104|0000|0111|"); //0106 시행부서
  101. submit("TRLZZ00101");
  102. model.removeNodeset("/root/main/getinsgspc");
  103. model.removeNodeset("/root/hidden/report");
  104. model.refresh();
  105. }
  106. //부적합검체상세내역 조회
  107. function fGetInsgSpc(){
  108. grd_incgspc.fixedcellischeck(0, 1) = false;
  109. model.removeNodeset("/root/main/getinsgspc");
  110. model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/usdd")); // 등록시작일
  111. model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/uedd")); // 등록종료일
  112. model.setValue("/root/send/deptgbn", model.getValue("/root/hidden/ref/deptgbn")); // 부서
  113. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  114. model.setValue("/root/send/deptL", model.getValue("/root/hidden/ref/deptL"));
  115. model.setValue("/root/send/deptM", model.getValue("/root/hidden/ref/deptM"));
  116. model.setValue("/root/send/execdeptcd", model.getValue("/root/hidden/ref/execdeptcd"));
  117. model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid")); // 등록번호
  118. model.setValue("/root/send/wardcd", model.getValue("/root/hidden/JoHoiFlag/wardcd2")); // 병동
  119. //messageBox(model.getValue("/root/hidden/JoHoiFlag/wardcd2"),"aa") ;
  120. submit("TRLLP00701");
  121. }
  122. //부적합검체상세내역 삭제
  123. function fDelete(){
  124. for(i=1; i<grd_incgspc.rows; i++ ){
  125. if(model.getValue("/root/main/getinsgspc["+i+"]/choi")=="Y"){
  126. grd_incgspc.rowStatus(i)= 2;
  127. }else{
  128. grd_incgspc.rowStatus(i)= 0;
  129. }
  130. }
  131. model.setValue("/root/send/insgspcdata", grd_incgspc.getUpdateData());
  132. if(submit("TXLLP00701")){
  133. fGetInsgSpc();
  134. }
  135. }
  136. //출력
  137. function fRexpertPrint() {
  138. model.makeNode("/root/hidden/report");
  139. for(i=1; i<grd_incgspc.rows; i++ ){
  140. if(model.getValue("/root/main/getinsgspc["+i+"]/choi")=="Y"){
  141. //model.removeNodeset("/root/main/getinsgspc["+i+"]");
  142. copyNodeListType("/root/hidden/report", "/root/main/getinsgspc["+i+"]", "arter");
  143. }
  144. }
  145. exeReportPreview("RPLLP00100", "XMLSTR", "/root/hidden/report");
  146. model.removenode("/root/hidden/report");
  147. }
  148. function fComboAalue(){
  149. if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
  150. cmb_dept.visible = true;
  151. combo2.visible = false;
  152. }
  153. else{
  154. cmb_dept.visible = false;
  155. combo2.visible = true;
  156. }
  157. }
  158. function fKeyEvent(){
  159. if(event.keyCode == "13"){
  160. // 등록번호 바코드 리딩시
  161. if(event.target == "ipt_pid"){
  162. model.setValue("/root/hidden/ref/pid", ipt_pid.currentText);
  163. fGetInsgSpc();
  164. }
  165. }
  166. }
  167. function fExeExcel(pGridId) {
  168. var fileName = window.fileDialog("save", ",", false, "부적합검체목록", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  169. if (fileName != "")
  170. {
  171. pGridId.saveExcel(fileName);
  172. }
  173. }
  174. ]]>
  175. </script>
  176. </xhtml:head>
  177. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  178. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  179. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  180. <select1 id="combo2" ref="/root/hidden/ref/deptM" visibility="hidden" appearance="minimal" style="left:555px; top:8px; width:125px; height:19px; font-weight:normal; ">
  181. <choices>
  182. <itemset nodeset="/root/init/LB0102">
  183. <label ref="nm"/>
  184. <value ref="cd"/>
  185. </itemset>
  186. </choices>
  187. </select1>
  188. <select1 id="combo1" ref="/root/hidden/ref/deptgbn" visibility="hidden" appearance="minimal" style="left:535px; top:8px; width:85px; height:19px; font-weight:normal; ">
  189. <choices>
  190. <item>
  191. <label>대분류</label>
  192. <value>1</value>
  193. </item>
  194. <item>
  195. <label>중분류</label>
  196. <value>2</value>
  197. </item>
  198. </choices>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. fComboAalue();
  202. ]]>
  203. </script>
  204. </select1>
  205. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  206. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  207. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  208. <caption>조회</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fGetInsgSpc();
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption3" class="search_no_b" style="left:212px; top:8px; width:15px; height:20px; ">~</caption>
  216. <input id="ipt_usdd" ref="/root/hidden/ref/usdd" class="input_search" inputtype="date" style="left:108px; top:8px; width:100px; height:19px; "/>
  217. <input id="ipt_uedd" ref="/root/hidden/ref/uedd" class="input_search" inputtype="date" style="left:230px; top:8px; width:100px; height:19px; "/>
  218. <caption id="cap_rgstdd" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">통보일자 :</caption>
  219. <caption id="caption1" class="search_name" style="left:626px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
  220. <select1 id="cmb_dept" ref="/root/hidden/ref/deptL" visibility="hidden" appearance="minimal" style="left:726px; top:8px; width:125px; height:19px; font-weight:normal; ">
  221. <choices>
  222. <itemset nodeset="/root/init/LB0104">
  223. <label ref="nm"/>
  224. <value ref="cd"/>
  225. </itemset>
  226. </choices>
  227. </select1>
  228. <select1 id="combo3" ref="/root/hidden/ref/execdeptcd" appearance="minimal" style="left:726px; top:8px; width:125px; height:19px; font-weight:normal; ">
  229. <choices>
  230. <itemset nodeset="/root/init/LB0111">
  231. <label ref="nm"/>
  232. <value ref="cd"/>
  233. </itemset>
  234. </choices>
  235. </select1>
  236. <caption id="caption2" class="search_name" style="left:896px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  237. <input id="ipt_pid" ref="/root/hidden/ref/pid" class="input_button" inputtype="button" style="left:994px; top:8px; width:100px; height:19px; "/>
  238. <caption id="caption5" class="search_name" style="left:360px; top:10px; width:65px; height:17px; ">병 동</caption>
  239. </group>
  240. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:150px; height:13px; ">부적합검체상세내역</caption>
  241. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  242. <datagrid id="grd_incgspc" nodeset="/root/main/getinsgspc" caption="^처방일시^환자명^등록번호^바코드번호^진료과^병동/병실^시행여부^통보시간^통보자^연락번호^취소사유^검체상태^조치사항^검사항목^시행부서^피통보자^확인일시^검체명" colsep="^" colwidth="34, 105, 55, 72, 89, 89,107, 59, 105, 55,60,60,62, 200, 300,89,59,105,127" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:666px; ">
  243. <col checkvalue="Y,N" ref="choi" type="checkbox"/>
  244. <col ref="rgstdt" format="yyyy-mm-dd hh:mm"/>
  245. <col ref="patnm"/>
  246. <col ref="pid"/>
  247. <col ref="bcno"/>
  248. <col ref="orddeptnm"/>
  249. <col ref="wardroom"/>
  250. <col ref="rsltstat" style="text-align:center; "/>
  251. <col ref="notidt" format="yyyy-mm-dd hh:mm"/>
  252. <col ref="lastupdtrid"/>
  253. <col ref="phone"/>
  254. <col ref="resncd"/>
  255. <col ref="spcstatdesc"/>
  256. <col ref="measfact"/>
  257. <col ref="tclslist"/>
  258. <col ref="execdeptcd"/>
  259. <col ref="notitrgtnm"/>
  260. <col ref="lastupdtdt"/>
  261. <col ref="spcnm"/>
  262. <script type="javascript" ev:event="onaftersort">
  263. <![CDATA[
  264. grd_incgspc.gridToInstance();
  265. ]]>
  266. </script>
  267. </datagrid>
  268. <button id="button2" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
  269. <caption>엑셀</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. fExeExcel (grd_incgspc);
  273. ]]>
  274. </script>
  275. </button>
  276. <select1 id="combo4" ref="/root/hidden/JoHoiFlag/wardcd2" class="combo_search" appearance="minimal" style="left:430px; top:20px; width:165px; height:19px; ">
  277. <choices>
  278. <itemset nodeset="/root/init/LB0001">
  279. <label ref="nm"/>
  280. <value ref="cd"/>
  281. </itemset>
  282. </choices>
  283. <script type="javascript" ev:event="xforms-select">
  284. <![CDATA[
  285. //fWardSelect("W");
  286. ]]>
  287. </script>
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. // var menu = model.getValue("/root/properties/menu/menuitemcd");
  291. // var scrid = getScreenID();
  292. //
  293. // if(model.getValue("/root/hidden/JoHoiFlag/regnopatnm") != "") {
  294. // if((menu != "MI00410037" && menu != "MI00410038") && (scrid == "SMLLC00300" || scrid == "SMLLC00200")) {//간호에서 팝업으로 띄울때
  295. // model.setValue("/root/hidden/JoHoiFlag/regnopatnm", "");
  296. // }
  297. // }
  298. //
  299. // model.refresh();
  300. ]]>
  301. </script>
  302. </select1>
  303. </group>
  304. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  305. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  306. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
  307. <caption>출력</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. fRexpertPrint();
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  315. <caption>초기화</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. fSetInit();
  319. ]]>
  320. </script>
  321. </button>
  322. <button id="btn_delete" class="btn4_letter2" disabled="true" style="left:1068px; top:3px; width:68px; height:22px; ">
  323. <caption>삭제</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. fDelete();
  327. ]]>
  328. </script>
  329. </button>
  330. </group>
  331. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  332. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">부적합검체조회</caption>
  333. </group>
  334. <script type="javascript" ev:event="onkeypress">
  335. <![CDATA[
  336. fKeyEvent();
  337. ]]>
  338. </script>
  339. </xhtml:body>
  340. </xhtml:html>