SMRSC14000_고정자산이동및폐기신청.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC14000" position="absolute 0 0 1194 793" titletext="고정자산이동및폐기신청" onload="SMRSC14000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 26 1193 55" id="group1" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 21 1193 27" id="line17" class="line_6" anchor="left top right"/>
  11. <Button position="absolute 1137 0 1193 22" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group1_btn_save_onclick"/>
  12. </Layout>
  13. </Layouts>
  14. </Div>
  15. <Div position="absolute 0 48 1193 792" id="group3" scrollbars="autoboth" anchor="all">
  16. <Layouts>
  17. <Layout>
  18. <Div position="absolute 0 3 1193 63" align="align:center top;" id="grp_search" anchor="left top right" class="div_SA2">
  19. <Layouts>
  20. <Layout>
  21. <Button position="absolute 1127 17 1183 39" id="btn_search" class="btn1" taborder="6" text="조회" anchor="top right" onclick="group3_grp_search_btn_search_onclick"/>
  22. <Combo position="absolute 92 8 237 27" id="cmb_instcd" class="combo_default" enable="false" taborder="1" anchor="default"/>
  23. <Static text="기관코드" position="absolute 13 10 99 27" id="cap_instcd" class="search_name" anchor="default"/>
  24. <Shape position="absolute 1107 11 1113 51" linetype="vertical" id="line30" class="line_4" anchor="top right"/>
  25. <Edit position="absolute 390 8 513 27" id="ipt_mngtdeptcd" class="input_search" enable="false" taborder="3" anchor="default" autoselect="true" onkeydown="group3_grp_search_ipt_mngtdeptcd_onkeydown"/>
  26. <Edit position="absolute 390 33 560 52" id="ipt_goodflagnm_search" class="input_search" taborder="4" anchor="default" autoselect="true"/>
  27. <Static text="자산코드" position="absolute 13 34 101 51" id="caption2" class="search_name" anchor="default"/>
  28. <Button position="absolute 518 9 534 25" id="btn_mngtdeptcd" class="icon_search" enable="false" taborder="-1" text="" anchor="default" onclick="group3_grp_search_btn_mngtdeptcd_onclick"/>
  29. <Edit position="absolute 92 33 262 52" id="ipt_fixasetcd" class="input_search" taborder="5" anchor="default" autoselect="true"/>
  30. <Static text="자 산 명" position="absolute 311 34 399 51" id="cap_goodflagengnm_search" class="search_name" anchor="default"/>
  31. <Edit position="absolute 537 8 728 27" id="ipt_mngtdeptnm" class="input_search" enable="false" anchor="default" autoselect="true"/>
  32. <Static text="사용부서" position="absolute 311 10 403 27" id="cap_mngtdeptcd_search" class="search_name" anchor="default"/>
  33. </Layout>
  34. </Layouts>
  35. </Div>
  36. <Shape position="absolute 0 88 1193 94" id="line1" class="line_10" anchor="left top right"/>
  37. <Static text="고정자산 내역" position="absolute 0 72 180 89" id="caption1" class="tit_2" anchor="default"/>
  38. <Static text="자산 이동 및 폐기 요청 목록" position="absolute 0 390 201 408" id="caption3" class="tit_2" anchor="default"/>
  39. <Shape position="absolute 0 406 1193 412" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
  40. <Grid position="absolute 0 93 1193 380" align="align:center middle;" id="grd_fixedassetslist" binddataset="ds_main_fixedassets_fixedassetslist" anchor="left top right" cellsizingtype="col" selecttype="multirow" oncelldblclick="group3_grd_fixedassetslist_oncelldblclick" autofittype="col">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="110"/>
  45. <Column size="240"/>
  46. <Column size="110"/>
  47. <Column size="110"/>
  48. <Column size="80"/>
  49. <Column size="40"/>
  50. <Column size="90"/>
  51. <Column size="80"/>
  52. <Column size="90"/>
  53. <Column size="120"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. </Columns>
  60. <Rows>
  61. <Row size="24" band="head"/>
  62. <Row size="24"/>
  63. </Rows>
  64. <Band id="head">
  65. <Cell text="자산코드"/>
  66. <Cell col="1" text="품명"/>
  67. <Cell col="2" text="모델"/>
  68. <Cell col="3" text="규격"/>
  69. <Cell col="4" text="계정과목명"/>
  70. <Cell col="5" text="수량"/>
  71. <Cell col="6" text="단가"/>
  72. <Cell col="7" text="금액"/>
  73. <Cell col="8" text="구입일자"/>
  74. <Cell col="9" text="사용부서"/>
  75. <Cell col="10"/>
  76. <Cell col="11"/>
  77. <Cell col="12"/>
  78. <Cell col="13"/>
  79. <Cell col="14"/>
  80. </Band>
  81. <Band id="body">
  82. <Cell displaytype="text" style="align:center;" text="bind:fixasetcd"/>
  83. <Cell col="1" displaytype="text" style="align:center;" text="bind:goodflaghngnm"/>
  84. <Cell col="2" displaytype="text" style="align:center top;padding:4 2 2 2;" text="bind:goodmodel" wordwrap="word"/>
  85. <Cell col="3" displaytype="text" style="align:center top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="word"/>
  86. <Cell col="4" displaytype="text" style="align:center;" text="bind:goodflag"/>
  87. <Cell col="5" style="align:center;" text="bind:fixasetqty"/>
  88. <Cell col="6" displaytype="number" text="bind:unicost"/>
  89. <Cell col="7" displaytype="number" text="bind:fixasetamt"/>
  90. <Cell col="8" displaytype="expr:utlf_isNull(possndd) ? 'normal' : 'date'" text="bind:possndd"/>
  91. <Cell col="9" displaytype="text" style="align:center;" text="bind:mngtdeptnm"/>
  92. <Cell col="10" text="bind:mngtdeptcd"/>
  93. <Cell col="11" text="bind:tempmngtdeptcd"/>
  94. <Cell col="12" text="bind:tempmngtdeptnm"/>
  95. <Cell col="13" text="bind:takeindeptcd"/>
  96. <Cell col="14" text="bind:instcd"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Grid position="absolute 0 411 1193 743" id="grd_fixedassetsmodifylist" binddataset="ds_main_fixedassetsmodify_fixedassetsmodifylist" anchor="all" cellclickbound="cell" cellsizingtype="col" selecttype="multirow" onexpandup="group3_grd_fixedassetsmodifylist_onexpandup" onmousemove="group3_grd_fixedassetsmodifylist_onmousemove" ontextchanged="group3_grd_fixedassetsmodifylist_ontextchanged" autofittype="col">
  102. <Formats>
  103. <Format id="default">
  104. <Columns>
  105. <Column size="25" band="left"/>
  106. <Column size="100"/>
  107. <Column size="135"/>
  108. <Column size="45"/>
  109. <Column size="80"/>
  110. <Column size="90"/>
  111. <Column size="90"/>
  112. <Column size="90"/>
  113. <Column size="19"/>
  114. <Column size="60"/>
  115. <Column size="85"/>
  116. <Column size="155"/>
  117. <Column size="85"/>
  118. <Column size="60"/>
  119. <Column size="60"/>
  120. <Column size="0"/>
  121. <Column size="0"/>
  122. <Column size="0"/>
  123. </Columns>
  124. <Rows>
  125. <Row size="24" band="head"/>
  126. <Row size="24"/>
  127. </Rows>
  128. <Band id="head">
  129. <Cell/>
  130. <Cell col="1" text="자산코드"/>
  131. <Cell col="2" text="품명"/>
  132. <Cell col="3" text="수량"/>
  133. <Cell col="4" text="금액"/>
  134. <Cell col="5" text="구입일자"/>
  135. <Cell col="6" text="인계부서"/>
  136. <Cell col="7" colspan="2" text="인수부서" taborder="undefined"/>
  137. <Cell col="9" text="변동유형"/>
  138. <Cell col="10" text="폐기번호"/>
  139. <Cell col="11" text="변동사유"/>
  140. <Cell col="12" text="요청일자"/>
  141. <Cell col="13" text="승인여부"/>
  142. <Cell col="14" text="반려여부"/>
  143. <Cell col="15"/>
  144. <Cell col="16"/>
  145. <Cell col="17"/>
  146. </Band>
  147. <Band id="body">
  148. <Cell celltype="head"/>
  149. <Cell col="1" displaytype="text" text="bind:fixasetcd"/>
  150. <Cell col="2" displaytype="text" text="bind:goodflaghngnm"/>
  151. <Cell col="3" text="bind:fixasetqty"/>
  152. <Cell col="4" displaytype="number" text="bind:fixasetamt"/>
  153. <Cell col="5" displaytype="expr:utlf_isNull(possndd) ? 'normal' : 'date'" text="bind:possndd"/>
  154. <Cell col="6" displaytype="text" text="bind:takeoutdeptnm"/>
  155. <Cell col="7" displaytype="text" text="bind:takeindeptnm"/>
  156. <Cell col="8" displaytype="text" edittype="text" text="bind:takeindeptcd" expandshow="show"/>
  157. <Cell col="9" displaytype="combo" edittype="combo" style="align:center;" text="bind:chantype" combodataset="ds_cmb_chantype" combocodecol="value" combodatacol="label"/>
  158. <Cell col="10" text="bind:disuseno"/>
  159. <Cell col="11" displaytype="text" edittype="text" text="bind:cmt"/>
  160. <Cell col="12" displaytype="expr:utlf_isNull(reqdd) ? 'normal' : 'date'" text="bind:reqdd" enable="false"/>
  161. <Cell col="13" displaytype="checkbox" text="bind:confyn" expr="expr:(confyn==&quot;Y&quot;||confyn==1)?1:0" enable="false"/>
  162. <Cell col="14" displaytype="checkbox" text="bind:returnyn" expr="expr:(returnyn==&quot;Y&quot;||returnyn==1)?1:0" enable="false"/>
  163. <Cell col="15" text="bind:takeoutdeptcd"/>
  164. <Cell col="16" text="bind:instcd"/>
  165. <Cell col="17" text="bind:reqno"/>
  166. </Band>
  167. </Format>
  168. </Formats>
  169. </Grid>
  170. <Button position="absolute 1113 66 1193 88" id="btn_excsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_btn_excsave_onclick"/>
  171. <Button position="absolute 1140 384 1193 406" id="btn_delrow" class="btn2" text="행삭제" anchor="top right" onclick="group3_btn_delrow_onclick"/>
  172. <Button position="absolute 1059 384 1139 406" id="button1" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_button1_onclick"/>
  173. </Layout>
  174. </Layouts>
  175. </Div>
  176. <Static id="caption6" text="고정자산 이동 및 폐기 신청" class="tit_1" position="absolute 0 0 200 25"/>
  177. </Layout>
  178. </Layouts>
  179. <Objects>
  180. <Dataset id="ds_fixaset" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  181. <ColumnInfo>
  182. <Column id="fixasetcd" type="STRING" size="256"/>
  183. <Column id="instcd" type="STRING" size="256"/>
  184. </ColumnInfo>
  185. <Rows>
  186. <Row>
  187. <Col id="fixasetcd"/>
  188. <Col id="instcd"/>
  189. </Row>
  190. </Rows>
  191. </Dataset>
  192. <Dataset id="ds_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  193. <ColumnInfo>
  194. <Column id="reqno" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  198. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_search_oncolumnchanged">
  199. <ColumnInfo>
  200. <Column id="instcd" type="STRING" size="256"/>
  201. <Column id="mngtdeptcd" type="STRING" size="256"/>
  202. <Column id="mngtdeptnm" type="STRING" size="256"/>
  203. <Column id="goodflaghngnm" type="STRING" size="256"/>
  204. <Column id="fixasetcd" type="STRING" size="256"/>
  205. </ColumnInfo>
  206. <Rows>
  207. <Row>
  208. <Col id="instcd"/>
  209. <Col id="mngtdeptcd"/>
  210. <Col id="mngtdeptnm"/>
  211. <Col id="goodflaghngnm"/>
  212. <Col id="fixasetcd"/>
  213. </Row>
  214. </Rows>
  215. </Dataset>
  216. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  217. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  218. <Dataset id="ds_main_fixedassets_fixedassetslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  219. <Dataset id="ds_send_save_fixedassetsmodifylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  220. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  221. <Dataset id="ds_main_fixedassetsmodify_fixedassetsmodifylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_fixedassetsmodify_fixedassetsmodifylist_oncolumnchanged"/>
  222. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  223. <Dataset id="ds_cmb_chantype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="label" type="STRING" size="256"/>
  226. <Column id="value" type="STRING" size="256"/>
  227. </ColumnInfo>
  228. <Rows>
  229. <Row>
  230. <Col id="label">이동</Col>
  231. <Col id="value">0</Col>
  232. </Row>
  233. <Row>
  234. <Col id="label">폐기</Col>
  235. <Col id="value">1</Col>
  236. </Row>
  237. </Rows>
  238. </Dataset>
  239. </Objects>
  240. <Bind>
  241. <BindItem id="item0" compid="group3.grp_search.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  242. <BindItem id="item1" compid="group3.grp_search.ipt_mngtdeptcd" propid="value" datasetid="ds_send_search" columnid="mngtdeptcd"/>
  243. <BindItem id="item2" compid="group3.grp_search.ipt_goodflagnm_search" propid="value" datasetid="ds_send_search" columnid="goodflaghngnm"/>
  244. <BindItem id="item3" compid="group3.grp_search.ipt_fixasetcd" propid="value" datasetid="ds_send_search" columnid="fixasetcd"/>
  245. <BindItem id="item4" compid="group3.grp_search.ipt_mngtdeptnm" propid="value" datasetid="ds_send_search" columnid="mngtdeptnm"/>
  246. </Bind>
  247. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  248. * System Name :
  249. * Job Name :
  250. * Creator :
  251. * Make Date : 2017-06-19
  252. * Description :
  253. *---------------------------------------------------------------------------------------
  254. * Modify Date Modifier Modify Description
  255. *---------------------------------------------------------------------------------------
  256. * 2017-06-19 Live Converter TF->XP
  257. *
  258. *---------------------------------------------------------------------------------------
  259. ****************************************************************************************/
  260. /***************************************************************************************
  261. * System Name :
  262. * Job Name :
  263. * Creator :
  264. * Make Date : 2017-06-19
  265. * Description :
  266. *---------------------------------------------------------------------------------------
  267. * Modify Date Modifier Modify Description
  268. *---------------------------------------------------------------------------------------
  269. * 2017-06-19 Live Converter TF->XP
  270. *
  271. *---------------------------------------------------------------------------------------
  272. ****************************************************************************************/
  273. //=======================================================================================
  274. // Lib Include
  275. //---------------------------------------------------------------------------------------
  276. include "com_commonxp::comm_main.xjs";
  277. include "mis_miscommonxp::MIS.xjs";
  278. include "mis_miscommonxp::RSZ001.xjs";
  279. //=======================================================================================
  280. // Global Form Variable
  281. //---------------------------------------------------------------------------------------
  282. var arErrorCode = new HashArray();
  283. //=======================================================================================
  284. // Function
  285. //---------------------------------------------------------------------------------------
  286. /****************************************************************************************
  287. * Argument : N/A
  288. * Description : 조회조건 변경시 Grid 초기화(사용안함)
  289. ****************************************************************************************/
  290. function fSearchCondChanged() {
  291. // model.removeNodeset(grd_stock.nodeset);
  292. // model.removeNodeset(grd_win.nodeset);
  293. // model.removeNodeset(grd_delive.nodeset);
  294. // model.removeNodeset(grd_deptstock.nodeset);
  295. }
  296. //=======================================================================================
  297. // Event
  298. //---------------------------------------------------------------------------------------
  299. /****************************************************************************************
  300. * Components : Form
  301. * Description : 화면 처음 초기화시 폼초기화
  302. ****************************************************************************************/
  303. function SMRSC14000_onload(obj:Form, e:LoadEventInfo) {
  304. frmf_initForm(obj);
  305. //grdf_initGrid(grd_XXX);
  306. grdf_setGridSort(group3.grd_fixedassetslist);
  307. grdf_setGridSort(group3.grd_fixedassetsmodifylist);
  308. grdf_setRowTypeIcon(group3.grd_fixedassetsmodifylist, 0);
  309. //화면 Control을 초기화한다
  310. misfGridInit(group3.grd_fixedassetslist);
  311. misfGridInit(group3.grd_fixedassetsmodifylist);
  312. misfMsterDetailSet(group3.grd_fixedassetsmodifylist, null, "TRRSC14002" ,"Y","free");
  313. misfComboInstCdListMulti("group3.grp_search.cmb_instcd",utlf_getCurrentDate(),"","N");
  314. ds_send_search.setColumn( 0, "mngtdeptcd", sysf_getUserInfo("dutplcecd")); //기관 설정
  315. ds_send_search.setColumn( 0, "mngtdeptnm", sysf_getUserInfo("dutplcenm")); //기관 설정
  316. ds_send_search.setColumn( 0, "instcd", sysf_getUserInfo("dutplceinstcd")); //기관 설정
  317. misfMsterDetailRetrieve();
  318. for(var i = 0 ; i < ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount ; i++){
  319. var confyn = ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(i, "confyn");
  320. if(confyn == "Y"){
  321. misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "takeindeptcd,chantype,cmt,reqdd,confyn,returnyn", true, i);
  322. }
  323. }
  324. if(sysf_getUserInfo("userid") == "MIS") {
  325. sysf_messageBox("MIS입니다.", "E999", "");
  326. group3.grp_search.ipt_mngtdeptcd.enable = true;
  327. group3.grp_search.btn_mngtdeptcd.enable = true;
  328. }
  329. }
  330. /****************************************************************************************
  331. * Components : Button
  332. * Description : 저장
  333. ****************************************************************************************/
  334. function group1_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  335. for(var i = 0 ; i < ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount ; i++) {
  336. var reqdd = dsf_getColumnNullToEmpty(ds_main_fixedassetsmodify_fixedassetsmodifylist, i, "reqdd");
  337. var takeindeptcd = dsf_getColumnNullToEmpty(ds_main_fixedassetsmodify_fixedassetsmodifylist, i, "takeindeptcd");
  338. if(takeindeptcd == ""){
  339. sysf_messageBox((i+1)+"번째행에 인수부서가 선택되지않았습니다. 선택하여주십시오.", "E999", "");
  340. ds_main_fixedassetsmodify_fixedassetsmodifylist.rowposition = i;
  341. // group3.grd_fixedassetsmodifylist.col = group3.grd_fixedassetsmodifylist.colRef("takeindeptnm");
  342. group3.grd_fixedassetsmodifylist.setFocus();
  343. group3.grd_fixedassetsmodifylist.setCellPos(group3.grd_fixedassetsmodifylist.getBindCellIndex("body","takeindeptnm"));
  344. return;
  345. }
  346. if(reqdd == ""){
  347. sysf_messageBox((i+1)+"번째행에 요청일자가 입력되지않았습니다. 입력하여주십시오.", "E999", "");
  348. ds_main_fixedassetsmodify_fixedassetsmodifylist.rowposition = i;
  349. // group3.grd_fixedassetsmodifylist.col = group3.grd_fixedassetsmodifylist.colRef("reqdd");
  350. group3.grd_fixedassetsmodifylist.setFocus();
  351. group3.grd_fixedassetsmodifylist.setCellPos(group3.grd_fixedassetsmodifylist.getBindCellIndex("body","reqdd"));
  352. group3.grd_fixedassetsmodifylist.showEditor(true);
  353. return;
  354. }
  355. }
  356. misfSave("TXRSC14001");
  357. group3.grp_search.btn_search.click();
  358. }
  359. /****************************************************************************************
  360. * Components : Button
  361. * Description : 조회
  362. ****************************************************************************************/
  363. function group3_grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  364. misfGridInit(group3.grd_fixedassetslist);
  365. misfGridInit(group3.grd_fixedassetsmodifylist);
  366. var oParam = {};
  367. oParam.id = "TRRSC14001";
  368. oParam.service = "reqapp.ReqMngt";
  369. oParam.method = "reqGetFixedAssetsList";
  370. oParam.inds = "req=ds_send_search";
  371. oParam.outds = "ds_main_fixedassets_fixedassetslist=fixedassetslist";
  372. oParam.async = false;
  373. //oParam.callback = "cf_TRRSC14001";
  374. tranf_submit(oParam);
  375. misfMsterDetailRetrieve();
  376. for(var i = 0 ; i < ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount ; i++){
  377. var confyn = ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(i, "confyn");
  378. if(confyn == "Y"){
  379. misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "takeindeptcd,chantype,cmt,reqdd,confyn,returnyn", true, i);
  380. }
  381. }
  382. }
  383. /****************************************************************************************
  384. * Components : Button
  385. * Description : 사용부서 조회
  386. ****************************************************************************************/
  387. function group3_grp_search_btn_mngtdeptcd_onclick(obj:Button, e:ClickEventInfo) {
  388. misfOpenPopUpList("02", group3.grp_search.ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  389. }
  390. /****************************************************************************************
  391. * Components : Grid
  392. * Description : 고정자산내역 선택
  393. ****************************************************************************************/
  394. function group3_grd_fixedassetslist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  395. if(dsf_getColumnNullToEmpty(ds_main_fixedassets_fixedassetslist, e.row, "fixasetcd") == ""){
  396. sysf_messageBox("고정자산 내역이 비어있습니다.", "E999", "");
  397. return;
  398. }
  399. misfGridIUD(group3.grd_fixedassetsmodifylist,"A");
  400. var nRow = ds_main_fixedassetsmodify_fixedassetsmodifylist.rowcount - 1;
  401. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "instcd",ds_send_search.getColumn(0, "instcd"));
  402. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "fixasetcd",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "fixasetcd"));
  403. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "goodflaghngnm",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "goodflaghngnm"));
  404. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "fixasetqty",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "fixasetqty"));
  405. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "fixasetamt",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "fixasetamt"));
  406. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "takeoutdeptnm",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "mngtdeptnm"));
  407. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "takeoutdeptcd",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "mngtdeptcd"));
  408. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "possndd",ds_main_fixedassets_fixedassetslist.getColumn(e.row, "possndd"));
  409. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "chantype", 0);
  410. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "confyn", "N");
  411. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(nRow, "reqdd", utlf_getCurrentDate());
  412. // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("confpsn")) = "true";
  413. // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("reqdd")) = "true";
  414. // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("returnyn")) = "true";
  415. // group3.grd_fixedassetsmodifylist.cellAttribute("disabled",group3.grd_fixedassetsmodifylist.row, group3.grd_fixedassetsmodifylist.colRef("confyn")) = "true";
  416. misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "reqdd,returnyn,confyn", true, nRow);
  417. misfSetReadOnlyCol(group3.grd_fixedassetsmodifylist, "takeindeptcd,chantype,cmt", false, nRow);
  418. }
  419. /****************************************************************************************
  420. * Components : Grid
  421. * Description : 값 변경시
  422. ****************************************************************************************/
  423. function group3_grd_fixedassetsmodifylist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
  424. if(ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(e.row, "chantype") == "1") {
  425. ds_fixaset.setColumn( 0, "fixasetcd", ds_main_fixedassets_fixedassetslist.getColumn(ds_main_fixedassets_fixedassetslist.rowposition, "fixasetcd"));
  426. ds_fixaset.setColumn( 0, "instcd", ds_main_fixedassets_fixedassetslist.getColumn(ds_main_fixedassets_fixedassetslist.rowposition, "instcd"));
  427. var oParam = {};
  428. oParam.id = "TRRSC14003";
  429. oParam.service = "reqapp.ReqMngt";
  430. oParam.method = "reqGetFixedAssetsReqNo";
  431. oParam.inds = "req=ds_fixaset";
  432. oParam.outds = "ds_result=result";
  433. oParam.async = false;
  434. //oParam.callback = "cf_TRRSC14003";
  435. tranf_submit(oParam);
  436. var reqno = ds_result.getColumn(0, "reqno");
  437. ds_main_fixedassetsmodify_fixedassetsmodifylist.setColumn(e.row, "disuseno", reqno);
  438. }
  439. }
  440. /****************************************************************************************
  441. * Components : Button
  442. * Description : 고정자산내역 엑셀저장
  443. ****************************************************************************************/
  444. function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
  445. misfSaveExcel(group3.grd_fixedassetslist);
  446. }
  447. /****************************************************************************************
  448. * Components : Button
  449. * Description : 자산이동 및 폐기 요청목록 행삭제
  450. ****************************************************************************************/
  451. function group3_btn_delrow_onclick(obj:Button, e:ClickEventInfo) {
  452. if(ds_main_fixedassetsmodify_fixedassetsmodifylist.getColumn(ds_main_fixedassetsmodify_fixedassetsmodifylist.rowposition, "confyn") == "Y") {
  453. sysf_messageBox("승인된 자료는 삭제할 수 없습니다.", "E999", "");
  454. return;
  455. }
  456. misfGridIUD(group3.grd_fixedassetsmodifylist, "D");
  457. }
  458. /****************************************************************************************
  459. * Components : Button
  460. * Description : 자산이동 및 폐기 요청목록 엑셀저장
  461. ****************************************************************************************/
  462. function group3_button1_onclick(obj:Button, e:ClickEventInfo) {
  463. misfSaveExcel(group3.grd_fixedassetsmodifylist);
  464. }
  465. /****************************************************************************************
  466. * Components : Dataset
  467. * Description : 체크박스 설정
  468. ****************************************************************************************/
  469. function ds_main_fixedassetsmodify_fixedassetsmodifylist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  470. {
  471. if(e.columnid=="confyn" || e.columnid == "returnyn") {
  472. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  473. }
  474. }
  475. /****************************************************************************************
  476. * Components : Edit
  477. * Description : 사용부서 조회
  478. ****************************************************************************************/
  479. function group3_grp_search_ipt_mngtdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  480. {
  481. if(e.keycode == 13) obj.updateToDataset();
  482. }
  483. /****************************************************************************************
  484. * Components : Dataset
  485. * Description : 데이터 변경시
  486. ****************************************************************************************/
  487. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  488. {
  489. if(e.columnid == "mngtdeptcd") {
  490. if(utlf_isNull(group3.grp_search.ipt_mngtdeptcd.value)){
  491. group3.grp_search.ipt_mngtdeptnm.value = "";
  492. }else {
  493. group3.grp_search.ipt_mngtdeptcd.setFocus();
  494. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm");
  495. }
  496. }
  497. }
  498. /****************************************************************************************
  499. * Components : Grid
  500. * Description : 그리드버튼 이벤트
  501. ****************************************************************************************/
  502. function group3_grd_fixedassetsmodifylist_onexpandup(obj:Grid, e:GridMouseEventInfo)
  503. {
  504. if(e.col == obj.getBindCellIndex("body","takeindeptcd")) {
  505. misfOpenPopUpList("02", obj, "", "takeindeptcd,takeindeptnm");
  506. }
  507. }
  508. function group3_grd_fixedassetsmodifylist_onmousemove(obj:Grid, e:GridMouseEventInfo)
  509. {
  510. if(e.row > -1 && e.col == obj.getBindCellIndex("body","takeindeptcd")) obj.autoenter = "select";
  511. else obj.autoenter = "key";
  512. }
  513. ]]></Script>
  514. </Form>
  515. </FDL>