|
|
@@ -31,7 +31,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
31
|
31
|
//添加第一行标题
|
|
32
|
32
|
//DataColumn dc1 = new DataColumn("");
|
|
33
|
33
|
//dtNew.Columns.Add(dc1);
|
|
34
|
|
- var sqlGDLY1 = "select F_CategoryId,F_CategoryName from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器')";
|
|
|
34
|
+ var sqlGDLY1 = "select F_CategoryId,F_CategoryName from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器') and F_DeleteFlag = 0";
|
|
35
|
35
|
var dtGDLY1 = DbHelperSQL.Query(sqlGDLY1).Tables[0];
|
|
36
|
36
|
int dtGDLY1rowcount = dtGDLY1.Rows.Count;
|
|
37
|
37
|
//列名
|
|
|
@@ -44,7 +44,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
44
|
44
|
for (int v = 0; v < dtGDLY1rowcount; v++)
|
|
45
|
45
|
{
|
|
46
|
46
|
string catename = dtGDLY1.Rows[v]["F_CategoryName"].ToString();
|
|
47
|
|
- var count_sub = int.Parse(DbHelperSQL.GetSingle("select count(*) from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId=" + int.Parse(dtGDLY1.Rows[v]["F_CategoryId"].ToString()) + "").ToString());
|
|
|
47
|
+ var count_sub = int.Parse(DbHelperSQL.GetSingle("select count(*) from T_RepositoryCategory where 1=1 and F_DeleteFlag = 0 and F_CategoryType = 1 and F_ParentId=" + int.Parse(dtGDLY1.Rows[v]["F_CategoryId"].ToString()) + "").ToString());
|
|
48
|
48
|
dtGDLY1_name[v + 1] = catename;
|
|
49
|
49
|
dtGDLY1_count[v + 1] = count_sub;
|
|
50
|
50
|
}
|
|
|
@@ -68,7 +68,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
68
|
68
|
//添加第一行标题
|
|
69
|
69
|
//DataColumn dc1 = new DataColumn("");
|
|
70
|
70
|
//dtNew.Columns.Add(dc1);
|
|
71
|
|
- var sqlGDLY1 = "select F_CategoryId,F_CategoryName from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器')";
|
|
|
71
|
+ var sqlGDLY1 = "select F_CategoryId,F_CategoryName from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器') and F_DeleteFlag = 0";
|
|
72
|
72
|
var dtGDLY1 = DbHelperSQL.Query(sqlGDLY1).Tables[0];
|
|
73
|
73
|
int dtGDLY1rowcount = dtGDLY1.Rows.Count;
|
|
74
|
74
|
//列名
|
|
|
@@ -81,7 +81,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
81
|
81
|
for (int v = 0; v < dtGDLY1rowcount; v++)
|
|
82
|
82
|
{
|
|
83
|
83
|
string catename = dtGDLY1.Rows[v]["F_CategoryName"].ToString();
|
|
84
|
|
- var count_sub = int.Parse(DbHelperSQL.GetSingle("select count(*) from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId=" + int.Parse(dtGDLY1.Rows[v]["F_CategoryId"].ToString()) + "").ToString());
|
|
|
84
|
+ var count_sub = int.Parse(DbHelperSQL.GetSingle("select count(*) from T_RepositoryCategory where 1=1 and F_DeleteFlag = 0 and F_CategoryType = 1 and F_ParentId=" + int.Parse(dtGDLY1.Rows[v]["F_CategoryId"].ToString()) + "").ToString());
|
|
85
|
85
|
dtGDLY1_name[v + 1] = catename;
|
|
86
|
86
|
dtGDLY1_count[v + 1] = count_sub;
|
|
87
|
87
|
}
|
|
|
@@ -94,7 +94,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
94
|
94
|
//dtNew.Columns.Add(dc);
|
|
95
|
95
|
List<string> colnames = new List<string>();
|
|
96
|
96
|
colnames.Add("姓名");
|
|
97
|
|
- var sqlGDLY = " and F_CategoryType=1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器'))";
|
|
|
97
|
+ var sqlGDLY = " and F_CategoryType=1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器') and F_DeleteFlag = 0) and F_DeleteFlag = 0";
|
|
98
|
98
|
var recordCount = 0;
|
|
99
|
99
|
var dtGDLY = BLL.PagerBLL.GetListPager(
|
|
100
|
100
|
"T_RepositoryCategory",
|
|
|
@@ -161,7 +161,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
161
|
161
|
//添加第二行标题
|
|
162
|
162
|
DataColumn dc = new DataColumn("姓名");
|
|
163
|
163
|
dtNew.Columns.Add(dc);
|
|
164
|
|
- var sqlGDLY = " and F_CategoryType=1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器'))";
|
|
|
164
|
+ var sqlGDLY = " and F_CategoryType=1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器') and F_DeleteFlag = 0) and F_DeleteFlag = 0";
|
|
165
|
165
|
var recordCount = 0;
|
|
166
|
166
|
var dtGDLY = BLL.PagerBLL.GetListPager(
|
|
167
|
167
|
"T_RepositoryCategory",
|
|
|
@@ -255,7 +255,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
255
|
255
|
//添加第一行标题
|
|
256
|
256
|
//DataColumn dc1 = new DataColumn("");
|
|
257
|
257
|
//dtNew.Columns.Add(dc1);
|
|
258
|
|
- var sqlGDLY1 = "select F_CategoryId,F_CategoryName from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器')";
|
|
|
258
|
+ var sqlGDLY1 = "select F_CategoryId,F_CategoryName from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId in (select F_CategoryId from T_RepositoryCategory where F_CategoryType = 1 and F_DeleteFlag = 0 and F_CategoryName = '仪器') and F_DeleteFlag = 0";
|
|
259
|
259
|
var dtGDLY1 = DbHelperSQL.Query(sqlGDLY1).Tables[0];
|
|
260
|
260
|
int dtGDLY1rowcount = dtGDLY1.Rows.Count;
|
|
261
|
261
|
//每块占的列数
|
|
|
@@ -271,7 +271,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
271
|
271
|
for (int v = 0; v < dtGDLY1rowcount; v++)
|
|
272
|
272
|
{
|
|
273
|
273
|
string catename = dtGDLY1.Rows[v]["F_CategoryName"].ToString();
|
|
274
|
|
- var count_sub = int.Parse(DbHelperSQL.GetSingle("select count(*) from T_RepositoryCategory where 1=1 and F_CategoryType = 1 and F_ParentId=" + int.Parse(dtGDLY1.Rows[v]["F_CategoryId"].ToString()) + "").ToString());
|
|
|
274
|
+ var count_sub = int.Parse(DbHelperSQL.GetSingle("select count(*) from T_RepositoryCategory where 1=1 and F_DeleteFlag = 0 and F_CategoryType = 1 and F_ParentId=" + int.Parse(dtGDLY1.Rows[v]["F_CategoryId"].ToString()) + "").ToString());
|
|
275
|
275
|
dtGDLY1_name[v + 1] = catename;
|
|
276
|
276
|
dtGDLY1_count[v + 1] = count_sub;
|
|
277
|
277
|
colpos[v + 1] = count_sub;
|