📄 edit.aspx.cs
字号:
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 RSFlow.test
{
public class edit : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox7;
protected System.Web.UI.WebControls.TextBox TextBox6;
protected System.Web.UI.WebControls.TextBox TextBox5;
protected System.Web.UI.WebControls.TextBox TextBox4;
protected System.Web.UI.WebControls.TextBox TextBox3;
protected System.Web.UI.WebControls.TextBox TextBox2;
protected CoreControl.CorePanel CorePanel1;
protected System.Web.UI.WebControls.TextBox Textbox8;
protected System.Web.UI.WebControls.TextBox Textbox9;
protected System.Web.UI.WebControls.TextBox Textbox10;
protected System.Web.UI.WebControls.TextBox Textbox11;
protected System.Web.UI.WebControls.TextBox TextBox1;
public string Vid
{
get
{
if (ViewState["Vid"]==null)
{
return "";
}
else
{
return ViewState["Vid"].ToString();
}
}
set
{
ViewState["Vid"]=value;
}
}
private void Page_Load(object sender, System.EventArgs e)
{
if (!this.IsPostBack)
{
this.Vid=Page.Request["formid"];
if (this.Vid!="")
{
DataTable Vtable=RemotintControl.ServiceControl.GetTable(NaMultiClass.MultiClass.DBConn,"select * from test where VGUID='"+Vid+"'");
if ((Vtable!=null)&&(Vtable.Rows.Count>0))
{
string vuserid=Vtable.Rows[0]["field1"].ToString();
this.TextBox1.Text=NaMultiClass.MultiClass.GetUserName(vuserid);
this.Textbox8.Text=Vtable.Rows[0]["field2"].ToString();
this.Textbox9.Text=Vtable.Rows[0]["field3"].ToString();
this.TextBox2.Text=Vtable.Rows[0]["field4"].ToString();
this.TextBox3.Text=Vtable.Rows[0]["field5"].ToString();
this.TextBox4.Text=Vtable.Rows[0]["field6"].ToString();
this.TextBox5.Text=Vtable.Rows[0]["field7"].ToString();
this.TextBox6.Text=Vtable.Rows[0]["field8"].ToString();
this.TextBox7.Text=Vtable.Rows[0]["field9"].ToString();
this.Textbox10.Text=Vtable.Rows[0]["field10"].ToString();
DataTable Vtest2Table=RemotintControl.ServiceControl.GetTable(NaMultiClass.MultiClass.DBConn,"select * from test2 where RelID='"+this.Vid+"'");
if (Vtest2Table!=null)
for (int i=0;i<Vtest2Table.Rows.Count;i++)
{
string vmuuserid=Vtest2Table.Rows[i]["UserID"].ToString();
this.Textbox11.Text+=NaMultiClass.MultiClass.GetUserName(vmuuserid)+" ";
}
}
}
}
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.CorePanel1.ButtonClick += new System.EventHandler(this.CorePanel1_ButtonClick);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void CorePanel1_ButtonClick(object sender, System.EventArgs e)
{
this.CorePanel1.ExeTask((CoreControl.CoreToolbarButton)sender,this.Vid,"");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -