SPAEA01500_취소코드조회.xfdl 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEA01500" position="absolute 0 0 513 392" titletext="코드조회" oninit="model1_oninit" onload="SPAEA01500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_basecd" taborder="1" useinputpanel="false" onkeydown="grd_basecd_onkeydown" position="absolute 1 1 512 357" anchor="all" binddataset="ds_grid_grd_basecd" positiontype="position" ondbclick="grd_basecd_ondbclick" autofittype="col" oncelldblclick="grd_basecd_ondbclick">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="30" band="left"/>
  12. <Column size="0"/>
  13. <Column size="462"/>
  14. </Columns>
  15. <Rows>
  16. <Row size="22" band="head"/>
  17. <Row size="20"/>
  18. </Rows>
  19. <Band id="head">
  20. <Cell text="순번"/>
  21. <Cell col="1" text="취소코드"/>
  22. <Cell col="2" text="취소사유"/>
  23. </Band>
  24. <Band id="body" style="cellpadding: ;">
  25. <Cell celltype="head" text="expr:currow + 1"/>
  26. <Cell col="1" text="bind:basecd"/>
  27. <Cell col="2" style="align:left middle;padding:0 0 0 10;" text="bind:basecdflagdesc"/>
  28. <Cell col="3"/>
  29. </Band>
  30. </Format>
  31. </Formats>
  32. </Grid>
  33. <Button id="btn_cfm" taborder="2" text="확인" onlbuttonup="btn_cfm_onlbuttonup" class="btn4" position="absolute 397 363 453 383" anchor="right bottom" positiontype="position" onclick="btn_cfm_onclick"/>
  34. <Button id="btn_cls" taborder="3" text="닫기" class="btn4" position="absolute 456 363 512 383" anchor="right bottom" positiontype="position" onclick="btn_cls_onclick"/>
  35. </Layout>
  36. </Layouts>
  37. <Objects>
  38. <Dataset id="ds_grid_grd_basecd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  39. <ColumnInfo>
  40. <Column id="sortno" type="STRING"/>
  41. <Column id="basecd" type="STRING"/>
  42. <Column id="basecdflagdesc" type="STRING"/>
  43. <Column id="basecdcnts" type="STRING" size="256"/>
  44. <Column id="basecdflag" type="STRING" size="256"/>
  45. </ColumnInfo>
  46. </Dataset>
  47. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  48. <ColumnInfo>
  49. <Column id="basecdflag" type="STRING" size="256"/>
  50. <Column id="suppdeptcd" type="STRING" size="256"/>
  51. <Column id="basecd" type="STRING" size="256"/>
  52. </ColumnInfo>
  53. <Rows>
  54. <Row/>
  55. </Rows>
  56. </Dataset>
  57. <Dataset id="ds_hidden_cnclcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  58. <ColumnInfo>
  59. <Column id="cnclcd" type="STRING" size="256"/>
  60. <Column id="cnclcdnm" type="STRING" size="256"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row/>
  64. </Rows>
  65. </Dataset>
  66. <Dataset id="ds_hidden_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  67. </Objects>
  68. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  69. * System Name : KU2.0
  70. * Job Name :
  71. * File Name : SPAEA01500_취소코드조회.xfdl
  72. * Creator :
  73. * Make Date : 2015-11-24
  74. *
  75. * Description :
  76. *---------------------------------------------------------------------------------------
  77. * Modify Date Modifier Modify Description
  78. *---------------------------------------------------------------------------------------
  79. *
  80. *---------------------------------------------------------------------------------------
  81. ****************************************************************************************/
  82. //=======================================================================================
  83. // xjs Include
  84. //---------------------------------------------------------------------------------------
  85. include "com_commonxp::comm_main.xjs";
  86. include "ast_examcurexp::AEZ0001.xjs";
  87. //=======================================================================================
  88. // Function
  89. //---------------------------------------------------------------------------------------
  90. //=======================================================================================
  91. // submission
  92. //---------------------------------------------------------------------------------------
  93. function fn_TRAEB01602() {
  94. ds_send.setColumn(0, "suppdeptcd", suppdeptcd);
  95. var objParam = new Object();
  96. objParam.id = "TRAEB01602";
  97. objParam.service = "examcurebaseapp.CnclCode";
  98. objParam.method = "reqGetCnclCodeList";
  99. objParam.inds = "req=ds_send";
  100. objParam.outds ="ds_grid_grd_basecd=item";
  101. objParam.callback = "cf_TRAEB01602";
  102. tranf_submit(objParam);
  103. }
  104. //=======================================================================================
  105. // callback
  106. //---------------------------------------------------------------------------------------
  107. function cf_TRAEB01602(strSvcID, nErrorCode, strErrorMsg){
  108. //에러 처리
  109. if(nErrorCode == 0){
  110. ds_grid_grd_basecd.rowposition = -1;
  111. }else{
  112. }
  113. }
  114. //=======================================================================================
  115. // Event
  116. //---------------------------------------------------------------------------------------
  117. /****************************************************************************************
  118. * Components :
  119. * Components ID : SPAEA01500
  120. * Event : onload
  121. * Argument : 01.obj : Object Event has occurred
  122. * : 02.e : Event Object
  123. * Description :
  124. ****************************************************************************************/
  125. function SPAEA01500_onload(obj:Form, e:LoadEventInfo)
  126. {
  127. frmf_initForm(obj); // 화면공통
  128. lf_aezfSetSuppDeptcd();//suppdeptcd가져옴.
  129. try{
  130. ds_hidden_receivedata.copyData(arg_ds_receivedata);
  131. }catch(e){
  132. //sysf_catchTrace(e);
  133. }
  134. ds_send.setColumn(0, "basecdflag", ds_hidden_receivedata.getColumn(0,"basecdflag"));
  135. fn_TRAEB01602();
  136. }
  137. /****************************************************************************************
  138. * Components :
  139. * Components ID : grd_basecd
  140. * Event : ondbclick
  141. * Argument : 01.obj : Object Event has occurred
  142. * : 02.e : Event Object
  143. * Description :
  144. ****************************************************************************************/
  145. function grd_basecd_ondbclick(obj:Grid, e:MouseEventInfo)
  146. {
  147. var cnclresncd = ds_grid_grd_basecd.getColumn(ds_grid_grd_basecd.rowposition, "basecd");
  148. btn_cfm_onclick();
  149. }
  150. /****************************************************************************************
  151. * Components :
  152. * Components ID : btn_cfm
  153. * Event : onclick
  154. * Argument : 01.obj : Object Event has occurred
  155. * : 02.e : Event Object
  156. * Description :
  157. ****************************************************************************************/
  158. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  159. {
  160. var cnclcd = ds_grid_grd_basecd.getColumn(ds_grid_grd_basecd.rowposition, "basecd");
  161. var cnclcdnm = ds_grid_grd_basecd.getColumn(ds_grid_grd_basecd.rowposition, "basecdflagdesc");
  162. dsf_makeValue(opener.ds_hidden_cnclcdlist, "cnclcd", "string", cnclcd);
  163. dsf_makeValue(opener.ds_hidden_cnclcdlist, "cnclcdnm", "string", cnclcdnm);
  164. //opener.ds_hidden_cnclcdlist.copyData(ds_hidden_cnclcdlist);
  165. this.close();
  166. }
  167. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  168. {
  169. this.close("N");
  170. }
  171. function Button00_onclick(obj:Button, e:ClickEventInfo)
  172. {
  173. this.close("N");
  174. }
  175. ]]></Script>
  176. </Form>
  177. </FDL>