Exemplo n.º 1
0
        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
            });
        }
        public MaterialsRequestNote_Item GetNewDataCustom()
        {
            ProductionOrderViewModel  productionOrder = ProductionOrderDataUtil.GetProductionOrder(client);
            InventorySummaryViewModel product         = InventorySummaryDataUtil.GetInventorySummary(client);

            return(new MaterialsRequestNote_Item
            {
                ProductionOrderId = "testCustom",
                ProductionOrderNo = "testCustomNo",
                ProductionOrderIsCompleted = false,
                OrderQuantity = (double)productionOrder.orderQuantity,
                OrderTypeId = productionOrder.orderType._id,
                OrderTypeCode = productionOrder.orderType.code,
                OrderTypeName = productionOrder.orderType.name,
                ProductId = product.productId,
                ProductCode = product.productCode,
                ProductName = product.productName,
                Grade = "A",
                Length = 5
            });
        }