123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNP00301" position="absolute 0 0 605 435" titletext="사용자조회" oninit="SMMNP00301_oninit" onload="SMMNP00301_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 5 605 425" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 20 603 55" align="align:center top;" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="검색조건" position="absolute 15 10 77 27" id="caption1" class="search_name" anchor="default"/>
- <Shape position="absolute 522 7 528 29" linetype="vertical" id="line1" anchor="default"/>
- <Button position="absolute 534 7 590 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="group5_group2_btn_search_onclick"/>
- <Edit position="absolute 240 8 362 27" id="ipt_search_item" class="input_s_essential" anchor="default" onkeydown="group5_group2_ipt_search_item_onkeydown"/>
- <Radio position="absolute 86 10 239 26" id="radio1" class="s" columncount="2" innerdataset="@ds_init_flag" datacolumn="lable" codecolumn="value" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="사용자리스트" position="absolute 8 65 119 81" align="align:center middle;" id="caption9" class="tit_2"/>
- <Grid position="absolute 0 85 603 418" id="grd_userlist" binddataset="ds_main_list_userlist" oncelldblclick="group5_grd_userlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="158"/>
- <Column size="206"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="사용자ID"/>
- <Cell col="1" text="사용자명"/>
- <Cell col="2" text="근무지기관명"/>
- <Cell col="3" text="근무지부서명"/>
- <Cell col="4" text="소속기관코드"/>
- <Cell col="5" text="소속부서코드"/>
- </Band>
- <Band id="body">
- <Cell style="align:left;" text="bind:userid"/>
- <Cell col="1" style="align:left;" text="bind:usernm"/>
- <Cell col="2" style="align:left;" text="bind:posinstnm"/>
- <Cell col="3" style="align:left;" text="bind:posdeptnm"/>
- <Cell col="4" text="bind:posinstcd"/>
- <Cell col="5" style="align:left;" text="bind:posdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static text="사용자조회" position="absolute 0 0 98 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lable" type="STRING"/>
- <Column id="value" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="lable">사용자ID</Col>
- <Col id="value">userid</Col>
- </Row>
- <Row>
- <Col id="lable">사용자명</Col>
- <Col id="value">usernm</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchitem" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="searchdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING" size="256" sumtext="사용자부서SID"/>
- <Column id="usernm" type="STRING" size="256" sumtext="사용자부서SID"/>
- <Column id="posinstnm" type="STRING" size="256" sumtext="사용자코드"/>
- <Column id="posinstcd" type="STRING" size="256" sumtext="사용자코드"/>
- <Column id="posdeptnm" type="STRING" size="256" sumtext="사용자명"/>
- <Column id="posdeptcd" type="STRING" size="256" sumtext="사용자명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- <Column id="searchitem" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group5.group2.radio1" propid="value" datasetid="ds_init" columnid="init"/>
- <BindItem id="item1" compid="group5.group2.ipt_search_item" propid="value" datasetid="ds_init" columnid="searchitem"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_opanstxp -> SMMNP00301
- * Creator : yjh
- * Make Date : 2016-05-02
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-02 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- //20101217_KNUH_Start
- // model.removeNodeset("/root/main/list/userlist");
- if( utlf_isNull(sysf_getModelProperty("srchflag")) ){
- group5.group2.radio1.index = 0;
-
- } else {
- group5.group2.radio1.value = sysf_getModelProperty("srchflag");
-
- if( sysf_getModelProperty("srchflag") == "userid" ){
- group5.group2.ipt_search_item.value = sysf_getModelProperty("userid");
- } else {
- group5.group2.ipt_search_item.value = sysf_getModelProperty("usernm");
- }
- }
-
- //20101217_KNUH_End
- // ipt_search_item.currentText = SearchItem;
-
- }
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- } else if ("init" == control){
- reload();
- } else {
- sysf_messageBox("처리를 수행","E002");
- }
- }
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
- radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- ds_main_list_userlist.clearData();
- ds_send.setColumn(0, "searchitem", group5.group2.ipt_search_item.value);
- ds_send.setColumn(0, "flag", group5.group2.radio1.value);
- ds_send.setColumn(0, "searchdd", utlf_getCurrentDate());
-
- var oParam = {};
- oParam.id = "TRMNP00304";
- oParam.service = "opanstapp.OpAnstRec";
- oParam.method = "reqGetUserList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_list_userlist=userlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNP00304";
- tranf_submit(oParam);
- }
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
- var rtnValue = node.getColumn(row, element);
- return rtnValue;
- }
- function fDblclick(pRow) {
- var iParam="";
- var iNode = ds_main_list_userlist;
-
- var iParam_userid = fGetValue(iNode, pRow, "userid");
- var iParam_usernm = fGetValue(iNode, pRow, "usernm");
- var iParam_posinstnm = fGetValue(iNode, pRow, "posinstnm");
- var iParam_posinstcd = fGetValue(iNode, pRow, "posinstcd");
- var iParam_posdeptnm = fGetValue(iNode, pRow, "posdeptnm");
- var iParam_posdeptcd = fGetValue(iNode, pRow, "posdeptcd");
-
-
- iParam = iParam_userid + "|"
- + iParam_usernm + "|"
- + iParam_posinstcd + "|"
- + iParam_posinstnm + "|"
- + iParam_posdeptcd + "|"
- + iParam_posdeptnm ;
- // alert(iParam);
-
- // if ( checkOpener() ) {
- // opener.javascript.setParameter("SMMNP00301_", iParam);
- //
- //} else {
- // var rtn = messageBox("상위화면을 찾을 수", "E001");
- //}
-
- opener.frmf_setParameter("SendData", iParam);
- close();
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNP00301
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMMNP00301_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNP00301
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMMNP00301_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function group5_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- var param = group5.group2.ipt_search_item.value;
- // alert(ipt_search_item.attribute("ref"));
- fClicked("search", group5.grd_userlist);
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : ipt_search_item
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 에디터 키 입력시
- ****************************************************************************************/
- function group5_group2_ipt_search_item_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if( e.keycode == 13 ){
- obj.updateToDataset();
- group5.group2.btn_search.click();
- //fClicked("search", grd_userbaseinfo, param);
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_userlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function group5_grd_userlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = group5.grd_userlist.currentrow;
- fDblclick(iRow);
- }
- ]]></Script>
- </Form>
- </FDL>
|