private void UI_Configuracion_general_Load(object sender, EventArgs e) { if (Ln_modo == 1) { Text = "Preferencias del Usuario"; labelControl_titulo.Text = "Preferencias del Usuario"; label_nombre_sucursal.Visible = true; label_time_new_sesion.Visible = false; label_time_new_sesion2.Visible = false; label_activasonido.Visible = false; lookUpEdit_sucursal.Visible = true; spinEdit_time_new_sesion.Visible = false; lookUp_activa_audio.Visible = false; } else { this.Text = "Configuracion General"; this.labelControl_titulo.Text = "Configuracion General"; label_nombre_sucursal.Visible = false; label_time_new_sesion.Visible = true; label_time_new_sesion2.Visible = true; label_activasonido.Visible = true; lookUpEdit_sucursal.Visible = false; spinEdit_time_new_sesion.Visible = true; lookUp_activa_audio.Visible = true; } sucursales = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, (new OperandProperty("status") == new OperandValue(1)), (new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending))); sucursales.LoadingEnabled = true; sucursales.Reload(); // configuracion = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Configuracion>(DevExpress.Xpo.XpoDefault.Session, true); configuracion.LoadingEnabled = true; configuracion.Reload(); // bindingSource_sucursales.DataSource = sucursales; bindingSource_configuraciongeneral.DataSource = configuracion; // if (bindingSource_configuraciongeneral.Count > 0) { if (((Fundraising_PTDM.FUNDRAISING_PT.Configuracion)bindingSource_configuraciongeneral.Current).sucursal != null) { lookUpEdit_sucursal.EditValue = ((Fundraising_PTDM.FUNDRAISING_PT.Configuracion)bindingSource_configuraciongeneral.Current).sucursal.oid; current_sucursal_inicial = ((Fundraising_PTDM.FUNDRAISING_PT.Configuracion)bindingSource_configuraciongeneral.Current).sucursal; } } // lookUp_activa_audio.gridLookUpEdit1View.OptionsBehavior.AutoPopulateColumns = true; lookUp_activa_audio.gridLookUpEdit1.Properties.DataSource = Fundraising_PTDM.Enums.GetListValue(lookUp_activa_audio.Enum); lookUp_activa_audio.gridLookUpEdit1.Properties.DisplayMember = "Descripcion"; lookUp_activa_audio.gridLookUpEdit1.Properties.ValueMember = "Valor"; lookUp_activa_audio.gridLookUpEdit1.DataBindings.Clear(); lookUp_activa_audio.gridLookUpEdit1.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", bindingSource_configuraciongeneral, "activa_audio", true, DataSourceUpdateMode.Never)); // spinEdit_time_new_sesion.DataBindings.Clear(); spinEdit_time_new_sesion.DataBindings.Add(new System.Windows.Forms.Binding("Value", bindingSource_configuraciongeneral, "time_new_sesion", true, DataSourceUpdateMode.Never)); // simpleButton_guardar.Click += new EventHandler(simpleButton_guardar_Click); simpleButton_salir.Click += new EventHandler(simpleButton_salir_Click); DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm(false, 0, null); }
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_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("*"); // }
private void barButtonItem_sesiones_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajas> cajas = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajas>(DevExpress.Xpo.XpoDefault.Session); DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajeros> cajeros = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Cajeros>(DevExpress.Xpo.XpoDefault.Session); // if (cajas.Count > 0) { cajas.Dispose(); if (cajeros.Count > 0) { cajeros.Dispose(); this.barButtonItem_sesiones.Enabled = false; OpenForm(new Fundraising_PT.Formularios.UI_Sesiones(this.barButtonItem_sesiones, ref this.barHeaderItem1, this.ribbonControl1, null, null, null, null)); } else { MessageBox.Show("No existen cajeros cargadas en el sistema," + Environment.NewLine + "Favor cargar al menos uno para utilizar Sesiones.", "Sesiones", MessageBoxButtons.OK, MessageBoxIcon.Information); cajeros.Dispose(); } } else { MessageBox.Show("No existen cajas cargadas en el sistema," + Environment.NewLine + "Favor cargar al menos una para utilizar Sesiones.", "Sesiones", MessageBoxButtons.OK, MessageBoxIcon.Information); cajas.Dispose(); cajeros.Dispose(); } }
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_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); }
void LoadData() { _UnitOfWork = new DevExpress.Xpo.UnitOfWork(); var xpCollection = new DevExpress.Xpo.XPCollection <XPOIssues.Issues.User>(_UnitOfWork); xpCollection.Sorting.Add(new DevExpress.Xpo.SortProperty(nameof(XPOIssues.Issues.User.Oid), DevExpress.Xpo.DB.SortingDirection.Ascending)); grid.ItemsSource = xpCollection; }
void loadSavedMarkers(DevExpress.Xpo.XPCollection <OpisZdjecia> opisZdjeciaCollection) { foreach (var opis in opisZdjeciaCollection) { var marker = new RectangleMarker(control, new Rectangle(opis.XPos - 50, opis.YPos, 100, 100)); rectangleMarkers.Add(marker); } }
void repositoryItemButtonEdit1_Click(object sender, EventArgs e) { if ((int)this.gridView_totales_ventas.GetFocusedDataRow()["tpago"] == 2) { Guid lg_oid = new Guid(); DataTable puntos_bancarios_aux = new DataTable(); DataRow datarow_gridView_totales_ventas; DataRow datarow_table_totales_formas_pagos; datarow_gridView_totales_ventas = this.gridView_totales_ventas.GetFocusedDataRow(); lg_oid = ((Guid)datarow_gridView_totales_ventas["oid"]); datarow_table_totales_formas_pagos = totales_formas_pagos.Rows.Find(lg_oid); lg_total_venta = ((Guid)datarow_table_totales_formas_pagos["oid_tv"]); puntos_bancarios_aux = ((DataTable)datarow_table_totales_formas_pagos["datatable_puntos_bancarios"]); // se crean las columnas al datatable del desgloce por puntos bancarios si no se han creeado // if (puntos_bancarios_aux.Columns.Count <= 0) { puntos_bancarios_aux.Columns.Add("oid", typeof(Guid)); puntos_bancarios_aux.Columns.Add("codigo", typeof(string)); puntos_bancarios_aux.Columns.Add("descr", typeof(string)); puntos_bancarios_aux.Columns.Add("monto_manual_des", typeof(decimal)); puntos_bancarios_aux.PrimaryKey = new DataColumn[] { puntos_bancarios_aux.Columns["oid"] }; } // llena datatable del desgloce por puntos bancarios si no se ha cargado // if (puntos_bancarios_aux.Rows.Count <= 0) { // carga datos del collection puntos bancarios al datatable del desgloce por puntos bancarios // foreach (var item_puntos_bancarios in puntos_bancarios) { ln_monto_punto = 0; CriteriaOperator filtro_totales_ventas_des_aux = (new OperandProperty("total_venta.oid") == new OperandValue(lg_total_venta) & new OperandProperty("punto_bancario.oid") == new OperandValue(item_puntos_bancarios.oid)); totales_ventas_des_aux = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Totales_Ventas_Des>(totales_ventas_des, filtro_totales_ventas_des_aux); if (totales_ventas_des_aux != null & totales_ventas_des_aux.Count > 0) { ln_monto_punto = totales_ventas_des_aux[0].monto_manual_des; } // puntos_bancarios_aux.Rows.Add(item_puntos_bancarios.oid, item_puntos_bancarios.codigo, item_puntos_bancarios.descr, ln_monto_punto); } } // Formularios.UI_Totales_Ventas_Des form_totales_ventas_des = new Fundraising_PT.Formularios.UI_Totales_Ventas_Des(Form_padre, this, puntos_bancarios_aux, datarow_gridView_totales_ventas); //form_totales_ventas_des.MdiParent = this.MdiParent; this.gridControl_totales_ventas.Enabled = false; this.simpleButton_ajustar.Enabled = false; this.simpleButton_aceptar.Enabled = false; this.simpleButton_cancelar.Enabled = false; this.simpleButton_salir.Enabled = false; this.ControlBox = false; //form_totales_ventas_des.Show(); form_totales_ventas_des.ShowDialog(this); } else { MessageBox.Show("Detalle Tarjeta x Puntos bancarios solo para formas de pago: (TIPO: TARJETAS)", "Detalle Tarjeta x Puntos bancarios"); } }
public async Task <IEnumerable <Item> > GetItemsAsync(bool forceRefresh = false) { items.Clear(); var mockItems = new DevExpress.Xpo.XPCollection <Item>(); foreach (var item in mockItems) { items.Add(item); } return(await Task.FromResult(items)); }
private void seteo_nivel_seguridad() { switch (Fundraising_PT.Properties.Settings.Default.U_tipo) { case 1: filtro_usuarios = (new OperandProperty("status") == new OperandValue(1)); usuarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_usuarios, orden_usuarios); if (usuarios.Count > 0) { lg_recaudador = usuarios[0].oid; } else { lg_recaudador = Guid.Empty; } // this.checkEdit_todos.CheckState = CheckState.Checked; label_recaudador.Visible = true; checkEdit_todos.Visible = true; checkEdit_todos.Enabled = true; lookUpEdit_recaudador.Visible = true; lookUpEdit_recaudador.Enabled = true; break; default: filtro_usuarios = (new OperandProperty("status") == new OperandValue(1) & new OperandProperty("oid") == new OperandValue(Fundraising_PT.Properties.Settings.Default.U_oid)); usuarios = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_usuarios, orden_usuarios); if (usuarios.Count > 0) { lg_recaudador = usuarios[0].oid; } else { lg_recaudador = Guid.Empty; } // this.checkEdit_todos.CheckState = CheckState.Unchecked; label_recaudador.Visible = false; checkEdit_todos.Visible = false; checkEdit_todos.Enabled = false; lookUpEdit_recaudador.Visible = false; lookUpEdit_recaudador.Enabled = false; break; } recaudador_change(); }
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; }
private static bool Occupato(DevExpress.Xpo.XPCollection xPCollection, DateTime inizio, int durataSlot) { DateTime fine = inizio + new TimeSpan(0, durataSlot, 0); foreach (Prenotazione item in xPCollection) { if (inizio >= item.StartDate && item.EndDate > inizio) { return(true); } if (fine >= item.StartDate && item.EndDate > fine) { return(true); } } return(false); }
public MockDataStore() { items = new List <Item>(); //var mockItems = new List<Item> //{ // new Item { Id = Guid.NewGuid().ToString(), Text = "First item", Description="This is an item description." }, // new Item { Id = Guid.NewGuid().ToString(), Text = "Second item", Description="This is an item description." }, // new Item { Id = Guid.NewGuid().ToString(), Text = "Third item", Description="This is an item description." }, // new Item { Id = Guid.NewGuid().ToString(), Text = "Fourth item", Description="This is an item description." }, // new Item { Id = Guid.NewGuid().ToString(), Text = "Fifth item", Description="This is an item description." }, // new Item { Id = Guid.NewGuid().ToString(), Text = "Sixth item", Description="This is an item description." } //}; var mockItems = new DevExpress.Xpo.XPCollection <Item>(); foreach (var item in mockItems) { items.Add(item); } }
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; // }
private void barButtonItem_sesiones_recauda_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sesiones> sesiones = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sesiones>(DevExpress.Xpo.XpoDefault.Session); DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Formas_Pagos> formas_pagos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Formas_Pagos>(DevExpress.Xpo.XpoDefault.Session); // if (sesiones.Count > 0) { sesiones.Dispose(); if (formas_pagos.Count > 0) { formas_pagos.Dispose(); //this.barButtonItem_sesiones_recauda.Enabled = false; //this.barButtonItem_recaudaciones.Enabled = false; //// gv1 30/12/2015 // //this.barButtonItem_configuracion_salir.Enabled = false; //this.barButtonItem_datos_salir.Enabled = false; //this.barButtonItem_procesos_salir.Enabled = false; //this.barButtonItem_reportes_salir.Enabled = false; //// gv1 30/12/2015 // //OpenForm(new Formularios.UI_Sesion_Recauda(this.barButtonItem_sesiones_recauda, this.barHeaderItem1, this.barButtonItem_recaudaciones, this.barButtonItem_configuracion_salir, this.barButtonItem_datos_salir, this.barButtonItem_procesos_salir, this.barButtonItem_reportes_salir)); OpenForm(new Formularios.UI_Sesion_Recauda(this.barButtonItem_sesiones_recauda, this.barHeaderItem1, this.ribbonControl1, null, null, null, null)); } else { MessageBox.Show("No existen formas de pago cargadas en el sistema," + Environment.NewLine + "Favor cargar al menos una para utilizar Nueva Recaudación.", "Nueva Recaudación", MessageBoxButtons.OK, MessageBoxIcon.Information); formas_pagos.Dispose(); } } else { MessageBox.Show("No existen sesiones cargadas en el sistema," + Environment.NewLine + "Favor cargar al menos una para utilizar Nueva Recaudación.", "Nueva Recaudación", MessageBoxButtons.OK, MessageBoxIcon.Information); sesiones.Dispose(); formas_pagos.Dispose(); } }
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); }
private void carga_totales_ventas() { lg_total_venta = new Guid(); lg_forma_pago = new Guid(); if (totales_formas_pagos.Rows.Count > 0) { // carga datos de los totales x formas de pago // foreach (DataRow row_tot_fp in totales_formas_pagos.Rows) { lg_forma_pago = Guid.Parse(row_tot_fp[1].ToString()); // CriteriaOperator filtro_fpago = (new OperandProperty("forma_pago.oid") == new OperandValue(lg_forma_pago)); totales_ventas_aux = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Totales_Ventas>(totales_ventas, filtro_fpago); // if (totales_ventas_aux != null & totales_ventas_aux.Count > 0) { row_tot_fp["oid_tv"] = totales_ventas_aux[0].oid; row_tot_fp["monto_manual"] = totales_ventas_aux[0].monto_manual; } } } ln_total_ventas = totales_formas_pagos.AsEnumerable().Sum((tot_ventas) => tot_ventas.Field <decimal>("monto_manual")); }
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; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PicQueryForm)); this.timeFrom = new DevExpress.XtraEditors.TimeEdit(); this.timeTo = new DevExpress.XtraEditors.TimeEdit(); this.faceImageList = new System.Windows.Forms.ImageList(this.components); this.imageList2 = new System.Windows.Forms.ImageList(this.components); this.currentFace = new DevExpress.XtraEditors.PictureEdit(); this.portraits = new DevExpress.Xpo.XPCollection(); this.barManager1 = new DevExpress.XtraBars.BarManager(this.components); this.bar3 = new DevExpress.XtraBars.Bar(); this.status = new DevExpress.XtraBars.BarStaticItem(); this.barDockControlTop = new DevExpress.XtraBars.BarDockControl(); this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); this.barDockControlRight = new DevExpress.XtraBars.BarDockControl(); this.dockManager1 = new DevExpress.XtraBars.Docking.DockManager(this.components); this.dockPanel3 = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel3_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.labelControl6 = new DevExpress.XtraEditors.LabelControl(); this.labelControl5 = new DevExpress.XtraEditors.LabelControl(); this.queryBtn = new DevExpress.XtraEditors.SimpleButton(); this.panelContainer1 = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel2 = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel2_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.dockPanel1 = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.wholePicture = new DevExpress.XtraEditors.PictureEdit(); this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem(); this.galleryControl1 = new DevExpress.XtraBars.Ribbon.GalleryControl(); this.galleryControlClient1 = new DevExpress.XtraBars.Ribbon.GalleryControlClient(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.currPage = new DevExpress.XtraEditors.LabelControl(); this.navigator = new DevExpress.XtraEditors.ControlNavigator(); this.playRelatedVideo = new DevExpress.XtraEditors.SimpleButton(); this.panelControl4 = new DevExpress.XtraEditors.PanelControl(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); ((System.ComponentModel.ISupportInitialize)(this.timeFrom.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.timeTo.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.currentFace.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.portraits)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).BeginInit(); this.dockPanel3.SuspendLayout(); this.dockPanel3_Container.SuspendLayout(); this.panelContainer1.SuspendLayout(); this.dockPanel2.SuspendLayout(); this.dockPanel2_Container.SuspendLayout(); this.dockPanel1.SuspendLayout(); this.dockPanel1_Container.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.wholePicture.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.galleryControl1)).BeginInit(); this.galleryControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).BeginInit(); this.panelControl4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); this.panelControl2.SuspendLayout(); this.SuspendLayout(); // // timeFrom // this.timeFrom.EditValue = new System.DateTime(2009, 5, 7, 0, 0, 0, 0); this.timeFrom.Location = new System.Drawing.Point(51, 20); this.timeFrom.Name = "timeFrom"; this.timeFrom.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.timeFrom.Properties.Mask.EditMask = "F"; this.timeFrom.Size = new System.Drawing.Size(206, 21); this.timeFrom.TabIndex = 7; // // timeTo // this.timeTo.EditValue = new System.DateTime(2009, 5, 7, 0, 0, 0, 0); this.timeTo.Location = new System.Drawing.Point(352, 20); this.timeTo.Name = "timeTo"; this.timeTo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.timeTo.Properties.Mask.EditMask = "F"; this.timeTo.Size = new System.Drawing.Size(198, 21); this.timeTo.TabIndex = 8; // // faceImageList // this.faceImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.faceImageList.ImageSize = new System.Drawing.Size(80, 60); this.faceImageList.TransparentColor = System.Drawing.Color.Transparent; // // imageList2 // this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.imageList2.ImageSize = new System.Drawing.Size(80, 60); this.imageList2.TransparentColor = System.Drawing.Color.Transparent; // // currentFace // this.currentFace.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.portraits, "ImageCopy", true)); this.currentFace.Dock = System.Windows.Forms.DockStyle.Fill; this.currentFace.Location = new System.Drawing.Point(0, 0); this.currentFace.MenuManager = this.barManager1; this.currentFace.Name = "currentFace"; this.currentFace.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom; this.currentFace.Size = new System.Drawing.Size(341, 196); this.currentFace.TabIndex = 4; // // portraits // this.portraits.ObjectType = typeof(Damany.PortraitCapturer.DAL.DTO.Portrait); // // barManager1 // this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] { this.bar3}); this.barManager1.DockControls.Add(this.barDockControlTop); this.barManager1.DockControls.Add(this.barDockControlBottom); this.barManager1.DockControls.Add(this.barDockControlLeft); this.barManager1.DockControls.Add(this.barDockControlRight); this.barManager1.DockManager = this.dockManager1; this.barManager1.Form = this; this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.status, this.barButtonItem1, this.barButtonItem2}); this.barManager1.MaxItemId = 3; this.barManager1.StatusBar = this.bar3; // // bar3 // this.bar3.BarName = "Status bar"; this.bar3.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Bottom; this.bar3.DockCol = 0; this.bar3.DockRow = 0; this.bar3.DockStyle = DevExpress.XtraBars.BarDockStyle.Bottom; this.bar3.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.status)}); this.bar3.OptionsBar.AllowQuickCustomization = false; this.bar3.OptionsBar.DrawDragBorder = false; this.bar3.OptionsBar.UseWholeRow = true; this.bar3.Text = "Status bar"; // // status // this.status.Caption = "就绪"; this.status.Id = 0; this.status.Name = "status"; this.status.TextAlignment = System.Drawing.StringAlignment.Near; // // barDockControlTop // this.barDockControlTop.CausesValidation = false; this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top; this.barDockControlTop.Location = new System.Drawing.Point(0, 0); this.barDockControlTop.Size = new System.Drawing.Size(918, 0); // // barDockControlBottom // this.barDockControlBottom.CausesValidation = false; this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.barDockControlBottom.Location = new System.Drawing.Point(0, 546); this.barDockControlBottom.Size = new System.Drawing.Size(918, 27); // // barDockControlLeft // this.barDockControlLeft.CausesValidation = false; this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left; this.barDockControlLeft.Location = new System.Drawing.Point(0, 0); this.barDockControlLeft.Size = new System.Drawing.Size(0, 546); // // barDockControlRight // this.barDockControlRight.CausesValidation = false; this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right; this.barDockControlRight.Location = new System.Drawing.Point(918, 0); this.barDockControlRight.Size = new System.Drawing.Size(0, 546); // // dockManager1 // this.dockManager1.Form = this; this.dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { this.dockPanel3, this.panelContainer1}); this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl"}); // // dockPanel3 // this.dockPanel3.Controls.Add(this.dockPanel3_Container); this.dockPanel3.Dock = DevExpress.XtraBars.Docking.DockingStyle.Top; this.dockPanel3.FloatVertical = true; this.dockPanel3.ID = new System.Guid("63335e45-2cfc-4788-abb7-e0cc172b6540"); this.dockPanel3.Location = new System.Drawing.Point(0, 0); this.dockPanel3.Name = "dockPanel3"; this.dockPanel3.Options.AllowFloating = false; this.dockPanel3.Options.ShowAutoHideButton = false; this.dockPanel3.Options.ShowCloseButton = false; this.dockPanel3.OriginalSize = new System.Drawing.Size(200, 96); this.dockPanel3.Size = new System.Drawing.Size(918, 96); this.dockPanel3.Text = "搜索条件"; // // dockPanel3_Container // this.dockPanel3_Container.Controls.Add(this.labelControl6); this.dockPanel3_Container.Controls.Add(this.timeTo); this.dockPanel3_Container.Controls.Add(this.timeFrom); this.dockPanel3_Container.Controls.Add(this.labelControl5); this.dockPanel3_Container.Controls.Add(this.queryBtn); this.dockPanel3_Container.Location = new System.Drawing.Point(4, 23); this.dockPanel3_Container.Name = "dockPanel3_Container"; this.dockPanel3_Container.Size = new System.Drawing.Size(910, 69); this.dockPanel3_Container.TabIndex = 0; // // labelControl6 // this.labelControl6.Location = new System.Drawing.Point(322, 23); this.labelControl6.Name = "labelControl6"; this.labelControl6.Size = new System.Drawing.Size(24, 14); this.labelControl6.TabIndex = 11; this.labelControl6.Text = "到:"; // // labelControl5 // this.labelControl5.Location = new System.Drawing.Point(16, 24); this.labelControl5.Name = "labelControl5"; this.labelControl5.Size = new System.Drawing.Size(24, 14); this.labelControl5.TabIndex = 10; this.labelControl5.Text = "从:"; // // queryBtn // this.queryBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.queryBtn.Location = new System.Drawing.Point(806, 14); this.queryBtn.Name = "queryBtn"; this.queryBtn.Size = new System.Drawing.Size(87, 27); this.queryBtn.TabIndex = 9; this.queryBtn.Text = "查询"; this.queryBtn.Click += new System.EventHandler(this.queryBtn_Click); // // panelContainer1 // this.panelContainer1.Controls.Add(this.dockPanel2); this.panelContainer1.Controls.Add(this.dockPanel1); this.panelContainer1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right; this.panelContainer1.ID = new System.Guid("fe5214ec-e932-4925-ba0b-91e301ff69aa"); this.panelContainer1.Location = new System.Drawing.Point(569, 96); this.panelContainer1.Name = "panelContainer1"; this.panelContainer1.OriginalSize = new System.Drawing.Size(349, 200); this.panelContainer1.Size = new System.Drawing.Size(349, 450); this.panelContainer1.Text = "panelContainer1"; // // dockPanel2 // this.dockPanel2.Controls.Add(this.dockPanel2_Container); this.dockPanel2.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill; this.dockPanel2.ID = new System.Guid("bbe3b38f-0089-4a8d-a0d6-7f49fecb50e7"); this.dockPanel2.Location = new System.Drawing.Point(0, 0); this.dockPanel2.Name = "dockPanel2"; this.dockPanel2.Options.ShowCloseButton = false; this.dockPanel2.OriginalSize = new System.Drawing.Size(407, 220); this.dockPanel2.Size = new System.Drawing.Size(349, 223); this.dockPanel2.Text = "放大"; // // dockPanel2_Container // this.dockPanel2_Container.Controls.Add(this.currentFace); this.dockPanel2_Container.Location = new System.Drawing.Point(4, 23); this.dockPanel2_Container.Name = "dockPanel2_Container"; this.dockPanel2_Container.Size = new System.Drawing.Size(341, 196); this.dockPanel2_Container.TabIndex = 0; // // dockPanel1 // this.dockPanel1.Controls.Add(this.dockPanel1_Container); this.dockPanel1.Dock = DevExpress.XtraBars.Docking.DockingStyle.Fill; this.dockPanel1.ID = new System.Guid("7c1444f7-4c06-4293-acc6-c4a6e7b06b5a"); this.dockPanel1.Location = new System.Drawing.Point(0, 223); this.dockPanel1.Name = "dockPanel1"; this.dockPanel1.Options.ShowCloseButton = false; this.dockPanel1.OriginalSize = new System.Drawing.Size(349, 226); this.dockPanel1.Size = new System.Drawing.Size(349, 227); this.dockPanel1.Text = "全景"; // // dockPanel1_Container // this.dockPanel1_Container.Controls.Add(this.wholePicture); this.dockPanel1_Container.Location = new System.Drawing.Point(4, 23); this.dockPanel1_Container.Name = "dockPanel1_Container"; this.dockPanel1_Container.Size = new System.Drawing.Size(341, 200); this.dockPanel1_Container.TabIndex = 0; // // wholePicture // this.wholePicture.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", this.portraits, "Frame.ImageCopy", true)); this.wholePicture.Dock = System.Windows.Forms.DockStyle.Fill; this.wholePicture.Location = new System.Drawing.Point(0, 0); this.wholePicture.Name = "wholePicture"; this.wholePicture.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom; this.wholePicture.Size = new System.Drawing.Size(341, 200); this.wholePicture.TabIndex = 0; // // barButtonItem1 // this.barButtonItem1.Caption = "相关视频"; this.barButtonItem1.Id = 1; this.barButtonItem1.Name = "barButtonItem1"; // // barButtonItem2 // this.barButtonItem2.Caption = "另存图片"; this.barButtonItem2.Id = 2; this.barButtonItem2.Name = "barButtonItem2"; // // galleryControl1 // this.galleryControl1.Controls.Add(this.galleryControlClient1); this.galleryControl1.DesignGalleryGroupIndex = 0; this.galleryControl1.DesignGalleryItemIndex = 0; this.galleryControl1.Dock = System.Windows.Forms.DockStyle.Fill; // // galleryControl1 // this.galleryControl1.Gallery.HoverImageSize = new System.Drawing.Size(128, 128); this.galleryControl1.Gallery.ImageSize = new System.Drawing.Size(64, 64); this.galleryControl1.Gallery.ItemCheckMode = DevExpress.XtraBars.Ribbon.Gallery.ItemCheckMode.SingleCheck; this.galleryControl1.Gallery.ItemImageLayout = DevExpress.Utils.Drawing.ImageLayoutMode.ZoomInside; this.galleryControl1.Location = new System.Drawing.Point(2, 40); this.galleryControl1.LookAndFeel.SkinName = "Darkroom"; this.galleryControl1.Name = "galleryControl1"; this.galleryControl1.Size = new System.Drawing.Size(565, 370); this.galleryControl1.TabIndex = 10; this.galleryControl1.Text = "galleryControl1"; // // galleryControlClient1 // this.galleryControlClient1.GalleryControl = this.galleryControl1; this.galleryControlClient1.Location = new System.Drawing.Point(2, 2); this.galleryControlClient1.Size = new System.Drawing.Size(544, 366); // // panelControl1 // this.panelControl1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panelControl1.Controls.Add(this.currPage); this.panelControl1.Controls.Add(this.navigator); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelControl1.Location = new System.Drawing.Point(2, 410); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(565, 38); this.panelControl1.TabIndex = 1; // // currPage // this.currPage.Location = new System.Drawing.Point(208, 10); this.currPage.Name = "currPage"; this.currPage.Size = new System.Drawing.Size(51, 14); this.currPage.TabIndex = 34; this.currPage.Text = "第 0/0 页"; // // navigator // this.navigator.Buttons.Append.Visible = false; this.navigator.Buttons.CancelEdit.Visible = false; this.navigator.Buttons.Edit.Visible = false; this.navigator.Buttons.EndEdit.Visible = false; this.navigator.Buttons.First.Hint = "跳至第1页"; this.navigator.Buttons.Last.Hint = "跳至最后一页"; this.navigator.Buttons.Next.Visible = false; this.navigator.Buttons.NextPage.Hint = "后一页"; this.navigator.Buttons.Prev.Visible = false; this.navigator.Buttons.PrevPage.Hint = "前一页"; this.navigator.Buttons.Remove.Visible = false; this.navigator.Location = new System.Drawing.Point(6, 6); this.navigator.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); this.navigator.Name = "navigator"; this.navigator.Size = new System.Drawing.Size(181, 28); this.navigator.TabIndex = 32; this.navigator.Text = "controlNavigator1"; this.navigator.ButtonClick += new DevExpress.XtraEditors.NavigatorButtonClickEventHandler(this.navigator_ButtonClick); // // playRelatedVideo // this.playRelatedVideo.Location = new System.Drawing.Point(14, 5); this.playRelatedVideo.Name = "playRelatedVideo"; this.playRelatedVideo.Size = new System.Drawing.Size(87, 27); this.playRelatedVideo.TabIndex = 7; this.playRelatedVideo.Text = "相关视频"; this.playRelatedVideo.Click += new System.EventHandler(this.toolStripButtonPlayVideo_Click); // // panelControl4 // this.panelControl4.Controls.Add(this.galleryControl1); this.panelControl4.Controls.Add(this.panelControl2); this.panelControl4.Controls.Add(this.panelControl1); this.panelControl4.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl4.Location = new System.Drawing.Point(0, 96); this.panelControl4.Name = "panelControl4"; this.panelControl4.Size = new System.Drawing.Size(569, 450); this.panelControl4.TabIndex = 23; // // panelControl2 // this.panelControl2.Controls.Add(this.playRelatedVideo); this.panelControl2.Dock = System.Windows.Forms.DockStyle.Top; this.panelControl2.Location = new System.Drawing.Point(2, 2); this.panelControl2.Name = "panelControl2"; this.panelControl2.Size = new System.Drawing.Size(565, 38); this.panelControl2.TabIndex = 11; // // PicQueryForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(918, 573); this.Controls.Add(this.panelControl4); this.Controls.Add(this.panelContainer1); this.Controls.Add(this.dockPanel3); this.Controls.Add(this.barDockControlLeft); this.Controls.Add(this.barDockControlRight); this.Controls.Add(this.barDockControlBottom); this.Controls.Add(this.barDockControlTop); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "PicQueryForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "人像搜索"; this.Load += new System.EventHandler(this.PicQueryForm_Load); ((System.ComponentModel.ISupportInitialize)(this.timeFrom.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.timeTo.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.currentFace.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.portraits)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).EndInit(); this.dockPanel3.ResumeLayout(false); this.dockPanel3_Container.ResumeLayout(false); this.dockPanel3_Container.PerformLayout(); this.panelContainer1.ResumeLayout(false); this.dockPanel2.ResumeLayout(false); this.dockPanel2_Container.ResumeLayout(false); this.dockPanel1.ResumeLayout(false); this.dockPanel1_Container.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.wholePicture.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.galleryControl1)).EndInit(); this.galleryControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.panelControl1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl4)).EndInit(); this.panelControl4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); this.panelControl2.ResumeLayout(false); this.ResumeLayout(false); }
private void barButtonItem_depositos_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Bancos_Cuentas> bancos_cuentas = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Bancos_Cuentas>(DevExpress.Xpo.XpoDefault.Session); DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Responsable_depositos> responsable_depositos = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Responsable_depositos>(DevExpress.Xpo.XpoDefault.Session); // if (bancos_cuentas.Count > 0) { bancos_cuentas.Dispose(); if (responsable_depositos.Count > 0) { responsable_depositos.Dispose(); this.barButtonItem_depositos.Enabled = false; OpenForm(new Formularios.UI_Depositos_Bancarios(this.barButtonItem_depositos, ref this.barHeaderItem1, this.ribbonControl1, null, null, null, null)); } else { MessageBox.Show("No existen responsables de deposito cargados en el sistema," + Environment.NewLine + "Favor cargar al menos uno para utilizar Depositos Bancarios.", "Depositos Bancarios", MessageBoxButtons.OK, MessageBoxIcon.Information); responsable_depositos.Dispose(); } } else { MessageBox.Show("No existen cuentas bancarias cargadas en el sistema," + Environment.NewLine + "Favor cargar al menos una para utilizar Depositos Bancarios.", "Depositos Bancarios", MessageBoxButtons.OK, MessageBoxIcon.Information); bancos_cuentas.Dispose(); responsable_depositos.Dispose(); } }
private void InitializeComponent() { DevExpress.XtraGrid.GridLevelNode gridLevelNode1 = new DevExpress.XtraGrid.GridLevelNode(); DevExpress.XtraGrid.GridLevelNode gridLevelNode2 = new DevExpress.XtraGrid.GridLevelNode(); this.CardView1 = new DevExpress.XtraGrid.Views.Card.CardView(); this.colLine1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colZIP = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCountry = new DevExpress.XtraGrid.Columns.GridColumn(); this.GridControl1 = new DevExpress.XtraGrid.GridControl(); this.colContacts = new DevExpress.Xpo.XPCollection(); this.CardView2 = new DevExpress.XtraGrid.Views.Card.CardView(); this.colPhone1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.GridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colFullName = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.CardView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.GridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.colContacts)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.CardView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.GridView1)).BeginInit(); this.SuspendLayout(); // // CardView1 // this.CardView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colLine1, this.colZIP, this.colCountry}); this.CardView1.FocusedCardTopFieldIndex = 0; this.CardView1.GridControl = this.GridControl1; this.CardView1.Name = "CardView1"; this.CardView1.OptionsView.ShowCardCaption = false; this.CardView1.OptionsView.ShowHorzScrollBar = false; this.CardView1.OptionsView.ShowQuickCustomizeButton = false; // // colLine1 // this.colLine1.Caption = "Line1"; this.colLine1.FieldName = "Line1"; this.colLine1.Name = "colLine1"; this.colLine1.Visible = true; this.colLine1.VisibleIndex = 0; // // colZIP // this.colZIP.Caption = "ZIP"; this.colZIP.FieldName = "ZIP"; this.colZIP.Name = "colZIP"; this.colZIP.Visible = true; this.colZIP.VisibleIndex = 1; // // colCountry // this.colCountry.Caption = "Country"; this.colCountry.FieldName = "Country"; this.colCountry.Name = "colCountry"; this.colCountry.Visible = true; this.colCountry.VisibleIndex = 2; // // GridControl1 // this.GridControl1.DataSource = this.colContacts; this.GridControl1.Dock = System.Windows.Forms.DockStyle.Fill; gridLevelNode1.LevelTemplate = this.CardView1; gridLevelNode1.RelationName = "Address"; gridLevelNode2.LevelTemplate = this.CardView2; gridLevelNode2.RelationName = "Itself"; this.GridControl1.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { gridLevelNode1, gridLevelNode2}); this.GridControl1.Location = new System.Drawing.Point(0, 0); this.GridControl1.MainView = this.GridView1; this.GridControl1.Name = "GridControl1"; this.GridControl1.Size = new System.Drawing.Size(528, 258); this.GridControl1.TabIndex = 0; this.GridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.CardView2, this.GridView1, this.CardView1}); // // colContacts // this.colContacts.DisplayableProperties = "This;IsDeleted;Oid;FullName;Phone;Address;Itself"; this.colContacts.ObjectType = typeof(LinkedObjectAsCard.Contact); // // CardView2 // this.CardView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colPhone1}); this.CardView2.FocusedCardTopFieldIndex = 0; this.CardView2.GridControl = this.GridControl1; this.CardView2.Name = "CardView2"; this.CardView2.OptionsView.ShowCardCaption = false; this.CardView2.OptionsView.ShowHorzScrollBar = false; this.CardView2.OptionsView.ShowQuickCustomizeButton = false; this.CardView2.ViewCaption = "More info..."; // // colPhone1 // this.colPhone1.Caption = "Phone"; this.colPhone1.FieldName = "Phone"; this.colPhone1.Name = "colPhone1"; this.colPhone1.Visible = true; this.colPhone1.VisibleIndex = 0; // // GridView1 // this.GridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colFullName}); this.GridView1.GridControl = this.GridControl1; this.GridView1.Name = "GridView1"; this.GridView1.OptionsDetail.AllowZoomDetail = false; // // colFullName // this.colFullName.Caption = "FullName"; this.colFullName.FieldName = "FullName"; this.colFullName.Name = "colFullName"; this.colFullName.Visible = true; this.colFullName.VisibleIndex = 0; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(528, 258); this.Controls.Add(this.GridControl1); this.Name = "Form1"; this.Text = "How to display a linked object (one-to-one relation) as a detail card view in the" + " XtraGrid"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.CardView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.GridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.colContacts)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.CardView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.GridView1)).EndInit(); this.ResumeLayout(false); }
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 override void FixInvokedBussinessObjects(DevExpress.Xpo.Session session, DevExpress.Xpo.XPCollection <DAL.System.Log.BusinessObject> invokedBussinessObjects) { if (invokedBussinessObjects == null || invokedBussinessObjects.Count == 0) { return; } CriteriaOperator criteria_0 = CriteriaOperator.Parse("not(IsNull(FinancialTransactionDimId))"); CriteriaOperator criteria_1 = new InOperator("FinancialTransactionDimId.RefId", invokedBussinessObjects.Select(i => i.RefId)); CriteriaOperator criteria_2 = new BinaryOperator("RowStatus", 0, BinaryOperatorType.Greater); CriteriaOperator criteria = new GroupOperator(GroupOperatorType.And, criteria_0, criteria_1, criteria_2); CorrespondFinancialAccountDim defaultCorrespondAccDim = CorrespondFinancialAccountDim.GetDefault(session, CorrespondFinancialAccountDimEnum.NAAN_DEFAULT); XPCollection <GoodsInInventoryDetail> neededToBeFixList = new XPCollection <GoodsInInventoryDetail>(session, criteria); GoodsInInventorySummary_Fact fact = null; if (neededToBeFixList != null && neededToBeFixList.Count > 0) { foreach (GoodsInInventoryDetail detail in neededToBeFixList) { fact = detail.GoodsInInventorySummary_FacftId; detail.RowStatus = Utility.Constant.ROWSTATUS_DELETED; detail.Save(); //fact.CreditSum = fact.GoodsInInventoryDetails.Where(i => i.RowStatus == 1 // && i.Credit > 0 && i.CorrespondFinancialAccountDimId == defaultCorrespondAccDim).Sum(d => d.Credit); //fact.DebitSum = fact.GoodsInInventoryDetails.Where(i => i.RowStatus == 1 // && i.Debit > 0 && i.CorrespondFinancialAccountDimId == defaultCorrespondAccDim).Sum(d => d.Debit); //fact.EndCreditBalance // = fact.BeginCreditBalance + // fact.CreditSum - // fact.DebitSum; //fact.EndDebitBalance // = fact.BeginDebitBalance + // fact.DebitSum - // fact.CreditSum; //fact.Save(); } } }
public void Init(DevExpress.Xpo.XPCollection xPCollection, DateTime inizio, string tipoGS) { if (ForzaturaPrevent) { return; } RisultatoCalendario risultato = GestoreCalendario.GeneraRichiesta(inizio, Ingresso.CodicePrevent); if (risultato == null) { return; } int ingressoCapacitaSlot = risultato.MaxPostiDisponibili; if (ingressoCapacitaSlot <= 0) { ingressoCapacitaSlot = NumeroPersone; } //int durataSlot = Ingresso.DurataSlot(tipoGS); int durataSlot = GestoreCalendario.GetTimeSpan(Ingresso.CodicePrevent); DateTime origine = inizio; int slot = NumeroPersone / ingressoCapacitaSlot; int resto = NumeroPersone - ingressoCapacitaSlot * slot; if (resto > 0) { slot++; } int media = NumeroPersone / slot; resto = NumeroPersone - media * slot; int persone = NumeroPersone; List <SingolaPrenotazione> ListaTemp = new List <SingolaPrenotazione>(); while (persone > 0) { while (Occupato(xPCollection, inizio, durataSlot) || risultato == null) { inizio += new TimeSpan(0, durataSlot, 0); risultato = GestoreCalendario.GeneraRichiesta(inizio, Ingresso.CodicePrevent); TimeSpan tempo = inizio - origine; if (tempo.TotalDays > 3) { return; } } int nump = media; if (persone >= media) { if (resto > 0 && risultato.MaxPostiDisponibili > media) { nump++; resto--; } } else { nump = resto; } SingolaPrenotazione pre = new SingolaPrenotazione(); pre.NumeroPersone = nump; pre.Orario = inizio; pre.OrarioFine = inizio + new TimeSpan(0, durataSlot, 0); pre.Descrizione = PrenotazioneComplessiva.RiferimentoGlobale; pre.OriginataPrevent = false; ListaTemp.Add(pre); persone -= nump; inizio += new TimeSpan(0, durataSlot, 0); risultato = GestoreCalendario.GeneraRichiesta(inizio, Ingresso.CodicePrevent); } if (persone == 0) { Prenotazioni = ListaTemp; } }
private void check_connection() { if (Fundraising_PTDM.MyConnection.OpenConnection() == true) { bool validconnect = Fundraising_PTDM.MyConnection.IsConnected(); if (!validconnect) { if (MessageBox.Show("No se pudo establecer la conexión con el servidor de la base de datos... \nDesea configurar la conexión... ?", "Conexión con servidor de datos", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == System.Windows.Forms.DialogResult.OK) { config_connection(); } else { Lpass_usu = false; Close(); } } else { // se establece los parametros para "xpo.default.sesion" que es la sesion usada para todas las conexiones a las tablas entre (Collection, Object Persist, tablas sql). XpoDefault.Session.LockingOption = LockingOption.Optimistic; XpoDefault.Session.OptimisticLockingReadBehavior = OptimisticLockingReadBehavior.MergeCollisionThrowException; //XpoDefault.Session.OptimisticLockingReadBehavior = OptimisticLockingReadBehavior.ThrowException; XpoDefault.Session.TrackPropertiesModifications = true; //XPBaseCollection.EnableObjectChangedNotificationsWhileEditing = true; //XPLiteObject.AutoSaveOnEndEdit = false; XPBaseObject.AutoSaveOnEndEdit = true; // // se crea un usuario administrativo por primera ves // usuario = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session); if (usuario == null || usuario.Count() <= 0) { usuario.Add(new Fundraising_PTDM.FUNDRAISING_PT.Usuarios(DevExpress.Xpo.XpoDefault.Session)); usuario[0].login = "******"; usuario[0].clave = "1"; usuario[0].usuario = "POS&TOUCH Administrator"; usuario[0].tipo = 1; usuario[0].status = 1; usuario[0].Save(); } // // se crea una sucursal unica por primera ves // sucursal = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session); if (sucursal == null || sucursal.Count() <= 0) { l_new_sucursal = true; sucursal.Add(new Fundraising_PTDM.FUNDRAISING_PT.Sucursales(DevExpress.Xpo.XpoDefault.Session)); sucursal[0].codigo = 9999999; sucursal[0].nombre = "Fundraising Sucursal Unica"; sucursal[0].logotipo = ""; sucursal[0].select = true; sucursal[0].status = 1; sucursal[0].Save(); // Fundraising_PT.Properties.Settings.Default.sucursal_oid = sucursal[0].oid; Fundraising_PT.Properties.Settings.Default.sucursal = 9999999; Fundraising_PT.Properties.Settings.Default.nombre_sucursal = "Fundraising Sucursal Unica"; Fundraising_PT.Properties.Settings.Default.logotipo = ""; Fundraising_PT.Properties.Settings.Default.sucursal_filter = string.Format("sucursal = {0}", 9999999); Fundraising_PT.Properties.Settings.Default.Save(); // } // // se crea un registro por primera ves, con la informacion basica de configuracion // configuracion = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Configuracion>(DevExpress.Xpo.XpoDefault.Session); if (configuracion == null || configuracion.Count() <= 0) { //sucursal = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, (new OperandProperty("status") == new OperandValue(1) & new OperandProperty("select") == new OperandValue(true)), (new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending))); configuracion.Add(new Fundraising_PTDM.FUNDRAISING_PT.Configuracion(DevExpress.Xpo.XpoDefault.Session)); configuracion[0].activa_audio = 0; configuracion[0].time_new_sesion = 0; //configuracion[0].sucursal = (sucursal == null || sucursal.Count() <= 0 ? null : sucursal[0]); configuracion[0].Save(); // } else { //if (l_new_sucursal) //{ // sucursal = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Sucursales>(DevExpress.Xpo.XpoDefault.Session, (new OperandProperty("status") == new OperandValue(1) & new OperandProperty("select") == new OperandValue(true)), (new DevExpress.Xpo.SortProperty("codigo", DevExpress.Xpo.DB.SortingDirection.Ascending))); // configuracion[0].sucursal = (sucursal == null || sucursal.Count() <= 0 ? null : sucursal[0]); // configuracion[0].Save(); //} } // this.textBox_login.Focus(); } } else { if (MessageBox.Show("No se pudo establecer la conexión con el servidor de la base de datos... \nDesea configurar la conexión... ?", "Conexión con servidor de datos", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == System.Windows.Forms.DialogResult.OK) { config_connection(); } else { Lpass_usu = false; Close(); } } }
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; }
private void button_aceptar_Click(object sender, EventArgs e) { Lpass_usu = false; if (this.textBox_login.Text.Trim().Length >= 1) { l_login = this.textBox_login.Text.Trim(); l_clave = this.textBox_clave.Text.Trim(); //l_string_busqueda = string.Format("login = {0}", l_login); CriteriaOperator filtro_usuario = (new OperandProperty("login") == new OperandValue(l_login)); DevExpress.Xpo.SortProperty orden_usuario = (new DevExpress.Xpo.SortProperty("login", DevExpress.Xpo.DB.SortingDirection.Descending)); //usuario = new DevExpress.Xpo.XPCollection<Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, CriteriaOperator.Parse(l_string_busqueda)); usuario = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Usuarios>(DevExpress.Xpo.XpoDefault.Session, filtro_usuario, orden_usuario); // if (usuario != null && usuario.Count() >= 1) { //Lpass_usu = (from u in usuario select u.status).Equals(1); //if (Lpass_usu) if (usuario[0].status == 1) { //bool pass_clave = (from u in usuario select u.clave.Trim()).Equals(l_clave); //if (pass_clave) if (usuario[0].clave.Trim() == l_clave) { Fundraising_PT.Properties.Settings.Default.U_oid = usuario[0].oid; Fundraising_PT.Properties.Settings.Default.U_login = usuario[0].login; Fundraising_PT.Properties.Settings.Default.U_clave = usuario[0].clave; Fundraising_PT.Properties.Settings.Default.U_usuario = usuario[0].usuario; Fundraising_PT.Properties.Settings.Default.U_tipo = usuario[0].tipo; Fundraising_PT.Properties.Settings.Default.U_status = usuario[0].status; // configuracion = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Configuracion>(DevExpress.Xpo.XpoDefault.Session); if (configuracion != null & configuracion.Count > 0) { Fundraising_PT.Properties.Settings.Default.Activa_Audio = configuracion[0].activa_audio; Fundraising_PT.Properties.Settings.Default.time_new_sesion = configuracion[0].time_new_sesion; if (configuracion[0].sucursal != null) { //Fundraising_PT.Properties.Settings.Default.sucursal = configuracion[0].sucursal.codigo; //Fundraising_PT.Properties.Settings.Default.nombre_sucursal = configuracion[0].sucursal.nombre; //Fundraising_PT.Properties.Settings.Default.logotipo = configuracion[0].sucursal.logotipo; //Fundraising_PT.Properties.Settings.Default.sucursal_filter = string.Format("sucursal = {0}", configuracion[0].sucursal.codigo); } else { //MessageBox.Show("La Sesion NO Tiene ninguna sucursal asociada en su setting..."+Environment.NewLine+"Favor ir a la opcion de asociar sucursal...", "Inicio de Sesion", MessageBoxButtons.OK, MessageBoxIcon.Information); // //Fundraising_PT.Properties.Settings.Default.sucursal = 0; //Fundraising_PT.Properties.Settings.Default.nombre_sucursal = ""; //Fundraising_PT.Properties.Settings.Default.logotipo = ""; //Fundraising_PT.Properties.Settings.Default.sucursal_filter = string.Format("sucursal = {0}", 0); } } // Fundraising_PT.Properties.Settings.Default.mypath_sistema = System.Windows.Forms.Application.StartupPath; Fundraising_PT.Properties.Settings.Default.mypath_imagenes = System.Windows.Forms.Application.StartupPath + @"\imagenes\"; Fundraising_PT.Properties.Settings.Default.mypath_reports = System.Windows.Forms.Application.StartupPath + @"\reports\"; Fundraising_PT.Properties.Settings.Default.Save(); // if (Directory.Exists(Fundraising_PT.Properties.Settings.Default.mypath_imagenes) == false) { Directory.CreateDirectory(Fundraising_PT.Properties.Settings.Default.mypath_imagenes); } if (Directory.Exists(Fundraising_PT.Properties.Settings.Default.mypath_reports) == false) { Directory.CreateDirectory(Fundraising_PT.Properties.Settings.Default.mypath_reports); } // Lpass_usu = true; this.Close(); } else { MessageBox.Show("Clave de usuario invalida...", "Clave de Acceso", MessageBoxButtons.OK, MessageBoxIcon.Information); Lpass_usu = false; this.textBox_clave.Clear(); this.textBox_clave.Focus(); } } else { MessageBox.Show("Usuario NO esta activo...", "Clave de Acceso", MessageBoxButtons.OK, MessageBoxIcon.Information); Lpass_usu = false; this.textBox_login.Clear(); this.textBox_clave.Clear(); this.textBox_login.Focus(); } } else { MessageBox.Show("Login de usuario NO existe...", "Clave de Acceso", MessageBoxButtons.OK, MessageBoxIcon.Information); Lpass_usu = false; this.textBox_login.Clear(); this.textBox_clave.Clear(); this.textBox_login.Focus(); } } else { MessageBox.Show("Login de usuario NO puede estar vacio...", "Clave de Acceso", MessageBoxButtons.OK, MessageBoxIcon.Information); Lpass_usu = false; this.textBox_login.Clear(); this.textBox_clave.Clear(); this.textBox_login.Focus(); } }
private void carga_saldos(int ln_modo1) { if (ln_modo1 == 1) { // borra todas las filas que puedan existir antes de volver a cargarlas desde el dataview original de saldos /// saldos_formas_pagos.Rows.Clear(); } // llena las filas del datatable de los saldos, si no se han cargado // if (saldos_formas_pagos.Rows.Count <= 0 || ln_modo1 == 1) { switch (ln_modo) { case 1: // Modo INSERTAR // carga datos al DATATABLE de saldos desde la VISTA de saldos pendientes // foreach (ViewRecord item_vsaldos_formas_pagos in vsaldos_formas_pagos) { IEnumerable <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det> depaux = depositos_bancarios_det.Where <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(det_dep => (det_dep.deposito_bancario.status.Equals(1) | det_dep.deposito_bancario.status.Equals(4)) & det_dep.forma_pago.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_forma_pago"]) & det_dep.recaudador.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_recaudador"])); IEnumerable <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det> depaux1 = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(DevExpress.Xpo.XpoDefault.Session).Where <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(det_dep1 => (det_dep1.deposito_bancario.status.Equals(1) | det_dep1.deposito_bancario.status.Equals(4)) & det_dep1.forma_pago.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_forma_pago"]) & det_dep1.recaudador.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_recaudador"])); ln_monto_aux = depaux.Sum(det_dep => det_dep.monto); ln_monto_precargado_aux = depaux1.Sum(det_dep1 => det_dep1.monto); // saldos_formas_pagos.Rows.Add( (Guid)item_vsaldos_formas_pagos["oid_forma_pago"], (Guid)item_vsaldos_formas_pagos["oid_recaudador"], (string)item_vsaldos_formas_pagos["cod_forma_pago"], (string)item_vsaldos_formas_pagos["recaudador"], (string)item_vsaldos_formas_pagos["forma_pago"], ln_monto_precargado_aux, ln_monto_aux, //(ln_status_deposito == 0 ? 0 : ln_monto_aux), (decimal)item_vsaldos_formas_pagos["saldo"] ); } break; case 2: // Modo EDITAR // carga datos al DATATABLE de saldos desde la VISTA de saldos pendientes // foreach (ViewRecord item_vsaldos_formas_pagos in vsaldos_formas_pagos) { //IEnumerable<Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det> depaux = depositos_bancarios_det.Where<Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(det_dep => det_dep.forma_pago.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_forma_pago"]) & det_dep.recaudador.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_recaudador"])); IEnumerable <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det> depaux = depositos_bancarios_det.Where <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(det_dep => (det_dep.deposito_bancario.status.Equals(1) | det_dep.deposito_bancario.status.Equals(4)) & det_dep.forma_pago.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_forma_pago"]) & det_dep.recaudador.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_recaudador"])); IEnumerable <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det> depaux1 = new DevExpress.Xpo.XPCollection <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(DevExpress.Xpo.XpoDefault.Session).Where <Fundraising_PTDM.FUNDRAISING_PT.Depositos_Bancarios_Det>(det_dep1 => (det_dep1.deposito_bancario.status.Equals(1) | det_dep1.deposito_bancario.status.Equals(4)) & det_dep1.forma_pago.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_forma_pago"]) & det_dep1.recaudador.oid.Equals((Guid)item_vsaldos_formas_pagos["oid_recaudador"])); ln_monto_aux = depaux.Sum(det_dep => det_dep.monto); ln_monto_precargado_aux = depaux1.Sum(det_dep1 => det_dep1.monto); ln_monto_precargado_aux = ln_monto_precargado_aux - ln_monto_aux; // saldos_formas_pagos.Rows.Add( (Guid)item_vsaldos_formas_pagos["oid_forma_pago"], (Guid)item_vsaldos_formas_pagos["oid_recaudador"], (string)item_vsaldos_formas_pagos["cod_forma_pago"], (string)item_vsaldos_formas_pagos["recaudador"], (string)item_vsaldos_formas_pagos["forma_pago"], ln_monto_precargado_aux, ln_monto_aux, //(ln_status_deposito == 0 ? 0 : ln_monto_aux), (decimal)item_vsaldos_formas_pagos["saldo"] ); } break; default: // Navegando Consultando // carga datos al DATATABLE de saldos desde el COLLECTION del detalle del deposito // foreach (var item_depositos_bancarios_det in depositos_bancarios_det) { saldos_formas_pagos.Rows.Add( item_depositos_bancarios_det.forma_pago.oid, item_depositos_bancarios_det.recaudador.oid, item_depositos_bancarios_det.forma_pago.codigo, item_depositos_bancarios_det.recaudador.usuario, item_depositos_bancarios_det.forma_pago.nombre, item_depositos_bancarios_det.monto_precargado, item_depositos_bancarios_det.monto, item_depositos_bancarios_det.saldo ); } break; } // Final del switch (ln_modo) // } // Final del if (saldos_formas_pagos.Rows.Count <= 0 || ln_modo1 == 1) // // if (ln_modo1 == 1) { ln_total_monto_precargado_ini = saldos_formas_pagos.AsEnumerable().Sum((tot_monto_precargado_ini) => tot_monto_precargado_ini.Field <decimal>("monto_precargado")); ln_total_monto_ini = saldos_formas_pagos.AsEnumerable().Sum((tot_monto_ini) => tot_monto_ini.Field <decimal>("monto")); ln_total_saldo_ini = saldos_formas_pagos.AsEnumerable().Sum((tot_saldo_ini) => tot_saldo_ini.Field <decimal>("saldo")); } ln_total_monto_precargado = saldos_formas_pagos.AsEnumerable().Sum((tot_monto_precargado_ini) => tot_monto_precargado_ini.Field <decimal>("monto_precargado")); ln_total_monto = saldos_formas_pagos.AsEnumerable().Sum((tot_monto_ini) => tot_monto_ini.Field <decimal>("monto")); ln_total_saldo = saldos_formas_pagos.AsEnumerable().Sum((tot_saldo_ini) => tot_saldo_ini.Field <decimal>("saldo")); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.xpCollection1 = new DevExpress.Xpo.XPCollection(); this.tmrReload = new System.Windows.Forms.Timer(this.components); this.popupMenu1 = new DevExpress.XtraBars.PopupMenu(this.components); this.ribbon = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.bbtnClose = new DevExpress.XtraBars.BarButtonItem(); this.bbtnNewCard = new DevExpress.XtraBars.BarButtonItem(); this.bbtnDeleteCard = new DevExpress.XtraBars.BarButtonItem(); this.rpGeneral = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colOid = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCardModel = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCardRevision = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCardSerialNumber = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCardName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colCardDescription = new DevExpress.XtraGrid.Columns.GridColumn(); this.clientPanel = new DevExpress.XtraEditors.PanelControl(); ((System.ComponentModel.ISupportInitialize)(this.xpCollection1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.clientPanel)).BeginInit(); this.clientPanel.SuspendLayout(); this.SuspendLayout(); // // xpCollection1 // this.xpCollection1.BindingBehavior = DevExpress.Xpo.CollectionBindingBehavior.AllowRemove; this.xpCollection1.ObjectType = typeof(SSTCP.Database.Cards); // // tmrReload // this.tmrReload.Enabled = true; this.tmrReload.Interval = 500; this.tmrReload.Tick += new System.EventHandler(this.tmrReload_Tick); // // popupMenu1 // this.popupMenu1.ItemLinks.Add(this.bbtnDeleteCard); this.popupMenu1.Name = "popupMenu1"; this.popupMenu1.Ribbon = this.ribbon; // // ribbon // this.ribbon.ApplicationButtonText = null; this.ribbon.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.bbtnClose, this.bbtnNewCard, this.bbtnDeleteCard}); this.ribbon.Location = new System.Drawing.Point(0, 0); this.ribbon.MaxItemId = 4; this.ribbon.Name = "ribbon"; this.ribbon.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.rpGeneral}); this.ribbon.SelectedPage = this.rpGeneral; this.ribbon.Size = new System.Drawing.Size(793, 143); // // bbtnClose // this.bbtnClose.Caption = "Close"; this.bbtnClose.Id = 1; this.bbtnClose.Name = "bbtnClose"; this.bbtnClose.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbtnClose_ItemClick); // // bbtnNewCard // this.bbtnNewCard.Caption = "New Card"; this.bbtnNewCard.Id = 2; this.bbtnNewCard.Name = "bbtnNewCard"; this.bbtnNewCard.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbtnNewCard_ItemClick); // // bbtnDeleteCard // this.bbtnDeleteCard.Caption = "Delete Card"; this.bbtnDeleteCard.Id = 3; this.bbtnDeleteCard.Name = "bbtnDeleteCard"; // // rpGeneral // this.rpGeneral.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1}); this.rpGeneral.Name = "rpGeneral"; this.rpGeneral.Text = "General"; // // ribbonPageGroup1 // this.ribbonPageGroup1.ItemLinks.Add(this.bbtnClose); this.ribbonPageGroup1.ItemLinks.Add(this.bbtnNewCard); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.ShowCaptionButton = false; this.ribbonPageGroup1.Text = "File"; // // gridControl1 // this.gridControl1.DataSource = this.xpCollection1; this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl1.Location = new System.Drawing.Point(0, 0); this.gridControl1.MainView = this.gridView1; this.gridControl1.MenuManager = this.ribbon; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new System.Drawing.Size(793, 380); this.gridControl1.TabIndex = 0; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1}); // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colOid, this.colCardModel, this.colCardRevision, this.colCardSerialNumber, this.colCardName, this.colCardDescription}); this.gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None; this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.False; this.gridView1.OptionsBehavior.AllowDeleteRows = DevExpress.Utils.DefaultBoolean.False; this.gridView1.OptionsBehavior.Editable = false; this.gridView1.OptionsBehavior.ReadOnly = true; this.gridView1.OptionsCustomization.AllowColumnMoving = false; this.gridView1.OptionsCustomization.AllowColumnResizing = false; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsCustomization.AllowGroup = false; this.gridView1.OptionsCustomization.AllowQuickHideColumns = false; this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView1.OptionsView.EnableAppearanceEvenRow = true; this.gridView1.OptionsView.EnableAppearanceOddRow = true; this.gridView1.OptionsView.RowAutoHeight = true; this.gridView1.OptionsView.ShowGroupExpandCollapseButtons = false; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ShowIndicator = false; this.gridView1.SortInfo.AddRange(new DevExpress.XtraGrid.Columns.GridColumnSortInfo[] { new DevExpress.XtraGrid.Columns.GridColumnSortInfo(this.colCardModel, DevExpress.Data.ColumnSortOrder.Ascending)}); this.gridView1.ShowGridMenu += new DevExpress.XtraGrid.Views.Grid.GridMenuEventHandler(this.gridView1_ShowGridMenu); // // colOid // this.colOid.FieldName = "Oid"; this.colOid.Name = "colOid"; // // colCardModel // this.colCardModel.FieldName = "CardModel"; this.colCardModel.Name = "colCardModel"; this.colCardModel.SortMode = DevExpress.XtraGrid.ColumnSortMode.DisplayText; this.colCardModel.Visible = true; this.colCardModel.VisibleIndex = 0; // // colCardRevision // this.colCardRevision.FieldName = "CardRevision"; this.colCardRevision.Name = "colCardRevision"; this.colCardRevision.Visible = true; this.colCardRevision.VisibleIndex = 1; // // colCardSerialNumber // this.colCardSerialNumber.FieldName = "CardSerialNumber"; this.colCardSerialNumber.Name = "colCardSerialNumber"; this.colCardSerialNumber.Visible = true; this.colCardSerialNumber.VisibleIndex = 2; // // colCardName // this.colCardName.FieldName = "CardName"; this.colCardName.Name = "colCardName"; this.colCardName.Visible = true; this.colCardName.VisibleIndex = 3; // // colCardDescription // this.colCardDescription.FieldName = "CardDescription"; this.colCardDescription.Name = "colCardDescription"; this.colCardDescription.Visible = true; this.colCardDescription.VisibleIndex = 4; // // clientPanel // this.clientPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.clientPanel.Controls.Add(this.gridControl1); this.clientPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.clientPanel.Location = new System.Drawing.Point(0, 143); this.clientPanel.Name = "clientPanel"; this.clientPanel.Size = new System.Drawing.Size(793, 380); this.clientPanel.TabIndex = 2; // // frmCards // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(793, 523); this.Controls.Add(this.clientPanel); this.Controls.Add(this.ribbon); this.Name = "frmCards"; this.Ribbon = this.ribbon; this.Text = "Card Manager"; this.Load += new System.EventHandler(this.frmCards_Load); ((System.ComponentModel.ISupportInitialize)(this.xpCollection1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbon)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.clientPanel)).EndInit(); this.clientPanel.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.labelControl4 = new DevExpress.XtraEditors.LabelControl(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.btnClose = new DevExpress.XtraEditors.SimpleButton(); this.btnSave = new DevExpress.XtraEditors.SimpleButton(); this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.xtpGeneral = new DevExpress.XtraTab.XtraTabPage(); this.lueamanattypeid = new DevExpress.XtraEditors.GridLookUpEdit(); this.LSMScd_amanattype = new DevExpress.Data.Linq.LinqServerModeSource(); this.gridView3 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colamanattype = new DevExpress.XtraGrid.Columns.GridColumn(); this.labelControl9 = new DevExpress.XtraEditors.LabelControl(); this.lueDofatSarfId = new DevExpress.XtraEditors.GridLookUpEdit(); this.LSMSDofatSarfId = new DevExpress.Data.Linq.LinqServerModeSource(); this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); this.labelControl8 = new DevExpress.XtraEditors.LabelControl(); this.cesarfcheek = new DevExpress.XtraEditors.CheckEdit(); this.ceamantvisa = new DevExpress.XtraEditors.CheckEdit(); this.luePersonId = new DevExpress.XtraEditors.GridLookUpEdit(); this.LSMSTBLWarasa = new DevExpress.Data.Linq.LinqServerModeSource(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colMMashatId = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colsarfnumber = new DevExpress.XtraGrid.Columns.GridColumn(); this.colSyndicate1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.colSubCommitte = new DevExpress.XtraGrid.Columns.GridColumn(); this.colpersonName = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.lueDofatSarfAId = new DevExpress.XtraEditors.GridLookUpEdit(); this.cdDofaatAmanatBindingSource = new System.Windows.Forms.BindingSource(this.components); this.dsRetirementCenter = new RetirementCenter.DataSources.dsRetirementCenter(); this.gridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); this.colSyndicate = new DevExpress.XtraGrid.Columns.GridColumn(); this.tbamanatrem = new DevExpress.XtraEditors.MemoEdit(); this.labelControl6 = new DevExpress.XtraEditors.LabelControl(); this.labelControl7 = new DevExpress.XtraEditors.LabelControl(); this.labelControl5 = new DevExpress.XtraEditors.LabelControl(); this.labelControl3 = new DevExpress.XtraEditors.LabelControl(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.tbsefa = new DevExpress.XtraEditors.TextEdit(); this.tbmostahek = new DevExpress.XtraEditors.TextEdit(); this.tbestktaa = new DevExpress.XtraEditors.TextEdit(); this.tbamanatmony = new DevExpress.XtraEditors.TextEdit(); this.colMonthName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colYearName = new DevExpress.XtraGrid.Columns.GridColumn(); this.colMonthName1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.cdDofaatAmanatTableAdapter = new RetirementCenter.DataSources.dsRetirementCenterTableAdapters.CdDofaatAmanatTableAdapter(); this.sessionvtblWarasabank2 = new DevExpress.Xpo.Session(this.components); this.XPCvtblWarasabank2 = new DevExpress.Xpo.XPCollection(this.components); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.xtpGeneral.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lueamanattypeid.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.LSMScd_amanattype)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lueDofatSarfId.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.LSMSDofatSarfId)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cesarfcheek.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ceamantvisa.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.luePersonId.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.LSMSTBLWarasa)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lueDofatSarfAId.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cdDofaatAmanatBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsRetirementCenter)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridLookUpEdit1View)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbamanatrem.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbsefa.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbmostahek.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbestktaa.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbamanatmony.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.sessionvtblWarasabank2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.XPCvtblWarasabank2)).BeginInit(); this.SuspendLayout(); // // labelControl2 // this.labelControl2.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl2.Location = new System.Drawing.Point(419, 59); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(41, 19); this.labelControl2.TabIndex = 0; this.labelControl2.Text = "الاسم"; // // labelControl4 // this.labelControl4.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl4.Location = new System.Drawing.Point(412, 284); this.labelControl4.Name = "labelControl4"; this.labelControl4.Size = new System.Drawing.Size(50, 19); this.labelControl4.TabIndex = 0; this.labelControl4.Text = "ملاحظة"; // // panelControl1 // this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Style3D; this.panelControl1.Controls.Add(this.btnClose); this.panelControl1.Location = new System.Drawing.Point(10, 614); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(520, 44); this.panelControl1.TabIndex = 1; // // btnClose // this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnClose.Image = global::RetirementCenter.Properties.Resources.Delete; this.btnClose.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleRight; this.btnClose.Location = new System.Drawing.Point(7, 7); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(90, 30); this.btnClose.TabIndex = 11; this.btnClose.Text = "اغلاق"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // btnSave // this.btnSave.Image = global::RetirementCenter.Properties.Resources.Save; this.btnSave.ImageLocation = DevExpress.XtraEditors.ImageLocation.MiddleRight; this.btnSave.Location = new System.Drawing.Point(312, 502); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(150, 30); this.btnSave.TabIndex = 10; this.btnSave.Text = "حفـــــــــــــــــــــــــظ"; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // xtraTabControl1 // this.xtraTabControl1.Location = new System.Drawing.Point(5, 12); this.xtraTabControl1.Name = "xtraTabControl1"; this.xtraTabControl1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.xtraTabControl1.SelectedTabPage = this.xtpGeneral; this.xtraTabControl1.Size = new System.Drawing.Size(525, 596); this.xtraTabControl1.TabIndex = 0; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.xtpGeneral}); // // xtpGeneral // this.xtpGeneral.Controls.Add(this.lueamanattypeid); this.xtpGeneral.Controls.Add(this.labelControl9); this.xtpGeneral.Controls.Add(this.lueDofatSarfId); this.xtpGeneral.Controls.Add(this.labelControl8); this.xtpGeneral.Controls.Add(this.cesarfcheek); this.xtpGeneral.Controls.Add(this.ceamantvisa); this.xtpGeneral.Controls.Add(this.btnSave); this.xtpGeneral.Controls.Add(this.luePersonId); this.xtpGeneral.Controls.Add(this.lueDofatSarfAId); this.xtpGeneral.Controls.Add(this.tbamanatrem); this.xtpGeneral.Controls.Add(this.labelControl6); this.xtpGeneral.Controls.Add(this.labelControl2); this.xtpGeneral.Controls.Add(this.labelControl7); this.xtpGeneral.Controls.Add(this.labelControl5); this.xtpGeneral.Controls.Add(this.labelControl3); this.xtpGeneral.Controls.Add(this.labelControl1); this.xtpGeneral.Controls.Add(this.labelControl4); this.xtpGeneral.Controls.Add(this.tbsefa); this.xtpGeneral.Controls.Add(this.tbmostahek); this.xtpGeneral.Controls.Add(this.tbestktaa); this.xtpGeneral.Controls.Add(this.tbamanatmony); this.xtpGeneral.Image = global::RetirementCenter.Properties.Resources.Edit; this.xtpGeneral.Name = "xtpGeneral"; this.xtpGeneral.Size = new System.Drawing.Size(519, 549); this.xtpGeneral.Text = "بيانات أساسيه"; // // lueamanattypeid // this.lueamanattypeid.EditValue = ""; this.lueamanattypeid.Location = new System.Drawing.Point(53, 424); this.lueamanattypeid.Name = "lueamanattypeid"; this.lueamanattypeid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.lueamanattypeid.Properties.Appearance.Options.UseFont = true; this.lueamanattypeid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.lueamanattypeid.Properties.DataSource = this.LSMScd_amanattype; this.lueamanattypeid.Properties.DisplayMember = "amanattype"; this.lueamanattypeid.Properties.NullText = ""; this.lueamanattypeid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.lueamanattypeid.Properties.ValueMember = "amanattypeid"; this.lueamanattypeid.Properties.View = this.gridView3; this.lueamanattypeid.Size = new System.Drawing.Size(233, 26); this.lueamanattypeid.TabIndex = 8; // // LSMScd_amanattype // this.LSMScd_amanattype.ElementType = typeof(RetirementCenter.DataSources.Linq.cd_amanattype); this.LSMScd_amanattype.KeyExpression = "[amanattypeid]"; // // gridView3 // this.gridView3.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colamanattype}); this.gridView3.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.gridView3.Name = "gridView3"; this.gridView3.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView3.OptionsView.ShowGroupPanel = false; // // colamanattype // this.colamanattype.Caption = "الاسم"; this.colamanattype.FieldName = "amanattype"; this.colamanattype.Name = "colamanattype"; this.colamanattype.Visible = true; this.colamanattype.VisibleIndex = 0; // // labelControl9 // this.labelControl9.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl9.Location = new System.Drawing.Point(385, 427); this.labelControl9.Name = "labelControl9"; this.labelControl9.Size = new System.Drawing.Size(75, 19); this.labelControl9.TabIndex = 10; this.labelControl9.Text = "نوع الامانات"; // // lueDofatSarfId // this.lueDofatSarfId.EditValue = ""; this.lueDofatSarfId.Location = new System.Drawing.Point(53, 382); this.lueDofatSarfId.Name = "lueDofatSarfId"; this.lueDofatSarfId.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.lueDofatSarfId.Properties.Appearance.Options.UseFont = true; this.lueDofatSarfId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.lueDofatSarfId.Properties.DataSource = this.LSMSDofatSarfId; this.lueDofatSarfId.Properties.DisplayMember = "DofatSarfA"; this.lueDofatSarfId.Properties.NullText = ""; this.lueDofatSarfId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.lueDofatSarfId.Properties.ValueMember = "DofatSarfAId"; this.lueDofatSarfId.Properties.View = this.gridView2; this.lueDofatSarfId.Size = new System.Drawing.Size(233, 26); this.lueDofatSarfId.TabIndex = 8; // // LSMSDofatSarfId // this.LSMSDofatSarfId.ElementType = typeof(RetirementCenter.DataSources.Linq.CdDofaatAmanat); this.LSMSDofatSarfId.KeyExpression = "[DofatSarfAId]"; // // gridView2 // this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn2}); this.gridView2.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.gridView2.Name = "gridView2"; this.gridView2.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView2.OptionsView.ShowGroupPanel = false; // // gridColumn2 // this.gridColumn2.AppearanceCell.Options.UseTextOptions = true; this.gridColumn2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridColumn2.AppearanceHeader.Options.UseTextOptions = true; this.gridColumn2.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridColumn2.Caption = "الاسم"; this.gridColumn2.FieldName = "DofatSarfA"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.Visible = true; this.gridColumn2.VisibleIndex = 0; // // labelControl8 // this.labelControl8.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl8.Location = new System.Drawing.Point(353, 385); this.labelControl8.Name = "labelControl8"; this.labelControl8.Size = new System.Drawing.Size(107, 19); this.labelControl8.TabIndex = 10; this.labelControl8.Text = "سيصرف بالدفعة"; // // cesarfcheek // this.cesarfcheek.Location = new System.Drawing.Point(345, 466); this.cesarfcheek.Name = "cesarfcheek"; this.cesarfcheek.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.cesarfcheek.Properties.Appearance.Options.UseFont = true; this.cesarfcheek.Properties.Appearance.Options.UseTextOptions = true; this.cesarfcheek.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.cesarfcheek.Properties.Caption = "تصرف بشيك"; this.cesarfcheek.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.cesarfcheek.Size = new System.Drawing.Size(115, 24); this.cesarfcheek.TabIndex = 9; this.cesarfcheek.CheckedChanged += new System.EventHandler(this.ceamantvisa_CheckedChanged); // // ceamantvisa // this.ceamantvisa.Location = new System.Drawing.Point(359, 13); this.ceamantvisa.Name = "ceamantvisa"; this.ceamantvisa.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.ceamantvisa.Properties.Appearance.Options.UseFont = true; this.ceamantvisa.Properties.Appearance.Options.UseTextOptions = true; this.ceamantvisa.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.ceamantvisa.Properties.Caption = "امانات فيزا"; this.ceamantvisa.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.ceamantvisa.Size = new System.Drawing.Size(101, 24); this.ceamantvisa.TabIndex = 0; this.ceamantvisa.CheckedChanged += new System.EventHandler(this.ceamantvisa_CheckedChanged); // // luePersonId // this.luePersonId.EditValue = ""; this.luePersonId.Location = new System.Drawing.Point(53, 56); this.luePersonId.Name = "luePersonId"; this.luePersonId.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.luePersonId.Properties.Appearance.Options.UseFont = true; this.luePersonId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.luePersonId.Properties.DataSource = this.LSMSTBLWarasa; this.luePersonId.Properties.DisplayMember = "personName"; this.luePersonId.Properties.NullText = ""; this.luePersonId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.luePersonId.Properties.ValueMember = "PersonId"; this.luePersonId.Properties.View = this.gridView1; this.luePersonId.Size = new System.Drawing.Size(233, 26); this.luePersonId.TabIndex = 2; this.luePersonId.EditValueChanged += new System.EventHandler(this.luePersonId_EditValueChanged); // // LSMSTBLWarasa // this.LSMSTBLWarasa.ElementType = typeof(RetirementCenter.DataSources.Linq.vTBLWarasa_TBLMashat); this.LSMSTBLWarasa.KeyExpression = "PersonId"; // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colMMashatId, this.gridColumn1, this.colsarfnumber, this.colSyndicate1, this.colSubCommitte, this.colpersonName, this.gridColumn3}); this.gridView1.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.gridView1.Name = "gridView1"; this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView1.OptionsView.ShowAutoFilterRow = true; this.gridView1.OptionsView.ShowGroupPanel = false; // // colMMashatId // this.colMMashatId.AppearanceCell.Options.UseTextOptions = true; this.colMMashatId.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colMMashatId.AppearanceHeader.Options.UseTextOptions = true; this.colMMashatId.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colMMashatId.Caption = "كود الاب"; this.colMMashatId.FieldName = "MMashatId"; this.colMMashatId.Name = "colMMashatId"; this.colMMashatId.Visible = true; this.colMMashatId.VisibleIndex = 1; // // gridColumn1 // this.gridColumn1.AppearanceCell.Options.UseTextOptions = true; this.gridColumn1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridColumn1.AppearanceHeader.Options.UseTextOptions = true; this.gridColumn1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.gridColumn1.Caption = "اسم الاب"; this.gridColumn1.FieldName = "MMashatName"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 2; // // colsarfnumber // this.colsarfnumber.AppearanceCell.Options.UseTextOptions = true; this.colsarfnumber.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colsarfnumber.AppearanceHeader.Options.UseTextOptions = true; this.colsarfnumber.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colsarfnumber.Caption = "رقم صرف"; this.colsarfnumber.FieldName = "sarfnumber"; this.colsarfnumber.Name = "colsarfnumber"; this.colsarfnumber.Visible = true; this.colsarfnumber.VisibleIndex = 3; // // colSyndicate1 // this.colSyndicate1.AppearanceCell.Options.UseTextOptions = true; this.colSyndicate1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colSyndicate1.AppearanceHeader.Options.UseTextOptions = true; this.colSyndicate1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colSyndicate1.Caption = "فرعية"; this.colSyndicate1.FieldName = "Syndicate"; this.colSyndicate1.Name = "colSyndicate1"; this.colSyndicate1.Visible = true; this.colSyndicate1.VisibleIndex = 5; // // colSubCommitte // this.colSubCommitte.AppearanceCell.Options.UseTextOptions = true; this.colSubCommitte.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colSubCommitte.AppearanceHeader.Options.UseTextOptions = true; this.colSubCommitte.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colSubCommitte.Caption = "لجنة"; this.colSubCommitte.FieldName = "SubCommitte"; this.colSubCommitte.Name = "colSubCommitte"; this.colSubCommitte.Visible = true; this.colSubCommitte.VisibleIndex = 4; // // colpersonName // this.colpersonName.AppearanceCell.Options.UseTextOptions = true; this.colpersonName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colpersonName.AppearanceHeader.Options.UseTextOptions = true; this.colpersonName.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colpersonName.Caption = "الاسم"; this.colpersonName.FieldName = "personName"; this.colpersonName.Name = "colpersonName"; this.colpersonName.Visible = true; this.colpersonName.VisibleIndex = 0; // // gridColumn3 // this.gridColumn3.Caption = "كود60"; this.gridColumn3.FieldName = "CODE60"; this.gridColumn3.Name = "gridColumn3"; this.gridColumn3.Visible = true; this.gridColumn3.VisibleIndex = 6; // // lueDofatSarfAId // this.lueDofatSarfAId.EditValue = ""; this.lueDofatSarfAId.Location = new System.Drawing.Point(53, 90); this.lueDofatSarfAId.Name = "lueDofatSarfAId"; this.lueDofatSarfAId.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.lueDofatSarfAId.Properties.Appearance.Options.UseFont = true; this.lueDofatSarfAId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.lueDofatSarfAId.Properties.DataSource = this.cdDofaatAmanatBindingSource; this.lueDofatSarfAId.Properties.DisplayMember = "DofatSarfA"; this.lueDofatSarfAId.Properties.NullText = ""; this.lueDofatSarfAId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.lueDofatSarfAId.Properties.ValueMember = "DofatSarfAId"; this.lueDofatSarfAId.Properties.View = this.gridLookUpEdit1View; this.lueDofatSarfAId.Size = new System.Drawing.Size(233, 26); this.lueDofatSarfAId.TabIndex = 0; this.lueDofatSarfAId.EditValueChanged += new System.EventHandler(this.lueDofatSarfAId_EditValueChanged); // // cdDofaatAmanatBindingSource // this.cdDofaatAmanatBindingSource.DataMember = "CdDofaatAmanat"; this.cdDofaatAmanatBindingSource.DataSource = this.dsRetirementCenter; // // dsRetirementCenter // this.dsRetirementCenter.DataSetName = "dsRetirementCenter"; this.dsRetirementCenter.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // gridLookUpEdit1View // this.gridLookUpEdit1View.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.colSyndicate}); this.gridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.gridLookUpEdit1View.Name = "gridLookUpEdit1View"; this.gridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridLookUpEdit1View.OptionsView.ShowGroupPanel = false; // // colSyndicate // this.colSyndicate.AppearanceCell.Options.UseTextOptions = true; this.colSyndicate.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colSyndicate.AppearanceHeader.Options.UseTextOptions = true; this.colSyndicate.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colSyndicate.Caption = "الاسم"; this.colSyndicate.FieldName = "DofatSarfA"; this.colSyndicate.Name = "colSyndicate"; this.colSyndicate.Visible = true; this.colSyndicate.VisibleIndex = 0; // // tbamanatrem // this.tbamanatrem.Location = new System.Drawing.Point(53, 286); this.tbamanatrem.Name = "tbamanatrem"; this.tbamanatrem.Size = new System.Drawing.Size(233, 80); this.tbamanatrem.TabIndex = 7; // // labelControl6 // this.labelControl6.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl6.Location = new System.Drawing.Point(418, 93); this.labelControl6.Name = "labelControl6"; this.labelControl6.Size = new System.Drawing.Size(42, 19); this.labelControl6.TabIndex = 0; this.labelControl6.Text = "الدفعة"; // // labelControl7 // this.labelControl7.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl7.Location = new System.Drawing.Point(422, 247); this.labelControl7.Name = "labelControl7"; this.labelControl7.Size = new System.Drawing.Size(38, 19); this.labelControl7.TabIndex = 0; this.labelControl7.Text = "الصفه"; // // labelControl5 // this.labelControl5.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl5.Location = new System.Drawing.Point(393, 208); this.labelControl5.Name = "labelControl5"; this.labelControl5.Size = new System.Drawing.Size(67, 19); this.labelControl5.TabIndex = 0; this.labelControl5.Text = "المستحق"; // // labelControl3 // this.labelControl3.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl3.Location = new System.Drawing.Point(390, 169); this.labelControl3.Name = "labelControl3"; this.labelControl3.Size = new System.Drawing.Size(70, 19); this.labelControl3.TabIndex = 0; this.labelControl3.Text = "الاستقطاع"; // // labelControl1 // this.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.labelControl1.Location = new System.Drawing.Point(420, 128); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(40, 19); this.labelControl1.TabIndex = 0; this.labelControl1.Text = "المبلغ"; // // tbsefa // this.tbsefa.Location = new System.Drawing.Point(53, 244); this.tbsefa.Name = "tbsefa"; this.tbsefa.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.tbsefa.Properties.Appearance.Options.UseFont = true; this.tbsefa.Size = new System.Drawing.Size(233, 26); this.tbsefa.TabIndex = 6; // // tbmostahek // this.tbmostahek.Location = new System.Drawing.Point(53, 205); this.tbmostahek.Name = "tbmostahek"; this.tbmostahek.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.tbmostahek.Properties.Appearance.Options.UseFont = true; this.tbmostahek.Size = new System.Drawing.Size(233, 26); this.tbmostahek.TabIndex = 5; // // tbestktaa // this.tbestktaa.Location = new System.Drawing.Point(53, 166); this.tbestktaa.Name = "tbestktaa"; this.tbestktaa.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.tbestktaa.Properties.Appearance.Options.UseFont = true; this.tbestktaa.Properties.DisplayFormat.FormatString = "f2"; this.tbestktaa.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.tbestktaa.Properties.EditFormat.FormatString = "f2"; this.tbestktaa.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.tbestktaa.Properties.Mask.EditMask = "f2"; this.tbestktaa.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric; this.tbestktaa.Size = new System.Drawing.Size(233, 26); this.tbestktaa.TabIndex = 4; // // tbamanatmony // this.tbamanatmony.EditValue = "0"; this.tbamanatmony.Location = new System.Drawing.Point(53, 125); this.tbamanatmony.Name = "tbamanatmony"; this.tbamanatmony.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F); this.tbamanatmony.Properties.Appearance.Options.UseFont = true; this.tbamanatmony.Properties.DisplayFormat.FormatString = "f2"; this.tbamanatmony.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.tbamanatmony.Properties.EditFormat.FormatString = "f2"; this.tbamanatmony.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.tbamanatmony.Properties.Mask.EditMask = "f2"; this.tbamanatmony.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric; this.tbamanatmony.Size = new System.Drawing.Size(233, 26); this.tbamanatmony.TabIndex = 3; // // colMonthName // this.colMonthName.AppearanceCell.Options.UseTextOptions = true; this.colMonthName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colMonthName.AppearanceHeader.Options.UseTextOptions = true; this.colMonthName.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colMonthName.Caption = "اسم الشهر"; this.colMonthName.FieldName = "MonthName"; this.colMonthName.Name = "colMonthName"; this.colMonthName.Visible = true; this.colMonthName.VisibleIndex = 0; // // colYearName // this.colYearName.AppearanceCell.Options.UseTextOptions = true; this.colYearName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colYearName.AppearanceHeader.Options.UseTextOptions = true; this.colYearName.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colYearName.Caption = "اسم السنه"; this.colYearName.FieldName = "YearName"; this.colYearName.Name = "colYearName"; this.colYearName.Visible = true; this.colYearName.VisibleIndex = 0; // // colMonthName1 // this.colMonthName1.AppearanceCell.Options.UseTextOptions = true; this.colMonthName1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colMonthName1.AppearanceHeader.Options.UseTextOptions = true; this.colMonthName1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.colMonthName1.Caption = "اسم الشهر"; this.colMonthName1.FieldName = "MonthName"; this.colMonthName1.Name = "colMonthName1"; this.colMonthName1.Visible = true; this.colMonthName1.VisibleIndex = 0; // // cdDofaatAmanatTableAdapter // this.cdDofaatAmanatTableAdapter.ClearBeforeFill = true; // // sessionvtblWarasabank2 // this.sessionvtblWarasabank2.TrackPropertiesModifications = false; // // XPCvtblWarasabank2 // this.XPCvtblWarasabank2.CriteriaString = "1 = 2"; this.XPCvtblWarasabank2.ObjectType = typeof(RetirementCenter.DataSources.dsQueries.vtblWarasabank2DataTable); this.XPCvtblWarasabank2.Session = this.sessionvtblWarasabank2; // // TblWarasaAmanatW2Frm // this.AcceptButton = this.btnSave; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnClose; this.ClientSize = new System.Drawing.Size(542, 666); this.Controls.Add(this.xtraTabControl1); this.Controls.Add(this.panelControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.Name = "TblWarasaAmanatW2Frm"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "تحرير"; this.Load += new System.EventHandler(this.FormWFrm_Load); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.xtpGeneral.ResumeLayout(false); this.xtpGeneral.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.lueamanattypeid.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.LSMScd_amanattype)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lueDofatSarfId.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.LSMSDofatSarfId)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cesarfcheek.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ceamantvisa.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.luePersonId.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.LSMSTBLWarasa)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lueDofatSarfAId.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cdDofaatAmanatBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsRetirementCenter)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridLookUpEdit1View)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbamanatrem.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbsefa.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbmostahek.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbestktaa.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbamanatmony.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.sessionvtblWarasabank2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.XPCvtblWarasabank2)).EndInit(); this.ResumeLayout(false); }