SMZHA20502_부서장조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMZHA20502" position="absolute 0 0 1140 760" titletext="부서장조회" oninit="SMZHA20502_oninit" onload="SMZHA20502_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1140 70" id="grp_search" class="div_SA2">
  8. <Layouts>
  9. <Layout>
  10. <Static text="검색조건" position="absolute 23 38 91 58" id="caption20" class="search_name"/>
  11. <Edit position="absolute 198 38 358 58" id="ipt_searchitem"/>
  12. <Button position="absolute 1065 24 1121 44" id="btn_search" class="btn1" text="조회" onclick="grp_search_btn_search_onclick"/>
  13. <Combo position="absolute 103 38 193 58" id="combo1" class="combo_search" innerdataset="@ds_init_flag" datacolumn="label" codecolumn="value" onitemchanged="grp_search_combo1_onitemchanged"/>
  14. <Combo position="absolute 198 38 462 58" id="cmb_searchitem" class="combo_search" taborder="1" visible="false" innerdataset="ds_init_cmb_searchitem" datacolumn="cdnm" codecolumn="cdid"/>
  15. <Static text="부 서" position="absolute 492 38 544 58" id="caption1" class="search_name"/>
  16. <Button position="absolute 648 38 668 58" id="btn_deptcd" class="icon_search" text="" onclick="grp_search_btn_deptcd_onclick"/>
  17. <Edit position="absolute 672 38 892 58" id="ipt_deptnm" enable="false"/>
  18. <Edit position="absolute 552 38 647 58" id="ipt_deptcd" taborder="2"/>
  19. <Combo position="absolute 103 13 238 33" id="cmb_gubun" class="combo_search" innerdataset="ds_init_cmb_gubun" datacolumn="cdnm" codecolumn="cdid"/>
  20. <Static text="결재분류" position="absolute 23 13 91 33" id="caption2" class="search_name"/>
  21. <Static text="기 관" position="absolute 492 13 544 33" id="caption3" class="search_name"/>
  22. <Combo position="absolute 552 13 702 33" id="cmb_instcd" class="combo_search" innerdataset="ds_init_cmb_instcd" datacolumn="cdnm" codecolumn="cdid"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Grid position="absolute 0 100 1140 760" id="grd_deptmgrlist" binddataset="ds_main_deptmgrinfo" autofittype="col" cellsizingtype="col" selecttype="multirow" oncelldblclick="grd_deptmgrlist_oncelldblclick">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="25"/>
  31. <Column size="100"/>
  32. <Column size="110"/>
  33. <Column size="130"/>
  34. <Column size="170"/>
  35. <Column size="76"/>
  36. <Column size="161"/>
  37. <Column size="78"/>
  38. <Column size="170"/>
  39. <Column size="120"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell/>
  47. <Cell col="1" text="사번"/>
  48. <Cell col="2" text="성명"/>
  49. <Cell col="3" text="직종"/>
  50. <Cell col="4" text="직위"/>
  51. <Cell col="5" colspan="2" text="인사근무지부서" taborder="undefined"/>
  52. <Cell col="7" text="결재가능부서"/>
  53. <Cell col="8" text="결재가능부서"/>
  54. <Cell col="9" text="결재부서구분"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell celltype="head" text="expr:currow+1"/>
  58. <Cell col="1" text="bind:emplno" suppress="1" suppressalign="middle,over"/>
  59. <Cell col="2" text="bind:name" suppress="1" suppressalign="middle,over"/>
  60. <Cell col="3" text="bind:jobkindnm" suppress="2" suppressalign="middle,over"/>
  61. <Cell col="4" text="bind:jobposnm" suppress="2" suppressalign="middle,over"/>
  62. <Cell col="5" text="bind:dutplcedeptcd" suppress="2" suppressalign="middle,over"/>
  63. <Cell col="6" displaytype="text" text="bind:dutplcedeptnm" suppress="2" suppressalign="middle,over"/>
  64. <Cell col="7" text="bind:deptcd" suppress="2" suppressalign="middle,over"/>
  65. <Cell col="8" displaytype="text" text="bind:deptnm" suppress="2" suppressalign="middle,over"/>
  66. <Cell col="9" displaytype="combo" text="bind:trgtdeptgb" suppress="2" suppressalign="middle,over" combodataset="ds_init_trgtdept" combocodecol="value" combodatacol="label"/>
  67. </Band>
  68. </Format>
  69. </Formats>
  70. </Grid>
  71. <Static text="부서장리스트" position="absolute 0 82 111 102" align="align:center middle;" id="caption9" class="tit_2"/>
  72. </Layout>
  73. </Layouts>
  74. <Objects>
  75. <Dataset id="ds_send_searchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_searchdata_oncolumnchanged">
  76. <ColumnInfo>
  77. <Column id="flag" type="STRING" size="256" sumtext="검색구분"/>
  78. <Column id="searchitem" type="STRING" size="256" sumtext="검색값"/>
  79. <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
  80. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  81. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  82. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  83. </ColumnInfo>
  84. <Rows>
  85. <Row/>
  86. </Rows>
  87. </Dataset>
  88. <Dataset id="ds_main_deptmgrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  89. <ColumnInfo>
  90. <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
  91. <Column id="name" type="STRING" size="256" sumtext="이름"/>
  92. <Column id="jobkindcd" type="STRING" size="256" sumtext="직종코드"/>
  93. <Column id="jobkindnm" type="STRING" size="256" sumtext="직종명"/>
  94. <Column id="jobposcd" type="STRING" size="256" sumtext="직위코드"/>
  95. <Column id="jobposnm" type="STRING" size="256" sumtext="직위명"/>
  96. <Column id="trgtdeptgb" type="STRING" size="256" sumtext="대상부서"/>
  97. <Column id="trgtdeptgbnm" type="STRING" size="256" sumtext="대상부서"/>
  98. <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
  99. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  100. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  101. <Column id="dutplcedeptcd" type="STRING" size="256" sumtext="인사근무부서코드"/>
  102. <Column id="dutplcedeptnm" type="STRING" size="256" sumtext="인사근무부서명"/>
  103. </ColumnInfo>
  104. </Dataset>
  105. <Dataset id="ds_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  106. <ColumnInfo>
  107. <Column id="label" type="STRING" size="256"/>
  108. <Column id="value" type="STRING" size="256"/>
  109. </ColumnInfo>
  110. <Rows>
  111. <Row>
  112. <Col id="label">사번</Col>
  113. <Col id="value">sabun</Col>
  114. </Row>
  115. <Row>
  116. <Col id="label">이름</Col>
  117. <Col id="value">name</Col>
  118. </Row>
  119. <Row>
  120. <Col id="label">직종</Col>
  121. <Col id="value">jobkindcd</Col>
  122. </Row>
  123. <Row>
  124. <Col id="label">직위</Col>
  125. <Col id="value">jobposcd</Col>
  126. </Row>
  127. </Rows>
  128. </Dataset>
  129. <Dataset id="ds_init_trgtdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="label" type="STRING" size="256"/>
  132. <Column id="value" type="STRING" size="256"/>
  133. </ColumnInfo>
  134. <Rows>
  135. <Row>
  136. <Col id="label">인사근무지</Col>
  137. <Col id="value">B</Col>
  138. </Row>
  139. <Row>
  140. <Col id="label">해당부서</Col>
  141. <Col id="value">C</Col>
  142. </Row>
  143. <Row>
  144. <Col id="label">특별허용</Col>
  145. <Col id="value">D</Col>
  146. </Row>
  147. <Row>
  148. <Col id="label">근무지부서</Col>
  149. <Col id="value">E</Col>
  150. </Row>
  151. <Row>
  152. <Col id="label">인사팀하위</Col>
  153. <Col id="value">F</Col>
  154. </Row>
  155. <Row>
  156. <Col id="label">하위부서</Col>
  157. <Col id="value">G</Col>
  158. </Row>
  159. </Rows>
  160. </Dataset>
  161. </Objects>
  162. <Bind>
  163. <BindItem id="item0" compid="grp_search.cmb_gubun" propid="value" datasetid="ds_send_searchdata" columnid="gubun"/>
  164. <BindItem id="item1" compid="grp_search.combo1" propid="value" datasetid="ds_send_searchdata" columnid="flag"/>
  165. <BindItem id="item2" compid="grp_search.cmb_searchitem" propid="value" datasetid="ds_send_searchdata" columnid="searchitem"/>
  166. <BindItem id="item3" compid="grp_search.cmb_instcd" propid="value" datasetid="ds_send_searchdata" columnid="instcd"/>
  167. <BindItem id="item4" compid="grp_search.ipt_deptcd" propid="value" datasetid="ds_send_searchdata" columnid="deptcd"/>
  168. <BindItem id="item5" compid="grp_search.ipt_deptnm" propid="value" datasetid="ds_send_searchdata" columnid="deptnm"/>
  169. <BindItem id="item6" compid="grp_search.ipt_searchitem" propid="value" datasetid="ds_send_searchdata" columnid="searchitem"/>
  170. </Bind>
  171. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  172. * System Name :
  173. * Job Name :
  174. * Creator :
  175. * Make Date : 2014-12-09
  176. * Description :
  177. *---------------------------------------------------------------------------------------
  178. * Modify Date Modifier Modify Description
  179. *---------------------------------------------------------------------------------------
  180. * 2014-12-09 Live Converter TF->XP
  181. *
  182. *---------------------------------------------------------------------------------------
  183. ****************************************************************************************/
  184. include "com_commonxp::comm_main.xjs";
  185. include "mis_miscommonxp::MIS.xjs";
  186. function SMZHA20502_oninit(obj:Form, e:InitEventInfo)
  187. {
  188. frmf_initForm(obj);
  189. }
  190. function SMZHA20502_onload(obj:Form, e:LoadEventInfo)
  191. {
  192. misfComboComCdList("C0117" , grp_search.cmb_gubun, "N"); //구분
  193. misfComboComCdList("C0048" , grp_search.cmb_instcd, "N"); //기관
  194. if(frmf_checkOpener()){
  195. var initgubun = opener.frmf_getParameter("SMZHA20502_PARM_gubun");
  196. var initdeptcd = opener.frmf_getParameter("SMZHA20502_PARM_deptcd");
  197. var initdeptnm = opener.frmf_getParameter("SMZHA20502_PARM_deptnm");
  198. var initinstcd = opener.frmf_getParameter("SMZHA20502_PARM_instcd");
  199. if(!utlf_isNull(initdeptcd)){
  200. ds_send_searchdata.setColumn(0, "gubun",initgubun);
  201. ds_send_searchdata.setColumn(0, "deptcd",initdeptcd);
  202. ds_send_searchdata.setColumn(0, "deptnm",initdeptnm);
  203. ds_send_searchdata.setColumn(0, "instcd",initinstcd);
  204. grp_search.ipt_deptcd.enable = false;
  205. grp_search.ipt_deptnm.enable = false;
  206. grp_search.cmb_gubun.enable = false;
  207. grp_search.cmb_instcd.enable = false;
  208. grp_search.btn_search.click();
  209. }
  210. }else{
  211. ds_send_searchdata.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  212. grp_search.ipt_deptcd.setFocus();
  213. }
  214. }
  215. function grp_search_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  216. {
  217. var flag = obj.value;
  218. ds_send_searchdata.setColumn(0, "searchitem", "");
  219. if(flag == "sabun" || flag == "name"){
  220. grp_search.ipt_searchitem.visible = true;
  221. grp_search.cmb_searchitem.visible = false;
  222. }else if(flag == "jobposcd"){
  223. grp_search.ipt_searchitem.visible = false;
  224. grp_search.cmb_searchitem.visible = true;
  225. misfComboComCdList("R0062" , grp_search.cmb_searchitem, "Y");
  226. }else if(flag == "jobkindcd"){
  227. grp_search.ipt_searchitem.visible = false;
  228. grp_search.cmb_searchitem.visible = true;
  229. misfComboComCdList("R0061" , grp_search.cmb_searchitem, "Y");
  230. }
  231. }
  232. function grp_search_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
  233. {
  234. var recv_list = "deptcd,deptnm";
  235. misfOpenPopUpList("02", ds_send_searchdata, "", recv_list, ds_send_searchdata.getColumn(0, "instcd"), "instcd");
  236. }
  237. function ds_send_searchdata_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  238. {
  239. if(e.columnid == "deptnm") {
  240. if(utlf_isNull(e.newvalue))
  241. obj.setColumn(0, "deptcd", "");
  242. }
  243. }
  244. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  245. {
  246. if(utlf_isNull(ds_send_searchdata.getColumn(0, "gubun"))){
  247. sysf_messageBox("결제분류를","C002");
  248. return;
  249. }
  250. var oParam = {};
  251. oParam.id = "TRZHA20503";
  252. oParam.service = "reqprgmapp.ReqPrgm";
  253. oParam.method = "reqGetDeptMgrList";
  254. oParam.inds = "req=ds_send_searchdata";
  255. oParam.outds = "ds_main_deptmgrinfo=deptmgrlist";
  256. oParam.async = true;
  257. tranf_submit(oParam);
  258. }
  259. function grd_deptmgrlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  260. {
  261. if(frmf_checkOpener() && opener.frmf_getParameter("SMZHA20502_PARM_accptyn") == "Y"){
  262. opener.frmf_setParameter("SMZHA20502_PARM_deptmgrid", ds_main_deptmgrinfo.getColumn(e.row, "emplno"));
  263. opener.frmf_setParameter("SMZHA20502_PARM_deptmgrnm", ds_main_deptmgrinfo.getColumn(e.row, "name"));
  264. this.close();
  265. }
  266. }]]></Script>
  267. </Form>
  268. </FDL>