SMRSC16000_고정자산이동및폐기접수.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC16000" position="absolute 0 0 1196 797" titletext="고정자산이동및폐기접수" onload="SMRSC16000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 26 1195 53" 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 1139 0 1195 22" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="group1_btn_save_onclick"/>
  12. <Button position="absolute 1081 0 1137 22" id="btn_conf" class="btn4" visible="false" text="확인" anchor="top right" onclick="group1_btn_conf_onclick"/>
  13. <Button position="absolute 1 0 57 22" id="button5" class="btn6" text="출력" anchor="default" onclick="group1_button5_onclick"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. <Div position="absolute 0 51 1195 795" id="group3" scrollbars="autoboth" anchor="all">
  18. <Layouts>
  19. <Layout>
  20. <Div position="absolute 0 0 1195 60" align="align:center top;" id="grp_search" anchor="left top right" class="div_SA2">
  21. <Layouts>
  22. <Layout>
  23. <Button position="absolute 1127 19 1183 41" id="btn_search" class="btn1" taborder="8" text="조회" anchor="top right" onclick="group3_grp_search_btn_search_onclick"/>
  24. <Combo position="absolute 92 8 237 27" id="cmb_instcd" class="combo_default" enable="false" taborder="0" anchor="default"/>
  25. <Static text="기관코드" position="absolute 13 9 99 26" id="cap_instcd" class="search_name" anchor="default"/>
  26. <Shape position="absolute 1112 9 1118 51" linetype="vertical" id="line30" class="line_4" anchor="top right"/>
  27. <Edit position="absolute 92 33 215 52" id="ipt_takeindeptcd" class="input_search" taborder="4" anchor="default" autoselect="true" onkeydown="group3_grp_search_ipt_takeindeptcd_onkeydown"/>
  28. <Button position="absolute 220 34 236 50" id="btn_takeindeptcd" class="icon_search" taborder="10" text="" anchor="default" onclick="group3_grp_search_btn_takeindeptcd_onclick"/>
  29. <Edit position="absolute 239 33 430 52" id="ipt_takeindeptnm" class="input_search" enable="false" anchor="default" autoselect="true" taborder="5"/>
  30. <Static text="인수부서" position="absolute 13 35 105 52" id="cap_mngtdeptcd_search" class="search_name" anchor="default"/>
  31. <Static text="승인일자" position="absolute 270 9 356 26" id="caption4" class="search_name" anchor="default"/>
  32. <Calendar position="absolute 350 8 460 27" align="align:center middle;" id="ipt_fromdd" taborder="1" mask="yyyy-mm-dd" anchor="default" autoselect="true" dateformat="yyyy-MM-dd" value="null"/>
  33. <Calendar position="absolute 480 8 590 27" align="align:center middle;" id="ipt_todd" taborder="2" mask="yyyy-mm-dd" anchor="default" autoselect="true" dateformat="yyyy-MM-dd"/>
  34. <Static text="~" position="absolute 465 10 480 30" id="caption2" anchor="default"/>
  35. <Button position="absolute 673 35 689 51" id="btn_takeoutdeptcd" class="icon_search" taborder="9" text="" anchor="default" onclick="group3_grp_search_btn_takeoutdeptcd_onclick"/>
  36. <Edit position="absolute 692 33 883 52" id="ipt_takeoutdeptnm" class="input_search" enable="false" anchor="default" autoselect="true" taborder="7"/>
  37. <Edit position="absolute 545 33 668 52" id="ipt_takeoutdeptcd" class="input_search" taborder="6" anchor="default" autoselect="true" onkeydown="group3_grp_search_ipt_takeoutdeptcd_onkeydown"/>
  38. <Static text="인계부서" position="absolute 466 35 558 52" id="caption3" class="search_name" anchor="default"/>
  39. <Static text="변동유형" position="absolute 625 9 711 26" id="caption5" class="search_name" anchor="default"/>
  40. <Combo position="absolute 710 8 810 27" id="cmb_chantype" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" taborder="3">
  41. <Dataset id="innerdataset">
  42. <ColumnInfo>
  43. <Column id="codecolumn"/>
  44. <Column id="datacolumn"/>
  45. </ColumnInfo>
  46. <Rows>
  47. <Row>
  48. <Col id="codecolumn">
  49. </Col>
  50. <Col id="datacolumn">전체</Col>
  51. </Row>
  52. <Row>
  53. <Col id="codecolumn">0</Col>
  54. <Col id="datacolumn">이동</Col>
  55. </Row>
  56. <Row>
  57. <Col id="codecolumn">1</Col>
  58. <Col id="datacolumn">폐기</Col>
  59. </Row>
  60. </Rows>
  61. </Dataset>
  62. </Combo>
  63. </Layout>
  64. </Layouts>
  65. </Div>
  66. <Shape position="absolute 0 87 1195 93" id="line1" class="line_10" anchor="left top right"/>
  67. <Static text="고정자산 내역" position="absolute 0 71 180 88" id="caption1" class="tit_2" anchor="default"/>
  68. <Grid position="absolute 0 92 1195 744" id="grd_fixedassetstretlist" binddataset="ds_main_fixedassetstret_fixedassetstretlist" anchor="all" oncelldblclick="group3_grd_fixedassetstretlist_oncelldblclick" ontextchanged="group3_grd_fixedassetstretlist_ontextchanged">
  69. <Formats>
  70. <Format id="default">
  71. <Columns>
  72. <Column size="25" band="left"/>
  73. <Column size="35" band="left"/>
  74. <Column size="100" band="left"/>
  75. <Column size="95" band="left"/>
  76. <Column size="120" band="left"/>
  77. <Column size="45"/>
  78. <Column size="70"/>
  79. <Column size="80"/>
  80. <Column size="70"/>
  81. <Column size="120"/>
  82. <Column size="120"/>
  83. <Column size="55"/>
  84. <Column size="150"/>
  85. <Column size="70"/>
  86. <Column size="45"/>
  87. <Column size="45"/>
  88. <Column size="45"/>
  89. <Column size="100"/>
  90. <Column size="55"/>
  91. <Column size="100"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. <Column size="0"/>
  95. <Column size="0"/>
  96. <Column size="0"/>
  97. <Column size="0"/>
  98. <Column size="0"/>
  99. <Column size="0"/>
  100. <Column size="0"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="24" band="head"/>
  104. <Row size="24"/>
  105. </Rows>
  106. <Band id="head">
  107. <Cell/>
  108. <Cell col="1" text="선택"/>
  109. <Cell col="2" text="계정과목"/>
  110. <Cell col="3" text="자산코드"/>
  111. <Cell col="4" text="품명"/>
  112. <Cell col="5" text="수량"/>
  113. <Cell col="6" text="단가"/>
  114. <Cell col="7" text="금액"/>
  115. <Cell col="8" text="구입일자"/>
  116. <Cell col="9" text="인계부서"/>
  117. <Cell col="10" text="인수부서"/>
  118. <Cell col="11" text="변동유형"/>
  119. <Cell col="12" text="변동사유"/>
  120. <Cell col="13" text="승인일자"/>
  121. <Cell col="14" text="담당자"/>
  122. <Cell col="15" text="파트장"/>
  123. <Cell col="16" text="팀장"/>
  124. <Cell col="17" text="접수일자"/>
  125. <Cell col="18" text="반려여부"/>
  126. <Cell col="19" text="반려사유"/>
  127. <Cell col="20"/>
  128. <Cell col="21"/>
  129. <Cell col="22"/>
  130. <Cell col="23"/>
  131. <Cell col="24"/>
  132. <Cell col="25"/>
  133. <Cell col="26"/>
  134. <Cell col="27"/>
  135. <Cell col="28"/>
  136. </Band>
  137. <Band id="body">
  138. <Cell celltype="head"/>
  139. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:(sel==&quot;Y&quot;||sel==1)?1:0"/>
  140. <Cell col="2" displaytype="text" text="bind:acntnm"/>
  141. <Cell col="3" displaytype="text" text="bind:fixasetcd"/>
  142. <Cell col="4" displaytype="text" style="align:left top;padding:4 2 2 2;" text="bind:goodflaghngnm" wordwrap="word"/>
  143. <Cell col="5" text="bind:fixasetqty"/>
  144. <Cell col="6" displaytype="number" text="bind:unicost"/>
  145. <Cell col="7" displaytype="number" text="bind:fixasetamt"/>
  146. <Cell col="8" displaytype="expr:utlf_isNull(possndd) ? 'normal' : 'date' " text="bind:possndd"/>
  147. <Cell col="9" displaytype="text" text="bind:takeoutdeptnm"/>
  148. <Cell col="10" displaytype="text" text="bind:takeindeptnm"/>
  149. <Cell col="11" displaytype="combo" style="align:center;" text="bind:chantype" combodataset="ds_cmb_chantype" combocodecol="value" combodatacol="label" enable="false"/>
  150. <Cell col="12" displaytype="text" style="align:left top;padding:4 2 2 2;" text="bind:cmt" wordwrap="word"/>
  151. <Cell col="13" displaytype="expr:utlf_isNull(confdt) ? 'normal' : 'date' " text="bind:confdt" enable="false"/>
  152. <Cell col="14" displaytype="checkbox" edittype="checkbox" text="bind:tretyn" expr="expr:(tretyn==&quot;Y&quot;||tretyn==1)?1:0"/>
  153. <Cell col="15" displaytype="checkbox" edittype="checkbox" text="bind:partyn" expr="expr:(partyn==&quot;Y&quot;||partyn==1)?1:0"/>
  154. <Cell col="16" displaytype="checkbox" edittype="checkbox" text="bind:teamyn" expr="expr:(teamyn==&quot;Y&quot;||teamyn==1)?1:0"/>
  155. <Cell col="17" displaytype="date" edittype="date" text="bind:tretdt" calendardisplaynulltype="none"/>
  156. <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:returnyn" expr="expr:returnyn == 'Y' || returnyn == '1' ? '1' : '0'"/>
  157. <Cell col="19" displaytype="text" edittype="text" style="align:left top;padding:4 2 2 2;" text="bind:returncmt" wordwrap="word"/>
  158. <Cell col="20" text="bind:takeoutdeptcd"/>
  159. <Cell col="21" text="bind:takeindeptcd"/>
  160. <Cell col="22" text="bind:instcd"/>
  161. <Cell col="23" text="bind:reqno"/>
  162. <Cell col="24" text="bind:reqdd"/>
  163. <Cell col="25" text="bind:groupcd"/>
  164. <Cell col="26" text="bind:partpsn"/>
  165. <Cell col="27" text="bind:teampsn"/>
  166. <Cell col="28" text="bind:tretnm"/>
  167. </Band>
  168. </Format>
  169. </Formats>
  170. </Grid>
  171. <Button position="absolute 1115 65 1195 87" id="btn_excsave" class="btn7" text="엑셀저장" anchor="top right" onclick="group3_btn_excsave_onclick"/>
  172. <Button position="absolute 1050 65 1114 87" id="btn_allsel" class="btn2" visible="false" text="전체선택" anchor="top right" onclick="group3_btn_allsel_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_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  181. <ColumnInfo>
  182. <Column id="flag" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. </Dataset>
  185. <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">
  186. <ColumnInfo>
  187. <Column id="instcd" type="STRING" size="256"/>
  188. <Column id="takeindeptcd" type="STRING" size="256"/>
  189. <Column id="takeindeptnm" type="STRING" size="256"/>
  190. <Column id="takeoutdeptcd" type="STRING" size="256"/>
  191. <Column id="takeoutdeptnm" type="STRING" size="256"/>
  192. <Column id="fromdd" type="STRING" size="256"/>
  193. <Column id="todd" type="STRING" size="256"/>
  194. <Column id="chantype" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. <Rows>
  197. <Row>
  198. <Col id="instcd"/>
  199. <Col id="takeindeptcd"/>
  200. <Col id="takeindeptnm"/>
  201. <Col id="takeoutdeptcd"/>
  202. <Col id="takeoutdeptnm"/>
  203. <Col id="fromdd"/>
  204. <Col id="todd"/>
  205. <Col id="chantype"/>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  210. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  211. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  212. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  213. <Dataset id="ds_send_save_fixedassetstretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  214. <Dataset id="ds_main_fixedassetstret_fixedassetstretlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_fixedassetstret_fixedassetstretlist_oncolumnchanged"/>
  215. <Dataset id="ds_cmb_chantype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="label" type="STRING" size="256"/>
  218. <Column id="value" type="STRING" size="256"/>
  219. </ColumnInfo>
  220. <Rows>
  221. <Row>
  222. <Col id="label">이동</Col>
  223. <Col id="value">0</Col>
  224. </Row>
  225. <Row>
  226. <Col id="label">폐기</Col>
  227. <Col id="value">1</Col>
  228. </Row>
  229. </Rows>
  230. </Dataset>
  231. </Objects>
  232. <Bind>
  233. <BindItem id="item0" compid="group3.grp_search.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  234. <BindItem id="item1" compid="group3.grp_search.ipt_takeindeptcd" propid="value" datasetid="ds_send_search" columnid="takeindeptcd"/>
  235. <BindItem id="item2" compid="group3.grp_search.ipt_takeindeptnm" propid="value" datasetid="ds_send_search" columnid="takeindeptnm"/>
  236. <BindItem id="item3" compid="group3.grp_search.ipt_fromdd" propid="value" datasetid="ds_send_search" columnid="fromdd"/>
  237. <BindItem id="item4" compid="group3.grp_search.ipt_todd" propid="value" datasetid="ds_send_search" columnid="todd"/>
  238. <BindItem id="item5" compid="group3.grp_search.ipt_takeoutdeptnm" propid="value" datasetid="ds_send_search" columnid="takeoutdeptnm"/>
  239. <BindItem id="item6" compid="group3.grp_search.ipt_takeoutdeptcd" propid="value" datasetid="ds_send_search" columnid="takeoutdeptcd"/>
  240. <BindItem id="item7" compid="group3.grp_search.cmb_chantype" propid="value" datasetid="ds_send_search" columnid="chantype"/>
  241. </Bind>
  242. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  243. * System Name :
  244. * Job Name :
  245. * Creator :
  246. * Make Date : 2017-06-19
  247. * Description :
  248. *---------------------------------------------------------------------------------------
  249. * Modify Date Modifier Modify Description
  250. *---------------------------------------------------------------------------------------
  251. * 2017-06-19 Live Converter TF->XP
  252. *
  253. *---------------------------------------------------------------------------------------
  254. ****************************************************************************************/
  255. //=======================================================================================
  256. // Lib Include
  257. //---------------------------------------------------------------------------------------
  258. include "com_commonxp::comm_main.xjs";
  259. include "mis_miscommonxp::MIS.xjs";
  260. include "mis_miscommonxp::RSZ001.xjs";
  261. //=======================================================================================
  262. // Global Form Variable
  263. //---------------------------------------------------------------------------------------
  264. var arErrorCode = new HashArray();
  265. //=======================================================================================
  266. // Function
  267. //---------------------------------------------------------------------------------------
  268. /****************************************************************************************
  269. * Argument : N/A
  270. * Description : 조회조건 변경시 Grid 초기화(사용안함)
  271. ****************************************************************************************/
  272. function fSearchCondChanged() {
  273. // model.removeNodeset(grd_stock.nodeset);
  274. // model.removeNodeset(grd_win.nodeset);
  275. // model.removeNodeset(grd_delive.nodeset);
  276. // model.removeNodeset(grd_deptstock.nodeset);
  277. // model.refresh();
  278. }
  279. //=======================================================================================
  280. // Event
  281. //---------------------------------------------------------------------------------------
  282. /****************************************************************************************
  283. * Components : Form
  284. * Description : 화면 처음 초기화시 폼초기화
  285. ****************************************************************************************/
  286. function SMRSC16000_onload(obj:Form, e:LoadEventInfo) {
  287. frmf_initForm(obj);
  288. //grdf_initGrid(grd_XXX);
  289. grdf_setGridSort(group3.grd_fixedassetstretlist);
  290. grdf_setRowTypeIcon(group3.grd_fixedassetstretlist, 0);
  291. if((sysf_getUserInfo("dutplcecd") == "4020334000") || sysf_getUserInfo("userid") == "MIS" ){
  292. }else{
  293. sysf_messageBox("물류파트가 아닌부서는 화면권한이 없습니다.", "E999", "");
  294. group1.enable = false;
  295. group3.enable = false;
  296. return;
  297. }
  298. //화면 Control을 초기화한다
  299. group3.grd_fixedassetstretlist.setFormatColProperty(group3.grd_fixedassetstretlist.getBindCellIndex("body","sel"),"size",0);
  300. var flag = ds_ref.getColumn(0, "flag");
  301. if(flag == "1"){
  302. group3.grd_fixedassetstretlist.setFormatColProperty(group3.grd_fixedassetstretlist.getBindCellIndex("body","sel"),"size",35);
  303. group3.grd_fixedassetstretlist.setFormatColProperty(group3.grd_fixedassetstretlist.getBindCellIndex("body","cmt"),"size",115);
  304. group3.btn_allsel.visible = true;
  305. group1.btn_conf.visible = true;
  306. ds_send_search.setColumn( 0, "chantype","0");
  307. group3.grp_search.cmb_chantype.enable = false;
  308. }else if(flag == "2"){
  309. ds_send_search.setColumn( 0, "chantype","1");
  310. group3.grp_search.cmb_chantype.enable = false;
  311. }
  312. misfGridInit(group3.grd_fixedassetstretlist);
  313. misfMsterDetailSet(group3.grd_fixedassetstretlist, null, "TRRSC16001" ,"Y", "free");
  314. misfComboInstCdListMulti("group3.grp_search.cmb_instcd",utlf_getCurrentDate(),"","N");
  315. ds_send_search.setColumn( 0, "instcd", sysf_getUserInfo("dutplceinstcd")); //기관 설정
  316. ds_send_search.setColumn( 0, "fromdd", utlf_getCurrentDate().substr(0,6)+"01");
  317. ds_send_search.setColumn( 0, "todd", utlf_getCurrentDate());
  318. misfMsterDetailRetrieve();
  319. }
  320. /****************************************************************************************
  321. * Components : Button
  322. * Description : 저장
  323. ****************************************************************************************/
  324. function group1_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  325. for(var i = 0 ; i < ds_main_fixedassetstret_fixedassetstretlist.rowcount ; i++){
  326. var tretyn = ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "tretyn");
  327. var tretdt = dsf_getColumnNullToEmpty(ds_main_fixedassetstret_fixedassetstretlist, i, "tretdt");
  328. if(tretyn == "Y" && tretdt == ""){
  329. sysf_messageBox(i+"번째행에 접수는 되었지만 접수일자가 없습니다. 입력하여주십시오.", "E999", "");
  330. ds_main_fixedassetstret_fixedassetstretlist.rowposition = i;
  331. group3.grd_fixedassetstretlist.setFocus();
  332. group3.grd_fixedassetstretlist.setCellPos(group3.grd_fixedassetstretlist.getBindCellIndex("body","tretdt"));
  333. group3.grd_fixedassetstretlist.showEditor(true);
  334. return;
  335. }
  336. }
  337. misfSave("TXRSC16001");
  338. group3.grp_search.btn_search.click();
  339. }
  340. /****************************************************************************************
  341. * Components : Button
  342. * Description : 확인
  343. ****************************************************************************************/
  344. function group1_btn_conf_onclick(obj:Button, e:ClickEventInfo) {
  345. if(!frmf_isPopup()) return;
  346. var parent = this.opener;
  347. var flag = ds_ref.getColumn(0, "flag");
  348. if(flag == "1"){
  349. var cnt = 0;
  350. parent.dsf_createDs("ds_ref_chgnhist", [
  351. {col:"fixasetcd", type:"STRING", size:256}
  352. , {col:"goodflaghngnm", type:"STRING", size:256}
  353. , {col:"tretdt", type:"STRING", size:256}
  354. , {col:"chantype", type:"STRING", size:256}
  355. , {col:"takeindeptcd", type:"STRING", size:256}
  356. , {col:"takeindeptnm", type:"STRING", size:256}
  357. , {col:"takeoutdeptcd", type:"STRING", size:256}
  358. , {col:"takeoutdeptnm", type:"STRING", size:256}
  359. , {col:"fixasetamt", type:"STRING", size:256}
  360. , {col:"instcd", type:"STRING", size:256}
  361. ]);
  362. for(var i = 0 ; i < ds_main_fixedassetstret_fixedassetstretlist.rowcount ; i++){
  363. var sel = ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "sel");
  364. if(sel == "Y"){
  365. var nRow = parent.ds_ref_chgnhist.addRow();
  366. parent.ds_ref_chgnhist.setColumn( nRow, "fixasetcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "fixasetcd"));
  367. parent.ds_ref_chgnhist.setColumn( nRow, "goodflaghngnm", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "goodflaghngnm"));
  368. parent.ds_ref_chgnhist.setColumn( nRow, "tretdt", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "tretdt"));
  369. parent.ds_ref_chgnhist.setColumn( nRow, "chantype", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "chantype"));
  370. parent.ds_ref_chgnhist.setColumn( nRow, "takeindeptcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeindeptcd"));
  371. parent.ds_ref_chgnhist.setColumn( nRow, "takeindeptnm", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeindeptnm"));
  372. parent.ds_ref_chgnhist.setColumn( nRow, "takeoutdeptcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeoutdeptcd"));
  373. parent.ds_ref_chgnhist.setColumn( nRow, "takeoutdeptnm", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "takeoutdeptnm"));
  374. parent.ds_ref_chgnhist.setColumn( nRow, "fixasetamt", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "fixasetamt"));
  375. parent.ds_ref_chgnhist.setColumn( nRow, "instcd", ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "instcd"));
  376. cnt++;
  377. }
  378. }
  379. if(utlf_isNull(this.objects["ds_temp"])) parent.dsf_createDs("ds_ref");
  380. dsf_makeValue(parent.ds_ref, "cnt", "string", cnt);
  381. }
  382. this.close();
  383. }
  384. /****************************************************************************************
  385. * Components : Button
  386. * Description : 출력
  387. ****************************************************************************************/
  388. function group1_button5_onclick(obj:Button, e:ClickEventInfo) {
  389. group3.grp_search.btn_search.click();
  390. if(ds_main_fixedassetstret_fixedassetstretlist.rowcount == 0){
  391. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  392. return;
  393. }
  394. var objDOM = rptf_createDOM();
  395. var objParam = new Object();
  396. rptf_setNodeListToDOM(objDOM, "/root/main/fixedassetstret/fixedassetstretlist" , ds_main_fixedassetstret_fixedassetstretlist);
  397. objParam.xml_data_XML1 = objDOM.documentElement.source;
  398. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  399. rptf_exeReportPreview30(["RPRSC16000"],[objParam], option);
  400. }
  401. /****************************************************************************************
  402. * Components : Button
  403. * Description : 고정자산 내역 조회
  404. ****************************************************************************************/
  405. function group3_grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  406. misfGridInit(group3.grd_fixedassetstretlist);
  407. misfMsterDetailRetrieve();
  408. }
  409. /****************************************************************************************
  410. * Components : Button
  411. * Description : 인수부서 조회
  412. ****************************************************************************************/
  413. function group3_grp_search_btn_takeindeptcd_onclick(obj:Button, e:ClickEventInfo) {
  414. misfOpenPopUpList("02", group3.grp_search.ipt_takeindeptcd,"","takeindeptcd,takeindeptnm");
  415. }
  416. /****************************************************************************************
  417. * Components : Button
  418. * Description : 인계부서 조회
  419. ****************************************************************************************/
  420. function group3_grp_search_btn_takeoutdeptcd_onclick(obj:Button, e:ClickEventInfo) {
  421. misfOpenPopUpList("02", group3.grp_search.ipt_takeoutdeptcd,"","takeoutdeptcd,takeoutdeptnm");
  422. }
  423. /****************************************************************************************
  424. * Components : Grid
  425. * Description : 고정자산내역 선택
  426. ****************************************************************************************/
  427. function group3_grd_fixedassetstretlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  428. if(!frmf_isPopup()) return;
  429. var parent = this.opener;
  430. var flag = ds_ref.getColumn(0, "flag");
  431. if(flag == "2"){
  432. var goodflaghngnm = ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "goodflaghngnm");
  433. var fixasetcd = ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "fixasetcd");
  434. parent.ds_send.setColumn( 0, "fixasetcd_search",fixasetcd);
  435. parent.ds_send.setColumn( 0, "fixasetnm_search",goodflaghngnm);
  436. this.close();
  437. }
  438. }
  439. /****************************************************************************************
  440. * Components : Grid
  441. * Description : 고정자산내역 수정
  442. ****************************************************************************************/
  443. function group3_grd_fixedassetstretlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
  444. if(ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "tretyn") == "Y"){
  445. ds_main_fixedassetstret_fixedassetstretlist.setColumn(e.row, "tretdt", utlf_getCurrentDate());
  446. }
  447. if(ds_main_fixedassetstret_fixedassetstretlist.getColumn(e.row, "sel") == "Y"){
  448. var teamyn = dsf_getColumnNullToEmpty(ds_main_fixedassetstret_fixedassetstretlist, e.row, "teamyn");
  449. if(teamyn == "N" || teamyn == ""){
  450. sysf_messageBox("아직 접수중인 자료입니다. 선택할수없습니다.", "E999", "");
  451. ds_main_fixedassetstret_fixedassetstretlist.setColumn(e.row, "sel", "N");
  452. group3.grd_fixedassetstretlist.rowStatus(group3.grd_fixedassetstretlist.row) = 0;
  453. grdf_setStatus(obj, "", [e.row]);
  454. return;
  455. }
  456. grdf_setStatus(obj, "", [e.row]);
  457. }
  458. }
  459. /****************************************************************************************
  460. * Components : Button
  461. * Description : 고정자산내역 엑셀저장
  462. ****************************************************************************************/
  463. function group3_btn_excsave_onclick(obj:Button, e:ClickEventInfo) {
  464. misfSaveExcel(group3.grd_fixedassetstretlist);
  465. }
  466. /****************************************************************************************
  467. * Components : Button
  468. * Description : 전체선택
  469. ****************************************************************************************/
  470. function group3_btn_allsel_onclick(obj:Button, e:ClickEventInfo) {
  471. for(var i = 0 ; i < ds_main_fixedassetstret_fixedassetstretlist.rowcount ; i++){
  472. var teamyn = ds_main_fixedassetstret_fixedassetstretlist.getColumn(i, "teamyn");
  473. if(teamyn == "Y"){
  474. ds_main_fixedassetstret_fixedassetstretlist.setColumn(i, "sel", "Y");
  475. }
  476. }
  477. }
  478. /****************************************************************************************
  479. * Components : Dataset
  480. * Description : 고정자산 내역 체크박스 설정
  481. ****************************************************************************************/
  482. function ds_main_fixedassetstret_fixedassetstretlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  483. {
  484. if(e.columnid=="sel" || e.columnid=="tretyn" || e.columnid=="partyn" || e.columnid=="teamyn" || e.columnid == "returnyn") {
  485. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  486. }
  487. }
  488. /****************************************************************************************
  489. * Components : Edit
  490. * Description : 부서코드 입력
  491. ****************************************************************************************/
  492. function group3_grp_search_ipt_takeindeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  493. {
  494. if(e.keycode == 13) obj.updateToDataset();
  495. }
  496. function group3_grp_search_ipt_takeoutdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  497. {
  498. if(e.keycode == 13) obj.updateToDataset();
  499. }
  500. /****************************************************************************************
  501. * Components : Dataset
  502. * Description : 부서검색
  503. ****************************************************************************************/
  504. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  505. {
  506. if(e.columnid == "takeindeptcd") {
  507. var objFocus = this.getFocus();
  508. if(utlf_isNull(group3.grp_search.ipt_takeindeptcd.value)) {
  509. group3.grp_search.ipt_takeindeptnm.value = "";
  510. }else {
  511. group3.grp_search.ipt_takeindeptcd.setFocus();
  512. misfValidationCheck("02", "", "takeindeptcd,takeindeptnm");
  513. }
  514. objFocus.setFocus();
  515. }
  516. if(e.columnid == "takeoutdeptcd") {
  517. var objFocus = this.getFocus();
  518. if(utlf_isNull(group3.grp_search.ipt_takeoutdeptcd.value)) {
  519. group3.grp_search.ipt_takeoutdeptnm.value = "";
  520. }else {
  521. group3.grp_search.ipt_takeoutdeptcd.setFocus();
  522. misfValidationCheck("02", "", "takeoutdeptcd,takeoutdeptnm");
  523. }
  524. objFocus.setFocus();
  525. }
  526. }
  527. ]]></Script>
  528. </Form>
  529. </FDL>