!function(window,undefined){function Definition(){this.VERSION="1",this.MEMBERS={panel:{bcName:"CSC-VERTICAL",MEMBERS:{panel4:{bcName:"CSC-VERTICAL",MEMBERS:{img:{bcName:"CSC-IMAGE"}}},title:{bcName:"CSC-TITLE"}}},loginInputs:{bcName:"CSC-VERTICAL",MEMBERS:{userinfo:{bcName:"CSC-VERTICAL",MEMBERS:{userid:"E_KULLANICIKODU",sifre:"E_SIFRE"}},btnPanel:{bcName:"CSC-VERTICAL",MEMBERS:{anasayfaButton:{bcName:"CSC-BUTTON"},girisBtn:{bcName:"CSC-BUTTON"}}},panel14:{bcName:"CSC-VERTICAL",MEMBERS:{eDevletGirisButton:{bcName:"CSC-BUTTON"}}}}}},this.EVENTS=[{name:"login",parameters:["component"]}],this.METHODS=[{ispublic:!0,name:"devGirisKontrol",code:'\nvar kulkodu = userid.getValue().trim();\nvar kulsifre = sifre.getValue().trim();\n//var kulparola = password.getValue().trim();\n\nif(kulkodu === ""){\n SPopup.MessageBox("Kullanıcı Kodu boş olamaz");\n return false;\n}\nif(kulsifre === ""){\n SPopup.MessageBox("Şifre boş olamaz");\n return false;\n}\nreturn true;',parameters:[],calls:[],includesDebugger:!1,includesDontCheckin:!1,comment:""},{name:"doLogin",ispublic:!1,parameters:["obj"],comment:"",code:'/*\nvar kullaniciKodu = userid.getValue().trim();\nvar sifreText = sifre.getValue().trim();\n\nif(kullaniciKodu == "" || sifreText == "") {\n SPopup.MessageBox("Lütfen tüm alanları eksiksiz doldurarak tekrar deneyin!");\n return;\n}\n\nvar param = {\nassoscmd: "multilogin",\nrtype: "json",\nuserid: kullaniciKodu,\nsifre: sifreText,\nparola: "maliye"\n};\n\nwindow.localStorage.setItem("userid",kullaniciKodu);\najaxCall(window.SModuleManager.getAppUrl("tvd","assos-login"), param, function(res){\n\t\tres = eval("(" + res + ")");\n\t\tif(res.error) {\n\t\t SPopup.MessageBox(res.messages[0].text);\n\t\t}\n\t\telse {\n\t\t SSession.setToken(res.token);\n\t\t if(SSession.getEnv() == "dev") {\n\t\t localStorage.setItem(\'token\', res.token);\n\t\t SPopupContext.getLastPopup().close();\n\t\t }else{\n\t\t SPopupContext.getLastPopup().close();\n\t\t obj.fire("login", res); //Bu gerekli SIDEnin sayfa, token v.s. yüklemesi için\n\t\t } \n\t\t}\n});\n*/\n\n\n/******/\n\n\nvar kullaniciKodu = userid.getValue().trim();\nvar sifreGirilen = sifre.getValue().trim();\nvar dk;\nvar para = {\n type:"show",\n userid:kullaniciKodu\n};\n/*\nif(obj.getCaptcha() == true){\n dk = securityCode.getValue().trim();\n}\n*/\nif(kullaniciKodu == "" || sifreGirilen == "") {\n SPopup.MessageBox("Lütfen tüm alanları eksiksiz doldurarak tekrar deneyin!");\n return;\n}\n/*\nif(obj.getCaptcha() == true && dk == "") {\n SPopup.MessageBox("Lütfen tüm alanları eksiksiz doldurarak tekrar deneyin!");\n return;\n}\n*/\ndebugger;\nvar param = {\nassoscmd: "multilogin",\nrtype: "json",\nuserid: kullaniciKodu,\nsifre: sifreGirilen,\nparola: "maliye"\n};\n/*\nif(obj.getCaptcha() == true) {\n param.dk = dk;\n param.controlCaptcha=true;\n}*/\n//else{\n param.controlCaptcha=false;\n//}\n/*\nif(SSession.getEnv() != "dev" && obj.getCaptcha() == true) {\n var iframeId = iframe.getConfig().id;\n var iframeDocument = window.document.getElementById(iframeId).contentDocument;\n var imageID = iframeDocument.getElementById("cid").value;\n param.imageID = imageID;\n}\n*/\nwindow.localStorage.setItem("userid",kullaniciKodu);\najaxCall(window.SModuleManager.getAppUrl("tvd","assos-login"), param, function(res){\n\t\tres = eval("(" + res + ")");\n\t\tif(res.error) {\n//\t\t var params = {\n// type:"add",\n// userid:kullaniciKodu\n// };\n// ajaxCall(window.SModuleManager.getAppUrl("tvd","doShowCaptcha"), params, function(res){\n// obj.setCaptcha(true);\n// guvenlikKodu.setVisible(true);\n// guvenlikKodu.rerender();\n//\t refreshCaptcha.fire("selected");\n// });\n/* if(obj.getCaptcha == true) {\n securityCode.setValue("");\n }\n*/\t\t SPopup.MessageBox(res.messages[0].text);\n\t\t}\n\t\telse {\n\t\t /*SSession.setToken(res.token);\n\t\t \tvar pr = {\n type:"delete",\n userid:kullaniciKodu\n };*/\n SSession.setToken(res.token);\n //ajaxCall(window.SModuleManager.getAppUrl("tvd","doShowCaptcha"), pr, function(res){});\n\t\t //if(SSession.getEnv() == "dev") {\n\t\t localStorage.setItem(\'token\', res.token);\n\t\t // SPopup.MessageBox("Login Başarılı. Diğer Sayfalarda işlem yapabilirsin.");\n\t\t //}else{\n\t\t SPopupContext.getLastPopup().close();\n\t\t obj.fire("login", res); //Bu gerekli SIDEnin sayfa, token v.s. yüklemesi için\n //document.location.href = "/tvd_side/index.jsp?token=" + res.token;\n\t\t //} \n\t\t}\n//\t\trefreshCaptcha.fire("selected");\n});\n\n\n/******/',calls:[],includesDebugger:!0,includesDontCheckin:!1},{name:"ajaxCall",ispublic:!1,parameters:["url","paramsObj","callback"],comment:"",code:'var xmlhttp = new XMLHttpRequest();\n\nxmlhttp.onreadystatechange = function() {\nif (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\n if(callback){\n callback(xmlhttp.responseText);\n }\n}\n};\nvar paramStr = "";\nfor(var key in paramsObj){\n if(typeof paramsObj[key] === "string"){\n paramStr += key + "=" + paramsObj[key]+"&";\n }else{\n paramStr += key + "=" + JSON.stringify(paramsObj[key])+"&";\n }\n}\n\nxmlhttp.open("POST", url, true);\nxmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");\nxmlhttp.send(paramStr);',calls:[],includesDebugger:!1,includesDontCheckin:!1}],this.SCR={layoutConfig:{minWidth:"400"},visible:!0,style:{},validation:{},layout:"CSC-PAGE",border:!0,readonly:!1,disabled:!1,memberConfig:{btnPanel:{layout:"CSC-HORIZONTAL",panelType:"btnGroup",style:{textAlign:"center"}},girisBtn:{title:"Giriş",style:{buttonManifest:"primary",buttonIcon:"fa-unlock"}},img:{src:"sf/img/ivd_logo.png",style:{width:"128"}},panel:{layoutConfig:{zindex:100},style:{height:"130",width:""},horAlign:"center"},panel4:{layoutConfig:{},cssClass:"gibKirmiziBg",horAlign:"center"},sifre:{label:"Şifre"},title:{title:"Oturum süreniz doldu. Lütfen tekrar giriş yapınız.",style:{}},userid:{sql:!1,label:"Kullanıcı Kodu"},userinfo:{layout:"CSC-VERTICAL",labelPosition:"top",panelType:"inputGroup"},loginInputs:{style:{width:"400"},cssClass:"login_inputs"},anasayfaButton:{style:{buttonManifest:"default"},title:"Anasayfaya Git"},eDevletGirisButton:{title:"E-Devlet Girişi",style:{buttonManifest:"info"},visible:!1},panel14:{panelType:"btnGroup",layout:"CSC-HORIZONTAL",style:{textAlign:"center",margin:"16px"}}}},this.CSS=".login_inputs { width: 400px; margin: auto;}.login_inputs .go_to_homepage { padding: 0 8px; display: inline-block;}",this.Business=function(){var loginmode="",logintur="",in_dev=!1,panel=null,panel4=null,img=null,title=null,loginInputs=null,userinfo=null,userid=null,sifre=null,btnPanel=null,anasayfaButton=null,girisBtn=null,panel14=null,eDevletGirisButton=null;this.$$oc=function(n,i){window.z=i,eval(n+"=window.z;")},this.$$destroy=function(){this.panel=null,this.panel4=null,this.img=null,this.title=null,this.loginInputs=null,this.userinfo=null,this.userid=null,this.sifre=null,this.btnPanel=null,this.anasayfaButton=null,this.girisBtn=null,this.panel14=null,this.eDevletGirisButton=null},this.init=function(){panel=BFEngine.get("panel",this),panel4=BFEngine.get("panel.panel4",this),img=BFEngine.get("panel.panel4.img",this),title=BFEngine.get("panel.title",this),loginInputs=BFEngine.get("loginInputs",this),userinfo=BFEngine.get("loginInputs.userinfo",this),userid=BFEngine.get("loginInputs.userinfo.userid",this),sifre=BFEngine.get("loginInputs.userinfo.sifre",this),btnPanel=BFEngine.get("loginInputs.btnPanel",this),anasayfaButton=BFEngine.get("loginInputs.btnPanel.anasayfaButton",this),girisBtn=BFEngine.get("loginInputs.btnPanel.girisBtn",this),panel14=BFEngine.get("loginInputs.panel14",this),eDevletGirisButton=BFEngine.get("loginInputs.panel14.eDevletGirisButton",this),this.$CS$.bindings=[{on:"girisBtn",event:"selected",f:function(n){BFEngine.a();try{var e=this;this.devGirisKontrol()&&doLogin(e)}finally{BFEngine.r()}}},{on:"anasayfaButton",event:"selected",f:function(n){BFEngine.a();try{window.location="/index.jsp"}finally{BFEngine.r()}}},{on:"loginInputs",event:"onEnterPressed",f:function(n){BFEngine.a();try{var e=this;this.devGirisKontrol()&&doLogin(e)}finally{BFEngine.r()}}}];for(var i=0;i").html(msg).css("text-align", "center"); var popup = new CSSimplePopup($msgDiv, config); popup.open(); } catch (e) { console.error(e); alert(msg); } }; } }