예제 #1
0
        public void AddBillingItem(BillingItem item)
        {
            if (this.billingItemsField == null)
            {
                this.billingItemsField = new List <BillingItem>();
            }

            this.billingItemsField.Add(item);
        }
예제 #2
0
    private BillingItem fillBillDetail(BillDetail billDetail)
    {
        com.Sconit.Entity.Svp.BillingItem item = new com.Sconit.Entity.Svp.BillingItem();

        item.memo               = string.Empty;
        item.billingQuantity    = Convert.ToDouble(billDetail.BilledQty);
        item.unitPrice          = billDetail.UnitPrice;
        item.unitPriceSpecified = true;

        UOM u = new UOM();

        u.abbreviation = billDetail.ActingBill.Uom.Code;
        u.description  = billDetail.ActingBill.Uom.Description;

        Material m = new Material();

        m.quantityUOM = u;
        m.id          = billDetail.ActingBill.Item.Code;
        m.no          = billDetail.ActingBill.Item.Code;
        m.name        = billDetail.ActingBill.Item.Description;
        m.description = billDetail.ActingBill.Item.Description;

        RequisitionOrder requisitionOrder = new RequisitionOrder();

        requisitionOrder.requisitionOrderNo = billDetail.ActingBill.OrderNo;

        DeliveryOrder deliveryOrder = new DeliveryOrder();

        deliveryOrder.requisitionOrder = requisitionOrder;

        ReceivingNote receiveNote = new ReceivingNote();

        receiveNote.id            = billDetail.ActingBill.ReceiptNo;
        receiveNote.receivingNo   = billDetail.ActingBill.ReceiptNo;
        receiveNote.deliveryOrder = deliveryOrder;

        ReceivingNoteItem receiveItem = new ReceivingNoteItem();

        receiveItem.material                      = m;
        receiveItem.receiveQuantity               = Convert.ToDouble(billDetail.BilledQty);
        receiveItem.receiveQuantitySpecified      = true;
        receiveItem.totalBillingQuantity          = Convert.ToDouble(billDetail.BilledQty);
        receiveItem.totalBillingQuantitySpecified = true;
        receiveItem.receivingNote                 = receiveNote;

        item.material          = m;
        item.receivingNoteItem = receiveItem;

        return(item);
    }
예제 #3
0
    private BillingItem fillBillDetail(BillDetail billDetail)
    {
        com.Sconit.Entity.Svp.BillingItem item = new com.Sconit.Entity.Svp.BillingItem();

        item.memo = string.Empty;
        item.billingQuantity =Convert.ToDouble(billDetail.BilledQty);
        item.unitPrice = billDetail.UnitPrice;
        item.unitPriceSpecified = true;

           UOM u = new UOM();
        u.abbreviation = billDetail.ActingBill.Uom.Code;
        u.description = billDetail.ActingBill.Uom.Description;

        Material m = new Material();
        m.quantityUOM = u;
        m.id = billDetail.ActingBill.Item.Code;
        m.no = billDetail.ActingBill.Item.Code;
        m.name = billDetail.ActingBill.Item.Description;
        m.description = billDetail.ActingBill.Item.Description;

        RequisitionOrder requisitionOrder = new RequisitionOrder();
        requisitionOrder.requisitionOrderNo = billDetail.ActingBill.OrderNo;

        DeliveryOrder deliveryOrder = new DeliveryOrder();
        deliveryOrder.requisitionOrder = requisitionOrder;

        ReceivingNote receiveNote = new ReceivingNote();
        receiveNote.id = billDetail.ActingBill.ReceiptNo;
        receiveNote.receivingNo = billDetail.ActingBill.ReceiptNo;
        receiveNote.deliveryOrder = deliveryOrder;

        ReceivingNoteItem receiveItem = new ReceivingNoteItem();
        receiveItem.material = m;
        receiveItem.receiveQuantity = Convert.ToDouble(billDetail.BilledQty);
        receiveItem.receiveQuantitySpecified = true;
        receiveItem.totalBillingQuantity = Convert.ToDouble( billDetail.BilledQty);
        receiveItem.totalBillingQuantitySpecified = true;
        receiveItem.receivingNote = receiveNote;

        item.material = m;
        item.receivingNoteItem = receiveItem;

        return item;
    }
예제 #4
0
        public void AddBillingItem(BillingItem item)
        {
            if (this.billingItemsField == null) 
            {
                this.billingItemsField = new List<BillingItem>();
            }

            this.billingItemsField.Add(item);
        }