123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNZ00100" position="absolute 0 0 605 435" titletext="Untitle" oninit="SPMNZ00100_oninit" onload="SPMNZ00100_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 13 605 433" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 10 603 45" align="align:center top;" id="group2" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="검색조건" position="absolute 15 9 132 26" 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 255 8 377 27" id="ipt_search_item" class="input_s_essential" anchor="default" autoselect="true" onkeydown="group5_group2_ipt_search_item_onkeydown"/>
- <Radio position="absolute 96 10 249 26" id="radio1" class="s" columncount="2" innerdataset="ds_init_radio1" datacolumn="lable" codecolumn="value" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="사용자조회" position="absolute 0 55 111 71" align="align:center middle;" id="caption9" class="tit_2"/>
- <Shape position="absolute 0 72 603 73" linetype="vertical" id="line12" class="line_1"/>
- <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">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <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/>
- <Cell col="1" text="사용자ID"/>
- <Cell col="2" text="사용자명"/>
- <Cell col="3" text="소속기관명"/>
- <Cell col="4" text="소속부서명"/>
- <Cell col="5" text="소속기관코드"/>
- <Cell col="6" text="소속부서코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left;" text="bind:userid"/>
- <Cell col="2" style="align:left;" text="bind:usernm"/>
- <Cell col="3" style="align:left;" text="bind:posinstnm"/>
- <Cell col="4" style="align:left;" text="bind:posdeptnm"/>
- <Cell col="5" text="bind:posinstcd"/>
- <Cell col="6" text="bind:posdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static text="사용자조회" position="absolute 0 0 98 20" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_radio1" 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_main_list_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="userid" type="STRING"/>
- <Column id="usernm" type="STRING"/>
- <Column id="posinstnm" type="STRING"/>
- <Column id="posdeptnm" type="STRING"/>
- <Column id="posinstcd" type="STRING"/>
- <Column id="posdeptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_HideData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <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>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_carecomxp -> SPMNZ00100
- * Creator : yjh
- * Make Date : 2017-03-08
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-03-08 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- var sSearchdd = opener.frmf_getParameter("SPMNZ001_SendData_Searchdd");
- if(!utlf_isNull(sSearchdd)){
- ds_HideData.setColumn(0, "searchdd", sSearchdd);
- opener.frmf_setParameter("SPMNZ001_SendData_Searchdd", "");
- }
- // model.removeNodeset("/root/main/list/userlist");
- group5.group2.radio1.index = 1;
- // ipt_search_item.currentText = SearchItem;
-
- }
-
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- //model.resetInstanceNode("/root/send");
- } else if ("init" == control){
- this.reload();
- } else {
- sysf_messageBox("처리를 수행","E002");
- }
- }
-
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
- radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- var isearchitem = group5.group2.ipt_search_item.value;
- //grid.explorerbar = "sortshow";
- ds_main_list_userlist.clearData();
-
- ds_send.setColumn(0, "searchitem", group5.group2.ipt_search_item.text);
- ds_send.setColumn(0, "flag", group5.group2.radio1.value);
- ds_send.setColumn(0, "searchdd", ds_HideData.getColumn(0, "searchdd"));
-
- var oParam = {};
- oParam.id = "TRMNZ00100";
- 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_TRMNZ00100";
- tranf_submit(oParam);
-
- ds_main_list_userlist.rowposition = -1;
- }
- function fResetNode(node, destinationelement){
- // model.setValue(node + "/" + destinationelement, "");
- alert(model.elementName("/root/main/item"));
- }
-
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
-
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
-
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
-
- return rtnValue;
- }
-
- /*
- model.setValue();를 함수로 만들었습니다.
- param1 : node는 setvalue할 컨트롤의 xPath입니다.
- param2 : destinationelement는 setvalue할 element명 입니다.
- param3 : sourceelement는 setvalue할 값입니다.
- */
- function fSetValue(node, destinationelement, sourceelement) {
- model.setValue(node + "/" + destinationelement, sourceelement);
- }
- function fDblclick(pRow) {
-
- var iParam="";
- var iNode = ds_main_list_userlist;
-
- var iParam_userid = ds_main_list_userlist.getColumn(pRow, "userid");
- var iParam_usernm = ds_main_list_userlist.getColumn(pRow, "usernm");
- var iParam_posinstnm = ds_main_list_userlist.getColumn(pRow, "posinstnm");
- var iParam_posinstcd = ds_main_list_userlist.getColumn(pRow, "posinstcd");
- var iParam_posdeptnm = ds_main_list_userlist.getColumn(pRow, "posdeptnm");
- var iParam_posdeptcd = ds_main_list_userlist.getColumn(pRow, "posdeptcd");
-
-
- iParam = iParam_userid +"|"+iParam_usernm +"|"
- + iParam_posinstcd +"|"+iParam_posinstnm +"|"
- + iParam_posdeptcd +"|"+iParam_posdeptnm;
- // alert(iParam);
-
- if ( frmf_checkOpener() ) {
- opener.frmf_setParameter("SendData", iParam);
- this.close();
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNZ00100
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNZ00100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNZ00100
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNZ00100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group5.grd_userlist, 0);
- grdf_setGridSort(group5.grd_userlist);
-
- 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.text;
- // 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){
- var param = group5.group2.ipt_search_item.text;
- // alert(ipt_search_item.attribute("ref"));
- fClicked("search", group5.grd_userlist);
- }
- }
- /****************************************************************************************
- * 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>
|