示例#1
0
 public WindowBanHang(Data.Transit transit, ControlLibrary.UCFloorPlan sodoban)
 {
     mTransit     = transit;
     mUCFloorPlan = sodoban;
     InitializeComponent();
     PhanQuyen();
 }
 public WindowThemQuyenNhanVien(Data.QUYEN quyen, Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOQuyenNhanVien = new Data.BOQuyenNhanVien(transit);
     mQuyen = quyen;
 }
 public UCXuLyKho(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     dtpThoiGian.SelectedDate = DateTime.Now;
     BOXuLyKho = new Data.BOXuLyKho(transit);
 }
示例#4
0
 public UCNhaCungCap(Data.Transit transit)
 {
     InitializeComponent();
     mTransit     = transit;
     BONhaCungCap = new Data.BONhaCungCap(mTransit);
     PhanQuyen();
 }
 public WindowCaiDatBan(Data.Transit transit)
 {
     InitializeComponent();
     BOCaiDatBan = new Data.BOCaiDatBan(transit);
     mTransit    = transit;
     btnHinh.SetTransit(transit);
 }
 public WindowThemKhuyenMai(Data.BOMenuKichThuocMon item, Data.Transit transit, Data.BOMenuKhuyenMai bOMenuKhuyenMai)
 {
     InitializeComponent();
     mTransit = transit;
     BOMenuKhuyenMai = bOMenuKhuyenMai;
     _Item = item;
 }
示例#7
0
 public WindowThemQuyenNhanVien(Data.QUYEN quyen, Data.Transit transit)
 {
     InitializeComponent();
     mTransit        = transit;
     BOQuyenNhanVien = new Data.BOQuyenNhanVien(transit);
     mQuyen          = quyen;
 }
 public WindowPhieuThuChi(Data.Transit transit, Data.BOThuChi bOThuChi, int loaiThuChiID)
 {
     InitializeComponent();
     mTransit = transit;
     LoaiThuChiID = loaiThuChiID;
     BOThuChi = bOThuChi;
 }
 public WindowBanHangChuyenBan(Data.Transit tran,ControlLibrary.UCFloorPlan uc)
 {
     mTransit = tran;
     mUCFloorPlan = uc;
     mBOChuyenBan = new Data.BOChuyenBan(mTransit);
     InitializeComponent();
 }
 public UCNhaCungCap(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BONhaCungCap = new Data.BONhaCungCap(mTransit);
     PhanQuyen();
 }
 public WindowBanHangChonBan(Data.Transit transit,bool isTachBan)
 {
     mIsTachBan = isTachBan;
     mTransit = transit;
     mBOTachGopBan = new Data.BOTachGopBan(mTransit);
     InitializeComponent();
 }
示例#12
0
 public WindowBanHangTheoGia(Data.Transit transit, Data.MENUKICHTHUOCMON ktm)
 {
     mTransit          = transit;
     mMENUKICHTHUOCMON = ktm;
     mBOMenuGia        = new Data.BOMenuGia(mTransit);
     InitializeComponent();
 }
示例#13
0
 public UCXuLyKho(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     dtpThoiGian.SelectedDate = DateTime.Now;
     BOXuLyKho = new Data.BOXuLyKho(transit);
 }
 public WindowBanHang(Data.Transit transit, ControlLibrary.UCFloorPlan sodoban)
 {
     mTransit = transit;
     mUCFloorPlan = sodoban;
     InitializeComponent();
     PhanQuyen();
 }        
 public WindowBanHangChonBan(Data.Transit transit, bool isTachBan)
 {
     mIsTachBan    = isTachBan;
     mTransit      = transit;
     mBOTachGopBan = new Data.BOTachGopBan(mTransit);
     InitializeComponent();
 }
 public WindowLoaiNhom(Data.Transit transit)
 {            
     InitializeComponent();
     mTransit = transit;
     uCTile.TenChucNang = "Cài đặt thông tin";
     uCTile.OnEventExit += new ControlLibrary.UCTile.OnExit(uCTile_OnEventExit);
 }
 public UCLichBieuKhongDinhKy(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOLichBieuKhongDinhKy = new Data.BOLichBieuKhongDinhKy(mTransit);
     PhanQuyen();
 }
 public UCSoDoBan(Data.Transit transit)
 {
     mTransit = transit;
     InitializeComponent();
     btnHinhDaiDien.SetTransit(transit);
     btnHinhSoDoBan.SetTransit(transit);
 }
