コード例 #1
0
		internal static void Proc_out_rg_DateTimeOffset__(
					global::System.__ComObject __this, 
					out global::System.DateTimeOffset[] value, 
					global::System.RuntimeTypeHandle __typeHnd, 
					int __targetIndex)
		{
			// Setup
			global::System.DateTimeOffset__Impl.UnsafeType* unsafe_value = default(global::System.DateTimeOffset__Impl.UnsafeType*);
			uint unsafe_value_mcgLength = 0;
			int unsafe___return__;
			try
			{
				// Marshalling
				unsafe_value = null;
				// Call to native method
				unsafe___return__ = global::McgInterop.ComCallHelpers.ComCall__HRESULT(
									__this, 
									__typeHnd, 
									__targetIndex, 
									&(unsafe_value_mcgLength), 
									&(unsafe_value)
								);
				global::System.Runtime.InteropServices.DebugAnnotations.PreviousCallContainsUserCode();
				if (unsafe_value == null)
					value = null;
				else
				{
					value = new global::System.DateTimeOffset[unsafe_value_mcgLength];
					if (value != null)
						for (uint mcgIdx = 0; (mcgIdx < unsafe_value_mcgLength); mcgIdx++)
						{
							// [fwd] [out] [managedbyref] [nativebyref] [optional] [Mcg.CodeGen.WinRTDateTimeMarshaller] System_DateTimeOffset__Windows_Foundation__DateTime value
							value[mcgIdx] = new global::System.DateTimeOffset((unsafe_value[mcgIdx].UniversalTime + 504911232000000000), global::System.TimeSpan.Zero).ToLocalTime();
						}
				}
				// Return
			}
			finally
			{
				// Cleanup
				global::System.Runtime.InteropServices.ExternalInterop.SafeCoTaskMemFree(unsafe_value);
			}
		}
コード例 #2
0
 partial void OnActiveFromChanging(global::System.DateTimeOffset value);
