SNF开发平台WinForm之--审核流使用方式

 

 特别注意:每个表的主键和编码字段 ,审核流上要进行设置。bs默认生成是以主键+主键的形式,最好

idField = #ClassName#Entity.FieldId,
codeField = #ClassName#Entity.FieldId

 

 

 

Load事件增加绑定

 ucWorkFlowButtons1.ShowWorkFlowButtons(MoudleCode, this.grvGridView, DemoSingleTableEntity.FieldId, DemoSingleTableEntity.FieldCode);
          

 

 string MoudleCode = "DemoSingleTableAdmin";
        private void ucWorkFlowButtons1_ButtonClickAlter(bool result, string buttonName)
        {
            /*
             * buttonName 值
             * btnSubmit 提交按钮
             * btnRevocation 撤销按钮
             * btnAudit 审核按钮
             * btnAbandonedTrial 弃审按钮
             */

            int selectRowIndex = this.grvGridView.GetFocusedDataSourceRowIndex();

            this.Search();
            this.grvGridView.FocusedRowHandle = selectRowIndex;//索引

            //this.grvGridView.SelectRow(selectRowIndex);
        }

posted @ 2021-02-20 09:29  王春天  阅读(205)  评论(0编辑  收藏  举报
云推荐