public override void PrintList()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);

            NominaReportMng reportMng = new NominaReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);

            NominaListRpt report = reportMng.GetListReport(List);

            PgMng.FillUp();

            ShowReport(report);
        }
        public override void PrintList()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
            PaymentReportMng reportMng = new PaymentReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            reportMng.ShowQRCode = false;

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            PaymentListRpt report = reportMng.GetListReport(PaymentList.GetList((IList <PaymentInfo>)Datos.List), null);

            PgMng.FillUp();

            ShowReport(report);
        }
        public override void PrintList()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);

            CashReportMng reportMng = new CashReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);

            CierreCajaListRpt report = reportMng.GetListReport(CierreCajaList.GetList(Datos.DataSource as IList <CierreCajaInfo>));

            PgMng.FillUp();

            ShowReport(report);
        }
예제 #4
0
        public override void PrintObject()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.BUILDING_REPORT, this);

            PaymentReportMng reportMng = new PaymentReportMng(AppContext.ActiveSchema, Resources.Labels.PAGOS, "Empleado = " + Entity.Nombre);

            PgMng.Grow();

            PagoAcreedorDetailRpt report = reportMng.GetPagoAcreedorDetailReport(Summary, _entity.Pagos);

            PgMng.FillUp();

            ShowReport(report);
        }
예제 #5
0
        public override void DeleteObject(long oid)
        {
            if (ProgressInfoMng.ShowQuestion(moleQule.Face.Resources.Messages.DELETE_CONFIRM) == DialogResult.Yes)
            {
                if (ActiveItem.Shared)
                {
                    if (ProgressInfoMng.ShowQuestion(Resources.Messages.DOC_SHARED) != DialogResult.OK)
                    {
                        _action_result = DialogResult.Cancel;
                        return;
                    }
                }

                try
                {
                    PgMng.Reset(5, 1, Resources.Messages.CONNECTING_SERVER, this);

                    HipatiaCtl.InitHipatia(_ftp, Principal.GetHipatiaFTPRootPath(), Principal.GetHipatiaFTPHost());

                    PgMng.Grow(moleQule.Face.Resources.Messages.DELETING);

                    Documento item = Documento.Get(ActiveItem.OidDocumento);
                    item.AgenteDocumentos.Clear();
                    item.Save();
                    item.CloseSession();
                    PgMng.Grow();

                    Documento.Delete(ActiveItem.OidDocumento);
                    PgMng.Grow();

                    if (HipatiaCtl.ExistsFile(_ftp, ActiveItem.Ruta))
                    {
                        _ftp.DeleteFile(ActiveItem.Ruta);
                    }
                    PgMng.Grow();
                }
                catch (Exception ex)
                {
                    _action_result = DialogResult.Cancel;
                    throw ex;
                }
                finally
                {
                    PgMng.FillUp();
                }

                _action_result = DialogResult.OK;
            }
        }
예제 #6
0
        protected override void EditAction()
        {
            if (CurrentDocumento == null)
            {
                return;
            }

            _destination_path = System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

            _back_job = BackJob.Download;
            PgMng.Reset(5, 1, Resources.Messages.CONNECTING_SERVER, this);
            //PgMng.StartBackJob(this);
            DoJob();

            if (PgMng.Result == BGResult.OK)
            {
                System.Diagnostics.Process process = new System.Diagnostics.Process();
                process.StartInfo.FileName = TempFile;
                PgMng.FillUp();
                process.Start();
                try
                {
                    process.WaitForExit();
                }
                catch { }

                _back_job = BackJob.Upload;
                PgMng.Reset(5, 1);
                PgMng.Message = Resources.Messages.CONNECTING_SERVER;
                PgMng.ShowForm();
                PgMng.Grow();

                if (PgMng.Result == BGResult.OK)
                {
                    PgMng.StartBackJob(this);
                    PgMng.FillUp();

                    File.Delete(TempFile);
                }
                else
                {
                    PgMng.FillUp();
                }
            }
            else
            {
                PgMng.FillUp();
            }
        }
예제 #7
0
        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);
        }
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;
            //if (_entity.OidProducto > 0)
            //    ProductoInstruccion_TB.Text = _productos.GetItem(_entity.OidProducto).Nombre;
            //if (_entity.OidSerie > 0)
            //    SerieInstruccion_TB.Text = _series.GetItem(_entity.OidSerie).Nombre;
            PgMng.Grow();

            Datos_Teoricas.DataSource = _entity.CTeoricas;
            PgMng.Grow();

            Datos_Practicas.DataSource = _entity.CPracticas;
            PgMng.FillUp();
        }
