コード例 #1
0
ファイル: UniqueNumberProvider.cs プロジェクト: dkme/moooyo
        /// <summary>
        /// 转换用户编号
        /// </summary>
        /// <param name="memberId">用户编号</param>
        /// <param name="idType">编号类别</param>
        /// <returns>用户编号</returns>
        public static UniqueNumber ConvertMemberID(String memberId, IDType idType)
        {
            long convertedID;

            try
            {
                MongoDatabase mgDb = MongoDBHelper.MongoDB;
                MongoCollection<UniqueNumber> mgColt = mgDb.GetCollection<UniqueNumber>(UniqueNumber.GetCollectionName());

                UniqueNumber uniqueNumber = new UniqueNumber();
                uniqueNumber.DefaultId = memberId;
                //自动递增编号并返回自动增加后的编号
                convertedID = Comm.IncrementIds.IncrementIdsProvider.IncrementingID(Comm.IncrementIds.IdTypes.TransformID);
                uniqueNumber.ConvertedID = convertedID; //递增convertedID字段
                uniqueNumber.DomainNameID = "";
                uniqueNumber.IDType = idType;
                uniqueNumber.CreatedTime = DateTime.Now;

                mgColt.Insert(uniqueNumber);

                return uniqueNumber;
            }
            catch (System.Exception err)
            {
                throw new CBB.ExceptionHelper.OperationException(CBB.ExceptionHelper.ErrType.SystemErr,
                    CBB.ExceptionHelper.ErrNo.DBOperationError, err);
            }
        }
コード例 #2
0
ファイル: ObjectIdentifier.cs プロジェクト: klod68/kpsf
 public ObjectIdentifier(object id, string fieldName, IDDataType dataType, IDType type)
 {
     _id = id;
     _fieldName = fieldName;
     _dataType = dataType;
     _type = type;
 }
コード例 #3
0
ファイル: TriggerEventArgs.cs プロジェクト: jandar78/Novus
        public TriggerEventArgs(ObjectId id, IDType type, ObjectId instigatorID, IDType instigatorType, string message = null) {
            IdType = type;
            Id = id;
            Message = message;
			InstigatorID = instigatorID; //this will always be a player, we are not going to give a quest to an NPC.
			InstigatorType = instigatorType;
        }
コード例 #4
0
 public UBLExtensionType() {
     this.extensionReasonField = new ExtensionReasonType();
     this.extensionReasonCodeField = new ExtensionReasonCodeType();
     this.extensionURIField = new ExtensionURIType();
     this.extensionAgencyURIField = new ExtensionAgencyURIType();
     this.extensionVersionIDField = new ExtensionVersionIDType();
     this.extensionAgencyNameField = new ExtensionAgencyNameType();
     this.extensionAgencyIDField = new ExtensionAgencyIDType();
     this.nameField = new NameType1();
     this.idField = new IDType();
 }
コード例 #5
0
 /// <summary>
 /// 证件类型转换
 /// </summary>
 /// <param name="cer"></param>
 /// <returns></returns>
 public static CeritificateEnum ConverterCeritificateEnum(IDType cer)
 {
     switch (cer)
     {
         case IDType.Identity:
             return CeritificateEnum.ID;
             break;
         case IDType.Company:
             return CeritificateEnum.Company;
             break;
         case IDType.Business:
             return CeritificateEnum.BusinessLicense;
             break;
     }
     return CeritificateEnum.ID;
 }
コード例 #6
0
ファイル: UniqueNumberProvider.cs プロジェクト: dkme/moooyo
 /// <summary>
 /// 按原始编号和编号类型获取唯一编号对象
 /// </summary>
 /// <param name="memberId">原始编号</param>
 /// <returns>转换后的编号</returns>
 public static UniqueNumber GetConvertedMemberID(String defaultId, IDType idType)
 {
     UniqueNumber uniqueNumber;
     try
     {
         MongoDatabase mgDb = MongoDBHelper.MongoDB;
         MongoCollection<UniqueNumber> mgColt = mgDb.GetCollection<UniqueNumber>(UniqueNumber.GetCollectionName());
         uniqueNumber = mgColt.FindOne(Query.EQ("DefaultId", defaultId));
         return uniqueNumber;
     }
     catch (System.Exception err)
     {
         throw new CBB.ExceptionHelper.OperationException(CBB.ExceptionHelper.ErrType.SystemErr,
             CBB.ExceptionHelper.ErrNo.DBOperationError, err);
     }
 }
