Bladeren bron

Merge branch 'master' of http://192.168.1.222:3000/zhoufan/RMYY_CallCenter_Api

zhupei 3 jaren geleden
bovenliggende
commit
a7f60d5b22

File diff suppressed because it is too large
+ 85 - 85
RMYY_CallCenter_Api.Dal/T_FaultRepair_Base.cs


+ 40 - 40
RMYY_CallCenter_Api.Dal/T_FaultRepair_Evaluate.cs

@@ -46,9 +46,9 @@ namespace RMYY_CallCenter_Api.DAL
46 46
 		{
47 47
 			StringBuilder strSql=new StringBuilder();
48 48
 			strSql.Append("select count(1) from T_FaultRepair_Evaluate");
49
-			strSql.Append(" where F_EvaluateId=SQL2012F_EvaluateId");
49
+			strSql.Append(" where F_EvaluateId=@F_EvaluateId");
50 50
 			SqlParameter[] parameters = {
51
-					new SqlParameter("SQL2012F_EvaluateId", SqlDbType.Int,4)
51
+					new SqlParameter("@F_EvaluateId", SqlDbType.Int,4)
52 52
 			};
53 53
 			parameters[0].Value = F_EvaluateId;
54 54
 
@@ -65,17 +65,17 @@ namespace RMYY_CallCenter_Api.DAL
65 65
 			strSql.Append("insert into T_FaultRepair_Evaluate(");
66 66
 			strSql.Append("F_WorkOrderCode,F_Attitude,F_Quality,F_EvaluateContent,F_EvaluationTime,F_Evaluator,F_Isdelete,F_UpdateTime)");
67 67
 			strSql.Append(" values (");
68
-			strSql.Append("SQL2012F_WorkOrderCode,SQL2012F_Attitude,SQL2012F_Quality,SQL2012F_EvaluateContent,SQL2012F_EvaluationTime,SQL2012F_Evaluator,SQL2012F_Isdelete,SQL2012F_UpdateTime)");
68
+			strSql.Append("@F_WorkOrderCode,@F_Attitude,@F_Quality,@F_EvaluateContent,@F_EvaluationTime,@F_Evaluator,@F_Isdelete,@F_UpdateTime)");
69 69
 			strSql.Append(";select @@IDENTITY");
70 70
 			SqlParameter[] parameters = {
71
-					new SqlParameter("SQL2012F_WorkOrderCode", SqlDbType.NVarChar,100),
72
-					new SqlParameter("SQL2012F_Attitude", SqlDbType.Int,4),
73
-					new SqlParameter("SQL2012F_Quality", SqlDbType.Int,4),
74
-					new SqlParameter("SQL2012F_EvaluateContent", SqlDbType.NVarChar,500),
75
-					new SqlParameter("SQL2012F_EvaluationTime", SqlDbType.DateTime),
76
-					new SqlParameter("SQL2012F_Evaluator", SqlDbType.NVarChar,50),
77
-					new SqlParameter("SQL2012F_Isdelete", SqlDbType.Int,4),
78
-					new SqlParameter("SQL2012F_UpdateTime", SqlDbType.DateTime)};
71
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
72
+					new SqlParameter("@F_Attitude", SqlDbType.Int,4),
73
+					new SqlParameter("@F_Quality", SqlDbType.Int,4),
74
+					new SqlParameter("@F_EvaluateContent", SqlDbType.NVarChar,500),
75
+					new SqlParameter("@F_EvaluationTime", SqlDbType.DateTime),
76
+					new SqlParameter("@F_Evaluator", SqlDbType.NVarChar,50),
77
+					new SqlParameter("@F_Isdelete", SqlDbType.Int,4),
78
+					new SqlParameter("@F_UpdateTime", SqlDbType.DateTime)};
79 79
 			parameters[0].Value = model.F_WorkOrderCode;
80 80
 			parameters[1].Value = model.F_Attitude;
81 81
 			parameters[2].Value = model.F_Quality;
