/// <summary>
 /// Valiada que el corporativo sea valido
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnCorp_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtAttribute1.Text))
     {
         MessageBox.Show("DEBE INGRESAR EL CORPORATIVO AL QUE SE LE APLICARA LA REGLA DE CARGO POR SERVICIO", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information);
         txtAttribute1.Focus();
     }
     else
     {
         //string[] locationDK = null;
         WsMyCTS wsServ = new WsMyCTS();
         MyCTS.Services.ValidateDKsAndCreditCards.GetOnlyAttribute1[] locationDK = null;
         try
         {
             locationDK = wsServ.GetLocationByAttribute1(txtAttribute1.Text);
         }
         catch
         {
             CommandsAPI2.send_MessageToEmulator("VALIDANDO CORPORATIVO, FAVOR DE ESPERAR........");
             listAttribute1 = new List <MyCTS.Entities.GetOnlyAttribute1>();
             listAttribute1 = GetOnlyAttribute1BL.GetAttribute1(txtAttribute1.Text);
         }
         if ((locationDK != null && locationDK.Length > 0) ||
             (listAttribute1 != null && listAttribute1.Count > 0))
         {
             if (listAttribute1 == null || listAttribute1.Count.Equals(0))
             {
                 listAttribute1 = new List <MyCTS.Entities.GetOnlyAttribute1>();
                 for (int i = 0; i < locationDK.Length; i++)
                 {
                     MyCTS.Entities.GetOnlyAttribute1 objAttribute1 = new MyCTS.Entities.GetOnlyAttribute1();
                     objAttribute1.LocationDK = locationDK[i].LocationDK;
                     listAttribute1.Add(objAttribute1);
                 }
             }
             listInfoFeeRule = GetInfoFeeRuleByAttribute1BL.GetInfoFeeRule(txtAttribute1.Text, 0, Login.OrgId);
             if (listInfoFeeRule.Count > 0)
             {
                 //mostrar info de lo que contenga la lista
                 string info = string.Empty;
                 info = string.Concat("El corporativo ", txtAttribute1.Text, " cuenta con las siguientes reglas:");
                 for (int i = 0; i < listInfoFeeRule.Count; i++)
                 {
                     info = string.Concat(info, "\n");
                     info = string.Concat(info, "\n", "Regla: ", listInfoFeeRule[i].RuleNumber);
                     info = string.Concat(info, "\n", "Nombre: ", listInfoFeeRule[i].Description);
                     info = string.Concat(info, "\n", "Prioridad: ", listInfoFeeRule[i].Priority);
                     info = string.Concat(info, "\n", "% De Tarifa Base: ", listInfoFeeRule[i].DefaultFee);
                     info = string.Concat(info, "\n", "Cantidad Fija: ", listInfoFeeRule[i].DefaultMount.ToString("0.00"));
                     info = string.Concat(info, "\n", "Monto: ", (listInfoFeeRule[i].Mandatory) ? "No Negociable" : "Negociable");
                     info = string.Concat(info, "\n", "Status: ", (listInfoFeeRule[i].ActivationSatate == true) ? "Activa" : "Inactiva");
                     if (listInfoFeeRule[i].StartDate != Types.DateNullValue)
                     {
                         info = string.Concat(info, "\n", "Inicio de regla: ", Convert.ToString(listInfoFeeRule[i].StartDate).Substring(0, 10));
                     }
                     if (listInfoFeeRule[i].ExpirationDate != Types.DateNullValue)
                     {
                         info = string.Concat(info, "\n", "Fin de regla: ", Convert.ToString(listInfoFeeRule[i].ExpirationDate).Substring(0, 10));
                     }
                 }
                 infoattribute1 = info;
                 string[] infoList = info.Split(new char[] { '\n' });
                 if (possition == true)
                 {
                     foreach (Control txt in this.Controls)
                     {
                         if (!(txt.TabIndex.Equals(0) || txt.TabIndex.Equals(1) || txt.Name == "btnCorp" || txt.Name == "txtInfoRuleByAttribute1"))
                         {
                             txt.Location = new Point(txt.Location.X, txt.Location.Y + 100);
                         }
                     }
                 }
                 possition = false;
                 txtInfoRuleByAttribute1.Lines = infoList;
                 ShowContols(true);
                 txtDescription.Focus();
             }
             else
             {
                 if (possition == false)
                 {
                     foreach (Control txt in this.Controls)
                     {
                         if (!(txt.TabIndex.Equals(0) || txt.TabIndex.Equals(1) || txt.Name == "btnCorp" || txt.Name == "txtInfoRuleByAttribute1"))
                         {
                             txt.Location = new Point(txt.Location.X, txt.Location.Y - 100);
                         }
                     }
                 }
                 possition = true;
                 ShowContols(true);
                 txtInfoRuleByAttribute1.Visible = false;
                 txtDescription.Focus();
             }
         }
         else
         {
             MessageBox.Show("EL CORPORATIVO NO EXISTE EN INTEGRA", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information);
             txtAttribute1.Focus();
             ShowContols(false);
         }
     }
 }