public int Add(EngineeringPlanInfo EngineeringPlan) { var entity = new EngineeringPlanEntity(EngineeringPlan); this._DB.Add(entity); //foreach (var attachID in EngineeringPlan.AttachIDs) //{ // AddAttach(entity.ID, attachID); //} return(entity.ID); }
public EngineeringPlanEntity(EngineeringPlanInfo Info) { this.ID = Info.ID; this.EngineeringID = Info.EngineeringID; this.AccordingTo = Info.AccordingTo; this.Range = Info.Range; this.Product = Info.Product; this.Note = Info.Note; this.Input = Info.Input; this.Principle = Info.Principle; this.Quality = Info.Quality; this.Measures = Info.Measures; }
public int Create(EngineeringPlanInfo Info) { return(this._IEngineeringPlanService.Add(Info)); }