Пример #1
0
        //public DataTable Get(DM_LopInfo pDM_LopInfo)
        //{
        //    using (var client = new UnimOsServiceClient())
        //    {
        //        return ConvertList.ToDataTable<DM_LopInfo>(client.cDDM_Lop_Get(GlobalVar.MaXacThuc, pDM_LopInfo));
        //    }
        //}

        //public string GetTenLop(int DM_LopID)
        //{
        //    oDM_LopInfo = new DM_LopInfo();
        //    oDM_LopInfo.DM_LopID = DM_LopID;
        //    DataTable dt = Get(oDM_LopInfo);
        //    if (dt.Rows.Count > 0)
        //        return dt.Rows[0]["TenLop"].ToString();

        //    return "";
        //}

        public DataTable GetLopGop(DM_LopInfo pDM_LopInfo, int IDDM_MonHoc, string NamHoc)
        {
            using (var client = new UnimOsServiceClient())
            {
                return(ConvertList.ToDataTable <sp_DM_Lop_GetLopGopResult>(client.cDDM_Lop_GetLopGop(GlobalVar.MaXacThuc, pDM_LopInfo, IDDM_MonHoc, NamHoc)));
            }
        }