Exemplo n.º 1
0
        /// <summary>
        /// 删除
        /// </summary>
        public override void EntityDelete()
        {
            CSBGItemRule rule   = new CSBGItemRule();
            CSBGItem     entity = EntityGet();

            rule.RDelete(entity);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            CSBGItemRule rule = new CSBGItemRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
            gridView1.GridControl.Show();
        }
Exemplo n.º 3
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            CSBGItemRule rule   = new CSBGItemRule();
            CSBGItem     entity = EntityGet();

            CSBGItemDts[] entityDts = EntityDtsGet();
            rule.RUpdate(entity, entityDts);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            CSBGItemRule rule   = new CSBGItemRule();
            CSBGItem     entity = EntityGet();

            CSBGItemDts[] entityDts = EntityDtsGet();
            rule.RAdd(entity, entityDts);
            return(entity.ID);
        }