public List <SPClientChannelSettingWrapper> GetAllChannelClientSetting()
        {
            List <SPClientWrapper> clients = SPClientWrapper.FindAllBySPClientGroupID(this);

            List <SPClientChannelSettingWrapper> codes = new List <SPClientChannelSettingWrapper>();

            foreach (SPClientWrapper client in clients)
            {
                codes.Add(client.DefaultClientChannelSetting);
            }

            return(codes);
        }
        //public static void InsertRecord(SPPaymentInfoWrapper paymentInfo)
        //{
        //    SPInterceptRateWrapper spInterceptRateWrappe  =new SPInterceptRateWrapper();

        //}
        public static void InsertRate(SPChannelWrapper channelId, SPClientWrapper clinetId, bool isInterCept)
        {
            SPInterceptRateEntity spInterceptRateWrapper = businessProxy.FindRateByChannelIdAndClinetId(channelId.Id, clinetId.Id);

            if (isInterCept)
            {
                spInterceptRateWrapper.InterceptCount = spInterceptRateWrapper.InterceptCount + 1;
            }

            spInterceptRateWrapper.TotalCount = spInterceptRateWrapper.TotalCount + 1;

            spInterceptRateWrapper.InterceptRate = Convert.ToDecimal(spInterceptRateWrapper.InterceptCount) / Convert.ToDecimal(spInterceptRateWrapper.TotalCount);

            spInterceptRateWrapper.LastSycnDate = System.DateTime.Now;

            Update(ConvertEntityToWrapper(spInterceptRateWrapper));
        }
 public static DayliyReport GetDayReport(DateTime dateTime, SPClientWrapper clientWrapper)
 {
     return(businessProxy.GetDayReport(dateTime, clientWrapper.DefaultClientChannelSetting.entity));
 }
示例#4
0
 public static List <SPPaymentInfoWrapper> FindAllByClientID(SPClientWrapper clientID)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByClientID(clientID.entity)));
 }
示例#5
0
 public static List <SPPaymentInfoWrapper> FindAllByOrderByAndFilterAndClientID(string orderByColumnName, bool isDesc, int pageIndex, int pageSize, SPClientWrapper clientID, out int recordCount)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByOrderByAndFilterAndClientID(orderByColumnName, isDesc, pageIndex, pageSize, clientID.entity, out recordCount)));
 }
 public static List <SPClientChannelSettingWrapper> FindAllByClinetID(SPClientWrapper clinetID)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByClinetID(clinetID.entity)));
 }
示例#7
0
 public static List <SPClientChannelSettingWrapper> GetSettingByClient(SPClientWrapper spClientWrapper)
 {
     return(ConvertToWrapperList(businessProxy.GetSettingByClient(spClientWrapper.entity)));
 }
示例#8
0
 public static List <SPChannelWrapper> GetChannelByClient(SPClientWrapper spClientWrapper)
 {
     return(SPChannelWrapper.ConvertToWrapperList(businessProxy.GetChannelByClient(spClientWrapper.entity)));
 }
示例#9
0
 public static void UpdateRecordAndReport(DayliyReport dayReport, SPClientWrapper spClientWrapper, int newIntercept)
 {
     businessProxy.UpdateRecordAndReport(dayReport, spClientWrapper.DefaultClientChannelSetting.entity, newIntercept);
 }
 public static void Refresh(SPClientWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
 public static void Delete(SPClientWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }
 public static void SaveOrUpdate(SPClientWrapper obj)
 {
     businessProxy.SaveOrUpdate(obj.entity);
 }