コード例 #1
0
        public void SaveSalesPaymentDtl(InvenSalePaymentDtlDto DTO)
        {
            using (var container = new InventoryContainer())
            {
                InvenSalesPaymentDtl ino = new InvenSalesPaymentDtl();

                container.InvenSalesPaymentDtls.AddObject((InvenSalesPaymentDtl)DTOMapper.DTOObjectConverter(DTO, ino));
                container.SaveChanges();
            }
        }
コード例 #2
0
        public void Edit_AdjustpaymentDtl(InvenSalePaymentDtlDto DTO)
        {
            using (var container = new InventoryContainer())
            {
                var Comp = new InvenSalesPaymentDtl();
                Comp = container.InvenSalesPaymentDtls.FirstOrDefault(o => o.SalePayDtlId.Equals(DTO.SaleDtlId));
                Comp.SalePayDtlId = DTO.SalePayDtlId;

                Comp.PaidAmount = DTO.TotalPrice;
                //  Comp.TransectionType = DTO.TransectionType;
                Comp = (InvenSalesPaymentDtl)DTOMapper.DTOObjectConverter(DTO, Comp);
                container.SaveChanges();
            }
        }
コード例 #3
0
 public void SaveSalesPaymentDtl(InvenSalePaymentDtlDto DTO)
 {
     Dal.SaveSalesPaymentDtl(DTO);
 }
コード例 #4
0
 public void Edit_AdjustpaymentDtl(InvenSalePaymentDtlDto DTO)
 {
     Dal.Edit_AdjustpaymentDtl(DTO);
 }