예제 #1
0
        /// <summary> 银行按揭信息列表获取合同进度
        /// </summary>
        /// <returns></returns>
        public AdminJsonStr getcontractType()
        {
            AdminJsonStr        model       = new AdminJsonStr();
            List <contractType> list_payway = new contractType().GetListcontracts();

            model.data  = list_payway;
            model.count = list_payway.Count;
            return(model);
        }
예제 #2
0
        public Contract MapContract(contractType contract)
        {
            IEnumerable <ContractAllocation> contractAllocations = new List <ContractAllocation>();

            if (contract.contractAllocations != null)
            {
                contractAllocations = contract.contractAllocations.SelectMany(FlattenContractAllocations).Select(MapContractAllocation);
            }

            return(new Contract()
            {
                ContractNumber = contract.contractNumber,
                ContractVersionNumber = contract.contractVersionNumber,
                StartDate = contract.startDateSpecified ? contract.startDate : null,
                EndDate = contract.endDateSpecified ? contract.endDate : null,
                ContractAllocations = contractAllocations.ToList()
            });
        }
예제 #3
0
 public IEnumerable <contractType> FlattenContracts(contractType contract)
 {
     return(contract.SelectRecursive(c => c.contracts));
 }