SMPID10200_외래청구생성.xrw 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  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. <main>
  10. <weekflag/>
  11. <clamym/>
  12. <clamdg/>
  13. <clamfromdd/>
  14. <clamtodd/>
  15. <insutype/>
  16. <ordfildcd/>
  17. <orddeptcd/>
  18. <pid/>
  19. <name/>
  20. <ownb100/>
  21. <predata/>
  22. <docudivi/>
  23. <recreate/>
  24. <acntfromdd/>
  25. <acnttodd/>
  26. <acntall/>
  27. <execall/>
  28. <patinfo>
  29. <patinfolist/>
  30. </patinfo>
  31. </main>
  32. <hidden>
  33. <list1>
  34. <dept>
  35. <depthngnm/>
  36. <deptcd/>
  37. <deptengabbr/>
  38. <reqfild/>
  39. <reqdeptno/>
  40. </dept>
  41. </list1>
  42. <sppmc02500>
  43. <cond>
  44. <srchcond/>
  45. <pid/>
  46. <hngnm/>
  47. <rrgstno1/>
  48. <rrgstno2/>
  49. </cond>
  50. </sppmc02500>
  51. <send2>
  52. <instcd/>
  53. <basedd/>
  54. </send2>
  55. <send3>
  56. <clamym/>
  57. <recreate/>
  58. </send3>
  59. <maxclamdg>
  60. <clamdg/>
  61. </maxclamdg>
  62. <clbsupdcnt>
  63. <clbsupdcnt/>
  64. </clbsupdcnt>
  65. <edistat>
  66. <edistatyn/>
  67. </edistat>
  68. </hidden>
  69. <temp/>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-model-construct-done">
  73. <![CDATA[
  74. fInitialize();
  75. ]]>
  76. </script>
  77. <submission id="TRPID10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/send2" replace="instance" resultref="/root/hidden/list1"/>
  78. <submission id="TXPID10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/hidden/item1/result"/>
  79. <submission id="TRPID10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/send3" replace="instance" resultref="/root/hidden/maxclamdg"/>
  80. <submission id="TXPID10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" resultref="/root/temp/tmp"/>
  81. <submission id="TRPID10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/hidden/clbsupdcnt"/>
  82. <submission id="TXPID10203" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/main" resultref="/root/tmp"/>
  83. <submission id="TRPID10204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/hidden/edistat"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  91. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
  93. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  94. <script type="javascript">
  95. <![CDATA[
  96. // 청구년월 증감 함수
  97. function CalMonth(idc, av_date)
  98. {
  99. var lv_date = av_date.toDate("YYYYMM" + "01");
  100. lv_date = lv_date.getAddDate(idc, "M")
  101. return lv_date.getDateFormat("YYYYMM");
  102. }
  103. // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
  104. function fInitialize() {
  105. //cmb_weekflag.select(1); // 청구단위 : S.집계 월단위 청구
  106. cmb_weekflag.select(1); // 청구단위 : M.일자 월단위 청구
  107. ipt_clamdg.value = "1"; // 청구차수 : 1
  108. //cmb_insutype.select(0); // 보험유형 : 0.전체
  109. cmb_insutype.select(1); // 보험유형 : 1.건강보험+의료급여
  110. cmb_ordfildcd.select(0); // 진료분야 : -.전체
  111. cmb_ownb100.select(0); // 전액본인 : N.생성안함
  112. //cmb_predata.select(0); // 이전자료 : 1.생성(삭제후)
  113. cmb_predata.select(1); // 이전자료 : 2.생성(중복Skip)
  114. cmb_docudivi.select(1); // 명세서분리 : 2.진료과별 명세서
  115. cmb_recreate.select(0); // 대상테이블 : 0.적용 안함
  116. // 실시종료일
  117. var to_date = (((new Date().getDateFormat("YYYYMM")) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
  118. ipt_clamtodd.value = to_date.getDateFormat("YYYYMMDD");
  119. // 실시시작일
  120. ipt_clamfromdd.value = to_date.getDateFormat("YYYYMM" + "01");
  121. // 청구년월
  122. ipt_clamym.value = to_date.getDateFormat("YYYYMM");
  123. // 기준일자
  124. model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
  125. submit("TRPID10201"); // 진료과목
  126. model.refresh();
  127. /*
  128. // 날짜 계산을 위하여 yyyymmdd형태로 오늘 날짜를 구한다.
  129. var tmp_date = new Date();
  130. var tmp_year = tmp_date.getYear();
  131. var tmp_month = tmp_date.getMonth() + 1; // 월의 경우 0부터 시작이므로 +1을 해준다.
  132. var tmp_day = tmp_date.getDate();
  133. // 10보다 작은경우는 앞에 '0'을 붙여서 자릿수를 맞춘다.
  134. if (tmp_month<10) tmp_month = "0" + tmp_month;
  135. if (tmp_day<10) tmp_day = "0" + tmp_day;
  136. // +"" 을 안해주면 숫자로 인식해서 더해버리므로 꼭 넣어준다.
  137. ipt_clamym.value = tmp_year + "" + tmp_month + "" + tmp_day;
  138. ipt_clamfromdd.value = ipt_clamym.value;
  139. ipt_clamtodd.value = ipt_clamym.value;
  140. */
  141. }
  142. function responseHandlerTXPID10202() {
  143. var node = instance1.selectSingleNode("/root/temp/result/resultKM");
  144. var attrMap = node.attributes;
  145. var atterror = node.getAttributeNode("error");
  146. var attrdescription = node.getAttributeNode("description");
  147. if (atterror.text == "yes") {
  148. messageBox(attrdescription.text, "I");
  149. removeLoadingWindow();
  150. } else if (atterror.text == "no") {
  151. removeLoadingWindow();
  152. messageBox(attrdescription.text, "I");
  153. }
  154. }
  155. ]]>
  156. </script>
  157. </xhtml:head>
  158. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">외래 청구 생성</caption>
  161. </group>
  162. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  163. <button id="btn_cretstart" class="btn2_letter7" style="left:91px; top:326px; width:97px; height:19px; text-align:center; ">
  164. <caption>생성 요청</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. var clamym = model.getValue("/root/main/clamym");
  168. var clamdg = model.getValue("/root/main/clamdg");
  169. var clamfromdd = model.getValue("/root/main/clamfromdd");
  170. var clamtodd = model.getValue("/root/main/clamtodd");
  171. // 이전자료가 재생성 별도일경우 보험유형과 진료분야를 전체로 하지 못하게 블러킹 - 20090507 박창원
  172. var predata = model.getValue("/root/main/predata");
  173. var insutype = model.getValue("/root/main/insutype");
  174. var ordfildcd = model.getValue("/root/main/ordfildcd");
  175. var recreate = model.getValue("/root/main/recreate");
  176. //청구단위와 보험유형 조건 비교 변수
  177. //청구단위 (S:집계 월단위 M:일자별 월단위 W:일자별 주단위)
  178. //보험유형 (0.전체,1.건강보험 +의료급여,2.건강보험,3.의료급여1종+의료급여2종,4.의료급여1종,5.의료급여2종,6.산재,7.자보)
  179. var weekflag = model.getValue("/root/main/weekflag");
  180. var insutype = model.getValue("/root/main/insutype");
  181. if (weekflag =="M" || weekflag =="W" ) {
  182. if (insutype == "0" || insutype == "6" ) { // || insutype == "7" : 2013.07.01 진료분부터 자보 외래 일자별 생성해야 함
  183. messageBox("일자별 생성인 경우 건강보험 과 의료급여 외에는 선택 할", "E001");
  184. return;
  185. }
  186. }
  187. if (predata == "5") {
  188. if ( insutype == "0" || ordfildcd == "-") {
  189. messageBox("이전자료가 재생성 별도일 경우에는 보험유형 또는 진료분야에서 전체를 선택 할", "E001");
  190. return;
  191. }
  192. }
  193. if (clamym != clamfromdd.substr(0,6)) {
  194. messageBox("실시시작일이 청구년월이 같지 않으므로 작업", "E001");
  195. return;
  196. }
  197. if (clamfromdd > clamtodd) {
  198. messageBox("실시시작일이 실시종료일 보다 크므로 작업 ", "E001");
  199. return;
  200. }
  201. if (clamfromdd.substr(0,6) != clamtodd.substr(0,6)) {
  202. messageBox("실시시작년월과 실시종료년월이 같지 않으므로 작업", "E001");
  203. return;
  204. }
  205. // 이전자료가 "삭제"가 아니고 대상테이블 "적용 안 함" 인 경우만 송신완료 체크함. (2015.02.06 L.E.J)
  206. if (predata != "4" && recreate == "0") {
  207. submit("TRPID10204");
  208. if ( model.getValue("/root/hidden/edistat/edistatyn") == "Y" ) {
  209. messageBox("이미 송신 완료된 청구월/차수 이므로 청구 자료 생성 ", "E001");
  210. return;
  211. }
  212. }
  213. if (model.getValue("/root/main/pid") == "") {
  214. if (model.getValue("/root/main/predata") == "4") {
  215. var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 전체삭제입니다. 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
  216. } else {
  217. var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 전체생성입니다. 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
  218. }
  219. if (ans != 6) { // 6: yes, 7:no, 2:cancel
  220. return;
  221. }
  222. /*
  223. // 경북대병원은 오픈시 월집계청구하기 때문에 메시지 삭제
  224. // 의료보험, 의료급여 일자별 청구가 아니면 한번더 물어보자 20091120 김용민
  225. if ( (weekflag =="S" || weekflag =="W")
  226. && (insutype == "1" || insutype == "2" || insutype == "3" || insutype == "4" || insutype == "5" )
  227. )
  228. {
  229. var ans = messageBox("일자별 생성이 아닙니다. 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
  230. if (ans != 6) { // 6: yes, 7:no, 2:cancel
  231. return;
  232. }
  233. }
  234. */
  235. } else {
  236. var ans = messageBox("환자번호별 선택조건으로 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
  237. if (ans != 6) { // 6: yes, 7:no, 2:cancel
  238. return;
  239. }
  240. }
  241. submit("TXPID10201");
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="btn_cretrslt" class="btn2_letter7" style="left:201px; top:326px; width:97px; height:19px; text-align:center; ">
  246. <caption>생성로그확인</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. var todd = getCurrentDate();
  250. todd = todd.toDate().getAddDate(+1, 'D');
  251. zsbfOpenBatchLogPopup("clamcretmngtmgr.ClamDataCretMain", getCurrentDate(),todd.getDateFormat());
  252. ]]>
  253. </script>
  254. </button>
  255. <line id="line8" class="line_2" style="x1:0px; y1:107px; x2:298px; y2:107px; "/>
  256. <line id="line9" class="line_2" style="x1:0px; y1:131px; x2:298px; y2:131px; "/>
  257. <caption id="caption10" class="cell_1" style="left:0px; top:156px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">환자번호</caption>
  258. <caption id="caption5" class="cell_1" style="left:0px; top:36px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">실시기간</caption>
  259. <line id="line1" class="line_1" style="x1:0px; y1:10px; x2:298px; y2:10px; "/>
  260. <caption id="caption8" class="cell_1" style="left:0px; top:84px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">보험유형</caption>
  261. <line id="line2" class="line_2" style="x1:0px; y1:35px; x2:298px; y2:35px; "/>
  262. <caption id="caption9" class="cell_1" style="left:0px; top:60px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">청구차수</caption>
  263. <caption id="caption11" class="cell_1" style="left:0px; top:132px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">진 료 과</caption>
  264. <line id="line4" class="line_2" style="x1:0px; y1:59px; x2:298px; y2:59px; "/>
  265. <caption id="caption12" class="cell_1" style="left:0px; top:108px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">진료분야</caption>
  266. <line id="line6" class="line_2" style="x1:0px; y1:83px; x2:298px; y2:83px; "/>
  267. <line id="line10" class="line_2" style="x1:0px; y1:155px; x2:298px; y2:155px; "/>
  268. <select1 id="cmb_insutype" ref="/root/main/insutype" class="combo_default" appearance="minimal" style="left:91px; top:86px; width:207px; height:19px; ">
  269. <choices>
  270. <item>
  271. <label>0.전체</label>
  272. <value>0</value>
  273. </item>
  274. <item>
  275. <label>1.건강보험+의료급여</label>
  276. <value>1</value>
  277. </item>
  278. <item>
  279. <label>2.건강보험</label>
  280. <value>2</value>
  281. </item>
  282. <item>
  283. <label>3.의료급여1종+의료급여2종</label>
  284. <value>3</value>
  285. </item>
  286. <item>
  287. <label>4.의료급여1종</label>
  288. <value>4</value>
  289. </item>
  290. <item>
  291. <label>5.의료급여2종</label>
  292. <value>5</value>
  293. </item>
  294. <item>
  295. <label>6.산재</label>
  296. <value>6</value>
  297. </item>
  298. <item>
  299. <label>7.자보</label>
  300. <value>7</value>
  301. </item>
  302. </choices>
  303. </select1>
  304. <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_default" appearance="minimal" style="left:91px; top:134px; width:207px; height:19px; ">
  305. <choices>
  306. <itemset nodeset="/root/hidden/list1/dept">
  307. <label ref="depthngnm"/>
  308. <value ref="deptcd"/>
  309. </itemset>
  310. </choices>
  311. </select1>
  312. <select1 id="cmb_ordfildcd" ref="/root/main/ordfildcd" class="combo_default" appearance="minimal" style="left:91px; top:110px; width:207px; height:19px; ">
  313. <choices>
  314. <item>
  315. <label>-.전체</label>
  316. <value>-</value>
  317. </item>
  318. <item>
  319. <label>0.의과</label>
  320. <value>0</value>
  321. </item>
  322. <item>
  323. <label>1.내과</label>
  324. <value>1</value>
  325. </item>
  326. <item>
  327. <label>2.외과</label>
  328. <value>2</value>
  329. </item>
  330. <item>
  331. <label>3.산,소아과</label>
  332. <value>3</value>
  333. </item>
  334. <item>
  335. <label>4.안,이비인후과</label>
  336. <value>4</value>
  337. </item>
  338. <item>
  339. <label>5.피부,비뇨기과</label>
  340. <value>5</value>
  341. </item>
  342. <item>
  343. <label>6.치과</label>
  344. <value>6</value>
  345. </item>
  346. </choices>
  347. <script type="javascript" ev:event="xforms-value-changed">
  348. <![CDATA[
  349. cmb_orddeptcd.value = "";
  350. var ordfildcd = model.getValue("/root/main/ordfildcd");
  351. if (ordfildcd == "-") {
  352. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept";
  353. }
  354. else if (ordfildcd == "0") {
  355. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild !='6']";
  356. }
  357. else {
  358. cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild = '" + ordfildcd + "' or reqfild = '']";
  359. }
  360. model.refresh();
  361. ]]>
  362. </script>
  363. </select1>
  364. <input id="ipt_clamym" ref="/root/main/clamym" class="input_default" disabled="false" visibility="visible" inputtype="date" format="yyyy-mm" style="left:91px; top:62px; width:89px; height:19px; text-align:center; "/>
  365. <line id="line11" class="line_2" style="x1:0px; y1:179px; x2:298px; y2:179px; "/>
  366. <caption id="caption1" class="cell_1" style="left:0px; top:180px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">전액본인</caption>
  367. <select1 id="cmb_ownb100" ref="/root/main/ownb100" class="combo_default" appearance="minimal" style="left:91px; top:182px; width:207px; height:19px; ">
  368. <choices>
  369. <item>
  370. <label>N.생성안함</label>
  371. <value>N</value>
  372. </item>
  373. <item>
  374. <label>Y.생성</label>
  375. <value>Y</value>
  376. </item>
  377. </choices>
  378. </select1>
  379. <line id="line12" class="line_2" style="x1:0px; y1:203px; x2:298px; y2:203px; "/>
  380. <caption id="caption13" class="cell_1" style="left:0px; top:204px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">이전자료</caption>
  381. <select1 id="cmb_predata" ref="/root/main/predata" class="combo_default" appearance="minimal" style="left:91px; top:206px; width:207px; height:19px; ">
  382. <choices>
  383. <item>
  384. <label>1.생성(삭제후)</label>
  385. <value>1</value>
  386. </item>
  387. <item>
  388. <label>2.생성(중복Skip)</label>
  389. <value>2</value>
  390. </item>
  391. <item>
  392. <label>3.생성(별도)</label>
  393. <value>3</value>
  394. </item>
  395. <item>
  396. <label>4.삭제</label>
  397. <value>4</value>
  398. </item>
  399. <item>
  400. <label>5.재생성(별도)</label>
  401. <value>5</value>
  402. </item>
  403. </choices>
  404. </select1>
  405. <caption id="caption14" class="cell_1" style="left:0px; top:324px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">작업요청</caption>
  406. <input id="ipt_clamfromdd" ref="/root/main/clamfromdd" class="input_default" disabled="false" inputtype="date" style="left:91px; top:38px; width:101px; height:19px; text-align:center; ">
  407. <script type="javascript" ev:event="xforms-value-changed">
  408. <![CDATA[
  409. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)){
  410. var clamtodd = ((CalMonth(1, ipt_clamfromdd.value.substr(0,6)) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
  411. ipt_clamtodd.value = clamtodd.getDateFormat("YYYYMMDD");
  412. }
  413. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
  414. ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
  415. }
  416. model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
  417. ]]>
  418. </script>
  419. </input>
  420. <input id="ipt_clamtodd" ref="/root/main/clamtodd" class="input_default" disabled="false" inputtype="date" style="left:196px; top:38px; width:101px; height:19px; text-align:center; ">
  421. <script type="javascript" ev:event="xforms-value-changed">
  422. <![CDATA[
  423. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
  424. ipt_clamtodd.value = ipt_clamtodd.oldValue;
  425. messageBox("실시종료일이 실시시작일의 년월과 같지 않으므로 수정", "E001");
  426. return;
  427. }
  428. ]]>
  429. </script>
  430. </input>
  431. <input id="ipt_pid" ref="/root/main/pid" class="input_default" style="left:91px; top:158px; width:85px; height:19px; ">
  432. <script type="javascript" ev:event="onkeypress">
  433. <![CDATA[
  434. if (event.keyCode == '13') { // Enter 입력 시에
  435. setInputNodeCurText();
  436. var ipt_pid = model.getValue("/root/main/pid");
  437. if (ipt_pid) {
  438. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  439. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  440. }
  441. else {
  442. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  443. }
  444. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  445. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  446. var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  447. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  448. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  449. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  450. model.setValue("/root/main/pid", srch_pid);
  451. model.setValue("/root/main/name", srch_hngnm);
  452. }
  453. model.refresh();
  454. }
  455. ]]>
  456. </script>
  457. </input>
  458. <input id="ipt_name" ref="/root/main/name" class="input_default" style="left:182px; top:158px; width:85px; height:19px; "/>
  459. <button id="button27" class="icon_search" style="left:277px; top:160px; width:16px; height:16px; ">
  460. <caption/>
  461. <script type="javascript" ev:event="onclick">
  462. <![CDATA[
  463. var ipt_pid = model.getValue("/root/main/pid");
  464. if (ipt_pid) {
  465. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  466. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  467. }
  468. else {
  469. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  470. }
  471. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
  472. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  473. var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  474. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  475. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  476. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  477. model.setValue("/root/main/pid", srch_pid);
  478. model.setValue("/root/main/name", srch_hngnm);
  479. }
  480. model.refresh();
  481. ]]>
  482. </script>
  483. </button>
  484. <line id="line3" class="line_3" style="x1:0px; y1:323px; x2:298px; y2:323px; "/>
  485. <caption id="caption2" class="cell_1" visibility="visible" style="left:0px; top:14px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">청구단위</caption>
  486. <select1 id="cmb_weekflag" ref="/root/main/weekflag" class="combo_default" disabled="false" visibility="visible" appearance="minimal" style="left:91px; top:14px; width:207px; height:19px; ">
  487. <choices>
  488. <item>
  489. <label>S.집계 월단위 청구</label>
  490. <value>S</value>
  491. </item>
  492. <item>
  493. <label>M.일자 월단위 청구</label>
  494. <value>M</value>
  495. </item>
  496. <item>
  497. <label>W.일자 주단위 청구</label>
  498. <value>W</value>
  499. </item>
  500. </choices>
  501. </select1>
  502. <input id="ipt_clamdg" ref="/root/main/clamdg" class="input_default" disabled="false" visibility="visible" inputtype="spin" min="0" step="1" max="9" style="left:196px; top:62px; width:101px; height:19px; text-align:center; "/>
  503. <line id="line5" class="line_3" style="x1:0px; y1:347px; x2:298px; y2:347px; "/>
  504. <select1 id="cmb_docudivi" ref="/root/main/docudivi" class="combo_default" disabled="false" appearance="minimal" style="left:91px; top:230px; width:207px; height:19px; ">
  505. <choices>
  506. <item>
  507. <label>1.청구분과별 명세서</label>
  508. <value>1</value>
  509. </item>
  510. <item>
  511. <label>2.진료과별 명세서</label>
  512. <value>2</value>
  513. </item>
  514. <item>
  515. <label>3.진료의사별 명세서</label>
  516. <value>3</value>
  517. </item>
  518. </choices>
  519. </select1>
  520. <caption id="caption3" class="cell_1" style="left:0px; top:228px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">명세서분리</caption>
  521. <line id="line7" class="line_2" style="x1:0px; y1:227px; x2:298px; y2:227px; "/>
  522. <caption id="caption4" class="cell_1" style="left:0px; top:252px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">대상테이블</caption>
  523. <select1 id="cmb_recreate" ref="/root/main/recreate" class="combo_default" disabled="false" appearance="minimal" style="left:91px; top:254px; width:207px; height:19px; ">
  524. <choices>
  525. <item>
  526. <label>0.적용 안함</label>
  527. <value>0</value>
  528. </item>
  529. <item>
  530. <label>1.적용 (환자번호)</label>
  531. <value>1</value>
  532. </item>
  533. <item>
  534. <label>2.적용 (환자번호+유형)</label>
  535. <value>2</value>
  536. </item>
  537. <item>
  538. <label>3.적용 (환자번호+과)</label>
  539. <value>3</value>
  540. </item>
  541. <item>
  542. <label>4.적용 (환자번호+유형+과)</label>
  543. <value>4</value>
  544. </item>
  545. <item>
  546. <label>5.누락청구</label>
  547. <value>5</value>
  548. </item>
  549. <item>
  550. <label>6.추가청구</label>
  551. <value>6</value>
  552. </item>
  553. </choices>
  554. <script type="javascript" ev:event="xforms-value-changed">
  555. <![CDATA[
  556. var recreate = cmb_recreate.value;
  557. if (recreate == "5" || recreate == "6") {
  558. model.setValue("/root/hidden/send3/clamym", model.getValue("/root/main/clamym"));
  559. model.setValue("/root/hidden/send3/recreate",cmb_recreate.value);
  560. // model.alert(model.getValue("/root/hidden/send3/clamym"));
  561. // model.alert(model.getValue("/root/hidden/send3/recreate"));
  562. submit("TRPID10202");
  563. // model.setValue("/root/hidden/clamdg","1111");
  564. var MaxClamDG = model.getValue("/root/hidden/maxclamdg/clamdg");
  565. // model.alert(MaxClamDG);
  566. ipt_clamdg.value = MaxClamDG;
  567. }
  568. ]]>
  569. </script>
  570. </select1>
  571. <line id="line13" class="line_2" style="x1:0px; y1:251px; x2:298px; y2:251px; "/>
  572. <button id="button_up" class="icon_up" disabled="false" style="left:182px; top:62px; width:10px; height:9px; ">
  573. <caption/>
  574. <script type="javascript" ev:event="onclick">
  575. <![CDATA[
  576. var clamym = ipt_clamym.value;
  577. ipt_clamym.value = CalMonth(1, clamym);
  578. ]]>
  579. </script>
  580. </button>
  581. <button id="button_down" class="icon_down" disabled="false" style="left:182px; top:72px; width:10px; height:9px; ">
  582. <caption/>
  583. <script type="javascript" ev:event="onclick">
  584. <![CDATA[
  585. var clamym = ipt_clamym.value;
  586. ipt_clamym.value = CalMonth(-1, clamym);
  587. ]]>
  588. </script>
  589. </button>
  590. <select id="chk_acnt" ref="/root/main/acntall" overflow="visible" appearance="full" style="left:90px; top:302px; width:100px; height:20px; border-style:none; ">
  591. <choices>
  592. <item>
  593. <label>정산일자 전체</label>
  594. <value>Y</value>
  595. </item>
  596. </choices>
  597. </select>
  598. <select id="chk_exec" ref="/root/main/execall" overflow="visible" appearance="full" style="left:195px; top:302px; width:100px; height:20px; border-style:none; ">
  599. <choices>
  600. <item>
  601. <label>실시일자 전체</label>
  602. <value>Y</value>
  603. </item>
  604. </choices>
  605. </select>
  606. <caption id="caption7" class="cell_1" style="left:0px; top:276px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">정산기간</caption>
  607. <input id="ipt_acntfromdd" ref="/root/main/acntfromdd" class="input_default" disabled="false" inputtype="date" style="left:91px; top:278px; width:101px; height:19px; text-align:center; ">
  608. <script type="javascript" ev:event="xforms-value-changed">
  609. <![CDATA[
  610. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)){
  611. var clamtodd = ((CalMonth(1, ipt_clamfromdd.value.substr(0,6)) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
  612. ipt_clamtodd.value = clamtodd.getDateFormat("YYYYMMDD");
  613. }
  614. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
  615. ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
  616. }
  617. model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
  618. ]]>
  619. </script>
  620. </input>
  621. <input id="ipt_acnttodd" ref="/root/main/acnttodd" class="input_default" disabled="false" inputtype="date" style="left:196px; top:278px; width:101px; height:19px; text-align:center; ">
  622. <script type="javascript" ev:event="xforms-value-changed">
  623. <![CDATA[
  624. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
  625. ipt_clamtodd.value = ipt_clamtodd.oldValue;
  626. messageBox("실시종료일이 실시시작일의 년월과 같지 않으므로 수정", "E001");
  627. return;
  628. }
  629. ]]>
  630. </script>
  631. </input>
  632. <caption id="caption15" class="cell_1" style="left:0px; top:300px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">조회 구분</caption>
  633. <line id="line14" class="line_2" style="x1:0px; y1:275px; x2:298px; y2:275px; "/>
  634. <line id="line15" class="line_2" style="x1:0px; y1:299px; x2:298px; y2:299px; "/>
  635. <group id="group2" style="left:305px; top:15px; width:310px; height:330px; ">
  636. <button id="button1" class="btn3_letter9" style="left:162px; top:50px; width:140px; height:22px; text-align:center; ">
  637. <caption>추가 청구 수집 실행</caption>
  638. <script type="javascript" ev:event="DOMActivate">
  639. <![CDATA[
  640. var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 추가 청구 수집 요청하시겠습니까?", "S001");
  641. if (ans == 6){
  642. //submit("TXPID10202");
  643. asyncSend("TXPID10202", "/root/main", "/root/temp/tmp", "responseHandlerTXPID10202");
  644. callLoadingWindow("추가 청구 수집중");
  645. }
  646. ]]>
  647. </script>
  648. </button>
  649. <caption id="cap_diag" class="tit_2" style="left:5px; top:5px; width:270px; height:13px; ">
  650. <![CDATA[Setp1 추가수집 실행]]>
  651. <script type="javascript" ev:event="onclick">
  652. <![CDATA[
  653. if (grd_cldihist.attribute("height") == "142") { // 기존 크기를 세로로 확대시킨다.
  654. grp_cldihist.attribute("height") = "555";
  655. grd_cldihist.attribute("height") = "530";
  656. cap_message.attribute("left") = "485";
  657. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  658. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; // "469";
  659. } else {
  660. grp_cldihist.attribute("height") = "170";
  661. grd_cldihist.attribute("height") = "142";
  662. cap_message.attribute("left") = "5";
  663. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  664. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
  665. }
  666. ]]>
  667. </script>
  668. </caption>
  669. <caption id="caption16" class="tit_2" style="left:5px; top:82px; width:275px; height:13px; ">
  670. <![CDATA[Setp2 ← 외래 청구 생성 실행]]>
  671. <script type="javascript" ev:event="onclick">
  672. <![CDATA[
  673. if (grd_cldihist.attribute("height") == "142") { // 기존 크기를 세로로 확대시킨다.
  674. grp_cldihist.attribute("height") = "555";
  675. grd_cldihist.attribute("height") = "530";
  676. cap_message.attribute("left") = "485";
  677. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  678. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; // "469";
  679. } else {
  680. grp_cldihist.attribute("height") = "170";
  681. grd_cldihist.attribute("height") = "142";
  682. cap_message.attribute("left") = "5";
  683. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  684. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
  685. }
  686. ]]>
  687. </script>
  688. </caption>
  689. <caption id="caption20" style="left:5px; top:132px; width:255px; height:20px; ">1.대상테이블 :6.추가청구</caption>
  690. <caption id="caption21" style="left:6px; top:152px; width:255px; height:20px; ">2.정산일자 :체크설정</caption>
  691. <caption id="caption22" style="left:5px; top:95px; width:304px; height:45px; ">
  692. <![CDATA[※기본값 변경하지 말고 아래만 변경
  693. ※변경시 초기화 버튼 실행 후 변경]]>
  694. </caption>
  695. <input id="input1" ref="/root/main/clamfromdd" class="input_default" disabled="true" inputtype="date" style="left:95px; top:27px; width:101px; height:19px; text-align:center; ">
  696. <script type="javascript" ev:event="xforms-value-changed">
  697. <![CDATA[
  698. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)){
  699. var clamtodd = ((CalMonth(1, ipt_clamfromdd.value.substr(0,6)) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
  700. ipt_clamtodd.value = clamtodd.getDateFormat("YYYYMMDD");
  701. }
  702. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
  703. ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
  704. }
  705. model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
  706. ]]>
  707. </script>
  708. </input>
  709. <input id="input2" ref="/root/main/clamtodd" class="input_default" disabled="true" inputtype="date" style="left:200px; top:27px; width:101px; height:19px; text-align:center; ">
  710. <script type="javascript" ev:event="xforms-value-changed">
  711. <![CDATA[
  712. if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
  713. ipt_clamtodd.value = ipt_clamtodd.oldValue;
  714. messageBox("실시종료일이 실시시작일의 년월과 같지 않으므로 수정", "E001");
  715. return;
  716. }
  717. ]]>
  718. </script>
  719. </input>
  720. <caption id="caption17" class="cell_1" style="left:4px; top:25px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">실시기간</caption>
  721. <caption id="caption18" class="tit_2" style="left:5px; top:185px; width:275px; height:13px; ">
  722. <![CDATA[Setp3 2501 업데이트 실행]]>
  723. <script type="javascript" ev:event="onclick">
  724. <![CDATA[
  725. if (grd_cldihist.attribute("height") == "142") { // 기존 크기를 세로로 확대시킨다.
  726. grp_cldihist.attribute("height") = "555";
  727. grd_cldihist.attribute("height") = "530";
  728. cap_message.attribute("left") = "485";
  729. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  730. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; // "469";
  731. } else {
  732. grp_cldihist.attribute("height") = "170";
  733. grd_cldihist.attribute("height") = "142";
  734. cap_message.attribute("left") = "5";
  735. opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
  736. opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
  737. }
  738. ]]>
  739. </script>
  740. </caption>
  741. <button id="button2" class="btn3_letter2" style="left:245px; top:228px; width:56px; height:22px; text-align:center; ">
  742. <caption>실행</caption>
  743. <script type="javascript" ev:event="DOMActivate">
  744. <![CDATA[
  745. if (model.getValue(input3.attribute("ref")) != "2501" ) {
  746. messageBox("2501차수가 아니면 실행 할 수 없습니다.","I");
  747. } else {
  748. submit("TRPID10203");
  749. var clbsupdcnt = parseInt(model.getValue("/root/hidden/clbsupdcnt/clbsupdcnt/clbsupdcnt"));
  750. if (clbsupdcnt > 0) {
  751. var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 2501차수가 ["+clbsupdcnt+"]건 있습니다. 업데이트 하시겠습니까?", "S001");
  752. if (ans == 6) {
  753. submit("TXPID10203");
  754. }
  755. } else {
  756. messageBox("업데이트 할 건수가 없습니다.","I");
  757. }
  758. }
  759. ]]>
  760. </script>
  761. </button>
  762. <input id="input3" ref="/root/main/clamdg" class="input_default" disabled="true" visibility="visible" inputtype="spin" step="1" min="0" max="9" style="left:200px; top:205px; width:101px; height:19px; text-align:center; "/>
  763. <caption id="caption19" class="cell_1" style="left:5px; top:203px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">청구차수</caption>
  764. <input id="input4" ref="/root/main/clamym" class="input_default" disabled="true" visibility="visible" inputtype="date" format="yyyy-mm" style="left:95px; top:205px; width:89px; height:19px; text-align:center; "/>
  765. </group>
  766. </group>
  767. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  768. <button id="button10" class="btn4_letter3" style="left:1126px; top:5; width:68px; height:22px; ">
  769. <caption>초기화</caption>
  770. <script type="javascript" ev:event="DOMActivate">
  771. <![CDATA[
  772. fInitialize();
  773. ]]>
  774. </script>
  775. </button>
  776. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  777. </group>
  778. </xhtml:body>
  779. </xhtml:html>