private void FrmDepreciacion_Load(object sender, EventArgs e) { lblPeriodo.Text = BLL.Inicializar.periodo; txtanio.Text = BLL.Inicializar.periodo.Substring(3, 4); lstPer = bllComp.getPerBloqueado("n"); if (lstPer.Count > 0) { cboPeriodo.DataSource = lstPer; cboPeriodo.ValueMember = "periodo"; cboPeriodo.DisplayMember = "periodo"; } objParametros = bllPar.getParametros(); if (objParametros != null) { if (!string.IsNullOrEmpty(objParametros.depreciacion)) { lblDepreciar.Enabled = true; tipoDoc = objParametros.depreciacion; Consecutivo(); } else { MessageBox.Show("No se ha Selecciondo el Documento Contable para Depreciaciones.. Verifique", "Control de Información ActFI", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { MessageBox.Show("No se ha Selecciondo el Documento Contable para Depreciaciones.. Verifique", "Control de Información ActFI", MessageBoxButtons.OK, MessageBoxIcon.Warning); } cboPeriodo.Text = BLL.Inicializar.Mes; }
private void FrmPeriodo_Load(object sender, EventArgs e) { lblPeriodo.Text = BLL.Inicializar.periodo; txtanio.Text = BLL.Inicializar.periodo.Substring(3, 4); if (BLL.Inicializar.rolUser == "admin" || BLL.Inicializar.rolUser == "modificacion") { lstPer = bllComp.getPerBloqueado("n"); if (lstPer.Count > 0) { cboPeriodo.DataSource = lstPer; cboPeriodo.ValueMember = "periodo"; cboPeriodo.DisplayMember = "periodo"; } } else { MessageBox.Show("Acceso denegado para este perfil de usuario.. ", "Control de Información", MessageBoxButtons.OK, MessageBoxIcon.Warning); this.Dispose(); } }