Esempio n. 1
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            LYGLRule rule = new LYGLRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag"));
            gridView1.GridControl.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// 删除
        /// </summary>
        public override void EntityDelete()
        {
            LYGLRule rule   = new LYGLRule();
            LYGL     entity = EntityGet();

            rule.RDelete(entity);
        }
Esempio n. 3
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            LYGLRule rule   = new LYGLRule();
            LYGL     entity = EntityGet();

            LYGLDts[] entitydts = EntityDtsGet();
            entity.SubmitFlag = this.HTSubmitFlagUpdateGet();
            rule.RUpdate(entity, entitydts);
        }
Esempio n. 4
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            LYGLRule rule   = new LYGLRule();
            LYGL     entity = EntityGet();

            LYGLDts[] entitydts = EntityDtsGet();

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