SMPID22600_명세서추가청구생성.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID22600_명세서추가청구생성.xrw
  4. * 수정이력
  5. * - 2008.08.29 / 최초작성 / 김상진
  6. -->
  7. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>명세서추가청구생성</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <list1>
  16. <clbs/>
  17. </list1>
  18. </main>
  19. <send>
  20. <item1>
  21. <ioflag>O</ioflag>
  22. <clamym/>
  23. <clamdg/>
  24. <ordfildcd/>
  25. <clamflagcd/>
  26. <judgendyn/>
  27. <insukind/>
  28. <suppkind/>
  29. <clamdeptcd/>
  30. <acptno/>
  31. <docuseqno1/>
  32. <docuseqno2/>
  33. <pid/>
  34. <pidsn/>
  35. <makeflag>4</makeflag>
  36. <orddrid/>
  37. <ms010/>
  38. <orddeptcd/>
  39. <copyflag/>
  40. <t_clamym/>
  41. <t_clamdg/>
  42. <t_clamflagcd/>
  43. <judgrid/>
  44. </item1>
  45. <list1>
  46. <clbs>
  47. </clbs>
  48. </list1>
  49. </send>
  50. <init>
  51. <item1>
  52. <makeflag/>
  53. <copyflag/>
  54. <ioflag/>
  55. <clamym/>
  56. <clamdg/>
  57. <pid/>
  58. <pidsn/>
  59. <t_clamym/>
  60. <t_clamdg/>
  61. <t_clamflagcd/>
  62. </item1>
  63. <!-- 보험유형 -->
  64. <P0008list>
  65. <P0008>
  66. <cdnm/>
  67. <cdid/>
  68. </P0008>
  69. </P0008list>
  70. <!-- 보조유형 -->
  71. <P0010list>
  72. <P0010>
  73. <cdnm/>
  74. <cdid/>
  75. </P0010>
  76. </P0010list>
  77. <!-- 심사상태 / 심사완료여부 -->
  78. <P0151list>
  79. <P0151>
  80. <cdnm/>
  81. <cdid/>
  82. </P0151>
  83. </P0151list>
  84. <!-- 청구분야(진료분야) -->
  85. <P0291list>
  86. <P0291>
  87. <cdnm/>
  88. <cdid/>
  89. </P0291>
  90. </P0291list>
  91. <!-- 청구구분 -->
  92. <P0155list>
  93. <P0155>
  94. <cdnm/>
  95. <cdid/>
  96. </P0155>
  97. </P0155list>
  98. </init>
  99. <hidden>
  100. <sppmc02500>
  101. <cond>
  102. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  103. <srchcond/>
  104. <pid/>
  105. <hngnm/>
  106. <rrgstno1/>
  107. <rrgstno2/>
  108. </cond>
  109. </sppmc02500>
  110. <item1>
  111. <maxclamdg/>
  112. </item1>
  113. </hidden>
  114. </root>
  115. </instance>
  116. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  117. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  118. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/tmp"/>
  119. <submission id="TRPID20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
  120. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/clamdg"/>
  121. <submission id="TXPID20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1/clbs" resultref="/root/hidden/rslt"/>
  122. <submission id="TRPID20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
  123. <script type="javascript" ev:event="xforms-ready">
  124. <![CDATA[
  125. // 팝업으로 호출되었으면... 타이틀 변경해준다.
  126. if (model.getValue("/root/init/item1/makeflag") != "") {
  127. model.setValue("/root/send/item1/makeflag", model.getValue("/root/init/item1/makeflag"));
  128. model.setValue("/root/send/item1/copyflag", model.getValue("/root/init/item1/copyflag"));
  129. model.setValue("/root/send/item1/ioflag", model.getValue("/root/init/item1/ioflag"));
  130. model.setValue("/root/send/item1/clamym", model.getValue("/root/init/item1/clamym"));
  131. model.setValue("/root/send/item1/clamdg", model.getValue("/root/init/item1/clamdg"));
  132. model.setValue("/root/send/item1/pid", model.getValue("/root/init/item1/pid"));
  133. model.setValue("/root/send/item1/pidsn", model.getValue("/root/init/item1/pidsn"));
  134. model.setValue("/root/send/item1/t_clamym", model.getValue("/root/init/item1/t_clamym"));
  135. model.setValue("/root/send/item1/t_clamdg", model.getValue("/root/init/item1/t_clamdg"));
  136. model.setValue("/root/send/item1/t_clamflagcd", model.getValue("/root/init/item1/t_clamflagcd"));
  137. }
  138. // 화면을 초기화한다.
  139. fInitialize();
  140. // 팝업으로 호출되었으면... 등록번호가 있는경우 조회를 바로한다.
  141. if (model.getValue("/root/init/item1/pid") != "") {
  142. addComboItem("cmb_clamdg", model.getValue("/root/init/item1/clamdg"), model.getValue("/root/init/item1/clamdg"), "init");
  143. fGetDocuList();
  144. }
  145. ]]>
  146. </script>
  147. </model>
  148. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  153. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  154. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  155. <script type="javascript">
  156. <![CDATA[
  157. var g_from_cnt = 0;
  158. var g_to_cnt = 0;
  159. var gToday = new Date();
  160. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  161. var gBasemonth = gToday.getDateFormat("MM");
  162. var gBaseday = gToday.getDateFormat("DD");
  163. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  164. var gCurrentym = gBaseyear + gBasemonth;
  165. // -----------------------
  166. // ▶ 화면초기화
  167. // -----------------------
  168. function fInitialize() {
  169. // ---------------------------------------------------------------
  170. // 공통코드를 조회한다.
  171. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  172. // ---------------------------------------------------------------
  173. zbcfGetCodeList(
  174. new Array("P0008" // 보험유형
  175. ,"P0010" // 보조유형
  176. ,"P0291" // 진료분야
  177. ,"P0155" // 청구구분
  178. ),
  179. new Array("/root/init/P0008list"
  180. ,"/root/init/P0010list"
  181. ,"/root/init/P0291list"
  182. ,"/root/init/P0155list"
  183. ) );
  184. // ---------------------------------------------------------------
  185. // 진료과 주치의 초기화
  186. // ---------------------------------------------------------------
  187. submit("TRPID20309", false);
  188. model.makeNode("root/hidden/tmp/orddeptcd");
  189. model.makeNode("root/hidden/tmp/orddrid");
  190. model.makeNode("root/hidden/tmp/orddrid2");
  191. model.removeNodeset("root/init/orddeptcd");
  192. model.removeNodeset("root/init/orddrid");
  193. model.removeNodeset("root/init/orddrid2");
  194. model.makeNode("root/init/orddeptcd");
  195. model.makeNode("root/init/orddrid");
  196. model.makeNode("root/init/orddrid2");
  197. model.copyNode("root/init/orddeptcd", "root/hidden/tmp/orddeptcd");
  198. model.copyNode("root/init/orddrid", "root/hidden/tmp/orddrid");
  199. model.copyNode("root/init/orddrid2", "root/hidden/tmp/orddrid2");
  200. model.removeNodeset("root/hidden/tmp/orddeptcd");
  201. model.removeNodeset("root/hidden/tmp/orddrid");
  202. model.removeNodeset("root/hidden/tmp/orddrid2");
  203. model.refreshpart("/root/send/item1/orddeptcd");
  204. model.refreshpart("/root/send/item1/orddrid");
  205. model.refreshpart("/root/send/item1/orddrid2");
  206. // 청구월 셋팅
  207. if (model.getValue("/root/send/item1/clamym") == "") {
  208. var lv_date = gCurrentym.toDate("YYYYMM" + "01");
  209. lv_date = lv_date.getAddDate(-1, "M")
  210. gCurrentym = lv_date.getDateFormat("YYYYMM")
  211. model.setValue("/root/send/item1/clamym", gCurrentym);
  212. }
  213. model.refresh();
  214. }
  215. // ----------------------------------------------------------------------
  216. // ▶ 명세서관리 대상조회
  217. // ----------------------------------------------------------------------
  218. function fGetDocuList() {
  219. //대상자 조회
  220. if (submit("TRPID20601")) {
  221. // 조회건수가 1건이면 자동으로 선택되게 한다.
  222. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  223. if (nodeList.length == 1) {
  224. model.setValue("/root/main/list1/clbs[1]/fromchk", "Y");
  225. grd_clbsmast.refresh();
  226. grd_clbsmast.row = 1;
  227. g_from_cnt = 1;
  228. // 추가청구일경우 최종청구차수 가져온다.
  229. fGetMaxClamdg();
  230. }
  231. }
  232. }
  233. // ----------------------------------------------------------------------
  234. // ▶ 명세서관리 자료생성
  235. // ----------------------------------------------------------------------
  236. function fSetDocuMake() {
  237. // 자료생성전 체크
  238. var rslt = fValidcheck();
  239. if (rslt != false) {
  240. model.resetInstanceNode("root/send/list1/clbs");
  241. var makeflag = model.getValue("root/send/item1/makeflag");
  242. var fromchk="";
  243. var iCnt=0;
  244. for (var i = 1; i < grd_clbsmast.rows; i++) {
  245. fromchk = model.getValue("/root/main/list1/clbs[" + i + "]/fromchk");
  246. if (fromchk == "Y") {
  247. iCnt++;
  248. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/makeflag", model.getValue("/root/send/item1/makeflag"));
  249. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/ioflag", model.getValue("/root/send/item1/ioflag"));
  250. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamym", model.getValue("/root/main/list1/clbs[" + i + "]/clamym"));
  251. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamdg", model.getValue("/root/main/list1/clbs[" + i + "]/clamdg"));
  252. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/pid", model.getValue("/root/main/list1/clbs[" + i + "]/pid"));
  253. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/pidsn", model.getValue("/root/main/list1/clbs[" + i + "]/pidsn"));
  254. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/workflag", model.getValue("/root/main/list1/clbs[" + i + "]/workflag"));
  255. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamkey", model.getValue("/root/main/list1/clbs[" + i + "]/clamkey"));
  256. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamym", model.getValue("/root/send/item1/t_clamym"));
  257. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamdg", model.getValue("/root/send/item1/t_clamdg"));
  258. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamflagcd", model.getValue("/root/send/item1/t_clamflagcd"));
  259. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/acptno", model.getValue("/root/main/list1/clbs[" + i + "]/acptno"));
  260. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/acptdd", model.getValue("/root/main/list1/clbs[" + i + "]/acptdd"));
  261. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/docuseqno", model.getValue("/root/main/list1/clbs[" + i + "]/docuseqno"));
  262. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/adjtresncd", model.getValue("/root/main/list1/clbs[" + i + "]/adjtresncd"));
  263. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/ms010", model.getValue("/root/send/item1/ms010"));
  264. }
  265. }
  266. // 자료생성...
  267. if (submit("TXPID20601")) {
  268. // 2:복사, 3:이동, 4:추가청구이면 변경된 명세서를 조회한다.
  269. if (makeflag == "2" || makeflag =="3" || makeflag == "4") {
  270. model.setValue("/root/send/item1/clamym", model.getValue("/root/send/item1/t_clamym"));
  271. model.setValue("/root/send/item1/clamdg", model.getValue("/root/send/item1/t_clamdg"));
  272. var clamym = model.getValue("/root/send/item1/clamym");
  273. var t_clamym = model.getValue("/root/send/item1/t_clamym");
  274. model.setValue("/root/send/item1/clamdg", model.getValue("/root/send/item1/t_clamdg"));
  275. var clamdg = model.getValue("/root/send/item1/t_clamdg");
  276. if (clamym == t_clamym) {
  277. addComboItem("cmb_clamdg", clamdg, clamdg, "above");
  278. } else {
  279. addComboItem("cmb_clamdg", clamdg, clamdg, "init");
  280. }
  281. model.refreshpart("/root/send/item1/clamym");
  282. model.refreshpart("/root/send/item1/clamdg");
  283. }
  284. btn_select.dispatch("DOMActivate"); // 자료생성 후 바로 조회...
  285. }
  286. }
  287. }
  288. // ----------------------------------------------------------------------
  289. // ▶ 자료생성전 체크
  290. // ----------------------------------------------------------------------
  291. function fValidcheck() {
  292. var makeflag = model.getValue("root/send/item1/makeflag");
  293. // 생성할 명세서 선택되었는지 체크
  294. if (g_from_cnt == 0) {
  295. messageBox("자료생성할 명세서가", "I004"); //I004: 없습니다.
  296. return false;
  297. }
  298. var clamym = model.getValue("/root/send/item1/clamym");
  299. var clamdg = model.getValue("/root/send/item1/clamdg");
  300. var t_clamym = model.getValue("/root/send/item1/t_clamym");
  301. var t_clamdg = model.getValue("/root/send/item1/t_clamdg");
  302. if (t_clamym == "") {
  303. messageBox("생성 청구년월이", "I004"); //I004: 없습니다.
  304. return false;
  305. }
  306. else if (t_clamdg == "") {
  307. messageBox("생성 청구차수가", "I004"); //I004: 없습니다.
  308. return false;
  309. }
  310. else {
  311. if ( clamym + clamdg == t_clamym + t_clamdg ) {
  312. messageBox(" 생성 청구년월 또는 청구차수가 변경되지", "E007"); //E007=않았습니다.
  313. model.setFocus("ipt_toclamym");
  314. return false;
  315. }
  316. }
  317. }
  318. // ----------------------------------------------------------------------
  319. // ▶ 환자조회
  320. // ----------------------------------------------------------------------
  321. function fGetSrchPid() {
  322. var ipt_pid = model.getValue("/root/send/item1/pid");
  323. if (ipt_pid.charCodeAt(0) > 255) {
  324. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  325. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  326. } else {
  327. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  328. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  329. }
  330. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  331. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  332. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  333. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  334. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  335. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  336. model.setValue("/root/send/item1/pid", srch_pid);
  337. }
  338. model.refresh();
  339. }
  340. // ----------------------------------
  341. // ▶추가청구시 그리드 전체선택,해제
  342. // ----------------------------------
  343. function fChkAll(chkflag) {
  344. var i=0;
  345. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  346. g_from_cnt = 0;
  347. for ( i = 1; i <= nodeList.length; i++) {
  348. if (chkflag == "Y") {
  349. model.setValue("/root/main/list1/clbs[" + i + "]/fromchk", "Y");
  350. g_from_cnt++;
  351. } else {
  352. model.setValue("/root/main/list1/clbs[" + i + "]/fromchk", "N");
  353. }
  354. }
  355. grd_clbsmast.refresh();
  356. }
  357. // ----------------------------------
  358. // ▶추가청구시 추가청구 max차수 조회
  359. // ----------------------------------
  360. function fGetMaxClamdg(chkcnt) {
  361. model.makeValue("/root/send/item1/clamflag", "2");
  362. if (chkcnt == "1") {
  363. model.setValue("/root/send/item1/ordfildcd", model.getValue("/root/main/list1/clbs[1]/ordfildcd"));
  364. model.makeValue("/root/send/item1/clamtypecd", model.getValue("/root/main/list1/clbs[1]/clamtypecd"));
  365. model.makeValue("/root/send/item1/sumtypecd", model.getValue("/root/main/list1/clbs[1]/sumtypecd"));
  366. }
  367. else {
  368. var row = grd_clbsmast.row;
  369. model.setValue("/root/send/item1/ordfildcd", model.getValue("/root/main/list1/clbs[" + row + "]/ordfildcd"));
  370. model.makeValue("/root/send/item1/clamtypecd", model.getValue("/root/main/list1/clbs[" + row + "]/clamtypecd"));
  371. model.makeValue("/root/send/item1/sumtypecd", model.getValue("/root/main/list1/clbs[" + row + "]/sumtypecd"));
  372. }
  373. if (submit("TRPID20602")) {
  374. model.setValue("/root/send/item1/t_clamdg", model.getValue("/root/hidden/item1/maxclamdg"));
  375. model.refreshpart("/root/send/item1/t_clamdg");
  376. }
  377. }
  378. ]]>
  379. </script>
  380. </xhtml:head>
  381. <xhtml:body pagewidth="1162" pageheight="670" guideline="1,1146;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  382. <group id="grp_tle" style="left:0px; top:0px; width:1146px; height:13px; ">
  383. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">명세서추가청구생성</caption>
  384. </group>
  385. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1146px; height:648px; ">
  386. <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="C^TO^추가&#xA;청구^청구년월^차수^청구구분^등록번호^등록번호^환자명^보험&#xA;유형^보조&#xA;유형^진료개시일^진료분야^진료과^진료의^사업장기호^증번호^피보험자^사고일자^접수번호^보험회사^청구번호^접수번호^접수일자^명세서번호^사유&#xA;코드^clamkey^workflag^clbtworkflag" colsep="^" colwidth="35, 35, 40, 61, 41, 56, 67, 22, 53, 30, 30, 71, 60, 70, 60, 85, 80, 58, 73, 67, 67, 78, 60, 72, 72, 38, 37, 28, 30" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:93px; width:1145px; height:539px; ">
  387. <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
  388. <col checkvalue="Y,N" ref="tochk" type="checkbox" visibility="hidden"/>
  389. <col ref="rclamyn" style="text-align:center; "/>
  390. <col disabled="true" ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  391. <col disabled="true" ref="clamdg" style="text-align:center; "/>
  392. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:left; ">
  393. <choices>
  394. <itemset nodeset="/root/init/P0155list/P0155">
  395. <label ref="cdnm"/>
  396. <value ref="cdid"/>
  397. </itemset>
  398. </choices>
  399. </col>
  400. <col ref="pid" style="text-align:center; "/>
  401. <col ref="pidsn" style="text-align:center; "/>
  402. <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
  403. <col ref="insukind" type="output" style="text-align:center; "/>
  404. <col ref="suppkind" type="output" style="text-align:center; "/>
  405. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  406. <col disabled="true" ref="ordfildcd" type="combo" style="text-align:left; ">
  407. <choices>
  408. <itemset nodeset="/root/init/P0291list/P0291">
  409. <label ref="cdnm"/>
  410. <value ref="cdid"/>
  411. </itemset>
  412. </choices>
  413. </col>
  414. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
  415. <choices>
  416. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  417. <label ref="nm"/>
  418. <value ref="cd"/>
  419. </itemset>
  420. </choices>
  421. </col>
  422. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  423. <choices>
  424. <itemset nodeset="/root/init/orddrid/orddridlist">
  425. <label ref="nm"/>
  426. <value ref="cd"/>
  427. </itemset>
  428. </choices>
  429. </col>
  430. <col ref="insuno" style="text-align:center; "/>
  431. <col ref="certno" style="text-align:center; "/>
  432. <col ref="insdnm" style="left:805px; top:32px; width:42px; height:21px; text-align:center; "/>
  433. <col ref="acddd" style="text-align:center; "/>
  434. <col ref="acdacptno" format="#,###" style="text-align:left; "/>
  435. <col ref="insucmpycd" format="yyyy/mm/dd" style="text-align:left; "/>
  436. <col ref="clamno" style="text-align:left; "/>
  437. <col ref="acptno" style="text-align:left; "/>
  438. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:left; "/>
  439. <col ref="docuseqno" style="text-align:left; "/>
  440. <col ref="adjtresncd" style="text-align:left; "/>
  441. <col ref="clamkey" visibility="hidden"/>
  442. <col ref="workflag" visibility="hidden"/>
  443. <col ref="clbtworkflag" visibility="hidden"/>
  444. <script type="javascript" ev:event="xforms-value-changed">
  445. <![CDATA[
  446. var icol = grd_clbsmast.col;
  447. var irow = grd_clbsmast.row;
  448. var ifromcnt=0;
  449. var fromchkyn;
  450. // 명세서선택 총갯수 셋팅
  451. if (icol == grd_clbsmast.colRef("fromchk")) {
  452. fromchkyn = model.getValue("/root/main/list1/clbs[ " + irow + "]/fromchk");
  453. rclamyn = model.getValue("/root/main/list1/clbs[ " + irow + "]/rclamyn");
  454. if (fromchkyn == "Y") {
  455. if (rclamyn == "Y") {
  456. model.setValue("/root/main/list1/clbs[ " + irow + "]/fromchk", "N");
  457. messageBox("이미 추가청구 생성되어 선택할 수", "I004"); //없습니다 !
  458. g_from_cnt--;
  459. }
  460. else {
  461. g_from_cnt++;
  462. fGetMaxClamdg("2");
  463. }
  464. } else {
  465. g_from_cnt--;
  466. }
  467. }
  468. ]]>
  469. </script>
  470. </datagrid>
  471. <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:74px; width:126px; height:13px; ">대상자조회</caption>
  472. <line id="line1" class="line_1" style="x1:0px; y1:89px; x2:1145px; y2:89px; "/>
  473. <group id="group1" style="left:0px; top:4px; width:906px; height:58px; vertical-align:top; ">
  474. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:905px; height:58px; "/>
  475. <caption id="caption30" class="search_name" style="left:10px; top:7px; width:85px; height:17px; ">청구년월</caption>
  476. <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:91px; top:6px; width:69px; height:19px; text-align:center; ">
  477. <script type="javascript" ev:event="xforms-value-changed">
  478. <![CDATA[
  479. pidfGetClamdg();
  480. ]]>
  481. </script>
  482. </input>
  483. <!-- 기존 ID : 1214 => P0235 => P0291 -->
  484. <caption id="caption32" class="search_name" style="left:10px; top:33px; width:86px; height:17px; ">청구구분</caption>
  485. <select1 id="cmb_docuflagcd" ref="/root/send/item1/clamflagcd" class="combo_search" navindex="9" appearance="minimal" showvalue="true" style="left:90px; top:32px; width:123px; height:19px; ">
  486. <choices>
  487. <itemset nodeset="/root/init/P0155list/P0155">
  488. <label ref="cdnm"/>
  489. <value ref="cdid"/>
  490. </itemset>
  491. </choices>
  492. </select1>
  493. <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
  494. <caption id="caption36" class="search_name" style="left:624px; top:7px; width:82px; height:17px; ">접수번호</caption>
  495. <input id="ipt_acptno" ref="/root/send/item1/acptno" class="input_search" navindex="18" maxlength="8" style="left:704px; top:6px; width:97px; height:19px; "/>
  496. <caption id="caption37" class="search_name" style="left:624px; top:31px; width:73px; height:17px; ">명번호</caption>
  497. <input id="ipt_docuseqno1" ref="/root/send/item1/docuseqno1" class="input_search" navindex="19" maxlength="5" style="left:704px; top:30px; width:39px; height:19px; ">
  498. <hint>
  499. <![CDATA[시작번호]]>
  500. </hint>
  501. <script type="javascript" ev:event="xforms-value-changed">
  502. <![CDATA[
  503. var docuseqno1 = model.getValue("/root/send/item1/docuseqno1");
  504. docuseqno1 = fPaddingData(docuseqno1,"L","0", 5 );
  505. model.setValue("/root/send/item1/docuseqno1", docuseqno1 );
  506. model.setValue("/root/send/item1/docuseqno2", docuseqno1 );
  507. model.refreshpart("/root/send/item1/docuseqno1");
  508. model.refreshpart("/root/send/item1/docuseqno2");
  509. ]]>
  510. </script>
  511. </input>
  512. <input id="ipt_docuseqno2" ref="/root/send/item1/docuseqno2" class="input_search" navindex="20" maxlength="5" style="left:762px; top:30px; width:39px; height:19px; ">
  513. <hint>
  514. <![CDATA[끝번호]]>
  515. </hint>
  516. <script type="javascript" ev:event="xforms-value-changed">
  517. <![CDATA[
  518. var docuseqno2 = model.getValue("/root/send/item1/docuseqno2");
  519. docuseqno2 = fPaddingData(docuseqno2,"L","0", 5 );
  520. model.setValue("/root/send/item1/docuseqno2", docuseqno2 );
  521. model.refreshpart("/root/send/item1/docuseqno2");
  522. ]]>
  523. </script>
  524. </input>
  525. <caption id="caption38" class="search_name" style="left:232px; top:31px; width:84px; height:17px; ">등록번호</caption>
  526. <input id="ipt_patunitsrch" ref="/root/send/item1/pid" class="input_search" navindex="2" inputtype="button" maxlength="10" style="left:312px; top:31px; width:97px; height:19px; ">
  527. <hint>
  528. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  529. </hint>
  530. <script type="javascript" ev:event="onkeypress">
  531. <![CDATA[
  532. if (event.keyCode == "13") { // Enter 입력 시에
  533. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  534. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  535. var srchtext = model.getValue("/root/send/item1/pid");
  536. if (srchtext.charCodeAt(0) > 255) {
  537. fGetSrchPid();
  538. } else {
  539. fGetDocuList();
  540. }
  541. }
  542. }
  543. ]]>
  544. </script>
  545. <script type="javascript" ev:event="onbuttonclick">
  546. <![CDATA[
  547. fGetSrchPid();
  548. ]]>
  549. </script>
  550. <script type="javascript" ev:event="xforms-value-changed">
  551. <![CDATA[
  552. ]]>
  553. </script>
  554. </input>
  555. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:837px; top:17px; width:56px; height:22px; ">
  556. <caption>조회</caption>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. fGetDocuList();
  560. ]]>
  561. </script>
  562. </button>
  563. <caption id="caption45" style="left:747px; top:30px; width:11px; height:16px; ">~</caption>
  564. <select1 id="cmb_clamdg" ref="/root/send/item1/clamdg" appearance="minimal" style="left:163px; top:6px; width:51px; height:19px; ">
  565. <choices>
  566. <itemset nodeset="/root/init/clamdg/clamdglist">
  567. <label ref="clamdgnm"/>
  568. <value ref="clamdgcd"/>
  569. </itemset>
  570. </choices>
  571. </select1>
  572. <caption id="caption1" class="search_name" style="left:232px; top:7px; width:80px; height:17px; ">내원형태</caption>
  573. <select1 id="cmb_ioflag" ref="/root/send/item1/ioflag" class="combo_search" navindex="3" appearance="minimal" style="left:312px; top:7px; width:97px; height:19px; ">
  574. <choices>
  575. <item>
  576. <label>입원</label>
  577. <value>I</value>
  578. </item>
  579. <item>
  580. <label>외래</label>
  581. <value>O</value>
  582. </item>
  583. </choices>
  584. <script type="javascript" ev:event="xforms-value-changed">
  585. <![CDATA[
  586. // 청구년월에 대한 청구차수 조회
  587. pidfGetClamdg();
  588. ]]>
  589. </script>
  590. </select1>
  591. <caption id="caption2" class="search_name" style="left:426px; top:7px; width:82px; height:17px; ">청구번호</caption>
  592. <input id="input1" ref="/root/send/item1/acptno" class="input_search" navindex="18" maxlength="8" style="left:507px; top:7px; width:97px; height:19px; "/>
  593. <caption id="caption3" class="search_name" style="left:426px; top:31px; width:76px; height:17px; ">작업구분</caption>
  594. <line id="line3" class="line_4" style="x1:825px; y1:5px; x2:825px; y2:51px; "/>
  595. <select1 id="cmb_workflag" ref="/root/send/item1/makeflag" class="combo_search" navindex="8" appearance="minimal" style="left:507px; top:31px; width:97px; height:19px; ">
  596. <choices>
  597. <item>
  598. <label>추가청구</label>
  599. <value>4</value>
  600. </item>
  601. <item>
  602. <label>약제상한차액 추가청구</label>
  603. <value>6</value>
  604. </item>
  605. </choices>
  606. </select1>
  607. </group>
  608. <input id="ipt_toclamdg" ref="/root/send/item1/t_clamdg" class="input_essential" navindex="20" visibility="visible" maxlength="4" format="####" style="left:1080px; top:10px; width:63px; height:19px; ">
  609. <script type="javascript" ev:event="xforms-value-changed">
  610. <![CDATA[
  611. var clamdg = model.getValue("/root/send/item1/t_clamdg");
  612. alert(clamdg);
  613. if (clamdg < "2001" || clamdg > "2999") {
  614. messageBox("추가청구 차수범위를 벗어났습니다. 2001~2999 사이의 차수를", "C001"); //C001=입력하십시오 !
  615. fGetMaxClamdg();
  616. }
  617. ]]>
  618. </script>
  619. </input>
  620. <input id="ipt_toclamym" ref="/root/send/item1/t_clamym" class="combo_essential" navindex="1" visibility="visible" inputtype="date" format="yyyy-mm" style="left:1001px; top:10px; width:76px; height:19px; text-align:center; ">
  621. <script type="javascript" ev:event="xforms-value-changed">
  622. <![CDATA[
  623. if (model.getValue("/root/send/item1/pid") == "") {
  624. model.setValue("/root/send/item1/ordfildcd","");
  625. }
  626. fGetMaxClamdg();
  627. ]]>
  628. </script>
  629. </input>
  630. <line id="line2" class="line_1" style="x1:919px; y1:5px; x2:1143px; y2:5px; "/>
  631. <line id="line6" class="line_3" style="x1:919px; y1:57px; x2:1143px; y2:57px; "/>
  632. <caption id="caption4" class="cell_1" style="left:919px; top:9px; width:80px; height:23px; text-align:center; vertical-align:middle; ">생성차수</caption>
  633. <button id="btn_cancel" class="btn4_letter2" style="left:1089px; top:65px; width:56px; height:22px; ">
  634. <caption>종료</caption>
  635. <close ev:event="DOMActivate"/>
  636. </button>
  637. <button id="btn_init" class="btn4_letter3" style="left:1015px; top:64px; width:68px; height:22px; ">
  638. <caption>초기화</caption>
  639. <script type="javascript" ev:event="DOMActivate">
  640. <![CDATA[
  641. model.resetInstanceNode("/root/send/item1");
  642. model.resetInstanceNode("/root/main/list1/clbs");
  643. fInitialize();
  644. ]]>
  645. </script>
  646. </button>
  647. <button id="btn_save" class="btn4_letter2" style="left:953px; top:64px; width:58px; height:22px; ">
  648. <caption>생성</caption>
  649. <script type="javascript" ev:event="DOMActivate">
  650. <![CDATA[
  651. fSetDocuMake();
  652. ]]>
  653. </script>
  654. </button>
  655. <select id="chk_MS010" ref="/root/send/item1/ms010" class="checkbox_search" navindex="22" visibility="visible" overflow="visible" appearance="full" style="left:920px; top:37px; width:210px; height:19px; ">
  656. <choices>
  657. <item>
  658. <label>민원에 의한 추가청구 MS010 생성</label>
  659. <value>Y</value>
  660. </item>
  661. </choices>
  662. </select>
  663. </group>
  664. </xhtml:body>
  665. </xhtml:html>