Select a Background Color

	
                                        

                                            var fn = function () {
                                                
                                                AsyncWidgets.user.isLogged({
                                                    callBack: function (isLogged) {
                                                        if (isLogged) {
                                                            //****Enabled Session Resume Option On Refresh if User Logged In*****//
                                                            $(document).timeout();
                                                            //****End****//

                                                            //****Load Proxy User On Refresh if User Logged In*****//
                                                            var f = AsyncWidgets.get('frmMenu_Header');
                                                            f.LoadCombo(f, $('[argumentid="ProxyUsers"]', f.el));
                                                            f.on('onComboFilled', function (cf) {
                                                                if ($(cf.combo).attr('argumentid') == "ProxyUsers")
                                                                    $('option:first', cf.combo).remove();
                                                            });
                                                            //****End****//
                                                        }
                                                    }
                                                });


                                                $('[argumentid="UserName"]', t.el).focus();

                                                $('[argumentid="UserName"],[argumentid="UserPassword"]', t.el).keyup(function () {
                                                    if (!!t.msg) t.msg.hide();
                                                });
                                                t.login = function (t, cf, btn) {
                                                    var t = this;
                                                    if (!!t.msg) t.msg.hide();
                                                    var cf = decJSON($(btn).attr('conf'));
                                                    if (!t.validator.isValid()) {
                                                        t.showInvalid(t);
                                                        return false;
                                                    }
                                                    var inv = new AsyncWidgets.RAInvoker();
                                                    inv.on('onSuccess', function (res) {
                                                        debugger;;
                                                        var res = decJSON(res);
                                                        if (res.status == 'OK') {
                                                            t.hide();
                                                            if (res.Response.Authenticated) {
                                                                var arRoles = res.Response.Roles.split(',');

                                                                if (arRoles.length) {
                                                                    for (var i = 0; i < arRoles.length; i++) {
                                                                        //if(arRoles[i])
                                                                        $('[displayroles*=' + arRoles[i] + ']').show();
                                                                    }
                                                                }
                                                                AsyncWidgets.user.conf = res.Response.Conf;
                                                                var frmMH = AsyncWidgets.get('frmMenu_Header').show(); //LoggedUser
                                                                $('.LoggedUser', frmMH.el).html(res.Response.Name);
                                                                
                                                                if (!window.StartupWidgetId ) {
                                                                    StartupWidgetId = "frmInbox";
                                                                }
                                                                else if (!AsyncWidgets.has(StartupWidgetId)) {
                                                                    StartupWidgetId = "frmInbox";
                                                                }

                                                                AsyncWidgets.get(StartupWidgetId).hide();
                                                                AsyncWidgets.get(StartupWidgetId).show();

                                                                AsyncWidgets.user.login();

                                                                //****Enabled Session Resume Option On Log In*****//
                                                                $(document).timeout();
                                                                //****End****//

                                                                //****Load Proxy User On Log In*****//
                                                                var f = AsyncWidgets.get('frmMenu_Header');
                                                                f.LoadCombo(f, $('[argumentid="ProxyUsers"]', f.el));
                                                                f.on('onComboFilled', function (cf) {
                                                                    if ($(cf.combo).attr('argumentid') == "ProxyUsers")
                                                                        $('option:first', cf.combo).remove();
                                                                });
                                                                //****End****//

                                                            }
                                                            else {

                                                                t.show();
                                                                var txt = $('[argumentid="UserName"]', t.el), pos = txt.offset(),
                                                                    msg = $('<div class="wrongpassword tmp_rtxt" style="background:#73ABCB;position:absolute;display:none;color:white;font-weight:bold;padding-top:2px;padding-bottom:2px;padding-right:10px;padding-left:10px;">Invalid User ID or Password!</div>');
                                                                if (!t.msg) {
                                                                    $('body').append(msg);
                                                                    t.msg = msg;
                                                                }
                                                                t.msg.css({ left: pos.left, top: pos.top + 24 }).show('fast');

                                                                if (!t.hideDT) t.hideDT = new Ext.util.DelayedTask(function () {
                                                                    t.msg.hide('fast');
                                                                });
                                                                t.hideDT.delay(3000);

                                                                //alert('Unable to logged in!');
                                                            }
                                                        }
                                                        else {
                                                            //$('.wrongpassword', t.el).html('Unable to login, contact system administrator!');
                                                            //alert('Unable to logged in!');
                                                        }

                                                        $(t.el).unmask();
                                                        //$('body').unmask();
                                                    });
                                                    inv.on('onFailure', function (res) {
                                                        $(t.el).unmask();
                                                        //$('body').unmask();
                                                        //$('.wrongpassword', t.el).html('Connection Error, contact system administrator!');
                                                        //alert('Problem occured while connection to web server');
                                                    });
                                                    t.$el.mask('Please wait while loading ...');
                                                    //$('body').mask('Please wait while loading ...');
                                                    ServiceInfo = getForm(t.el, null, null);
                                                    //debugger;
                                                    inv.invokeRA({
                                                        params: ["ActorId", cf.ActorId, "ActionId", cf.ActionId, "ServiceInfo", ServiceInfo]
                                                    });

                                                };
                                            };
                                        
                                    
Home
User ID:
Password:
Terms of Use |  Privacy Policy
Session Timed Out or Logged Out Successfully

Thank you for using the system, this page will be redirected to home page in