private void ProcTaskListTime(HEADER obj) { mCount = 0; ICD.WorkList msg = (ICD.WorkList)obj; HEADER msgHis = new HEADER(); msgHis.FillClientHeader(DEF.CMD_TaskHistory); foreach (Work item in msg.works) { if (mTracks.ContainsKey(item.recordID)) { continue; } TrackingInfo info = new TrackingInfo(); info.workBase = item; info.his = null; mTracks[item.recordID] = info; mCount++; msgHis.ext1 = item.recordID.ToString(); ICDPacketMgr.GetInst().sendMsgToServer(msgHis); } }
private void RequestTaskList(DateTime from, DateTime to) { HEADER msg = new HEADER(); msg.FillClientHeader(DEF.CMD_TaskBaseList); msg.ext1 = from.ToString("yyyy-MM-dd HH:mm:ss"); msg.ext2 = to.ToString("yyyy-MM-dd HH:mm:ss"); ICDPacketMgr.GetInst().sendMsgToServer(msg); }