private void VistaPrevia() { Form f = new frmCajVistaPrevia(one); //ConfigUI.LaunchChildForm(f, Globals.appParentWindow); ConfigUI.LaunchDialogForm(f); }
public void OnSettingsUI(UIHelperBase helper) { IViewItemFactory itemFactory = new UnityViewItemFactory(helper); configUI = ConfigUI.Create(config, itemFactory); ApplyLanguage(); }
private void imprimirOperacion() { double montoExento = (one.monto_exento) * factor; double montoBase = (one.base_imponible_ta + one.base_imponible_tg + one.base_imponible_tr) * factor; double montoIva = (one.monto_iva_ta + one.monto_iva_tg + one.monto_iva_tr) * factor; CrystalDecisions.Windows.Forms.CrystalReportViewer crView = new CrystalDecisions.Windows.Forms.CrystalReportViewer(); crVntOperacion repOperacion = new crVntOperacion(); repOperacion.SetDataSource(_listaDetalle); repOperacion.SetParameterValue("empresaNombre", Globals.logEmpresa.nombre); repOperacion.SetParameterValue("empresaRif", Globals.logEmpresa.rif); repOperacion.SetParameterValue("titulo", lblTitle.Text); repOperacion.SetParameterValue("nroControl", one.nro_control); repOperacion.SetParameterValue("fecha", one.fecha); repOperacion.SetParameterValue("clienteNombre", _oneCliente.nombre); repOperacion.SetParameterValue("clienteRif", _oneCliente.rif); repOperacion.SetParameterValue("clienteDireccion", _oneCliente.direccion); repOperacion.SetParameterValue("clienteTelefono", _oneCliente.telefono); repOperacion.SetParameterValue("moneda", cmbCotizacion.Text); repOperacion.SetParameterValue("montoExento", montoExento); repOperacion.SetParameterValue("montoBase", montoBase); repOperacion.SetParameterValue("montoIva", montoIva); repOperacion.SetParameterValue("montoTotal", one.total_moneda); crView.ReportSource = repOperacion; Form f = new Reportes.frmReportViewer(crView); ConfigUI.LaunchChildForm(f, Globals.appParentWindow); }
public void OnDisabled() { Log.Info("The 'Real Time' mod has been disabled."); ConfigurationProvider.SaveConfiguration(config); config = null; configUI = null; }
static void Init() { // Get existing open window or if none, make a new one: ConfigUI window = (ConfigUI)EditorWindow.GetWindow(typeof(ConfigUI)); window.Show(); }
public async UniTask <T> GetController <T>(bool async) where T : UIController, new() { UIController controller; string type = typeof(T).Name; if (controllerDic.TryGetValue(type, out controller) == false) { UI config = ConfigUI.Get(type); if (async) { controller = await GameFactory.CreateEntityAsync <T>(config.AssetbundleName, config.AssetName); } else { GameObject prefab = AssetManager.Instance.GetPrefab(config.AssetbundleName, config.AssetName); GameObject sourcers = GameObject.Instantiate(prefab); sourcers.name = config.AssetName; controller = GameFactory.CreateEntity <T>(sourcers); } controller.config = config; controller.transform.SetParent(GetCanvas(config.LayerIndex).transform, false); controllerDic.Add(type, controller); } return(controller as T); }
private void btnPagar_Click(object sender, EventArgs e) { btnPagar.Enabled = false; VntOperacion _one = srv.GetOne(Globals.logEmpresa.id, one.id_tipo_operacion, one.id); frmCajMovimientoSelection fDialog = new frmCajMovimientoSelection(one.deuda, _listaInstrumentos, "abonos"); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { _listaInstrumentos = fDialog.instrumentosSeleccionados; List <CajMovimiento> _pago = ConvertirPago(_listaInstrumentos); try { srv.SetAbono(_one, _pago); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Pago realizado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); GetList(_idCliente); MultiplicarMoneda(); } catch (Exception) { MetroFramework.MetroMessageBox.Show(this.MdiParent, "Se produjeron errores intentando procesar el registro, por favor revise los valores e intente nuevamente", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning); btnPagar.Enabled = true; } } }
public void OnSettingsUI(UIHelperBase helper) { if (string.IsNullOrEmpty(modPath)) { helper?.AddGroup(NoWorkshopMessage); return; } if (helper == null || configProvider == null) { return; } if (configProvider.Configuration == null) { Log.Warning("The 'Real Time' mod wants to display the configuration page, but the configuration is unexpectedly missing."); configProvider.LoadDefaultConfiguration(); } IViewItemFactory itemFactory = new CitiesViewItemFactory(helper); CloseConfigUI(); configUI = ConfigUI.Create(configProvider, itemFactory); ApplyLanguage(); }
private void SelPago() { AppPV.frmSelection.frmCajMovimientoSelection fDialog = new AppPV.frmSelection.frmCajMovimientoSelection(oneDevolucion, _listaInstrumentos, "devolucion"); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { _tipoOperacion = GetTipoOperacion(oneDevolucion.id_tipo_operacion); oneDevolucion.tipo_documento_nombre = _tipoOperacion.nombre; _listaInstrumentos = fDialog.instrumentosSeleccionados; foreach (App.InvMovimientoService.InvMovimiento item in bList) { item.id = "0"; item.id_operacion = oneDevolucion.id; item.id_tipo_operacion = oneDevolucion.id_tipo_operacion; item.last_update = 0; item.order_id = 0; } foreach (App.CajMovimientoService.CajMovimiento item in _listaInstrumentos) { item.id = "0"; item.id_operacion = oneDevolucion.id; item.id_tipo_operacion = oneDevolucion.id_tipo_operacion; item.last_update = oneDevolucion.last_update; item.order_id = oneDevolucion.order_id; } List <App.VntOperacionService.InvMovimiento> _detail = Globals.ConvertirDetalle(bList); List <App.VntOperacionService.CajMovimiento> _pago = Globals.ConvertirPago(_listaInstrumentos); //SAVE try { string res = srvVenta.SetOne(oneDevolucion, _detail, _pago); if (res.Length > 1) { if (oneDevolucion.id_tipo_operacion == "11E95C6B1693D4D2808B00E04C6F7E24") { Globals.ImprimirNotaCreditoFiscal(oneDevolucion, _detail, lblProgreso); } else { Globals.ImprimirTicketVenta(oneDevolucion, _detail, factor); } MetroFramework.MetroMessageBox.Show(this, "Operación registrada con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); } else { MetroFramework.MetroMessageBox.Show(this.MdiParent, "No se guardó la operaación", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } catch (Exception) { MetroFramework.MetroMessageBox.Show(this.MdiParent, "Se produjeron errores intentando procesar la operación, por favor revise los valores e intente nuevamente", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }
private void MovimientoCaja() { frmCajOperacion fDialog = new frmCajOperacion(); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { } }
private void CloseConfigUI() { if (configUI != null) { configUI.Close(); configUI = null; } }
private void CloseConfigUI() { if (_configUI != null) { _configUI.Dispose(); _configUI = null; } }
private void btnSeleccionarCliente_Click(object sender, EventArgs e) { frmVntClientesSelection fDialog = new frmVntClientesSelection(); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { AsignarCliente(fDialog.selectedCliente); } }
private void btnAdd_Click(object sender, EventArgs e) { VntOperacion _one = new VntOperacion(); _one = srv.GetOne(Globals.logEmpresa.id, cmbTipoOperacion.SelectedValue.ToString(), "0"); Form f = new frmVntOperacionesDetail(_one); ConfigUI.LaunchChildForm(f, Globals.appParentWindow); }
private void btnSeleccionarProveedor_Click(object sender, EventArgs e) { frmCmpProvedoresSelection fDialog = new frmCmpProvedoresSelection(); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { AsignarProveedor(fDialog.selectedProveedor); ValidarBotones(); } }
private void btnDeudas_Click(object sender, EventArgs e) { VntCliente _one = new VntCliente(); _one = srv.GetOne(Globals.logEmpresa.id, one.id); frmVntClientesDeudas f = new frmVntClientesDeudas(_one); ConfigUI.LaunchChildForm(f, Globals.appParentWindow); }
private void btnAbonos_Click(object sender, EventArgs e) { VntOperacion _one = new VntOperacion(); _one = srv.GetOne(Globals.logEmpresa.id, one.id_tipo_operacion, one.id); frmVntClientesAbonos fDetalle = new frmVntClientesAbonos(_one); ConfigUI.LaunchDialogForm(fDetalle); }
private void btnPay_Click(object sender, EventArgs e) { frmCajMovimientoSelection fDialog = new frmCajMovimientoSelection(one.total, _listaInstrumentos, "ventas"); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { _listaInstrumentos = fDialog.instrumentosSeleccionados; ValidarBotones(); } }
private void SelPago() { _listaInstrumentos.Clear(); frmCajMovimientoSelection fDialog = new frmCajMovimientoSelection(one, _listaInstrumentos, "venta"); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { one.id_cotizacion = _oneCotizacion.id_cotizacion; one.id_tipo_operacion = fDialog.idTipoOperacion; _tipoOperacion = GetTipoOperacion(one.id_tipo_operacion); one.tipo_documento_nombre = _tipoOperacion.nombre; _oneCliente = srvCliente.GetOne(Globals.logEmpresa.id, one.id_cliente); _listaInstrumentos = fDialog.instrumentosSeleccionados; _listaDetalle = srvMovimiento.GetList(one.id); //CONVERSIONES VntOperacion _one = Globals.ConvertirHeadVenta(one); _one.id = "0"; List <App.VntOperacionService.InvMovimiento> _detail = Globals.ConvertirDetalleVenta(_listaDetalle); List <App.VntOperacionService.CajMovimiento> _pago = Globals.ConvertirPago(_listaInstrumentos); //SAVE try { string res = srvVenta.SetOne(_one, _detail, _pago); if (res.Length > 1) { if (one.id_tipo_operacion == "11E8F22493F0CDBC8FF600270E383B06") { Globals.ImprimirFacturaFiscal(_oneCliente, _one, _detail, lblProgreso); } else { //imprimirOperacion(); Globals.ImprimirTicketVenta(_one, _detail, factor); } srvCola.UpdateOne(one, 3); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Operación registrada con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); InicializarOperacion(); } else { MetroFramework.MetroMessageBox.Show(this.MdiParent, "No se guardó la operación", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } catch (Exception) { MetroFramework.MetroMessageBox.Show(this.MdiParent, "Se produjeron errores intentando procesar la operación, por favor revise los valores e intente nuevamente", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }
private void frmMainMenu_Load(object sender, EventArgs e) { toolStripStatusLblUsuario.Text = Globals.logUser.nombre; InicializarItems(); ListarPermisosUsuario(); ValidarPermisos(); Form f = new frmDashboard(); ConfigUI.LaunchChildForm(f, this); }
private void btnEdit_Click(object sender, EventArgs e) { frmInvCategoriasDetail fDetalle = new frmInvCategoriasDetail(one); if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK) { GetList(); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Registro editado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnNullify_Click(object sender, EventArgs e) { //ONE VntOperacion one = selectedOperacion; frmDevolucion fDialog = new frmDevolucion(one); if (ConfigUI.LaunchDialogForm(fDialog) == DialogResult.OK) { } }
public async Task Init() { FlashLabel(); ConfigCabbyTechOffice fig = ConfigUI.GetCabbyTechConfig(); System.Data.SqlClient.SqlConnectionStringBuilder connBuilder = new System.Data.SqlClient.SqlConnectionStringBuilder { InitialCatalog = "TAXIDB", UserID = "sa", Password = fig.DbPassword, DataSource = fig.DatabaseComputerName + "\\" + fig.DatabaseInstanceName, ConnectTimeout = 8 }; udpBroadCastPort = fig.UDPTelephonePort; connStr = connBuilder.ConnectionString; try { await Task.Run(() => { TapiApp.SerialNumber = "7N8E3MN-XNVCPC8-XAVADBE-44PEM"; TapiApp.Initialize("CallerID"); }); InitDone = true; TapiApp.TapiError += OnTapiError; TapiApp.LineAdded += OnLineAdded; TapiApp.LineClosed += OnLineClosed; TapiApp.LineRemoved += OnLineRemoved; TapiApp.IncomingCall += OnIncommingCall; TapiApp.OutgoingCall += OnOutgoingCall; TapiApp.CallConnected += OnCallConnected; TapiApp.CallDisconnected += OnCallDisconnected; UpdateLinesCombobox1(); UpdateLinesCombobox2(); } catch (TapiException ex) { MessageBox.Show(ex.Message, "TapiException!", MessageBoxButtons.OK, MessageBoxIcon.Error); throw; } }
private void SeleccionarReporte() { CrystalDecisions.Windows.Forms.CrystalReportViewer crView = new CrystalDecisions.Windows.Forms.CrystalReportViewer(); string id_moneda = Globals.cotizacion[cmbCotizacion.SelectedIndex].id_moneda; string id_operacion = cmbOperaciones.SelectedValue.ToString(); switch (cmbReporte.SelectedIndex) { case 0: //"Resumen Operaciones listaCompra = srvRepCompra.GetResumenOperaciones(miEmpresa.id, id_moneda, crearFecha(dtDesde.Value), crearFecha(dtHasta.Value)); crCmpOperacionesResumen repResumenOperaciones = new crCmpOperacionesResumen(); repResumenOperaciones.SetDataSource(listaCompra); repResumenOperaciones.SetParameterValue("empresaNombre", miEmpresa.nombre); repResumenOperaciones.SetParameterValue("empresaRif", miEmpresa.rif); repResumenOperaciones.SetParameterValue("titulo", "RESUMEN OPERACIONES DE COMPRA (" + cmbCotizacion.Text + ")"); repResumenOperaciones.SetParameterValue("intervaloFecha", dtDesde.Value.ToString("dd/MM/yyyy") + " - " + dtHasta.Value.ToString("dd/MM/yyyy")); crView.ReportSource = repResumenOperaciones; break; case 1: //Operaciones Detallado listaCompra = srvRepCompra.GetDetalleOperaciones(miEmpresa.id, id_moneda, id_operacion, crearFecha(dtDesde.Value), crearFecha(dtHasta.Value)); crCmpOperacionesDetalle repDetalleOperaciones = new crCmpOperacionesDetalle(); repDetalleOperaciones.SetDataSource(listaCompra); repDetalleOperaciones.SetParameterValue("empresaNombre", miEmpresa.nombre); repDetalleOperaciones.SetParameterValue("empresaRif", miEmpresa.rif); repDetalleOperaciones.SetParameterValue("titulo", "DETALLE OPERACIONES DE COMPRA (" + cmbCotizacion.Text + ")"); repDetalleOperaciones.SetParameterValue("intervaloFecha", dtDesde.Value.ToString("dd/MM/yyyy") + " - " + dtHasta.Value.ToString("dd/MM/yyyy")); crView.ReportSource = repDetalleOperaciones; break; case 2: //Operaciones Proveedor listaCompra = srvRepCompra.GetProveedorOperaciones(miEmpresa.id, id_moneda, one.id, crearFecha(dtDesde.Value), crearFecha(dtHasta.Value)); crCmpOperacionesProveedor repProveedorOperaciones = new crCmpOperacionesProveedor(); repProveedorOperaciones.SetDataSource(listaCompra); repProveedorOperaciones.SetParameterValue("empresaNombre", miEmpresa.nombre); repProveedorOperaciones.SetParameterValue("empresaRif", miEmpresa.rif); repProveedorOperaciones.SetParameterValue("titulo", "DETALLE OPERACIONES DE COMPRA (" + cmbCotizacion.Text + ")"); repProveedorOperaciones.SetParameterValue("intervaloFecha", dtDesde.Value.ToString("dd/MM/yyyy") + " - " + dtHasta.Value.ToString("dd/MM/yyyy")); crView.ReportSource = repProveedorOperaciones; break; } Form f = new frmReportViewer(crView); ConfigUI.LaunchChildForm(f, Globals.appParentWindow); }
private void btnAdd_Click(object sender, EventArgs e) { VntCliente _one = new VntCliente(); _one = srv.GetOne(Globals.logEmpresa.id, "0"); frmVntClientesDetail fDetalle = new frmVntClientesDetail(_one); if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK) { GetList(); MessageBox.Show("Registro agregado con éxito!"); } }
private void btnEdit_Click(object sender, EventArgs e) { CajOperacion _one = new CajOperacion(); _one = srv.GetOne(Globals.logEmpresa.id, cmbTipoOperacion.SelectedValue.ToString(), one.id); frmCajOperacionesDetail fDetalle = new frmCajOperacionesDetail(_one); if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK) { GetList(); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Registro agregado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnAdd_Click(object sender, EventArgs e) { CnfCuentaBancaria _one = new CnfCuentaBancaria(); _one = srv.GetOne(Globals.logEmpresa.id, "0"); frmCnfCuentasBancariasDetail fDetalle = new frmCnfCuentasBancariasDetail(_one); if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK) { GetList(); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Registro agregado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public frmMain() { InitializeComponent(); try { this.Text = Globals.logEmpresa.nombre; Form f = new frmPuntoVenta(); ConfigUI.LaunchChildForm(f, this); } catch (Exception ex) { MessageBox.Show(ex.Message); Application.Exit(); } }
public void InstallServices(IServiceCollection services, IConfiguration Configuration) { services.AddControllersWithViews(); var config = new ConfigUI(); Configuration.Bind("ConfigUI", config); services.AddSingleton(config); services.AddHttpClient("", client => { client.BaseAddress = new Uri(""); client.DefaultRequestHeaders.Add("Accept", "application/type-json"); }).AddTransientHttpErrorPolicy(option => option.WaitAndRetryAsync(3, _ => TimeSpan.FromMilliseconds(300))); }
private void btnEdit_Click(object sender, EventArgs e) { SisListas _one = new SisListas(); _one = srv.GetOne(Globals.logEmpresa.id, one.id); frmCnfListasDetail fDetalle = new frmCnfListasDetail(_one); if (ConfigUI.LaunchDialogForm(fDetalle) == DialogResult.OK) { GetList(); MetroFramework.MetroMessageBox.Show(this.MdiParent, "Registro editado con éxito", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public override void Initialize() { Connection = new ConfigConnection(); UI = new ConfigUI(); Log = new ConfigLog(); Control = new ConfigControl(); Debug = new ConfigDebug(); Life = new ConfigLife(); FormArsenal = new ConfigFormArsenal(); FormFleet = new ConfigFormFleet(); FormHeadquarters = new ConfigFormHeadquarters(); FormQuest = new ConfigFormQuest(); FormShipGroup = new ConfigFormShipGroup(); FormBrowser = new ConfigFormBrowser(); NotifierExpedition = new ConfigNotifierBase(); NotifierConstruction = new ConfigNotifierBase(); NotifierRepair = new ConfigNotifierBase(); NotifierCondition = new ConfigNotifierBase(); NotifierDamage = new ConfigNotifierDamage(); Whitecap = new ConfigWhitecap(); }
public override void Initialize() { Connection = new ConfigConnection(); UI = new ConfigUI(); Log = new ConfigLog(); Control = new ConfigControl(); Debug = new ConfigDebug(); Life = new ConfigLife(); FormArsenal = new ConfigFormArsenal(); FormDock = new ConfigFormDock(); FormFleet = new ConfigFormFleet(); FormFleetPlus = new ConfigFormFleetPlus(); FormHeadquarters = new ConfigFormHeadquarters(); FormQuest = new ConfigFormQuest(); FormShipGroup = new ConfigFormShipGroup(); FormBrowser = new ConfigFormBrowser(); FormCompass = new ConfigFormCompass(); NotifierExpedition = new ConfigNotifierBase(); NotifierConstruction = new ConfigNotifierBase(); NotifierRepair = new ConfigNotifierBase(); NotifierCondition = new ConfigNotifierBase(); NotifierDamage = new ConfigNotifierDamage(); NotifierAnchorageRepair = new ConfigNotifierAnchorageRepair(); BGMPlayer = new ConfigBGMPlayer(); Whitecap = new ConfigWhitecap(); VersionUpdateTime = DateTimeHelper.TimeToCSVString( SoftwareInformation.UpdateTime ); }