Ejemplo n.º 1
0
 partial void OnAssetMaintenanceRequestLifecycleStateChanging(global::Microsoft.Dynamics.DataEntities.AssetMaintenanceRequestLifecycleState value);
Ejemplo n.º 2
0
        public static AssetMaintenanceRequestLifecycleModelState CreateAssetMaintenanceRequestLifecycleModelState(string dataAreaId,
                                                                                                                  string lifecycleStateId,
                                                                                                                  string lifecycleModelId,
                                                                                                                  int line,
                                                                                                                  global::Microsoft.Dynamics.DataEntities.AssetMaintenanceRequestLifecycleModel assetMaintenanceRequestLifecycleModel,
                                                                                                                  global::Microsoft.Dynamics.DataEntities.AssetMaintenanceRequestLifecycleState assetMaintenanceRequestLifecycleState)
        {
            AssetMaintenanceRequestLifecycleModelState assetMaintenanceRequestLifecycleModelState = new AssetMaintenanceRequestLifecycleModelState();

            assetMaintenanceRequestLifecycleModelState.dataAreaId       = dataAreaId;
            assetMaintenanceRequestLifecycleModelState.LifecycleStateId = lifecycleStateId;
            assetMaintenanceRequestLifecycleModelState.LifecycleModelId = lifecycleModelId;
            assetMaintenanceRequestLifecycleModelState.Line             = line;
            if ((assetMaintenanceRequestLifecycleModel == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceRequestLifecycleModel");
            }
            assetMaintenanceRequestLifecycleModelState.AssetMaintenanceRequestLifecycleModel = assetMaintenanceRequestLifecycleModel;
            if ((assetMaintenanceRequestLifecycleState == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceRequestLifecycleState");
            }
            assetMaintenanceRequestLifecycleModelState.AssetMaintenanceRequestLifecycleState = assetMaintenanceRequestLifecycleState;
            return(assetMaintenanceRequestLifecycleModelState);
        }