/// <summary> /// 添加开票信息 /// </summary> /// <param name="model">开票实体</param> /// <returns>true 成功,false失败</returns> public static bool InsertBillingInfo(BillingModel model, out int ID) { ID = 0; UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; if (model.CompanyCD == null) { model.CompanyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD; } 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.InsertBillingInfo(model, out ID); 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); } }