|
|
|
|
|
|
201
|
//dayout = new { count = dayoutlist.Count, totaltime = dayoutlist.Select(p => p.TalkLongTime).Sum() },
|
201
|
//dayout = new { count = dayoutlist.Count, totaltime = dayoutlist.Select(p => p.TalkLongTime).Sum() },
|
|
202
|
//monin = new { count = moninlist.Count, totaltime = moninlist.Select(p => p.TalkLongTime).Sum() },
|
202
|
//monin = new { count = moninlist.Count, totaltime = moninlist.Select(p => p.TalkLongTime).Sum() },
|
|
203
|
//monout = new { count = monoutlist.Count, totaltime = monoutlist.Select(p => p.TalkLongTime).Sum() },
|
203
|
//monout = new { count = monoutlist.Count, totaltime = monoutlist.Select(p => p.TalkLongTime).Sum() },
|
|
204
|
- dayin = new { count = dt1.Rows.Count>0?Int32.Parse(dt1.Rows[0]["count"].ToString()):0, totaltime = dt1.Rows.Count > 0 ? Int32.Parse(dt1.Rows[0]["longtime"].ToString()) : 0 },
|
|
|
|
205
|
- dayout = new { count = dt2.Rows.Count > 0 ? Int32.Parse(dt2.Rows[0]["count"].ToString()) : 0, totaltime = dt2.Rows.Count > 0 ? Int32.Parse(dt2.Rows[0]["longtime"].ToString()) : 0 },
|
|
|
|
206
|
- monin = new { count = dt3.Rows.Count > 0 ? Int32.Parse(dt3.Rows[0]["count"].ToString()) : 0, totaltime = dt3.Rows.Count > 0 ? Int32.Parse(dt3.Rows[0]["longtime"].ToString()) : 0 },
|
|
|
|
207
|
- monout = new { count = dt4.Rows.Count > 0 ? Int32.Parse(dt4.Rows[0]["count"].ToString()) : 0, totaltime = dt4.Rows.Count > 0 ? Int32.Parse(dt4.Rows[0]["longtime"].ToString()) : 0 },
|
|
|
|
|
|
204
|
+ dayin = new { count = dt1.Rows.Count>0?Int32.Parse("0"+dt1.Rows[0]["count"].ToString()):0, totaltime = dt1.Rows.Count > 0 ? Int32.Parse("0" + dt1.Rows[0]["longtime"].ToString()) : 0 },
|
|
|
|
205
|
+ dayout = new { count = dt2.Rows.Count > 0 ? Int32.Parse("0" + dt2.Rows[0]["count"].ToString()) : 0, totaltime = dt2.Rows.Count > 0 ? Int32.Parse("0" + dt2.Rows[0]["longtime"].ToString()) : 0 },
|
|
|
|
206
|
+ monin = new { count = dt3.Rows.Count > 0 ? Int32.Parse("0" + dt3.Rows[0]["count"].ToString()) : 0, totaltime = dt3.Rows.Count > 0 ? Int32.Parse("0" + dt3.Rows[0]["longtime"].ToString()) : 0 },
|
|
|
|
207
|
+ monout = new { count = dt4.Rows.Count > 0 ? Int32.Parse("0" + dt4.Rows[0]["count"].ToString()) : 0, totaltime = dt4.Rows.Count > 0 ? Int32.Parse("0" + dt4.Rows[0]["longtime"].ToString()) : 0 },
|
|
208
|
daynocon = daynocon
|
208
|
daynocon = daynocon
|
|
209
|
};
|
209
|
};
|
|
210
|
res = Success("成功", obj);
|
210
|
res = Success("成功", obj);
|
|
|
|
|
|
|
365
|
newcount = Int32.Parse(dt1.Compute("sum(count)", "").ToString());
|
365
|
newcount = Int32.Parse(dt1.Compute("sum(count)", "").ToString());
|
|
366
|
|
366
|
|
|
367
|
BLL.T_Bus_WorkOrder workbll = new BLL.T_Bus_WorkOrder();
|
367
|
BLL.T_Bus_WorkOrder workbll = new BLL.T_Bus_WorkOrder();
|
|
368
|
- string sql2 = "select CONVERT(varchar(10),F_RegDate, 23) date,count(1) count from T_Bus_WorkOrder with(nolock) where " + telwhere + " and F_RegDate>'" + (strDate + "-01") + "' group by CONVERT(varchar(10),F_RegDate, 23)";
|
|
|
|
|
|
368
|
+ string sql2 = "select CONVERT(varchar(10),F_RegDate, 23) date,count(1) count from T_Bus_WorkOrder with(nolock) where " + workwhere + " and F_RegDate>'" + (strDate + "-01") + "' group by CONVERT(varchar(10),F_RegDate, 23)";
|
|
369
|
DataTable dt2 = DbHelperSQL.Query(sql2).Tables[0];
|
369
|
DataTable dt2 = DbHelperSQL.Query(sql2).Tables[0];
|
|
370
|
|
370
|
|
|
371
|
int[] teltotal = new int[days];
|
371
|
int[] teltotal = new int[days];
|