コード例 #1
0
        // query scheduled conferences list
        private void btn_queryConferenceList_Click(object sender, EventArgs e)
        {
            try
            {
                QueryConfigEx queryConfigEx = new QueryConfigEx();

                //对查询结果按照会场名升序方式进行排序
                List <SortItemsEx> sortItemExs = new List <SortItemsEx>();
                SortItemsEx        sortItemEx  = new SortItemsEx();
                sortItemEx.sort      = 0;
                sortItemEx.itemIndex = 0;
                sortItemExs.Add(sortItemEx);

                //获取满足会场名包含vct2条件的会场
                List <FiltersBaseEx> filtersExs = new List <FiltersBaseEx>();
                StringFilterEx       filtersEx  = new StringFilterEx();
                filtersEx.columnIndex = 1;
                filtersEx.value       = "";
                filtersExs.Add(filtersEx);

                //每页5个,获取第一页
                PageParamEx pageParamEx = new PageParamEx();
                pageParamEx.numberPerPage = 15;
                pageParamEx.currentPage   = 1;

                queryConfigEx.sortItems = sortItemExs.ToArray <SortItemsEx>();
                queryConfigEx.filters   = filtersExs.ToArray <FiltersBaseEx>();
                queryConfigEx.focusItem = 0;
                queryConfigEx.pageParam = pageParamEx;

                //调用会议服务的queryScheduleConferencesEx方法查询所有的调度会议状态
                //返回TPSDKResponseEx<List<ConferenceStatusEx>>对象
                TPSDKResponseEx <List <ConferenceStatusEx> > result = cmService.queryScheduleConferencesEx(queryConfigEx);

                //更新已调度会议列表
                this.updateConfDataTable();

                if (result.resultCode == 0)
                {
                    foreach (ConferenceStatusEx conferenceStatus in result.result)
                    {
                        this.conferenceTable.Rows.Add(conferenceStatus.id, conferenceStatus.name, conferenceStatus.status);
                    }
                }
                this.ConsoleLog("queryScheduleConferencesEx resultCode = " + result.resultCode.ToString());
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
コード例 #2
0
        /// <summary>
        /// 查询Ad hoc会议模板列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_queryAdhocConfTemplateList_Click(object sender, EventArgs e)
        {
            try
            {
                this.queryConfigEx = new QueryConfigEx();
                //对查询结果按照会场名升序方式进行排序
                List <SortItemsEx> sortItemExs = new List <SortItemsEx>();
                SortItemsEx        sortItemEx  = new SortItemsEx();
                sortItemEx.sort      = Convert.ToInt32(this.tb_Sort.Text.ToString());
                sortItemEx.itemIndex = Convert.ToInt32(this.tb_SortIndex.Text.ToString());
                sortItemExs.Add(sortItemEx);
                //获取满足会场名包含vct2条件的会场
                List <FiltersBaseEx> filtersExs = new List <FiltersBaseEx>();
                StringFilterEx       filtersEx  = new StringFilterEx();
                filtersEx.columnIndex = Convert.ToInt32(this.tb_columnIndex.Text.ToString());
                filtersEx.value       = this.tb_Value.Text.ToString();
                filtersExs.Add(filtersEx);
                //每页5个,获取第一页
                PageParamEx pageParamEx = new PageParamEx();
                pageParamEx.numberPerPage = Convert.ToInt32(this.tb_numberPerPage.Text.ToString());
                pageParamEx.currentPage   = Convert.ToInt32(this.tb_currentPage.Text.ToString());;
                //查询条件属性赋值
                queryConfigEx.sortItems = sortItemExs.ToArray <SortItemsEx>();
                queryConfigEx.filters   = filtersExs.ToArray <FiltersBaseEx>();
                queryConfigEx.focusItem = Convert.ToInt32(this.tb_focusItem.Text.ToString());
                queryConfigEx.pageParam = pageParamEx;

                //调用会议服务的queryScheduleConferencesEx方法查询所有的调度会议状态
                //返回TPSDKResponseEx<List<ConferenceStatusEx>>对象
                TPSDKResponseEx <List <AdhocConfTemplateParamEx> > result = cmService.queryAdhocConfTemplateListEx(queryConfigEx);
                this.ConsoleLog("queryAdhocConfTemplateListEx resultCode = " + result.resultCode);
                this.updateAdhocTemplateTable();
                if (result.resultCode == 0)
                {
                    List <AdhocConfTemplateParamEx> list = result.result;
                    for (int i = 0; i < list.Count; i++)
                    {
                        string AdhocTemplateId = list[i].adhocConfTemplateId;
                        string name            = list[i].name;
                        string accessCode      = list[i].accessCode;
                        string duration        = list[i].duration;
                        string password        = list[i].password;
                        this.adhocTemplateTable.Rows.Add(AdhocTemplateId, name, accessCode, duration, password, "0");
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #3
0
        private void query_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this);

                this.queryConfigEx = new QueryConfigEx();

                //对查询结果按照会场名升序方式进行排序
                List <SortItemsEx> sortItemExs = new List <SortItemsEx>();
                SortItemsEx        sortItemEx  = new SortItemsEx();
                sortItemEx.sort      = Convert.ToInt32(this.tb_Sort.Text.ToString());
                sortItemEx.itemIndex = Convert.ToInt32(this.tb_SortIndex.Text.ToString());
                sortItemExs.Add(sortItemEx);

                //获取满足会场名包含vct2条件的会场
                List <FiltersBaseEx> filtersExs = new List <FiltersBaseEx>();
                StringFilterEx       filtersEx  = new StringFilterEx();
                filtersEx.columnIndex = Convert.ToInt32(this.tb_columnIndex.Text.ToString());
                filtersEx.value       = this.tb_Value.Text.ToString();
                filtersExs.Add(filtersEx);

                //每页5个,获取第一页
                PageParamEx pageParamEx = new PageParamEx();
                pageParamEx.numberPerPage = Convert.ToInt32(this.tb_numberPerPage.Text.ToString());
                pageParamEx.currentPage   = Convert.ToInt32(this.tb_currentPage.Text.ToString());;

                queryConfigEx.sortItems = sortItemExs.ToArray <SortItemsEx>();
                queryConfigEx.filters   = filtersExs.ToArray <FiltersBaseEx>();
                queryConfigEx.focusItem = Convert.ToInt32(this.tb_focusItem.Text.ToString());
                queryConfigEx.pageParam = pageParamEx;

                this.DialogResult = DialogResult.Yes;
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }