Example #1
0
    public static String GetThemeById(string pIdTheme)
    {
        ClsLogistic log      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        return(DataJSon.fGetJson(log.getThemeById(pIdTheme)));
    }
Example #2
0
    public static String fGetExistUserNameDocument(string pDocumentTypeId, string pDni, string pUserName)
    {
        ClsLogistic cls  = new ClsLogistic();
        ClsData     data = new ClsData();

        return(cls.fGetExistUserNameDocument(pDocumentTypeId, pDni, pUserName).ToString());
    }
Example #3
0
    public static String GetProfiles()
    {
        ClsLogistic user     = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        return(DataJSon.fGetJson(user.getComboProfileActive()));
    }
Example #4
0
    public static String fGetExistuserWithProfile(string pProfileId)
    {
        ClsLogistic cls  = new ClsLogistic();
        ClsData     data = new ClsData();

        return(cls.fGetExistuserWithProfile(pProfileId).ToString());
    }// fin de la funcion
Example #5
0
    public static String LoadPagesMenu()
    {
        ClsLogistic cls      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        return(DataJSon.fGetJson(cls.getMenuPages()));
    }
Example #6
0
    public static String LoadProfileMenu(string pProfile)
    {
        ClsLogistic user = new ClsLogistic();
        ClsData     data = new ClsData();

        return(data.fGetJson(user.getMenuByProfile(pProfile)));
    }
Example #7
0
    public static String Crud_Profiles(int pType, string pProfileId, string pProfile, string xDetail)
    {
        ClsLogistic user = new ClsLogistic();
        ClsData     data = new ClsData();

        return(user.CRUD_PROFILE_MENU(pType, pProfileId, pProfile, xDetail));
    }
Example #8
0
    public static String GetComboProfiles()
    {
        ClsLogistic user = new ClsLogistic();
        ClsData     data = new ClsData();

        return(data.fGetJson(user.getComboProfile()));
    }
Example #9
0
    public static String GetUser(String userName)
    {
        ClsLogistic log      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        bool isAdmin = true;

        return(DataJSon.fGetJson(log.getUsers(isAdmin, userName)));
    }
Example #10
0
    public static String LoadMenu()
    {
        MembershipUser currentUser = Membership.GetUser();
        string         user        = currentUser.UserName.ToString();

        ClsLogistic cls      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        return(DataJSon.fGetJson(cls.getMenu(user)));
    }
Example #11
0
    public static String GetGridData()
    {
        ClsLogistic log      = new ClsLogistic();
        ClsData     DataJSon = new ClsData();

        MembershipUser currentUser = Membership.GetUser();
        string         user        = currentUser.UserName.ToString();
        bool           isAdmin     = HttpContext.Current.Session["Profile"].ToString() == "1" ? false : true;

        return(DataJSon.fGetJson(log.getUsers(isAdmin, user)));
    }
Example #12
0
    private void initSessionVariables(MembershipUser user)
    {
        ClsLogistic cls = new ClsLogistic();

        System.Data.DataTable dt = cls.getUserInfo(user.UserName);
        Session["User"]      = dt.Rows[0]["UserName"].ToString();
        Session["Profile"]   = dt.Rows[0]["PROFILE_ID"].ToString();
        Session["LegalName"] = dt.Rows[0]["NAME"].ToString() + " " + dt.Rows[0]["LAST_NAME"].ToString();

        lblUser01.InnerHtml = user.UserName;
        lblUser02.InnerHtml = user.UserName + "<small>" + dt.Rows[0]["PROFILE"].ToString() + "</small>";
        lblUser03.InnerHtml = user.UserName;
        hdUserName.Value    = user.UserName;
    }
Example #13
0
    public static String CRUD_USERS(String xType, String xUser, String xPassword, String xEmail, String xProfile, String xCellPhone,
                                    String xName, String xLastName, String xDocumentType, String xDni)
    {
        ClsLogistic    log         = new ClsLogistic();
        MembershipUser currentUser = Membership.GetUser();
        string         user        = currentUser.UserName.ToString();

        if ((int.Parse(xType) == 3) && (xUser == user))
        {
            return("No se puede eliminar el mismo usuario");
        }


        return(log.CRUD_USER(int.Parse(xType), xUser, xPassword, xEmail, xProfile, xCellPhone, xName, xLastName, int.Parse(xDocumentType), xDni));
    }
Example #14
0
    public static String fGetExistUserName(String oldUserName, String newUserName)
    {
        ClsLogistic log = new ClsLogistic();

        return(log.fGetExistUserName(oldUserName, newUserName).ToString());
    }