Beispiel #1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="ChangeNo"></param>
        public ChangeDetailViewModel(BindingList <ContractBoqChangeInfo> ChangedList, String ProjectNo, string ProjectName = "")
        {
            this.projectNo   = ProjectNo;
            this.projectName = ProjectName;
            MeteringPaymentClient client = new MeteringPaymentClient();

            projectBoqChangeService = client.GetIContractBoqChangeService();
            projectBoqService       = client.GetIContractBoqService();
            this.ChangedList        = ChangedList;
            BoqChangeEx             = new ProjectBoqChangeEx();
            BoqChangeEx.ProjectNo   = projectNo;
        }
Beispiel #2
0
        /// <summary>
        /// 获取扩展对象
        /// </summary>
        /// <param name="ChangeNo">变更单No</param>
        /// <returns></returns>
        public ProjectBoqChangeEx GetChangeEx(String ChangeNo)
        {
            //查找Info对象
            ContractBoqChangeInfo chInfo = ChangedList.ToList().Find(m => m.ChangeNo == ChangeNo);
            //获取变更明细
            ContractBoqChange boqChange = projectBoqChangeService.Get(ChangeNo);
            //加工成扩展对象
            ProjectBoqChangeEx boqChangeEx = HDAutoMapper.DynamicMap <ProjectBoqChangeEx>(boqChange);

            boqChangeEx.ChangeInfo = chInfo;
            return(boqChangeEx);
        }