SVN r1103
SVN-Revision: r1103
This commit is contained in:
@@ -138,26 +138,30 @@ namespace Lskj.Business.Impl
|
||||
public static DataRow GetPubAuditProperty(string menuCode)
|
||||
{
|
||||
string field = string.Empty;
|
||||
if (HasExistsColumn("p_systembilltype", "MuitlAuditFlag"))
|
||||
|
||||
DataTable dataTable = GetTableColumns("p_systembilltype");
|
||||
|
||||
if (dataTable.Columns.Contains("MuitlAuditFlag"))
|
||||
{
|
||||
field = ",MuitlAuditFlag";
|
||||
}
|
||||
if (HasExistsColumn("p_systembilltype", "BelowDetailLine"))
|
||||
if (dataTable.Columns.Contains("BelowDetailLine"))
|
||||
{
|
||||
field += ",BelowDetailLine";
|
||||
}
|
||||
if (HasExistsColumn("p_systembilltype", "BelowDetailSql"))
|
||||
if (dataTable.Columns.Contains("BelowDetailSql"))
|
||||
{
|
||||
field += ",BelowDetailSql";
|
||||
}
|
||||
if (HasExistsColumn("p_systembilltype", "MuitlAuditBackFlag"))
|
||||
if (dataTable.Columns.Contains("MuitlAuditBackFlag"))
|
||||
{
|
||||
field += ",MuitlAuditBackFlag";
|
||||
}
|
||||
if (HasExistsColumn("p_systembilltype", "DisableAutomaticRefresh"))
|
||||
if (dataTable.Columns.Contains("DisableAutomaticRefresh"))
|
||||
{
|
||||
field += ",DisableAutomaticRefresh";
|
||||
}
|
||||
|
||||
string sqlValue = string.Format("select mastertable,overbacksql,overbackkey,overbackoper,overbackcond,prefix,formkey,billPrintType {0} from p_systembilltype where typecode=@DllCoid", field);
|
||||
DataTable dtTable = SqlHelper.ExecuteDataTable(sqlValue, new SqlParameter[] { new SqlParameter("@DllCoid", menuCode) });
|
||||
return dtTable.Rows.Count > 0 ? dtTable.Rows[0] : null;
|
||||
|
||||
Reference in New Issue
Block a user