Meeting/Admin/Content/formListAllChose.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication.Admin.Content
{
public partial class formListAllChose : System.Web.UI.Page
{
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
Model.Models.GZXX_Model model = new Model.Models.GZXX_Model();
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
if (Request["channelid"] != null)
{
model = bll.GetModelInfo(int.Parse(Request["channelid"].ToString()));
if (Request["rvalue"] != null)
{
if (Request["rvalue"].ToString() != "")
{
DataTable dt = bll.GetDataTable("infoid,title", model.modeltable, " where infoid in (" + Request["rvalue"].ToString().Substring(1) + ") ", null, "");
string html = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
html += "<a title=\"" + dt.Rows[i]["infoid"].ToString() + "\" class=\"entypo-cancel btn btn-red mr10\" onclick=\"removeitem('" + dt.Rows[i]["infoid"].ToString() + "','" + dt.Rows[i]["title"].ToString() + "')\">" + dt.Rows[i]["title"].ToString() + "</a>";
}
HiddenField9.Value = html;
HiddenField8.Value = Request["rvalue"].ToString();
ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), System.DateTime.Now.Ticks.ToString(), "$(\"#ischoosepl\").html($(\"#HiddenField9\").val());", true);
}
}
try
{
Label2.Text = Label3.Text = Request["name"].ToString();
}
catch (Exception) { }
SqlParameter[] param = new SqlParameter[]{
new SqlParameter("@channelid",SqlDbType.Int)
};
param[0].Value = int.Parse(Request["channelid"].ToString());
string item = ",*";
HiddenField1.Value = Tools.Base64.Base64Code(item);
HiddenField2.Value = Tools.Base64.Base64Code(model.modeltable);
HiddenField3.Value = Tools.Base64.Base64Code(param.ToString());
try
{
BLL.Admin.GZXX_UserDepartMent udbll = new BLL.Admin.GZXX_UserDepartMent();
string departs = string.Empty;
DataTable dt = udbll.getDepartMent(int.Parse(Session["DepartId"].ToString()));
for (int i = 0; i < dt.Rows.Count; i++)
{
departs += "," + dt.Rows[i]["DepartID"].ToString();
后面还有 61 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
