예제 #1
0
        public List <FinancialProductDto> GetAllProduct()
        {
            BehaviorStatService.SaveBehaviorStat(DataContracts.SystemSetting.EnumBehaviorOperate.AccessCount);
            var temp = financialProxy.GetAllProduct(code, key);

            if (temp != null)
            {
                var result = temp.Select(p => new FinancialProductDto
                {
                    Abstract           = p.Abstract,
                    Day                = p.Day,
                    Description        = p.Description,
                    EndDate            = p.EndDate,
                    IconUrl            = p.IconUrl,
                    LimitAmount        = p.LimitAmount,
                    CurrentAmount      = p.CurrentAmount,
                    MaxAmount          = p.MaxAmount,
                    Name               = p.Name,
                    ProductId          = p.ProductId,
                    ReturnRate         = p.ReturnRate,
                    ValidDate          = p.ValidDate,
                    InterestRate       = p.InterestRate,
                    CanSettleInAdvance = p.CanSettleInAdvance
                });
                if (result == null)
                {
                    return(null);
                }
                return(result.ToList());
            }

            return(null);
        }
예제 #2
0
 public void TestSaveBehaviorStat()
 {
     BootStrapper.Boot();
     BehaviorStatService.SaveBehaviorStat(EnumBehaviorOperate.LoginCount);
     //BehaviorStatService.SaveBehaviorStat("100100", "Test", "Buyer","GYS01", EnumBehaviorOperate.LoginCount);
     //BehaviorStatService.SaveBehaviorStat("100100", "Test", "Buyer","GYS01", EnumBehaviorOperate.LoginCount);
     //BehaviorStatService.SaveBehaviorStat("100100", "Test", "Buyer","GYS01", EnumBehaviorOperate.LoginCount);
     //BehaviorStatService.SaveBehaviorStat("100100", "Test", "Buyer","GYS01", EnumBehaviorOperate.LoginCount);
     //BehaviorStatService.SaveBehaviorStat("100100", "Test", "Buyer","GYS01", EnumBehaviorOperate.LoginCount);
     //BehaviorStatService.SaveBehaviorStat("100200", "Test2", "Supplier", "GYS01", EnumBehaviorOperate.LoginCount);
     //BehaviorStatService.SaveBehaviorStat("100300", "Test3", "Supplier", "GYS01", EnumBehaviorOperate.LoginCount);
 }
예제 #3
0
 public DataContracts.DomesticTicket.FlightResponse[] QueryConnwayFlight(string formCityCode, string midCityCode, string toCityCode, DateTime takeDate, DateTime midDate, bool IsShare = false, string carrayCode = null)
 {
     BehaviorStatService.SaveBehaviorStat(DataContracts.SystemSetting.EnumBehaviorOperate.QueryCount);
     DataContracts.DomesticTicket.FlightResponse[] FlightResponseArr = null;
     try
     {
         if (currentUser == null)
         {
             throw new CustomException(111, "用户未登录或者掉线,请重新登陆!");
         }
         FlightResponseArr = flightDestineService.QueryConnwayFlight(currentUser.Code, formCityCode, midCityCode, toCityCode, takeDate, midDate, IsShare, carrayCode);
     }
     catch (Exception ex)
     {
         throw new CustomException(111, ex.Message);
     }
     return(FlightResponseArr);
 }