コード例 #1
0
        public static List<SalesDetails> GetSalesDetailsByInvno(string invno)
        {
            var dal = new SalesDetailsDAL();
            var collection = new List<SalesDetails>();

            foreach(DataRow row in dal.GetSalesDetailsByInvno(invno).Rows){
                var instance = new SalesDetails();
                instance.Bind(row);

                collection.Add(instance);
            }

            return collection;
        }
コード例 #2
0
        public static void InsertSalesDetails(SalesDetails instance, string invstatus)
        {
            var dal = new SalesDetailsDAL();

            dal.InsertSalesDetails(instance, invstatus);
        }
コード例 #3
0
        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;
        }