SVN r1103
SVN-Revision: r1103
This commit is contained in:
@@ -353,9 +353,13 @@ namespace Lskj.Business.Impl
|
||||
DataTable dt = SqlHelper.ExecuteDataTable(sqlValue, new SqlParameter[] { new SqlParameter("@sName", sName) });
|
||||
if (dt.Rows.Count > 1)
|
||||
{
|
||||
string webpath11 = Lskj.Web.Core.Util.FileUtil.UrlEncode(HttpUtility.UrlDecode(webpath), false);
|
||||
//if (!webpath.StartsWith("%")) webpath = "%" + webpath;
|
||||
sqlValue = string.Format("select * from P_fm_FileTab where sName='{0}' and (webpath like '%{1}' or webpath like '%{2}')", sName, webpath, HttpUtility.UrlDecode(webpath).Replace("#", "%23").Replace("%2f", "/"));
|
||||
sqlValue = string.Format("select * from P_fm_FileTab where sName='{0}' and (webpath like '%{1}' )", sName, webpath11);
|
||||
|
||||
//sqlValue = string.Format("select * from P_fm_FileTab where sName='{0}' and (webpath like '%{1}' or webpath like '%{2}' or webpath like '%{3}')", sName, webpath, HttpUtility.UrlDecode(webpath).Replace("#", "%23").Replace("%2f", "/").Replace("(", "%ef%bc%88").Replace(")", "%ef%bc%89"), HttpUtility.UrlDecode(webpath));
|
||||
dt = SqlHelper.ExecuteDataTable(sqlValue);
|
||||
|
||||
}
|
||||
return dt.Rows.Count > 0 ? dt.Rows[0] : null;
|
||||
}
|
||||
@@ -428,25 +432,4 @@ namespace Lskj.Business.Impl
|
||||
public static DataTable GetCameraFileData()
|
||||
{
|
||||
string sqlValue = @" select '1' id , 'stepCode' fieldName, 65 width, '' sysname , '编号' username, '' dataFormat union
|
||||
select '2' , 'Name' ,148 , '' , '文件名' , '' union
|
||||
select '3' , 'Created' ,120 , '' , '时间' , '' union
|
||||
select '4' , 'key' ,67 , '' , '隐藏字段' , '' ";
|
||||
return SqlHelper.ExecuteDataTable(sqlValue);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取附件条数</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-08-10 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>System.Int32.</returns>
|
||||
public static int GetFileCount(string dirid, string pid)
|
||||
{
|
||||
DataTable dt = SqlHelper.ExecuteDataTable(string.Format("select 1 from P_fm_FileTab where parentId='{0}'", GetAttachDirectoryId(dirid, pid)));
|
||||
return dt == null ? 0 : Convert.ToInt32(dt.Rows.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
select '2' , 'Name' ,
|
||||
Reference in New Issue
Block a user