private void loadOwnerData() { try { UserGroupService.UserGroupAPIService local = new UserGroupService.UserGroupAPIService(); local.Url = serviceUtil.getPpolURL() + "/cxf/UserGroupAPI"; fwkUsers = local.getUsersByGroup(serviceUtil.getPpolAccount(), serviceUtil.getUserName(), serviceUtil.getPassword(), -1); if (fwkUsers != null) { this.cbOwner.Items.Add(""); for (int i = 0; i < fwkUsers.Length; i++) { UserGroupService.fwkUserEO user = fwkUsers[i]; if (user.userName == serviceUtil.getUserName()) { ownerId = i + 1; } this.cbOwner.Items.Add(user.displayName); } this.cbOwner.SelectedIndex = ownerId; } } catch (Exception ex) { ClassFactory.Instance.ConnectionProblem(ex); } }
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"); } }
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); } }
private void loadGroupUsers(int userGroupId) { try { try { this.cbContactList.SelectedIndex = 0; this.txtSrchUser.Text = ""; this.txtSrcContact.Text = ""; } catch (Exception e1) { } this.listType = 1; UserGroupService.UserGroupAPIService local = new UserGroupService.UserGroupAPIService(); local.Url = serviceUtil.getPpolURL() + "/cxf/UserGroupAPI"; fwkUsers = local.getUsersByGroup(serviceUtil.getPpolAccount(), serviceUtil.getUserName(), serviceUtil.getPassword(), userGroupId); this.grdUsers.Rows.Clear(); if (fwkUsers != null) { for (int i = 0; i < fwkUsers.Length; i++) { UserGroupService.fwkUserEO fwkUser = fwkUsers[i]; this.grdUsers.Rows.Add(); this.grdUsers.Rows[i].Cells[0].Value = false; this.grdUsers.Rows[i].Cells[1].Value = fwkUser.displayName; this.grdUsers.Rows[i].Cells[2].Value = fwkUser.emailAddress; } } } catch (Exception ex) { ClassFactory.Instance.ConnectionProblem(ex); } }