SMARC00300_의뢰환자 진료비 현황.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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. <send>
  10. <search>
  11. <f_date/>
  12. <t_date/>
  13. <coophospnm/>
  14. <drnm/>
  15. <orddeptcd/>
  16. <cptype/>
  17. <clsmatyn/>
  18. <hospgrade/>
  19. </search>
  20. </send>
  21. <main>
  22. <list>
  23. <cooppatlist>
  24. <hngnm/>
  25. <rrgstno1/>
  26. <rrgstno2/>
  27. <sex/>
  28. <age/>
  29. <pid/>
  30. <rgstdd/>
  31. <reqdd/>
  32. <orddd/>
  33. <orddeptnm/>
  34. <orddrnm/>
  35. <diagnm/>
  36. <areacd/>
  37. <hospgrade/>
  38. <coophospnm/>
  39. <drnm/>
  40. <reqpath/>
  41. <cptype/>
  42. <insukind/>
  43. <fsexamflag/>
  44. <oamt/>
  45. <iamt/>
  46. <opamt/>
  47. <totamt/>
  48. </cooppatlist>
  49. </list>
  50. </main>
  51. <init>
  52. <dept>
  53. </dept>
  54. <hospgrade>
  55. <A0429/>
  56. </hospgrade>
  57. <hospgrade1>
  58. <A0429/>
  59. </hospgrade1>
  60. <cptype>
  61. <A0420/>
  62. </cptype>
  63. <areacd>
  64. <A0426/>
  65. </areacd>
  66. <reqpath>
  67. <A0421/>
  68. </reqpath>
  69. <fsexamflag>
  70. <P0021/>
  71. </fsexamflag>
  72. <insukind>
  73. <P0008/>
  74. </insukind>
  75. <cmbcond>
  76. <cptype>
  77. <A0420/>
  78. </cptype>
  79. </cmbcond>
  80. </init>
  81. </root>
  82. </instance>
  83. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  84. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  85. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  86. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  87. <submission id="TRARC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
  88. <script type="javascript" ev:event="xforms-ready">
  89. <![CDATA[
  90. fInit();
  91. ]]>
  92. </script>
  93. </model>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  99. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  100. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  102. <script type="javascript">
  103. <![CDATA[
  104. //===========================
  105. // 의뢰건이 있는 병원만 조회가 된다.
  106. //===========================
  107. // 초기값
  108. function fInit()
  109. {
  110. // 오늘 날짜로 세팅
  111. var CurrentDate = getCurrentDate();
  112. model.setValue("/root/send/search/f_date", CurrentDate);
  113. model.setValue("/root/send/search/t_date", CurrentDate);
  114. // 진료과
  115. //var instcd = "012";
  116. var instcd = getUserInfo("dutplceinstcd");
  117. //var standard_yn = "orduseyn";
  118. var standard_yn = "rcptuseyn";
  119. var ord_deptflag = 'D';
  120. var rslt_ref = "/root/init/dept";
  121. var sort_method = "depthngnm";
  122. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  123. sort_field = "depthngnm"
  124. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method);
  125. // 공통코드 목록 가져오기
  126. zbcfGetCodeList(new Array("A0429", "A0429", "A0420","A0421", "P0021", "P0008", "A0420")
  127. , new Array("/root/init/hospgrade", "/root/init/hospgrade1", "/root/init/cptype","/root/init/reqpath", "/root/init/fsexamflag", "/root/init/insukind", "/root/init/cmbcond/cptype") , true);
  128. // 유형코드
  129. zbcfGetKindCodeList(
  130. new Array("A0014"), //업무규칙
  131. new Array("A0426"), //코드군
  132. new Array("/root/init/areacd"), //노드
  133. true, //minimum : true TRZBC00105
  134. new Array(""), //sorting 항목
  135. new Array("")
  136. );
  137. addComboItem("cmb_orddeptcd", "", "", "above");
  138. addComboItem("cmb_hospgrade", "협력병의원", "CA", "above");
  139. addComboItem("cmb_hospgrade", "", "", "above");
  140. addComboItem("cmb_cptype", "", "", "above");
  141. model.removeNodeset("/root/main/list/cooppatlist");
  142. model.refresh();
  143. }
  144. // 조회전 필수 체크
  145. function fCheckDate()
  146. {
  147. var fromdd = model.getValue("/root/send/search/f_date");
  148. var todd = model.getValue("/root/send/search/t_date");
  149. if( ! isValidDateTime( fromdd, 'YYYYMMDD') || ! isValidDateTime( todd, 'YYYYMMDD') ){
  150. messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  151. return false;
  152. }
  153. if( getDateInterval(fromdd, todd) > 6 ){
  154. messageBox("조회가능한 최대 기간은 1주일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  155. return false;
  156. }
  157. if( getDateInterval(fromdd, todd) < 0 ){
  158. messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  159. return false;
  160. }
  161. // 날짜 계산
  162. var daycnt = getDateInterval(fromdd, todd);
  163. // 1일이 아닌 경우는 조건을 타야 함
  164. if (daycnt != 0)
  165. {
  166. // 진료과 체크
  167. if (model.getValue("/root/send/search/orddeptcd") == "")
  168. {
  169. messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  170. //messageBox("진료과를 ","C002");
  171. return false;
  172. }
  173. if (ipt_coophospnm.currentText.length > 0 && ipt_coophospnm.currentText.length < 2) {
  174. messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  175. model.setFocus("ipt_coophospnm");
  176. return false;
  177. }
  178. if (ipt_drnm.currentText.length > 0 && ipt_drnm.currentText.length < 2) {
  179. messageBox("의뢰의사명은 2글자 이상으로 해주십시요!","E999","");
  180. model.setFocus("ipt_drnm");
  181. return false;
  182. }
  183. }
  184. return true;
  185. }
  186. // 조회
  187. function fSearch()
  188. {
  189. if (submit("TRARC00301", false) == true)
  190. {
  191. //fHospDisabled(true);
  192. }
  193. else
  194. {
  195. messageBox("조회를", "E009");
  196. }
  197. }
  198. // 초기화
  199. function fAllClear()
  200. {
  201. model.resetInstanceNode("/root/send/search");
  202. // 오늘 날짜로 세팅
  203. var CurrentDate = getCurrentDate();
  204. model.setValue("/root/send/search/f_date", CurrentDate);
  205. //model.setValue("/root/send/search/f_date", CurrentDate.substr(0, 6) + "01");
  206. model.setValue("/root/send/search/t_date", CurrentDate);
  207. model.removeNodeset("/root/main/list/cooppatlist");
  208. model.refresh();
  209. }
  210. // 리스트 엑셀 파일로 저장
  211. function fExcel()
  212. {
  213. if (grd_list.rows <= 1) return;
  214. var fileName = window.fileDialog("save", ",", false, "의뢰환자 진료비현황 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  215. if (fileName != ""){
  216. grd_list.saveExcel(fileName, "SheetName", false, false, "", "", false);
  217. }
  218. }
  219. ]]>
  220. </script>
  221. </xhtml:head>
  222. <xhtml:body guideline="1,2;1,1195;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  223. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  224. <group id="group2" style="left:0px; top:13px; width:1195px; height:744px; vertical-align:top; ">
  225. <group id="group1" style="left:0px; top:10px; width:1194px; height:70px; vertical-align:top; ">
  226. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  227. <button id="button5" class="btn1_letter2" style="left:1126px; top:21px; width:56px; height:22px; ">
  228. <caption>조회</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. if ( !fCheckDate() ) return; //필수 저장여부 체크
  232. fSearch();
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </button>
  237. <line id="line8" class="line_4" style="x1:1095px; y1:5px; x2:1095px; y2:60px; "/>
  238. <caption id="caption9" class="search_name" style="left:20px; top:10px; width:94px; height:17px; ">등록일자 :</caption>
  239. <caption id="caption11" class="search_name" style="left:415px; top:35px; width:94px; height:17px; ">진료과 :</caption>
  240. <caption id="caption13" class="search_name" style="left:415px; top:10px; width:91px; height:17px; ">병원구분 :</caption>
  241. <caption id="caption5" class="search_no_b" style="left:219px; top:10px; width:12px; height:17px; ">~</caption>
  242. <input id="input5" ref="/root/send/search/f_date" class="input_search" inputtype="date" style="left:115px; top:10px; width:100px; height:19px; "/>
  243. <input id="input1" ref="/root/send/search/t_date" class="input_search" inputtype="date" style="left:235px; top:10px; width:100px; height:19px; "/>
  244. <caption id="caption4" class="search_name" style="left:20px; top:35px; width:94px; height:17px; ">의뢰의사 :</caption>
  245. <caption id="caption3" class="search_name" style="left:715px; top:10px; width:99px; height:17px; ">의뢰병원명 :</caption>
  246. <select1 id="cmb_hospgrade" ref="/root/send/search/hospgrade" class="combo_search" appearance="minimal" style="left:510px; top:10px; width:120px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/init/hospgrade/A0429">
  249. <label ref="cdnm"/>
  250. <value ref="cdid"/>
  251. </itemset>
  252. </choices>
  253. </select1>
  254. <input id="ipt_coophospnm" ref="/root/send/search/coophospnm" class="input_search" imemode="hangul" style="left:820px; top:10px; width:120; height:19px; "/>
  255. <input id="ipt_drnm" ref="/root/send/search/drnm" class="input_search" imemode="hangul" style="left:115px; top:35px; width:100px; height:19px; "/>
  256. <select1 id="cmb_orddeptcd" ref="/root/send/search/orddeptcd" class="combo_search" appearance="minimal" style="left:510px; top:35px; width:120px; height:19px; ">
  257. <choices>
  258. <itemset nodeset="/root/init/dept/dept">
  259. <label ref="depthngnm"/>
  260. <value ref="deptcd"/>
  261. </itemset>
  262. </choices>
  263. </select1>
  264. <select1 id="cmb_cptype" ref="/root/send/search/cptype" class="combo_search" appearance="minimal" style="left:820px; top:35px; width:120; height:19px; ">
  265. <choices>
  266. <itemset nodeset="/root/init/cmbcond/cptype/A0420">
  267. <label ref="cdnm"/>
  268. <value ref="cdid"/>
  269. </itemset>
  270. </choices>
  271. </select1>
  272. <caption id="cmb_onestop" class="search_name" style="left:715px; top:35px; width:127px; height:17px; ">One-Stop :</caption>
  273. <select id="chk_clsmatyn" ref="/root/send/search/clsmatyn" overflow="visible" appearance="full" style="left:960px; top:35px; width:55px; height:20px; border-style:none; ">
  274. <choices>
  275. <item>
  276. <label>동문</label>
  277. <value>Y</value>
  278. </item>
  279. </choices>
  280. </select>
  281. </group>
  282. <line id="line1" class="line_1" style="x1:0px; y1:99px; x2:1194px; y2:99px; "/>
  283. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:144px; height:14px; ">의뢰환자 진료비 현황</caption>
  284. <button id="btn_excel" class="btn2_letter2" style="left:1150px; top:79px; width:42px; height:19px; ">
  285. <caption>엑셀</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. fExcel();
  289. ]]>
  290. </script>
  291. </button>
  292. <datagrid id="grd_list" nodeset="/root/main/list/cooppatlist" autoresize="true" caption="환자명^주민번호^주민번호^성별^나이^등록번호^등록일자^의뢰일자^진료일자^진료과^진료의사^상병명^지역^병원구분^의뢰병원명^의뢰의사명^의뢰경로^One-Stop^보험유형^초재진구분^외래진료비^입원진료비^수술비^합계" colsep="^" colwidth="100, 60, 60, 40, 35, 80, 90, 90, 90, 100, 100, 400, 100, 80, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:100px; width:1194px; height:638px; vertical-align:middle; ">
  293. <col ref="hngnm" style="left:20px; top:23px; width:100px; height:23px; text-align:center; "/>
  294. <col ref="rrgstno1" style="left:120px; top:23px; width:70px; height:23px; text-align:center; "/>
  295. <col ref="rrgstno2" secretstartposition="1" style="left:190px; top:23px; width:70px; height:23px; text-align:center; "/>
  296. <col ref="sex" style="left:260px; top:23px; width:40px; height:23px; text-align:center; "/>
  297. <col ref="age" style="left:300px; top:23px; width:35px; height:23px; text-align:center; "/>
  298. <col ref="pid" style="left:335px; top:23px; width:100px; height:23px; text-align:center; "/>
  299. <col ref="rgstdd" format="yyyy-mm-dd" style="left:435px; top:23px; width:100px; height:23px; text-align:center; "/>
  300. <col ref="reqdd" format="yyyy-mm-dd" style="left:535px; top:23px; width:100px; height:23px; text-align:center; "/>
  301. <col ref="orddd" format="yyyy-mm-dd" style="left:635px; top:23px; width:100px; height:23px; text-align:center; "/>
  302. <col ref="orddeptnm" style="left:735px; top:23px; width:100px; height:23px; text-align:center; "/>
  303. <col ref="orddrnm" style="left:835px; top:23px; width:100px; height:23px; text-align:center; "/>
  304. <col ref="diagnm" style="left:935px; top:23px; width:120px; height:23px; text-align:left; "/>
  305. <col disabled="true" ref="areacd" type="combo" style="left:1055px; top:23px; width:100px; height:23px; ">
  306. <choices>
  307. <itemset nodeset="/root/init/areacd/A0014A0426">
  308. <label ref="cdnm"/>
  309. <value ref="cdid"/>
  310. </itemset>
  311. </choices>
  312. </col>
  313. <col disabled="true" ref="hospgrade" type="combo" style="text-align:center; ">
  314. <choices>
  315. <itemset nodeset="/root/init/hospgrade1/A0429">
  316. <label ref="cdnm"/>
  317. <value ref="cdid"/>
  318. </itemset>
  319. </choices>
  320. </col>
  321. <col ref="coophospnm" style="left:1155px; top:23px; width:120px; height:23px; text-align:left; "/>
  322. <col ref="drnm" style="text-align:center; "/>
  323. <col disabled="true" ref="reqpath" type="combo" style="text-align:center; ">
  324. <choices>
  325. <itemset nodeset="/root/init/reqpath">
  326. <label ref="cdnm"/>
  327. <value ref="cdid"/>
  328. </itemset>
  329. </choices>
  330. </col>
  331. <col disabled="true" ref="cptype" type="combo">
  332. <choices>
  333. <itemset nodeset="/root/init/cptype/A0420">
  334. <label ref="cdnm"/>
  335. <value ref="cdid"/>
  336. </itemset>
  337. </choices>
  338. </col>
  339. <col disabled="true" ref="insukind" type="combo" style="text-align:center; ">
  340. <choices>
  341. <itemset nodeset="/root/init/insukind/P0008">
  342. <label ref="cdnm"/>
  343. <value ref="cdid"/>
  344. </itemset>
  345. </choices>
  346. </col>
  347. <col disabled="true" ref="fsexamflag" type="combo" style="text-align:center; ">
  348. <choices>
  349. <itemset nodeset="/root/init/fsexamflag/P0021">
  350. <label ref="cdnm"/>
  351. <value ref="cdid"/>
  352. </itemset>
  353. </choices>
  354. </col>
  355. <col ref="oamt" format="#,###" style="text-align:right; "/>
  356. <col ref="iamt" format="#,###" style="text-align:right; "/>
  357. <col ref="opamt" format="#,###" style="left:1975px; top:23px; width:100px; height:23px; text-align:right; "/>
  358. <col ref="totamt" format="#,###" style="text-align:right; "/>
  359. </datagrid>
  360. </group>
  361. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  362. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">의뢰환자 진료비 현황</caption>
  363. </group>
  364. <group id="group6" style="left:0px; top:750px; width:1195px; height:27px; ">
  365. <button id="button10" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  366. <caption>초기화</caption>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. fAllClear();
  370. ]]>
  371. </script>
  372. </button>
  373. </group>
  374. </group>
  375. </xhtml:body>
  376. </xhtml:html>