public SelectLdapPolicyForm(long[] id)
        {
            InitializeComponent();
            userId = id;

            // 设置缺省查询条件
            AcmSyncPolicyQueryParam queryParam = new AcmSyncPolicyQueryParam();
            // 调用查询接口
            RetAcmSyncPolicyInfoList resultList = accessUserService.querySyncPolicyInfoList(queryParam);
            if (resultList.errorCode == 0)
            {
                if (resultList.retAcmSyncPolicyInfoList != null)
                {
                    foreach (RetAcmSyncPolicyInfo policyInfo in resultList.retAcmSyncPolicyInfoList)
                    {
                        this.listBox1.Items.Add(new CombItem(policyInfo.policyName, policyInfo.policyId.Value));

                    }
                }

            }
            else
            {
                MessageBox.Show("查询同步策略列表失败,失败原因为:" + resultList.errorMsg);
            }

            //this.buttonOK.DialogResult = DialogResult.OK;
            this.buttonCancel.DialogResult = DialogResult.Cancel;
        }
        public LdapConfigListForm(UamWebService.MainForm parent)
        {
            InitializeComponent();
            this.MdiParent = parent;

            DataGridViewRowCollection rows = this.dataGridView1.Rows;

            // 设置缺省查询条件
            AcmSyncPolicyQueryParam queryParam = new AcmSyncPolicyQueryParam();
            // 调用查询接口
            RetAcmSyncPolicyInfoList resultList = accessUserService.querySyncPolicyInfoList(queryParam);
            if (resultList.errorCode == 0)
            {
                if (resultList.retAcmSyncPolicyInfoList != null)
                {
                    foreach (RetAcmSyncPolicyInfo policyInfo in resultList.retAcmSyncPolicyInfoList)
                    {
                        String[] row = new String[this.dataGridView1.ColumnCount];
                        row[0] = policyInfo.policyId.Value.ToString();
                        row[1] = policyInfo.policyName;
                        row[2] = policyInfo.serverId.Value.ToString();
                        row[3] = policyInfo.serverName;
                        row[4] = policyInfo.syncPolicyId.Value.ToString();
                        row[5] = policyInfo.userGroupId.Value.ToString();
                        if (policyInfo.configStatus.Value == 1)
                        {
                            row[6] = "有效";
                        }
                        else
                        {
                            row[6] = "无效";
                        }
                        if (policyInfo.autoSync.Value)
                        {
                            row[7] = "是";
                        }
                        else
                        {
                            row[7] = "否";
                        }
                        rows.Add(row);

                    }
                }

            }
            else
            {
                MessageBox.Show("查询同步策略列表失败,失败原因为:" + resultList.errorMsg);
            }

        }
Ejemplo n.º 3
0
 /// <remarks/>
 public void querySyncPolicyInfoListAsync(AcmSyncPolicyQueryParam param0, object userState) {
     if ((this.querySyncPolicyInfoListOperationCompleted == null)) {
         this.querySyncPolicyInfoListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnquerySyncPolicyInfoListOperationCompleted);
     }
     this.InvokeAsync("querySyncPolicyInfoList", new object[] {
                 param0}, this.querySyncPolicyInfoListOperationCompleted, userState);
 }
Ejemplo n.º 4
0
 /// <remarks/>
 public void querySyncPolicyInfoListAsync(AcmSyncPolicyQueryParam param0) {
     this.querySyncPolicyInfoListAsync(param0, null);
 }