Example #1
0
        public CauHinhSanPham(float khoCatRong, float khoCatCao, float tranLeTren, float tranLeDuoi,
                              float tranLeTrong, float tranLeNgoai, float leTren,
                              float leDuoi, float leTrong, float leNgoai, int idBaiIn,
                              PhuongPhapInS phuongPhapIn, int idMayIn, string khoMayIn)
        {
            this.KhoCatRong = khoCatRong;
            this.KhoCatCao  = khoCatCao;

            this.TranLeTren  = tranLeTren;
            this.TranLeDuoi  = tranLeDuoi;
            this.TranLeTrong = tranLeTrong;
            this.TranLeNgoai = tranLeNgoai;

            this.LeTren  = leTren;
            this.LeDuoi  = leDuoi;
            this.LeTrong = leTrong;
            this.LeNgoai = leNgoai;
            this.IdBaiIn = idBaiIn;

            this.IdMayIn      = idMayIn;
            this.PhuongPhapIn = phuongPhapIn;

            this.KhoMayIn = khoMayIn;
            //vấn đề id
            _lastIdCauHinh += 1;
            IDCauHinh       = _lastIdCauHinh;
        }
Example #2
0
        public MucGiaIn(PhuongPhapInS phuongPhapIn, int soTrangIn, int idBaiIn, int idMayInOrToIn,
                        decimal tienIn, string giaTBTrang, int idHangKH, int soToChay, int soMatIn)
        {
            this.PhuongPhapIn    = phuongPhapIn;
            this.SoTrangIn       = soTrangIn;
            this.TienIn          = tienIn;
            this.IdBaiIn         = idBaiIn;
            this.GiaTBTrangInfo  = giaTBTrang;
            this.IdMayIn         = idMayInOrToIn;
            this.IdHangKhachHang = idHangKH;
            this.SoToChay        = soToChay;
            this.SoMatIn         = soMatIn;

            //Tạo Id mới tăng dần
            _prevId += 1;
            this.ID  = _prevId;
        }