liyuanyuan 3 vuotta sitten
vanhempi
commit
06365316a6

+ 1 - 0
RMYY_CallCenter_Api.Bll/RMYY_CallCenter_Api.Bll.csproj

@@ -72,6 +72,7 @@
72 72
     <Compile Include="T_IntegratedScheduling_Base.cs" />
73 73
     <Compile Include="T_IntegratedScheduling_Detail.cs" />
74 74
     <Compile Include="T_IntegratedScheduling_OperationLog.cs" />
75
+    <Compile Include="T_IntegratedScheduling_Process.cs" />
75 76
     <Compile Include="T_InvolvedEquip_RepairProcess.cs" />
76 77
     <Compile Include="T_Mat_WorkOrder.cs" />
77 78
     <Compile Include="T_Mat_WorkOrderItem.cs" />

+ 195 - 0
RMYY_CallCenter_Api.Bll/T_IntegratedScheduling_Process.cs

@@ -0,0 +1,195 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_IntegratedScheduling_Process.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_IntegratedScheduling_Process
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2022/10/20 10:20:04   N/A    初版
10
+*
11
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
12
+*┌──────────────────────────────────┐
13
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
14
+*│ 版权所有:动软卓越(北京)科技有限公司              │
15
+*└──────────────────────────────────┘
16
+*/
17
+using System;
18
+using System.Data;
19
+using System.Collections.Generic;
20
+
21
+using RMYY_CallCenter_Api.Model;
22
+namespace RMYY_CallCenter_Api.BLL
23
+{
24
+	/// <summary>
25
+	/// T_IntegratedScheduling_Process
26
+	/// </summary>
27
+	public partial class T_IntegratedScheduling_Process
28
+	{
29
+		private readonly RMYY_CallCenter_Api.DAL.T_IntegratedScheduling_Process dal=new RMYY_CallCenter_Api.DAL.T_IntegratedScheduling_Process();
30
+		public T_IntegratedScheduling_Process()
31
+		{}
32
+		#region  BasicMethod
33
+
34
+		/// <summary>
35
+		/// 得到最大ID
36
+		/// </summary>
37
+		public int GetMaxId()
38
+		{
39
+			return dal.GetMaxId();
40
+		}
41
+
42
+		/// <summary>
43
+		/// 是否存在该记录
44
+		/// </summary>
45
+		public bool Exists(int F_ProcessId)
46
+		{
47
+			return dal.Exists(F_ProcessId);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 增加一条数据
52
+		/// </summary>
53
+		public int  Add(RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process model)
54
+		{
55
+			return dal.Add(model);
56
+		}
57
+
58
+		/// <summary>
59
+		/// 更新一条数据
60
+		/// </summary>
61
+		public bool Update(RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process model)
62
+		{
63
+			return dal.Update(model);
64
+		}
65
+
66
+		/// <summary>
67
+		/// 删除一条数据
68
+		/// </summary>
69
+		public bool Delete(int F_ProcessId)
70
+		{
71
+			
72
+			return dal.Delete(F_ProcessId);
73
+		}
74
+		/// <summary>
75
+		/// 删除一条数据
76
+		/// </summary>
77
+		public bool DeleteList(string F_ProcessIdlist )
78
+		{
79
+			return dal.DeleteList(F_ProcessIdlist );
80
+		}
81
+
82
+		/// <summary>
83
+		/// 得到一个对象实体
84
+		/// </summary>
85
+		public RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process GetModel(int F_ProcessId)
86
+		{
87
+			
88
+			return dal.GetModel(F_ProcessId);
89
+		}
90
+
91
+		/// <summary>
92
+		///// 得到一个对象实体,从缓存中
93
+		///// </summary>
94
+		//public RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process GetModelByCache(int F_ProcessId)
95
+		//{
96
+			
97
+		//	string CacheKey = "T_IntegratedScheduling_ProcessModel-" + F_ProcessId;
98
+		//	object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
99
+		//	if (objModel == null)
100
+		//	{
101
+		//		try
102
+		//		{
103
+		//			objModel = dal.GetModel(F_ProcessId);
104
+		//			if (objModel != null)
105
+		//			{
106
+		//				int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
107
+		//				Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
108
+		//			}
109
+		//		}
110
+		//		catch{}
111
+		//	}
112
+		//	return (RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process)objModel;
113
+		//}
114
+
115
+		/// <summary>
116
+		/// 获得数据列表
117
+		/// </summary>
118
+		public DataSet GetList(string strWhere)
119
+		{
120
+			return dal.GetList(strWhere);
121
+		}
122
+		/// <summary>
123
+		/// 获得前几行数据
124
+		/// </summary>
125
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
126
+		{
127
+			return dal.GetList(Top,strWhere,filedOrder);
128
+		}
129
+		/// <summary>
130
+		/// 获得数据列表
131
+		/// </summary>
132
+		public List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process> GetModelList(string strWhere)
133
+		{
134
+			DataSet ds = dal.GetList(strWhere);
135
+			return DataTableToList(ds.Tables[0]);
136
+		}
137
+		/// <summary>
138
+		/// 获得数据列表
139
+		/// </summary>
140
+		public List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process> DataTableToList(DataTable dt)
141
+		{
142
+			List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process> modelList = new List<RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process>();
143
+			int rowsCount = dt.Rows.Count;
144
+			if (rowsCount > 0)
145
+			{
146
+				RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process model;
147
+				for (int n = 0; n < rowsCount; n++)
148
+				{
149
+					model = dal.DataRowToModel(dt.Rows[n]);
150
+					if (model != null)
151
+					{
152
+						modelList.Add(model);
153
+					}
154
+				}
155
+			}
156
+			return modelList;
157
+		}
158
+
159
+		/// <summary>
160
+		/// 获得数据列表
161
+		/// </summary>
162
+		public DataSet GetAllList()
163
+		{
164
+			return GetList("");
165
+		}
166
+
167
+		/// <summary>
168
+		/// 分页获取数据列表
169
+		/// </summary>
170
+		public int GetRecordCount(string strWhere)
171
+		{
172
+			return dal.GetRecordCount(strWhere);
173
+		}
174
+		/// <summary>
175
+		/// 分页获取数据列表
176
+		/// </summary>
177
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
178
+		{
179
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
180
+		}
181
+		/// <summary>
182
+		/// 分页获取数据列表
183
+		/// </summary>
184
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
185
+		//{
186
+			//return dal.GetList(PageSize,PageIndex,strWhere);
187
+		//}
188
+
189
+		#endregion  BasicMethod
190
+		#region  ExtensionMethod
191
+
192
+		#endregion  ExtensionMethod
193
+	}
194
+}
195
+

+ 1 - 0
RMYY_CallCenter_Api.Dal/RMYY_CallCenter_Api.Dal.csproj

@@ -70,6 +70,7 @@
70 70
     <Compile Include="T_IntegratedScheduling_Base.cs" />
71 71
     <Compile Include="T_IntegratedScheduling_Detail.cs" />
72 72
     <Compile Include="T_IntegratedScheduling_OperationLog.cs" />
73
+    <Compile Include="T_IntegratedScheduling_Process.cs" />
73 74
     <Compile Include="T_InvolvedEquip_RepairProcess.cs" />
74 75
     <Compile Include="T_Mat_WorkOrder.cs" />
75 76
     <Compile Include="T_Mat_WorkOrderItem.cs" />

+ 387 - 0
RMYY_CallCenter_Api.Dal/T_IntegratedScheduling_Process.cs

@@ -0,0 +1,387 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_IntegratedScheduling_Process.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_IntegratedScheduling_Process
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2022/10/20 10:20:04   N/A    初版
10
+*
11
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
12
+*┌──────────────────────────────────┐
13
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
14
+*│ 版权所有:动软卓越(北京)科技有限公司              │
15
+*└──────────────────────────────────┘
16
+*/
17
+using System;
18
+using System.Data;
19
+using System.Text;
20
+using System.Data.SqlClient;
21
+using RMYY_CallCenter_Api.DB;
22
+
23
+namespace RMYY_CallCenter_Api.DAL
24
+{
25
+	/// <summary>
26
+	/// 数据访问类:T_IntegratedScheduling_Process
27
+	/// </summary>
28
+	public partial class T_IntegratedScheduling_Process
29
+	{
30
+		public T_IntegratedScheduling_Process()
31
+		{}
32
+		#region  BasicMethod
33
+
34
+		/// <summary>
35
+		/// 得到最大ID
36
+		/// </summary>
37
+		public int GetMaxId()
38
+		{
39
+		return DbHelperSQL.GetMaxID("F_ProcessId", "T_IntegratedScheduling_Process"); 
40
+		}
41
+
42
+		/// <summary>
43
+		/// 是否存在该记录
44
+		/// </summary>
45
+		public bool Exists(int F_ProcessId)
46
+		{
47
+			StringBuilder strSql=new StringBuilder();
48
+			strSql.Append("select count(1) from T_IntegratedScheduling_Process");
49
+			strSql.Append(" where F_ProcessId=@F_ProcessId");
50
+			SqlParameter[] parameters = {
51
+					new SqlParameter("@F_ProcessId", SqlDbType.Int,4)
52
+			};
53
+			parameters[0].Value = F_ProcessId;
54
+
55
+			return DbHelperSQL.Exists(strSql.ToString(),parameters);
56
+		}
57
+
58
+
59
+		/// <summary>
60
+		/// 增加一条数据
61
+		/// </summary>
62
+		public int Add(RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process model)
63
+		{
64
+			StringBuilder strSql=new StringBuilder();
65
+			strSql.Append("insert into T_IntegratedScheduling_Process(");
66
+			strSql.Append("F_WorkOrderCode,F_DealMan,F_DealDept,F_ProcessingTime,F_Result,F_File,F_ReturnReason,F_Isdelete,F_UpdateTime)");
67
+			strSql.Append(" values (");
68
+			strSql.Append("@F_WorkOrderCode,@F_DealMan,@F_DealDept,@F_ProcessingTime,@F_Result,@F_File,@F_ReturnReason,@F_Isdelete,@F_UpdateTime)");
69
+			strSql.Append(";select @@IDENTITY");
70
+			SqlParameter[] parameters = {
71
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
72
+					new SqlParameter("@F_DealMan", SqlDbType.NVarChar,100),
73
+					new SqlParameter("@F_DealDept", 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
+			parameters[0].Value = model.F_WorkOrderCode;
81
+			parameters[1].Value = model.F_DealMan;
82
+			parameters[2].Value = model.F_DealDept;
83
+			parameters[3].Value = model.F_ProcessingTime;
84
+			parameters[4].Value = model.F_Result;
85
+			parameters[5].Value = model.F_File;
86
+			parameters[6].Value = model.F_ReturnReason;
87
+			parameters[7].Value = model.F_Isdelete;
88
+			parameters[8].Value = model.F_UpdateTime;
89
+
90
+			object obj = DbHelperSQL.GetSingle(strSql.ToString(),parameters);
91
+			if (obj == null)
92
+			{
93
+				return 0;
94
+			}
95
+			else
96
+			{
97
+				return Convert.ToInt32(obj);
98
+			}
99
+		}
100
+		/// <summary>
101
+		/// 更新一条数据
102
+		/// </summary>
103
+		public bool Update(RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process model)
104
+		{
105
+			StringBuilder strSql=new StringBuilder();
106
+			strSql.Append("update T_IntegratedScheduling_Process set ");
107
+			strSql.Append("F_WorkOrderCode=@F_WorkOrderCode,");
108
+			strSql.Append("F_DealMan=@F_DealMan,");
109
+			strSql.Append("F_DealDept=@F_DealDept,");
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
+			SqlParameter[] parameters = {
118
+					new SqlParameter("@F_WorkOrderCode", SqlDbType.NVarChar,100),
119
+					new SqlParameter("@F_DealMan", SqlDbType.NVarChar,100),
120
+					new SqlParameter("@F_DealDept", 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
+			parameters[0].Value = model.F_WorkOrderCode;
129
+			parameters[1].Value = model.F_DealMan;
130
+			parameters[2].Value = model.F_DealDept;
131
+			parameters[3].Value = model.F_ProcessingTime;
132
+			parameters[4].Value = model.F_Result;
133
+			parameters[5].Value = model.F_File;
134
+			parameters[6].Value = model.F_ReturnReason;
135
+			parameters[7].Value = model.F_Isdelete;
136
+			parameters[8].Value = model.F_UpdateTime;
137
+			parameters[9].Value = model.F_ProcessId;
138
+
139
+			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
140
+			if (rows > 0)
141
+			{
142
+				return true;
143
+			}
144
+			else
145
+			{
146
+				return false;
147
+			}
148
+		}
149
+
150
+		/// <summary>
151
+		/// 删除一条数据
152
+		/// </summary>
153
+		public bool Delete(int F_ProcessId)
154
+		{
155
+			
156
+			StringBuilder strSql=new StringBuilder();
157
+			strSql.Append("delete from T_IntegratedScheduling_Process ");
158
+			strSql.Append(" where F_ProcessId=@F_ProcessId");
159
+			SqlParameter[] parameters = {
160
+					new SqlParameter("@F_ProcessId", SqlDbType.Int,4)
161
+			};
162
+			parameters[0].Value = F_ProcessId;
163
+
164
+			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
165
+			if (rows > 0)
166
+			{
167
+				return true;
168
+			}
169
+			else
170
+			{
171
+				return false;
172
+			}
173
+		}
174
+		/// <summary>
175
+		/// 批量删除数据
176
+		/// </summary>
177
+		public bool DeleteList(string F_ProcessIdlist )
178
+		{
179
+			StringBuilder strSql=new StringBuilder();
180
+			strSql.Append("delete from T_IntegratedScheduling_Process ");
181
+			strSql.Append(" where F_ProcessId in ("+F_ProcessIdlist + ")  ");
182
+			int rows=DbHelperSQL.ExecuteSql(strSql.ToString());
183
+			if (rows > 0)
184
+			{
185
+				return true;
186
+			}
187
+			else
188
+			{
189
+				return false;
190
+			}
191
+		}
192
+
193
+
194
+		/// <summary>
195
+		/// 得到一个对象实体
196
+		/// </summary>
197
+		public RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process GetModel(int F_ProcessId)
198
+		{
199
+			
200
+			StringBuilder strSql=new StringBuilder();
201
+			strSql.Append("select  top 1 F_ProcessId,F_WorkOrderCode,F_DealMan,F_DealDept,F_ProcessingTime,F_Result,F_File,F_ReturnReason,F_Isdelete,F_UpdateTime from T_IntegratedScheduling_Process ");
202
+			strSql.Append(" where F_ProcessId=@F_ProcessId");
203
+			SqlParameter[] parameters = {
204
+					new SqlParameter("@F_ProcessId", SqlDbType.Int,4)
205
+			};
206
+			parameters[0].Value = F_ProcessId;
207
+
208
+			RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process model=new RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process();
209
+			DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
210
+			if(ds.Tables[0].Rows.Count>0)
211
+			{
212
+				return DataRowToModel(ds.Tables[0].Rows[0]);
213
+			}
214
+			else
215
+			{
216
+				return null;
217
+			}
218
+		}
219
+
220
+
221
+		/// <summary>
222
+		/// 得到一个对象实体
223
+		/// </summary>
224
+		public RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process DataRowToModel(DataRow row)
225
+		{
226
+			RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process model=new RMYY_CallCenter_Api.Model.T_IntegratedScheduling_Process();
227
+			if (row != null)
228
+			{
229
+				if(row["F_ProcessId"]!=null && row["F_ProcessId"].ToString()!="")
230
+				{
231
+					model.F_ProcessId=int.Parse(row["F_ProcessId"].ToString());
232
+				}
233
+				if(row["F_WorkOrderCode"]!=null)
234
+				{
235
+					model.F_WorkOrderCode=row["F_WorkOrderCode"].ToString();
236
+				}
237
+				if(row["F_DealMan"]!=null)
238
+				{
239
+					model.F_DealMan=row["F_DealMan"].ToString();
240
+				}
241
+				if(row["F_DealDept"]!=null)
242
+				{
243
+					model.F_DealDept=row["F_DealDept"].ToString();
244
+				}
245
+				if(row["F_ProcessingTime"]!=null && row["F_ProcessingTime"].ToString()!="")
246
+				{
247
+					model.F_ProcessingTime=DateTime.Parse(row["F_ProcessingTime"].ToString());
248
+				}
249
+				if(row["F_Result"]!=null)
250
+				{
251
+					model.F_Result=row["F_Result"].ToString();
252
+				}
253
+				if(row["F_File"]!=null)
254
+				{
255
+					model.F_File=row["F_File"].ToString();
256
+				}
257
+				if(row["F_ReturnReason"]!=null)
258
+				{
259
+					model.F_ReturnReason=row["F_ReturnReason"].ToString();
260
+				}
261
+				if(row["F_Isdelete"]!=null && row["F_Isdelete"].ToString()!="")
262
+				{
263
+					model.F_Isdelete=int.Parse(row["F_Isdelete"].ToString());
264
+				}
265
+				if(row["F_UpdateTime"]!=null && row["F_UpdateTime"].ToString()!="")
266
+				{
267
+					model.F_UpdateTime=DateTime.Parse(row["F_UpdateTime"].ToString());
268
+				}
269
+			}
270
+			return model;
271
+		}
272
+
273
+		/// <summary>
274
+		/// 获得数据列表
275
+		/// </summary>
276
+		public DataSet GetList(string strWhere)
277
+		{
278
+			StringBuilder strSql=new StringBuilder();
279
+			strSql.Append("select F_ProcessId,F_WorkOrderCode,F_DealMan,F_DealDept,F_ProcessingTime,F_Result,F_File,F_ReturnReason,F_Isdelete,F_UpdateTime ");
280
+			strSql.Append(" FROM T_IntegratedScheduling_Process ");
281
+			if(strWhere.Trim()!="")
282
+			{
283
+				strSql.Append(" where "+strWhere);
284
+			}
285
+			return DbHelperSQL.Query(strSql.ToString());
286
+		}
287
+
288
+		/// <summary>
289
+		/// 获得前几行数据
290
+		/// </summary>
291
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
292
+		{
293
+			StringBuilder strSql=new StringBuilder();
294
+			strSql.Append("select ");
295
+			if(Top>0)
296
+			{
297
+				strSql.Append(" top "+Top.ToString());
298
+			}
299
+			strSql.Append(" F_ProcessId,F_WorkOrderCode,F_DealMan,F_DealDept,F_ProcessingTime,F_Result,F_File,F_ReturnReason,F_Isdelete,F_UpdateTime ");
300
+			strSql.Append(" FROM T_IntegratedScheduling_Process ");
301
+			if(strWhere.Trim()!="")
302
+			{
303
+				strSql.Append(" where "+strWhere);
304
+			}
305
+			strSql.Append(" order by " + filedOrder);
306
+			return DbHelperSQL.Query(strSql.ToString());
307
+		}
308
+
309
+		/// <summary>
310
+		/// 获取记录总数
311
+		/// </summary>
312
+		public int GetRecordCount(string strWhere)
313
+		{
314
+			StringBuilder strSql=new StringBuilder();
315
+			strSql.Append("select count(1) FROM T_IntegratedScheduling_Process ");
316
+			if(strWhere.Trim()!="")
317
+			{
318
+				strSql.Append(" where "+strWhere);
319
+			}
320
+			object obj = DbHelperSQL.GetSingle(strSql.ToString());
321
+			if (obj == null)
322
+			{
323
+				return 0;
324
+			}
325
+			else
326
+			{
327
+				return Convert.ToInt32(obj);
328
+			}
329
+		}
330
+		/// <summary>
331
+		/// 分页获取数据列表
332
+		/// </summary>
333
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
334
+		{
335
+			StringBuilder strSql=new StringBuilder();
336
+			strSql.Append("SELECT * FROM ( ");
337
+			strSql.Append(" SELECT ROW_NUMBER() OVER (");
338
+			if (!string.IsNullOrEmpty(orderby.Trim()))
339
+			{
340
+				strSql.Append("order by T." + orderby );
341
+			}
342
+			else
343
+			{
344
+				strSql.Append("order by T.F_ProcessId desc");
345
+			}
346
+			strSql.Append(")AS Row, T.*  from T_IntegratedScheduling_Process T ");
347
+			if (!string.IsNullOrEmpty(strWhere.Trim()))
348
+			{
349
+				strSql.Append(" WHERE " + strWhere);
350
+			}
351
+			strSql.Append(" ) TT");
352
+			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
353
+			return DbHelperSQL.Query(strSql.ToString());
354
+		}
355
+
356
+		/*
357
+		/// <summary>
358
+		/// 分页获取数据列表
359
+		/// </summary>
360
+		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
361
+		{
362
+			SqlParameter[] parameters = {
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
+					};
371
+			parameters[0].Value = "T_IntegratedScheduling_Process";
372
+			parameters[1].Value = "F_ProcessId";
373
+			parameters[2].Value = PageSize;
374
+			parameters[3].Value = PageIndex;
375
+			parameters[4].Value = 0;
376
+			parameters[5].Value = 0;
377
+			parameters[6].Value = strWhere;	
378
+			return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
379
+		}*/
380
+
381
+		#endregion  BasicMethod
382
+		#region  ExtensionMethod
383
+
384
+		#endregion  ExtensionMethod
385
+	}
386
+}
387
+

+ 1 - 0
RMYY_CallCenter_Api.Model/RMYY_CallCenter_Api.Model.csproj

@@ -71,6 +71,7 @@
71 71
     <Compile Include="T_IntegratedScheduling_Base.cs" />
72 72
     <Compile Include="T_IntegratedScheduling_Detail.cs" />
73 73
     <Compile Include="T_IntegratedScheduling_OperationLog.cs" />
74
+    <Compile Include="T_IntegratedScheduling_Process.cs" />
74 75
     <Compile Include="T_InvolvedEquip_RepairProcess.cs" />
75 76
     <Compile Include="T_Mat_WorkOrder.cs" />
76 77
     <Compile Include="T_Mat_WorkOrderItem.cs" />

+ 123 - 0
RMYY_CallCenter_Api.Model/T_IntegratedScheduling_Process.cs

@@ -0,0 +1,123 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_IntegratedScheduling_Process.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_IntegratedScheduling_Process
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2022/10/20 10:20:04   N/A    初版
10
+*
11
+* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
12
+*┌──────────────────────────────────┐
13
+*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
14
+*│ 版权所有:动软卓越(北京)科技有限公司              │
15
+*└──────────────────────────────────┘
16
+*/
17
+using System;
18
+namespace RMYY_CallCenter_Api.Model
19
+{
20
+	/// <summary>
21
+	/// T_IntegratedScheduling_Process:实体类(属性说明自动提取数据库字段的描述信息)
22
+	/// </summary>
23
+	[Serializable]
24
+	public partial class T_IntegratedScheduling_Process
25
+	{
26
+		public T_IntegratedScheduling_Process()
27
+		{}
28
+		#region Model
29
+		private int _f_processid;
30
+		private string _f_workordercode;
31
+		private string _f_dealman;
32
+		private string _f_dealdept;
33
+		private DateTime? _f_processingtime;
34
+		private string _f_result;
35
+		private string _f_file;
36
+		private string _f_returnreason;
37
+		private int? _f_isdelete;
38
+		private DateTime? _f_updatetime;
39
+		/// <summary>
40
+		/// 
41
+		/// </summary>
42
+		public int F_ProcessId
43
+		{
44
+			set{ _f_processid=value;}
45
+			get{return _f_processid;}
46
+		}
47
+		/// <summary>
48
+		/// 
49
+		/// </summary>
50
+		public string F_WorkOrderCode
51
+		{
52
+			set{ _f_workordercode=value;}
53
+			get{return _f_workordercode;}
54
+		}
55
+		/// <summary>
56
+		/// 
57
+		/// </summary>
58
+		public string F_DealMan
59
+		{
60
+			set{ _f_dealman=value;}
61
+			get{return _f_dealman;}
62
+		}
63
+		/// <summary>
64
+		/// 
65
+		/// </summary>
66
+		public string F_DealDept
67
+		{
68
+			set{ _f_dealdept=value;}
69
+			get{return _f_dealdept;}
70
+		}
71
+		/// <summary>
72
+		/// 
73
+		/// </summary>
74
+		public DateTime? F_ProcessingTime
75
+		{
76
+			set{ _f_processingtime=value;}
77
+			get{return _f_processingtime;}
78
+		}
79
+		/// <summary>
80
+		/// 
81
+		/// </summary>
82
+		public string F_Result
83
+		{
84
+			set{ _f_result=value;}
85
+			get{return _f_result;}
86
+		}
87
+		/// <summary>
88
+		/// 
89
+		/// </summary>
90
+		public string F_File
91
+		{
92
+			set{ _f_file=value;}
93
+			get{return _f_file;}
94
+		}
95
+		/// <summary>
96
+		/// 
97
+		/// </summary>
98
+		public string F_ReturnReason
99
+		{
100
+			set{ _f_returnreason=value;}
101
+			get{return _f_returnreason;}
102
+		}
103
+		/// <summary>
104
+		/// 
105
+		/// </summary>
106
+		public int? F_Isdelete
107
+		{
108
+			set{ _f_isdelete=value;}
109
+			get{return _f_isdelete;}
110
+		}
111
+		/// <summary>
112
+		/// 
113
+		/// </summary>
114
+		public DateTime? F_UpdateTime
115
+		{
116
+			set{ _f_updatetime=value;}
117
+			get{return _f_updatetime;}
118
+		}
119
+		#endregion Model
120
+
121
+	}
122
+}
123
+

+ 1 - 1
RMYY_CallCenter_Api/Controllers/SchedulingController.cs

@@ -363,7 +363,7 @@ namespace RMYY_CallCenter_Api.Controllers
363 363
             int pageindex = 1;
364 364
             string strpagesize = RequestString.GetQueryString("pagesize");
365 365
             int pagesize = 10;
366
-            int listtype = RequestString.GetInt("listtype", 1);
366
+            int listtype = RequestString.GetInt("listtype", 0);
367 367
             int dept = RequestString.GetInt("dept", -1);
368 368
 
369 369
             string strname = HttpUtility.UrlDecode(RequestString.GetQueryString("name"));