Ejemplo n.º 1
0
 //成果名称的验证
 protected void tAchievement_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (tAchievement.Text.Trim() != "")
         {
             if (ach.IsExitAchieveName(tAchievement.Text.Trim()) == null)
             {
                 Alert.Show("该成果名不存在!");
                 tAchievement.Text = "";
                 return;
             }
             else
             {
                 if (ach.IsExitAchieveName(tAchievement.Text.Trim()).IsPass == false)
                 {
                     Alert.Show("该成果名称正在审核中!");
                     tAchievement.Text = "";
                     return;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     
     }
 }
Ejemplo n.º 2
0
 //成果名称验证
 protected void tachievement_TextChanged(object sender, EventArgs e)
 {
     if (tachievement.Text.Trim() != "")
     {
         string   achievement = tachievement.Text.Replace(",", ",");
         string[] str         = achievement.Split(',');
         foreach (string ss in str)
         {
             if (ach.IsExitAchieveName(ss) == null)
             {
                 Alert.Show("拥有不存在的成果名称,请仔细检查!");
                 tachievement.Text = "";
                 return;
             }
             else
             {
                 if (ach.IsExitAchieveName(ss).IsPass == false)
                 {
                     Alert.Show("拥有正在审核中的成果名称,请仔细检查!");
                     tachievement.Text = "";
                     return;
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
 //成果名称验证
 protected void tAchievement_TextChanged(object sender, EventArgs e)
 {
     if (tAchievement.Text.Trim() != "")
     {
         if (ach.IsExitAchieveName(tAchievement.Text.Trim()) == null)
         {
             Alert.Show("该成果名不存在!");
             tAchievement.Text = "";
             return;
         }
         else
         {
             if (ach.IsExitAchieveName(tAchievement.Text.Trim()).IsPass == false)
             {
                 Alert.Show("该成果名称正在审核中!");
                 tAchievement.Text = "";
                 return;
             }
         }
     }
 }