Esempio n. 1
0
    private IBaseControl Base()
    {
        IBaseControl obj    = null;
        Cookie       Cookie = new Cookie();

        Enumerations.PageType CookiePageType = (Enumerations.PageType)(int.Parse(Cookie.Read(EnumUtil.Cookies.PageType)));
        if (CookiePageType == Enumerations.PageType.Company)
        {
            obj = new BaseCompany();
        }
        else if (CookiePageType == Enumerations.PageType.Employee)
        {
            obj = new BaseEmployee();
        }
        else
        {
            Util.GoToEntryPage(this.Response);
        }
        return(obj);
    }
Esempio n. 2
0
 public static DataTable GetPageAndMemberDetailBySubjectdIDAndPageTypeID(int SubjectID, Enumerations.PageType PageType, int PageCategoryID)
 {
     return(BINROTA.DAL.Pages.GetPageAndMemberDetailBySubjectdIDAndPageTypeID(SubjectID, (int)PageType, PageCategoryID));
 }