|
|
@@ -39,9 +39,9 @@ namespace CallCenterApi.DAL
|
|
39
|
39
|
{
|
|
40
|
40
|
StringBuilder strSql = new StringBuilder();
|
|
41
|
41
|
strSql.Append("insert into T_CTI_Task(");
|
|
42
|
|
- strSql.Append("TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType,Pre,Concurrency,ConcurrencyType,PlanStartDate,PlanEndDate,StartTime1,EndTime1,StartTime2,EndTime2,AgentGroupId)");
|
|
|
42
|
+ strSql.Append("TaskName,TrunkGroupID,CallerNum,CallType,ExInfo,MaxTrunkCount,IntensityCoefficient,ItemTableName,State,AddTime,y_PSort,y_TkModelId,y_SXH,y_FPCount,y_YJCount,y_HCCount,y_HSCount,y_HTCount,y_HMCount,y_OkCount,y_RFCount,y_ConsCount,y_InvlCount,y_NoAnswerCount,y_ShutDownCount,TaskType,Pre,Concurrency,ConcurrencyType,PlanStartDate,PlanEndDate,StartTime1,EndTime1,StartTime2,EndTime2,AgentGroupId,DeptId)");
|
|
43
|
43
|
strSql.Append(" values (");
|
|
44
|
|
- strSql.Append("@TaskName,@TrunkGroupID,@CallerNum,@CallType,@ExInfo,@MaxTrunkCount,@IntensityCoefficient,@ItemTableName,@State,@AddTime,@y_PSort,@y_TkModelId,@y_SXH,@y_FPCount,@y_YJCount,@y_HCCount,@y_HSCount,@y_HTCount,@y_HMCount,@y_OkCount,@y_RFCount,@y_ConsCount,@y_InvlCount,@y_NoAnswerCount,@y_ShutDownCount,@TaskType,@Pre,@Concurrency,@ConcurrencyType,@PlanStartDate,@PlanEndDate,@StartTime1,@EndTime1,@StartTime2,@EndTime2,@AgentGroupId)");
|
|
|
44
|
+ strSql.Append("@TaskName,@TrunkGroupID,@CallerNum,@CallType,@ExInfo,@MaxTrunkCount,@IntensityCoefficient,@ItemTableName,@State,@AddTime,@y_PSort,@y_TkModelId,@y_SXH,@y_FPCount,@y_YJCount,@y_HCCount,@y_HSCount,@y_HTCount,@y_HMCount,@y_OkCount,@y_RFCount,@y_ConsCount,@y_InvlCount,@y_NoAnswerCount,@y_ShutDownCount,@TaskType,@Pre,@Concurrency,@ConcurrencyType,@PlanStartDate,@PlanEndDate,@StartTime1,@EndTime1,@StartTime2,@EndTime2,@AgentGroupId,@DeptId)");
|
|
45
|
45
|
strSql.Append(";select @@IDENTITY");
|
|
46
|
46
|
SqlParameter[] parameters = {
|
|
47
|
47
|
new SqlParameter("@TaskName", SqlDbType.VarChar,200),
|
|
|
@@ -79,7 +79,8 @@ namespace CallCenterApi.DAL
|
|
79
|
79
|
new SqlParameter("@EndTime1", SqlDbType.DateTime),
|
|
80
|
80
|
new SqlParameter("@StartTime2", SqlDbType.DateTime),
|
|
81
|
81
|
new SqlParameter("@EndTime2", SqlDbType.DateTime),
|
|
82
|
|
- new SqlParameter("@AgentGroupId", SqlDbType.Int)
|
|
|
82
|
+ new SqlParameter("@AgentGroupId", SqlDbType.Int),
|
|
|
83
|
+ new SqlParameter("@DeptId", SqlDbType.Int)
|
|
83
|
84
|
|
|
84
|
85
|
};
|
|
85
|
86
|
parameters[0].Value = model.TaskName;
|
|
|
@@ -118,6 +119,7 @@ namespace CallCenterApi.DAL
|
|
118
|
119
|
parameters[33].Value = model.StartTime2;
|
|
119
|
120
|
parameters[34].Value = model.EndTime2;
|
|
120
|
121
|
parameters[35].Value = model.AgentGroupId;
|
|
|
122
|
+ parameters[36].Value = model.DeptId;
|
|
121
|
123
|
object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
|
|
122
|
124
|
if (obj == null)
|
|
123
|
125
|
{
|