Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }