コード例 #1
0
        public DataTable TimPhiTheoThang(DateTime Ngay)
        {
            var dh = from p in dbs.F_TimPhiThang(Ngay)
                     select p;

            if (dh != null)
            {
                SqlCommand     cmd = (SqlCommand)dbs.GetCommand(dh);
                DataTable      dt  = new DataTable();
                SqlDataAdapter da  = new SqlDataAdapter(cmd);
                da.Fill(dt);
                return(dt);
            }
            else
            {
                return(null);
            }
        }