SMRFC00401_재물기준정보관리.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRFC00401" position="absolute 0 0 1200 784" titletext="재물기준정보관리" oninit="SMRFC00401_oninit" onload="SMRFC00401_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="재물조사 기준정보 설정" class="tit_1" position="absolute 0 0 234 25"/>
  8. <Shape id="line16" class="line_2" position="absolute 0 44 1195 50" anchor="left top right"/>
  9. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1069 23 1125 45" anchor="top right" onclick="btn_save_onclick"/>
  10. <Button id="btn_clear" taborder="2" text="초기화" class="btn4" position="absolute 1127 23 1195 45" anchor="top right" onclick="btn_clear_onclick"/>
  11. <Div id="grp_sea" anchor="left top right" taborder="3" class="div_SA2" position="absolute 0 48 1195 88">
  12. <Layouts>
  13. <Layout>
  14. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 10 101 27"/>
  15. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1106 7 1112 32" anchor="top right"/>
  16. <Static id="cap_deptcd" text="기준년도 :" class="search_name" position="absolute 511 10 601 27"/>
  17. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1124 8 1180 30" onclick="grp_sea_btn_search_onclick" anchor="top right"/>
  18. <Combo id="cmb_instcd" taborder="4" class="combo_essential" enable="false" position="absolute 108 9 346 28" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
  19. <Spin id="ipt_yyyy" taborder="6" max="9999" position="absolute 605 9 710 28" style="align:center middle;" onkeydown="grp_sea_ipt_yyyy_onkeydown"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Shape id="line2" class="line_10" position="absolute 0 131 1195 137" anchor="left top right"/>
  24. <Static id="caption8" text="기준정보 리스트" class="tit_2" position="absolute 0 115 133 138"/>
  25. <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1087 112 1140 131" onclick="btn_grdadd_onclick" anchor="top right"/>
  26. <Button id="btn_grddel" taborder="5" text="행삭제" class="btn2" position="absolute 1141 112 1194 131" anchor="top right" onclick="btn_grddel_onclick"/>
  27. <Grid id="grd_propllist" taborder="6" binddataset="ds_main_grid_propllist" autoenter="select" useinputpanel="false" cellsizingtype="both" position="absolute 0 136 1195 780" anchor="all" extendsizetype="row" autofittype="col" autosizingtype="row" onexpanddown="grd_propllist_onexpanddown">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="23"/>
  32. <Column size="60"/>
  33. <Column size="109"/>
  34. <Column size="100"/>
  35. <Column size="100"/>
  36. <Column size="100"/>
  37. <Column size="90"/>
  38. <Column size="289"/>
  39. <Column size="300"/>
  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="기준일자(MMDD)"/>
  49. <Cell col="3" colspan="2" text="부서확인기간(FROM~TO)" taborder="undefined"/>
  50. <Cell col="5" colspan="2" text="기준금액(MIN~MAX)" taborder="undefined"/>
  51. <Cell col="7" text="계정과목"/>
  52. <Cell col="8" text="비고"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell celltype="head"/>
  56. <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:yyyy"/>
  57. <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:basedd" mask="##-##" maskchar=" "/>
  58. <Cell col="3" displaytype="date" edittype="date" style="align:center middle;" text="bind:dfromdd" calendardisplaynulltype="nulltext"/>
  59. <Cell col="4" displaytype="date" edittype="date" style="align:center middle;" text="bind:dtodd" calendardisplaynulltype="nulltext"/>
  60. <Cell col="5" displaytype="number" edittype="text" style="align:center middle;" text="bind:passnmin"/>
  61. <Cell col="6" displaytype="number" edittype="text" style="align:center middle;" text="bind:passnmax"/>
  62. <Cell col="7" displaytype="text" edittype="text" text="bind:acntnm" expandshow="show" autosizerow="limitmin" enable="true"/>
  63. <Cell col="8" displaytype="text" edittype="text" text="bind:cmt"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <Button id="button1" taborder="7" text="엑셀저장" class="btn7" position="absolute 1006 112 1086 131" onclick="button1_onclick" anchor="top right"/>
  69. <Static id="caption1" text="* 계정과목을 먼저 저장 후에 기준정보를 저장하시기 바랍니다.*" position="absolute 130 109 525 129" style="background:#ffff99ff;font:Dotum,9,bold;"/>
  70. </Layout>
  71. </Layouts>
  72. <Objects>
  73. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="instcd" type="STRING" size="256"/>
  76. <Column id="yyyy" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row/>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_main_grid_propllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  83. <ColumnInfo>
  84. <Column id="yyyy" type="STRING" size="256" sumtext="년도"/>
  85. <Column id="basedd" type="STRING" size="256" sumtext="기준일자"/>
  86. <Column id="dfromdd" type="STRING" size="256" sumtext="부서확인(fromdd)"/>
  87. <Column id="dtodd" type="STRING" size="256" sumtext="부서확인(todd)"/>
  88. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  89. <Column id="passnmin" type="STRING" size="256" sumtext="기준금액(Min)"/>
  90. <Column id="passnmax" type="STRING" size="256" sumtext="기준금액(Max)"/>
  91. <Column id="acntnm" type="STRING" size="256" sumtext="계정과목"/>
  92. <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
  93. </ColumnInfo>
  94. </Dataset>
  95. <Dataset id="ds_cmb_useyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="label" type="STRING" size="256"/>
  98. <Column id="value" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row>
  102. <Col id="label">Y</Col>
  103. <Col id="value">Y</Col>
  104. </Row>
  105. <Row>
  106. <Col id="label">N</Col>
  107. <Col id="value">N</Col>
  108. </Row>
  109. </Rows>
  110. </Dataset>
  111. <Dataset id="ds_popacnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="instcd" type="STRING" size="256"/>
  114. <Column id="yyyy" type="STRING" size="256"/>
  115. <Column id="selectyn" type="STRING" size="256"/>
  116. </ColumnInfo>
  117. <Rows>
  118. <Row>
  119. <Col id="instcd"/>
  120. <Col id="yyyy"/>
  121. <Col id="selectyn"/>
  122. </Row>
  123. </Rows>
  124. </Dataset>
  125. <Dataset id="ds_popacntlist_acntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  126. </Objects>
  127. <Bind>
  128. <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  129. <BindItem id="item10" compid="grp_sea.ipt_yyyy" propid="value" datasetid="ds_send" columnid="yyyy"/>
  130. </Bind>
  131. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  132. * System Name :
  133. * Job Name :
  134. * Creator :
  135. * Make Date : 2017-06-19
  136. * Description :
  137. *---------------------------------------------------------------------------------------
  138. * Modify Date Modifier Modify Description
  139. *---------------------------------------------------------------------------------------
  140. * 2017-06-19 Live Converter TF->XP
  141. *
  142. *---------------------------------------------------------------------------------------
  143. ****************************************************************************************/
  144. include "com_commonxp::comm_main.xjs";
  145. include "mis_miscommonxp::MIS.xjs";
  146. function SMRFC00401_oninit(obj:Form, e:InitEventInfo)
  147. {
  148. frmf_initForm(obj);
  149. }
  150. function SMRFC00401_onload(obj:Form, e:LoadEventInfo)
  151. {
  152. grdf_initGrid(grd_propllist);
  153. grdf_setRowTypeIcon(grd_propllist, 0);
  154. fInitialize();
  155. }
  156. function fInitialize()
  157. {
  158. misfGridInit(grd_propllist);
  159. misfComboComCdList("C0048",grp_sea.cmb_instcd,"Y");
  160. misfMsterDetailSet(grd_propllist, null, "TRRFC00410","Y");
  161. grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  162. ds_send.setColumn(0, "yyyy", String(utlf_getCurrentDate()).substr(0,4));
  163. var dutplcecd = sysf_getUserInfo("dutplcecd");
  164. if(dutplcecd == "4020334000" || sysf_getUserInfo("userid") == "MIS" || sysf_getUserInfo("userid") == "99207" )
  165. {
  166. grp_sea.btn_search.click();
  167. }
  168. else
  169. {
  170. sysf_messageBox("물류팀외 조회할 수","I004");
  171. grp_sea.btn_search.enable = false;
  172. btn_save.enable = false;
  173. btn_clear.enable = false;
  174. grp_sea.ipt_yyyy.enable = false;
  175. }
  176. }
  177. function grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  178. {
  179. grp_sea.btn_search.click();
  180. }
  181. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. fsearch();
  184. }
  185. function fsearch()
  186. {
  187. arrCompId = new Array("grp_sea.cmb_instcd");
  188. if(!frmf_isRequiredControls(arrCompId)) return;
  189. misfMsterDetailRetrieve();
  190. }
  191. function button1_onclick(obj:Button, e:ClickEventInfo)
  192. {
  193. grdf_exportExcel(grd_propllist, "excel", "Sheet1", "true", "", "");
  194. }
  195. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. misfGridIUD(grd_propllist, "A");
  198. var acntnm = ds_main_grid_propllist.getColumn(ds_main_grid_propllist.rowposition, "acntnm");
  199. ds_main_grid_propllist.setColumn(ds_main_grid_propllist.rowposition, "yyyy", String(utlf_getCurrentDate()).substr(0,4));
  200. ds_main_grid_propllist.setColumn(ds_main_grid_propllist.rowposition, "useyn", "Y");
  201. ds_popacnt.copyRow(0, ds_main_grid_propllist, ds_main_grid_propllist.rowposition);
  202. if(utlf_isNull(acntnm))
  203. {
  204. var objArg = new Object();
  205. objArg.arg_ds_popdata = ds_popacnt;
  206. frmf_modal("SPRFC04000", "SPRFC04000", objArg, "", "", "", "", "", "", "", "", "", "M");
  207. }
  208. }
  209. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  210. {
  211. misfGridIUD(grd_propllist, "D");
  212. }
  213. function grd_propllist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  214. {
  215. if(e.cell == grd_propllist.getBindCellIndex("Body","acntnm"))
  216. {
  217. ds_popacnt.setColumn(0, "instcd", grp_sea.cmb_instcd.value);
  218. ds_popacnt.setColumn(0, "yyyy", ds_main_grid_propllist.getColumn(ds_main_grid_propllist.rowposition, "yyyy"));
  219. ds_popacnt.setColumn(0, "selectyn", "");
  220. var objArg = new Object();
  221. objArg.arg_ds_popdata = ds_popacnt;
  222. frmf_modal("SPRFC04000", "SPRFC04000", objArg, "", "", "", "", "", "", "", "", "", "M");
  223. grp_sea.btn_search.click();
  224. grd_propllist.setCellPos(8);
  225. }
  226. }
  227. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  228. {
  229. var updtdata = grdf_getGridUpdateData(grd_propllist).rowcount;
  230. if (updtdata == 0)
  231. {
  232. sysf_messageBox("변경된 데이터가","I004");
  233. return;
  234. }
  235. //if(!checkKeyColumn("grd_propllist")) return;
  236. rtn = sysf_messageBox("", "Q002");
  237. if(rtn != "6" ) return false;
  238. var oParam = {};
  239. oParam.id = "TXRFC00403";
  240. oParam.service = "purcbaseapp.PurcBaseMngt";
  241. oParam.method = "setProplist";
  242. oParam.inds = "req=ds_main_grid_propllist:u";
  243. oParam.outds = "";
  244. oParam.async = false;
  245. //oParam.callback = "cf_TXRFC00403";
  246. tranf_submit(oParam);
  247. grp_sea.btn_search.click();
  248. }
  249. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  250. {
  251. fInitialize();
  252. }
  253. function grp_sea_ipt_yyyy_onkeydown(obj:Spin, e:KeyEventInfo)
  254. {
  255. if( e.keycode == 13 ){
  256. grp_sea.btn_search.click();
  257. }
  258. }
  259. ]]></Script>
  260. </Form>
  261. </FDL>