recordFile/recordFileListView.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System; 
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace OI.recordFile
{
	/// <summary>
	/// recordFileListView 的摘要说明。
	/// </summary>
	public partial class recordFileListView : OI.PageBase
	{
	    protected int RecordFileID;
		protected OI.DatabaseOper .DatabaseConnect Dbc=new OI.DatabaseOper.DatabaseConnect ();
		protected OI.PageBase PB=new PageBase() ;
		protected void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			//ImageButton1.Attributes ["onclick"]="history.go(-1);";
			if (!Page.IsPostBack )
			{
				try
				{   
					RecordFileID=int.Parse(Request.QueryString ["id"].ToString ());
				}
				catch
				{
					Response.Redirect ("recordFileList.aspx");
				}
				
			    BindDefaultData();
				this.BindIdeas ();
			}
		}
		private void BindIdeas()
		{
			string sql="select accounts_users.username,filegive.sendtime,filegive.doingtime,filegive.agree,filegive.idea,filegive.isdone from filegive,accounts_users where accounts_users.userid=filegive.userid and filegive.recordfileid="+RecordFileID;
			ArrayList al=Dbc.getData (sql);
			TableRow tableR;
			TableCell tableC;
			for(int i=0;i<al.Count/6 ;i++)
			{
				tableR=new TableRow ();
				tableC=new TableCell ();
				Color tempColor=new Color();
				if(i%2==0)
					tempColor=(Color)TypeDescriptor.GetConverter(typeof(Color)).ConvertFromString("LightGoldenrodYellow"); //new Color("#fbe3b5") ;
				else 
					tempColor=Color.White ;
				//Color c = (Color)TypeDescriptor.GetConverter(typeof(Color)).ConvertFromString("Red");

				tableR.BackColor =tempColor;//"floralwhite";
				tableC.Controls .Add (new LiteralControl("处理人:"));
				tableR.Cells .Add (tableC);
后面还有 148 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。