예제 #9
0
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;

            //Ini_Contrato_DTP.Value = _entity.InicioContrato;
            //Fin_Contrato_DTP.Value = _entity.FinContrato;
            //PgMng.Grow();
            Datos_ProductoProveedor.DataSource = _entity.Productos;

            Datos_CursosFormacion.DataSource = CursoFormacionList.SortList(_entity.CursosFormacion, "Fecha", ListSortDirection.Ascending);
            PgMng.Grow(string.Empty, "CursosFormacion");

            base.RefreshMainData();
            PgMng.FillUp();
        }
        protected override void RefreshMainData()
        {
            _practicas = ClasePracticaList.GetClasesPlanList(EntityInfo.Oid);
            PgMng.Grow();

            _teoricas = ClaseTeoricaList.GetClasesPlanList(EntityInfo.Oid);
            PgMng.Grow();

            _lista = new ListaClases();
            RellenaLista();
            PgMng.Grow();

            Datos_Clases.DataSource = _lista;
            PgMng.FillUp();
        }
 public HorarioEditForm(long oid, bool ismodal, Form parent)
     : base(oid, ismodal, parent)
 {
     PgMng.Reset(BarSteps, 1, Resources.Messages.LOADING_DATA, this);
     InitializeComponent();
     _is_modal = ismodal;
     if (Entity != null)
     {
         SetFormData();
         this.Text = Resources.Labels.HORARIO_EDIT_TITLE + " " + Entity.FechaInicial.ToShortDateString() + " A " + Entity.FechaFinal.ToShortDateString();
     }
     _mf_type = ManagerFormType.MFEdit;
     //RellenaCasillas();
     PgMng.FillUp();//.Grow(string.Empty, "Rellenar Casillas");
 }
        public override void PrintList()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);

            OutputInvoiceReportMng reportMng = new OutputInvoiceReportMng(AppContext.ActiveSchema, this.Text, this.FilterValues);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);

            ReportClass report = reportMng.GetListReport(OutputInvoiceList.GetList(Datos.DataSource as IList <OutputInvoiceInfo>),
                                                         SerieList.GetList(false));

            PgMng.FillUp();

            ShowReport(report);
        }
예제 #13
0
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity.Alumnos;
            PgMng.Grow();

            if (_promociones.Count > 0)
            {
                foreach (PromocionInfo item in _promociones)
                {
                    SetAlumnosValues(null, item);
                }
            }

            PgMng.FillUp();
        }
예제 #14
0
        protected void AddFacturaGastos(Expedient expediente, InputInvoiceInfo fac)
        {
            this.Enabled = false;

            try
            {
                PgMng.Reset(5, 1, "Recalculando gastos y costes del expediente...", this);

                if (fac.Conceptos == null)
                {
                    fac.LoadChilds(typeof(InputInvoiceLine), false);
                }

                foreach (InputInvoiceLineInfo item in fac.Conceptos)
                {
                    if ((item.OidExpediente != expediente.Oid) && (item.OidExpediente != 0))
                    {
                        item.IsSelected = false;
                    }
                    else
                    {
                        item.IsSelected    = true;
                        item.OidExpediente = expediente.Oid;
                        item.Expediente    = expediente.Codigo;
                    }
                }
                PgMng.Grow();

                expediente.LoadConceptosAlbaranes(false);
                PgMng.Grow();

                expediente.NuevoGasto(fac, expediente.Conceptos, true);
                PgMng.Grow();

                UpdateExpensesList();
                UpdateBindings();
                PgMng.Grow();
            }
            catch (iQException ex)
            {
                PgMng.ShowInfoException(ex);
            }
            finally
            {
                PgMng.FillUp();
                this.Enabled = true;
            }
        }
        public override void EmailLinkAction()
        {
            if (ActiveItem == null)
            {
                return;
            }

            PgMng.Reset(5, 1, Face.Resources.Messages.RETRIEVING_DATA, this);

            ClienteInfo cliente = ClienteInfo.Get(ActiveItem.OidCliente, false);

            PgMng.Grow();

            CompanyInfo empresa = CompanyInfo.Get(AppContext.ActiveSchema.Oid);

            PgMng.Grow();

            MailParams mail = new MailParams();

            string url = empresa.Url + String.Format(Library.Invoice.ModuleController.GetFacturaWebScript(), ActiveItem.Link);

            mail.To      = cliente.Email;
            mail.Body    = String.Format(Library.Invoice.Resources.Messages.FACTURA_EMAIL_LINK_BODY, url, empresa.Name);
            mail.Subject = Library.Invoice.Resources.Messages.FACTURA_EMAIL_SUBJECT;

            try
            {
                PgMng.Grow(moleQule.Face.Resources.Messages.OPENING_EMAIL_CLIENT, string.Empty);

                EMailSender.MailTo(mail);

                OutputInvoiceInfo item = OutputInvoiceInfo.Get(ActiveOID, true);
                PgMng.Grow();

                if (item.EEstado == EEstado.Abierto)
                {
                    ChangeStateAction(EEstadoItem.Emitido);
                }
            }
            catch
            {
                PgMng.ShowInfoException(moleQule.Face.Resources.Messages.NO_EMAIL_CLIENT);
            }
            finally
            {
                PgMng.FillUp();
            }
        }
