public static List <SalesInfo> GetAllByInvDate(string invdate, int kioskid) { var dal = new SalesInfoDAL(); var collection = new List <SalesInfo>(); foreach (DataRow row in dal.GetAllByInvDate(invdate, kioskid).Rows) { var instance = new SalesInfo(); instance.Bind(row); collection.Add(instance); } return(collection); }
public static List <SalesInfo> GetRemarkedSales(string empid, int kioskid) { var dal = new SalesDetailsDAL(); var collection = new List <SalesInfo>(); foreach (DataRow row in dal.GetRemarkedSales(empid, kioskid).Rows) { var instance = new SalesInfo(); instance.Bind(row); collection.Add(instance); } return(collection); }
public static List <SalesInfo> GetAllSalesInfo() { var dal = new SalesInfoDAL(); var collection = new List <SalesInfo>(); foreach (DataRow row in dal.GetAllSalesInfo().Rows) { var instance = new SalesInfo(); instance.Bind(row); collection.Add(instance); } return(collection); }
public static List <SalesInfo> GetSalesByDateRange(string from, string to, string empid) { var dal = new SalesInfoDAL(); var collection = new List <SalesInfo>(); foreach (DataRow row in dal.GetSalesByDateRange(from, to, empid).Rows) { var ins = new SalesInfo(); ins.Bind(row); collection.Add(ins); } return(collection); }
public static List<SalesInfo> GetSalesByDateRange(string from, string to, string empid) { var dal = new SalesInfoDAL(); var collection = new List<SalesInfo>(); foreach (DataRow row in dal.GetSalesByDateRange(from, to, empid).Rows) { var ins = new SalesInfo(); ins.Bind(row); collection.Add(ins); } return collection; }
public static List<SalesInfo> GetRemarkedSales(string empid, int kioskid) { var dal = new SalesDetailsDAL(); var collection = new List<SalesInfo>(); foreach (DataRow row in dal.GetRemarkedSales(empid, kioskid).Rows) { var instance = new SalesInfo(); instance.Bind(row); collection.Add(instance); } return collection; }
public static List<SalesInfo> GetAllSalesInfo() { var dal = new SalesInfoDAL(); var collection = new List<SalesInfo>(); foreach(DataRow row in dal.GetAllSalesInfo().Rows){ var instance = new SalesInfo(); instance.Bind(row); collection.Add(instance); } return collection; }
public static List<SalesInfo> GetAllByInvDate(string invdate, int kioskid) { var dal = new SalesInfoDAL(); var collection = new List<SalesInfo>(); foreach (DataRow row in dal.GetAllByInvDate(invdate, kioskid).Rows) { var instance = new SalesInfo(); instance.Bind(row); collection.Add(instance); } return collection; }