예제 #1
0
        public SearchTreeNodeHelper(SearchTreeNode srNode, CarType ctType)
        {
            this.SearchTreeNodeID = srNode.ID;
            this.ParentSearchTreeNodeID = srNode.ParentNodeID;
            this.Text = srNode.Name.Tex_Text;

            this.CarTypeID = ctType.ID;
            this.ModelID = ctType.TYP_MOD_ID;
        }
 protected string GetEngineVolume(CarType carType)
 {
     if (carType.EngineVolume.HasValue)
     {
         return Math.Round((decimal)carType.EngineVolume.Value / 1000m, 1).ToString("0.0");
     }
     else
     {
         return String.Empty;
     }
 }
예제 #3
0
 partial void DeleteCarType(CarType instance);
예제 #4
0
		private void detach_CarTypes(CarType entity)
		{
			this.SendPropertyChanging();
			entity.Model = null;
		}
예제 #5
0
 partial void UpdateCarType(CarType instance);
예제 #6
0
		private void attach_CarTypes(CarType entity)
		{
			this.SendPropertyChanging();
			entity.Model = this;
		}
예제 #7
0
 partial void InsertCarType(CarType instance);