public EmployeeAnnualLeave GetObjectByKey(object keypair) { if (this.Contains(GetKey(keypair)) == false) { return(null); } EmployeeAnnualLeave ob = this[GetKey(keypair)]; return((EmployeeAnnualLeave)ob); }
public EmployeeAnnualLeave GetObjectByKey(long k_EmpALID) { if (this.Contains(GetKey(k_EmpALID)) == false) { return(null); } EmployeeAnnualLeave ob = this[GetKey(k_EmpALID)]; return((EmployeeAnnualLeave)ob); }
public EmployeeAnnualLeave GetObjectByKey(KeyValuePair <string, long> keypair) { if (this.Contains(keypair) == false) { return(null); } EmployeeAnnualLeave ob = this[keypair]; return((EmployeeAnnualLeave)ob); }
public bool ChangeItem(KeyValuePair <string, long> keypair, EmployeeAnnualLeave item) { EmployeeAnnualLeave orig = this.GetObjectByKey(keypair); if (orig != null) { int index = this.IndexOf(orig); this.SetItem(index, item); return(true); } return(false); }
public EmployeeAnnualLeave GetObjectByKey(long k_EmpALID, LV.Core.DAL.Base.IRepository repository) { if (this.Contains(GetKey(k_EmpALID)) == false) { EmployeeAnnualLeave ob = repository.GetQuery <EmployeeAnnualLeave>().FirstOrDefault(o => o.EmpALID == k_EmpALID); if (ob != null) { this.Add(ob); } return(ob); } EmployeeAnnualLeave obj = this[GetKey(k_EmpALID)]; return((EmployeeAnnualLeave)obj); }
public bool DeleteObject(EmployeeAnnualLeave item, LV.Core.DAL.Base.IRepository repository) { repository.Update(item); return(true); }
public bool AddObject(EmployeeAnnualLeave item, LV.Core.DAL.Base.IRepository repository) { repository.Add(item); return(true); }
protected override KeyValuePair <string, long> GetKeyForItem(EmployeeAnnualLeave item) { return(item.Key); }