コード例 #1
0
 protected void BtnDeptSta_Click(object sender, EventArgs e)
 {
     // 获得学院统计情况
     if (ddlDepartment.SelectedValue != "null")
     {
         // 调用逻辑查询统计情况
         gv.DataSource = finSrv.GetDepartmentStatistics(ddlDepartment.SelectedItem.Text);
         gv.DataBind();
         lbMessage.Text = "";
     }
     else
     {
         lbMessage.Text = "请选择学院";
     }
 }