Пример #1
0
        public IList <CalculationWithPolicyAndPeriod> FindByWithPolicy(Domain.Model.Periods.PeriodId periodId,
                                                                       IListFetchStrategy <CalculationWithPolicyAndPeriod> fs)
        {
            var q = from c in session.Query <Calculation>()
                    where c.PeriodId == periodId
                    join p in session.Query <Policy>() on c.PolicyId equals p.Id
                    join pr in session.Query <Period>() on c.PeriodId equals pr.Id
                    select new CalculationWithPolicyAndPeriod {
                Calculation = c, Policy = p, Period = pr
            };
            var res = FetchStrategyHelper.ExecuteQuery(q2 => q2.ToList(), q, fs);

            fs.PageCriteria.PageResult.Result = res;
            return(res);
        }
Пример #2
0
 public IList <Calculation> FindBy(Domain.Model.Periods.PeriodId periodId, ListFetchStrategy <Calculation> fs)
 {
     return(rep.Find(c => c.PeriodId == periodId, fs));
 }
Пример #3
0
        public PeriodEngineState GetPeriodCopyingStateProgress(Domain.Model.Periods.PeriodId periodId)
        {
            var client = new CalculationEngineRef.PeriodEngineServiceClient();

            return(WcfClientHelper.CallMethod((c, id) => c.GetPeriodCopyingStateProgress(id.Id), client, periodId, errorAdapter));
        }
Пример #4
0
        public void CopyBasicData(Domain.Model.Periods.PeriodId sourcePeriodId, Domain.Model.Periods.PeriodId destionationPeriodId)
        {
            var client = new CalculationEngineRef.PeriodEngineServiceClient();

            WcfClientHelper.CallMethod((c, id1, id2) => c.CopyBasicData(id1.Id, id2.Id), client, sourcePeriodId, destionationPeriodId, errorAdapter);
        }
Пример #5
0
        public PeriodEngineState GetIntializeInquiryState(Domain.Model.Periods.PeriodId periodId)
        {
            var client = new CalculationEngineRef.PeriodEngineServiceClient();

            return(WcfClientHelper.CallMethod((c, id) => c.GetIntializeInquiryState(id.Id), client, periodId, errorAdapter));
        }
Пример #6
0
        public void InitializeInquiry(Domain.Model.Periods.PeriodId periodId)
        {
            var client = new CalculationEngineRef.PeriodEngineServiceClient();

            WcfClientHelper.CallMethod((c, id) => c.InitializeInquiry(id.Id), client, periodId, errorAdapter);
        }
Пример #7
0
 public void FindBy(Domain.Model.Periods.PeriodId periodId, ListFetchStrategy <Calculation> fs)
 {
     throw new System.NotImplementedException();
 }