Example #1
0
 static void saveUpdateLog(string itemName, string originalContent, string newContent, OperatorRole role, string key, string account)
 {
     saveLog(OperationType.Update, string.Format("修改{0}。由 {1} 修改为 {2}", itemName, originalContent, newContent), role, key, account);
 }
Example #2
0
 static void saveAddLog(string itemName, string content, OperatorRole role, string key, string account)
 {
     saveLog(OperationType.Insert, "添加" + itemName + "。" + content, role, key, account);
 }
Example #3
0
        static void saveLog(OperationType operationType, string content, OperatorRole role, string key, string account)
        {
            var log = new Log.Domain.OperationLog(OperationModule.商品, operationType, account, role, key, content);

            LogService.SaveOperationLog(log);
        }
Example #4
0
 static void saveDeleteLog(string itemName, string content, OperatorRole role, string key, string account)
 {
     saveLog(OperationType.Delete, "删除" + itemName + "。" + content, role, key, account);
 }
Example #5
0
 static void saveUpdateLog(string itemName, int exChange, string commdityName, OperatorRole role, string key, string account)
 {
     saveLog(OperationType.Update, string.Format("{0} 兑换{1}件,{2}商品", itemName, exChange, commdityName), role, key, account);
 }
Example #6
0
 static void saveUpdateLog(string itemName, string content, OperatorRole role, string key, string account)
 {
     saveLog(OperationType.Update, string.Format("{0}修改商品:{1}", itemName, content), role, key, account);
 }