Exemple #1
0
        /// <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();
            }
        }
Exemple #2
0
        /// <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();
            }
        }
Exemple #3
0
        /// <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();
            }
        }