public override void PrintObject() { PgMng.Reset(5, 1, Face.Resources.Messages.LOADING_DATA, this); OutputDeliveryReportMng reportMng = new OutputDeliveryReportMng(AppContext.ActiveSchema); OutputDeliveryInfo item = OutputDeliveryInfo.Get(EntityInfo.Oid, ETipoEntidad.WorkReport, true); PgMng.Grow(); WorkReportInfo work_report = WorkReportInfo.Get(item.OidHolder, false); PgMng.Grow(); ExpedientInfo work = ExpedientInfo.Get((work_report != null) ? work_report.OidExpedient : 0, false); PgMng.Grow(); ReportClass report = reportMng.GetWorkDelivery(item, work); PgMng.FillUp(); if (SettingsMng.Instance.GetUseDefaultPrinter()) { int n_copias = SettingsMng.Instance.GetDefaultNCopies(); PrintReport(report, n_copias); } else { ShowReport(report); } }
protected void PrintDetail(OutputDeliveryList lista) { PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this); ClienteList clientes = ClienteList.GetList(false); PgMng.Grow(); OutputDeliveryReportMng rptMng = new OutputDeliveryReportMng(AppContext.ActiveSchema, this.Text, string.Empty); ReportClass report = rptMng.GetDetailListReport(lista, clientes, this._tipo, this.FInicial_DTP.Value, this.FFinal_DTP.Value); PgMng.FillUp(); ShowReport(report); }
protected void PrintList(OutputDeliveryList lista) { PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this); ClienteList clientes = ClienteList.GetList(false); PgMng.Grow(); OutputDeliveryReportMng rptMng = new OutputDeliveryReportMng(AppContext.ActiveSchema, Titulo, Filtro); ReportClass report = rptMng.GetListReport(lista, clientes); PgMng.FillUp(); ShowReport(report); }
public override void PrintDetailAction() { if (ActiveItem == null) { return; } PgMng.Reset(6, 1, Face.Resources.Messages.LOADING_DATA, this); OutputDeliveryReportMng reportMng = new OutputDeliveryReportMng(AppContext.ActiveSchema, this.Text, this.FilterValues); SerieInfo serie = SerieInfo.Get(ActiveItem.OidSerie, false); PgMng.Grow(); ClienteInfo cliente = ClienteInfo.Get(ActiveItem.OidHolder, false); PgMng.Grow(); FormatConfFacturaAlbaranReport conf = new FormatConfFacturaAlbaranReport(); conf.nota = (cliente.OidImpuesto == 1) ? Library.Invoice.Resources.Messages.NOTA_EXENTO_IGIC : string.Empty; conf.nota += Environment.NewLine + (ActiveItem.Nota ? serie.Cabecera : ""); conf.cuenta_bancaria = ActiveItem.CuentaBancaria; PgMng.Grow(); OutputDeliveryInfo item = OutputDeliveryInfo.Get(ActiveOID, ActiveItem.EEntityType, true); PgMng.Grow(); ReportClass report = reportMng.GetDetailReport(item, conf); PgMng.FillUp(); if (SettingsMng.Instance.GetUseDefaultPrinter()) { int n_copias = SettingsMng.Instance.GetDefaultNCopies(); PrintReport(report, n_copias); } else { ShowReport(report); } }
public override void PrintList() { PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this); OutputDeliveryReportMng reportMng = new OutputDeliveryReportMng(AppContext.ActiveSchema, this.Text, this.FilterValues); PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT); ExpedienteList work = ExpedienteList.GetList(ETipoExpediente.Work, false); PgMng.Grow(); ReportClass report = reportMng.GetWorkDeliveryList(OutputDeliveryList.GetList(Datos.DataSource as IList <OutputDeliveryInfo>), work); PgMng.FillUp(); ShowReport(report); }
public override void PrintObject() { _action_result = SaveObject() ? DialogResult.OK : DialogResult.Ignore; if (_action_result == DialogResult.OK) { FormMngBase.Instance.RefreshFormsData(); OutputDeliveryReportMng reportMng = new OutputDeliveryReportMng(AppContext.ActiveSchema); FormatConfFacturaAlbaranReport conf = new FormatConfFacturaAlbaranReport(); conf.nota = EntityInfo.Nota ? Nota_TB.Text : ""; conf.cabecera = "ALBARAN"; conf.copia = ""; conf.cuenta_bancaria = ""; ReportViewer.SetReport(reportMng.GetDetailReport(EntityInfo, conf)); ReportViewer.ShowDialog(); ExecuteAction(molAction.Close); } }
public override void ExportPDFAction() { if (ActiveItem == null) { return; } try { PgMng.Reset(7, 1, Face.Resources.Messages.RETRIEVING_DATA, this); OutputDeliveryReportMng reportMng = new OutputDeliveryReportMng(AppContext.ActiveSchema, this.Text, this.FilterValues); SerieInfo serie = SerieInfo.Get(ActiveItem.OidSerie, false); PgMng.Grow(); ClienteInfo cliente = ClienteInfo.Get(ActiveItem.OidHolder, false); PgMng.Grow(); FormatConfFacturaAlbaranReport conf = new FormatConfFacturaAlbaranReport(); conf.nota = (cliente.OidImpuesto == 1) ? Library.Invoice.Resources.Messages.NOTA_EXENTO_IGIC : string.Empty; conf.nota += Environment.NewLine + (ActiveItem.Nota ? serie.Cabecera : ""); conf.cuenta_bancaria = ActiveItem.CuentaBancaria; PgMng.Grow(); OutputDeliveryInfo item = OutputDeliveryInfo.Get(ActiveOID, ActiveItem.EHolderType, true); PgMng.Grow(); ReportClass rpt = reportMng.GetDetailReport(item, conf); PgMng.Grow(); ExportPDF(rpt, ActiveItem.FileName); } finally { PgMng.FillUp(); } }