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

            rule.RDelete(entity);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            SampleSaleRule rule   = new SampleSaleRule();
            SampleSale     entity = EntityGet();

            SampleSaleDts[] entitydts = EntityDtsGet();
            entity.SubmitFlag = this.HTSubmitFlagUpdateGet();
            rule.RUpdate(entity, entitydts);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            SampleSaleRule rule = new SampleSaleRule();

            gridView1.GridControl.DataSource = rule.RShowDts(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
            gridView1.GridControl.Show();

            //ProcessGrid.SetGridEdit(gridView1, new string[] { "FinishedFlag" }, true);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            SampleSaleRule rule   = new SampleSaleRule();
            SampleSale     entity = EntityGet();

            SampleSaleDts[] entitydts = EntityDtsGet();

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