123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- <?xml version="1.0" encoding="utf-8"?>
- <ADL version="1.0">
- <TypeDefinition url="default_typedef.xml"/>
- <GlobalVariables url="globalvars.xml"/>
- <Application id="himed_singlemode" codepage="" language="" themeid="XPKNU.xtheme" loginformurl="" loginformstyle="" windowopeneffect="" windowcloseeffect="" version="" tracemode="append" onload="application_onload" usewaitcursor="false" usesoftkeyboard="false" enginesetupkey="{E05CD7D8-28AF-4577-89AC-E4F1F8ABF046}" engineurl="../install/TobeSoft/XPlatform_922240/XPLATFORM9.2.2_SetupEngine.exe" engineversion="9.2.2.240" licenseurl="XPLATFORM_Client_License.xml" filesecurelevel="all" networksecurelevel="all" traceduration="14" httpretry="0" httptimeout="1800" proxyretry="0">
- <Layout>
- <MainFrame id="MainFrame" title="maintitle" resizable="true" showtitlebar="true" showstatusbar="false" position="absolute 0 0 0 0" showcascadestatustext="false" showcascadetitletext="false">
- <VFrameSet id="VFrameSet" separatesize="120,*,23">
- <Frames>
- <ChildFrame id="ChildFrameTop" formurl="com_hismainxp::form_top_singlemode.xfdl" dragmovetype="none" showtitlebar="false"/>
- <FrameSet id="FrameSet">
- <Frames>
- <ChildFrame id="ChildFrameWork" dragmovetype="none" resizable="false" showtitlebar="false"/>
- </Frames>
- </FrameSet>
- <ChildFrame id="ChildFrameBottom" formurl="com_hismainxp::form_bottom_singlemode.xfdl" dragmovetype="none" showtitlebar="false"/>
- </Frames>
- </VFrameSet>
- </MainFrame>
- </Layout>
- <Style url="CSS::xpknu_theme.css"/>
- </Application>
- <Script type="xscript4.0"><![CDATA[//=======================================================================================
- // Global Variable
- //---------------------------------------------------------------------------------------
- //상단 프레임
- var agv_objAppTopPath = null;
- //업무화면을 관리하는 프레임셋
- var agv_objAppWorkPath = null;
- //하단 프레임
- var agv_objAppBottomPath = null;
- //시스템 에러 구분 application_onerror에서 사용
- var agv_bSystemError = false;
- //업무용 세션 변수
- var agv_objBizVariable = null;
- //업무용 변수(TF model attribute)
- var agv_objBizAttribute = null;
- //Cache Variable
- var agv_objCommonCache = new Object();
- //last transaction time(milli)
- var agv_nLastTransactionTime = 0;
- //frmf_openForm 함수에서 인자값을 넘길때 사용(frmf_openForm) - frmf_getMainFormParam()에서 사용한다.
- var agv_objMainFormParam = null;
- function application_onload(obj:Object, e:LoadEventInfo)
- {
- var findRow = gds_single.findRow("prgmname", gv_SINGLE);
- if(findRow > -1) {
- gds_single.setColumn(findRow, "activeYN", "Y");
-
- gv_isSingleYN = "Y";
-
- var maintitle = gds_single.lookup("activeYN", "Y", "maintitle");
- if(!lf_isNull(maintitle))
- application.mainframe.titletext = maintitle;
- }
-
- agv_objAppTopPath = mainframe.VFrameSet.ChildFrameTop; // 상단정보
- agv_objAppWorkPath = mainframe.VFrameSet.FrameSet.ChildFrameWork; // 업무화면
- agv_objAppBottomPath = mainframe.VFrameSet.ChildFrameBottom; // 하단정보
- //업무용 세션 변수 초기화
- agv_objBizVariable = new Object();
- agv_objBizAttribute = new Object();
-
- // 익스플로어에서 url로 접속한 경우 (TFSmartUpdate 실행 안해도 되도록 설정)
- if(!lf_isNull(JSESSIONID)) {
- gv_bFromWeb = "Y";
- }
-
- gf_setUrl();
-
- gf_loginProcess();
- }
- function gf_setUrl(inst){
- application.mainframe.style.icon = "";
- var loginSaveInst = "";
-
- var urlTFArr = application.services["TFURL"].url;
-
- var xadlURLArr = application.xadl.split("/");
- if (xadlURLArr[0].indexOf("http") == 0) // 서버환경인 경우
- {
- // 시스템 구분 미저장 시
- if(xadlURLArr[2].indexOf("hisx031") != -1) { // 본원 접속
- loginSaveInst = "his031";
- }
- else if(xadlURLArr[2].indexOf("hisx032") != -1) { // 칠곡 접속
- loginSaveInst = "his032";
- }
- trace("loginSaveInst : " + loginSaveInst);
- var urlArr = application.services["SVR"].url.split("/");
-
- // 로컬서버
- if(xadlURLArr[2].indexOf("999dev") != -1){
- // if(loginSaveInst == "his031"){
- // urlArr = "http://hisx031edu.knuh.kr:80/himed/.lxp?".split("/");
- // urlTFArr = "http://his031edu.knuh.kr/himed";
- // }else if(loginSaveInst == "his032"){
- // urlArr = "http://hisx032edu.knuh.kr:80/himed/.lxp?".split("/");
- // urlTFArr = "http://his032edu.knuh.kr/himed";
- // }else if(loginSaveInst == "mis030"){
- // urlArr = "http://misx030edu.knuh.kr:80/himed/.lxp?".split("/");
- // urlTFArr = "http://mis030edu.knuh.kr/himed";
- // }
- gv_currentInstnm = "개인로컬";
- gv_bUseSSL = false;
- }
- // 교육서버
- else if(xadlURLArr[2].indexOf("edu") != -1){
- if(loginSaveInst == "his031"){
- urlArr = "http://hisx031edu.knuh.kr:80/himed/.lxp?".split("/");
- gv_currentInstnm = "본원교육";
- }else if(loginSaveInst == "his032"){
- urlArr = "http://hisx032edu.knuh.kr:80/himed/.lxp?".split("/");
- gv_currentInstnm = "칠곡교육";
- }
-
- gv_bUseSSL = true;
- }
- // 운영서버
- else {
- if(loginSaveInst == "his031"){
- urlArr = "http://hisx031.knuh.kr:80/himed/.lxp?".split("/");
- gv_currentInstnm = "본원운영";
- }else if(loginSaveInst == "his032"){
- urlArr = "http://hisx032.knuh.kr:80/himed/.lxp?".split("/");
- gv_currentInstnm = "칠곡운영";
- }
-
- gv_bUseSSL = true;
- }
-
- trace("urlArr : " + urlArr);
- trace("urlTFArr : " + urlTFArr);
- trace("gv_currentInstnm : " + gv_currentInstnm);
-
- var domainArr = urlArr[2].split(":");
- gv_sURLprefix = "http://"+urlArr[2]+"/"+urlArr[3];
- gv_sURLprefixSSL = "https://"+domainArr[0]+":443/"+urlArr[3];
-
- gv_bIsPreview = false;
- gv_isCommonPopup = true; // 공통 마우스 우측 팝업 사용
- }
- else // 개발자 환경인 경우 (미리보기환경)
- {
- var serviceURLArr = application.services["SVR"].url.split("/");
- // if(loginSaveInst != ""){
- // if(loginSaveInst == "his031"){
- // serviceURLArr = "http://hisx031edu.knuh.kr:80/himed/.lxp?".split("/");
- // }else if(loginSaveInst == "his032"){
- // serviceURLArr = "http://hisx032edu.knuh.kr:80/himed/.lxp?".split("/");
- // }else if(loginSaveInst == "mis030"){
- // serviceURLArr = "http://misx030edu.knuh.kr:80/himed/.lxp?".split("/");
- // }
- // }
- gv_currentInstnm = "개인로컬";
-
- var localDomainArr = serviceURLArr[2].split(":");
- gv_sURLprefix = "http://"+serviceURLArr[2]+"/"+serviceURLArr[3];
- gv_sURLprefixSSL = "https://"+localDomainArr[0]+":8443/"+serviceURLArr[3];
-
- gv_bIsPreview = true;
- gv_bUseSSL = false;
-
- application.mainframe.style.icon = lf_getIconImg("ico");
- }
-
- if(loginSaveInst == "his032"){
- gv_currentInstcd = "his032";
- gv_LoginSavedInst = "his032";
- } else {
- gv_currentInstcd = "his031";
- gv_LoginSavedInst = "his031";
- }
-
- application.mainframe.style.icon = lf_getIconImg("ico");
-
- // 접속시스템에 따라 타이틀바 아이콘 표시
- var objTitlebar = application.mainframe.titlebar;
- var oIv = objTitlebar.components["ivIcon"];
- if(lf_isNull(oIv)) {
- oIv = new ImageViewer();
- oIv.init("ivIcon", -1, -1, 27, 25);
- oIv.style.background = "#262d39ff";
- oIv.style.border = "0 none transparent";
- oIv.style.bordertype = "normal 0 0";
- oIv.style.padding = "2 0 0 0";
- oIv.imagealign = "right top";
- objTitlebar.addChild(oIv.name, oIv);
- oIv.show();
- }
-
- oIv.image = "";
- oIv.image = lf_getIconImg("png");
- gf_useSSL(gv_bUseSSL);
- }
- function gf_useSSL(usessl)
- {
- if(system.osversion == "Windows XP") {
- gv_bUseSSL = false;
- usessl = false;
- }
-
- if (usessl){
- application.services["SVR"].url = gv_sURLprefixSSL+"/.lxp?";
- }else{
- application.services["SVR"].url = gv_sURLprefix+"/.lxp?";
- }
- }
- function gf_loginProcess()
- {
- var nMoniterIndex;
- var nScreenLeft;
- var nScreenTop;
- var nScreenRight;
- var nScreenBottom;
- var nScreenWidth;
- var nScreenHeight;
- var arrScreenSize;
-
- var monitorIndex = application.getPrivateProfile("gv_nMonitorIndex");
- if(lf_isNull(monitorIndex)) monitorIndex = 1;
-
- nMoniterIndex = monitorIndex;//system.getMonitorIndex(system.cursorx, system.cursory); //모니터번호
- //alert("login process="+nMoniterIndex);
- objScreenSize = system.getScreenRect(nMoniterIndex);
- nScreenLeft = objScreenSize.left;
- nScreenTop = objScreenSize.top;
- nScreenRight = objScreenSize.right;
- nScreenBottom = objScreenSize.bottom;
- nScreenWidth = nScreenRight - nScreenLeft;
- nScreenHeight = nScreenBottom - nScreenTop;
-
- // //로그인 창 나올때 작업표시줄 아이콘 표시를 위하여 mainframe 크기를 0으로 줄인다.
- // var nMainLeft = application.mainframe.position.left;
- // var nMainTop = application.mainframe.position.top;
- // var nMainWidth = application.mainframe.position.width;
- // var nMainHeight = application.mainframe.position.height;
- //
- application.mainframe.position.left = Math.ceil(nScreenLeft+(nScreenWidth/2));
- application.mainframe.position.top = Math.ceil(nScreenTop+(nScreenHeight/2));
- application.mainframe.position.width = 3; // 0 인 상태로는 titletext 값 변경이 안됨
- application.mainframe.position.height = 3;
- application.mainframe.visible = true;
-
- //application.mainframe.style.icon = "theme://images\\icon_titlebar.png";
-
- //로그인 화면 기동
- var left = nScreenLeft + (nScreenWidth / 2) - 217;
- var top = nScreenTop + (nScreenHeight / 2) - 353;
-
- // left, top 좌표가 원격 접속시 -로 발생하는 현상이 있는 것에 대한 처리
- if(left < 0) left = 423;
- if(top < 0) top = 140;
-
- var right = left + 434;
- var bottom = top + 353;
-
- var objFrame = new ChildFrame("Login", left, top, right, bottom);
- objFrame.showtitlebar = false;
- objFrame.titlebar.minbutton.enable = true;
- objFrame.titlebar.maxbutton.enable = false;
- objFrame.layered = true;
- objFrame.style.background = "transparent";
- objFrame.formurl = "com_hismainxp::form_login.xfdl";
- objFrame.style.icon = lf_getIconImg("png");
- var rtn = objFrame.showModal("Login", application.mainframe);
- if(rtn=="OK"){
- // //로그인 창 나올때 mainframe를 원래 크기로 적용한다.
- // //gf_setFrameSize();
- // //설명처방 화면 오픈
- // var left = nScreenLeft + (nScreenWidth / 2) - 512;
- // var top = nScreenTop + (nScreenHeight / 2) - 768;
- //
- // // left, top 좌표가 원격 접속시 -로 발생하는 현상이 있는 것에 대한 처리
- // if(left < 0) left = 423;
- // if(top < 0) top = 140;
- //
- // var right = left + 1024;
- // var bottom = top + 353;
- //
- // var objFrameHiChart = new ChildFrame("HiChart", left, top, right, bottom);
- // //objFrame.showtitlebar = false;
- // //objFrame.titlebar.minbutton.enable = true;
- // //objFrame.titlebar.maxbutton.enable = false;
- // //objFrame.layered = true;
- // //objFrame.style.background = "transparent";
- // objFrameHiChart.formurl = "com_hichartxp::SPZMH00100_설명처방.xfdl";
- // //objFrame.style.icon = "IMG::" + gv_currentInstcd + ".png";
- //
- // var rtn = objFrameHiChart.showModal("HiChart", application.mainframe);
- // gv_isCanLogout = true;
- // exit();
- agv_objAppWorkPath.form.fSingleOpen();
- }else{
- gv_isCanLogout = true;
- exit();
- }
- }
- function lf_getIconImg(imgType) {
- var result = "";
- var prgmname = gds_single.lookup("activeYN", "Y", "prgmname");
- var instcd = gv_currentInstcd;
-
- if(lf_isNull(instcd)) instcd = "his031";
-
- if(imgType == "png") {
- if(lf_isNull(prgmname))
- result = "IMG::his031.png";
- else
- result = "IMG::" + prgmname + instcd.substr(3) + ".png";
- } else {
- if(lf_isNull(prgmname))
- result = "IMG::KU2_031.ico";
- else
- result = "IMG::" + prgmname + "_" + instcd.substr(3) + ".ico";
- }
-
- return result;
- }
- function lf_isNull(sValue)
- {
- if( ("x"+sValue == "xNaN") && ( new String(sValue.length).valueOf() == "undefined")) return true;
-
- if (sValue == null) return true;
-
- var v_ChkStr = new String(sValue);
- if (v_ChkStr == null) return true;
- if (v_ChkStr.toString().length == 0 ) return true;
- return false;
- }]]></Script>
- </ADL>
|