Exemple #1
0
        private void query_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this.groupBox1);

                this.MultiPoint_queryConfig   = new MultiPointCDRQueryConfigEx();
                this.PointToPoint_queryConfig = new PointToPointCDRQueryConfigEx();
                //页面配置
                PageParamEx pageParam = new PageParamEx();
                pageParam.numberPerPage = Convert.ToInt32(this.tb_numberPerPage.Text.ToString());
                pageParam.currentPage   = Convert.ToInt32(this.tb_currentPage.Text.ToString());
                //PointToPoint查询
                this.PointToPoint_queryConfig.beginTime = Convert.ToDateTime(this.tb_beginTime.Text.ToString());
                this.PointToPoint_queryConfig.duration  = this.tb_Duration.Text.ToString();
                this.PointToPoint_queryConfig.pageParam = pageParam;
                //MultiPoint查询
                this.MultiPoint_queryConfig.beginTime = Convert.ToDateTime(this.tb_beginTime.Text.ToString());
                this.MultiPoint_queryConfig.duration  = this.tb_Duration.Text.ToString();
                this.MultiPoint_queryConfig.pageParam = pageParam;
                this.MultiPoint_queryConfig.siteUri   = this.tb_siteURI.Text.ToString();

                this.DialogResult = DialogResult.Yes;
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
Exemple #2
0
 private void OK_Button_Click(object sender, EventArgs e)
 {
     try
     {
         HelpHandler help = new HelpHandler();
         help.TextBoxEmptyChecked(this);
         this.name         = this.userName.Text.ToString();
         this.passWord     = this.password.Text.ToString();
         this.DialogResult = DialogResult.Yes;
     }
     catch (Exception error)
     {
         MessageBox.Show(error.ToString());
     }
 }
Exemple #3
0
        private void OK_Delete_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this.panel1);

                scheduleConf.confId = this.tb_confID_del.Text.ToString();

                this.DialogResult = DialogResult.Yes;
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
Exemple #4
0
        private void OK_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this);

                this.confID   = this.tb_confID.Text.ToString();
                this.site_URI = this.tb_siteURI.ToString();

                this.DialogResult = DialogResult.Yes;
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
Exemple #5
0
        private void set_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this.groupBox1);

                this.confid          = this.textBox1.Text.ToString();
                this.siteURI         = this.textBox2.Text.ToString();
                this.isBroadcastSite = Convert.ToInt32(this.comboBox1.Text.ToString());

                this.DialogResult = DialogResult.Yes;
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
Exemple #6
0
        private void OK_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this.groupBox1);
                site           = new SiteInfoEx();
                this.site.name = this.tb_site_Name.Text.ToString();
                this.site.uri  = this.tb_site_URI.Text.ToString();
                this.site.type = Convert.ToInt32(this.tb_site_Type.Text.ToString());
                this.conf_ID   = this.tb_conferenceID.Text.ToString();

                this.DialogResult = DialogResult.Yes;
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
Exemple #7
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());
            }
        }
