コード例 #1
0
        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);
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 public int Create(EngineeringPlanInfo Info)
 {
     return(this._IEngineeringPlanService.Add(Info));
 }