private void InitCodeView() { cdvConFactory.Init(); CmnInitFunction.InitListView(cdvConFactory.GetListView); cdvConFactory.Columns.Add("Factory", 150, HorizontalAlignment.Left); cdvConFactory.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvConFactory.SelectedSubItemIndex = 0; CmnListFunction.ViewFactoryList(cdvConFactory.GetListView, '1', ""); cdvFactory.Init(); CmnInitFunction.InitListView(cdvFactory.GetListView); cdvFactory.Columns.Add("Factory", 150, HorizontalAlignment.Left); cdvFactory.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvFactory.SelectedSubItemIndex = 0; CmnListFunction.ViewFactoryList(cdvFactory.GetListView, '1', ""); cdvConInqGrp.Init(); CmnInitFunction.InitListView(cdvConInqGrp.GetListView); cdvConInqGrp.Columns.Add("Group", 150, HorizontalAlignment.Left); cdvConInqGrp.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvConInqGrp.SelectedSubItemIndex = 0; cdvInqGrp.Init(); CmnInitFunction.InitListView(cdvInqGrp.GetListView); cdvInqGrp.Columns.Add("Group", 150, HorizontalAlignment.Left); cdvInqGrp.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvInqGrp.SelectedSubItemIndex = 0; cdvSelItem.Init(); CmnInitFunction.InitListView(cdvSelItem.GetListView); cdvSelItem.Columns.Add("Item", 150, HorizontalAlignment.Left); cdvSelItem.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvSelItem.SelectedSubItemIndex = 0; cdvSelValue.Init(); CmnInitFunction.InitListView(cdvSelValue.GetListView); cdvSelValue.Columns.Add("Item", 150, HorizontalAlignment.Left); cdvSelValue.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvSelValue.SelectedSubItemIndex = 0; cdvSelGrpItem.Init(); CmnInitFunction.InitListView(cdvSelGrpItem.GetListView); cdvSelGrpItem.Columns.Add("Item", 150, HorizontalAlignment.Left); cdvSelGrpItem.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvSelGrpItem.SelectedSubItemIndex = 0; cdvFilter.Init(); CmnInitFunction.InitListView(cdvFilter.GetListView); cdvFilter.Columns.Add("Item", 150, HorizontalAlignment.Left); cdvFilter.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvFilter.SelectedSubItemIndex = 0; cdvFilterValue.Init(); CmnInitFunction.InitListView(cdvFilterValue.GetListView); cdvFilterValue.Columns.Add("Item", 150, HorizontalAlignment.Left); cdvFilterValue.Columns.Add("Desc", 200, HorizontalAlignment.Left); cdvFilterValue.SelectedSubItemIndex = 0; CmnListFunction.ViewDataList(lisColList, '1', "SYSTEM", GlobalConstant.MP_GCM_FLEXWIP_COL_TBL); }
private void cdvFilterValue_ButtonPress(object sender, EventArgs e) { if (cdvFilter.Text == "OPER") { CmnListFunction.ViewOperList(cdvFilterValue.GetListView, '1', cdvFactory.Text); } else if (cdvFilter.Text == "FLOW") { CmnListFunction.ViewFlowList(cdvFilterValue.GetListView, '1', cdvFactory.Text); } else { CmnListFunction.ViewDataList(cdvFilterValue.GetListView, '1', cdvFactory.Text, cdvFilter.Text); } }
private void cdvInqGrp_ButtonPress(object sender, EventArgs e) { CmnListFunction.ViewDataList(cdvInqGrp.GetListView, '1', cdvFactory.Text, GlobalConstant.MP_GCM_FLEXWIP_GROUP); }