Exemple #1
0
        public List <BusinessSaleInfo> GetSaleInfo(int no)
        {
            var bills = ds.GetSaleInfoData(no);
            List <BusinessSaleInfo> fullList = new List <BusinessSaleInfo>();

            for (int i = 0; i < bills.Rows.Count; i++)
            {
                si = new BusinessSaleInfo();

                si.Name      = bills.Rows[i][0].ToString();
                si.Quantity  = bills.Rows[i][1].ToString();
                si.Price     = bills.Rows[i][2].ToString();
                si.Total     = bills.Rows[i][3].ToString();
                si.Bill      = bills.Rows[i][4].ToString();
                si.Net_Total = bills.Rows[i][5].ToString();
                si.Date      = bills.Rows[i][6].ToString();

                fullList.Add(si);
            }

            return(fullList);
        }