Exemplo n.º 1
0
        private void bt_Tax_Click(object sender, EventArgs e)
        {
            bt_Product.BackColor   = Color.LightGreen;
            bt_LoginUser.BackColor = Color.Khaki;
            bt_ProdType.BackColor  = Color.LightGreen;
            bt_RFIDTags.BackColor  = Color.LightGreen;
            bt_Tax.BackColor       = Color.Yellow;
            bt_SysConfig.BackColor = Color.Orchid;

            DataAccessPOS dbPOS = new DataAccessPOS();

            taxs        = dbPOS.Get_All_Tax();
            isProduct   = false;
            isLoginUser = false;
            isPType     = false;
            isRFIDTag   = false;
            isSysConfig = false;
            isTax       = true;
            isStation   = false;
            isPromotion = true;

            dgvData_Tax_Initialize();
            if (taxs.Count > 0)
            {
                foreach (var tax in taxs)
                {
                    this.dgvData.Rows.Add(new String[] { tax.Code,
                                                         tax.Tax1.ToString(),
                                                         tax.Tax2.ToString(),
                                                         tax.Tax3.ToString() });
                    this.dgvData.FirstDisplayedScrollingRowIndex = dgvData.RowCount - 1;
                }
            }
        }