没有合适的资源?快使用搜索试试~ 我知道了~
北风网的家庭理财系统源码
5星 · 超过95%的资源 需积分: 9 48 下载量 177 浏览量
2011-08-19
09:07:29
上传
评论 2
收藏 13KB TXT 举报
温馨提示
试读
12页
北风网的家庭理财系统源码,里面包含了北风网的家庭理财系统源码。供大家下载
资源推荐
资源详情
资源评论
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using 家庭理财系统.FMDataSetTableAdapters;
namespace 家庭理财系统
{
public partial class MainForm : Form
{
public MainForm()//初始化主窗体
{
InitializeComponent();
}
private void MainForm_Load(object sender, EventArgs e)//主窗体加载时
{
HideBottom(); //隐藏底部修改窗口
//赋值排序下拉列表
cboDir.SelectedIndex = 0;
cboSort.SelectedIndex = 0;
cboType.SelectedIndex = 0;
AddDdte(); //日期下拉列表赋值方法
Calculation(); //计算收与支出的差额入
}
private void tmTime_Tick(object sender, EventArgs e)//时间控制器 获取系统时间
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using 家庭理财系统.FMDataSetTableAdapters;
namespace 家庭理财系统
{
public partial class MainForm : Form
{
public MainForm()//初始化主窗体
{
InitializeComponent();
}
private void MainForm_Load(object sender, EventArgs e)//主窗体加载时
{
HideBottom(); //隐藏底部修改窗口
//赋值排序下拉列表
cboDir.SelectedIndex = 0;
cboSort.SelectedIndex = 0;
cboType.SelectedIndex = 0;
AddDdte(); //日期下拉列表赋值方法
Calculation(); //计算收与支出的差额入
}
private void tmTime_Tick(object sender, EventArgs e)//时间控制器 获取系统时间
{
DateTime dt = DateTime.Now;
lbTime.Text = Convert.ToString(dt);
}
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)//点击关闭 关闭所有窗体程序,包括LoadForm,此时LoadForm是隐藏的,所以不能用ose()
{
Application.Exit();
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)//点击DATAGRIDVIEW中的单元格
{
//判断ID是否为空
int id =Convert.ToInt32(dvgData.SelectedRows[0].Cells[0].Value.ToString().Trim());
if (id <= 0)
{
return;
}
//取得选中行的字符串
GetStringQuery(
dvgData.SelectedRows[0].Cells[0].Value.ToString()
,dvgData.SelectedRows[0].Cells[4].Value.ToString()
,txtDescription.Text = dvgData.SelectedRows[0].Cells[5].Value.ToString()
,dvgData.SelectedRows[0].Cells[1].Value.ToString()
,dvgData.SelectedRows[0].Cells[2].Value.ToString()
,dvgData.SelectedRows[0].Cells[3].Value.ToString());
}
private void cboType_SelectedIndexChanged(object sender, EventArgs e)
{
if (cboType.SelectedIndex == 0)//赋值给类型的下拉列表
{
cboItem.Items.Clear();
DateTime dt = DateTime.Now;
lbTime.Text = Convert.ToString(dt);
}
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)//点击关闭 关闭所有窗体程序,包括LoadForm,此时LoadForm是隐藏的,所以不能用ose()
{
Application.Exit();
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)//点击DATAGRIDVIEW中的单元格
{
//判断ID是否为空
int id =Convert.ToInt32(dvgData.SelectedRows[0].Cells[0].Value.ToString().Trim());
if (id <= 0)
{
return;
}
//取得选中行的字符串
GetStringQuery(
dvgData.SelectedRows[0].Cells[0].Value.ToString()
,dvgData.SelectedRows[0].Cells[4].Value.ToString()
,txtDescription.Text = dvgData.SelectedRows[0].Cells[5].Value.ToString()
,dvgData.SelectedRows[0].Cells[1].Value.ToString()
,dvgData.SelectedRows[0].Cells[2].Value.ToString()
,dvgData.SelectedRows[0].Cells[3].Value.ToString());
}
private void cboType_SelectedIndexChanged(object sender, EventArgs e)
{
if (cboType.SelectedIndex == 0)//赋值给类型的下拉列表
{
cboItem.Items.Clear();
剩余11页未读,继续阅读
one_day_happy
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页