Exemple #1
0
        public OrderDetails(string CodeOrder, string colorOfItem)
        {
            OrderDetailsTable st  = new OrderDetailsTable();
            DataRow           row = st.Find("colorOfItem", "CodeOrder", colorOfItem, CodeOrder);

            this.CodeOrder     = Convert.ToInt32(row["CodeOrder"]);
            this.codeItemStoke = row["codeItemStoke"].ToString();
            this.amount        = Convert.ToInt32(row["amount"]);
            this.priceItem     = Convert.ToInt32(row["priceItem"]);
            this.saleItem      = Convert.ToBoolean(row["saleItem"]);
        }
Exemple #2
0
        public DataRow BuildRow()
        {
            OrderDetailsTable st     = new OrderDetailsTable();
            DataTable         colTbl = st.Dt;
            DataRow           newRow = colTbl.NewRow();

            newRow["CodeOrder"]     = this.CodeOrder;
            newRow["codeItemStoke"] = this.codeItemStoke;
            newRow["amount"]        = this.amount;
            newRow["priceItem"]     = this.priceItem;
            newRow["saleItem"]      = this.saleItem;

            return(newRow);
        }