Ejemplo n.º 1
0
    // 更新其他统计信息显示表
    protected void GridOtherBind(string type)
    {
        switch (type)
        {
        case "dept":
            gvOtherShow.DataSource = finSrv.GetDepartmentTuition(ddlDepartment.SelectedItem.Text);
            gvOtherShow.DataBind();
            break;

        case "spec":
            gvOtherShow.DataSource = finSrv.GetSpecilityTuition(ddlSpeciality.SelectedItem.Text);
            gvOtherShow.DataBind();
            break;

        case "clas":
            gvOtherShow.DataSource = finSrv.GetClassTuition(ddlClass.SelectedItem.Text);
            gvOtherShow.DataBind();
            break;

        case "term":
            gvOtherShow.DataSource = finSrv.GetTermTuition(ddlTerm.SelectedValue);
            gvOtherShow.DataBind();
            break;

        case "studNo":
            gvOtherShow.DataSource = finSrv.GetStudentTuitionByStudNo(tbSearch.Text.Trim());
            gvOtherShow.DataBind();
            break;

        case "studName":
            gvOtherShow.DataSource = finSrv.GetStudentTuitionByName(tbSearch.Text.Trim());
            gvOtherShow.DataBind(); break;
        }
    }