public static AssetMaintenanceAssetRound CreateAssetMaintenanceAssetRound(string dataAreaId, string roundId, long lineNumber, global::System.DateTimeOffset startDate, int periodLength, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAsset assetMaintenanceAsset, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceRound assetMaintenanceRound, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceJobType assetMaintenanceJobType) { AssetMaintenanceAssetRound assetMaintenanceAssetRound = new AssetMaintenanceAssetRound(); assetMaintenanceAssetRound.dataAreaId = dataAreaId; assetMaintenanceAssetRound.RoundId = roundId; assetMaintenanceAssetRound.LineNumber = lineNumber; assetMaintenanceAssetRound.StartDate = startDate; assetMaintenanceAssetRound.PeriodLength = periodLength; if ((assetMaintenanceAsset == null)) { throw new global::System.ArgumentNullException("assetMaintenanceAsset"); } assetMaintenanceAssetRound.AssetMaintenanceAsset = assetMaintenanceAsset; if ((assetMaintenanceRound == null)) { throw new global::System.ArgumentNullException("assetMaintenanceRound"); } assetMaintenanceAssetRound.AssetMaintenanceRound = assetMaintenanceRound; if ((assetMaintenanceJobType == null)) { throw new global::System.ArgumentNullException("assetMaintenanceJobType"); } assetMaintenanceAssetRound.AssetMaintenanceJobType = assetMaintenanceJobType; return(assetMaintenanceAssetRound); }
partial void OnAssetMaintenanceAssetChanging(global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAsset value);
public static AssetMaintenanceAssetBillOfMaterial CreateAssetMaintenanceAssetBillOfMaterial(string dataAreaId, string maintenanceAssetId, long lineNumber, global::System.DateTimeOffset validFrom, global::System.DateTimeOffset validTo, long lineNumberReplacedBy, decimal billOfMaterialQuantity, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAsset assetMaintenanceAsset) { AssetMaintenanceAssetBillOfMaterial assetMaintenanceAssetBillOfMaterial = new AssetMaintenanceAssetBillOfMaterial(); assetMaintenanceAssetBillOfMaterial.dataAreaId = dataAreaId; assetMaintenanceAssetBillOfMaterial.MaintenanceAssetId = maintenanceAssetId; assetMaintenanceAssetBillOfMaterial.LineNumber = lineNumber; assetMaintenanceAssetBillOfMaterial.ValidFrom = validFrom; assetMaintenanceAssetBillOfMaterial.ValidTo = validTo; assetMaintenanceAssetBillOfMaterial.LineNumberReplacedBy = lineNumberReplacedBy; assetMaintenanceAssetBillOfMaterial.BillOfMaterialQuantity = billOfMaterialQuantity; if ((assetMaintenanceAsset == null)) { throw new global::System.ArgumentNullException("assetMaintenanceAsset"); } assetMaintenanceAssetBillOfMaterial.AssetMaintenanceAsset = assetMaintenanceAsset; return(assetMaintenanceAssetBillOfMaterial); }
public static AssetMaintenanceWorkOrderLine CreateAssetMaintenanceWorkOrderLine(string dataAreaId, string workOrderId, long lineNumber, decimal addressLongitude, decimal forecastHourQty, decimal addressLatitude, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceWorkOrderLineNote assetMaintenanceWorkOrderLineNote, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAsset assetMaintenanceAsset, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceWorkOrderTable assetMaintenanceWorkOrderTable, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceJobType assetMaintenanceJobType) { AssetMaintenanceWorkOrderLine assetMaintenanceWorkOrderLine = new AssetMaintenanceWorkOrderLine(); assetMaintenanceWorkOrderLine.dataAreaId = dataAreaId; assetMaintenanceWorkOrderLine.WorkOrderId = workOrderId; assetMaintenanceWorkOrderLine.LineNumber = lineNumber; assetMaintenanceWorkOrderLine.AddressLongitude = addressLongitude; assetMaintenanceWorkOrderLine.ForecastHourQty = forecastHourQty; assetMaintenanceWorkOrderLine.AddressLatitude = addressLatitude; if ((assetMaintenanceWorkOrderLineNote == null)) { throw new global::System.ArgumentNullException("assetMaintenanceWorkOrderLineNote"); } assetMaintenanceWorkOrderLine.AssetMaintenanceWorkOrderLineNote = assetMaintenanceWorkOrderLineNote; if ((assetMaintenanceAsset == null)) { throw new global::System.ArgumentNullException("assetMaintenanceAsset"); } assetMaintenanceWorkOrderLine.AssetMaintenanceAsset = assetMaintenanceAsset; if ((assetMaintenanceWorkOrderTable == null)) { throw new global::System.ArgumentNullException("assetMaintenanceWorkOrderTable"); } assetMaintenanceWorkOrderLine.AssetMaintenanceWorkOrderTable = assetMaintenanceWorkOrderTable; if ((assetMaintenanceJobType == null)) { throw new global::System.ArgumentNullException("assetMaintenanceJobType"); } assetMaintenanceWorkOrderLine.AssetMaintenanceJobType = assetMaintenanceJobType; return(assetMaintenanceWorkOrderLine); }
public static AssetMaintenanceStopObject CreateAssetMaintenanceStopObject(string dataAreaId, string maintenanceStopId, string maintenanceAssetId, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAsset assetMaintenanceAsset, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceStop assetMaintenanceStop) { AssetMaintenanceStopObject assetMaintenanceStopObject = new AssetMaintenanceStopObject(); assetMaintenanceStopObject.dataAreaId = dataAreaId; assetMaintenanceStopObject.MaintenanceStopId = maintenanceStopId; assetMaintenanceStopObject.MaintenanceAssetId = maintenanceAssetId; if ((assetMaintenanceAsset == null)) { throw new global::System.ArgumentNullException("assetMaintenanceAsset"); } assetMaintenanceStopObject.AssetMaintenanceAsset = assetMaintenanceAsset; if ((assetMaintenanceStop == null)) { throw new global::System.ArgumentNullException("assetMaintenanceStop"); } assetMaintenanceStopObject.AssetMaintenanceStop = assetMaintenanceStop; return(assetMaintenanceStopObject); }