Esempio n. 1
0
 public override void ClearRow()
 {
     NewRow = new Model.CartridgeRefillingReports()
     {
         DateTime = DateTime.Now
     };
 }
Esempio n. 2
0
 public override void DeleteRow(object obj)
 {
     Model.CartridgeRefillingReports row = obj as Model.CartridgeRefillingReports;
     using (Model.BaseContext db = new Model.BaseContext())
     {
         db.CartridgeRefillingReports.Remove(db.CartridgeRefillingReports.Find(row.Id));
         db.SaveChanges();
     }
 }
Esempio n. 3
0
 public ReportDetailsVM(Model.CartridgeRefillingReports Row)
 {
     row = Row;
     ClearRow();
     UploadData();
 }