SMAEB04200_그룹코드관리.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB04200" position="absolute 0 0 1196 765" titletext="그룹코드관리" onload="SMAEB04200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" text="그룹코드관리" class="tit_1" position="absolute 0 0 120 25"/>
  8. <Div id="grp_sea" taborder="1" position="absolute 0 25 1195 65" class="div_SA">
  9. <Layouts>
  10. <Layout>
  11. <Button id="btn_sea" taborder="0" text="조회" class="btn1" position="absolute 1127 10 1183 32" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  12. <Static id="caption2" text="그룹코드 :" class="search_name" position="absolute 7 12 103 29" anchor="default"/>
  13. <Edit id="ipt_basecd" taborder="1" class="input_search" position="absolute 89 11 224 30" anchor="default" autoselect="true" onkeyup="grp_sea_ipt_basecd_onkeyup"/>
  14. <Button id="button61" taborder="2" class="icon_search" position="absolute 229 12 245 28" anchor="default" onclick="grp_sea_button61_onclick" visible="false"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Shape id="line1" class="line_10" position="absolute 0 89 1196 95"/>
  19. <Static id="caption1" text="그룹코드관리" class="tit_2" position="absolute 0 73 120 90"/>
  20. <Button id="btn_grdadd" taborder="2" text="행추가" class="btn2" position="absolute 1086 67 1139 89" onclick="btn_grdadd_onclick"/>
  21. <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1142 67 1195 89" onclick="btn_grddel_onclick"/>
  22. <Grid id="grd_bodypart" taborder="4" binddataset="ds_main_bodypartlist_bodypart" useinputpanel="false" position="absolute 0 94 1195 735">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="25" band="left"/>
  27. <Column size="79"/>
  28. <Column size="124"/>
  29. <Column size="385"/>
  30. <Column size="563"/>
  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"/>
  50. <Cell col="2" displaytype="text" edittype="text" editfilter="upper" text="bind:basecd" editlimit="12"/>
  51. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
  52. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts"/>
  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. <Button id="btn_save" taborder="5" text="저장" class="btn4" position="absolute 1138 739 1194 761" onclick="btn_save_onclick"/>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_main_bodypartlist_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  64. <ColumnInfo>
  65. <Column id="sortno" type="STRING" size="256"/>
  66. <Column id="basecd" type="STRING" size="256"/>
  67. <Column id="basecdflagdesc" type="STRING" size="256"/>
  68. <Column id="basecdcnts" type="STRING" size="256"/>
  69. <Column id="basecdflag" type="STRING" size="256"/>
  70. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  71. </ColumnInfo>
  72. <Rows>
  73. <Row>
  74. <Col id="sortno"/>
  75. <Col id="basecd"/>
  76. <Col id="basecdflagdesc"/>
  77. <Col id="basecdcnts"/>
  78. <Col id="basecdflag"/>
  79. <Col id="basesuppdeptcd"/>
  80. </Row>
  81. </Rows>
  82. </Dataset>
  83. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  84. <ColumnInfo>
  85. <Column id="basecd" type="STRING" size="256"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="basecd"/>
  90. </Row>
  91. </Rows>
  92. </Dataset>
  93. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  94. <ColumnInfo>
  95. <Column id="instance1" type="STRING" size="256"/>
  96. </ColumnInfo>
  97. <Rows>
  98. <Row>
  99. <Col id="instance1"/>
  100. </Row>
  101. </Rows>
  102. </Dataset>
  103. <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  104. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  105. <ColumnInfo>
  106. <Column id="item" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. </Dataset>
  109. </Objects>
  110. <Bind>
  111. <BindItem id="item0" compid="grp_sea.ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
  112. </Bind>
  113. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  114. * System Name :
  115. * Job Name :
  116. * Creator :
  117. * Make Date : 2017-12-04
  118. * Description :
  119. *---------------------------------------------------------------------------------------
  120. * Modify Date Modifier Modify Description
  121. *---------------------------------------------------------------------------------------
  122. * 2017-06-19 Live Converter TF->XP
  123. *
  124. *---------------------------------------------------------------------------------------
  125. ****************************************************************************************/
  126. //=======================================================================================
  127. // Lib Include
  128. //---------------------------------------------------------------------------------------
  129. include "com_commonxp::comm_main.xjs";
  130. include "ast_commonxp::AST.xjs";
  131. include "ast_examcurexp::AEZ0001.xjs";
  132. //=======================================================================================
  133. // Global Form Variable
  134. //---------------------------------------------------------------------------------------
  135. var arErrorCode = new HashArray();
  136. //=======================================================================================
  137. // Function
  138. //---------------------------------------------------------------------------------------
  139. /*-**************************************************************************************
  140. * Argument : N/A
  141. * Description : 조회
  142. ****************************************************************************************/
  143. function fn_TRAEB04201() {
  144. ds_main_bodypartlist_bodypart.clearData();
  145. dsf_createDsRow("ds_req", [
  146. {col:"basecd", type:"STRING", size:256, val:ds_send.getColumn(0, "basecd")}
  147. , {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send_globalinstance.getColumn(0, "instance1")}
  148. , {col:"bbasecdflag", type:"STRING", size:256, val:"G"}
  149. ]);
  150. var oParam = {};
  151. oParam.id = "TRAEB04201";
  152. oParam.service = "examcurebaseapp.BodyPart";
  153. oParam.method = "reqGetBodyPartList";
  154. oParam.inds = "req=ds_req";
  155. oParam.outds = "ds_main_bodypartlist_bodypart=bodypart";
  156. oParam.async = false;
  157. //oParam.callback = "cf_TRAEB04201";
  158. tranf_submit(oParam);
  159. }
  160. //=======================================================================================
  161. // Event
  162. //---------------------------------------------------------------------------------------
  163. /****************************************************************************************
  164. * Components : Form
  165. * Description : 화면 처음 초기화시 폼초기화
  166. ****************************************************************************************/
  167. function SMAEB04200_onload(obj:Form, e:LoadEventInfo) {
  168. frmf_initForm(obj);
  169. //grdf_initGrid(grd_XXX);
  170. //grdf_setGridSort(grd_XXX);
  171. grdf_setRowTypeIcon(grd_bodypart, 0);
  172. lf_aezfSetSuppDeptcd();
  173. ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
  174. ds_main_bodypartlist_bodypart.clearData();
  175. grp_sea.ipt_basecd.setFocus();
  176. }
  177. /****************************************************************************************
  178. * Components : Button
  179. * Description : 조회
  180. ****************************************************************************************/
  181. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo) {
  182. fn_TRAEB04201();
  183. }
  184. /****************************************************************************************
  185. * Components : Button
  186. * Description : 행추가
  187. ****************************************************************************************/
  188. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
  189. var irow = ds_main_bodypartlist_bodypart.addRow();
  190. ds_main_bodypartlist_bodypart.setColumn( irow , "basesuppdeptcd", ds_send_globalinstance.getColumn(0, "instance1"));
  191. grd_bodypart.vscrollbar.pos = irow;
  192. }
  193. /****************************************************************************************
  194. * Components : Button
  195. * Description : 행삭제
  196. ****************************************************************************************/
  197. function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
  198. var objGrd = grd_bodypart;
  199. var selectedRows = grdf_getSelectedRows(objGrd);
  200. for (var i = selectedRows.length-1; i >= 0; i--){
  201. if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
  202. objects[objGrd.binddataset].deleteRow(selectedRows[i]);
  203. }else{
  204. grdf_setStatus(objGrd, "D", [selectedRows[i]]);
  205. }
  206. }
  207. }
  208. /****************************************************************************************
  209. * Components : Button
  210. * Description : 저장
  211. ****************************************************************************************/
  212. function btn_save_onclick(obj:Button, e:ClickEventInfo) {
  213. if ( sysf_messageBox("","Q002")==6 ) {
  214. var update = grdf_getGridUpdateData(grd_bodypart, "all");
  215. grdf_setStatusColumn(update, "m");
  216. if(utlf_isNull(update) || update.rowcount == 0){
  217. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  218. return 0;
  219. } else {
  220. ds_send_req_data.copyData(update, true);
  221. dsf_setFixVal(ds_send_req_data, "bbasecdflag:G");
  222. var oParam = {};
  223. oParam.id = "TXAEB04201";
  224. oParam.service = "examcurebaseapp.BodyPart";
  225. oParam.method = "reqExeBodyPartList";
  226. oParam.inds = "req=ds_send_req_data";
  227. oParam.outds = "ds_hidden=item";
  228. oParam.async = false;
  229. //oParam.callback = "cf_TXAEB04201";
  230. tranf_submit(oParam);
  231. }
  232. }
  233. fn_TRAEB04201();
  234. }
  235. /****************************************************************************************
  236. * Components : Edit
  237. * Description : 조회조건 입력 후 조회
  238. ****************************************************************************************/
  239. function grp_sea_ipt_basecd_onkeyup(obj:Edit, e:KeyEventInfo)
  240. {
  241. if(e.keycode == 13) {
  242. obj.updateToDataset();
  243. grp_sea.btn_sea.click();
  244. }
  245. }
  246. ]]></Script>
  247. </Form>
  248. </FDL>