[C#] 纯文本查看 复制代码
protected void btnOk_Click(object sender, EventArgs e)
{
FunctionBLL bll = new FunctionBLL();
bll.AddFunctionInfo(GetFunctionInfo());
}
#region 组织对象
/// <summary>
/// 从页面输入信息中组织对象
/// </summary>
/// <returns></returns>
protected FunctionInfo GetFunctionInfo()
{
string menuId = ddlMenu.Value;
string funcName = InputHelper.CleanInputString(txtFuncName.Value);
//string funcIcon = InputHelper.CleanInputString(txtFuncIcon.Value);
//string funcPath = InputHelper.CleanInputString(txtFuncPath.Value);
bool isEnable = ckIsEnable.Checked;
FunctionInfo func = new FunctionInfo()
{
ParentId = int.Parse(menuId),
FunctionName = funcName,
IsEnable = isEnable,
};
return func;
}
#endregion