SMPID22300_명세서합철.xrw 31 KB

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