SMPID21200_코드별일괄수정.xrw 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID21200_코드별일괄수정.xrw
  4. * 수정이력
  5. * - 2007.05.202 / 최초작성 / 정주미
  6. *
  7. -->
  8. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>코드별일괄수정</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <!-- SPPMC02500_환자조회 화면에서 선택된 검색결과를 받는 경로임 -->
  17. <patinfo>
  18. <patinfolist/>
  19. </patinfo>
  20. <list1>
  21. <mech/>
  22. </list1>
  23. <list2>
  24. <clod/>
  25. </list2>
  26. </main>
  27. <send>
  28. <mech>
  29. <calcscorcd/>
  30. <edicd/>
  31. <insukind/>
  32. <ediunitcost/>
  33. <ediunitcostcond/>
  34. </mech>
  35. <clod>
  36. <clamym/>
  37. <srchflag/>
  38. <insukind/>
  39. <pid/>
  40. <calcscorcd/>
  41. <edicd/>
  42. <offset/>
  43. <pagesize>50</pagesize>
  44. </clod>
  45. <updt/>
  46. </send>
  47. <init>
  48. <!-- 보험유형 -->
  49. <P0008list>
  50. <P0008>
  51. <cdnm/>
  52. <cdid/>
  53. </P0008>
  54. </P0008list>
  55. <!-- EDI코드구분 -->
  56. <P0131list>
  57. <P0131>
  58. <cdnm/>
  59. <cdid/>
  60. </P0131>
  61. </P0131list>
  62. <!-- 심사완료여부 -->
  63. <P0151list>
  64. <P0151>
  65. <cdnm/>
  66. <cdid/>
  67. </P0151>
  68. </P0151list>
  69. </init>
  70. <hidden>
  71. <base>
  72. <basedd/>
  73. <list2>
  74. <clod>
  75. <orddd/>
  76. <ioflag/>
  77. <insukind/>
  78. <pid/>
  79. <refresh/>
  80. </clod>
  81. </list2>
  82. </base>
  83. <sppmc02500>
  84. <cond>
  85. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  86. <srchcond/>
  87. <pid/>
  88. <hngnm/>
  89. <rrgstno1/>
  90. <rrgstno2/>
  91. </cond>
  92. </sppmc02500>
  93. <smpic00200>
  94. <judgsrch>
  95. <con1_dd/>
  96. <con2_gsflag/>
  97. <con3_search1/>
  98. <con4_search2/>
  99. <con5_insu/>
  100. <con6_calcscorcd/>
  101. <con7_todd/>
  102. <con8_instcd/>
  103. </judgsrch>
  104. </smpic00200>
  105. <clod/>
  106. </hidden>
  107. </root>
  108. </instance>
  109. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  110. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  111. <submission id="TRPID21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/mech" resultref="/root/main/list1"/>
  112. <submission id="TRPID21202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/clod" add="bottom" resultref="/root/main/list2/clod"/>
  113. <!--
  114. -->
  115. <submission id="TXPID21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updt"/>
  116. <!--
  117. <submission id="TXPID21201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updt" resultref="/root/main/list2/clod"/>
  118. -->
  119. <script type="javascript" ev:event="xforms-ready">
  120. <![CDATA[
  121. var today = new Date();
  122. var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  123. var basemonth = today.getDateFormat("MM");
  124. var currentym = baseyear + basemonth;
  125. model.setValue("/root/hidden/base/basedd", currentym);
  126. model.setValue("/root/send/clod/clamym", currentym);
  127. ipt_calcscorcd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
  128. ipt_edicd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
  129. // 공통코드를 조회한다.
  130. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  131. zbcfGetCodeList( new Array("P0008", "P0131", "P0151"), new Array("/root/init/P0008list", "/root/init/P0131list", "/root/init/P0151list") );
  132. // (PAM.js) submission id="TRPAM00101" 를 사용하여 진료과 / 의사명 Combo item을 가져온다.
  133. pamGetDeptCDDrIDList();
  134. fInitializeAll(); // 화면을 초기화한다.
  135. fCheckAuth(); // 화면 권한을 설정한다.
  136. ]]>
  137. </script>
  138. </model>
  139. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  142. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  143. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  144. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  145. <script type="javascript">
  146. <![CDATA[
  147. // 화면 권한을 설정한다.
  148. function fCheckAuth() {
  149. var xAuth = !checkAuth("X"); // 처리권한(입력, 수정, 삭제 등)
  150. btn_batupdt.disabled = xAuth;
  151. grd_mechmast.disabled = xAuth;
  152. grd_clodhist.disabled = xAuth;
  153. var pAuth = !checkAuth("P"); // 출력권한(보고서 출력, 엑셀 내려받기 등)
  154. btn_excelsave.disabled = pAuth;
  155. }
  156. // 처방용 조회 조건과 조회Btn disabled 상태 설정
  157. function fSetAuthGrpOrdsrch(isDisabled) {
  158. ipt_fromdd.disabled = isDisabled;
  159. rdo_srchflag.disabled = isDisabled;
  160. cmb_clodinsukind.disabled = isDisabled;
  161. ipt_pid.disabled = isDisabled;
  162. btn_ordsrch.disabled = isDisabled;
  163. btn_nextpage.disabled = isDisabled;
  164. }
  165. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  166. function fInitializeAll() {
  167. // 수가코드 부분을 초기화한다.
  168. model.resetInstanceNode("/root/send/mech");
  169. model.removeNodeset("/root/main/list1/mech");
  170. model.setValue("/root/send/mech/ediunitcostcond", "2"); // 단가 조회 기준 (2: 원이상)
  171. fInitOrdSrch(true); // 처방목록, 조건 초기화
  172. model.refresh();
  173. }
  174. // 처방목록 부분을 초기화한다.
  175. function fInitOrdSrch(isCond) {
  176. model.removeNodeset("/root/main/list2/clod");
  177. if (isCond) { // 처방목록 조건 초기화
  178. model.resetInstanceNode("/root/send/clod");
  179. model.setValue("/root/send/clod/srchflag", "-"); // 검색구분 Radio의 초기값을 설정한다.
  180. // 검색 청구월표시
  181. var clamym = model.getValue("/root/hidden/base/basedd");
  182. model.setValue("/root/send/clod/clamym", clamym);
  183. }
  184. // 처방용 조회 조건과 조회Btn disabled 상태 설정
  185. fSetAuthGrpOrdsrch(true);
  186. }
  187. // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  188. function fGetMechMastList() {
  189. var calcscorcd = model.getValue("/root/send/mech/calcscorcd");
  190. var edicd = model.getValue("/root/send/mech/edicd");
  191. model.setValue("/root/send/clod/calcscorcd", calcscorcd);
  192. model.setValue("/root/send/clod/edicd", edicd);
  193. if (calcscorcd || edicd) {
  194. fSetAuthGrpOrdsrch(true); // 처방용 조회 조건과 조회Btn disabled 상태 설정
  195. fInitOrdSrch(false); // 처방목록 초기화
  196. model.removeNodeset("/root/main/list1/mech");
  197. submit("TRPID21201");
  198. if (model.getValue("/root/main/list1/mech/calcscorcd")) {
  199. if (model.getValue("/root/main/list1/mech/grupsnglflag") == "S") {
  200. fSetAuthGrpOrdsrch(false); // 처방용 조회 조건과 조회Btn disabled 상태 설정
  201. if (model.getValue("/root/send/mech/insukind")) { // 보험유형 조건이 입력된 경우
  202. cmb_clodinsukind.disabled = true;
  203. }
  204. } else {
  205. messageBox("그룹코드는 코드일괄수정을 할 수", "I004"); ///그룹코드는 코드일괄수정을 할 수 없습니다.
  206. }
  207. }
  208. grd_mechmast.row = 0;
  209. } else {
  210. messageBox("수가코드 또는 EDI코드는", "I003"); ///수가코드 또는 EDI코드는 필수입력입니다.
  211. return;
  212. }
  213. }
  214. // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
  215. function fGetOrdHistList(nextyn) {
  216. if (fCheckOrdSrchCond()) { // 처방목록 조회조건 체크
  217. model.removeNodeset("/root/main/list2/clod"); // 처방목록 Grid 초기화
  218. if (nextyn == "Y") {
  219. // 조회버튼으로 조회 시 offset은 "0"으로 설정하고 submit() 을 수행한다.
  220. model.setValue("/root/send/clod/offset", "0");
  221. } else {
  222. // 다음페이지버튼으로 조회 시 offset은 마지막clamkey"으로 설정하고 submit() 을 수행한다.
  223. model.setValue("/root/send/clod/offset", "0");
  224. }
  225. model.setValue("/root/send/clod/calcscorcd", model.getValue("/root/send/mech/calcscorcd"));
  226. model.setValue("/root/send/clod/edicd", model.getValue("/root/send/mech/edicd"));
  227. // 페이지 단위 조회시 기존 조회조건이 변경되었는지 체크한다.
  228. model.copyNode("/root/hidden/clod", "/root/send/clod");
  229. //setAlertOn();
  230. submit("TRPID21202");
  231. if (instance1.selectSingleNode("/root/main/list2/clod") == null) {
  232. messageBox("조회된 결과가", "I004"); ///조회된 결과가 없습니다.
  233. return;
  234. } else {
  235. for (var i = 1; i < grd_mechmast.rows; i++) {
  236. var calcscorcd = model.getValue("/root/main/list1/mech["+ i +"]/calcscorcd");
  237. var fromdd = model.getValue("/root/main/list1/mech["+ i +"]/fromdd");
  238. var todd = model.getValue("/root/main/list1/mech["+ i +"]/todd");
  239. for (var j = 1; j < grd_clodhist.rows; j++) {
  240. var snglcalcscorcd = model.getValue("/root/main/list2/clod["+ j +"]/snglcalcscorcd");
  241. if (snglcalcscorcd == calcscorcd) {
  242. var orddd = model.getValue("/root/main/list2/clod["+ j +"]/orddd");
  243. var ordfromdd = model.getValue("/root/main/list2/clod["+ j +"]/ordfromdd");
  244. var ordtodd = model.getValue("/root/main/list2/clod["+ j +"]/ordtodd");
  245. // if (fromdd <= ordfromdd && ordfromdd <= todd) {
  246. // if (fromdd >= ordfromdd && fromdd <= ordtodd) {
  247. if (todd >= ordfromdd && todd <= ordtodd) { // 수가종료일자가 처방from~to 사이라면 중간에 수가코드가 종결되고 바뀐 것이므로
  248. model.setValue("/root/main/list2/clod["+ j +"]/mode", "u");
  249. grd_clodhist.rowStatus(j) = 2;
  250. }
  251. }
  252. var estmmncd = model.getValue("/root/main/list2/clod["+ j +"]/estmmncd");
  253. if (estmmncd == "-") { // 초기값 '0000' 셋팅 전에 입력된 data 오류로 인해
  254. model.setValue("/root/main/list2/clod["+ j +"]/estmmncd", "");
  255. }
  256. }
  257. }
  258. }
  259. grd_clodhist.row = 0;
  260. }
  261. }
  262. // 처방목록 조회조건 체크
  263. function fCheckOrdSrchCond() {
  264. // 검색기간(fromdd ~ todd)을 확인한다.
  265. var clamym = model.getValue("/root/send/clod/clamym");
  266. if (clamym == "") {
  267. messageBox("청구월은", "I003"); ///청구월은 필수입력입니다.
  268. return false;
  269. }
  270. return true;
  271. }
  272. // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
  273. function fGetSelectedOrderData() {
  274. //var orddd = model.getValue("/root/hidden/base/list2/clod/orddd");
  275. var ioflag = model.getValue("/root/hidden/base/list2/clod/ioflag");
  276. var insukind = model.getValue("/root/hidden/base/list2/clod/insukind");
  277. var pid = model.getValue("/root/hidden/base/list2/clod/pid");
  278. var selCon = "";
  279. /*
  280. if (orddd) {
  281. selCon += orddd;
  282. }
  283. if (ioflag) {
  284. if (selCon) {
  285. selCon += " and " + ioflag;
  286. } else {
  287. selCon += ioflag;
  288. }
  289. }
  290. */
  291. if (ioflag) {
  292. selCon = ioflag;
  293. }
  294. if (insukind) {
  295. if (selCon) {
  296. selCon += " and " + insukind;
  297. } else {
  298. selCon = insukind;
  299. }
  300. }
  301. if (pid) {
  302. if (selCon) {
  303. selCon += " and " + pid;
  304. } else {
  305. selCon = pid;
  306. }
  307. }
  308. if (selCon) {
  309. grd_clodhist.attribute("nodeset") = "/root/main/list2/clod[" + selCon + "]";
  310. } else {
  311. grd_clodhist.attribute("nodeset") = "/root/main/list2/clod";
  312. }
  313. grd_clodhist.rebuild();
  314. //grd_clodhist.resizeCells();
  315. grd_clodhist.row = 0; // 그리드의 첫줄부터 표시되도록 포커스를 0으로 설정한다.
  316. }
  317. ]]>
  318. </script>
  319. </xhtml:head>
  320. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  321. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  322. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">코드별일괄수정</caption>
  323. </group>
  324. <group id="grp_biz" style="left:0px; top:13px; width:1195px; height:744px; ">
  325. <group id="grp_mechsrch" style="left:0px; top:10px; width:1194px; height:35px; ">
  326. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  327. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">수가코드 :</caption>
  328. <input id="ipt_calcscorcd" ref="/root/send/mech/calcscorcd" class="input_search" navindex="1" inputtype="button" style="left:105px; top:8px; width:110px; height:19px; ">
  329. <script type="javascript" ev:event="onkeypress">
  330. <![CDATA[
  331. if (event.keyCode == "13") { // Enter 입력 시에
  332. if (ipt_calcscorcd.currentText.length > 1) { // 2글자 이상이면
  333. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  334. fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  335. }
  336. }
  337. ]]>
  338. </script>
  339. <script type="javascript" ev:event="onbuttonclick">
  340. <![CDATA[
  341. // // 검색기간 시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
  342. // var fromdd = model.getValue("/root/send/clod/fromdd");
  343. // var todd = model.getValue("/root/send/clod/todd");
  344. // if (fromdd) {
  345. // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", fromdd);
  346. // }
  347. // if (todd) {
  348. // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", todd);
  349. // }
  350. // if (fromdd == "" && todd == "") {
  351. // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
  352. // }
  353. // 보험유형을 설정한다.
  354. var insukindcd = model.getValue("/root/send/mech/insukind");
  355. if (insukindcd == "11") {
  356. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  357. }
  358. else if (insukindcd == "21" || insukindcd == "22") {
  359. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "proc");
  360. }
  361. else if (insukindcd == "31" || insukindcd == "32") {
  362. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "indus");
  363. }
  364. else if (insukindcd == "41") {
  365. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "autm");
  366. }
  367. // 코드 종류와 현재 input 컨트롤에 입력된 코드 값을 전달한다.
  368. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "calcscorcd");
  369. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/mech/calcscorcd"));
  370. // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로를 초기화한다.
  371. model.removeNodeset("/root/hidden/smpic00200/rslt/mech");
  372. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech");
  373. modal("SMPIC00200", 1, 150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  374. var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  375. if (mechSelect == null) { // 선택한 코드가 없는 경우
  376. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  377. return;
  378. }
  379. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  380. model.makeNode("/root/hidden/smpic00200/rslt/picmmech");
  381. model.copyNode("/root/hidden/smpic00200/rslt/picmmech", "/root/temp/picmmech");
  382. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  383. model.setValue("/root/send/mech/calcscorcd", model.getValue("/root/hidden/smpic00200/rslt/picmmech/picmmech_calcscorcd"));
  384. model.refresh();
  385. ]]>
  386. </script>
  387. </input>
  388. <caption id="caption3" class="search_name" style="left:340px; top:9px; width:83px; height:17px; ">EDI코드 :</caption>
  389. <input id="ipt_edicd" ref="/root/send/mech/edicd" class="input_search" navindex="2" inputtype="button" style="left:429px; top:8px; width:110px; height:19px; ">
  390. <script type="javascript" ev:event="onkeypress">
  391. <![CDATA[
  392. if (event.keyCode == "13") { // Enter 입력 시에
  393. if (ipt_edicd.currentText.length > 1) { // 2글자 이상이면
  394. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  395. fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  396. }
  397. }
  398. ]]>
  399. </script>
  400. <script type="javascript" ev:event="onbuttonclick">
  401. <![CDATA[
  402. // 검색기간 시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
  403. // var fromdd = model.getValue("/root/send/clod/fromdd");
  404. // var todd = model.getValue("/root/send/clod/todd");
  405. // if (fromdd) {
  406. // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", fromdd);
  407. // }
  408. // if (todd) {
  409. // model.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", todd);
  410. // }
  411. // if (fromdd == "" && todd == "") {
  412. // modaael.setValue("/root/hidden/smpic00200/judgsrch/con1_dd", getCurrentDate()); // (dateHelper.js) 현재날짜 반환
  413. // }
  414. // 보험유형을 설정한다.
  415. var insukindcd = model.getValue("/root/send/mech/insukind");
  416. if (insukindcd == "11") {
  417. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "insu");
  418. }
  419. else if (insukindcd == "21" || insukindcd == "22") {
  420. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "proc");
  421. }
  422. else if (insukindcd == "31" || insukindcd == "32") {
  423. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "indus");
  424. }
  425. else if (insukindcd == "41") {
  426. model.setValue("/root/hidden/smpic00200/judgsrch/con5_insu", "autm");
  427. }
  428. // 코드 종류와 현재 input 컨트롤에 입력된 코드 값을 전달한다.
  429. model.setValue("/root/hidden/smpic00200/judgsrch/con3_search1", "edicd");
  430. model.setValue("/root/hidden/smpic00200/judgsrch/con4_search2", model.getValue("/root/send/mech/edicd"));
  431. // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로를 초기화한다.
  432. model.removeNodeset("/root/hidden/smpic00200/rslt/mech");
  433. model.removeNodeset("/root/hidden/smpic00200/rslt/picmmech");
  434. modal("SMPIC00200", 1, 150, 150, "SMPIC00200", "root/hidden/smpic00200", "/root/temp", "", "");
  435. var mechSelect = instance1.selectSingleNode("/root/temp/mech");
  436. if (mechSelect == null) { // 선택한 코드가 없는 경우
  437. messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  438. return;
  439. }
  440. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  441. model.makeNode("/root/hidden/smpic00200/rslt/mech");
  442. model.copyNode("/root/hidden/smpic00200/rslt/mech", "/root/temp/mech");
  443. model.removeNodeset("/root/temp"); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  444. if (insukindcd == "11") {
  445. model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
  446. }
  447. else if (insukindcd == "21" || insukindcd == "22") {
  448. model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/procedicd"));
  449. }
  450. else if (insukindcd == "31" || insukindcd == "32") {
  451. model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/inducsedicd"));
  452. }
  453. else if (insukindcd == "41") {
  454. model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/autmbedicd"));
  455. } else {
  456. model.setValue("/root/send/mech/edicd", model.getValue("/root/hidden/smpic00200/rslt/mech/insuedicd"));
  457. }
  458. model.refresh();
  459. ]]>
  460. </script>
  461. </input>
  462. <caption id="caption4" class="search_name" style="left:599px; top:9px; width:87px; height:17px; ">보험유형 :</caption>
  463. <select1 id="cmb_mechinsukind" ref="/root/send/mech/insukind" class="combo_search" navindex="3" appearance="minimal" style="left:689px; top:8px; width:97px; height:19px; ">
  464. <choices>
  465. <itemset nodeset="/root/init/P0008list/P0008[cdid != '51' and cdid != '61']">
  466. <!-- 일반, 외국인 항목을 삭제한다. -->
  467. <label ref="cdnm"/>
  468. <value ref="cdid"/>
  469. </itemset>
  470. </choices>
  471. <script type="javascript" ev:event="xforms-value-changed">
  472. <![CDATA[
  473. var clodList = instance1.selectSingleNode("/root/main/list2/clod");
  474. if (clodList == null) { // 조회된 처방이 없다면
  475. cmb_clodinsukind.select(cmb_mechinsukind.focusIndex);
  476. }
  477. ]]>
  478. </script>
  479. </select1>
  480. <output id="opt_mechinsukind" ref="/root/send/mech/insukind" class="output_fix" style="left:789px; top:8px; width:17px; height:19px; "/>
  481. <caption id="caption5" class="search_name" style="left:826px; top:11px; width:60px; height:17px; ">단가 :</caption>
  482. <input id="inp_ediunitcost" ref="/root/send/mech/ediunitcost" class="input_search" navindex="4" format="#,###" style="left:889px; top:10px; width:90px; height:19px; "/>
  483. <select1 id="cmb_ediunitcostcond" ref="/root/send/mech/ediunitcostcond" class="combo_search" navindex="5" appearance="minimal" style="left:982px; top:10px; width:62px; height:19px; ">
  484. <choices>
  485. <item>
  486. <label>원미만</label>
  487. <value>1</value>
  488. </item>
  489. <item>
  490. <label>원이상</label>
  491. <value>2</value>
  492. </item>
  493. </choices>
  494. </select1>
  495. <line id="line1" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  496. <button id="btn_mechsrch" class="btn1_letter2" navindex="6" style="left:1118px; top:7px; width:56px; height:22px; ">
  497. <caption>조회</caption>
  498. <script type="javascript" ev:event="DOMActivate">
  499. <![CDATA[
  500. fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  501. ]]>
  502. </script>
  503. </button>
  504. </group>
  505. <caption id="caption20" class="tit_2" style="left:5px; top:55px; width:113px; height:14px; ">검색된 코드목록</caption>
  506. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  507. <datagrid id="grd_mechmast" nodeset="/root/main/list1/mech" class="datagrid2" caption="그룹&#xA;싱글^수가코드^EDI코드^산정&#xA;코드^EDI&#xA;코드구분^재행^항목^항목^시작일자^종료일자^수가단가^EDI단가^한글명^준용명" colsep="^" colwidth="30, 97, 80, 30, 54, 30, 28, 22, 66, 66, 66, 66, 300, 285" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:149px; ">
  508. <col ref="grupsnglflag"/>
  509. <col ref="calcscorcd"/>
  510. <col ref="edicd"/>
  511. <col ref="estmmncd"/>
  512. <col disabled="true" ref="edicdflag" type="combo">
  513. <choices>
  514. <itemset nodeset="/root/init/P0131list/P0131">
  515. <label ref="cdnm"/>
  516. <value ref="cdid"/>
  517. </itemset>
  518. </choices>
  519. </col>
  520. <col disabled="true" ref="matractflag" type="combo">
  521. <choices>
  522. <item>
  523. <label>재</label>
  524. <value>1</value>
  525. </item>
  526. <item>
  527. <label>가O</label>
  528. <value>2</value>
  529. </item>
  530. <item>
  531. <label>가X</label>
  532. <value>3</value>
  533. </item>
  534. <item>
  535. <label>약</label>
  536. <value>4</value>
  537. </item>
  538. </choices>
  539. </col>
  540. <col ref="lrg"/>
  541. <col ref="mdl"/>
  542. <col ref="fromdd" format="yyyy-mm-dd"/>
  543. <col ref="todd" format="yyyy-mm-dd"/>
  544. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  545. <col ref="ediuamt" format="#,###" style="text-align:right; "/>
  546. <col ref="hngnm"/>
  547. <col ref="inclnm"/>
  548. <script type="javascript" ev:event="oncopy">
  549. <![CDATA[
  550. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  551. ]]>
  552. </script>
  553. </datagrid>
  554. <group id="grp_ordsrch" style="left:0px; top:234px; width:1194px; height:35px; ">
  555. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  556. <caption id="caption6" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">청구월 :</caption>
  557. <input id="ipt_fromdd" ref="/root/send/clod/clamym" class="input_s_essential" navindex="7" inputtype="date" format="yyyy-mm" style="left:104px; top:8px; width:92px; height:19px; "/>
  558. <caption id="caption8" class="search_name" style="left:340px; top:9px; width:86px; height:17px; ">검색구분 :</caption>
  559. <select1 id="rdo_srchflag" ref="/root/send/clod/srchflag" class="radio_search" navindex="9" appearance="full" cols="3" overflow="visible" style="left:429px; top:11px; width:130px; height:15px; border-style:none; ">
  560. <choices>
  561. <item>
  562. <label>전체</label>
  563. <value>-</value>
  564. </item>
  565. <item>
  566. <label>입원</label>
  567. <value>I</value>
  568. </item>
  569. <item>
  570. <label>외래</label>
  571. <value>O</value>
  572. </item>
  573. </choices>
  574. <script type="javascript" ev:event="xforms-select">
  575. <![CDATA[
  576. if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
  577. var selectedRdoItem = model.getValue("/root/send/clod/srchflag");
  578. if (selectedRdoItem == "" || selectedRdoItem == "-") { // 전체
  579. model.setValue("/root/hidden/base/list2/clod/ioflag","");
  580. } else {
  581. model.setValue("/root/hidden/base/list2/clod/ioflag","ioflag = '"+selectedRdoItem+"'");
  582. }
  583. fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
  584. }
  585. ]]>
  586. </script>
  587. </select1>
  588. <caption id="caption9" class="search_name" style="left:599px; top:9px; width:87px; height:17px; ">보험유형 :</caption>
  589. <select1 id="cmb_clodinsukind" ref="/root/send/clod/insukind" class="combo_search" navindex="10" appearance="minimal" style="left:689px; top:8px; width:97px; height:19px; ">
  590. <choices>
  591. <itemset nodeset="/root/init/P0008list/P0008[cdid != '51' and cdid != '61']">
  592. <!-- 일반, 외국인 항목을 삭제한다. -->
  593. <label ref="cdnm"/>
  594. <value ref="cdid"/>
  595. </itemset>
  596. </choices>
  597. <script type="javascript" ev:event="xforms-select">
  598. <![CDATA[
  599. if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
  600. var selectedCmbItem = model.getValue("/root/send/clod/insukind");
  601. if (selectedCmbItem == "" || selectedCmbItem == "-") { // 전체
  602. model.setValue("/root/hidden/base/list2/clod/insukind","");
  603. } else {
  604. model.setValue("/root/hidden/base/list2/clod/insukind","insukind = '"+selectedCmbItem+"'");
  605. }
  606. fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
  607. }
  608. ]]>
  609. </script>
  610. </select1>
  611. <output id="opt_clodnsukind" ref="/root/send/clod/insukind" class="output_fix" style="left:789px; top:8px; width:17px; height:19px; "/>
  612. <caption id="caption10" class="search_name" style="left:826px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  613. <input id="ipt_pid" ref="/root/send/clod/pid" class="input_search" navindex="11" inputtype="button" format="####" style="left:915px; top:8px; width:97px; height:19px; ">
  614. <script type="javascript" ev:event="onbuttonclick">
  615. <![CDATA[
  616. var ipt_pid = model.getValue("/root/send/clod/pid");
  617. if (ipt_pid) {
  618. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  619. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  620. } else {
  621. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  622. }
  623. modal("SPPMC02500", 1, 150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", "");
  624. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  625. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  626. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  627. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  628. model.setValue("/root/send/clod/pid", srch_pid);
  629. }
  630. model.refresh();
  631. ]]>
  632. </script>
  633. <script type="javascript" ev:event="xforms-value-changed">
  634. <![CDATA[
  635. var pid = model.getValue("/root/send/clod/pid");
  636. // if (pid != "" && pid.length < 8) {
  637. // model.setValue("/root/send/clod/pid", pid.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  638. // model.refresh();
  639. // }
  640. if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
  641. var inputPid = model.getValue("/root/send/clod/pid");
  642. if (inputPid == "" || inputPid == "-") { // 전체
  643. model.setValue("/root/hidden/base/list2/clod/pid","");
  644. } else {
  645. model.setValue("/root/hidden/base/list2/clod/pid","pid = '" + pid + "'");
  646. }
  647. fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
  648. }
  649. ]]>
  650. </script>
  651. <script type="javascript" ev:event="onkeypress">
  652. <![CDATA[
  653. if (event.keyCode == "13") { // Enter 입력 시에
  654. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  655. if (instance1.selectSingleNode("/root/main/list2/clod") != null) { // 처방목록이 조회된 상태임.
  656. var pid = model.getValue("/root/send/clod/pid");
  657. if (pid == "") {
  658. model.setValue("/root/hidden/base/list2/clod/pid","");
  659. } else {
  660. // if (pid.length < 8) {
  661. // model.setValue("/root/send/clod/pid", pid.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  662. // model.refresh();
  663. // }
  664. model.setValue("/root/hidden/base/list2/clod/pid","pid = '" + model.getValue("/root/send/clod/pid") + "'");
  665. }
  666. fGetSelectedOrderData(); // 검색구분(입원/외래), 보험유형, 등록번호 필터링 적용
  667. }
  668. }
  669. ]]>
  670. </script>
  671. </input>
  672. <line id="line2" class="line_4" style="top:7px; x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  673. <button id="btn_ordsrch" class="btn1_letter2" navindex="12" style="left:1118px; top:7px; width:56px; height:22px; ">
  674. <caption>조회</caption>
  675. <script type="javascript" ev:event="DOMActivate">
  676. <![CDATA[
  677. fGetOrdHistList("N"); // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
  678. ]]>
  679. </script>
  680. </button>
  681. </group>
  682. <caption id="caption21" class="tit_2" style="left:5px; top:279px; width:74px; height:13px; ">처방 목록</caption>
  683. <line id="line5" class="line_1" style="x1:0px; y1:294px; x2:1194px; y2:294px; "/>
  684. <datagrid id="grd_clodhist" nodeset="/root/main/list2/clod" class="datagrid2" caption="심사상태^심사상태^I&#xA;O^등록번호^이름^청구년월^청구차수^보험유형^보험유형^처방&#xA;시작일자^처방&#xA;종료일자^줄^그룹코드^수가코드^EDI코드^산정&#xA;의미^행위&#xA;재료^항^목^급&#xA;비^1회량^횟수^1일량&#xA;(일투)^일수^단가^EDI단가^진료과^진료의^clamym^mode^supp&#xA;kind^orddd^spcl&#xA;judgyn^adjt&#xA;resncd^under&#xA;sixyn^mech&#xA;age^seqno^updtdd^toot^hosin&#xA;resncd" colsep="^" colwidth="15, 60, 15, 66, 44, 68, 60, 18, 56, 68, 68, 18, 78, 84, 74, 32, 30, 28, 25, 26, 40, 30, 40, 40, 66, 66, 56, 44, 150, 50, 50, 68, 50, 50, 50, 50, 50, 50, 100, 50" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:299px; width:1194px; height:425px; ">
  685. <col ref="judgendyn"/>
  686. <col disabled="true" ref="judgendyn" type="combo">
  687. <choices>
  688. <itemset nodeset="/root/init/P0151list/P0151">
  689. <label ref="cdnm"/>
  690. <value ref="cdid"/>
  691. </itemset>
  692. </choices>
  693. </col>
  694. <col ref="ioflag"/>
  695. <col ref="pid"/>
  696. <col ref="patnm"/>
  697. <col ref="clamym" format="yyyy-mm"/>
  698. <col ref="clamdg"/>
  699. <col ref="insukind"/>
  700. <col disabled="true" ref="insukind" type="combo">
  701. <choices>
  702. <itemset nodeset="/root/init/P0008list/P0008">
  703. <label ref="cdnm"/>
  704. <value ref="cdid"/>
  705. </itemset>
  706. </choices>
  707. </col>
  708. <col ref="ordfromdd" format="yyyy-mm-dd"/>
  709. <col ref="ordtodd" format="yyyy-mm-dd"/>
  710. <col ref="edilnno"/>
  711. <col ref="grupcalcscorcd"/>
  712. <col ref="snglcalcscorcd"/>
  713. <col ref="basecd"/>
  714. <col ref="estmmncd"/>
  715. <col disabled="true" ref="matractflag" type="combo">
  716. <choices>
  717. <item>
  718. <label>재</label>
  719. <value>1</value>
  720. </item>
  721. <item>
  722. <label>가O</label>
  723. <value>2</value>
  724. </item>
  725. <item>
  726. <label>가X</label>
  727. <value>3</value>
  728. </item>
  729. <item>
  730. <label>약</label>
  731. <value>4</value>
  732. </item>
  733. </choices>
  734. </col>
  735. <col ref="ediitem1"/>
  736. <col ref="ediitem2"/>
  737. <col disabled="true" ref="payflag" type="combo">
  738. <choices>
  739. <item>
  740. <label>급</label>
  741. <value>0</value>
  742. </item>
  743. <item>
  744. <label>100</label>
  745. <value>1</value>
  746. </item>
  747. <item>
  748. <label>비</label>
  749. <value>2</value>
  750. </item>
  751. </choices>
  752. </col>
  753. <col ref="drugqty" format="###.00" maxlength="5.2" style="text-align:right; "/>
  754. <col ref="tims" format="##" maxlength="2" style="text-align:right; "/>
  755. <col ref="daydrugqty" format="###.00" maxlength="10.2" style="text-align:right; "/>
  756. <col ref="dayno" format="##" maxlength="4" style="text-align:right; "/>
  757. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  758. <col ref="ediunitcost" format="#,###" style="text-align:right; "/>
  759. <col disabled="true" ref="orddeptcd" type="combo">
  760. <choices>
  761. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  762. <label ref="nm"/>
  763. <value ref="cd"/>
  764. </itemset>
  765. </choices>
  766. </col>
  767. <col disabled="true" ref="orddrid" type="combo">
  768. <choices>
  769. <itemset nodeset="/root/init/orddrid/orddridlist">
  770. <label ref="nm"/>
  771. <value ref="cd"/>
  772. </itemset>
  773. </choices>
  774. </col>
  775. <col ref="clamkey" type="input" style="background-color:#c0c0c0; "/>
  776. <col ref="mode" type="input" style="background-color:#c0c0c0; "/>
  777. <col ref="suppkind" style="background-color:#c0c0c0; "/>
  778. <col ref="orddd" format="yyyy-mm-dd" style="background-color:#c0c0c0; "/>
  779. <col ref="spcljudgyn" style="background-color:#c0c0c0; "/>
  780. <col ref="adjtresncd" style="background-color:#c0c0c0; "/>
  781. <col ref="undersixageyn" style="background-color:#c0c0c0; "/>
  782. <col ref="mechage" style="background-color:#c0c0c0; "/>
  783. <col ref="seqno" style="background-color:#c0c0c0; "/>
  784. <col ref="updtdd" style="background-color:#c0c0c0; "/>
  785. <col ref="toot" style="background-color:#c0c0c0; "/>
  786. <col ref="hosinresncd" style="background-color:#c0c0c0; "/>
  787. <!-- <script type="javascript" ev:event="onscroll">
  788. <![CDATA[
  789. if (grd_clodhist.vscroll.attribute("max") == grd_clodhist.vscroll.attribute("pos")) {
  790. //alert(grd_clodhist.vscroll.attribute("max") + " / " + grd_clodhist.vscroll.attribute("pos"));
  791. // // end of scroll
  792. model.setValue("/root/send/clod/offset", grd_clodhist.rows - grd_clodhist.fixedRows); // grid의 header row는 제외
  793. submit("TRPID21202");
  794. grd_clodhist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
  795. }
  796. ]]>
  797. </script>
  798. -->
  799. <script type="javascript" ev:event="ondblclick">
  800. <![CDATA[
  801. var row = grd_clodhist.row;
  802. var ioflag = model.getValue("/root/main/list2/clod["+ row +"]/ioflag");
  803. if (ioflag == "I") {
  804. setParameter("smpid20300_auth", "11100000");
  805. modal("SMPID20300", "1", "10", "10", "SMPID20300", "/root/main/list2/clod["+ row +"]/clamym", "/root/send/item1/clbs/clamym", "", ""); // SMPID20300_입원사후심사관리.xrw
  806. }
  807. else if (ioflag == "O") {
  808. setParameter("smpid20500_auth", "11100000");
  809. modal("SMPID20500", "1", "10", "10", "SMPID20500", "/root/main/list2/clod["+ row +"]/clamym", "/root/send/item1/clbs/clamym", "", ""); // SMPID20500_외래사후심사관리.xrw
  810. }
  811. ]]>
  812. </script>
  813. <script type="javascript" ev:event="onentercell">
  814. <![CDATA[
  815. if (grd_clodhist.colType(grd_clodhist.col) == "input") {
  816. grd_clodhist.editCell();
  817. }
  818. ]]>
  819. </script>
  820. <script type="javascript" ev:event="oncopy">
  821. <![CDATA[
  822. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  823. ]]>
  824. </script>
  825. </datagrid>
  826. <button id="btn_batupdt" class="btn2_letter4" style="left:1063px; top:274px; width:64px; height:19px; ">
  827. <caption>일괄수정</caption>
  828. <script type="javascript" ev:event="DOMActivate">
  829. <![CDATA[
  830. alert("업무프로세스 협의후 진행예정");
  831. /*
  832. var send = getGridUpdateData(grd_clodhist);
  833. if (send) {
  834. model.setValue("/root/send/updt", send);
  835. submit("TXPID21201");
  836. if (model.getValue("/root/hidden/base/list2/clod/refresh") == "Y") {
  837. grd_clodhist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  838. model.setValue("/root/send/updt", "");
  839. btn_ordsrch.dispatch("DOMActivate"); // model.setValue("/root/send/clod/offset", "0"); 으로 다시 조회함
  840. }
  841. } else {
  842. messageBox("일괄수정할 처방 목록이", "I004"); ///일괄수정할 처방 목록이 없습니다
  843. }
  844. */
  845. ]]>
  846. </script>
  847. </button>
  848. <button id="btn_excelsave" class="btn2_letter4" style="left:1130px; top:274px; width:64px; height:19px; ">
  849. <caption>엑셀저장</caption>
  850. <script type="javascript" ev:event="DOMActivate">
  851. <![CDATA[
  852. if (grd_clodhist.rows > 1) {
  853. // var isSave = false;
  854. // for (var i = grd_clodhist.fixedRows; i < grd_clodhist.rows; i ++ ) {
  855. // if (grd_clodhist.rowHidden(i) == false) {
  856. // isSave = true;
  857. // i = grd_clodhist.rows;
  858. // }
  859. // }
  860. // if (isSave == false) {
  861. // messageBox("처방 필터를 변경하세요. 엑셀저장할 처방이", "I004"); ///처방 필터를 변경하세요. 엑셀저장할 처방이 없습니다.
  862. // return;
  863. // }
  864. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  865. if (fileName != "") {
  866. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  867. grd_clodhist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  868. }
  869. } else {
  870. messageBox("엑셀저장할 처방이", "I004"); ///엑셀저장할 처방이 없습니다.
  871. }
  872. ]]>
  873. </script>
  874. </button>
  875. <select id="chk_refresh" ref="/root/hidden/base/list2/clod/refresh" class="checkbox_search" overflow="visible" appearance="full" style="left:930px; top:276px; width:130px; height:17px; ">
  876. <choices>
  877. <item>
  878. <label>일괄수정후 다시조회</label>
  879. <value>Y</value>
  880. </item>
  881. </choices>
  882. </select>
  883. </group>
  884. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  885. <button id="btn_init" class="btn4_letter3" style="left:1115px; top:5px; width:68px; height:22px; ">
  886. <caption>초기화</caption>
  887. <script type="javascript" ev:event="DOMActivate">
  888. <![CDATA[
  889. fInitializeAll();
  890. ]]>
  891. </script>
  892. </button>
  893. <line id="line9" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  894. <button id="btn_nextpage" class="btn4_letter5" visibility="hidden" style="left:1015px; top:5px; width:92px; height:22px; ">
  895. <caption>다음페이지</caption>
  896. <script type="javascript" ev:event="DOMActivate">
  897. <![CDATA[
  898. if (grd_clodhist.rows > 1) {
  899. fGetOrdHistList("Y"); // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
  900. }
  901. ]]>
  902. </script>
  903. </button>
  904. </group>
  905. </xhtml:body>
  906. </xhtml:html>