SPZSD00300_전기관부서정보검색팝업.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSD00300" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 600 454" titletext="전기관부서정보검색팝업" onload="SPZSD00200_onload" class="frm_POP" onkeydown="SPZSD00300_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="gd_deptCodeList" taborder="3" useinputpanel="false" binddataset="ds_deptCodeList" cellmovingtype="none" autofittype="none" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="gd_deptCodeList_oncelldblclick" onkeydown="gd_deptCodeList_onkeydown" anchor="all" position="absolute 12 118 588 419" positiontype="position">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="60"/>
  12. <Column size="160"/>
  13. <Column size="110"/>
  14. <Column size="110"/>
  15. <Column size="160"/>
  16. <Column size="90"/>
  17. <Column size="60"/>
  18. <Column size="80"/>
  19. <Column size="100"/>
  20. <Column size="120"/>
  21. <Column size="90"/>
  22. <Column size="110"/>
  23. <Column size="100"/>
  24. <Column size="90"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="22" band="head"/>
  28. <Row size="20"/>
  29. </Rows>
  30. <Band id="head">
  31. <Cell text="부서코드"/>
  32. <Cell col="1" text="부서코드한글명칭"/>
  33. <Cell col="2" text="부서코드영문명칭"/>
  34. <Cell col="3" text="부서코드한문명칭"/>
  35. <Cell col="4" text="부서한글약어"/>
  36. <Cell col="5" text="부서영문약어"/>
  37. <Cell col="6" text="청구분야"/>
  38. <Cell col="7" text="청구과번호"/>
  39. <Cell col="8" text="다음가실곳 여부"/>
  40. <Cell col="9" text="다음가실곳 우선순위"/>
  41. <Cell col="10" text="인터넷예약구분"/>
  42. <Cell col="11" text="전화번호"/>
  43. <Cell col="12" text="근무지사용여부"/>
  44. <Cell col="13" text="청구권한부서"/>
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:deptcd"/>
  48. <Cell col="1" style="align:left;padding:0 0 0 3;" text="bind:depthngnm"/>
  49. <Cell col="2" text="bind:deptengnm"/>
  50. <Cell col="3" text="bind:deptchinm"/>
  51. <Cell col="4" style="align:left;padding:0 0 0 3;" text="bind:depthngabbr"/>
  52. <Cell col="5" style="align:left;padding:0 0 0 3;" text="bind:deptengabbr"/>
  53. <Cell col="6" text="bind:reqfild"/>
  54. <Cell col="7" text="bind:reqdeptno"/>
  55. <Cell col="8" text="bind:nextplceyn"/>
  56. <Cell col="9" text="bind:nextplceprity"/>
  57. <Cell col="10" text="bind:inetrsrvyn"/>
  58. <Cell col="11" text="bind:cntctel"/>
  59. <Cell col="12" text="bind:dutplceuseyn"/>
  60. <Cell col="13" text="bind:reqauthdeptyn"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. <Static id="caption1" text="부서코드 목록" class="tit_2" position="absolute 12 98 135 118"/>
  66. <Div id="div_search" anchor="left top right" taborder="9" style="align:center top;" class="div_SA" position="absolute 12 46 588 88">
  67. <Layouts>
  68. <Layout>
  69. <Button id="btn_sea" taborder="9" text="조회" class="btn1" position="absolute 508 10 564 30" anchor="top right" onclick="bt_search_onclick"/>
  70. <Static id="caption2" text="검색조건" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
  71. <Combo id="cb_condition" taborder="10" value="deptcd" text="부서코드" codecolumn="codecolumn" datacolumn="datacolumn" index="0" anchor="default" position="absolute 82 10 173 30" positiontype="position" onitemchanged="div_search_cb_condition_onitemchanged">
  72. <Dataset id="innerdataset">
  73. <ColumnInfo>
  74. <Column id="codecolumn" size="256"/>
  75. <Column id="datacolumn" size="256"/>
  76. </ColumnInfo>
  77. <Rows>
  78. <Row>
  79. <Col id="codecolumn">deptcd</Col>
  80. <Col id="datacolumn">부서코드</Col>
  81. </Row>
  82. <Row>
  83. <Col id="codecolumn">deptnm</Col>
  84. <Col id="datacolumn">부서명</Col>
  85. </Row>
  86. </Rows>
  87. </Dataset>
  88. </Combo>
  89. <Edit id="ed_searchValue" taborder="11" onkeydown="div_search_ed_searchValue_onkeydown" anchor="default" position="absolute 176 10 316 30" positiontype="position" imemode="alpha"/>
  90. </Layout>
  91. </Layouts>
  92. </Div>
  93. <Button id="btn_cancel" taborder="10" text="취소" class="btn4" position="absolute 532 422 588 442" anchor="right bottom" onclick="btn_cancel_onclick"/>
  94. <Button id="btn_confirm" taborder="11" text="확인" class="btn4" position="absolute 473 422 529 442" anchor="right bottom" onclick="btn_confirm_onclick"/>
  95. <Static id="stt_titleText" text="전기관부서정보검색" class="sta_POP_title" position="absolute 12 8 159 31" onclick="caption00_onclick"/>
  96. <Button id="btn_close" taborder="12" class="btn_POP_cls" position="absolute 574 12 588 25" anchor="top right" onclick="btn_close_onclick"/>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_deptCodeList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="instcd" type="STRING" size="256"/>
  103. <Column id="deptcd" type="STRING" size="256"/>
  104. <Column id="depthngnm" type="STRING" size="256"/>
  105. <Column id="deptengnm" type="STRING" size="256"/>
  106. <Column id="deptchinm" type="STRING" size="256"/>
  107. <Column id="deptplce" type="STRING" size="256"/>
  108. <Column id="deptengabbr" type="STRING" size="256"/>
  109. <Column id="depthngabbr" type="STRING" size="256"/>
  110. <Column id="reqfild" type="STRING" size="256"/>
  111. <Column id="orddeptflag" type="STRING" size="256"/>
  112. <Column id="reqdeptno" type="STRING" size="256"/>
  113. <Column id="nextplceyn" type="STRING" size="256"/>
  114. <Column id="nextplceprity" type="STRING" size="256"/>
  115. <Column id="inetrsrvyn" type="STRING" size="256"/>
  116. <Column id="cntctel" type="STRING" size="256"/>
  117. <Column id="dutplceuseyn" type="STRING" size="256"/>
  118. <Column id="reqauthdeptyn" type="STRING" size="256"/>
  119. <Column id="planuseyn" type="STRING" size="256"/>
  120. <Column id="plansupdeptcd" type="STRING" size="256"/>
  121. <Column id="plandispseq" type="STRING" size="256"/>
  122. <Column id="orduseyn" type="STRING" size="256"/>
  123. <Column id="ordsupdeptcd" type="STRING" size="256"/>
  124. <Column id="orddispseq" type="STRING" size="256"/>
  125. <Column id="psnworkuseyn" type="STRING" size="256"/>
  126. <Column id="psnworksupdeptcd" type="STRING" size="256"/>
  127. <Column id="psnworkdispseq" type="STRING" size="256"/>
  128. <Column id="purcuseyn" type="STRING" size="256"/>
  129. <Column id="purcsupdeptcd" type="STRING" size="256"/>
  130. <Column id="purcdispseq" type="STRING" size="256"/>
  131. <Column id="fnworkuseyn" type="STRING" size="256"/>
  132. <Column id="fnworksupdeptcd" type="STRING" size="256"/>
  133. <Column id="fnworkdispseq" type="STRING" size="256"/>
  134. <Column id="careuseyn" type="STRING" size="256"/>
  135. <Column id="caresupdeptcd" type="STRING" size="256"/>
  136. <Column id="caredispseq" type="STRING" size="256"/>
  137. <Column id="gafruseyn" type="STRING" size="256"/>
  138. <Column id="gafrsupdeptcd" type="STRING" size="256"/>
  139. <Column id="gafrdispseq" type="STRING" size="256"/>
  140. <Column id="rcptuseyn" type="STRING" size="256"/>
  141. <Column id="rcptsupdeptcd" type="STRING" size="256"/>
  142. <Column id="rcptdispseq" type="STRING" size="256"/>
  143. <Column id="pamuseyn" type="STRING" size="256"/>
  144. <Column id="pamsupdeptcd" type="STRING" size="256"/>
  145. <Column id="pamdispseq" type="STRING" size="256"/>
  146. <Column id="healcareinfouseyn" type="STRING" size="256"/>
  147. <Column id="healcareinfosupdeptcd" type="STRING" size="256"/>
  148. <Column id="healcareinfodispseq" type="STRING" size="256"/>
  149. <Column id="insuuseyn" type="STRING" size="256"/>
  150. <Column id="insusupdeptcd" type="STRING" size="256"/>
  151. <Column id="insudispseq" type="STRING" size="256"/>
  152. <Column id="dgenuseyn" type="STRING" size="256"/>
  153. <Column id="dgensupdeptcd" type="STRING" size="256"/>
  154. <Column id="dgendispseq" type="STRING" size="256"/>
  155. <Column id="homecareuseyn" type="STRING" size="256"/>
  156. <Column id="homecaresupdeptcd" type="STRING" size="256"/>
  157. <Column id="homecaredispseq" type="STRING" size="256"/>
  158. <Column id="clssupdeptcd" type="STRING" size="256"/>
  159. <Column id="fstrgstrid" type="STRING" size="256"/>
  160. <Column id="fstrgstdt" type="STRING" size="256"/>
  161. <Column id="lastupdtrid" type="STRING" size="256"/>
  162. <Column id="lastupdtdt" type="STRING" size="256"/>
  163. <Column id="valitodd" type="STRING" size="256"/>
  164. <Column id="valifromdd" type="STRING" size="256"/>
  165. <Column id="level" type="STRING" size="256"/>
  166. <Column id="orddeptkind" type="STRING" size="256"/>
  167. <Column id="ordclsdeptflag" type="STRING" size="256"/>
  168. <Column id="indepthngnm" type="STRING" size="256"/>
  169. <Column id="inorddeptnm" type="STRING" size="256"/>
  170. </ColumnInfo>
  171. </Dataset>
  172. </Objects>
  173. <Script type="xscript4.0"><![CDATA[/************************************************************************************************
  174. * 파 일 명 : SPZSD00300_전기관부서정보검색팝업.xfdl
  175. * 작 성 자 : 임준호
  176. * 작 성 일 : 2014.02.05
  177. * 설 명 : 전기관부서정보검색 팝업
  178. * return value - (cdid:코드ID, cdnm:코드명)
  179. * 수 정 자 :
  180. * 수정이력 :
  181. ************************************************************************************************/
  182. include "com_commonxp::comm_main.xjs"
  183. /************************************************************************************************
  184. ******************************** Form Variable **************************************************
  185. ************************************************************************************************/
  186. /************************************************************************************************
  187. ******************************** Form Function **************************************************
  188. ************************************************************************************************/
  189. /********************************************************************************
  190. * 설 명 : 부서 코드 정보를 서버에서 가져온다.
  191. * argument :
  192. ********************************************************************************/
  193. function lf_getDeptCodeList(){
  194. var S_IN_DS_REQ = "ds_req";
  195. if(!utlf_isNull(this.objects["ds_req"])){
  196. ds_req.clear();
  197. }
  198. var objColInfo = new Array();
  199. //objColInfo.push({col: "containhistory", val: });
  200. objColInfo.push({col: "insttype", val: plgv_sInstType});
  201. objColInfo.push({col: "instcd", val: plgv_sInstCode});
  202. objColInfo.push({col: "searchcondition", val: div_search.cb_condition.value});
  203. objColInfo.push({col: "searchterm", val: div_search.ed_searchValue.value});
  204. if(!utlf_isNull(plgv_sStandardYn)) objColInfo.push({col: "standardyn", val: plgv_sStandardYn});
  205. if(!utlf_isNull(plgv_sOrdDeptflag)) objColInfo.push({col: "orddeptflag", val: plgv_sOrdDeptflag});
  206. if(!utlf_isNull(plgv_sStandardSupdeptcd)) objColInfo.push({col: "standardsupdeptcd", val: plgv_sStandardSupdeptcd});
  207. objColInfo.push({col: "basedd", val: plgv_sBasedd});
  208. dsf_createDsRow(S_IN_DS_REQ, objColInfo);
  209. tranf_submit({
  210. id: "tr_reqGetDepartmentCodeList"
  211. , service: "departmentcodeapp.DepartmentCodeUser"
  212. , method: "reqGetDepartmentCodeList"
  213. , inds : "req="+S_IN_DS_REQ
  214. , outds: "ds_deptCodeList=dept"
  215. , async: true
  216. });
  217. }
  218. /********************************************************************************
  219. * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
  220. * argument : sCdid - 코드 ID
  221. * sCdnm - 코드명
  222. ********************************************************************************/
  223. function lf_setDeptCodeInfo(){
  224. var sDeptcd = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptcd");
  225. var sDepthngnm = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "depthngnm");
  226. var sDeptengnm = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptengnm");
  227. var sDeptchinm = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptchinm");
  228. var sDepthngabbr = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "depthngabbr");
  229. var sDeptengabbr = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "deptengabbr");
  230. var sReqfild = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "reqfild");
  231. var sReqdeptno = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "reqdeptno");
  232. var sNextplceyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "nextplceyn");
  233. var sNextplceprity = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "nextplceprity");
  234. var sInetrsrvyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "inetrsrvyn");
  235. var sCntctel = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "cntctel");
  236. var sDutplceuseyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "dutplceuseyn");
  237. var sReqauthdeptyn = ds_deptCodeList.getColumn(ds_deptCodeList.rowposition, "reqauthdeptyn");
  238. var sDetail = utlf_transNullToEmpty(sDeptcd)
  239. + "|" + utlf_transNullToEmpty(sDepthngnm)
  240. + "|" + utlf_transNullToEmpty(sDeptengnm)
  241. + "|" + utlf_transNullToEmpty(sDeptchinm)
  242. + "|" + utlf_transNullToEmpty(sDepthngabbr)
  243. + "|" + utlf_transNullToEmpty(sDeptengabbr)
  244. + "|" + utlf_transNullToEmpty(sReqfild)
  245. + "|" + utlf_transNullToEmpty(sReqdeptno)
  246. + "|" + utlf_transNullToEmpty(sNextplceyn)
  247. + "|" + utlf_transNullToEmpty(sNextplceprity)
  248. + "|" + utlf_transNullToEmpty(sInetrsrvyn)
  249. + "|" + utlf_transNullToEmpty(sCntctel)
  250. + "|" + utlf_transNullToEmpty(sDutplceuseyn)
  251. + "|" + utlf_transNullToEmpty(sReqauthdeptyn);
  252. //eval("opener."+plgv_sReturnFuncNm+"('"+sDeptcd+"', '"+sDepthngnm+"', '"+sDetail+"')");
  253. var objRetVal = new Object();
  254. objRetVal.deptcd = sDeptcd;
  255. objRetVal.depthngnm = sDepthngnm;
  256. objRetVal.detail = sDetail;
  257. this.close(objRetVal);
  258. }
  259. /************************************************************************************************
  260. ******************************** Form Event *****************************************************
  261. ************************************************************************************************/
  262. /********************************************************************************
  263. * 설 명 : form onload - argument로 넘어온 검색조건과 검색어를
  264. * 해당 컴포넌트에 입력하고 조회한다.
  265. * argument :
  266. ********************************************************************************/
  267. function SPZSD00200_onload(obj:Form, e:LoadEventInfo)
  268. {
  269. frmf_initForm(obj);
  270. div_search.cb_condition.index = 0;
  271. div_search.ed_searchValue.value = "";
  272. if(!utlf_isNull(plgv_sSearchCondition)){
  273. div_search.cb_condition.value = plgv_sSearchCondition;
  274. }
  275. if(!utlf_isNull(plgv_sSearchTerm)){
  276. div_search.ed_searchValue.value = plgv_sSearchTerm;
  277. lf_getDeptCodeList();
  278. }
  279. div_search.ed_searchValue.setFocus();
  280. setImemode(div_search.ed_searchValue, div_search.cb_condition.value);
  281. /*
  282. 컬럼 visible 설정
  283. 0 deptcd 60
  284. 1 depthngnm 160
  285. 2 deptengnm 110
  286. 3 deptchinm 110
  287. 4 depthngabbr 160
  288. 5 deptengabbr 90
  289. 6 reqfild 60
  290. 7 reqdeptno 80
  291. 8 nextplceyn 100
  292. 9 nextplceprity 120
  293. 10 inetrsrvyn 90
  294. 11 cntctel 110
  295. 12 dutplceuseyn 100
  296. 13 reqauthdeptyn 90
  297. */
  298. var arrColSize = new Array();
  299. var arrVisibleCol = plgv_sVisibleColumns.split(" ");
  300. arrColSize.push({col: "deptcd", size: "60"});
  301. arrColSize.push({col: "depthngnm", size: "160"});
  302. arrColSize.push({col: "deptengnm", size: "110"});
  303. arrColSize.push({col: "deptchinm", size: "110"});
  304. arrColSize.push({col: "depthngabbr", size: "160"});
  305. arrColSize.push({col: "deptengabbr", size: "90"});
  306. arrColSize.push({col: "reqfild", size: "60"});
  307. arrColSize.push({col: "reqdeptno", size: "80"});
  308. arrColSize.push({col: "nextplceyn", size: "100"});
  309. arrColSize.push({col: "nextplceprity", size: "120"});
  310. arrColSize.push({col: "inetrsrvyn", size: "90"});
  311. arrColSize.push({col: "cntctel", size: "110"});
  312. arrColSize.push({col: "dutplceuseyn", size: "100"});
  313. arrColSize.push({col: "reqauthdeptyn", size: "90"});
  314. for(var i in arrColSize){
  315. gd_deptCodeList.setFormatColProperty(i,"size", 0);
  316. }
  317. for(var i in arrVisibleCol){
  318. trace("arrVisibleCol-"+i+"="+arrVisibleCol[i]);
  319. for(var j in arrColSize){
  320. if(arrVisibleCol[i] === arrColSize[j].col){
  321. gd_deptCodeList.setFormatColProperty(j,"size", arrColSize[j].size);
  322. }
  323. }
  324. }
  325. }
  326. /********************************************************************************
  327. * 설 명 : 조회 - 코드목록을 조회한다.
  328. * argument :
  329. ********************************************************************************/
  330. function bt_search_onclick(obj:Button, e:ClickEventInfo)
  331. {
  332. lf_getDeptCodeList();
  333. }
  334. /********************************************************************************
  335. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  336. * argument :
  337. ********************************************************************************/
  338. function gd_deptCodeList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  339. {
  340. lf_setDeptCodeInfo();
  341. }
  342. /********************************************************************************
  343. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  344. * argument :
  345. ********************************************************************************/
  346. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  347. {
  348. lf_setDeptCodeInfo();
  349. }
  350. /********************************************************************************
  351. * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
  352. * argument :
  353. ********************************************************************************/
  354. function div_search_ed_searchValue_onkeydown(obj:Edit, e:KeyEventInfo)
  355. {
  356. if(e.keycode == 13){
  357. lf_getDeptCodeList();
  358. }
  359. }
  360. /********************************************************************************
  361. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  362. * argument :
  363. ********************************************************************************/
  364. function gd_deptCodeList_onkeydown(obj:Grid, e:KeyEventInfo)
  365. {
  366. if(e.keycode == 13){
  367. lf_setDeptCodeInfo();
  368. }
  369. }
  370. /********************************************************************************
  371. * 설 명 : 취소 - 팝업을 닫는다.
  372. * argument :
  373. ********************************************************************************/
  374. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  375. {
  376. this.close();
  377. }
  378. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  379. {
  380. this.close();
  381. }
  382. function setImemode(objEdt:Edit, sValue){
  383. if(sValue == "deptcd"){
  384. objEdt.imemode = "alpha";
  385. }else if(sValue == "deptnm"){
  386. objEdt.imemode = "hangul";
  387. }
  388. }
  389. function div_search_cb_condition_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  390. {
  391. div_search.ed_searchValue.value = "";
  392. div_search.ed_searchValue.setFocus();
  393. setImemode(div_search.ed_searchValue, e.postvalue);
  394. }
  395. function SPZSD00300_onkeydown(obj:Form, e:KeyEventInfo)
  396. {
  397. if(e.keycode == 27) this.close();
  398. }
  399. ]]></Script>
  400. </Form>
  401. </FDL>