public static SalesInfo SelectInvoiceNo(string invno) { var dal = new SalesInfoDAL(); var instance = new SalesInfo(); foreach (DataRow row in dal.SelectInvoiceNo(invno).Rows) { instance.NewBind001(row); } return instance; }
public static void UpdateSalesInfo(SalesInfo si) { var dal = new SalesInfoDAL(); dal.UpdateSalesInfo(si); }
public static void InsertSalesInfo(SalesInfo instance) { var dal = new SalesInfoDAL(); dal.InsertSalesInfo(instance); }
public static List<SalesInfo> GetSalesByKioskDateRange(string from, string to, int kioskid) { var dal = new SalesInfoDAL(); var collection = new List<SalesInfo>(); foreach (DataRow row in dal.GetSalesByKioskDateRange(from, to, kioskid).Rows) { var ins = new SalesInfo(); ins.Bind2(row); collection.Add(ins); } 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; }
public static void CancelledSalesInfo(string invno) { var dal = new SalesInfoDAL(); dal.CancelledSalesInfo(invno); }