protected override void ShowAlbaranAction()
        {
            InputInvoiceLineInfo concepto = Datos_Lineas.Current as InputInvoiceLineInfo;

            if (concepto != null)
            {
                InputDeliveryLineInfo c_albaran = InputDeliveryLineInfo.Get(concepto.OidConceptoAlbaran, false);
                InputDeliveryViewForm form      = new InputDeliveryViewForm(c_albaran.OidAlbaran, ETipoAcreedor.Todos, this);
                form.ShowDialog(this);
            }
        }
        protected override void SetRowFormat(DataGridViewRow row)
        {
            if (row.IsNewRow)
            {
                return;
            }

            InputInvoiceLineInfo item = (InputInvoiceLineInfo)row.DataBoundItem;

            bool reserved = (item.OidExpediente != 0) && (item.OidExpediente != _expediente.Oid);

            LockIsSelected(row, reserved);
        }
Beispiel #3
0
        protected virtual void ViewConceptoCosteEAction()
        {
            if (!ControlsMng.IsCurrentItemValid(ConceptosCostes_DGW))
            {
                return;
            }

            InputInvoiceLineInfo line = ControlsMng.GetCurrentItem(ConceptosCostes_DGW) as InputInvoiceLineInfo;

            InputInvoiceViewForm form = new InputInvoiceViewForm(line.OidFactura, ETipoAcreedor.Proveedor, this);

            form.ShowDialog(this);
        }
        protected void SelectConceptoAction(DataGridViewRow row)
        {
            if (row == null)
            {
                return;
            }

            InputInvoiceLineInfo concepto = (InputInvoiceLineInfo)row.DataBoundItem;

            if (concepto.IsSelected)
            {
                _conceptos_selected.Add(row.DataBoundItem as InputInvoiceLineInfo);
            }
        }
        private void Conceptos_DGW_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (Lineas_DGW.Columns[e.ColumnIndex].Name == IsSelected.Name)
            {
                if (Lineas_DGW.CurrentRow.ReadOnly)
                {
                    return;
                }

                InputInvoiceLineInfo item = (InputInvoiceLineInfo)Lineas_DGW.CurrentRow.DataBoundItem;
                item.IsSelected    = !item.IsSelected;
                item.OidExpediente = item.IsSelected ? item.OidExpediente : 0;
                item.Expediente    = item.IsSelected ? item.Expediente : string.Empty;
            }
            else if (Lineas_DGW.Columns[e.ColumnIndex].Name == Expedient.Name)
            {
                SelectExpedienteLineaAction();
            }
        }