Exemplo n.º 1
0
 /// <summary>
 /// 修改留学申请内容
 /// </summary>
 /// <returns></returns>
 public int UpdApplyContent(JiaJiModels.ApplyModel.ApplyContentInfo model)
 {
     try
     {
         return(new JiaJiDAL.ApplyDAL().UpdApplyContent(model));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 修改留学申请内容
 /// </summary>
 /// <returns></returns>
 public int UpdApplyContent(JiaJiModels.ApplyModel.ApplyContentInfo model)
 {
     try
     {
         string sql = "UPDATE applycontentinfo SET ApplyContent='" + model.ApplyContent + "',CountryID=" + model.CountryID + ",EducationID=" + model.EducationID + ",ApplyConditionID=" + model.ApplyConditionID + " WHERE ApplyContentID=" + model.ApplyContentID + " ";
         int    h   = MySqlDB.nonquery(sql, System.Data.CommandType.Text, null);
         return(h);
     }
     catch (Exception ex)
     {
         return(0);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// 添加留学申请内容
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int addApplyContent(JiaJiModels.ApplyModel.ApplyContentInfo model)
        {
            try
            {
                string sql = "insert into ApplyContentInfo(ApplyContent,CountryID,EducationID,ApplyConditionID) values('" + model.ApplyContent + "'," + model.CountryID + "," + model.EducationID + "," + model.ApplyConditionID + ")";

                int h = MySqlDB.nonquery(sql, System.Data.CommandType.Text, null);
                return(h);
            }
            catch (Exception ex)
            {
                return(0);
            }
        }
Exemplo n.º 4
0
 public ActionResult addApplyContent(JiaJiModels.ApplyModel.ApplyContentInfo model)
 {
     try
     {
         var i = new JiaJiBLL.ApplyBLL().addApplyContent(model);
         if (i > 0)
         {
             return(Json(new { Success = true, Message = "添加成功" }));
         }
         else
         {
             return(Json(new { Success = false, Message = "添加失败" }));
         }
     }
     catch
     {
         return(Json(new { Success = false, Message = "添加失败" }));
     }
 }
Exemplo n.º 5
0
        public JsonResult editApplyContent(JiaJiModels.ApplyModel.ApplyContentInfo model)
        {
            try
            {
                int id = model.ApplyID;

                var i = new JiaJiBLL.ApplyBLL().UpdApplyContent(model);
                if (i > 0)
                {
                    return(Json(new { Success = true, Message = "修改成功" }));
                }
                else
                {
                    return(Json(new { Success = false, Message = "修改失败" }));
                }
            }
            catch
            {
                return(Json(new { Success = false, Message = "修改失败" }));
            }
        }