效果如图
将Edit.ascx改为Commit.ascx,
修改模块.dnn文件
<moduleControl>
<controlKey>Commit</controlKey>
<controlSrc>DesktopModules/Fp_ReqRequest/Commit.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Commit View</controlTitle>
<controlType>Edit</controlType>
<iconFile />
<helpUrl />
<viewOrder>0</viewOrder>
</moduleControl>
修改ModelActions
public ModuleActionCollection ModuleActions
{
get
{
ModuleActionCollection Actions = new ModuleActionCollection();
Actions.Add(GetNextActionID(), "Commit", ModuleActionType.AddContent, "", "", EditUrl("Commit"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
return Actions;
}
}