public UI_Configuracion_general(int ln_modo, DevExpress.XtraBars.BarButtonItem opcionMenu, DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra, object objetoExtra1, object objetoExtra2, object objetoExtra3, object objetoExtra4) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); if (ln_modo == 1) { DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Preferencias del Usuario..."); lAccion = "Preferencias del Usuario - Editando"; } else { DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Configuracion General..."); lAccion = "Configuracion General - Editando"; } DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // Ln_modo = ln_modo; OpcionMenu = opcionMenu; HeaderMenu = headerMenu; ObjetoExtra = objetoExtra; ObjetoExtra1 = (DevExpress.XtraBars.BarButtonItem)objetoExtra1; ObjetoExtra2 = (DevExpress.XtraBars.BarButtonItem)objetoExtra2; ObjetoExtra3 = (DevExpress.XtraBars.BarButtonItem)objetoExtra3; ObjetoExtra4 = (DevExpress.XtraBars.BarButtonItem)objetoExtra4; lHeader_ant = HeaderMenu.Caption; }
public UI_Sesiones(DevExpress.XtraBars.BarButtonItem opcionMenu, ref DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra, object objetoExtra1, object objetoExtra2, object objetoExtra3, object objetoExtra4) : base(opcionMenu, ref headerMenu, objetoExtra, objetoExtra1, objetoExtra2, objetoExtra3, objetoExtra4) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Sesiones..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // this.lookUpEdit_sucursales.Properties.DataSource = Fundraising_PT.Clases.Setting_Sucursales.data_sucursales(); InitializeComponent(); // usuarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, true); //usuarios = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(PersistentCriteriaEvaluationBehavior.BeforeTransaction, DevExpress.Xpo.XpoDefault.Session, CriteriaOperator.Parse("1 = 1")); cajas = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajas>(DevExpress.Xpo.XpoDefault.Session, true); //cajas = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Cajas>(PersistentCriteriaEvaluationBehavior.BeforeTransaction, DevExpress.Xpo.XpoDefault.Session, CriteriaOperator.Parse(my_sucursal_filter)); cajeros = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajeros>(DevExpress.Xpo.XpoDefault.Session, true); //cajeros = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Cajeros>(PersistentCriteriaEvaluationBehavior.BeforeTransaction, DevExpress.Xpo.XpoDefault.Session, CriteriaOperator.Parse("1 = 1")); sucursales = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, true); //sucursales = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(PersistentCriteriaEvaluationBehavior.BeforeTransaction, DevExpress.Xpo.XpoDefault.Session, CriteriaOperator.Parse("1 = 1")); sesiones = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sesiones>(DevExpress.Xpo.XpoDefault.Session, true); //sesiones = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Sesiones>(PersistentCriteriaEvaluationBehavior.BeforeTransaction, DevExpress.Xpo.XpoDefault.Session, CriteriaOperator.Parse(my_sucursal_filter)); // bindingSource1.DataSource = sesiones; bindingSource1.Sort = "fecha_hora desc"; // }
public UI_Usuarios(DevExpress.XtraBars.BarButtonItem opcionMenu, ref DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra, object objetoExtra1, object objetoExtra2, object objetoExtra3, object objetoExtra4) : base(opcionMenu, ref headerMenu, objetoExtra, objetoExtra1, objetoExtra2, objetoExtra3, objetoExtra4) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Usuarios..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // InitializeComponent(); // usuarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, true); // //usuarios.Where(e => e.login.Trim() == "gustavo"); //usuarios.Reload(); //bindingSource1.DataSource = usuarios.Where(e => e.login.Trim() == "gustavo"); //bindingSource1.Filter.Where(e => e.login == "gustavo"); // this.lookUpEdit_sucursales.Properties.DataSource = Fundraising_PT.Clases.Setting_Sucursales.data_sucursales(); bindingSource1.DataSource = usuarios; bindingSource1.Sort = "usuario"; // this.textBox_clave.textEdit1.Properties.PasswordChar = char.Parse("*"); // }
public UI_Estado_Cuenta(DevExpress.XtraBars.BarButtonItem opcionMenu, DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Estado de Cuentas..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // OpcionMenu = opcionMenu; HeaderMenu = headerMenu; ObjetoExtra = objetoExtra; lHeader_ant = HeaderMenu.Caption; // CriteriaOperator filtro_status = (new OperandProperty("status") == new OperandValue(1)); DevExpress.Xpo.SortingCollection orden_formas_pagos = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_formas_pagos.Add(new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); DevExpress.Xpo.SortingCollection orden_saldos_recauda_dep = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("recaudador.usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_saldos_recauda_dep.Add(new DevExpress.Xpo.SortProperty("fecha_string", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_saldos_recauda_dep.Add(new DevExpress.Xpo.SortProperty("forma_pago.tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_saldos_recauda_dep.Add(new DevExpress.Xpo.SortProperty("forma_pago.codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); // saldos_recauda_dep = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Saldos_Recauda_dep>(DevExpress.Xpo.XpoDefault.Session); formas_pagos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Formas_Pagos>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); usuarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); // bindingSource_formas_pagos.DataSource = formas_pagos; bindingSource_usuarios.DataSource = usuarios; formas_pagos.Sorting = orden_formas_pagos; saldos_recauda_dep.Sorting = orden_saldos_recauda_dep; }
public UI_Sesion_Recauda(DevExpress.XtraBars.BarButtonItem opcionMenu, DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra, object objetoExtra1, object objetoExtra2, object objetoExtra3, object objetoExtra4) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Sesiones Activas..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // OpcionMenu = opcionMenu; HeaderMenu = headerMenu; ObjetoExtra = objetoExtra; ObjetoExtra1 = objetoExtra1; ObjetoExtra2 = objetoExtra2; ObjetoExtra3 = objetoExtra3; ObjetoExtra4 = objetoExtra4; lHeader_ant = HeaderMenu.Caption; // llena los datos de colecciones // CriteriaOperator filtro_sesiones = (new OperandProperty("status") == new OperandValue(1)) | (new OperandProperty("status") == new OperandValue(2)) | (new OperandProperty("status") == new OperandValue(3)) | (new OperandProperty("status") == new OperandValue(5)); sesiones = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sesiones>(DevExpress.Xpo.XpoDefault.Session, true); orden_sesiones = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("id_sesion", DevExpress.Xpo.DB.SortingDirection.Descending)); // bindeo de datos al bindingsource principal // string_filter_principal = Fundraising_PT.Properties.Settings.Default.sucursal_filter + " and (" + filtro_sesiones.ToString().Trim() + ")"; bindingSource1.DataSource = sesiones; sesiones.CriteriaString = string_filter_principal; sesiones.Sorting = orden_sesiones; sesiones.BeginLoad(true); }
public UI_Puntos_Bancarios(DevExpress.XtraBars.BarButtonItem opcionMenu, ref DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra, object objetoExtra1, object objetoExtra2, object objetoExtra3, object objetoExtra4) : base(opcionMenu, ref headerMenu, objetoExtra, objetoExtra1, objetoExtra2, objetoExtra3, objetoExtra4) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Puntos Bancarios..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // InitializeComponent(); // this.lookUpEdit_sucursales.Properties.DataSource = Fundraising_PT.Clases.Setting_Sucursales.data_sucursales(); puntos_bancarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Puntos_Bancarios>(DevExpress.Xpo.XpoDefault.Session, true); bindingSource1.DataSource = puntos_bancarios; bindingSource1.Sort = "banco_cuenta.codigo_cuenta"; // }
// public UI_Sucursales(DevExpress.XtraBars.BarButtonItem opcionMenu, ref DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra, object objetoExtra1, object objetoExtra2, object objetoExtra3, object objetoExtra4) : base(opcionMenu, ref headerMenu, objetoExtra, objetoExtra1, objetoExtra2, objetoExtra3, objetoExtra4) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Sucursales..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // InitializeComponent(); // sucursales = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, true); // bindingSource1.DataSource = sucursales; bindingSource1.Sort = "codigo"; // }
public UI_Report_Deposito(DevExpress.XtraBars.BarButtonItem opcionMenu, DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Reporte de Dépositos Bancarios..."); // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // OpcionMenu = opcionMenu; HeaderMenu = headerMenu; ObjetoExtra = objetoExtra; lHeader_ant = HeaderMenu.Caption; // CriteriaOperator filtro_status = (new OperandProperty("status") == new OperandValue(1)); CriteriaOperator filtro_depositos = CriteriaOperator.Parse("1 = 2"); SortProperty orden_depositos = (new DevExpress.Xpo.SortProperty("fecha_hora", DevExpress.Xpo.DB.SortingDirection.Ascending)); // orden_fecha_ascendente_depositos.Add(new DevExpress.Xpo.SortProperty("sucursal", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_fecha_ascendente_depositos.Add(new DevExpress.Xpo.SortProperty("banco_cuenta.banco.nombre", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_fecha_ascendente_depositos.Add(new DevExpress.Xpo.SortProperty("banco_cuenta.codigo_cuenta", DevExpress.Xpo.DB.SortingDirection.Ascending)); // orden_fecha_descendente_depositos.Add(new DevExpress.Xpo.SortProperty("sucursal", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_fecha_descendente_depositos.Add(new DevExpress.Xpo.SortProperty("banco_cuenta.banco.nombre", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_fecha_descendente_depositos.Add(new DevExpress.Xpo.SortProperty("banco_cuenta.codigo_cuenta", DevExpress.Xpo.DB.SortingDirection.Ascending)); // depositos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios>(DevExpress.Xpo.XpoDefault.Session, filtro_depositos, orden_depositos); depositos.Sorting = orden_fecha_ascendente_depositos; // sucursales = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); bancos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Bancos>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("nombre", DevExpress.Xpo.DB.SortingDirection.Ascending)); cuentas = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Bancos_Cuentas>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("codigo_cuenta", DevExpress.Xpo.DB.SortingDirection.Ascending)); responsables = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Responsable_depositos>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("nombre", DevExpress.Xpo.DB.SortingDirection.Ascending)); elaborados = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); revisados = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); // bindingSource_sucursales.DataSource = sucursales; bindingSource_banco.DataSource = bancos; bindingSource_cuenta.DataSource = cuentas; bindingSource_responsable.DataSource = responsables; bindingSource_elaborado.DataSource = elaborados; bindingSource_revisado.DataSource = revisados; }
public UI_Depositos_Bancarios_Det_Des(object form_padre, int lntipo, int parent_process, ref DataTable billetes, ref DataTable monedas, decimal ln_total_efectivo) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Desgloce de Billetes y Monedas (DEPOSITO-EFECTIVO)..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // // asignacion de valores a objetos publicos // Form_padre = form_padre; billetes_aux = billetes; monedas_aux = monedas; ln_total_efectivo_depositos_det = ln_total_efectivo; lAccion = "Desgloce de Billetes y Monedas (DEPOSITO-EFECTIVO)"; ln_parent_process = parent_process; // switch (ln_parent_process) { case 1: lHeader_ant = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).HeaderMenu.Caption; ln_modo = (((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).lAccion == "Insertar" ? 1 : ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).lAccion == "Editar" ? 2 : 0); lg_deposito = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).lg_deposito_bancario_aux; ln_total_general_deposito = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).ln_total_general; break; case 2: lHeader_ant = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios_Det)form_padre).lHeader_ant; ln_modo = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios_Det)form_padre).ln_modo; lg_deposito = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios_Det)form_padre).lg_deposito_bancario; ln_total_general_deposito = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)((Fundraising_PT.Formularios.UI_Depositos_Bancarios_Det)form_padre).Form_padre).ln_total_general; break; default: break; } // InitializeComponent(); // current_deposito = DevExpress.Xpo.XpoDefault.Session.GetObjectByKey <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios>(lg_deposito); this.SetStyle(ControlStyles.ResizeRedraw, true); // }
public UI_Totales_Ventas_Des(object form_padre, object form_anterior, DataTable Table_detalle_x_punto_bancaio, DataRow Datarow_gridView_totales_ventas_current) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Total Tarjetas x Puntos Bancarios..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // // asignacion de valores a objetos publicos // Form_padre = form_padre; Form_anterior = form_anterior; table_detalle_x_punto_bancaio = Table_detalle_x_punto_bancaio; datarow_gridView_totales_ventas_current = Datarow_gridView_totales_ventas_current; lHeader_ant = ((Fundraising_PT.Formularios.UI_Recaudaciones)form_padre).HeaderMenu.Caption; lAccion = "Total Tarjeta por Puntos Bancarios"; // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // }
public UI_Denominacion_Monedas(DevExpress.XtraBars.BarButtonItem opcionMenu, ref DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra, object objetoExtra1, object objetoExtra2, object objetoExtra3, object objetoExtra4) : base(opcionMenu, ref headerMenu, objetoExtra, objetoExtra1, objetoExtra2, objetoExtra3, objetoExtra4) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Denominación de Monedas..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // this.lookUpEdit_sucursales.Properties.DataSource = Fundraising_PT.Clases.Setting_Sucursales.data_sucursales(); InitializeComponent(); // Denominacion_Monedas = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Denominacion_Monedas>(DevExpress.Xpo.XpoDefault.Session, true); // DevExpress.Xpo.SortingCollection orden_denominacion_monedas = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("tipo", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_denominacion_monedas.Add(new DevExpress.Xpo.SortProperty("valor", DevExpress.Xpo.DB.SortingDirection.Descending)); Denominacion_Monedas.Sorting = orden_denominacion_monedas; // bindingSource1.DataSource = Denominacion_Monedas; // }
public UI_Totales_Ventas(object form_padre) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Totales Ventas..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // // asignacion de valores a objetos publicos // Form_padre = form_padre; ln_status_sesion = ((Fundraising_PTDM.FUNDRAISING_PT.Recaudaciones)((Fundraising_PT.Formularios.UI_Recaudaciones)form_padre).bindingSource1.Current).sesion.status; lg_recaudacion = ((Fundraising_PTDM.FUNDRAISING_PT.Recaudaciones)((Fundraising_PT.Formularios.UI_Recaudaciones)form_padre).bindingSource1.Current).oid; ln_status_totalventa = ((Fundraising_PTDM.FUNDRAISING_PT.Recaudaciones)((Fundraising_PT.Formularios.UI_Recaudaciones)form_padre).bindingSource1.Current).status_tv; ln_status_totalventa_ini = ((Fundraising_PTDM.FUNDRAISING_PT.Recaudaciones)((Fundraising_PT.Formularios.UI_Recaudaciones)form_padre).bindingSource1.Current).status_tv; lHeader_ant = ((Fundraising_PT.Formularios.UI_Recaudaciones)form_padre).HeaderMenu.Caption; lAccion = "Totales Ventas por Formas de Pago"; // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // // llena los datos de la coleccion de las formas de pago // CriteriaOperator filtro_status = (new OperandProperty("status") == new OperandValue(1)); DevExpress.Xpo.SortProperty orden_formas_pagos = (new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); formas_pagos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Formas_Pagos>(DevExpress.Xpo.XpoDefault.Session, filtro_status, orden_formas_pagos); puntos_bancarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Puntos_Bancarios>(DevExpress.Xpo.XpoDefault.Session, filtro_status, orden_formas_pagos); // // llena los datos de la coleccion de los totales x tarjetas y puntos de ventas filtrada x recaudacion // CriteriaOperator filtro_totales_ventas_des = (new OperandProperty("total_venta.recaudacion.oid") == new OperandValue(lg_recaudacion)); DevExpress.Xpo.SortProperty orden_totales_ventas_des = (new DevExpress.Xpo.SortProperty("punto_bancario.codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); totales_ventas_des = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Totales_Ventas_Des>(DevExpress.Xpo.XpoDefault.Session, filtro_totales_ventas_des, orden_totales_ventas_des); // llena los datos de la coleccion de los totales x formas de pago filtrada x recaudacion // CriteriaOperator filtro_totales_ventas = (new OperandProperty("recaudacion.oid") == new OperandValue(lg_recaudacion)); DevExpress.Xpo.SortProperty orden_totales_ventas = (new DevExpress.Xpo.SortProperty("forma_pago.tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); totales_ventas = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Totales_Ventas>(DevExpress.Xpo.XpoDefault.Session, filtro_totales_ventas, orden_totales_ventas); }
public UI_Report_Estado_Cuenta(DevExpress.XtraBars.BarButtonItem opcionMenu, DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Reporte del Estado de Cuenta (Recaudado-Dépositado)..."); // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // OpcionMenu = opcionMenu; HeaderMenu = headerMenu; ObjetoExtra = objetoExtra; lHeader_ant = HeaderMenu.Caption; // CriteriaOperator filtro_status = (new OperandProperty("status") == new OperandValue(1)); CriteriaOperator filtro_saldos_recauda_dep = CriteriaOperator.Parse("1 = 2"); DevExpress.Xpo.SortingCollection orden_formas_pagos = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_formas_pagos.Add(new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); DevExpress.Xpo.SortingCollection orden_saldos_recauda_dep = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("forma_pago.tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_saldos_recauda_dep.Add(new DevExpress.Xpo.SortProperty("recaudador.usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_saldos_recauda_dep.Add(new DevExpress.Xpo.SortProperty("forma_pago.codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_saldos_recauda_dep.Add(new DevExpress.Xpo.SortProperty("Substring(fecha_string,6,4)+Substring(fecha_string,3,2)+Substring(fecha_string,0,2)", DevExpress.Xpo.DB.SortingDirection.Ascending)); //orden_saldos_recauda_dep.Add(new DevExpress.Xpo.SortProperty("fecha_string", DevExpress.Xpo.DB.SortingDirection.Ascending)); // sucursales = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); saldos_recauda_dep = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Saldos_Recauda_dep>(DevExpress.Xpo.XpoDefault.Session, filtro_saldos_recauda_dep, new DevExpress.Xpo.SortProperty("forma_pago.tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); saldos_recauda_dep.Sorting = orden_saldos_recauda_dep; formas_pagos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Formas_Pagos>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); formas_pagos.Sorting = orden_formas_pagos; usuarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); // bindingSource_sucursales.DataSource = sucursales; bindingSource_recaudadores.DataSource = usuarios; bindingSource_formas_pagos.DataSource = formas_pagos; }
public UI_Report_Recauda(DevExpress.XtraBars.BarButtonItem opcionMenu, DevExpress.XtraBars.BarHeaderItem headerMenu, object objetoExtra) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); switch ((int)objetoExtra) { case 1: DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Reporte de Recaudaciones..."); break; case 2: DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Reporte de Totales de Ventas..."); break; case 3: DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Reporte de Diferencias (Ventas-Recaudaciones)..."); break; default: DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Reporte de Recaudaciones..."); break; } // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // OpcionMenu = opcionMenu; HeaderMenu = headerMenu; ObjetoExtra = objetoExtra; lHeader_ant = HeaderMenu.Caption; if (objetoExtra != null) { lntipo_reporte = (int)objetoExtra; } // orden_fecha_ascendente_recaudaciones.Add(new DevExpress.Xpo.SortProperty("sucursal", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_fecha_descendente_recaudaciones.Add(new DevExpress.Xpo.SortProperty("sucursal", DevExpress.Xpo.DB.SortingDirection.Ascending)); // CriteriaOperator filtro_status = (new OperandProperty("status") == new OperandValue(1)); CriteriaOperator filtro_recaudaciones = CriteriaOperator.Parse("1 = 2"); DevExpress.Xpo.SortingCollection orden_formas_pagos = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_formas_pagos.Add(new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); DevExpress.Xpo.SortProperty orden_recaudaciones = (new DevExpress.Xpo.SortProperty("fecha_hora", DevExpress.Xpo.DB.SortingDirection.Ascending)); // sucursales = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); recaudaciones = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Recaudaciones>(DevExpress.Xpo.XpoDefault.Session, filtro_recaudaciones, orden_recaudaciones); formas_pagos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Formas_Pagos>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); formas_pagos.Sorting = orden_formas_pagos; usuarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); cajas = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajas>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); cajeros = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajeros>(DevExpress.Xpo.XpoDefault.Session, filtro_status, new DevExpress.Xpo.SortProperty("cajero", DevExpress.Xpo.DB.SortingDirection.Ascending)); // bindingSource_sucursales.DataSource = sucursales; bindingSource_recaudadores.DataSource = usuarios; bindingSource_supersisores.DataSource = usuarios; bindingSource_cajas.DataSource = cajas; bindingSource_cajeros.DataSource = cajeros; bindingSource_formas_pagos.DataSource = formas_pagos; }
public UI_Depositos_Bancarios_Det(object form_padre, int lntpago) { WaitForm1 WaitForm1 = new WaitForm1(); DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(WaitForm1, typeof(WaitForm1), false, false, false); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("Saldos Pendientes para Depósitar..."); DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("Espere un momento por favor... Cargando y Validando Datos... ."); // // asignacion de valores a objetos publicos // Form_padre = form_padre; //totales_deposito_aux = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)Form_padre).totales_deposito; //Totales_deposito = totales_deposito; lg_deposito_bancario = ((Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios)((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).bindingSource1.Current).oid; ln_status_deposito = ((Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios)((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).bindingSource1.Current).status; ln_sucursal_dep_det = ((Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios)((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).bindingSource1.Current).sucursal; obj_headerMenu_ant = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).HeaderMenu; lHeader_ant = ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).HeaderMenu.Caption; lAccion = "Detalle del depósito por forma de pago"; ln_modo = (((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).lAccion == "Insertar" ? 1 : ((Fundraising_PT.Formularios.UI_Depositos_Bancarios)form_padre).lAccion == "Editar" ? 2 : 0); ln_tpago = lntpago; // InitializeComponent(); this.SetStyle(ControlStyles.ResizeRedraw, true); // // llena los datos de la coleccion de las formas de pago y usuarios // CriteriaOperator filtro_status = (new OperandProperty("status") == new OperandValue(1)); DevExpress.Xpo.SortProperty orden_formas_pagos = (new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); DevExpress.Xpo.SortProperty orden_usuarios = (new DevExpress.Xpo.SortProperty("usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); // formas_pagos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Formas_Pagos>(DevExpress.Xpo.XpoDefault.Session, filtro_status, orden_formas_pagos); // se crean las columnas al datatable de saldos /// saldos_formas_pagos.Columns.Add("oid_forma_pago", typeof(Guid)); saldos_formas_pagos.Columns.Add("oid_recaudador", typeof(Guid)); saldos_formas_pagos.Columns.Add("cod_forma_pago", typeof(string)); saldos_formas_pagos.Columns.Add("recaudador", typeof(string)); saldos_formas_pagos.Columns.Add("forma_pago", typeof(string)); saldos_formas_pagos.Columns.Add("monto_precargado", typeof(decimal)); saldos_formas_pagos.Columns.Add("monto", typeof(decimal)); saldos_formas_pagos.Columns.Add("saldo", typeof(decimal)); saldos_formas_pagos.PrimaryKey = new DataColumn[] { saldos_formas_pagos.Columns["oid_forma_pago"], saldos_formas_pagos.Columns["oid_recaudador"] }; // se crean las columnas a la vista que llenara los datos del datatable de saldos /// vsaldos_formas_pagos = new XPView(XpoDefault.Session, typeof(Fundraising_PTDM.FUNDRAISING_PT.Saldos_Recauda_dep)); vsaldos_formas_pagos.AddProperty("oid_forma_pago", "forma_pago.oid", true, true, DevExpress.Xpo.SortDirection.None); vsaldos_formas_pagos.AddProperty("oid_recaudador", "recaudador.oid", true, true, DevExpress.Xpo.SortDirection.None); vsaldos_formas_pagos.AddProperty("cod_forma_pago", "forma_pago.codigo", true, true, DevExpress.Xpo.SortDirection.Ascending); vsaldos_formas_pagos.AddProperty("recaudador", "recaudador.usuario", true, true, DevExpress.Xpo.SortDirection.Ascending); vsaldos_formas_pagos.AddProperty("forma_pago", "forma_pago.nombre", true, true, DevExpress.Xpo.SortDirection.None); vsaldos_formas_pagos.AddProperty("recaudado", "Sum(recaudado)", false, true, DevExpress.Xpo.SortDirection.None); vsaldos_formas_pagos.AddProperty("depositado", "Sum(depositado)", false, true, DevExpress.Xpo.SortDirection.None); vsaldos_formas_pagos.AddProperty("saldo", "Sum(recaudado-depositado)", false, true, DevExpress.Xpo.SortDirection.None); // llena los datos de la coleccion del detalle del deposito // filtro_deposito_bancario_det = (new OperandProperty("deposito_bancario.oid") == new OperandValue(lg_deposito_bancario) & new OperandProperty("forma_pago.tpago") == new OperandValue(ln_tpago)); DevExpress.Xpo.SortProperty orden_deposito_bancario_det = (new DevExpress.Xpo.SortProperty("forma_pago.tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); DevExpress.Xpo.SortingCollection orden_deposito_bancario_det1 = new DevExpress.Xpo.SortingCollection(new DevExpress.Xpo.SortProperty("forma_pago.tpago", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_deposito_bancario_det1.Add(new DevExpress.Xpo.SortProperty("forma_pago.codigo", DevExpress.Xpo.DB.SortingDirection.Ascending)); orden_deposito_bancario_det1.Add(new DevExpress.Xpo.SortProperty("recaudador.usuario", DevExpress.Xpo.DB.SortingDirection.Ascending)); // depositos_bancarios_det = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(DevExpress.Xpo.XpoDefault.Session, filtro_deposito_bancario_det, orden_deposito_bancario_det); depositos_bancarios_det.Sorting = orden_deposito_bancario_det1; // seteo_nivel_seguridad(); // // bindeo de datos a los bindingsource principales // bindingSource_recaudador.DataSource = usuarios; bindingSource_depositos_bancarios_det.DataSource = depositos_bancarios_det; }
public WaitPresenter(WaitForm1 view) { _view = view; }