資源簡介
關于個人理財管理的小程序,是用C#編寫的,有興趣的可以看看。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
//////using?System.Linq;
using?System.Windows.Forms;
using?System.Data.SqlClient;
using?System.Globalization;//引用命?名空間
namespace?Financing
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????System.Collections.ArrayList?alTrainId?=?new?System.Collections.ArrayList();
????????Login?lg?=?new?Login();
????????bool?state;
????????DataSet?ds?=?new?DataSet();
????????SqlDataAdapter?sqlda?=?new?SqlDataAdapter();
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????dataGridView1.ReadOnly?=?true;
????????????dataGridView2.ReadOnly?=?true;
????????????getMoney();//
????????????getDate();//
????????????lg.ShowDialog();
????????????state?=?lg.lgState;
????????????if?(!state)
????????????????this.Close();
????????}
????????public?void?getDate()
????????{
????????????//SqlConnection?con?=?new?SqlConnection(“server=(local);uid=sa;pwd=;database=db_20“);
????????????SqlConnection?con?=?new?SqlConnection(“data?source=.\\;database=db_20;integrated?security=SSPI“);
????????????con.Open();
????????????SqlCommand?com?=?new?SqlCommand(“select?distinct(spendDate)?from?tb_04?“?con);
????????????comboBox1.Items.Clear();
????????????SqlDataReader?dr?=?com.ExecuteReader();
????????????comboBox1.Items.Clear();
?????????
????????????while?(dr.Read())
????????????{
????????????????comboBox1.Items.Add(Convert.ToDateTime(dr[0].ToString()).ToShortDateString());
????????????}//
????????????dr.Close();
????????????con.Close();
????????}
????????public?void?getMoney()
????????{
????????????alTrainId.Clear();
????????????//SqlConnection?con?=?new?SqlConnection(“server=(local);uid=sa;pwd=;database=db_20“);
????????????SqlConnection?con?=?new?SqlConnection(“data?source=.\\;database=db_20;integrated?security=SSPI“);
????????????con.Open();
????????????SqlCommand?com?=?new?SqlCommand(“select?*?from?tb_04?“?con);
????????????SqlDataReader?dr?=?com.ExecuteReader();
????????????dataGridView1.Rows.Clear();
????????????dataGridView2.Rows.Clear();
????????????NumberFormatInfo?MyNumberFormatInfo?=?new?CultureInfo(“zh-CN“?false).NumberFormat;
????????????while?(dr.Read())
????????????{///
????????????????//MessageBox.Show(dr[0].ToString());
????????????????alTrainId.Add(int.Parse(dr[0].ToString()));
????????????????/////
????????????????dataGridView1.Rows.Add(dr[1].ToString()?String.Format(Convert.ToDouble(dr.GetValue(2)).ToString(“C“?MyNumberFormatInfo))
????????????????????Convert.ToDateTime(dr[3].ToString()).ToShortDateString());
????????????}
????????????if?(dataGridView1.Rows.Count?==?1)
????????????????btnDel.Enabled?=?false;
????????????else
????????????????btnDel.Enabled?=?true;
????????????dr.Close();
????????????com.Connection.Close();
????????????con.Close();
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????15418??2010-06-13?09:27??個人理財管理系統\The?Finals\2008101393144705_2[1]_r2_c2.jpg
?????文件??????14888??2010-06-13?09:46??個人理財管理系統\The?Finals\77731-2[1]_r2_c2.png
?????文件????2621440??2010-06-17?11:23??個人理財管理系統\The?Finals\db_20.mdf
?????文件????3932160??2010-06-17?11:23??個人理財管理系統\The?Finals\db_20_log.LDF
?????文件?????133632??2011-01-19?21:11??個人理財管理系統\The?Finals\個人理財管理系統\Financing\bin\Debug\Financing.exe
?????文件??????46592??2011-01-19?21:11??個人理財管理系統\The?Finals\個人理財管理系統\Financing\bin\Debug\Financing.pdb
?????文件??????14328??2011-01-19?21:18??個人理財管理系統\The?Finals\個人理財管理系統\Financing\bin\Debug\Financing.vshost.exe
?????文件????????490??2009-06-11?05:14??個人理財管理系統\The?Finals\個人理財管理系統\Financing\bin\Debug\Financing.vshost.exe.manifest
?????文件?????132096??2010-06-21?22:20??個人理財管理系統\The?Finals\個人理財管理系統\Financing\bin\Release\Financing.exe
?????文件??????36352??2010-06-21?22:20??個人理財管理系統\The?Finals\個人理財管理系統\Financing\bin\Release\Financing.pdb
?????文件???????4231??2010-06-21?13:58??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Financing.csproj
?????文件????????911??2010-06-21?15:08??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Financing.sln
????..A..H.?????17408??2011-01-19?21:18??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Financing.suo
?????文件??????13964??2010-07-18?19:19??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Form1.cs
?????文件??????21546??2010-07-18?19:19??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Form1.Designer.cs
?????文件???????8098??2010-07-18?19:19??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Form1.resx
?????文件???????3514??2010-06-22?10:17??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Login.cs
?????文件???????6930??2010-06-22?10:17??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Login.designer.cs
?????文件???????5814??2010-06-22?10:17??個人理財管理系統\The?Finals\個人理財管理系統\Financing\Login.resx
?????文件???????4957??2011-01-19?21:18??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\Financing.csproj.FileListAbsolute.txt
?????文件???????1121??2011-01-19?21:11??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\Financing.csproj.GenerateResource.Cache
?????文件?????133632??2011-01-19?21:11??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\Financing.exe
?????文件????????180??2011-01-19?21:11??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\Financing.Form1.resources
?????文件????????180??2010-06-22?10:17??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\Financing.Login.resources
?????文件??????46592??2011-01-19?21:11??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\Financing.pdb
?????文件?????107760??2010-06-21?14:02??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\Financing.Properties.Resources.resources
?????文件???????5120??2010-06-21?14:02??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????319??2010-06-17?11:23??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Financing.csproj.FileList.txt
?????文件???????2168??2010-06-21?22:19??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Release\Financing.csproj.FileListAbsolute.txt
?????文件???????1121??2010-06-21?15:32??個人理財管理系統\The?Finals\個人理財管理系統\Financing\obj\Release\Financing.csproj.GenerateResource.Cache
............此處省略42個文件信息
評論
共有 條評論