• 大小: 0.08M
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-23
  • 语言: Java
  • 标签: 其他  

资源简介

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个文件信息

评论

共有 条评论