SMPIE04200_재료수가고시작업.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>재료수가고시작업</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <apdd/>
  11. <purcconno/>
  12. <appno/>
  13. <list01>
  14. <gridcurematlist/>
  15. </list01>
  16. <instcd>031</instcd>
  17. </send>
  18. <main>
  19. <list01>
  20. <gridcurematlist>
  21. <appno/>
  22. <docuno/>
  23. <corpmark/>
  24. <chrgnm/>
  25. <cnfmnm/>
  26. <appyearmnth/>
  27. <repttotcnt/>
  28. <rem/>
  29. </gridcurematlist>
  30. <griderrlist>
  31. <reptcd/>
  32. <itemflagno/>
  33. <makecmpynm/>
  34. <item/>
  35. <spec/>
  36. <unit/>
  37. <lnnoremark/>
  38. <avg/>
  39. <fstpurcflag/>
  40. <calcscorcd/>
  41. <edicd/>
  42. </griderrlist>
  43. </list01>
  44. <list02>
  45. <h801>
  46. <reptcd/>
  47. <lnno/>
  48. <cmpyno/>
  49. <cmpynm/>
  50. <purcdd/>
  51. <purcqty/>
  52. <purcunitcost/>
  53. <purctotamt/>
  54. <cmpyremark/>
  55. <itemflaglnkno/>
  56. </h801>
  57. </list02>
  58. </main>
  59. <init>
  60. </init>
  61. <hidden>
  62. <result>
  63. <resultCnt/>
  64. </result>
  65. </hidden>
  66. </root>
  67. </instance>
  68. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  69. <submission id="TRPIE04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  70. <submission id="TRPIE04202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  71. <submission id="TRPIE04203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  72. <submission id="TXPIE04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list01/gridcurematlist" resultref="/root/hidden/result"/>
  73. </model>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. ipt_apdd.value = getCurrentDate();
  77. if (getUserId() == "PAM") {
  78. btnMatrCompare.visible = true;
  79. }
  80. ]]>
  81. </script>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  89. <script type="javascript">
  90. <![CDATA[
  91. // 신청번호생성 신청일자 Valid Check
  92. function fDayChk(){
  93. var appno = model.getValue("/root/send_createappno/appno1");
  94. var dd = getCurrentDate();
  95. if(appno != dd){
  96. var chk = messageBox("신청일자가 오늘일자와 다릅니다.","Q003");
  97. if(chk == "6"){
  98. return true;
  99. }else{
  100. return false;
  101. }
  102. }
  103. }
  104. // 전체조회 H803
  105. function fReSelectAllF080(nowRow) {
  106. // H801조회
  107. submit("TRPIE00205");
  108. grd_piehh801.row = 1;
  109. // H802조회
  110. var appno = grd_piehh801.valueMatrix(nowRow, grd_piehh801.colRef("appno"));
  111. if (appno != "") {
  112. model.setValue("/root/send_appno/appno", appno);
  113. submit("TRPIE00202");
  114. // H803조회
  115. var appno = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("appno"));
  116. var reptcd = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("reptcd"));
  117. if (appno != "" && reptcd != "") {
  118. model.setValue("/root/send_reptcd/appno", appno);
  119. model.setValue("/root/send_reptcd/reptcd", "");
  120. submit("TRPIE00203");
  121. }
  122. }
  123. }
  124. // 입고세부조회
  125. function fSelectDtlInpt() {
  126. var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
  127. if (reptcd == "") {
  128. messageBox("조회할 품목코드를", "C002"); //선택하십시오 !
  129. } else {
  130. model.resetInstanceNode("/root/hidden/sppie00130_h802/cond");
  131. model.setValue("/root/hidden/sppie00130_h802/cond/fromdd", getCurrentDate()); // 검색시작일자
  132. model.setValue("/root/hidden/sppie00130_h802/cond/todd", getCurrentDate()); // 검색종료일자
  133. model.setValue("/root/hidden/sppie00130_h802/cond/srchcond1", "1"); // 검색구분 1:edi, 2:처방코드
  134. model.setValue("/root/hidden/sppie00130_h802/cond/srchcond2", reptcd); // 검색코드
  135. model.setValue("/root/hidden/sppie00130_h802/cond/dtlselectyn", "Y"); // 입고상세조회여부
  136. // 입고내역조회 팝업화면
  137. modal("SPPIE00130", 1, "10", "10", "SPPIE00130", "/root/hidden/sppie00130_h802/cond", "/root/init", "", "");
  138. // H803 그리드에 새로 신규추가할 maxrow 찾기
  139. maxRow = grd_piehh803.rows -1;
  140. var tmpreptcd = grd_piehh803.valueMatrix(maxRow, grd_piehh803.colRef("reptcd"));
  141. if (tmpreptcd != "") {
  142. maxRow = maxRow + 1;
  143. }
  144. var rsltRow = 1;
  145. var rsltNode = instance1.selectSingleNode("/root/hidden/sppie00130_h803/rslt");
  146. if (rsltNode != null) {
  147. for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
  148. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/appno", grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("appno")));
  149. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/reptcd", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/reptcd"));
  150. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/lnno", "0");
  151. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpyno", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/cmpyno"));
  152. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpynm", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/cmpynm"));
  153. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcdd", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcdd"));
  154. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcqty", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcqty"));
  155. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcunitcost", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcunitcost"));
  156. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purctotamt", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purctotamt"));
  157. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpyremark", "-");
  158. model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/itemflaglnkno", 1);
  159. rsltRow += 1;
  160. }
  161. grd_piehh803.refresh();
  162. }
  163. for (var i = maxRow; i < grd_piehh803.rows; i++) {
  164. grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
  165. }
  166. }
  167. }
  168. ]]>
  169. </script>
  170. </xhtml:head>
  171. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  172. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  173. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">재료수가 고시작업</caption>
  174. </group>
  175. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  176. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  177. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  178. <caption id="caption41" class="search_name" style="left:23px; top:9px; width:87px; height:17px; ">적용일자 :</caption>
  179. <input id="ipt_apdd" ref="/root/send/apdd" class="input_search" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:113px; top:8px; width:90px; height:19px; ">
  180. <caption id="caption7"/>
  181. <script type="javascript" ev:event="DOMFocusOut">
  182. <![CDATA[
  183. //model.setValue("/root/send/todd",model.getValue("/root/send/fromdd"));
  184. //model.refreshpart("/root/send/todd");
  185. ]]>
  186. </script>
  187. </input>
  188. <caption id="caption4" class="search_name" style="left:231px; top:10px; width:99px; height:17px; ">계약번호 :</caption>
  189. <input id="input1" ref="/root/send/purcconno" class="input_search" maxlength="12" format="99999999-9999" appearance="input" style="left:323px; top:8px; width:107px; height:19px; "/>
  190. <caption id="caption3" class="search_name" style="left:463px; top:10px; width:99px; height:17px; ">기관선택 :</caption>
  191. <select1 id="combo1" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:560px; top:8px; width:140px; height:19px; ">
  192. <choices>
  193. <item>
  194. <label>경북대학교병원</label>
  195. <value>031</value>
  196. </item>
  197. <item>
  198. <label>칠곡경북대학교병원</label>
  199. <value>032</value>
  200. </item>
  201. <item>
  202. <label>경북대학교치과병원</label>
  203. <value>033</value>
  204. </item>
  205. </choices>
  206. </select1>
  207. </group>
  208. <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:100px; height:14px; ">작업내역</caption>
  209. <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:1194px; y2:75px; "/>
  210. <datagrid id="grd_curematlist" nodeset="/root/main/list01/gridcurematlist" caption="선택^순번^물품(수가)코드 / 수가EDI / 물류EDI^물품(수가)코드 / 수가EDI / 물류EDI^물품(수가)코드 / 수가EDI / 물류EDI^무산정^한글명^미계약^영문명^수가시작일^수가종료일^계약단가^현보험가^상한가^적용단가^적용일반가^급여^보험가^자보가^급여가^산재가^일반가^mptype^typeid^classid^ 계약일자^계약번호^계약수량^검수여부^검수일자^검수번호^검수순번^신규적용일자^오류여부" colsep="^" colwidth="30, 40, 70, 70, 70, 50, 133, 60, 100, 78, 78, 73, 70, 70, 70, 70, 50, 70, 70, 70, 70, 70, 68, 63, 63, 70, 59, 68, 59, 73, 85, 75, 80, 100, 100" dataheight="25" explorerbar="sort" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:80px; width:1194px; height:458px; ">
  211. <col ref="setyn" type="checkbox"/>
  212. <col ref="purcconseq" style="text-align:center; "/>
  213. <col ref="goodcd" style="text-align:left; "/>
  214. <col ref="edicd" style="text-align:left; "/>
  215. <col ref="goodedicd" style="text-align:left; "/>
  216. <col disabled="true" ref="freeflag" type="combo" style="text-align:center; ">
  217. <choices>
  218. <item>
  219. <label>무산정</label>
  220. <value>Y</value>
  221. </item>
  222. <item>
  223. <label>산정</label>
  224. <value>N</value>
  225. </item>
  226. </choices>
  227. </col>
  228. <col ref="hngnm" style="text-align:left; "/>
  229. <col ref="purcmisscd" type="input"/>
  230. <col ref="engnm" visibility="hidden" style="text-align:left; "/>
  231. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  232. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  233. <col ref="congoodunitcost" format="#,###" style="text-align:right; "/>
  234. <col ref="insurbpnt" visibility="hidden" format="#,###" style="text-align:right; "/>
  235. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  236. <col ref="ap_insurbpnt" format="#,###" style="text-align:right; "/>
  237. <col ref="ap_gnrlrbpnt" format="#,###" style="text-align:right; "/>
  238. <col ref="payflag" style="text-align:center; "/>
  239. <col ref="insurbpnt" format="#,###" style="text-align:right; "/>
  240. <col ref="autmbrbpnt" format="#,###" style="left:1431px; top:23px; width:70px; height:23px; text-align:right; "/>
  241. <col ref="procrbpnt" format="#,###" style="text-align:right; "/>
  242. <col ref="inducsrbpnt" format="#,###" style="text-align:right; "/>
  243. <col ref="gnrlrbpnt" format="#,###" style="text-align:right; "/>
  244. <col ref="mptype" style="text-align:center; "/>
  245. <col ref="typeid" style="text-align:center; "/>
  246. <col ref="classid" style="text-align:center; "/>
  247. <col ref="purccondd" format="yyyy-mm-dd" style="text-align:center; "/>
  248. <col ref="purcconno" style="text-align:center; "/>
  249. <col ref="conqty" style="text-align:right; "/>
  250. <col ref="chkyn" style="text-align:center; "/>
  251. <col ref="purcchkdd" format="yyyy-mm-dd" style="text-align:center; "/>
  252. <col ref="purcchkno" style="text-align:center; "/>
  253. <col ref="purcchkseq" style="text-align:center; "/>
  254. <col ref="apdd" format="yyyy-mm-dd" style="text-align:center; "/>
  255. <col ref="erryn" style="text-align:center; "/>
  256. <col ref="gubun" visibility="hidden"/>
  257. <script type="javascript" ev:event="onaftersort">
  258. <![CDATA[
  259. grd_curematlist.gridToInstance();
  260. ]]>
  261. </script>
  262. </datagrid>
  263. <button id="button90" class="btn2_letter15" style="left:429px; top:54px; width:185px; height:19px; ">
  264. <caption>1. 작업대상조회(적용가, 일반가)</caption>
  265. <script type="javascript" ev:event="onclick">
  266. <![CDATA[
  267. model.resetInstanceNode("/root/main/list01/gridcurematlist");
  268. var apdd = model.getValue("/root/send/apdd");
  269. var purcconno = model.getValue("/root/send/purcconno");
  270. if(apdd == ""){
  271. messageBox("적용일을","C001");
  272. model.setFocus("ipt_apdd");
  273. return false;
  274. }
  275. if(purcconno == ""){
  276. messageBox("계약번호를","C001");
  277. model.setFocus("ipt_purcconno");
  278. return false;
  279. }
  280. if( submit("TRPIE04202")) {
  281. messageBox("완료!! 대상선정 정상", "I001"); //I001=처리되었습니다.
  282. }
  283. // grd_curematlist.colstyle(8, "data", "background-color") = "#FFF000";
  284. // grd_curematlist.colstyle(9, "data", "background-color") = "#FFF000";
  285. var edicd1; // EDI코드
  286. var edicd2;
  287. var cost1; // 계약단가
  288. var cost2;
  289. var payflag1; // 급비구분
  290. var payflag2;
  291. var insurbpnt; // 보험단가
  292. var autmbrbpnt; // 자보단가
  293. for(var i = 1 ; i <= grd_curematlist.rows ; i++) {
  294. // 동일코드 중 금액이 다른 데이터 추출처리
  295. edicd1 = grd_curematlist.valueMatrix(i, grd_curematlist.colRef("edicd"));
  296. cost1 = grd_curematlist.valueMatrix(i, grd_curematlist.colRef("congoodunitcost"));
  297. payflag1 = grd_curematlist.valueMatrix(i, grd_curematlist.colRef("payflag"));
  298. if (edicd1 != '-') {
  299. for(var j = 1 ; j <= grd_curematlist.rows ; j++) {
  300. // 동일 로우는 스킵
  301. if (i == j) {
  302. continue;
  303. }
  304. edicd2 = grd_curematlist.valueMatrix(j, grd_curematlist.colRef("edicd"));
  305. cost2 = grd_curematlist.valueMatrix(j, grd_curematlist.colRef("congoodunitcost"));
  306. payflag2 = grd_curematlist.valueMatrix(i, grd_curematlist.colRef("payflag"));
  307. // edi코드가 동일하면서 계약단가가 다른 경우 배경색 표시
  308. // 급여일 때만 체크하도록 수정 by 조중래 20150423
  309. if (payflag1 == '급여' && payflag2 == '급여' && edicd1 == edicd2 && cost1 != cost2) {
  310. grd_curematlist.rowStyle(i, "data", "background-color") = "#B2EBF4"; // 하늘색
  311. grd_curematlist.rowStyle(j, "data", "background-color") = "#B2EBF4"; // 하늘색
  312. }
  313. }
  314. }
  315. // 수가의 EDI와 물류의 EDI코드가 상이한 경우
  316. if(grd_curematlist.valueMatrix(i, grd_curematlist.colRef("edicd"))
  317. != grd_curematlist.valueMatrix(i, grd_curematlist.colRef("goodedicd"))) {
  318. grd_curematlist.rowStyle(i, "all", "background-color") = "#F361A6"; // 분홍색
  319. }
  320. insurbpnt = grd_curematlist.valueMatrix(i, grd_curematlist.colRef("insurbpnt"));
  321. autmbrbpnt = grd_curematlist.valueMatrix(i, grd_curematlist.colRef("autmbrbpnt"));
  322. // 급여 : 계약단가 <> 현보험가 상이할 경우 배경색 표시
  323. // 급여 이외 : 계약단가 <> 자보가 상이할 경우 배경색 표시
  324. if (payflag1 == '급여' && cost1 != insurbpnt) {
  325. grd_curematlist.cellstyle("background-color", i, 12) = "#9FC93C"; // 연초록색
  326. grd_curematlist.cellstyle("background-color", i, 18) = "#9FC93C"; // 연초록색
  327. } else if (payflag1 != '급여' && cost1 != autmbrbpnt) {
  328. grd_curematlist.cellstyle("background-color", i, 12) = "#9FC93C"; // 연초록색
  329. grd_curematlist.cellstyle("background-color", i, 19) = "#9FC93C"; // 연초록색
  330. }
  331. // if(grd_curematlist.valueMatrix(i, grd_curematlist.colRef("gubun")) == "Y" ) {
  332. // grd_curematlist.rowStyle(i, "all", "background-color") = "#FF0000";
  333. // } else {
  334. // grd_curematlist.rowStyle(i, "all", "background-color") = "#FFFFFF";
  335. // }
  336. }
  337. ]]>
  338. </script>
  339. </button>
  340. <button id="button2" class="btn5_letter10" style="left:623px; top:54px; width:130px; height:19px; ">
  341. <caption>2. 수가적용(업데이트)</caption>
  342. <script type="javascript" ev:event="onclick">
  343. <![CDATA[
  344. //model.copyNode("/root/send/list02/h801", "/root/main/list01/gridpiehh801");
  345. // model.setValue("/root/send/list02/h801", model.getValue("/root/main/list01/gridpiehh801"));
  346. grd_curematlist.colstyle(9, "data", "background-color") = "#FFFFFF";
  347. grd_curematlist.colstyle(10, "data", "background-color") = "#FFFFFF";
  348. // 적용가, 일반가 업데이트
  349. if (getNodesetCount("/root/main/list01/gridcurematlist") > 0) {
  350. var ap_insurbpnt = model.getValue("/root/main/list01/gridcurematlist[1]/ap_insurbpnt");
  351. if (ap_insurbpnt != "0" && ap_insurbpnt != "") {
  352. model.resetInstanceNode("/root/send/list01/gridcurematlist");
  353. for (var i = 0; i < grd_curematlist.rows; i++) {
  354. //if (grd_piehh801.valueMatrix(i, grd_piehh801.colRef("chkbox")) == "true") {
  355. grd_curematlist.rowStatus(i) = 2;
  356. //}
  357. }
  358. // for( var i = 1; i < grd_piehh801.rows; i++) {
  359. // grd_piehh801.rowStatus(i) = 2;
  360. // }
  361. model.setValue("/root/send/list01/gridcurematlist", grd_curematlist.getUpdateData());
  362. // alert(grd_curematlist.getUpdateData());
  363. if (submit("TXPIE04201")) {
  364. messageBox("[ 3.적용일자별 현재수가조회] 버튼을 눌러서 확인하세요! 정상", "I001"); //I001=처리되었습니다.
  365. }
  366. } else {
  367. messageBox("적용단가가 없거나 내역이 없어서 저장", "E001"); //E001=할 수 없습니다.
  368. }
  369. } else {
  370. messageBox("저장할 내용이", "I004"); //I004=없습니다.
  371. }
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="button4" class="btn2_letter13" style="left:763px; top:54px; width:163px; height:19px; ">
  376. <caption>3. 적용일자별 현재수가조회</caption>
  377. <script type="javascript" ev:event="onclick">
  378. <![CDATA[
  379. model.resetInstanceNode("/root/main/list01/gridcurematlist");
  380. var apdd = model.getValue("/root/send/apdd");
  381. if(apdd == ""){
  382. messageBox("적용일을","C001");
  383. model.setFocus("ipt_apdd");
  384. return false;
  385. }
  386. submit("TRPIE04203");
  387. ]]>
  388. </script>
  389. </button>
  390. <button id="button5" class="btn2_letter4" style="left:1125px; top:53px; width:64px; height:19px; ">
  391. <caption>엑셀저장</caption>
  392. <script type="javascript" ev:event="DOMActivate">
  393. <![CDATA[
  394. var fileName = window.fileDialog("save", ",", false, "약가생성자료", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  395. if (fileName != "") {
  396. grd_curematlist.saveExcel(fileName, "SheetName", true, true, "", "", "");
  397. }
  398. ]]>
  399. </script>
  400. </button>
  401. <caption id="caption2" class="tit_2" style="left:5px; top:575px; width:165px; height:14px; ">오류리스트</caption>
  402. <line id="line2" class="line_1" style="x1:0px; y1:593px; x2:1194px; y2:592px; "/>
  403. <button id="button6" class="btn2_letter4" style="left:1125px; top:570px; width:64px; height:19px; ">
  404. <caption>엑셀저장</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. var fileName = window.fileDialog("save", ",", false, "재료수가 고시작업 에러리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  408. if (fileName != "") {
  409. grd_errlist.saveExcel(fileName, "SheetName", true, true, "", "", "");
  410. }
  411. ]]>
  412. </script>
  413. </button>
  414. <datagrid id="grd_errlist" nodeset="/root/main/list01/griderrlist" caption="계약순번^물품코드^EDI코드^ 계약일자^계약번호^계약단가^계약수량^상한가^오류내용^적용일자^오류여부" colsep="^" colwidth="67, 77, 77, 70, 59, 80, 68, 80, 463, 97, 92" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:595px; width:1194px; height:135px; ">
  415. <col ref="purcconseq" style="text-align:center; "/>
  416. <col ref="goodcd" style="text-align:left; "/>
  417. <col ref="edicd" style="text-align:left; "/>
  418. <col ref="purccondd" format="yyyy-mm-dd" style="text-align:center; "/>
  419. <col ref="purcconno" style="text-align:center; "/>
  420. <col ref="congoodunitcost" format="#,###" style="text-align:right; "/>
  421. <col ref="conqty" style="text-align:right; "/>
  422. <col ref="unitcost" format="#,###" style="text-align:right; "/>
  423. <col ref="errcmt" style="text-align:left; "/>
  424. <col ref="apdd" style="text-align:center; "/>
  425. <col ref="erryn" style="text-align:center; "/>
  426. </datagrid>
  427. <button id="button1" class="btn2_letter11" style="left:280px; top:54px; width:141px; height:19px; ">
  428. <caption>0. 계약번호별 자료조회</caption>
  429. <script type="javascript" ev:event="onclick">
  430. <![CDATA[
  431. model.resetInstanceNode("/root/main/list01/gridcurematlist");
  432. grd_curematlist.rebuildStyle();
  433. //grd_curematlist.colstyle(10, "data", "background-color") = "#FFFFFF";
  434. //grd_curematlist.colstyle(11, "data", "background-color") = "#FFFFFF";
  435. var apdd = model.getValue("/root/send/apdd");
  436. var purcconno = model.getValue("/root/send/purcconno");
  437. if(apdd == ""){
  438. messageBox("적용일을","C001");
  439. model.setFocus("ipt_apdd");
  440. return false;
  441. }
  442. if(purcconno == ""){
  443. messageBox("계약번호를","C001");
  444. model.setFocus("ipt_purcconno");
  445. return false;
  446. }
  447. submit("TRPIE04201");
  448. ]]>
  449. </script>
  450. </button>
  451. <shape id="rectangle1" appearance="rectangle" style="left:5px; top:543px; width:15px; height:15px; background-color:#B2EBF4; "/>
  452. <shape id="rectangle2" appearance="rectangle" style="left:330px; top:543px; width:15px; height:15px; background-color:#F361A6; "/>
  453. <shape id="rectangle3" appearance="rectangle" style="left:625px; top:543px; width:15px; height:15px; background-color:#9FC93C; "/>
  454. <caption id="caption5" style="left:350px; top:541px; width:240px; height:20px; ">수가의 EDI와 물류의 EDI코드가 상이한 경우</caption>
  455. <caption id="caption7" style="left:25px; top:541px; width:269px; height:20px; ">급여 EDI코드가 동일하면서 계약단가가 다른 경우</caption>
  456. <caption id="caption8" style="left:645px; top:541px; width:374px; height:20px; ">급여 : 계약단가 / 현보험가 상이, 급여 이외 : 계약단가 / 자보가 상이</caption>
  457. <button id="button3" class="btn2_letter4" style="left:79px; top:54px; width:64px; height:19px; ">
  458. <caption>전체선택</caption>
  459. <script type="javascript" ev:event="DOMActivate">
  460. <![CDATA[
  461. var Rows = getNodesetCount("/root/main/list01/gridcurematlist");
  462. if (Rows < 1){
  463. return;
  464. }
  465. for(var i=1; i<=Rows; i++){
  466. model.setValue("/root/main/list01/gridcurematlist["+ i +"]/setyn","true");
  467. }
  468. model.refresh();
  469. ]]>
  470. </script>
  471. </button>
  472. <button id="button7" class="btn2_letter4" style="left:145px; top:54px; width:64px; height:19px; ">
  473. <caption>전체해제</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. var Rows = getNodesetCount("/root/main/list01/gridcurematlist");
  477. if (Rows < 1){
  478. return;
  479. }
  480. for(var i=1; i<=Rows; i++){
  481. model.setValue("/root/main/list01/gridcurematlist["+ i +"]/setyn","false");
  482. }
  483. model.refresh();
  484. ]]>
  485. </script>
  486. </button>
  487. </group>
  488. <group id="grp_btn" scroll="auto" style="left:0px; top:752px; width:1195px; height:27px; ">
  489. <button id="btn_closepredocupopup" class="btn4_letter2" style="left:1127px; top:2px; width:56px; height:22px; ">
  490. <caption>닫기</caption>
  491. <close ev:event="DOMActivate"/>
  492. </button>
  493. <button id="btn_init" class="btn4_letter3" style="left:1056px; top:2px; width:68px; height:22px; ">
  494. <caption>초기화</caption>
  495. <script type="javascript" ev:event="DOMActivate">
  496. <![CDATA[
  497. //model.resetInstanceNode("/root/main/list01/gridpiehh801");
  498. //model.resetInstanceNode("/root/main/list02/gridpiehh802");
  499. //model.resetInstanceNode("/root/main/list03/gridpiehh803");
  500. //grd_piehh801.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  501. //grd_piehh802.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  502. //grd_piehh803.clearStatus();
  503. model.resetInstanceNode("/root/main/list01/gridcurematlist");
  504. grd_curematlist.rebuildStyle();
  505. model.refresh();
  506. ]]>
  507. </script>
  508. </button>
  509. <button id="btnMatrCompare" class="btn4_letter9" visibility="hidden" style="left:912px; top:2px; width:140px; height:22px; ">
  510. <caption>재료 수가 변경 내역</caption>
  511. <script type="javascript" ev:event="DOMActivate">
  512. <![CDATA[
  513. open("SPPIE04210");
  514. ]]>
  515. </script>
  516. </button>
  517. </group>
  518. </xhtml:body>
  519. </xhtml:html>