protected override void RefreshMainData() { PgMng.Grow(string.Empty, "LineaCaja"); _selectedOid = ActiveOID; switch (DataType) { case EntityMngFormTypeData.Default: if (Library.Common.ModulePrincipal.GetUseActiveYear()) { List = CashLineList.GetList(_oid_caja, Library.Common.ModulePrincipal.GetActiveYear().Year, false); } else { List = CashLineList.GetList(_oid_caja, false); } break; case EntityMngFormTypeData.ByParameter: _sorted_list = List.GetSortedList(); break; } PgMng.Grow(string.Empty, "Lista de LineaCajas"); }
protected void PrintListAction(Cash caja, CashLineList lista) { string filtro = GetFilterValues(); CashReportMng reportMng = new CashReportMng(AppContext.ActiveSchema, Resources.Labels.CAJA_REPORT_TITLE, filtro); CashRpt report = reportMng.GetDetailReport(caja.GetInfo(), lista, FInicial_DTP.Value, FFinal_DTP.Value); ShowReport(report); }
protected override void RefreshMainData() { Datos.DataSource = _entity; PgMng.Grow(); Lines_BS.DataSource = CashLineList.SortList(_entity.Lines, "Fecha", ListSortDirection.Ascending); PgMng.Grow(); base.RefreshMainData(); }
public override void PrintList() { CashReportMng reportMng = new CashReportMng(AppContext.ActiveSchema, this.Text, FilterValues); CashLineListRpt report = reportMng.GetListReport(CashLineList.GetList(Datos.DataSource as IList <CashLineInfo>)); PgMng.FillUp(); ShowReport(report); }
protected override void PrintAction() { List <CashLine> subLista = _caja.Lines.GetSubList(new Library.CslaEx.FCriteria <DateTime>("Fecha", FInicial_DTP.Value, FFinal_DTP.Value, Library.CslaEx.Operation.Between)); CashLineList lista = CashLineList.GetChildList(subLista); PrintListAction(_caja, lista); _action_result = DialogResult.OK; }
public CashLineMngForm(bool isModal, Form parent, CashLineList list, long oidCash) : base(isModal, parent, list) { InitializeComponent(); SetView(molView.Normal); // Parche para poder abrir el formulario en modo diseño y no perder la configuracion de columnas DatosLocal_BS = Datos; Tabla.DataSource = DatosLocal_BS; SetMainDataGridView(Tabla); Datos.DataSource = CashLineList.NewList().GetSortedList(); SortProperty = Fecha.DataPropertyName; SortDirection = ListSortDirection.Descending; _oid_caja = oidCash; }
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); }