public static ThuChiReport getFromReader(IDataReader rd) { var Item = new ThuChiReport(); if (rd.FieldExists("ma")) { Item.ma = (Guid)(rd["ma"]); } if (rd.FieldExists("sophieu")) { Item.sophieu = (String)(rd["sophieu"]); } if (rd.FieldExists("diengiai")) { Item.diengiai = (String)(rd["diengiai"]); } if (rd.FieldExists("thu_tk")) { Item.thu_tk = (Double)(rd["thu_tk"]); } if (rd.FieldExists("thu_tm")) { Item.thu_tm = (Double)(rd["thu_tm"]); } if (rd.FieldExists("thu_t")) { Item.thu_t = (Double)(rd["thu_t"]); } if (rd.FieldExists("chi_tk")) { Item.chi_tk = (Double)(rd["chi_tk"]); } if (rd.FieldExists("chi_tm")) { Item.chi_tm = (Double)(rd["chi_tm"]); } if (rd.FieldExists("chi_t")) { Item.chi_t = (Double)(rd["chi_t"]); } if (rd.FieldExists("tt_tk")) { Item.tt_tk = (Double)(rd["tt_tk"]); } if (rd.FieldExists("tt_tm")) { Item.tt_tm = (Double)(rd["tt_tm"]); } if (rd.FieldExists("tt_t")) { Item.tt_t = (Double)(rd["tt_t"]); } if (rd.FieldExists("sodu_tk")) { Item.sodu_tk = (Double)(rd["sodu_tk"]); } if (rd.FieldExists("sodu_tm")) { Item.sodu_tm = (Double)(rd["sodu_tm"]); } if (rd.FieldExists("sodu_t")) { Item.sodu_t = (Double)(rd["sodu_t"]); } if (rd.FieldExists("loaiquy")) { Item.loaiquy = (Int32)(rd["loaiquy"]); } if (rd.FieldExists("isthu")) { Item.isthu = (Boolean)(rd["isthu"]); } if (rd.FieldExists("isCandoi")) { Item.isCandoi = (Boolean)(rd["isCandoi"]); } if (rd.FieldExists("ngay")) { Item.ngay = (String)(rd["ngay"]); } if (rd.FieldExists("NguoiTao_Ten")) { Item.NguoiTao = (String)(rd["NguoiTao_Ten"]); } if (rd.FieldExists("NDTC_Ten")) { Item.NDTC_Ten = (String)(rd["NDTC_Ten"]); } Item._ThuChi = ThuChiDal.getFromReader(rd); return(Item); }
public override BaseEntity getFromReader(IDataReader rd) { return(ThuChiDal.getFromReader(rd)); }
public static XuatNhap getFromReader(IDataReader rd) { var Item = new XuatNhap(); if (rd.FieldExists("XN_ID")) { Item.ID = (Guid)(rd["XN_ID"]); } if (rd.FieldExists("XN_GH_ID")) { Item.GH_ID = (Guid)(rd["XN_GH_ID"]); } if (rd.FieldExists("XN_LOAI_ID")) { Item.LOAI_ID = (Guid)(rd["XN_LOAI_ID"]); } if (rd.FieldExists("XN_Ma")) { Item.Ma = (String)(rd["XN_Ma"]); } if (rd.FieldExists("XN_KH_ID")) { Item.KH_ID = (Guid)(rd["XN_KH_ID"]); } if (rd.FieldExists("XN_NgayHoaDon")) { Item.NgayHoaDon = (DateTime)(rd["XN_NgayHoaDon"]); } if (rd.FieldExists("XN_NhanVien")) { Item.NhanVien = (String)(rd["XN_NhanVien"]); } if (rd.FieldExists("XN_CongTienHang")) { Item.CongTienHang = (Double)(rd["XN_CongTienHang"]); } if (rd.FieldExists("XN_DienGiai")) { Item.DienGiai = (String)(rd["XN_DienGiai"]); } if (rd.FieldExists("XN_VAT")) { Item.VAT = (Double)(rd["XN_VAT"]); } if (rd.FieldExists("XN_ThanhToan")) { Item.ThanhToan = (Double)(rd["XN_ThanhToan"]); } if (rd.FieldExists("XN_ConNo")) { Item.ConNo = (Double)(rd["XN_ConNo"]); } if (rd.FieldExists("XN_ChietKhau")) { Item.ChietKhau = (Double)(rd["XN_ChietKhau"]); } if (rd.FieldExists("XN_NgayTao")) { Item.NgayTao = (DateTime)(rd["XN_NgayTao"]); } if (rd.FieldExists("XN_NguoiTao")) { Item.NguoiTao = (String)(rd["XN_NguoiTao"]); } if (rd.FieldExists("XN_NgayCapNhat")) { Item.NgayCapNhat = (DateTime)(rd["XN_NgayCapNhat"]); } if (rd.FieldExists("XN_NguoiCapNhat")) { Item.NguoiCapNhat = (String)(rd["XN_NguoiCapNhat"]); } if (rd.FieldExists("XN_GhiChu")) { Item.GhiChu = (String)(rd["XN_GhiChu"]); } if (rd.FieldExists("KH_Ten")) { Item.KH_Ten = (String)(rd["KH_Ten"]); } if (rd.FieldExists("LOAI_Ten")) { Item.LOAI_Ten = (String)(rd["LOAI_Ten"]); } if (rd.FieldExists("XN_KHO_ID")) { Item.KHO_ID = (Guid)(rd["XN_KHO_ID"]); } if (rd.FieldExists("XN_KHO_Ten")) { Item.KHO_Ten = (String)(rd["XN_KHO_Ten"]); } if (rd.FieldExists("XN_Xuat")) { Item.Xuat = (Boolean)(rd["XN_Xuat"]); } if (rd.FieldExists("XN_TV_ID")) { Item.TVDV_ID = (Guid)(rd["XN_TVDV_ID"]); } if (rd.FieldExists("XN_DauKy")) { Item.DauKy = (Boolean)(rd["XN_DauKy"]); } if (rd.FieldExists("XN_NoiBo")) { Item.NoiBo = (Boolean)(rd["XN_NoiBo"]); } if (rd.FieldExists("XN_ChuyenDoi")) { Item.ChuyenDoi = (Boolean)(rd["XN_ChuyenDoi"]); } if (rd.FieldExists("XN_TuVanVien")) { Item.TuVanVien = (String)(rd["XN_TuVanVien"]); } Item._ThuChi = ThuChiDal.getFromReader(rd); return(Item); }