コード例 #1
0
ファイル: BaseControl.cs プロジェクト: jiqsaw/pikcv
    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);
    }
コード例 #2
0
ファイル: Pages.cs プロジェクト: jiqsaw/binrota
 public static DataTable GetPageAndMemberDetailBySubjectdIDAndPageTypeID(int SubjectID, Enumerations.PageType PageType, int PageCategoryID)
 {
     return(BINROTA.DAL.Pages.GetPageAndMemberDetailBySubjectdIDAndPageTypeID(SubjectID, (int)PageType, PageCategoryID));
 }