Ejemplo n.º 1
0
        public BThongTinBao toCreate()
        {
            BThongTinBao result = new BThongTinBao();
            result.Id = string.IsNullOrEmpty(this.Id) ? Guid.NewGuid().ToString() : this.Id;
            result.MaBao = this.MaBao;
            result.TenBao = this.TenBao;
            result.MaToaSoan = this.MaToaSoan;
            result.LoaiAnPham = this.LoaiAnPham;
            result.ParentId = this.ParentId;
            result.GiaBia = Convert.ToDouble(this.GiaBia);
            result.GhiChu = this.GhiChu;
            result.SoTrang = Convert.ToInt32(this.SoTrang);
            result.TrongLuong = Convert.ToDouble(this.TrongLuong);
            result.KichThuoc = this.KichThuoc;
            result.GiayPhep = this.GiayPhep;
            result.BaoNgoaiVan = this.BaoNgoaiVan;
            result.BaoCongIch = this.BaoCongIchNgoaiCongIch;
            result.BaoTrongMucLuc = this.BaoTrongMucLuc;
            result.BaoTrungUongDiaPhuong = this.BaoTrungUongDiaPhuong;
            result.CoThue = this.CoThue;
            result.MucThue = Convert.ToDouble(this.MucThue);
            result.CreateBy = this.userId;
            result.CreateDate = this.CreateDate;
            result.UnitCode = this.UnitCode;
            result.Status = (int)Enums.RecordStatusCode.active;

            return result;
        }
Ejemplo n.º 2
0
 public void changeEdit(BThongTinBao bThongTinBao)
 {
     bThongTinBao.MaBao = this.MaBao;
     bThongTinBao.TenBao = this.TenBao;
     bThongTinBao.MaToaSoan = this.MaToaSoan;
     bThongTinBao.LoaiAnPham = this.LoaiAnPham;
     bThongTinBao.ParentId = this.ParentId;
     bThongTinBao.GiaBia = Convert.ToDouble(this.GiaBia);
     bThongTinBao.GhiChu = this.GhiChu;
     bThongTinBao.SoTrang = Convert.ToInt32(this.SoTrang);
     bThongTinBao.TrongLuong = Convert.ToDouble(this.TrongLuong);
     bThongTinBao.KichThuoc = this.KichThuoc;
     bThongTinBao.GiayPhep = this.GiayPhep;
     bThongTinBao.BaoNgoaiVan = this.BaoNgoaiVan;
     bThongTinBao.BaoCongIch = this.BaoCongIchNgoaiCongIch;
     bThongTinBao.BaoTrongMucLuc = this.BaoTrongMucLuc;
     bThongTinBao.BaoTrungUongDiaPhuong = this.BaoTrungUongDiaPhuong;
     bThongTinBao.CoThue = this.CoThue;
     bThongTinBao.MucThue = Convert.ToDouble(this.MucThue);
     bThongTinBao.UnitCode = this.UnitCode;
     bThongTinBao.ModifyBy = this.userId;
     bThongTinBao.ModifyDate = DateTime.Now;
 }