123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE05000" position="absolute 0 0 948 647" titletext="근무자등록관리" oninit="SMMNE05000_oninit" onload="SMMNE05000_onload" onclose="SMMNE05000_onclose">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="1" position="absolute 0 0 269 263">
- <Layouts>
- <Layout>
- <Static id="caption6" text="근무자 등록 관리" class="tit_1" position="absolute 0 0 137 24" anchor="default"/>
- <Combo id="combo3" taborder="6" innerdataset="@ds_init_orddeptcd" codecolumn="cd" datacolumn="nm" position="absolute 101 130 259 150" anchor="default" onitemchanged="grp_sea_combo3_onitemchanged"/>
- <Static id="caption2" text="사 번 :" class="cell_1" position="absolute 5 80 95 100" anchor="default"/>
- <Static id="caption3" text="이 름 :" class="cell_1" position="absolute 5 105 95 125" anchor="default"/>
- <Static id="caption4" text="BP 번 호 :" class="cell_1" position="absolute 5 205 95 225" anchor="default"/>
- <Static id="caption5" text="핸 드 폰 :" class="cell_1" position="absolute 5 155 95 175" anchor="default"/>
- <Static id="caption7" text="진 료 과 :" class="cell_1" position="absolute 5 130 95 150" anchor="default"/>
- <Edit id="opt_drid" taborder="7" readonly="true" position="absolute 101 80 259 100" anchor="default"/>
- <Edit id="opt_drnm" taborder="8" readonly="true" position="absolute 101 105 259 125" anchor="default"/>
- <Edit id="ipt_hp" taborder="9" position="absolute 101 155 259 175" anchor="default" onkeydown="grp_sea_ipt_hp_onkeydown"/>
- <Edit id="ipt_bp" taborder="10" position="absolute 101 205 259 225" anchor="default" onkeydown="grp_sea_ipt_bp_onkeydown"/>
- <Static id="caption8" text="호출 구분 :" class="cell_1" position="absolute 5 180 95 200" anchor="default"/>
- <Combo id="cmb_acall" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 101 180 259 200" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">당직자호출</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">OneTime호출</Col>
- </Row>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">담당자 OneTime호출</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Shape id="line5" linetype="horizontal" class="line_3" position="absolute 4 200 259 206"/>
- <Shape id="line3" linetype="horizontal" class="line_3" position="absolute 4 175 259 181"/>
- <Shape id="line8" linetype="horizontal" class="line_3" position="absolute 4 150 259 156"/>
- <Shape id="line2" linetype="horizontal" class="line_3" position="absolute 4 125 259 131"/>
- <Shape id="line7" linetype="horizontal" class="line_3" position="absolute 4 100 259 106"/>
- <Shape id="line00" class="line_3" position="absolute 4 74 259 80" style="strokepen:3 solid #9ebed4ff;"/>
- <Div id="grp_srch" taborder="14" text="Div00" position="absolute 0 24 264 69" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption1" text="사 번 :" class="search_name" position="absolute 10 15 100 32" anchor="default"/>
- <Edit id="ipt_drid" taborder="1" position="absolute 100 14 227 33" anchor="default" onkeydown="grp_sea_grp_srch_ipt_drid_onkeydown"/>
- <Button id="btn_srchcalllist" taborder="2" text="조회" class="btn1" visible="false" position="absolute 208 22 264 44" anchor="default" onclick="grp_sea_grp_srch_btn_srchcalllist_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption16" text="근무자" class="tit_2" position="absolute 270 24 400 40"/>
- <Grid id="grd_ordcalllistinfo" taborder="2" binddataset="ds_main_ordcalllistinfo" useinputpanel="false" position="absolute 270 41 945 641" autofittype="col" oncelldblclick="grd_ordcalllistinfo_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="97"/>
- <Column size="88"/>
- <Column size="125"/>
- <Column size="141"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="사번"/>
- <Cell col="2" text="이름"/>
- <Cell col="3" text="부서"/>
- <Cell col="4" text="HP번호"/>
- <Cell col="5" text="BP번호"/>
- <Cell col="6" text="호출구분"/>
- </Band>
- <Band id="body">
- <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow+1"/>
- <Cell col="1" text="bind:drid"/>
- <Cell col="2" text="bind:drnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
- <Cell col="4" text="bind:hp"/>
- <Cell col="5" text="bind:bp"/>
- <Cell col="6" text="bind:acall"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="3" text="초기화" class="btn4" position="absolute 5 230 73 252" onclick="button1_onclick"/>
- <Button id="button3" taborder="4" text="저장" class="btn4" position="absolute 79 230 135 252" onclick="button3_onclick"/>
- <Button id="button4" taborder="5" text="삭제" class="btn4" position="absolute 141 230 197 252" onclick="button4_onclick"/>
- <Button id="button2" taborder="6" text="닫기" class="btn4" position="absolute 203 230 259 252" onclick="button2_onclick"/>
- <Shape id="line4" linetype="horizontal" class="line_3" position="absolute 1 645 945 646" style="strokepen:2 solid #9ebed4ff;"/>
- <Shape id="line6" linetype="horizontal" class="line_3" position="absolute 4 225 259 231"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="nm" type="STRING"/>
- <Column id="cd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_ordcalllistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drid" type="STRING"/>
- <Column id="drnm" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="hp" type="STRING"/>
- <Column id="bp" type="STRING"/>
- <Column id="acall" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_con" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="centcd" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="subdeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="chrgempid" type="STRING" size="256"/>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="ordroomcd" type="STRING" size="256"/>
- <Column id="ordflag" type="STRING" size="256"/>
- <Column id="orddrnm" type="STRING" size="256"/>
- <Column id="ordnurnm" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- <Column id="msgflag" type="STRING" size="256"/>
- <Column id="autoflag" type="STRING" size="256"/>
- <Column id="statflag" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_ordschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_centcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_ordroomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drid" type="STRING" size="256" sumtext="진료의id"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="hp" type="STRING" size="256" sumtext="핸드폰번호"/>
- <Column id="bp" type="STRING" size="256" sumtext="bp번호"/>
- <Column id="insdelflag" type="STRING" size="256" sumtext="데이터처리구분"/>
- <Column id="acall" type="STRING" size="256" sumtext="호출 구분 "/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_drinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="drid" type="STRING" size="256" sumtext="진료의id"/>
- <Column id="drnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="hp" type="STRING" size="256" sumtext="핸드폰번호"/>
- <Column id="bp" type="STRING" size="256" sumtext="bp번호"/>
- <Column id="oldorddeptcd" type="STRING" size="256" sumtext="구진료과코드"/>
- <Column id="acall" type="STRING" size="256" sumtext="호출구분"/>
- <Column id="insdelflag" type="STRING" size="256" sumtext=""/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.grp_srch.ipt_drid" propid="value" datasetid="ds_main_search" columnid="drid"/>
- <BindItem id="item1" compid="grp_sea.opt_drid" propid="value" datasetid="ds_main_drinfo" columnid="drid"/>
- <BindItem id="item2" compid="grp_sea.opt_drnm" propid="value" datasetid="ds_main_drinfo" columnid="drnm"/>
- <BindItem id="item3" compid="grp_sea.combo3" propid="value" datasetid="ds_main_drinfo" columnid="orddeptcd"/>
- <BindItem id="item4" compid="grp_sea.ipt_hp" propid="value" datasetid="ds_main_drinfo" columnid="hp"/>
- <BindItem id="item5" compid="grp_sea.cmb_acall" propid="value" datasetid="ds_main_drinfo" columnid="acall"/>
- <BindItem id="item6" compid="grp_sea.ipt_bp" propid="value" datasetid="ds_main_drinfo" columnid="bp"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-01-26
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-01-26 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- var saveyn = "N";
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNE05000
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMMNE05000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNE05000
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로드시 초기화 함수 실행
- ****************************************************************************************/
- function SMMNE05000_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMMNE05000
- * Event : onclose
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 전환시 실행
- ****************************************************************************************/
- function SMMNE05000_onclose(obj:Form, e:CloseEventInfo)
- {
- opener.frmf_setParameter("closeyn","Y");
- opener.frmf_setParameter("saveyn",saveyn);
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_sea.grp_srch.ipt_drid
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회조건 사번 입력후 엔터
- ****************************************************************************************/
- function grp_sea_grp_srch_ipt_drid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_sea.grp_srch.btn_srchcalllist", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_sea.grp_srch.btn_srchcalllist
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭
- ****************************************************************************************/
- function grp_sea_grp_srch_btn_srchcalllist_onclick(obj:Button, e:ClickEventInfo)
- {
- srchcallorddr();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : grp_sea.combo3
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 진료과 콤보 변경
- ****************************************************************************************/
- function grp_sea_combo3_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- grp_sea.ipt_hp.setFocus();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_sea.ipt_hp
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 핸드폰 입력후 엔터
- ****************************************************************************************/
- function grp_sea_ipt_hp_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- grp_sea.ipt_bp.setFocus();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_sea.ipt_bp
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : BP번호 입력후 엔터
- ****************************************************************************************/
- function grp_sea_ipt_bp_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_sea.grp_srch.btn_srchcalllist", "onclick", ev );
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_ordcalllistinfo
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 근무자 리스트 더블클릭
- ****************************************************************************************/
- function grd_ordcalllistinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1) {
- var drid = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"drid");
- var drnm = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"drnm");
- var orddeptcd = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"orddeptcd");
- var hp = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"hp");
- var bp = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"bp");
- var acall = ds_main_ordcalllistinfo.getColumn(ds_main_ordcalllistinfo.rowposition,"acall");
-
- dsf_makeValue(ds_main_drinfo,"drid" ,"string",drid);
- dsf_makeValue(ds_main_drinfo,"drnm" ,"string",drnm);
- dsf_makeValue(ds_main_drinfo,"orddeptcd" ,"string",orddeptcd);
- dsf_makeValue(ds_main_drinfo,"hp" ,"string",hp);
- dsf_makeValue(ds_main_drinfo,"bp" ,"string",bp);
- dsf_makeValue(ds_main_drinfo,"oldorddeptcd" ,"string",orddeptcd);
- dsf_makeValue(ds_main_drinfo,"acall" ,"string",acall);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화 버튼 클릭
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- iptclear();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :저장 버튼 클릭
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fErSmsMasterSave(); // 진료의 Call 기준마스터 저장
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제 버튼 클릭
- ****************************************************************************************/
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- fErSmsMasterDel(); // 진료의 Call 기준마스터 삭제
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기 버튼 클릭
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- opener.frmf_setParameter("closeyn","Y");
- opener.frmf_setParameter("saveyn",saveyn);
- this.close();
- }
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Function : fInit
- * Description : 화면초기화
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fInit() {
- var CurrentDate = utlf_getCurrentDate();
- dsf_makeValue(ds_hidden_con,"orddd","string",CurrentDate);
- // model.removeNodeset("/root/main/ordschelist");
- ds_main_ordschelist.clear();
-
- ds_send_reqdata.copyData(ds_hidden_con);
- // submit("TRMNE05003"); //센터, 진료과 정보 가져옴
- var oParam = {};
- oParam.id = "TRMNE05003";
- oParam.service = "ercareapp.ERSmsCallBase";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_centcdlist=centcd ds_init_ordroomlist=ordroomlist ds_init_orddeptcd=orddeptcd";
- oParam.async = false;
- oParam.callback = "";
- tranf_submit(oParam);
-
- // model.copyNode("/root/send/reqdata","/root/hidden/con");
- ds_send_reqdata.copyData(ds_hidden_con);
- //그리드 sort속성적용
- // grd_ordcalllistinfo.explorerbar = "sort"; ???
- grdf_setGridSort(grd_ordcalllistinfo); // 그리드 소트만
- //param set
- var drid = opener.frmf_getParameter("drid");
- var drnm = opener.frmf_getParameter("drnm");
- var deptcd = opener.frmf_getParameter("deptcd");
- var phone = opener.frmf_getParameter("phone");
- var bbtel = opener.frmf_getParameter("bbtel");
- var acall = opener.frmf_getParameter("acall");
- //sysf_trace(drid+"/"+drnm+"/"+deptcd+"/"+phone+"/"+bbtel+"/"+acall);
- dsf_makeValue(ds_main_search,"drid","string",drid);
- if(!utlf_isNull(ds_main_search.getColumn(0,"drid"))){
- srchcallorddr();
- dsf_makeValue(ds_main_drinfo,"orddeptcd", "string",deptcd);
- dsf_makeValue(ds_main_drinfo,"oldorddeptcd","string",deptcd);
- }
- //진료의call 기준자료 조회
- // 요청사항: 근무자 등록관리 시 사번, 진료과, 핸드폰, 호출구분, BP번호 저장에 대한 권한 관리
- // 수 정 일: 2010.05.17
- // 수 정 자: 김광성 kskim
- fCheckIptDataAuthor();
- srchcalllist();
- }
- /****************************************************************************************
- * Function : srchcallorddr
- * Description : 조회 실행
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function srchcallorddr(){
- ds_main_search.setColumn(0,"insdelflag","S");
- ds_main_search.setColumn(0, "drid", grp_sea.grp_srch.ipt_drid.value);
-
- var oParam = {};
- oParam.id = "TRMNE05002";
- oParam.service = "ercareapp.ERSmsCallBase";
- oParam.method = "reqSetSmsCallInfo";
- oParam.inds = "req=ds_main_search";
- oParam.outds = "ds_main_drinfo=drinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMNE05002";
- tranf_submit(oParam);
- if(ds_main_drinfo.rowcount < 1) {
- sysf_messageBox("조회된 사원이 없습니다.", "E999");
- //dsf_createDs("ds_main_drinfo");
- }
- ds_main_search.setColumn(0,"drid","");
- saveyn = "S";
- }
- /****************************************************************************************
- * Function : cf_TRMNE05002
- * Description : TRMNE05002 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TRMNE05002(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- sysf_messageBox("조회를 실패하였습니다.", "E999");
- return;
- }
- }
- /****************************************************************************************
- * Function : fCheckIptDataAuthor
- * Description : 화면초기화
- * Argument : 근무자 등록관리 시 사번, 진료과, 핸드폰, 호출구분, BP번호
- * : 저장에 대한 권한 관리
- * return type :
- * Creator :
- ****************************************************************************************/
- function fCheckIptDataAuthor() {
- var openerParam = opener.frmf_getParameter("SMMNE05000_param");
- var screenMenuParam = frmf_getMenuParam();
- if (!utlf_isNull(openerParam)) var paramArr = openerParam.split("^");
- else var paramArr = screenMenuParam.split("^");
-
- var dridFlag = paramArr[0];
- var orddeptFlag = paramArr[1];
- var hpFlag = paramArr[2];
- var callTypeFlag = paramArr[3];
- var bpFlag = paramArr[4];
- var saveBtnFlag = paramArr[5];
- var delBtnFlag = paramArr[6];
-
- if( orddeptFlag == "N" ) grp_sea.combo3.enable = false; // 진료과
- if( hpFlag == "N" ) grp_sea.ipt_hp.enable = false; // 핸드폰
- if( callTypeFlag == "N" ) grp_sea.cmb_acall.enable = false; // 호출구분
- if( bpFlag == "N" ) grp_sea.ipt_bp.enable = false; // bp번호
- if( saveBtnFlag == "N" ) button3.enable = false; // 저장버튼
- if( delBtnFlag == "N" ) button4.enable = false; // 삭제버튼
- }
- /****************************************************************************************
- * Function : srchcalllist
- * Description : 진료의 Call 기준자료조회
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function srchcalllist() {
- var oParam = {};
- oParam.id = "TRMNE05001";
- oParam.service = "ercareapp.ERSmsCallBase";
- oParam.method = "reqGetErCallMaster";
- oParam.inds = "null";
- oParam.outds = "ds_main_ordcalllistinfo=ordcalllistinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMNE05001";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Function : cf_TRMNE05001
- * Description : TRMNE05001 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TRMNE05001(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- sysf_messageBox("조회를 실패하였습니다.", "E999");
- return;
- }
- }
- /****************************************************************************************
- * Function : iptclear
- * Description : 근무자 등록란 초기화
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function iptclear() {
- dsf_makeValue(ds_main_search,"drid","string","");
- dsf_makeValue(ds_main_drinfo,"drid","");
-
- dsf_makeValue(ds_main_drinfo,"drnm" ,"string","");
- dsf_makeValue(ds_main_drinfo,"orddeptcd" ,"string","");
- dsf_makeValue(ds_main_drinfo,"hp" ,"string","");
- dsf_makeValue(ds_main_drinfo,"bp" ,"string","");
- dsf_makeValue(ds_main_drinfo,"oldorddeptcd" ,"string","");
- dsf_makeValue(ds_main_drinfo,"acall" ,"string","");
- }
- /****************************************************************************************
- * Function : fErSmsMasterSave
- * Description : 근무자 정보 저장
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fErSmsMasterSave() {
- if(utlf_isNull(ds_main_drinfo.getColumn(0,"drid"))){
- sysf_messageBox("사번은 필수항목입니다.", "E");
- grp_sea.opt_drid.setFocus();
- return;
- }
- if(utlf_isNull(ds_main_drinfo.getColumn(0,"orddeptcd"))){
- sysf_messageBox("진료과는 필수입력 항목입니다.", "E");
- grp_sea.combo3.setFocus();
- return;
- }
- if(utlf_isNull(ds_main_drinfo.getColumn(0,"hp"))){
- sysf_messageBox("핸드폰번호는 필수입력 항목입니다.", "E");
- grp_sea.ipt_hp.setFocus();
- return;
- }
-
- if(utlf_isNull(ds_main_drinfo.getColumn(0,"acall"))) {
- sysf_messageBox("호출구분 선택은 필수 입력 입니다.","E");
- grp_sea.cmb_acall.setFocus();
- return;
- }
-
- dsf_makeValue(ds_main_drinfo,"insdelflag","string","I");
- //전화번호의 '-'를 제거한다.
- var telnum = ds_main_drinfo.getColumn(0,"hp");
- telnum = telnum.replace(/-/gi, '');
- dsf_makeValue(ds_main_drinfo,"hp","string",telnum);
-
- var oParam = {};
- oParam.id = "TXMNE05001";
- oParam.service = "ercareapp.ERSmsCallBase";
- oParam.method = "reqSetSmsCallInfo";
- oParam.inds = "req=ds_main_drinfo";
- oParam.outds = "null";
- oParam.async = false;
- oParam.callback = "cf_TXMNE05001";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXMNE05001") >= 0){
- sysf_messageBox("저장되었습니다.", "I");
- }else{
- sysf_messageBox('저장을 실패하였습니다.', 'E999');
- return;
- }
- iptclear();//입력창 초기화
- srchcalllist();//진료의 Call 기준자료조회
- saveyn = "Y";
- }
- /****************************************************************************************
- * Function : fErSmsMasterDel
- * Description : 근무자 정보 삭제
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fErSmsMasterDel() {
- if(utlf_isNull(ds_main_drinfo.getColumn(0,"drid"))){
- sysf_messageBox("사번은 필수항목입니다.", "E");
- grp_sea.opt_drid.setFocus();
- return;
- }
- if(utlf_isNull(ds_main_drinfo.getColumn(0,"orddeptcd"))){
- sysf_messageBox("진료과는 필수입력 항목입니다.", "E");
- grp_sea.combo3.setFocus();
- return;
- }
- if(utlf_isNull(ds_main_drinfo.getColumn(0,"hp"))){
- sysf_messageBox("핸드폰번호는 필수입력 항목입니다.", "E");
- grp_sea.ipt_hp.setFocus();
- return;
- }
- if(sysf_messageBox("", "Q001", "") == 6) { // 메세지박스 ("삭제 하시겠습니까?") (return : yes=6, no=7)
- dsf_makeValue(ds_main_drinfo,"insdelflag","string","D");
-
- var oParam = {};
- oParam.id = "TXMNE05001";
- oParam.service = "ercareapp.ERSmsCallBase";
- oParam.method = "reqSetSmsCallInfo";
- oParam.inds = "req=ds_main_drinfo";
- oParam.outds = "null";
- oParam.async = false;
- oParam.callback = "cf_TXMNE05001";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXMNE05001") >= 0){
- sysf_messageBox("삭제 되었습니다.", "I");
- }else{
- sysf_messageBox('삭제를 실패하였습니다.', 'E999');
- return;
- }
- iptclear();//입력창초기화
- srchcalllist();//진료의 Call 기준자료조회
-
- saveyn = "D";
- }else{
- return;
- }
- }
- /****************************************************************************************
- * Function : cf_TXMNE05001
- * Description : TXMNE05001 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TXMNE05001(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- ]]></Script>
- </Form>
- </FDL>
|