SMAEB04400_통계대분류관리.xfdl 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB04400" position="absolute 0 0 1202 805" titletext="통계대분류코드관리" oninit="SMAEB04400_oninit" onload="SMAEB04400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" text="통계대분류코드관리" class="tit_1" position="absolute 0 0 258 24"/>
  8. <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 93 1195 99"/>
  9. <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 24 1195 64">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption2" text="통계대분류코드 :" class="search_name" position="absolute 15 12 140 29"/>
  13. <Edit id="ipt_basecd" taborder="1" class="input_search" position="absolute 145 11 280 30" autoselect="true" onkeyup="grp_sea_ipt_basecd_onkeyup"/>
  14. <Button id="button61" taborder="2" class="icon_search" position="absolute 285 12 301 28" onclick="grp_sea_button61_onclick"/>
  15. <Button id="btn_sea" taborder="3" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Button id="btn_grdadd" taborder="2" text="행추가" class="btn2" position="absolute 1086 74 1139 93" anchor="top right" onclick="btn_grdadd_onclick"/>
  20. <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1142 74 1195 93" anchor="top right" onclick="btn_grddel_onclick"/>
  21. <Static id="caption1" text="통계대분류코드관리" class="tit_2" position="absolute 0 77 145 98"/>
  22. <Grid id="grd_bodypart" taborder="4" binddataset="ds_main_bodypartlist_bodypart" useinputpanel="false" position="absolute 0 98 1195 768" cellsizingtype="col" anchor="all" selecttype="multirow">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="24" band="left"/>
  27. <Column size="79"/>
  28. <Column size="113"/>
  29. <Column size="762"/>
  30. <Column size="209"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell/>
  40. <Cell col="1" text="순번 "/>
  41. <Cell col="2" text="통계대분류코드"/>
  42. <Cell col="3" text="통계대분류명"/>
  43. <Cell col="4" text="통계대분류그룹"/>
  44. <Cell col="5" text="basecdflag"/>
  45. <Cell col="6" text="basesuppdeptcd"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell celltype="head"/>
  49. <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" editautoselect="true"/>
  50. <Cell col="2" displaytype="text" edittype="text" editfilter="upper" text="bind:basecd" editimemode="alpha" editautoselect="true"/>
  51. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
  52. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editautoselect="true"/>
  53. <Cell col="5" text="bind:basecdflag"/>
  54. <Cell col="6" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
  55. </Band>
  56. </Format>
  57. </Formats>
  58. </Grid>
  59. <Shape id="line32" class="line_6" position="absolute 0 769 1195 775" anchor="left right bottom"/>
  60. <Button id="btn_save" taborder="5" text="저장" class="btn4" position="absolute 1139 774 1195 796" anchor="right bottom" onclick="btn_save_onclick"/>
  61. </Layout>
  62. </Layouts>
  63. <Objects>
  64. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  65. <ColumnInfo>
  66. <Column id="basecd" type="STRING" size="256"/>
  67. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  68. <Column id="bbasecdflag" type="STRING" size="256"/>
  69. </ColumnInfo>
  70. <Rows>
  71. <Row/>
  72. </Rows>
  73. </Dataset>
  74. <Dataset id="ds_main_bodypartlist_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  75. <ColumnInfo>
  76. <Column id="sortno" type="STRING" size="256" sumtext="부서코드"/>
  77. <Column id="basecd" type="STRING" size="256" sumtext="기본코드구분"/>
  78. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="기본코드구분"/>
  79. <Column id="basecdcnts" type="STRING" size="256" sumtext="부서코드"/>
  80. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  81. <Column id="basecdflag" type="STRING" size="256" sumtext="부서코드"/>
  82. </ColumnInfo>
  83. </Dataset>
  84. <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  85. </Objects>
  86. <Bind>
  87. <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
  88. </Bind>
  89. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  90. * System Name :
  91. * Job Name :
  92. * Creator :
  93. * Make Date : 2015-11-13
  94. * Description :
  95. *---------------------------------------------------------------------------------------
  96. * Modify Date Modifier Modify Description
  97. *---------------------------------------------------------------------------------------
  98. * 2015-11-13 Live Converter TF->XP
  99. *
  100. *---------------------------------------------------------------------------------------
  101. ****************************************************************************************/
  102. include "com_commonxp::comm_main.xjs";
  103. include "ast_examcurexp::AEZ0001.xjs";
  104. var vSuppdeptcd ;
  105. function SMAEB04400_oninit(obj:Form, e:InitEventInfo)
  106. {
  107. frmf_initForm(obj);
  108. }
  109. function SMAEB04400_onload(obj:Form, e:LoadEventInfo)
  110. {
  111. grdf_initGrid(grd_bodypart);
  112. grdf_setRowTypeIcon(grd_bodypart, 0);
  113. lf_aezfSetSuppDeptcd();
  114. vSuppdeptcd = frmf_getPrestDeptCd();
  115. ds_send.setColumn(0, "basesuppdeptcd", vSuppdeptcd);
  116. ds_main_bodypartlist_bodypart.clearData();
  117. grp_sea.ipt_basecd.setFocus();
  118. }
  119. function grp_sea_ipt_basecd_onkeyup(obj:Edit, e:KeyEventInfo)
  120. {
  121. if(e.keycode == 13)
  122. {
  123. obj.updateToDataset();
  124. grp_sea.btn_sea.click();
  125. }
  126. }
  127. function grp_sea_button61_onclick(obj:Button, e:ClickEventInfo)
  128. {
  129. //이벤트없음
  130. }
  131. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  132. {
  133. dsf_setFixVal(ds_send, "bbasecdflag:H");
  134. var oParam = {};
  135. oParam.id = "TRAEB04401";
  136. oParam.service = "examcurebaseapp.BodyPart";
  137. oParam.method = "reqGetBodyPartList";
  138. oParam.inds = "req=ds_send";
  139. oParam.outds = "ds_main_bodypartlist_bodypart=bodypart ds_=bodypartgrp";
  140. oParam.async = false;
  141. //oParam.callback = "cf_TRAEB04401";
  142. tranf_submit(oParam);
  143. }
  144. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  145. {
  146. var irow = ds_main_bodypartlist_bodypart.addRow();
  147. ds_main_bodypartlist_bodypart.setColumn(irow, "basesuppdeptcd",ds_send.getColumn(0, "basesuppdeptcd"));
  148. ds_main_bodypartlist_bodypart.clearSelect();
  149. ds_main_bodypartlist_bodypart.selectRow(irow);
  150. ds_main_bodypartlist_bodypart.rowposition = irow;
  151. }
  152. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  153. {
  154. var rows = grdf_getSelectedRows(grd_bodypart);
  155. for(var i = rows.length-1; i >= 0; i--)
  156. {
  157. var m_row = rows[i];
  158. if(ds_main_bodypartlist_bodypart.getRowType(m_row) == 2)
  159. {
  160. ds_main_bodypartlist_bodypart.deleteRow(m_row);
  161. }
  162. else
  163. {
  164. ds_main_bodypartlist_bodypart.updatecontrol = false;
  165. ds_main_bodypartlist_bodypart.setRowType(m_row, "d");
  166. ds_main_bodypartlist_bodypart.updatecontrol = true;
  167. }
  168. }
  169. }
  170. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  171. {
  172. if ( sysf_messageBox("","Q002")==6 )
  173. {
  174. var update = grdf_getGridUpdateData(grd_bodypart);
  175. grdf_setStatusColumn(update, "m");
  176. ds_send_req_data.copyData(update, true);
  177. if(ds_send_req_data.rowcount == 0)
  178. {
  179. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  180. return 0;
  181. }
  182. else
  183. {
  184. dsf_setFixVal(ds_send_req_data, "bbasecdflag:H");
  185. var oParam = {};
  186. oParam.id = "TXAEB00601";
  187. oParam.service = "examcurebaseapp.BodyPart";
  188. oParam.method = "reqExeBodyPartList";
  189. oParam.inds = "req=ds_send_req_data";
  190. oParam.outds = "ds_=item";
  191. oParam.async = false;
  192. //oParam.callback = "cf_TXAEB00601";
  193. tranf_submit(oParam);
  194. }
  195. }
  196. dsf_setFixVal(ds_send, "bbasecdflag:H");
  197. var oParam = {};
  198. oParam.id = "TRAEB04401";
  199. oParam.service = "examcurebaseapp.BodyPart";
  200. oParam.method = "reqGetBodyPartList";
  201. oParam.inds = "req=ds_send";
  202. oParam.outds = "ds_main_bodypartlist_bodypart=bodypart ds_=bodypartgrp";
  203. oParam.async = false;
  204. //oParam.callback = "cf_TRAEB04401";
  205. tranf_submit(oParam);
  206. }
  207. ]]></Script>
  208. </Form>
  209. </FDL>