|
|
@@ -421,5 +421,19 @@ namespace CallCenterApi.Interface.Controllers.information
|
|
421
|
421
|
return Content(obj.ToJson());
|
|
422
|
422
|
}
|
|
423
|
423
|
#endregion
|
|
|
424
|
+
|
|
|
425
|
+ public ActionResult GetEffectiveCount( ) {
|
|
|
426
|
+ DataTable dt = new DataTable();
|
|
|
427
|
+ string sql = "";
|
|
|
428
|
+ sql += " Datediff(day,F_Startdate,getdate())>=0";
|
|
|
429
|
+ sql += " and Datediff(day,F_Enddate,getdate())<=0";
|
|
|
430
|
+ dt = new BLL.T_Msg_NoticeInfo().GetList(sql).Tables[0];
|
|
|
431
|
+ int recordCount = dt.Rows.Count;
|
|
|
432
|
+ var obj = new {
|
|
|
433
|
+
|
|
|
434
|
+ total = recordCount
|
|
|
435
|
+ };
|
|
|
436
|
+ return Content(obj.ToJson());
|
|
|
437
|
+ }
|
|
424
|
438
|
}
|
|
425
|
439
|
}
|