Ejemplo n.º 1
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            GBJCLRRule rule = new GBJCLRRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1).Replace("SelectFlag", "0 SelectFlag"));
            gridView1.GridControl.Show();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除
        /// </summary>
        public override void EntityDelete()
        {
            GBJCLRRule rule   = new GBJCLRRule();
            GBJCLR     entity = EntityGet();

            rule.RDelete(entity);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 撤销提交
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void btnSubmitCancel_Click(object sender, EventArgs e)
        {
            try
            {
                if (!FCommon.RightCheck(this.FormID, this.RightFormID, this.FormListAID, this.FormListBID, RightSub.新增))
                {
                    this.ShowMessage("你没有此操作权限");
                    return;
                }

                if (HTDataID == 0)
                {
                    this.ShowMessage("请选择要操作的记录");
                    return;
                }

                GBJCLRRule rule = new GBJCLRRule();
                rule.RSubmit(HTDataID, 0);

                FCommon.AddDBLog(this.Text, FormStatus.提交.ToString(), "ID:" + HTDataID, "");
                this.SetPosStatus(HTDataID);
                BindGrid();
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 修改
        /// </summary>
        public override void EntityUpdate()
        {
            GBJCLRRule rule   = new GBJCLRRule();
            GBJCLR     entity = EntityGet();

            //GBJCLRDts[] entityDts = EntityDtsGet();
            rule.RUpdate(entity);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 绑定Grid
        /// </summary>
        public override void BindGrid()
        {
            GBJCLRRule rule = new GBJCLRRule();

            gridView1.GridControl.DataSource = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));
            DataTable dt = rule.RShow(HTDataConditionStr, ProcessGrid.GetQueryField(gridView1));

            gridView1.GridControl.Show();
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 新增
        /// </summary>
        public override int EntityAdd()
        {
            GBJCLRRule rule   = new GBJCLRRule();
            GBJCLR     entity = EntityGet();

            // GBJCLRDts[] entityDts = EntityDtsGet();
            rule.RAdd(entity);
            return(entity.ID);
        }