Beispiel #1
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            FrmPosRestaurant frm = new FrmPosRestaurant(null);

            frm.Show();
            Hide();
        }
Beispiel #2
0
 public FrmCostumersView(FrmPosRestaurant _frmPosRestaurant)
 {
     InitializeComponent();
     toGridControlCustomers();
     this._frmPosRestaurant = _frmPosRestaurant;
     activeConstructor      = constructorPosRestaurant;
 }
Beispiel #3
0
 public FrmTransferirProducts(int idMesa, FrmPosRestaurant _frm)
 {
     InitializeComponent();
     this.idMesa = idMesa;
     fillDataSources();
     this._frm = _frm;
 }
Beispiel #4
0
 public FrmverifySenha(FrmPosRestaurant frmPosRest, int ident)
 {
     InitializeComponent();
     this.frmPosRest  = frmPosRest;
     activeContructor = transferConstructor;
     this.ident       = ident;
 }
        public FrmProdutoView(FrmPosRestaurant _frmPosRestaurant)
        {
            InitializeComponent();
            toGridControlProducts();

            this._frmPosRestaurant   = _frmPosRestaurant;
            btnAddProduto.Visible    = false;
            btnEdit.Visible          = false;
            btnDeleteProduct.Visible = false;

            constructorAtivo = construtorPDVRestaurant;
        }
Beispiel #6
0
 private void barButtonItem42_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (UserCurrent.getCurrentUser().FlagAdmin == true)
     {
         if (new SerieController().ListALL().Count > 0)
         {
             if (TurnoCurrent.getTurnoCurrent() == null)
             {
                 MessageBox.Show("Abra o Caixa Primeiro");
             }
             else
             {
                 FrmPosRestaurant frmPos = new FrmPosRestaurant(this);
                 frmPos.Show();
                 Hide();
             }
         }
         else
         {
             MessageBox.Show("Cadastre uma serie no sistema");
         }
     }
     else
     {
         if (UserCurrent.getPermission().Venda)
         {
             if (new SerieController().ListALL().Count > 0)
             {
                 if (new TableController().ListALL().Count > 0)
                 {
                     FrmPosRestaurant frmPos = new FrmPosRestaurant(this);
                     frmPos.Show();
                     Hide();
                 }
                 else
                 {
                     MessageBox.Show("Cadastre pelo menos uma(1) mesa");
                 }
             }
             else
             {
                 MessageBox.Show("Cadastre uma serie no sistema");
             }
         }
         else
         {
             MessageBox.Show("Não tem permissão para completar essa operação");
         }
     }
 }
Beispiel #7
0
 public FrmPassAdmin(FrmPosRestaurant _frmPosRes)
 {
     InitializeComponent();
     this._frmPosRes   = _frmPosRes;
     activeConstructor = POS_CONSTRUCTOR;
 }