0% found this document useful (0 votes)
90 views2 pages

Class Diagaram

The class diagram shows various classes related to an online store including Payment, Province, Member, Order, OrderDetails, Report, Administrator, ShippingInformation, Product, and Category. Relationships between the classes include one-to-many between Order and OrderDetails, and one-to-many between Product and Category. The classes contain properties and methods for common operations like signup, login, place order, view reports, and manage products and members.

Uploaded by

ilham putra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views2 pages

Class Diagaram

The class diagram shows various classes related to an online store including Payment, Province, Member, Order, OrderDetails, Report, Administrator, ShippingInformation, Product, and Category. Relationships between the classes include one-to-many between Order and OrderDetails, and one-to-many between Product and Category. The classes contain properties and methods for common operations like signup, login, place order, view reports, and manage products and members.

Uploaded by

ilham putra
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

class Class Diagram Payment + + paymentID: string bank: string accountNumber: string accountName: string transferDate: date transferNominal:

double description: string memberID: string invoiceNO: string status: char PaymentProduct(string, string, string, string, DateTime, double, string, string) : bool GetData() : Object[] 1 1 + + + + + + + + InputOrder(string, DateTime, string, char, DateTime, string, double, double) : void ChangeOrderStatus(string, char) : bool InputShippingCost(string, double) : bool OrderHistory(string, string, string) : Object[] GetDataForAdmin() : Object[] GetDataWhenJneDown() : Object[] SearchData(string, string) : Object[] SearchData(string, string, string) : Object[] 1 1 invoiceNO: string orderDate: date memberID: string orderStatus: char maturity: date shippingInfoID: string shippingPrice: double totalPrice: double Order + + + + Cart cartID: int productID: string cartSize: string cartQty: int cartDate: date cartSession: string AddToCart(string, string, string, int) : bool GetData(string) : Object[] DeleteData(int) : bool UpdateData(int, int) : bool

Prov ince + + + + provinceID: byte provinceName: string ProvinceIU(byte, string) : bool DeleteProvince(int) : bool GetData() : List<province> SearchData(string) : List<province>

Member + + + + + + + + + memberID: string firstName: string lastName: string email: string password: string address: string city: string provinceID: byte phoneNO: string postCode: string joinDate: date activationCode: string status: byte SignUp(string, string, string, string, string, string, byte, string, string, DateTime) : string SignIn(string, string) : bool SignOut() : void Activation(string, string) : bool ForgotPass(string) : bool UpdateDataMember(string, string, string, string, string, string, string, byte, string, string) : bool GetData(string, string) : List<member> SearchData(string, string) : List<member> DeleteData(string) : bool

1..* OrderDetails + id: int invoiceNO: string productID: string size: string quantity: int Total: double InputOrderDetails(string, string, string, int, double) : void 1 + Report reportID: string reportDat: date description: string invoiceNo: string total: double SaveReport(string, string) : bool

Administrator Product + + username: string password: string SignIn(string, string) : bool SignOut() : void

ShippingInformation + shippingInfoID: string firstName: string lastName: string address: string city: string province: string phoneNO: string postCode: string InputShippingInformation(string, string, string, string, string, string, string) : void

+ + + +

productID: string productName: string productPrice: double productImage: string productStock: int productDescription: string categoryID: string ProductIU(string, string, string, string, string, double, int) : bool DeleteProduct(string) : bool GetData(char, string) : List<product> SearchData(string, string) : List<product>

Category 1 + + + + categoryID: string categoryName: string categoryImage: string CategoryIU(string, string, string) : bool DeleteCategory(string) : bool GetData() : List<category> SearchData(string, string) : List<category>

1..*

Class Diagaram Sebelum Linq

class Class Diagram Payment + + PaymentProduct(string, string, string, string, DateTime, double, string, string) : bool 1 GetData() : Object[] 1 Prov ince + + + + ProvinceIU(byte, string) : bool DeleteProvince(int) : bool GetData() : List<province> 1 SearchData(string) : List<province> 1 + + + + + + + + + Order 1 Order() InputOrder(string, DateTime, string, char, DateTime, string, double, double) : void ChangeOrderStatus(string, char) : bool InputShippingCost(string, double) : bool OrderHistory(string, string, string) : Object[] GetDataForAdmin() : Object[] GetDataWhenJneDown() : Object[] SearchData(string, string) : Object[] SearchData(string, string, string) : Object[] 1..* OrderDetails + + OrderDetails() InputOrderDetails(string, string, string, int, double) : void

property + OrderDetail() : orderDetail

Category + + + + CategoryIU(string, string, string) : bool DeleteCategory(string) : bool GetData() : List<category> SearchData(string, string) : List<category> 1 1 Product + + + + + categoryID() : string ProductIU(string, string, string, string, string, double, int) : bool DeleteProduct(string) : bool GetData(char, string) : List<product> 1 SearchData(string, string) : List<product> +

property + MyOrder() : order + InvoiceNO() : string 1

Report 1 1 + SaveReport(string, string) : bool

1 1 1 1 1 System.Data.Linq.DataContext MoistOnlineStoreDataContext MoistOnlineStoreDataContext() 1 + + Administrator SignIn(string, string) : bool SignOut() : void 1 1 Encrypt + + base64Encode(string) : string base64Decode(string) : string 1

Cart 1 + + + + AddToCart(string, string, string, int) : bool GetData(string) : Object[] DeleteData(int) : bool UpdateData(int, int) : bool

1 1 property + administrators() : System.Data.Linq.Table<administrator> + shippingInformations() : System.Data.Linq.Table<shippingInformation> + carts() : System.Data.Linq.Table<cart> + categories() : System.Data.Linq.Table<category> 1 + cities() : System.Data.Linq.Table<city> + contents() : System.Data.Linq.Table<content> 1 + members() : System.Data.Linq.Table<member> + orders() : System.Data.Linq.Table<order> + orderDetails() : System.Data.Linq.Table<orderDetail> + payments() : System.Data.Linq.Table<payment> + products() : System.Data.Linq.Table<product> 1 + provinces() : System.Data.Linq.Table<province> + reportings() : System.Data.Linq.Table<reporting> 1 1 Member 1

Activ ation 1 1 Email 1 + SendEmail(string, string, string, string) : void + GenerateCode(int) : string

1 ShippingInformation + InputShippingInformation(string, string, string, string, string, string, string) : void

property + ShippingInfo() : shippingInformation + shippingInfoID() : string

+ + + + + + + + +

SignUp(string, string, string, string, string, string, byte, string, string, DateTime) : string SignIn(string, string) : bool SignOut() : void 1 Activation(string, string) : bool ForgotPass(string) : bool UpdateDataMember(string, string, string, string, string, string, string, byte, string, string) : bool GetData(string, string) : List<member> SearchData(string, string) : List<member> 1 DeleteData(string) : bool

Class Diagaram Sesudah Linq

You might also like