示例#19
0
 public UCMayIn(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOMayIn = new Data.BOMayIn(mTransit);
     PhanQuyen();
 }
示例#20
0
 public PriceManager(Data.Transit transit, Data.KaraokeEntities kara)
 {
     mTransit          = transit;
     mKaraokeEntities  = kara;
     mQueryMenuLoaiGia = Data.BOMenuLoaiGia.GetAllLoaiGiaRun(mKaraokeEntities, mTransit.Ban);
     mListMenuGia      = new List <Data.BOMenuGia>();
 }
 public WindowBanHangTheoGia(Data.Transit transit,Data.MENUKICHTHUOCMON ktm)
 {
     mTransit = transit;
     mMENUKICHTHUOCMON = ktm;
     mBOMenuGia = new Data.BOMenuGia(mTransit);
     InitializeComponent();
 }
示例#22
0
 public UCMayIn(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOMayIn  = new Data.BOMayIn(mTransit);
     PhanQuyen();
 }
 public UCDanhSachKhuyenMai(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOMenuKhuyenMai = new Data.BOMenuKhuyenMai(mTransit);
     PhanQuyen();
 }
示例#24
0
 public UCNhapKho(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     mKaraokeEntities = new Data.KaraokeEntities();
     dtpThoiGian.SelectedDate = DateTime.Now;            
 }
 public WindowChuyenKho(Data.Transit transit,Data.BOChuyenKho chuyenKho,Data.KaraokeEntities kara)
 {
     InitializeComponent();
     mTransit = transit;
     mKaraokeEntities = kara;
     mBOChuyenKho = chuyenKho;
 }
 public WindowSoDoBan(Data.Transit tran)
 {
     mTransit = tran;
     InitializeComponent();
     ucTile.SetTransit(tran);
     ucTile.TenChucNang = "Sơ đồ bàn";
 }
 public UCLoaiGia(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOMenuLoaiGia = new Data.BOMenuLoaiGia(mTransit);
     PhanQuyen();
 }
 public void Init(Data.Transit transit)
 {
     mTransit = transit;
     BOMenuItemMayIn = new Data.BOMenuItemMayIn(mTransit);
     if (OnEventExit == null)
         btnHuy.Visibility = System.Windows.Visibility.Hidden;
 }
示例#29
0
 public UCNhanVien(Data.Transit transit)
 {
     InitializeComponent();
     mTransit   = transit;
     BONhanVien = new Data.BONhanVien(transit);
     PhanQuyen();
 }
 public WindowChuyenKho(Data.Transit transit, Data.BOChuyenKho chuyenKho, Data.KaraokeEntities kara)
 {
     InitializeComponent();
     mTransit         = transit;
     mKaraokeEntities = kara;
     mBOChuyenKho     = chuyenKho;
 }
 public UCKhachHang(Data.Transit transit)
 {
     InitializeComponent();
     mTransit    = transit;
     BOKhachHang = new Data.BOKhachHang(transit);
     PhanQuyen();
 }
示例#32
0
 public UCKhu(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOKhu = new Data.BOKhu(mTransit);
     PhanQuyen();
 }
示例#33
0
 public UCSoDoBan(Data.Transit transit)
 {
     mTransit = transit;
     InitializeComponent();
     btnHinhDaiDien.SetTransit(transit);
     btnHinhSoDoBan.SetTransit(transit);
 }
        public void UpdateSoLuongKichThuocMon(int MonID, Data.Transit mTransit)
        {
            var Parameter_MonID = new System.Data.SqlClient.SqlParameter("@MonID", System.Data.SqlDbType.Int);

            Parameter_MonID.Value = MonID;
            mTransit.KaraokeEntities.ExecuteStoreCommand("SP_UPDATE_SOLUONGKICHTHUOCMON @MonID", Parameter_MonID);
        }
 public UCLoaiKhachHang(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOLoaiKhachHang = new Data.BOLoaiKhachHang(transit);
     PhanQuyen();
 }
        public void SapXep(int MonID, Data.Transit mTransit)
        {
            var Parameter_MonID = new System.Data.SqlClient.SqlParameter("@MonID", System.Data.SqlDbType.Int);

            Parameter_MonID.Value = MonID;
            mTransit.KaraokeEntities.ExecuteStoreCommand("SP_SAPXEP_KICHTHUOCMON @MonID", Parameter_MonID);
        }
