public int Save(Errorcode errorCode)
 {
     int res = 0;
     if (errorCode.id > 0)
         res = _errorcodeDao.Update(errorCode);
     else
     {
         res = _errorcodeDao.Insert(errorCode);
     }
     //设置静态数据
     setErrorStaticData();
     return res;
 }
 /// <summary>
 /// 故障码保存
 /// </summary>
 /// <param name="errorcode"></param>
 /// <returns></returns>
 public ActionResult Errorcode_save(Errorcode errorcode)
 {
     string lang = Request.Form["lang"];
     string langValue = Request.Form["langValue"];
     List<string> array = lang.Split(',').ToList<string>();
     List<string> arrayValue = langValue.Split(',').ToList<string>();
     string name = string.Empty;
     for (int x = 0; x < array.Count; x++)
     {
         name += string.Format("{0}:{1},", array[x], arrayValue[x]);
     }
     if (name.LastIndexOf(',') > 0) name = name.Substring(0, name.Length - 1);
     errorcode.name = name;
     ErrorcodeService.GetInstance().Save(errorcode);
     return Errorcode(string.Empty);
 }