SMPMC07300_정신과환자수산정.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  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. <patcnt>
  11. <patcnt1>
  12. <patcntlist/>
  13. </patcnt1>
  14. <patcnt2>
  15. <patcntlist/>
  16. </patcnt2>
  17. <patcnt3>
  18. <patcntlist/>
  19. </patcnt3>
  20. </patcnt>
  21. <ipat>
  22. <patlist/>
  23. </ipat>
  24. <opat>
  25. <patlist/>
  26. </opat>
  27. </main>
  28. <send>
  29. <data1>
  30. <fromdd/>
  31. <todd/>
  32. </data1>
  33. <data2>
  34. <fromdd_1/>
  35. <todd_1/>
  36. <fromdd_2/>
  37. <todd_2/>
  38. <fromdd_3/>
  39. <todd_3/>
  40. <flag/>
  41. </data2>
  42. <data3>
  43. <fromdd/>
  44. <todd/>
  45. <flag/>
  46. <insukind/>
  47. </data3>
  48. </send>
  49. <hidden>
  50. <syear/>
  51. <sterm/>
  52. <data3>
  53. <fromdd/>
  54. <todd/>
  55. <insukind/>
  56. <flag/>
  57. </data3>
  58. <data4>
  59. <fromdd/>
  60. <todd/>
  61. <insukind/>
  62. <flag/>
  63. </data4>
  64. <cntlist>
  65. <patcntlist/>
  66. </cntlist>
  67. <rpatlist>
  68. <patlist/>
  69. </rpatlist>
  70. </hidden>
  71. </root>
  72. </instance>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. var curDate = getCurrentDate();
  76. curMonth = curDate.substr(0,6);
  77. curYear = curDate.substr(0,4);
  78. if(curMonth.substr(4,2)=='01'){
  79. model.setValue("/root/send/data1/fromdd",curYear-1+'12');
  80. model.setValue("/root/send/data1/todd",curMonth);
  81. }else{
  82. model.setValue("/root/send/data1/fromdd",curMonth-1);
  83. model.setValue("/root/send/data1/todd",curMonth);
  84. }
  85. model.setValue("/root/hidden/syear",curYear);
  86. model.refresh();
  87. ]]>
  88. </script>
  89. <submission id="TXPMC07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/hidden/rcv"/>
  90. <submission id="TRPMC07101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/cntlist"/>
  91. <submission id="TRPMC07102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rpatlist"/>
  92. </model>
  93. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  97. <script type="javascript">
  98. <![CDATA[
  99. function fSearch_cnt(flag){
  100. model.setValue("/root/send/data2/flag",flag);
  101. model.resetInstanceNode("/root/hidden/cntlist");
  102. if(submit("TRPMC07101")){
  103. if(flag=='1'){
  104. model.resetInstanceNode("/root/main/patcnt/patcnt1");
  105. for(i=1;i<=2;i++){
  106. model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
  107. model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
  108. }
  109. }else if (flag=='2'){
  110. model.resetInstanceNode("/root/main/patcnt/patcnt2");
  111. for(i=1;i<=2;i++){
  112. model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
  113. model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
  114. }
  115. }else if (flag=='3'){
  116. model.resetInstanceNode("/root/main/patcnt/patcnt3");
  117. for(i=1;i<=2;i++){
  118. model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
  119. model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
  120. }
  121. }else if (flag=='A'){
  122. model.resetInstanceNode("/root/main/patcnt/patcnt1");
  123. model.resetInstanceNode("/root/main/patcnt/patcnt2");
  124. model.resetInstanceNode("/root/main/patcnt/patcnt3");
  125. for(i=1;i<=2;i++){
  126. model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_1"));
  127. model.makeValue("/root/main/patcnt/patcnt1/patcntlist["+i+"]/ins1_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins1_2"));
  128. model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins2_1"));
  129. model.makeValue("/root/main/patcnt/patcnt2/patcntlist["+i+"]/ins2_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins2_2"));
  130. model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_1",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins3_1"));
  131. model.makeValue("/root/main/patcnt/patcnt3/patcntlist["+i+"]/ins3_2",model.getValue("/root/hidden/cntlist/patcntlist["+i+"]/ins3_2"));
  132. }
  133. }
  134. }
  135. }
  136. function fSearch_patlist(){
  137. submit("TRPMC07102");
  138. }
  139. function fOJBaseInfoRef()
  140. {
  141. model.resetInstanceNode("/root/main/rcv/ptbs");
  142. submit("TRPMC00902");
  143. model.refresh();
  144. }
  145. ]]>
  146. </script>
  147. </xhtml:head>
  148. <xhtml:body>
  149. <group id="group2" style="left:0px; top:20px; width:835px; height:40px; ">
  150. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:830px; height:35px; "/>
  151. <caption id="caption32" class="tit_2" style="left:15px; top:11px; width:150px; height:13px; ">입원/외래 환자 생성</caption>
  152. <caption id="caption1" style="left:267px; top:12px; width:12px; height:11px; vertical-align:middle; ">~</caption>
  153. <input id="input2" ref="/root/send/data1/todd" class="input_search" format="yyyy-mm" style="left:290px; top:9px; width:61px; height:19px; ">
  154. <hint>
  155. <![CDATA[14일]]>
  156. </hint>
  157. </input>
  158. <input id="input1" ref="/root/send/data1/fromdd" class="input_search" format="yyyy-mm" style="left:190px; top:9px; width:61px; height:19px; ">
  159. <hint>
  160. <![CDATA[15일]]>
  161. </hint>
  162. </input>
  163. <button id="button1" class="btn4_letter4" style="left:390px; top:8px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  164. <caption>환자생성</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. fromdd = model.getValue("/root/send/data1/fromdd");
  168. todd = model.getValue("/root/send/data1/todd");
  169. if(todd.length ==6 && fromdd.length ==6 &&todd>fromdd){
  170. if(isValidMonth(fromdd.substr(4,2)) && isValidMonth(todd.substr(4,2)) ){
  171. var result = messageBox(fromdd+"15 부터"+todd+"14 까지 환자를 생성하시겠습니까?", "Q");
  172. if(result=='6'){
  173. model.setValue("/root/send/data1/fromdd",fromdd+'15');
  174. model.setValue("/root/send/data1/todd",todd+'14');
  175. submit("TXPMC07101");
  176. // alert("생성");
  177. model.setValue("/root/send/data1/fromdd",fromdd);
  178. model.setValue("/root/send/data1/todd",todd);
  179. }
  180. }else{
  181. messageBox("생성일자를 확인하세요.", "I");
  182. }
  183. }else{
  184. messageBox("생성일자를 확인하세요.", "I");
  185. }
  186. ]]>
  187. </script>
  188. <hint>
  189. <![CDATA[데이터 처리 건 수에 따라 생성속도가 느려질 수 있습니다. 생성버튼을 누른 후 잠시 후에 조회해 주세요.]]>
  190. </hint>
  191. </button>
  192. </group>
  193. <line id="line1" class="line_1" style="x1:0px; y1:341px; x2:830px; y2:341px; "/>
  194. <caption id="caption3" class="tit_2" style="left:0px; top:263px; width:136px; height:13px; ">생성된 자료 확인</caption>
  195. <button id="button3" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:765px; top:321px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  196. <caption>액셀저장</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var fileName = window.fileDialog("save", ",", false, "정신과환자수산정", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  200. if (fileName != "")
  201. {
  202. var condnm = caption4.value;
  203. datagrid1.saveExcel(fileName, condnm, false, false, "", "");
  204. }
  205. window.exec(fileName);
  206. ]]>
  207. </script>
  208. </button>
  209. <datagrid id="datagrid1" nodeset="/root/main/ipat/patlist" scroll="auto" caption="생성시작일^생성종료일^조회시작일^조회종료일^등록번호^환자명^입원일^퇴원일^급종^유형^상병코드" colsep="^" colwidth="77, 77, 77, 77, 79, 80, 77, 77, 37, 37, 90" rowheader="seq" rowsep="|" style="left:0px; top:351px; width:830px; height:175px; ">
  210. <col ref="cfromdd" type="output" format="yyyy-mm-dd"/>
  211. <col ref="ctodd" type="output" format="yyyy-mm-dd"/>
  212. <col ref="fromdd" type="output" format="yyyy-mm-dd"/>
  213. <col ref="todd" type="output" format="yyyy-mm-dd"/>
  214. <col ref="pid" type="output"/>
  215. <col ref="hngnm" type="output" style="left:697px; top:23px; width:100px; height:23px; "/>
  216. <col ref="indd" type="output" format="yyyy-mm-dd"/>
  217. <col ref="dschdd" type="output" format="yyyy-mm-dd"/>
  218. <col ref="insukind" type="output"/>
  219. <col ref="suppkind" type="output"/>
  220. <col ref="diagcd" type="output"/>
  221. </datagrid>
  222. <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">정신과 환자 수 산정</caption>
  223. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:89px; width:830px; height:35px; "/>
  224. <input id="input4" ref="/root/send/data2/fromdd_1" class="input_search" inputtype="date" style="left:201px; top:127px; width:81px; height:19px; "/>
  225. <input id="input5" ref="/root/send/data2/todd_1" class="input_search" inputtype="date" style="left:283px; top:127px; width:81px; height:19px; "/>
  226. <input id="input6" ref="/root/send/data2/fromdd_2" class="input_search" inputtype="date" style="left:413px; top:127px; width:81px; height:19px; "/>
  227. <input id="input7" ref="/root/send/data2/todd_2" class="input_search" inputtype="date" style="left:495px; top:127px; width:81px; height:19px; "/>
  228. <input id="input8" ref="/root/send/data2/fromdd_3" class="input_search" inputtype="date" style="left:624px; top:127px; width:81px; height:19px; "/>
  229. <button id="button5" class="btn2_letter2" style="left:365px; top:127px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  230. <caption>조회</caption>
  231. <script type="javascript" ev:event="DOMActivate">
  232. <![CDATA[
  233. var nam= model.getValue("/root/send/data2/fromdd_1")+"~"+model.getValue("/root/send/data2/todd_1");
  234. caption11.value = nam;
  235. var flag = "1";
  236. fSearch_cnt(flag);
  237. datagrid2.refresh();
  238. ]]>
  239. </script>
  240. </button>
  241. <input id="input9" ref="/root/send/data2/todd_3" class="input_search" inputtype="date" style="left:706px; top:127px; width:81px; height:19px; "/>
  242. <caption id="caption2" class="tit_2" style="left:0px; top:69px; width:150px; height:13px; ">기간별 환자 수</caption>
  243. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:283px; width:830px; height:35px; "/>
  244. <select1 id="radio12" ref="/root/hidden/data3/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:417px; top:294px; width:190px; height:17px; background-color:#fffbf2; border-style:none; ">
  245. <choices>
  246. <item>
  247. <label>건강보험</label>
  248. <value>1</value>
  249. </item>
  250. <item>
  251. <label>의료급여</label>
  252. <value>2</value>
  253. </item>
  254. <item>
  255. <label>전체</label>
  256. <value>3</value>
  257. </item>
  258. </choices>
  259. </select1>
  260. <input id="input11" ref="/root/hidden/data3/fromdd" class="input_search" inputtype="date" style="left:170px; top:293px; width:100px; height:19px; "/>
  261. <input id="input12" ref="/root/hidden/data3/todd" class="input_search" inputtype="date" style="left:290px; top:293px; width:100px; height:19px; "/>
  262. <caption id="caption4" class="search_name" style="left:15px; top:293px; width:150px; height:17px; ">입원환자 생성 자료</caption>
  263. <caption id="caption5" style="left:275px; top:296px; width:12px; height:11px; vertical-align:middle; ">~</caption>
  264. <button id="button2" class="btn1_letter2" style="left:770px; top:291px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  265. <caption>조회</caption>
  266. <script type="javascript" ev:event="DOMActivate">
  267. <![CDATA[
  268. fromdd = model.getValue("/root/hidden/data3/fromdd");
  269. todd = model.getValue("/root/hidden/data3/todd");
  270. insukind= model.getValue("/root/hidden/data3/insukind");
  271. if(isValidDateTime(fromdd,'YYYYMMDD') &&isValidDateTime(todd,'YYYYMMDD') &&fromdd<=todd&&!isNull(insukind)){
  272. model.setValue("/root/hidden/data3/flag","I");
  273. model.copyNode("/root/send/data3","/root/hidden/data3");
  274. model.resetInstanceNode("/root/hidden/rpatlist");
  275. fSearch_patlist();
  276. model.copyNode("/root/main/ipat","/root/hidden/rpatlist");
  277. datagrid1.refresh();
  278. }else{
  279. messageBox("조회 조건을 확인하세요.", "I");
  280. }
  281. ]]>
  282. </script>
  283. </button>
  284. <line id="line40" class="line_4" style="x1:705px; y1:287px; x2:705px; y2:315px; "/>
  285. <line id="line2" class="line_4" style="x1:705px; y1:540px; x2:705px; y2:568px; "/>
  286. <shape id="roundrect4" appearance="roundrect" style="left:0px; top:536px; width:830px; height:35px; "/>
  287. <button id="button4" class="btn1_letter2" style="left:770px; top:544px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  288. <caption>조회</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. fromdd = model.getValue("/root/hidden/data4/fromdd");
  292. todd = model.getValue("/root/hidden/data4/todd");
  293. insukind= model.getValue("/root/hidden/data4/insukind");
  294. if(isValidDateTime(fromdd,'YYYYMMDD') &&isValidDateTime(todd,'YYYYMMDD') &&fromdd<=todd&&!isNull(insukind)){
  295. model.setValue("/root/hidden/data4/flag","O");
  296. model.copyNode("/root/send/data3","/root/hidden/data4");
  297. model.resetInstanceNode("/root/hidden/rpatlist");
  298. fSearch_patlist();
  299. model.copyNode("/root/main/opat","/root/hidden/rpatlist");
  300. datagrid3.refresh();
  301. }else{
  302. messageBox("조회 조건을 확인하세요.", "I");
  303. }
  304. ]]>
  305. </script>
  306. </button>
  307. <button id="button6" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:765px; top:574px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  308. <caption>액셀저장</caption>
  309. <script type="javascript" ev:event="DOMActivate">
  310. <![CDATA[
  311. var fileName = window.fileDialog("save", ",", false, "정신과환자수산정", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  312. if (fileName != "")
  313. {
  314. var condnm = caption6.value;
  315. datagrid3.saveExcel(fileName, condnm, false, false, "", "");
  316. }
  317. window.exec(fileName);
  318. ]]>
  319. </script>
  320. </button>
  321. <select1 id="radio1" ref="/root/hidden/data4/insukind" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:417px; top:547px; width:190px; height:17px; background-color:#fffbf2; border-style:none; ">
  322. <choices>
  323. <item>
  324. <label>건강보험</label>
  325. <value>1</value>
  326. </item>
  327. <item>
  328. <label>의료급여</label>
  329. <value>2</value>
  330. </item>
  331. <item>
  332. <label>전체</label>
  333. <value>3</value>
  334. </item>
  335. </choices>
  336. </select1>
  337. <input id="input3" ref="/root/hidden/data4/fromdd" class="input_search" inputtype="date" style="left:170px; top:546px; width:100px; height:19px; "/>
  338. <input id="input10" ref="/root/hidden/data4/todd" class="input_search" inputtype="date" style="left:290px; top:546px; width:100px; height:19px; "/>
  339. <caption id="caption6" class="search_name" style="left:15px; top:546px; width:150px; height:17px; ">외래환자 생성 자료</caption>
  340. <caption id="caption8" style="left:275px; top:549px; width:12px; height:11px; vertical-align:middle; ">~</caption>
  341. <line id="line3" class="line_1" style="x1:0px; y1:594px; x2:830px; y2:594px; "/>
  342. <line id="line4" class="line_4" style="x1:705px; y1:540px; x2:705px; y2:568px; "/>
  343. <line id="line5" class="line_1" style="x1:0px; y1:147px; x2:830px; y2:147px; text-align:center; vertical-align:middle; "/>
  344. <caption id="caption12" class="cell_1" style="left:0px; top:157px; width:199px; height:46px; text-align:center; vertical-align:middle; "/>
  345. <caption id="caption9" class="cell_1" style="left:0px; top:204px; width:199px; height:24px; text-align:center; vertical-align:middle; ">입원환자수(환자별재원일수합)</caption>
  346. <caption id="caption10" class="cell_1" style="left:0px; top:229px; width:199px; height:24px; text-align:center; vertical-align:middle; ">외래환자수</caption>
  347. <caption id="caption11" class="cell_1" style="left:200px; top:157px; width:209px; height:23px; text-align:center; vertical-align:middle; "/>
  348. <caption id="caption13" class="cell_1" style="left:411px; top:157px; width:209px; height:23px; text-align:center; vertical-align:middle; "/>
  349. <caption id="caption14" class="cell_1" style="left:622px; top:157px; width:209px; height:23px; text-align:center; vertical-align:middle; "/>
  350. <caption id="caption15" class="cell_1" style="left:200px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">건강보험</caption>
  351. <caption id="caption16" class="cell_1" style="left:411px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">건강보험</caption>
  352. <caption id="caption17" class="cell_1" style="left:622px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">건강보험</caption>
  353. <caption id="caption18" class="cell_1" style="left:305px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">의료급여</caption>
  354. <caption id="caption19" class="cell_1" style="left:516px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">의료급여</caption>
  355. <caption id="caption20" class="cell_1" style="left:727px; top:181px; width:104px; height:23px; text-align:center; vertical-align:middle; ">의료급여</caption>
  356. <datagrid id="datagrid2" nodeset="/root/main/patcnt/patcnt1/patcntlist" removehscroll="true" removevscroll="true" colsep="^" colwidth="104, 104" defaultrows="2" rowsep="|" style="left:200px; top:205px; width:210px; height:48px; ">
  357. <col ref="ins1_1" type="output"/>
  358. <col ref="ins1_2" type="output"/>
  359. </datagrid>
  360. <datagrid id="datagrid4" nodeset="/root/main/patcnt/patcnt2/patcntlist" removehscroll="true" removevscroll="true" colsep="^" colwidth="104, 104" defaultrows="2" rowsep="|" style="left:411px; top:205px; width:210px; height:48px; ">
  361. <col ref="ins2_1" type="output"/>
  362. <col ref="ins2_2" type="output"/>
  363. </datagrid>
  364. <datagrid id="datagrid5" nodeset="/root/main/patcnt/patcnt3/patcntlist" removehscroll="true" removevscroll="true" colsep="^" colwidth="104, 104" defaultrows="2" rowsep="|" style="left:622px; top:205px; width:210px; height:48px; ">
  365. <col ref="ins3_1" type="output"/>
  366. <col ref="ins3_2" type="output"/>
  367. </datagrid>
  368. <button id="button8" class="btn2_letter2" style="left:577px; top:127px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  369. <caption>조회</caption>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. var nam= model.getValue("/root/send/data2/fromdd_2")+"~"+model.getValue("/root/send/data2/todd_2");
  373. caption13.value = nam;
  374. var flag = "2";
  375. fSearch_cnt(flag);
  376. datagrid4.refresh();
  377. ]]>
  378. </script>
  379. </button>
  380. <button id="button9" class="btn2_letter2" style="left:788px; top:127px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  381. <caption>조회</caption>
  382. <script type="javascript" ev:event="DOMActivate">
  383. <![CDATA[
  384. var nam= model.getValue("/root/send/data2/fromdd_3")+"~"+model.getValue("/root/send/data2/todd_3");
  385. caption14.value = nam;
  386. var flag = "3";
  387. fSearch_cnt(flag);
  388. datagrid5.refresh();
  389. ]]>
  390. </script>
  391. </button>
  392. <select1 id="combo5" ref="/root/hidden/sterm" class="combo_default" navindex="8" appearance="minimal" style="left:270px; top:97px; width:115px; height:19px; ">
  393. <choices>
  394. <item>
  395. <label>1분기</label>
  396. <value>1</value>
  397. </item>
  398. <item>
  399. <label>2분기</label>
  400. <value>2</value>
  401. </item>
  402. <item>
  403. <label>3분기</label>
  404. <value>3</value>
  405. </item>
  406. <item>
  407. <label>4분기</label>
  408. <value>4</value>
  409. </item>
  410. </choices>
  411. <script type="javascript" ev:event="xforms-value-changed">
  412. <![CDATA[
  413. var syear = model.getValue("/root/hidden/syear")
  414. var sterm = model.getValue("/root/hidden/sterm")
  415. if(sterm =='1'){
  416. model.setValue("/root/send/data2/fromdd_1",syear-1+'1215');
  417. model.setValue("/root/send/data2/todd_1",syear+'0114');
  418. model.setValue("/root/send/data2/fromdd_2",syear+'0115');
  419. model.setValue("/root/send/data2/todd_2",syear+'0214');
  420. model.setValue("/root/send/data2/fromdd_3",syear+'0215');
  421. model.setValue("/root/send/data2/todd_3",syear+'0314');
  422. }else if(sterm =='2'){
  423. model.setValue("/root/send/data2/fromdd_1",syear+'0315');
  424. model.setValue("/root/send/data2/todd_1",syear+'0414');
  425. model.setValue("/root/send/data2/fromdd_2",syear+'0415');
  426. model.setValue("/root/send/data2/todd_2",syear+'0514');
  427. model.setValue("/root/send/data2/fromdd_3",syear+'0515');
  428. model.setValue("/root/send/data2/todd_3",syear+'0614');
  429. }else if(sterm =='3'){
  430. model.setValue("/root/send/data2/fromdd_1",syear+'0615');
  431. model.setValue("/root/send/data2/todd_1",syear+'0714');
  432. model.setValue("/root/send/data2/fromdd_2",syear+'0715');
  433. model.setValue("/root/send/data2/todd_2",syear+'0814');
  434. model.setValue("/root/send/data2/fromdd_3",syear+'0815');
  435. model.setValue("/root/send/data2/todd_3",syear+'0914');
  436. }else if(sterm =='4'){
  437. model.setValue("/root/send/data2/fromdd_1",syear+'0915');
  438. model.setValue("/root/send/data2/todd_1",syear+'1014');
  439. model.setValue("/root/send/data2/fromdd_2",syear+'1015');
  440. model.setValue("/root/send/data2/todd_2",syear+'1114');
  441. model.setValue("/root/send/data2/fromdd_3",syear+'1115');
  442. model.setValue("/root/send/data2/todd_3",syear+'1214');
  443. }
  444. model.refresh();
  445. ]]>
  446. </script>
  447. </select1>
  448. <input id="input13" ref="/root/hidden/syear" class="input_search" format="yyyy" style="left:93px; top:97px; width:61px; height:19px; "/>
  449. <caption id="caption21" class="search_name" style="left:15px; top:98px; width:60px; height:17px; ">연도</caption>
  450. <caption id="caption22" class="search_name" style="left:195px; top:98px; width:60px; height:17px; ">분기</caption>
  451. <button id="button10" class="btn1_letter2" style="left:770px; top:96px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  452. <caption>조회</caption>
  453. <script type="javascript" ev:event="DOMActivate">
  454. <![CDATA[
  455. var syear = model.getValue("/root/hidden/syear");
  456. var sterm = model.getValue("/root/hidden/sterm" );
  457. combo5.dispatch("xforms-value-changed");
  458. if((syear.length ==4)&&(sterm!='')&&(sterm !=0)){
  459. var nam1= model.getValue("/root/send/data2/fromdd_1")+"~"+model.getValue("/root/send/data2/todd_1");
  460. var nam2= model.getValue("/root/send/data2/fromdd_2")+"~"+model.getValue("/root/send/data2/todd_2");
  461. var nam3= model.getValue("/root/send/data2/fromdd_3")+"~"+model.getValue("/root/send/data2/todd_3");
  462. caption11.value = nam1;
  463. caption13.value = nam2;
  464. caption14.value = nam3;
  465. var flag = "A";
  466. fSearch_cnt(flag);
  467. datagrid2.refresh();
  468. datagrid4.refresh();
  469. datagrid5.refresh();
  470. }
  471. else{
  472. messageBox("조회조건을 확인하세요.", "I");
  473. }
  474. ]]>
  475. </script>
  476. </button>
  477. <line id="line6" class="line_4" style="x1:705px; y1:93px; x2:705px; y2:121px; "/>
  478. <datagrid id="datagrid3" nodeset="/root/main/opat/patlist" scroll="auto" caption="생성시작일^생성종료일^조회시작일^조회종료일^등록번호^환자명^진료일^퇴원일^급종^유형^상병코드" colsep="^" colwidth="100, 100, 40, 36, 100, 100, 100, 32, 50, 53, 90" rowheader="seq" rowsep="|" style="left:0px; top:604px; width:830px; height:175px; ">
  479. <col ref="cfromdd" type="output" format="yyyy-mm-dd"/>
  480. <col ref="ctodd" type="output" format="yyyy-mm-dd"/>
  481. <col ref="fromdd" type="output" visibility="hidden"/>
  482. <col ref="todd" type="output" visibility="hidden"/>
  483. <col ref="pid" type="output"/>
  484. <col ref="hngnm" type="output" style="left:697px; top:23px; width:100px; height:23px; "/>
  485. <col ref="indd" type="output" format="yyyy-mm-dd"/>
  486. <col ref="dschdd" type="output" visibility="hidden" format="yyyy-mm-dd"/>
  487. <col ref="insukind" type="output"/>
  488. <col ref="suppkind" type="output"/>
  489. <col ref="diagcd" type="output"/>
  490. </datagrid>
  491. </xhtml:body>
  492. </xhtml:html>