예제 #1
0
        /// <summary>
        /// Allows setting of simple dictionary data for 'Form Messages'.
        /// </summary>
        public void SetMessageDataSimpleDictionary(Dictionary <string, object> ADictionary)
        {
            switch (FMessageClass)
            {
            case TFormsMessageClassEnum.mcGiftPartnerZeroChanged:
                FMessageObject = new FormsMessageSimpleDictionary(ADictionary);
                break;

            default:
                throw new ApplicationException(
                          "Method 'SetMessageDataSimpleDictionary' must not be called for MessageClass '" +
                          Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #2
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcAccountsChanged"></see>,
        /// </summary>
        public void SetMessageDataAccounts()
        {
            switch (FMessageClass)
            {
            case TFormsMessageClassEnum.mcAccountsChanged:

                FMessageObject = new FormsMessageUnitHierarchy();
                break;

            default:
                throw new ApplicationException(
                          "Method 'SetMessageDataAccounts' must not be called for MessageClass '" +
                          Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #3
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcUnitHierarchyChanged"></see>,
        /// </summary>
        /// <param name="AUnitHierarchyChanges">All Unit Hierarchies that have been changed.</param>
        public void SetMessageDataUnitHierarchy(List <Tuple <string, Int64, Int64> > AUnitHierarchyChanges)
        {
            switch (FMessageClass)
            {
            case TFormsMessageClassEnum.mcUnitHierarchyChanged:

                FMessageObject = new FormsMessageUnitHierarchy(AUnitHierarchyChanges);
                break;

            default:
                throw new ApplicationException(
                          "Method 'SetMessageDataUnitHierarchy' must not be called for MessageClass '" +
                          Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #4
0
        /// <summary>
        /// Allows setting of AP Transaction Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcAPTransactionChanged"></see>,
        /// </summary>
        /// <param name="ASupplierName">Supplier name for the transaction in the 'Forms Message'.  Use empty string if the message does not relate to a specific supplier.</param>
        public void SetMessageDataAPTransaction(String ASupplierName)
        {
            switch (FMessageClass)
            {
            case TFormsMessageClassEnum.mcAPTransactionChanged:

                FMessageObject = new FormsMessageAP(ASupplierName);
                break;

            default:
                throw new ApplicationException(
                          "Method 'SetMessageDataAPTransaction' must not be called for MessageClass '" +
                          Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #5
0
        /// <summary>
        /// Allows setting of Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcExtractCreated"></see>,
        /// </summary>
        /// <param name="AName">Data Name in the 'Forms Message'.</param>
        public void SetMessageDataName(string AName)
        {
            switch (FMessageClass)
            {
            case TFormsMessageClassEnum.mcExtractCreated:

                FMessageObject = new FormsMessageName(AName);
                break;

            default:
                throw new ApplicationException(
                          "Method 'SetMessageDataName' must not be called for MessageClass '" +
                          Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #6
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcGiftDestinationChanged"></see>,
        /// </summary>
        /// <param name="APartnerKey">PartnerKey of the Partner in the 'Forms Message'.</param>
        /// <param name="AGiftDestinationTable">Edited Partner Gift Destination Table</param>
        public void SetMessageDataGiftDestination(Int64 APartnerKey,
                                                  PPartnerGiftDestinationTable AGiftDestinationTable)
        {
            switch (FMessageClass)
            {
            case TFormsMessageClassEnum.mcGiftDestinationChanged:

                FMessageObject = new FormsMessageGiftDestination(APartnerKey,
                                                                 AGiftDestinationTable);
                break;

            default:
                throw new ApplicationException(
                          "Method 'SetMessageDataGiftDestination' must not be called for MessageClass '" +
                          Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #7
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcNewPartnerSaved"></see>,
        /// <see cref="TFormsMessageClassEnum.mcExistingPartnerSaved"></see>,
        /// <see cref="TFormsMessageClassEnum.mcFamilyMembersChanged"></see>,
        /// <see cref="TFormsMessageClassEnum.mcPartnerDeleted"></see> and
        /// <see cref="TFormsMessageClassEnum.mcPersonnelCommitmentChanged"></see>.
        /// </summary>
        /// <param name="APartnerKey">PartnerKey of the Partner in the 'Forms Message'.</param>
        /// <param name="APartnerClass">Partner Class of the Partner in the 'Forms Message'.</param>
        /// <param name="AShortName">ShortName of the Partner in the 'Forms Message'.</param>
        /// <param name="APartnerStatus">Status of the Partner in the 'Forms Message'.</param>
        public void SetMessageDataPartner(Int64 APartnerKey,
                                          TPartnerClass APartnerClass, string AShortName, string APartnerStatus)
        {
            switch (FMessageClass)
            {
            case TFormsMessageClassEnum.mcNewPartnerSaved:
            case TFormsMessageClassEnum.mcExistingPartnerSaved:
            case TFormsMessageClassEnum.mcFamilyMembersChanged:
            case TFormsMessageClassEnum.mcPartnerDeleted:
            case TFormsMessageClassEnum.mcPersonnelCommitmentChanged:

                FMessageObject = new FormsMessagePartner(APartnerKey,
                                                         APartnerClass, AShortName, APartnerStatus);
                break;

            default:
                throw new ApplicationException(
                          "Method 'SetMessageDataPartner' must not be called for MessageClass '" +
                          Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #8
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcAccountsChanged"></see>,
        /// </summary>
        public void SetMessageDataAccounts()
        {
            switch (FMessageClass)
            {
                case TFormsMessageClassEnum.mcAccountsChanged:

                    FMessageObject = new FormsMessageUnitHierarchy();
                    break;

                default:
                    throw new ApplicationException(
                    "Method 'SetMessageDataAccounts' must not be called for MessageClass '" +
                    Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #9
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcUnitHierarchyChanged"></see>,
        /// </summary>
        /// <param name="AUnitHierarchyChanges">All Unit Hierarchies that have been changed.</param>
        public void SetMessageDataUnitHierarchy(List <Tuple <string, Int64, Int64>>AUnitHierarchyChanges)
        {
            switch (FMessageClass)
            {
                case TFormsMessageClassEnum.mcUnitHierarchyChanged:

                    FMessageObject = new FormsMessageUnitHierarchy(AUnitHierarchyChanges);
                    break;

                default:
                    throw new ApplicationException(
                    "Method 'SetMessageDataUnitHierarchy' must not be called for MessageClass '" +
                    Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #10
0
        /// <summary>
        /// Allows setting of AP Transaction Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcAPTransactionChanged"></see>,
        /// </summary>
        /// <param name="ASupplierName">Supplier name for the transaction in the 'Forms Message'.  Use empty string if the message does not relate to a specific supplier.</param>
        public void SetMessageDataAPTransaction(String ASupplierName)
        {
            switch (FMessageClass)
            {
                case TFormsMessageClassEnum.mcAPTransactionChanged:

                    FMessageObject = new FormsMessageAP(ASupplierName);
                    break;

                default:
                    throw new ApplicationException(
                    "Method 'SetMessageDataAPTransaction' must not be called for MessageClass '" +
                    Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #11
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcGiftDestinationChanged"></see>,
        /// </summary>
        /// <param name="APartnerKey">PartnerKey of the Partner in the 'Forms Message'.</param>
        /// <param name="AGiftDestinationTable">Edited Partner Gift Destination Table</param>
        public void SetMessageDataGiftDestination(Int64 APartnerKey,
            PPartnerGiftDestinationTable AGiftDestinationTable)
        {
            switch (FMessageClass)
            {
                case TFormsMessageClassEnum.mcGiftDestinationChanged:

                    FMessageObject = new FormsMessageGiftDestination(APartnerKey,
                    AGiftDestinationTable);
                    break;

                default:
                    throw new ApplicationException(
                    "Method 'SetMessageDataGiftDestination' must not be called for MessageClass '" +
                    Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #12
0
        /// <summary>
        /// Allows setting of Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcExtractCreated"></see>,
        /// </summary>
        /// <param name="AName">Data Name in the 'Forms Message'.</param>
        public void SetMessageDataName(string AName)
        {
            switch (FMessageClass)
            {
                case TFormsMessageClassEnum.mcExtractCreated:

                    FMessageObject = new FormsMessageName(AName);
                    break;

                default:
                    throw new ApplicationException(
                    "Method 'SetMessageDataName' must not be called for MessageClass '" +
                    Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }
예제 #13
0
        /// <summary>
        /// Allows setting of Partner Data for 'Form Messages' of MessageClass
        /// <see cref="TFormsMessageClassEnum.mcNewPartnerSaved"></see>,
        /// <see cref="TFormsMessageClassEnum.mcExistingPartnerSaved"></see>,
        /// <see cref="TFormsMessageClassEnum.mcFamilyMembersChanged"></see>,
        /// <see cref="TFormsMessageClassEnum.mcPartnerDeleted"></see> and
        /// <see cref="TFormsMessageClassEnum.mcPersonnelCommitmentChanged"></see>.
        /// </summary>
        /// <param name="APartnerKey">PartnerKey of the Partner in the 'Forms Message'.</param>
        /// <param name="APartnerClass">Partner Class of the Partner in the 'Forms Message'.</param>
        /// <param name="AShortName">ShortName of the Partner in the 'Forms Message'.</param>
        /// <param name="APartnerStatus">Status of the Partner in the 'Forms Message'.</param>
        public void SetMessageDataPartner(Int64 APartnerKey,
            TPartnerClass APartnerClass, string AShortName, string APartnerStatus)
        {
            switch (FMessageClass)
            {
                case TFormsMessageClassEnum.mcNewPartnerSaved:
                case TFormsMessageClassEnum.mcExistingPartnerSaved:
                case TFormsMessageClassEnum.mcFamilyMembersChanged:
                case TFormsMessageClassEnum.mcPartnerDeleted:
                case TFormsMessageClassEnum.mcPersonnelCommitmentChanged:

                    FMessageObject = new FormsMessagePartner(APartnerKey,
                    APartnerClass, AShortName, APartnerStatus);
                    break;

                default:
                    throw new ApplicationException(
                    "Method 'SetMessageDataPartner' must not be called for MessageClass '" +
                    Enum.GetName(typeof(TFormsMessageClassEnum), FMessageClass) + "'");
            }
        }