Esempio n. 1
0
        /// <summary>
        /// 修改开票信息
        /// </summary>
        /// <param name="model">开票实体</param>
        /// <returns>true 成功,false失败</returns>
        public static bool UpdateBillingInfo(BillingModel model)
        {
            if (model == null)
            {
                return(false);
            }

            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            try
            {
                bool   succ        = false;
                string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

                LogInfoModel logModel = InitLogInfo(model.BillingNum, 0);
                logModel.Element = ConstUtil.LOG_PROCESS_UPDATE;

                succ = BillingDBHelper.UpdateBillingInfo(model);
                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, 0, ex);
                return(false);
            }
        }