|
|
@ -6487,7 +6487,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (visiblerange == "1")
|
|
|
|
else if (visiblerange == "1")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
str = " COMPANYID='" + companyid + "' ";
|
|
|
|
str = " COMPANYID='" + companyid + "' or SALECORPID='"+ companyid + "' ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (visiblerange == "5")
|
|
|
|
else if (visiblerange == "5")
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -6502,11 +6502,11 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (str == "")
|
|
|
|
if (str == "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
str = " (COMPANYID='" + Convert.ToString(reader["COMPANYID"]) + "'";
|
|
|
|
str = " (COMPANYID='" + Convert.ToString(reader["COMPANYID"]) + "' or SALECORPID='"+ Convert.ToString(reader["COMPANYID"]) + "'";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
str = str + " or COMPANYID='" + Convert.ToString(reader["COMPANYID"]) + "'";
|
|
|
|
str = str + " or COMPANYID='" + Convert.ToString(reader["COMPANYID"]) + "' or SALECORPID='"+ Convert.ToString(reader["COMPANYID"]) +"' ";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
str = str + ")";
|
|
|
|
str = str + ")";
|
|
|
|