Exemple #1
0
        private void OpenReturnOrder()
        {
            Business.Models.SalesOrderReturnModel som = (Business.Models.SalesOrderReturnModel) this.dataGridView1.CurrentRow.DataBoundItem;
            var orderReturn           = PharmacyDatabaseService.GetSalesOrderReturn(out msg, som.Id);
            FormSalesOrderReturn form = new FormSalesOrderReturn(orderReturn);

            form.ShowDialog();
        }
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0 || e.ColumnIndex < 0)
            {
                return;
            }
            if (this.dataGridView1.Columns[e.ColumnIndex].Name != this.Column1.Name)
            {
                return;
            }

            Business.Models.SalesOrderReturnModel som = (Business.Models.SalesOrderReturnModel) this.dataGridView1.Rows[e.RowIndex].DataBoundItem;
            var orderReturn           = PharmacyDatabaseService.GetSalesOrderReturn(out msg, som.Id);
            FormSalesOrderReturn form = new FormSalesOrderReturn(orderReturn);

            form.ShowDialog();
        }