protected override void OpenMngFormAction(NotifyEntity item) { switch (item.ETipoEntidad) { case ETipoEntidad.Pago: { PaymentMngForm form = new PaymentMngForm(false, _parent, ETipoPago.Todos, (PaymentList)item.List); FormMngBase.Instance.ShowFormulario(form, this); form.ViewMode = molView.Enbebbed; form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; } }
protected override void OpenMngFormAction(NotifyEntity item) { switch (item.ETipoEntidad) { case ETipoEntidad.Pago: case ETipoEntidad.CreditCardStatement: { if (item.List == null) { item.List = PaymentList.GetByCreditCardStatement(item.Oid, false); SetTotales(); } PaymentMngForm form = new PaymentMngForm(false, _parent, ETipoPago.Todos, (PaymentList)item.List); FormMngBase.Instance.ShowFormulario(form, this); form.ViewMode = molView.Enbebbed; form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; case ETipoEntidad.Caja: { if (item.List == null) { item.List = CashLineList.GetByCreditCardStatement(item.Oid, false); SetTotales(); } CashLineMngForm form = new CashLineMngForm(false, _parent, (CashLineList)item.List, 1); form.ViewMode = molView.Enbebbed; FormMngBase.Instance.ShowFormulario(form, this); form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; } }
protected override void OpenMngFormAction(NotifyEntity item) { switch (item.ETipoEntidad) { case ETipoEntidad.Pago: { PaymentMngForm form = new PaymentMngForm(false, MainForm.Instance, ETipoPago.Todos, (PaymentList)item.List); FormMng.Instance.ShowFormulario(form, this); form.ViewMode = molView.Enbebbed; form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; case ETipoEntidad.FacturaRecibida: { InputInvoiceMngForm form = new InputInvoiceMngForm(false, MainForm.Instance, ETipoFacturas.Todas, (InputInvoiceList)item.List); FormMng.Instance.ShowFormulario(form, this); form.ViewMode = molView.Enbebbed; form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; case ETipoEntidad.Gasto: { ExpenseMngForm form = new ExpenseMngForm(false, MainForm.Instance, ECategoriaGasto.Todos, (ExpenseList)item.List); FormMng.Instance.ShowFormulario(form, this); form.ViewMode = molView.Enbebbed; form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; case ETipoEntidad.FacturaEmitida: { InvoiceMngForm form = new InvoiceMngForm(false, MainForm.Instance, (OutputInvoiceList)item.List, ETipoFacturas.Todas); FormMng.Instance.ShowFormulario(form, this); form.ViewMode = molView.Enbebbed; form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; case ETipoEntidad.Cobro: { CobroMngForm form = new CobroMngForm(false, MainForm.Instance, (CobroList)item.List, ETipoCobro.Todos); FormMng.Instance.ShowFormulario(form, this); form.ViewMode = molView.Enbebbed; form.Text = item.Title; form.Left = this.Right + 1; form.Width -= this.Width; form.FitColumns(); } break; } }