コード例 #3
0
 partial void OnSADDateChanging(global::System.DateTimeOffset value);
 partial void OnValidToDateTimeChanging(global::System.DateTimeOffset value);
 partial void OnWorkClosedDateTimeChanging(global::System.DateTimeOffset value);
        public static AssetMaintenanceAssetMaintenancePlan CreateAssetMaintenanceAssetMaintenancePlan(string dataAreaId, string maintenanceAssetId, string maintenancePlanId, global::System.DateTimeOffset startDate, global::Microsoft.Dynamics.DataEntities.AssetMaintenancePlan assetMaintenancePlan)
        {
            AssetMaintenanceAssetMaintenancePlan assetMaintenanceAssetMaintenancePlan = new AssetMaintenanceAssetMaintenancePlan();

            assetMaintenanceAssetMaintenancePlan.dataAreaId         = dataAreaId;
            assetMaintenanceAssetMaintenancePlan.MaintenanceAssetId = maintenanceAssetId;
            assetMaintenanceAssetMaintenancePlan.MaintenancePlanId  = maintenancePlanId;
            assetMaintenanceAssetMaintenancePlan.StartDate          = startDate;
            if ((assetMaintenancePlan == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenancePlan");
            }
            assetMaintenanceAssetMaintenancePlan.AssetMaintenancePlan = assetMaintenancePlan;
            return(assetMaintenanceAssetMaintenancePlan);
        }
コード例 #7
0
 partial void OnDiscountApplicableToDateChanging(global::System.DateTimeOffset value);
コード例 #8
0
 partial void OnLastDateWorkedChanging(global::System.DateTimeOffset value);
コード例 #9
0
 partial void OnWorkerStartDateChanging(global::System.DateTimeOffset value);
コード例 #10
0
 partial void OnEmploymentEndDateChanging(global::System.DateTimeOffset value);
コード例 #11
0
 partial void OnTransitionDateChanging(global::System.DateTimeOffset value);
コード例 #12
0
 partial void OnTreatmentDateTimeChanging(global::System.DateTimeOffset value);
コード例 #13
0
        public static InjuryIncidentTreatment CreateInjuryIncidentTreatment(string caseNumber, decimal lineNum, global::System.DateTimeOffset treatmentDateTime, global::Microsoft.Dynamics.DataEntities.InjuryTreatmentType injuryTreatmentType, global::Microsoft.Dynamics.DataEntities.InjuryIncident injuryIncident)
        {
            InjuryIncidentTreatment injuryIncidentTreatment = new InjuryIncidentTreatment();

            injuryIncidentTreatment.CaseNumber        = caseNumber;
            injuryIncidentTreatment.LineNum           = lineNum;
            injuryIncidentTreatment.TreatmentDateTime = treatmentDateTime;
            if ((injuryTreatmentType == null))
            {
                throw new global::System.ArgumentNullException("injuryTreatmentType");
            }
            injuryIncidentTreatment.InjuryTreatmentType = injuryTreatmentType;
            if ((injuryIncident == null))
            {
                throw new global::System.ArgumentNullException("injuryIncident");
            }
            injuryIncidentTreatment.InjuryIncident = injuryIncident;
            return(injuryIncidentTreatment);
        }
コード例 #14
0
ファイル: Geolocator.cs プロジェクト: neoayi/Uno
 public static global::Windows.Foundation.IAsyncOperation <global::System.Collections.Generic.IReadOnlyList <global::Windows.Devices.Geolocation.Geoposition> > GetGeopositionHistoryAsync(global::System.DateTimeOffset startTime, global::System.TimeSpan duration)
 {
     throw new global::System.NotImplementedException("The member IAsyncOperation<IReadOnlyList<Geoposition>> Geolocator.GetGeopositionHistoryAsync(DateTimeOffset startTime, TimeSpan duration) is not implemented in Uno.");
 }
コード例 #15
0
        public static WorkerSkill CreateWorkerSkill(string personnelNumber, string skillId, global::System.DateTimeOffset levelDate, decimal yearsOfExperience)
        {
            WorkerSkill workerSkill = new WorkerSkill();

            workerSkill.PersonnelNumber   = personnelNumber;
            workerSkill.SkillId           = skillId;
            workerSkill.LevelDate         = levelDate;
            workerSkill.YearsOfExperience = yearsOfExperience;
            return(workerSkill);
        }
コード例 #16
0
 partial void OnAccountingDateChanging(global::System.DateTimeOffset value);
コード例 #17
0
        public static CostingVersion CreateCostingVersion(string dataAreaId, string versionId, global::System.DateTimeOffset lastUpdateDate, global::System.DateTimeOffset defaultFromDate, global::System.DateTimeOffset lastActivationDate)
        {
            CostingVersion costingVersion = new CostingVersion();

            costingVersion.dataAreaId         = dataAreaId;
            costingVersion.VersionId          = versionId;
            costingVersion.LastUpdateDate     = lastUpdateDate;
            costingVersion.DefaultFromDate    = defaultFromDate;
            costingVersion.LastActivationDate = lastActivationDate;
            return(costingVersion);
        }
コード例 #18
0
        public static JournalTable CreateJournalTable(string dataAreaId, string journalBatchNumber, global::System.DateTimeOffset projectDate)
        {
            JournalTable journalTable = new JournalTable();

            journalTable.dataAreaId         = dataAreaId;
            journalTable.JournalBatchNumber = journalBatchNumber;
            journalTable.ProjectDate        = projectDate;
            return(journalTable);
        }
コード例 #19
0
        public static OpenPurchaseMultiLineDiscountJournalLine CreateOpenPurchaseMultiLineDiscountJournalLine(string dataAreaId,
                                                                                                              string tradeAgreementJournalNumber,
                                                                                                              decimal lineNumber,
                                                                                                              decimal discountAmount,
                                                                                                              global::System.DateTimeOffset discountApplicableFromDate,
                                                                                                              decimal toQuantity,
                                                                                                              decimal discountPercentage2,
                                                                                                              decimal discountPercentage1,
                                                                                                              global::System.DateTimeOffset discountApplicableToDate,
                                                                                                              decimal fromQuantity)
        {
            OpenPurchaseMultiLineDiscountJournalLine openPurchaseMultiLineDiscountJournalLine = new OpenPurchaseMultiLineDiscountJournalLine();

            openPurchaseMultiLineDiscountJournalLine.dataAreaId = dataAreaId;
            openPurchaseMultiLineDiscountJournalLine.TradeAgreementJournalNumber = tradeAgreementJournalNumber;
            openPurchaseMultiLineDiscountJournalLine.LineNumber                 = lineNumber;
            openPurchaseMultiLineDiscountJournalLine.DiscountAmount             = discountAmount;
            openPurchaseMultiLineDiscountJournalLine.DiscountApplicableFromDate = discountApplicableFromDate;
            openPurchaseMultiLineDiscountJournalLine.ToQuantity                 = toQuantity;
            openPurchaseMultiLineDiscountJournalLine.DiscountPercentage2        = discountPercentage2;
            openPurchaseMultiLineDiscountJournalLine.DiscountPercentage1        = discountPercentage1;
            openPurchaseMultiLineDiscountJournalLine.DiscountApplicableToDate   = discountApplicableToDate;
            openPurchaseMultiLineDiscountJournalLine.FromQuantity               = fromQuantity;
            return(openPurchaseMultiLineDiscountJournalLine);
        }
コード例 #20
0
 public Geofence(string id, global::Windows.Devices.Geolocation.IGeoshape geoshape, global::Windows.Devices.Geolocation.Geofencing.MonitoredGeofenceStates monitoredStates, bool singleUse, global::System.TimeSpan dwellTime, global::System.DateTimeOffset startTime, global::System.TimeSpan duration)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Devices.Geolocation.Geofencing.Geofence", "Geofence.Geofence(string id, IGeoshape geoshape, MonitoredGeofenceStates monitoredStates, bool singleUse, TimeSpan dwellTime, DateTimeOffset startTime, TimeSpan duration)");
 }
        public static AssetMaintenanceWorkOrderParentProjectV2 CreateAssetMaintenanceWorkOrderParentProjectV2(string dataAreaId,
                                                                                                              string workOrderTypeId,
                                                                                                              string functionalLocationId,
                                                                                                              string maintenanceAssetTypeId,
                                                                                                              string customerAccountNumber,
                                                                                                              string maintenanceAssetId,
                                                                                                              global::System.DateTimeOffset validFromDateTime,
                                                                                                              global::System.DateTimeOffset validToDateTime)
        {
            AssetMaintenanceWorkOrderParentProjectV2 assetMaintenanceWorkOrderParentProjectV2 = new AssetMaintenanceWorkOrderParentProjectV2();

            assetMaintenanceWorkOrderParentProjectV2.dataAreaId             = dataAreaId;
            assetMaintenanceWorkOrderParentProjectV2.WorkOrderTypeId        = workOrderTypeId;
            assetMaintenanceWorkOrderParentProjectV2.FunctionalLocationId   = functionalLocationId;
            assetMaintenanceWorkOrderParentProjectV2.MaintenanceAssetTypeId = maintenanceAssetTypeId;
            assetMaintenanceWorkOrderParentProjectV2.CustomerAccountNumber  = customerAccountNumber;
            assetMaintenanceWorkOrderParentProjectV2.MaintenanceAssetId     = maintenanceAssetId;
            assetMaintenanceWorkOrderParentProjectV2.ValidFromDateTime      = validFromDateTime;
            assetMaintenanceWorkOrderParentProjectV2.ValidToDateTime        = validToDateTime;
            return(assetMaintenanceWorkOrderParentProjectV2);
        }
