public FrmCrearPercepcionBase(PercepcionBase percepcionbase, XPCollection xpcPercepcionBase, UnitOfWork uow, XPCollection xpcCuentaContable)
     : this()
 {
     xpcCuentaContable.Filter = new BinaryOperator("TipoCuenta", tipocuenta.Percepcion, BinaryOperatorType.Equal);
     this.PercepcionBase = percepcionbase;
     this.uow = uow;
     this.xpcCuentaContable = xpcCuentaContable;
     this.xpcCuentaContable.Session = uow;
     this.xpcPercepcionBase = xpcPercepcionBase;
     this.xpcPercepcionBase.Session = uow;
     lkpCuentaContable.Properties.DataSource = xpcCuentaContable;
     lkpCuentaContable.Properties.ValueMember = "This";
     lkpCuentaContable.Properties.DisplayMember = "Cuenta";
 }
Example #2
0
 private void EditPercepcionBase(PercepcionBase percepcionbase)
 {
     FrmCrearPercepcionBase crearPercepcionBase = new FrmCrearPercepcionBase(percepcionbase, xpcPercepcionBase, uow,xpcCuentaContable);
     crearPercepcionBase.ShowDialog();
     if (crearPercepcionBase.correcto)
     {
         percepcionbase.Save();
         AuditTrailService.Instance.SaveAuditData(uow);
         uow.CommitChanges();
         RefreshGrid();
     }
     else
     {
         percepcionbase.Reload();
         RefreshGrid();
     }
     RecargarColecciones();
 }