/// <summary> /// 获取一个文件夹信息 /// </summary> public void GetOneFolder() { int FD_ID = Convert.ToInt32(Request["FD_ID"]); SYS_FOLDER f = db.SYS_FOLDER.Where(o => o.FD_ID == FD_ID).FirstOrDefault(); string str_result = new AjaxObjectResult(f).ToString(); Response.Write(str_result); }
/// <summary> /// 按照文件夹获取文件 /// </summary> public void GetFileByFolder() { int FD_ID = Convert.ToInt32(Request["FD_ID"]); List <SYS_FILE> list_file = db.SYS_FILE.Where(o => o.FL_FD_ID == FD_ID && o.FL_ACTIVE == true).ToList(); string str_result = new AjaxObjectResult(list_file).ToString(); Response.Write(str_result); }
/// <summary> /// 获取一个文件信息 /// </summary> public void GetOneFile() { int FL_ID = Convert.ToInt32(Request["FL_ID"]); SYS_FILE f = db.SYS_FILE.Where(o => o.FL_ID == FL_ID).FirstOrDefault(); string str_result = new AjaxObjectResult(f).ToString(); Response.Write(str_result); }