Пример #1
0
        /// <summary>
        /// 核退重新编辑发票申请
        /// </summary>
        /// <param name="personnelId">操作人Id(操作日志需要)</param>
        /// <param name="realName">操作人(操作日志需要)</param>
        /// <param name="invoiceApply">发票申请Id</param>
        /// <param name="invoiceApplyDetailInfos">加盟店单据明细(ps:订单类型的发票申请传null)</param>
        /// <returns></returns>
        public ResultInfo AgainApply(Guid personnelId, string realName, InvoiceApplyInfo invoiceApply,
                                     List <InvoiceApplyDetailInfo> invoiceApplyDetailInfos)
        {
            var result = _invoiceApplySerivce.Again(personnelId, realName, invoiceApply, invoiceApplyDetailInfos);

            return(result.IsSuccess ? ResultInfo.Success() : ResultInfo.Failure(result.Message));
        }
Пример #2
0
 public ResultInfo InsertStorageRecord(StorageRecordInfo storageRecord, IList <StorageRecordDetailInfo> storageRecordDetails)
 {
     try
     {
         _storageManager.NewInsertStockAndGoods(storageRecord, storageRecordDetails);
         return(ResultInfo.Success());
     }
     catch (Exception ex)
     {
         return(ResultInfo.Failure(ex.Message));
     }
 }
Пример #3
0
        /// <summary>
        /// 发票申请作废
        /// </summary>
        /// <param name="personnelId">操作人Id(操作日志需要)</param>
        /// <param name="realName">操作人</param>
        /// <param name="applyId">发票申请Id</param>
        /// <param name="remark">作废理由</param>
        /// <returns></returns>
        public ResultInfo CancelApply(Guid personnelId, string realName, Guid applyId, string remark)
        {
            var result = _invoiceApplySerivce.Cancel(personnelId, realName, applyId, remark);

            return(result.IsSuccess ? ResultInfo.Success() : ResultInfo.Failure(result.Message));
        }
Пример #4
0
        /// <summary>
        /// 获取发票申请信息
        /// </summary>
        /// <param name="applyId"></param>
        /// <returns></returns>
        public ResultInfo <InvoiceApplyInfo> GetData(Guid applyId)
        {
            var result = _invoiceApplySerivce.GetData(applyId);

            return(result == null? ResultInfo <InvoiceApplyInfo> .Failure("对应的发票申请已不存在!") : ResultInfo <InvoiceApplyInfo> .Success(result));
        }