/// <summary> /// 紀錄推播訊息 /// </summary> /// <param name="Sn"></param> /// <param name="Content"></param> private void Record(string CompCd, string Sn, string Account, string Content) { var con = new Conditions <DataBase.TCallLogRecord>(); con.And(x => x.SN == Sn && x.Account == Account); con.Allow(x => x.RecordRemark); con.Allow(x => x.RecordDatetime); TcallogRecord record = new TcallogRecord() { Comp_Cd = CompCd, SN = Sn, Account = Account, RecordDatetime = DateTime.Now, RecordRemark = Content, }; _pushRecordRepo.Insert(con, record); }
public PushRecord(TcallogRecord data) { this.PushRecard = data.RecordRemark; this.PushTime = data.RecordDatetime.ToString("yyyy/MM/dd HH:mm:ss"); }