コード例 #1
0
        public XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("HT_TDD", new XAttribute("Id", Id.ToString()), new XAttribute("MaBN", MaBN),
                             new XElement("MauSac", MauSac),
                             new XElement("TheTich", TheTich),
                             new XElement("LyGiai", LyGiai),
                             new XElement("PH", PH),
                             new XElement("MatDo", MatDo),
                             new XElement("TongSoTinhTrung", TongSoTinhTrung),
                             new XElement("TiLeTinhTrungSong", TiLeTinhTrungSong),
                             new XElement("DiDongTienToi", DiDongTienToi),
                             new XElement("DiDongKhongTienToi", DiDongKhongTienToi),
                             new XElement("BatDong", BatDong),
                             new XElement("HinhThatBinhThuong", HinhThaiBinhThuong),
                             new XElement("HinhThaiBatThuong_Dau", HinhThaiBatThuong_Dau),
                             new XElement("HinhThaiBatThuong_Co", HinhThaiBatThuong_Co),
                             new XElement("HinhThaiBatThuong_Duoi", HinhThaiBatThuong_Duoi),
                             new XElement("TeBaoHinhTron", TeBaoHinhTron),
                             new XElement("GhiChu", GhiChu),
                             new XElement("NgayTao", NgayTao.ToString("dd-MM-yyyy"))
                             ));

            return(xDoc);
        }
コード例 #2
0
ファイル: DTO_ChiTietHD.cs プロジェクト: tethien2010/NhaHang
 public DTO_ChiTietHD()
 {
     ID_CT           = 0;
     ID_HD           = 0;
     ID_MA           = 0;
     DonGia          = 0.0;
     NgayTao         = Convert.ToDateTime(NgayTao.ToString("dd/MM/yyyy"));
     ThoiGianBatDau  = Convert.ToDateTime(ThoiGianBatDau.ToString("HH:mm"));
     ThoiGianKetThuc = Convert.ToDateTime(ThoiGianKetThuc.ToString("HH:mm"));
     GhiChu          = "";
     SoLuong         = 0;
     ThanhTien       = 0;
 }
コード例 #3
0
        public override XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("HN_KQXN", new XAttribute("Id", Id.ToString()), new XAttribute("MaBN", MaBN),
                             new XElement("NhomMau", NhomMau),
                             new XElement("HIV", HIV),
                             new XElement("BW", BW),
                             new XElement("HBsAg", HBsAg),
                             new XElement("AntiHCV", AntiHCV),
                             new XElement("SoLanKiemTra", SoLanKiemTra),
                             new XElement("GhiChu", GhiChu),
                             new XElement("NgayTao", NgayTao.ToString("dd-MM-yyyy")))
                );

            return(xDoc);
        }
コード例 #4
0
        public override XDocument CreateFileDataXML()
        {
            XDocument xDoc = new XDocument(
                new XDeclaration("1.0", "utf-8", "yes"),
                new XElement("HN_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);
        }