Exemplo n.º 1
0
        private void btnRepeticion_Click(object sender, EventArgs e)
        {
            Repeticiones rep = new Repeticiones();

            rep.Comprobante = this.Persistent;
            rep.Id          = rep.Comprobante.Id;
            RepeticionesCRUD frmRep = new RepeticionesCRUD(rep);

            frmRep.ShowDialog();
            Persistent.TieneRepeticion = true;
            this.btnRepeticion.Enabled = false;
            this.btnRepeticion.Refresh();
        }
Exemplo n.º 2
0
 protected override void FillObject()
 {
     base.FillObject();
     //Persistent.IdComprobante = Convert.ToInt32(txtId.Text);
     if (Persistent == null)
     {
         //PAra cuando se crear desde el comprobante
         Persistent             = new Repeticiones();
         Persistent.Comprobante = new Comprobantes();
     }
     Persistent.DiaMes = (int)cboDiaMes.Value;
     Persistent.Hasta  = txtHasta.Value;
 }
Exemplo n.º 3
0
        public RepeticionesCRUD(Repeticiones rep)
        {
            InitializeComponent();
            this.stylesSheetManager.ApplyStyles();
            auxRepeticion = rep;
            txtId.Text    = auxRepeticion.Id.ToString();
            DateTime hoy = DateTime.Today;

            cboDiaMes.Value = hoy.Day;
            txtHasta.Value  = hoy.AddMonths(6);
            if (auxRepeticion.Comprobante != null)
            {
                if (auxRepeticion.Comprobante.NroCbante != null)
                {
                    txtNroComprobante.Text = auxRepeticion.Comprobante.NroCbante.ToString();
                }
                txtTipoComprobante.Text = auxRepeticion.Comprobante.Tipo.Nombre;
            }
        }
Exemplo n.º 4
0
        public RepeticionesController(RepeticionesBL sl)
        {
            repeticionesLogic = sl;
            repeticionesForm  = new RepeticionesCRUD();

            /*repeticionesLogic.UpdateObject(Repeticiones.Instance);
             * repeticionesForm.Repeticiones = Repeticiones.Instance;
             */
            Repeticiones rep = new Repeticiones();

            /*rep.Id = 154;
             * rep.IdComprobante = 154;
             */
            //rep.DiaMes = 25;
            //repeticionesLogic.UpdateObject(rep);
            //repeticionesForm.Repeticiones = rep;// new Repeticiones();
            //repeticionesForm.SaveObject += new ObjectEvent(SaveObject);
            //repeticionesForm.GetObjectById += new GetObjectEvent(GetObjectById);
            //repeticionesForm.PropertyValueListNeeded += new PropertyValueListNeeded(PropertyValueListNeeded);
        }