Beispiel #1
0
        public void Update(int Id, string Name, double Defaultperdiemrate, bool IsDeleted, DateTime?CreatedOn, string CreatedBy, DateTime?ModifiedOn, string ModifiedBy, double Defaultmileagerate)
        {
            BillingAccount item = new BillingAccount();

            item.Id = Id;

            item.Name = Name;

            item.Defaultperdiemrate = Defaultperdiemrate;

            item.IsDeleted = IsDeleted;

            item.CreatedOn = CreatedOn;

            item.CreatedBy = CreatedBy;

            item.ModifiedOn = ModifiedOn;

            item.ModifiedBy = ModifiedBy;

            item.Defaultmileagerate = Defaultmileagerate;

            item.MarkOld();
            item.Save(UserName);
        }
Beispiel #2
0
        public void Update(Int32 id, String name)
        {
            var item = BillingAccount.FetchByID(id);

            item.Name = name;
            item.MarkOld();
            item.Save(UserName);
        }
Beispiel #3
0
        public void UpdateDefaultMileageRate(Int32 id, Double DefaultMileageRate)
        {
            var item = BillingAccount.FetchByID(id);

            item.Defaultmileagerate = DefaultMileageRate;
            item.MarkOld();
            item.Save(UserName);
        }
Beispiel #4
0
        public void UpdateDefaultPerDiemRate(Int32 id, Double DefaultPerDiemRate)
        {
            var item = BillingAccount.FetchByID(id);

            item.Defaultperdiemrate = DefaultPerDiemRate;
            item.MarkOld();
            item.Save(UserName);
        }
Beispiel #5
0
 public bool Destroy(object Id)
 {
     return(BillingAccount.Destroy(Id) == 1);
 }
Beispiel #6
0
 public bool Delete(object Id)
 {
     return(BillingAccount.Delete(Id) == 1);
 }