SMRSD04410_신규재료수가위원회내역(팝업).xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSD04410" position="absolute 0 0 1044 644" titletext="신규재료수가위원회내역(팝업)" oninit="SMRSD04410_oninit" onload="SMRSD04410_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="0" class="div_SA2" position="absolute 0 0 1040 40">
  8. <Layouts>
  9. <Layout>
  10. <Edit id="ipt_newmatrseq" taborder="1" autoselect="true" autoskip="true" class="input_essential" position="absolute 495 9 730 28" anchor="default"/>
  11. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 975 9 1031 31" anchor="default" onclick="group2_btn_search_onclick"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 957 9 963 27" anchor="default"/>
  13. <Static id="cap_newmatrseq" text="수가위원회차수 :" class="search_name" position="absolute 370 10 495 27" anchor="default"/>
  14. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 34 9 120 26" anchor="default"/>
  15. <Combo id="cmb_instcd" taborder="3" class="combo_essential" position="absolute 131 9 256 28" anchor="default"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Static id="caption4" text="물품 리스트" class="tit_2" position="absolute 0 52 113 73"/>
  20. <Static id="caption6" text="보유부서" class="tit_2" position="absolute 650 52 815 73"/>
  21. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 68 600 74"/>
  22. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 650 67 1040 76"/>
  23. <Grid id="grd_rscmnwiclist" taborder="1" binddataset="ds_main_rscmnwiclist" useinputpanel="false" position="absolute 650 73 1040 611" autoenter="select" autofittype="col" cellsizingtype="col">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="24"/>
  28. <Column size="40"/>
  29. <Column size="55"/>
  30. <Column size="60"/>
  31. <Column size="60"/>
  32. <Column size="55"/>
  33. <Column size="90"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="24" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell/>
  43. <Cell col="1" text="순번"/>
  44. <Cell col="2" text="차수"/>
  45. <Cell col="3" text="청구일자"/>
  46. <Cell col="4" text="청구순번"/>
  47. <Cell col="5" text="구매단위"/>
  48. <Cell col="6" text="단가"/>
  49. <Cell col="7" text="기관코드"/>
  50. <Cell col="8" text="물품구분"/>
  51. </Band>
  52. <Band id="body">
  53. <Cell celltype="head"/>
  54. <Cell col="1" displaytype="number" edittype="text" style="align:center middle;" text="bind:newmatrordseq"/>
  55. <Cell col="2" text="bind:newmatrseq"/>
  56. <Cell col="3" text="bind:reqdd"/>
  57. <Cell col="4" text="bind:reqseqno"/>
  58. <Cell col="5" text="bind:purcunit"/>
  59. <Cell col="6" displaytype="number" text="bind:goodunitcost"/>
  60. <Cell col="7" text="bind:instcd"/>
  61. <Cell col="8" text="bind:goodflag"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. <Button id="btn_move" taborder="2" text="적용" class="btn2" position="absolute 605 332 647 351" onclick="btn_move_onclick"/>
  67. <Grid id="grd_rscmnwgdlist" taborder="3" binddataset="ds_main_rscmnwgdlist" useinputpanel="false" position="absolute 0 73 600 611" autoenter="select" autofittype="col" cellsizingtype="col">
  68. <Formats>
  69. <Format id="default">
  70. <Columns>
  71. <Column size="20"/>
  72. <Column size="27"/>
  73. <Column size="0"/>
  74. <Column size="70"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="100"/>
  78. <Column size="100"/>
  79. <Column size="0"/>
  80. <Column size="0"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. <Column size="0"/>
  95. <Column size="0"/>
  96. <Column size="0"/>
  97. <Column size="0"/>
  98. <Column size="0"/>
  99. <Column size="0"/>
  100. <Column size="90"/>
  101. <Column size="0"/>
  102. <Column size="0"/>
  103. <Column size="0"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="80"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. <Column size="0"/>
  119. <Column size="0"/>
  120. <Column size="100"/>
  121. </Columns>
  122. <Rows>
  123. <Row size="24" band="head"/>
  124. <Row size="24"/>
  125. </Rows>
  126. <Band id="head">
  127. <Cell/>
  128. <Cell col="1"/>
  129. <Cell col="2" text="기관코드"/>
  130. <Cell col="3" text="청구일자"/>
  131. <Cell col="4" text="청구순번"/>
  132. <Cell col="5" text="물품구분"/>
  133. <Cell col="6" text="물품명(한)"/>
  134. <Cell col="7" text="물품명(영)"/>
  135. <Cell col="8" text="물품규격"/>
  136. <Cell col="9" text="물품모델"/>
  137. <Cell col="10" text="제조국"/>
  138. <Cell col="11" text="제조회사코드"/>
  139. <Cell col="12" text="최종공급처"/>
  140. <Cell col="13" text="담당자ID"/>
  141. <Cell col="14" text="담당자HP"/>
  142. <Cell col="15" text="담당자전화번호"/>
  143. <Cell col="16" text="입고단위"/>
  144. <Cell col="17" text="사용단위"/>
  145. <Cell col="18" text="청구수량"/>
  146. <Cell col="19" text="단가"/>
  147. <Cell col="20" text="월평균사용량"/>
  148. <Cell col="21" text="사용예정일"/>
  149. <Cell col="22" text="EDI코드"/>
  150. <Cell col="23" text="청구사유및용도"/>
  151. <Cell col="24" text="유사재료사용현황"/>
  152. <Cell col="25" text="타병원사용현황"/>
  153. <Cell col="26" text="신규재료사용시개선점"/>
  154. <Cell col="27" text="비고"/>
  155. <Cell col="28" text="청구부서"/>
  156. <Cell col="29" text="청구부서"/>
  157. <Cell col="30" text="청구자"/>
  158. <Cell col="31" text="청구자원내전화"/>
  159. <Cell col="32" text="부서책임자"/>
  160. <Cell col="33" text="보험여부"/>
  161. <Cell col="34" text="의료적비급여사유"/>
  162. <Cell col="35" text="해당고시"/>
  163. <Cell col="36" text="미결정치료재료"/>
  164. <Cell col="37" text="미결정치료재료신청일"/>
  165. <Cell col="38" text="행위료포함"/>
  166. <Cell col="39" text="심사소견"/>
  167. <Cell col="40" text="진행상태"/>
  168. <Cell col="41" text="대분류코드"/>
  169. <Cell col="42" text="중분류코드"/>
  170. <Cell col="43" text="소분류코드"/>
  171. <Cell col="44" text="물품코드"/>
  172. <Cell col="45" text="동재료 한글명"/>
  173. <Cell col="46" text="동재료 영문명"/>
  174. <Cell col="47" text="동재료 수가코드"/>
  175. <Cell col="48" text="동재료 금액"/>
  176. <Cell col="49" text="수가위원회여부"/>
  177. </Band>
  178. <Band id="body">
  179. <Cell celltype="head" expr="currow+1"/>
  180. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:select" expr="expr:select == 'Y' ? 1 : 0"/>
  181. <Cell col="2" text="bind:instcd"/>
  182. <Cell col="3" style="align:left middle;" text="bind:reqdd"/>
  183. <Cell col="4" text="bind:reqseqno"/>
  184. <Cell col="5" text="bind:goodflag"/>
  185. <Cell col="6" style="align:left middle;" text="bind:goodhngnm"/>
  186. <Cell col="7" style="align:left middle;" text="bind:goodengnm"/>
  187. <Cell col="8" text="bind:goodspec"/>
  188. <Cell col="9" text="bind:goodmodel"/>
  189. <Cell col="10" text="bind:prodplce"/>
  190. <Cell col="11" text="bind:prodcmpycd"/>
  191. <Cell col="12" text="bind:maincustlastsuplplce"/>
  192. <Cell col="13" text="bind:chrgid"/>
  193. <Cell col="14" text="bind:chrgmpphon"/>
  194. <Cell col="15" text="bind:chrgtel"/>
  195. <Cell col="16" text="bind:purcunit"/>
  196. <Cell col="17" text="bind:deliveunit"/>
  197. <Cell col="18" text="bind:reqqty"/>
  198. <Cell col="19" text="bind:goodunitcost"/>
  199. <Cell col="20" text="bind:mmavguseqty"/>
  200. <Cell col="21" text="bind:useschedd"/>
  201. <Cell col="22" text="bind:edicd"/>
  202. <Cell col="23" text="bind:reqresnusge"/>
  203. <Cell col="24" text="bind:smlartymatruseprestcond"/>
  204. <Cell col="25" text="bind:anohospusestat"/>
  205. <Cell col="26" text="bind:newmatrusgeimprvpnt"/>
  206. <Cell col="27" text="bind:reqcmt"/>
  207. <Cell col="28" text="bind:reqdeptcd"/>
  208. <Cell col="29" text="bind:depthngnm"/>
  209. <Cell col="30" text="bind:reqpsnid"/>
  210. <Cell col="31" text="bind:reqdepttel"/>
  211. <Cell col="32" text="bind:reqchrgid"/>
  212. <Cell col="33" text="bind:insuyn"/>
  213. <Cell col="34" text="bind:insuresn"/>
  214. <Cell col="35" text="bind:insucomd"/>
  215. <Cell col="36" text="bind:undecicurematr"/>
  216. <Cell col="37" text="bind:undecicurematrreqdt"/>
  217. <Cell col="38" text="bind:actamtincl"/>
  218. <Cell col="39" text="bind:judgcmt"/>
  219. <Cell col="40" text="bind:newmatrprcsstat"/>
  220. <Cell col="41" text="bind:lrgcd"/>
  221. <Cell col="42" text="bind:mdlcd"/>
  222. <Cell col="43" text="bind:smlcd"/>
  223. <Cell col="44" text="bind:goodcd"/>
  224. <Cell col="45" text="bind:smlartygoodhngnm"/>
  225. <Cell col="46" text="bind:smlartygoodengnm"/>
  226. <Cell col="47" text="bind:calcscorcd"/>
  227. <Cell col="48" text="bind:smlartyamt"/>
  228. <Cell col="49" style="align:left middle;" text="bind:insucommityn"/>
  229. </Band>
  230. </Format>
  231. </Formats>
  232. </Grid>
  233. <Button id="btn_save" taborder="4" text="저장" class="btn2" position="absolute 953 49 995 68" onclick="btn_save_onclick"/>
  234. <Button id="btn_del" taborder="5" text="삭제" class="btn2" position="absolute 997 49 1039 68" onclick="btn_del_onclick"/>
  235. <Shape id="line3" linetype="horizontal" class="line_6" position="absolute 0 612 1040 618"/>
  236. <Button id="btn_cancel" taborder="6" text="닫기" class="btn4" position="absolute 984 616 1040 638" onclick="btn_cancel_onclick"/>
  237. </Layout>
  238. </Layouts>
  239. <Objects>
  240. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  241. <ColumnInfo>
  242. <Column id="instcd" type="STRING" size="256"/>
  243. <Column id="newmatrseq" type="STRING" size="256"/>
  244. <Column id="rscmnwiclist" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. <Rows>
  247. <Row>
  248. <Col id="instcd"/>
  249. <Col id="newmatrseq"/>
  250. <Col id="rscmnwiclist"/>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_main_rscmnwgdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rscmnwgdlist_oncolumnchanged">
  255. <ColumnInfo>
  256. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  257. <Column id="reqdd" type="STRING" size="256" sumtext="청구일자"/>
  258. <Column id="reqseqno" type="STRING" size="256" sumtext="청구순번"/>
  259. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분"/>
  260. <Column id="goodhngnm" type="STRING" size="256" sumtext="물품명(한)"/>
  261. <Column id="goodengnm" type="STRING" size="256" sumtext="물품명(영)"/>
  262. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격"/>
  263. <Column id="goodmodel" type="STRING" size="256" sumtext="물품모델"/>
  264. <Column id="prodplce" type="STRING" size="256" sumtext="제조국"/>
  265. <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드"/>
  266. <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="최종공급처"/>
  267. <Column id="chrgid" type="STRING" size="256" sumtext="담당자ID"/>
  268. <Column id="chrgmpphon" type="STRING" size="256" sumtext="담당자HP"/>
  269. <Column id="chrgtel" type="STRING" size="256" sumtext="담당자전화번호"/>
  270. <Column id="purcunit" type="STRING" size="256" sumtext="입고단위"/>
  271. <Column id="deliveunit" type="STRING" size="256" sumtext="사용단위"/>
  272. <Column id="reqqty" type="BIGDECIMAL" size="256" sumtext="청구수량"/>
  273. <Column id="goodunitcost" type="BIGDECIMAL" size="256" sumtext="단가"/>
  274. <Column id="mmavguseqty" type="BIGDECIMAL" size="256" sumtext="월평균사용량"/>
  275. <Column id="useschedd" type="STRING" size="256" sumtext="사용예정일"/>
  276. <Column id="edicd" type="STRING" size="256" sumtext="EDI코드"/>
  277. <Column id="reqresnusge" type="STRING" size="256" sumtext="청구사유및용도"/>
  278. <Column id="smlartymatruseprestcond" type="STRING" size="256" sumtext="유사재료사용현황"/>
  279. <Column id="anohospusestat" type="STRING" size="256" sumtext="타병원사용현황"/>
  280. <Column id="newmatrusgeimprvpnt" type="STRING" size="256" sumtext="신규재료사용시개선점"/>
  281. <Column id="reqcmt" type="STRING" size="256" sumtext="비고"/>
  282. <Column id="reqdeptcd" type="STRING" size="256" sumtext="청구부서"/>
  283. <Column id="depthngnm" type="STRING" size="256" sumtext="청구부서"/>
  284. <Column id="reqpsnid" type="STRING" size="256" sumtext="청구자"/>
  285. <Column id="reqdepttel" type="STRING" size="256" sumtext="청구자원내전화"/>
  286. <Column id="reqchrgid" type="STRING" size="256" sumtext="부서책임자"/>
  287. <Column id="insuyn" type="STRING" size="256" sumtext="보험여부"/>
  288. <Column id="insuresn" type="STRING" size="256" sumtext="의료적비급여사유"/>
  289. <Column id="insucomd" type="STRING" size="256" sumtext="해당고시"/>
  290. <Column id="undecicurematr" type="STRING" size="256" sumtext="미결정치료재료"/>
  291. <Column id="undecicurematrreqdt" type="STRING" size="256" sumtext="미결정치료재료신청일"/>
  292. <Column id="actamtincl" type="STRING" size="256" sumtext="행위료포함"/>
  293. <Column id="judgcmt" type="STRING" size="256" sumtext="심사소견"/>
  294. <Column id="newmatrprcsstat" type="STRING" size="256" sumtext="신규재료진행상태"/>
  295. <Column id="lrgcd" type="STRING" size="256" sumtext="대분류코드"/>
  296. <Column id="mdlcd" type="STRING" size="256" sumtext="중분류코드"/>
  297. <Column id="smlcd" type="STRING" size="256" sumtext="소분류코드"/>
  298. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드"/>
  299. <Column id="smlartygoodhngnm" type="STRING" size="256" sumtext="동재료 한글명"/>
  300. <Column id="smlartygoodengnm" type="STRING" size="256" sumtext="동재료 영문명"/>
  301. <Column id="calcscorcd" type="STRING" size="256" sumtext="동재료 수가코드"/>
  302. <Column id="smlartyamt" type="BIGDECIMAL" size="256" sumtext="동재료 금액"/>
  303. <Column id="insucommityn" type="STRING" size="256" sumtext="수가위원회여부"/>
  304. <Column id="select" type="STRING" size="256" sumtext="체크박스"/>
  305. </ColumnInfo>
  306. </Dataset>
  307. <Dataset id="ds_main_rscmnwiclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  308. <ColumnInfo>
  309. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  310. <Column id="newmatrseq" type="STRING" size="256" sumtext="수가위원회차수"/>
  311. <Column id="reqdd" type="STRING" size="256" sumtext="청구일자"/>
  312. <Column id="reqseqno" type="STRING" size="256" sumtext="청구순번"/>
  313. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분"/>
  314. <Column id="purcteamcmt" type="STRING" size="256" sumtext="구매팀소견"/>
  315. <Column id="newmatrordseq" type="BIGDECIMAL" size="256" sumtext="수가위원회출력순번"/>
  316. <Column id="newmatremflag" type="STRING" size="256" sumtext="응급처리여부"/>
  317. <Column id="goodunitcost" type="BIGDECIMAL" size="256" sumtext="단가"/>
  318. <Column id="purcunit" type="STRING" size="256" sumtext="구매단윈"/>
  319. <Column id="rsltpurc" type="STRING" size="256" sumtext="수가위원회구입여부결과"/>
  320. <Column id="rsltinsu" type="STRING" size="256" sumtext="수가위원회수가결과"/>
  321. <Column id="select" type="STRING" size="256"/>
  322. </ColumnInfo>
  323. </Dataset>
  324. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  325. </Objects>
  326. <Bind>
  327. <BindItem id="item0" compid="group2.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  328. <BindItem id="item1" compid="group2.ipt_newmatrseq" propid="value" datasetid="ds_send" columnid="newmatrseq"/>
  329. </Bind>
  330. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  331. * System Name :
  332. * Job Name :
  333. * Creator :
  334. * Make Date : 2017-06-19
  335. * Description :
  336. *---------------------------------------------------------------------------------------
  337. * Modify Date Modifier Modify Description
  338. *---------------------------------------------------------------------------------------
  339. * 2017-06-19 Live Converter TF->XP
  340. *
  341. *---------------------------------------------------------------------------------------
  342. ****************************************************************************************/
  343. include "com_commonxp::comm_main.xjs";
  344. include "mis_miscommonxp::MIS.xjs";
  345. function SMRSD04410_oninit(obj:Form, e:InitEventInfo)
  346. {
  347. frmf_initForm(obj);
  348. }
  349. function SMRSD04410_onload(obj:Form, e:LoadEventInfo)
  350. {
  351. grdf_initGrid(grd_rscmnwgdlist);
  352. grdf_initGrid(grd_rscmnwiclist);
  353. grdf_setRowTypeIcon(grd_rscmnwiclist, 0);
  354. try
  355. {
  356. ds_temp.copyData(arg_ds_temp);
  357. }
  358. catch(e)
  359. {
  360. }
  361. fInitialize();
  362. fGetdata();
  363. }
  364. function fInitialize()
  365. {
  366. ds_send.clearData();
  367. ds_send.addRow();
  368. misfGridInit(grd_rscmnwgdlist);
  369. misfGridInit(grd_rscmnwiclist);
  370. misfComboComCdListMulti("Z0007", "group2.cmb_instcd");
  371. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  372. misfMsterDetailSet(grd_rscmnwgdlist, null, "TRRSD04411", "N");
  373. misfMsterDetailSet(grd_rscmnwiclist, null, "TRRSD04412", "Y");
  374. }
  375. function fGetdata()
  376. {
  377. var sInstcd = ds_temp.getColumn(0, "instcd");
  378. var sNewmatrseq = ds_temp.getColumn(0, "newmatrseq");
  379. if(!utlf_isNull(sInstcd))
  380. {
  381. group2.cmb_instcd.value = ds_temp.getColumn(0, "instcd");
  382. group2.cmb_instcd.enable = false;
  383. }
  384. if(!utlf_isNull(sNewmatrseq))
  385. {
  386. group2.ipt_newmatrseq.value = ds_temp.getColumn(0, "newmatrseq");
  387. group2.ipt_newmatrseq.enable = false;
  388. }
  389. if(!utlf_isNull(sInstcd) && !utlf_isNull(sNewmatrseq))
  390. {
  391. group2.btn_search.click();
  392. }
  393. }
  394. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  395. {
  396. arrCompId = new Array("group2.cmb_instcd","group2.ipt_newmatrseq");
  397. frmf_isRequiredControls(arrCompId);
  398. misfMsterDetailRetrieve();
  399. fCheckValue();
  400. }
  401. function fCheckValue()
  402. {
  403. var sNwicLine = ds_main_rscmnwiclist.rowcount;
  404. var sNwgdLine = ds_main_rscmnwgdlist.rowcount;
  405. for(var i = 0; i < sNwicLine ; i++)
  406. {
  407. var sInstcd = ds_main_rscmnwiclist.getColumn(i, "instcd");
  408. var sReqdd = ds_main_rscmnwiclist.getColumn(i, "reqdd");
  409. var sReqseqno = ds_main_rscmnwiclist.getColumn(i, "reqseqno");
  410. var sGoodflag = ds_main_rscmnwiclist.getColumn(i, "goodflag");
  411. for(var j = 0; j < sNwgdLine ; j++)
  412. {
  413. var s_Instcd = ds_main_rscmnwgdlist.getColumn(j, "instcd");
  414. var s_Reqdd = ds_main_rscmnwgdlist.getColumn(j, "reqdd");
  415. var s_Reqseqno = ds_main_rscmnwgdlist.getColumn(j, "reqseqno");
  416. var s_Goodflag = ds_main_rscmnwgdlist.getColumn(j, "goodflag");
  417. if(sInstcd == s_Instcd && sReqdd == s_Reqdd && sReqseqno == s_Reqseqno && sGoodflag == s_Goodflag)
  418. {
  419. ds_main_rscmnwgdlist.deleteRow(j);
  420. }
  421. }
  422. }
  423. }
  424. function ds_main_rscmnwgdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  425. {
  426. if(e.columnid == "select")
  427. {
  428. obj.setColumn(e.row, "select", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  429. }
  430. }
  431. function btn_move_onclick(obj:Button, e:ClickEventInfo)
  432. {
  433. if(ds_main_rscmnwgdlist.rowcount == 0)
  434. {
  435. sysf_messageBox("적용할 내역이","I004");
  436. return;
  437. }
  438. for(var row = 0; row < ds_main_rscmnwgdlist.rowcount; row++)
  439. {
  440. if(ds_main_rscmnwgdlist.getColumn(row, "select") == "Y")
  441. {
  442. var sReqdd = ds_main_rscmnwgdlist.getColumn(row, "reqdd");
  443. var sReqseqno = ds_main_rscmnwgdlist.getColumn(row, "reqseqno");
  444. var sGoodflag = ds_main_rscmnwgdlist.getColumn(row, "goodflag");
  445. var sPurcunit = ds_main_rscmnwgdlist.getColumn(row, "purcunit");
  446. var sGoodunitcost = ds_main_rscmnwgdlist.getColumn(row, "goodunitcost");
  447. var addRow = ds_main_rscmnwiclist.addRow();
  448. ds_main_rscmnwiclist.setColumn(addRow, "instcd", "");
  449. ds_main_rscmnwiclist.setColumn(addRow, "newmatrseq", "");
  450. ds_main_rscmnwiclist.setColumn(addRow, "reqdd", sReqdd);
  451. ds_main_rscmnwiclist.setColumn(addRow, "reqseqno", sReqseqno);
  452. ds_main_rscmnwiclist.setColumn(addRow, "goodflag", sGoodflag);
  453. ds_main_rscmnwiclist.setColumn(addRow, "purcunit", sPurcunit);
  454. ds_main_rscmnwiclist.setColumn(addRow, "goodunitcost", sGoodunitcost);
  455. ds_main_rscmnwiclist.setColumn(addRow, "instcd", group2.cmb_instcd.value);
  456. ds_main_rscmnwiclist.setColumn(addRow, "newmatrseq", group2.ipt_newmatrseq.value);
  457. ds_main_rscmnwiclist.setColumn(addRow, "select", "N");
  458. }
  459. }
  460. }
  461. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  462. {
  463. dsf_setTypeFormat(ds_main_rscmnwiclist, "goodunitcost:FLOAT");
  464. var oParam = {};
  465. oParam.id = "TXRSD04411";
  466. oParam.service = "purcbaseapp.PurcBaseMngt";
  467. oParam.method = "reqSetNewMatrIc";
  468. oParam.inds = "wic=ds_main_rscmnwiclist:u";
  469. oParam.outds = "";
  470. oParam.async = false;
  471. //oParam.callback = "cf_TXRSD04411";
  472. tranf_submit(oParam);
  473. }
  474. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  475. {
  476. misfGridIUD(grd_rscmnwiclist, "D");
  477. }
  478. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  479. {
  480. this.close();
  481. }
  482. ]]></Script>
  483. </Form>
  484. </FDL>