SPPAO02300_시행일자별계산내역조회.xrw 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. <?xml version="1.0" encoding="UTF-16"?>
  2. <!--
  3. * 화면 : SPPAO02300_시행일자별계산내역조회.xrw
  4. * 설명 : 시행일자별계산내역조회
  5. * 작성자 : 조영상
  6. * 작성일 : 2007/12/09
  7. -->
  8. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>시행일자별계산내역조회</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <patinfo>
  17. <patinfolist>
  18. <pid/>
  19. <hngnm/>
  20. <rrgstno1/>
  21. <rrgstno2/>
  22. </patinfolist>
  23. </patinfo>
  24. <h_ioscl>
  25. <ioscl>
  26. <ioscl_orddd/>
  27. <ioscl_execdd/>
  28. <ioscl_pid/>
  29. <ioscl_grupsnglflag/>
  30. <ioscl_calcscorcd/>
  31. <ioscl_hngnm/>
  32. <ioscl_calcpayflag/>
  33. <ioscl_calcqty/>
  34. <ioscl_calctims/>
  35. <ioscl_calcdays/>
  36. <ioscl_calcamt/>
  37. <ioscl_hospaddamt/>
  38. <ioscl_specamt/>
  39. <ioscl_ownbamt/>
  40. <ioscl_payownbrate/>
  41. <ioscl_exectm/>
  42. <ioscl_undersixageyn/>
  43. <ioscl_hosoutexptresncd/>
  44. <ioscl_insuedicd/>
  45. <ioscl_rcptexecdd/>
  46. </ioscl>
  47. </h_ioscl>
  48. </main>
  49. <send>
  50. <data1>
  51. <pid/>
  52. <ioflag/>
  53. <ordrcptflag/>
  54. <fromdd/>
  55. <todd/>
  56. <ordtype/>
  57. <orddeptcd/>
  58. <orddeptnm/>
  59. <srch_flag/>
  60. <snglcalcscorcd/>
  61. <con/>
  62. <execfromdd/>
  63. <exectodd/>
  64. </data1>
  65. </send>
  66. <hidden>
  67. <session>
  68. <userid/>
  69. <usernm/>
  70. <posinstcd/>
  71. <posinstnm/>
  72. <dutplcecd/>
  73. <dutplcenm/>
  74. <dutinstnm/>
  75. </session>
  76. <temp/>
  77. </hidden>
  78. <source>
  79. <srchcond/>
  80. <pid/>
  81. <hngnm/>
  82. <rrgstno1/>
  83. <rrgstno2/>
  84. </source>
  85. <temp>
  86. <receipt/>
  87. </temp>
  88. <init>
  89. <orddeptcd>
  90. <orddeptcdlist>
  91. <nm/>
  92. <cd/>
  93. </orddeptcdlist>
  94. </orddeptcd>
  95. </init>
  96. </root>
  97. </instance>
  98. <bind id="bind1" ref="/root/main/receivamtlist/receivamtstats" calculate="now() + ."/>
  99. <bind id="bind2" ref="/root/main/receivamtsumlist/receivamtsumstats/uncnt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncnt);"/>
  100. <bind id="bind3" ref="/root/main/receivamtsumlist/receivamtsumstats/uncoamt" calculate="sum(/root/main/receivamtlist/receivamtstats/uncoamt);"/>
  101. <submission id="TRPAO02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/h_ioscl"/>
  102. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/patinfo"/>
  103. <submission id="TRPAM00107" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  104. </model>
  105. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  108. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  111. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  112. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  113. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  114. <script type="javascript" ev:event="xforms-ready">
  115. <![CDATA[
  116. makeReportPreview(0,0,0,0,"");
  117. fInitialize();
  118. fGetUserInfo2();
  119. ]]>
  120. </script>
  121. <script type="javascript">
  122. <![CDATA[
  123. var vcheck_pid;
  124. //로그인한 사용자 정보조회
  125. function fGetUserInfo2(){
  126. var sUserInfosS = getUserInfos();
  127. sUserInfosS = sUserInfosS + "|";
  128. var UserInfosS_Array = sUserInfosS.split("|");
  129. var userid = UserInfosS_Array[0]; //사용자번호
  130. var usernm = UserInfosS_Array[1]; //사용자이름
  131. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  132. var posinstnm = UserInfosS_Array[3]; //소속기관명
  133. var dutplcecd = UserInfosS_Array[4]; //근무지부서코드
  134. var dutplcenm = UserInfosS_Array[5]; //근무지부서명
  135. var dutinstnm = UserInfosS_Array[7]; //근무지기관명
  136. /*
  137. model.makeNode("/root/hidden/session/" + "userid");
  138. model.makeNode("/root/hidden/session/" + "usernm");
  139. model.makeNode("/root/hidden/session/" + "posinstcd");
  140. model.makeNode("/root/hidden/session/" + "posinstnm");
  141. model.makeNode("/root/hidden/session/" + "dutplcecd");
  142. model.makeNode("/root/hidden/session/" + "dutplcenm");
  143. model.makeNode("/root/hidden/session/" + "dutinstnm");
  144. */
  145. model.setValue("/root/hidden/session/userid",userid);
  146. model.setValue("/root/hidden/session/usernm",usernm);
  147. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  148. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  149. model.setValue("/root/hidden/session/dutplcecd",dutplcecd);
  150. model.setValue("/root/hidden/session/dutplcenm",dutplcenm);
  151. model.setValue("/root/hidden/session/dutinstnm",dutinstnm);
  152. }
  153. function fInitialize() {
  154. model.setvalue("/root/send/data1/pid", "");
  155. model.setvalue("/root/send/data1/ioflag", "O");
  156. model.setvalue("/root/send/data1/ordrcptflag", "orddd");
  157. model.setvalue("/root/send/data1/fromdd", getCurrentDate());
  158. model.setvalue("/root/send/data1/todd", getCurrentDate());
  159. model.setvalue("/root/send/data1/execfromdd", getCurrentDate());
  160. model.setvalue("/root/send/data1/exectodd", getCurrentDate());
  161. model.setvalue("/root/send/data1/ordtype", "시행일자별영수증");
  162. model.setvalue("/root/send/data1/snglcalcscorcd", "");
  163. model.setvalue("/root/send/data1/srch_flag", "%");
  164. ipt_calccd.disabled = true;
  165. //진료과코드 진료의사ID 조회
  166. pamGetDeptCDDrIDListAll();
  167. addComboItem("combo1" , "전체","","above");
  168. model.setValue("/root/send/data1/orddeptnm", "");
  169. model.setFocus("ipt_pid");
  170. model.refresh();
  171. }
  172. function fSearch() {
  173. var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  174. var srch_flag = model.getValue("/root/send/data1/srch_flag");
  175. var calccd = model.getValue("/root/send/data1/snglcalcscorcd");
  176. if(srch_flag == "calccd" && calccd == ""){
  177. messageBox("검색조건이 수가코드일시에는 반드시 코드가 있어야합니다.", "E999","");
  178. model.setFocus("ipt_fromdd");
  179. model.setFocus("ipt_pid");
  180. return;
  181. }
  182. if(srch_flag == "calcnm" && calccd == ""){
  183. messageBox("검색조건이 수가명칭일시에는 반드시 명칭이 있어야합니다.", "E999","");
  184. model.setFocus("ipt_fromdd");
  185. model.setFocus("ipt_pid");
  186. return;
  187. }
  188. if(srch_flag == "%" && pid == ""){
  189. messageBox("환자번호와 수가검색조건 둘중에 하나는 선택하셔야 합니다,(시스템에 부하가 갑니다.)", "E999","");
  190. model.setFocus("ipt_fromdd");
  191. model.setFocus("ipt_pid");
  192. return;
  193. }
  194. submit("TRPAO02301");
  195. grd_ioscl.subtotalposition = "below";
  196. grd_ioscl.multitotals = true;
  197. grd_ioscl.subtotal("sum", -1, 9, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계", true); //단가
  198. grd_ioscl.subtotal("sum", -1, 10, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계 ", true); //가산금액
  199. grd_ioscl.subtotal("sum", -1, 11, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계 ", true); //지정료
  200. grd_ioscl.subtotal("sum", -1, 12, "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold; ", 0, "합계 ", true); //본인부담
  201. grd_ioscl.subtotalPosition = "below";
  202. model.refresh();
  203. }
  204. function fGetPid() {
  205. model.setvalue("/root/send/data1/pid",model.getvalue("/root/main/patinfo/patinfolist/pid"));
  206. vcheck_pid = model.getvalue("/root/send/data1/pid");
  207. //환자번호 null체크
  208. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  209. messageBox("환자등록번호가 입력되지","E007");
  210. return;
  211. }
  212. //환자번호 조건으로 인적정보 조회
  213. model.setValue("/root/source/srchcond", "1");
  214. model.setValue("/root/source/pid", ipt_pid.currentText);
  215. //환자등록번호 체크
  216. if(submit("TRPMC02500")){
  217. var vcheck_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  218. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  219. //조회내역 체크
  220. messageBox("존재하지 않는 등록번호","E008");//E008=입니다
  221. model.makevalue("/root/main/patinfo/patinfolist/pid","");
  222. model.makevalue("/root/main/patinfo/patinfolist/hngnm","");
  223. model.makevalue("/root/main/patinfo/patinfolist/rrgstno1","");
  224. model.makevalue("/root/main/patinfo/patinfolist/rrgstno2","");
  225. model.setFocus("ipt_fromdd");
  226. model.setFocus("ipt_pid");
  227. return;
  228. }else{
  229. fSearch();
  230. }
  231. }
  232. }
  233. //조회
  234. function fBtn_Run(){
  235. var pid = model.getvalue("/root/main/patinfo/patinfolist/pid");
  236. if(pid != ""){
  237. fGetPid();
  238. }else{
  239. model.setvalue("/root/send/data1/pid","");
  240. model.makevalue("/root/main/patinfo/patinfolist/pid","");
  241. model.makevalue("/root/main/patinfo/patinfolist/hngnm","");
  242. model.makevalue("/root/main/patinfo/patinfolist/rrgstno1","");
  243. model.makevalue("/root/main/patinfo/patinfolist/rrgstno2","");
  244. fSearch();
  245. }
  246. }
  247. function fSpecBillPrint() {
  248. model.makeValue("/root/temp/receipt/ordtype" , "실시일자별외래진료비세부내역서" );
  249. model.makeValue("/root/temp/receipt/pid" , model.getValue("/root/main/patinfo/patinfolist/pid") );
  250. model.makeValue("/root/temp/receipt/orddeptcd" , model.getValue("/root/send/data1/orddeptcd") );
  251. model.makeValue("/root/temp/receipt/fromdd" , model.getValue("/root/send/data1/fromdd") );
  252. model.makeValue("/root/temp/receipt/todd" , model.getValue("/root/send/data1/todd") );
  253. model.makeValue("/root/temp/receipt/calcpayflag" , "-','0','2','1','5");
  254. model.makeValue("/root/temp/receipt/calcsum" , "Y" );
  255. //영수증 팝업화면 호출
  256. modal("SPPAO01900");
  257. }
  258. function fPrintCon(param) {
  259. if (model.getValue("/root/main/patinfo/patinfolist/pid") == null
  260. || model.getValue("/root/main/patinfo/patinfolist/pid") == "") {
  261. messageBox("연속출력의 경우 반드시 환자를 조회해야 합니다.", "C000");
  262. return;
  263. }
  264. if (messageBox("해당 기간에 대하여 조회와 영수증/내역서 재출력이 반복됩니다.\r\n모든 출력이 종료될 때까지 다른 작업은 하실 수 없습니다.\r\n진행하시겠습니까?", "S000") == "6") {
  265. var todd = model.getValue("/root/send/data1/exectodd");
  266. var execdd = model.getValue("/root/send/data1/execfromdd");
  267. // 로딩창 열기
  268. callLoadingWindow("영수증 출력중");
  269. while (execdd <= todd) {
  270. model.setValue("/root/send/data1/fromdd", execdd);
  271. model.setValue("/root/send/data1/todd", execdd);
  272. model.refresh();
  273. // 조회
  274. fBtn_Run();
  275. // 검색 결과가 있는 경우에만 영수증 출력 호출
  276. if (getNodesetCount("/root/main/h_ioscl/ioscl") > 0) {
  277. if (param == "R") {
  278. model.setvalue("/root/send/data1/pid", model.getvalue("/root/main/patinfo/patinfolist/pid"));
  279. model.copyNode( "/root/temp/receipt" , "/root/send/data1" );
  280. modal("SPPAO01900");
  281. } else {
  282. fSpecBillPrint();
  283. }
  284. }
  285. execdd = getDateTime(execdd.toDate("YYYYMMDD").getAddDate(1), "D");
  286. }
  287. // 로딩창 닫기
  288. removeLoadingWindow();
  289. messageBox("영수증 연속출력이 종료되었습니다.", "I000");
  290. }
  291. }
  292. ]]>
  293. </script>
  294. </xhtml:head>
  295. <xhtml:body pagewidth="1211" pageheight="784">
  296. <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
  297. <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:215px; height:14px; font-family:돋움; vertical-align:middle; ">시행일자별계산내역조회</caption>
  298. </group>
  299. <group id="group2" style="left:4px; top:23px; width:1203px; height:62px; ">
  300. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  301. <caption id="caption9" class="search_name" style="left:730px; top:6px; width:55px; height:17px; text-align:left; vertical-align:middle; ">연속</caption>
  302. <line id="line2" class="line_4" style="x1:1132px; y1:7px; x2:1132px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  303. <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
  304. <caption>조회</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. fBtn_Run();
  308. ]]>
  309. </script>
  310. </button>
  311. <button id="btn_print" class="btn4_letter6" style="left:1010px; top:7px; width:104px; height:22px; ">
  312. <caption>영수증재출력</caption>
  313. <script type="javascript" ev:event="DOMActivate">
  314. <![CDATA[
  315. // 영수증 재출력
  316. if (model.getValue("/root/send/data1/con") != "true") {
  317. model.setvalue("/root/send/data1/pid", model.getvalue("/root/main/patinfo/patinfolist/pid"));
  318. model.copyNode( "/root/temp/receipt" , "/root/send/data1" );
  319. open("SPPAO01900");
  320. } else {
  321. // 영수증 연속 출력
  322. fPrintCon("R");
  323. }
  324. ]]>
  325. </script>
  326. </button>
  327. <select1 id="radio1" ref="/root/send/data1/ioflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:448px; top:7px; width:87px; height:19px; text-align:center; vertical-align:middle; border-style:none; ">
  328. <choices>
  329. <item>
  330. <label>외래</label>
  331. <value>O</value>
  332. </item>
  333. <item>
  334. <label>입원</label>
  335. <value>I</value>
  336. </item>
  337. </choices>
  338. <script type="javascript" ev:event="xforms-value-changed">
  339. <![CDATA[
  340. var ioflag = model.getValue("/root/send/data1/ioflag");
  341. var ordrcptflag = model.getValue("/root/send/data1/ordrcptflag");
  342. if (ioflag == "O" && ordrcptflag == "execdd") {
  343. btn_sbprnt.visible = true;
  344. } else {
  345. btn_sbprnt.visible = false;
  346. }
  347. ]]>
  348. </script>
  349. </select1>
  350. <select1 id="radio2" ref="/root/send/data1/ordrcptflag" appearance="full" cols="3" rows="1" overflow="visible" style="left:600px; top:7px; width:115px; height:19px; text-align:center; vertical-align:middle; border-style:none; ">
  351. <choices>
  352. <item>
  353. <label>시행일</label>
  354. <value>execdd</value>
  355. </item>
  356. <item>
  357. <label>진료일</label>
  358. <value>orddd</value>
  359. </item>
  360. </choices>
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. var ioflag = model.getValue("/root/send/data1/ioflag");
  364. var ordrcptflag = model.getValue("/root/send/data1/ordrcptflag");
  365. if (ioflag == "O" && ordrcptflag == "execdd") {
  366. btn_sbprnt.visible = true;
  367. } else {
  368. btn_sbprnt.visible = false;
  369. }
  370. ]]>
  371. </script>
  372. </select1>
  373. <input id="ipt_todd" ref="/root/send/data1/todd" autonext="false" inputtype="date" style="left:192px; top:33px; width:87px; height:19px; text-align:center; vertical-align:middle; "/>
  374. <caption id="caption4" style="left:179px; top:34px; width:16px; height:19px; text-align:center; vertical-align:middle; ">~</caption>
  375. <caption id="caption2" class="search_name" style="left:388px; top:6px; width:60px; height:17px; text-align:center; vertical-align:middle; ">구분:</caption>
  376. <caption id="caption5" class="search_name" style="left:545px; top:6px; width:55px; height:17px; text-align:left; vertical-align:middle; ">기준:</caption>
  377. <caption id="caption6" class="search_name" style="left:10px; top:35px; width:85px; height:15px; text-align:left; vertical-align:middle; ">기 간:</caption>
  378. <caption id="caption3" class="search_name" style="left:10px; top:6px; width:85px; height:17px; text-align:center; vertical-align:middle; ">환자번호:</caption>
  379. <output id="output1" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:167px; top:6px; width:70px; height:19px; "/>
  380. <output id="output2" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:239px; top:6px; width:50px; height:19px; "/>
  381. <output id="output3" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:291px; top:6px; width:60px; height:19px; "/>
  382. <button id="btn_pid" class="icon_search" style="left:355px; top:6px; width:16px; height:16px; ">
  383. <caption/>
  384. <script type="javascript" ev:event="DOMActivate">
  385. <![CDATA[
  386. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  387. ]]>
  388. </script>
  389. </button>
  390. <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" autonext="false" maxlength="10" style="left:95px; top:6px; width:70px; height:19px; ">
  391. <script type="javascript" ev:event="onkeyup">
  392. <![CDATA[
  393. if(event.keyCode == "13") {
  394. setInputNodeCurText();
  395. fBtn_Run();
  396. }
  397. ]]>
  398. </script>
  399. </input>
  400. <caption id="caption7" class="search_name" style="left:289px; top:33px; width:71px; height:17px; text-align:left; vertical-align:middle; ">진료과:</caption>
  401. <select1 id="combo1" ref="/root/send/data1/orddeptcd" appearance="minimal" style="left:358px; top:33px; width:100px; height:19px; ">
  402. <choices>
  403. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  404. <label ref="nm"/>
  405. <value ref="cd"/>
  406. </itemset>
  407. </choices>
  408. <script type="javascript" ev:event="xforms-value-changed">
  409. <![CDATA[
  410. // 2010.2.24 강태훈 진료과 선택시 전료과명 send로 보냄
  411. var orddeptnm = "";
  412. var orddeptcd = model.getValue("/root/send/data1/orddeptcd");
  413. for(i=1;i<=combo1.length;i++){
  414. if( orddeptcd == model.getValue("/root/init/orddeptcd/orddeptcdlist["+i+"]/cd") ){
  415. orddeptnm = model.getValue("/root/init/orddeptcd/orddeptcdlist["+i+"]/nm");
  416. if(orddeptnm == "전체"){
  417. model.setValue("/root/send/data1/orddeptnm", "");
  418. }else{
  419. model.setValue("/root/send/data1/orddeptnm", orddeptnm);
  420. }
  421. }
  422. }
  423. ]]>
  424. </script>
  425. </select1>
  426. <caption id="caption8" class="search_name" style="left:468px; top:35px; width:81px; height:17px; ">검색조건:</caption>
  427. <select1 id="radio3" ref="/root/send/data1/srch_flag" appearance="full" cols="3" overflow="visible" style="left:553px; top:35px; width:177px; height:19px; border-style:none; ">
  428. <choices>
  429. <item>
  430. <label>없음</label>
  431. <value>%</value>
  432. </item>
  433. <item>
  434. <label>수가코드</label>
  435. <value>calccd</value>
  436. </item>
  437. <item>
  438. <label>수가명칭</label>
  439. <value>calcnm</value>
  440. </item>
  441. </choices>
  442. <script type="javascript" ev:event="xforms-select">
  443. <![CDATA[
  444. if(model.getValue("/root/send/data1/srch_flag") == "%"){
  445. ipt_calccd.disabled = true;
  446. }else{
  447. ipt_calccd.disabled = false;
  448. }
  449. ]]>
  450. </script>
  451. </select1>
  452. <input id="ipt_calccd" ref="/root/send/data1/snglcalcscorcd" autonext="false" style="left:735px; top:33px; width:200px; height:19px; ">
  453. <script type="javascript" ev:event="onkeyup">
  454. <![CDATA[
  455. if(event.keyCode == "13") {
  456. setInputNodeCurText();
  457. fBtn_Run()
  458. }
  459. ]]>
  460. </script>
  461. </input>
  462. <input id="ipt_fromdd" ref="/root/send/data1/fromdd" autonext="false" inputtype="date" style="left:95px; top:33px; width:87; height:19px; text-align:center; vertical-align:middle; "/>
  463. <button id="btn_sbprnt" class="btn4_letter10" visibility="hidden" style="left:1010px; top:33px; width:152px; height:22px; ">
  464. <caption>외래진료비세부내역서</caption>
  465. <script type="javascript" ev:event="DOMActivate">
  466. <![CDATA[
  467. if (model.getValue("/root/send/data1/con") != "true") {
  468. // 세부내역서 출력
  469. fSpecBillPrint();
  470. } else {
  471. // 세부내역서 연속 출력
  472. fPrintCon("D");
  473. }
  474. ]]>
  475. </script>
  476. </button>
  477. <bool id="bool1" ref="/root/send/data1/con" style="left:780px; top:8px; width:20px; height:15px; ">
  478. <script type="javascript" ev:event="xforms-value-changed">
  479. <![CDATA[
  480. if (model.getValue("/root/send/data1/con") == "true") {
  481. ipt_execfromdd.disabled = false;
  482. ipt_exectodd.disabled = false;
  483. ipt_fromdd.disabled = true;
  484. ipt_todd.disabled = true;
  485. } else {
  486. ipt_execfromdd.disabled = true;
  487. ipt_exectodd.disabled = true;
  488. ipt_fromdd.disabled = false;
  489. ipt_todd.disabled = false;
  490. }
  491. ]]>
  492. </script>
  493. </bool>
  494. <caption id="caption10" style="left:884px; top:7px; width:16px; height:19px; text-align:center; vertical-align:middle; ">~</caption>
  495. <input id="ipt_exectodd" ref="/root/send/data1/exectodd" disabled="true" autonext="false" inputtype="date" style="left:897px; top:6px; width:87px; height:19px; text-align:center; vertical-align:middle; "/>
  496. <input id="ipt_execfromdd" ref="/root/send/data1/execfromdd" disabled="true" autonext="false" inputtype="date" style="left:800px; top:6px; width:87px; height:19px; text-align:center; vertical-align:middle; "/>
  497. </group>
  498. <group id="grp_btn" scroll="auto" style="left:19px; top:757px; width:1180px; height:27px; ">
  499. <caption id="caption1" style="left:5px; top:5px; width:380px; height:15px; color:#ff0000; ">참고: 환자번호가 없을시에는 조회 속도가 상당히 느립니다.</caption>
  500. </group>
  501. <button id="btn_init" class="btn4_letter3" style="left:1129px; top:760px; width:68px; height:22px; ">
  502. <caption>초기화</caption>
  503. <script type="javascript" ev:event="DOMActivate">
  504. <![CDATA[
  505. fInitialize();
  506. ]]>
  507. </script>
  508. </button>
  509. <datagrid id="grd_ioscl" nodeset="/root/main/h_ioscl/ioscl" caption="진료일자^실시일자^환자번호^그룹^수가코드^수가명칭^급여^수량^횟수^일수^단가^가산금액^지정료^본인부담^%^야간^나이^원외예외사유코드^EDI코드^수납일자" colsep="^" colwidth="70, 70, 60, 40, 95, 300, 50, 35, 35, 35, 70, 70, 70, 70, 35, 60, 60, 100, 100, 100" mergecellsfixedrows="bycolrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:5px; top:95px; width:1197px; height:656px; ">
  510. <col ref="ioscl_orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  511. <col ref="ioscl_execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  512. <col ref="ioscl_pid" style="text-align:left; "/>
  513. <col ref="ioscl_grupsnglflag" style="text-align:center; "/>
  514. <col ref="ioscl_calcscorcd" style="text-align:left; "/>
  515. <col ref="ioscl_hngnm" style="text-align:left; "/>
  516. <col ref="ioscl_calcpayflag" format="#,###" style="text-align:center; "/>
  517. <col ref="ioscl_calcqty" format="#,###" style="text-align:right; "/>
  518. <col ref="ioscl_calctims" format="#,###" style="text-align:right; "/>
  519. <col ref="ioscl_calcdays" style="text-align:right; "/>
  520. <col ref="ioscl_calcamt" format="#,###" style="text-align:right; "/>
  521. <col ref="ioscl_hospaddamt" format="#,###" style="text-align:right; "/>
  522. <col ref="ioscl_specamt" format="#,###" style="text-align:right; "/>
  523. <col ref="ioscl_ownbamt" format="#,###" style="text-align:right; "/>
  524. <col ref="ioscl_payownbrate" style="text-align:center; "/>
  525. <col ref="ioscl_exectm" style="text-align:center; "/>
  526. <col ref="ioscl_undersixageyn" style="text-align:center; "/>
  527. <col ref="ioscl_hosoutexptresncd" style="text-align:center; "/>
  528. <col ref="ioscl_insuedicd" style="text-align:left; "/>
  529. <col ref="ioscl_rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  530. <script type="javascript" ev:event="onclick">
  531. <![CDATA[
  532. var temp = grd_ioscl.row ;
  533. model.setvalue("/root/send/data1/snglcalcscorcd" , model.getvalue("/root/main/h_ioscl/ioscl["+ temp +"]/ioscl_calcscorcd" ));
  534. model.refresh();
  535. ]]>
  536. </script>
  537. </datagrid>
  538. </xhtml:body>
  539. </xhtml:html>