private void LoadGrdNhan() { MTCSYT.SYS_Session session = (MTCSYT.SYS_Session)Session["SYS_Session"]; int strMadviqly = int.Parse(session.User.ma_dviqly); //List<CBDN.db_DSDiemNhanNVXacNhanResult> lstNhan = new List<CBDN.db_DSDiemNhanNVXacNhanResult>(); System.Data.Linq.ISingleResult <CBDN.db_DSDiemNhanNVXacNhanResult> lstNhan = null; System.Data.Linq.ISingleResult <CBDN.db_DSDiemGiaoNVXacNhanResult> lstGiao = null; if (cmbPhuongThuc.Value != null) { lstNhan = db.db_DSDiemNhanNVXacNhan(strMadviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""), int.Parse(cmbPhuongThuc.Value + "")); lstGiao = db.db_DSDiemGiaoNVXacNhan(strMadviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""), int.Parse(cmbPhuongThuc.Value + "")); } else { lstNhan = db.db_DSDiemNhanNVXacNhan(strMadviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""), 0); lstGiao = db.db_DSDiemGiaoNVXacNhan(strMadviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""), 0); } grdNhan.DataSource = lstNhan; grdNhan.DataBind(); grdGiao.DataSource = lstGiao; grdGiao.DataBind(); grdSanLuonghan.DataSource = lstNhan; grdSanLuonghan.DataBind(); grdSLGiao.DataSource = lstGiao; grdSLGiao.DataBind(); }