Beispiel #1
0
        private void Frm_TechniqueStateUpdate_Load(object sender, EventArgs e)
        {
            controller = new TechniqueController();
            controller.CurrentObjectID = TechniqueID;
            controller.LoadEntry();

            tv_MissionName.Text = controller.Entry.Name;
            tv_State.Text       = controller.Entry.Status;

            gridHelper = new GridControlHelper(this.gridView1, this.gridControl1);

            adapter = new TB_TechniqueMissionStateAdapter();
            builder = new TB_TechniqueMissionStateBuilder();
            adapter.Initial(builder);
            adapter.NotifyfreshDataTable(new TechniqueMissionController().FindMissionByTechniqueID(controller.CurrentObjectID));

            gridHelper.GridControl.DataSource = adapter.ResultTable;
            gridHelper.SetAllColumnEditable(false);
            gridHelper.SetAllColumnVisible(false);
            gridHelper.SetColunmOption(builder.Cal_IsFinish, false, true);
            gridHelper.SetColunmOption(builder.FinishDate, false, true);
            gridHelper.SetColunmOption(builder.CreateDate, false, true);
            gridHelper.SetColunmOption(builder.Name, false, true);
            gridHelper.Group(builder.Cal_IsFinish);
            gridHelper.GridView.ExpandAllGroups();
            gridHelper.GridView.GroupFormat = "{1}";
        }
Beispiel #2
0
        private void cmb_Technique_SelectedIndexChanged(object sender, EventArgs e)
        {
            string techniqueID = (cmb_Technique.SelectedItem as ComboxItem).Tag;

            adapter_Mission.NotifyfreshDataTable(new TechniqueMissionController().FindMissionByTechniqueID(techniqueID));
            gridHelper_Mission.GridControl.DataSource = adapter_Mission.ResultTable;
            gridHelper_Mission.SetAllColumnVisible(false);
            gridHelper_Mission.SetColunmOption(builder_Mission.Name, false, true);
            gridHelper_Mission.SetColunmOption(builder_Mission.Cal_IsFinish, false, true);
            gridHelper_Mission.Group(builder_Mission.Cal_IsFinish);
            gridHelper_Mission.GridView.ExpandAllGroups();
            gridHelper_Mission.GridView.GroupFormat = "{1}";
        }