public ItemStock(string IDCust) { ItemStockTable st = new ItemStockTable(); DataRow row = st.Find("codeItemInStoke", codeItemInStoke); this.codeItemInStoke = row["codeItemInStoke"].ToString(); this.CodeItem = row["CodeItem"].ToString(); this.colorOfItem = Convert.ToInt32(row["colorOfItem"]); this.codeSize = Convert.ToInt32(row["codeSize"]); this.amountOfStoke = Convert.ToInt32(row["amountOfStoke"]); this.minStoke = Convert.ToInt32(row["minStoke"]); this.maxStoke = Convert.ToInt32(row["maxStoke"]); }
public DataRow BuildRow() { ItemStockTable st = new ItemStockTable(); DataTable stuTbl = st.Dt; DataRow newRow = stuTbl.NewRow(); newRow["codeItemInStoke"] = this.codeItemInStoke; newRow["CodeItem"] = this.CodeItem; newRow["colorOfItem"] = this.colorOfItem; newRow["codeSize"] = this.codeSize; newRow["amountOfStoke"] = this.amountOfStoke; newRow["minStoke"] = this.minStoke; newRow["maxStoke"] = this.maxStoke; return(newRow); }