|
|
|
|
|
|
35
|
deptid = CurrentUser.UserData.F_DeptId;
|
35
|
deptid = CurrentUser.UserData.F_DeptId;
|
|
36
|
deptcode = CurrentUser.UserData.F_DeptCode;
|
36
|
deptcode = CurrentUser.UserData.F_DeptCode;
|
|
37
|
}
|
37
|
}
|
|
|
|
38
|
+ string telunit = HttpUtility.UrlDecode(RequestString.GetQueryString("telunit"));
|
|
38
|
string callstate = HttpUtility.UrlDecode(RequestString.GetQueryString("callstate"));
|
39
|
string callstate = HttpUtility.UrlDecode(RequestString.GetQueryString("callstate"));
|
|
39
|
string calltype = HttpUtility.UrlDecode(RequestString.GetQueryString("calltype"));
|
40
|
string calltype = HttpUtility.UrlDecode(RequestString.GetQueryString("calltype"));
|
|
40
|
string starttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
|
41
|
string starttime = HttpUtility.UrlDecode(RequestString.GetQueryString("starttime"));
|
|
|
|
|
|
|
121
|
}
|
122
|
}
|
|
122
|
if (dept != null && dept.Trim() != "")
|
123
|
if (dept != null && dept.Trim() != "")
|
|
123
|
{
|
124
|
{
|
|
124
|
- sql += " and UserCode in (select F_UserCode from T_Sys_UserAccount where F_DeptId=" + dept.Trim() + ")";
|
|
|
|
|
|
125
|
+ sql += " and UserCode in (select F_UserCode from T_Sys_UserAccount WITH(NOLOCK) where F_DeptId=" + dept.Trim() + ")";
|
|
125
|
}
|
126
|
}
|
|
126
|
if (dealtype != null && dealtype.Trim() != "")
|
127
|
if (dealtype != null && dealtype.Trim() != "")
|
|
127
|
{
|
128
|
{
|
|
|
|
|
|
|
132
|
{
|
133
|
{
|
|
133
|
sql += " and CallNumber like '%" + phone + "%'";
|
134
|
sql += " and CallNumber like '%" + phone + "%'";
|
|
134
|
}
|
135
|
}
|
|
|
|
136
|
+ if (telunit != null && telunit.Trim() != "")
|
|
|
|
137
|
+ {
|
|
|
|
138
|
+ sql += " and CallNumber IN (SELECT F_Telephone FROM T_Cus_CustomerBase WITH(NOLOCK) WHERE F_CustomerIndustry LIKE '%" + telunit.Trim() + "%' and F_DeleteFlag=0) ";
|
|
|
|
139
|
+ }
|
|
135
|
if (callstate.Trim() != "")
|
140
|
if (callstate.Trim() != "")
|
|
136
|
{
|
141
|
{
|
|
137
|
sql += " and CallState='" + callstate + "'";
|
142
|
sql += " and CallState='" + callstate + "'";
|
|
|
|
|
|
|
160
|
}
|
165
|
}
|
|
161
|
int recordCount = 0;
|
166
|
int recordCount = 0;
|
|
162
|
dt = BLL.PagerBLL.GetListPager(
|
167
|
dt = BLL.PagerBLL.GetListPager(
|
|
163
|
- "T_Call_CallRecords left join T_Sys_UserAccount on UserCode=F_UserCode",
|
|
|
|
|
|
168
|
+ "T_Call_CallRecords WITH(NOLOCK) left join T_Sys_UserAccount on UserCode=F_UserCode",
|
|
164
|
"CallRecordsId",
|
169
|
"CallRecordsId",
|
|
165
|
"T_Call_CallRecords.*,T_Sys_UserAccount.F_SeartGroup",
|
170
|
"T_Call_CallRecords.*,T_Sys_UserAccount.F_SeartGroup",
|
|
166
|
sql,
|
171
|
sql,
|