示例#1
0
 private void LoadData(eHelpType type)
 {
     try
     {
         this._dt = vmMas.GetConditionReportWPLDialog();
         this.gvDetail.DataSource = this._dt;
     }
     catch (Exception ex)
     {
         rMessageBox.ShowException(this, ex);
     }
 }
示例#2
0
        public HelpFillDataDialog(eHelpType type, string separate = ",")
        {
            InitializeComponent();
            this._separate = separate;

            this.gvDetail.SetOISStyle(DataGridViewEditMode.EditOnEnter);
            this.gvDetail.MappingEnum(typeof(eCol));

            this.gvDetail.Columns[(int)eCol.IS_SELECT].ReadOnly  = false;
            this.gvDetail.Columns[(int)eCol.CODE].ReadOnly       = true;
            this.gvDetail.Columns[(int)eCol.DATA_VALUE].ReadOnly = true;

            this.LoadData(type);
        }