Example #1
0
    private void BindingGrid(int comp_id
                             , string est_id
                             , int estterm_ref_id
                             , int estterm_sub_id
                             , int dept_ref_id)
    {
        if (dept_ref_id == 0)
        {
            return;
        }

        Biz_Datas data = new Biz_Datas();

        DT_EST_DATA = data.GetData(COMP_ID
                                   , EST_ID
                                   , ESTTERM_REF_ID
                                   , ESTTERM_SUB_ID
                                   , ESTTERM_STEP_ID
                                   , 0
                                   , 0
                                   , 0
                                   , 0
                                   , YEAR_YN
                                   , MERGE_YN
                                   , OwnerType.Emp_User).Tables[0];

        Biz_EmpInfos empInfo = new Biz_EmpInfos();

        DataSet ds = empInfo.GetEmpByEstDeptID(dept_ref_id);

        UltraWebGrid1.DataSource = ds;
        UltraWebGrid1.DataBind();

        lblTotal.Text = ds.Tables[0].Rows.Count.ToString();
    }
Example #2
0
    private void BindEmpInfoList(int dept_ref_id)
    {
        Biz_EmpInfos empInfo = new Biz_EmpInfos();

        DataSet ds = empInfo.GetEmpByEstDeptID(dept_ref_id);

        UltraWebGrid1.DataSource = ds;
        UltraWebGrid1.DataBind();

        lblTotal.Text = ds.Tables[0].Rows.Count.ToString();
    }