예제 #1
0
파일: LoginUsr.cs 프로젝트: xin1231/test
    /// <summary>
    /// 修改密碼
    /// </summary>
    /// <param name="Pwd"></param>
    public void UpdatePwd(String Pwd)
    {
        IzDataSource IzDataSource = new IzDataSource();

        IzDataSource.UpdateCommand = "update tbUsr set tbUsrPwd=@tbUsrPwd where tbUsrCde=@tbUsrCde";
        IzDataSource.UpdateParameters.Add("tbUsrPwd", Pwd);
        IzDataSource.UpdateParameters.Add("tbUsrCde", UsrCde);
        IzDataSource.Update();
        IzDataSource.Dispose();
    }