Esempio n. 1
0
        private void btnGroup_Click(object sender, EventArgs e)
        {
            try
            {
                UserGroupService.UserGroupAPIService local = new UserGroupService.UserGroupAPIService();
                local.Url = serviceUtil.getPpolURL() + "/cxf/UserGroupAPI";

                ppolGroups = local.getUserGroups(serviceUtil.getPpolAccount(), serviceUtil.getUserName(), serviceUtil.getPassword());
                if (ppolGroups != null)
                {
                    if (ppolGroups.Length > 0)
                    {
                        UserGroupService.ppolGroup grp = ppolGroups[0];
                        if (grp.id == -1)
                        {
                            MessageBox.Show(grp.errorMessage);
                        }

                        else
                        {
                            this.cbUserGroup.Items.Add("");
                            for (int i = 0; i < ppolGroups.Length; i++)
                            {
                                UserGroupService.ppolGroup group = ppolGroups[i];
                                this.cbUserGroup.Items.Add(group.name);
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Cannot connect to the PlanPlus Online Application, please check if your account information is correct. If you continue to experience problems contact support at http://www.planplusonline.com/support");
            }
        }
Esempio n. 2
0
 /// <remarks/>
 public void getUsersAsync(string arg0, ppolGroup arg1, object userState)
 {
     if ((this.getUsersOperationCompleted == null))
     {
         this.getUsersOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetUsersOperationCompleted);
     }
     this.InvokeAsync("getUsers", new object[] {
         arg0,
         arg1
     }, this.getUsersOperationCompleted, userState);
 }
Esempio n. 3
0
        private void initData()
        {
            try
            {
                UserGroupService.UserGroupAPIService local = new UserGroupService.UserGroupAPIService();
                local.Url = serviceUtil.getPpolURL() + "/cxf/UserGroupAPI";

                ppolGroups = local.getUserGroups(serviceUtil.getPpolAccount(), serviceUtil.getUserName(), serviceUtil.getPassword());
                if (ppolGroups != null)
                {
                    if (ppolGroups.Length > 0)
                    {
                        UserGroupService.ppolGroup grp = ppolGroups[0];
                        if (grp.id == -1)
                        {
                            //     MessageBox.Show(grp.errorMessage);
                        }

                        else
                        {
                            this.cbUserGroup.Items.Add("");
                            for (int i = 0; i < ppolGroups.Length; i++)
                            {
                                UserGroupService.ppolGroup group = ppolGroups[i];
                                this.cbUserGroup.Items.Add(group.name);
                            }

                            ContactService.PsnAPIService local1 = new ContactService.PsnAPIService();
                            local1.Url = serviceUtil.getPpolURL() + "/cxf/PsnAPI";

                            contactLists = local1.getContactList(serviceUtil.getPpolAccount(), serviceUtil.getUserName(), serviceUtil.getPassword());
                            if (contactLists != null)
                            {
                                this.cbContactList.Items.Add("");
                                for (int i = 0; i < contactLists.Length; i++)
                                {
                                    ContactService.mktAudlistEO list = contactLists[i];
                                    this.cbContactList.Items.Add(list.audlistName);
                                }
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ClassFactory.Instance.ConnectionProblem(ex);
            }
        }
Esempio n. 4
0
 /// <remarks/>
 public void getUsersAsync(string arg0, ppolGroup arg1)
 {
     this.getUsersAsync(arg0, arg1, null);
 }
Esempio n. 5
0
        public ppolUser[] getUsers([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string arg0, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] ppolGroup arg1)
        {
            object[] results = this.Invoke("getUsers", new object[] {
                arg0,
                arg1
            });

            return((ppolUser[])(results[0]));
        }
Esempio n. 6
0
 /// <remarks/>
 public void createGroupAsync(string arg0, ppolGroup arg1)
 {
     this.createGroupAsync(arg0, arg1, null);
 }
Esempio n. 7
0
        public bool createGroup([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] string arg0, [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] ppolGroup arg1)
        {
            object[] results = this.Invoke("createGroup", new object[] {
                arg0,
                arg1
            });

            return((bool)(results[0]));
        }