特别注意:每个表的主键和编码字段 ,审核流上要进行设置。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); }