/// <summary> /// 修改物品档案 /// </summary> /// <param name="model"></param> /// <returns></returns> public static bool UpdateProductInfo(ProductInfoModel model, Hashtable htExtAttr) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; try { bool succ = false; LogInfoModel logModel = InitLogInfo(model.ProdNo); logModel.Element = ConstUtil.LOG_PROCESS_UPDATE; succ = ProductInfoDBHelper.UpdateProductInfo(model, htExtAttr); if (!succ) { logModel.Remark = ConstUtil.LOG_PROCESS_FAILED; } else { logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS; } LogDBHelper.InsertLog(logModel); return(succ); } catch (Exception ex) { WriteSystemLog(userInfo, ex); return(false); } }