protected void Button1_Click(object sender, EventArgs e) { leica_geosystemsVoteProjectUserAdmin modelpass = bllusername.GetModel(getid()); int id = getid(); string username = this.txtusername.Value; string passwore = modelpass.Password; string Trueusername = this.txtTrueusername.Value; string company = this.txtcompany.Value; string city = this.txtcity.Value; string Phone = this.txtPhone.Value; string email = this.txtemail.Value; //Response.Write(modelpass.Password); //Response.End(); leica_geosystemsVoteProjectUserAdmin model = new leica_geosystemsVoteProjectUserAdmin(); model.Id = id; model.Username = username; model.Password = passwore; model.Trueusername = Trueusername; model.Company = company; model.City = city; model.Phone = Phone; model.Email = email; leica_geosystemsVoteProjectUserAdminManager bll = new leica_geosystemsVoteProjectUserAdminManager(); bll.Update(model); Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "UserList.aspx"); }
protected void Button1_Click(object sender, EventArgs e) { int id = getid(); leica_geosystemsVoteProjectUserAdmin modelpass = bllusername.GetModel(getid()); string username = modelpass.Username; string passwore = discom.EncryptMD5(txtpassword.Value); string Trueusername = modelpass.Trueusername; string company = modelpass.Company; string city = modelpass.City; string Phone = modelpass.Phone; string email = modelpass.Email; leica_geosystemsVoteProjectUserAdmin model = new leica_geosystemsVoteProjectUserAdmin(); model.Id = id; model.Username = username; model.Password = passwore; model.Trueusername = Trueusername; model.Company = company; model.City = city; model.Phone = Phone; model.Email = email; leica_geosystemsVoteProjectUserAdminManager bll = new leica_geosystemsVoteProjectUserAdminManager(); bll.Update(model); Maticsoft.Common.MessageBox.ShowAndRedirect(this, "提交成功!", "UserList.aspx"); }
public string getExamineUserId(string sid) { string username = ""; leica_geosystemsVoteProjectUserAdminManager userbll = new leica_geosystemsVoteProjectUserAdminManager(); int userid = 0; if (sid.Length != 0) { userid = int.Parse(sid); leica_geosystemsVoteProjectUserAdmin model = userbll.GetModel(userid); username = model.Trueusername; } else { username = "******"; } return username; }
protected void Button1_Click(object sender, EventArgs e) { string username = this.txtusername.Value; string password = discom.EncryptMD5(this.txtpassword.Value); string Trueusername = this.txtTrueusername.Value; string company = this.txtcompany.Value; string city = this.txtcity.Value; string Phone = this.txtPhone.Value; string email = this.txtemail.Value; leica_geosystemsVoteProjectUserAdmin model = new leica_geosystemsVoteProjectUserAdmin(); model.Username = username; model.Password = password; model.Trueusername = Trueusername; model.Company = company; model.City = city; model.Phone = Phone; model.Email = email; leica_geosystemsVoteProjectUserAdminManager bll = new leica_geosystemsVoteProjectUserAdminManager(); bll.Add(model); Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "UserList.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (Session["sIdPVote"] == null || Session["sIdPVote"].ToString() == "") { Response.Write("<script type=\"text/javascript\" language=\"javascript\">window.parent.location.href='admin_login.aspx';</script>"); return; } string login = Session["sIdPVote"].ToString(); leica_geosystemsVoteProjectUserAdminManager bll = new leica_geosystemsVoteProjectUserAdminManager(); leica_geosystemsVoteProjectUserAdmin model = bll.GetModel(int.Parse(login)); Label1.Text = "您好, " + model.Trueusername; Label2.Text = DateTime.Now.ToString("yyyy年MM月dd日"); string weekName = DateTime.Now.DayOfWeek.ToString(); Label3.Text = Week(weekName); //Label4.Text = DateTime.Now.ToString("HH:mm:ss"); Label1.ForeColor = System.Drawing.Color.Black; Label2.ForeColor = System.Drawing.Color.Black; Label3.ForeColor = System.Drawing.Color.Black; Label4.ForeColor = System.Drawing.Color.Black; }