Ejemplo n.º 1
0
        public void Update(int Id, string Username, int Periodaccountid, int Perdiemcount, bool IsDeleted, DateTime?CreatedOn, string CreatedBy, DateTime?ModifiedOn, string ModifiedBy, double Mileageclaimed, int Rategroupid)
        {
            Timesheet item = new Timesheet();

            item.Id = Id;

            item.Username = Username;

            item.Periodaccountid = Periodaccountid;

            item.Perdiemcount = Perdiemcount;

            item.IsDeleted = IsDeleted;

            item.CreatedOn = CreatedOn;

            item.CreatedBy = CreatedBy;

            item.ModifiedOn = ModifiedOn;

            item.ModifiedBy = ModifiedBy;

            item.Mileageclaimed = Mileageclaimed;

            item.Rategroupid = Rategroupid;

            item.MarkOld();
            item.Save(UserName);
        }
Ejemplo n.º 2
0
        public void UpdateMileage(int Id, double MileageClaimed)
        {
            Timesheet item = FetchByID(Id)[0];

            item.Mileageclaimed = MileageClaimed;

            item.MarkOld();
            item.Save(UserName);
        }
Ejemplo n.º 3
0
        public void UpdatePerDiemCount(int Id, int Perdiemcount)
        {
            Timesheet item = FetchByID(Id)[0];

            item.Perdiemcount = Perdiemcount;

            item.MarkOld();
            item.Save(UserName);
        }
Ejemplo n.º 4
0
        public void UpdateRateGroup(int id, int rateGroupId)
        {
            Timesheet item = FetchByID(id)[0];

            item.Rategroupid = rateGroupId;

            item.MarkOld();
            item.Save(UserName);
        }