|
|
|
@ -107,13 +107,13 @@ namespace DSWeb.MvcShipping.DAL.MsBaseInfoDAL
|
|
|
|
|
strSql.Append("SELECT ");
|
|
|
|
|
if (strLANGUAGES == "en-us")
|
|
|
|
|
{
|
|
|
|
|
strSql.Append(" GID,NAME,ENAME DESCRIPTION,MODULEURL,SORT,PARENTID,TYPE");
|
|
|
|
|
strSql.Append(" GID,NAME,ENAME DESCRIPTION,MODULEURL,SORT,PARENTID,TYPE,SHOWROOTSTATE");
|
|
|
|
|
strSql.Append(",(select ENAME from sys_module where GID=m.PARENTID) AS PARENTNAME");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
strSql.Append(" GID,NAME,DESCRIPTION,MODULEURL,SORT,PARENTID,TYPE");
|
|
|
|
|
strSql.Append(" GID,NAME,DESCRIPTION,MODULEURL,SORT,PARENTID,TYPE,SHOWROOTSTATE");
|
|
|
|
|
strSql.Append(",(select DESCRIPTION from sys_module where GID=m.PARENTID) AS PARENTNAME");
|
|
|
|
|
}
|
|
|
|
|
strSql.Append(" from sys_module m ");
|
|
|
|
@ -317,6 +317,9 @@ namespace DSWeb.MvcShipping.DAL.MsBaseInfoDAL
|
|
|
|
|
if (reader["SORT"] != DBNull.Value)
|
|
|
|
|
data.SORT = Convert.ToInt16(reader["SORT"]);
|
|
|
|
|
data.TYPE = Convert.ToInt16(reader["TYPE"]);
|
|
|
|
|
if (reader["SHOWROOTSTATE"] != DBNull.Value)
|
|
|
|
|
data.SHOWROOTSTATE = Convert.ToInt16(reader["SHOWROOTSTATE"]);
|
|
|
|
|
|
|
|
|
|
if (data.MODULEURL == "#")
|
|
|
|
|
{
|
|
|
|
|
data.leaf = false;
|
|
|
|
|