private void cmb_botapieid_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ssModo == "EDIT" || ssModo == "NEW")
            {
                if (cmb_botapieid.SelectedIndex >= 0)
                {
                    var BE = new tb_pt_botapie();
                    var BL = new tb_pt_botapieBL();
                    var dt = new DataTable();
                    BE.botapieid = cmb_botapieid.SelectedValue.ToString();
                    dt = BL.GetAll(EmpresaID, BE).Tables[0];
                    foreach (DataRow fila in dt.Rows)
                    {
                        _xbotapiedescort = fila["botapiedescort"].ToString().Trim();

                        _GenerarNombre();
                    }
                }
            }
        }
 private void Cargar_cmbBotapie()
 {
     var BE = new tb_pt_botapie();
     var BL = new tb_pt_botapieBL();
     var dt = new DataTable();
     dt = BL.GetAll(EmpresaID, BE).Tables[0];
     if (dt.Rows.Count > 0)
     {
         cmb_botapieid.DataSource = dt;
         cmb_botapieid.ValueMember = "botapieid";
         cmb_botapieid.DisplayMember = "botapiename";
     }
 }