Ejemplo n.º 1
0
        public void DeleteForm(string keyValue)
        {
            OperatorModel op         = OperatorProvider.Provider.GetCurrent();
            var           F_ItemName = service.FindEntity <Sys_ItemsDetail>(m => m.F_Id == keyValue).F_ItemName;

            service.Delete <Sys_ItemsDetail>(t => t.F_Id == keyValue);
            LogHelper.Info("字典:【" + F_ItemName + "】删除!操作人账号:" + op.UserCode + ",操作人名称:" + op.UserName + ",操作时间" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), OpType.System, null, "", "", ViewLevel.Admin);
        }
Ejemplo n.º 2
0
 public void DeleteForm(string keyValue)
 {
     try
     {
         //添加日志
         LogMess.addLog(DbLogType.Delete.ToString(), "删除成功", "删除数据字典信息【" + GetForm(keyValue).F_ItemName + "】成功!");
     }
     catch { }
     service.Delete(t => t.F_Id == keyValue);
 }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="keyValue"></param>
        public void DeleteForm(string keyValue)
        {
            //service.Delete(t => t.F_Id == keyValue);
            ResultClass <int> _ret = service.Delete(t => t.F_Id == keyValue);

            if (!_ret.Result)
            {
                throw new Exception(_ret.ErrorMessage);
            }
        }
Ejemplo n.º 4
0
 public void DeleteForm(string keyValue)
 {
     service.Delete(t => t.F_Id == keyValue);
 }
Ejemplo n.º 5
0
 public void Delete(ItemsDetailEntity entity)
 {
     service.Delete(entity);
 }
Ejemplo n.º 6
0
 public int Delete(string itemId)
 {
     return(_itemsDetailRepository.Delete(itemId));
 }
Ejemplo n.º 7
0
 public void DeleteForm(string keyValue)
 {
     service.Delete(t => t.IGrowID == keyValue);
 }
Ejemplo n.º 8
0
 public override int Delete(Guid[] primaryKeys)
 {
     _itemsDetailRepository.Delete(t => primaryKeys.Contains(t.ItemId.Value));
     return(base.Delete(primaryKeys));
 }