SMRFE02200_재물조사(비품답사).xfdl 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRFE02200" position="absolute 0 0 1200 782" titletext="재물조사(비품답사)" oninit="SMRFE02200_oninit" onload="SMRFE02200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="재물조사(비품답사)" class="tit_1" position="absolute 0 0 230 25"/>
  8. <Shape id="line7" class="line_6" position="absolute 0 52 1195 58" anchor="left top right"/>
  9. <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1126 31 1194 53" anchor="top right" onclick="btn_init_onclick"/>
  10. <Shape id="line1" class="line_10" position="absolute 0 148 1195 154" anchor="left top right"/>
  11. <Static id="caption21" text="비품 답사(의료 장비)" class="tit_2" position="absolute 0 132 167 153"/>
  12. <Grid id="grd_fixtrscnfmlist" taborder="2" binddataset="ds_main_list_fixtrscnfminfo_fixtrscnfmlist" useinputpanel="false" position="absolute 0 153 1194 505" autoenter="select" cellsizingtype="col" anchor="all" oncellclick="grd_fixtrscnfmlist_oncellclick">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="21" band="left"/>
  17. <Column size="45"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. <Column size="49"/>
  21. <Column size="0"/>
  22. <Column size="69"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="98"/>
  26. <Column size="192"/>
  27. <Column size="88"/>
  28. <Column size="80"/>
  29. <Column size="94"/>
  30. <Column size="119"/>
  31. <Column size="69"/>
  32. <Column size="100"/>
  33. <Column size="149"/>
  34. <Column size="46"/>
  35. <Column size="166"/>
  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. <Cell col="9" text="자산코드"/>
  52. <Cell col="10" text="장비명"/>
  53. <Cell col="11" text="모델명"/>
  54. <Cell col="12" text="구입일자"/>
  55. <Cell col="13" text="거래처"/>
  56. <Cell col="14" text="제조원"/>
  57. <Cell col="15" text="실사결과"/>
  58. <Cell col="16" text="현보유부서코드"/>
  59. <Cell col="17" text="현보유부서명"/>
  60. <Cell col="18" text="이동"/>
  61. <Cell col="19" text="비고"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell celltype="head"/>
  65. <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0"/>
  66. <Cell col="2" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:inptflag"/>
  67. <Cell col="3" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:seqno"/>
  68. <Cell col="4" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:rowno"/>
  69. <Cell col="5" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:execyy"/>
  70. <Cell col="6" displaytype="combo" edittype="combo" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:goodflag" combodataset="ds_cmb_goodflag" combocodecol="value" combodatacol="label"/>
  71. <Cell col="7" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:instcd"/>
  72. <Cell col="8" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:usedeptcd"/>
  73. <Cell col="9" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:fixasetcd"/>
  74. <Cell col="10" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:goodflagengnm"/>
  75. <Cell col="11" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:goodmodel"/>
  76. <Cell col="12" displaytype="date" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:possndd" mask="yyyy/MM/dd" calendardisplaynulltype="nulltext"/>
  77. <Cell col="13" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:suplplcenm"/>
  78. <Cell col="14" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:prodcmpynm"/>
  79. <Cell col="15" displaytype="checkbox" edittype="checkbox" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:orginsprst" expr="expr:orginsprst == 'Y' || orginsprst == '1' ? 1 : 0"/>
  80. <Cell col="16" displaytype="text" edittype="text" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:possndeptcd" expandshow="show"/>
  81. <Cell col="17" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:possndeptnm"/>
  82. <Cell col="18" displaytype="checkbox" edittype="checkbox" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:mvflag" expr="expr:mvflag == 'Y' || mvflag == '1' ? 1 : 0"/>
  83. <Cell col="19" displaytype="text" edittype="text" style="background:EXPR(inptflag == 'X' ? '' : '#ffff99');background2:EXPR(inptflag == 'X' ? '' : '#ffff99');" text="bind:cmt"/>
  84. </Band>
  85. </Format>
  86. </Formats>
  87. </Grid>
  88. <Static id="caption1" text="바코드 물품 정보" class="tit_2" position="absolute 0 525 143 547" anchor="left bottom"/>
  89. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 541 1195 547" anchor="left right bottom"/>
  90. <Button id="button2" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 522 1195 541" anchor="right bottom" onclick="button2_onclick"/>
  91. <Button id="btn_deptmove" taborder="4" text="부서 이동 실시" class="btn2" position="absolute 1098 129 1195 148" anchor="top right" onclick="btn_deptmove_onclick"/>
  92. <Div id="grp_sea" anchor="left top right" taborder="5" class="div_SA2" position="absolute 0 56 1195 116">
  93. <Layouts>
  94. <Layout width="1195" height="63">
  95. <Shape id="line30" linetype="vertical" class="line_4" position="absolute 1109 6 1115 52" anchor="top right"/>
  96. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1125 19 1181 41" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  97. <Combo id="cmb_instcd" taborder="2" innerdataset="ds_init_cmb_instcd" codecolumn="cnstcd" datacolumn="cnstnm" class="combo_default" position="absolute 125 7 295 26"/>
  98. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 30 7 116 24"/>
  99. <Combo id="cmb_goodflag" taborder="3" innerdataset="ds_init_cmb_goodflag" codecolumn="value" datacolumn="label" class="combo_default" position="absolute 125 34 295 53"/>
  100. <Static id="cap_goodflag" text="물품구분 :" class="search_name" position="absolute 30 33 116 50"/>
  101. <Static id="cap_usedeptcd" text="사용부서 :" class="search_name" position="absolute 500 8 589 25"/>
  102. <Edit id="ipt_usedeptnm" taborder="4" class="input_search" position="absolute 758 7 990 26" autoselect="true" autoskip="true" style="align:center middle;"/>
  103. <Button id="btn_deptcd" taborder="5" class="icon_search" position="absolute 735 10 751 26" onclick="grp_sea_btn_deptcd_onclick"/>
  104. <Edit id="ipt_usedeptcd" taborder="6" class="input_search" position="absolute 595 7 730 26" autoselect="true" autoskip="true" style="align:center middle;" onkeydown="grp_sea_ipt_usedeptcd_onkeydown"/>
  105. <Button id="btn_fixasetcd" taborder="7" class="icon_search" position="absolute 735 35 751 51" onclick="grp_sea_btn_fixasetcd_onclick"/>
  106. <Edit id="ipt_fixasetnm" taborder="8" class="input_search" position="absolute 759 33 991 52" autoselect="true" autoskip="true" style="align:center middle;"/>
  107. <Edit id="ipt_fixasetcd" taborder="9" class="input_search" position="absolute 595 34 730 53" autoselect="true" autoskip="true" style="align:center middle;" onkeydown="grp_sea_ipt_fixasetcd_onkeydown"/>
  108. <Static id="cap_fixasetcd" text="자산코드 :" class="search_name" position="absolute 500 34 589 51"/>
  109. </Layout>
  110. </Layouts>
  111. </Div>
  112. <Button id="btn_excel" taborder="6" text="저장" class="btn2" position="absolute 1048 129 1090 148" anchor="top right" onclick="btn_excel_onclick"/>
  113. <Edit id="ipt_fixasetcd_barcd" taborder="7" position="absolute 135 522 255 541" autoselect="true" autoskip="true" anchor="left bottom"/>
  114. <Button id="btn_input" taborder="8" text="입력" class="btn2" position="absolute 260 522 302 541" onclick="btn_input_onclick" anchor="left bottom"/>
  115. <Button id="btn_exec" taborder="9" text="실사 적용" class="btn2" position="absolute 1039 522 1114 541" anchor="right bottom" onclick="btn_exec_onclick"/>
  116. <Button id="btn_del" taborder="10" text="삭제" class="btn2" position="absolute 305 522 347 541" onclick="btn_del_onclick" anchor="left bottom"/>
  117. <Button id="btn_fixasetcd_barcd" taborder="11" text="자산코드 조회" class="btn2" position="absolute 350 522 452 541" onclick="btn_fixasetcd_barcd_onclick" anchor="left bottom"/>
  118. <Grid id="grd_bcfixtrsinfo" taborder="12" binddataset="ds_main_list_bcfixtrsinfo_bcfixtrslist" useinputpanel="false" position="absolute 0 546 1194 776" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left right bottom">
  119. <Formats>
  120. <Format id="default">
  121. <Columns>
  122. <Column size="23" band="left"/>
  123. <Column size="40"/>
  124. <Column size="51"/>
  125. <Column size="0"/>
  126. <Column size="0"/>
  127. <Column size="0"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. <Column size="0"/>
  131. <Column size="100"/>
  132. <Column size="100"/>
  133. <Column size="100"/>
  134. <Column size="241"/>
  135. <Column size="120"/>
  136. <Column size="110"/>
  137. <Column size="164"/>
  138. <Column size="83"/>
  139. </Columns>
  140. <Rows>
  141. <Row size="24" band="head"/>
  142. <Row size="24"/>
  143. </Rows>
  144. <Band id="head">
  145. <Cell/>
  146. <Cell col="1" text="삭제"/>
  147. <Cell col="2" text="순번"/>
  148. <Cell col="3" text="실시년도"/>
  149. <Cell col="4" text="기관코드"/>
  150. <Cell col="5" text="물품코드"/>
  151. <Cell col="6" text="실사결과"/>
  152. <Cell col="7" text="현보유 부서코드"/>
  153. <Cell col="8" text="이동"/>
  154. <Cell col="9" text="부서 코드"/>
  155. <Cell col="10" text="부서명"/>
  156. <Cell col="11" text="장비코드"/>
  157. <Cell col="12" text="장비명"/>
  158. <Cell col="13" text="모델"/>
  159. <Cell col="14" text="구입일자"/>
  160. <Cell col="15" text="거래처"/>
  161. <Cell col="16" text="제조원"/>
  162. </Band>
  163. <Band id="body">
  164. <Cell celltype="head"/>
  165. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0"/>
  166. <Cell col="2" displaytype="date" text="bind:rowno" calendardisplaynulltype="nulltext"/>
  167. <Cell col="3" text="bind:execyy"/>
  168. <Cell col="4" text="bind:instcd"/>
  169. <Cell col="5" text="bind:goodflag"/>
  170. <Cell col="6" text="bind:orginsprst"/>
  171. <Cell col="7" text="bind:possndeptcd"/>
  172. <Cell col="8" text="bind:mvflag"/>
  173. <Cell col="9" text="bind:usedeptcd"/>
  174. <Cell col="10" text="bind:usedeptnm"/>
  175. <Cell col="11" text="bind:fixasetcd"/>
  176. <Cell col="12" text="bind:goodflagengnm"/>
  177. <Cell col="13" text="bind:goodmodel" enable="false"/>
  178. <Cell col="14" displaytype="date" text="bind:possndd" mask="yyyy/MM/dd" calendardisplaynulltype="nulltext"/>
  179. <Cell col="15" text="bind:suplplcenm" enable="false"/>
  180. <Cell col="16" text="bind:prodcmpynm"/>
  181. </Band>
  182. </Format>
  183. </Formats>
  184. </Grid>
  185. </Layout>
  186. </Layouts>
  187. <Objects>
  188. <Dataset id="ds_main_list_fixtrscnfminfo_fixtrscnfmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_fixtrscnfminfo_fixtrscnfmlist_oncolumnchanged">
  189. <ColumnInfo>
  190. <Column id="chk" type="STRING" size="256" sumtext=" 선택 "/>
  191. <Column id="inptflag" type="STRING" size="256" sumtext=" 입력 구분 "/>
  192. <Column id="rowno" type="STRING" size="256" sumtext=" 순번 "/>
  193. <Column id="execyy" type="STRING" size="256" sumtext=" 실시년도 "/>
  194. <Column id="goodflag" type="STRING" size="256" sumtext=" 물품구분 "/>
  195. <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드 "/>
  196. <Column id="usedeptcd" type="STRING" size="256" sumtext=" 사용부서코드 "/>
  197. <Column id="fixasetcd" type="STRING" size="256" sumtext=" 자산코드 "/>
  198. <Column id="seqno" type="STRING" size="256" sumtext=" (자산코드)순번 "/>
  199. <Column id="goodflagengnm" type="STRING" size="256" sumtext=" 장비명 "/>
  200. <Column id="goodmodel" type="STRING" size="256" sumtext=" 모델명 "/>
  201. <Column id="possndd" type="STRING" size="256" sumtext=" 구입일자(DB:취득일자)"/>
  202. <Column id="suplplcenm" type="STRING" size="256" sumtext=" 거래처 "/>
  203. <Column id="prodcmpynm" type="STRING" size="256" sumtext=" 제조원 "/>
  204. <Column id="orginsprst" type="STRING" size="256" sumtext=" 실사결과 "/>
  205. <Column id="possndeptcd" type="STRING" size="256" sumtext=" 현보유 부서코드 "/>
  206. <Column id="possndeptnm" type="STRING" size="256" sumtext=" 현보유 부서명 "/>
  207. <Column id="mvflag" type="STRING" size="256" sumtext=" 이동 "/>
  208. <Column id="cmt" type="STRING" size="256" sumtext=" 비고 "/>
  209. </ColumnInfo>
  210. </Dataset>
  211. <Dataset id="ds_main_list_bcfixtrsinfo_bcfixtrslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_bcfixtrsinfo_bcfixtrslist_oncolumnchanged">
  212. <ColumnInfo>
  213. <Column id="chk" type="STRING" size="256" sumtext=" 선택 "/>
  214. <Column id="inptflag" type="STRING" size="256" sumtext=" 입력 구분 "/>
  215. <Column id="rowno" type="STRING" size="256" sumtext=" 순번 "/>
  216. <Column id="execyy" type="STRING" size="256" sumtext=" 실시년도 "/>
  217. <Column id="goodflag" type="STRING" size="256" sumtext=" 물품구분 "/>
  218. <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드 "/>
  219. <Column id="usedeptcd" type="STRING" size="256" sumtext=" 사용부서코드 "/>
  220. <Column id="usedeptnm" type="STRING" size="256" sumtext=" 사용부서명 "/>
  221. <Column id="fixasetcd" type="STRING" size="256" sumtext=" 자산코드 "/>
  222. <Column id="seqno" type="STRING" size="256" sumtext=" (자산코드)순번 "/>
  223. <Column id="goodflagengnm" type="STRING" size="256" sumtext=" 장비명 "/>
  224. <Column id="goodmodel" type="STRING" size="256" sumtext=" 모델명 "/>
  225. <Column id="possndd" type="STRING" size="256" sumtext=" 구입일자(DB:취득일자)"/>
  226. <Column id="suplplcenm" type="STRING" size="256" sumtext=" 거래처 "/>
  227. <Column id="prodcmpynm" type="STRING" size="256" sumtext=" 제조원 "/>
  228. <Column id="orginsprst" type="STRING" size="256" sumtext=" 실사결과 "/>
  229. <Column id="possndeptcd" type="STRING" size="256" sumtext=" 현보유 부서코드 "/>
  230. <Column id="possndeptnm" type="STRING" size="256" sumtext=" 현보유 부서명 "/>
  231. <Column id="mvflag" type="STRING" size="256" sumtext=" 이동 "/>
  232. <Column id="cmt" type="STRING" size="256" sumtext=" 비고 "/>
  233. </ColumnInfo>
  234. </Dataset>
  235. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
  236. <ColumnInfo>
  237. <Column id="instcd" type="STRING" size="256"/>
  238. <Column id="goodflag" type="STRING" size="256"/>
  239. <Column id="usedeptcd" type="STRING" size="256"/>
  240. <Column id="usedeptnm" type="STRING" size="256"/>
  241. <Column id="fixasetcd" type="STRING" size="256"/>
  242. <Column id="goodflagengnm" type="STRING" size="256"/>
  243. <Column id="infoflag" type="STRING" size="256"/>
  244. </ColumnInfo>
  245. <Rows>
  246. <Row>
  247. <Col id="instcd"/>
  248. <Col id="goodflag"/>
  249. <Col id="usedeptcd"/>
  250. <Col id="usedeptnm"/>
  251. <Col id="fixasetcd"/>
  252. <Col id="goodflagengnm"/>
  253. <Col id="infoflag">M</Col>
  254. </Row>
  255. </Rows>
  256. </Dataset>
  257. <Dataset id="ds_cmb_goodflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  258. <ColumnInfo>
  259. <Column id="label" type="STRING" size="256"/>
  260. <Column id="value" type="STRING" size="256"/>
  261. </ColumnInfo>
  262. <Rows>
  263. <Row>
  264. <Col id="label">의료장비</Col>
  265. <Col id="value">E</Col>
  266. </Row>
  267. <Row>
  268. <Col id="label">일반비품</Col>
  269. <Col id="value">G</Col>
  270. </Row>
  271. </Rows>
  272. </Dataset>
  273. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  274. <Dataset id="ds_send_barcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  275. <ColumnInfo>
  276. <Column id="instcd" type="STRING" size="256"/>
  277. <Column id="fixasetcd" type="STRING" size="256"/>
  278. <Column id="goodflag" type="STRING" size="256"/>
  279. </ColumnInfo>
  280. <Rows>
  281. <Row>
  282. <Col id="instcd"/>
  283. <Col id="fixasetcd"/>
  284. <Col id="goodflag"/>
  285. </Row>
  286. </Rows>
  287. </Dataset>
  288. <Dataset id="ds_main_list_bcfixtrstempinfo_bcfixtrstemplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_list_bcfixtrstempinfo_bcfixtrstemplist_oncolumnchanged">
  289. <ColumnInfo>
  290. <Column id="chk" type="STRING" size="256" sumtext=" 선택 "/>
  291. <Column id="inptflag" type="STRING" size="256" sumtext=" 입력 구분 "/>
  292. <Column id="rowno" type="STRING" size="256" sumtext=" 순번 "/>
  293. <Column id="execyy" type="STRING" size="256" sumtext=" 실시년도 "/>
  294. <Column id="goodflag" type="STRING" size="256" sumtext=" 물품구분 "/>
  295. <Column id="instcd" type="STRING" size="256" sumtext=" 기관코드 "/>
  296. <Column id="usedeptcd" type="STRING" size="256" sumtext=" 사용부서코드 "/>
  297. <Column id="usedeptnm" type="STRING" size="256" sumtext=" 사용부서명 "/>
  298. <Column id="fixasetcd" type="STRING" size="256" sumtext=" 자산코드 "/>
  299. <Column id="seqno" type="STRING" size="256" sumtext=" (자산코드)순번 "/>
  300. <Column id="goodflagengnm" type="STRING" size="256" sumtext=" 장비명 "/>
  301. <Column id="goodmodel" type="STRING" size="256" sumtext=" 모델명 "/>
  302. <Column id="possndd" type="STRING" size="256" sumtext=" 구입일자(DB:취득일자)"/>
  303. <Column id="suplplcenm" type="STRING" size="256" sumtext=" 거래처 "/>
  304. <Column id="prodcmpynm" type="STRING" size="256" sumtext=" 제조원 "/>
  305. <Column id="orginsprst" type="STRING" size="256" sumtext=" 실사결과 "/>
  306. <Column id="possndeptcd" type="STRING" size="256" sumtext=" 현보유 부서코드 "/>
  307. <Column id="possndeptnm" type="STRING" size="256" sumtext=" 현보유 부서명 "/>
  308. <Column id="mvflag" type="STRING" size="256" sumtext=" 이동 "/>
  309. <Column id="cmt" type="STRING" size="256" sumtext=" 비고 "/>
  310. </ColumnInfo>
  311. </Dataset>
  312. </Objects>
  313. <Bind>
  314. <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  315. <BindItem id="item1" compid="grp_sea.cmb_goodflag" propid="value" datasetid="ds_send_search" columnid="goodflag"/>
  316. <BindItem id="item2" compid="grp_sea.ipt_usedeptcd" propid="value" datasetid="ds_send_search" columnid="usedeptcd"/>
  317. <BindItem id="item3" compid="grp_sea.ipt_usedeptnm" propid="value" datasetid="ds_send_search" columnid="usedeptnm"/>
  318. <BindItem id="item4" compid="grp_sea.ipt_fixasetcd" propid="value" datasetid="ds_send_search" columnid="fixasetcd"/>
  319. <BindItem id="item5" compid="grp_sea.ipt_fixasetnm" propid="value" datasetid="ds_send_search" columnid="goodflagengnm"/>
  320. <BindItem id="item6" compid="ipt_fixasetcd_barcd" propid="value" datasetid="ds_send_barcdinfo" columnid="fixasetcd"/>
  321. </Bind>
  322. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  323. * System Name :
  324. * Job Name :
  325. * Creator :
  326. * Make Date : 2017-06-19
  327. * Description :
  328. *---------------------------------------------------------------------------------------
  329. * Modify Date Modifier Modify Description
  330. *---------------------------------------------------------------------------------------
  331. * 2017-06-19 Live Converter TF->XP
  332. *
  333. *---------------------------------------------------------------------------------------
  334. ****************************************************************************************/
  335. include "com_commonxp::comm_main.xjs";
  336. include "mis_miscommonxp::MIS.xjs";
  337. include "mis_miscommonxp::RSZ001.xjs";
  338. function SMRFE02200_oninit(obj:Form, e:InitEventInfo)
  339. {
  340. frmf_initForm(obj);
  341. }
  342. function SMRFE02200_onload(obj:Form, e:LoadEventInfo)
  343. {
  344. grdf_initGrid(grd_bcfixtrsinfo);
  345. grdf_setRowTypeIcon(grd_bcfixtrsinfo, 0);
  346. grdf_initGrid(grd_fixtrscnfmlist);
  347. grdf_setRowTypeIcon(grd_fixtrscnfmlist, 0);
  348. fInitialize();
  349. }
  350. function fInitialize()
  351. {
  352. rszfGoodFlagListByPgmGubn(grp_sea.cmb_goodflag,"2","N");
  353. misfComboComCdList('Z0007', grp_sea.cmb_instcd);
  354. ds_send_search.enableevent = false;
  355. ds_send_search.updatecontrol = false;
  356. grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  357. grp_sea.ipt_usedeptcd.value = sysf_getUserInfo("dutplcecd");
  358. grp_sea.ipt_usedeptnm.value = sysf_getUserInfo("dutplcenm");
  359. ds_send_search.updatecontrol = true;
  360. ds_send_search.enableevent = true;
  361. ds_main_list_bcfixtrsinfo_bcfixtrslist.clearData();
  362. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.clearData();
  363. }
  364. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  365. {
  366. if(e.columnid == "usedeptcd")
  367. {
  368. var objFocus = this.getFocus();
  369. grp_sea.ipt_usedeptcd.value = e.newvalue;
  370. grp_sea.ipt_usedeptcd.setFocus();
  371. if(utlf_isNull(e.newvalue))
  372. {
  373. grp_sea.ipt_usedeptnm.value = "";
  374. }
  375. else
  376. {
  377. misfValidationCheck("02", "", "usedeptcd,usedeptnm");
  378. }
  379. objFocus.setFocus();
  380. }
  381. if(e.columnid == "usedeptnm")
  382. {
  383. var objFocus = this.getFocus();
  384. grp_sea.ipt_usedeptnm.value = e.newvalue;
  385. grp_sea.ipt_usedeptnm.setFocus();
  386. if(utlf_isNull(e.newvalue))
  387. {
  388. grp_sea.ipt_usedeptcd.value = "";
  389. }
  390. else
  391. {
  392. misfValidationCheck("02", "", "usedeptcd,usedeptnm");
  393. }
  394. objFocus.setFocus();
  395. }
  396. if(e.columnid == "fixasetcd")
  397. {
  398. var objFocus = this.getFocus();
  399. grp_sea.ipt_fixasetcd.value = e.newvalue;
  400. grp_sea.ipt_fixasetcd.setFocus();
  401. if(!utlf_isNull(e.newvalue))
  402. {
  403. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm", "fixasetcd," + grp_sea.cmb_instcd.value + "," + e.newvalue, "", "fixasetcd,goodflagengnm",
  404. grp_sea.ipt_fixasetcd, "SPRSD00240", "instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
  405. }
  406. else
  407. {
  408. grp_sea.ipt_fixasetnm.value = "";
  409. }
  410. objFocus.setFocus();
  411. }
  412. if(e.columnid == "goodflagengnm")
  413. {
  414. var objFocus = this.getFocus();
  415. grp_sea.ipt_fixasetnm.value = e.newvalue;
  416. grp_sea.ipt_fixasetnm.setFocus();
  417. if(!utlf_isNull(e.newvalue))
  418. {
  419. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm", "goodflagengnm," + grp_sea.cmb_instcd.value + "," + e.newvalue, "", "fixasetcd,goodflagengnm",
  420. grp_sea.ipt_fixasetnm, "SPRSD00240", "instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
  421. }
  422. else
  423. {
  424. grp_sea.ipt_fixasetcd.value = "";
  425. }
  426. objFocus.setFocus();
  427. }
  428. }
  429. function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
  430. {
  431. var recv_list = "usedeptcd,usedeptnm";
  432. misfOpenPopUpList("02", grp_sea.ipt_usedeptcd,"", recv_list, ds_send_search.getColumn(0, "instcd"), "instcd") ;
  433. }
  434. function grp_sea_btn_fixasetcd_onclick(obj:Button, e:ClickEventInfo)
  435. {
  436. var temp = "fixasetcd,goodflagengnm";
  437. rszfOpenPopUpListByWndName(grp_sea.ipt_fixasetcd,"", temp, "SPRSD00240","instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
  438. }
  439. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  440. {
  441. arrCompId = new Array("grp_sea.cmb_instcd","grp_sea.cmb_goodflag","grp_sea.ipt_usedeptcd");
  442. if(!frmf_isRequiredControls(arrCompId)) return;
  443. var oParam = {};
  444. oParam.id = "TRRFE02201";
  445. oParam.service = "purcbaseapp.CalcScorTrsmMngt";
  446. oParam.method = "reqGetFixtrsCnfmList";
  447. oParam.inds = "req=ds_send_search";
  448. oParam.outds = "ds_main_list_fixtrscnfminfo_fixtrscnfmlist=fixtrscnfmlist";
  449. oParam.async = false;
  450. //oParam.callback = "cf_TRRFE02201";
  451. tranf_submit(oParam);
  452. }
  453. function ds_main_list_fixtrscnfminfo_fixtrscnfmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  454. {
  455. if(e.columnid == "chk")
  456. {
  457. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  458. }
  459. if(e.columnid == "orginsprst")
  460. {
  461. obj.setColumn(e.row, "orginsprst", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  462. }
  463. if(e.columnid == "mvflag")
  464. {
  465. obj.setColumn(e.row, "mvflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  466. }
  467. }
  468. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  469. {
  470. fInitialize();
  471. }
  472. function grd_fixtrscnfmlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  473. {
  474. var cur_row = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition;
  475. var orginsprst = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "orginsprst");
  476. var inptflag = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "inptflag");
  477. var chk = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "chk");
  478. if (e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","orginsprst") && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","possndeptcd")
  479. && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","mvflag") && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","cmt")
  480. && e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body","chk"))
  481. {
  482. return;
  483. }
  484. if (inptflag == "R")
  485. {
  486. if (e.cell != grd_fixtrscnfmlist.getBindCellIndex("Body", "chk"))
  487. {
  488. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
  489. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "");
  490. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
  491. sysf_messageBox("미입력된 건이므로 수정" ,"E001");
  492. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "orginsprst", "N");
  493. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "mvflag", "N");
  494. }
  495. if (chk == "Y")
  496. {
  497. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
  498. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "i");
  499. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
  500. }
  501. else
  502. {
  503. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
  504. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "");
  505. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
  506. }
  507. return;
  508. }
  509. else
  510. {
  511. if (e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "chk"))
  512. {
  513. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "chk", "N");
  514. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
  515. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(cur_row, "");
  516. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
  517. }
  518. }
  519. if (ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition < 0)
  520. {
  521. return;
  522. }
  523. if (!( e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "mvflag") || e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "possndeptcd")))
  524. {
  525. return;
  526. }
  527. if (e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "mvflag"))
  528. {
  529. if (orginsprst == "Y")
  530. {
  531. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition, "mvflag", "N");
  532. sysf_messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
  533. return;
  534. }
  535. if (String(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition, "possndeptcd")).length == 0)
  536. {
  537. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowposition,"mvflag", "N");
  538. sysf_messageBox("현사용부서를" ,"C001");
  539. return;
  540. }
  541. }
  542. if (e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "possndeptcd"))
  543. {
  544. if (orginsprst == "Y")
  545. {
  546. sysf_messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
  547. return;
  548. }
  549. else
  550. {
  551. if(e.cell == grd_fixtrscnfmlist.getBindCellIndex("Body", "possndeptcd"))
  552. {
  553. var recv_list = "possndeptcd,possndeptnm";
  554. rpbfOpenDeptCdHelp(grd_fixtrscnfmlist,recv_list, ds_send_search.getColumn(0, "instcd"), "instcd");
  555. if (ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "usedeptcd") == ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(cur_row, "possndeptcd"))
  556. {
  557. sysf_messageBox("사용부서와 현보유부서가 일치하여 변경할 수","I004");
  558. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "possndeptcd", "");
  559. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setColumn(cur_row, "possndeptnm", "");
  560. return;
  561. }
  562. }
  563. }
  564. }
  565. grd_fixtrscnfmlist.setCellPos(17);
  566. grd_fixtrscnfmlist.showEditor(true);
  567. }
  568. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  569. {
  570. var chk;
  571. for (var i = 0; i < ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowcount; i++)
  572. {
  573. chk = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "chk");
  574. inptflag = ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "inptflag");
  575. if (chk == "Y" && inptflag == "R")
  576. {
  577. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
  578. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(i, "i");
  579. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
  580. }
  581. }
  582. var retMes = sysf_messageBox("저장 하시겠습니까?", "Q999");
  583. if ( retMes != 6)
  584. {
  585. return;
  586. }
  587. dsf_makeValue(ds_send, "savetype", "string", "S", 0);
  588. for (var i = 0; i < ds_main_list_fixtrscnfminfo_fixtrscnfmlist.rowcount; i++)
  589. {
  590. if (ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "inptflag") == "R" && ds_main_list_fixtrscnfminfo_fixtrscnfmlist.getColumn(i, "chk") == "Y")
  591. {
  592. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = false;
  593. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.setRowType(i, "i");
  594. ds_main_list_fixtrscnfminfo_fixtrscnfmlist.updatecontrol = true;
  595. }
  596. }
  597. var updtdata = grdf_getGridUpdateData(grd_fixtrscnfmlist).rowcount;
  598. if (updtdata == 0)
  599. {
  600. sysf_messageBox("변경된 데이터가","I004");
  601. return;
  602. }
  603. var oParam = {};
  604. oParam.id = "TXRFE02201";
  605. oParam.service = "purcbaseapp.CalcScorTrsmMngt";
  606. oParam.method = "reqExeSaveFixtrsCnfmList";
  607. oParam.inds = "savetype=ds_send req=ds_main_list_fixtrscnfminfo_fixtrscnfmlist:u";
  608. oParam.outds = "";
  609. oParam.async = false;
  610. //oParam.callback = "cf_TXRFE02201";
  611. tranf_submit(oParam);
  612. grp_sea.btn_search.click();
  613. }
  614. function btn_deptmove_onclick(obj:Button, e:ClickEventInfo)
  615. {
  616. dsf_makeValue(ds_send, "savetype", "string", "M", 0);
  617. var retMes = sysf_messageBox("부서 이동을 실시 하시겠습니까?", "Q999");
  618. if ( retMes != 6)
  619. {
  620. return;
  621. }
  622. var updtdata = grdf_getGridUpdateData(grd_fixtrscnfmlist).rowcount;
  623. if (updtdata == 0)
  624. {
  625. sysf_messageBox("변경된 데이터가","I004");
  626. return;
  627. }
  628. var oParam = {};
  629. oParam.id = "TXRFE02201";
  630. oParam.service = "purcbaseapp.CalcScorTrsmMngt";
  631. oParam.method = "reqExeSaveFixtrsCnfmList";
  632. oParam.inds = "savetype=ds_send req=ds_main_list_fixtrscnfminfo_fixtrscnfmlist:u";
  633. oParam.outds = "";
  634. oParam.async = false;
  635. //oParam.callback = "cf_TXRFE02201";
  636. tranf_submit(oParam);
  637. grp_sea.btn_search.click();
  638. }
  639. function btn_input_onclick(obj:Button, e:ClickEventInfo)
  640. {
  641. arrCompId = new Array("grp_sea.cmb_instcd","grp_sea.cmb_goodflag","grp_sea.ipt_usedeptcd");
  642. if(!frmf_isRequiredControls(arrCompId)) return;
  643. ds_send_barcdinfo.setColumn(0, "instcd", grp_sea.cmb_instcd.value);
  644. ds_send_barcdinfo.setColumn(0, "goodflag", grp_sea.cmb_goodflag.value);
  645. for (var i = 0; i < ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i++)
  646. {
  647. if (ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "instcd") == grp_sea.cmb_instcd.value && ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "fixasetcd") == ipt_fixasetcd_barcd.value)
  648. {
  649. sysf_messageBox("이미 입력된 데이타 ","I009");
  650. return;
  651. }
  652. }
  653. var oParam = {};
  654. oParam.id = "TRRFE02202";
  655. oParam.service = "purcbaseapp.CalcScorTrsmMngt";
  656. oParam.method = "reqGetFixtrsCnfmList";
  657. oParam.inds = "req=ds_send_barcdinfo";
  658. oParam.outds = "ds_main_list_bcfixtrstempinfo_bcfixtrstemplist=bcfixtrstemplist";
  659. oParam.async = false;
  660. //oParam.callback = "cf_TRRFE02202";
  661. tranf_submit(oParam);
  662. if (String(ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(0, "fixasetcd")).length == 0)
  663. {
  664. sysf_messageBox("존재하지 않는 데이타 ","I009");
  665. return;
  666. }
  667. var addRow = ds_main_list_bcfixtrsinfo_bcfixtrslist.addRow();
  668. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "chk", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "chk"));
  669. if(ds_main_list_bcfixtrsinfo_bcfixtrslist.rowposition == 0)
  670. {
  671. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "rowno", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "rowno"));
  672. }
  673. else
  674. {
  675. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "rowno", parseInt(ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(parseInt(addRow)-1, "rowno"))+1);
  676. }
  677. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "execyy", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "execyy"));
  678. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "goodflag", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "goodflag"));
  679. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "instcd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "instcd"));
  680. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "usedeptcd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "usedeptcd"));
  681. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "usedeptnm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "usedeptnm"));
  682. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "fixasetcd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "fixasetcd"));
  683. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "goodflagengnm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "goodflagengnm"));
  684. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "goodmodel", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "goodmodel"));
  685. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "possndd", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "possndd"));
  686. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "suplplcenm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "suplplcenm"));
  687. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "prodcmpynm", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "prodcmpynm"));
  688. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "orginsprst", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "orginsprst"));
  689. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "mvflag", ds_main_list_bcfixtrstempinfo_bcfixtrstemplist.getColumn(0, "mvflag"));
  690. if (ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(addRow, "usedeptcd") == ds_send_search.getColumn(0, "usedeptcd"))
  691. {
  692. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "possndeptcd", "");
  693. }
  694. else
  695. {
  696. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(addRow, "possndeptcd",ds_send_search.getColumn(0, "usedeptcd"));
  697. }
  698. }
  699. function ds_main_list_bcfixtrsinfo_bcfixtrslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  700. {
  701. if(e.columnid == "chk")
  702. {
  703. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  704. }
  705. }
  706. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  707. {
  708. var chk, count=0;
  709. for (var i = 0; i < ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i++)
  710. {
  711. chk = ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "chk");
  712. if (chk == "Y")
  713. {
  714. ds_main_list_bcfixtrsinfo_bcfixtrslist.deleteRow(i);
  715. }
  716. ++count;
  717. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "rowno", count);
  718. }
  719. }
  720. function btn_fixasetcd_barcd_onclick(obj:Button, e:ClickEventInfo)
  721. {
  722. var temp = "fixasetcd,goodflagengnm";
  723. arrCompId = new Array("grp_sea.cmb_instcd","grp_sea.cmb_goodflag","grp_sea.ipt_usedeptcd");
  724. if(!frmf_isRequiredControls(arrCompId)) return;
  725. rszfOpenPopUpListByWndName(ipt_fixasetcd_barcd,"", temp, "SPRSD00240","instcd,goodflag","grp_sea.cmb_instcd,grp_sea.cmb_goodflag");
  726. }
  727. function btn_exec_onclick(obj:Button, e:ClickEventInfo)
  728. {
  729. for (var i = 0; i < ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i++)
  730. {
  731. if (ds_main_list_bcfixtrsinfo_bcfixtrslist.getColumn(i, "usedeptcd") == grp_sea.ipt_usedeptcd.value)
  732. {
  733. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "orginsprst", "Y");
  734. ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = false;
  735. ds_main_list_bcfixtrsinfo_bcfixtrslist.setRowType(i, "u");
  736. ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = true;
  737. }
  738. else
  739. {
  740. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "orginsprst", "N");
  741. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "mvflag", "Y");
  742. ds_main_list_bcfixtrsinfo_bcfixtrslist.setColumn(i, "possndeptcd", grp_sea.ipt_usedeptcd.value);
  743. ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = false;
  744. ds_main_list_bcfixtrsinfo_bcfixtrslist.setRowType(i, "i");
  745. ds_main_list_bcfixtrsinfo_bcfixtrslist.updatecontrol = true;
  746. }
  747. }
  748. var retMes = sysf_messageBox("저장 하시겠습니까?", "Q999");
  749. if ( retMes != 6)
  750. {
  751. return;
  752. }
  753. var updtdata = grdf_getGridUpdateData(grd_bcfixtrsinfo).rowcount;
  754. if (updtdata == 0)
  755. {
  756. sysf_messageBox("변경된 데이터가","I004");
  757. return;
  758. }
  759. var oParam = {};
  760. oParam.id = "TXRFE02202";
  761. oParam.service = "purcbaseapp.CalcScorTrsmMngt";
  762. oParam.method = "reqExeSaveBcFixtrsList";
  763. oParam.inds = "req=ds_main_list_bcfixtrsinfo_bcfixtrslist:u";
  764. oParam.outds = "";
  765. oParam.async = false;
  766. //oParam.callback = "cf_TXRFE02202";
  767. tranf_submit(oParam);
  768. for (var i = ds_main_list_bcfixtrsinfo_bcfixtrslist.rowcount; i > -1 ; i--)
  769. {
  770. ds_main_list_bcfixtrsinfo_bcfixtrslist.deleteRow(i);
  771. }
  772. grp_sea.btn_search.click();
  773. }
  774. function button2_onclick(obj:Button, e:ClickEventInfo)
  775. {
  776. grdf_exportExcel(grd_yyendapplist, "자산변동사항이력List", "Sheet1", "true", "", "");
  777. }
  778. function ds_main_list_bcfixtrstempinfo_bcfixtrstemplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  779. {
  780. if(e.columnid == "chk")
  781. {
  782. obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  783. }
  784. }
  785. function grp_sea_ipt_usedeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  786. {
  787. if( e.keycode == 13 ){
  788. obj.updateToDataset();
  789. }
  790. }
  791. function grp_sea_ipt_fixasetcd_onkeydown(obj:Edit, e:KeyEventInfo)
  792. {
  793. if( e.keycode == 13 ){
  794. obj.updateToDataset();
  795. }
  796. }
  797. ]]></Script>
  798. </Form>
  799. </FDL>