コード例 #1
0
 public void Add(InvenPerRequisitionDto DTO)
 {
     using (var container = new InventoryContainer())
     {
         InvenPerRequisition inreo = new InvenPerRequisition();
         container.InvenPerRequisitions.AddObject((InvenPerRequisition)DTOMapper.DTOObjectConverter(DTO, inreo));
         container.SaveChanges();
     }
 }
コード例 #2
0
        public void Edit_PurRequsitionStatus(InvenPerRequisitionDto DTO)
        {
            using (var container = new InventoryContainer())
            {
                var Comp = new InvenPerRequisition();
                Comp              = container.InvenPerRequisitions.FirstOrDefault(o => o.PurReqId.Equals(DTO.PurReqId));
                Comp.PurReqId     = DTO.PurReqId;
                Comp.PurReqStatus = DTO.PurReqStatus;

                Comp = (InvenPerRequisition)DTOMapper.DTOObjectConverter(DTO, Comp);
                container.SaveChanges();
            }
        }
コード例 #3
0
 public void Edit(InvenPerRequisitionDto DTO)
 {
     using (var container = new InventoryContainer())
     {
         var Comp = new InvenPerRequisition();
         Comp                 = container.InvenPerRequisitions.FirstOrDefault(o => o.PurReqId.Equals(DTO.PurReqId));
         Comp.PurReqId        = DTO.PurReqId;
         Comp.PurReqStatus    = DTO.PurReqStatus;
         Comp.RequisitionBy   = DTO.RequisitionBy;
         Comp.Quantity        = DTO.Quantity;
         Comp.BrProId         = DTO.BrProId;
         Comp.RequisitionDate = DTO.RequisitionDate;
         Comp.RequisitionNo   = DTO.RequisitionNo;
         Comp.UnitPrice       = DTO.UnitPrice;
         Comp.Quantity        = DTO.Quantity;
         Comp.Priority        = DTO.Priority;
         Comp                 = (InvenPerRequisition)DTOMapper.DTOObjectConverter(DTO, Comp);
         container.SaveChanges();
     }
 }
コード例 #4
0
 public void Edit_PurRequsitionStatus(InvenPerRequisitionDto DTO)
 {
     DAL.Edit_PurRequsitionStatus(DTO);
 }
コード例 #5
0
 public void Edit(InvenPerRequisitionDto DTO)
 {
     DAL.Edit(DTO);
 }
コード例 #6
0
 public void Add(InvenPerRequisitionDto DTO)
 {
     DAL.Add(DTO);
 }