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");
 }
Example #2
0
    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");
    }
Example #3
0
 protected void ImageButton1_Click(object sender, EventArgs e)
 {
     leica_geosystemsVoteProjectUserAdmin cy = new leica_geosystemsVoteProjectUserAdmin();
     leica_geosystemsVoteProjectUserAdmin h = new leica_geosystemsVoteProjectUserAdmin();
     cy.Username = txtadminuser.Text;
     cy.Password = txtpassword.Text;
     string strErr = "";
     bool b = cm.login(cy, ref h, ref strErr);
     if (b == true)
     {
         Session["sIdPVote"] = h.Id;
         //Session["username"] = h.Username;
         //Session["trueusername"] = h.Trueusername;
         //Response.Redirect(getLinkPage());
         Response.Write("<script type=\"text/javascript\" language=\"javascript\">window.parent.location.href='Main.aspx?userid=" + Session["sIdPVote"] + "';</script>");
     }
     else
     {
         MessageBox.Show(this, strErr);
         return;
     }
 }
Example #4
0
    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");
    }