예제 #1
0
        /// <summary>
        /// 更新汇报单
        /// </summary>
        /// <param name="model">汇报单</param>
        /// <param name="detailList">明细</param>
        /// <param name="SortID"></param>
        /// <param name="htExtAttr">扩展属性</param>
        /// <returns></returns>
        public static bool UpdateReport(StorageQualityCheckReportModel model, List <StorageQualityCheckReportDetailModel> detailList, string[] SortID, Hashtable htExtAttr)
        {
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            try
            {
                bool         succ     = false;
                LogInfoModel logModel = InitLogInfo(model.ReportNo);
                logModel.Element = ConstUtil.LOG_PROCESS_UPDATE;
                succ             = CheckReportDBHelper.UpdateReport(model, detailList, SortID, 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);
            }
        }
예제 #2
0
 /// <summary>
 /// 回写质检报告
 /// </summary>
 /// <param name="model"></param>
 /// <param name="ID"></param>
 /// <returns></returns>
 public static bool UpdateReport(StorageQualityCheckReportModel model)
 {
     return(CheckReportDBHelper.UpdateReport(model));
 }