freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

[互聯(lián)網(wǎng)]網(wǎng)上購(gòu)書(shū)管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)-資料下載頁(yè)

2025-01-18 13:05本頁(yè)面
  

【正文】 private Int16 categoryId。//目錄編號(hào) public Int16 CategoryId { get { return categoryId。 } set { categoryId = value。 } } private string categoryName。//目錄名稱(chēng) public string CategoryName { get { return categoryName。 } set { categoryName = value。 } } private string categoryDesc。//目錄描述 public string CategoryDesc { get { return categoryDesc。 } set { categoryDesc = value。 } } public CategoryInfo() { } public CategoryInfo(Int16 categoryId, string categoryName, string categoryDesc) { = categoryId。 = categoryName。 = categoryDesc。 } //查詢所有目并生成表格 public static ListCategoryInfo getList() { CategoryInfo ci = null。 ListCategoryInfo list=new ListCategoryInfo()。 string sqlstring = select * from Category。 OperateDB od = new OperateDB()。 SqlDataReader dr = (sqlstring)。 while (()) { ci = new CategoryInfo()。 = (0)。 = (1)。 = (2)。(ci)。 }()。return list。} //添加目錄 public static int addCategory(CategoryInfo ci) {int result = 0。 string sqlString = insert into Category values(39。++39。,39。++39。,39。++39。)。OperateDB od = new OperateDB()。result = (sqlString)。 return result。}//獲取所有的目錄Id public static ArrayList getListCategoryId() { ArrayList list = new ArrayList()。 string sqlstring = select CategoryId from Category。 OperateDB od = new OperateDB()。SqlDataReader dr = (sqlstring)。while (()){ ((dr[CategoryId].ToString()))。} ()。return list。} //根據(jù)categoryId刪除目錄 public static int delCategoryById(Int16 categoryId) {int result = 0。 string sqlstring = delete from Category where CategoryId= + categoryId。OperateDB od = new OperateDB()。result = (sqlstring)。return result。}}}訂單明細(xì)管理實(shí)用類(lèi):namespace BookShopOnline{ public class LineItemInfo { private int orderId。 public int OrderId { get { return orderId。 } set { orderId = value。 } } private int lineNum。 public int LineNum { get { return lineNum。 } set { lineNum = value。 } } private string bookId。 public string BookId { get { return bookId。 } set { bookId = value。 } } private int quantity。 public int Quantity { get { return quantity。 } set { quantity = value。 } } private decimal unitPrice。 public decimal UnitPrice { get { return unitPrice。 } set { unitPrice = value。 } } //不帶參數(shù)的構(gòu)造函數(shù) public LineItemInfo() { } 帶參數(shù)的構(gòu)造函數(shù) public LineItemInfo(int lineNum, string bookId, int quantity, decimal unitPrice) { = lineNum。 = bookId。 = quantity。 = unitPrice。 } public decimal Subtotal { get { return * 。 } } //生成訂單時(shí)向LineItem插入數(shù)據(jù) public static int addLineItem(LineItemInfo li) { int result = 0。 string sqlString = insert into LineItem values(0,39。++39。,39。++39。,39。++39。,39。++39。)。 OperateDB od = new OperateDB()。 result = (sqlString)。 return result。 } //根據(jù)lineNum查詢LineItem中的信息 public static ListLineItemInfo getListByOrderId(int LineNum) { ListLineItemInfo list = new ListLineItemInfo()。 LineItemInfo lif = null。 string sqlString = select * from LineItem where OrderId= + LineNum。 OperateDB od = new OperateDB()。 SqlDataReader dr = (sqlString)。 while (()) { lif = new LineItemInfo()。 = (dr[OrderId].ToString())。 = (dr[LineNum].ToString())。 = dr[BookId].ToString()。 = (dr[Quantity].ToString())。 = (dr[UnitPrice].ToString())。 (lif)。 } ()。 return list。 } }}每本書(shū)的詳細(xì)信息實(shí)用類(lèi):namespace BookShopOnline{ public class ItemInfo { private string bookId。 public string BookId { get { return bookId。 } set { bookId = value。 } } private string bookAuthor。 public string BookAuthor { get { return bookAuthor。 } set { bookAuthor = value。 } } private string publisher。 public string Publisher { get { return publisher。 } set { publisher = value。 } } private string publishDate。 public string PublishDate { get { return publishDate。 } set { publishDate = value。 } } private decimal bookPrice。 public decimal BookPrice { get { return bookPrice。 } set { bookPrice = value。 } } private decimal listPrice。 public decimal ListPrice { get { return listPrice。 } set { listPrice = value。 } } private decimal unitCost。 public decimal UnitCost { get { return unitCost。 } set { unitCost = value。 } } private string itemName。 public string ItemName { get { return itemName。 } set { itemName = value。 } }
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1