SMMNP00301_사용자조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP00301" position="absolute 0 0 605 435" titletext="사용자조회" oninit="SMMNP00301_oninit" onload="SMMNP00301_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 5 605 425" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 20 603 55" align="align:center top;" id="group2" class="div_SA">
  11. <Layouts>
  12. <Layout>
  13. <Static text="검색조건" position="absolute 15 10 77 27" id="caption1" class="search_name" anchor="default"/>
  14. <Shape position="absolute 522 7 528 29" linetype="vertical" id="line1" anchor="default"/>
  15. <Button position="absolute 534 7 590 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group5_group2_btn_search_onclick"/>
  16. <Edit position="absolute 240 8 362 27" id="ipt_search_item" class="input_s_essential" anchor="default" onkeydown="group5_group2_ipt_search_item_onkeydown"/>
  17. <Radio position="absolute 86 10 239 26" id="radio1" class="s" columncount="2" innerdataset="@ds_init_flag" datacolumn="lable" codecolumn="value" anchor="default"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static text="사용자리스트" position="absolute 8 65 119 81" align="align:center middle;" id="caption9" class="tit_2"/>
  22. <Grid position="absolute 0 85 603 418" id="grd_userlist" binddataset="ds_main_list_userlist" oncelldblclick="group5_grd_userlist_oncelldblclick">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="100"/>
  27. <Column size="100"/>
  28. <Column size="158"/>
  29. <Column size="206"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell text="사용자ID"/>
  39. <Cell col="1" text="사용자명"/>
  40. <Cell col="2" text="근무지기관명"/>
  41. <Cell col="3" text="근무지부서명"/>
  42. <Cell col="4" text="소속기관코드"/>
  43. <Cell col="5" text="소속부서코드"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell style="align:left;" text="bind:userid"/>
  47. <Cell col="1" style="align:left;" text="bind:usernm"/>
  48. <Cell col="2" style="align:left;" text="bind:posinstnm"/>
  49. <Cell col="3" style="align:left;" text="bind:posdeptnm"/>
  50. <Cell col="4" text="bind:posinstcd"/>
  51. <Cell col="5" style="align:left;" text="bind:posdeptcd"/>
  52. </Band>
  53. </Format>
  54. </Formats>
  55. </Grid>
  56. </Layout>
  57. </Layouts>
  58. </Div>
  59. <Static text="사용자조회" position="absolute 0 0 98 25" id="caption6" class="tit_1"/>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="lable" type="STRING"/>
  66. <Column id="value" type="STRING"/>
  67. </ColumnInfo>
  68. <Rows>
  69. <Row>
  70. <Col id="lable">사용자ID</Col>
  71. <Col id="value">userid</Col>
  72. </Row>
  73. <Row>
  74. <Col id="lable">사용자명</Col>
  75. <Col id="value">usernm</Col>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  80. <ColumnInfo>
  81. <Column id="searchitem" type="STRING" size="256"/>
  82. <Column id="flag" type="STRING" size="256"/>
  83. <Column id="searchdd" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. <Rows>
  86. <Row/>
  87. </Rows>
  88. </Dataset>
  89. <Dataset id="ds_main_list_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="userid" type="STRING" size="256" sumtext="사용자부서SID"/>
  92. <Column id="usernm" type="STRING" size="256" sumtext="사용자부서SID"/>
  93. <Column id="posinstnm" type="STRING" size="256" sumtext="사용자코드"/>
  94. <Column id="posinstcd" type="STRING" size="256" sumtext="사용자코드"/>
  95. <Column id="posdeptnm" type="STRING" size="256" sumtext="사용자명"/>
  96. <Column id="posdeptcd" type="STRING" size="256" sumtext="사용자명"/>
  97. </ColumnInfo>
  98. </Dataset>
  99. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="init" type="STRING" size="256"/>
  102. <Column id="searchitem" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row/>
  106. </Rows>
  107. </Dataset>
  108. </Objects>
  109. <Bind>
  110. <BindItem id="item0" compid="group5.group2.radio1" propid="value" datasetid="ds_init" columnid="init"/>
  111. <BindItem id="item1" compid="group5.group2.ipt_search_item" propid="value" datasetid="ds_init" columnid="searchitem"/>
  112. </Bind>
  113. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  114. * System Name : 경대 의료정보시스템
  115. * Job Name : emr_opanstxp -> SMMNP00301
  116. * Creator : yjh
  117. * Make Date : 2016-05-02
  118. * Description :
  119. *---------------------------------------------------------------------------------------
  120. * Modify Date Modifier Modify Description
  121. *---------------------------------------------------------------------------------------
  122. * 2016-05-02 yjh TF->XP
  123. *
  124. *---------------------------------------------------------------------------------------
  125. ****************************************************************************************/
  126. //=======================================================================================
  127. // Lib Include
  128. //---------------------------------------------------------------------------------------
  129. include "com_commonxp::comm_main.xjs";
  130. //=======================================================================================
  131. // Global Form Variable
  132. //---------------------------------------------------------------------------------------
  133. //=======================================================================================
  134. // Function
  135. //---------------------------------------------------------------------------------------
  136. /*
  137. 초기화 작업을 합니다.
  138. */
  139. function fInitialize(){
  140. //20101217_KNUH_Start
  141. // model.removeNodeset("/root/main/list/userlist");
  142. if( utlf_isNull(sysf_getModelProperty("srchflag")) ){
  143. group5.group2.radio1.index = 0;
  144. } else {
  145. group5.group2.radio1.value = sysf_getModelProperty("srchflag");
  146. if( sysf_getModelProperty("srchflag") == "userid" ){
  147. group5.group2.ipt_search_item.value = sysf_getModelProperty("userid");
  148. } else {
  149. group5.group2.ipt_search_item.value = sysf_getModelProperty("usernm");
  150. }
  151. }
  152. //20101217_KNUH_End
  153. // ipt_search_item.currentText = SearchItem;
  154. }
  155. /*
  156. 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
  157. control : "search" 는 조회 버튼 클릭
  158. "init"은 신규 버튼 클릭
  159. "save"는 저장 버튼 클릭
  160. grid : 그리드 컨트롤을 넘겨줍니다.
  161. param : 기타 param을 넘겨줍니다.
  162. */
  163. function fClicked(control, grid, param){
  164. if ("search" == control){
  165. fSearchClick(grid, param);
  166. } else if ("init" == control){
  167. reload();
  168. } else {
  169. sysf_messageBox("처리를 수행","E002");
  170. }
  171. }
  172. /*
  173. 조회버튼 클릭 타는 함수입니다.
  174. grid.explorerbar = "sortshow" sort설정합니다.
  175. ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
  176. radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
  177. submit을 날립니다.
  178. .
  179. */
  180. function fSearchClick(grid,param){
  181. ds_main_list_userlist.clearData();
  182. ds_send.setColumn(0, "searchitem", group5.group2.ipt_search_item.value);
  183. ds_send.setColumn(0, "flag", group5.group2.radio1.value);
  184. ds_send.setColumn(0, "searchdd", utlf_getCurrentDate());
  185. var oParam = {};
  186. oParam.id = "TRMNP00304";
  187. oParam.service = "opanstapp.OpAnstRec";
  188. oParam.method = "reqGetUserList";
  189. oParam.inds = "req=ds_send";
  190. oParam.outds = "ds_main_list_userlist=userlist";
  191. oParam.async = false;
  192. //oParam.callback = "cf_TRMNP00304";
  193. tranf_submit(oParam);
  194. }
  195. /*
  196. model.getValue(); 를 함수로 만들었습니다.
  197. param1 : node는 grid의 xPath입니다.
  198. param2 : row는 grid에서 선택한 row값입니다.
  199. param3 : element는 getvalue할 해당 element 명입니다.
  200. 해당 getvalue값을 return 해줍니다.
  201. return 하지 않으면 해당값을 가져올 수 없습니다.
  202. */
  203. function fGetValue(node, row, element) {
  204. var rtnValue = node.getColumn(row, element);
  205. return rtnValue;
  206. }
  207. function fDblclick(pRow) {
  208. var iParam="";
  209. var iNode = ds_main_list_userlist;
  210. var iParam_userid = fGetValue(iNode, pRow, "userid");
  211. var iParam_usernm = fGetValue(iNode, pRow, "usernm");
  212. var iParam_posinstnm = fGetValue(iNode, pRow, "posinstnm");
  213. var iParam_posinstcd = fGetValue(iNode, pRow, "posinstcd");
  214. var iParam_posdeptnm = fGetValue(iNode, pRow, "posdeptnm");
  215. var iParam_posdeptcd = fGetValue(iNode, pRow, "posdeptcd");
  216. iParam = iParam_userid + "|"
  217. + iParam_usernm + "|"
  218. + iParam_posinstcd + "|"
  219. + iParam_posinstnm + "|"
  220. + iParam_posdeptcd + "|"
  221. + iParam_posdeptnm ;
  222. // alert(iParam);
  223. // if ( checkOpener() ) {
  224. // opener.javascript.setParameter("SMMNP00301_", iParam);
  225. //
  226. //} else {
  227. // var rtn = messageBox("상위화면을 찾을 수", "E001");
  228. //}
  229. opener.frmf_setParameter("SendData", iParam);
  230. close();
  231. }
  232. //=======================================================================================
  233. // Event
  234. //---------------------------------------------------------------------------------------
  235. /****************************************************************************************
  236. * Components : Form
  237. * Components ID : SMMNP00301
  238. * Event : oninit
  239. * Argument : 01.obj : Object Event has occurred
  240. * : 02.e : Event Object
  241. * Description : 화면 처음 초기화시
  242. ****************************************************************************************/
  243. function SMMNP00301_oninit(obj:Form, e:InitEventInfo)
  244. {
  245. frmf_initForm(obj); //폼 초기화
  246. }
  247. /****************************************************************************************
  248. * Components : Form
  249. * Components ID : SMMNP00301
  250. * Event : onload
  251. * Argument : 01.obj : Object Event has occurred
  252. * : 02.e : Event Object
  253. * Description : 화면 로딩 완료시
  254. ****************************************************************************************/
  255. function SMMNP00301_onload(obj:Form, e:LoadEventInfo)
  256. {
  257. fInitialize();
  258. }
  259. /****************************************************************************************
  260. * Components : Button
  261. * Components ID : btn_search
  262. * Event : onclick
  263. * Argument : 01.obj : Object Event has occurred
  264. * : 02.e : Event Object
  265. * Description : 조회버튼 클릭시
  266. ****************************************************************************************/
  267. function group5_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. var param = group5.group2.ipt_search_item.value;
  270. // alert(ipt_search_item.attribute("ref"));
  271. fClicked("search", group5.grd_userlist);
  272. }
  273. /****************************************************************************************
  274. * Components : Edit
  275. * Components ID : ipt_search_item
  276. * Event : onkeydown
  277. * Argument : 01.obj : Object Event has occurred
  278. * : 02.e : Event Object
  279. * Description : 에디터 키 입력시
  280. ****************************************************************************************/
  281. function group5_group2_ipt_search_item_onkeydown(obj:Edit, e:KeyEventInfo)
  282. {
  283. if( e.keycode == 13 ){
  284. obj.updateToDataset();
  285. group5.group2.btn_search.click();
  286. //fClicked("search", grd_userbaseinfo, param);
  287. }
  288. }
  289. /****************************************************************************************
  290. * Components : Grid
  291. * Components ID : grd_userlist
  292. * Event : oncelldblclick
  293. * Argument : 01.obj : Object Event has occurred
  294. * : 02.e : Event Object
  295. * Description : 그리드 셀 더블클릭시
  296. ****************************************************************************************/
  297. function group5_grd_userlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  298. {
  299. var iRow = group5.grd_userlist.currentrow;
  300. fDblclick(iRow);
  301. }
  302. ]]></Script>
  303. </Form>
  304. </FDL>