SPZSU10103_사용자부서선택조회.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPZSU10103" position="absolute 0 0 867 440" titletext="사용자조회" class="frm_POP" onload="SPZSU10103_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_confirm" taborder="4" text="확인" class="btn4" position="absolute 801 411 857 431" onclick="btn_confirm_onclick"/>
  8. <Static id="stt_titleText" text="사용자조회" class="sta_POP_title" position="absolute 12 8 161 28" transparenthittest="true"/>
  9. <Button id="btn_close" taborder="5" class="btn_POP_cls" position="absolute 839 12 853 25" onclick="btn_close_onclick"/>
  10. <Div id="group2" taborder="6" style="align:center top;" class="div_SA" position="absolute 10 48 857 115">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption1" text="검색조건 " class="search_name" position="absolute 8 10 105 30"/>
  14. <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 779 10 835 30" onclick="group2_btn_search_onclick"/>
  15. <Edit id="ipt_search_item" taborder="8" class="input_essential" position="absolute 267 35 387 55" onkeydown="Edit_onkeydown"/>
  16. <Radio id="rdo_user" taborder="9" columncount="2" rowcount="0" innerdataset="@ds_init_user" codecolumn="lable" datacolumn="value" class="radio_search" position="absolute 80 35 252 55"/>
  17. <Edit id="ipt_dutplcecd" taborder="10" class="input_essential" position="absolute 267 10 387 30" onkeydown="Edit_onkeydown"/>
  18. <Radio id="rdo_dutplce" taborder="11" columncount="2" rowcount="0" innerdataset="@ds_init_dutplce" codecolumn="lable" datacolumn="value" class="radio_search" position="absolute 80 10 252 30"/>
  19. <CheckBox id="chk_namesearch" taborder="12" text="&quot;명&quot;검색" visible="false" position="absolute 8 35 81 55" onchanged="group2_chk_namesearch_onchanged" truevalue="true" falsevalue="false"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Shape id="line12" class="line_1" position="absolute 0 131 405 131"/>
  24. <Grid id="grd_userlist" taborder="7" useinputpanel="false" position="absolute 10 145 410 408" binddataset="ds_Grid_userlist" cellsizingtype="col" oncelldblclick="grd_userlist_oncelldblclick" onheadclick="grdf_setGridCheckAll">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25" band="left"/>
  29. <Column size="30" band="left"/>
  30. <Column size="54" band="left"/>
  31. <Column size="54" band="left"/>
  32. <Column size="110"/>
  33. <Column size="45"/>
  34. <Column size="100"/>
  35. <Column size="70"/>
  36. <Column size="100"/>
  37. <Column size="30"/>
  38. <Column size="100"/>
  39. <Column size="66"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="22" band="head"/>
  43. <Row size="20"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell colspan="2">
  47. <Cell displaytype="checkbox" edittype="checkbox"/>
  48. <Cell col="1" text="선택"/>
  49. </Cell>
  50. <Cell col="2" text="사용자ID"/>
  51. <Cell col="3" text="사용자명"/>
  52. <Cell col="4" colspan="2" text="소속기관"/>
  53. <Cell col="6" colspan="2" text="소속부서"/>
  54. <Cell col="8" colspan="2" text="근무지기관"/>
  55. <Cell col="10" colspan="2" text="근무지"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:selectuser"/>
  59. <Cell col="2" displaytype="text" text="bind:userid"/>
  60. <Cell col="3" text="bind:usernm"/>
  61. <Cell col="4" text="bind:posinstnm"/>
  62. <Cell col="5" text="bind:posinstcd"/>
  63. <Cell col="6" text="bind:posdeptnm"/>
  64. <Cell col="7" text="bind:posdeptcd"/>
  65. <Cell col="8" text="bind:dutplceinstnm"/>
  66. <Cell col="9" text="bind:dutplceinstcd"/>
  67. <Cell col="10" text="bind:dutplcenm"/>
  68. <Cell col="11" text="bind:dutplcecd"/>
  69. </Band>
  70. </Format>
  71. </Formats>
  72. </Grid>
  73. <Button id="img_select" taborder="8" class="icon_right" position="absolute 415 236 441 256" onclick="img_select_onclick"/>
  74. <Grid id="grd_selectuserlist" taborder="9" useinputpanel="false" position="absolute 446 145 857 408" binddataset="ds_Grid_selectuserlist" cellsizingtype="col" oncelldblclick="grd_selectuserlist_oncelldblclick" onheadclick="grdf_setGridCheckAll">
  75. <Formats>
  76. <Format id="default">
  77. <Columns>
  78. <Column size="25" band="left"/>
  79. <Column size="30" band="left"/>
  80. <Column size="54" band="left"/>
  81. <Column size="54" band="left"/>
  82. <Column size="110"/>
  83. <Column size="45"/>
  84. <Column size="100"/>
  85. <Column size="70"/>
  86. <Column size="100"/>
  87. <Column size="30"/>
  88. <Column size="100"/>
  89. <Column size="66"/>
  90. </Columns>
  91. <Rows>
  92. <Row size="22" band="head"/>
  93. <Row size="20"/>
  94. </Rows>
  95. <Band id="head">
  96. <Cell colspan="2">
  97. <Cell displaytype="checkbox" edittype="checkbox"/>
  98. <Cell col="1" text="선택"/>
  99. </Cell>
  100. <Cell col="2" text="사용자ID"/>
  101. <Cell col="3" text="사용자명"/>
  102. <Cell col="4" colspan="2" text="소속기관"/>
  103. <Cell col="6" colspan="2" text="소속부서"/>
  104. <Cell col="8" colspan="2" text="근무지기관"/>
  105. <Cell col="10" colspan="2" text="근무지"/>
  106. </Band>
  107. <Band id="body">
  108. <Cell colspan="2" displaytype="checkbox" edittype="checkbox" text="bind:selectuser"/>
  109. <Cell col="2" displaytype="text" text="bind:userid"/>
  110. <Cell col="3" text="bind:usernm"/>
  111. <Cell col="4" text="bind:posinstnm"/>
  112. <Cell col="5" text="bind:posinstcd"/>
  113. <Cell col="6" text="bind:posdeptnm"/>
  114. <Cell col="7" text="bind:posdeptcd"/>
  115. <Cell col="8" text="bind:dutplceinstnm"/>
  116. <Cell col="9" text="bind:dutplceinstcd"/>
  117. <Cell col="10" text="bind:dutplcenm"/>
  118. <Cell col="11" text="bind:dutplcecd"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. <Static id="caption71" text="사용자조회" onclick="group5_caption71_onclick" class="tit_2" position="absolute 12 125 161 145"/>
  124. <Static id="caption01" text="선택 사용자" onclick="group5_caption71_onclick" class="tit_2" position="absolute 448 125 597 145"/>
  125. <Button id="img_deselect" taborder="10" class="icon_left" position="absolute 415 261 441 281" onclick="img_deselect_onclick"/>
  126. </Layout>
  127. </Layouts>
  128. <Objects>
  129. <Dataset id="ds_init_dutplce" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="lable" type="STRING" size="256"/>
  132. <Column id="value" type="STRING" size="256"/>
  133. </ColumnInfo>
  134. <Rows>
  135. <Row>
  136. <Col id="lable">dutplcenm</Col>
  137. <Col id="value">근무지명</Col>
  138. </Row>
  139. <Row>
  140. <Col id="lable">dutplcecd</Col>
  141. <Col id="value">근무지코드</Col>
  142. </Row>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_init_user" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="lable" type="STRING" size="256"/>
  148. <Column id="value" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="lable">usernm</Col>
  153. <Col id="value">사용자명</Col>
  154. </Row>
  155. <Row>
  156. <Col id="lable">userid</Col>
  157. <Col id="value">사용자ID</Col>
  158. </Row>
  159. </Rows>
  160. </Dataset>
  161. <Dataset id="ds_Grid_userlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <column id="selectuser" type="STRING" size="256"/>
  164. <column id="deselectuser" type="STRING" size="256"/>
  165. <column id="userid" type="STRING" size="256"/>
  166. <column id="usernm" type="STRING" size="256"/>
  167. <column id="fromdd" type="STRING" size="256"/>
  168. <column id="todd" type="STRING" size="256"/>
  169. <column id="posinstnm" type="STRING" size="256"/>
  170. <column id="posinstcd" type="STRING" size="256"/>
  171. <column id="posdeptnm" type="STRING" size="256"/>
  172. <column id="posdeptcd" type="STRING" size="256"/>
  173. <column id="dutplceinstcd" type="STRING" size="256"/>
  174. <column id="dutplceinstnm" type="STRING" size="256"/>
  175. <column id="dutplcecd" type="STRING" size="256"/>
  176. <column id="dutplcenm" type="STRING" size="256"/>
  177. <column id="licnsno" type="STRING" size="256"/>
  178. <column id="specordyn" type="STRING" size="256"/>
  179. <column id="jobkindcd" type="STRING" size="256"/>
  180. <column id="jobposcd" type="STRING" size="256"/>
  181. <column id="jobrespcd" type="STRING" size="256"/>
  182. <column id="rrgstno" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. </Dataset>
  185. <Dataset id="ds_Grid_selectuserlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  186. <ColumnInfo>
  187. <column id="selectuser" type="STRING" size="256"/>
  188. <column id="deselectuser" type="STRING" size="256"/>
  189. <column id="userid" type="STRING" size="256"/>
  190. <column id="usernm" type="STRING" size="256"/>
  191. <column id="fromdd" type="STRING" size="256"/>
  192. <column id="todd" type="STRING" size="256"/>
  193. <column id="posinstnm" type="STRING" size="256"/>
  194. <column id="posinstcd" type="STRING" size="256"/>
  195. <column id="posdeptnm" type="STRING" size="256"/>
  196. <column id="posdeptcd" type="STRING" size="256"/>
  197. <column id="dutplceinstcd" type="STRING" size="256"/>
  198. <column id="dutplceinstnm" type="STRING" size="256"/>
  199. <column id="dutplcecd" type="STRING" size="256"/>
  200. <column id="dutplcenm" type="STRING" size="256"/>
  201. <column id="licnsno" type="STRING" size="256"/>
  202. <column id="specordyn" type="STRING" size="256"/>
  203. <column id="jobkindcd" type="STRING" size="256"/>
  204. <column id="jobposcd" type="STRING" size="256"/>
  205. <column id="jobrespcd" type="STRING" size="256"/>
  206. <column id="rrgstno" type="STRING" size="256"/>
  207. </ColumnInfo>
  208. </Dataset>
  209. <Dataset id="ds_Cond_searchitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="searchitem" type="STRING" size="256"/>
  212. <Column id="searchitem_dutplceinst" type="STRING" size="256"/>
  213. <Column id="searchitem_dutplce" type="STRING" size="256"/>
  214. <Column id="flag" type="STRING" size="256"/>
  215. <Column id="flag_dutplceinst" type="STRING" size="256"/>
  216. <Column id="flag_dutplce" type="STRING" size="256"/>
  217. <Column id="prfshipflagcd" type="STRING" size="256"/>
  218. <Column id="dutplceinstcd" type="STRING" size="256"/>
  219. </ColumnInfo>
  220. </Dataset>
  221. </Objects>
  222. <Bind>
  223. <BindItem id="bindSearchitem" compid="group2.ipt_search_item" propid="value" datasetid="ds_Cond_searchitem" columnid="searchitem"/>
  224. <BindItem id="bindSearchitem_dutplce" compid="group2.ipt_dutplcecd" propid="value" datasetid="ds_Cond_searchitem" columnid="searchitem_dutplce"/>
  225. <BindItem id="bindFlag" compid="group2.rdo_user" propid="value" datasetid="ds_Cond_searchitem" columnid="flag"/>
  226. <BindItem id="bindFlag_dutplce" compid="group2.rdo_dutplce" propid="value" datasetid="ds_Cond_searchitem" columnid="flag_dutplce"/>
  227. </Bind>
  228. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  229. * System Name : HIT
  230. * Job Name : 부서트리검색팝업
  231. * File Name : SPZSU10103_사용자부서선택조회.xfdl
  232. * Creator :
  233. * Make Date : 2014-03-04
  234. *
  235. * Description :
  236. *---------------------------------------------------------------------------------------
  237. * Modify Date Modifier Modify Description
  238. *---------------------------------------------------------------------------------------
  239. * 2014-03-04 HIT Converting Program(TF->XP)
  240. * 2014-03-14 Change TF to Xp Script
  241. *---------------------------------------------------------------------------------------
  242. ****************************************************************************************/
  243. //=======================================================================================
  244. // Lib Include
  245. //---------------------------------------------------------------------------------------
  246. include "com_commonxp::comm_main.xjs"; // 전체공통 스크립트
  247. //=======================================================================================
  248. // Global Form Variable
  249. //---------------------------------------------------------------------------------------
  250. var pFlag;
  251. var pSearchitem;
  252. var pParam;
  253. var pPrfshipflagcd;
  254. var pDutplceinstcd;
  255. var pEnterKey = 13;
  256. //=======================================================================================
  257. // Function
  258. //---------------------------------------------------------------------------------------
  259. /****************************************************************************************
  260. * Argument : Boolen Type
  261. * Description : Dataset 초기화.
  262. ****************************************************************************************/
  263. function lf_setInitDataset(objDS, bAddrow)
  264. {
  265. var nRow;
  266. objDS.clearData();
  267. if(bAddrow){
  268. nRow = objDS.addRow();
  269. }
  270. return nRow;
  271. }
  272. /****************************************************************************************
  273. * Argument : Boolen Type
  274. * Description : Dataset 초기화.
  275. ****************************************************************************************/
  276. function lf_getArgumentList()
  277. {
  278. try{
  279. pFlag = flag;
  280. }catch(e){pFlag = "";}
  281. try{
  282. pSearchitem = searchitem;
  283. }catch(e){pSearchitem = "";}
  284. try{
  285. pParam = param;
  286. }catch(e){pParam = "";}
  287. try{
  288. pPrfshipflagcd = prfshipflagcd;
  289. }catch(e){pPrfshipflagcd = "";}
  290. try{
  291. pDutplceinstcd = dutplceinstcd;
  292. }catch(e){pDutplceinstcd = "";}
  293. }
  294. /****************************************************************************************
  295. * Argument : strSvcId - 조회 service ID
  296. * Description : Return Dataset 생성 후 팝업 종료.
  297. ****************************************************************************************/
  298. function lf_setSelectSubmit(strSvcId)
  299. {
  300. tranf_submit({
  301. id : strSvcId
  302. , service : "userdeptinfoapp.UserDeptInfo"
  303. , method : "reqGetUserDutplcePopup"
  304. , inds : "req=ds_Cond_searchitem"
  305. , outds : "ds_Grid_userlist=userlist"
  306. , callback: "cbf_SPZSU10103"
  307. , async : true
  308. });
  309. }
  310. /****************************************************************************************
  311. * Argument : objDs - 부모창에 넘겨줄 데이터셋 Object
  312. * Description : Return Dataset 생성 후 팝업 종료.
  313. ****************************************************************************************/
  314. function lf_setClose(objDs)
  315. {
  316. // Temp Dataset 생성.
  317. var sTempDSNm = "ds_TempRtn";
  318. var objTempDS = new Dataset;
  319. objTempDS.name = sTempDSNm;
  320. this.addChild(sTempDSNm, objTempDS);
  321. objTempDS.copyData(objDs);
  322. // 조건에 맞는 Dataset설정
  323. if(pParam=="_OneS"){
  324. // 복사된 데이터셋을 삭제한다.
  325. objTempDS.clearData();
  326. // 선택된 데이터만 부모창에 넘겨준다.
  327. var nRow = objDs.rowposition;
  328. var nAddRow = objTempDS.addRow();
  329. objTempDS.copyRow(nAddRow, objDs, nRow);
  330. }
  331. var objRemoveDS = this.removeChild(objTempDS.name);
  332. this.close(objRemoveDS);
  333. }
  334. //=======================================================================================
  335. // Transaction Callback
  336. //---------------------------------------------------------------------------------------
  337. /****************************************************************************************
  338. * Argument : 01.sSvcId : 서비스 ID
  339. * : 02.nErrorCode : 에러코드
  340. * : 03.sErrorMsg : 에러메시지
  341. * Description : tr_getCodeList의 콜백함수
  342. ****************************************************************************************/
  343. function cbf_SPZSU10103(sSvcId, nErrorCode, sErrorMsg)
  344. {
  345. if(nErrorCode!=0){
  346. sysf_messageBox(sErrorMsg, "E000");
  347. return;
  348. }
  349. switch(sSvcId)
  350. {
  351. case "TRZSU10104_Init":
  352. var nRowCnt = ds_Grid_userlist.getRowCount();
  353. if(nRowCnt==1){
  354. var objRemoveDS = this.removeChild(ds_Grid_userlist.name);
  355. this.close(objRemoveDS);
  356. }
  357. break;
  358. case "TRZSU10104":
  359. break;
  360. }
  361. }
  362. //=======================================================================================
  363. // Event
  364. //---------------------------------------------------------------------------------------
  365. /****************************************************************************************
  366. * Components : Form
  367. * Components ID : SPZSU10103
  368. * Event : onload
  369. * Argument : 01.obj : Object Event has occurred
  370. * : 02.e : Event Object
  371. * Description : 최초 Form이 Load될때 호출.
  372. ****************************************************************************************/
  373. function SPZSU10103_onload(obj:Form, e:LoadEventInfo)
  374. {
  375. // 조회조건 데이터셋 초기화.
  376. var nRow = lf_setInitDataset(ds_Cond_searchitem, true);
  377. // Grid Sorting
  378. grdf_setGridSort(grd_userlist);
  379. grdf_setGridSort(grd_selectuserlist);
  380. // Grid Dataset Init.
  381. lf_setInitDataset(ds_Grid_userlist, false);
  382. lf_setInitDataset(ds_Grid_selectuserlist, false);
  383. // 부모창에서 넘겨주는 Parameter
  384. lf_getArgumentList();
  385. // radio Value Init.
  386. group2.rdo_dutplce.index = 0;
  387. group2.rdo_user.index = 0;
  388. if(!utlf_isNull(pDutplceinstcd)){
  389. trace("pDutplceinstcd=["+pDutplceinstcd+"]");
  390. ds_Cond_searchitem.setColumn(nRow, "dutplceinstcd", pDutplceinstcd);
  391. }
  392. if(!utlf_isNull(pPrfshipflagcd)){
  393. trace("pPrfshipflagcd=["+pPrfshipflagcd+"]");
  394. ds_Cond_searchitem.setColumn(nRow, "prfshipflagcd", pPrfshipflagcd);
  395. }
  396. if (!utlf_isNull(pFlag) && !utlf_isNull(pSearchitem)){
  397. trace("pFlag=["+pFlag+"]");
  398. trace("pSearchitem=["+pSearchitem+"]");
  399. ds_Cond_searchitem.setColumn(nRow, "flag", pFlag);
  400. ds_Cond_searchitem.setColumn(nRow, "searchitem", pSearchitem);
  401. lf_setSelectSubmit("TRZSU10104_Init");
  402. }
  403. }
  404. /****************************************************************************************
  405. * Components : Button
  406. * Components ID : btn_search
  407. * Event : onclick
  408. * Argument : 01.obj : Object Event has occurred
  409. * : 02.e : Event Object
  410. * Description : 조회조건 유무 체크 후 조회
  411. ****************************************************************************************/
  412. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  413. {
  414. if(utlf_isNull(group2.ipt_dutplcecd.value)&&utlf_isNull(group2.ipt_search_item.value)){
  415. sysf_messageBox("검색어를 1자이상", "C001");
  416. return;
  417. }
  418. lf_setInitDataset(ds_Grid_userlist, false);
  419. lf_setInitDataset(ds_Grid_selectuserlist, false);
  420. var nRow = ds_Cond_searchitem.rowposition;
  421. ds_Cond_searchitem.setColumn(nRow, "prfshipflagcd", pPrfshipflagcd);
  422. ds_Cond_searchitem.setColumn(nRow, "dutplceinstcd", pDutplceinstcd);
  423. if(pParam == "_OneS_DD"){
  424. ds_Cond_searchitem.setColumn(nRow, "searchitem_dutplceinst", pParam);
  425. }
  426. lf_setSelectSubmit("TRZSU10104");
  427. }
  428. /****************************************************************************************
  429. * Components : Edit
  430. * Components ID : ipt_dutplcecd, ipt_search_item
  431. * Event : onkeydown
  432. * Argument : 01.obj : Object Event has occurred
  433. * : 02.e : Event Object
  434. * Description : 해당 Edit Component에서 Enter값 입력시 조회버튼 클릭.
  435. ****************************************************************************************/
  436. function Edit_onkeydown(obj:Edit, e:KeyEventInfo)
  437. {
  438. var nKeyCode = e.keycode;
  439. if(pEnterKey==nKeyCode){
  440. obj.updateToDataset();
  441. group2.btn_search.click();
  442. }
  443. }
  444. /****************************************************************************************
  445. * Components : CheckBox
  446. * Components ID : chk_namesearch
  447. * Event : onchanged
  448. * Argument : 01.obj : Object Event has occurred
  449. * : 02.e : Event Object
  450. * Description : 명검색 선택시 조회조건 Radio에 명검색으로 셋팅.
  451. ****************************************************************************************/
  452. function group2_chk_namesearch_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  453. {
  454. var bChk = e.postvalue;
  455. if(bChk){
  456. group2.rdo_dutplce.index = 0;
  457. group2.rdo_user.index = 0;
  458. }
  459. }
  460. /****************************************************************************************
  461. * Components : Grid
  462. * Components ID : grd_userlist
  463. * Event : oncelldblclick
  464. * Argument : 01.obj : Object Event has occurred
  465. * : 02.e : Event Object
  466. * Description : Grid Cell Double Click Event.
  467. ****************************************************************************************/
  468. function grd_userlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  469. {
  470. var nRow = e.row;
  471. var nCell = e.cell;
  472. if(nCell>0&&pParam=="_OneS"){
  473. lf_setClose(ds_Grid_userlist);
  474. }
  475. }
  476. /****************************************************************************************
  477. * Components : Grid
  478. * Components ID : grd_selectuserlist
  479. * Event : onkeydown
  480. * Argument : 01.obj : Object Event has occurred
  481. * : 02.e : Event Object
  482. * Description : 팝업에서 선택된 값을 부모창에 넘겨준 후 종료.
  483. ****************************************************************************************/
  484. function grd_selectuserlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  485. {
  486. var nRow = e.row;
  487. var nCell = e.cell;
  488. if(nCell>0&&pParam=="_OneS"){
  489. lf_setClose(ds_Grid_selectuserlist);
  490. }
  491. }
  492. /****************************************************************************************
  493. * Components : Button
  494. * Components ID : img_select
  495. * Event : onclick
  496. * Argument : 01.obj : Object Event has occurred
  497. * : 02.e : Event Object
  498. * Description : 선택된 사용자 Insert
  499. ****************************************************************************************/
  500. function img_select_onclick(obj:Button, e:ClickEventInfo)
  501. {
  502. var nFindRow = ds_Grid_userlist.findRow("selectuser", 1);
  503. if(nFindRow<0){
  504. sysf_messageBox("선택된 사용자가", "I004");
  505. return;
  506. }
  507. var nRow;
  508. grd_userlist.enableredraw = false;
  509. ds_Grid_userlist.filter("selectuser=='1'");
  510. var nRowCnt = ds_Grid_userlist.getRowCount();
  511. for(var i=0;i<nRowCnt;i++){
  512. nRow = ds_Grid_selectuserlist.addRow();
  513. ds_Grid_selectuserlist.copyRow(nRow, ds_Grid_userlist, i);
  514. ds_Grid_selectuserlist.setColumn(nRow, "selectuser", 0);
  515. }
  516. ds_Grid_userlist.filter("");
  517. grd_userlist.enableredraw = true;
  518. }
  519. /****************************************************************************************
  520. * Components : Button
  521. * Components ID : img_deselect
  522. * Event : onclick
  523. * Argument : 01.obj : Object Event has occurred
  524. * : 02.e : Event Object
  525. * Description : 선택된 사용자 Delete
  526. ****************************************************************************************/
  527. function img_deselect_onclick(obj:Button, e:ClickEventInfo)
  528. {
  529. var nFindRow = ds_Grid_selectuserlist.findRow("selectuser", 1);
  530. if(nFindRow<0){
  531. sysf_messageBox("선택된 사용자가", "I004");
  532. return;
  533. }
  534. grd_selectuserlist.enableredraw = false;
  535. ds_Grid_selectuserlist.filter("selectuser=='1'");
  536. var nRowCnt = ds_Grid_selectuserlist.getRowCount();
  537. for(var i=nRowCnt;i>=0;i--){
  538. ds_Grid_selectuserlist.deleteRow(i);
  539. }
  540. ds_Grid_selectuserlist.filter("");
  541. grd_selectuserlist.enableredraw = true;
  542. }
  543. /****************************************************************************************
  544. * Components : Button
  545. * Components ID : btn_confirm
  546. * Event : onclick
  547. * Argument : 01.obj : Object Event has occurred
  548. * : 02.e : Event Object
  549. * Description : 팝업에서 선택된 값을 부모창에 넘겨준 후 종료.
  550. ****************************************************************************************/
  551. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  552. {
  553. if(pParam=="_OneS"){
  554. lf_setClose(ds_Grid_userlist);
  555. }
  556. lf_setClose(ds_Grid_selectuserlist);
  557. }
  558. /****************************************************************************************
  559. * Components : Button
  560. * Components ID : btn_close
  561. * Event : onclick
  562. * Argument : 01.obj : Object Event has occurred
  563. * : 02.e : Event Object
  564. * Description : Popup Close
  565. ****************************************************************************************/
  566. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  567. {
  568. this.close();
  569. }
  570. ]]></Script>
  571. </Form>
  572. </FDL>