public List<Sales_Tax_B> Get_Sales_Tax_B(int Custom_Invoice_ID) { List<Sales_Tax_B> _List_Collection = new List<Sales_Tax_B>(); DataTable dt = Sales_Tax_DA.Get_Sales_Tax_B(Custom_Invoice_ID); foreach (DataRow row in dt.Rows) { Sales_Tax_B _Sales_Tax_B = new Sales_Tax_B(); _Sales_Tax_B.Quantity = int.Parse(row["Quantity"].ToString()); _Sales_Tax_B.Unit = row["Unit"].ToString(); _Sales_Tax_B.Fcy = float.Parse(row["Fcy"].ToString()); _List_Collection.Add(_Sales_Tax_B); } return _List_Collection; }
public List<Sales_Tax_B> Get_Collection(int ID) { List<Sales_Tax_B> _List_Collection = new List<Sales_Tax_B>(); DataTable dt = Sales_Tax_DA.Get_Collection(ID); foreach (DataRow row in dt.Rows) { Sales_Tax_B _Sales_Tax_B = new Sales_Tax_B(); _Sales_Tax_B.ID = int.Parse(row["ID"].ToString()); _Sales_Tax_B.Quantity = int.Parse(row["Quantity"].ToString()); _Sales_Tax_B.Unit = row["Unit"].ToString(); _Sales_Tax_B.Description = row["Description"].ToString(); _Sales_Tax_B.Fcy = float.Parse(row["Fcy"].ToString()); _Sales_Tax_B.ExchangeRate = float.Parse(row["ExchangeRate"].ToString()); _Sales_Tax_B.ST_Rate = float.Parse(row["ST_Rate"].ToString()); _List_Collection.Add(_Sales_Tax_B); } return _List_Collection; }