コード例 #1
0
        /// <summary>
        /// 审核移仓单
        /// </summary>
        protected virtual void VerifyShiftRequest(NetPayInfo netpayInfo)
        {
            int shiftSysNo = ExternalDomainBroker.GetShiftSysNoBySOSysNo(netpayInfo.SOSysNo.Value);

            if (shiftSysNo > 0)
            {
                try
                {
                    //调用Inventory接口审核移仓单
                    ExternalDomainBroker.VerifyShiftRequest(shiftSysNo);
                    //记录操作日志,该支付单的移仓单审核成功
                    ObjectFactory <ICommonBizInteract> .Instance.CreateOperationLog(
                        GetMessageString("NetPay_Log_VerifyShiftRequestSuccess", ServiceContext.Current.UserSysNo, netpayInfo.SysNo.Value)
                        , ECCentral.BizEntity.Common.BizLogType.Finance_NetPay_Verify
                        , netpayInfo.SysNo.Value
                        , netpayInfo.CompanyCode);
                }
                catch (System.Exception ex)
                {
                    //审核移仓单失败,记录操作日志,该支付单的移仓单审核失败
                    ObjectFactory <ICommonBizInteract> .Instance.CreateOperationLog(
                        GetMessageString("NetPay_Log_VerifyShiftRequestFailed", ServiceContext.Current.UserSysNo, netpayInfo.SysNo.Value, ex.Message)
                        , ECCentral.BizEntity.Common.BizLogType.Finance_NetPay_Verify
                        , netpayInfo.SysNo.Value
                        , netpayInfo.CompanyCode);
                }
            }
        }