SPZSD00200_사용자기관별부서정보검색팝업.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSD00200" classname="SPZBC00100_코드검색팝업" inheritanceid="" position="absolute 0 0 584 429" titletext="사용자기관별부서정보검색" onload="SPZSD00200_onload" class="frm_POP" onkeydown="SPZSD00200_onkeydown">
  5. <Layouts>
  6. <Layout>
  7. <Static id="st_codeList" text="부서코드 목록" position2="absolute l:12 w:132 t:98 h:20" positiontype="position2" class="tit_2"/>
  8. <Grid id="gd_deptCodeList" taborder="3" useinputpanel="false" position2="absolute l:12 w:560 t:118 h:276" positiontype="position2" binddataset="ds_deptCodeList" cellmovingtype="none" autofittype="none" cellsizebandtype="allband" cellsizingtype="col" areaselecttype="limitband" oncelldblclick="gd_deptCodeList_oncelldblclick" onkeydown="gd_deptCodeList_onkeydown">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="60"/>
  13. <Column size="160"/>
  14. <Column size="110"/>
  15. <Column size="110"/>
  16. <Column size="160"/>
  17. <Column size="90"/>
  18. <Column size="60"/>
  19. <Column size="80"/>
  20. <Column size="100"/>
  21. <Column size="120"/>
  22. <Column size="90"/>
  23. <Column size="110"/>
  24. <Column size="100"/>
  25. <Column size="90"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="22" band="head"/>
  29. <Row size="20"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell text="부서코드" autosizecol="limitmin"/>
  33. <Cell col="1" text="부서코드한글명칭"/>
  34. <Cell col="2" text="부서코드영문명칭"/>
  35. <Cell col="3" text="부서코드한문명칭"/>
  36. <Cell col="4" text="부서한글약어"/>
  37. <Cell col="5" text="부서영문약어"/>
  38. <Cell col="6" text="청구분야"/>
  39. <Cell col="7" text="청구과번호"/>
  40. <Cell col="8" text="다음가실곳 여부"/>
  41. <Cell col="9" text="다음가실곳 우선순위"/>
  42. <Cell col="10" text="인터넷예약구분"/>
  43. <Cell col="11" text="전화번호"/>
  44. <Cell col="12" text="근무지사용여부"/>
  45. <Cell col="13" text="청구권한부서"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell text="bind:deptcd"/>
  49. <Cell col="1" style="align:left;padding:0 0 0 3;" text="bind:depthngnm"/>
  50. <Cell col="2" text="bind:deptengnm"/>
  51. <Cell col="3" text="bind:deptchinm"/>
  52. <Cell col="4" style="align:left;padding:0 0 0 3;" text="bind:depthngabbr"/>
  53. <Cell col="5" style="align:left;padding:0 0 0 3;" text="bind:deptengabbr"/>
  54. <Cell col="6" text="bind:reqfild"/>
  55. <Cell col="7" text="bind:reqdeptno"/>
  56. <Cell col="8" text="bind:nextplceyn"/>
  57. <Cell col="9" text="bind:nextplceprity"/>
  58. <Cell col="10" text="bind:inetrsrvyn"/>
  59. <Cell col="11" text="bind:cntctel"/>
  60. <Cell col="12" text="bind:dutplceuseyn"/>
  61. <Cell col="13" text="bind:reqauthdeptyn"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. <Button id="bt_ok" taborder="4" text="확인" onclick="bt_ok_onclick" class="btn4" anchor="default" position="absolute 457 397 513 417" positiontype="position"/>
  67. <Button id="bt_cancel" taborder="5" text="취소" onclick="bt_cancel_onclick" class="btn4" anchor="default" position="absolute 516 397 572 417" positiontype="position"/>
  68. <Static id="stt_titleText" text="사용자기관별부서정보검색" class="sta_POP_title" position="absolute 12 8 217 28"/>
  69. <Div id="div_search" taborder="7" class="div_SA" position="absolute 12 46 572 88">
  70. <Layouts>
  71. <Layout>
  72. <Static id="st_searchCondition" text="검색조건" class="search_name" anchor="default" position="absolute 8 10 88 30" positiontype="position"/>
  73. <Combo id="cb_condition" taborder="1" 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">
  74. <Dataset id="innerdataset">
  75. <ColumnInfo>
  76. <Column id="codecolumn" size="256"/>
  77. <Column id="datacolumn" size="256"/>
  78. </ColumnInfo>
  79. <Rows>
  80. <Row>
  81. <Col id="codecolumn">deptcd</Col>
  82. <Col id="datacolumn">부서코드</Col>
  83. </Row>
  84. <Row>
  85. <Col id="codecolumn">deptnm</Col>
  86. <Col id="datacolumn">부서명</Col>
  87. </Row>
  88. </Rows>
  89. </Dataset>
  90. </Combo>
  91. <Edit id="ed_searchValue" taborder="2" onkeydown="div_search_ed_searchValue_onkeydown" anchor="default" position="absolute 176 10 316 30" positiontype="position" imemode="alpha"/>
  92. <Button id="bt_search" taborder="3" text="조회" onclick="bt_search_onclick" class="btn1" anchor="default" position="absolute 492 10 548 30" positiontype="position"/>
  93. </Layout>
  94. </Layouts>
  95. </Div>
  96. <Button id="btn_close" taborder="8" class="btn_POP_cls" position="absolute 558 12 572 25" 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. * 파 일 명 : SPZSD00200_사용자기관별부서정보검색팝업.xfdl
  175. * 작 성 자 : 임준호
  176. * 작 성 일 : 2014.02.05
  177. * 설 명 : 사용자기관별 부서 정보 검색 팝업
  178. * return value -
  179. * (deptcd:부서코드, depthngnm:부서코드명, detail:부서상세정보)
  180. * 수 정 자 :
  181. * 수정이력 :
  182. ************************************************************************************************/
  183. include "com_commonxp::comm_main.xjs"
  184. /************************************************************************************************
  185. ******************************** Form Variable **************************************************
  186. ************************************************************************************************/
  187. /************************************************************************************************
  188. ******************************** Form Function **************************************************
  189. ************************************************************************************************/
  190. /********************************************************************************
  191. * 설 명 : 부서 코드 정보를 서버에서 가져온다.
  192. * argument :
  193. ********************************************************************************/
  194. function lf_getDeptCodeList(){
  195. var S_IN_DS_REQ = "ds_req";
  196. if(!utlf_isNull(this.objects["ds_req"])){
  197. ds_req.clear();
  198. }
  199. var objColInfo = new Array();
  200. //objColInfo.push({col: "containhistory", val: });
  201. objColInfo.push({col: "insttype", val: plgv_sInstType});
  202. //objColInfo.push({col: "instcd", val: plgv_sInstCode});
  203. objColInfo.push({col: "searchcondition", val: div_search.cb_condition.value});
  204. objColInfo.push({col: "searchterm", val: div_search.ed_searchValue.value});
  205. if(!utlf_isNull(plgv_sStandardYn)) objColInfo.push({col: "standardyn", val: plgv_sStandardYn});
  206. if(!utlf_isNull(plgv_sOrdDeptflag)) objColInfo.push({col: "orddeptflag", val: plgv_sOrdDeptflag});
  207. if(!utlf_isNull(plgv_sStandardSupdeptcd)) objColInfo.push({col: "standardsupdeptcd", val: plgv_sStandardSupdeptcd});
  208. objColInfo.push({col: "basedd", val: plgv_sBasedd});
  209. dsf_createDsRow(S_IN_DS_REQ, objColInfo);
  210. tranf_submit({
  211. id: "tr_reqGetDepartmentCodeList"
  212. , service: "departmentcodeapp.DepartmentCodeUser"
  213. , method: "reqGetDepartmentCodeList"
  214. , inds : "req="+S_IN_DS_REQ
  215. , outds: "ds_deptCodeList=dept"
  216. , async: true
  217. });
  218. }
  219. /********************************************************************************
  220. * 설 명 : 부모창의 return function을 호출하고 인자값을 넘겨준다.
  221. * argument :
  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. if(!utlf_isNull(plgv_sVisibleColumns)){
  299. var arrColSize = new Array();
  300. var arrVisibleCol = plgv_sVisibleColumns.split(" ");
  301. arrColSize.push({col: "deptcd", size: "60"});
  302. arrColSize.push({col: "depthngnm", size: "160"});
  303. arrColSize.push({col: "deptengnm", size: "110"});
  304. arrColSize.push({col: "deptchinm", size: "110"});
  305. arrColSize.push({col: "depthngabbr", size: "160"});
  306. arrColSize.push({col: "deptengabbr", size: "90"});
  307. arrColSize.push({col: "reqfild", size: "60"});
  308. arrColSize.push({col: "reqdeptno", size: "80"});
  309. arrColSize.push({col: "nextplceyn", size: "100"});
  310. arrColSize.push({col: "nextplceprity", size: "120"});
  311. arrColSize.push({col: "inetrsrvyn", size: "90"});
  312. arrColSize.push({col: "cntctel", size: "110"});
  313. arrColSize.push({col: "dutplceuseyn", size: "100"});
  314. arrColSize.push({col: "reqauthdeptyn", size: "90"});
  315. for(var i in arrColSize){
  316. gd_deptCodeList.setFormatColProperty(i,"size", 0);
  317. }
  318. for(var i in arrVisibleCol){
  319. trace("arrVisibleCol-"+i+"="+arrVisibleCol[i]);
  320. for(var j in arrColSize){
  321. if(arrVisibleCol[i] === arrColSize[j].col){
  322. gd_deptCodeList.setFormatColProperty(j,"size", arrColSize[j].size);
  323. }
  324. }
  325. }
  326. }
  327. }
  328. /********************************************************************************
  329. * 설 명 : 조회 - 코드목록을 조회한다.
  330. * argument :
  331. ********************************************************************************/
  332. function bt_search_onclick(obj:Button, e:ClickEventInfo)
  333. {
  334. lf_getDeptCodeList();
  335. }
  336. /********************************************************************************
  337. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  338. * argument :
  339. ********************************************************************************/
  340. function gd_deptCodeList_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  341. {
  342. lf_setDeptCodeInfo();
  343. }
  344. /********************************************************************************
  345. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  346. * argument :
  347. ********************************************************************************/
  348. function bt_ok_onclick(obj:Button, e:ClickEventInfo)
  349. {
  350. lf_setDeptCodeInfo();
  351. }
  352. /********************************************************************************
  353. * 설 명 : edit박스에서 enter키 입력했을때 목록을 조회한다.
  354. * argument :
  355. ********************************************************************************/
  356. function div_search_ed_searchValue_onkeydown(obj:Edit, e:KeyEventInfo)
  357. {
  358. if(e.keycode == 13){
  359. lf_getDeptCodeList();
  360. }
  361. }
  362. /********************************************************************************
  363. * 설 명 : 선택한 그리드의 cdid와 cdnm을 부모창으로 넘겨준다.
  364. * argument :
  365. ********************************************************************************/
  366. function gd_deptCodeList_onkeydown(obj:Grid, e:KeyEventInfo)
  367. {
  368. if(e.keycode == 13){
  369. lf_setDeptCodeInfo();
  370. }
  371. }
  372. /********************************************************************************
  373. * 설 명 : 취소 - 팝업을 닫는다.
  374. * argument :
  375. ********************************************************************************/
  376. function bt_cancel_onclick(obj:Button, e:ClickEventInfo)
  377. {
  378. this.close();
  379. }
  380. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  381. {
  382. this.close();
  383. }
  384. function setImemode(objEdt:Edit, sValue){
  385. if(sValue == "deptcd"){
  386. objEdt.imemode = "alpha";
  387. }else if(sValue == "deptnm"){
  388. objEdt.imemode = "hangul";
  389. }
  390. }
  391. function div_search_cb_condition_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  392. {
  393. div_search.ed_searchValue.value = "";
  394. div_search.ed_searchValue.setFocus();
  395. setImemode(div_search.ed_searchValue, e.postvalue);
  396. }
  397. function SPZSD00200_onkeydown(obj:Form, e:KeyEventInfo)
  398. {
  399. if(e.keycode == 27) this.close();
  400. }
  401. ]]></Script>
  402. </Form>
  403. </FDL>