public void Create(string models) { List <JournalViewModel> journals = JsonConvert.DeserializeObject <List <JournalViewModel> >(models); foreach (JournalViewModel jvm in journals) { _journalService.AddJournal(jvm); } }
/// <summary> /// 添加物证 /// </summary> /// <param name="evidence"></param> /// <returns></returns> public bool AddEvidence(Case myCase, Evidence evidence) { js.AddJournal(new Journal { ADDTIME = DateTime.Now, DESCRIPTION = "[" + myCase.CASE_NAME + "]中添加了[" + evidence.EVIDENCE_NAME + "]", JOURNAL_GUID = System.Guid.NewGuid().ToString(), OPERATE = JournalOperate.添加物证, USER_GUID = User.LoginUser.USER_GUID, USER_NAME = User.LoginUser.USER_NAME }); //向案件库中添加物证信息 ds.AddEvidence(myCase.CASE_PATH, evidence); return(es.AddEvidence(evidence) > 0); }
/// <summary> /// 添加日志 /// </summary> /// <param name="journal">journal 添加的日志信息</param> /// <returns></returns> public int AddJournal(Journal journal) { //js.createDataTable(); return(js.AddJournal(journal)); }