Exemplo n.º 1
0
        public static int Add(DateTime date, PackTransaction.TypeX type, int count)
        {
            if (Get(date, type) != null)
            {
                LogBLL.LogsFailAndThrow("Existing datat.");
            }

            RedBloodDataContext db = new RedBloodDataContext();

            StoreFinalize s = new StoreFinalize();
            s.Date = date;
            s.Type = type;
            s.Count = count;
            s.Note = "Process on: " + DateTime.Now.ToString();

            db.StoreFinalizes.InsertOnSubmit(s);
            db.SubmitChanges();

            return 1;
        }
Exemplo n.º 2
0
    public static int Add(DateTime date, PackTransaction.TypeX type, int count)
    {
        if (Get(date, type) != null)
        {
            LogBLL.LogsFailAndThrow("Existing datat.");
        }

        RedBloodDataContext db = new RedBloodDataContext();

        StoreFinalize s = new StoreFinalize();

        s.Date  = date;
        s.Type  = type;
        s.Count = count;
        s.Note  = "Process on: " + DateTime.Now.ToString();

        db.StoreFinalizes.InsertOnSubmit(s);
        db.SubmitChanges();

        return(1);
    }
Exemplo n.º 3
0
 partial void DeleteStoreFinalize(StoreFinalize instance);
Exemplo n.º 4
0
 partial void UpdateStoreFinalize(StoreFinalize instance);
Exemplo n.º 5
0
 partial void InsertStoreFinalize(StoreFinalize instance);