Exemplo n.º 1
0
        public DataEvidenceViewModel()
        {
            // 获取该案件的物证列表
            DataManager dm = new DataManager();

            this.ListEvidence = eviManager.GetAllEvidences();
        }
Exemplo n.º 2
0
        public DataEvidenceViewModel()
        {
            // 获取案件列表
            CaseManager caseManager = new CaseManager();
            List <Case> caseList    = caseManager.GetCaseByWhere("all", "ADDTIME", "desc");

            // 获取该案件的物证列表
            DataManager     dm           = new DataManager();
            List <Evidence> evidenceList = eviManager.GetAllEvidences();

            foreach (Evidence e in evidenceList)
            {
                Evidence2 e2 = CommonUtil.ToDerived <Evidence, Evidence2>(e);
                Case      cc = caseList.Where(x => x.CASE_GUID == e2.CASE_GUID).FirstOrDefault();
                e2.CaseBelonged = cc;

                this.ListEvidence.Add(e2);
            }
        }