コード例 #22
0
        public static WorkerEnrolledAccrualInquiry CreateWorkerEnrolledAccrualInquiry(string dataAreaId,
                                                                                      string workerName,
                                                                                      string accrualId,
                                                                                      decimal totalUsed,
                                                                                      decimal totalAvailableHours,
                                                                                      global::System.DateTimeOffset accrualYearStartDate,
                                                                                      decimal totalPendingUsage,
                                                                                      decimal totalAccrued,
                                                                                      decimal totalCarryOver,
                                                                                      global::Microsoft.Dynamics.DataEntities.Worker worker,
                                                                                      global::Microsoft.Dynamics.DataEntities.AccrualPlan accrualPlan)
        {
            WorkerEnrolledAccrualInquiry workerEnrolledAccrualInquiry = new WorkerEnrolledAccrualInquiry();

            workerEnrolledAccrualInquiry.dataAreaId           = dataAreaId;
            workerEnrolledAccrualInquiry.WorkerName           = workerName;
            workerEnrolledAccrualInquiry.AccrualId            = accrualId;
            workerEnrolledAccrualInquiry.TotalUsed            = totalUsed;
            workerEnrolledAccrualInquiry.TotalAvailableHours  = totalAvailableHours;
            workerEnrolledAccrualInquiry.AccrualYearStartDate = accrualYearStartDate;
            workerEnrolledAccrualInquiry.TotalPendingUsage    = totalPendingUsage;
            workerEnrolledAccrualInquiry.TotalAccrued         = totalAccrued;
            workerEnrolledAccrualInquiry.TotalCarryOver       = totalCarryOver;
            if ((worker == null))
            {
                throw new global::System.ArgumentNullException("worker");
            }
            workerEnrolledAccrualInquiry.Worker = worker;
            if ((accrualPlan == null))
            {
                throw new global::System.ArgumentNullException("accrualPlan");
            }
            workerEnrolledAccrualInquiry.AccrualPlan = accrualPlan;
            return(workerEnrolledAccrualInquiry);
        }
        public static CycleCountingWarehouseWorkLine CreateCycleCountingWarehouseWorkLine(string dataAreaId,
                                                                                          string inventoryOwnerId,
                                                                                          string inventoryStatusId,
                                                                                          string itemBatchNumber,
                                                                                          string itemNumber,
                                                                                          string itemSerialNumber,
                                                                                          string licensePlateNumber,
                                                                                          decimal lineNumber,
                                                                                          string productColorId,
                                                                                          string productConfigurationId,
                                                                                          string productSizeId,
                                                                                          string productStyleId,
                                                                                          string warehouseLocationId,
                                                                                          string warehouseWorkId,
                                                                                          decimal expectedQuantity,
                                                                                          decimal countedQuantity,
                                                                                          global::System.DateTimeOffset workCreatedDateTime,
                                                                                          global::System.DateTimeOffset workClosedDateTime)
        {
            CycleCountingWarehouseWorkLine cycleCountingWarehouseWorkLine = new CycleCountingWarehouseWorkLine();

            cycleCountingWarehouseWorkLine.dataAreaId             = dataAreaId;
            cycleCountingWarehouseWorkLine.InventoryOwnerId       = inventoryOwnerId;
            cycleCountingWarehouseWorkLine.InventoryStatusId      = inventoryStatusId;
            cycleCountingWarehouseWorkLine.ItemBatchNumber        = itemBatchNumber;
            cycleCountingWarehouseWorkLine.ItemNumber             = itemNumber;
            cycleCountingWarehouseWorkLine.ItemSerialNumber       = itemSerialNumber;
            cycleCountingWarehouseWorkLine.LicensePlateNumber     = licensePlateNumber;
            cycleCountingWarehouseWorkLine.LineNumber             = lineNumber;
            cycleCountingWarehouseWorkLine.ProductColorId         = productColorId;
            cycleCountingWarehouseWorkLine.ProductConfigurationId = productConfigurationId;
            cycleCountingWarehouseWorkLine.ProductSizeId          = productSizeId;
            cycleCountingWarehouseWorkLine.ProductStyleId         = productStyleId;
            cycleCountingWarehouseWorkLine.WarehouseLocationId    = warehouseLocationId;
            cycleCountingWarehouseWorkLine.WarehouseWorkId        = warehouseWorkId;
            cycleCountingWarehouseWorkLine.ExpectedQuantity       = expectedQuantity;
            cycleCountingWarehouseWorkLine.CountedQuantity        = countedQuantity;
            cycleCountingWarehouseWorkLine.WorkCreatedDateTime    = workCreatedDateTime;
            cycleCountingWarehouseWorkLine.WorkClosedDateTime     = workClosedDateTime;
            return(cycleCountingWarehouseWorkLine);
        }
