예제 #1
0
        /// <summary>
        /// 删除
        /// </summary>
        public override void EntityDelete()
        {
            DYGLRule rule   = new DYGLRule();
            DYGL     entity = EntityGet();

            rule.RDelete(entity);
        }
예제 #2
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            DYGLRule rule = new DYGLRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag"));
            gridView1.GridControl.Show();
        }
예제 #3
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            //txtShopID_Leave(null, null);
            DYGLRule rule   = new DYGLRule();
            DYGL     entity = EntityGet();

            rule.RAdd(entity);
            return(entity.ID);
        }
예제 #4
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            if (txtItemCode.Text.Trim() == "")
            {
                this.ShowMessage("请输入产品编码");
                txtItemCode.Focus();
                return;
            }
            //txtShopID_Leave(null, null);
            DYGLRule rule   = new DYGLRule();
            DYGL     entity = EntityGet();

            rule.RUpdate(entity);
        }