Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Bas"></param>
 /// <returns></returns>
 public ActionResult UpdateContract(ContractBas Bas)
 {
     if (ModelState.IsValid)
     {
         string strErr = "";
         if (ContractMan.UpdateNewContractBas(Bas, ref strErr) == true)
         {
             return(Json(new { success = "true", Msg = "保存成功" }));
         }
         else
         {
             return(Json(new { success = "false", Msg = "保存出错" + "/" + strErr }));
         }
     }
     else
     {
         //如果有错误,继续输入信息
         return(Json(new { success = "false", Msg = "数据验证不通过" }));
     }
 }