コード例 #7
0
 public DocumentStatusType() {
     this.additionalDocumentResponseField = new ObservableCollection<DocumentResponseType>();
     this.documentResponseField = new DocumentResponseType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     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>();
 }
コード例 #8
0
 public DocumentStatusRequestType() {
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.requestedDocumentReferenceField = new DocumentReferenceType();
     this.trackingIDField = new TrackingIDType();
     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 TransportProgressStatusRequestType() {
     this.statusLocationField = new ObservableCollection<LocationType1>();
     this.transportMeansField = new TransportMeansType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     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 TransportServiceDescriptionRequestType() {
     this.transportationServiceField = new ObservableCollection<TransportationServiceType>();
     this.transportServiceProviderPartyField = new PartyType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.serviceInformationPreferenceCodeField = new ServiceInformationPreferenceCodeType();
     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>();
 }
コード例 #11
0
 public ProductActivityType() {
     this.supplyChainActivityDataLineField = new ObservableCollection<ActivityDataLineType>();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.documentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.activityPeriodField = new PeriodType();
     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>();
 }
コード例 #12
0
 public InstructionForReturnsType() {
     this.instructionForReturnsLineField = new ObservableCollection<InstructionForReturnsLineType>();
     this.shipmentField = new ShipmentType();
     this.manufacturerPartyField = new PartyType();
     this.retailerCustomerPartyField = new CustomerPartyType();
     this.sellerSupplierPartyField = new SupplierPartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.documentReferenceField = new ObservableCollection<DocumentReferenceType>();
     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 TendererQualificationResponseType() {
     this.signatureField = new ObservableCollection<SignatureType>();
     this.appealTermsField = new AppealTermsType();
     this.qualificationResolutionField = new ObservableCollection<QualificationResolutionType>();
     this.resolutionDocumentReferenceField = new DocumentReferenceType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.noteField = new ObservableCollection<NoteType>();
     this.issueTimeField = new IssueTimeType();
     this.issueDateField = new IssueDateType();
     this.contractNameField = new ObservableCollection<ContractNameType>();
     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>();
 }
コード例 #14
0
 public StockAvailabilityReportType() {
     this.stockAvailabilityReportLineField = new ObservableCollection<StockAvailabilityReportLineType>();
     this.inventoryReportingPartyField = new PartyType();
     this.retailerCustomerPartyField = new CustomerPartyType();
     this.sellerSupplierPartyField = new SupplierPartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.documentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.inventoryPeriodField = new PeriodType();
     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>();
 }
コード例 #15
0
 public TendererQualificationType() {
     this.additionalDocumentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.evidenceField = new ObservableCollection<EvidenceType>();
     this.contractingPartyField = new ContractingPartyType();
     this.tendererPartyQualificationField = new ObservableCollection<TendererPartyQualificationType>();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.previousVersionIDField = new PreviousVersionIDType();
     this.versionIDField = new VersionIDType();
     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>();
 }
コード例 #16
0
 public ExceptionNotificationType() {
     this.exceptionNotificationLineField = new ObservableCollection<ExceptionNotificationLineType>();
     this.sellerSupplierPartyField = new SupplierPartyType();
     this.buyerCustomerPartyField = new CustomerPartyType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.documentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.exceptionObservationPeriodField = new PeriodType();
     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>();
 }
コード例 #17
0
 public TenderReceiptType() {
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.tenderDocumentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.registeredTimeField = new RegisteredTimeType();
     this.registeredDateField = new RegisteredDateType();
     this.noteField = new ObservableCollection<NoteType>();
     this.contractNameField = new ObservableCollection<ContractNameType>();
     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>();
 }
コード例 #18
0
 public UnawardedNotificationType() {
     this.appealTermsField = new AppealTermsType();
     this.tenderResultField = new ObservableCollection<TenderResultType>();
     this.additionalDocumentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.minutesDocumentReferenceField = new DocumentReferenceType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.noteField = new ObservableCollection<NoteType>();
     this.contractNameField = new ObservableCollection<ContractNameType>();
     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>();
 }
コード例 #19
0
 public CertificateOfOriginType() {
     this.insuranceEndorsementField = new EndorsementType();
     this.embassyEndorsementField = new EndorsementType();
     this.issuerEndorsementField = new EndorsementType();
     this.certificateOfOriginApplicationField = new CertificateOfOriginApplicationType();
     this.endorserPartyField = new ObservableCollection<EndorserPartyType>();
     this.importerPartyField = new PartyType();
     this.exporterPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.versionIDField = new VersionIDType();
     this.noteField = new ObservableCollection<NoteType>();
     this.descriptionField = new ObservableCollection<DescriptionType>();
     this.issueTimeField = new IssueTimeType();
     this.issueDateField = new IssueDateType();
     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>();
 }
コード例 #20
0
 public AttachedDocumentType() {
     this.parentDocumentLineReferenceField = new ObservableCollection<LineReferenceType>();
     this.attachmentField = new AttachmentType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.parentDocumentVersionIDField = new ParentDocumentVersionIDType();
     this.parentDocumentTypeCodeField = new ParentDocumentTypeCodeType();
     this.parentDocumentIDField = new ParentDocumentIDType();
     this.documentTypeField = new DocumentTypeType();
     this.documentTypeCodeField = new DocumentTypeCodeType();
     this.noteField = new ObservableCollection<NoteType>();
     this.issueTimeField = new IssueTimeType();
     this.issueDateField = new IssueDateType();
     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>();
 }
コード例 #21
0
 public TradeItemLocationProfileType() {
     this.itemManagementProfileField = new ObservableCollection<ItemManagementProfileType>();
     this.sellerSupplierPartyField = new SupplierPartyType();
     this.buyerCustomerPartyField = new CustomerPartyType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.documentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.periodField = new PeriodType();
     this.profileStatusCodeField = new ProfileStatusCodeType();
     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>();
 }
コード例 #22
0
 public OrderCancellationType() {
     this.originatorCustomerPartyField = new CustomerPartyType();
     this.sellerSupplierPartyField = new SupplierPartyType();
     this.buyerCustomerPartyField = new CustomerPartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.contractField = new ObservableCollection<ContractType>();
     this.additionalDocumentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.originatorDocumentReferenceField = new DocumentReferenceType();
     this.orderReferenceField = new ObservableCollection<OrderReferenceType>();
     this.cancellationNoteField = new ObservableCollection<CancellationNoteType>();
     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 TransportServiceDescriptionType() {
     this.transportationServiceField = new ObservableCollection<TransportationServiceType>();
     this.validityPeriodField = new PeriodType();
     this.serviceChargePaymentTermsField = new PaymentTermsType();
     this.transportServiceProviderPartyField = new PartyType();
     this.transportServiceDescriptionRequestDocumentReferenceField = new DocumentReferenceType();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.responseCodeField = new ResponseCodeType();
     this.serviceNameField = new ServiceNameType();
     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>();
 }
コード例 #24
0
 public PackingListType() {
     this.signatureField = new ObservableCollection<SignatureType>();
     this.documentDistributionField = new ObservableCollection<DocumentDistributionType>();
     this.documentReferenceField = new ObservableCollection<DocumentReferenceType>();
     this.shipmentField = new ShipmentType();
     this.freightForwarderPartyField = new PartyType();
     this.carrierPartyField = new PartyType();
     this.consignorPartyField = new PartyType();
     this.otherInstructionField = new OtherInstructionType();
     this.versionIDField = new VersionIDType();
     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.idField = new IDType();
     this.profileExecutionIDField = new ProfileExecutionIDType();
     this.profileIDField = new ProfileIDType();
     this.customizationIDField = new CustomizationIDType();
     this.uBLVersionIDField = new UBLVersionIDType();
     this.uBLExtensionsField = new ObservableCollection<UBLExtensionType>();
 }
コード例 #25
0
 public GoodsItemItineraryType() {
     this.transportationSegmentField = new ObservableCollection<TransportationSegmentType>();
     this.referencedGoodsItemField = new ObservableCollection<GoodsItemType>();
     this.referencedPackageField = new ObservableCollection<PackageType>();
     this.referencedTransportEquipmentField = new ObservableCollection<TransportEquipmentType>();
     this.referencedConsignmentField = new ObservableCollection<ConsignmentType>();
     this.receiverPartyField = new PartyType();
     this.senderPartyField = new PartyType();
     this.signatureField = new ObservableCollection<SignatureType>();
     this.transportExecutionPlanReferenceIDField = new TransportExecutionPlanReferenceIDType();
     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>();
 }
コード例 #26
0
 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>();
 }
コード例 #27
0
 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>();
 }
コード例 #28
0
 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>();
 }
コード例 #29
0
ファイル: GraphImpl.cs プロジェクト: jmuijsenberg/gexf4net
 public Graph setIDType(IDType idType)
 {
     this.idType = idType;
     return(this);
 }
コード例 #30
0
 public SignatureInformationType()
 {
     this._signature             = new SignatureType();
     this._referencedSignatureID = new ReferencedSignatureIDType();
     this._id = new IDType();
 }
コード例 #31
0
ファイル: EDebitNote.cs プロジェクト: perezgradosj/ADE
        public DebitNoteLineType[] getDebitNoteLine()
        {
            DebitNoteLineType HILT = new DebitNoteLineType();

            DebitNoteLineType[] MILT = new DebitNoteLineType[VD.li];

            for (int i = 0; i < VD.li; ++i)
            {
                MILT[i] = new DebitNoteLineType();

                IDType HIT = new IDType();
                HIT.Value  = (i + 1).ToString();
                MILT[i].ID = HIT;

                DebitedQuantityType HIQT = new DebitedQuantityType();
                HIQT.unitCode           = Interface["LnUndMed" + (i + 1)];
                HIQT.unitCodeSpecified  = true;
                HIQT.Value              = Interface["LnCantidad" + (i + 1)];
                MILT[i].DebitedQuantity = HIQT;

                LineExtensionAmountType HLEAT = new LineExtensionAmountType();
                HLEAT.currencyID = Interface["Tmoneda"];
                HLEAT.Value      = Interface["LnValVta" + (i + 1)];

                MILT[i].LineExtensionAmount = HLEAT;

                PricingReferenceType   HPRT = new PricingReferenceType();
                PricingReferenceType[] MRPT = { HPRT, HPRT };

                PriceType       HPCT = new PriceType();
                PriceType[]     MPCT = null;
                PriceAmountType HXPT = new PriceAmountType();

                if (Interface["LnCodAfecIGV" + (i + 1)] == "10" || Interface["LnCodAfecIGV" + (i + 1)] == "20" || Interface["LnCodAfecIGV" + (i + 1)] == "30" || Interface["LnCodAfecIGV" + (i + 1)] == "40")
                {
                    MPCT = new PriceType[] {
                        new PriceType()
                        {
                            PriceAmount = new PriceAmountType()
                            {
                                currencyID = Interface["Tmoneda"],
                                Value      = Interface["LnMntPrcVta" + (i + 1)]
                            },
                            PriceTypeCode = new PriceTypeCodeType()
                            {
                                Value = "01"
                            }
                        }
                    };
                }
                else
                {
                    MPCT = new PriceType[] {
                        new PriceType()
                        {
                            PriceAmount = new PriceAmountType()
                            {
                                currencyID = Interface["Tmoneda"],
                                Value      = "0.00"
                            },
                            PriceTypeCode = new PriceTypeCodeType()
                            {
                                Value = "01"
                            }
                        },
                        new PriceType()
                        {
                            PriceAmount = new PriceAmountType()
                            {
                                currencyID = Interface["Tmoneda"],
                                Value      = Interface["LnMntPrcVta" + (i + 1)]
                            },
                            PriceTypeCode = new PriceTypeCodeType()
                            {
                                Value = "02"
                            }
                        },
                    };
                }

                MRPT[0].AlternativeConditionPrice = MPCT;

                MILT[i].PricingReference = MRPT[0];

                // TAX TOTAL
                double o = 0;
                double.TryParse(Interface["LnMntISC" + (i + 1)], out o);

                var igvPercent = Interface["LnIgvPercentage" + (i + 1)];
                if (igvPercent == null || igvPercent.Length == 0)
                {
                    igvPercent = "18.00";
                }

                if (o > 0)
                {
                    MILT[i].TaxTotal = new TaxTotalType[] {
                        new TaxTotalType()
                        {
                            TaxAmount = new TaxAmountType()
                            {
                                currencyID = Interface["Tmoneda"],
                                Value      = Interface["LnMntIGV" + (i + 1)]
                            },
                            TaxSubtotal = new TaxSubtotalType[]
                            {
                                new TaxSubtotalType()
                                {
                                    TaxableAmount = new TaxableAmountType()
                                    {
                                        currencyID = Interface["Tmoneda"],
                                        Value      = "0.00"
                                    },
                                    TaxAmount = new TaxAmountType()
                                    {
                                        currencyID = Interface["Tmoneda"],
                                        Value      = Interface["LnMntIGV" + (i + 1)]
                                    },
                                    Percent = new PercentType()
                                    {
                                        //Value = "18.00"
                                        Value = igvPercent
                                    },
                                    TaxCategory = new TaxCategoryType()
                                    {
                                        TaxExemptionReasonCode = new TaxExemptionReasonCodeType()
                                        {
                                            Value = Interface["LnCodAfecIGV" + (i + 1)]
                                        }, TaxScheme = new TaxSchemeType()
                                        {
                                            ID = new IDType()
                                            {
                                                Value = "1000"
                                            },
                                            Name = new NameType1()
                                            {
                                                Value = "IGV"
                                            },
                                            TaxTypeCode = new TaxTypeCodeType()
                                            {
                                                Value = "VAT"
                                            }
                                        }
                                    }
                                }
                            }
                        },
                        new TaxTotalType()
                        {
                            TaxAmount = new TaxAmountType()
                            {
                                currencyID = Interface["Tmoneda"],
                                Value      = Interface["LnMntISC" + (i + 1)]
                            },
                            TaxSubtotal = new TaxSubtotalType[]
                            {
                                new TaxSubtotalType()
                                {
                                    TaxableAmount = new TaxableAmountType()
                                    {
                                        currencyID = Interface["Tmoneda"],
                                        Value      = "0.00"
                                    },
                                    TaxAmount = new TaxAmountType()
                                    {
                                        currencyID = Interface["Tmoneda"],
                                        Value      = Interface["LnMntISC" + (i + 1)]
                                    },
                                    TaxCategory = new TaxCategoryType()
                                    {
                                        TaxExemptionReasonCode = new TaxExemptionReasonCodeType()
                                        {
                                            Value = ""
                                        },
                                        TierRange = new TierRangeType()
                                        {
                                            Value = Interface["LnCodSisISC" + (i + 1)]
                                        },
                                        TaxScheme = new TaxSchemeType()
                                        {
                                            ID = new IDType()
                                            {
                                                Value = "2000"
                                            },
                                            Name = new NameType1()
                                            {
                                                Value = "ISC"
                                            },
                                            TaxTypeCode = new TaxTypeCodeType()
                                            {
                                                Value = "EXC"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    };
                }
                else
                {
                    MILT[i].TaxTotal = new TaxTotalType[] {
                        new TaxTotalType()
                        {
                            TaxAmount = new TaxAmountType()
                            {
                                currencyID = Interface["Tmoneda"],
                                Value      = Interface["LnMntIGV" + (i + 1)]
                            },
                            TaxSubtotal = new TaxSubtotalType[]
                            {
                                new TaxSubtotalType()
                                {
                                    TaxableAmount = new TaxableAmountType()
                                    {
                                        currencyID = Interface["Tmoneda"],
                                        Value      = "0.00"
                                    },
                                    TaxAmount = new TaxAmountType()
                                    {
                                        currencyID = Interface["Tmoneda"],
                                        Value      = Interface["LnMntIGV" + (i + 1)]
                                    },
                                    Percent = new PercentType()
                                    {
                                        //Credit note value
                                        //Value = "18.00"
                                        Value = igvPercent
                                    },
                                    TaxCategory = new TaxCategoryType()
                                    {
                                        TaxExemptionReasonCode = new TaxExemptionReasonCodeType()
                                        {
                                            Value = Interface["LnCodAfecIGV" + (i + 1)]
                                        }, TaxScheme = new TaxSchemeType()
                                        {
                                            ID = new IDType()
                                            {
                                                Value = "1000"
                                            },
                                            Name = new NameType1()
                                            {
                                                Value = "IGV"
                                            },
                                            TaxTypeCode = new TaxTypeCodeType()
                                            {
                                                Value = "VAT"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    };
                }

                // PRICE
                HPCT            = null;
                HPCT            = new PriceType();
                HXPT            = null;
                HXPT            = new PriceAmountType();
                HXPT.currencyID = Interface["Tmoneda"];

                HXPT.Value = Interface["LnValUnit" + (i + 1)];

                HPCT.PriceAmount = HXPT;
                MILT[i].Price    = HPCT;

                // ITEM
                ItemType          HIMT = new ItemType();
                DescriptionType   HDT  = new DescriptionType();
                DescriptionType[] MDT  = { HDT };

                MDT[0].Value = "<![CDATA[" + Interface["LnDescrip" + (i + 1)] + "]]>";


                ItemIdentificationType HIIT = new ItemIdentificationType();
                HIT = null; HIT = new IDType();

                HIT.Value = "<![CDATA[" + Interface["LnCodProd" + (i + 1)] + "]]>";

                HIIT.ID = HIT;

                HIMT.Description = MDT;
                HIMT.SellersItemIdentification = HIIT;

                MILT[i].Item = HIMT;
            }
            return(MILT);
        }
コード例 #32
0
ファイル: IGraphExtensions.cs プロジェクト: subbuballa/Walkyr
        public static IGraph SetIDType(this IGraph myIGraph, IDType myIDType)
        {
            if (myIGraph == null)
                throw new ArgumentNullException("myIGraph must not be null!");

            myIGraph.IDType = myIDType;

            return myIGraph;
        }
コード例 #33
0
    public Card GetCard(IDType id)
    {
        Card card = deck.GetCard(id);

        return(card);
    }
コード例 #34
0
            T rr = null; // 强引用避免失效

            public DataItemWrapper(T d)
            {
                id        = d.ID;
                r         = new WeakReference <T>(d);
                d._Update = () => { d.Status.Modified = true; Fix(); };
            }
コード例 #35
0
 public void AddCard(IDType cardKey, Card card)
 {
     deck.AddCard(cardKey, card);
 }
コード例 #36
0
 public void OnCardClick(IDType cardID)
 {
     GameController.Instance.OnCardClick(cardID, this, currentOwner, GetID());
 }
コード例 #37
0
ファイル: Name.cs プロジェクト: DavidDworetzky/Sym.NET
        public Name(string title, string first, string middle, string last, string longName, int type, string suffix, int nameFormat, string homePhone, string workPhone, string workPhoneExtension, string mobilePhone,
                    int phoneType,
                    string pagerNumber,
                    string email,
                    string altEmail,
                    string dbaTitle,
                    string dbaFirst,
                    string dbaMiddle,
                    string dbaLast,
                    string dbaSuffix,
                    int dbaNameFormat,
                    string birthDate,
                    string deathDate,
                    string sex,
                    string mothersMaidenName,
                    string ssn,
                    int ssnTinType,
                    int usPersonFlag,
                    string employerName,
                    string occupation,
                    Decimal currGrossMonthPay,
                    Decimal currNetMonthPay,
                    string currMonthPayChgDate,
                    CTRExempt ctrExempt,
                    string userChar1,
                    string userChar2,
                    string userChar3,
                    string userChar4,
                    int locator,
                    string extendedName,

                    /*address fields */
                    AddressType addressType,
                    string street,
                    string city,
                    string state,
                    string zipCode,
                    string extraAddress,
                    string country,
                    string countryCode,
                    string carrierRoute,
                    /* identification fields*/
                    DocumentaryFlag identDocFlag1,
                    IDType identIdType1,
                    string identIdDescription1,
                    string identIdNumber1,
                    string identIdIssueDate1,
                    string identIdExpireDate1,
                    string identIdVerifyDate1,

                    DocumentaryFlag identDocFlag2,
                    IDType identIdType2,
                    string identIdDescription2,
                    string identIdNumber2,
                    string identIdIssueDate2,
                    string identIdExpireDate2,
                    string identIdVerifyDate2,

                    DocumentaryFlag identDocFlag3,
                    IDType identIdType3,
                    string identIdDescription3,
                    string identIdNumber3,
                    string identIdIssueDate3,
                    string identIdExpireDate3,
                    string identIdVerifyDate3
                    )
        {
            Title              = title;
            First              = first;
            Middle             = middle;
            Last               = last;
            ExtendedName       = extendedName;
            LongName           = longName;
            Type               = type;
            Suffix             = suffix;
            NameFormat         = nameFormat;
            HomePhone          = homePhone;
            WorkPhone          = workPhone;
            WorkPhoneExtension = workPhoneExtension;
            MobilePhone        = mobilePhone;
            PhoneType          = phoneType;
            PagerNumber        = pagerNumber;
            Email              = email;
            AltEmail           = altEmail;
            DBATitle           = dbaTitle;
            DBAFirst           = dbaFirst;
            DBAMiddle          = dbaMiddle;
            DBALast            = dbaLast;
            DBASuffix          = dbaSuffix;
            DBANameFormat      = dbaNameFormat;
            BirthDate          = birthDate.ParseNullableSymDateString();
            DeathDate          = deathDate.ParseNullableSymDateString();
            Sex = sex.ParseNullableSexString();
            MothersMaidenName = mothersMaidenName;
            SSN                 = ssn;
            SSNType             = ssnTinType;
            USPersonFlag        = usPersonFlag;
            EmployerName        = employerName;
            Occupation          = occupation;
            CurrGrossMonthPay   = currGrossMonthPay;
            CurrNetMonthPay     = currNetMonthPay;
            CurrMonthPayChgDate = currMonthPayChgDate.ParseNullableSymDateString();
            CTRExempt           = ctrExempt;
            UserChar1           = userChar1;
            UserChar2           = userChar2;
            UserChar3           = userChar3;
            UserChar4           = userChar4;
            Locator             = locator;

            Address = new Address()
            {
                AddressType  = addressType,
                CarrierRoute = carrierRoute,
                City         = city,
                Country      = country,
                CountryCode  = countryCode,
                ExtraAddress = extraAddress,
                State        = state,
                Street       = street,
                ZipCode      = zipCode
            };

            IDs = new List <Identification>()
            {
                new Identification()
                {
                    IDENTDOCFLAG = identDocFlag1, IDENTIDDESCRIPTION = identIdDescription1, IDENTIDEXPIREDATE = identIdExpireDate1.ParseNullableSymDateString(), IDENTIDISSUEDATE = identIdIssueDate1.ParseNullableSymDateString(), IDENTIDNUMBER = identIdNumber1, IDENTIDTYPE = identIdType1, IDENTIDVERIFYDATE = identIdVerifyDate1.ParseNullableSymDateString()
                },
                new Identification()
                {
                    IDENTDOCFLAG = identDocFlag2, IDENTIDDESCRIPTION = identIdDescription2, IDENTIDEXPIREDATE = identIdExpireDate2.ParseNullableSymDateString(), IDENTIDISSUEDATE = identIdIssueDate2.ParseNullableSymDateString(), IDENTIDNUMBER = identIdNumber2, IDENTIDTYPE = identIdType2, IDENTIDVERIFYDATE = identIdVerifyDate2.ParseNullableSymDateString()
                },
                new Identification()
                {
                    IDENTDOCFLAG = identDocFlag3, IDENTIDDESCRIPTION = identIdDescription3, IDENTIDEXPIREDATE = identIdExpireDate3.ParseNullableSymDateString(), IDENTIDISSUEDATE = identIdIssueDate3.ParseNullableSymDateString(), IDENTIDNUMBER = identIdNumber3, IDENTIDTYPE = identIdType3, IDENTIDVERIFYDATE = identIdVerifyDate3.ParseNullableSymDateString()
                }
            };
        }
コード例 #38
0
 public ForwardingInstructionsType() {
     this.signatureField = new ObservableCollection<SignatureType>();
     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.toOrderIndicatorField = new ToOrderIndicatorType();
     this.shippingOrderIDField = new ShippingOrderIDType();
     this.documentStatusCodeField = new DocumentStatusCodeType();
     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>();
 }
コード例 #39
0
 public Card GetCard(IDType index)
 {
     return(deck[index]);
 }