コード例 #1
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            GoodsPostRule rule   = new GoodsPostRule();
            GoodsPost     entity = EntityGet();

            rule.RUpdate(entity);
        }
コード例 #2
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            GoodsPostRule rule   = new GoodsPostRule();
            GoodsPost     entity = EntityGet();

            rule.RAdd(entity);
            return(entity.ID);
        }
コード例 #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();
        }