@@ -102,25 +102,25 @@ namespace RMYY_CallCenter_Api.DAL
102 102
 		{
103 103
 			StringBuilder strSql=new StringBuilder();
104 104
 			strSql.Append("update T_FaultRepair_Evaluate set ");
105
-			strSql.Append("F_WorkOrderCode=SQL2012F_WorkOrderCode,");
106
-			strSql.Append("F_Attitude=SQL2012F_Attitude,");
107
-			strSql.Append("F_Quality=SQL2012F_Quality,");
108
-			strSql.Append("F_EvaluateContent=SQL2012F_EvaluateContent,");
109
-			strSql.Append("F_EvaluationTime=SQL2012F_EvaluationTime,");
110
-			strSql.Append("F_Evaluator=SQL2012F_Evaluator,");
111
-			strSql.Append("F_Isdelete=SQL2012F_Isdelete,");
112
-			strSql.Append("F_UpdateTime=SQL2012F_UpdateTime");
113
-			strSql.Append(" where F_EvaluateId=SQL2012F_EvaluateId");
105
+			strSql.Append("F_WorkOrderCode=@F_WorkOrderCode,");
106
+			strSql.Append("F_Attitude=@F_Attitude,");
107
+			strSql.Append("F_Quality=@F_Quality,");
108
+			strSql.Append("F_EvaluateContent=@F_EvaluateContent,");
109
+			strSql.Append("F_EvaluationTime=@F_EvaluationTime,");
110
+			strSql.Append("F_Evaluator=@F_Evaluator,");
111
+			strSql.Append("F_Isdelete=@F_Isdelete,");
112
+			strSql.Append("F_UpdateTime=@F_UpdateTime");
113
+			strSql.Append(" where F_EvaluateId=@F_EvaluateId");
114 114
 			SqlParameter[] parameters = {
115
-					new SqlParameter("SQL2012F_WorkOrderCode", SqlDbType.NVarChar,100),
116
-					new SqlParameter("SQL2012F_Attitude", SqlDbType.Int,4),
117
-					new SqlParameter("SQL2012F_Quality", SqlDbType.Int,4),
118
-					new SqlParameter("SQL2012F_EvaluateContent", SqlDbType.NVarChar,500),
119
-					new SqlParameter("SQL2012F_EvaluationTime", SqlDbType.DateTime),
120
-					new SqlParameter("SQL2012F_Evaluator", SqlDbType.NVarChar,50),
121
-					new SqlParameter("SQL2012F_Isdelete", SqlDbType.Int,4),
122
-					new SqlParameter("SQL2012F_UpdateTime", SqlDbType.DateTime),
123
-					new SqlParameter("SQL2012F_EvaluateId", SqlDbType.Int,4)};
115
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
116
+					new SqlParameter("@F_Attitude", SqlDbType.Int,4),
117
+					new SqlParameter("@F_Quality", SqlDbType.Int,4),
118
+					new SqlParameter("@F_EvaluateContent", SqlDbType.NVarChar,500),
119
+					new SqlParameter("@F_EvaluationTime", SqlDbType.DateTime),
120
+					new SqlParameter("@F_Evaluator", SqlDbType.NVarChar,50),
121
+					new SqlParameter("@F_Isdelete", SqlDbType.Int,4),
122
+					new SqlParameter("@F_UpdateTime", SqlDbType.DateTime),
123
+					new SqlParameter("@F_EvaluateId", SqlDbType.Int,4)};
124 124
 			parameters[0].Value = model.F_WorkOrderCode;
125 125
 			parameters[1].Value = model.F_Attitude;
126 126
 			parameters[2].Value = model.F_Quality;
@@ -150,9 +150,9 @@ namespace RMYY_CallCenter_Api.DAL
150 150
 			
151 151
 			StringBuilder strSql=new StringBuilder();
152 152
 			strSql.Append("delete from T_FaultRepair_Evaluate ");
153
-			strSql.Append(" where F_EvaluateId=SQL2012F_EvaluateId");
153
+			strSql.Append(" where F_EvaluateId=@F_EvaluateId");
154 154
 			SqlParameter[] parameters = {
155
-					new SqlParameter("SQL2012F_EvaluateId", SqlDbType.Int,4)
155
+					new SqlParameter("@F_EvaluateId", SqlDbType.Int,4)
156 156
 			};
157 157
 			parameters[0].Value = F_EvaluateId;
158 158
 
@@ -194,9 +194,9 @@ namespace RMYY_CallCenter_Api.DAL
194 194
 			
195 195
 			StringBuilder strSql=new StringBuilder();
196 196
 			strSql.Append("select  top 1 F_EvaluateId,F_WorkOrderCode,F_Attitude,F_Quality,F_EvaluateContent,F_EvaluationTime,F_Evaluator,F_Isdelete,F_UpdateTime from T_FaultRepair_Evaluate ");
