public bool Load() { this.dao = new ItemDAC(this); if (this.dao.SelectOne()) { base.Clone(this.dao); return true; } return false; }
public bool AddOne() { this.dao = new ItemDAC(this); if (this.dao.InsertOne() >= Utility.ONE_ROW_AFFECTED) { base.ID = this.dao.ID; return true; } return false; }
public bool Remove() { this.dao = new ItemDAC(this); return (this.dao.DeleteOne() >= Utility.ONE_ROW_AFFECTED); }
public byte[] LoadThumbnail() { this.dao = new ItemDAC(); this.dao.ID = base.ID; return this.dao.SelectPicture(true); }
public byte[] LoadPicture() { this.dao = new ItemDAC(); this.dao.ID = base.ID; return this.dao.SelectPicture(false); }
public DataTable LoadAllByCustID(int custID) { base.CustID = custID; this.dao = new ItemDAC(this); return this.dao.SelectAllByCustID(); }
public DataTable LoadAll() { this.dao = new ItemDAC(this); return this.dao.SelectAll(); }