/// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            GoodsPostRule rule   = new GoodsPostRule();
            GoodsPost     entity = EntityGet();

            rule.RUpdate(entity);
        }
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            GoodsPostRule rule   = new GoodsPostRule();
            GoodsPost     entity = EntityGet();

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

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