partial void OnAssetMaintenanceWorkerChanging(global::Microsoft.Dynamics.DataEntities.AssetMaintenanceWorker value);
コード例 #2
0
        public static AssetMaintenanceFunctionalLocationWorker CreateAssetMaintenanceFunctionalLocationWorker(string dataAreaId, string functionalLocationId, string workerPersonnelNumber, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceWorker assetMaintenanceWorker, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceFunctionalLocation assetMaintenanceFunctionalLocation)
        {
            AssetMaintenanceFunctionalLocationWorker assetMaintenanceFunctionalLocationWorker = new AssetMaintenanceFunctionalLocationWorker();

            assetMaintenanceFunctionalLocationWorker.dataAreaId            = dataAreaId;
            assetMaintenanceFunctionalLocationWorker.FunctionalLocationId  = functionalLocationId;
            assetMaintenanceFunctionalLocationWorker.WorkerPersonnelNumber = workerPersonnelNumber;
            if ((assetMaintenanceWorker == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceWorker");
            }
            assetMaintenanceFunctionalLocationWorker.AssetMaintenanceWorker = assetMaintenanceWorker;
            if ((assetMaintenanceFunctionalLocation == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceFunctionalLocation");
            }
            assetMaintenanceFunctionalLocationWorker.AssetMaintenanceFunctionalLocation = assetMaintenanceFunctionalLocation;
            return(assetMaintenanceFunctionalLocationWorker);
        }