|
|
@@ -25,7 +25,7 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
25
|
25
|
/// 获取客户列表
|
|
26
|
26
|
/// </summary>
|
|
27
|
27
|
/// <returns></returns>
|
|
28
|
|
- public ActionResult GetList()
|
|
|
28
|
+ public ActionResult GetList(int isdc=0)
|
|
29
|
29
|
{
|
|
30
|
30
|
if (Request.IsAuthenticated)
|
|
31
|
31
|
{
|
|
|
@@ -110,6 +110,23 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
110
|
110
|
{
|
|
111
|
111
|
pagesize = Convert.ToInt32(strpagesize);
|
|
112
|
112
|
}
|
|
|
113
|
+
|
|
|
114
|
+ if (isdc > 0)
|
|
|
115
|
+ {
|
|
|
116
|
+ string dccols = "F_Area,F_Province,F_City,F_Name,F_Phone";
|
|
|
117
|
+ var dtdc = DbHelperSQL.Query(" select " + dccols + " from T_Bus_WorkOrder where 1=1 " + sql).Tables[0];
|
|
|
118
|
+ string[] dccolnames = new string[] {"大区","省份", "城市", "姓名", "电话" };
|
|
|
119
|
+ var msg = new NPOIHelper().ExportToExcel("客户列表", dtdc, dccolnames);
|
|
|
120
|
+ if (msg == "")
|
|
|
121
|
+ {
|
|
|
122
|
+ return Success("导出成功");
|
|
|
123
|
+ }
|
|
|
124
|
+ else
|
|
|
125
|
+ {
|
|
|
126
|
+ return Error("导出失败");
|
|
|
127
|
+ }
|
|
|
128
|
+ }
|
|
|
129
|
+
|
|
113
|
130
|
int recordCount = 0;
|
|
114
|
131
|
dt = BLL.PagerBLL.GetListPager(
|
|
115
|
132
|
"T_Cus_Customer",
|