SMAEB03600_통계대분류관리.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB03600" position="absolute 0 0 1195 780" titletext="통계대분류코드관리" oninit="SMAEB03600_oninit" onload="SMAEB03600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="통계대분류 코드 관리" position="absolute 0 0 160 26" id="caption6" class="tit_1"/>
  8. <Div position="absolute 0 25 1195 60" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Shape position="absolute 1113 7 1119 29" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  12. <Button position="absolute 1125 7 1181 29" id="btn_sea" class="btn1" text="조회" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  13. <Edit position="absolute 130 8 230 27" id="ipt_basecd" class="input_search" onkeydown="grp_sea_ipt_basecd_onkeydown"/>
  14. <Static text="통계대분류코드 :" position="absolute 15 9 140 26" id="caption25" class="search_name"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Shape position="absolute 0 87 1195 91" linetype="horizontal" id="line2" class="line_1" anchor="left top right"/>
  19. <Button position="absolute 1085 67 1138 86" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="btn_grdadd_onclick"/>
  20. <Button position="absolute 1142 67 1195 86" id="btn_grddel" class="btn2" text="행삭제" anchor="top right" onclick="btn_grddel_onclick"/>
  21. <Grid position="absolute 0 89 1195 756" id="grd_eqmtlist" binddataset="ds_main_eqmtlist" anchor="all" autoenter="key" cellsizingtype="col" selecttype="multirow">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="25"/>
  26. <Column size="100"/>
  27. <Column size="161"/>
  28. <Column size="409"/>
  29. <Column size="470"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="순번"/>
  40. <Cell col="2" text="대분류코드"/>
  41. <Cell col="3" text="대분류명"/>
  42. <Cell col="4" text="비고"/>
  43. <Cell col="5"/>
  44. <Cell col="6"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell/>
  48. <Cell col="1" displaytype="text" edittype="text" text="bind:sortno"/>
  49. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd"/>
  50. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
  51. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts"/>
  52. <Cell col="5" displaytype="text" edittype="text" text="bind:basecdflag"/>
  53. <Cell col="6" text="bind:basesuppdeptcd"/>
  54. </Band>
  55. </Format>
  56. </Formats>
  57. </Grid>
  58. <Button position="absolute 590 62 690 82" id="button1" visible="false" text="button1" onclick="button1_onclick"/>
  59. <Button position="absolute 1139 758 1195 780" id="btn_save" class="btn4" text="저장" anchor="right bottom" onclick="btn_save_onclick"/>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_main_eqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="sortno" type="STRING"/>
  66. <Column id="basecd" type="STRING"/>
  67. <Column id="basecdflagdesc" type="STRING"/>
  68. <Column id="basecdcnts" type="STRING"/>
  69. <Column id="basecdflag" type="STRING"/>
  70. <Column id="basesuppdeptcd" type="STRING"/>
  71. </ColumnInfo>
  72. </Dataset>
  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="basecd" type="STRING" size="256"/>
  76. <Column id="kbasecdflag" type="STRING" size="256"/>
  77. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  78. </ColumnInfo>
  79. <Rows>
  80. <Row>
  81. <Col id="basecd"/>
  82. <Col id="basesuppdeptcd"/>
  83. <Col id="kbasecdflag"/>
  84. </Row>
  85. </Rows>
  86. </Dataset>
  87. </Objects>
  88. <Bind>
  89. <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
  90. </Bind>
  91. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  92. * System Name :
  93. * Job Name :
  94. * Creator :
  95. * Make Date : 2016-03-29
  96. * Description :
  97. *---------------------------------------------------------------------------------------
  98. * Modify Date Modifier Modify Description
  99. *---------------------------------------------------------------------------------------
  100. * 2016-03-29 Live Converter TF->XP
  101. *
  102. *---------------------------------------------------------------------------------------
  103. ****************************************************************************************/
  104. //=======================================================================================
  105. // Lib Include
  106. //---------------------------------------------------------------------------------------
  107. include "com_commonxp::comm_main.xjs";
  108. include "ast_commonxp::AST.xjs";
  109. include "ast_examcurexp::AEZ0001.xjs";
  110. //=======================================================================================
  111. // Global Form Variable
  112. //---------------------------------------------------------------------------------------
  113. //=======================================================================================
  114. // Function
  115. //---------------------------------------------------------------------------------------
  116. /****************************************************************************************
  117. * Function : lf_Init
  118. * Description : 초기화
  119. * Argument :
  120. * retrun type :
  121. * Creator :
  122. ****************************************************************************************/
  123. function lf_Init(){
  124. ds_main_eqmtlist.clearData();
  125. }
  126. /****************************************************************************************
  127. * Argument : 01.sSvcId : 서비스 ID
  128. * : 02.nErrorCode : 에러코드
  129. * : 03.sErrorMsg : 에러메시지
  130. * Description : 의 콜백함수
  131. ****************************************************************************************/
  132. function cf_(sSvcId, nErrorCode, sErrorMsg) {
  133. if(nErrorCode < 0) return;
  134. }
  135. //=======================================================================================
  136. // Event
  137. //---------------------------------------------------------------------------------------
  138. /****************************************************************************************
  139. * Components : Form
  140. * Components ID : SMAEB03600
  141. * Event : oninit
  142. * Argument : 01.obj : Object Event has occurred
  143. * : 02.e : Event Object
  144. * Description : 화면 초기화
  145. ****************************************************************************************/
  146. function SMAEB03600_oninit(obj:Form, e:InitEventInfo)
  147. {
  148. frmf_initForm(obj);
  149. }
  150. /****************************************************************************************
  151. * Components : Form
  152. * Components ID : SMAEB03600
  153. * Event : onload
  154. * Argument : 01.obj : Object Event has occurred
  155. * : 02.e : Event Object
  156. * Description : 화면 초기화
  157. ****************************************************************************************/
  158. function SMAEB03600_onload(obj:Form, e:LoadEventInfo)
  159. {
  160. grdf_setRowTypeIcon(grd_eqmtlist, 0);
  161. grdf_setGridSort(grd_eqmtlist);
  162. lf_Init();
  163. lf_aezfSetSuppDeptcd();
  164. ds_send.setColumn(0, "kbasecdflag", "H");
  165. grp_sea.ipt_basecd.setFocus();
  166. }
  167. /****************************************************************************************
  168. * Components : Button
  169. * Components ID : grp_sea.btn_sea
  170. * Event : onclick
  171. * Argument : 01.obj : Object Event has occurred
  172. * : 02.e : Event Object
  173. * Description : 조회 버튼 클릭
  174. ****************************************************************************************/
  175. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  176. {
  177. ds_send.setColumn(0, "basesuppdeptcd", suppdeptcd);
  178. ds_main_eqmtlist.clearData();
  179. var oParam = {};
  180. oParam.id = "TRAEB03601";
  181. oParam.service = "examcurebaseapp.GoodCode";
  182. oParam.method = "reqGetEqmtCodeList";
  183. oParam.inds = "req=ds_send";
  184. oParam.outds = "ds_main_eqmtlist=item";
  185. oParam.async = false;
  186. //oParam.callback = "cf_TRAEB03601";
  187. tranf_submit(oParam);
  188. }
  189. /****************************************************************************************
  190. * Components : Button
  191. * Components ID : grp_sea.ipt_basecd
  192. * Event : onkeydown
  193. * Argument : 01.obj : Object Event has occurred
  194. * : 02.e : Event Object
  195. * Description : 장비코드 Enter Event
  196. ****************************************************************************************/
  197. function grp_sea_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
  198. {
  199. if ( e.keycode == 13 ) {
  200. obj.updateToDataset();
  201. grp_sea.btn_sea.click();
  202. }
  203. }
  204. /****************************************************************************************
  205. * Components : Button
  206. * Components ID : btn_grdadd
  207. * Event : onclick
  208. * Argument : 01.obj : Object Event has occurred
  209. * : 02.e : Event Object
  210. * Description : 행추가 버튼
  211. ****************************************************************************************/
  212. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. var nRow = ds_main_eqmtlist.addRow();
  215. if( ds_main_eqmtlist.getColumnInfo("basesuppdeptcd") == null )
  216. ds_main_eqmtlist.addColumn("basesuppdeptcd", "STRING");
  217. if( ds_main_eqmtlist.getColumnInfo("basecdflag") == null )
  218. ds_main_eqmtlist.addColumn("basecdflag", "STRING");
  219. ds_main_eqmtlist.setColumn(nRow, "basesuppdeptcd", suppdeptcd);
  220. ds_main_eqmtlist.setColumn(nRow, "basecdflag", "H");
  221. }
  222. /****************************************************************************************
  223. * Components : Button
  224. * Components ID : btn_grddel
  225. * Event : onclick
  226. * Argument : 01.obj : Object Event has occurred
  227. * : 02.e : Event Object
  228. * Description : 행삭제 버튼
  229. ****************************************************************************************/
  230. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  231. {
  232. dsf_deleteSelectedRows(grd_eqmtlist, true);
  233. }
  234. /****************************************************************************************
  235. * Components : Button
  236. * Components ID : button1
  237. * Event : onclick
  238. * Argument : 01.obj : Object Event has occurred
  239. * : 02.e : Event Object
  240. * Description : ??
  241. ****************************************************************************************/
  242. function button1_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. alert(ds_main_eqmtlist.getRowType(ds_main_eqmtlist.rowposition));
  245. }
  246. /****************************************************************************************
  247. * Components : Button
  248. * Components ID : btn_save
  249. * Event : onsetfocus
  250. * Argument : 01.obj : Object Event has occurred
  251. * : 02.e : Event Object
  252. * Description : 저장 버튼
  253. ****************************************************************************************/
  254. function btn_save_onsetfocus(obj:Button, e:SetFocusEventInfo)
  255. {
  256. //checkKeyColumn("grd_eqmtlist");
  257. }
  258. /****************************************************************************************
  259. * Components : Button
  260. * Components ID : btn_save
  261. * Event : onclick
  262. * Argument : 01.obj : Object Event has occurred
  263. * : 02.e : Event Object
  264. * Description : 저장 버튼
  265. ****************************************************************************************/
  266. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  267. {
  268. if ( sysf_messageBox("","Q002")==6 ) {
  269. dsf_createDs("ds_send_req");
  270. var oDsUpdate = grdf_getGridUpdateData(grd_eqmtlist);
  271. grdf_setStatusColumn(oDsUpdate, "m");
  272. ds_send_req.copyData(oDsUpdate, true);
  273. if(ds_send_req.getRowCount() < 1 ){
  274. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  275. return 0;
  276. } else {
  277. dsf_createDs("ds_hidden", [{col:"count", type:"STRING", size:256}]);
  278. if( !utlf_isNull(ds_send_req.getColumnInfo("basecdflag")))
  279. ds_send_req.updateColID("basecdflag", "kbasecdflag");
  280. dsf_setTypeFormat(ds_send_req, "sortno:BICDECIMAL");
  281. var oParam = {};
  282. oParam.id = "TXAEB03601";
  283. oParam.service = "examcurebaseapp.GoodCode";
  284. oParam.method = "reqExeEqmtCodeList";
  285. oParam.inds = "req=ds_send_req";
  286. oParam.outds = "ds_hidden=item";
  287. oParam.async = false;
  288. //oParam.callback = "cf_TXAEB03601";
  289. tranf_submit(oParam);
  290. }
  291. }
  292. grp_sea.btn_sea.click();
  293. }
  294. ]]></Script>
  295. </Form>
  296. </FDL>