Exemplo n.º 1
0
 /// <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
     {
     }
 }
Exemplo n.º 2
0
 /// <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();
     }
 }
Exemplo n.º 3
0
        /// <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();
            }
        }