SPMNZ00100_사용자조회.xfdl 14 KB

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