个人理财系统Word下载.docx

上传人:b****3 文档编号:15996194 上传时间:2022-11-17 格式:DOCX 页数:47 大小:609.68KB
下载 相关 举报
个人理财系统Word下载.docx_第1页
第1页 / 共47页
个人理财系统Word下载.docx_第2页
第2页 / 共47页
个人理财系统Word下载.docx_第3页
第3页 / 共47页
个人理财系统Word下载.docx_第4页
第4页 / 共47页
个人理财系统Word下载.docx_第5页
第5页 / 共47页
点击查看更多>>
下载资源
资源描述

个人理财系统Word下载.docx

《个人理财系统Word下载.docx》由会员分享,可在线阅读,更多相关《个人理财系统Word下载.docx(47页珍藏版)》请在冰豆网上搜索。

个人理财系统Word下载.docx

DataSetdst=newDataSet();

stringconnstr="

DataSource=(local);

InitialCatalog=Message;

IntegratedSecurity=True"

;

SqlConnectioncon=newSqlConnection(connstr);

con.Open();

stringstr=”select*from登录”;

SqlDataAdaptersda=newSqlDataAdapter(str,con);

SqlCommandBuilderscd=newSqlCommand

Builder(sda);

sda.Fill(dst,"

tong"

dataGridView1。

DataSource=dst.Tables

[”tong”]。

DefaultView;

username=dataGridView1.Rows[0]。

Cells[0].

Value.ToString()。

Trim();

password=dataGridView1。

Rows[0]。

Cells[1].

if(tbusername。

Text.Equals(username)&

&tbmima。

Text。

Equals(password))

{Form2f2=newForm2();

f2.Visible=true;

this。

Visible=false;

else

{MessageBox.Show("

你输入的用户名或密码错误"

”错误提示"

tbusername.Clear();

tbmima。

Clear();

con.Close();

}

privatevoidbtcancel_Click(objectsender,EventArgse)

{if(MessageBox。

Show(”你是否真的想退出系统?

,”提示"

,MessageBoxButtons.YesNo)!

=DialogResult.No)

{this。

Close();

privatevoidbutton1_Click(objectsender,EventArgse)

{stringusername=null;

stringpassword=null;

{MessageBox.Show(”你没有输入用户名!

”,”错误提示"

return;

if(tbmima。

Text==”"

{MessageBox。

”,"

错误提示”);

DataSetdst=newDataSet();

stringconnstr=”DataSource=(local);

SqlConnectioncon=newSqlConnection

(connstr);

con。

Open();

stringstr="

select*from登录"

SqlDataAdaptersda=newSqlDataAdapter(str,con);

sda。

Fill(dst,”tong”);

["

]。

DefaultView;

username=dataGridView1.Rows[0].Cells[0].

Value.ToString().Trim();

password=dataGridView1.Rows[0]。

Cells[1].

Value。

ToString().Trim();

if(tbusername.Text.Equals(username)&&tbmima。

{if(MessageBox.Show(”你确定要修改密码吗?

,"

提示"

MessageBoxButtons。

YesNo)==DialogResult.Yes)

{修改密码mima=new修改密码();

mima.Visible=true;

{MessageBox。

错误提示"

tbusername。

Close();

}

{stringusername=null;

if(textBox1。

Text==””)

{MessageBox.Show("

"

}

if(textBox2。

Show(”你没有输入更改密码!

if(textBox3.Text==””)

你没有再次输入更改密码!

return;

stringb=textBox2。

Text.ToString().Trim();

stringa=textBox3。

ToString().Trim();

if(b。

Equals(a)==false)

你两次输入的密码不一样!

,"

DataSetdst=newDataSet();

stringconnstr=”DataSource=(local);

IntegratedSecurity=True”;

stringstr=”select*from登录"

Fill(dst,"

dataGridView1.DataSource=dst。

Tables

tong”]。

username=dataGridView1。

Rows[0].Cells[0]。

password=dataGridView1.Rows[0]。

Cells[1].

if(textBox1.Text。

{Stringsql="

update登录setmima=’"

+textBox2.Text.Trim()+”’whereusername=’"

+username+”’"

Try

{SqlCommandcomm=newSqlCommand(sql,con);

comm。

ExecuteNonQuery();

catch(Exceptiones)

{MessageBox.Show("

修改密码失败!

”,”提示"

);

你输入的密码错误”,”错误提示"

textBox1.Clear();

MessageBox。

密码更改成功!

textBox1.Clear();

textBox2.Clear();

textBox3.Clear();

privatevoidbutton2_Click(objectsender,EventArgse)

{this.Close();

实现代码如下:

privatevoidbutton6_Click(objectsender,EventArgse)//实现备忘录的查询

{stringstr=null;

if(textBox6。

Text!

=”"

{str="

select*from备忘录where备忘标题=’”+textBox6.Text+”’"

textBox6。

Clear();

else

if(comboBox1.Text!

=””)

{stringlei=comboBox1.Text;

if(lei.Equals(”日程表”)==false&&lei。

Equals("

纪念日”)==false&

&lei.Equals("

记事本”)==false&

&

lei.Equals(”节日”)==false&

&lei。

备忘录”)==false)

Show(”你输入的类别不正确,请重新输入!

{str="

select*from备忘录where备忘类别=’”+comboBox1。

Text+"

'

”;

comboBox1。

Text=null;

if(textBox7。

Text!

{DateTimetime=DateTime。

Now;

try

{time=DateTime.Parse(textBox7.Text);

catch(Exceptions)

{MessageBox.Show(”你输入的日期格式不正确"

str=”select*from备忘录whereYEAR(创建时间)=YEAR(’”+time+"

)andMONTH(创建时间)=MONTH(’”+time+”’)andDAY(创建时间)=DAY('

”+time+”'

)"

textBox7.Clear();

{MessageBo

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1