예제 #16
0
        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);
        }
예제 #17
0
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            Datos.DataSource = _entity;
            if (_entity.OidProducto > 0)
            {
                ProductoInstruccion_TB.Text = _productos.GetItem(_entity.OidProducto).Nombre;
            }
            if (_entity.OidSerie > 0)
            {
                SerieInstruccion_TB.Text = _series.GetItem(_entity.OidSerie).Nombre;
            }
            PgMng.Grow();

            Datos_Clases.DataSource = _entity.CExtras;
            PgMng.FillUp();
        }
예제 #18
0
        public override void PrintQRAction()
        {
            PgMng.Reset(4, 1, Face.Resources.Messages.LOADING_DATA, this);
            CobroReportMng reportMng = new CobroReportMng(AppContext.ActiveSchema, this.Text, FilterValues);

            reportMng.ShowQRCode = true;

            PgMng.Grow();
            CobroREAList cReas = CobroREAList.GetList(false);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);
            CobroREAListRpt report = reportMng.GetCobroREAListReport(CobroList.GetList((IList <CobroInfo>)Datos.List), cReas);

            PgMng.FillUp();

            ShowReport(report);
        }
        public override void ExportPDFAction()
        {
            if (ActiveItem == null)
            {
                return;
            }

            try
            {
                PgMng.Reset(9, 1, Face.Resources.Messages.RETRIEVING_DATA, this);

                OutputInvoiceReportMng reportMng = new OutputInvoiceReportMng(AppContext.ActiveSchema, this.Text, this.FilterValues);

                SerieInfo serie = SerieInfo.Get(ActiveItem.OidSerie, false);
                PgMng.Grow();

                ClienteInfo client = ClienteInfo.Get(ActiveItem.OidCliente, false);
                PgMng.Grow();

                TransporterInfo transporter = TransporterInfo.Get(ActiveItem.OidTransportista, ETipoAcreedor.TransportistaDestino, false);
                PgMng.Grow();

                FormatConfFacturaAlbaranReport conf = new FormatConfFacturaAlbaranReport();

                conf.nota            = (client.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();

                OutputInvoiceInfo item = OutputInvoiceInfo.Get(ActiveOID, true);
                PgMng.Grow();

                ReportClass report = reportMng.GetDetailReport(item, serie, client, transporter, conf);
                PgMng.Grow();

                ExportPDF(report, ActiveItem.FileName);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                PgMng.FillUp();
            }
        }
예제 #20
0
        protected override void DownloadAction()
        {
            if (CurrentDocumento == null)
            {
                return;
            }

            if (Browser.ShowDialog() == DialogResult.OK)
            {
                _destination_path = Browser.SelectedPath;
                _back_job         = BackJob.Download;
                PgMng.Reset(5, 1, Resources.Messages.CONNECTING_SERVER, this);
                //PgMng.StartBackJob(this);
                DoJob();
                PgMng.FillUp();
            }
        }
예제 #21
0
        public override void RefreshAction()
        {
            try
            {
                ResetTree();

                PgMng.Reset(BarSteps, 1, Resources.Messages.RETRIEVING_NOTIFICATIONS, _parent);

                RefreshMainData();
                BuildTree();

                FormMng.Instance.CloseAllForms(this);
            }
            finally
            {
                PgMng.FillUp();
            }
        }
예제 #22
0
 protected override void LoadStock()
 {
     if (_entity.Stocks.Count == 0)
     {
         PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
         try
         {
             PgMng.Grow();
             _entity.LoadChilds(typeof(Stock), true, true);
             PgMng.Grow();
             SelectStockAction(Datos_Productos.Current as ProductInfo);
         }
         finally
         {
             PgMng.FillUp();
         }
     }
 }
예제 #23
0
        public override void RefreshAction()
        {
            try
            {
                ResetTree();

                PgMng.Reset(BarSteps, 1, string.Empty, this);

                RefreshMainData();
                BuildTree();

                FormMngBase.Instance.CloseAllForms(this);
            }
            finally
            {
                PgMng.FillUp();
            }
        }
예제 #24
0
        protected virtual void LoadComponentsAction()
        {
            try
            {
                PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
                PgMng.Grow();

                EntityInfo.LoadChilds(typeof(Kit), false);
                Datos_Components.DataSource = EntityInfo.Components;
                PgMng.Grow();

                ControlsMng.UpdateBinding(Datos_Components);
            }
            finally
            {
                PgMng.FillUp();
            }
        }
        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);
            }
        }
