コード例 #1
0
ファイル: frmDatabaseSet.cs プロジェクト: wuhuayun/JieLi_Cord
 /// <summary>
 /// 保存基础资料名称
 /// </summary>
 private void DoViewContentClass(IButtonInfo sender)
 {
     AssertFocusedRowClass(); //检查有无记录.
     _BLL.CreateDataBinderClass(_ClassView.GetDataRow(_ClassView.FocusedRowHandle));
     base.DoViewContent(sender);
     DoBindingSummaryClassEditor(_BLL.ClassDataBinder); //绑定数据输入控件
     ShowDetailPage(false);                             //用户点击ViewContent按钮可以显示Summary页
 }
コード例 #2
0
        void gridProfileClass_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            DataRow dr = _ClassView.GetDataRow(_ClassView.FocusedRowHandle);

            txtDataType.EditValue = dr[tb_t_CommDataDictType.__KeyName];
            BindGvprofile(dr[tb_t_CommDataDictType.__KeyName].ToString());
        }
コード例 #3
0
 /// <summary>
 ///获取当前光标所在的资料行.
 /// </summary>
 protected DataRow GetFocusedRow()
 {
     if (_SummaryView.FocusedRowHandle < 0)
     {
         return(null);
     }
     else
     {
         if (_SummaryView.DataSource is DataTable)
         {
             return(_SummaryView.GetDataRow(_SummaryView.FocusedRowHandle));
         }
         else
         {
             return(null);
         }
     }
 }
コード例 #4
0
        //初始化窗体
        protected override void InitializeForm()
        {
            _DetailGroupControl = pnlDetail;
            _SummaryView        = new DevGridView(gvprofile);

            _BLL = new bllSystemProfile();
            _BLL.GetSystemProfile();
            gcProfileClass.DataSource = _BLL._SysClass;
            gcprofile.DataSource      = _BLL.SummaryTable;
            _ClassView = new DevGridView(gridProfileClass);
            //绑定从表
            DataRow dr = _ClassView.GetDataRow(_ClassView.FocusedRowHandle);

            BindGvprofile(dr[tb_sys_SystemProfile.FCategory].ToString());
            gvprofile.Columns[2].OptionsColumn.AllowEdit = false;

            tpSummary.PageVisible      = true;
            tpDetail.PageVisible       = false;
            tcBusiness.ShowTabHeader   = DefaultBoolean.False;
            tcBusiness.SelectedTabPage = tpSummary;

            base.InitializeForm();
        }
コード例 #5
0
        //初始化窗体
        protected override void InitializeForm()
        {
            _DetailGroupControl = pnlDetail;
            _SummaryView = new DevGridView(gvprofile);

            _BLL = new bllSystemProfile();
            _BLL.GetSystemProfile();
            gcProfileClass.DataSource = _BLL._SysClass;
            gcprofile.DataSource = _BLL.SummaryTable;
            _ClassView = new DevGridView(gridProfileClass);
            //绑定从表
            DataRow dr = _ClassView.GetDataRow(_ClassView.FocusedRowHandle);
            BindGvprofile(dr[tb_sys_SystemProfile.FCategory].ToString());
            gvprofile.Columns[2].OptionsColumn.AllowEdit = false;

            tpSummary.PageVisible = true;
            tpDetail.PageVisible = false;
            tcBusiness.ShowTabHeader = DefaultBoolean.False;
            tcBusiness.SelectedTabPage = tpSummary;

            base.InitializeForm();
        }
コード例 #6
0
        void gridProfileClass_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            DataRow dr = _ClassView.GetDataRow(_ClassView.FocusedRowHandle);

            BindGvprofile(dr[tb_sys_SystemProfile.FCategory].ToString());
        }