private void btnOpen_Click(object sender, EventArgs e)
        {
            try
            {
                if (!GlobalFunctions.checkRights("tsmOpenCashierPeriod", "Open"))
                {
                    return;
                }

                if (loCasherPeriod.openCashierPeriod(GlobalVariables.CashierId, decimal.Parse(txtCashDeposit.Text), txtRemarks.Text))
                {
                    MessageBoxUI _mb = new MessageBoxUI("Cashier period has been open successfully!", GlobalVariables.Icons.Save, GlobalVariables.Buttons.OK);
                    _mb.showDialog();
                    this.Close();
                }
            }
            catch { }
        }
Esempio n. 2
0
 public bool openCashierPeriod(string pCashierId, decimal pCashDeposit, string pRemarks, string pUserId)
 {
     return(loCashierPeriod.openCashierPeriod(pCashierId, pCashDeposit, pRemarks, pUserId));
 }