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