/// <summary> /// ویرایش /// </summary> /// <returns></returns> public bool Update(JDataBase tempDb) { try { JTruckTable PDT = new JTruckTable(); PDT.SetValueProperty(this); if (PDT.Update(tempDb)) { return(true); } return(false); } catch (Exception ex) { JSystem.Except.AddException(ex); return(false); } finally { } }
/// <summary> /// درج /// </summary> /// <returns></returns> public int Insert(JDataBase tempDb) { try { JTruckTable JLT = new JTruckTable(); JLT.SetValueProperty(this); Code = JLT.Insert(tempDb); if (Code > 0) { return(Code); } return(0); } catch (Exception ex) { JSystem.Except.AddException(ex); return(0); } finally { //tempDb.Dispose(); } }
/// <summary> /// حذف /// </summary> /// <returns></returns> public bool Delete(JDataBase tempDb) { JTruckTable PDT = new JTruckTable(); try { PDT.SetValueProperty(this); if (PDT.Delete(tempDb)) { return(true); } //Nodes.Delete(Nodes.CurrentNode); return(true); } catch (Exception ex) { JSystem.Except.AddException(ex); return(false); } finally { //Db.Dispose(); } }