62,046
社区成员
发帖
与我相关
我的任务
分享
public class DB
{
public static string password;
public static string name;
public static string Search;
public static string ValueSearch;
public static string PledgeOrBorrow;
public static string _id;
public static string _imagetype;
public static string _imagename;
public static string _ownname;
public static string _startime;
public static string _endtime;
public static string _recheck;
public static string _borrowpledge;
public static string connection = "Data Source=.;Initial Catalog=GJmanagementSystem;Integrated Security=True";
TextBoxSdate.Text = table.Rows[0]["startime"].ToString();
TextBoxEdate.Text = table.Rows[0]["endtime"].ToString();
TextBoxRecheck.Text = table.Rows[0]["recheck"].ToString();
TextBoxBorP.Text = table.Rows[0]["borrowpledge"].ToString();
conn.Close();
/*______________________________*/
DB._id = TextBoxID.Text;
DB._imagetype = TextBoxType.Text;
DB._imagename = TextBoxImagename.Text;
DB._ownname = TextBoxName.Text;
DB._startime = TextBoxSdate.Text;
DB._endtime = TextBoxEdate.Text;
DB._recheck = TextBoxRecheck.Text;
DB._borrowpledge = TextBoxBorP.Text;
/*________________________________*/
this.TextBoxImagename = DB._imagename;
this.TextBoxName = DB._ownname;
this.TextBoxImagename.Text = DB._imagename;
this.TextBoxName.Text = DB._ownname;