Esempio n. 1
0
        private bool LoadGrdGiao()
        {
            if (cmbPhuongThuc.Value == null)
            {
                return(false);
            }
            bool kiemtra = false;

            MTCSYT.SYS_Session session = (MTCSYT.SYS_Session)Session["SYS_Session"];
            int strMadviqly            = int.Parse(session.User.ma_dviqly);
            var lstGiao = db.db_DSDiemGiaoCanXacNhan(strMadviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""), int.Parse(cmbPhuongThuc.Value + "")).ToList();

            if (lstGiao.Count > 0)
            {
                kiemtra = true;
            }
            else
            {
                kiemtra = false;
            }
            grdGiao.DataSource = lstGiao;
            grdGiao.DataBind();

            grdSLGiao.DataSource = lstGiao;
            grdSLGiao.DataBind();
            return(kiemtra);
        }