123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZUM00400" classname="Guide_SA_01" inheritanceid="" position="absolute 0 0 300 320" titletext="예외로그인" class="frm_POP" onload="SPZUM00500_onload" oninit="SPZUM00500_oninit">
- <Layouts>
- <Layout>
- <Static id="stt_titleText" text="휴진일 로그인 사유 입력" class="sta_POP_title" position="absolute 12 8 266 28" usedecorate="false" wordwrap="none" transparenthittest="true"/>
- <Button id="btn_close" taborder="2" anchor="default" position="absolute 274 12 288 25" positiontype="position" class="btn_POP_cls" onclick="btn_cancel_onclick"/>
- <Button id="btn_confirm" taborder="3" text="확인" class="btn5" position="absolute 104 289 148 309" onclick="btn_confirm_onclick"/>
- <Static id="stt_subTitle" text="로그인 사유" class="tit_2" position="absolute 12 177 288 197" style="linespace:2;background:URL('theme://images/icon_tit_bullet2.png');align:left top;"/>
- <Static id="stt_userNm" position="absolute 116 190 284 211" style="font:Dotum,11,bold;"/>
- <Button id="btn_cancel" taborder="5" text="취소" class="btn5" position="absolute 152 289 196 309" onclick="btn_cancel_onclick"/>
- <Radio id="rdo_Resn" taborder="7" columncount="3" rowcount="2" position="absolute 10 194 290 254" codecolumn="codecolumn" datacolumn="datacolumn" style="textpadding:0 3 0 3;" onitemchanged="rdo_Resn_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">환자상태확인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">예정환자파악</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">집담회용</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit id="edt_Resn" taborder="9" position="absolute 56 229 290 249" enable="false" onkeydown="edt_Resn_onkeydown"/>
- <Static id="stt_subTitle00" text="휴진정보" class="tit_2" position="absolute 12 44 288 64" style="linespace:2;background:URL('theme://images/icon_tit_bullet2.png');align:left top;"/>
- <Grid id="grd_rsvmsgcnts" class="grd_Search_Menu" taborder="13" binddataset="ds_main" scrollbars="none" scrollpixel="all" useinputpanel="false" autofittype="col" onkeydown="div_searchMenu_grd_search_menu_onkeydown" onmousemove="div_searchMenu_grd_search_menu_onmousemove" oncelldblclick="div_searchMenu_grd_search_menu_oncelldblclick" position="absolute 12 67 290 167" anchor="all" tooltiptype="hover" style="border:1 solid #808080ff ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="278"/>
- </Columns>
- <Rows>
- <Row size="100"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="decoratetext" edittype="none" style="align:left middle;padding:0 8 0 8;font:Dotum,9;linespace:5;" text="bind:msgcnts" wordwrap="word" editdisplay="display"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cap_capslock" text="※ 처방 및 기록의 인증저장은 불가능 합니다." visible="true" position="absolute 11 261 289 281" style="color:#ff0000ff;bordertype:round 3 3 ;align:center middle;font:Dotum,9,bold;"/>
- </Layout>
- </Layouts>
- <Bind/>
- <Objects>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="msgcnts" type="STRING" size="500" sumtext="휴진정보"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="msgcnts"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : HIT
- * Job Name :
- * File Name : SPZUM00500_예외로그인.xfdl
- * Creator : 19338
- * Make Date : 2019-09-17
- *
- * Description : 교수 휴진일 예외 로그인 사유를 입력한다.
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2019-09-17 19338 최초작성
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
-
-
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var lgv_bPwdvalid = false;
- var lgv_bExcept = true;
- function SPZUM00500_oninit(obj:Form, e:InitEventInfo)
- {
- //frmf_initForm(obj);
- // 휴진정보 세팅
- fDecorateText();
- }
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- if(rdo_Resn.index < 0){
- sysf_messageBox("사유를 선택하세요");
- return;
- }
-
- if(rdo_Resn.index == 3 && (edt_Resn.value == "" || edt_Resn.value == null)){
- sysf_messageBox("기타사유를 입력하세요");
- edt_Resn.setFocus();
- return;
- }
-
- if(rdo_Resn.index == 3 && edt_Resn.getLength() < 5){
- sysf_messageBox("기타사유는 다섯 글자 이상 입력하세요");
- edt_Resn.setFocus();
- return;
- }
- var exptLgnCd; // 예외로그인사유코드(1:환자상태확인,2:예정환자파악,3:집담회용,4:기타)
- var exptLgnResn = ""; // 기타사유
-
- if(rdo_Resn.index == 3 && (edt_Resn.value != "" || edt_Resn.value != null)){
- var tmpStr = edt_Resn.value;
- var nCnt = tmpStr.length;
- var cnt = 0;
- for(var i = 1; i < nCnt; i++){
- if(tmpStr.charAt(i) == tmpStr.charAt(i-1)){
- cnt++;
- //trace("## i : " + i + ", tmpStr.charAt(i) : " + tmpStr.charAt(i)+ ", tmpStr.charAt(i-1) : " + tmpStr.charAt(i-1) + " , cnt : " + cnt);
- }
- }
- if(cnt >= 4){
- sysf_messageBox("기타사유에 같은 문자/숫자를 연속으로 4번 이상 사용하실 수 없습니다.","E999");
- edt_Resn.setFocus();
- return;
- }else{
- exptLgnResn = edt_Resn.value;
- }
- }
-
-
- exptLgnCd = rdo_Resn.value;
- //exptLgnResn = edt_Resn.value;
- tranf_submit({
- id: "TRZUM00501"
- , service: "hismainapp.Login"
- , method: "reqSetExptLoginInfo"
- , args: "exptLgnCd=" + wrapQuote(exptLgnCd) + " " +
- "exptLgnResn=" + wrapQuote(exptLgnResn) + " " +
- "userId=" + wrapQuote(sUserId)
- , outds: "ds_result=result"
- , async: true
- , force: true
- , callback: "cbf_TRZUM00501"
- });
- }
- // 예외 로그인 사유 저장 콜백
- function cbf_TRZUM00501(sSvcId, nErrorCode, sErrorMsg){
- if(nErrorCode == 0){
- this.close("Y");
- } else {
- // 에러처리
- sysf_messageBox(sErrorMsg, "E");
- }
-
- }
- // 취소버튼
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- // 로그인 취소 처리를 한다.
- var ipaddr = sysf_getIPAddress();
-
- var oParam = {};
- oParam.service = "hismainapp.Login";
- oParam.method = "reqLoginFailLogging";
- oParam.args = "KEY="+wrapQuote("8") + " " + // KEY:8 -> 휴진일 예외 로그인 사유 미입력으로 로그인 취소 합니다.
- "ipaddr="+wrapQuote(ipaddr) + " " +
- "userid="+wrapQuote(sUserId);
- oParam.async = false;
- tranf_submit(oParam);
- this.close("N");
- }
- // 라디오 버튼 선택 이벤트
- function rdo_Resn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(obj.index == 3){
- edt_Resn.enable = true;
- edt_Resn.setFocus();
- }else{
- edt_Resn.enable = false;
- }
- }
- // 사유 입력란 키입력 이벤트
- function edt_Resn_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- btn_confirm.click();
- }
- }
- // 휴진정보 세팅
- function fDecorateText(){
- var decoText;
- var textArr = new Array();
- textArr = sResnmsg.split("[");
- var index = sResnmsg.indexOf("[", 0)
- if(index >= 0) {
- decoText = "<b v='true'>" + textArr[0] + "</b>" + // 휴진기간
- "[" + textArr[1]; // 휴진사유
- } else {
- decoText = sResnmsg;
- }
- ds_main.setColumn(0, "msgcnts", decoText);
- }
- ]]></Script>
- </Form>
- </FDL>
|