Beispiel #1
0
 private void CreateReceiveItem(Receive _receive)
 {
     foreach (ReceiveItem itm in _receive.Items)
     {
         ReceiveItem item = new ReceiveItem()
         {
             RentalId = itm.RentalId,
             ReceiveId = _receive.ReceiveId,
             TotalDenda = itm.TotalDenda,
             PayAmount = itm.PayAmount,
             Total = itm.Total,
             TotalAfterDenda = itm.TotalAfterDenda
         };
         Penerimaan.CreateRentalItem(item);
     }
 }
Beispiel #2
0
 public void CreateRentalItem(ReceiveItem item)
 {
     string query = String.Format("INSERT INTO tblreceiveitem (receiveid,rentalid,denda,payamount,total,totalafterdenda) values ('{0}','{1}','{2}','{3}','{4}','{5}')",
         item.ReceiveId, item.RentalId, item.TotalDenda, item.PayAmount, item.Total, item.TotalAfterDenda);
     qryObjectMapper.Map<ReceiveItem>(query);
 }