Ejemplo n.º 1
0
        public void AddReturningBill(string billId, string proId, int feeToCus)
        {
            string now = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
            string lastChangingBillId = dal.GetLastReturningBillId().Rows.Count == 0 ? "" : dal.GetLastReturningBillId().Rows[0][0].ToString();

            dal.AddReturningBill(AddBillBLL.NextId("HDT", lastChangingBillId, 3), now, GetCustomerId(billId), "NV1", billId, proId, feeToCus);
        }
Ejemplo n.º 2
0
        public void SaveBill(string cusId, string staffId, int sum, List <BillProduct> proList)
        {
            string now        = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
            string lastBillId = dal.GetLastBillId().Rows.Count == 0?"":dal.GetLastBillId().Rows[0][0].ToString();

            dal.AddBill(AddBillBLL.NextId("HD", lastBillId, 2), now, cusId, staffId, sum, proList);
        }