public ForecastType() { this.forecastLineField = new ObservableCollection <ForecastLineType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.forecastPeriodField = new PeriodType(); this.forecastPurposeCodeField = new ForecastPurposeCodeType(); this.basedOnConsensusIndicatorField = new BasedOnConsensusIndicatorType(); this.versionIDField = new VersionIDType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public CatalogueDeletionType() { this.contractorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.providerPartyField = new PartyType(); this.receiverPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.referencedContractField = new ObservableCollection <ContractType>(); this.deletedCatalogueReferenceField = new CatalogueReferenceType(); this.validityPeriodField = new ObservableCollection <PeriodType>(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.versionIDField = new VersionIDType(); this.noteField = new ObservableCollection <NoteType>(); this.effectiveTimeField = new EffectiveTimeType(); this.effectiveDateField = new EffectiveDateType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.nameField = new NameType1(); this.uUIDField = new UUIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public CatalogueRequestType() { this.catalogueRequestLineField = new ObservableCollection <CatalogueRequestLineType>(); this.requestedClassificationSchemeField = new ObservableCollection <ClassificationSchemeType>(); this.requestedLanguageField = new LanguageType(); this.applicableTerritoryAddressField = new ObservableCollection <AddressType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.tradingTermsField = new TradingTermsType(); this.referencedContractField = new ObservableCollection <ContractType>(); this.requestedCatalogueReferenceField = new CatalogueReferenceType(); this.contractorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.providerPartyField = new PartyType(); this.receiverPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.validityPeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.itemUpdateRequestIndicatorField = new ItemUpdateRequestIndicatorType(); this.pricingUpdateRequestIndicatorField = new PricingUpdateRequestIndicatorType(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.nameField = new NameType1(); this.uUIDField = new UUIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public RetailEventType() { this.miscellaneousEventField = new MiscellaneousEventType(); this.promotionalEventField = new PromotionalEventType(); this.eventCommentField = new ObservableCollection <EventCommentType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.originalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.periodField = new PeriodType(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.buyerEventIDField = new BuyerEventIDType(); this.sellerEventIDField = new SellerEventIDType(); this.retailEventStatusCodeField = new RetailEventStatusCodeType(); this.retailEventNameField = new RetailEventNameType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public GuaranteeCertificateType() { this.beneficiaryPartyField = new PartyType(); this.interestedPartyField = new PartyType(); this.guarantorPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.immobilizedSecurityField = new ObservableCollection <ImmobilizedSecurityType>(); this.guaranteeDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.applicableRegulationField = new ObservableCollection <RegulationType>(); this.applicablePeriodField = new PeriodType(); this.noteField = new ObservableCollection <NoteType>(); this.constitutionCodeField = new ConstitutionCodeType(); this.liabilityAmountField = new LiabilityAmountType(); this.purposeField = new ObservableCollection <PurposeType>(); this.guaranteeTypeCodeField = new GuaranteeTypeCodeType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.contractFolderIDField = new ContractFolderIDType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
private bool TryValidateRequest(HttpRequest req, out PartyType party) { party = PartyType.Unknown; if (!req.Headers.TryGetValue(PartyAuthHeader, out StringValues keys) || keys.Count != 1) { return(false); } string key = keys.FirstOrDefault(); if (_partyKeyProvider.VerifyUserPartyKey(key)) { party = PartyType.User; return(true); } if (_partyKeyProvider.VerifySupportPartyKey(key)) { party = PartyType.Support; return(true); } return(false); }
public PartyStatusType AddStatusType(PartyType partyType, string name, string description, int displayOrder) { // reorder the other status types that confclict with the displayOrder passed here Contract.Requires(!string.IsNullOrWhiteSpace(name)); Contract.Requires(partyType != null && partyType.Id > 0); Contract.Ensures(Contract.Result <PartyStatusType>() != null && Contract.Result <PartyStatusType>().Id >= 0); var entity = new PartyStatusType() { Description = description, DisplayOrder = displayOrder, Name = name, PartyType = partyType }; using (IUnitOfWork uow = this.GetUnitOfWork()) { IRepository <PartyStatusType> repo = uow.GetRepository <PartyStatusType>(); var ff = repo.Get(item => item.Name == name && item.PartyType == partyType); //Name and partyType are unique in PartyStatusTypes if (repo.Get(item => item.Name == name && item.PartyType == partyType).Count() > 0) { BexisException.Throw(entity, "This name with this PartyType is already exist.", BexisException.ExceptionType.Add); } repo.Put(entity); uow.Commit(); } return(entity); }
public WaybillType() { this.signatureField = new ObservableCollection <SignatureType>(); this.documentDistributionField = new ObservableCollection <DocumentDistributionType>(); this.exchangeRateField = new ObservableCollection <ExchangeRateType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.shipmentField = new ShipmentType(); this.freightForwarderPartyField = new PartyType(); this.carrierPartyField = new PartyType(); this.consignorPartyField = new PartyType(); this.otherInstructionField = new ObservableCollection <OtherInstructionType>(); this.declaredCarriageValueAmountField = new DeclaredCarriageValueAmountType(); this.adValoremIndicatorField = new AdValoremIndicatorType(); this.shippingOrderIDField = new ShippingOrderIDType(); this.noteField = new ObservableCollection <NoteType>(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.nameField = new NameType1(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.carrierAssignedIDField = new CarrierAssignedIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public ForecastRevisionType() { this.forecastRevisionLineField = new ObservableCollection <ForecastRevisionLineType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.originalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.forecastPeriodField = new PeriodType(); this.purposeCodeField = new PurposeCodeType(); this.revisionStatusCodeField = new RevisionStatusCodeType(); this.sequenceNumberIDField = new SequenceNumberIDType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public void addPartyIdentification(PartyType party, int paramCount, string param1, string param1Value, string param2, string param2Value, string param3, string param3Value) { PartyIdentificationType[] partyIdentificationArr = new PartyIdentificationType[paramCount]; for (int i = 0; i < paramCount; i++) { PartyIdentificationType partyIdentification = new PartyIdentificationType(); switch (i) //en fazla 2 degerını alabılır... 3 deger yazılabılır { case 0: partyIdentification.ID = new IDType(); partyIdentification.ID.schemeID = param1; partyIdentification.ID.Value = param1Value; break; case 1: partyIdentification.ID = new IDType(); partyIdentification.ID.schemeID = param2; partyIdentification.ID.Value = param2Value; break; case 2: partyIdentification.ID = new IDType(); partyIdentification.ID.schemeID = param3; partyIdentification.ID.Value = param3Value; break; } partyIdentificationArr[i] = partyIdentification; } party.PartyIdentification = partyIdentificationArr; }
public UtilityStatementType() { this.subscriberConsumptionField = new ObservableCollection <SubscriberConsumptionType>(); this.mainOnAccountPaymentField = new ObservableCollection <OnAccountPaymentType>(); this.subscriberPartyField = new PartyType(); this.customerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.parentDocumentReferenceField = new DocumentReferenceType(); this.accountingCostField = new AccountingCostType(); this.accountingCostCodeField = new AccountingCostCodeType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.utilityStatementTypeCodeField = new UtilityStatementTypeCodeType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
private void SetSelectCommand() { string[] selectCommands = new string[] { @"SELECT cust.*, dbo.f_GetOrganizationName(org.OrgID, @langCode) as CustomerName FROM MFCustomer cust INNER JOIN Organization org on cust.PartyID = org.OrgID and PartyDiscriminator = 10" , @"SELECT cust.*, dbo.f_GetPersonName(per.PersonID, @langCode) as CustomerName FROM MFCustomer cust INNER JOIN Person per on cust.PartyID = per.PersonID and cust.PartyDiscriminator = 20" , @"SELECT cust.*, inc.Alias as CustomerName FROM MFCustomer cust INNER JOIN Incognito inc on cust.PartyID = inc.PartyID and PartyDiscriminator = 25 ORDER BY CustomerNO asc", }; PartyType type = MFCustomerType; if (cboType != null && cboType.SelectedItem != null) { type = (PartyType)(int)cboType.SelectedItem.Value; } if (type == PartyType.All) { sqlDataSource.SelectCommand = string.Join(" UNION ", selectCommands); } else { sqlDataSource.SelectCommand = selectCommands[(int)type - 1]; } }
// return a dictionary, where key is the line number and value is the remaining bytes for one instruction public static Dictionary <int, List <byte[]> > Unpack(out PartyType from, byte[] input) { int count = 0; from = (PartyType)input[count]; count++; Dictionary <int, List <byte[]> > re = new Dictionary <int, List <byte[]> >(); while (count != input.Count()) { int msgLen = BitConverter.ToInt32(input, count); count += MsgLengthLength; int line = BitConverter.ToInt32(input, count); count += LineLength; var temp = new byte[msgLen - LineLength]; Array.Copy(input, count, temp, 0, msgLen - LineLength); if (re.ContainsKey(line)) { re[line].Add(temp); } else { re.Add(line, new List <byte[]> { temp }); } count += msgLen - LineLength; } return(re); }
public ContractNoticeType() { this.procurementProjectLotField = new ObservableCollection <ProcurementProjectLotType>(); this.procurementProjectField = new ProcurementProjectType(); this.tenderingProcessField = new TenderingProcessType(); this.tenderingTermsField = new TenderingTermsType(); this.receiverPartyField = new PartyType(); this.originatorCustomerPartyField = new ObservableCollection <CustomerPartyType>(); this.contractingPartyField = new ContractingPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.frequencyPeriodField = new PeriodType(); this.regulatoryDomainField = new ObservableCollection <RegulatoryDomainType>(); this.requestedPublicationDateField = new RequestedPublicationDateType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.contractFolderIDField = new ContractFolderIDType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public static SupplierPartyType SupplierParty(PartyType party = null) { return(new SupplierPartyType { Party = party }); }
/// <summary> /// /// </summary> /// <param name="startDate"></param> /// <param name="endDate"></param> /// <param name="description"></param> /// <param name="partyTypeId"></param> /// <param name="partyCustomAttributeValues">CustomAttributeName or Id as key</param> /// <returns></returns> internal static Party CreateParty(DateTime?startDate, DateTime?endDate, string description, long partyTypeId, Dictionary <string, string> partyCustomAttributeValuesDict) { using (PartyTypeManager partyTypeManager = new PartyTypeManager()) using (PartyManager partyManager = new PartyManager()) using (PartyRelationshipTypeManager partyRelationshipTypeManager = new PartyRelationshipTypeManager()) { var newParty = new Party(); PartyType partyType = partyTypeManager.PartyTypeRepository.Get(partyTypeId); var partyStatusType = partyTypeManager.GetStatusType(partyType, "Created"); // save party as temp if the reationships are required var requiredPartyRelationTypes = partyRelationshipTypeManager.GetAllPartyRelationshipTypes(partyType.Id).Where(cc => cc.MinCardinality > 0); //Create party newParty = partyManager.Create(partyType, "", description, startDate, endDate, partyStatusType, requiredPartyRelationTypes.Any()); partyManager.AddPartyCustomAttributeValues(newParty, toPartyCustomAttributeValues(partyCustomAttributeValuesDict, partyTypeId)); // partyManager.AddPartyRelationship(null,TargetPartyId,PartyTypePairid) //var systemPartyTypePairs = GetSystemTypePairs(newParty.PartyType.Id); ////add relationship to the all targets //foreach (var systemPartyTypePair in systemPartyTypePairs) //{ // foreach (var targetParty in systemPartyTypePair.TargetPartyType.Parties) // { // PartyTypePair partyTypePair = partyRelationshipTypeManager.PartyTypePairRepository.Reload(systemPartyTypePair); // partyManager.AddPartyRelationship(partyManager.PartyRepository.Reload(newParty), targetParty, "system", "", systemPartyTypePair, permission: systemPartyTypePair.PermissionTemplate); // } //} return(newParty); } }
public PartyModel() { PartyType = new PartyType(); PartyTypeList = new List <PartyType>(); PartyRelationships = new List <PartyRelationshipModel>(); Errors = new List <Error>(); }
public CallForTendersType() { this.procurementProjectLotField = new ObservableCollection <ProcurementProjectLotType>(); this.procurementProjectField = new ProcurementProjectType(); this.tenderingProcessField = new TenderingProcessType(); this.tenderingTermsField = new TenderingTermsType(); this.receiverPartyField = new PartyType(); this.originatorCustomerPartyField = new ObservableCollection <CustomerPartyType>(); this.contractingPartyField = new ContractingPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.technicalDocumentReferenceField = new DocumentReferenceType(); this.legalDocumentReferenceField = new DocumentReferenceType(); this.previousVersionIDField = new PreviousVersionIDType(); this.versionIDField = new VersionIDType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.approvalDateField = new ApprovalDateType(); this.contractFolderIDField = new ContractFolderIDType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public TransportationStatusRequestType() { this.requestedStatusPeriodField = new ObservableCollection <PeriodType>(); this.requestedStatusLocationField = new ObservableCollection <LocationType1>(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.consignmentField = new ObservableCollection <ConsignmentType>(); this.transportExecutionPlanDocumentReferenceField = new DocumentReferenceType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.transportationStatusTypeCodeField = new TransportationStatusTypeCodeType(); this.otherInstructionField = new OtherInstructionType(); this.shippingOrderIDField = new ShippingOrderIDType(); this.noteField = new ObservableCollection <NoteType>(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.nameField = new NameType1(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.carrierAssignedIDField = new CarrierAssignedIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
private static List <LinkElementModel> createLinkElementModelPartyCustomType(PartyType partyType, LinkElementRootModel rootModel, LinkElementModel parent, MappingManager mappingManager) { List <LinkElementModel> tmp = new List <LinkElementModel>(); PartyTypeManager partyTypeManager = new PartyTypeManager(); try { foreach (var partyCustomType in partyType.CustomAttributes) { long linkElementId = GetId(partyCustomType.Id, LinkElementType.PartyCustomType, mappingManager); LinkElementModel LEModel = new LinkElementModel( linkElementId, partyCustomType.Id, LinkElementType.PartyCustomType, partyCustomType.Name, partyType.Title + "/" + partyCustomType.Name, rootModel.Position, LinkElementComplexity.Simple, partyCustomType.Description); LEModel.Parent = parent; tmp.Add(LEModel); } return(tmp); } finally { partyTypeManager.Dispose(); } }
public ContractAwardNoticeType() { this.tenderResultField = new ObservableCollection <TenderResultType>(); this.procurementProjectLotField = new ObservableCollection <ProcurementProjectLotType>(); this.procurementProjectField = new ProcurementProjectType(); this.tenderingProcessField = new TenderingProcessType(); this.tenderingTermsField = new TenderingTermsType(); this.receiverPartyField = new PartyType(); this.originatorCustomerPartyField = new CustomerPartyType(); this.contractingPartyField = new ContractingPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.minutesDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.previousDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.publishAwardIndicatorField = new PublishAwardIndicatorType(); this.regulatoryDomainField = new ObservableCollection <RegulatoryDomainType>(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.contractFolderIDField = new ContractFolderIDType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public CatalogueType() { this.catalogueLineField = new ObservableCollection <CatalogueLineType>(); this.tradingTermsField = new ObservableCollection <TradingTermsType>(); this.contractorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.receiverPartyField = new PartyType(); this.providerPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.sourceCatalogueReferenceField = new CatalogueReferenceType(); this.referencedContractField = new ObservableCollection <ContractType>(); this.validityPeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.previousVersionIDField = new PreviousVersionIDType(); this.versionIDField = new VersionIDType(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.noteField = new ObservableCollection <NoteType>(); this.revisionTimeField = new RevisionTimeType(); this.revisionDateField = new RevisionDateType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.nameField = new NameType1(); this.actionCodeField = new ActionCodeType(); this.uUIDField = new UUIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public StatementType() { this.statementLineField = new ObservableCollection <StatementLineType>(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.allowanceChargeField = new ObservableCollection <AllowanceChargeType>(); this.paymentTermsField = new ObservableCollection <PaymentTermsType>(); this.paymentMeansField = new ObservableCollection <PaymentMeansType>(); this.payeePartyField = new PartyType(); this.originatorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.accountingCustomerPartyField = new CustomerPartyType(); this.accountingSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.statementPeriodField = new PeriodType(); this.statementTypeCodeField = new StatementTypeCodeType(); this.lineCountNumericField = new LineCountNumericType(); this.totalBalanceAmountField = new TotalBalanceAmountType(); this.totalCreditAmountField = new TotalCreditAmountType(); this.totalDebitAmountField = new TotalDebitAmountType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public TenderType() { this.tenderedProjectField = new ObservableCollection <TenderedProjectType>(); this.originatorCustomerPartyField = new CustomerPartyType(); this.contractingPartyField = new ContractingPartyType(); this.subcontractorPartyField = new ObservableCollection <PartyType>(); this.tendererQualificationDocumentReferenceField = new DocumentReferenceType(); this.tendererPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.validityPeriodField = new PeriodType(); this.noteField = new ObservableCollection <NoteType>(); this.contractNameField = new ObservableCollection <ContractNameType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.contractFolderIDField = new ContractFolderIDType(); this.tenderTypeCodeField = new TenderTypeCodeType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public PartyTypePair UpdatePartyTypePair(long id, string title, PartyType allowedSource, PartyType alowedTarget, string description, bool partyRelationShipTypeDefault, PartyRelationshipType partyRelationshipType) { Contract.Requires(id > 0); Contract.Requires(!string.IsNullOrEmpty(title)); Contract.Requires(allowedSource != null && allowedSource.Id > 0); Contract.Requires(alowedTarget != null && alowedTarget.Id > 0); Contract.Ensures(Contract.Result <PartyTypePair>() != null && Contract.Result <PartyTypePair>().Id >= 0); var entity = new PartyTypePair(); using (IUnitOfWork uow = this.GetUnitOfWork()) { IRepository <PartyTypePair> repo = uow.GetRepository <PartyTypePair>(); entity = repo.Get(id); if (entity == null) { BexisException.Throw(null, "PartyTypePair not found", BexisException.ExceptionType.Edit); } entity.AllowedSource = allowedSource; entity.AllowedTarget = alowedTarget; entity.Description = description; entity.PartyRelationshipType = partyRelationshipType; entity.Title = title; entity.PartyRelationShipTypeDefault = partyRelationShipTypeDefault; repo.Put(entity); uow.Commit(); } return(entity); }
/// <summary> /// Sets the header. /// </summary> /// <param name="header"> /// The header. /// </param> /// <param name="sdmxObjects"> /// The beans. /// </param> public static void SetHeader(HeaderType header, ISdmxObjects sdmxObjects) { header.ID = "IDREF" + refNumber; refNumber++; header.Test = false; header.Prepared = DateTime.Now; var sender = new PartyType(); header.Sender.Add(sender); string senderId; if (sdmxObjects != null && sdmxObjects.Header != null && sdmxObjects.Header.Sender != null) { // Get header information from the supplied beans senderId = sdmxObjects.Header.Sender.Id; } else { // Get header info from HeaderHelper senderId = HeaderHelper.Instance.SenderId; } sender.id = senderId; var receiver = new PartyType(); header.Receiver.Add(receiver); receiver.id = HeaderHelper.Instance.ReceiverId; }
public PriorInformationNoticeType() { this.procurementProjectLotField = new ObservableCollection <ProcurementProjectLotType>(); this.procurementProjectField = new ProcurementProjectType(); this.tenderingProcessField = new TenderingProcessType(); this.tenderingTermsField = new TenderingTermsType(); this.receiverPartyField = new PartyType(); this.originatorCustomerPartyField = new ObservableCollection <CustomerPartyType>(); this.contractingPartyField = new ContractingPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.plannedDateField = new PlannedDateType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.contractFolderIDField = new ContractFolderIDType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public List <Party> GetAllParties() { List <Party> parties = new List <Party>(); string query = "SELECT Pt.Type, P.PartyName, P.PartyCode, P.PartyContactNo, P.PartyEmail, P.PartyAddress FROM Party P " + "INNER JOIN PartyType Pt ON P.PartyTypeId = Pt.PartyTypeId"; Gateway gateway = new Gateway(query); SqlDataReader reader = gateway.SqlCommand.ExecuteReader(); while (reader.Read()) { Party party = new Party(); party.PartyName = reader["PartyName"].ToString(); party.PartyCode = reader["PartyCode"].ToString(); party.PartyContactNo = reader["PartyContactNo"].ToString(); party.PartyEmail = reader["PartyEmail"].ToString(); party.PartyAddress = reader["PartyAddress"].ToString(); PartyType partyType = new PartyType(); partyType.Type = reader["Type"].ToString(); party.PartyType = partyType; parties.Add(party); } reader.Close(); gateway.Connection.Close(); return(parties); }
public RemittanceAdviceType() { this.remittanceAdviceLineField = new ObservableCollection <RemittanceAdviceLineType>(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.paymentMeansField = new PaymentMeansType(); this.payeePartyField = new PartyType(); this.accountingSupplierPartyField = new SupplierPartyType(); this.accountingCustomerPartyField = new CustomerPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.billingReferenceField = new BillingReferenceType(); this.invoicePeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.invoicingPartyReferenceField = new InvoicingPartyReferenceType(); this.payerReferenceField = new PayerReferenceType(); this.paymentOrderReferenceField = new PaymentOrderReferenceType(); this.totalPaymentAmountField = new TotalPaymentAmountType(); this.totalCreditAmountField = new TotalCreditAmountType(); this.totalDebitAmountField = new TotalDebitAmountType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public PartyTypePair AddPartyTypePair(string title, PartyType allowedSource, PartyType allowedTarget, string description, bool partyRelationShipTypeDefault, PartyRelationshipType partyRelationshipType, string conditionSource, string conditionTarget) { Contract.Requires(!string.IsNullOrEmpty(title)); Contract.Requires(allowedSource != null && allowedSource.Id > 0); Contract.Requires(allowedTarget != null && allowedTarget.Id > 0); Contract.Ensures(Contract.Result <PartyTypePair>() != null && Contract.Result <PartyTypePair>().Id >= 0); var entity = new PartyTypePair() { AllowedSource = allowedSource, AllowedTarget = allowedTarget, Description = description, PartyRelationshipType = partyRelationshipType, Title = title, PartyRelationShipTypeDefault = partyRelationShipTypeDefault, ConditionSource = conditionSource, ConditionTarget = conditionTarget }; using (IUnitOfWork uow = this.GetUnitOfWork()) { IRepository <PartyTypePair> repo = uow.GetRepository <PartyTypePair>(); repo.Put(entity); uow.Commit(); } return(entity); }
public SupplierPartyType getSupplierPartyType() { PartyType HPT = new PartyType(); NameType1 HNT1 = new NameType1(); HNT1.Value = $"<![CDATA[{MS.Emp.RazonSocial}]]>"; PartyNameType HPNT = new PartyNameType(); PartyNameType[] MPNT = { HPNT }; MPNT[0].Name = HNT1; IDType HIT = new IDType(); AddressType HAT = new AddressType(); AddressType[] MAT = { HAT }; HIT.Value = MS.Emp.Ubigeo; StreetNameType HSNT = new StreetNameType(); HSNT.Value = MS.Emp.DomicilioFiscal; CountryType HCT = new CountryType(); IdentificationCodeType HICT = new IdentificationCodeType(); HICT.listID = "PE"; HCT.IdentificationCode = HICT; PartyLegalEntityType HPLET = new PartyLegalEntityType(); PartyLegalEntityType[] MPLET = { HPLET }; RegistrationNameType HRNT = new RegistrationNameType(); HRNT.Value = $"<![CDATA[{MS.Emp.RazonSocial}]]>"; MPLET[0].RegistrationName = HRNT; HAT.ID = HIT; HAT.StreetName = HSNT; HAT.Country = HCT; HPT.PartyLegalEntity = MPLET; AdditionalAccountIDType HAAIT = new AdditionalAccountIDType(); AdditionalAccountIDType[] MAAIT = { HAAIT }; MAAIT[0].Value = "6"; CustomerAssignedAccountIDType CAAIDT = new CustomerAssignedAccountIDType(); CAAIDT.Value = MS.Emp.Ruc; SupplierPartyType HSPT = new SupplierPartyType(); HSPT.Party = HPT; HSPT.AdditionalAccountID = MAAIT; HSPT.CustomerAssignedAccountID = CAAIDT; return(HSPT); }
public static Party Retrieve(string OrderNo, PartyType PartyType) { DataTable oData = Data.OperationalDB.LoadParty(OrderNo, PartyType.ToString()); Party oParty = new Party(); oParty.Contact = new Contact(); oParty.Address = new Address(); if (oData.Rows.Count > 0) { oParty.Contact = Contact.Retrieve(OrderNo, (ContactType)PartyType); oParty.Address = Address.Retrieve(OrderNo, (AddressType)PartyType); oParty.AccountNo = oData.Rows[0]["ACCOUNT_NO"].ToString(); } return oParty; }
internal contractMessage GetContractMessageNO1(long contractId) { DataManager dataMan = new DataManager(); cMsg = new contractMessage(); cMsg.messageRecieverParty =""; cMsg.messageSenderParty = "T1ES1"; PartyType provider = new PartyType(); CompanyData companyData = dataMan.GetCompanyData("T1ES1"); provider.name = companyData.Name; provider.registryCode = companyData.RegCode; provider.address = companyData.Address; provider.contactPhone = companyData.ContactPhone; provider.contactEmail = companyData.ContactEmail; cMsg.ProviderParty = provider; ContractData contractData = dataMan.GetContractData(contractId); cMsg.messageRecieverParty = contractData.AreaNetworkOwner; contractMessageClientParty client = new contractMessageClientParty(); client.name = contractData.ClientName; client.registryCode = contractData.ClientRegNo.ToString(); client.address = contractData.ClientAddress; client.contactPhone = contractData.ClientPhone; client.contactEmail = contractData.ClientEmail; client.facilityId = contractData.FacilityId.ToString(); client.areaId = contractData.AreaId.ToString(); cMsg.ClientParty = client; contractMessageContractInfo contract = new contractMessageContractInfo(); contract.startDateSpecified = true; contract.startDate = contractData.StartDate; contract.contractId = contractData.ContractId.ToString(); cMsg.contractInfo = contract; return cMsg; }
/// <summary> /// Sets given options without updating the clients. /// </summary> /// <param name="type"></param> /// <param name="name"></param> /// <param name="dungeonLevel"></param> /// <param name="info"></param> /// <param name="password"></param> /// <param name="maxSize"></param> private void SetSettings(PartyType type, string name, string dungeonLevel, string info, string password, int maxSize) { this.Type = type; this.Name = name; this.DungeonLevel = (string.IsNullOrWhiteSpace(dungeonLevel) ? null : dungeonLevel); this.Info = (string.IsNullOrWhiteSpace(info) ? null : info); this.Password = (string.IsNullOrWhiteSpace(password) ? null : password); this.MaxSize = Math2.Clamp(this.MemberCount, ChannelServer.Instance.Conf.World.PartyMaxSize, maxSize); }
/// <summary> /// Changes settings and updates clients. /// </summary> /// <param name="type"></param> /// <param name="name"></param> /// <param name="dungeonLevel"></param> /// <param name="info"></param> /// <param name="password"></param> /// <param name="maxSize"></param> public void ChangeSettings(PartyType type, string name, string dungeonLevel, string info, string password, int maxSize) { this.SetSettings(type, name, dungeonLevel, info, password, maxSize); Send.PartyTypeUpdate(this); if (this.IsOpen) Send.PartyMemberWantedRefresh(this); Send.PartySettingUpdate(this); }
/// <summary> /// Sets party type. /// </summary> /// <param name="type"></param> public void SetType(PartyType type) { if (type == this.Type) return; this.Type = type; Send.PartyTypeUpdate(this); }
/// <summary> /// Creates new party with creature as leader. /// </summary> /// <param name="creature"></param> public static Party Create(Creature creature, PartyType type, string name, string dungeonLevel, string info, string password, int maxSize) { var party = new Party(); party.Id = ChannelServer.Instance.PartyManager.GetNextPartyId(); party._members.Add(creature); party._occupiedSlots.Add(1, creature); party.Leader = creature; party.SetSettings(type, name, dungeonLevel, info, password, maxSize); creature.PartyPosition = 1; ChannelServer.Instance.Events.MinutesTimeTick += party.OnMinutesTimeTick; return party; }
///////////////////////////////////////////////////////////////////////////////////////////////// //////////BUILD FROM V2.1 SCHEMA ///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Initializes a new instance of the <see cref="PartyCore"/> class. /// </summary> /// <param name="partyType"> /// The party type. /// </param> public PartyCore(PartyType partyType) : this() { this.id = partyType.id; if (ObjectUtil.ValidCollection(partyType.Name)) { foreach (Name tt in partyType.Name) { this._name.Add(new TextTypeWrapperImpl(tt, null)); } } if (ObjectUtil.ValidCollection(partyType.Contact)) { foreach (ContactType contactType in partyType.Contact) { this.contacts.Add(new ContactCore(contactType)); } } this.Validate(); }
public PartyPickerDialogEx(PartyType partyTypes, List<PhoneSimPicker.SimPickerInfo> sims, ThumbnailKey simThumb, bool isPartyAtHome, float curfewStart, float curfewEnd, float venueOpenTime, float venueCloseTime, ClothingType restrictClothingTypeTo, bool isHostFemale) : base(AdjustedTypes(partyTypes), sims, simThumb, isPartyAtHome, curfewStart, curfewEnd, venueOpenTime, venueCloseTime, restrictClothingTypeTo, isHostFemale) { mPartyTypeCombo.ValueList.Clear(); if ((PartyType.kHouseParty & partyTypes) != PartyType.kNone) { if (isPartyAtHome) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString("Ui/Caption/Party:House", new object[0]), PartyType.kHouseParty); } else { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString("Ui/Caption/Party:Street", new object[0]), PartyType.kHouseParty); } } if ((PartyType.kWedding & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString("Ui/Caption/Party:Wedding", new object[0]), PartyType.kWedding); } if ((PartyType.kBirthday & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString("Ui/Caption/Party:Birthday", new object[0]), PartyType.kBirthday); } if ((PartyType.kFuneral & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString("Ui/Caption/Party:Funeral", new object[0]), PartyType.kFuneral); } if ((PartyType.kCampaign & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString("Ui/Caption/Party:Campaign", new object[0]), PartyType.kCampaign); } if ((PartyType.kBachelorParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:Bachelor", new object[0]), PartyType.kBachelorParty); } if ((PartyType.kTeenParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString("Ui/Caption/Party:Teen", new object[0]), PartyType.kTeenParty); } if ((PartyType.kChildSlumberParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:Slumber", new object[0]), PartyType.kChildSlumberParty); } if ((PartyType.kTeenSlumberParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:Slumber", new object[0]), PartyType.kTeenSlumberParty); } if ((PartyType.kPoolParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:Pool", new object[0]), PartyType.kPoolParty); } if ((PartyType.kFeastParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:Feast", new object[0]), PartyType.kFeastParty); } if ((PartyType.kCostumeParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:CostumeParty", new object[0]), PartyType.kCostumeParty); } if ((PartyType.kGiftGivingParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:GiftGivingParty", new object[0]), PartyType.kGiftGivingParty); } if ((PartyType.kJuiceKeggerParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:JuiceKegger", new object[0]), PartyType.kJuiceKeggerParty); } if ((PartyType.kTailgatingParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Common.Localize("PartyType:Tailgating", isHostFemale), PartyType.kTailgatingParty); } if ((PartyType.kBonfire & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Localization.LocalizeString(isHostFemale, "Ui/Caption/Party:Bonfire", new object[0]), PartyType.kBonfire); } if ((PartyType.kVideoGameLANParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Common.Localize("PartyType:LANParty", isHostFemale), PartyType.kVideoGameLANParty); } if ((PartyType.kMasqueradeBall & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Common.Localize("PartyType:MasqueradeBall", isHostFemale), PartyType.kMasqueradeBall); } if ((PartyType.kVictoryParty & partyTypes) != PartyType.kNone) { mPartyTypeCombo.ValueList.Add(Common.Localize("PartyType:VictoryParty", isHostFemale), PartyType.kVictoryParty); } mPartyTypeCombo.SelectionChange -= OnTypeChange; mPartyTypeCombo.SelectionChange += OnTypeChangeEx; mLeftArrow.Click -= OnArrowClick; mLeftArrow.Click += OnArrowClickEx; mRightArrow.Click -= OnArrowClick; mRightArrow.Click += OnArrowClickEx; Button button = mModalDialogWindow.GetChildByID(0x5ef6bd7, true) as Button; button.Click -= OnFilterClick; button.Click += OnFilterClickEx; button = mModalDialogWindow.GetChildByID(0x5ef6bd8, true) as Button; button.Click -= OnFilterClick; button.Click += OnFilterClickEx; mInviteesTable.ItemDoubleClicked -= OnGridDoubleClicked; mInviteesTable.ItemDoubleClicked += OnGridDoubleClickedEx; mSourceTable.ItemDoubleClicked -= OnGridDoubleClicked; mSourceTable.ItemDoubleClicked += OnGridDoubleClickedEx; }
/// <summary> /// set the header. /// </summary> /// <param name="header"> /// The header. /// </param> /// <param name="beans"> /// The beans. /// </param> /// <param name="receivers"> /// The receivers. /// </param> public static void SetHeader(BaseHeaderType header, ISdmxObjects beans, params string[] receivers) { header.ID = "IDREF" + refNumber; refNumber++; header.Test = false; header.Prepared = DateTime.Now; var sender = new SenderType(); header.Sender = sender; string senderId; if (beans != null && beans.Header != null && beans.Header.Sender != null) { // Get header information from the supplied beans senderId = beans.Header.Sender.Id; } else { // Get header info from HeaderHelper senderId = HeaderHelper.Instance.SenderId; } sender.id = senderId; if (ObjectUtil.ValidArray(receivers)) { /* foreach */ foreach (string currentReviever in receivers) { var receiver = new PartyType(); header.Receiver.Add(receiver); receiver.id = currentReviever; } } else { var receiver0 = new PartyType(); header.Receiver.Add(receiver0); receiver0.id = HeaderHelper.Instance.ReceiverId; } }
public static PartyType AdjustedTypes(PartyType partyTypes) { PartyType result = partyTypes; partyTypes &= ~(PartyType.kTailgatingParty | PartyType.kVideoGameLANParty | PartyType.kMasqueradeBall | PartyType.kVictoryParty); return result; }
public new static PartyInfo Show(PartyType partyTypes, List<PhoneSimPicker.SimPickerInfo> sims, ThumbnailKey simThumb, bool isPartyAtHome, float curfewStart, float curfewEnd, float venueOpenTime, float venueCloseTime, ClothingType restrictClothingTypeTo, bool isHostFemale) { int originalMax = kDefaultMaxAllowed; kDefaultMaxAllowed = int.MaxValue; try { using (PartyPickerDialogEx dialog = new PartyPickerDialogEx(partyTypes, sims, simThumb, isPartyAtHome, curfewStart, curfewEnd, venueOpenTime, venueCloseTime, restrictClothingTypeTo, isHostFemale)) { dialog.StartModal(); if (dialog.Result == null) { return null; } return dialog.Result; } } finally { kDefaultMaxAllowed = originalMax; } }