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 ViewCashLinesAction() { if (!ControlsMng.IsCurrentItemValid(Lines_DGW)) { return; } CreditCardStatementInfo item = ControlsMng.GetCurrentItem(Lines_DGW) as CreditCardStatementInfo; CashLineList list = CashLineList.GetByCreditCardStatement(item.Oid, false); CashLineMngForm form = new CashLineMngForm(true, _parent, list, 1); form.ViewMode = molView.Enbebbed; form.Text = String.Format("Disposiciones de efectivo de tarjeta {0}: {1} - {2})", _entity.TarjetaCredito, item.From.ToShortDateString(), item.Till.ToShortDateString()); form.Width = form.Width / 5 * 4; form.Height = form.Height / 5 * 4; form.StartPosition = FormStartPosition.CenterScreen; FormMngBase.Instance.ShowFormulario(form, this); }