示例#37
0
 public BOKhachHang(Data.Transit transit)
 {
     mTransit         = transit;
     mKaraokeEntities = new KaraokeEntities();
     frmKhachHang     = new FrameworkRepository <KHACHHANG>(transit.KaraokeEntities, transit.KaraokeEntities.KHACHHANGs);
     frmLoaiKhachHang = new FrameworkRepository <LOAIKHACHHANG>(transit.KaraokeEntities, transit.KaraokeEntities.LOAIKHACHHANGs);
 }
 public WindowThemKhuyenMai(Data.BOMenuKichThuocMon item, Data.Transit transit, Data.BOMenuKhuyenMai bOMenuKhuyenMai)
 {
     InitializeComponent();
     mTransit        = transit;
     BOMenuKhuyenMai = bOMenuKhuyenMai;
     _Item           = item;
 }
 public WindowThemCaiDatChucNang(Data.QUYEN quyen, Data.Transit transit)
 {
     InitializeComponent();
     mTransit       = transit;
     BOChiTietQuyen = new Data.BOChiTietQuyen(mTransit);
     mQuyen         = quyen;
 }
 public WindowMenuExport(Data.Transit transit)
 {
     mTranSit = transit;
     mImportExportProcess = new ExportImport.ImportExportProcess();
     mImportExportProcess._OnImportExport += new ExportImport.ImportExportProcess.EventImportExport(mImportExportProcess__OnImportExport);
     InitializeComponent();
 }
示例#41
0
 public UCKhu(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOKhu    = new Data.BOKhu(mTransit);
     PhanQuyen();
 }
示例#42
0
        public CAIDATMAYINBEP GetAll(Data.Transit transit)
        {
            CAIDATMAYINBEP item = mKaraokeEntities.CAIDATMAYINBEPs.FirstOrDefault();

            if (item == null)
            {
                item = new CAIDATMAYINBEP();
                item.TitleTextFontSize    = 12;
                item.TitleTextFontStyle   = (int)SomeEnum.FontStyles.Normal;
                item.TitleTextFontWeights = (int)SomeEnum.FontWeights.Normal;
                item.InfoTextFontSize     = 12;
                item.InfoTextFontStyle    = (int)SomeEnum.FontStyles.Normal;
                item.InfoTextFontWeights  = (int)SomeEnum.FontWeights.Normal;
                item.ItemTextFontSize     = 12;
                item.ItemTextFontStyle    = (int)SomeEnum.FontStyles.Normal;
                item.ItemTextFontWeights  = (int)SomeEnum.FontWeights.Normal;
                item.SumTextFontSize      = 12;
                item.SumTextFontStyle     = (int)SomeEnum.FontStyles.Normal;
                item.SumTextFontWeights   = (int)SomeEnum.FontWeights.Normal;
                mKaraokeEntities.CAIDATMAYINBEPs.AddObject(item);
                mKaraokeEntities.SaveChanges();
            }

            return(item);
        }
 public WindowBanHangTachBan(ControlLibrary.UCFloorPlan uc,Data.Transit transit, Data.BOTachGopBan tachban)
 {
     mTransit = transit;
     mUCFloorPlan = uc;
     mBOTachGopBan = tachban;            
     InitializeComponent();
 }
示例#44
0
 public PriceManager(Data.Transit transit,Data.KaraokeEntities kara)
 {
     mTransit = transit;            
     mKaraokeEntities=kara;
     mQueryMenuLoaiGia = Data.BOMenuLoaiGia.GetAllLoaiGiaRun(mKaraokeEntities, mTransit.Ban);
     mListMenuGia = new List<Data.BOMenuGia>();
 }
 public WindowBanHangGopBan(ControlLibrary.UCFloorPlan uc, Data.Transit transit, Data.BOTachGopBan gopban)
 {
     mTransit     = transit;
     mUCFloorPlan = uc;
     mBOGopBan    = gopban;
     InitializeComponent();
 }
