示例#1
0
        /// <summary>
        /// 리스트뷰를 초기화한다.
        /// </summary>
        private void InitListView()
        {
            this.selectTermListView.GridLineStyle      = NCasListViewGridLine.GridBoth;
            this.selectTermListView.GridDashStyle      = DashStyle.Dot;
            this.selectTermListView.ScrollType         = NCasListViewScrollType.ScrollBoth;
            this.selectTermListView.ColumnHeight       = 27;
            this.selectTermListView.ItemHeight         = 25;
            this.selectTermListView.HideColumnCheckBox = true;

            NCasColumnHeader col = new NCasColumnHeader();

            col.Text      = "이름";
            col.Width     = 180;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.selectTermListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 115;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.selectTermListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "소속";
            col.Width     = 55;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.selectTermListView.Columns.Add(col);
        }
示例#2
0
        /// <summary>
        /// 그룹명 선택 콤보박스 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void groupSelectComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                NCasColumnHeader nCasColumnHeader = this.groupMemberListView.Columns[0];
                nCasColumnHeader.ColumnHide = false;

                for (int i = 0; i < this.groupMemberListView.Items.Count; i++)
                {
                    this.groupMemberListView.Items[i].Checked = false;
                }

                GroupContent tmpContent = new GroupContent();
                GroupInfo    groupInfo  = this.groupSelectComboBox.SelectedItem as GroupInfo;

                foreach (GroupContent content in GroupContentMng.LstGroupContent)
                {
                    if (content.Title == groupInfo.ButtonID) //화면에서 선택한 그룹의 ID에 해당되는 정보가 GroupContentMng에 있으면..
                    {
                        tmpContent = content;
                        break;
                    }
                }

                foreach (GroupContent groupContent in this.lstGroupContent)
                {
                    if (groupContent.Title == tmpContent.Title)
                    {
                        groupContent.LstGroupData = tmpContent.LstGroupData;
                        break;
                    }
                }

                if (tmpContent.LstGroupData.Count > 0)
                {
                    foreach (GroupData groupData in tmpContent.LstGroupData)
                    {
                        NCasListViewItem[] lvi = this.groupMemberListView.Items.Find(groupData.IpAddr, false);

                        foreach (NCasListViewItem eachLvi in lvi)
                        {
                            eachLvi.Checked = true;
                        }
                    }
                }

                this.groupMemberListView.Refresh();
            }
            catch (Exception ex)
            {
                MessageBox.Show("그룹정보를 다시 설정하세요.", "그룹정보 설정", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
示例#3
0
        /// <summary>
        /// 리스트뷰를 초기화한다.
        /// </summary>
        private void InitListView()
        {
            this.termListView.GridLineStyle      = NCasListViewGridLine.GridBoth;
            this.termListView.GridDashStyle      = DashStyle.Dot;
            this.termListView.ScrollType         = NCasListViewScrollType.ScrollBoth;
            this.termListView.Font               = new Font(WmaPAlmScreenRsc.FontName, 10.0f);
            this.termListView.ColumnHeight       = 27;
            this.termListView.ItemHeight         = 25;
            this.termListView.HideColumnCheckBox = false;

            NCasColumnHeader col = new NCasColumnHeader();

            col.Text       = string.Empty;
            col.Width      = 30;
            col.SortType   = NCasListViewSortType.SortChecked;
            col.TextAlign  = HorizontalAlignment.Center;
            col.ColumnLock = true;
            col.ColumnHide = false;
            col.CheckBoxes = true;
            this.termListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "이름";
            col.Width     = 135;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.termListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 95;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.termListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "소속";
            col.Width     = 85;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.termListView.Columns.Add(col);
        }
示例#4
0
        /// <summary>
        /// 기초데이터 초기화
        /// </summary>
        private void Init()
        {
            #region ListView 초기화
            this.groupListView.GridLineStyle      = NCasListViewGridLine.GridBoth;
            this.groupListView.GridDashStyle      = DashStyle.Dot;
            this.groupListView.ScrollType         = NCasListViewScrollType.ScrollBoth;
            this.groupListView.Font               = new Font(NCasPDAlmScreenRsc.FontName, 10.0f);
            this.groupListView.ColumnHeight       = 29;
            this.groupListView.ItemHeight         = 26;
            this.groupListView.HideColumnCheckBox = false;

            NCasColumnHeader col = new NCasColumnHeader();
            col.Text       = string.Empty;
            col.Width      = 30;
            col.SortType   = NCasListViewSortType.SortChecked;
            col.TextAlign  = HorizontalAlignment.Center;
            col.ColumnLock = true;
            col.ColumnHide = false;
            col.CheckBoxes = true;
            this.groupListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "이름";
            col.Width     = 140;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.groupListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 90;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.groupListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "소속";
            col.Width     = 60;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.groupListView.Columns.Add(col);
            #endregion

            #region ListView Items 셋팅
            if (this.isTerm)
            {
                foreach (TermInfo termInfo in this.provInfo.LstTerms)
                {
                    if (termInfo.UseFlag != NCasDefineUseStatus.Use)
                    {
                        continue;
                    }

                    NCasListViewItem lvi = new NCasListViewItem();
                    lvi.Name = termInfo.IpAddrToSring;

                    NCasListViewItem.NCasListViewSubItem sub = new NCasListViewItem.NCasListViewSubItem();
                    sub.Text      = termInfo.Name;
                    sub.TextAlign = HorizontalAlignment.Left;
                    lvi.SubItems.Add(sub);

                    sub           = new NCasListViewItem.NCasListViewSubItem();
                    sub.Text      = termInfo.IpAddrToSring;
                    sub.TextAlign = HorizontalAlignment.Center;
                    lvi.SubItems.Add(sub);

                    sub           = new NCasListViewItem.NCasListViewSubItem();
                    sub.Text      = termInfo.DistInfo.Name;
                    sub.TextAlign = HorizontalAlignment.Center;
                    lvi.SubItems.Add(sub);

                    this.groupListView.Items.Add(lvi);
                }
            }
            else
            {
                foreach (DistInfo distInfo in this.provInfo.LstDists)
                {
                    NCasListViewItem lvi = new NCasListViewItem();
                    lvi.Name = distInfo.NetIdToString;

                    NCasListViewItem.NCasListViewSubItem sub = new NCasListViewItem.NCasListViewSubItem();
                    sub.Text      = distInfo.Name;
                    sub.TextAlign = HorizontalAlignment.Left;
                    lvi.SubItems.Add(sub);

                    sub           = new NCasListViewItem.NCasListViewSubItem();
                    sub.Text      = distInfo.NetIdToString;
                    sub.TextAlign = HorizontalAlignment.Center;
                    lvi.SubItems.Add(sub);

                    sub           = new NCasListViewItem.NCasListViewSubItem();
                    sub.Text      = this.provInfo.Name;
                    sub.TextAlign = HorizontalAlignment.Center;
                    lvi.SubItems.Add(sub);

                    this.groupListView.Items.Add(lvi);
                }
            }
            #endregion

            #region ListView Checked 셋팅
            switch (this.ncasButton.Name)
            {
            case "termGroupBtn1":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[0].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[0].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn2":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[1].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[1].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn3":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[2].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[2].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn4":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[3].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[3].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn5":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[4].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[4].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn6":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[5].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[5].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn7":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[6].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[6].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn8":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[7].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[7].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn9":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[8].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[8].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "termGroupBtn10":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[9].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[9].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "distGroupBtn1":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[10].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[10].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;

            case "distGroupBtn2":
                this.groupNameTextBox.Text = GroupContentMng.LstGroupContent[11].Title;

                foreach (GroupData eachGroupData in GroupContentMng.LstGroupContent[11].LstGroupData)
                {
                    foreach (NCasListViewItem eachLvi in this.groupListView.Items)
                    {
                        if (eachGroupData.IpAddr == eachLvi.Name)
                        {
                            eachLvi.Checked = true;
                            break;
                        }
                    }
                }
                break;
            }
            #endregion
        }
示例#5
0
        /// <summary>
        /// 발령결과 ListView 초기화
        /// </summary>
        public void InitListView()
        {
            this.orderResultListView.GridLineStyle = NCasListViewGridLine.GridBoth;
            this.orderResultListView.GridDashStyle = DashStyle.Dot;
            this.orderResultListView.ScrollType    = NCasListViewScrollType.ScrollBoth;
            this.orderResultListView.Font          = new Font(NCasPDAlmScreenRsc.FontName, 11.0f);
            this.orderResultListView.ColumnHeight  = 32;
            this.orderResultListView.ItemHeight    = 29;

            NCasColumnHeader col = new NCasColumnHeader();

            col.Text       = "...";
            col.Width      = 33;
            col.SortType   = NCasListViewSortType.SortIcon;
            col.TextAlign  = HorizontalAlignment.Center;
            col.ColumnLock = true;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "장비명";
            col.Width     = 180;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 150;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "모드";
            col.Width     = 120;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "발령원";
            col.Width     = 150;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "경보종류";
            col.Width     = 150;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "발령매체";
            col.Width     = 150;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "발령시각";
            col.Width     = 200;
            col.SortType  = NCasListViewSortType.SortDateTime;
            col.TextAlign = HorizontalAlignment.Center;
            this.orderResultListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "응답시각";
            col.Width     = 200;
            col.SortType  = NCasListViewSortType.SortDateTime;
            col.TextAlign = HorizontalAlignment.Center;
            this.orderResultListView.Columns.Add(col);
        }
示例#6
0
        /// <summary>
        /// 기초데이터 초기화
        /// </summary>
        private void Init()
        {
            this.groupBtnList = this.orderView.GetGroupButton();
            GroupContent content = null;

            foreach (NCasButton btn in this.groupBtnList)
            {
                NCasKeyData keyData   = btn.Tag as NCasKeyData;
                GroupInfo   groupInfo = new GroupInfo();
                groupInfo.Title    = keyData.Name;
                groupInfo.ButtonID = keyData.ID.ToString();
                this.groupSelectComboBox.Items.Insert(0, groupInfo);

                content       = new GroupContent();
                content.Title = keyData.ID.ToString();
                this.lstGroupContent.Add(content);
            }

            #region ListView 초기화
            this.groupMemberListView.GridLineStyle      = NCasListViewGridLine.GridBoth;
            this.groupMemberListView.GridDashStyle      = DashStyle.Dot;
            this.groupMemberListView.ScrollType         = NCasListViewScrollType.ScrollBoth;
            this.groupMemberListView.Font               = new Font(NCasPAlmScreenRsc.FontName, 11.0f);
            this.groupMemberListView.ColumnHeight       = 32;
            this.groupMemberListView.ItemHeight         = 29;
            this.groupMemberListView.HideColumnCheckBox = true;

            NCasColumnHeader col = new NCasColumnHeader();
            col.Text       = string.Empty;
            col.Width      = 30;
            col.SortType   = NCasListViewSortType.SortChecked;
            col.TextAlign  = HorizontalAlignment.Center;
            col.ColumnLock = true;
            col.ColumnHide = true;
            col.CheckBoxes = true;
            this.groupMemberListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "이름";
            col.Width     = 200;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.groupMemberListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 160;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.groupMemberListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "소속";
            col.Width     = 150;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.groupMemberListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "구분";
            col.Width     = 120;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.groupMemberListView.Columns.Add(col);
            #endregion

            #region ListView Items 셋팅
            foreach (DistInfo distInfo in this.provInfo.LstDists)
            {
                NCasListViewItem lvi = new NCasListViewItem();
                lvi.Name = distInfo.NetIdToString;

                NCasListViewItem.NCasListViewSubItem sub = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = distInfo.Name;
                sub.TextAlign = HorizontalAlignment.Left;
                lvi.SubItems.Add(sub);

                sub           = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = distInfo.NetIdToString;
                sub.TextAlign = HorizontalAlignment.Center;
                lvi.SubItems.Add(sub);

                sub           = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = this.provInfo.Name;
                sub.TextAlign = HorizontalAlignment.Center;
                lvi.SubItems.Add(sub);

                sub           = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = NCASBIZ.NCasUtility.NCasUtilityMng.INCasCommUtility.NCasDefineOrderSource2String(NCasDefineOrderSource.DistCtrlRoom);
                sub.TextAlign = HorizontalAlignment.Center;
                lvi.SubItems.Add(sub);

                this.groupMemberListView.Items.Add(lvi);
            }

            foreach (TermInfo termInfo in this.provInfo.LstTerms)
            {
                if (termInfo.UseFlag != NCasDefineUseStatus.Use)
                {
                    continue;
                }

                NCasListViewItem lvi = new NCasListViewItem();
                lvi.Name = termInfo.IpAddrToSring;

                NCasListViewItem.NCasListViewSubItem sub = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = termInfo.Name;
                sub.TextAlign = HorizontalAlignment.Left;
                lvi.SubItems.Add(sub);

                sub           = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = termInfo.IpAddrToSring;
                sub.TextAlign = HorizontalAlignment.Center;
                lvi.SubItems.Add(sub);

                sub           = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = termInfo.DistInfo.Name;
                sub.TextAlign = HorizontalAlignment.Center;
                lvi.SubItems.Add(sub);

                sub           = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = "단말";
                sub.TextAlign = HorizontalAlignment.Center;
                lvi.SubItems.Add(sub);

                this.groupMemberListView.Items.Add(lvi);
            }
            #endregion
        }
示例#7
0
        /// <summary>
        /// 장비감시 ListView 초기화
        /// </summary>
        public void InitListView()
        {
            this.serverStatusListView.GridLineStyle = NCasListViewGridLine.GridBoth;
            this.serverStatusListView.GridDashStyle = DashStyle.Dot;
            this.serverStatusListView.ScrollType    = NCasListViewScrollType.ScrollBoth;
            this.serverStatusListView.Font          = new Font(NCasPAlmScreenRsc.FontName, 11.0f);
            this.serverStatusListView.ColumnHeight  = 35;
            this.serverStatusListView.ItemHeight    = 33;

            NCasColumnHeader col = new NCasColumnHeader();

            col.Text       = "...";
            col.Width      = 35;
            col.SortType   = NCasListViewSortType.SortIcon;
            col.TextAlign  = HorizontalAlignment.Center;
            col.ColumnLock = true;
            this.serverStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "장비명";
            col.Width     = 300;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.serverStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 170;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.serverStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "상태";
            col.Width     = 130;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.serverStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "발생시각";
            col.Width     = 250;
            col.SortType  = NCasListViewSortType.SortDateTime;
            col.TextAlign = HorizontalAlignment.Center;
            this.serverStatusListView.Columns.Add(col);

            this.termStatusListView.GridLineStyle = NCasListViewGridLine.GridBoth;
            this.termStatusListView.GridDashStyle = DashStyle.Dot;
            this.termStatusListView.ScrollType    = NCasListViewScrollType.ScrollBoth;
            this.termStatusListView.Font          = new Font(NCasPAlmScreenRsc.FontName, 11.0f);
            this.termStatusListView.ColumnHeight  = 35;
            this.termStatusListView.ItemHeight    = 33;

            col            = new NCasColumnHeader();
            col.Text       = "...";
            col.Width      = 35;
            col.SortType   = NCasListViewSortType.SortIcon;
            col.TextAlign  = HorizontalAlignment.Center;
            col.ColumnLock = true;
            this.termStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "장비명";
            col.Width     = 300;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.termStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 170;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.termStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "상태";
            col.Width     = 130;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.termStatusListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "발생시각";
            col.Width     = 250;
            col.SortType  = NCasListViewSortType.SortDateTime;
            col.TextAlign = HorizontalAlignment.Center;
            this.termStatusListView.Columns.Add(col);
        }
示例#8
0
        /// <summary>
        /// 기초데이터 초기화
        /// </summary>
        private void Init()
        {
            #region 조위ListView 초기화
            this.heightTermListView.GridLineStyle      = NCasListViewGridLine.GridBoth;
            this.heightTermListView.GridDashStyle      = DashStyle.Dot;
            this.heightTermListView.ScrollType         = NCasListViewScrollType.ScrollBoth;
            this.heightTermListView.Font               = new Font(WmaPAlmScreenRsc.FontName, 10.0f);
            this.heightTermListView.ColumnHeight       = 29;
            this.heightTermListView.ItemHeight         = 26;
            this.heightTermListView.HideColumnCheckBox = false;

            NCasColumnHeader col = new NCasColumnHeader();
            col.Text       = string.Empty;
            col.Width      = 30;
            col.SortType   = NCasListViewSortType.SortChecked;
            col.TextAlign  = HorizontalAlignment.Center;
            col.ColumnLock = true;
            col.ColumnHide = false;
            col.CheckBoxes = true;
            this.heightTermListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "이름";
            col.Width     = 180;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Left;
            this.heightTermListView.Columns.Add(col);

            col           = new NCasColumnHeader();
            col.Text      = "IP";
            col.Width     = 90;
            col.SortType  = NCasListViewSortType.SortText;
            col.TextAlign = HorizontalAlignment.Center;
            this.heightTermListView.Columns.Add(col);
            #endregion

            #region 조위ListView Items 셋팅
            foreach (TermInfo termInfo in this.provInfo.LstTerms)
            {
                if (termInfo.UseFlag != NCasDefineUseStatus.Use)
                {
                    continue;
                }

                if (termInfo.TermFlag != NCasDefineTermKind.TermMutil)
                {
                    continue;
                }

                NCasListViewItem lvi = new NCasListViewItem();
                lvi.Name = termInfo.IpAddrToSring;

                NCasListViewItem.NCasListViewSubItem sub = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = termInfo.Name;
                sub.TextAlign = HorizontalAlignment.Left;
                lvi.SubItems.Add(sub);

                sub           = new NCasListViewItem.NCasListViewSubItem();
                sub.Text      = termInfo.IpAddrToSring;
                sub.TextAlign = HorizontalAlignment.Center;
                lvi.SubItems.Add(sub);

                this.heightTermListView.Items.Add(lvi);
            }
            #endregion

            #region 조위설정 불러오기
            this.heightUseCheckBox.Checked     = HeightOptionMng.LstHeightOptionData[0].UseTime;
            this.firstHeightTimeNumeric.Value  = HeightOptionMng.LstHeightOptionData[0].FirstTime;
            this.secondHeightTimeNumeric.Value = HeightOptionMng.LstHeightOptionData[0].SecondTime;
            this.heightAutoCheckBox.Checked    = HeightOptionMng.LstHeightOptionData[0].UseAuto;
            this.heightValueNumeric.Value      = HeightOptionMng.LstHeightOptionData[0].MaxValue;
            this.heightValueNumeric2.Value     = HeightOptionMng.LstHeightOptionData[0].MaxValue2;
            this.heightValueNumeric3.Value     = HeightOptionMng.LstHeightOptionData[0].MaxValue3;
            this.heightValueNumeric4.Value     = HeightOptionMng.LstHeightOptionData[0].MaxValue4;
            this.heightTestOrderCB.Checked     = HeightOptionMng.LstHeightOptionData[0].TestOrder;

            if (HeightOptionMng.LstHeightOptionData[0].Msg.MsgNum != string.Empty)
            {
                this.heightStoMsgSelLabel.Text = HeightOptionMng.LstHeightOptionData[0].Msg.Title;
                this.heightSelectMsg           = HeightOptionMng.LstHeightOptionData[0].Msg;
            }
            else
            {
                this.heightStoMsgSelLabel.Text = "선택 없음";
            }

            if (HeightOptionMng.LstHeightOptionData[0].Msg2.MsgNum != string.Empty)
            {
                this.heightStoMsgSelLabel2.Text = HeightOptionMng.LstHeightOptionData[0].Msg2.Title;
                this.heightSelectMsg2           = HeightOptionMng.LstHeightOptionData[0].Msg2;
            }
            else
            {
                this.heightStoMsgSelLabel2.Text = "선택 없음";
            }

            if (HeightOptionMng.LstHeightOptionData[0].Msg3.MsgNum != string.Empty)
            {
                this.heightStoMsgSelLabel3.Text = HeightOptionMng.LstHeightOptionData[0].Msg3.Title;
                this.heightSelectMsg3           = HeightOptionMng.LstHeightOptionData[0].Msg3;
            }
            else
            {
                this.heightStoMsgSelLabel3.Text = "선택 없음";
            }

            if (HeightOptionMng.LstHeightOptionData[0].Msg4.MsgNum != string.Empty)
            {
                this.heightStoMsgSelLabel4.Text = HeightOptionMng.LstHeightOptionData[0].Msg4.Title;
                this.heightSelectMsg4           = HeightOptionMng.LstHeightOptionData[0].Msg4;
            }
            else
            {
                this.heightStoMsgSelLabel4.Text = "선택 없음";
            }

            foreach (HeightPointContent eachContent in HeightPointContentMng.LstHeightPointContent)
            {
                this.heightSelectComboBox.Items.Add(eachContent.Title);
            }
            #endregion

            #region 특보설정 불러오기
            this.weatherUseCheckBox.Checked     = WeatherOptionMng.LstWeatherOptionData[0].UseTime;
            this.firstWeatherTimeNumeric.Value  = WeatherOptionMng.LstWeatherOptionData[0].FirstTime;
            this.secondWeatherTimeNumeric.Value = WeatherOptionMng.LstWeatherOptionData[0].SecondTime;
            this.weatherAutoCheckBox.Checked    = WeatherOptionMng.LstWeatherOptionData[0].UseAuto;
            this.weatherTestOrderCB.Checked     = WeatherOptionMng.LstWeatherOptionData[0].TestOrder;

            foreach (WeatherKindData eachWeatherKind in WeatherOptionMng.LstWeatherOptionData[0].WeatherKindMsg)
            {
                if (eachWeatherKind.StoMsg.MsgNum == string.Empty)
                {
                    continue;
                }

                foreach (Control eachControl in this.weatherSelGroupBox.Controls)
                {
                    CheckBox eachCb = eachControl as CheckBox;

                    if (eachCb.Tag.ToString() != eachWeatherKind.EWeatherKind.ToString())
                    {
                        continue;
                    }

                    eachCb.Text = this.GetWeatherKindName(eachWeatherKind.EWeatherKind) + " - "
                                  + eachWeatherKind.StoMsg.MsgNum + " " + eachWeatherKind.StoMsg.Title;
                }
            }
            #endregion
        }