コード例 #24
0
 partial void OnAccrualYearStartDateChanging(global::System.DateTimeOffset value);
コード例 #25
0
        public static MainAccountLegalEntity CreateMainAccountLegalEntity(string mainAccountId, string chartOfAccounts, string legalEntityId, global::System.DateTimeOffset activeTo, global::System.DateTimeOffset activeFrom)
        {
            MainAccountLegalEntity mainAccountLegalEntity = new MainAccountLegalEntity();

            mainAccountLegalEntity.MainAccountId   = mainAccountId;
            mainAccountLegalEntity.ChartOfAccounts = chartOfAccounts;
            mainAccountLegalEntity.LegalEntityId   = legalEntityId;
            mainAccountLegalEntity.ActiveTo        = activeTo;
            mainAccountLegalEntity.ActiveFrom      = activeFrom;
            return(mainAccountLegalEntity);
        }
コード例 #26
0
 partial void OnLastUpdateDateChanging(global::System.DateTimeOffset value);
コード例 #27
0
        public static SADDocumentLineLedgerJournal CreateSADDocumentLineLedgerJournal(string dataAreaId,
                                                                                      global::System.DateTimeOffset sADDate,
                                                                                      string sADNumber,
                                                                                      int position,
                                                                                      decimal duty,
                                                                                      decimal baseForSAD,
                                                                                      decimal excise,
                                                                                      decimal salesTaxAmount)
        {
            SADDocumentLineLedgerJournal sADDocumentLineLedgerJournal = new SADDocumentLineLedgerJournal();

            sADDocumentLineLedgerJournal.dataAreaId     = dataAreaId;
            sADDocumentLineLedgerJournal.SADDate        = sADDate;
            sADDocumentLineLedgerJournal.SADNumber      = sADNumber;
            sADDocumentLineLedgerJournal.Position       = position;
            sADDocumentLineLedgerJournal.Duty           = duty;
            sADDocumentLineLedgerJournal.BaseForSAD     = baseForSAD;
            sADDocumentLineLedgerJournal.Excise         = excise;
            sADDocumentLineLedgerJournal.SalesTaxAmount = salesTaxAmount;
            return(sADDocumentLineLedgerJournal);
        }