示例#46
0
 public UCLoaiGia(Data.Transit transit)
 {
     InitializeComponent();
     mTransit      = transit;
     BOMenuLoaiGia = new Data.BOMenuLoaiGia(mTransit);
     PhanQuyen();
 }
 public WindowCaiDatBan(Data.Transit transit)
 {
     InitializeComponent();
     BOCaiDatBan = new Data.BOCaiDatBan(transit);
     mTransit = transit;
     btnHinh.SetTransit(transit);
 }
 public WindowTamTinh(Data.Transit transit, Data.BOBanHang banhang)
 {
     mTransit = transit;
     mBOBanHang = banhang;
     mBOXuliTinhTien = new Data.BOXuliTinhTien(mTransit, mBOBanHang);            
     InitializeComponent();            
 } 
示例#49
0
 public BOMenuMon(Data.Transit transit)
 {
     frmMon          = new FrameworkRepository <MENUMON>(transit.KaraokeEntities, transit.KaraokeEntities.MENUMONs);
     frmNhom         = new FrameworkRepository <MENUNHOM>(transit.KaraokeEntities, transit.KaraokeEntities.MENUNHOMs);
     frmKichThuocMon = new FrameworkRepository <MENUKICHTHUOCMON>(transit.KaraokeEntities, transit.KaraokeEntities.MENUKICHTHUOCMONs);
     frmItemMayIn    = new FrameworkRepository <MENUITEMMAYIN>(transit.KaraokeEntities, transit.KaraokeEntities.MENUITEMMAYINs);
 }
 public UCLichBieuKhongDinhKy(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BOLichBieuKhongDinhKy = new Data.BOLichBieuKhongDinhKy(mTransit);
     PhanQuyen();
 }
 public UCNhanVien(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     BONhanVien = new Data.BONhanVien(transit);
     PhanQuyen();
 }
示例#52
0
 public WindowBanHangChuyenBan(Data.Transit tran, ControlLibrary.UCFloorPlan uc)
 {
     mTransit     = tran;
     mUCFloorPlan = uc;
     mBOChuyenBan = new Data.BOChuyenBan(mTransit);
     InitializeComponent();
 }
示例#53
0
 public UCDanhSachKhuyenMai(Data.Transit transit)
 {
     InitializeComponent();
     mTransit        = transit;
     BOMenuKhuyenMai = new Data.BOMenuKhuyenMai(mTransit);
     PhanQuyen();
 }
 public WindowTamTinh(Data.Transit transit, Data.BOBanHang banhang)
 {
     mTransit        = transit;
     mBOBanHang      = banhang;
     mBOXuliTinhTien = new Data.BOXuliTinhTien(mTransit, mBOBanHang);
     InitializeComponent();
 }
 public WindowMenuExport(Data.Transit transit)
 {
     mTranSit             = transit;
     mImportExportProcess = new ExportImport.ImportExportProcess();
     mImportExportProcess._OnImportExport += new ExportImport.ImportExportProcess.EventImportExport(mImportExportProcess__OnImportExport);
     InitializeComponent();
 }
 public WindowMenuSetMayIn(Data.BOMenuMon mon, Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     uCMenuSetMayIn.OnEventExit += new UCMenuSetMayIn.OnExit(uCMenuSetMayIn_OnEventExit);
     uCMenuSetMayIn.Init(mTransit);
     uCMenuSetMayIn.SetValues(mon);
 }
示例#57
0
 public UCThuChi(Data.Transit transit)
 {
     InitializeComponent();
     mTransit = transit;
     mProcessPrinter = new PrinterServer.ProcessPrinter(mTransit);
     BOThuChi = new Data.BOThuChi(transit);
     PhanQuyen();
 }
 public UCNewNhom(Data.Transit transit, Data.BOMenuNhom bOMenuNhom)
 {
     InitializeComponent();
     mTransit = transit;
     btnHinhAnh.SetTransit(transit);
     BOMenuNhom = bOMenuNhom;
     btnHinhAnh._OnBitmapImageChanged += new POSButtonImage.EventBitmapImage(btnHinhAnh__OnBitmapImageChanged);
 }
 public WindowCaiDatThongTinDoanhNghiep(Data.Transit transit)
 {
     InitializeComponent();
     BOCaiDatThongTinCongTy = new Data.BOCaiDatThongTinCongTy(transit);
     mTransit = transit;
     btnHinhDaiDien.SetTransit(mTransit);
     btnLogo.SetTransit(mTransit);
 }