Esempio n. 1
0
 /// <summary>
 /// 函数名:UpdateUnit
 /// 作用:修改用量单位
 /// 作者:开济
 /// </summary>
 /// <param name="info">用量单位更新信息</param>
 /// <returns>更新成功与否</returns>
 public bool UpdateUnit(CraftBasicInfoMgt info)//修改超时原因
 {
     SqlParameter[] parmeters = new SqlParameter[2];
     parmeters[0]       = new SqlParameter("@UnitID", SqlDbType.UniqueIdentifier);
     parmeters[0].Value = info.UnitID;
     parmeters[1]       = new SqlParameter("@UnitName", SqlDbType.VarChar, 20);
     parmeters[1].Value = info.UnitName;
     return(SqlHelper.ExecuteNonQuery(SqlHelper.ConnectionStringLocalTransaction,
                                      CommandType.StoredProcedure, "Proc_U_Unit", parmeters) > 0);
 }
Esempio n. 2
0
 /// <summary>
 /// 函数名:UpdateUnit
 /// 作用:更新用量单位
 /// 作者:开济
 /// </summary>
 /// <param name="info">用量单位更新信息</param>
 /// <returns>更新成功与否</returns>
 public static bool UpdateUnit(CraftBasicInfoMgt info)
 {
     return(new DCraftBasicInfoMgt().UpdateUnit(info));
 }