private void SeeInvoiceRadButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.InvoiceRadGridView.SelectedRows.Count == 0)
         {
             RadMessageBox.Show(null, "Debe seleccionar una factura para realizar esta operación", "JOSIAS INDUSTRIAL SRL", MessageBoxButtons.OK, RadMessageIcon.Info);
             return;
         }
         else
         {
             _idInvoiceToEdit = Convert.ToInt32(InvoiceRadGridView.CurrentRow.Cells["InvoiceID"].Value);
             var _currentInvoiceToEdit = this._serviceInvoiceBL.Find(_idInvoiceToEdit.Value);
             if (_currentInvoiceToEdit != null)
             {
                 NewInvoiceRadForm _createInvoiceRadForm = new NewInvoiceRadForm(this, _currentInvoiceToEdit, StateForm.SEE_MORE);
                 _createInvoiceRadForm.ShowDialog();
             }
         }
     }
     catch (Exception ex)
     {
         RadMessageBox.Show("Ocurrió un error, Contactar al Administrador de Soporte", "JOSIAS INDUSTRIAL SRL", MessageBoxButtons.OK, RadMessageIcon.Info, ex.Message.ToString());
         return;
     }
 }
Exemple #2
0
        public SearchRadForm(SearchEnum search, NewInvoiceRadForm actual)
        {
            InitializeComponent();
            this._seachForm         = search;
            this._serviceCustomerBL = new CustomerBL();
            this._serviceProductBL  = new ProductBL();

            listOfCustomer         = new List <Sp_GetCustomerByParam>();
            listOfProduct          = new List <ProductToSearch>();
            this._actualFormParent = actual;
        }
        private void CreateInvoiceRadButton_Click(object sender, EventArgs e)
        {
            NewInvoiceRadForm _createInvoiceRadForm = new NewInvoiceRadForm(this, StateForm.NEW);

            _createInvoiceRadForm.ShowDialog();
        }