示例#1
0
        public static void GetCreatePaymentProfileForm <TPaymentMethodType>(PXGraph graph,
                                                                            PXSelectBase <TPaymentMethodType> customerPaymentMethodView,
                                                                            TPaymentMethodType currentCustomerPaymentMethod)
            where TPaymentMethodType : CustomerPaymentMethod, new()
        {
            GenericCustomerPaymentMethodAdaper <TPaymentMethodType> adapter = new GenericCustomerPaymentMethodAdaper <TPaymentMethodType>(customerPaymentMethodView);

            GetCreatePaymentProfileForm(graph, adapter);
        }
示例#2
0
        public static void GetOrCreatePaymentProfile <TPaymentMethodType, TDetialsType>(PXGraph graph
                                                                                        , PXSelectBase <TPaymentMethodType> customerPaymentMethodView
                                                                                        , PXSelectBase <TDetialsType> detailsView)
            where TPaymentMethodType : CustomerPaymentMethod, new()
            where TDetialsType : CustomerPaymentMethodDetail, new()
        {
            ICustomerPaymentMethodAdapter       paymentAdapter       = new GenericCustomerPaymentMethodAdaper <TPaymentMethodType>(customerPaymentMethodView);
            ICustomerPaymentMethodDetailAdapter paymentDetailAdapter = new GenericCustomerPaymentMethodDetailAdapter <TDetialsType>(detailsView);

            GetOrCreatePaymentProfile(graph, paymentAdapter, paymentDetailAdapter);
        }
示例#3
0
        public static void GetNewPaymentProfiles <TPaymentMethodType, TDetialsType>(PXGraph graph,
                                                                                    PXSelectBase <TPaymentMethodType> customerPaymentMethodView,
                                                                                    PXSelectBase <TDetialsType> detailsView,
                                                                                    TPaymentMethodType currentCustomerPaymentMethod)
            where TPaymentMethodType : CustomerPaymentMethod, new()
            where TDetialsType : CustomerPaymentMethodDetail, new()
        {
            ICustomerPaymentMethodAdapter       adapter       = new GenericCustomerPaymentMethodAdaper <TPaymentMethodType>(customerPaymentMethodView);
            ICustomerPaymentMethodDetailAdapter detailAdapter = new GenericCustomerPaymentMethodDetailAdapter <TDetialsType>(detailsView);

            GetNewPaymentProfiles(graph, adapter, detailAdapter);
        }