Exemplo n.º 1
0
    public static DateTime?Return_Last_Login(int account_id)
    {
        DateTime?last_login = null;

        tblAccount a = ModelLayer.GetAccount(account_id);

        last_login = a.dLastUpdated;

        return(last_login);
    }
Exemplo n.º 2
0
    public static int Login(string username, string password)
    {
        int        accound_id = 0;
        tblAccount a          = ModelLayer.GetAccount(username, password);

        if (a != null)
        {
            accound_id = a.iAccount;
        }
        return(accound_id);
    }
Exemplo n.º 3
0
    private void Load_FieldSet(int account_id)
    {
        tblAccount a          = ModelLayer.GetAccount(account_id);
        int        profile_id = a.iProfile;

        label_full_name.Text = BusinessLayer.Return_Full_Name(profile_id);

        StringBuilder sb = new StringBuilder();

        sb.Append("<span class='f_1 bold white italic'>Last Login: "******"</span>");
        lit_login_msg.Text = sb.ToString();
    }
Exemplo n.º 4
0
    private void LoadProfile(int iAccount)
    {
        if (iAccount != 0)
        {
            tblAccount     a  = ModelLayer.GetAccount(iAccount);
            tblProfile     p  = ModelLayer.GetProfile(a.iProfile);
            tblAccountType at = ModelLayer.GetAccountType(a.iAccountType);

            label_name.Text         = p.vLastname + ", " + p.vFirstname;
            label_country.Text      = p.vCountry;
            label_account_type.Text = at.vAccountType;
            label_age.Text          = p.vAge;
            label_sex.Text          = p.vSex;
        }
        else
        {
            label_name.Text         = "Admin";
            label_country.Text      = "Admin";
            label_account_type.Text = "Admin";
            label_age.Text          = "Admin";
            label_sex.Text          = "Admin";
        }
    }