예제 #1
0
        /// <summary>
        /// 绑定被考评人信息到Grid
        /// </summary>
        private void bindEvaluatedToGrid()
        {
            string    exception = "";
            DataTable table     = new DataTable();
            string    depart    = Session["Depart"].ToString();

            if (EvaluationManagementCtrl.GetAllByDepart(ref table, depart, ref exception))
            {
                table            = dataTableFilter(table);
                Grid1.DataSource = table;
                Grid1.DataBind();
            }
            else
            {
                table.Clear();
                Grid1.DataSource = table;
                Grid1.DataBind();
            }
        }
예제 #2
0
        /// <summary>
        /// 绑定被考评人信息到Grid
        /// </summary>
        private void bindEvaluatedToGrid()
        {
            string    exception = "";
            DataTable table     = new DataTable();

            if (DropDownList1.SelectedValue == "所有部门")
            {
                if (EvaluationManagementCtrl.GetAll(ref table, ref exception))
                {
                    table            = dataTableFilter(table);
                    Grid1.DataSource = table;
                    Grid1.DataBind();
                }
                else
                {
                    table.Clear();
                    Grid1.DataSource = table;
                    Grid1.DataBind();
                }
            }
            else
            {
                string depart = DropDownList1.SelectedValue;
                if (EvaluationManagementCtrl.GetAllByDepart(ref table, depart, ref exception))
                {
                    table            = dataTableFilter(table);
                    Grid1.DataSource = table;
                    Grid1.DataBind();
                }
                else
                {
                    table.Clear();
                    Grid1.DataSource = table;
                    Grid1.DataBind();
                }
            }
        }