SMPID22700_명세서자격수정.xrw 34 KB

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