SMPAS04000_처방액팅오류및마감오류조회.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>처방액팅오류 및 마감오류조회</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <projlist>
  12. <list>
  13. <proj>
  14. <inout/>
  15. <pid/>
  16. <hngnm/>
  17. <sexage/>
  18. <prcpdd/>
  19. <prcpcd/>
  20. <prcpnm/>
  21. <prcphngnm/>
  22. <snglcalcscorcd/>
  23. <corcdhngnm/>
  24. <orddeptnm/>
  25. <usernm/>
  26. <execdd/>
  27. <execdeptnm/>
  28. <execrid/>
  29. <prcpno/>
  30. <fstrgstdt/>
  31. <calcstat/>
  32. <prcpstat/>
  33. <lastupdtdt/>
  34. <lastupdtrid/>
  35. <enddd/>
  36. <endacptno/>
  37. </proj>
  38. </list>
  39. </projlist>
  40. <list/>
  41. <patinfo>
  42. <patinfolist/>
  43. </patinfo>
  44. </main>
  45. <send>
  46. <search>
  47. </search>
  48. <cond>
  49. <errflag/>
  50. <fromdd/>
  51. <todd/>
  52. <srchpid/>
  53. <except/>
  54. </cond>
  55. </send>
  56. <result>
  57. <name>
  58. <name/>
  59. <sexage/>
  60. </name>
  61. </result>
  62. </root>
  63. </instance>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. fInitialize();
  67. ]]>
  68. </script>
  69. <submission id="TRPAS04000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/projlist/list"/>
  70. <submission id="TRPAS04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/result"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript">
  76. <![CDATA[
  77. /** ----------------------------------------------------------------------
  78. *
  79. * 날짜 계산(기준일자를 기준으로 입력일자만큼 이후 날짜를 찾아오기)
  80. *
  81. * ----------------------------------------------------------------------
  82. **/
  83. function getDateAddc(inputday,addend){
  84. var backDate ="";
  85. var rt = 0;
  86. var yyyy = inputday.substring(0,4) +"";
  87. var mm = inputday.substring(4,6) +"";
  88. var dd = inputday.substring(6,8) +"";
  89. var startDate = new Date(yyyy,(eval(mm)-1),dd);
  90. startDate.setTime(startDate.getTime()+(86400000*addend));
  91. NowYear = startDate.getYear();// 년
  92. NowMonth = startDate.getMonth()+1;// 월
  93. NowDay = startDate.getDate(); // 일
  94. backDate += NowYear ; //년도
  95. if (NowMonth < 10 ) backDate += "0" + NowMonth ;
  96. else backDate += (startDate.getMonth() + 1);
  97. if (NowDay < 10 ) backDate += "0" + NowDay ;
  98. else backDate += (startDate.getDate());
  99. return backDate ;
  100. }
  101. function fInitialize(){
  102. var today = getCurrentDate();
  103. model.setValue("/root/send/cond/fromdd", getDateAddc(today, -1));
  104. model.setValue("/root/send/cond/todd", getDateAddc(today, -1));
  105. checkbox1.select(0);
  106. combo2.select(0);
  107. model.removeNodeset("/root/main/projlist/list/proj");
  108. model.refresh();
  109. }
  110. function fGetErrorList(){
  111. model.removeNodeset("/root/main/projlist/list/proj");
  112. model.refresh();
  113. var fromdd = ipt_fromdd.value;
  114. var todd = ipt_todd.value;
  115. var interval = getDateInterval(fromdd, todd);
  116. var pid = model.getValue("/root/send/cond/srchpid");
  117. if(interval > 3 && pid == ""){
  118. alert("등록번호 입력없이 최대 3일간 조회 가능합니다.");
  119. }
  120. else if(interval > 30 && pid != ""){
  121. alert("최대 30일간 조회 가능합니다.");
  122. }
  123. else {
  124. submit("TRPAS04002");
  125. submit("TRPAS04000");
  126. }
  127. }
  128. ]]>
  129. </script>
  130. </xhtml:head>
  131. <xhtml:body guideline="1,1195;2,782;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  132. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  133. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">처방액팅오류 및 마감오류조회</caption>
  134. </group>
  135. <group id="group5" scroll="auto" style="left:0px; top:45px; width:1195px; height:730px; ">
  136. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  137. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  138. <line id="line18" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:29px; border-left-style:solid; "/>
  139. <button id="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  140. <caption>조회</caption>
  141. <script type="javascript" ev:event="DOMActivate">
  142. <![CDATA[
  143. fGetErrorList();
  144. ]]>
  145. </script>
  146. </button>
  147. <caption id="caption3" class="search_name" style="left:430px; top:8px; width:65px; height:17px; ">From</caption>
  148. <input id="ipt_fromdd" ref="/root/send/cond/fromdd" class="input_default" inputtype="date" style="left:493px; top:8px; width:85px; height:19px; "/>
  149. <caption id="caption4" class="search_name" style="left:585px; top:8px; width:45px; height:17px; ">To</caption>
  150. <input id="ipt_todd" ref="/root/send/cond/todd" class="input_default" inputtype="date" style="left:633px; top:8px; width:85px; height:19px; "/>
  151. <caption id="caption2" class="search_name" style="left:6px; top:8px; width:69px; height:17px; ">구분</caption>
  152. <select1 id="combo2" ref="/root/send/cond/errflag" class="combo_search" appearance="minimal" style="left:65px; top:8px; width:355px; height:19px; ">
  153. <choices>
  154. <item>
  155. <label>실시일은 있으나 실시 부서가 없는 자료</label>
  156. <value>1</value>
  157. </item>
  158. <item>
  159. <label>마감 후 취소되었으나, 반환사유 없는 내역</label>
  160. <value>2</value>
  161. </item>
  162. <item>
  163. <label>실시는 되었으나, 마감되지 않는 내역</label>
  164. <value>3</value>
  165. </item>
  166. <item>
  167. <label>[외래] 실시처방 실시일자 있으나 계산내역 실시일자 없는 자료</label>
  168. <value>4</value>
  169. </item>
  170. <item>
  171. <label>[입원] 실시처방 실시일자 있으나 계산내역 실시일자 없는 자료</label>
  172. <value>5</value>
  173. </item>
  174. <item>
  175. <label>[외래] 실시처방 실시일자 있으나 계산내역 없는 자료</label>
  176. <value>6</value>
  177. </item>
  178. <item>
  179. <label>[입원] 실시처방 실시일자 있으나 계산내역 없는 자료</label>
  180. <value>7</value>
  181. </item>
  182. </choices>
  183. </select1>
  184. <button id="btn_pid" class="icon_search" navindex="-1" style="left:901px; top:11px; width:16px; height:16px; ">
  185. <caption/>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. //조회건수가 1건일 경우 팝업창을 바로 닫는다.
  189. model.setValue("/root/source/autoflag", "Y");
  190. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  191. var sexage = model.getValue("/root/main/patinfo/patinfolist/sex") + "/" + model.getValue("/root/main/patinfo/patinfolist/age") ;
  192. model.setValue("/root/send/cond/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  193. model.setValue("/root/result/name/name", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  194. model.setValue("/root/result/name/sexage", sexage);
  195. model.refresh();
  196. //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  197. ]]>
  198. </script>
  199. </button>
  200. <caption id="caption5" class="search_name" style="left:730px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  201. <input id="input2" ref="/root/send/cond/srchpid" class="input_search" style="left:820px; top:10px; width:75px; height:19px; ">
  202. <script type="javascript" ev:event="onkeypress">
  203. <![CDATA[
  204. if (event.keycode == 13)
  205. {
  206. input2.value = input2.currentText;
  207. submit("TRPAS04002");
  208. model.refresh();
  209. }
  210. ]]>
  211. </script>
  212. </input>
  213. <output id="output1" ref="/root/result/name/name" class="output_fix" style="left:925px; top:10px; width:65px; height:19px; "/>
  214. <output id="output2" ref="/root/result/name/sexage" class="output_fix" style="left:992px; top:10px; width:35px; height:19px; "/>
  215. <select id="checkbox1" ref="/root/send/cond/except" overflow="visible" appearance="full" style="left:1035px; top:10px; width:70px; height:20px; border-style:none; ">
  216. <choices>
  217. <item>
  218. <label>건진제외</label>
  219. <value>Y</value>
  220. </item>
  221. </choices>
  222. </select>
  223. </group>
  224. <line id="line20" class="line_1" style="x1:1px; y1:81px; x2:1194px; y2:81px; "/>
  225. <caption id="caption8" class="tit_2" style="left:5px; top:66px; width:160px; height:13px; ">액팅 리스트</caption>
  226. <group id="group2" style="left:800px; top:55px; width:395px; height:25px; ">
  227. <button id="button3" class="btn2_letter4" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:330px; top:5px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  228. <caption>엑셀저장</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  232. if (fileName != "")
  233. {
  234. grd_projlist.saveExcel(fileName);
  235. }
  236. ]]>
  237. </script>
  238. </button>
  239. </group>
  240. <datagrid id="grd_projlist" nodeset="/root/main/projlist/list/proj" caption="I/O^등록번호^환자명^S/A^처방일^처방코드^처방명^처방한글명^수가코드^수가명^진료과^진료의^실시일자^실시부서^실시자^처방번호^처방등록일시^수납여부^상태^수정일시^수정자^마감일자^마감번호^seq" colsep="^" colwidth="46, 75, 72, 50, 79, 94, 300, 30, 90, 90, 93, 79, 120, 100, 78, 80, 100, 60, 60, 160, 100, 160, 100" dataheight="23" defaultrows="0" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:1px; top:85px; width:1194px; height:640px; border-color:transparent; border-style:none; ">
  241. <col ref="inout"/>
  242. <col ref="pid"/>
  243. <col ref="hngnm"/>
  244. <col ref="sexage"/>
  245. <col ref="prcpdd" format="yyyy-mm-dd"/>
  246. <col ref="prcpcd"/>
  247. <col ref="prcpnm"/>
  248. <col ref="prcphngnm"/>
  249. <col ref="snglcalcscorcd"/>
  250. <col ref="corcdhngnm"/>
  251. <col ref="orddeptnm"/>
  252. <col ref="usernm"/>
  253. <col ref="execdd" format="yyyy-mm-dd 99:99:99"/>
  254. <col ref="execdeptnm"/>
  255. <col ref="execrid"/>
  256. <col ref="prcpno"/>
  257. <col ref="fstrgstdt" format="yyyy-mm-dd 99:99"/>
  258. <col ref="calcstat"/>
  259. <col ref="prcpstat"/>
  260. <col ref="lastupdtdt" format="yyyy-mm-dd 99:99:99"/>
  261. <col ref="lastupdtrid"/>
  262. <col ref="enddd" format="yyyy-mm-dd 99:99:99"/>
  263. <col ref="endacptno"/>
  264. </datagrid>
  265. </group>
  266. <group id="group3" style="left:0px; top:13px; width:1190px; height:27px; ">
  267. <button id="button7" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1120px; top:2px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  268. <caption>초기화</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. fInitialize();
  272. ]]>
  273. </script>
  274. </button>
  275. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1189px; y2:25px; "/>
  276. </group>
  277. </xhtml:body>
  278. </xhtml:html>