Beispiel #1
0
        //[ValidateAntiForgeryToken]
        public ActionResult DeleteConfirmed(int id)
        {
            PipelineEDISetting pipelineEDISetting = db.PipelineEDISetting.Find(id);

            db.PipelineEDISetting.Remove(pipelineEDISetting);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 //[ValidateAntiForgeryToken]
 public ActionResult Edit([Bind(Include = "id,PipeDuns,ISA08_segment,ISA06_Segment,ISA11_Segment,ISA12_Segment,ISA16_Segment,GS01_Segment,GS02_Segment,GS03_Segment,GS07_Segment,GS08_Segment,ST01_Segment,DataSeparator,SegmentSeperator,DatasetId,ShipperCompDuns,StartDate,EndDate,SendManually,ForOacy,ForUnsc,ForSwnt")] PipelineEDISetting pipelineEDISetting)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pipelineEDISetting).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(pipelineEDISetting));
 }
Beispiel #3
0
        // GET: PipelineEDISettings/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PipelineEDISetting pipelineEDISetting = db.PipelineEDISetting.Find(id);

            if (pipelineEDISetting == null)
            {
                return(HttpNotFound());
            }
            return(View(pipelineEDISetting));
        }
Beispiel #4
0
 public PipelineEDISettingDTO Parse(PipelineEDISetting pipeSetting)
 {
     if (pipeSetting != null)
     {
         return new PipelineEDISettingDTO
                {
                    id               = pipeSetting.id,
                    DataSeparator    = pipeSetting.DataSeparator,
                    DatasetId        = pipeSetting.DatasetId,
                    GS01_Segment     = pipeSetting.GS01_Segment,
                    GS02_Segment     = pipeSetting.GS02_Segment,
                    GS03_Segment     = pipeSetting.GS03_Segment,
                    GS07_Segment     = pipeSetting.GS07_Segment,
                    GS08_Segment     = pipeSetting.GS08_Segment,
                    SegmentSeperator = pipeSetting.SegmentSeperator,
                    ShipperCompDuns  = pipeSetting.ShipperCompDuns,
                    ST01_Segment     = pipeSetting.ST01_Segment,
                    ISA06_Segment    = pipeSetting.ISA06_Segment,
                    ISA08_segment    = pipeSetting.ISA08_segment,
                    ISA11_Segment    = pipeSetting.ISA11_Segment,
                    ISA12_Segment    = pipeSetting.ISA12_Segment,
                    ISA16_Segment    = pipeSetting.ISA16_Segment,
                    PipeDuns         = pipeSetting.PipeDuns,
                    StartDate        = pipeSetting.StartDate.HasValue ? pipeSetting.StartDate.Value : DateTime.MinValue,
                    EndDate          = pipeSetting.EndDate.HasValue ? pipeSetting.EndDate.Value : DateTime.MinValue,
                    SendManually     = pipeSetting.SendManually,
                    ForOacy          = pipeSetting.ForOacy,
                    ForUnsc          = pipeSetting.ForUnsc,
                    ForSwnt          = pipeSetting.ForSwnt
                }
     }
     ;
     else
     {
         return(null);
     }
 }