SMPIS00100_청구및자료수집이력조회.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPIS00100_청구및자료수집이력조회.xrw
  4. * 수정이력
  5. * - 2008.09.24 / 최초작성 / 강종태
  6. ************************************************
  7. * [ Maps ]
  8. * TRZBC00102 : 공통코드(청구 구분)
  9. * TRPID20201 : 청구과 콤보 리스트
  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. <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
  20. <patinfo>
  21. <patinfolist/>
  22. </patinfo>
  23. <popupendflag/>
  24. <grdlist>
  25. <clamhist>
  26. <chk/>
  27. <pid/>
  28. <pidsn/>
  29. <hngnm/>
  30. <rrgstno/>
  31. <clamym/>
  32. <clamflagcd/>
  33. <clamdg/>
  34. <ioflag/>
  35. <insukind/>
  36. <suppkind/>
  37. <clamdeptnm/>
  38. <orddeptabbr/>
  39. <orddeptcd/>
  40. <orddrnm/>
  41. <judgendyn/>
  42. <judgmemo/>
  43. <clamendyn/>
  44. <acptno/>
  45. <docuseqno/>
  46. <indd/>
  47. <dschdd/>
  48. <ordfromdd/>
  49. <ordtodd/>
  50. <fromdd/>
  51. <todd/>
  52. <judgyn/>
  53. <delreason/>
  54. <rtnrsncd1/>
  55. <rtnrsncd2/>
  56. <edimedcaretotamt/>
  57. <ediownbamt/>
  58. <ediinsuclamamt/>
  59. <ediownbmaxexamt/>
  60. <edisuppamt/>
  61. <edisubtamt/>
  62. <edihandcaprfund/>
  63. <judgrid/>
  64. <judgenddd/>
  65. <insuno/>
  66. <ordfromdd/>
  67. <ordtodd/>
  68. <cretfromdd/>
  69. <crettodd/>
  70. <ordfildcd/>
  71. <lockyn/>
  72. </clamhist>
  73. </grdlist>
  74. </main>
  75. <init>
  76. <!-- 청구구분 -->
  77. <P0155list>
  78. <P0155>
  79. <cdnm/>
  80. <cdid/>
  81. <cdengabbrnm/>
  82. </P0155>
  83. </P0155list>
  84. <!-- 청구과 -->
  85. <P0437list>
  86. <P0437>
  87. <cdnm/>
  88. <cdid/>
  89. <cdengabbrnm/>
  90. </P0437>
  91. </P0437list>
  92. <!-- 심사상태 -->
  93. <P0151list>
  94. <P0151>
  95. <cdnm/>
  96. <cdid/>
  97. <cdengabbrnm/>
  98. </P0151>
  99. </P0151list>
  100. <!-- 명세서서상태 -->
  101. <P0430list>
  102. <P0430>
  103. <cdnm/>
  104. <cdid/>
  105. <cdengabbrnm/>
  106. </P0430>
  107. </P0430list>
  108. <!-- 삭제사유 -->
  109. <P0465list>
  110. <P0465>
  111. <cdnm/>
  112. <cdid/>
  113. <cdengabbrnm/>
  114. </P0465>
  115. </P0465list>
  116. <clamdeptlist>
  117. <cdid/>
  118. <cdnm/>
  119. </clamdeptlist>
  120. </init>
  121. <send>
  122. <ioflag/>
  123. <clamdeptcd/>
  124. <patunitsrch/>
  125. <acptno/>
  126. <docuseqno/>
  127. <item6>
  128. <clbs>
  129. <clamym/>
  130. <clamdg>0</clamdg>
  131. <clamfromdd/>
  132. <clamtodd/>
  133. <insutype/>
  134. <ordfildcd/>
  135. <clamflag/>
  136. <predata/>
  137. <ownb100/>
  138. <datacretflag/>
  139. <pid/>
  140. <name/>
  141. <orddeptcd/>
  142. <weekflag>S</weekflag>
  143. <chk/>
  144. <ioflag/>
  145. </clbs>
  146. </item6>
  147. <forcedel>
  148. <clbs>
  149. <clamym/>
  150. <clamdg/>
  151. <pid/>
  152. <pidsn/>
  153. </clbs>
  154. </forcedel>
  155. </send>
  156. <!-- 환자 조회 -->
  157. <hidden>
  158. <sppmc02500>
  159. <cond>
  160. <srchcond/>
  161. <pid/>
  162. <hngnm/>
  163. </cond>
  164. </sppmc02500>
  165. <clbs>
  166. <judgmemo/>
  167. </clbs>
  168. </hidden>
  169. </root>
  170. </instance>
  171. <script type="javascript" ev:event="xforms-ready">
  172. <![CDATA[
  173. // 화면 초기화
  174. fInitialize();
  175. ]]>
  176. </script>
  177. <!-- submission -->
  178. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  179. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
  180. <submission id="TRPIS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clamhist"/>
  181. <!-- 생성삭제 -->
  182. <submission id="TXPID10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item6/clbs" replace="instance" resultref="/root/hidden/item1/result"/>
  183. <!-- 강제삭제 -->
  184. <submission id="TXPIS00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/forcedel/clbs"/>
  185. </model>
  186. <!-- js import -->
  187. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  188. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  189. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  191. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  192. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  193. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  194. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  195. <!-- 뽕숑 -->
  196. <script type="javascript">
  197. <![CDATA[
  198. // 화면 초기화
  199. function fInitialize()
  200. {
  201. model.removeNodeset("/root/main/grdlist/clamhist"); // 그리드 초기화
  202. zbcfGetCodeList(new Array("P0155","P0437","P0151","P0430","P0465")
  203. ,new Array("/root/init/P0155list","/root/init/P0437list","/root/init/P0151list","/root/init/P0430list","/root/init/P0465list")
  204. ,false); // 청구구분
  205. // 초기화 할 때 PID가 존재하면 조회를 실행 한다 (팝업으로 호출된 경우 PID를 가지고 있다)
  206. if ( model.getValue("/root/send/patunitsrch") != "" )
  207. {
  208. fSearch();
  209. }
  210. else
  211. {
  212. rdo_ioflag.value = "A"; // 내원유형:전체
  213. }
  214. // 청구과 콤보 조회시 내원유형이 조건에 포함되므로 팝업의 경우를 고려해서 여기서 뿌려준다.
  215. fGetClamDept(); // 청구과 콤보 리스트
  216. }
  217. // 청구과 리스트 가져오기
  218. function fGetClamDept()
  219. {
  220. submit("TRPID20201");
  221. }
  222. // 환자단위 조회
  223. function fPatSrch()
  224. {
  225. var ipt_pid = model.getValue("/root/send/patunitsrch");
  226. if (ipt_pid) {
  227. if ( !isNaN(ipt_pid) )
  228. {
  229. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  230. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  231. }
  232. else
  233. {
  234. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
  235. model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
  236. }
  237. } else {
  238. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  239. }
  240. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  241. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  242. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  243. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  244. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  245. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  246. model.setValue("/root/send/patunitsrch", srch_pid);
  247. }
  248. model.refresh();
  249. }
  250. // 조회
  251. function fSearch()
  252. {
  253. var chk_userid = model.getValue("/root/send/patunitsrch");
  254. if (chk_userid == "")
  255. {
  256. messageBox("환자단위조회 조건은 ", "I003");
  257. }
  258. else
  259. {
  260. model.removeNodeset("/root/main/grdlist/clamhist");
  261. submit("TRPIS00100");
  262. }
  263. }
  264. ]]>
  265. </script>
  266. </xhtml:head>
  267. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1212;2,783;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  268. <!-- TITLE -->
  269. <group id="group1" style="left:0px; top:0px; width:1180px; height:13px; ">
  270. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">청구및 자료수집 이력조회</caption>
  271. </group>
  272. <!-- 전체 그룹 -->
  273. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1185px; height:732px; ">
  274. <!-- 조회조건 -->
  275. <group id="group3" style="left:0px; top:10px; width:1175px; height:35px; vertical-align:top; ">
  276. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1175px; height:35px; "/>
  277. <caption id="caption2" class="search_name" style="left:272px; top:10px; width:81px; height:17px; ">청구과</caption>
  278. <select1 id="base_date" ref="/root/send/clamdeptcd" class="combo_search" appearance="minimal" style="left:343px; top:8px; width:100px; height:19px; ">
  279. <choices>
  280. <itemset nodeset="/root/init/tmp/clamdept/clamdeptlist">
  281. <label ref="cdnm"/>
  282. <value ref="cdid"/>
  283. </itemset>
  284. </choices>
  285. </select1>
  286. <line id="line1" class="line_4" style="x1:1077px; y1:7px; x2:1077px; y2:29px; "/>
  287. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1098px; top:7px; width:56px; height:22px; ">
  288. <caption>조회</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. fSearch();
  292. ]]>
  293. </script>
  294. </button>
  295. <caption id="caption26" class="search_name" style="left:465px; top:10px; width:80px; height:17px; ">환자조회</caption>
  296. <caption id="caption3" class="search_name" style="left:22px; top:9px; width:76px; height:17px; ">내원유형</caption>
  297. <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" overflow="visible" appearance="full" cols="3" style="left:112px; top:9px; width:135px; height:20px; border-style:none; ">
  298. <choices>
  299. <item>
  300. <label>전체</label>
  301. <value>A</value>
  302. </item>
  303. <item>
  304. <label>입원</label>
  305. <value>I</value>
  306. </item>
  307. <item>
  308. <label>외래</label>
  309. <value>O</value>
  310. </item>
  311. </choices>
  312. <script type="javascript" ev:event="xforms-value-changed">
  313. <![CDATA[
  314. fGetClamDept();
  315. ]]>
  316. </script>
  317. </select1>
  318. <input id="ipt_patunitsrch" ref="/root/send/patunitsrch" class="input_search" navindex="3" inputtype="button" maxlength="10" style="left:548px; top:8px; width:100px; height:19px; ">
  319. <hint>
  320. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  321. </hint>
  322. <script type="javascript" ev:event="onkeypress">
  323. <![CDATA[
  324. if (event.keyCode == "13") { // Enter 입력 시에
  325. if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
  326. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  327. if( isNaN(model.getValue("/root/send/patunitsrch")) ) // PID로 검색시 조회
  328. {
  329. fPatSrch();
  330. }
  331. else
  332. {
  333. fSearch();
  334. }
  335. }
  336. }
  337. ]]>
  338. </script>
  339. <script type="javascript" ev:event="onbuttonclick">
  340. <![CDATA[
  341. fPatSrch();
  342. ]]>
  343. </script>
  344. </input>
  345. <input id="ipt_acptno" ref="/root/send/acptno" class="input_search" navindex="3" maxlength="15" style="left:750px; top:8px; width:100px; height:19px; ">
  346. <hint>
  347. <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
  348. </hint>
  349. <script type="javascript" ev:event="onkeypress">
  350. <![CDATA[
  351. if (event.keyCode == "13") { // Enter 입력 시에
  352. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  353. fSearch();
  354. }
  355. ]]>
  356. </script>
  357. </input>
  358. <caption id="caption5" class="search_name" style="left:667px; top:10px; width:80px; height:17px; ">접수번호</caption>
  359. <caption id="caption6" class="search_name" style="left:872px; top:10px; width:89px; height:17px; ">명일련</caption>
  360. <input id="ipt_docuseqno" ref="/root/send/docuseqno" class="input_search" navindex="3" maxlength="10" style="left:955px; top:8px; width:100px; height:19px; ">
  361. <script type="javascript" ev:event="onkeypress">
  362. <![CDATA[
  363. if (event.keyCode == "13") { // Enter 입력 시에
  364. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반
  365. fSearch();
  366. }
  367. ]]>
  368. </script>
  369. </input>
  370. </group>
  371. <caption id="caption8" class="tit_2" style="left:0px; top:60px; width:100px; height:13px; ">환자 리스트</caption>
  372. <button id="btn_excelsave" class="btn2_letter4" style="left:1109px; top:53px; width:64px; height:19px; ">
  373. <caption>엑셀저장</caption>
  374. <script type="javascript" ev:event="DOMActivate">
  375. <![CDATA[
  376. if (grd_outjudg.rows > 1) {
  377. var fileName = window.fileDialog("save", "", false, "청구 및 자료수집 이력조회_" + getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  378. if (fileName != "") {
  379. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  380. // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
  381. grd_outjudg.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  382. }
  383. } else {
  384. messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
  385. }
  386. ]]>
  387. </script>
  388. </button>
  389. <datagrid id="grd_outjudg" nodeset="/root/main/grdlist/clamhist" class="datagrid2" caption="C^등록번호^순번^성명^주민번호^청구월^구분^차수^내원유형^유형^보조^청구과^진료과^진료의^심사상태^심사메모^청구상태^접수번호^명일련^입원일^퇴원일^진료개시일^진료종료일^유형시작일^종료일^심사결정^삭제사유^반송사유^반송사유^총진료비^본인부담액^청구액^상한액^지원금^대불금^장애인^심사자^심사시간^조합기호^진료과코드" colsep="^" colwidth="34, 62, 19, 49, 103, 56, 39, 41, 37, 20, 23, 92, 61, 55, 66, 100, 72, 66, 54, 78, 78, 78, 78, 80, 70, 37, 170, 29, 29, 75, 75, 75, 75, 75, 75, 75, 59, 83, 80, 80" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1175px; height:655px; ">
  390. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  391. <col ref="pid" style="text-align:center; "/>
  392. <col ref="pidsn" style="text-align:center; "/>
  393. <col ref="hngnm" style="text-align:center; "/>
  394. <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
  395. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  396. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  397. <choices>
  398. <itemset nodeset="/root/init/P0155list/P0155">
  399. <label ref="cdengabbrnm"/>
  400. <value ref="cdid"/>
  401. </itemset>
  402. </choices>
  403. </col>
  404. <col ref="clamdg" style="text-align:center; "/>
  405. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  406. <choices>
  407. <item>
  408. <label>입원</label>
  409. <value>I</value>
  410. </item>
  411. <item>
  412. <label>외래</label>
  413. <value>O</value>
  414. </item>
  415. </choices>
  416. </col>
  417. <col ref="insukind" style="text-align:center; "/>
  418. <col ref="suppkind" style="text-align:center; "/>
  419. <col disabled="true" ref="clamdeptnm" type="combo" style="text-align:center; ">
  420. <choices>
  421. <itemset nodeset="/root/init/P0437list/P0437">
  422. <label ref="cdnm"/>
  423. <value ref="cdid"/>
  424. </itemset>
  425. </choices>
  426. </col>
  427. <col ref="orddeptabbr" style="text-align:center; "/>
  428. <col ref="orddrnm" style="text-align:center; "/>
  429. <col disabled="true" ref="judgendyn" type="combo">
  430. <choices>
  431. <itemset nodeset="/root/init/P0151list/P0151">
  432. <label ref="cdnm"/>
  433. <value ref="cdid"/>
  434. </itemset>
  435. </choices>
  436. </col>
  437. <col ref="judgmemo" type="inputbutton"/>
  438. <col disabled="true" ref="clamendyn" type="combo" style="text-align:center; ">
  439. <choices>
  440. <itemset nodeset="/root/init/P0430list/P0430">
  441. <label ref="cdnm"/>
  442. <value ref="cdid"/>
  443. </itemset>
  444. </choices>
  445. </col>
  446. <col ref="acptno" style="text-align:center; "/>
  447. <col ref="docuseqno" style="text-align:right; "/>
  448. <col ref="indd" format="yyyy-mm-dd" style="left:1050px; top:32px; width:78px; height:23px; text-align:center; "/>
  449. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  450. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  451. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  452. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  453. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  454. <col ref="judgyn" format="yyyy-mm-dd" style="text-align:center; "/>
  455. <col disabled="true" ref="delreason" type="combo">
  456. <choices>
  457. <itemset nodeset="/root/init/P0465list/P0465">
  458. <label ref="cdnm"/>
  459. <value ref="cdid"/>
  460. </itemset>
  461. </choices>
  462. </col>
  463. <col ref="rtnrsncd1"/>
  464. <col ref="rtnrsncd2"/>
  465. <col ref="edimedcaretotamt" format="#,###" style="text-align:right; "/>
  466. <col ref="ediownbamt" format="#,###" style="text-align:right; "/>
  467. <col ref="ediinsuclamamt" format="#,###" style="text-align:right; "/>
  468. <col ref="ediownbmaxexamt" format="#,###" style="text-align:right; "/>
  469. <col ref="edisuppamt" format="#,###" style="text-align:right; "/>
  470. <col ref="edisubtamt" format="#,###" style="text-align:right; "/>
  471. <col ref="edihandcaprfund" format="#,###" style="text-align:right; "/>
  472. <col ref="judgrid" style="text-align:center; "/>
  473. <col ref="judgenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  474. <col ref="insuno"/>
  475. <col ref="orddeptcd" style="text-align:center; "/>
  476. <script type="javascript" ev:event="xforms-value-changed">
  477. <![CDATA[
  478. var icol = grd_outjudg.col;
  479. var irow = grd_outjudg.row;
  480. if (icol == grd_outjudg.colRef("chk")) {
  481. if (model.getValue("/root/main/grdlist/clamhist[ " + irow + "]/chk") == "Y") {
  482. // 잠금설정이 되어 있으면 생성삭제를 할 수 없다.
  483. if (model.getValue("/root/main/grdlist/clamhist[ " + irow + "]/lockyn") == "Y") {
  484. messageBox("잠금설정되어서 선택할 수", "I004"); // I004=없습니다.
  485. model.setValue("/root/main/grdlist/clamhist[ " + irow + "]/chk", "N");
  486. }
  487. }
  488. }
  489. ]]>
  490. </script>
  491. <script type="javascript" ev:event="ondblclick">
  492. <![CDATA[
  493. var icol = grd_outjudg.col;
  494. var irow = grd_outjudg.row;
  495. if (icol == grd_outjudg.colRef("chk") && irow == 0) {
  496. var nodeList = instance1.selectNodes("/root/main/grdlist/clamhist");
  497. var i = 1;
  498. for ( i = 1; i <= nodeList.length; i++) {
  499. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y") {
  500. model.setValue("/root/main/grdlist/clamhist[" + i + "]/chk", "N");
  501. } else {
  502. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "N") {
  503. model.setValue("/root/main/grdlist/clamhist[" + i + "]/chk", "Y");
  504. }
  505. }
  506. }
  507. }
  508. ]]>
  509. </script>
  510. <script type="javascript" ev:event="onmouseup">
  511. <![CDATA[
  512. // Grid 상에 inputButton 은 표시하지만, input으로 직접 입력하는 것은 막기 위해
  513. // <script type="javascript" ev:event="onbuttonclick"> 대신 ev:event="onmousedown" 으로 처리함.
  514. if (grd_outjudg.isCell(event.target) && grd_outjudg.row >= grd_outjudg.fixedRows) {
  515. var col = grd_outjudg.mouseCol;
  516. if (col == grd_outjudg.colRef("judgmemo")) { // 메모
  517. if (grp_judgmemo.visible) {
  518. grp_judgmemo.visible = false;
  519. } else {
  520. grd_outjudg.toprow = grd_outjudg.mouseRow;
  521. model.setValue("/root/hidden/clbs/judgmemo", model.getValue("/root/main/grdlist/clamhist[" + grd_outjudg.mouseRow + "]/judgmemo"));
  522. model.refresh();
  523. grp_judgmemo.visible = true;
  524. model.setFocus("tar_judgmemo");
  525. }
  526. }
  527. }
  528. ]]>
  529. </script>
  530. <script type="javascript" ev:event="onbuttonclick">
  531. <![CDATA[
  532. // Grid 상에 inputButton 은 표시하지만, input으로 직접 입력하는 것은 막기 위해
  533. // <script type="javascript" ev:event="onbuttonclick"> 대신 ev:event="onmousedown" 으로 처리함.
  534. // if (grd_outjudg.isCell(event.target) && grd_outjudg.row >= grd_outjudg.fixedRows) {
  535. var col = grd_outjudg.mouseCol;
  536. if (col == grd_outjudg.colRef("judgmemo")) { // 메모
  537. if (grp_judgmemo.visible) {
  538. grp_judgmemo.visible = false;
  539. } else {
  540. grd_outjudg.toprow = grd_outjudg.mouseRow;
  541. model.setValue("/root/hidden/clbs/judgmemo", model.getValue("/root/main/grdlist/clamhist[" + grd_outjudg.mouseRow + "]/judgmemo"));
  542. model.refresh();
  543. grp_judgmemo.visible = true;
  544. model.setFocus("tar_judgmemo");
  545. }
  546. }
  547. // }
  548. ]]>
  549. </script>
  550. <script type="javascript" ev:event="oncopy">
  551. <![CDATA[
  552. grid_oncopy();
  553. ]]>
  554. </script>
  555. </datagrid>
  556. <group id="grp_judgmemo" visibility="hidden" style="left:90px; top:180px; width:970px; height:455px; ">
  557. <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:950px; y2:20px; "/>
  558. <caption id="caption4" class="tit_2" style="left:5px; top:5px; width:113px; height:14px; ">심사대상자 메모</caption>
  559. <textarea id="tar_judgmemo" ref="/root/hidden/clbs/judgmemo" editable="false" style="left:5px; top:40px; width:955px; height:384px; "/>
  560. <button id="btn_memocancel" class="btn4_letter2" style="left:900px; top:430px; width:56px; height:22px; ">
  561. <caption>닫기</caption>
  562. <script type="javascript" ev:event="DOMActivate">
  563. <![CDATA[
  564. grp_judgmemo.visible = false;
  565. ]]>
  566. </script>
  567. </button>
  568. </group>
  569. <button id="button1" class="btn2_letter3" style="left:759px; top:53px; width:53px; height:19px; ">
  570. <caption>셀카피</caption>
  571. <script type="javascript" ev:event="onclick">
  572. <![CDATA[
  573. grd_outjudg.attribute("selectionmode") = "free";
  574. ]]>
  575. </script>
  576. </button>
  577. <button id="button5" class="btn2_letter3" style="left:815px; top:53px; width:53px; height:19px; ">
  578. <caption>열카피</caption>
  579. <script type="javascript" ev:event="onclick">
  580. <![CDATA[
  581. grd_outjudg.attribute("selectionmode") = "bycol";
  582. ]]>
  583. </script>
  584. </button>
  585. <button id="button6" class="btn2_letter3" style="left:872px; top:53px; width:53px; height:19px; ">
  586. <caption>행카피</caption>
  587. <script type="javascript" ev:event="onclick">
  588. <![CDATA[
  589. grd_outjudg.attribute("selectionmode") = "byrow";
  590. ]]>
  591. </script>
  592. </button>
  593. <button id="btn_cretdel" class="btn2_letter4" _auth="X" style="left:929px; top:53px; width:64px; height:19px; ">
  594. <caption>생성삭제</caption>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. var nodeList = instance1.selectNodes("/root/main/grdlist/clamhist");
  598. var delcnt=0;
  599. var i=1;
  600. for ( i = 1; i <= nodeList.length; i++) {
  601. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "N") {
  602. var pid = model.getValue("/root/main/grdlist/clamhist[" + i + "]/pid");
  603. var patnm = model.getValue("/root/main/grdlist/clamhist[" + i + "]/hngnm");
  604. var deptcd = model.getValue("/root/main/grdlist/clamhist[" + i + "]/orddeptcd");
  605. var message = "2. 전 체 진료과를 모두 삭제|3. 취 소";
  606. var ans = messageBox("[ 환자명:" + patnm + ", 등록번호:" + pid + ", 진료과:" + deptcd + " ]\n\n" + "1. 선택한 진료과만 삭제", "S006", message); ///하시려면 예(Yes)\n아니면 아니오(No)
  607. if (ans == 6 || ans == 7) { // 6: yes, 7:no, 2:cancel
  608. model.setValue("/root/send/item6/clbs/clamym", model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamym")); // 1.청구년월
  609. model.setValue("/root/send/item6/clbs/clamdg", model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamdg")); // 2.청구차수
  610. model.setValue("/root/send/item6/clbs/clamfromdd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/cretfromdd")); // 3.생성시작일
  611. model.setValue("/root/send/item6/clbs/clamtodd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/crettodd")); // 4.생성종료일
  612. // 전체보험유형,진료분야,진료과 삭제이면( 7:no )
  613. if (ans == 7) {
  614. // 5.보험유형 : -.전체
  615. model.setValue("/root/send/item6/clbs/insutype", "-");
  616. // 6.진료분야 : -.전체
  617. model.setValue("/root/send/item6/clbs/ordfildcd", "-");
  618. // 7.진료과
  619. model.setValue("/root/send/item6/clbs/orddeptcd", "");
  620. } else {
  621. // 5.보험유형
  622. var insukind = model.getValue("/root/main/grdlist/clamhist[" + i + "]/insukind");
  623. if (insukind == "11") {
  624. model.setValue("/root/send/item6/clbs/insutype", "2"); // 보험
  625. } else if (insukind == "21") {
  626. model.setValue("/root/send/item6/clbs/insutype", "4"); // 급여1종
  627. } else if (insukind == "22") {
  628. model.setValue("/root/send/item6/clbs/insutype", "5"); // 급여2종
  629. } else if (insukind == "41") {
  630. model.setValue("/root/send/item6/clbs/insutype", "6"); // 산재
  631. } else if (insukind == "31") {
  632. model.setValue("/root/send/item6/clbs/insutype", "7"); // 자보
  633. }
  634. // 6.진료분야
  635. model.setValue("/root/send/item6/clbs/ordfildcd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/ordfildcd"));
  636. // 7.진료과
  637. model.setValue("/root/send/item6/clbs/orddeptcd", model.getValue("/root/main/grdlist/clamhist[" + i + "]/orddeptcd"));
  638. }
  639. model.setValue("/root/send/item6/clbs/clamflag", '-'); // 8.청구구분 : -.퇴원+중간, 1.퇴원청구, 2.중간청구
  640. model.setValue("/root/send/item6/clbs/predata", "4"); // 9.이전자료 : 4.삭제
  641. model.setValue("/root/send/item6/clbs/ownb100", "N"); // 10.전액본인 : N.생성안함
  642. model.setValue("/root/send/item6/clbs/datacretflag", "-"); // 11.생성여부 : -.전체
  643. model.setValue("/root/send/item6/clbs/pid", model.getValue("/root/main/grdlist/clamhist[" + i + "]/pid")); // 12.등록번호
  644. model.setValue("/root/send/item6/clbs/name", model.getValue("/root/main/grdlist/clamhist[" + i + "]/hngnm")); // 13.환자명
  645. model.setValue("/root/send/item6/clbs/chk", "true"); // 14.선택여부
  646. // 15.집계구분
  647. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/ioflag") == "I") {
  648. model.setValue("/root/send/item6/clbs/weekflag", "T");
  649. model.setValue("/root/send/item6/clbs/ioflag", "I");
  650. } else {
  651. model.setValue("/root/send/item6/clbs/weekflag", "S"); // S:집계 월단위 청구
  652. model.setValue("/root/send/item6/clbs/ioflag", "O");
  653. }
  654. // 16. 생성삭제
  655. if (submit("TXPID10102")) {
  656. delcnt++;
  657. }
  658. // 17. 생성삭제로그 자동호출
  659. btn_logview.dispatch("DOMActivate");
  660. messageBox("생성삭제되었는지 반드시 로그를 확인하시기 바랍니다. 생성삭제 호출", "I001"); //I001=처리되었습니다.
  661. }
  662. }
  663. else if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "Y") {
  664. messageBox("잠금설정상태입니다. 삭제", "E001"); ///할 수 없습니다.
  665. }
  666. }
  667. ]]>
  668. </script>
  669. <hint>
  670. <![CDATA[청구생성 자료삭제]]>
  671. </hint>
  672. </button>
  673. <button id="btn_logview" class="btn2_letter8" style="left:997px; top:53px; width:108px; height:19px; ">
  674. <caption>생성삭제로그확인</caption>
  675. <script type="javascript" ev:event="DOMActivate">
  676. <![CDATA[
  677. var todd = getCurrentDate();
  678. todd = todd.toDate().getAddDate(+1, 'D');
  679. zsbfOpenBatchLogPopup("clamcretmngtmgr.ClamDataCretMain",getCurrentDate(),todd.getDateFormat());
  680. ]]>
  681. </script>
  682. </button>
  683. <button id="btn_forceDel" class="btn5_letter8" _auth="X" style="left:615px; top:53px; width:108px; height:19px; ">
  684. <caption>입원강제생성삭제</caption>
  685. <script type="javascript" ev:event="DOMActivate">
  686. <![CDATA[
  687. var nodeList = instance1.selectNodes("/root/main/grdlist/clamhist");
  688. var delcnt=0;
  689. var i=1;
  690. for ( i = 1; i <= nodeList.length; i++) {
  691. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "N") {
  692. if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/ioflag") != "I") {
  693. messageBox("외래는 선택", "E001"); ///할 수 없습니다.
  694. return;
  695. }
  696. var pid = model.getValue("/root/main/grdlist/clamhist[" + i + "]/pid");
  697. var pidsn = model.getValue("/root/main/grdlist/clamhist[" + i + "]/pidsn");
  698. var patnm = model.getValue("/root/main/grdlist/clamhist[" + i + "]/hngnm");
  699. var clamym = model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamym");
  700. var clamdg = model.getValue("/root/main/grdlist/clamhist[" + i + "]/clamdg");
  701. var ans = messageBox("[ 환자명:" + patnm + ", 등록번호:" + pid + ", 청구월:" + clamym + "] 강제로 청구서를 삭제 하시겠습니까.\n", "S001", "\n반드시 확인하고 실행하십시오."); ///하시려면 예(Yes)\n아니면 아니오(No)
  702. if (ans == 6 ) { // 6: yes, 7:no, 2:cancel
  703. model.setValue("/root/send/forcedel/clbs/clamym", clamym); // 1.청구년월
  704. model.setValue("/root/send/forcedel/clbs/clamdg", clamdg); // 2.청구차수
  705. model.setValue("/root/send/forcedel/clbs/pid", pid); // 3.등록번호
  706. model.setValue("/root/send/forcedel/clbs/pidsn", pidsn); // 4.등록번호순번
  707. // 강제생성삭제
  708. if ( submit("TXPIS00100") ) {
  709. fSearch();
  710. }
  711. }
  712. }
  713. else if (model.getValue("/root/main/grdlist/clamhist[" + i + "]/chk") == "Y" && model.getValue("/root/main/grdlist/clamhist[" + i + "]/lockyn") == "Y") {
  714. messageBox("잠금설정상태입니다. 삭제", "E001"); ///할 수 없습니다.
  715. }
  716. }
  717. ]]>
  718. </script>
  719. <hint>
  720. <![CDATA[청구생성 자료삭제]]>
  721. </hint>
  722. </button>
  723. </group>
  724. <button id="button2" class="btn3_letter5" style="left:5px; top:750px; width:92px; height:22px; ">
  725. <caption>접수증조회</caption>
  726. <script type="javascript" ev:event="onclick">
  727. <![CDATA[
  728. var row = grd_outjudg.row;
  729. var acptno = model.getValue("/root/main/grdlist/clamhist[" + row + "]/acptno");
  730. model.makeValue("/root/hidden/smpie01000/cond/numflag", "2"); // 2:접수번호
  731. model.makeValue("/root/hidden/smpie01000/cond/srchnum", acptno);
  732. modal("SMPIE00800", 1, 1, 1, "SMPIE00800", "/root/hidden/smpie01000/cond", "/root/send/summary");
  733. ]]>
  734. </script>
  735. </button>
  736. <button id="button3" class="btn3_letter7" style="left:105px; top:750px; width:116px; height:22px; ">
  737. <caption>심결보기(F020)</caption>
  738. <script type="javascript" ev:event="onclick">
  739. <![CDATA[
  740. var row = grd_outjudg.row;
  741. var acptno = model.getValue("/root/main/grdlist/clamhist[" + row + "]/acptno");
  742. model.makeValue("/root/hidden/smpie01000/cond/numflag", "2"); // 2:접수번호
  743. model.makeValue("/root/hidden/smpie01000/cond/termflag", "");
  744. model.makeValue("/root/hidden/smpie01000/cond/fromterm", "");
  745. model.makeValue("/root/hidden/smpie01000/cond/toterm", "");
  746. model.makeValue("/root/hidden/smpie01000/cond/srchnum", acptno);
  747. model.makeValue("/root/hidden/smpie01000/cond/clamno", "");
  748. modal("SMPIE01000", 1, 1, 1, "SMPIE01000", "/root/hidden/smpie01000/cond", "/root/send/summary");
  749. ]]>
  750. </script>
  751. </button>
  752. <button id="button4" class="btn3_letter7" style="left:230px; top:750px; width:116px; height:22px; ">
  753. <caption>심결보기(F060)</caption>
  754. <script type="javascript" ev:event="onclick">
  755. <![CDATA[
  756. var row = grd_outjudg.row;
  757. var acptno = model.getValue("/root/main/grdlist/clamhist[" + row + "]/acptno");
  758. model.makeValue("/root/hidden/smpie01100/cond/numflag", "2"); // 2:접수번호
  759. model.makeValue("/root/hidden/smpie01100/cond/termflag", "");
  760. model.makeValue("/root/hidden/smpie01100/cond/fromterm", "");
  761. model.makeValue("/root/hidden/smpie01100/cond/toterm", "");
  762. model.makeValue("/root/hidden/smpie01100/cond/srchnum", acptno);
  763. model.makeValue("/root/hidden/smpie01100/cond/clamno", "");
  764. modal("SMPIE01100", 1, 1, 1, "SMPIE01100", "/root/hidden/smpie01100/cond", "/root/send/summary");
  765. ]]>
  766. </script>
  767. </button>
  768. <button id="button7" class="btn3_letter8" style="left:355px; top:750px; width:128px; height:22px; ">
  769. <caption>이의신청내역조회</caption>
  770. <script type="javascript" ev:event="onclick">
  771. <![CDATA[
  772. var row = grd_outjudg.row;
  773. modal("SMPIR30200", 1, 1, 1, "SMPIR30200", "/root/main/grdlist/clamhist[" + row + "]/acptno", "/root/send/acptno");
  774. ]]>
  775. </script>
  776. </button>
  777. <caption id="caption7" style="left:725px; top:750px; width:434px; height:20px; color:#ff6600; ">※ 접수번호, 명일련은 해당 환자에게 발생한 특정 번호를 바로 찾는 기능입니다.</caption>
  778. </xhtml:body>
  779. </xhtml:html>