/// <summary> /// 删除数据字典 /// </summary> public JsonResult DeleteDictionary() { RequestUser(); int ID; int FID; if (GetParams("ID") != null) { ID = int.Parse(GetParams("ID")); //调用添加数据字典方法 DeleteDataDictionaryParams ddap = new DeleteDataDictionaryParams(); if (GetParams("FID") != null) { FID = int.Parse(GetParams("FID")); ddap.ID = ID; ddap.FID = FID; } else { ddap.ID = ID; } //调用添加数据字典方法 IDDC.Delete(ddap); resultData.res = 200; resultData.msg = "删除成功"; return(Json(resultData)); } else { resultData.msg = "ID不能为空"; return(Json(resultData)); } }
/// <summary> /// 删除 /// </summary> public void Delete(DeleteDataDictionaryParams @params) { if (@params.FID.HasValue) { DeleteC(@params.FID.Value, @params.ID); } else { DeleteF(@params.ID); } InitList(); }
/// <summary> /// 删除 /// </summary> public void Delete(DeleteDataDictionaryParams @params) { IDDM.Delete(@params); }