public void addPurOrderChildTest1() { CommodityImpl_Accessor target = new CommodityImpl_Accessor(); // TODO: Initialize to an appropriate value PurchaseChild purchaseChild = new PurchaseChild(); // TODO: Initialize to an appropriate value purchaseChild.PurParentId = "PO_ID_20101206_002"; purchaseChild.DetailId = 1; purchaseChild.PurKBN = 1; purchaseChild.CommId = "Comd_ID_00006"; purchaseChild.Amount = 10; purchaseChild.UnitPrice = 2.5f; purchaseChild.TotlePrice = 25f; purchaseChild.Remark = "备注"; target.addPurOrderChild(purchaseChild); }
public void addPurOrderParentTest1() { CommodityImpl_Accessor target = new CommodityImpl_Accessor(); // TODO: 初始化为适当的值 PurchaseParent purchaseParent = new PurchaseParent(); // TODO: 初始化为适当的值 purchaseParent.OrderId = "PO_ID_20101206_002"; purchaseParent.Supplier = "北京中关村明基代理"; purchaseParent.PurchaseEmpId = "EMP_ID_001"; purchaseParent.PurchaseDate = DateTime.Parse("2010-12-6"); purchaseParent.StatusKBN = 2; purchaseParent.ReceivingFLG = false; purchaseParent.PaymentFLG = false; purchaseParent.Remark = "分期付款"; string actual = target.addPurOrderParent(purchaseParent); }
public void GetPurPayListTest() { CommodityImpl_Accessor target = new CommodityImpl_Accessor(); // TODO: 初始化为适当的值 string strPurOrderID = "PO_ID_20101110_00001"; // TODO: 初始化为适当的值 List<PurchasePayment> actual; actual = target.GetPurPayList(strPurOrderID); Assert.AreEqual(2, actual.Count); }
public void GetPurchaseParentByOrderIdTest() { CommodityImpl_Accessor target = new CommodityImpl_Accessor(); // TODO: Initialize to an appropriate value string strPurchaseOrderID = "PO_ID_20101110_00001"; // TODO: Initialize to an appropriate value PurchaseParent actual; actual = target.GetPurchaseParentByOrderId(strPurchaseOrderID); Assert.AreEqual("EMP_ID_002", actual.PurchaseEmpId); }
public void GetPurchaseChildByOrderIdTest() { CommodityImpl_Accessor target = new CommodityImpl_Accessor(); // TODO: Initialize to an appropriate value string strPurchaseOrderID = "PO_ID_20101110_00001"; // TODO: Initialize to an appropriate value List<PurchaseChild> actual; actual = target.POGetDetailByOrderId(strPurchaseOrderID); Assert.AreEqual(6, actual.Count); }
public void addPurRecvItemTest() { CommodityImpl_Accessor target = new CommodityImpl_Accessor(); // TODO: Initialize to an appropriate value PurRecEntity purRecEntity = new PurRecEntity(); // TODO: Initialize to an appropriate value purRecEntity.OrderId = "1"; purRecEntity.DetailId = 11; purRecEntity.CommId = "111"; purRecEntity.AmountReceiving = 2; purRecEntity.ReceivingEmp = "lk"; purRecEntity.ReveivingDate = "2010-12-10"; purRecEntity.Remark = "remarkkkkk"; target.addPurRecvItem(purRecEntity); }
public void addPurOrderTest() { CommodityImpl_Accessor target = new CommodityImpl_Accessor(); // TODO: Initialize to an appropriate value PurchaseParent purchaseParent = new PurchaseParent(); // TODO: 初始化为适当的值 purchaseParent.OrderId = ""; purchaseParent.Supplier = "北京中关村明基代理"; purchaseParent.PurchaseEmpId = "EMP_ID_001"; purchaseParent.PurchaseDate = DateTime.Parse("2010-12-6"); purchaseParent.StatusKBN = 2; purchaseParent.ReceivingFLG = false; purchaseParent.PaymentFLG = false; purchaseParent.Remark = "分期付款"; List<PurchaseChild> purchaseChildList = new List<PurchaseChild>(); // TODO: Initialize to an appropriate value PurchaseChild purchaseChild = new PurchaseChild(); // TODO: Initialize to an appropriate value purchaseChild.PurParentId = ""; purchaseChild.DetailId = 0; purchaseChild.PurKBN = 1; purchaseChild.CommId = "Comd_ID_00006"; purchaseChild.Amount = 10; purchaseChild.UnitPrice = 2.5f; purchaseChild.TotlePrice = 25f; purchaseChild.Remark = "备注"; purchaseChildList.Add(purchaseChild); purchaseChild = new PurchaseChild(); // TODO: Initialize to an appropriate value purchaseChild.PurParentId = ""; purchaseChild.DetailId = 0; purchaseChild.PurKBN = 1; purchaseChild.CommId = "Comd_ID_00006"; purchaseChild.Amount = 10; purchaseChild.UnitPrice = 2.5f; purchaseChild.TotlePrice = 25f; purchaseChild.Remark = "备注"; purchaseChildList.Add(purchaseChild); string actual = target.addOrUpdatePurOrder(purchaseParent, purchaseChildList); Assert.AreEqual("PO_ID_20101208_00001", actual); }