public static String GetThemeById(string pIdTheme) { ClsLogistic log = new ClsLogistic(); ClsData DataJSon = new ClsData(); return(DataJSon.fGetJson(log.getThemeById(pIdTheme))); }
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()); }
public static String GetProfiles() { ClsLogistic user = new ClsLogistic(); ClsData DataJSon = new ClsData(); return(DataJSon.fGetJson(user.getComboProfileActive())); }
public static String fGetExistuserWithProfile(string pProfileId) { ClsLogistic cls = new ClsLogistic(); ClsData data = new ClsData(); return(cls.fGetExistuserWithProfile(pProfileId).ToString()); }// fin de la funcion
public static String LoadPagesMenu() { ClsLogistic cls = new ClsLogistic(); ClsData DataJSon = new ClsData(); return(DataJSon.fGetJson(cls.getMenuPages())); }
public static String LoadProfileMenu(string pProfile) { ClsLogistic user = new ClsLogistic(); ClsData data = new ClsData(); return(data.fGetJson(user.getMenuByProfile(pProfile))); }
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)); }
public static String GetComboProfiles() { ClsLogistic user = new ClsLogistic(); ClsData data = new ClsData(); return(data.fGetJson(user.getComboProfile())); }
public static String GetUser(String userName) { ClsLogistic log = new ClsLogistic(); ClsData DataJSon = new ClsData(); bool isAdmin = true; return(DataJSon.fGetJson(log.getUsers(isAdmin, userName))); }
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))); }
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))); }
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; }
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)); }
public static String fGetExistUserName(String oldUserName, String newUserName) { ClsLogistic log = new ClsLogistic(); return(log.fGetExistUserName(oldUserName, newUserName).ToString()); }