public bool Update() { JBusDeviseTable AT = new JBusDeviseTable(); AT.SetValueProperty(this); ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory(); jHistory.Save("BusManagment.JBusDevise", AT.Code, 0, 0, 0, "ویرایش دستگاه اتوبوس", "", 0); return(AT.Update()); }
public int Insert(JDataBase db = null) { JBusDeviseTable AT = new JBusDeviseTable(); AT.SetValueProperty(this); if (db == null) { Code = AT.Insert(); } else { Code = AT.Insert(db); } ClassLibrary.JHistory jHistory = new ClassLibrary.JHistory(); jHistory.Save("BusManagment.JBusDevise", Code, 0, 0, 0, "ثبت دستگاه اتوبوس", "", 0); return(Code); }