SMRSE01600_고정자산 반납 청구 접수.xfdl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSE01600" position="absolute 0 0 1199 775" titletext="고정자산 반납 청구 접수" oninit="SMRSE01600_oninit" onload="SMRSE01600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" position="absolute 85 393 185 413"/>
  8. <Grid id="grd_rfchrtdmlist" taborder="8" binddataset="ds_main_grid_rfchrtdmlist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 149 1195 443" anchor="all" onselectchanged="grd_rfchrtdmlist_onselectchanged">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="21"/>
  13. <Column size="80"/>
  14. <Column size="0"/>
  15. <Column size="90"/>
  16. <Column size="166"/>
  17. <Column size="85"/>
  18. <Column size="100"/>
  19. <Column size="71"/>
  20. <Column size="90"/>
  21. <Column size="146"/>
  22. <Column size="0"/>
  23. <Column size="80"/>
  24. <Column size="90"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="65"/>
  28. <Column size="70"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell/>
  47. <Cell col="1" text="반납청구일자"/>
  48. <Cell col="2" text="물품구분"/>
  49. <Cell col="3" text="자산코드"/>
  50. <Cell col="4" text="자산명"/>
  51. <Cell col="5" text="모델"/>
  52. <Cell col="6" text="규격"/>
  53. <Cell col="7" text="구입일자"/>
  54. <Cell col="8" text="사용부서"/>
  55. <Cell col="9" text="반납사유"/>
  56. <Cell col="10" text="반납청구자"/>
  57. <Cell col="11" text="반납청구자"/>
  58. <Cell col="12" text="반납확인일자"/>
  59. <Cell col="13" text="확인부서"/>
  60. <Cell col="14" text="반납확인자"/>
  61. <Cell col="15" text="반납확인자"/>
  62. <Cell col="16" text="반납확인"/>
  63. <Cell col="17"/>
  64. <Cell col="18"/>
  65. <Cell col="19"/>
  66. <Cell col="20"/>
  67. <Cell col="21"/>
  68. <Cell col="22"/>
  69. <Cell col="23"/>
  70. <Cell col="24"/>
  71. <Cell col="25"/>
  72. <Cell col="26"/>
  73. <Cell col="27"/>
  74. </Band>
  75. <Band id="body">
  76. <Cell celltype="head"/>
  77. <Cell col="1" displaytype="date" text="bind:rtnreqdd" calendardisplaynulltype="nulltext"/>
  78. <Cell col="2" displaytype="combo" edittype="combo" text="bind:goodflag" enable="false"/>
  79. <Cell col="3" text="bind:fixasetcd"/>
  80. <Cell col="4" text="bind:goodflaghngnm"/>
  81. <Cell col="5" text="bind:goodmodel"/>
  82. <Cell col="6" text="bind:goodspec"/>
  83. <Cell col="7" text="bind:windd"/>
  84. <Cell col="8" text="bind:rtnreqdeptnm"/>
  85. <Cell col="9" style="align:left;" text="bind:cmt"/>
  86. <Cell col="10" text="bind:rtnreqpsn"/>
  87. <Cell col="11" text="bind:rtnreqpsnnm"/>
  88. <Cell col="12" displaytype="date" text="bind:rtnconfirmdd" calendardisplaynulltype="nulltext"/>
  89. <Cell col="13" text="bind:rtnconfirmdeptnm"/>
  90. <Cell col="14" text="bind:rtnconfirmpsnid"/>
  91. <Cell col="15" text="bind:rtnconfirmpsnnm"/>
  92. <Cell col="16" displaytype="combo" edittype="combo" style="align:center middle;background:#ffff99ff;background2:#ffff99ff;color:#800000ff;color2:#800000ff;" text="bind:rtnconfirmyn" combodataset="ds_init_combo_rtnconfirmyn" combocodecol="value" combodatacol="label"/>
  93. <Cell col="17" text="bind:instcd"/>
  94. <Cell col="18" text="bind:rtnreqdeptcd"/>
  95. <Cell col="19" text="bind:rtnreqseq"/>
  96. <Cell col="20" text="bind:rtnconfirmdeptcd"/>
  97. <Cell col="21" text="bind:mainrec"/>
  98. <Cell col="22" text="bind:rtnconfirmyn1"/>
  99. <Cell col="23" text="bind:updtseq"/>
  100. <Cell col="24" displaytype="checkbox" edittype="checkbox" text="bind:rtreqaprvyn"/>
  101. <Cell col="25" text="bind:rtreqaprvdd" mask="yyyy-mm-dd"/>
  102. <Cell col="26" text="bind:rtreqaprvpsn"/>
  103. <Cell col="27" text="bind:rtreqaprvpsnnm"/>
  104. </Band>
  105. </Format>
  106. </Formats>
  107. </Grid>
  108. <Static id="caption6" text="고정자산 반납 청구 접수" class="tit_1" position="absolute 0 0 226 25"/>
  109. <Shape id="line9" class="line_6" position="absolute 0 47 1195 53" anchor="left top right"/>
  110. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1069 26 1125 48" anchor="top right" onclick="btn_save_onclick"/>
  111. <Button id="btn_init" taborder="2" text="초기화" class="btn4" position="absolute 1127 26 1195 48" anchor="top right" onclick="btn_init_onclick"/>
  112. <Button id="button27" taborder="3" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48"/>
  113. <Shape id="line1" class="line_10" position="absolute 0 469 1194 475" anchor="left right bottom"/>
  114. <Grid id="grd_chgnhistlist" taborder="4" binddataset="ds_main_chgnhistlist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 474 1194 768" anchor="left right bottom" onselectchanged="grd_chgnhistlist_onselectchanged">
  115. <Formats>
  116. <Format id="default">
  117. <Columns>
  118. <Column size="20"/>
  119. <Column size="37"/>
  120. <Column size="70"/>
  121. <Column size="123"/>
  122. <Column size="100"/>
  123. <Column size="73"/>
  124. <Column size="91"/>
  125. <Column size="98"/>
  126. <Column size="88"/>
  127. <Column size="89"/>
  128. <Column size="0"/>
  129. <Column size="0"/>
  130. <Column size="0"/>
  131. <Column size="90"/>
  132. <Column size="93"/>
  133. <Column size="0"/>
  134. <Column size="0"/>
  135. <Column size="0"/>
  136. <Column size="0"/>
  137. <Column size="0"/>
  138. <Column size="120"/>
  139. <Column size="120"/>
  140. </Columns>
  141. <Rows>
  142. <Row size="24" band="head"/>
  143. <Row size="24"/>
  144. </Rows>
  145. <Band id="head">
  146. <Cell/>
  147. <Cell col="1" text="순번"/>
  148. <Cell col="2" colspan="2" text="자산" taborder="undefined"/>
  149. <Cell col="4" text="변동일자"/>
  150. <Cell col="5" text="변동구분"/>
  151. <Cell col="6" colspan="2" text="변경부서" taborder="undefined"/>
  152. <Cell col="8" colspan="2" text="변경설치장소*" taborder="undefined"/>
  153. <Cell col="10" text="취득구분"/>
  154. <Cell col="11" text="외화액"/>
  155. <Cell col="12" text="단위"/>
  156. <Cell col="13" text="금액"/>
  157. <Cell col="14" text="적요"/>
  158. <Cell col="15" text="거래처코드"/>
  159. <Cell col="16" text="기관코드"/>
  160. <Cell col="17"/>
  161. <Cell col="18" text="caption1"/>
  162. <Cell col="19"/>
  163. <Cell col="20" text="변경전사용부서코드"/>
  164. <Cell col="21" text="변경전사용부서이름"/>
  165. </Band>
  166. <Band id="body">
  167. <Cell celltype="head"/>
  168. <Cell col="1" text="bind:updtseq"/>
  169. <Cell col="2" style="align:left;" text="bind:fixasetcd"/>
  170. <Cell col="3" style="align:left;" text="bind:goodflaghngnm"/>
  171. <Cell col="4" displaytype="date" class="input_essential" text="bind:updtdd" calendardisplaynulltype="nulltext" enable="false"/>
  172. <Cell col="5" displaytype="combo" style="align:center middle;" class="input_essential" text="bind:updtflag" enable="false"/>
  173. <Cell col="6" displaytype="text" class="input_essential" text="bind:upddeptcd" expandshow="show" enable="false"/>
  174. <Cell col="7" text="bind:upddeptnm"/>
  175. <Cell col="8" displaytype="text" class="input_essential" text="bind:chnginstallplcecd" expandshow="show" enable="false"/>
  176. <Cell col="9" text="bind:installplcenm" enable="false"/>
  177. <Cell col="10" displaytype="combo" edittype="combo" text="bind:possnflagcd"/>
  178. <Cell col="11" displaytype="text" edittype="text" text="bind:forgncurncyamt" mask="#,###"/>
  179. <Cell col="12" displaytype="combo" edittype="combo" text="bind:curncyunit"/>
  180. <Cell col="13" displaytype="number" text="bind:fixasetamt" enable="false"/>
  181. <Cell col="14" displaytype="text" text="bind:mainrec" enable="false"/>
  182. <Cell col="15" text="bind:custcd"/>
  183. <Cell col="16" text="bind:instcd"/>
  184. <Cell col="17" text="bind:rtnreqdeptcd"/>
  185. <Cell col="18" text="bind:rtnreqdd"/>
  186. <Cell col="19" text="bind:rtnreqseq"/>
  187. <Cell col="20" text="bind:premngtdeptcd"/>
  188. <Cell col="21" text="bind:premngtdeptnm"/>
  189. </Band>
  190. </Format>
  191. </Formats>
  192. </Grid>
  193. <Static id="caption4" text="자산변동이력" class="tit_2" position="absolute 0 453 121 474" anchor="left bottom"/>
  194. <Button id="btn_delrow" taborder="5" text="행삭제" class="btn2" visible="false" position="absolute 1142 450 1195 469" anchor="right bottom"/>
  195. <Button id="btn_addrow" taborder="6" text="행추가" class="btn2" visible="false" position="absolute 1086 450 1139 469" anchor="right bottom" onclick="btn_addrow_onclick"/>
  196. <Div id="grp_sea" anchor="left top right" taborder="7" class="div_SA2" position="absolute 0 51 1195 116">
  197. <Layouts>
  198. <Layout>
  199. <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 1122 21 1178 43" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  200. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1096 8 1102 57" anchor="top right"/>
  201. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 10 101 27"/>
  202. <Edit id="opt_instnm" taborder="1" readonly="true" class="output" position="absolute 105 10 235 29"/>
  203. <Edit id="ipt_instcd" taborder="2" visible="false" position="absolute 180 10 235 29"/>
  204. <Edit id="ipt_deptcd" taborder="3" position="absolute 701 10 801 29" autoselect="true" autoskip="true" onkeydown="grp_sea_ipt_deptcd_onkeydown"/>
  205. <Edit id="ipt_deptnm" taborder="4" position="absolute 825 10 1025 29" autoselect="true" autoskip="true"/>
  206. <Static id="caption1" text="물 품 명 :" class="search_name" position="absolute 265 38 353 55"/>
  207. <Edit id="ipt_goodflaghngnm" taborder="5" class="input_fix" position="absolute 355 38 575 57" autoselect="true" autoskip="true"/>
  208. <Static id="caption3" text="자산코드 :" class="search_name" position="absolute 609 38 695 55"/>
  209. <Edit id="ipt_fixasetcd" taborder="6" class="input_search" position="absolute 701 38 801 57" autoselect="true" autoskip="true" onkeydown="grp_sea_ipt_fixasetcd_onkeydown"/>
  210. <Button id="btn_fixasetcd" taborder="7" class="icon_search" position="absolute 804 38 820 54" onclick="grp_sea_btn_fixasetcd_onclick"/>
  211. <Edit id="ipt_fixasetnm" taborder="8" class="input_search" enable="false" position="absolute 825 38 1025 57"/>
  212. <Static id="cap_deptcd" text="청구부서 :" class="search_name" position="absolute 609 10 695 27"/>
  213. <Button id="btn_deptcd" taborder="9" class="icon_search" position="absolute 804 10 820 26" onclick="grp_sea_btn_deptcd_onclick"/>
  214. <Combo id="cmb_goodflag" taborder="10" innerdataset="@ds_init_goodflag" codecolumn="value" datacolumn="label" position="absolute 105 38 235 57"/>
  215. <Static id="cap_goodflag" text="물품구분 :" class="search_name" position="absolute 15 38 101 55"/>
  216. <Calendar id="ipt_reqdd2" taborder="13" class="input_essential" position="absolute 475 10 575 29" autoselect="true" autoskip="true"/>
  217. <Static id="caption12" text="~" position="absolute 459 10 479 30"/>
  218. <Calendar id="ipt_reqdd1" taborder="11" class="input_essential" position="absolute 355 10 455 29" autoselect="true" autoskip="true"/>
  219. <Static id="cap_reqdd1" text="의뢰일자 :" class="search_name" position="absolute 265 10 351 27"/>
  220. <Edit id="ipt_rtreqaprvyn" taborder="12" visible="false" position="absolute 1070 45 1095 64"/>
  221. </Layout>
  222. </Layouts>
  223. </Div>
  224. <Shape id="line2" class="line_10" position="absolute 0 144 1194 150" anchor="left top right"/>
  225. <Static id="caption24" text="반납 청구 List" class="tit_2" position="absolute 0 128 157 150"/>
  226. <Button id="btn_excel" taborder="9" text="Excel 저장" class="btn5" position="absolute 1120 125 1195 144" anchor="top right" onclick="btn_excel_onclick"/>
  227. </Layout>
  228. </Layouts>
  229. <Objects>
  230. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  231. <ColumnInfo>
  232. <Column id="instcd" type="STRING" size="256"/>
  233. <Column id="instnm" type="STRING" size="256"/>
  234. <Column id="deptcd" type="STRING" size="256"/>
  235. <Column id="deptnm" type="STRING" size="256"/>
  236. <Column id="goodflag" type="STRING" size="256"/>
  237. <Column id="reqdd1" type="STRING" size="256"/>
  238. <Column id="reqdd2" type="STRING" size="256"/>
  239. <Column id="rtreqaprvyn" type="STRING" size="256"/>
  240. <Column id="goodflaghngnm" type="STRING" size="256"/>
  241. <Column id="fixasetcd" type="STRING" size="256"/>
  242. <Column id="fixasetnm" type="STRING" size="256"/>
  243. </ColumnInfo>
  244. <Rows>
  245. <Row>
  246. <Col id="instcd"/>
  247. <Col id="instnm"/>
  248. <Col id="deptcd"/>
  249. <Col id="deptnm"/>
  250. <Col id="goodflag"/>
  251. <Col id="reqdd1"/>
  252. <Col id="reqdd2"/>
  253. <Col id="rtreqaprvyn"/>
  254. <Col id="goodflaghngnm"/>
  255. <Col id="fixasetcd"/>
  256. <Col id="fixasetnm"/>
  257. </Row>
  258. </Rows>
  259. </Dataset>
  260. <Dataset id="ds_init_goodflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="label" type="STRING" size="256"/>
  263. <Column id="value" type="STRING" size="256"/>
  264. </ColumnInfo>
  265. <Rows>
  266. <Row>
  267. <Col id="label">-전 체-</Col>
  268. <Col id="value"/>
  269. </Row>
  270. <Row>
  271. <Col id="label">의료장비</Col>
  272. <Col id="value">EQ</Col>
  273. </Row>
  274. <Row>
  275. <Col id="label">일반비품</Col>
  276. <Col id="value">GE</Col>
  277. </Row>
  278. </Rows>
  279. </Dataset>
  280. <Dataset id="ds_main_grid_rfchrtdmlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_grid_rfchrtdmlist_oncolumnchanged">
  281. <ColumnInfo>
  282. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  283. <Column id="goodflag" type="STRING" size="256" sumtext="물품구분"/>
  284. <Column id="rtnreqdeptcd" type="STRING" size="256" sumtext="요청부서code"/>
  285. <Column id="rtnreqdeptnm" type="STRING" size="256" sumtext="요청부서"/>
  286. <Column id="rtnreqdd" type="STRING" size="256" sumtext="반납일자"/>
  287. <Column id="rtnreqseq" type="STRING" size="256" sumtext="반납순번"/>
  288. <Column id="fixasetcd" type="STRING" size="256" sumtext="물품코드"/>
  289. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산명(한글)"/>
  290. <Column id="goodflagengnm" type="STRING" size="256" sumtext="자산명(영문)"/>
  291. <Column id="goodmodel" type="STRING" size="256" sumtext="자산모델"/>
  292. <Column id="goodspec" type="STRING" size="256" sumtext="자산규격"/>
  293. <Column id="installplcenm" type="STRING" size="256" sumtext="설치장소"/>
  294. <Column id="rtnreqpsn" type="STRING" size="256" sumtext="반납요청자id"/>
  295. <Column id="rtnreqpsnnm" type="STRING" size="256" sumtext="반납요청자"/>
  296. <Column id="rtnconfirmyn" type="STRING" size="256" sumtext="반납확인여부"/>
  297. <Column id="rtnconfirmdd" type="STRING" size="256" sumtext="반납확인일자"/>
  298. <Column id="rtnconfirmpsnid" type="STRING" size="256" sumtext="반납확인자id"/>
  299. <Column id="rtnconfirmpsnnm" type="STRING" size="256" sumtext="반납확인자"/>
  300. <Column id="rtnconfirmdeptcd" type="STRING" size="256" sumtext="반납확인부서code"/>
  301. <Column id="rtnconfirmdeptnm" type="STRING" size="256" sumtext="반납확인부서"/>
  302. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  303. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자id"/>
  304. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
  305. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자id"/>
  306. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  307. <Column id="rtnconfirmyn1" type="STRING" size="256" sumtext="반납확인여부"/>
  308. <Column id="updtseq" type="STRING" size="256" sumtext="변동사항이력 일련번호"/>
  309. <Column id="rtreqaprvyn" type="STRING" size="256" sumtext="반납승인여부"/>
  310. <Column id="rtreqaprvdd" type="STRING" size="256" sumtext="반납승인일자"/>
  311. <Column id="rtreqaprvpsn" type="STRING" size="256" sumtext="반납승인자ID"/>
  312. <Column id="rtreqaprvpsnnm" type="STRING" size="256" sumtext="반납승인자"/>
  313. <Column id="windd" type="STRING" size="256" sumtext="반납승인자"/>
  314. </ColumnInfo>
  315. </Dataset>
  316. <Dataset id="ds_main_chgnhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  317. <ColumnInfo>
  318. <Column id="choice" type="STRING" size="256" sumtext="선택 "/>
  319. <Column id="updtseq" type="STRING" size="256" sumtext="순번 "/>
  320. <Column id="updtdd" type="STRING" size="256" sumtext="변동일자 "/>
  321. <Column id="updtflag" type="STRING" size="256" sumtext="변동구분 "/>
  322. <Column id="installplcecd" type="STRING" size="256" sumtext="설치장소코드 "/>
  323. <Column id="installplcenm" type="STRING" size="256" sumtext="설치장소명 "/>
  324. <Column id="possnflagcd" type="STRING" size="256" sumtext="취득구분 "/>
  325. <Column id="forgncurncyamt" type="STRING" size="256" sumtext="외화액 "/>
  326. <Column id="curncyunit" type="STRING" size="256" sumtext="단위 "/>
  327. <Column id="fixasetamt" type="STRING" size="256" sumtext="금액 "/>
  328. <Column id="mainrec" type="STRING" size="256" sumtext="적요 "/>
  329. <Column id="cmt" type="STRING" size="256" sumtext="비고 "/>
  330. <Column id="custcd" type="STRING" size="256" sumtext="거래처코드 "/>
  331. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  332. <Column id="goodflag" type="STRING" size="256" sumtext="자산구분 "/>
  333. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산코드 "/>
  334. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산한글명 "/>
  335. <Column id="goodflagengnm" type="STRING" size="256" sumtext="자산영문명 "/>
  336. <Column id="upddeptcd" type="STRING" size="256" sumtext="변경부서코드 "/>
  337. <Column id="upddeptnm" type="STRING" size="256" sumtext="변경부서 "/>
  338. <Column id="rtnreqdeptcd" type="STRING" size="256" sumtext="요청부서 "/>
  339. <Column id="rtnreqdd" type="STRING" size="256" sumtext="반납요청일자 "/>
  340. <Column id="rtnreqseq" type="STRING" size="256" sumtext="반납요청순번 "/>
  341. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사 "/>
  342. <Column id="acqtflagnm" type="STRING" size="256" sumtext="도입구분코드 "/>
  343. <Column id="possndd" type="STRING" size="256" sumtext="취득일자 "/>
  344. <Column id="premngtdeptnm" type="STRING" size="256" sumtext="변경전사용부서 "/>
  345. <Column id="premngtdeptcd" type="STRING" size="256" sumtext="변경전사용부서 "/>
  346. <Column id="goodspec" type="STRING" size="256" sumtext="규격 "/>
  347. <Column id="goodmodel" type="STRING" size="256" sumtext="모델 "/>
  348. <Column id="prodplcenm" type="STRING" size="256" sumtext="제조국"/>
  349. <Column id="suplplcenm" type="STRING" size="256" sumtext="공급처명"/>
  350. <Column id="mngtno" type="STRING" size="256" sumtext="시리얼번호"/>
  351. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  352. <Column id="ipaddr" type="STRING" size="256" sumtext="IP주소"/>
  353. <Column id="userid" type="STRING" size="256" sumtext="처리자ID"/>
  354. <Column id="usernm" type="STRING" size="256" sumtext="처리자명"/>
  355. </ColumnInfo>
  356. </Dataset>
  357. <Dataset id="ds_init_combo_rtnconfirmyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  358. <ColumnInfo>
  359. <Column id="label" type="STRING" size="256"/>
  360. <Column id="value" type="STRING" size="256"/>
  361. </ColumnInfo>
  362. <Rows>
  363. <Row>
  364. <Col id="label">승인</Col>
  365. <Col id="value">Y</Col>
  366. </Row>
  367. <Row>
  368. <Col id="label">미확인</Col>
  369. <Col id="value">N</Col>
  370. </Row>
  371. <Row>
  372. <Col id="label">부결</Col>
  373. <Col id="value">R</Col>
  374. </Row>
  375. </Rows>
  376. </Dataset>
  377. <Dataset id="ds_send_rfchcgmt_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  378. <ColumnInfo>
  379. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  380. <Column id="fixasetcd" type="STRING" size="256" sumtext="고정자산코드 "/>
  381. <Column id="goodflag" type="STRING" size="256" sumtext="자산구분 "/>
  382. <Column id="updtdd1" type="STRING" size="256" sumtext="변경일자 "/>
  383. <Column id="updtdd2" type="STRING" size="256" sumtext="변경일자 "/>
  384. <Column id="updtflag" type="STRING" size="256" sumtext="변경구분 "/>
  385. <Column id="deptcd" type="STRING" size="256" sumtext="귀속부서 "/>
  386. <Column id="fixasetnm" type="STRING" size="256" sumtext="자산명 "/>
  387. <Column id="userid" type="STRING" size="256" sumtext="처리자ID "/>
  388. <Column id="name_search" type="STRING" size="256" sumtext="자산명 "/>
  389. <Column id="screen_id" type="STRING" size="256" sumtext="화면ID "/>
  390. </ColumnInfo>
  391. </Dataset>
  392. </Objects>
  393. <Bind>
  394. <BindItem id="item0" compid="grp_sea.opt_instnm" propid="value" datasetid="ds_send" columnid="instnm"/>
  395. <BindItem id="item1" compid="grp_sea.ipt_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  396. <BindItem id="item2" compid="grp_sea.ipt_reqdd1" propid="value" datasetid="ds_send" columnid="reqdd1"/>
  397. <BindItem id="item3" compid="grp_sea.ipt_reqdd2" propid="value" datasetid="ds_send" columnid="reqdd2"/>
  398. <BindItem id="item4" compid="grp_sea.ipt_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
  399. <BindItem id="item5" compid="grp_sea.ipt_deptnm" propid="value" datasetid="ds_send" columnid="deptnm"/>
  400. <BindItem id="item6" compid="grp_sea.cmb_goodflag" propid="value" datasetid="ds_send" columnid="goodflag"/>
  401. <BindItem id="item7" compid="grp_sea.ipt_goodflaghngnm" propid="value" datasetid="ds_send" columnid="goodflaghngnm"/>
  402. <BindItem id="item8" compid="grp_sea.ipt_fixasetcd" propid="value" datasetid="ds_send" columnid="fixasetcd"/>
  403. <BindItem id="item9" compid="grp_sea.ipt_fixasetnm" propid="value" datasetid="ds_send" columnid="fixasetnm"/>
  404. <BindItem id="item10" compid="grp_sea.ipt_rtreqaprvyn" propid="value" datasetid="ds_send" columnid="rtreqaprvyn"/>
  405. </Bind>
  406. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  407. * System Name :
  408. * Job Name :
  409. * Creator :
  410. * Make Date : 2017-06-19
  411. * Description :
  412. *---------------------------------------------------------------------------------------
  413. * Modify Date Modifier Modify Description
  414. *---------------------------------------------------------------------------------------
  415. * 2017-06-19 Live Converter TF->XP
  416. *
  417. *---------------------------------------------------------------------------------------
  418. ****************************************************************************************/
  419. include "com_commonxp::comm_main.xjs";
  420. include "mis_miscommonxp::MIS.xjs";
  421. include "mis_miscommonxp::RSZ001.xjs";
  422. function SMRSE01600_oninit(obj:Form, e:InitEventInfo)
  423. {
  424. frmf_initForm(obj);
  425. }
  426. function SMRSE01600_onload(obj:Form, e:LoadEventInfo)
  427. {
  428. grdf_initGrid(grd_chgnhistlist);
  429. grdf_setRowTypeIcon(grd_chgnhistlist, 0);
  430. grdf_initGrid(grd_rfchrtdmlist);
  431. grdf_setRowTypeIcon(grd_rfchrtdmlist, 0);
  432. fInitialize();
  433. grp_sea.ipt_rtreqaprvyn.value = "Y";
  434. }
  435. function fInitialize()
  436. {
  437. ds_send.clearData();
  438. ds_send.addRow();
  439. misfGridInit(grd_rfchrtdmlist);
  440. misfGridInit(grd_chgnhistlist);
  441. rszfGoodFlagListByPgmGubn(grp_sea.cmb_goodflag,"2","N");
  442. misfComboComCdListMulti("R0025,R0041","grd_rfchrtdmlist.goodflag,grd_chgnhistlist.updtflag");
  443. misfMsterDetailSet(grd_rfchrtdmlist, null, "TRRSE01501", "Y");
  444. grp_sea.ipt_instcd.value = sysf_getUserInfo("dutplceinstcd");
  445. grp_sea.opt_instnm.value = sysf_getUserInfo("dutplceinstnm");
  446. var reqdate = utlf_getCurrentDate();
  447. var cvtdate = reqdate.toDate("YYYYMMDD");
  448. ds_send.setColumn(0, "reqdd1", String(reqdate).substr(0,6)+"01");
  449. ds_send.setColumn(0, "reqdd2", String(reqdate).substr(0,6)+cvtdate.getMonthDay());
  450. grp_sea.cmb_goodflag.value = "GE";
  451. }
  452. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  453. {
  454. if(e.columnid == "deptcd")
  455. {
  456. var objFocus = this.getFocus();
  457. grp_sea.ipt_deptcd.value = e.newvalue;
  458. grp_sea.ipt_deptcd.setFocus();
  459. if(!utlf_isNull(e.newvalue))
  460. {
  461. misfValidationCheck("02", "", "deptcd,deptnm" );
  462. }
  463. else
  464. {
  465. grp_sea.ipt_deptnm.value = "";
  466. }
  467. objFocus.setFocus();
  468. }
  469. if(e.columnid == "deptnm")
  470. {
  471. var objFocus = this.getFocus();
  472. grp_sea.ipt_deptnm.value = e.newvalue;
  473. grp_sea.ipt_deptnm.setFocus();
  474. if(!utlf_isNull(e.newvalue))
  475. {
  476. misfValidationCheck("02", "", "deptcd,deptnm" );
  477. }
  478. else
  479. {
  480. grp_sea.ipt_deptcd.value = "";
  481. }
  482. objFocus.setFocus();
  483. }
  484. if(e.columnid == "fixasetcd")
  485. {
  486. var objFocus = this.getFocus();
  487. grp_sea.ipt_fixasetcd.value = e.newvalue;
  488. grp_sea.ipt_fixasetcd.setFocus();
  489. if(!utlf_isNull(e.newvalue))
  490. {
  491. rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "instcd,requirementcd,requirementnm,goodflag",
  492. grp_sea.ipt_instcd.value +",fixasetcd," + e.newvalue +"," + grp_sea.cmb_goodflag.value,
  493. "", "fixasetcd,fixasetnm", grp_sea.ipt_fixasetcd, "SPRSD00240",
  494. "instcd,goodflag","grp_sea.ipt_instcd,grp_sea.cmb_goodflag");
  495. ds_send.setColumn(0, "fixasetnm", ds_init_main.getColumn(0, "goodflaghngnm"));
  496. }
  497. else
  498. {
  499. grp_sea.ipt_fixasetnm.value = "";
  500. }
  501. objFocus.setFocus();
  502. }
  503. }
  504. function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
  505. {
  506. misfOpenPopUpList("02", grp_sea.ipt_deptcd,"", "deptcd,deptnm") ;
  507. }
  508. function grp_sea_btn_fixasetcd_onclick(obj:Button, e:ClickEventInfo)
  509. {
  510. rszfOpenPopUpListByWndName(grp_sea.ipt_fixasetcd, "", "fixasetcd,fixasetnm","SPRSD00240","instcd,goodflag","grp_sea.ipt_instcd,grp_sea.cmb_goodflag");
  511. }
  512. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  513. {
  514. arrCompId = new Array("grp_sea.ipt_instcd","grp_sea.ipt_reqdd1","grp_sea.ipt_reqdd2");
  515. if(!frmf_isRequiredControls(arrCompId)) return;
  516. misfMsterDetailRetrieve();
  517. }
  518. function ds_main_grid_rfchrtdmlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  519. {
  520. if(e.columnid == "rtnconfirmyn")
  521. {
  522. if(e.newvalue == "Y")
  523. {
  524. obj.setColumn(e.row, "rtnconfirmdd", utlf_getCurrentDate());
  525. obj.setColumn(e.row, "rtnconfirmdeptcd", "4081400000");
  526. obj.setColumn(e.row, "rtnconfirmdeptnm", "재고물품");
  527. obj.setColumn(e.row, "rtnconfirmpsnid", sysf_getUserInfo("userid"));
  528. obj.setColumn(e.row, "rtnconfirmpsnnm", sysf_getUserInfo("usernm"));
  529. obj.setColumn(e.row, "mainrec", "부서반납확인");
  530. misfGridIUD(grd_chgnhistlist, "A");
  531. var cur_row = ds_main_chgnhistlist.rowposition;
  532. ds_main_chgnhistlist.setColumn(cur_row, "instcd", obj.getColumn(e.row, "instcd"));
  533. ds_main_chgnhistlist.setColumn(cur_row, "fixasetcd", obj.getColumn(e.row, "fixasetcd"));
  534. ds_main_chgnhistlist.setColumn(cur_row, "goodflaghngnm", obj.getColumn(e.row, "goodflaghngnm"));
  535. ds_main_chgnhistlist.setColumn(cur_row, "updtflag", "0");
  536. ds_main_chgnhistlist.setColumn(cur_row, "upddeptcd", obj.getColumn(e.row, "rtnconfirmdeptcd"));
  537. ds_main_chgnhistlist.setColumn(cur_row, "upddeptnm", obj.getColumn(e.row, "rtnconfirmdeptnm"));
  538. ds_main_chgnhistlist.setColumn(cur_row, "chnginstallplcecd", obj.getColumn(e.row, "rtnconfirmdeptcd"));
  539. ds_main_chgnhistlist.setColumn(cur_row, "installplcenm", obj.getColumn(e.row, "rtnconfirmdeptnm"));
  540. ds_main_chgnhistlist.setColumn(cur_row, "premngtdeptnm", obj.getColumn(e.row, "rtnreqdeptnm"));
  541. ds_main_chgnhistlist.setColumn(cur_row, "premngtdeptcd", obj.getColumn(e.row, "rtnreqdeptcd"));
  542. var sBaseDate = utlf_getCurrentDate();
  543. ds_main_chgnhistlist.setColumn(cur_row, "updtdd", sBaseDate);
  544. }
  545. if(e.newvalue == obj.getColumn(e.row, "rtnconfirmyn1"))
  546. {
  547. obj.updatecontrol = false;
  548. obj.setRowType(e.row, "");
  549. obj.setColumn(e.row, "rtnconfirmdd", "");
  550. obj.setColumn(e.row, "rtnconfirmdeptcd", "");
  551. obj.setColumn(e.row, "rtnconfirmdeptnm", "");
  552. obj.setColumn(e.row, "rtnconfirmpsnid", "");
  553. obj.setColumn(e.row, "rtnconfirmpsnnm", "");
  554. obj.setColumn(e.row, "mainrec", "");
  555. obj.updatecontrol = true;
  556. }
  557. }
  558. }
  559. function grd_rfchrtdmlist_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  560. {
  561. misfGridInit(grd_chgnhistlist);
  562. ds_send_rfchcgmt_send.clearData();
  563. ds_send_rfchcgmt_send.addRow();
  564. ds_send_rfchcgmt_send.copyRow(0, ds_main_grid_rfchrtdmlist, ds_main_grid_rfchrtdmlist.rowposition);
  565. var oParam = {};
  566. oParam.id = "TRRFE00201";
  567. oParam.service = "purcbaseapp.PurcBaseMngt";
  568. oParam.method = "reqGetChngHistList";
  569. oParam.inds = "req=ds_send_rfchcgmt_send";
  570. oParam.outds = "ds_main_chgnhistlist=chgnhistlist";
  571. oParam.async = false;
  572. //oParam.callback = "cf_TRRFE00201";
  573. tranf_submit(oParam);
  574. ds_main_chgnhistlist.updateColID("installplcecd", "chnginstallplcecd");
  575. ds_main_chgnhistlist.updatecontrol = false;
  576. dsf_setFixVal(ds_main_chgnhistlist, "choice:N");
  577. ds_main_chgnhistlist.updatecontrol = true;
  578. if(ds_main_chgnhistlist.rowcount != 0)
  579. {
  580. for(var i = 0; i < ds_main_chgnhistlist.rowcount; i++ )
  581. {
  582. if(!utlf_isNull(ds_main_chgnhistlist.getColumn(i, "rtnreqseq")))
  583. {
  584. misfSetReadOnlyCol(grd_chgnhistlist, "updtdd,updtflag,upddeptcd,chnginstallplcecd,fixasetamt,mainrec", true, i);
  585. }
  586. else
  587. {
  588. misfSetReadOnlyCol(grd_chgnhistlist, "updtdd", true, i);
  589. }
  590. }
  591. ds_main_chgnhistlist.rowposition = 0;
  592. grd_chgnhistlist.setCellPos(grd_chgnhistlist.getBindCellIndex("body", "goodflaghngnm"));
  593. grd_chgnhistlist.showEditor(true);
  594. }
  595. }
  596. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  597. {
  598. fInitialize();
  599. }
  600. function grd_chgnhistlist_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  601. {
  602. if(!utlf_isNull(ds_main_chgnhistlist.getColumn(ds_main_chgnhistlist.rowposition, "rtnreqseq")))
  603. {
  604. btn_delrow.enable = false;
  605. }
  606. else
  607. {
  608. btn_delrow.enable = true;
  609. }
  610. }
  611. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  612. {
  613. if( ds_main_grid_rfchrtdmlist.rowcount > 0)
  614. {
  615. var fileName = "반납청구List_" + utlf_getCurrentDate();
  616. grdf_exportExcel(grd_rfchrtdmlist, fileName, "Sheet", "true", "", "");
  617. }
  618. else
  619. {
  620. sysf_messageBox("저장 데이터가","I004");
  621. }
  622. }
  623. function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
  624. {
  625. misfGridIUD(grd_chgnhistlist, "A");
  626. var cur_row = ds_main_chgnhistlist.rowposition;
  627. ds_main_chgnhistlist.setColumn(cur_row, "instcd", grp_sea.ipt_instcd.value);
  628. ds_main_chgnhistlist.setColumn(cur_row, "fixasetcd", grp_sea.ipt_fixasetcd.value);
  629. var sBaseDate = utlf_getCurrentDate();
  630. ds_main_chgnhistlist.setColumn(cur_row, "updtdd", sBaseDate);
  631. }
  632. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  633. {
  634. if(sysf_messageBox("", "Q002") == "6")
  635. {
  636. fupdateCheckSave();
  637. }
  638. }
  639. function fupdateCheckSave()
  640. {
  641. var updtdata = grdf_getGridUpdateData(grd_rfchrtdmlist).rowcount;
  642. if (updtdata == 0)
  643. {
  644. sysf_messageBox("저장 하려는 데이터가","I004");
  645. return;
  646. }
  647. var oParam = {};
  648. oParam.id = "TXRSE01501";
  649. oParam.service = "reqapp.ReqMngt";
  650. oParam.method = "reqExeSetRfchrtdmList";
  651. oParam.inds = "req=ds_main_grid_rfchrtdmlist:u";
  652. oParam.outds = "";
  653. oParam.async = false;
  654. //oParam.callback = "cf_TXRSE01501";
  655. tranf_submit(oParam);
  656. grp_sea.btn_search.click();
  657. }
  658. function grp_sea_ipt_deptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  659. {
  660. if( e.keycode == 13 ){
  661. obj.updateToDataset();
  662. }
  663. }
  664. function grp_sea_ipt_fixasetcd_onkeydown(obj:Edit, e:KeyEventInfo)
  665. {
  666. if( e.keycode == 13 ){
  667. obj.updateToDataset();
  668. }
  669. }
  670. ]]></Script>
  671. </Form>
  672. </FDL>