public XDocument CreateFileDataXML() { XDocument xDoc = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement("HN_TTBN", new XAttribute("Id", Id.ToString()), new XAttribute("MaBN", MaBN), new XElement("ThongTinCoBan", new XElement("HoVaTen", HoVaTen), new XElement("NgaySinh", NgaySinh.ToString("dd-MM-yyyy")), new XElement("SoDienThoai", SoDienThoai), new XElement("Email", Email), new XElement("QuocTichID", QuocTichID), new XElement("DanToc", DanToc), new XElement("Tinh_ThanhPho", Tinh_ThanhPho), new XElement("Quan_Huyen", Quan_Huyen), new XElement("SoCMND", SoCMND), new XElement("NgayCap", NgayCap.ToString("dd-MM-yyyy")), new XElement("DiaChiNoiCap", DiaChiNoiCap), new XElement("NguyenQuan", NguyenQuan)), new XElement("FPBlob", new XElement("VT_CaiPhai", VT_CaiPhai), new XElement("VT_CaiTrai", VT_CaiTrai), new XElement("VT_TroPhai", VT_TroPhai), new XElement("VT_TroTrai", VT_TroTrai)), new XElement("FPIma", new XElement("VT_CaiPhai_HinhAnh", VT_CaiPhai_HinhAnh), new XElement("VT_CaiTrai_HinhAnh", VT_CaiTrai_HinhAnh), new XElement("VT_TroPhai_HinhAnh", VT_TroPhai_HinhAnh), new XElement("VT_TroTrai_HinhAnh", VT_TroTrai_HinhAnh)), new XElement("FlagAllowAddPattern", FlagAllowAddPattern), new XElement("NgayTao", NgayTao.ToString("dd-MM-yyyy")) )); return(xDoc); }
private PhieuTamVang GetFromReader(SqlDataReader reader) { PhieuTamVang ptv = new PhieuTamVang(); ptv.LyDo = reader["LyDo"].ToString(); ptv.Ma = int.Parse(reader["Ma"].ToString()); ptv.MaNguoiKhaiBao = int.Parse(reader["MaNguoiKhaiBao"].ToString()); ptv.TenNguoiKhaiBao = reader["TenNguoiKhaiBao"].ToString(); ptv.NguoiCap = reader["NguoiCap"].ToString(); ptv.NoiCap = reader["NoiCap"].ToString(); ptv.NoiTamTru = reader["NoiTamTru"].ToString(); string ThoiGianBatDau, ThoiGianKetThuc, NgayCap; ThoiGianBatDau = reader["ThoiGianBatDau"].ToString(); ThoiGianKetThuc = reader["ThoiGianKetThuc"].ToString(); NgayCap = reader["NgayCap"].ToString(); if (!string.IsNullOrEmpty(ThoiGianBatDau.Trim())) { ptv.ThoiGianBatDau = DateTime.Parse(ThoiGianBatDau); } if (!string.IsNullOrEmpty(ThoiGianKetThuc.Trim())) { ptv.ThoiGianKetThuc = DateTime.Parse(ThoiGianKetThuc); } if (!string.IsNullOrEmpty(NgayCap.Trim())) { ptv.NgayCap = DateTime.Parse(NgayCap); } return(ptv); }
public XDocument CreateFileDataXML() { XDocument xDoc = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement("HT_TTBN", new XAttribute("Id", Id.ToString()), new XAttribute("MaBN", MaBN), new XElement("ThongTinCoBan", new XElement("HoVaTen", HoVaTen), new XElement("NgaySinh", NgaySinh.ToString("dd-MM-yyyy")), new XElement("SoDienThoai", SoDienThoai), new XElement("Email", Email), new XElement("TrinhDoHocVan", TrinhDoHocVan), new XElement("CongViec", CongViec), new XElement("QuocTichID", QuocTichID), new XElement("DanToc", DanToc), new XElement("Tinh_ThanhPho", Tinh_ThanhPho), new XElement("Quan_Huyen", Quan_Huyen), new XElement("SoCMND", SoCMND), new XElement("NgayCap", NgayCap.ToString("dd-MM-yyyy")), new XElement("DiaChiNoiCap", DiaChiNoiCap), new XElement("NguyenQuan", NguyenQuan)), new XElement("ThongTinKetHon", new XElement("DaLapGiaDinh", DaLapGiaDinh), new XElement("DaCoCon", DaCoCon), new XElement("SoCon", SoCon), new XElement("ThoiDiemVoMangThai", ThoiDiemVoMangThai), new XElement("TuoiCoConGanNhat", TuoiCoConGanNhat)), new XElement("ThongTinSucKhoe", new XElement("TrangThaiSucKhoe", TrangThaiSucKhoe), new XElement("TieuSuBenh", TieuSuBenh), new XElement("TieuSuBenhGiaDinh", TieuSuBenhGiaDinh)), new XElement("FPBlob", new XElement("VT_CaiPhai", VT_CaiPhai), new XElement("VT_CaiTrai", VT_CaiTrai), new XElement("VT_TroPhai", VT_TroPhai), new XElement("VT_TroTrai", VT_TroTrai)), new XElement("FPIma", new XElement("VT_CaiPhai_HinhAnh", VT_CaiPhai_HinhAnh), new XElement("VT_CaiTrai_HinhAnh", VT_CaiTrai_HinhAnh), new XElement("VT_TroPhai_HinhAnh", VT_TroPhai_HinhAnh), new XElement("VT_TroTrai_HinhAnh", VT_TroTrai_HinhAnh)), new XElement("FlagAllowAddPattern", FlagAllowAddPattern), new XElement("NgayTao", NgayTao.ToString("dd-MM-yyyy")) )); return(xDoc); }
public XDocument CreateFileDataXML() { XDocument xDoc = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement("HT_NQH", new XAttribute("Id", Id.ToString()), new XAttribute("MaBN", MaBN), new XElement("HoVaTen", HoVaTen), new XElement("NgaySinh", NgaySinh.ToString("dd-MM-yyyy")), new XElement("Email", Email), new XElement("SoCMND", SoCMND), new XElement("NgayCap", NgayCap.ToString("dd-MM-yyyy")), new XElement("NguyenQuan", NguyenQuan), new XElement("DiaChiNoiCap", DiaChiNoiCap), new XElement("SoDienThoai", SoDienThoai), new XElement("NgayTao", NgayTao.ToString("dd-MM-yyyy")))); return(xDoc); }
public virtual XDocument CreateFileDataXML() { XDocument xDoc = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement("HT_NVD", new XAttribute("Id", Id.ToString()), new XAttribute("MaBN", MaBN), new XElement("HoVaTen", HoVaTen), new XElement("NgaySinh", NgaySinh.ToString("dd-MM-yyyy")), new XElement("Email", Email), new XElement("SoCMND", SoCMND), new XElement("NgayCap", NgayCap.ToString("dd-MM-yyyy")), new XElement("NguyenQuan", NguyenQuan), new XElement("DiaChiNoiCap", DiaChiNoiCap), new XElement("SoDienThoai", SoDienThoai), new XElement("Tinh_ThanhPho", Tinh_ThanhPho), new XElement("Quan_Huyen", Quan_Huyen), new XElement("QuanHeVoiNguoiHien", QuanHeVoiNguoiHien), new XElement("GhiChu", GhiChu), new XElement("NgayTao", NgayTao.ToString("dd-MM-yyyy")))); return(xDoc); }