textinput.cs
来自「工作流的基本资料(文档资料」· CS 代码 · 共 35 行
CS
35 行
using System;
using log4net;
using NetBpm.Workflow.Delegation;
namespace NetBpm.Workflow.Delegation.Impl.Htmlformatter
{
public class TextInput:AbstractConfigurable, IHtmlFormatter
{
public System.String ObjectToHtml(System.Object valueObject, System.String parameterName, System.Web.HttpRequest request)
{
System.String html = null;
System.String size = "10";
if (GetConfiguration().Contains("size"))
{
size = ((System.String) GetConfiguration()["size"]);
}
System.String text = "";
if (valueObject != null)
text = ((System.String) valueObject);
html = "<input type=text size=" + size + " name=\"" + parameterName + "\" value=\"" + text + "\">";
return html;
}
public System.Object ParseHttpParameter(System.String text, System.Web.HttpRequest request)
{
return text;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?