Example #1
0
        public string UpdateDocNo(string docCode, long id)
        {
            var order = db.Orders.Find(id);

            order.DocNo = AccDocHelp.CreateDocNo(docCode, id);
            db.SaveChanges();
            return(order.DocNo);
        }
Example #2
0
        public string UpdateDocNo(string docCode, long id, long orderId)
        {
            var invent = db.Inventories.Find(id);

            invent.DocNo = AccDocHelp.CreateDocNo(docCode, orderId);
            db.SaveChanges();
            return(invent.DocNo);
        }
Example #3
0
        public string UpdateDocNo(string docCode, long id)
        {
            var accDoc = db.AccDocs.Find(id);

            accDoc.DocNo = AccDocHelp.CreateDocNo(docCode, id);
            int l = accDoc.DocNo.Length;

            db.SaveChanges();
            return(accDoc.DocNo);
        }