Example #1
0
 public bool Load()
 {
     this.dao = new ItemDAC(this);
     if (this.dao.SelectOne())
     {
         base.Clone(this.dao);
         return true;
     }
     return false;
 }
Example #2
0
 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;
 }
Example #3
0
 public bool Remove()
 {
     this.dao = new ItemDAC(this);
     return (this.dao.DeleteOne() >= Utility.ONE_ROW_AFFECTED);
 }
Example #4
0
 public byte[] LoadThumbnail()
 {
     this.dao = new ItemDAC();
     this.dao.ID = base.ID;
     return this.dao.SelectPicture(true);
 }
Example #5
0
 public byte[] LoadPicture()
 {
     this.dao = new ItemDAC();
     this.dao.ID = base.ID;
     return this.dao.SelectPicture(false);
 }
Example #6
0
 public DataTable LoadAllByCustID(int custID)
 {
     base.CustID = custID;
     this.dao = new ItemDAC(this);
     return this.dao.SelectAllByCustID();
 }
Example #7
0
 public DataTable LoadAll()
 {
     this.dao = new ItemDAC(this);
     return this.dao.SelectAll();
 }