Example #1
0
    protected void doBindDept()
    {
        Biz_Com_IF bizComIF = new Biz_Com_IF();


        DataTable DT     = new DataTable();
        string    option = this.searchOption.SelectedValue;


        Biz_Com_IF.GUBUN gubun;


        if (option.Equals("MATCH"))
        {
            gubun = Biz_Com_IF.GUBUN.MATCH;
        }
        else if (option.Equals("NOTMATCH"))
        {
            gubun = Biz_Com_IF.GUBUN.NOTMATCH;
        }
        else
        {
            gubun = Biz_Com_IF.GUBUN.TOTAL;
        }


        DT = bizComIF.Get_Diff_Dept_IF(gubun);


        this.lblRowCount.Text = DT.Rows.Count.ToString();

        this.ugrdDept.Visible    = true;
        this.ugrdDept.DataSource = DT;
        this.ugrdDept.DataBind();
    }
Example #2
0
    protected bool syncUSer()
    {
        Biz_Com_IF   bizComIF  = new Biz_Com_IF();
        SiteIdentity gUserInfo = (SiteIdentity)Context.User.Identity;

        bool Result = bizComIF.Sync_Emp_IF(gUserInfo.LoginID);

        return(Result);
    }
Example #3
0
    protected void doBindUser()
    {
        Biz_Com_IF bizComIF = new Biz_Com_IF();


        DataTable DT     = new DataTable();
        string    option = this.searchOption.SelectedValue;


        Biz_Com_IF.GUBUN gubun;

        if (option.Equals("MATCH"))
        {
            gubun = Biz_Com_IF.GUBUN.MATCH;
        }
        else if (option.Equals("NOTMATCH"))
        {
            gubun = Biz_Com_IF.GUBUN.NOTMATCH;
        }
        else
        {
            gubun = Biz_Com_IF.GUBUN.TOTAL;
        }



        int iTotalRows = bizComIF.Get_Diff_Emp_IF_Count(gubun);
        int iLastPage  = (int)Math.Ceiling((Double)iTotalRows / ugrdUser.DisplayLayout.Pager.PageSize);
        int iFirstRow  = (ugrdUser.DisplayLayout.Pager.CurrentPageIndex - 1) * ugrdUser.DisplayLayout.Pager.PageSize;
        int iLastRow   = ugrdUser.DisplayLayout.Pager.CurrentPageIndex * ugrdUser.DisplayLayout.Pager.PageSize;


        ViewState.Add("CurrentPageIndex", ugrdUser.DisplayLayout.Pager.CurrentPageIndex);
        ViewState.Add("PageCount", iLastPage);


        this.lblRowCount.Text = iTotalRows.ToString();


        DT = bizComIF.Get_Diff_Emp_IF(gubun, iFirstRow + 1, iLastRow);

        this.ugrdUser.Visible    = true;
        this.ugrdUser.DataSource = DT;
        this.ugrdUser.DataBind();
    }