Esempio n. 1
0
 public CCProcessingCenterMaint()
 {
     GL.GLSetup setup = GLSetup.Current;
     this.ProcessingCenter.Cache.AllowDelete = false;
     PaymentMethods.Cache.AllowInsert        = PaymentMethods.Cache.AllowUpdate = PaymentMethods.Cache.AllowDelete = false;
     PXUIFieldAttribute.SetEnabled <CCProcessingCenterPmntMethod.isDefault>(this.PaymentMethods.Cache, null, false);
     _displayNamesAndTypes = new Dictionary <string, string>();
     SetDisplayNamesAndTypes();
 }
 public CCProcessingCenterMaint()
 {
     GL.GLSetup setup = GLSetup.Current;
     this.ProcessingCenter.Cache.AllowDelete = false;
     PaymentMethods.Cache.AllowInsert        = PaymentMethods.Cache.AllowUpdate = PaymentMethods.Cache.AllowDelete = false;
     PXUIFieldAttribute.SetEnabled <CCProcessingCenterPmntMethod.isDefault>(this.PaymentMethods.Cache, null, false);
     _displayNamesAndTypes = new Dictionary <string, Type>
     {
         { CCProcessingBase.Messages.AuthnetProcessingPluginDisplayName, typeof(AuthnetProcessingPlugin) },
         { CCProcessingBase.Messages.AuthorizeNetTokenizedProcessingDisplayName, typeof(AuthorizeNetTokenizedProcessing) },
         { CCProcessingBase.Messages.AuthorizeNetProcessingDisplayName, typeof(AuthorizeNetProcessing) }
     };
 }
Esempio n. 3
0
        protected virtual void PMAccountGroup_SortOrder_FieldDefaulting(PXCache sender, PXFieldDefaultingEventArgs e)
        {
            PMAccountGroup row = e.Row as PMAccountGroup;

            if (row != null)
            {
                if (row.Type == PMAccountType.OffBalance)
                {
                    e.NewValue = (short)5;
                }
                else
                {
                    int        ordinal = GL.AccountType.Ordinal(row.Type);
                    GL.GLSetup setup   = PXSelect <GL.GLSetup> .Select(this);

                    if (setup != null)
                    {
                        if (setup.COAOrder.Value.ToString() == "128")                         //Custom Order - fixed preset order
                        {
                            if (row.Type == GL.AccountType.Income)
                            {
                                e.NewValue = (short)1;
                            }
                            else if (row.Type == GL.AccountType.Expense)
                            {
                                e.NewValue = (short)2;
                            }
                            else if (row.Type == GL.AccountType.Asset)
                            {
                                e.NewValue = (short)3;
                            }
                            else if (row.Type == GL.AccountType.Liability)
                            {
                                e.NewValue = (short)4;
                            }
                        }
                        else
                        {
                            string order = GL.AccountType.COAOrderOptions[setup.COAOrder.Value];
                            e.NewValue = short.Parse(order.Substring(ordinal, 1));
                        }
                    }
                }
            }
        }
        protected virtual void PMAccountGroup_SortOrder_FieldDefaulting(PXCache sender, PXFieldDefaultingEventArgs e)
        {
            PMAccountGroup row = e.Row as PMAccountGroup;

            if (row != null)
            {
                if (row.Type == PMAccountType.OffBalance)
                {
                    e.NewValue = (short)5;
                }
                else
                {
                    int        ordinal = GL.AccountType.Ordinal(row.Type);
                    GL.GLSetup setup   = PXSelect <GL.GLSetup> .Select(this);

                    if (setup != null)
                    {
                        string order = GL.AccountType.COAOrderOptions[setup.COAOrder.Value];
                        e.NewValue = short.Parse(order.Substring(ordinal, 1));
                    }
                }
            }
        }
Esempio n. 5
0
 public CCProcessingCenterMaint()
 {
     GL.GLSetup setup = GLSetup.Current;
     this.ProcessingCenter.Cache.AllowDelete = false;
     PXUIFieldAttribute.SetEnabled <CCProcessingCenterPmntMethod.isDefault>(this.PaymentMethods.Cache, null, false);
 }
 public PaymentTypeMaint()
 {
     GL.GLSetup setup = GLSetup.Current;
 }