예제 #26
0
        private void Submit_TI_Click(object sender, EventArgs e)
        {
            try
            {
                if (ProgressInfoMng.ShowQuestion("A continuación se generarán los apuntes bancarios asociados") == DialogResult.No)
                {
                    return;
                }

                RefreshAction();

                PgMng.Reset(5, 1, "Creando apuntes bancarios...", this);

                if (Apuntes_TV.TopNode.Nodes[PAGOS_PENDIENTES].Checked)
                {
                    PgMng.Grow("Creando apuntes bancarios de pagos");
                    Library.Invoice.ModuleController.CreateApuntesBancarios(CobrosVencidosList);
                }

                if (Apuntes_TV.TopNode.Nodes[COBROS_PENDIENTES].Checked)
                {
                    PgMng.Grow("Creando apuntes bancarios de pagos");
                    Library.Invoice.ModuleController.CreateApuntesBancarios(PagosVencidosList);
                }

                PgMng.Grow("Creando apuntes bancarios de pagos por tarjeta de crédito");
                foreach (PaymentList list in PagosTarjetasList)
                {
                    if (Apuntes_TV.TopNode.Nodes[PAGOS_TARJETA_PENDIENTES].Nodes[PagosTarjetasList.IndexOf(list)].Checked)
                    {
                        Library.Invoice.ModuleController.CreateApuntesBancarios(list);
                    }
                }

                PgMng.FillUp();

                RefreshAction();
            }
            catch (Exception ex)
            {
                PgMng.FillUp();
                throw ex;
            }
        }
        protected virtual void PrintPendienteAction()
        {
            if (Pendientes_DGW.CurrentRow == null)
            {
                return;
            }

            LineaFomentoInfo linea = Pendientes_DGW.CurrentRow.DataBoundItem as LineaFomentoInfo;

            PgMng.Reset(6, 1, Face.Resources.Messages.RETRIEVING_DATA, this);

            ExpedientReportMng reportMng = new ExpedientReportMng(AppContext.ActiveSchema, this.Text, string.Empty);

            ReportClass report = reportMng.GetLineaFomentoListReport(Datos_LineasPendientes.DataSource as LineaFomentoList);

            PgMng.FillUp();

            ShowReport(report);
        }
        protected virtual void PrintPendienteAction()
        {
            if (Pendientes_DGW.CurrentRow == null)
            {
                return;
            }

            FacREAInfo factura = Pendientes_DGW.CurrentRow.DataBoundItem as FacREAInfo;

            PgMng.Reset(6, 1, Face.Resources.Messages.RETRIEVING_DATA, this);

            ExpedientReportMng reportMng = new ExpedientReportMng(AppContext.ActiveSchema, this.Text, string.Empty);

            ReportClass report = reportMng.GetExpedienteREAListReport(ExpedienteREAList.GetList());

            PgMng.FillUp();

            ShowReport(report);
        }
예제 #29
0
        protected override void LoadWorkReports(bool reload = false)
        {
            if (_work_reports == null || reload)
            {
                PgMng.Reset(3, 1, Face.Resources.Messages.LOADING_DATA, this);
                try
                {
                    _work_reports            = WorkReportList.GetByExpedientList(_entity.Relations.ToChildsOidList(), false);
                    WorkReport_BS.DataSource = _work_reports;
                    PgMng.Grow(string.Empty);

                    UpdateWorkReportsTotals();
                }
                finally
                {
                    PgMng.FillUp();
                }
            }
        }
예제 #30
0
        protected virtual void ViewInformeVentasAction()
        {
            PgMng.Reset(3, 1, Face.Resources.Messages.RETRIEVING_DATA, this);
            PgMng.Grow();

            Library.Invoice.QueryConditions conditions = new Library.Invoice.QueryConditions {
                Expediente = EntityInfoNoChilds
            };

            VentasList list = VentasList.GetListByExpediente(conditions, true);

            PgMng.Grow(Face.Resources.Messages.BUILDING_REPORT);

            Library.Invoice.CommonReportMng reportMng = new Library.Invoice.CommonReportMng(AppContext.ActiveSchema, Resources.Labels.VENTAS_EXPEDIENTE_REPORT_TITLE, "Expediente = " + EntityInfoNoChilds.Codigo);
            InformeVentasExpedientesRpt     report    = reportMng.GetVentasExpedienteReport(list, true);

            PgMng.FillUp();
            ShowReport(report);
        }