SMPID22500_명세서이동.xrw 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID22500_명세서이동.xrw
  4. * 수정이력
  5. * - 2008.08.29 / 최초작성 / 김상진
  6. *
  7. *
  8. * [ 1. 조회조건 ] : 접수번호 없는것, 잠금설정이 'N'인것 조회
  9. * [ 2. 생성조건 ] : 청구번호,접수번호,명세서번호등 초기화
  10. * 심사상태='미심', 심사일자='-', 청구상태='샘생성전' 초기화
  11. -->
  12. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  13. <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">
  14. <xhtml:head>
  15. <xhtml:title>명세서이동</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <list1>
  21. <clbs/>
  22. </list1>
  23. </main>
  24. <send>
  25. <item1>
  26. <ioflag>I</ioflag>
  27. <clamym/>
  28. <clamdg/>
  29. <ordfildcd/>
  30. <clamflagcd/>
  31. <judgendyn/>
  32. <insukind/>
  33. <suppkind/>
  34. <clamdeptcd/>
  35. <clamno/>
  36. <acptno/>
  37. <docuseqno1/>
  38. <docuseqno2/>
  39. <pid/>
  40. <pidsn/>
  41. <makeflag>3</makeflag>
  42. <orddrid/>
  43. <orddeptcd/>
  44. <copyflag/>
  45. <t_clamym/>
  46. <t_clamdg/>
  47. <t_clamflagcd/>
  48. <judgrid/>
  49. <gubun/>
  50. <clamdgchk/>
  51. <mpsnochk/>
  52. </item1>
  53. <list1>
  54. <clbs>
  55. </clbs>
  56. </list1>
  57. </send>
  58. <init>
  59. <item1>
  60. <makeflag/>
  61. <copyflag/>
  62. <ioflag/>
  63. <clamym/>
  64. <clamdg/>
  65. <pid/>
  66. <pidsn/>
  67. <t_clamym/>
  68. <t_clamdg/>
  69. <t_clamflagcd/>
  70. </item1>
  71. <!-- 보험유형 -->
  72. <P0008list>
  73. <P0008>
  74. <cdnm/>
  75. <cdid/>
  76. </P0008>
  77. </P0008list>
  78. <!-- 보조유형 -->
  79. <P0010list>
  80. <P0010>
  81. <cdnm/>
  82. <cdid/>
  83. </P0010>
  84. </P0010list>
  85. <!-- 진료분야 -->
  86. <P0291list>
  87. <P0291>
  88. <cdnm/>
  89. <cdid/>
  90. </P0291>
  91. </P0291list>
  92. <!-- 청구구분 -->
  93. <P0155list>
  94. <P0155>
  95. <cdnm/>
  96. <cdid/>
  97. </P0155>
  98. </P0155list>
  99. <!-- 심사상태 -->
  100. <P0151list>
  101. <P0151>
  102. <cdnm/>
  103. <cdid/>
  104. </P0151>
  105. </P0151list>
  106. <!-- 청구상태 -->
  107. <P0430list>
  108. <P0430>
  109. <cdnm/>
  110. <cdid/>
  111. </P0430>
  112. </P0430list>
  113. </init>
  114. <hidden>
  115. <sppmc02500>
  116. <cond>
  117. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  118. <srchcond/>
  119. <pid/>
  120. <hngnm/>
  121. <rrgstno1/>
  122. <rrgstno2/>
  123. </cond>
  124. </sppmc02500>
  125. <item1>
  126. <maxclamdg/>
  127. </item1>
  128. </hidden>
  129. </root>
  130. </instance>
  131. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  132. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  133. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/tmp"/>
  134. <submission id="TRPID20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
  135. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/clamdg"/>
  136. <submission id="TXPID20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1/clbs" resultref="/root/hidden"/>
  137. <submission id="TRPID20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
  138. <script type="javascript" ev:event="xforms-ready">
  139. <![CDATA[
  140. // 화면을 초기화한다.
  141. fInitialize();
  142. // 파업으로 호출되었으면... 등록번호가 있는경우 조회를 바로한다.
  143. if (model.getValue("/root/init/item1/pid") != "") {
  144. model.setValue("/root/send/item1/makeflag", model.getValue("/root/init/item1/makeflag"));
  145. model.setValue("/root/send/item1/copyflag", model.getValue("/root/init/item1/copyflag"));
  146. model.setValue("/root/send/item1/ioflag", model.getValue("/root/init/item1/ioflag"));
  147. model.setValue("/root/send/item1/clamym", model.getValue("/root/init/item1/clamym"));
  148. model.setValue("/root/send/item1/clamdg", model.getValue("/root/init/item1/clamdg"));
  149. model.setValue("/root/send/item1/pid", model.getValue("/root/init/item1/pid"));
  150. model.setValue("/root/send/item1/pidsn", model.getValue("/root/init/item1/pidsn"));
  151. model.setValue("/root/send/item1/t_clamym", model.getValue("/root/init/item1/t_clamym"));
  152. model.setValue("/root/send/item1/t_clamdg", model.getValue("/root/init/item1/t_clamdg"));
  153. model.setValue("/root/send/item1/t_clamflagcd", model.getValue("/root/init/item1/t_clamflagcd"));
  154. addComboItem("cmb_clamdg", model.getValue("/root/init/item1/clamdg"), model.getValue("/root/init/item1/clamdg"), "init");
  155. fGetDocuList();
  156. } else {
  157. model.setValue("/root/send/item1/t_clamym", model.getValue("/root/send/item1/clamym"));
  158. model.setValue("/root/send/item1/t_clamdg", model.getValue("/root/send/item1/clamdg"));
  159. model.refresh();
  160. }
  161. ]]>
  162. </script>
  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 gToday = new Date();
  174. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  175. var gBasemonth = gToday.getDateFormat("MM");
  176. var gBaseday = gToday.getDateFormat("DD");
  177. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  178. var gCurrentym = gBaseyear + gBasemonth;
  179. // -----------------------
  180. // ▶ 화면초기화
  181. // -----------------------
  182. function fInitialize() {
  183. // ---------------------------------------------------------------
  184. // 공통코드를 조회한다.
  185. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  186. // ---------------------------------------------------------------
  187. zbcfGetCodeList(
  188. new Array("P0008" // 보험유형
  189. ,"P0010" // 보조유형
  190. ,"P0291" // 진료분야
  191. ,"P0155" // 청구구분
  192. ,"P0151" // 심사상태
  193. ,"P0430" // 청구상태
  194. ),
  195. new Array("/root/init/P0008list"
  196. ,"/root/init/P0010list"
  197. ,"/root/init/P0291list"
  198. ,"/root/init/P0155list"
  199. ,"/root/init/P0151list"
  200. ,"/root/init/P0430list"
  201. ) );
  202. // 청구월 셋팅
  203. if (model.getValue("/root/send/item1/clamym") == "") {
  204. var lv_date = gCurrentym.toDate("YYYYMM" + "01");
  205. lv_date = lv_date.getAddDate(-1, "M")
  206. gCurrentym = lv_date.getDateFormat("YYYYMM")
  207. model.setValue("/root/send/item1/clamym", gCurrentym);
  208. }
  209. if (model.getValue("/root/send/item1/pid") != "") {
  210. model.setValue("/root/send/item1/clamym", "");
  211. }
  212. // ---------------------------------------------------------------
  213. // 청구과, 심사자, 진료과, 주치의, 청구차수, 삼시자선택 초기화
  214. // ---------------------------------------------------------------
  215. submit("TRPID20201",false);
  216. model.removeNodeset("root/init/judgrid");
  217. model.removeNodeset("root/init/suppkind");
  218. model.removeNodeset("root/init/orddrid");
  219. model.removeNodeset("root/init/clamdept");
  220. model.removeNodeset("root/init/orddeptcd");
  221. model.removeNodeset("root/init/item3");
  222. model.removeNodeset("root/init/clamdg");
  223. model.makeNode("root/init/judgrid");
  224. model.makeNode("root/init/suppkind");
  225. model.makeNode("root/init/orddrid");
  226. model.makeNode("root/init/orddrid2");
  227. model.makeNode("root/init/clamdept");
  228. model.makeNode("root/init/orddeptcd");
  229. model.makeNode("root/init/item3");
  230. model.makeNode("root/init/clamdg");
  231. model.copyNode("root/init/judgrid", "root/init/tmp/judgrid");
  232. model.copyNode("root/init/suppkind", "root/init/tmp/suppkind");
  233. model.copyNode("root/init/orddrid", "root/init/tmp/orddrid");
  234. model.copyNode("root/init/orddrid", "root/init/tmp/orddrid2");
  235. model.copyNode("root/init/clamdept", "root/init/tmp/clamdept");
  236. model.copyNode("root/init/orddeptcd", "root/init/tmp/orddeptcd");
  237. model.copyNode("root/init/item3", "root/init/tmp/item3");
  238. model.copyNode("root/init/clamdg", "root/init/tmp/clamdg");
  239. model.removeNodeset("root/init/tmp/judgrid");
  240. model.removeNodeset("root/init/tmp/suppkind");
  241. model.removeNodeset("root/init/tmp/orddrid");
  242. model.removeNodeset("root/init/tmp/orddrid2");
  243. model.removeNodeset("root/init/tmp/clamdept");
  244. model.removeNodeset("root/init/tmp/orddeptcd");
  245. model.removeNodeset("root/init/tmp/item3");
  246. model.removeNodeset("root/init/tmp/clamdg");
  247. model.refresh();
  248. cmb_clamdg.select(0);
  249. }
  250. // ----------------------------------------------------------------------
  251. // ▶ 명세서관리 대상조회
  252. // ----------------------------------------------------------------------
  253. function fGetDocuList() {
  254. var chk = true;
  255. var ordfildcd = model.getValue("/root/send/item1/ordfildcd");
  256. var clamdeptcd = model.getValue("/root/send/item1/clamdeptcd");
  257. var orddeptcd = model.getValue("/root/send/item1/orddeptcd");
  258. var orddrid = model.getValue("/root/send/item1/orddrid");
  259. var judgrid = model.getValue("/root/send/item1/judgrid");
  260. var clamno = model.getValue("/root/send/item1/clamno");
  261. var acptno = model.getValue("/root/send/item1/acptno");
  262. var docuseqno1 = model.getValue("/root/send/item1/docuseqno1");
  263. var docuseqno2 = model.getValue("/root/send/item1/docuseqno2");
  264. if (model.getValue("/root/send/item1/pid") == "") {
  265. if (ordfildcd == "" && clamdeptcd == "" && orddeptcd == "" && orddrid == "" && judgrid == "" ) {
  266. messageBox("진료분야, 청구과, 진료과, 진료의, 심사자중 하나이상은", "I003"); //I003=필수입력입니다.
  267. chk = false;
  268. }
  269. }
  270. if (chk == true) {
  271. //대상자 조회
  272. if (submit("TRPID20601")) {
  273. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  274. if (nodeList.length == 1) {
  275. model.setValue("/root/main/list1/clbs[1]/fromchk", "Y");
  276. model.setValue("/root/send/item1/t_clamflagcd", model.getValue("/root/main/list1/clbs[1]/clamflagcd"));
  277. cmb_toclamflagcd.refresh();
  278. grd_clbsmast.row = 1;
  279. }
  280. for (i=grd_clbsmast.fixedRows; i < grd_clbsmast.rows; i++ ) {
  281. if (grd_clbsmast.valueMatrix(i,grd_clbsmast.colRef("clamsameyn")) == "Y" ){
  282. } else {
  283. grd_clbsmast.valueMatrix(i,grd_clbsmast.colRef("clamdgchk")) = "";
  284. }
  285. if (grd_clbsmast.valueMatrix(i,grd_clbsmast.colRef("mpsnosameyn")) == "Y" ) {
  286. } else {
  287. grd_clbsmast.valueMatrix(i,grd_clbsmast.colRef("mpsnochk")) = "";
  288. }
  289. }
  290. grd_clbsmast.refresh();
  291. }
  292. }
  293. }
  294. // ----------------------------------------------------------------------
  295. // ▶ 명세서관리 자료생성
  296. // ----------------------------------------------------------------------
  297. function fSetDocuMake() {
  298. // 자료생성전 체크
  299. var rslt = fValidcheck();
  300. if (rslt != false) {
  301. model.resetInstanceNode("root/send/list1/clbs");
  302. var makeflag = model.getValue("root/send/item1/makeflag");
  303. var fromchk="";
  304. var iCnt=0;
  305. for (var i = 1; i < grd_clbsmast.rows; i++) {
  306. fromchk = model.getValue("/root/main/list1/clbs[" + i + "]/fromchk");
  307. if (fromchk == "Y") {
  308. iCnt++;
  309. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/makeflag", model.getValue("/root/send/item1/makeflag"));
  310. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/copyflag", model.getValue("/root/send/item1/copyflag"));
  311. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamym", model.getValue("/root/main/list1/clbs[" + i + "]/clamym"));
  312. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamdg", model.getValue("/root/main/list1/clbs[" + i + "]/clamdg"));
  313. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/pid", model.getValue("/root/main/list1/clbs[" + i + "]/pid"));
  314. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/pidsn", model.getValue("/root/main/list1/clbs[" + i + "]/pidsn"));
  315. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/workflag", model.getValue("/root/main/list1/clbs[" + i + "]/workflag"));
  316. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamkey", model.getValue("/root/main/list1/clbs[" + i + "]/clamkey"));
  317. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamym", model.getValue("/root/send/item1/t_clamym"));
  318. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamdg", model.getValue("/root/send/item1/t_clamdg"));
  319. // 1. 누락청구이동인 경우
  320. if (model.getValue("/root/send/item1/gubun") == "Y") {
  321. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamflagcd", "4"); // 4:누락청구
  322. } else {
  323. var t_clamdg = model.getValue("/root/send/item1/t_clamdg");
  324. var clamflagcd = model.getValue("/root/main/list1/clbs[" + i + "]/clamflagcd");
  325. // 2. 누락청구에서 원청구로 이동하는 경우
  326. if (t_clamdg > "0" && t_clamdg < "999" && clamflagcd == "4") {
  327. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamflagcd", "0");
  328. }
  329. // 3. 청구구분 변경없이 이동하는 경우
  330. else {
  331. model.makeValue("/root/send/list1/clbs[" + iCnt + "]/t_clamflagcd", model.getValue("/root/main/list1/clbs[" + i + "]/clamflagcd"));
  332. }
  333. }
  334. }
  335. }
  336. if (iCnt > 0) {
  337. // 자료생성...
  338. if (submit("TXPID20601")) {
  339. // 변경된 명세서를 조회한다.
  340. model.setValue("/root/send/item1/clamym", model.getValue("/root/send/item1/t_clamym"));
  341. model.setValue("/root/send/item1/clamdg", model.getValue("/root/send/item1/t_clamdg"));
  342. var clamym = model.getValue("/root/send/item1/clamym");
  343. var t_clamym = model.getValue("/root/send/item1/t_clamym");
  344. model.setValue("/root/send/item1/clamdg", model.getValue("/root/send/item1/t_clamdg"));
  345. var clamdg = model.getValue("/root/send/item1/t_clamdg");
  346. if (clamym == t_clamym) {
  347. addComboItem("cmb_clamdg", clamdg, clamdg, "above");
  348. } else {
  349. addComboItem("cmb_clamdg", clamdg, clamdg, "init");
  350. }
  351. model.refreshpart("/root/send/item1/clamym");
  352. model.refreshpart("/root/send/item1/clamdg");
  353. btn_select.dispatch("DOMActivate"); // 자료생성 후 바로 조회...
  354. }
  355. } else {
  356. messageBox("이동할 명세서가", "I004"); // I004=없습니다.
  357. }
  358. }
  359. }
  360. // ----------------------------------------------------------------------
  361. // ▶ 자료생성전 체크
  362. // ----------------------------------------------------------------------
  363. function fValidcheck() {
  364. var clamym = model.getValue("/root/send/item1/clamym");
  365. var clamdg = model.getValue("/root/send/item1/clamdg");
  366. var t_clamym = model.getValue("/root/send/item1/t_clamym");
  367. var t_clamdg = model.getValue("/root/send/item1/t_clamdg");
  368. if (t_clamym == "") {
  369. messageBox("생성 청구년월이", "I004"); //I004: 없습니다.
  370. return false;
  371. }
  372. else if (t_clamdg == "") {
  373. messageBox("생성 청구차수가", "I004"); //I004: 없습니다.
  374. return false;
  375. }
  376. else {
  377. if ( clamym + clamdg == t_clamym + t_clamdg ) {
  378. messageBox(" 생성 청구년월 또는 청구차수가 변경되지", "E007"); //E007=않았습니다.
  379. model.setFocus("ipt_toclamym");
  380. return false;
  381. }
  382. }
  383. }
  384. // ----------------------------------------------------------------------
  385. // ▶ 환자조회
  386. // ----------------------------------------------------------------------
  387. function fGetSrchPid() {
  388. var ipt_pid = model.getValue("/root/send/item1/pid");
  389. if (ipt_pid.charCodeAt(0) > 255) {
  390. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  391. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  392. } else {
  393. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  394. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  395. }
  396. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  397. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  398. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  399. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  400. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  401. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  402. model.setValue("/root/send/item1/pid", srch_pid);
  403. }
  404. model.refresh();
  405. }
  406. // ----------------------------------
  407. // ▶최종청구차수 조회
  408. // ----------------------------------
  409. function fGetMaxClamdg() {
  410. var row = grd_clbsmast.row;
  411. model.makeValue("/root/send/item1/clamflag", model.getValue("/root/send/item1/t_clamflagcd"));
  412. model.setValue("/root/send/item1/ordfildcd", model.getValue("/root/main/list1/clbs[" + row + "]/ordfildcd"));
  413. model.makeValue("/root/send/item1/clamtypecd", model.getValue("/root/main/list1/clbs[" + row + "]/clamtypecd"));
  414. model.makeValue("/root/send/item1/sumtypecd", model.getValue("/root/main/list1/clbs[" + row + "]/sumtypecd"));
  415. if (submit("TRPID20602")) {
  416. model.setValue("/root/send/item1/t_clamdg", model.getValue("/root/hidden/item1/maxclamdg"));
  417. model.refreshpart("/root/send/item1/t_clamdg");
  418. }
  419. }
  420. ]]>
  421. </script>
  422. </xhtml:head>
  423. <xhtml:body pagewidth="1162" pageheight="750" guideline="1,1158;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  424. <group id="grp_tle" style="left:0px; top:0px; width:1146px; height:13px; ">
  425. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">명세서이동</caption>
  426. </group>
  427. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1146px; height:726px; ">
  428. <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="C^TO^청구년월^차수^청구구분^등록번호^등록번호^환자명^보험&#xA;유형^보조&#xA;유형^입원일자^진료개시일^진료종료일^진료분야^진료과^불일치구분^불일치구분^진료의^심사자^최종&#xA;심사자^심사상태^청구상태^잠금&#xA;설정^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23^caption24^caption25^caption26^caption27^caption28^caption29^caption30^caption31^caption32|C^TO^청구년월^차수^청구구분^등록번호^등록번호^환자명^보험&#xA;유형^보조&#xA;유형^입원일자^진료개시일^진료종료일^진료분야^진료과^진료개시일^교부번호^진료의^심사자^최종&#xA;심사자^심사상태^청구상태^잠금&#xA;설정^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption18^caption19^caption20^caption21^caption22^caption23^caption24^caption25^caption26^caption27^caption28^caption29^caption30^caption31^caption32" colsep="^" colwidth="35, 35, 61, 41, 56, 67, 22, 53, 30, 30, 68, 68, 67, 60, 70, 60, 60, 60, 61, 72, 30, 68, 62, 27, 26, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="never" mergecellsfixedrows="byrowrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:111px; width:1145px; height:613px; ">
  429. <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
  430. <col checkvalue="Y,N" ref="tochk" type="checkbox" visibility="hidden"/>
  431. <col disabled="true" ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  432. <col disabled="true" ref="clamdg" style="text-align:center; "/>
  433. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:left; ">
  434. <choices>
  435. <itemset nodeset="/root/init/P0155list/P0155">
  436. <label ref="cdnm"/>
  437. <value ref="cdid"/>
  438. </itemset>
  439. </choices>
  440. </col>
  441. <col ref="pid" style="text-align:center; "/>
  442. <col ref="pidsn" style="text-align:center; "/>
  443. <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
  444. <col ref="insukind" type="output" style="text-align:center; "/>
  445. <col ref="suppkind" type="output" style="text-align:center; "/>
  446. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  447. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  448. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  449. <col disabled="true" ref="ordfildcd" type="combo" style="text-align:center; ">
  450. <choices>
  451. <itemset nodeset="/root/init/P0291list/P0291">
  452. <label ref="cdnm"/>
  453. <value ref="cdid"/>
  454. </itemset>
  455. </choices>
  456. </col>
  457. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
  458. <choices>
  459. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  460. <label ref="nm"/>
  461. <value ref="cd"/>
  462. </itemset>
  463. </choices>
  464. </col>
  465. <col disabled="true" ref="clamdgchk" type="combo">
  466. <choices>
  467. <itemset nodeset="/root/init/P0155list/P0155">
  468. <label ref="cdnm"/>
  469. <value ref="cdid"/>
  470. </itemset>
  471. </choices>
  472. </col>
  473. <col disabled="true" ref="mpsnochk" type="combo">
  474. <choices>
  475. <itemset nodeset="/root/init/P0155list/P0155">
  476. <label ref="cdnm"/>
  477. <value ref="cdid"/>
  478. </itemset>
  479. </choices>
  480. </col>
  481. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  482. <choices>
  483. <itemset nodeset="/root/init/orddrid/orddridlist">
  484. <label ref="nm"/>
  485. <value ref="cd"/>
  486. </itemset>
  487. </choices>
  488. </col>
  489. <col disabled="true" ref="judgrid" type="combo" style="text-align:center; ">
  490. <choices>
  491. <itemset nodeset="/root/init/judgrid/judgridlist">
  492. <label ref="nm"/>
  493. <value ref="cd"/>
  494. </itemset>
  495. </choices>
  496. </col>
  497. <col disabled="true" ref="lastupdtrid" type="combo" style="text-align:center; ">
  498. <choices>
  499. <itemset nodeset="/root/init/judgrid/judgridlist">
  500. <label ref="nm"/>
  501. <value ref="cd"/>
  502. </itemset>
  503. </choices>
  504. </col>
  505. <col disabled="true" ref="judgendyn" type="combo" style="text-align:center; ">
  506. <choices>
  507. <itemset nodeset="/root/init/P0151list/P0151">
  508. <label ref="cdnm"/>
  509. <value ref="cdid"/>
  510. </itemset>
  511. </choices>
  512. </col>
  513. <col disabled="true" ref="clamendyn" type="combo" style="text-align:center; ">
  514. <choices>
  515. <itemset nodeset="/root/init/P0430list/P0430">
  516. <label ref="cdnm"/>
  517. <value ref="cdid"/>
  518. </itemset>
  519. </choices>
  520. </col>
  521. <col ref="lockyn" style="text-align:center; "/>
  522. <col ref="clamsameyn" visibility="hidden"/>
  523. <col ref="mpsnosameyn" visibility="hidden"/>
  524. <col ref="insdnm" visibility="hidden"/>
  525. <col ref="acddd" visibility="hidden"/>
  526. <col ref="acdacptno" visibility="hidden"/>
  527. <col ref="insucd" visibility="hidden"/>
  528. <col ref="clamno" visibility="hidden"/>
  529. <col ref="acptno" visibility="hidden"/>
  530. <col ref="acptdd" visibility="hidden"/>
  531. <col ref="docuseqno" visibility="hidden"/>
  532. <col ref="adjtresncd" visibility="hidden"/>
  533. <col ref="clamkey" visibility="hidden"/>
  534. <col ref="workflag" visibility="hidden"/>
  535. <col ref="clbtworkflag" visibility="hidden"/>
  536. <col ref="rclamy" visibility="hidden"/>
  537. <col ref="clamtypecd" visibility="hidden"/>
  538. <col ref="sumtypecd" visibility="hidden"/>
  539. <col ref="ownbflag" visibility="hidden"/>
  540. <col ref="rsvordgubn" visibility="hidden"/>
  541. <col ref="clamdgchk" visibility="hidden"/>
  542. <col ref="clamsameyn" visibility="hidden"/>
  543. <col ref="mpsnochk" visibility="hidden"/>
  544. <col ref="mpsnosameyn" visibility="hidden"/>
  545. <col ref="insucmno" visibility="hidden"/>
  546. <col ref="offcharm" visibility="hidden"/>
  547. <col ref="rareobstflag" visibility="hidden"/>
  548. <col ref="certno" visibility="hidden"/>
  549. <col ref="insuno" visibility="hidden"/>
  550. <col ref="gender" visibility="hidden"/>
  551. <col ref="patage" visibility="hidden"/>
  552. <col ref="t_insukind" visibility="hidden"/>
  553. <col ref="t_suppkind" visibility="hidden"/>
  554. <script type="javascript" ev:event="ondblclick">
  555. <![CDATA[
  556. var icol = grd_clbsmast.col;
  557. var irow = grd_clbsmast.row;
  558. if (icol == grd_clbsmast.colRef("fromchk") && irow == 0) {
  559. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  560. var i = 1;
  561. for ( i = 1; i <= nodeList.length; i++) {
  562. if (model.getValue("/root/main/list1/clbs[" + i + "]/lockyn") == "N") {
  563. if (model.getValue("/root/main/list1/clbs[" + i + "]/fromchk") == "Y") {
  564. model.setValue("/root/main/list1/clbs[" + i + "]/fromchk", "N");
  565. } else {
  566. model.setValue("/root/main/list1/clbs[" + i + "]/fromchk", "Y");
  567. model.setValue("/root/send/item1/t_clamflagcd", model.getValue("/root/main/list1/clbs[" + i + "]/clamflagcd"));
  568. cmb_toclamflagcd.refresh();
  569. }
  570. }
  571. }
  572. }
  573. ]]>
  574. </script>
  575. <script type="javascript" ev:event="onaftersort">
  576. <![CDATA[
  577. grd_clbsmast.gridToInstance();
  578. ]]>
  579. </script>
  580. </datagrid>
  581. <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:92px; width:126px; height:13px; ">대상자조회</caption>
  582. <line id="line1" class="line_1" style="x1:0px; y1:107px; x2:1145px; y2:107px; "/>
  583. <group id="group1" style="left:0px; top:4px; width:906px; height:81px; vertical-align:top; ">
  584. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:905px; height:81px; "/>
  585. <caption id="caption30" class="search_name" style="left:10px; top:7px; width:85px; height:17px; ">청구년월</caption>
  586. <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:91px; top:7px; width:69px; height:19px; text-align:center; ">
  587. <script type="javascript" ev:event="xforms-value-changed">
  588. <![CDATA[
  589. pidfGetClamdg();
  590. ]]>
  591. </script>
  592. </input>
  593. <!-- 기존 ID : 1214 => P0235 => P0291 -->
  594. <caption id="caption32" class="search_name" style="left:10px; top:32px; width:86px; height:17px; ">청구구분</caption>
  595. <select1 id="cmb_docuflagcd" ref="/root/send/item1/clamflagcd" class="combo_search" navindex="9" appearance="minimal" showvalue="true" style="left:90px; top:31px; width:123px; height:19px; ">
  596. <choices>
  597. <itemset nodeset="/root/init/P0155list/P0155">
  598. <label ref="cdnm"/>
  599. <value ref="cdid"/>
  600. </itemset>
  601. </choices>
  602. </select1>
  603. <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
  604. <caption id="caption37" class="search_name" style="left:631px; top:32px; width:73px; height:17px; ">명번호</caption>
  605. <input id="ipt_docuseqno1" ref="/root/send/item1/docuseqno1" class="input_search" navindex="19" maxlength="5" style="left:711px; top:31px; width:39px; height:19px; ">
  606. <hint>
  607. <![CDATA[시작번호]]>
  608. </hint>
  609. <script type="javascript" ev:event="xforms-value-changed">
  610. <![CDATA[
  611. var docuseqno1 = model.getValue("/root/send/item1/docuseqno1");
  612. docuseqno1 = fPaddingData(docuseqno1,"L","0", 5 );
  613. model.setValue("/root/send/item1/docuseqno1", docuseqno1 );
  614. model.setValue("/root/send/item1/docuseqno2", docuseqno1 );
  615. model.refreshpart("/root/send/item1/docuseqno1");
  616. model.refreshpart("/root/send/item1/docuseqno2");
  617. ]]>
  618. </script>
  619. </input>
  620. <input id="ipt_docuseqno2" ref="/root/send/item1/docuseqno2" class="input_search" navindex="20" maxlength="5" style="left:769px; top:31px; width:39px; height:19px; ">
  621. <hint>
  622. <![CDATA[끝번호]]>
  623. </hint>
  624. <script type="javascript" ev:event="xforms-value-changed">
  625. <![CDATA[
  626. var docuseqno2 = model.getValue("/root/send/item1/docuseqno2");
  627. docuseqno2 = fPaddingData(docuseqno2,"L","0", 5 );
  628. model.setValue("/root/send/item1/docuseqno2", docuseqno2 );
  629. model.refreshpart("/root/send/item1/docuseqno2");
  630. ]]>
  631. </script>
  632. </input>
  633. <caption id="caption38" class="search_name" style="left:228px; top:56px; width:84px; height:17px; ">등록번호</caption>
  634. <input id="ipt_patunitsrch" ref="/root/send/item1/pid" class="input_search" navindex="2" inputtype="button" maxlength="10" style="left:310px; top:55px; width:113px; height:19px; ">
  635. <hint>
  636. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  637. </hint>
  638. <script type="javascript" ev:event="onkeypress">
  639. <![CDATA[
  640. if (event.keyCode == "13") { // Enter 입력 시에
  641. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  642. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  643. var srchtext = model.getValue("/root/send/item1/pid");
  644. if (srchtext.charCodeAt(0) > 255) {
  645. fGetSrchPid();
  646. } else {
  647. fGetDocuList();
  648. }
  649. }
  650. }
  651. ]]>
  652. </script>
  653. <script type="javascript" ev:event="onbuttonclick">
  654. <![CDATA[
  655. fGetSrchPid();
  656. ]]>
  657. </script>
  658. <script type="javascript" ev:event="xforms-value-changed">
  659. <![CDATA[
  660. if (model.getValue("/root/send/item1/pid") == "") {
  661. // 청구년월에 대한 청구차수 조회
  662. pidfGetClamdg();
  663. }
  664. ]]>
  665. </script>
  666. </input>
  667. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:837px; top:29px; width:56px; height:22px; ">
  668. <caption>조회</caption>
  669. <script type="javascript" ev:event="DOMActivate">
  670. <![CDATA[
  671. fGetDocuList();
  672. ]]>
  673. </script>
  674. </button>
  675. <caption id="caption45" style="left:754px; top:33px; width:11px; height:16px; ">~</caption>
  676. <select1 id="cmb_clamdg" ref="/root/send/item1/clamdg" appearance="minimal" style="left:163px; top:7px; width:51px; height:19px; ">
  677. <choices>
  678. <itemset nodeset="/root/init/clamdg/clamdglist">
  679. <label ref="clamdgnm"/>
  680. <value ref="clamdgcd"/>
  681. </itemset>
  682. </choices>
  683. </select1>
  684. <caption id="caption1" class="search_name" style="left:10px; top:56px; width:80px; height:17px; ">내원형태</caption>
  685. <select1 id="cmb_ioflag" ref="/root/send/item1/ioflag" class="combo_search" navindex="3" appearance="minimal" style="left:90px; top:55px; width:123px; height:19px; ">
  686. <choices>
  687. <item>
  688. <label>입원</label>
  689. <value>I</value>
  690. </item>
  691. <item>
  692. <label>외래</label>
  693. <value>O</value>
  694. </item>
  695. </choices>
  696. <script type="javascript" ev:event="xforms-value-changed">
  697. <![CDATA[
  698. // 청구년월에 대한 청구차수 조회
  699. pidfGetClamdg();
  700. ]]>
  701. </script>
  702. </select1>
  703. <caption id="caption2" class="search_name" style="left:631px; top:7px; width:82px; height:17px; ">청구번호</caption>
  704. <input id="input1" ref="/root/send/item1/clamno" class="input_search" navindex="18" maxlength="8" style="left:712px; top:7px; width:97px; height:19px; "/>
  705. <line id="line3" class="line_4" style="x1:825px; y1:5px; x2:825px; y2:55px; "/>
  706. <select1 id="cmb_ordfildcd" ref="/root/send/item1/ordfildcd" class="combo_search" navindex="13" appearance="minimal" style="left:310px; top:7px; width:113px; height:19px; ">
  707. <choices>
  708. <itemset nodeset="/root/init/P0291list/P0291">
  709. <label ref="cdnm"/>
  710. <value ref="cdid"/>
  711. </itemset>
  712. </choices>
  713. <script type="javascript" ev:event="xforms-value-changed">
  714. <![CDATA[
  715. model.setValue("/root/send/item1/clamdeptcd", "");
  716. cmb_clamdeptcd.disabled = false;
  717. cmb_orddrid.disabled = true;
  718. var ordfildcd = model.getValue("/root/send/item1/ordfildcd");
  719. if (ordfildcd) {
  720. cmb_clamdeptcd.choices.itemset.attribute("nodeset") = "/root/init/clamdept/clamdeptlist[cdval='" + ordfildcd + "']";
  721. } else {
  722. cmb_clamdeptcd.choices.itemset.attribute("nodeset") = "/root/init/clamdept/clamdeptlist";
  723. }
  724. cmb_clamdeptcd.refresh();
  725. ]]>
  726. </script>
  727. </select1>
  728. <caption id="caption5" class="search_name" style="left:228px; top:7px; width:86px; height:17px; ">진료분야</caption>
  729. <select1 id="cmb_orddrid" ref="/root/send/item1/orddrid" class="combo_search" disabled="true" navindex="15" appearance="minimal" style="left:503px; top:31px; width:113px; height:19px; ">
  730. <choices>
  731. <itemset nodeset="/root/init/orddrid/orddridlist">
  732. <label ref="nm"/>
  733. <value ref="cd"/>
  734. </itemset>
  735. </choices>
  736. </select1>
  737. <caption id="caption46" class="search_name" style="left:433px; top:7px; width:70px; height:17px; ">진료과</caption>
  738. <select1 id="cmb_orddeptcd" ref="/root/send/item1/orddeptcd" class="combo_search" navindex="14" appearance="minimal" itemcount="20" style="left:503px; top:7px; width:113px; height:19px; ">
  739. <!-- <itemset nodeset="/root/init/P0287list[P0287 or P0288]">-->
  740. <choices>
  741. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  742. <label ref="nm"/>
  743. <value ref="cd"/>
  744. </itemset>
  745. </choices>
  746. <script type="javascript" ev:event="xforms-value-changed">
  747. <![CDATA[
  748. var orddeptcd = model.getValue("/root/send/item1/orddeptcd");
  749. if (orddeptcd) {
  750. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp='" + orddeptcd + "']";
  751. cmb_orddrid.disabled = false;
  752. } else {
  753. cmb_orddrid.disabled = true;
  754. }
  755. model.setValue("/root/send/item1/orddrid", ""); // 주치의 선택을 초기화한다.
  756. model.refresh();
  757. ]]>
  758. </script>
  759. </select1>
  760. <caption id="caption7" class="search_name" style="left:433px; top:32px; width:70px; height:17px; ">진료의</caption>
  761. <select1 id="cmb_clamdeptcd" ref="/root/send/item1/clamdeptcd" class="combo_search" navindex="14" appearance="minimal" style="left:310px; top:31px; width:113px; height:19px; ">
  762. <!-- <itemset nodeset="/root/init/P0287list[P0287 or P0288]">-->
  763. <choices>
  764. <itemset nodeset="/root/init/clamdept/clamdeptlist">
  765. <label ref="cdnm"/>
  766. <value ref="cdid"/>
  767. </itemset>
  768. </choices>
  769. </select1>
  770. <caption id="caption11" class="search_name" style="left:228px; top:32px; width:73px; height:17px; ">청구과</caption>
  771. <select1 id="cmb_judgrid" ref="/root/send/item1/judgrid" class="combo_search" navindex="8" appearance="minimal" style="left:503px; top:55px; width:113px; height:19px; ">
  772. <choices>
  773. <itemset nodeset="/root/init/judgrid/judgridlist">
  774. <label ref="nm"/>
  775. <value ref="cd"/>
  776. </itemset>
  777. </choices>
  778. </select1>
  779. <caption id="caption15" class="search_name" style="left:433px; top:56px; width:70px; height:17px; ">심사자</caption>
  780. <select id="checkbox1" ref="/root/send/item1/clamdgchk" overflow="visible" appearance="full" style="left:635px; top:60px; width:120px; height:20px; border-style:none; ">
  781. <choices>
  782. <item>
  783. <label>진료개시일불일치</label>
  784. <value>Y</value>
  785. </item>
  786. </choices>
  787. </select>
  788. <select id="checkbox2" ref="/root/send/item1/mpsnochk" overflow="visible" appearance="full" style="left:760px; top:60px; width:110px; height:20px; border-style:none; ">
  789. <choices>
  790. <item>
  791. <label>교부번호불일치</label>
  792. <value>Y</value>
  793. </item>
  794. </choices>
  795. </select>
  796. </group>
  797. <input id="ipt_toclamdg" ref="/root/send/item1/t_clamdg" class="input_essential" navindex="20" visibility="visible" maxlength="4" format="####" style="left:1080px; top:24px; width:63px; height:19px; ">
  798. <script type="javascript" ev:event="xforms-value-changed">
  799. <![CDATA[
  800. var t_clamdg = model.getValue("/root/send/item1/t_clamdg");
  801. var t_clamflagcd = model.getValue("/root/send/item1/t_clamflagcd");
  802. if (t_clamdg > "9000" && t_clamdg < "9999") {
  803. model.setValue("/root/send/item1/t_clamflagcd", "4");
  804. model.setValue("/root/send/item1/gubun", "Y");
  805. model.refreshpart("/root/send/item1/gubun");
  806. } else {
  807. model.setValue("/root/send/item1/gubun", "N");
  808. model.refreshpart("/root/send/item1/gubun");
  809. }
  810. ]]>
  811. </script>
  812. </input>
  813. <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:24px; width:76px; height:19px; text-align:center; ">
  814. <script type="javascript" ev:event="xforms-value-changed">
  815. <![CDATA[
  816. if (model.getValue("/root/send/item1/gubun") == "Y") {
  817. model.setValue("/root/send/item1/t_clamflagcd", "4"); // 4:누락청구
  818. // 누락청구는 최종청구차수를 조회한다.
  819. fGetMaxClamdg();
  820. }
  821. ]]>
  822. </script>
  823. </input>
  824. <line id="line2" class="line_1" style="x1:919px; y1:18px; x2:1143px; y2:18px; "/>
  825. <line id="line6" class="line_3" style="x1:919px; y1:46px; x2:1143px; y2:46px; "/>
  826. <caption id="caption4" class="cell_1" style="left:919px; top:22px; width:80px; height:23px; text-align:center; vertical-align:middle; ">이동차수</caption>
  827. <button id="btn_cancel" class="btn4_letter2" style="left:1089px; top:83px; width:56px; height:22px; ">
  828. <caption>종료</caption>
  829. <close ev:event="DOMActivate"/>
  830. </button>
  831. <button id="btn_init" class="btn4_letter3" style="left:1015px; top:82px; width:68px; height:22px; ">
  832. <caption>초기화</caption>
  833. <script type="javascript" ev:event="DOMActivate">
  834. <![CDATA[
  835. model.resetInstanceNode("/root/send/item1");
  836. model.resetInstanceNode("/root/main/list1/clbs");
  837. fInitialize();
  838. ]]>
  839. </script>
  840. </button>
  841. <button id="btn_save" class="btn4_letter2" style="left:953px; top:82px; width:56px; height:22px; ">
  842. <caption>이동</caption>
  843. <script type="javascript" ev:event="DOMActivate">
  844. <![CDATA[
  845. fSetDocuMake();
  846. ]]>
  847. </script>
  848. </button>
  849. <button id="btn_cretdel" class="btn2_letter4" _auth="X" style="left:96px; top:87px; width:64px; height:19px; ">
  850. <caption>전체선택</caption>
  851. <script type="javascript" ev:event="DOMActivate">
  852. <![CDATA[
  853. var nodeList = instance1.selectNodes("/root/main/list1/clbs");
  854. var i = 1;
  855. for ( i = 1; i <= nodeList.length; i++) {
  856. if (model.getValue("/root/main/list1/clbs[" + i + "]/lockyn") == "N") {
  857. if (model.getValue("/root/main/list1/clbs[" + i + "]/fromchk") == "Y") {
  858. model.setValue("/root/main/list1/clbs[" + i + "]/fromchk", "N");
  859. } else {
  860. model.setValue("/root/main/list1/clbs[" + i + "]/fromchk", "Y");
  861. }
  862. }
  863. }
  864. ]]>
  865. </script>
  866. </button>
  867. <select id="chk_clamflagcd" ref="/root/send/item1/gubun" class="checkbox_search" navindex="22" overflow="visible" appearance="full" style="left:920px; top:53px; width:100px; height:19px; ">
  868. <choices>
  869. <item>
  870. <label>누락청구이동</label>
  871. <value>Y</value>
  872. </item>
  873. </choices>
  874. <script type="javascript" ev:event="xforms-value-changed">
  875. <![CDATA[
  876. if (model.getValue("/root/send/item1/gubun") == "Y") {
  877. model.setValue("/root/send/item1/t_clamflagcd", "4"); // 4:누락청구
  878. // 누락청구는 최종청구차수를 조회한다.
  879. fGetMaxClamdg();
  880. } else {
  881. model.setValue("/root/send/item1/t_clamdg", "1");
  882. ipt_toclamdg.refresh();
  883. }
  884. ]]>
  885. </script>
  886. </select>
  887. <select1 id="cmb_toclamflagcd" ref="/root/send/item1/t_clamflagcd" class="combo_search" navindex="9" visibility="hidden" appearance="minimal" showvalue="true" style="left:1030px; top:54px; width:108px; height:14px; ">
  888. <choices>
  889. <itemset nodeset="/root/init/P0155list/P0155">
  890. <label ref="cdnm"/>
  891. <value ref="cdid"/>
  892. </itemset>
  893. </choices>
  894. </select1>
  895. </group>
  896. </xhtml:body>
  897. </xhtml:html>