Beispiel #1
0
        public override void execute()
        {
            Console.WriteLine("this is process start command");
            //Console.WriteLine("assigned to" + this.AssignTo);
            TeamInfo teamInfo = TeamInfoAccess.getTeam(0);
            string bugId = "N/A";
            using (PSDataAccess psDataAccess = new PSDataAccess(teamInfo.domain, teamInfo.product))
            {
                bugId = "bug12345";
            }

            TrackingDataContext tdc = new TrackingDataContext();
            CommonResource.Tracking t = new CommonResource.Tracking();
            t.wfname = this.WFName;
            t.bugid = bugId;
            t.wfinstanceid = new Guid(this.InstanceId);
            t.lastmodified = DateTime.Now;
            t.assignedto = this.AssignedTo;
            t.title = this.Title;
            t.qfestatus = this.qFEStatus;

            //t.qfestatus=
            t.lastmodifiedby = AuthenticationHelper.GetCurrentUser();
            tdc.Trackings.InsertOnSubmit(t);
            tdc.SubmitChanges();
        }
Beispiel #2
0
        public override void execute()
        {
            Console.WriteLine("this is process start command");
            //Console.WriteLine("assigned to" + this.AssignTo);
            TeamInfo teamInfo = TeamInfoAccess.getTeam(0);
            string   bugId    = "N/A";

            using (PSDataAccess psDataAccess = new PSDataAccess(teamInfo.domain, teamInfo.product))
            {
                bugId = "bug12345";
            }

            TrackingDataContext tdc = new TrackingDataContext();

            CommonResource.Tracking t = new CommonResource.Tracking();
            t.wfname       = this.WFName;
            t.bugid        = bugId;
            t.wfinstanceid = new Guid(this.InstanceId);
            t.lastmodified = DateTime.Now;
            t.assignedto   = this.AssignedTo;
            t.title        = this.Title;
            t.qfestatus    = this.qFEStatus;

            //t.qfestatus=
            t.lastmodifiedby = AuthenticationHelper.GetCurrentUser();
            tdc.Trackings.InsertOnSubmit(t);
            tdc.SubmitChanges();
        }
Beispiel #3
0
 partial void DeleteTracking(Tracking instance);
Beispiel #4
0
 partial void UpdateTracking(Tracking instance);
Beispiel #5
0
 partial void InsertTracking(Tracking instance);
Beispiel #6
0
 partial void DeleteTracking(Tracking instance);
Beispiel #7
0
 partial void UpdateTracking(Tracking instance);
Beispiel #8
0
 partial void InsertTracking(Tracking instance);