Exemple #8
0
        private void OK_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this.groupBox1);

                cameraConrtrol           = new CameraControlEx();
                cameraConrtrol.camState  = Convert.ToInt32(this.comboBox1.Text.ToString());
                cameraConrtrol.camAction = Convert.ToInt32(this.textBox1.Text.ToString());
                cameraConrtrol.camPos    = Convert.ToInt32(this.textBox2.Text.ToString());
                cameraConrtrol.camSrc    = Convert.ToInt32(this.textBox3.Text.ToString());

                this.siteURI = this.textBox4.Text.ToString();

                this.DialogResult = DialogResult.Yes;
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
Exemple #9
0
        private void OK_Button_Click(object sender, EventArgs e)
        {
            try
            {
                HelpHandler help = new HelpHandler();
                help.TextBoxEmptyChecked(this.groupBox1);

                #region 普通会议
                scheduleConf.name      = this.tb_Name.Text.ToString();
                scheduleConf.beginTime = Convert.ToDateTime(this.tb_BeginTime.Text.ToString());
                scheduleConf.duration  = this.tb_Duration.Text.ToString();
                scheduleConf.rate      = this.tb_Rate.Text.ToString();
                //新建会场
                SiteInfoEx siteInfo1 = new SiteInfoEx();
                //会场URI为01033001
                siteInfo1.uri = this.tb_Site1_URI.Text.ToString();
                //会场速率为1920K
                siteInfo1.rate = "1920K";
                //会场名称为site1
                siteInfo1.name = this.tb_Site1_Name.Text.ToString();
                //呼叫方式为MCU主动呼叫会场
                siteInfo1.dialingMode = 0;
                //会场来源为内部会场
                siteInfo1.from = 0;
                //会场类型为H.323会场类型
                siteInfo1.type = 4;
                //会场视频格式为4CIF
                siteInfo1.videoFormat = 0;
                //会场视频协议为H.263
                siteInfo1.videoProtocol     = 0;
                siteInfo1.isLockVideoSource = 1;
                siteInfo1.participantType   = 2;

                SiteInfoEx siteInfo2 = new SiteInfoEx();
                siteInfo2.uri               = this.tb_Site2_URI.Text.ToString();
                siteInfo2.name              = this.tb_Site2_Name.Text.ToString();
                siteInfo2.rate              = "1920K";
                siteInfo2.dialingMode       = 0;
                siteInfo2.from              = 0;
                siteInfo2.type              = 4;
                siteInfo2.videoFormat       = 0;
                siteInfo2.videoProtocol     = 0;
                siteInfo2.isLockVideoSource = 1;
                siteInfo2.participantType   = 2;
                //向会议中添加会场
                SiteInfoEx[] sites = { siteInfo1, siteInfo2 };
                scheduleConf.sites            = sites;
                scheduleConf.isRecording      = 0;
                scheduleConf.cpResouce        = Convert.ToInt32(this.tb_cpResouce_Add.Text.ToString());
                scheduleConf.password         = this.tb_PWD_Add.Text.ToString();
                scheduleConf.chairmanPassword = this.tb_chairmanPWD_Add.Text.ToString();
                scheduleConf.mainSiteUri      = this.tb_mainSite_Add.Text.ToString();
                //会议通知
                ConferenceNotice conferenceNotice = new ConferenceNotice();
                conferenceNotice.content      = "123";
                conferenceNotice.email        = "*****@*****.**";
                scheduleConf.conferenceNotice = conferenceNotice;
                #endregion

                #region 周期会议
                scheduleCurrenceConf.name      = this.tb_Name.Text.ToString();
                scheduleCurrenceConf.beginTime = Convert.ToDateTime(this.tb_BeginTime.Text.ToString());
                scheduleCurrenceConf.duration  = this.tb_Duration.Text.ToString();
                scheduleCurrenceConf.rate      = this.tb_Rate.Text.ToString();

                scheduleCurrenceConf.sites            = sites;
                scheduleCurrenceConf.isRecording      = 0;
                scheduleCurrenceConf.cpResouce        = Convert.ToInt32(this.tb_cpResouce_Add.Text.ToString());
                scheduleCurrenceConf.password         = this.tb_PWD_Add.Text.ToString();
                scheduleCurrenceConf.chairmanPassword = this.tb_chairmanPWD_Add.Text.ToString();
                scheduleCurrenceConf.mainSiteUri      = this.tb_mainSite_Add.Text.ToString();

                scheduleCurrenceConf.frequency = Convert.ToInt32(this.tb_frequency_Add.Text.ToString());
                scheduleCurrenceConf.interval  = Convert.ToInt32(this.tb_Interval_Add.Text.ToString());
                scheduleCurrenceConf.count     = Convert.ToInt32(this.tb_Count_Add.Text.ToString());
                scheduleCurrenceConf.timeZone  = this.tb_timeZone_Add.Text.ToString();

                #endregion

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