SPZSA20202_권한사용자조회.xfdl 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSA20202" position="absolute 0 0 590 411" titletext="계정/부서조회" class="frm_POP" oninit="SPZSA20202_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="0" position="absolute 10 43 580 78" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" text="계정/부서조회 :" class="search_name" position="absolute 15 9 123 26" anchor="default"/>
  11. <Shape id="line1" linetype="vertical" position="absolute 484 7 490 29" anchor="default"/>
  12. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 501 7 557 29" anchor="default" onclick="grp_sea_btn_search_onclick"/>
  13. <Combo id="cmb_flag" taborder="2" innerdataset="ds_init_cmb_flag" codecolumn="value" datacolumn="lable" class="combo_search" enable="true" position="absolute 227 8 328 27" anchor="default"/>
  14. <Edit id="ipt_search_item" taborder="3" class="input_s_essential" position="absolute 331 8 476 27" anchor="default" onkeydown="grp_sea_ipt_search_item_onkeydown" style="bordertype:normal 0 0 ;align:center middle;"/>
  15. <Radio id="radio1" taborder="4" columncount="2" rowcount="0" innerdataset="ds_init_radio1" codecolumn="value" datacolumn="lable" position="absolute 127 10 212 26" anchor="default"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Static id="caption9" text="계정/부서조회" class="tit_2" position="absolute 10 82 121 102"/>
  20. <Shape id="line12" linetype="vertical" class="line_1" position="absolute 0 112 584 113"/>
  21. <Static id="stt_titleText" text="권한사용자조회" onclick="stt_titleText_onclick" class="sta_POP_title" transparenthittest="true" position="absolute 12 8 161 28"/>
  22. <Button id="btn_close" taborder="1" onclick="btn_close_onclick" class="btn_POP_cls" position="absolute 560 12 574 25"/>
  23. <Grid id="grd_acntdeptlist" taborder="2" binddataset="ds_grd_acntdeptlist" useinputpanel="false" position="absolute 10 100 580 401" oncelldblclick="grd_acntdeptlist_oncelldblclick" autofittype="col">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="100"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="270"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell text="구분"/>
  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="명"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:acntdepttype"/>
  48. <Cell col="1" text="bind:dutplceinstcd"/>
  49. <Cell col="2" text="bind:dutplceinstnm"/>
  50. <Cell col="3" text="bind:rgstcd"/>
  51. <Cell col="4" text="bind:dutplceinstnm"/>
  52. <Cell col="5" style="align:left;" text="bind:rgstnm"/>
  53. </Band>
  54. </Format>
  55. </Formats>
  56. </Grid>
  57. </Layout>
  58. </Layouts>
  59. <Objects>
  60. <Dataset id="ds_init_cmb_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  61. <ColumnInfo>
  62. <Column id="lable" type="STRING" size="256"/>
  63. <Column id="value" type="STRING" size="256"/>
  64. </ColumnInfo>
  65. <Rows>
  66. <Row>
  67. <Col id="lable">계정그룹</Col>
  68. <Col id="value">acntgrup</Col>
  69. </Row>
  70. <Row>
  71. <Col id="lable">근무지</Col>
  72. <Col id="value">dutplce</Col>
  73. </Row>
  74. </Rows>
  75. </Dataset>
  76. <Dataset id="ds_init_radio1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  77. <ColumnInfo>
  78. <Column id="lable" type="STRING" size="256"/>
  79. <Column id="value" type="STRING" size="256"/>
  80. </ColumnInfo>
  81. <Rows>
  82. <Row>
  83. <Col id="lable">명</Col>
  84. <Col id="value">nm</Col>
  85. </Row>
  86. <Row>
  87. <Col id="lable">코드</Col>
  88. <Col id="value">cd</Col>
  89. </Row>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_grd_acntdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="acntdepttype" type="STRING" size="256"/>
  95. <Column id="dutplceinstcd" type="STRING" size="256"/>
  96. <Column id="dutplceinstnm" type="STRING" size="256"/>
  97. <Column id="rgstcd" type="STRING" size="256"/>
  98. <Column id="dutplceinstnm" type="STRING" size="256"/>
  99. <Column id="rgstnm" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. </Dataset>
  102. </Objects>
  103. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  104. * System Name :
  105. * Job Name :
  106. * Creator :
  107. * Make Date : 2014-10-31
  108. * Description :
  109. *---------------------------------------------------------------------------------------
  110. * Modify Date Modifier Modify Description
  111. *---------------------------------------------------------------------------------------
  112. * 2014-10-31 Live Converter TF->XP
  113. *
  114. *---------------------------------------------------------------------------------------
  115. ****************************************************************************************/
  116. //=======================================================================================
  117. // Lib Include
  118. //---------------------------------------------------------------------------------------
  119. include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
  120. //=======================================================================================
  121. // Global Form Variable
  122. //---------------------------------------------------------------------------------------
  123. //=======================================================================================
  124. // Function
  125. //---------------------------------------------------------------------------------------
  126. function SPZSA20202_oninit(obj:Form, e:InitEventInfo)
  127. {
  128. frmf_initForm(obj);
  129. var iProperties;
  130. if (frmf_checkOpener()) {
  131. iProperties = SPZSA20202_1;
  132. }
  133. fInitialize();
  134. if(iProperties==4)
  135. {
  136. grp_sea.cmb_flag.index = 0;
  137. }
  138. else
  139. {
  140. grp_sea.cmb_flag.index = 1;
  141. }
  142. // 화면 권한처리
  143. //grp_sea.btn_search.enable = frmf_checkAuth("R"); ========================> 테스트 끝나면 주석풀기
  144. grdf_setGridSort(grd_acntdeptlist);
  145. }
  146. /*
  147. 초기화 작업을 합니다.
  148. */
  149. function fInitialize(){
  150. ds_grd_acntdeptlist.clearData();
  151. grp_sea.radio1.value = "nm";
  152. grp_sea.cmb_flag.index = 0;
  153. }
  154. function btn_close_onclick(obj:Button, e:ClickEventInfo){
  155. this.close();
  156. }
  157. function grp_sea_ipt_search_item_onkeydown(obj:Edit, e:KeyEventInfo)
  158. {
  159. if(e.keycode == 13){
  160. ///alert(grp_search.ipt_scrnnm.value);
  161. grp_sea.btn_search.click();
  162. }
  163. }
  164. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  165. {
  166. fClicked("search", grd_acntdeptlist);
  167. }
  168. function fClicked(control, grid, param){
  169. if ("search" == control){
  170. fSearchClick(grid, param);
  171. //model.resetInstanceNode("/root/send");
  172. } else if ("init" == control){
  173. reload();
  174. } else {
  175. sysf_messageBox("처리를 수행","E002");
  176. }
  177. }
  178. function fSearchClick(grid,param){
  179. var isearchitem = grp_sea.ipt_search_item.value;
  180. ds_grd_acntdeptlist.clearData();
  181. var sInDsName = dsf_createDsRow("in_ds_search"
  182. , [ {col: "searchitem", val: grp_sea.ipt_search_item.value}
  183. ,{col: "flag", val: grp_sea.cmb_flag.value}
  184. ,{col: "rdo_flag", val: grp_sea.radio1.value} ]);
  185. var oParam = {};
  186. oParam.id = "TRZSA20203";
  187. oParam.service = "authinfoapp.AuthInfo";
  188. oParam.method = "reqGetAcntDept";
  189. oParam.inds = "req="+sInDsName;
  190. oParam.outds = "ds_grd_acntdeptlist=acntdeptlist";
  191. oParam.async = false;
  192. oParam.callback = "cf_TRZSA20203";
  193. tranf_submit(oParam);
  194. }
  195. function cf_TRZSA20203(sSvcId, nErrorCode, sErrorMsg) {
  196. if(nErrorCode < 0) return;
  197. }
  198. function grd_acntdeptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  199. {
  200. var iRow = grd_acntdeptlist.currentrow
  201. var iParam="";
  202. //var iNode = "/root/main/list/acntdeptlist";
  203. var iParam_acntdepttype = ds_grd_acntdeptlist.getColumn(iRow, "acntdepttype");
  204. var iParam_dutplceinstcd = ds_grd_acntdeptlist.getColumn(iRow, "dutplceinstcd");
  205. var iParam_dutplceinstnm = ds_grd_acntdeptlist.getColumn(iRow, "dutplceinstnm");
  206. var iParam_rgstcd = ds_grd_acntdeptlist.getColumn(iRow, "rgstcd");
  207. var iParam_rgstnm = ds_grd_acntdeptlist.getColumn(iRow, "rgstnm");
  208. iParam = iParam_acntdepttype+"|"+iParam_rgstcd+"|"+iParam_rgstnm+"|"+iParam_dutplceinstcd+"|"+iParam_dutplceinstnm;
  209. if ( frmf_checkOpener() ) {
  210. close(iParam);
  211. } else {
  212. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  213. }
  214. close(iParam);
  215. }
  216. ]]></Script>
  217. </Form>
  218. </FDL>