コード例 #1
0
ファイル: ItemsDataController.cs プロジェクト: ahbaer/baer
 public ActionResult DeleteForm(string f_Ids)
 {
     foreach (string f_Id in f_Ids.Split(','))
     {
         itemsDetailApp.DeleteForm(f_Id);
     }
     return(Success("删除成功。"));
 }
コード例 #2
0
 public ActionResult DeleteForm(string keyValue)
 {
     if (string.IsNullOrEmpty(keyValue))
     {
         return(Error("未选中任何项。"));
     }
     itemsDetailApp.DeleteForm(keyValue);
     return(Success("删除成功。"));
 }
コード例 #3
0
 public ActionResult DeleteForm(string keyValue)
 {
     try
     {
         itemsDetailApp.DeleteForm(keyValue);
         return(Success("删除成功。"));
     }
     catch (Exception ex)
     {
         return(Error(ex.Message));
     }
 }
コード例 #4
0
        public ActionResult DeleteForm(string keyValue)
        {
            var       module     = new ModuleApp().GetList().Where(a => a.F_Layers == 1 && a.F_EnCode == moduleName).FirstOrDefault();
            var       moduleitem = new ModuleApp().GetList().Where(a => a.F_Layers > 1 && a.F_EnCode == className.Substring(0, className.Length - 10)).FirstOrDefault();
            LogEntity logEntity  = new LogEntity(module.F_FullName, moduleitem.F_FullName, DbLogType.Delete.ToString());

            logEntity.F_Description += DbLogType.Delete.ToDescription();
            try
            {
                logEntity.F_Account  = OperatorProvider.Provider.GetCurrent().UserCode;
                logEntity.F_NickName = OperatorProvider.Provider.GetCurrent().UserName;
                itemsDetailApp.DeleteForm(keyValue);
                logEntity.F_Description += "操作成功";
                new LogApp().WriteDbLog(logEntity);
                return(Success("删除成功。"));
            }
            catch (Exception ex)
            {
                logEntity.F_Result       = false;
                logEntity.F_Description += "操作失败," + ex.Message;
                new LogApp().WriteDbLog(logEntity);
                return(Error(ex.Message));
            }
        }
コード例 #5
0
 public ActionResult DeleteForm(string keyValue)
 {
     itemsDetailApp.DeleteForm(keyValue);
     return(Success("删除成功。"));
 }
コード例 #6
0
 public ActionResult DeleteForm(string keyValue)
 {
     itemsDetailApp.DeleteForm(keyValue);
     base.OperateLog("删除字典:" + keyValue, "/SystemManage/Items/DeleteForm", "字典管理", Application.DbLogType.Delete);
     return(Success("删除成功。"));
 }