Exemplo n.º 1
0
        public static RouteOperation CreateRouteOperation(string dataAreaId,
                                                          string routeId,
                                                          int operationNumber,
                                                          int operationPriority,
                                                          decimal accumulatedScrapPercentage,
                                                          int nextRouteOperationNumber,
                                                          decimal scrapPercentage,
                                                          global::Microsoft.Dynamics.DataEntities.Operation operation,
                                                          global::Microsoft.Dynamics.DataEntities.RouteHeader routeHeader)
        {
            RouteOperation routeOperation = new RouteOperation();

            routeOperation.dataAreaId                 = dataAreaId;
            routeOperation.RouteId                    = routeId;
            routeOperation.OperationNumber            = operationNumber;
            routeOperation.OperationPriority          = operationPriority;
            routeOperation.AccumulatedScrapPercentage = accumulatedScrapPercentage;
            routeOperation.NextRouteOperationNumber   = nextRouteOperationNumber;
            routeOperation.ScrapPercentage            = scrapPercentage;
            if ((operation == null))
            {
                throw new global::System.ArgumentNullException("operation");
            }
            routeOperation.Operation = operation;
            if ((routeHeader == null))
            {
                throw new global::System.ArgumentNullException("routeHeader");
            }
            routeOperation.RouteHeader = routeHeader;
            return(routeOperation);
        }
 partial void OnRouteOperationChanging(global::Microsoft.Dynamics.DataEntities.Operation value);