Exemplo n.º 1
0
        internal static void Add(SpareEntities db, TB_INVENTORY_LOC bill, string operName, OperateType operateType)
        {
            var log = new TL_BILL()
            {
                OperName = operName,
                LogTime  = DateTime.Now,
                BillNum  = bill.BillNum,
                BillType = (int)BillType.InventoryPlan,
                LogType  = operateType.ToString(),
            };

            db.TL_BILL.Add(log);
        }
Exemplo n.º 2
0
        public static void Add(SpareEntities db, TB_BILL bill, string operName, OperateType operateType)
        {
            var log = new TL_BILL()
            {
                OperName = operName,
                LogTime  = DateTime.Now,
                BillNum  = bill.BillNum,
                BillType = bill.BillType,
                LogType  = operateType.ToString(),
            };

            db.TL_BILL.Add(log);
        }