Exemplo n.º 1
0
        /// <summary>
        /// 更改资金变动信息
        /// </summary>
        /// <param name="New_CarGet">新的资金变动实体</param>
        /// <returns></returns>
        public bool UpdateCarGet(Car_Get TempCarGet)
        {
            Car_Get OldCarGet = DB_CarGet.Select(P => P.GetCar_ID == TempCarGet.GetCar_ID).Single();
            Car_Get NewCarGet = OldCarGet;

            NewCarGet.GetCar_CarNumber      = TempCarGet.GetCar_CarNumber;
            NewCarGet.GetCar_Order          = TempCarGet.GetCar_Order;
            NewCarGet.GetCar_UserValidation = TempCarGet.GetCar_UserValidation;
            return(DB_CarGet.Update(OldCarGet, NewCarGet));
        }
Exemplo n.º 2
0
 /// <summary>
 /// 新增资金变动信息
 /// </summary>
 /// <param name="CarGet">要增加的资金变动实体</param>
 /// <returns></returns>
 public bool AddCarGet(Car_Get CarGet)
 {
     return(DB_CarGet.Insert(CarGet));
 }
Exemplo n.º 3
0
        /// <summary>
        /// 删除资金变动信息
        /// </summary>
        /// <param name="CarGet">要删除的资金变动实体</param>
        /// <returns></returns>
        public bool DeleteCarGet(int CarGetID)
        {
            Car_Get CarGet = DB_CarGet.Select(P => P.GetCar_ID == CarGetID).Single();

            return(DB_CarGet.Delete(CarGet));
        }
Exemplo n.º 4
0
 /// <summary>
 /// 新增资金变动信息
 /// </summary>
 /// <param name="CarGet">要增加的资金变动实体</param>
 /// <returns></returns>
 public bool AddCarGet_Trans(Car_Get CarGet)
 {
     return(DB_CarGet.Insert_NoSub(CarGet));
 }