SMPID10100_입원청구생성.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <CountNode/>
  10. <main>
  11. <list1>
  12. <cretlist/>
  13. </list1>
  14. <patinfo>
  15. <patinfolist/>
  16. </patinfo>
  17. <popupendflag/>
  18. </main>
  19. <send>
  20. <clamym/>
  21. <clamdg>0</clamdg>
  22. <clamfromdd/>
  23. <clamtodd/>
  24. <insutype/>
  25. <ordfildcd/>
  26. <clamflag/>
  27. <predata/>
  28. <ownb100/>
  29. <datacretflag/>
  30. <pid/>
  31. <name/>
  32. <orddeptcd/>
  33. <weekflag>S</weekflag>
  34. <chk/>
  35. <ioflag/>
  36. <temp/>
  37. </send>
  38. <init>
  39. <P0008list>
  40. <cdid/>
  41. <cdnm/>
  42. </P0008list>
  43. </init>
  44. <hidden>
  45. <list1>
  46. <dept>
  47. <depthngnm/>
  48. <deptcd/>
  49. <deptengabbr/>
  50. <reqfild/>
  51. <reqdeptno/>
  52. </dept>
  53. </list1>
  54. <sppmc02500>
  55. <cond>
  56. <srchcond/>
  57. <pid/>
  58. <hngnm/>
  59. <rrgstno1/>
  60. <rrgstno2/>
  61. </cond>
  62. </sppmc02500>
  63. <send2>
  64. <instcd/>
  65. <basedd/>
  66. </send2>
  67. <screen1>
  68. <checkyn1/>
  69. </screen1>
  70. <temp>
  71. <memo/>
  72. </temp>
  73. </hidden>
  74. </root>
  75. </instance>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. fInitialize();
  79. ]]>
  80. </script>
  81. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  82. <submission id="TRPID10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list1"/>
  83. <submission id="TXPID10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list1" replace="instance" resultref="/root/hidden/item1/result"/>
  84. <submission id="TRPID10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/send2" replace="instance" resultref="/root/hidden/list1"/>
  85. <submission id="TXPID10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/item1/result"/>
  86. <submission id="TXPID10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/temp" replace="instance" resultref="/root/hidden/item1/result"/>
  87. </model>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  95. <script type="javascript">
  96. <![CDATA[
  97. var g_rtrv = "N"; // 조회여부
  98. // 청구년월 증감 함수
  99. function CalMonth(idc, av_date)
  100. {
  101. var lv_date = av_date.toDate("YYYYMM" + "01");
  102. lv_date = lv_date.getAddDate(idc, "M")
  103. return lv_date.getDateFormat("YYYYMM");
  104. }
  105. // 화면 open시와 초기화 버튼 클릭시 화면을 초기화 기능을 수행.
  106. function fInitialize() {
  107. // 공통코드를 조회한다.
  108. // zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008list"));
  109. // model.refresh();
  110. // 초기값
  111. cmb_insutype.select(0); // 보험유형 : -.전체
  112. cmb_ordfildcd.select(0); // 진료구분 : -.전체
  113. cmb_clamflag.select(1); // 청구구분 : 0. 퇴원+중간, 1.퇴원
  114. cmb_ownb100.select(0); // 전액본인 : N.생성안함
  115. cmb_cretflag.select(0); // 생성여부 : -.전체
  116. // cmb_pastdata.select(0); // 이전자료 : 1.생성(삭제후)
  117. cmb_pastdata.select(1); // 이전자료 : 2.생성(중복Skip)
  118. // 날짜 계산을 위하여 yyyymmdd형태로 오늘 날짜를 구한다.
  119. var tmp_date = new Date();
  120. var tmp_year = tmp_date.getYear();
  121. // 월의 경우 0부터 시작이므로 +1을 해준다.
  122. var tmp_month = tmp_date.getMonth() + 1;
  123. var tmp_day = tmp_date.getDate();
  124. // 10보다 작은경우는 앞에 '0'을 붙여서 자릿수를 맞춘다.
  125. if (tmp_month<10) tmp_month = "0" + tmp_month;
  126. if (tmp_day<10) tmp_day = "0" + tmp_day;
  127. // +"" 을 안해주면 숫자로 인식해서 더해버리므로 꼭 넣어준다.
  128. ipt_clamtodd.value = tmp_year + "" + tmp_month + "" + tmp_day;
  129. ipt_clamfromdd.value = tmp_year + "" + tmp_month + "" + tmp_day;
  130. ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
  131. // 기준일자
  132. model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
  133. // 생성된 자료 선택 제외 여부 2008-10-08
  134. model.setValue("/root/hidden/screen1/checkyn1", "Y");
  135. // 진료과목
  136. submit("TRPID10102");
  137. model.refresh();
  138. }
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  144. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:231px; height:15px; ">입원 청구 생성</caption>
  145. </group>
  146. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  147. <group id="group2" style="left:0px; top:10px; width:1194px; height:59px; vertical-align:top; background-color:#fffbf2; border-color:#ffd799; ">
  148. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:59px; "/>
  149. <line id="line13" style="x1:1113px; y1:31px; x2:1113px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
  150. <caption id="caption10" class="search_name" style="left:302px; top:33px; width:86px; height:17px; ">전액본인 :</caption>
  151. <caption id="caption11" class="search_name" style="left:680px; top:9px; width:86px; height:17px; ">진료분야 :</caption>
  152. <select1 id="cmb_insutype" ref="/root/send/insutype" class="combo_search" appearance="minimal" style="left:580px; top:8px; width:90px; height:19px; ">
  153. <choices>
  154. <item>
  155. <label>0.전체</label>
  156. <value>0</value>
  157. </item>
  158. <item>
  159. <label>1.보험+급여</label>
  160. <value>1</value>
  161. </item>
  162. <item>
  163. <label>2.보험</label>
  164. <value>2</value>
  165. </item>
  166. <item>
  167. <label>3.급여</label>
  168. <value>3</value>
  169. </item>
  170. <item>
  171. <label>4.급여1종</label>
  172. <value>4</value>
  173. </item>
  174. <item>
  175. <label>5.급여2종</label>
  176. <value>5</value>
  177. </item>
  178. <item>
  179. <label>6.산재</label>
  180. <value>6</value>
  181. </item>
  182. <item>
  183. <label>7.자보</label>
  184. <value>7</value>
  185. </item>
  186. </choices>
  187. <!--choices>
  188. <itemset nodeset="/root/init/P0008list/P0008">
  189. <label ref="cdnm"/>
  190. <value ref="cdid"/>
  191. </itemset>
  192. </choices-->
  193. </select1>
  194. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">정산일자 :</caption>
  195. <caption id="caption4" class="search_name" style="left:491px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
  196. <caption id="caption13" class="search_name" style="left:491px; top:34px; width:86px; height:17px; ">생성여부 :</caption>
  197. <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:769px; top:8px; width:90px; height:19px; ">
  198. <choices>
  199. <item>
  200. <label>-.전체</label>
  201. <value>-</value>
  202. </item>
  203. <item>
  204. <label>0.의과</label>
  205. <value>0</value>
  206. </item>
  207. <item>
  208. <label>1.내과</label>
  209. <value>1</value>
  210. </item>
  211. <item>
  212. <label>2.외과</label>
  213. <value>2</value>
  214. </item>
  215. <item>
  216. <label>3.산,소아과</label>
  217. <value>3</value>
  218. </item>
  219. <item>
  220. <label>4.안,이비인후과</label>
  221. <value>4</value>
  222. </item>
  223. <item>
  224. <label>5.피부,비뇨기과</label>
  225. <value>5</value>
  226. </item>
  227. <item>
  228. <label>6.치과</label>
  229. <value>6</value>
  230. </item>
  231. </choices>
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. cmb_orddeptcd.value = "";
  235. var ordfildcd = model.getValue("/root/send/ordfildcd");
  236. if (ordfildcd == "-") {
  237. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept";
  238. }
  239. else if (ordfildcd == "0") {
  240. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild !='6']";
  241. }
  242. else {
  243. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild = '" + ordfildcd + "' or reqfild = '']";
  244. }
  245. model.refresh();
  246. ]]>
  247. </script>
  248. </select1>
  249. <select1 id="cmb_pastdata" ref="/root/send/predata" class="combo_search" appearance="minimal" style="left:769px; top:32px; width:90px; height:19px; ">
  250. <choices>
  251. <item>
  252. <label>1.생성(삭제후)</label>
  253. <value>1</value>
  254. </item>
  255. <item>
  256. <label>2.생성(중복Skip)</label>
  257. <value>2</value>
  258. </item>
  259. <item>
  260. <label>3.생성(별도)</label>
  261. <value>3</value>
  262. </item>
  263. <item>
  264. <label>4.삭제만</label>
  265. <value>4</value>
  266. </item>
  267. <item>
  268. <label>5.재생성(별도)</label>
  269. <value>5</value>
  270. </item>
  271. </choices>
  272. <script type="javascript" ev:event="xforms-value-changed">
  273. <![CDATA[
  274. // alert("g_rtrv = " + g_rtrv);
  275. if (g_rtrv == "Y") {
  276. for (var i = 1; i < grd_cretlist.rows; i++) {
  277. model.setValue("root/main/list1/cretlist[" + i + "]/predata", model.getValue("/root/send/predata"));
  278. }
  279. }
  280. ]]>
  281. </script>
  282. </select1>
  283. <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:391px; top:8px; width:90px; height:19px; ">
  284. <choices>
  285. <item>
  286. <label>-.퇴원+중간</label>
  287. <value>-</value>
  288. </item>
  289. <item>
  290. <label>1.퇴원청구</label>
  291. <value>1</value>
  292. </item>
  293. <item>
  294. <label>2.중간청구</label>
  295. <value>2</value>
  296. </item>
  297. </choices>
  298. </select1>
  299. <input id="ipt_clamfromdd" ref="/root/send/clamfromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:104px; top:8px; width:85px; height:19px; ">
  300. <script type="javascript" ev:event="xforms-value-changed">
  301. <![CDATA[
  302. if (ipt_clamfromdd.value > ipt_clamtodd.value) {
  303. ipt_clamtodd.value = ipt_clamfromdd.value;
  304. }
  305. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
  306. ipt_clamtodd.value = ipt_clamfromdd.value;
  307. }
  308. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
  309. ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
  310. }
  311. model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
  312. ]]>
  313. </script>
  314. </input>
  315. <input id="ipt_clamtodd" ref="/root/send/clamtodd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:192px; top:8px; width:85px; height:19px; ">
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. if (ipt_clamtodd.value < ipt_clamfromdd.value) {
  319. ipt_clamfromdd.value = ipt_clamtodd.value;
  320. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
  321. ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
  322. }
  323. }
  324. ]]>
  325. </script>
  326. </input>
  327. <select1 id="cmb_ownb100" ref="/root/send/ownb100" class="combo_search" appearance="minimal" style="left:391px; top:32px; width:90px; height:19px; ">
  328. <choices>
  329. <item>
  330. <label>N.생성안함</label>
  331. <value>N</value>
  332. </item>
  333. <item>
  334. <label>Y.생성</label>
  335. <value>Y</value>
  336. </item>
  337. </choices>
  338. </select1>
  339. <caption id="caption9" class="search_name" style="left:302px; top:9px; width:86px; height:17px; ">청구구분 :</caption>
  340. <caption id="caption14" class="search_name" style="left:680px; top:33px; width:86px; height:17px; ">이전자료 :</caption>
  341. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:31px; width:56px; height:22px; ">
  342. <caption>조회</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. model.removeNodeset("/root/main/list1");
  346. // default : S.선택생성 2008-10-11
  347. //model.setValue("root/send/weekflag", "S");
  348. // 정산일자 조회 시 동일 월만 조회되도록 하여, 정산월이 다르면서 청구월/차수가 동일한 사후 자료의 발생을 제어한다. (2015.05.28 LEJ)
  349. var fromdd = model.getValue("/root/send/clamfromdd");
  350. var todd = model.getValue("/root/send/clamtodd");
  351. var fromyear = fromdd.substr(0,4);
  352. var frommonth = fromdd.substr(4,2);
  353. var fromym = fromyear+frommonth // 조회 시작 월
  354. var toyear = todd.substr(0,4);
  355. var tomonth = todd.substr(4,2);
  356. var toym = toyear+tomonth // 조회 종료 월
  357. if (fromym != toym ) {
  358. alert("정산월이 동일한 경우만 동시 조회 가능합니다. 조회할 정산일자를 변경하세요");
  359. model.setFocus("ipt_clamtodd");
  360. return false;
  361. }
  362. submit("TRPID10101");
  363. // 생성요청은 31건 이상 처리 안됨 : HP UNIX 오류 발생 (SIZE문제) 2008-10-08
  364. var row_cnt = 0;
  365. for (var i = 1; i < grd_cretlist.rows; i++) {
  366. // 생성된 자료 선택 제외 여부 2008-10-08
  367. if (model.getValue("/root/hidden/screen1/checkyn1") == "Y" && model.getValue("root/main/list1/cretlist[" + i + "]/clamkey") != "-") continue;
  368. if (row_cnt >= 60) break;
  369. model.setValue("root/main/list1/cretlist[" + i + "]/chk","true");
  370. row_cnt ++;
  371. }
  372. model.refresh();
  373. g_rtrv = "Y";
  374. ]]>
  375. </script>
  376. </button>
  377. <select1 id="cmb_cretflag" ref="/root/send/datacretflag" class="combo_search" appearance="minimal" style="left:580px; top:33px; width:90px; height:19px; ">
  378. <choices>
  379. <item>
  380. <label>-.전체</label>
  381. <value>-</value>
  382. </item>
  383. <item>
  384. <label>N.미생성</label>
  385. <value>N</value>
  386. </item>
  387. <item>
  388. <label>Y.생성</label>
  389. <value>Y</value>
  390. </item>
  391. </choices>
  392. </select1>
  393. <button id="button27" class="icon_search" style="left:279px; top:34px; width:16px; height:16px; ">
  394. <caption/>
  395. <script type="javascript" ev:event="onclick">
  396. <![CDATA[
  397. var ipt_pid = model.getValue("/root/send/pid");
  398. if (ipt_pid) {
  399. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  400. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  401. }
  402. else {
  403. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  404. }
  405. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  406. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  407. var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  408. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  409. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  410. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  411. model.setValue("/root/send/pid", srch_pid);
  412. model.setValue("/root/send/name", srch_hngnm);
  413. }
  414. model.refresh();
  415. ]]>
  416. </script>
  417. </button>
  418. <caption id="caption1" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">환자번호 :</caption>
  419. <input id="ipt_pid" ref="/root/send/pid" class="input_default" style="left:104px; top:32px; width:85px; height:19px; ">
  420. <script type="javascript" ev:event="onkeypress">
  421. <![CDATA[
  422. // Enter 입력 시에
  423. if (event.keyCode == '13') {
  424. // model.setValue("/root/send/pid", ipt_pid.currentText());
  425. setInputNodeCurText();
  426. var ipt_pid = model.getValue("/root/send/pid");
  427. if (ipt_pid) {
  428. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  429. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  430. }
  431. else {
  432. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  433. }
  434. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  435. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  436. var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  437. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  438. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  439. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  440. model.setValue("/root/send/pid", srch_pid);
  441. model.setValue("/root/send/name", srch_hngnm);
  442. }
  443. model.refresh();
  444. }
  445. ]]>
  446. </script>
  447. </input>
  448. <input id="ipt_name" ref="/root/send/name" class="input_default" style="left:192px; top:32px; width:85px; height:19px; "/>
  449. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_default" appearance="minimal" style="left:959px; top:8px; width:140px; height:19px; ">
  450. <choices>
  451. <itemset nodeset="/root/hidden/list1/dept">
  452. <label ref="depthngnm"/>
  453. <value ref="deptcd"/>
  454. </itemset>
  455. </choices>
  456. </select1>
  457. <caption id="caption2" class="search_name" style="left:870px; top:10px; width:86px; height:17px; ">진료과목 :</caption>
  458. <caption id="caption5" class="search_name" style="left:870px; top:33px; width:86px; height:17px; ">청구차수 :</caption>
  459. </group>
  460. <line id="line12" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
  461. <caption id="caption32" class="tit_2" style="left:5px; top:79px; width:105px; height:13px; ">생성 대상자</caption>
  462. <datagrid id="grd_cretlist" nodeset="/root/main/list1/cretlist" class="datagrid2" caption="선택^IO^등록번호^환자성명^입원일자^시간^퇴원일자^시간^CNo^주/부^생성^유형동일 사후&#xA;(월/차수/순번)^정산&#xA;유무^진료기간^진료기간^진료과^진료과^DRG여부^유형^보조^메모^배분심사자^배분심사자^정산최종일^수납처리일^최종청구일^분야^청구과^청구과^생성기간^생성기간^심사상태^생성일자^도착경로^진료결과^사망일시^청구키^전문의^입원경로^도착경로^진료결과^주민번호^보험자기호^증번호^본인율^내원^본인구분^최종심사자^최종심사자^6세미만^청구구분^희귀난치^청구년월^청구차수^청구단위^병실코드^병실타입^최종심사일자^DRG NO^부가코드1^부가코드2^부가코드3^부가코드4^부가코드5" colsep="^" colwidth="30, 0, 65, 70, 80, 40, 80, 40, 33, 37, 35, 95, 40, 80, 80, 70, 85, 65, 35, 35, 45, 55, 65, 80, 80, 83, 38, 30, 70, 80, 80, 60, 80, 80, 80, 120, 140, 60, 56, 56, 56, 105, 70, 80, 50, 50, 60, 65, 70, 60, 60, 60, 60, 60, 50, 36, 100, 100, 70, 70, 70, 70, 70, 70, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozenrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="35" rowsep="|" style="left:0px; top:99px; width:1194px; height:641px; ">
  463. <col ref="chk" type="checkbox"/>
  464. <col ref="ioflag" style="text-align:center; "/>
  465. <col ref="pid" style="text-align:center; "/>
  466. <col ref="hngnm"/>
  467. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  468. <col ref="intm" format="hh:nn" style="text-align:center; "/>
  469. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  470. <col ref="dschtm" format="hh:nn" style="text-align:center; "/>
  471. <col ref="cretno" style="text-align:center; "/>
  472. <col ref="mskind" style="text-align:center; "/>
  473. <col ref="status" style="text-align:center; "/>
  474. <col ref="clam_o" style="text-align:center; "/>
  475. <col ref="obtm" style="text-align:center; "/>
  476. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  477. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  478. <col ref="orddeptcd" style="text-align:center; "/>
  479. <col ref="orddeptnm"/>
  480. <col ref="drgyn" style="text-align:center; "/>
  481. <col ref="insukind" style="text-align:center; "/>
  482. <col ref="suppkind" style="text-align:center; "/>
  483. <col ref="memo" type="inputbutton"/>
  484. <col ref="judgid" style="text-align:center; "/>
  485. <col ref="judgidnm" style="text-align:center; "/>
  486. <col ref="calclastdd" format="yyyy-mm-dd" style="text-align:center; "/>
  487. <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  488. <col ref="lastmdlclamdd" format="yyyy-mm-dd" style="text-align:center; "/>
  489. <col ref="ordfildcd" style="text-align:center; "/>
  490. <col ref="clamdeptcd" style="text-align:center; "/>
  491. <col ref="clamdeptnm"/>
  492. <col ref="clamfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  493. <col ref="clamtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  494. <col ref="judgstatus" style="text-align:center; "/>
  495. <col ref="cretdd" format="yyyy-mm-dd" style="text-align:center; "/>
  496. <col ref="arvpath"/>
  497. <col ref="ordrslt"/>
  498. <col ref="dethdt" format="yyyy-mm-dd hh:nn:ss"/>
  499. <col ref="clamkey"/>
  500. <col ref="medispclid"/>
  501. <col ref="inpathcd" style="text-align:center; "/>
  502. <col ref="arvpathcd" style="text-align:center; "/>
  503. <col ref="ordrsltcd" style="text-align:center; "/>
  504. <col ref="patrrgstno" format="999999-9999999" style="text-align:center; "/>
  505. <col ref="insuno"/>
  506. <col ref="cretno"/>
  507. <col ref="brateflag" style="text-align:center; "/>
  508. <col ref="ordtype" style="text-align:center; "/>
  509. <col ref="ownbflag" style="text-align:center; "/>
  510. <col ref="lastjudgid" style="text-align:center; "/>
  511. <col ref="lastjudgnm" style="text-align:center; "/>
  512. <col ref="undersixageyn" style="text-align:center; "/>
  513. <col ref="dschmidlclam" style="text-align:center; "/>
  514. <col ref="rareobstflag" style="text-align:center; "/>
  515. <col ref="clamym" style="text-align:center; "/>
  516. <col ref="clamdg" style="text-align:center; "/>
  517. <col ref="weekflag" style="text-align:center; "/>
  518. <col ref="roomcd" style="text-align:center; "/>
  519. <col ref="roomtypecd" style="text-align:center; "/>
  520. <col ref="lastjudgdt" format="yyyy-mm-dd" style="text-align:center; "/>
  521. <col ref="drgno" style="text-align:center; "/>
  522. <col ref="detailcd1" style="text-align:center; "/>
  523. <col ref="detailcd2" style="text-align:center; "/>
  524. <col ref="detailcd3" style="text-align:center; "/>
  525. <col ref="detailcd4" style="text-align:center; "/>
  526. <col ref="detailcd5" style="text-align:center; "/>
  527. <col ref="calcscorrecalflag" visibility="hidden"/>
  528. <col ref="erdeptyn" visibility="hidden"/>
  529. <script type="javascript" ev:event="onbuttonclick">
  530. <![CDATA[
  531. if(grd_cretlist.col == grd_cretlist.colRef("memo")) {
  532. var afjudgrow = grd_cretlist.row;
  533. model.removenode("/root/hidden/temp/memo");
  534. model.makeNode("/root/hidden/temp/memo");
  535. model.setValue("/root/hidden/temp/memo", grd_cretlist.valueMatrix(afjudgrow, grd_cretlist.colRef("memo")));
  536. grp_memo.visible = true;
  537. grp_memo.refresh();
  538. }
  539. ]]>
  540. </script>
  541. </datagrid>
  542. <button id="btn_selectall" class="btn2_letter6" style="left:1106px; top:73px; width:86px; height:19px; ">
  543. <caption>생성로그확인</caption>
  544. <script type="javascript" ev:event="DOMActivate">
  545. <![CDATA[
  546. var todd = getCurrentDate();
  547. todd = todd.toDate().getAddDate(+1, 'D');
  548. zsbfOpenBatchLogPopup("clamcretmngtmgr.ClamDataCretMain",getCurrentDate(),todd.getDateFormat());
  549. ]]>
  550. </script>
  551. </button>
  552. <button id="button1" class="btn2_letter6" style="left:913px; top:73px; width:86px; height:19px; ">
  553. <caption>전체 선택</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. // 생성요청은 31건 이상 처리 안됨 : HP UNIX 오류 발생 (SIZE문제) 2008-10-08
  557. // 생성건수 60건으로 늘림(2016.01.26 LEJ)
  558. var row_cnt = 0;
  559. for (var i = 1; i < grd_cretlist.rows; i++) {
  560. // 생성된 자료 선택 제외 여부 2008-10-08
  561. if (model.getValue("/root/hidden/screen1/checkyn1") == "Y" && model.getValue("root/main/list1/cretlist[" + i + "]/clamkey") != "-") continue;
  562. if (row_cnt >= 60) break;
  563. model.setValue("root/main/list1/cretlist[" + i + "]/chk","true");
  564. row_cnt ++;
  565. }
  566. model.refresh();
  567. ]]>
  568. </script>
  569. </button>
  570. <button id="btn_selectcancel" class="btn2_letter6" style="left:1001px; top:73px; width:86px; height:19px; ">
  571. <caption>전체선택취소</caption>
  572. <script type="javascript" ev:event="DOMActivate">
  573. <![CDATA[
  574. for (var i = 1; i < grd_cretlist.rows; i++) {
  575. model.setValue("root/main/list1/cretlist[" + i + "]/chk","false");
  576. }
  577. model.refresh();
  578. ]]>
  579. </script>
  580. </button>
  581. <select id="checkbox1" ref="/root/hidden/screen1/checkyn1" overflow="visible" appearance="full" style="left:765px; top:75px; width:145px; height:18px; border-style:none; ">
  582. <choices>
  583. <item>
  584. <label>생성된 자료 선택 제외</label>
  585. <value>Y</value>
  586. </item>
  587. </choices>
  588. </select>
  589. <button id="btn_excelsave" class="btn2_letter4" style="left:691px; top:73px; width:64px; height:19px; ">
  590. <caption>엑셀저장</caption>
  591. <script type="javascript" ev:event="DOMActivate">
  592. <![CDATA[
  593. if (grd_cretlist.rows > 1) {
  594. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  595. if (fileName != "") {
  596. grd_cretlist.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  597. }
  598. } else {
  599. messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
  600. }
  601. ]]>
  602. </script>
  603. </button>
  604. <group id="grp_memo" visibility="hidden" style="left:790px; top:160px; width:370px; height:210px; border-color:#c7a3cf; border-style:solid; ">
  605. <caption id="caption7" class="tit_2" style="left:5px; top:5px; width:179px; height:13px; ">입원 사후 자료수집 메모</caption>
  606. <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:365px; y2:22px; "/>
  607. <textarea id="textarea1" ref="/root/hidden/temp/memo" style="left:4px; top:29px; width:360px; height:150px; "/>
  608. <button id="button4" class="btn4_letter2" style="left:252px; top:184px; width:56px; height:22px; ">
  609. <caption>저장</caption>
  610. <script type="javascript" ev:event="DOMActivate">
  611. <![CDATA[
  612. var aftjudgcmt = textarea1.currentText;
  613. var TotLength = getStringLength(aftjudgcmt);
  614. if (TotLength > 4000){
  615. messageBox("메모 내용이 너무길어 저장을 ","E001");
  616. return false;
  617. }
  618. for (var k=0; k < grd_cretlist.selectedRows; k++ ) {
  619. var row = grd_cretlist.selectedRow(k);
  620. var col = grd_cretlist.colRef("memo");
  621. grd_cretlist.valueMatrix(row, col) = aftjudgcmt;
  622. model.resetInstanceNode("/root/send/temp");
  623. model.makeValue("/root/send/temp/spclspec", aftjudgcmt);
  624. model.makeValue("/root/send/temp/spclmemoflag", 'B');
  625. model.makeValue("/root/send/temp/m", "i");
  626. model.makeValue("/root/send/temp/unitflag", "M");
  627. model.makeValue("/root/send/temp/spclcd", "MX998");
  628. model.makeValue("/root/send/temp/seqno", "1");
  629. model.makeValue("/root/send/temp/pid", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("pid")));
  630. model.makeValue("/root/send/temp/indd", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("indd")));
  631. model.makeValue("/root/send/temp/mskind", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("mskind")));
  632. model.makeValue("/root/send/temp/cretno", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("cretno")));
  633. model.makeValue("/root/send/temp/fromdd", grd_cretlist.valueMatrix(row, grd_cretlist.colRef("fromdd")));
  634. model.makeValue("/root/send/temp/instcd", "");
  635. model.makeValue("/root/send/temp/lastupdtrid", "");
  636. submit("TXPID10103",false);
  637. }
  638. grp_memo.visible = false;
  639. ]]>
  640. </script>
  641. </button>
  642. <button id="button5" class="btn4_letter2" style="left:309px; top:184px; width:56px; height:22px; ">
  643. <caption>닫기</caption>
  644. <script type="javascript" ev:event="DOMActivate">
  645. <![CDATA[
  646. grp_memo.visible = false;
  647. ]]>
  648. </script>
  649. </button>
  650. </group>
  651. <button id="button6" class="btn2_letter6" style="left:575px; top:73px; width:86px; height:19px; ">
  652. <caption>금액점검</caption>
  653. <script type="javascript" ev:event="DOMActivate">
  654. <![CDATA[
  655. open("SPPID10103", "2", "10", "10", "SPPID10103", "", "", "", "");
  656. ]]>
  657. </script>
  658. </button>
  659. </group>
  660. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  661. <button id="button10" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  662. <caption>초기화</caption>
  663. <script type="javascript" ev:event="onclick">
  664. <![CDATA[
  665. model.removeNodeset("/root/main/list1");
  666. fInitialize();
  667. ]]>
  668. </script>
  669. </button>
  670. <button id="button2" class="btn4_letter5" style="left:1032px; top:5px; width:92px; height:22px; ">
  671. <caption>선택 생성</caption>
  672. <script type="javascript" ev:event="DOMActivate">
  673. <![CDATA[
  674. // 생성요청은 31건 이상 처리 안됨 : HP UNIX 오류 발생 (SIZE문제) 2008-10-08
  675. // 생성건수 60건으로 늘림(2016.01.26 LEJ)
  676. var row_cnt = 0;
  677. var rtrn_value = "";
  678. for (var i = 1; i < grd_cretlist.rows; i++) {
  679. // 생성요청 건수 2008-10-08
  680. if (model.getValue("root/main/list1/cretlist[" + i + "]/chk") == "true") row_cnt ++;
  681. }
  682. if (row_cnt == 0) {
  683. messageBox("선택된 환자가 없어 작업", "E001");
  684. return;
  685. }
  686. if (row_cnt > 60) {
  687. messageBox("선택된 환자가 60건이 넘어 작업", "E001");
  688. return;
  689. }
  690. rtrn_value = messageBox("해당 조건으로 일괄 생성을 ", "S004");
  691. if (rtrn_value == "6") {
  692. submit("TXPID10101");
  693. // 생성로그확인 자동호출
  694. btn_selectall.dispatch("DOMActivate");
  695. }
  696. ]]>
  697. </script>
  698. </button>
  699. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  700. <button id="button3" class="btn4_letter5" style="left:938px; top:5px; width:92px; height:22px; ">
  701. <caption>전체 생성</caption>
  702. <script type="javascript" ev:event="DOMActivate">
  703. <![CDATA[
  704. var rtrn_value = "";
  705. var row_cnt = 0;
  706. if (g_rtrv != "Y") {
  707. messageBox("조회를 먼저 하신후에 ", "I006");
  708. return;
  709. }
  710. rtrn_value = messageBox("해당 조건으로 일괄 생성을 ", "S004");
  711. if (rtrn_value == "6") {
  712. model.setValue("root/send/weekflag", "T");
  713. model.setValue("root/send/chk", "true");
  714. model.setValue("root/send/ioflag", "I");
  715. submit("TXPID10102");
  716. // 생성로그확인 자동호출
  717. btn_selectall.dispatch("DOMActivate");
  718. }
  719. ]]>
  720. </script>
  721. </button>
  722. </group>
  723. <input id="ipt_clamdg" ref="/root/send/clamdg" class="input_default" disabled="false" visibility="visible" inputtype="spin" step="1" min="0" max="9" style="left:1050px; top:55px; width:50px; height:19px; text-align:left; ">
  724. <script type="javascript" ev:event="xforms-value-changed">
  725. <![CDATA[
  726. if (g_rtrv == "Y") {
  727. for (var i = 1; i < grd_cretlist.rows; i++) {
  728. model.setValue("root/main/list1/cretlist[" + i + "]/clamdg", model.getValue("/root/send/clamdg"));
  729. }
  730. }
  731. ]]>
  732. </script>
  733. </input>
  734. <input id="ipt_clamym" ref="/root/send/clamym" class="input_default" disabled="false" visibility="visible" inputtype="date" format="yyyy-mm" style="left:959px; top:55px; width:75px; height:19px; text-align:center; ">
  735. <script type="javascript" ev:event="xforms-value-changed">
  736. <![CDATA[
  737. if (g_rtrv == "Y") {
  738. for (var i = 1; i < grd_cretlist.rows; i++) {
  739. model.setValue("root/main/list1/cretlist[" + i + "]/clamym", model.getValue("/root/send/clamym"));
  740. }
  741. }
  742. ]]>
  743. </script>
  744. </input>
  745. <button id="button_down" class="icon_down" style="left:1036px; top:64px; width:10px; height:9px; ">
  746. <caption/>
  747. <script type="javascript" ev:event="onclick">
  748. <![CDATA[
  749. var clamym = ipt_clamym.value;
  750. ipt_clamym.value = CalMonth(-1, clamym);
  751. if (g_rtrv == "Y") {
  752. for (var i = 1; i < grd_cretlist.rows; i++) {
  753. model.setValue("root/main/list1/cretlist[" + i + "]/clamym", model.getValue("/root/send/clamym"));
  754. }
  755. }
  756. ]]>
  757. </script>
  758. </button>
  759. <button id="button_up" class="icon_up" style="left:1036px; top:54px; width:10px; height:9px; ">
  760. <caption/>
  761. <script type="javascript" ev:event="onclick">
  762. <![CDATA[
  763. var clamym = ipt_clamym.value;
  764. ipt_clamym.value = CalMonth(1, clamym);
  765. if (g_rtrv == "Y") {
  766. for (var i = 1; i < grd_cretlist.rows; i++) {
  767. model.setValue("root/main/list1/cretlist[" + i + "]/clamym", model.getValue("/root/send/clamym"));
  768. }
  769. }
  770. ]]>
  771. </script>
  772. </button>
  773. </xhtml:body>
  774. </xhtml:html>