支票簿注册 [英] Checkbook Register

查看:73
本文介绍了支票簿注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为支票簿注册项目编写代码.
条件:
1).我必须能够创建多个帐户.
一个).名称,地址,电话号码...
2).在每个帐户中签发多张支票.
3).显示每个帐户的结余.
4).将每个帐户的信息保存到磁盘.


谢谢

I''m writing code for a checkbook register project.
Criteria:
1). I have to be able to create multiple accounts.
a). Name, address, phone #...
2). Issue multiple checks within each account.
3). Show the running balance for each account.
4). Save info for each account to disk.


Thanks

推荐答案

引用:我正在为支票簿注册项目编写代码."

您使用的是哪种计算机语言,到目前为止您使用了多少语言.尝试展示一些工作,遇到问题时,人们会尽力帮助您.

但是,请不要指望收到一个定制的应用程序.
Quote: "I''m writing code for a checkbook register project."

What computer language are you using and how far have you got up to now. Try showing some of your work, where you have a problem and people will try to help you.

But please don''t expect to receive a custom built application for nothing.


我不确定我是否在响应正确的位置.我认为可能会起作用,因为我需要具备以下条件:
1)Chk#
2)日期
3)交易说明
4)付款金额
5)存款金额
6)余额

为了能够一次访问给定支票的所有信息,除非有更好的方法,否则我将使用标签框来创建单元格.给定支票的所有条目都将被连接,例如
".Items.Add(Check#Items.Items(Check#Items.SelectedIndex))"

感谢您的帮助.
I''m not sure if I''m responding to the correct place. What I thought might work is, since I''m required to have:
1) Chk #
2) Date
3) Transaction Description
4) Payment Amount
5) Deposit Amount
6) Balance

To be able to access all information for a given check at once, I would use label boxes to create the cells, unless there''s a better way to do it. All entries for a given check would be connected something like
".Items.Add(Check#Items.Items(Check#Items.SelectedIndex))"

Any help is appreciated.


我将用C#来解释它,这是.net中编写程序的语言.
如您所想,它很简单.首先使用SQL2005或您拥有的任何版本创建数据库.要创建数据库,您需要使用sql命令.我会给你的.但是首先您需要sql,安装它.您可以安装sql2005 express和sql 2005 management studio(均应安装).
之后,请在开始> sql2005> sql2005管理工作室中将其打开.现在正在归档新查询表.写这个命令
I will explain it in C# which is the language in .net to write programs.
Its simple as you think. First of all create database using SQL2005 or any version you have. To create a database you need to use sql commands. That i will give you. But first of all u need sql, install it. you can install sql2005 express and sql 2005 management studio(both should be installed).
after that open it in start>sql2005>sql2005 management studio. now in file new queary. write this command
create database <database name>;


数据库名称,可以将其命名为bank或accountdb.示例:-


database name its ue wish u can name it as bank or accountsdb. Example:-

create database accountsdb;


并使用sql进行编译,只需按一下它,工具栏中就会有一个播放按钮.它将编译并创建您的数据库.接下来创建表,使用选择数据库.


and compile it using sql u will have a play button in toolbar just press it. It will compile and your databse will be created. Next create tables select database by using.

use <database name="">;</database>


并编译.根据您的要求创建表.现在在Visual Studio中.创建一个新的Windows论坛.在顶部导入名称空间.


and compile. create a table according to u r requirements. Now in visual studio. Create a new windows forum. Import the name space at the top.

using System.Data.Sqlclient;


下一步将Windows论坛连接到数据库.该方法在.net中称为ADO.NET.接下来是Connection字符串,该字符串指定连接位置和连接whome以及什么样的数据库和什么数据库.用这条线


Next Connect your windows forum to database. This method is called ADO.NET in .net. Next is Connection string which specifies where to connect and whome to connect and what kind of database and what is databse. use this line

SqlConnection con=new SqlConnection


(这里您必须提供连接字符串");连接字符串表示将连接数据(例如连接名称,类型安全性,数据库用户名和密码详细信息)的哪个hols链接到sql.表示您想在表格中查看数据或在表格中写入数据或使用新值更新现有的表格.
为此,您需要使用


("Here you have to give the connection string"); connection string means which hols connecton data like connection name,type security,database user name and password deatails, command to be exicuted for sql. means u want to see data in a tabel or write a data in table or update exising tabe with new values.
for this u need to use

SqlCommand comm=new SqlCommand();


这篇关于支票簿注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