经理审批时,希望将审批意见填写到表单,经理意见栏位。

配置

只需在节点属性的数据控制页签,设置提交时栏位为:Context.Current.Comments即可。

Context.Current.Comments

意见拼接

有的时候需要将反复审批的意见拼接起来。

实现

FormDataSet["P_Leave_Staffleave.WTDC"] +

"\r" +

LoginUser.ShortName + ": " +

(String.IsNullOrEmpty(Context.Current.Comments) ? "同意" : Context.Current.Step.Comments) + " " +

DateTime.Now.ToString("yyyy-MM-dd hh:mm")+"\n"

Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator