private BindingSource NewMethodMeses()
        {
            var BL = new tb_co_mesesBL();
            var BE = new tb_co_meses();

            BE.ntipo = 1;
            var table = BL.GetAll(VariablesPublicas.EmpresaID.ToString(), BE).Tables[0];
            var rows = table.Rows;

            object[] cell;
            var dic = new Dictionary<string, string>();
            var binding = new BindingSource();

            foreach (DataRow item in rows)
            {
                cell = item.ItemArray;
                dic.Add(cell[0].ToString(), cell[0].ToString() + " - " + cell[1].ToString());
                cell = null;
            }
            binding.DataSource = dic;
            return binding;
        }
        public void StatusBar()
        {
            lblUsuario.Text = VariablesPublicas.Nombr;
            lblCompany.Text = VariablesPublicas.EmpresaName;
            lblPeriodo.Text = _perianio;    //VariablesPublicas.perianio;

            var BL2 = new sys_localBL();
            var BE2 = new tb_sys_local();
            var dt2 = new DataTable();
            BE2.dominioid = _dominioid; // VariablesPublicas.Dominioid.ToString();
            BE2.moduloid = _moduloid; //VariablesPublicas.Moduloid.ToString();
            BE2.local = _local; //VariablesPublicas.Local.ToString();
            dt2 = BL2.GetAll(VariablesPublicas.EmpresaID, BE2).Tables[0];
            if (dt2.Rows.Count > 0)
            {
                var xxmesid = string.Empty;
                if (Convert.ToBoolean(dt2.Rows[0]["perimeslocal"]))
                {
                    xxmesid = _perimes;
                    lblncaja.Text = _cajanume.ToString();
                }
                else
                {
                    xxmesid = _perimes; //VariablesPublicas.perimes.ToString();
                    lblncaja.Text = _cajanume.ToString();
                }
                var BL = new tb_co_mesesBL();
                var dt = new DataTable();
                dt = BL.GetOne(VariablesPublicas.EmpresaID, xxmesid.ToString()).Tables[0];
                if (dt.Rows.Count > 0)
                {
                    lblperimes.Text = dt.Rows[0]["mesname"].ToString();
                }
            }

            //lblalmacen.Text = VariablesPublicas.EmpresaTipo;
            lblalmacen.Text = _moduloname;
            lblVersion.Text = ProductVersion;

            TituloForm = "ERP - Bapsoft.Net - " + _moduloname + " - ";
            //Text = ((TituloForm + lblCompany.Text + "  »» LOCAL »»  " + VariablesPublicas.nombrelocal.ToString()));
            Text = ((TituloForm + lblCompany.Text + "  »» LOCAL »»  " + _localname));
        }