public FpRegradingResultDocsDetails GetNewData() { ProductViewModel product = ProductDataUtil.GetProduct(client); return(new FpRegradingResultDocsDetails { ProductName = product.Name, ProductId = product.Id, ProductCode = product.Code, Quantity = 1, Length = 100, Grade = "A", Remark = "test", Retur = "Ya", }); }
public MaterialsRequestNote_Item GetNewData() { ProductionOrderViewModel productionOrder = ProductionOrderDataUtil.GetProductionOrder(client); ProductViewModel product = ProductDataUtil.GetProduct(client); return(new MaterialsRequestNote_Item { ProductionOrderId = productionOrder._id, ProductionOrderNo = productionOrder.orderNo, ProductionOrderIsCompleted = false, OrderQuantity = (double)productionOrder.orderQuantity, OrderTypeId = productionOrder.orderType._id, OrderTypeCode = productionOrder.orderType.code, OrderTypeName = productionOrder.orderType.name, ProductId = product._id, ProductCode = product.code, ProductName = product.name, Grade = "A", Length = 5 }); }