资源简介
JavaSolutionofTermProject-OsricJava.zip
代码片段和文件信息
/**
* Summary description for Customer.
*/
public class Customer
{
private int Number Priority;
private String Name Address1 Address2 City Province PostalCode Country PhoneNumber;
public Customer()
{
}
// Function setting Customer attributes
// Input: Customer attributes
// Output: None
public Customer(String id String name String address1 String address2
String city String province String postalcode
String country String phonenumber String priority)
{
Number = Integer.parseInt(id);
Name = name;
Address1 = address1;
Address2 = address2;
City = city;
Province = province;
PostalCode = postalcode;
Country = country;
PhoneNumber = phonenumber;
Priority = Integer.parseInt(priority);
}
// Function calling Set Information
// Input: Customer buffer information to be set
// Output: None
public Customer(String bufferinfo)
{
setInformation(bufferinfo);
}
//**************************** Set Functions ********************************
void setCustomerNumber(String newNumber)
{
Number = Integer.parseInt(newNumber);
}
void setCustomerName(String newName)
{
Name = newName;
}
String getCustomerName()
{
return Name;
}
void setCustomerAddress1(String newAddress1)
{
Address1 = newAddress1;
}
void setCustomerAddress2(String newAddress2)
{
Address2 = newAddress2;
}
void setCustomerCity(String newCity)
{
City = newCity;
}
void setCustomerPostalCode(String newPostalCode)
{
PostalCode = newPostalCode;
}
void setCustomerProvince(String newProvince)
{
Province = newProvince;
}
void setCustomerCountry(String newCountry)
{
Country = newCountry;
}
void setCustomerPhoneNumber(String newPhoneNumber)
{
PhoneNumber = newPhoneNumber;
}
void setCustomerPriority(int newPriority)
{
Priority = newPriority;
}
// Function: Function to get new customer information from user set new information
// and save information to Customer_File
// Input: None
// Output: int new customer number
int setCustomerInformation()
{
String name;
Customer_File cFile = new Customer_File();
String yn;
System.out.print(“Please enter the customer‘s name: “);
name = Get_Input.readString(50);
//Customer not found get a new number
int number = cFile.getNewNumber();
setCustomerNumber(Integer.toString(number));
setCustomerName(name);
System.out.print(“Please enter Address Line 1: “);
setCustomerAddress1(Get_Input.readString(50));
System.out.print(“Please enter Address Line 2: “);
setCustomerAddress2(Get_Input.readString(50));
System.out.print(“Please enter City: “);
setCustomerCity(Get_Input.readString(50));
System.out.print(“Please enter State/Province: “);
setCustomerProvince(Get_Input.readString(50));
System.out.print(“Please enter Postal Code: “);
setCustomerPostalCod
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5172 2005-08-31 22:34 Java\Customer.class
文件 7566 2005-08-23 22:03 Java\Customer.java
文件 2606 2005-08-31 22:34 Java\Customer_File.class
文件 5986 2005-08-23 22:10 Java\Customer_File.java
文件 376 2005-08-29 21:11 Java\Customer_file.txt
文件 3873 2005-08-31 22:34 Java\Get_Input.class
文件 7584 2005-08-29 23:56 Java\Get_Input.java
文件 1247 2005-08-31 22:34 Java\Maintain_Customer.class
文件 3868 2005-08-23 22:52 Java\Maintain_Customer.java
文件 3887 2005-08-31 22:34 Java\Maintain_Service_Request.class
文件 7227 2005-08-30 23:12 Java\Maintain_Service_Request.java
文件 1083 2005-08-31 22:34 Java\Maintain_Technician.class
文件 1128 2005-08-23 23:05 Java\Maintain_Technician.java
文件 40 2005-08-14 23:46 Java\osric statuses.txt
文件 4254 2005-08-31 22:34 Java\Osric.class
文件 7535 2005-08-30 23:12 Java\Osric.java
文件 2583 2005-08-31 22:34 Java\Print_Invoice_Report.class
文件 2763 2005-08-29 21:15 Java\Print_Invoice_Report.java
文件 1947 2005-08-31 22:34 Java\Print_Outstanding_Job_Report.class
文件 1757 2005-08-29 21:15 Java\Print_Outstanding_Job_Report.java
文件 5054 2005-08-31 22:34 Java\Print_Reports.class
文件 10917 2005-08-30 23:31 Java\Print_Reports.java
文件 2287 2005-08-31 22:34 Java\Print_Service_Request_Assignment_Report.class
文件 2342 2005-08-29 21:16 Java\Print_Service_Request_Assignment_Report.java
文件 3022 2005-08-31 22:34 Java\Print_Statistics_Report.class
文件 3969 2005-09-01 00:00 Java\Print_Statistics_Report.java
文件 1978 2005-08-31 22:34 Java\Print_Waiting_List_Report.class
文件 1853 2005-08-29 21:09 Java\Print_Waiting_List_Report.java
目录 0 2005-08-30 09:07 Java\Sample Files - Customer w Priority\
文件 516 2005-09-01 00:31 Java\Sample Files - Customer w Priority\Beginning Statistics.txt
文件 376 2005-08-29 21:11 Java\Sample Files - Customer w Priority\Customer_file.txt
............此处省略59个文件信息
- 上一篇:Android 贪吃蛇游戏源代码
- 下一篇:智能停车场收费系统设计源码
相关资源
- 药品进销存管理系统(论文范文_JSP
- Java写的一个简单的字体更改程序
- 尚硅谷Java视频Java8新特性视频教程
- 关于CommVault统一数据管理方案
- 基于CenGRP3.0 烟草行业企业整合解决方
- java并发编程实战高清版pdf
- java并发编程实战pdf
- 实现jsp页面二级下拉框联动,实时读
- 北师大学珠海校区实施SunONE数字校园
- Java-核心技术-36-讲李运华完.pdf
- 小工具,解决oschina码云svn文件夹不能
- Sun公司为中国客户提供Java架构咨询与
- 美国Holy Cross 医院使用Sun 解决方案对
- 立邦漆公司向Sun架构的移植预期使总
- 通用电气公司基于Sun 平台部署其全球
- jbpm(juel-api.jar)
- jstl 和 standard jar 包
- 验证全志R18的LCD+HDMI双屏异显
- jsp网站模板
- 《21天学通SQL Server》源码
- JSP多文件上传同时上传
- J2EE服务支持平台下融通供应商服务系
- Data Structures and Algorithm Analysis in Java
- Thinking In Java第五版
- think in java中文第五版
- JAVA JDK百度网盘地址
- jdk1.9安装包
- NCC-OpenAPI文档.zip
- JAVA并发编程实战.pdf
- Java字节码转换工具—Retrotranslato
评论
共有 条评论