示例#1
0
        public void CreateTrack(BaseQrDoc doc)
        {
            int docId = GetDocumentId(doc);
            Track track = new Track();
            track.docId = docId;

            track.statDate = DateTime.Now;
            track.userId = doc.ActionUser.id;
            track.statId = doc.ActionId;
            Entities.Tracks.AddObject(track);
            Save();
            //AddActionToBuffer(track);
        }
示例#2
0
        public int AddDocument(BaseQrDoc doc)
        {
            Document docu = new Document();
            docu.hash = doc.Hash;
            docu.typeId = doc.docType;
            docu.docNum = doc.docNum;
            Entities.Documents.AddObject(docu);
            Save();
            Track track = new Track();
            track.statId = 1;
            track.docId = docu.id;
            track.userId = doc.userId;
            track.statDate = doc.creationDate;
            Entities.Tracks.AddObject(track);
            Save();
            //AddActionToBuffer(track);

            return docu.id;
        }
示例#3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tracks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTracks(Track track)
 {
     base.AddObject("Tracks", track);
 }
示例#4
0
 /// <summary>
 /// Create a new Track object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="docId">Initial value of the docId property.</param>
 /// <param name="statId">Initial value of the statId property.</param>
 /// <param name="userId">Initial value of the userId property.</param>
 /// <param name="statDate">Initial value of the statDate property.</param>
 public static Track CreateTrack(global::System.Int32 id, global::System.Int32 docId, global::System.Int32 statId, global::System.Int32 userId, global::System.DateTime statDate)
 {
     Track track = new Track();
     track.id = id;
     track.docId = docId;
     track.statId = statId;
     track.userId = userId;
     track.statDate = statDate;
     return track;
 }