private void DcRegPVenta_Load(object sender, EventArgs e) { uT = new clsUtil(db, user.CodPerfil); uT.CargaArbolAcceso(); PuiSegUsuarioCfg team = new PuiSegUsuarioCfg(db); team.cmpStiloTema = user.StiloTema; Object[] reg = team.GetParamTema(); NewColor.Encabezado = reg[0].ToString(); NewColor.HoverEncabezado = reg[1].ToString(); NewColor.FontColor = reg[2].ToString(); LlecboCliente(); GetDatoAlmacen(); PARTIDAS = new List <DocPartidasReq>(); MessageBoxAdv.Office2016Theme = Office2016Theme.Colorful; MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2016; this.FormBorderStyle = FormBorderStyle.None; //Form without bord and resize this.DoubleBuffered = true; //Form without bord and resize this.SetStyle(ControlStyles.ResizeRedraw, true); //Form without bord and resize clsCfgDocumento cd = new clsCfgDocumento(CveDoc, db); ConfigDoc = cd.ConfigDoc(); clsCfgAlmacen cslA = new clsCfgAlmacen(db, user.AlmacenUsa); CfgAlma = cslA.ConfigAlmacen(); this.KeyDown += new KeyEventHandler(this.OnKeyDown); InhControles(true, 0); if (ConfigDoc.UsaSerie == 1) { PuiCatCfgDocSerie lin = new PuiCatCfgDocSerie(db); //cboSerie.DataSource = lin.CbollenaSeries(CveAlm, CveDoc); DataTable dt = lin.CbollenaSeries(user.AlmacenUsa, CveDoc); serieticket = dt.Rows[0]["Clave"].ToString(); clsCfgDocSeries cds = new clsCfgDocSeries(user.AlmacenUsa, CveDoc, serieticket, db); CfgDocSerie = cds.ConfigDocSerie(); } }
private void CargaCfgUsuario(String PUsr) { DatCfgParamSystem PSyst = new DatCfgParamSystem(db); ParamSystem = PSyst.ParaSystem(); DatCfgUsuario CUser = new DatCfgUsuario(PUsr, db); user = CUser.CfgUsario(); SelectFondoUser(user.Fondo); DatCfgSystem CfgSys = new DatCfgSystem(db); CfgSystem = CfgSys.CfgSistema(); PuiSegUsuarioCfg team = new PuiSegUsuarioCfg(db); team.cmpStiloTema = user.StiloTema; Object[] reg = team.GetParamTema(); NewColor.Encabezado = reg[0].ToString(); NewColor.HoverEncabezado = reg[1].ToString(); NewColor.FontColor = reg[2].ToString(); NewColor.Pant1 = reg[3].ToString(); NewColor.Pant2 = reg[4].ToString(); NewColor.Pant3 = reg[5].ToString(); NewColor.Pant4 = reg[6].ToString(); NewColor.Pant5 = reg[7].ToString(); ut = new clsUtil(db, user.CodPerfil); ut.CargaArbolAcceso(); this.ribMenu.Office2016ColorTable.Add(NewColor.StiloTeam()); this.PieStatus.MetroColor = ColorTranslator.FromHtml(NewColor.Encabezado); this.PieStatus.ForeColor = ColorTranslator.FromHtml(NewColor.FontColor); this.lblUsuario.Text = user.Nombre; this.lblNombre.Text = user.Usuario; this.lblServidor.Text = Servidor; CargarSeguridad(); }