Exemplo n.º 1
0
 private void Descuento_NTB_TextChanged(object sender, EventArgs e)
 {
     _entity.Descuento = PDescuento_NTB.DecimalValue;
     _entity.CalculaTotal();
     Datos_Concepto.ResetBindings(false);
     Datos.ResetBindings(false);
 }
Exemplo n.º 2
0
        protected override void EliminarAlbaranAction()
        {
            if (Entity.AlbaranTickets.Count == 0)
            {
                return;
            }

            DeliverySelectForm form = new DeliverySelectForm(this, ETipoEntidad.Cliente, OutputDeliveryList.GetList(_albaranes));

            form.ShowDialog(this);

            if (form.DialogResult == DialogResult.OK)
            {
                List <OutputDeliveryInfo> results = form.Selected as List <OutputDeliveryInfo>;

                foreach (OutputDeliveryInfo item in results)
                {
                    _entity.Extract(item);
                    _albaranes.Remove(item);
                }
            }

            if (_entity.AlbaranTickets.Count == 0)
            {
                Serie_BT.Enabled = true;
            }

            Datos_Concepto.ResetBindings(false);
        }
Exemplo n.º 3
0
 private void TicketAddForm_Shown(object sender, EventArgs e)
 {
     if (_albaran != null)
     {
         AddAlbaran(_albaran);
         Datos_Concepto.ResetBindings(true);
         Conceptos_DGW.Refresh();
     }
 }
Exemplo n.º 4
0
        protected override void NuevoAlbaranAction()
        {
            AddAlbaran();

            if (Result == BGResult.OK)
            {
                Datos_Concepto.ResetBindings(false);
            }
        }
Exemplo n.º 5
0
 protected virtual void RefreshConceptos()
 {
     Datos_Concepto.ResetBindings(true);
     Lineas_DGW.Refresh();
 }