private void UpdateSuccessSend(int i, RootObjectSendReport result) { LongTermObject lt = INitData.instance.initData.result.longTermObject.Find( m => m.ObjectiveID == listLate.listReport[i].fakeObjectId); if (lt != null) { lt.ObjectiveID = result.result.ObjectiveID; } List <EvaluationActivity> listEva = INitData.instance.initData.result.evaluationActivity .FindAll(m => m.EvaluationActivityID == listLate.listReport[i].FakeACtivitiesID); foreach (var lvs in listEva) { lvs.EvaluationActivityID = result.result.EvaluationActivityID; } UpdateListLate(result.result.ObjectiveID, listLate.listReport[i].fakeObjectId); if (listLate.listReport[i].dateTime == DateTime.Today.ToString()) { controlpage.SetLastReport(listLate.listReport[i].RepID, listLate.listReport[i].dualCallReportObject.step2.datefrom, listLate.listReport[i].dualCallReportObject.step2.dateto, listLate.listReport[i].dualCallReportObject.step2.longterm, listLate.listReport[i].dcthisDay.step2.howto); controlpage.SaveDataTodayReport(listLate.listReport[i].RepID, listLate.listReport[i].dcthisDay); } listLate.listReport[i].Status = 1; }
private void UpdateTooBig(int i, int ObjectId, int EvaluationActivityID) { LongTermObject lt = INitData.instance.initData.result.longTermObject.Find( m => m.ObjectiveID == listLate.listReport[i].fakeObjectId); if (lt != null) { lt.ObjectiveID = ObjectId; } List <EvaluationActivity> listEva = INitData.instance.initData.result.evaluationActivity .FindAll(m => m.EvaluationActivityID == listLate.listReport[i].FakeACtivitiesID); foreach (var lvs in listEva) { lvs.EvaluationActivityID = EvaluationActivityID; } UpdateListLate(ObjectId, listLate.listReport[i].fakeObjectId); }