コード例 #28
0
 partial void OnDefaultFromDateChanging(global::System.DateTimeOffset value);
コード例 #29
0
        public static InventoryCountingJournalHeader CreateInventoryCountingJournalHeader(string dataAreaId, string journalNumber, global::System.DateTimeOffset postedDateTime)
        {
            InventoryCountingJournalHeader inventoryCountingJournalHeader = new InventoryCountingJournalHeader();

            inventoryCountingJournalHeader.dataAreaId     = dataAreaId;
            inventoryCountingJournalHeader.JournalNumber  = journalNumber;
            inventoryCountingJournalHeader.PostedDateTime = postedDateTime;
            return(inventoryCountingJournalHeader);
        }
コード例 #30
0
 partial void OnLastActivationDateChanging(global::System.DateTimeOffset value);
コード例 #31
0
		internal static global::System.DateTimeOffset Func_DateTimeOffset__(
					global::System.__ComObject __this, 
					global::System.RuntimeTypeHandle __typeHnd, 
					int __targetIndex)
		{
			// Setup
			global::System.DateTimeOffset result__retval;
			global::System.DateTimeOffset__Impl.UnsafeType unsafe_result__retval;
			int unsafe___return__;
			// Marshalling
			// Call to native method
			unsafe___return__ = global::McgInterop.ComCallHelpers.ComCall__HRESULT(
								__this, 
								__typeHnd, 
								__targetIndex, 
								&(unsafe_result__retval)
							);
			global::System.Runtime.InteropServices.DebugAnnotations.PreviousCallContainsUserCode();
			result__retval = new global::System.DateTimeOffset((unsafe_result__retval.UniversalTime + 504911232000000000), global::System.TimeSpan.Zero).ToLocalTime();
			// Return
			return result__retval;
		}
コード例 #32
0
        // tag0005
        /// <summary>
        /// There are no comments for CalendarView in the schema.
        /// </summary>
        public IEventCollection GetCalendarView(global::System.DateTimeOffset startDateTime, global::System.DateTimeOffset endDateTime)
        {
            var cvPath = GetPath("CalendarView");

            if (cvPath == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            var query = Context.CreateQuery <Event>(cvPath, true);

            query = query.AddQueryOption("startDateTime", startDateTime.ToString(DateTimeOffsetZuluFormat));

            query = query.AddQueryOption("endDateTime", endDateTime.ToString(DateTimeOffsetZuluFormat));

            return(new EventCollection(query, Context, this, cvPath));
        }