System/Status.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Collections;
public partial class System_Status : MojoCube.Api.UI.MyPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
hlAdd.NavigateUrl = "StatusEdit.aspx?active=" + Request.QueryString["active"];
GridBind();
this.Title = "状态列表";
}
}
protected void lnbSearch_Click(object sender, EventArgs e)
{
GridBind();
}
private void GridBind()
{
DataTable dt = new DataTable();
ArrayList parameter = new ArrayList();
parameter.Add(MojoCube.Office.SqlHelper.CreateParameter("@StatusName_CHS", txtKeyword.Text.Trim(), SqlDbType.NVarChar));
dt = MojoCube.Office.SqlHelper.SqlQueryDS("select * from Sys_StatusID where StatusName_CHS like '%'+@StatusName_CHS+'%' order by TableName asc,ID asc", parameter).Tables[0];
GridView1.DataSource = dt;
GridView1.DataBind();
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string id = MojoCube.Api.Text.Security.EncryptString(((Label)e.Row.FindControl("lblID")).Text);
((HyperLink)e.Row.FindControl("gvEdit")).NavigateUrl = "StatusEdit.aspx?id=" + id + "&active=" + Request.QueryString["active"];
MojoCube.Office.String.ShowDel(e);
}
}
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
string[] list = { "gvDelete" };
MojoCube.Api.UI.AdminGridView.SetDataRow(e, list);
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
MojoCube.Office.Sys.StatusID statusId = new MojoCube.Office.Sys.StatusID();
int index = Convert.ToInt32(e.CommandArgument);
后面还有 8 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
