Ejemplo n.º 1
0
        /// <summary>
        /// 更改车名信息
        /// </summary>
        /// <param name="New_Version">新的车名实体</param>
        /// <returns></returns>
        public bool UpdateVersion(Car_Version TempVersion)
        {
            Car_Version OldVersion = DB_Version.Select(P => P.Version_ID == TempVersion.Version_ID).Single();
            Car_Version NewVersion = OldVersion;

            NewVersion.Version_BaseKM              = TempVersion.Version_BaseKM;
            NewVersion.Version_Brand               = TempVersion.Version_Brand;
            NewVersion.Version_Count               = TempVersion.Version_Count;
            NewVersion.Version_IMG                 = TempVersion.Version_IMG;
            NewVersion.Version_Info                = TempVersion.Version_Info;
            NewVersion.Version_Name                = TempVersion.Version_Name;
            NewVersion.Version_Person              = TempVersion.Version_Person;
            NewVersion.Version_Price_Deposit       = TempVersion.Version_Price_Deposit;
            NewVersion.Version_Price_Member_Catch  = TempVersion.Version_Price_Member_Catch;
            NewVersion.Version_Price_Member_Rental = TempVersion.Version_Price_Member_Rental;
            NewVersion.Version_Price_Normal_Catch  = TempVersion.Version_Price_Normal_Catch;
            NewVersion.Version_Price_Normal_Rental = TempVersion.Version_Price_Normal_Rental;
            NewVersion.Version_Price_Over          = TempVersion.Version_Price_Over;
            NewVersion.Version_Price_Over_Riding   = TempVersion.Version_Price_Over_Riding;
            NewVersion.Version_Price_Riding        = TempVersion.Version_Price_Riding;
            NewVersion.Version_Shop                = TempVersion.Version_Shop;
            NewVersion.Version_Type                = TempVersion.Version_Type;

            return(DB_Version.Update(OldVersion, NewVersion));
        }
Ejemplo n.º 2
0
 public Form_PayDeposit(int Order_ID)
 {
     InitializeComponent();
     this.Order_ID           = Order_ID;
     Order_Client            = (OrderClient)ClientFactory.GetClient(ClientType.Type.Order);
     Version_Client          = (VersionClient)ClientFactory.GetClient(ClientType.Type.Version);
     Order                   = Order_Client.SelectOrder_ID(Order_ID);
     Version                 = Version_Client.SelectVersion_ID(Order.Order_Version);
     this.LB_Number.Text     = Order.Order_Count.ToString();
     this.LB_EveryPrice.Text = Version.Version_Price_Deposit.ToString();
     this.LB_TotalPrice.Text = (Version.Version_Price_Deposit * Order.Order_Count).ToString();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 删除车名信息
        /// </summary>
        /// <param name="Version">要删除的车名实体</param>
        /// <returns></returns>
        public bool DeleteVersion(int VersionID)
        {
            Car_Version Ver = DB_Version.Select(P => P.Version_ID == VersionID).Single();

            return(DB_Version.Delete(Ver));
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 新增车名信息
 /// </summary>
 /// <param name="Version">要增加的车名实体</param>
 /// <returns></returns>
 public bool AddVersion(Car_Version Version)
 {
     return(DB_Version.Insert(Version));
 }