Beispiel #1
0
        /// <summary>
        /// 删除
        /// </summary>
        public override void EntityDelete()
        {
            ItemBaseGYTypeRule rule   = new ItemBaseGYTypeRule();
            ItemBaseGYType     entity = EntityGet();

            rule.RDelete(entity);
        }
Beispiel #2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            ItemBaseGYTypeRule rule = new ItemBaseGYTypeRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
            gridView1.GridControl.Show();
        }
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            ItemBaseGYTypeRule rule   = new ItemBaseGYTypeRule();
            ItemBaseGYType     entity = EntityGet();

            ItemBaseGYTypeDts[] entitydts = EntityDtsGet();
            entity.SubmitFlag = this.HTSubmitFlagUpdateGet();
            rule.RUpdate(entity, entitydts);
        }
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            ItemBaseGYTypeRule rule   = new ItemBaseGYTypeRule();
            ItemBaseGYType     entity = EntityGet();

            ItemBaseGYTypeDts[] entitydts = EntityDtsGet();

            entity.SubmitFlag = this.HTSubmitFlagInsertGet();
            rule.RAdd(entity, entitydts);
            return(entity.ID);
        }