コード例 #1
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     if (txtNewPWD.Text.Trim() != txtConfirmNewPWD.Text.Trim())
     {
         LiteralMsg.Text = "修改密码和确认密码不一致!";
         LiteralMsg.DataBind();
         return;
     }
     else
     {
         XTHospital.BLL.BLL_Employee bll = new XTHospital.BLL.BLL_Employee();
         XTHospital.Model.Employee model = new XTHospital.Model.Employee();
         model.UPDATER_ID = Session["LoginUserID"].ToString();
         model.TERMINAL_CD="";
         model.EmployeePWD = txtOldPWD.Text.Trim();
         model.EmployeeNewPWD=txtConfirmNewPWD.Text.Trim();
         model.EmployeeEmail=txtMail.Text.Trim();
         model.EmployeePhone=txtEmployeePhone.Text.Trim();
         model.EmployeeID = Session["EmployeeID"].ToString();
         XTHospital.COM.ReturnValue resoult = bll.ChangePassWord(model);
         if (!resoult.ErrorFlag)
         {
             LiteralMsg.Text = resoult.ErrorID;
             LiteralMsg.DataBind();
             return;
         }
         else
         {
             LiteralMsg.Text = "修改成功!";
             Session["EmployeeMail"] = txtMail.Text.Trim(); ;
             Session["EmployeePhone"] = txtEmployeePhone.Text.Trim();
             LiteralMsg.DataBind();
             return;
         }
     }
 }
コード例 #2
0
ファイル: Service.cs プロジェクト: wgang10/XTHospatal
 public ReturnValue ChangePassWord(Employee model)
 {
     BLL_Employee bll = new BLL_Employee();
     return bll.ChangePassWord(model);
 }