SMPIE04200_재료수가고시작업.xfdl 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIE04200" position="absolute 0 0 1198 783" titletext="재료수가고시작업" onload="SMPIE04200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="재료수가 고시작업" class="tit_1" position="absolute 0 0 136 26"/>
  8. <Div id="group2" anchor="left top right" taborder="1" style="align: top;" class="div_SA" position="absolute 0 26 1195 61">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption41" text="적용일자 :" class="search_name" position="absolute 7 9 94 26" anchor="left top"/>
  12. <Calendar id="ipt_apdd" taborder="1" onkillfocus="group3_group2_ipt_apdd_onkillfocus" class="input_search" position="absolute 97 8 187 27" caption7="[object Static]" mask="yyyy-mm-dd" anchor="left top">
  13. <Static id="caption7"/>
  14. </Calendar>
  15. <Static id="caption4" text="계약번호 :" class="search_name" position="absolute 215 10 314 27" anchor="left top"/>
  16. <MaskEdit id="input1" taborder="2" mask="99999999-9999" class="input_search" position="absolute 307 8 414 27" anchor="left top" autoselect="true" type="string"/>
  17. <Static id="caption3" text="기관선택 :" class="search_name" position="absolute 447 10 546 27" anchor="left top"/>
  18. <Combo id="combo1" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 544 8 684 27" columncount="-1" rowcount="-1" anchor="left top" value="031" text="경북대학교병원" index="0">
  19. <Dataset id="innerdataset">
  20. <ColumnInfo>
  21. <Column id="codecolumn"/>
  22. <Column id="datacolumn"/>
  23. </ColumnInfo>
  24. <Rows>
  25. <Row>
  26. <Col id="codecolumn">031</Col>
  27. <Col id="datacolumn">경북대학교병원</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">032</Col>
  31. <Col id="datacolumn">칠곡경북대학교병원</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">033</Col>
  35. <Col id="datacolumn">경북대학교치과병원</Col>
  36. </Row>
  37. </Rows>
  38. </Dataset>
  39. </Combo>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Static id="caption1" text="작업내역" class="tit_2" position="absolute 0 69 100 85"/>
  44. <Shape id="line1" class="line_10" position="absolute 0 87 1194 90" anchor="left top right"/>
  45. <Grid id="grd_curematlist" taborder="2" binddataset="ds_main_list01_gridcurematlist" useinputpanel="false" position="absolute 0 90 1194 548" anchor="all" onaftersort="group3_grd_curematlist_onaftersort" cellmovingtype="col" cellsizingtype="col">
  46. <Formats>
  47. <Format id="default">
  48. <Columns>
  49. <Column size="30"/>
  50. <Column size="30"/>
  51. <Column size="58"/>
  52. <Column size="100"/>
  53. <Column size="80"/>
  54. <Column size="80"/>
  55. <Column size="50"/>
  56. <Column size="194"/>
  57. <Column size="73"/>
  58. <Column size="100"/>
  59. <Column size="78"/>
  60. <Column size="78"/>
  61. <Column size="73"/>
  62. <Column size="70"/>
  63. <Column size="70"/>
  64. <Column size="70"/>
  65. <Column size="70"/>
  66. <Column size="50"/>
  67. <Column size="70"/>
  68. <Column size="70"/>
  69. <Column size="70"/>
  70. <Column size="70"/>
  71. <Column size="70"/>
  72. <Column size="40"/>
  73. <Column size="68"/>
  74. <Column size="63"/>
  75. <Column size="63"/>
  76. <Column size="70"/>
  77. <Column size="59"/>
  78. <Column size="68"/>
  79. <Column size="30"/>
  80. <Column size="73"/>
  81. <Column size="85"/>
  82. <Column size="75"/>
  83. <Column size="70"/>
  84. <Column size="35"/>
  85. <Column size="0"/>
  86. </Columns>
  87. <Rows>
  88. <Row size="26" band="head"/>
  89. <Row size="25"/>
  90. </Rows>
  91. <Band id="head">
  92. <Cell/>
  93. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="선택"/>
  94. <Cell col="2" text="계약순번"/>
  95. <Cell col="3" colspan="3" text="물품(수가)코드 / 수가EDI / 물류EDI" taborder="undefined"/>
  96. <Cell col="6" text="무산정"/>
  97. <Cell col="7" text="한글명"/>
  98. <Cell col="8" text="미계약"/>
  99. <Cell col="9" text="영문명"/>
  100. <Cell col="10" text="수가시작일"/>
  101. <Cell col="11" text="수가종료일"/>
  102. <Cell col="12" text="계약단가"/>
  103. <Cell col="13" text="현보험가"/>
  104. <Cell col="14" text="상한가"/>
  105. <Cell col="15" text="적용단가"/>
  106. <Cell col="16" text="적용일반가"/>
  107. <Cell col="17" text="급여"/>
  108. <Cell col="18" text="보험가"/>
  109. <Cell col="19" text="자보가"/>
  110. <Cell col="20" text="급여가"/>
  111. <Cell col="21" text="산재가"/>
  112. <Cell col="22" text="일반가"/>
  113. <Cell col="23" text="가산&#13;&#10;수량"/>
  114. <Cell col="24" text="mptype"/>
  115. <Cell col="25" text="typeid"/>
  116. <Cell col="26" text="classid"/>
  117. <Cell col="27" text=" 계약일자"/>
  118. <Cell col="28" text="계약번호"/>
  119. <Cell col="29" text="계약수량"/>
  120. <Cell col="30" text="검수&#13;&#10;여부"/>
  121. <Cell col="31" text="검수일자"/>
  122. <Cell col="32" text="검수번호"/>
  123. <Cell col="33" text="검수순번"/>
  124. <Cell col="34" text="신규적용일자"/>
  125. <Cell col="35" text="오류&#13;&#10;여부"/>
  126. </Band>
  127. <Band id="body">
  128. <Cell celltype="head" expr="currow+1"/>
  129. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:setyn" expr="setyn == 'true' || setyn == '1' ? 1 : 0"/>
  130. <Cell col="2" style="background:EXPR(EXPR(getBgColor1(currow)));" text="bind:purcconseq"/>
  131. <Cell col="3" style="align:left;" text="bind:goodcd"/>
  132. <Cell col="4" style="align:left;background:EXPR(bg1);background2:EXPR(bg1);selectbackground:EXPR(bg1);" text="bind:edicd"/>
  133. <Cell col="5" style="align:left;background:EXPR(bg2);background2:EXPR(bg2);selectbackground:EXPR(bg2);" text="bind:goodedicd"/>
  134. <Cell col="6" displaytype="combo" style="align:center;" text="bind:freeflag" combodataset="ds_grd_freeflag" combocodecol="cdid" combodatacol="cdnm"/>
  135. <Cell col="7" style="align:left;" text="bind:hngnm"/>
  136. <Cell col="8" displaytype="text" edittype="text" style="background:EXPR(bg6);background2:EXPR(bg6);selectbackground:EXPR(bg6);" text="bind:purcmisscd"/>
  137. <Cell col="9" style="align:left;" text="bind:engnm"/>
  138. <Cell col="10" displaytype="date" text="bind:fromdd"/>
  139. <Cell col="11" displaytype="date" text="bind:todd"/>
  140. <Cell col="12" displaytype="number" style="background:EXPR(bg3);background2:EXPR(bg3);selectbackground:EXPR(bg3);" text="bind:congoodunitcost"/>
  141. <Cell col="13" displaytype="number" style="background:EXPR(bg4);background2:EXPR(bg4);selectbackground:EXPR(bg4);" text="bind:insurbpnt"/>
  142. <Cell col="14" displaytype="number" text="bind:unitcost"/>
  143. <Cell col="15" displaytype="number" text="bind:ap_insurbpnt"/>
  144. <Cell col="16" displaytype="number" text="bind:ap_gnrlrbpnt"/>
  145. <Cell col="17" text="bind:payflag"/>
  146. <Cell col="18" displaytype="number" style="background:EXPR(bg4);background2:EXPR(bg4);selectbackground:EXPR(bg4);" text="bind:insurbpnt"/>
  147. <Cell col="19" displaytype="number" style="background:EXPR(bg5);background2:EXPR(bg5);selectbackground:EXPR(bg5);" text="bind:autmbrbpnt"/>
  148. <Cell col="20" displaytype="number" text="bind:procrbpnt"/>
  149. <Cell col="21" displaytype="number" text="bind:inducsrbpnt"/>
  150. <Cell col="22" displaytype="number" text="bind:gnrlrbpnt"/>
  151. <Cell col="23" text="bind:bothaddrate"/>
  152. <Cell col="24" text="bind:mptype"/>
  153. <Cell col="25" text="bind:typeid"/>
  154. <Cell col="26" text="bind:classid"/>
  155. <Cell col="27" displaytype="date" text="bind:purccondd"/>
  156. <Cell col="28" text="bind:purcconno"/>
  157. <Cell col="29" displaytype="number" text="bind:conqty"/>
  158. <Cell col="30" text="bind:chkyn"/>
  159. <Cell col="31" displaytype="date" text="bind:purcchkdd"/>
  160. <Cell col="32" text="bind:purcchkno"/>
  161. <Cell col="33" text="bind:purcchkseq"/>
  162. <Cell col="34" displaytype="date" text="bind:apdd"/>
  163. <Cell col="35" text="bind:erryn"/>
  164. <Cell col="36" text="bind:gubun"/>
  165. </Band>
  166. </Format>
  167. </Formats>
  168. </Grid>
  169. <Button id="button90" taborder="3" text="1. 작업대상조회(적용가, 일반가)" onclick="group3_button90_onclick" class="btn2" position="absolute 433 67 628 86"/>
  170. <Button id="button2" taborder="4" text="2. 수가적용(업데이트)" onclick="group3_button2_onclick" class="btn5" position="absolute 629 67 768 86"/>
  171. <Button id="button4" taborder="5" text="3. 적용일자별 현재수가조회" onclick="group3_button4_onclick" class="btn2" position="absolute 769 67 934 86"/>
  172. <Button id="button5" taborder="6" text="엑셀저장" onclick="group3_button5_onclick" class="btn7" position="absolute 1117 66 1195 85" anchor="top right"/>
  173. <Static id="caption2" text="오류리스트" class="tit_2" position="absolute 0 576 170 592" anchor="left bottom"/>
  174. <Shape id="line2" class="line_10" position="absolute 0 594 1194 597" anchor="left right bottom"/>
  175. <Button id="button6" taborder="7" text="엑셀저장" onclick="group3_button6_onclick" class="btn7" position="absolute 1117 574 1194 593" anchor="right bottom"/>
  176. <Grid id="grd_errlist" taborder="8" binddataset="ds_main_list01_griderrlist" useinputpanel="false" position="absolute 0 597 1194 752" anchor="left right bottom" cellmovingtype="col" cellsizingtype="col">
  177. <Formats>
  178. <Format id="default">
  179. <Columns>
  180. <Column size="30"/>
  181. <Column size="67"/>
  182. <Column size="77"/>
  183. <Column size="77"/>
  184. <Column size="70"/>
  185. <Column size="59"/>
  186. <Column size="80"/>
  187. <Column size="68"/>
  188. <Column size="80"/>
  189. <Column size="500"/>
  190. <Column size="70"/>
  191. <Column size="30"/>
  192. </Columns>
  193. <Rows>
  194. <Row size="26" band="head"/>
  195. <Row size="25"/>
  196. </Rows>
  197. <Band id="head">
  198. <Cell/>
  199. <Cell col="1" text="계약순번"/>
  200. <Cell col="2" text="물품코드"/>
  201. <Cell col="3" text="EDI코드"/>
  202. <Cell col="4" text=" 계약일자"/>
  203. <Cell col="5" text="계약번호"/>
  204. <Cell col="6" text="계약단가"/>
  205. <Cell col="7" text="계약수량"/>
  206. <Cell col="8" text="상한가"/>
  207. <Cell col="9" text="오류내용"/>
  208. <Cell col="10" text="적용일자"/>
  209. <Cell col="11" text="오류&#13;&#10;여부"/>
  210. </Band>
  211. <Band id="body">
  212. <Cell celltype="head" expr="currow+1"/>
  213. <Cell col="1" text="bind:purcconseq"/>
  214. <Cell col="2" style="align:left;" text="bind:goodcd"/>
  215. <Cell col="3" style="align:left;" text="bind:edicd"/>
  216. <Cell col="4" displaytype="date" text="bind:purccondd"/>
  217. <Cell col="5" text="bind:purcconno"/>
  218. <Cell col="6" displaytype="number" text="bind:congoodunitcost"/>
  219. <Cell col="7" displaytype="number" text="bind:conqty"/>
  220. <Cell col="8" displaytype="number" text="bind:unitcost"/>
  221. <Cell col="9" style="align:left;" text="bind:errcmt"/>
  222. <Cell col="10" displaytype="date" text="bind:apdd"/>
  223. <Cell col="11" text="bind:erryn"/>
  224. </Band>
  225. </Format>
  226. </Formats>
  227. </Grid>
  228. <Button id="button1" taborder="9" text="0. 계약번호별 자료조회" onclick="group3_button1_onclick" class="btn2" position="absolute 286 67 432 86"/>
  229. <Static id="caption5" text="수가EDI코드 ↔ 물류EDI코드 불일치" position="absolute 321 552 528 572" anchor="left bottom"/>
  230. <Static id="caption8" text="급여 : 계약단가 ↔ 현보험가 상이, 급여 이외 : 계약단가 ↔ 자보가 불일치" position="absolute 592 552 997 572" anchor="left bottom"/>
  231. <Button id="button3" taborder="10" text="전체선택" onclick="group3_button3_onclick" class="btn2" position="absolute 85 67 149 86" visible="false"/>
  232. <Button id="button7" taborder="11" text="전체해제" onclick="group3_button7_onclick" class="btn2" position="absolute 151 67 215 86" visible="false"/>
  233. <Button id="btnMatrCompare" taborder="12" text="재료 수가 변경 내역" onclick="grp_btn_btnMatrCompare_onclick" class="btn4" visible="false" position="absolute 917 758 1069 780" anchor="right bottom"/>
  234. <Button id="btn_init" taborder="13" text="초기화" onclick="grp_btn_btn_init_onclick" class="btn4" position="absolute 1070 758 1138 780" anchor="right bottom"/>
  235. <Button id="btn_closepredocupopup" taborder="14" text="닫기" class="btn4" position="absolute 1139 758 1195 780" anchor="right bottom" onclick="btn_closepredocupopup_onclick"/>
  236. <Static id="caption7" position="absolute 26 552 289 572" anchor="left bottom" text="급여 + 동일 수가EDI코드 + 계약단가 불일치"/>
  237. <Static id="Static00" position="absolute 6 554 21 569" style="background:#b2ebf4ff;border:1 solid #808080ff ;" anchor="left bottom"/>
  238. <Static id="Static01" position="absolute 301 554 316 569" anchor="left bottom" style="background:#ffc4ebff;border:1 solid #808080ff ;"/>
  239. <Static id="Static02" position="absolute 572 554 587 569" anchor="left bottom" style="background:#9fc93cff;border:1 solid #808080ff ;"/>
  240. <Static id="Static03" position="absolute 1038 554 1053 569" anchor="left bottom" style="background:#ffe08cff;border:1 solid #808080ff ;color:#262626ff;"/>
  241. <Static id="caption00" text="미계약" position="absolute 1058 552 1114 572" anchor="left bottom"/>
  242. </Layout>
  243. </Layouts>
  244. <Objects>
  245. <Dataset id="ds_main_list02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  246. <ColumnInfo/>
  247. </Dataset>
  248. <Dataset id="ds_main_list02_h801" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  249. <ColumnInfo>
  250. <Column id="reptcd" type="STRING" size="256"/>
  251. <Column id="lnno" type="STRING" size="256"/>
  252. <Column id="cmpyno" type="STRING" size="256"/>
  253. <Column id="cmpynm" type="STRING" size="256"/>
  254. <Column id="purcdd" type="STRING" size="256"/>
  255. <Column id="purcqty" type="STRING" size="256"/>
  256. <Column id="purcunitcost" type="STRING" size="256"/>
  257. <Column id="purctotamt" type="STRING" size="256"/>
  258. <Column id="cmpyremark" type="STRING" size="256"/>
  259. <Column id="itemflaglnkno" type="STRING" size="256"/>
  260. </ColumnInfo>
  261. <Rows>
  262. <Row>
  263. <Col id="reptcd"/>
  264. <Col id="lnno"/>
  265. <Col id="cmpyno"/>
  266. <Col id="cmpynm"/>
  267. <Col id="purcdd"/>
  268. <Col id="purcqty"/>
  269. <Col id="purcunitcost"/>
  270. <Col id="purctotamt"/>
  271. <Col id="cmpyremark"/>
  272. <Col id="itemflaglnkno"/>
  273. </Row>
  274. </Rows>
  275. </Dataset>
  276. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  277. <ColumnInfo>
  278. <Column id="apdd" type="STRING" size="256"/>
  279. <Column id="purcconno" type="STRING" size="256"/>
  280. <Column id="appno" type="STRING" size="256"/>
  281. <Column id="instcd" type="STRING" size="256"/>
  282. </ColumnInfo>
  283. <Rows>
  284. <Row>
  285. <Col id="apdd"/>
  286. <Col id="purcconno"/>
  287. <Col id="appno"/>
  288. <Col id="instcd">031</Col>
  289. </Row>
  290. </Rows>
  291. </Dataset>
  292. <Dataset id="ds_main_list01_gridcurematlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_list01_gridcurematlist_oncolumnchanged">
  293. <ColumnInfo>
  294. <Column id="appno" type="STRING" size="256"/>
  295. <Column id="docuno" type="STRING" size="256"/>
  296. <Column id="corpmark" type="STRING" size="256"/>
  297. <Column id="chrgnm" type="STRING" size="256"/>
  298. <Column id="cnfmnm" type="STRING" size="256"/>
  299. <Column id="appyearmnth" type="STRING" size="256"/>
  300. <Column id="repttotcnt" type="STRING" size="256"/>
  301. <Column id="rem" type="STRING" size="256"/>
  302. </ColumnInfo>
  303. <Rows>
  304. <Row>
  305. <Col id="appno"/>
  306. <Col id="docuno"/>
  307. <Col id="corpmark"/>
  308. <Col id="chrgnm"/>
  309. <Col id="cnfmnm"/>
  310. <Col id="appyearmnth"/>
  311. <Col id="repttotcnt"/>
  312. <Col id="rem"/>
  313. </Row>
  314. </Rows>
  315. </Dataset>
  316. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  317. <ColumnInfo/>
  318. </Dataset>
  319. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  320. <ColumnInfo/>
  321. </Dataset>
  322. <Dataset id="ds_hidden_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  323. <ColumnInfo>
  324. <Column id="resultCnt" type="STRING" size="256"/>
  325. </ColumnInfo>
  326. </Dataset>
  327. <Dataset id="ds_main_list01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  328. <ColumnInfo/>
  329. </Dataset>
  330. <Dataset id="ds_main_list01_griderrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  331. <ColumnInfo>
  332. <Column id="reptcd" type="STRING" size="256"/>
  333. <Column id="itemflagno" type="STRING" size="256"/>
  334. <Column id="makecmpynm" type="STRING" size="256"/>
  335. <Column id="item" type="STRING" size="256"/>
  336. <Column id="spec" type="STRING" size="256"/>
  337. <Column id="unit" type="STRING" size="256"/>
  338. <Column id="lnnoremark" type="STRING" size="256"/>
  339. <Column id="avg" type="STRING" size="256"/>
  340. <Column id="fstpurcflag" type="STRING" size="256"/>
  341. <Column id="calcscorcd" type="STRING" size="256"/>
  342. <Column id="edicd" type="STRING" size="256"/>
  343. </ColumnInfo>
  344. <Rows>
  345. <Row>
  346. <Col id="reptcd"/>
  347. <Col id="itemflagno"/>
  348. <Col id="makecmpynm"/>
  349. <Col id="item"/>
  350. <Col id="spec"/>
  351. <Col id="unit"/>
  352. <Col id="lnnoremark"/>
  353. <Col id="avg"/>
  354. <Col id="fstpurcflag"/>
  355. <Col id="calcscorcd"/>
  356. <Col id="edicd"/>
  357. </Row>
  358. </Rows>
  359. </Dataset>
  360. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  361. <ColumnInfo>
  362. <Column id="init" type="STRING" size="256"/>
  363. </ColumnInfo>
  364. <Rows>
  365. <Row>
  366. <Col id="init"/>
  367. </Row>
  368. </Rows>
  369. </Dataset>
  370. <Dataset id="ds_send_list01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  371. <ColumnInfo>
  372. <Column id="gridcurematlist" type="STRING" size="256"/>
  373. </ColumnInfo>
  374. <Rows>
  375. <Row>
  376. <Col id="gridcurematlist"/>
  377. </Row>
  378. </Rows>
  379. </Dataset>
  380. <Dataset id="ds_grd_freeflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  381. <ColumnInfo>
  382. <Column id="cdid" type="STRING" size="256"/>
  383. <Column id="cdnm" type="STRING" size="256"/>
  384. </ColumnInfo>
  385. <Rows>
  386. <Row>
  387. <Col id="cdnm">무산정</Col>
  388. <Col id="cdid">Y</Col>
  389. </Row>
  390. <Row>
  391. <Col id="cdnm">산정</Col>
  392. <Col id="cdid">N</Col>
  393. </Row>
  394. </Rows>
  395. </Dataset>
  396. </Objects>
  397. <Bind>
  398. <BindItem id="item0" compid="group2.ipt_apdd" propid="value" datasetid="ds_send" columnid="apdd"/>
  399. <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send" columnid="purcconno"/>
  400. <BindItem id="item2" compid="group2.combo1" propid="value" datasetid="ds_send" columnid="instcd"/>
  401. </Bind>
  402. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  403. * System Name :
  404. * Job Name :
  405. * Creator :
  406. * Make Date : 2016-10-07
  407. * Description :
  408. *---------------------------------------------------------------------------------------
  409. * Modify Date Modifier Modify Description
  410. *---------------------------------------------------------------------------------------
  411. * 2016-10-07 Live Converter TF->XP
  412. *
  413. *---------------------------------------------------------------------------------------
  414. ****************************************************************************************/
  415. include "com_commonxp::comm_main.xjs";
  416. function SMPIE04200_onload(obj:Form, e:LoadEventInfo) {
  417. frmf_initForm(obj);
  418. grdf_initGrid(grd_curematlist);
  419. grdf_setToolTipBind(grd_curematlist);
  420. grdf_initGrid(grd_errlist);
  421. grdf_setToolTipBind(grd_errlist);
  422. group2.ipt_apdd.value = utlf_getCurrentDate();
  423. //if (sysf_getUserId() == "PAM") {
  424. btnMatrCompare.visible = true;
  425. //}
  426. }
  427. //
  428. // // 신청번호생성 신청일자 Valid Check
  429. // function fDayChk(){
  430. // var appno = ds_send_createappno.getColumn(0, "appno1");
  431. // var dd = utlf_getCurrentDate();
  432. // if(appno != dd){
  433. // var chk = sysf_messageBox("신청일자가 오늘일자와 다릅니다.","Q003");
  434. // if(chk == "6"){
  435. // return true;
  436. // }else{
  437. // return false;
  438. // }
  439. // }
  440. // }
  441. //
  442. // // 전체조회 H803
  443. // function fReSelectAllF080(nowRow) {
  444. //
  445. // // H801조회
  446. // // submit("TRPIE00205");
  447. // var oParam = {};
  448. // oParam.id = "TRPIE00205";
  449. // oParam.service = "edimngtapp.EdiMngt";
  450. // oParam.method = "reqGetH801";
  451. // oParam.inds = "req=ds_";
  452. // oParam.outds = "ds_=gridpiehh801";
  453. // oParam.async = false;
  454. // oParam.callback = "cf_TRPIE00205";
  455. //
  456. // tranf_submit(oParam);
  457. // /*
  458. // function cf_TRPIE00205(sSvcId, nErrorCode, sErrorMsg) {
  459. // if(nErrorCode < 0) return;
  460. // }
  461. // function cf_TRPIE00205(sSvcId, nErrorCode, sErrorMsg) {
  462. // arErrorCode.push(sSvcId, nErrorCode);
  463. // }
  464. // arErrorCode.pop("TRPIE00205") > -1
  465. // arErrorCode.pop("TRPIE00205") < 0
  466. // */
  467. //
  468. //
  469. // grd_piehh801.row = 1;
  470. //
  471. // // H802조회
  472. // var appno = grd_piehh801.valueMatrix(nowRow, grd_piehh801.colRef("appno"));
  473. // if (appno != "") {
  474. // ds_send_appno.setColumn( 0, "appno", appno);
  475. // // submit("TRPIE00202");
  476. // var oParam = {};
  477. // oParam.id = "TRPIE00202";
  478. // oParam.service = "edimngtapp.EdiMngt";
  479. // oParam.method = "reqGetH802";
  480. // oParam.inds = "req=ds_";
  481. // oParam.outds = "ds_=gridpiehh802";
  482. // oParam.async = false;
  483. // oParam.callback = "cf_TRPIE00202";
  484. //
  485. // tranf_submit(oParam);
  486. // /*
  487. // function cf_TRPIE00202(sSvcId, nErrorCode, sErrorMsg) {
  488. // if(nErrorCode < 0) return;
  489. // }
  490. // function cf_TRPIE00202(sSvcId, nErrorCode, sErrorMsg) {
  491. // arErrorCode.push(sSvcId, nErrorCode);
  492. // }
  493. // arErrorCode.pop("TRPIE00202") > -1
  494. // arErrorCode.pop("TRPIE00202") < 0
  495. // */
  496. //
  497. //
  498. //
  499. // // H803조회
  500. // var appno = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("appno"));
  501. // var reptcd = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("reptcd"));
  502. // if (appno != "" && reptcd != "") {
  503. // ds_send_reptcd.setColumn( 0, "appno", appno);
  504. // ds_send_reptcd.setColumn( 0, "reptcd", "");
  505. // // submit("TRPIE00203");
  506. // var oParam = {};
  507. // oParam.id = "TRPIE00203";
  508. // oParam.service = "edimngtapp.EdiMngt";
  509. // oParam.method = "reqGetH803";
  510. // oParam.inds = "req=ds_";
  511. // oParam.outds = "ds_=gridpiehh803";
  512. // oParam.async = false;
  513. // oParam.callback = "cf_TRPIE00203";
  514. //
  515. // tranf_submit(oParam);
  516. // /*
  517. // function cf_TRPIE00203(sSvcId, nErrorCode, sErrorMsg) {
  518. // if(nErrorCode < 0) return;
  519. // }
  520. // function cf_TRPIE00203(sSvcId, nErrorCode, sErrorMsg) {
  521. // arErrorCode.push(sSvcId, nErrorCode);
  522. // }
  523. // arErrorCode.pop("TRPIE00203") > -1
  524. // arErrorCode.pop("TRPIE00203") < 0
  525. // */
  526. //
  527. //
  528. // }
  529. // }
  530. // }
  531. //
  532. // // 입고세부조회
  533. // function fSelectDtlInpt() {
  534. //
  535. // var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
  536. //
  537. // if (reptcd == "") {
  538. // sysf_messageBox("조회할 품목코드를", "C002"); //선택하십시오 !
  539. // } else {
  540. // ds_hidden_sppie00130_h802_cond.clearData(); ds_hidden_sppie00130_h802_cond.addRow();
  541. // ds_hidden_sppie00130_h802_cond.setColumn( 0, "fromdd", utlf_getCurrentDate()); // 검색시작일자
  542. // ds_hidden_sppie00130_h802_cond.setColumn( 0, "todd", utlf_getCurrentDate()); // 검색종료일자
  543. // ds_hidden_sppie00130_h802_cond.setColumn( 0, "srchcond1", "1"); // 검색구분 1:edi, 2:처방코드
  544. // ds_hidden_sppie00130_h802_cond.setColumn( 0, "srchcond2", reptcd); // 검색코드
  545. // ds_hidden_sppie00130_h802_cond.setColumn( 0, "dtlselectyn", "Y"); // 입고상세조회여부
  546. //
  547. // // 입고내역조회 팝업화면
  548. // frmf_modal("SPPIE00130", "SPPIE00130", "ds_hidden_sppie00130_h802_cond""-"ds_init"", "", "1", "10", "10", "", "", "", "", "", "M");
  549. //
  550. // // H803 그리드에 새로 신규추가할 maxrow 찾기
  551. // maxRow = grd_piehh803.rows -1;
  552. // var tmpreptcd = grd_piehh803.valueMatrix(maxRow, grd_piehh803.colRef("reptcd"));
  553. // if (tmpreptcd != "") {
  554. // maxRow = maxRow + 1;
  555. // }
  556. //
  557. // var rsltRow = 1;
  558. // var rsltNode = instance1.selectSingleNode("ds_hidden_sppie00130_h803_rslt");
  559. // if (rsltNode != null) {
  560. // for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
  561. // ds_main_list03_gridpiehh803.setColumn( i, "appno", grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("appno")));
  562. // ds_main_list03_gridpiehh803.setColumn( i, "reptcd", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "reptcd")));
  563. // ds_main_list03_gridpiehh803.setColumn( i, "lnno", "0");
  564. // ds_main_list03_gridpiehh803.setColumn( i, "cmpyno", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "cmpyno")));
  565. // ds_main_list03_gridpiehh803.setColumn( i, "cmpynm", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "cmpynm")));
  566. // ds_main_list03_gridpiehh803.setColumn( i, "purcdd", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcdd")));
  567. // ds_main_list03_gridpiehh803.setColumn( i, "purcqty", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcqty")));
  568. // ds_main_list03_gridpiehh803.setColumn( i, "purcunitcost", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purcunitcost")));
  569. // ds_main_list03_gridpiehh803.setColumn( i, "purctotamt", ds_hidden_sppie00130_h803_rslt_h803.getColumn(rsltRow, "purctotamt")));
  570. // ds_main_list03_gridpiehh803.setColumn( i, "cmpyremark", "-");
  571. // ds_main_list03_gridpiehh803.setColumn( i, "itemflaglnkno", 1);
  572. // rsltRow += 1;
  573. // }
  574. //
  575. // //grd_piehh803.refresh();
  576. //
  577. // }
  578. //
  579. // for (var i = maxRow; i < grd_piehh803.rows; i++) {
  580. // grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
  581. // }
  582. // }
  583. // }
  584. //
  585. // function group3_group2_ipt_apdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  586. //
  587. // //ds_send.setColumn( 0, "todd",ds_send.getColumn(0, "fromdd"));
  588. // //model.refreshpart("ds_send_todd");
  589. //
  590. // }
  591. //
  592. // function group3_grd_curematlist_onaftersort {
  593. //
  594. // group3.grd_curematlist.gridToInstance();
  595. //
  596. // }
  597. //
  598. // 1. 작업대상조회
  599. function group3_button90_onclick(obj:Button, e:ClickEventInfo) {
  600. ds_main_list01_gridcurematlist.clearData(); ds_main_list01_gridcurematlist.addRow();
  601. var apdd = ds_send.getColumn(0, "apdd");
  602. var purcconno = ds_send.getColumn(0, "purcconno");
  603. if(utlf_isNull(apdd)){
  604. sysf_messageBox("적용일을","C001");
  605. group2.ipt_apdd.setFocus();
  606. return false;
  607. }
  608. if(utlf_isNull(purcconno)){
  609. sysf_messageBox("계약번호를","C001");
  610. ipt_purcconno.setFocus();
  611. return false;
  612. }
  613. var oParam = {};
  614. oParam.id = "TRPIE04202";
  615. oParam.service = "edimngtapp.EdiMngt";
  616. oParam.method = "reqGetRsphcontBypurcconno";
  617. oParam.inds = "req=ds_send";
  618. oParam.outds = "ds_main_list01_gridcurematlist=gridcurematlist ds_main_list01_griderrlist=griderrlist";
  619. oParam.async = false;
  620. //oParam.callback = "cf_TRPIE04202";
  621. tranf_submit(oParam);
  622. dsf_setDefaultVal(ds_main_list01_gridcurematlist, "setyn:true");
  623. sysf_messageBox("완료!! 대상선정 정상", "I001"); //I001=처리되었습니다.
  624. fSetBackGround();
  625. }
  626. // 2.수가적용(업데이트)
  627. function group3_button2_onclick(obj:Button, e:ClickEventInfo) {
  628. //group3.grd_curematlist.setCellProprty("body", 9, "background", "#FFFFFF"); grd_curematlist.setCellProperty("body", 9, "background2", "#FFFFFF");
  629. //group3.grd_curematlist.setCellProprty("body", 10, "background", "#FFFFFF"); grd_curematlist.setCellProperty("body", 10, "background2", "#FFFFFF");
  630. // 적용가, 일반가 업데이트
  631. if (ds_main_list01_gridcurematlist.rowcount > 0) {
  632. var ap_insurbpnt = ds_main_list01_gridcurematlist.getColumn(0, "ap_insurbpnt");
  633. if (ap_insurbpnt != "0" && !utlf_isNull(ap_insurbpnt)) {
  634. var oParam = {};
  635. oParam.id = "TXPIE04201";
  636. oParam.service = "edimngtapp.EdiMngt";
  637. oParam.method = "reqExePicmmechHistory";
  638. oParam.inds = "gridcurematlist=ds_main_list01_gridcurematlist:U";
  639. oParam.outds = "ds_=result";
  640. oParam.async = false;
  641. //oParam.callback = "cf_TXPIE04201";
  642. tranf_submit(oParam);
  643. sysf_messageBox("[ 3.적용일자별 현재수가조회] 버튼을 눌러서 확인하세요! 정상", "I001"); //I001=처리되었습니다.
  644. } else {
  645. sysf_messageBox("적용단가가 없거나 내역이 없어서 저장", "E001"); //E001=할 수 없습니다.
  646. }
  647. } else {
  648. sysf_messageBox("저장할 내용이", "I004"); //I004=없습니다.
  649. }
  650. }
  651. // 3. 적용일자별 현재수가조회
  652. function group3_button4_onclick(obj:Button, e:ClickEventInfo) {
  653. ds_main_list01_gridcurematlist.clearData();
  654. var apdd = ds_send.getColumn(0, "apdd");
  655. if(utlf_isNull(apdd)){
  656. sysf_messageBox("적용일을","C001");
  657. group2.ipt_apdd.setFocus();
  658. return false;
  659. }
  660. var oParam = {};
  661. oParam.id = "TRPIE04203";
  662. oParam.service = "edimngtapp.EdiMngt";
  663. oParam.method = "reqGetPicmmechCureMatByApdd";
  664. oParam.inds = "req=ds_send";
  665. oParam.outds = "ds_main_list01_gridcurematlist=gridcurematlist";
  666. oParam.async = false;
  667. //oParam.callback = "cf_TRPIE04203";
  668. tranf_submit(oParam);
  669. }
  670. function group3_button5_onclick(obj:Button, e:ClickEventInfo) {
  671. if(ds_main_list01_gridcurematlist.rowcount > 0)
  672. {
  673. grdf_exportExcel(grd_curematlist, "약가생성자료", "see");
  674. }
  675. else
  676. {
  677. sysf_messageBox("저장할 내역이", "I004");
  678. }
  679. }
  680. function group3_button6_onclick(obj:Button, e:ClickEventInfo) {
  681. if(ds_main_list01_griderrlist.rowcount > 0)
  682. {
  683. grdf_exportExcel(grd_errlist, "재료수가 고시작업 에러리스트", "see");
  684. }
  685. else
  686. {
  687. sysf_messageBox("저장할 내역이", "I004");
  688. }
  689. }
  690. // 0.계약번호별 자료조회
  691. function group3_button1_onclick(obj:Button, e:ClickEventInfo) {
  692. ds_main_list01_gridcurematlist.clearData();
  693. ds_main_list01_gridcurematlist.addRow();
  694. var apdd = ds_send.getColumn(0, "apdd");
  695. var purcconno = ds_send.getColumn(0, "purcconno");
  696. if(utlf_isNull(apdd)){
  697. sysf_messageBox("적용일을","C001");
  698. group2.ipt_apdd.setFocus();
  699. return false;
  700. }
  701. if(utlf_isNull(purcconno)){
  702. sysf_messageBox("계약번호를","C001");
  703. group2.ipt_purcconno.setFocus();
  704. return false;
  705. }
  706. // submit("TRPIE04201");
  707. var oParam = {};
  708. oParam.id = "TRPIE04201";
  709. oParam.service = "edimngtapp.EdiMngt";
  710. oParam.method = "reqGetPurcconno";
  711. oParam.inds = "req=ds_send";
  712. oParam.outds = "ds_main_list01_gridcurematlist=gridcurematlist";
  713. oParam.async = false;
  714. //oParam.callback = "cf_TRPIE04201";
  715. tranf_submit(oParam);
  716. }
  717. function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo) {
  718. ds_main_list01_gridcurematlist.clearData();
  719. ds_main_list01_griderrlist.clearData();
  720. }
  721. function grp_btn_btnMatrCompare_onclick(obj:Button, e:ClickEventInfo) {
  722. frmf_open("SPPIE04210", "SPPIE04210", "", "", "", "", "", "", "", "", "", "", "M");
  723. }
  724. function ds_main_list01_gridcurematlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  725. {
  726. if( e.columnid == "setyn" ){
  727. obj.setColumn(e.row, "setyn", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  728. }
  729. }
  730. function btn_closepredocupopup_onclick(obj:Button, e:ClickEventInfo)
  731. {
  732. this.close();
  733. }
  734. // 배경처리
  735. function fSetBackGround() {
  736. ds_main_list01_gridcurematlist.addColumn("bg1", "string"); // 수가EDI코드
  737. ds_main_list01_gridcurematlist.addColumn("bg2", "string"); // 물류EDI코드
  738. ds_main_list01_gridcurematlist.addColumn("bg3", "string"); // 계약단가
  739. ds_main_list01_gridcurematlist.addColumn("bg4", "string"); // 보험가
  740. ds_main_list01_gridcurematlist.addColumn("bg5", "string"); // 자보단가
  741. ds_main_list01_gridcurematlist.addColumn("bg6", "string"); // 미계약
  742. // 동일코드 중 금액이 다른 데이터 추출처리
  743. var edicd1 = "";
  744. var cost1 = "";
  745. var payflag1 = "";
  746. var edicd2 = "";
  747. var cost2 = "";
  748. var payflag2 = "";
  749. for (var i = 0; i < ds_main_list01_gridcurematlist.rowcount; i++) {
  750. edicd1 = ds_main_list01_gridcurematlist.getColumn(i, "edicd");
  751. cost1 = ds_main_list01_gridcurematlist.getColumn(i, "congoodunitcost");
  752. payflag1 = ds_main_list01_gridcurematlist.getColumn(i, "payflag");
  753. // 1. 계약단가 불일치
  754. if (ds_main_list01_gridcurematlist.getColumn(i, "edicd") != '-') {
  755. for(var j = 1 ; j <= ds_main_list01_gridcurematlist.rowcount ; j++) {
  756. // 동일 로우는 스킵
  757. if (i == j) {
  758. continue;
  759. }
  760. edicd2 = ds_main_list01_gridcurematlist.getColumn(j, "edicd");
  761. cost2 = ds_main_list01_gridcurematlist.getColumn(j, "congoodunitcost");
  762. payflag2 = ds_main_list01_gridcurematlist.getColumn(j, "payflag");
  763. // edi코드가 동일하면서 계약단가가 다른 경우 배경색 표시
  764. // 급여일 때만 체크하도록 수정 by 조중래 20150423
  765. if (payflag1 == '급여' && payflag2 == '급여' && edicd1 == edicd2 && cost1 != cost2) {
  766. // 수가EDI코드 배경
  767. ds_main_list01_gridcurematlist.setColumn(i, "bg1", "#B2EBF4"); // 하늘색
  768. ds_main_list01_gridcurematlist.setColumn(j, "bg1", "#B2EBF4"); // 하늘색
  769. // 계약단가 배경
  770. ds_main_list01_gridcurematlist.setColumn(i, "bg3", "#B2EBF4"); // 하늘색
  771. ds_main_list01_gridcurematlist.setColumn(j, "bg3", "#B2EBF4"); // 하늘색
  772. }
  773. }
  774. }
  775. // 2. EDI코드 불일치
  776. if (edicd1 != ds_main_list01_gridcurematlist.getColumn(i, "goodedicd")) {
  777. // 수가EDI코드 배경
  778. ds_main_list01_gridcurematlist.setColumn(i, "bg1", "#FFC4EB"); // 분홍색
  779. // 물류EDI코드 배경
  780. ds_main_list01_gridcurematlist.setColumn(i, "bg2", "#FFC4EB"); // 분홍색
  781. }
  782. // 3. 금액 불일치(급여 : 계약단가 != 현보험가) 시 배경처리(#9FC93C 연초록색)
  783. if (payflag1 == '급여'
  784. && ds_main_list01_gridcurematlist.getColumn(i, "congoodunitcost") != ds_main_list01_gridcurematlist.getColumn(i, "insurbpnt")) {
  785. ds_main_list01_gridcurematlist.setColumn(i, "bg3", "#9FC93C"); // 연초록색
  786. ds_main_list01_gridcurematlist.setColumn(i, "bg4", "#9FC93C"); // 연초록색
  787. }
  788. // 4. 금액 불일치(급여 이외 : 계약단가 != 자보가) 시 배경처리(#9FC93C 연초록색)
  789. if (payflag1 != '급여'
  790. && ds_main_list01_gridcurematlist.getColumn(i, "congoodunitcost") != ds_main_list01_gridcurematlist.getColumn(i, "autmbrbpnt")) {
  791. ds_main_list01_gridcurematlist.setColumn(i, "bg3", "#9FC93C"); // 연초록색
  792. ds_main_list01_gridcurematlist.setColumn(i, "bg5", "#9FC93C"); // 연초록색
  793. }
  794. // 5. 미계약
  795. if (!utlf_isNull(ds_main_list01_gridcurematlist.getColumn(i, "purcmisscd"))) {
  796. ds_main_list01_gridcurematlist.setColumn(i, "bg6", "#FFE08C"); // 노랑색
  797. }
  798. }
  799. }]]></Script>
  800. </Form>
  801. </FDL>