197
-			strSql.Append(" where F_EvaluateId=SQL2012F_EvaluateId");
197
+			strSql.Append(" where F_EvaluateId=@F_EvaluateId");
198 198
 			SqlParameter[] parameters = {
199
-					new SqlParameter("SQL2012F_EvaluateId", SqlDbType.Int,4)
199
+					new SqlParameter("@F_EvaluateId", SqlDbType.Int,4)
200 200
 			};
201 201
 			parameters[0].Value = F_EvaluateId;
202 202
 
@@ -351,13 +351,13 @@ namespace RMYY_CallCenter_Api.DAL
351 351
 		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
352 352
 		{
353 353
 			SqlParameter[] parameters = {
354
-					new SqlParameter("SQL2012tblName", SqlDbType.VarChar, 255),
355
-					new SqlParameter("SQL2012fldName", SqlDbType.VarChar, 255),
356
-					new SqlParameter("SQL2012PageSize", SqlDbType.Int),
357
-					new SqlParameter("SQL2012PageIndex", SqlDbType.Int),
358
-					new SqlParameter("SQL2012IsReCount", SqlDbType.Bit),
359
-					new SqlParameter("SQL2012OrderType", SqlDbType.Bit),
360
-					new SqlParameter("SQL2012strWhere", SqlDbType.VarChar,1000),
354
+					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
355
+					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
356
+					new SqlParameter("@PageSize", SqlDbType.Int),
357
+					new SqlParameter("@PageIndex", SqlDbType.Int),
358
+					new SqlParameter("@IsReCount", SqlDbType.Bit),
359
+					new SqlParameter("@OrderType", SqlDbType.Bit),
360
+					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
361 361
 					};
362 362
 			parameters[0].Value = "T_FaultRepair_Evaluate";
363 363
 			parameters[1].Value = "F_EvaluateId";

+ 37 - 37
RMYY_CallCenter_Api.Dal/T_FaultRepair_OperationLog.cs

@@ -46,9 +46,9 @@ namespace RMYY_CallCenter_Api.DAL
46 46
 		{
47 47
 			StringBuilder strSql=new StringBuilder();
48 48
 			strSql.Append("select count(1) from T_FaultRepair_OperationLog");
49
-			strSql.Append(" where F_OperationId=SQL2012F_OperationId");
49
+			strSql.Append(" where F_OperationId=@F_OperationId");
50 50
 			SqlParameter[] parameters = {
51
-					new SqlParameter("SQL2012F_OperationId", SqlDbType.Int,4)
51
+					new SqlParameter("@F_OperationId", SqlDbType.Int,4)
52 52
 			};
53 53
 			parameters[0].Value = F_OperationId;
54 54
 
@@ -65,16 +65,16 @@ namespace RMYY_CallCenter_Api.DAL
65 65
 			strSql.Append("insert into T_FaultRepair_OperationLog(");
66 66
 			strSql.Append("F_WorkOrderCode,F_Operator,F_LogContent,F_OperationType,F_OperationTime,F_UpdateTime,F_Isdelete)");
67 67
 			strSql.Append(" values (");
68
-			strSql.Append("SQL2012F_WorkOrderCode,SQL2012F_Operator,SQL2012F_LogContent,SQL2012F_OperationType,SQL2012F_OperationTime,SQL2012F_UpdateTime,SQL2012F_Isdelete)");
68
+			strSql.Append("@F_WorkOrderCode,@F_Operator,@F_LogContent,@F_OperationType,@F_OperationTime,@F_UpdateTime,@F_Isdelete)");
69 69
 			strSql.Append(";select @@IDENTITY");
70 70
 			SqlParameter[] parameters = {
71
-					new SqlParameter("SQL2012F_WorkOrderCode", SqlDbType.NVarChar,100),
72
-					new SqlParameter("SQL2012F_Operator", SqlDbType.NVarChar,50),
73
-					new SqlParameter("SQL2012F_LogContent", SqlDbType.NVarChar,500),
74
-					new SqlParameter("SQL2012F_OperationType", SqlDbType.Int,4),
75
-					new SqlParameter("SQL2012F_OperationTime", SqlDbType.DateTime),
76
-					new SqlParameter("SQL2012F_UpdateTime", SqlDbType.DateTime),
77
-					new SqlParameter("SQL2012F_Isdelete", SqlDbType.Int,4)};
71
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
72
+					new SqlParameter("@F_Operator", SqlDbType.NVarChar,50),
73
+					new SqlParameter("@F_LogContent", SqlDbType.NVarChar,500),
74
+					new SqlParameter("@F_OperationType", SqlDbType.Int,4),
75
+					new SqlParameter("@F_OperationTime", SqlDbType.DateTime),
76
+					new SqlParameter("@F_UpdateTime", SqlDbType.DateTime),
77
+					new SqlParameter("@F_Isdelete", SqlDbType.Int,4)};
78 78
 			parameters[0].Value = model.F_WorkOrderCode;
79 79
 			parameters[1].Value = model.F_Operator;
80 80
 			parameters[2].Value = model.F_LogContent;
@@ -100,23 +100,23 @@ namespace RMYY_CallCenter_Api.DAL
100 100
 		{
101 101
 			StringBuilder strSql=new StringBuilder();
102 102
 			strSql.Append("update T_FaultRepair_OperationLog set ");
103
-			strSql.Append("F_WorkOrderCode=SQL2012F_WorkOrderCode,");
104
-			strSql.Append("F_Operator=SQL2012F_Operator,");
105
-			strSql.Append("F_LogContent=SQL2012F_LogContent,");
106
-			strSql.Append("F_OperationType=SQL2012F_OperationType,");
107
-			strSql.Append("F_OperationTime=SQL2012F_OperationTime,");
108
-			strSql.Append("F_UpdateTime=SQL2012F_UpdateTime,");
109
-			strSql.Append("F_Isdelete=SQL2012F_Isdelete");
110
-			strSql.Append(" where F_OperationId=SQL2012F_OperationId");
103
+			strSql.Append("F_WorkOrderCode=@F_WorkOrderCode,");
104
+			strSql.Append("F_Operator=@F_Operator,");
105
+			strSql.Append("F_LogContent=@F_LogContent,");
106
+			strSql.Append("F_OperationType=@F_OperationType,");
107
+			strSql.Append("F_OperationTime=@F_OperationTime,");
108
+			strSql.Append("F_UpdateTime=@F_UpdateTime,");
109
+			strSql.Append("F_Isdelete=@F_Isdelete");
110
+			strSql.Append(" where F_OperationId=@F_OperationId");
111 111
 			SqlParameter[] parameters = {
112
-					new SqlParameter("SQL2012F_WorkOrderCode", SqlDbType.NVarChar,100),
113
-					new SqlParameter("SQL2012F_Operator", SqlDbType.NVarChar,50),
114
-					new SqlParameter("SQL2012F_LogContent", SqlDbType.NVarChar,500),
115
-					new SqlParameter("SQL2012F_OperationType", SqlDbType.Int,4),
116
-					new SqlParameter("SQL2012F_OperationTime", SqlDbType.DateTime),
117
-					new SqlParameter("SQL2012F_UpdateTime", SqlDbType.DateTime),
118
-					new SqlParameter("SQL2012F_Isdelete", SqlDbType.Int,4),
119
-					new SqlParameter("SQL2012F_OperationId", SqlDbType.Int,4)};
112
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
113
+					new SqlParameter("@F_Operator", SqlDbType.NVarChar,50),
114
+					new SqlParameter("@F_LogContent", SqlDbType.NVarChar,500),
115
+					new SqlParameter("@F_OperationType", SqlDbType.Int,4),
116
+					new SqlParameter("@F_OperationTime", SqlDbType.DateTime),
117
+					new SqlParameter("@F_UpdateTime", SqlDbType.DateTime),
118
+					new SqlParameter("@F_Isdelete", SqlDbType.Int,4),
119
+					new SqlParameter("@F_OperationId", SqlDbType.Int,4)};
120 120
 			parameters[0].Value = model.F_WorkOrderCode;
121 121
 			parameters[1].Value = model.F_Operator;
122 122
 			parameters[2].Value = model.F_LogContent;
@@ -145,9 +145,9 @@ namespace RMYY_CallCenter_Api.DAL
145 145
 			
146 146
 			StringBuilder strSql=new StringBuilder();
147 147
 			strSql.Append("delete from T_FaultRepair_OperationLog ");
148
-			strSql.Append(" where F_OperationId=SQL2012F_OperationId");
148
+			strSql.Append(" where F_OperationId=@F_OperationId");
149 149
 			SqlParameter[] parameters = {
150
-					new SqlParameter("SQL2012F_OperationId", SqlDbType.Int,4)
150
+					new SqlParameter("@F_OperationId", SqlDbType.Int,4)
151 151
 			};
152 152
 			parameters[0].Value = F_OperationId;
153 153
 
@@ -189,9 +189,9 @@ namespace RMYY_CallCenter_Api.DAL
189 189
 			
190 190
 			StringBuilder strSql=new StringBuilder();
191 191
 			strSql.Append("select  top 1 F_OperationId,F_WorkOrderCode,F_Operator,F_LogContent,F_OperationType,F_OperationTime,F_UpdateTime,F_Isdelete from T_FaultRepair_OperationLog ");
192
-			strSql.Append(" where F_OperationId=SQL2012F_OperationId");
192
+			strSql.Append(" where F_OperationId=@F_OperationId");
193 193
 			SqlParameter[] parameters = {
194
-					new SqlParameter("SQL2012F_OperationId", SqlDbType.Int,4)
194
+					new SqlParameter("@F_OperationId", SqlDbType.Int,4)
195 195
 			};
196 196
 			parameters[0].Value = F_OperationId;
197 197
 
@@ -342,13 +342,13 @@ namespace RMYY_CallCenter_Api.DAL
342 342
 		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
343 343
 		{
344 344
 			SqlParameter[] parameters = {
345
-					new SqlParameter("SQL2012tblName", SqlDbType.VarChar, 255),
346
-					new SqlParameter("SQL2012fldName", SqlDbType.VarChar, 255),
347
-					new SqlParameter("SQL2012PageSize", SqlDbType.Int),
348
-					new SqlParameter("SQL2012PageIndex", SqlDbType.Int),
349
-					new SqlParameter("SQL2012IsReCount", SqlDbType.Bit),
350
-					new SqlParameter("SQL2012OrderType", SqlDbType.Bit),
351
-					new SqlParameter("SQL2012strWhere", SqlDbType.VarChar,1000),
345
+					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
346
+					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
347
+					new SqlParameter("@PageSize", SqlDbType.Int),
348
+					new SqlParameter("@PageIndex", SqlDbType.Int),
349
+					new SqlParameter("@IsReCount", SqlDbType.Bit),
350
+					new SqlParameter("@OrderType", SqlDbType.Bit),
351
+					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
352 352
 					};
353 353
 			parameters[0].Value = "T_FaultRepair_OperationLog";
354 354
 			parameters[1].Value = "F_OperationId";

+ 43 - 43
RMYY_CallCenter_Api.Dal/T_FaultRepair_Process.cs

@@ -46,9 +46,9 @@ namespace RMYY_CallCenter_Api.DAL
46 46
 		{
47 47
 			StringBuilder strSql=new StringBuilder();
48 48
 			strSql.Append("select count(1) from T_FaultRepair_Process");
49
-			strSql.Append(" where F_ProcessId=SQL2012F_ProcessId");
49
+			strSql.Append(" where F_ProcessId=@F_ProcessId");
50 50
 			SqlParameter[] parameters = {
51
-					new SqlParameter("SQL2012F_ProcessId", SqlDbType.Int,4)
51
+					new SqlParameter("@F_ProcessId", SqlDbType.Int,4)
52 52
 			};
53 53
 			parameters[0].Value = F_ProcessId;
54 54
 
@@ -65,18 +65,18 @@ namespace RMYY_CallCenter_Api.DAL
65 65
 			strSql.Append("insert into T_FaultRepair_Process(");
66 66
 			strSql.Append("F_WorkOrderCode,F_Maintenancer,F_MaintenanceDept,F_ProcessingTime,F_Result,F_File,F_ReturnReason,F_Isdelete,F_UpdateTime)");
67 67
 			strSql.Append(" values (");
68
-			strSql.Append("SQL2012F_WorkOrderCode,SQL2012F_Maintenancer,SQL2012F_MaintenanceDept,SQL2012F_ProcessingTime,SQL2012F_Result,SQL2012F_File,SQL2012F_ReturnReason,SQL2012F_Isdelete,SQL2012F_UpdateTime)");
68
+			strSql.Append("@F_WorkOrderCode,@F_Maintenancer,@F_MaintenanceDept,@F_ProcessingTime,@F_Result,@F_File,@F_ReturnReason,@F_Isdelete,@F_UpdateTime)");
69 69
 			strSql.Append(";select @@IDENTITY");
70 70
 			SqlParameter[] parameters = {
71
-					new SqlParameter("SQL2012F_WorkOrderCode", SqlDbType.NVarChar,100),
72
-					new SqlParameter("SQL2012F_Maintenancer", SqlDbType.NVarChar,100),
73
-					new SqlParameter("SQL2012F_MaintenanceDept", SqlDbType.NVarChar,100),
74
-					new SqlParameter("SQL2012F_ProcessingTime", SqlDbType.DateTime),
75
-					new SqlParameter("SQL2012F_Result", SqlDbType.NVarChar,500),
76
-					new SqlParameter("SQL2012F_File", SqlDbType.NVarChar,500),
77
-					new SqlParameter("SQL2012F_ReturnReason", SqlDbType.NVarChar,500),
78
-					new SqlParameter("SQL2012F_Isdelete", SqlDbType.Int,4),
79
-					new SqlParameter("SQL2012F_UpdateTime", SqlDbType.DateTime)};
71
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
72
+					new SqlParameter("@F_Maintenancer", SqlDbType.NVarChar,100),
73
+					new SqlParameter("@F_MaintenanceDept", SqlDbType.NVarChar,100),
74
+					new SqlParameter("@F_ProcessingTime", SqlDbType.DateTime),
75
+					new SqlParameter("@F_Result", SqlDbType.NVarChar,500),
76
+					new SqlParameter("@F_File", SqlDbType.NVarChar,500),
77
+					new SqlParameter("@F_ReturnReason", SqlDbType.NVarChar,500),
78
+					new SqlParameter("@F_Isdelete", SqlDbType.Int,4),
79
+					new SqlParameter("@F_UpdateTime", SqlDbType.DateTime)};
80 80
 			parameters[0].Value = model.F_WorkOrderCode;
81 81
 			parameters[1].Value = model.F_Maintenancer;
82 82
 			parameters[2].Value = model.F_MaintenanceDept;
@@ -104,27 +104,27 @@ namespace RMYY_CallCenter_Api.DAL
104 104
 		{
105 105
 			StringBuilder strSql=new StringBuilder();
106 106
 			strSql.Append("update T_FaultRepair_Process set ");
107
-			strSql.Append("F_WorkOrderCode=SQL2012F_WorkOrderCode,");
108
-			strSql.Append("F_Maintenancer=SQL2012F_Maintenancer,");
109
-			strSql.Append("F_MaintenanceDept=SQL2012F_MaintenanceDept,");
110
-			strSql.Append("F_ProcessingTime=SQL2012F_ProcessingTime,");
111
-			strSql.Append("F_Result=SQL2012F_Result,");
112
-			strSql.Append("F_File=SQL2012F_File,");
113
-			strSql.Append("F_ReturnReason=SQL2012F_ReturnReason,");
114
-			strSql.Append("F_Isdelete=SQL2012F_Isdelete,");
115
-			strSql.Append("F_UpdateTime=SQL2012F_UpdateTime");
116
-			strSql.Append(" where F_ProcessId=SQL2012F_ProcessId");
107
+			strSql.Append("F_WorkOrderCode=@F_WorkOrderCode,");
108
+			strSql.Append("F_Maintenancer=@F_Maintenancer,");
109
+			strSql.Append("F_MaintenanceDept=@F_MaintenanceDept,");
110
+			strSql.Append("F_ProcessingTime=@F_ProcessingTime,");
111
+			strSql.Append("F_Result=@F_Result,");
112
+			strSql.Append("F_File=@F_File,");
113
+			strSql.Append("F_ReturnReason=@F_ReturnReason,");
114
+			strSql.Append("F_Isdelete=@F_Isdelete,");
115
+			strSql.Append("F_UpdateTime=@F_UpdateTime");
116
+			strSql.Append(" where F_ProcessId=@F_ProcessId");
117 117
 			SqlParameter[] parameters = {
118
-					new SqlParameter("SQL2012F_WorkOrderCode", SqlDbType.NVarChar,100),
119
-					new SqlParameter("SQL2012F_Maintenancer", SqlDbType.NVarChar,100),
120
-					new SqlParameter("SQL2012F_MaintenanceDept", SqlDbType.NVarChar,100),
121
-					new SqlParameter("SQL2012F_ProcessingTime", SqlDbType.DateTime),
122
-					new SqlParameter("SQL2012F_Result", SqlDbType.NVarChar,500),
123
-					new SqlParameter("SQL2012F_File", SqlDbType.NVarChar,500),
124
-					new SqlParameter("SQL2012F_ReturnReason", SqlDbType.NVarChar,500),
125
-					new SqlParameter("SQL2012F_Isdelete", SqlDbType.Int,4),
126
-					new SqlParameter("SQL2012F_UpdateTime", SqlDbType.DateTime),
127
-					new SqlParameter("SQL2012F_ProcessId", SqlDbType.Int,4)};
118
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
119
+					new SqlParameter("@F_Maintenancer", SqlDbType.NVarChar,100),
120
+					new SqlParameter("@F_MaintenanceDept", SqlDbType.NVarChar,100),
121
+					new SqlParameter("@F_ProcessingTime", SqlDbType.DateTime),
122
+					new SqlParameter("@F_Result", SqlDbType.NVarChar,500),
123
+					new SqlParameter("@F_File", SqlDbType.NVarChar,500),
124
+					new SqlParameter("@F_ReturnReason", SqlDbType.NVarChar,500),
125
+					new SqlParameter("@F_Isdelete", SqlDbType.Int,4),
126
+					new SqlParameter("@F_UpdateTime", SqlDbType.DateTime),
127
+					new SqlParameter("@F_ProcessId", SqlDbType.Int,4)};
128 128
 			parameters[0].Value = model.F_WorkOrderCode;
129 129
 			parameters[1].Value = model.F_Maintenancer;
130 130
 			parameters[2].Value = model.F_MaintenanceDept;
@@ -155,9 +155,9 @@ namespace RMYY_CallCenter_Api.DAL
155 155
 			
156 156
 			StringBuilder strSql=new StringBuilder();
157 157
 			strSql.Append("delete from T_FaultRepair_Process ");
158
-			strSql.Append(" where F_ProcessId=SQL2012F_ProcessId");
158
+			strSql.Append(" where F_ProcessId=@F_ProcessId");
159 159
 			SqlParameter[] parameters = {
160
-					new SqlParameter("SQL2012F_ProcessId", SqlDbType.Int,4)
160
+					new SqlParameter("@F_ProcessId", SqlDbType.Int,4)
161 161
 			};
162 162
 			parameters[0].Value = F_ProcessId;
163 163
 
@@ -199,9 +199,9 @@ namespace RMYY_CallCenter_Api.DAL
199 199
 			
200 200
 			StringBuilder strSql=new StringBuilder();
201 201
 			strSql.Append("select  top 1 F_ProcessId,F_WorkOrderCode,F_Maintenancer,F_MaintenanceDept,F_ProcessingTime,F_Result,F_File,F_ReturnReason,F_Isdelete,F_UpdateTime from T_FaultRepair_Process ");
202
-			strSql.Append(" where F_ProcessId=SQL2012F_ProcessId");
202
+			strSql.Append(" where F_ProcessId=@F_ProcessId");
203 203
 			SqlParameter[] parameters = {
204
-					new SqlParameter("SQL2012F_ProcessId", SqlDbType.Int,4)
204
+					new SqlParameter("@F_ProcessId", SqlDbType.Int,4)
205 205
 			};
206 206
 			parameters[0].Value = F_ProcessId;
207 207
 
@@ -360,13 +360,13 @@ namespace RMYY_CallCenter_Api.DAL
360 360
 		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
361 361
 		{
362 362
 			SqlParameter[] parameters = {
363
-					new SqlParameter("SQL2012tblName", SqlDbType.VarChar, 255),
364
-					new SqlParameter("SQL2012fldName", SqlDbType.VarChar, 255),
365
-					new SqlParameter("SQL2012PageSize", SqlDbType.Int),
366
-					new SqlParameter("SQL2012PageIndex", SqlDbType.Int),
367
-					new SqlParameter("SQL2012IsReCount", SqlDbType.Bit),
368
-					new SqlParameter("SQL2012OrderType", SqlDbType.Bit),
369
-					new SqlParameter("SQL2012strWhere", SqlDbType.VarChar,1000),
363
+					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
364
+					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
365
+					new SqlParameter("@PageSize", SqlDbType.Int),
366
+					new SqlParameter("@PageIndex", SqlDbType.Int),
367
+					new SqlParameter("@IsReCount", SqlDbType.Bit),
368
+					new SqlParameter("@OrderType", SqlDbType.Bit),
369
+					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
370 370
 					};
371 371
 			parameters[0].Value = "T_FaultRepair_Process";
372 372
 			parameters[1].Value = "F_ProcessId";