Exemple #1
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            QSRule rule   = new QSRule();
            QS     entity = EntityGet();

            rule.RUpdate(entity);
        }
Exemple #2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            QSRule    rule = new QSRule();
            DataTable dt   = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));

            gridView1.GridControl.DataSource = dt;
            gridView1.GridControl.Show();
        }
Exemple #3
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            QSRule rule   = new QSRule();
            QS     entity = EntityGet();

            rule.RAdd(entity);
            return(entity.ID);
        }
Exemple #4
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            QSRule    rule = new QSRule();
            DataTable dt   = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag"));

            setDt(dt);
            gridView1.GridControl.DataSource = dt;
            gridView1.GridControl.Show();
        }