SMPID23000_심사자변경.xrw 35 KB

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