Пример #1
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            SOPlanRule rule   = new SOPlanRule();
            SOPlan     entity = EntityGet();

            rule.RUpdate(entity);
        }
Пример #2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            SOPlanRule rule = new SOPlanRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
            gridView1.GridControl.Show();
        }
Пример #3
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            SOPlanRule rule = new SOPlanRule();

            gridView1.GridControl.DataSource = rule.RShow(HTLoadConditionStr + HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", " 0 AS SelectFlag"));
            gridView1.GridControl.Show();
        }
Пример #4
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            SOPlanRule rule   = new SOPlanRule();
            SOPlan     entity = EntityGet();

            rule.RAdd(entity);
            return(entity.ID);
        }