Exemplo n.º 1
0
        private void dataGridViewBills_SelectionChanged(object sender, EventArgs e)
        {
            foreach (DataGridViewRow row in dataGridViewBills.SelectedRows)
            {
                userID = row.Cells[0].Value.ToString();
                month  = row.Cells[1].Value.ToString();

                ffController = new FixedFeesController();
                ffList       = ffController.getFixedFees(row.Cells[0].Value.ToString(), row.Cells[1].Value.ToString());
                this.textBoxFixedFeesKM.Text  = ffList[0].Quantity.ToString();
                this.textBoxFixedFeesNUI.Text = ffList[1].Quantity.ToString();
                this.textBoxFixedFeesREP.Text = ffList[2].Quantity.ToString();
                opList = opController.getOffPrices(userID, month);
                this.dataGridViewOffPrice.DataSource       = opList;
                this.dataGridViewOffPrice.Rows[0].Selected = false;
                this.labelEtat.Text = row.Cells[5].Value.ToString();
            }
        }
Exemplo n.º 2
0
        private void majFF()
        {
            foreach (DataGridViewRow row in dataGridViewBills.SelectedRows)
            {
                userID = row.Cells[0].Value.ToString();
                month  = row.Cells[1].Value.ToString();

                ffController = new FixedFeesController();
                ffList       = ffController.getFixedFees(row.Cells[0].Value.ToString(),
                                                         row.Cells[1].Value.ToString());
                this.textBoxFixedFeesKM.Text  = ffList[0].Quantity.ToString();
                this.textBoxFixedFeesNUI.Text = ffList[1].Quantity.ToString();
                this.textBoxFixedFeesREP.Text = ffList[2].Quantity.ToString();
                opList = opController.getOffPrices(userID, month);
                this.dataGridViewOffPrice.DataSource = opList;

                txtBoxEtat.Text = row.Cells[5].Value.ToString();
            }
        }