瀏覽代碼

上传项目

zhoufan 8 年之前
當前提交
d350ab6244
共有 100 個文件被更改,包括 17942 次插入0 次删除
  1. 151 0
      BaseCallCenter.BLL/HySoft.BaseCallCenter.BLL.csproj
  2. 38 0
      BaseCallCenter.BLL/LDWorkOrderCount.cs
  3. 24 0
      BaseCallCenter.BLL/PagerBLL.cs
  4. 26 0
      BaseCallCenter.BLL/Proc_Pagination.cs
  5. 36 0
      BaseCallCenter.BLL/Properties/AssemblyInfo.cs
  6. 189 0
      BaseCallCenter.BLL/T_Ask_PagerInfo.cs
  7. 174 0
      BaseCallCenter.BLL/T_Ask_PagerItems.cs
  8. 248 0
      BaseCallCenter.BLL/T_Ask_Question.cs
  9. 201 0
      BaseCallCenter.BLL/T_Ask_QuestionCategory.cs
  10. 216 0
      BaseCallCenter.BLL/T_Ask_QuestionItems.cs
  11. 377 0
      BaseCallCenter.BLL/T_CTI_Task.cs
  12. 135 0
      BaseCallCenter.BLL/T_Call_Blacklist.cs
  13. 270 0
      BaseCallCenter.BLL/T_Call_CallRecords.cs
  14. 337 0
      BaseCallCenter.BLL/T_Call_CallRecords_QC.cs
  15. 154 0
      BaseCallCenter.BLL/T_Call_LeaveRecord.cs
  16. 215 0
      BaseCallCenter.BLL/T_Call_PageField.cs
  17. 661 0
      BaseCallCenter.BLL/T_Call_TaskTelNum.cs
  18. 166 0
      BaseCallCenter.BLL/T_Call_WorkOrder.cs
  19. 195 0
      BaseCallCenter.BLL/T_Cus_ContactPerson.cs
  20. 171 0
      BaseCallCenter.BLL/T_Cus_CustomerBase.cs
  21. 162 0
      BaseCallCenter.BLL/T_Cus_CustomerExpand.cs
  22. 171 0
      BaseCallCenter.BLL/T_Exp_ExtensionBase.cs
  23. 177 0
      BaseCallCenter.BLL/T_Fax_RecvFax.cs
  24. 181 0
      BaseCallCenter.BLL/T_Fax_SendFaxTask.cs
  25. 194 0
      BaseCallCenter.BLL/T_Fax_SentFax.cs
  26. 168 0
      BaseCallCenter.BLL/T_Form_AttributeTypes.cs
  27. 345 0
      BaseCallCenter.BLL/T_Form_EntityAttribute.cs
  28. 192 0
      BaseCallCenter.BLL/T_Form_EntityInfo.cs
  29. 205 0
      BaseCallCenter.BLL/T_Form_FormInfo.cs
  30. 201 0
      BaseCallCenter.BLL/T_QC_IndexBase.cs
  31. 201 0
      BaseCallCenter.BLL/T_QC_IndexCategory.cs
  32. 165 0
      BaseCallCenter.BLL/T_QC_IndexRes.cs
  33. 178 0
      BaseCallCenter.BLL/T_RegionCategory.cs
  34. 68 0
      BaseCallCenter.BLL/T_Report.cs
  35. 153 0
      BaseCallCenter.BLL/T_RepositoryCategory.cs
  36. 154 0
      BaseCallCenter.BLL/T_RepositoryInformation.cs
  37. 170 0
      BaseCallCenter.BLL/T_SMS_RecvSMS.cs
  38. 188 0
      BaseCallCenter.BLL/T_SMS_SendSMSTask.cs
  39. 192 0
      BaseCallCenter.BLL/T_SMS_SentSMS.cs
  40. 176 0
      BaseCallCenter.BLL/T_Sms_SmsModel.cs
  41. 142 0
      BaseCallCenter.BLL/T_Sys_CallOptLogs.cs
  42. 143 0
      BaseCallCenter.BLL/T_Sys_Department.cs
  43. 143 0
      BaseCallCenter.BLL/T_Sys_DictionaryBase.cs
  44. 143 0
      BaseCallCenter.BLL/T_Sys_DictionaryValue.cs
  45. 141 0
      BaseCallCenter.BLL/T_Sys_LoginLogs.cs
  46. 140 0
      BaseCallCenter.BLL/T_Sys_MobileData.cs
  47. 146 0
      BaseCallCenter.BLL/T_Sys_ModuleFunctions.cs
  48. 139 0
      BaseCallCenter.BLL/T_Sys_ModuleFunctionsOpt.cs
  49. 140 0
      BaseCallCenter.BLL/T_Sys_ModuleInfo.cs
  50. 139 0
      BaseCallCenter.BLL/T_Sys_Note.cs
  51. 140 0
      BaseCallCenter.BLL/T_Sys_OperateLogs.cs
  52. 151 0
      BaseCallCenter.BLL/T_Sys_RoleFunction.cs
  53. 139 0
      BaseCallCenter.BLL/T_Sys_RoleInfo.cs
  54. 142 0
      BaseCallCenter.BLL/T_Sys_RoleModule.cs
  55. 148 0
      BaseCallCenter.BLL/T_Sys_RoleOpt.cs
  56. 150 0
      BaseCallCenter.BLL/T_Sys_SystemConfig.cs
  57. 193 0
      BaseCallCenter.BLL/T_Sys_TelTitleData.cs
  58. 305 0
      BaseCallCenter.BLL/T_Sys_TempItems.cs
  59. 218 0
      BaseCallCenter.BLL/T_Sys_UserAccount.cs
  60. 140 0
      BaseCallCenter.BLL/T_Sys_UserGroup.cs
  61. 144 0
      BaseCallCenter.BLL/T_Sys_WorkCalendar.cs
  62. 146 0
      BaseCallCenter.BLL/T_Sys_WorkTimes.cs
  63. 217 0
      BaseCallCenter.BLL/T_Wf_WorkFlow.cs
  64. 197 0
      BaseCallCenter.BLL/T_Wo_StateAlarmDate.cs
  65. 193 0
      BaseCallCenter.BLL/T_Wo_TypeAlarmDate.cs
  66. 523 0
      BaseCallCenter.BLL/T_Wo_WorkOrderBase.cs
  67. 149 0
      BaseCallCenter.BLL/T_Wo_WorkOrderButton.cs
  68. 182 0
      BaseCallCenter.BLL/T_Wo_WorkOrderConstructor.cs
  69. 189 0
      BaseCallCenter.BLL/T_Wo_WorkOrderEvaluation.cs
  70. 206 0
      BaseCallCenter.BLL/T_Wo_WorkOrderFiles.cs
  71. 236 0
      BaseCallCenter.BLL/T_Wo_WorkOrderHistory.cs
  72. 253 0
      BaseCallCenter.BLL/T_Wo_WorkOrderHistoryInfo.cs
  73. 163 0
      BaseCallCenter.BLL/T_Wo_WorkOrderState.cs
  74. 177 0
      BaseCallCenter.BLL/T_Wo_WorkOrderSupplies.cs
  75. 229 0
      BaseCallCenter.BLL/T_Wo_WorkOrderTask.cs
  76. 209 0
      BaseCallCenter.BLL/T_Wo_WorkOrderTaskHasten.cs
  77. 217 0
      BaseCallCenter.BLL/T_Wo_WorkOrderTaskInfo.cs
  78. 208 0
      BaseCallCenter.BLL/T_Wo_WorkOrderType.cs
  79. 124 0
      BaseCallCenter.BLL/T_Wo_WorkOrderTypeState.cs
  80. 301 0
      BaseCallCenter.BLL/UserAccount.cs
  81. 98 0
      BaseCallCenter.Common/CacheHelper.cs
  82. 379 0
      BaseCallCenter.Common/CommonRequest.cs
  83. 111 0
      BaseCallCenter.Common/ConfigUtil.cs
  84. 145 0
      BaseCallCenter.Common/CookieUtil.cs
  85. 100 0
      BaseCallCenter.Common/DESEncrypt.cs
  86. 402 0
      BaseCallCenter.Common/DNTRequest.cs
  87. 121 0
      BaseCallCenter.Common/DTEnums.cs
  88. 205 0
      BaseCallCenter.Common/DTKeys.cs
  89. 45 0
      BaseCallCenter.Common/DTMail.cs
  90. 381 0
      BaseCallCenter.Common/DTRequest.cs
  91. 92 0
      BaseCallCenter.Common/HySoft.Common.csproj
  92. 236 0
      BaseCallCenter.Common/LoginUser.cs
  93. 90 0
      BaseCallCenter.Common/MessageBox.cs
  94. 64 0
      BaseCallCenter.Common/Office/Excel/ExcelStyle.cs
  95. 75 0
      BaseCallCenter.Common/Office/Excel/ExcelStyleCollection.cs
  96. 144 0
      BaseCallCenter.Common/Office/Excel/ExcelWorkbook.cs
  97. 137 0
      BaseCallCenter.Common/Office/Excel/Worksheet.cs
  98. 68 0
      BaseCallCenter.Common/Office/Excel/WorksheetCollection.cs
  99. 19 0
      BaseCallCenter.Common/Office/Excel/使用方法.txt
  100. 0 0
      BaseCallCenter.Common/Properties/AssemblyInfo.cs

+ 151 - 0
BaseCallCenter.BLL/HySoft.BaseCallCenter.BLL.csproj

@@ -0,0 +1,151 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup>
4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
+    <ProductVersion>8.0.30703</ProductVersion>
7
+    <SchemaVersion>2.0</SchemaVersion>
8
+    <ProjectGuid>{686AB9E3-CAF6-4740-962D-6E7AFFC7BA22}</ProjectGuid>
9
+    <OutputType>Library</OutputType>
10
+    <AppDesignerFolder>Properties</AppDesignerFolder>
11
+    <RootNamespace>HySoft.BaseCallCenter.BLL</RootNamespace>
12
+    <AssemblyName>HySoft.BaseCallCenter.BLL</AssemblyName>
13
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14
+    <FileAlignment>512</FileAlignment>
15
+    <TargetFrameworkProfile />
16
+    <SccProjectName>
17
+    </SccProjectName>
18
+    <SccLocalPath>
19
+    </SccLocalPath>
20
+    <SccAuxPath>
21
+    </SccAuxPath>
22
+    <SccProvider>
23
+    </SccProvider>
24
+  </PropertyGroup>
25
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
26
+    <DebugSymbols>true</DebugSymbols>
27
+    <DebugType>full</DebugType>
28
+    <Optimize>false</Optimize>
29
+    <OutputPath>bin\Debug\</OutputPath>
30
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
31
+    <ErrorReport>prompt</ErrorReport>
32
+    <WarningLevel>4</WarningLevel>
33
+  </PropertyGroup>
34
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
35
+    <DebugType>pdbonly</DebugType>
36
+    <Optimize>true</Optimize>
37
+    <OutputPath>bin\Release\</OutputPath>
38
+    <DefineConstants>TRACE</DefineConstants>
39
+    <ErrorReport>prompt</ErrorReport>
40
+    <WarningLevel>4</WarningLevel>
41
+  </PropertyGroup>
42
+  <ItemGroup>
43
+    <Reference Include="System" />
44
+    <Reference Include="System.Data" />
45
+    <Reference Include="System.Web" />
46
+    <Reference Include="System.Xml" />
47
+  </ItemGroup>
48
+  <ItemGroup>
49
+    <Compile Include="LDWorkOrderCount.cs" />
50
+    <Compile Include="PagerBLL.cs" />
51
+    <Compile Include="Proc_Pagination.cs" />
52
+    <Compile Include="Properties\AssemblyInfo.cs" />
53
+    <Compile Include="T_Ask_PagerInfo.cs" />
54
+    <Compile Include="T_Ask_PagerItems.cs" />
55
+    <Compile Include="T_Ask_Question.cs" />
56
+    <Compile Include="T_Ask_QuestionCategory.cs" />
57
+    <Compile Include="T_Ask_QuestionItems.cs" />
58
+    <Compile Include="T_Call_Blacklist.cs" />
59
+    <Compile Include="T_Call_CallRecords.cs" />
60
+    <Compile Include="T_Call_CallRecords_QC.cs" />
61
+    <Compile Include="T_Call_LeaveRecord.cs" />
62
+    <Compile Include="T_Call_PageField.cs" />
63
+    <Compile Include="T_Call_TaskTelNum.cs" />
64
+    <Compile Include="T_Call_WorkOrder.cs" />
65
+    <Compile Include="T_CTI_Task.cs" />
66
+    <Compile Include="T_Cus_ContactPerson.cs" />
67
+    <Compile Include="T_Cus_CustomerBase.cs" />
68
+    <Compile Include="T_Cus_CustomerExpand.cs" />
69
+    <Compile Include="T_Exp_ExtensionBase.cs" />
70
+    <Compile Include="T_Fax_RecvFax.cs" />
71
+    <Compile Include="T_Fax_SendFaxTask.cs" />
72
+    <Compile Include="T_Fax_SentFax.cs" />
73
+    <Compile Include="T_Form_AttributeTypes.cs" />
74
+    <Compile Include="T_Form_EntityAttribute.cs" />
75
+    <Compile Include="T_Form_EntityInfo.cs" />
76
+    <Compile Include="T_Form_FormInfo.cs" />
77
+    <Compile Include="T_QC_IndexBase.cs" />
78
+    <Compile Include="T_QC_IndexCategory.cs" />
79
+    <Compile Include="T_QC_IndexRes.cs" />
80
+    <Compile Include="T_RegionCategory.cs" />
81
+    <Compile Include="T_Report.cs" />
82
+    <Compile Include="T_RepositoryCategory.cs" />
83
+    <Compile Include="T_RepositoryInformation.cs" />
84
+    <Compile Include="T_SMS_RecvSMS.cs" />
85
+    <Compile Include="T_SMS_SendSMSTask.cs" />
86
+    <Compile Include="T_SMS_SentSMS.cs" />
87
+    <Compile Include="T_Sms_SmsModel.cs" />
88
+    <Compile Include="T_Sys_CallOptLogs.cs" />
89
+    <Compile Include="T_Sys_Department.cs" />
90
+    <Compile Include="T_Sys_DictionaryBase.cs" />
91
+    <Compile Include="T_Sys_DictionaryValue.cs" />
92
+    <Compile Include="T_Sys_LoginLogs.cs" />
93
+    <Compile Include="T_Sys_MobileData.cs" />
94
+    <Compile Include="T_Sys_ModuleFunctions.cs" />
95
+    <Compile Include="T_Sys_ModuleFunctionsOpt.cs" />
96
+    <Compile Include="T_Sys_ModuleInfo.cs" />
97
+    <Compile Include="T_Sys_Note.cs" />
98
+    <Compile Include="T_Sys_OperateLogs.cs" />
99
+    <Compile Include="T_Sys_RoleFunction.cs" />
100
+    <Compile Include="T_Sys_RoleInfo.cs" />
101
+    <Compile Include="T_Sys_RoleModule.cs" />
102
+    <Compile Include="T_Sys_RoleOpt.cs" />
103
+    <Compile Include="T_Sys_SystemConfig.cs" />
104
+    <Compile Include="T_Sys_TelTitleData.cs" />
105
+    <Compile Include="T_Sys_TempItems.cs" />
106
+    <Compile Include="T_Sys_UserAccount.cs" />
107
+    <Compile Include="T_Sys_UserGroup.cs" />
108
+    <Compile Include="T_Sys_WorkCalendar.cs" />
109
+    <Compile Include="T_Sys_WorkTimes.cs" />
110
+    <Compile Include="T_Wf_WorkFlow.cs" />
111
+    <Compile Include="T_Wo_StateAlarmDate.cs" />
112
+    <Compile Include="T_Wo_TypeAlarmDate.cs" />
113
+    <Compile Include="T_Wo_WorkOrderBase.cs" />
114
+    <Compile Include="T_Wo_WorkOrderButton.cs" />
115
+    <Compile Include="T_Wo_WorkOrderConstructor.cs" />
116
+    <Compile Include="T_Wo_WorkOrderEvaluation.cs" />
117
+    <Compile Include="T_Wo_WorkOrderFiles.cs" />
118
+    <Compile Include="T_Wo_WorkOrderHistory.cs" />
119
+    <Compile Include="T_Wo_WorkOrderHistoryInfo.cs" />
120
+    <Compile Include="T_Wo_WorkOrderState.cs" />
121
+    <Compile Include="T_Wo_WorkOrderSupplies.cs" />
122
+    <Compile Include="T_Wo_WorkOrderTask.cs" />
123
+    <Compile Include="T_Wo_WorkOrderTaskHasten.cs" />
124
+    <Compile Include="T_Wo_WorkOrderTaskInfo.cs" />
125
+    <Compile Include="T_Wo_WorkOrderType.cs" />
126
+    <Compile Include="T_Wo_WorkOrderTypeState.cs" />
127
+    <Compile Include="UserAccount.cs" />
128
+  </ItemGroup>
129
+  <ItemGroup>
130
+    <ProjectReference Include="..\BaseCallCenter.Common\HySoft.Common.csproj">
131
+      <Project>{56213535-7FD9-4ACD-A497-705670CE61DC}</Project>
132
+      <Name>HySoft.Common</Name>
133
+    </ProjectReference>
134
+    <ProjectReference Include="..\BaseCallCenter.DAL\HySoft.BaseCallCenter.DAL.csproj">
135
+      <Project>{A18F58A7-3A14-4558-BA3F-42D61E00909F}</Project>
136
+      <Name>HySoft.BaseCallCenter.DAL</Name>
137
+    </ProjectReference>
138
+    <ProjectReference Include="..\BaseCallCenter.Model\HySoft.BaseCallCenter.Model.csproj">
139
+      <Project>{EA3A3BD8-2B5F-4077-9D8A-DFF27CDD4C12}</Project>
140
+      <Name>HySoft.BaseCallCenter.Model</Name>
141
+    </ProjectReference>
142
+  </ItemGroup>
143
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
144
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
145
+       Other similar extension points exist, see Microsoft.Common.targets.
146
+  <Target Name="BeforeBuild">
147
+  </Target>
148
+  <Target Name="AfterBuild">
149
+  </Target>
150
+  -->
151
+</Project>

+ 38 - 0
BaseCallCenter.BLL/LDWorkOrderCount.cs

@@ -0,0 +1,38 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    public class LDWorkOrderCount
10
+    {
11
+        public List<Model.LDWorkOrderCount> DataTableToList(DataTable dt)
12
+        {
13
+            List<HySoft.BaseCallCenter.Model.LDWorkOrderCount> modelList = new List<HySoft.BaseCallCenter.Model.LDWorkOrderCount>();
14
+            int rowsCount = dt.Rows.Count;
15
+            if (rowsCount > 0)
16
+            {
17
+                HySoft.BaseCallCenter.Model.LDWorkOrderCount model;
18
+                for (int n = 0; n < rowsCount; n++)
19
+                {
20
+                    model = new DAL.LDWorkOrderCount().DataRowToModel(dt.Rows[n]);
21
+                    model.F_DEPTNAME = model.F_DEPTNAME = getDeptName(model.F_DEPTID);
22
+                    if (model != null)
23
+                    {
24
+                        modelList.Add(model);
25
+                    }
26
+                }
27
+            }
28
+            return modelList;
29
+        }
30
+        private string getDeptName(int deptid)
31
+        {
32
+            var dept = new BLL.T_Sys_Department().GetModel(deptid);
33
+            if (dept != null)
34
+                return dept.F_DeptName;
35
+            else return "";
36
+        }
37
+    }
38
+}

+ 24 - 0
BaseCallCenter.BLL/PagerBLL.cs

@@ -0,0 +1,24 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    public class PagerBLL
10
+    {
11
+        /// <summary>
12
+        /// 分页获取数据
13
+        /// </summary>
14
+        /// <param name="PageSize"></param>
15
+        /// <param name="PageIndex"></param>
16
+        /// <param name="strWhere"></param>
17
+        /// <returns></returns>
18
+        public static DataTable GetListPager(string TableName, string PK, string Fields, string WhereStr, string OrderStr, int PageSize, int PageIndex, bool IsCount, out int RecordCount)
19
+        {
20
+            DataTable dt = DAL.PagerDAL.GetListPager(TableName, PK, Fields, WhereStr, OrderStr, PageSize, PageIndex, IsCount, out RecordCount);
21
+            return dt;
22
+        }
23
+    }
24
+}

+ 26 - 0
BaseCallCenter.BLL/Proc_Pagination.cs

@@ -0,0 +1,26 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    public class Proc_Pagination
10
+    {
11
+        private readonly HySoft.BaseCallCenter.DAL.Proc_Pagination dal = new HySoft.BaseCallCenter.DAL.Proc_Pagination();
12
+        public Proc_Pagination()
13
+        { }
14
+        /// <summary>
15
+        /// 分页获取数据
16
+        /// </summary>
17
+        /// <param name="PageSize"></param>
18
+        /// <param name="PageIndex"></param>
19
+        /// <param name="strWhere"></param>
20
+        /// <returns></returns>
21
+        public DataTable GetListPager(string viewtable, string viewKey, string searchField, string sortStr, string WhereStr, int PageSize, int PageIndex, bool IsCount, out int RecordCount)
22
+        {
23
+            return dal.GetListPager(viewtable, viewKey, searchField, sortStr,WhereStr, PageSize, PageIndex, IsCount, out RecordCount);
24
+        }
25
+    }
26
+}

+ 36 - 0
BaseCallCenter.BLL/Properties/AssemblyInfo.cs

@@ -0,0 +1,36 @@
1
+using System.Reflection;
2
+using System.Runtime.CompilerServices;
3
+using System.Runtime.InteropServices;
4
+using HySoft.Common;
5
+
6
+// 有关程序集的常规信息通过以下
7
+// 特性集控制。更改这些特性值可修改
8
+// 与程序集关联的信息。
9
+[assembly: AssemblyTitle("HySoft.TMCC 业务层类库")]
10
+[assembly: AssemblyDescription("HySoft.TMCC 业务层类库")]
11
+[assembly: AssemblyConfiguration("")]
12
+[assembly: AssemblyCompany("HySoft")]
13
+[assembly: AssemblyProduct("")]
14
+[assembly: AssemblyCopyright("Copyright 2013 All Rights Reserved.")]
15
+[assembly: AssemblyTrademark("HySoft")]
16
+[assembly: AssemblyCulture("")]
17
+
18
+// 将 ComVisible 设置为 false 使此程序集中的类型
19
+// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
20
+// 则将该类型上的 ComVisible 特性设置为 true。
21
+[assembly: ComVisible(true)]
22
+
23
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
24
+[assembly: Guid("c4bce4d1-1678-479b-9f87-33818dfde975")]
25
+
26
+// 程序集的版本信息由下面四个值组成:
27
+//
28
+//      主版本
29
+//      次版本 
30
+//      内部版本号
31
+//      修订号
32
+//
33
+// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
34
+// 方法是按如下所示使用“*”:
35
+[assembly: AssemblyVersion("1.0.0.0")]
36
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 189 - 0
BaseCallCenter.BLL/T_Ask_PagerInfo.cs

@@ -0,0 +1,189 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Ask_PagerInfo
11
+    /// </summary>
12
+    public partial class T_Ask_PagerInfo
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Ask_PagerInfo dal = new HySoft.BaseCallCenter.DAL.T_Ask_PagerInfo();
15
+        public T_Ask_PagerInfo()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_PagerId)
22
+        {
23
+            return dal.Exists(F_PagerId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Ask_PagerInfo model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Ask_PagerInfo model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_PagerId)
46
+        {
47
+
48
+            return dal.Delete(F_PagerId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_PagerIdlist)
54
+        {
55
+            return dal.DeleteList(F_PagerIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Ask_PagerInfo GetModel(int F_PagerId)
62
+        {
63
+
64
+            return dal.GetModel(F_PagerId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Ask_PagerInfo> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Ask_PagerInfo> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Ask_PagerInfo> modelList = new List<HySoft.BaseCallCenter.Model.T_Ask_PagerInfo>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Ask_PagerInfo model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Ask_PagerInfo();
102
+                    if (dt.Rows[n]["F_PagerId"] != null && dt.Rows[n]["F_PagerId"].ToString() != "")
103
+                    {
104
+                        model.F_PagerId = int.Parse(dt.Rows[n]["F_PagerId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_CategoryId"] != null && dt.Rows[n]["F_CategoryId"].ToString() != "")
107
+                    {
108
+                        model.F_CategoryId = int.Parse(dt.Rows[n]["F_CategoryId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_Title"] != null && dt.Rows[n]["F_Title"].ToString() != "")
111
+                    {
112
+                        model.F_Title = dt.Rows[n]["F_Title"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
115
+                    {
116
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_ArrQuestion"] != null && dt.Rows[n]["F_ArrQuestion"].ToString() != "")
119
+                    {
120
+                        model.F_ArrQuestion = dt.Rows[n]["F_ArrQuestion"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_FullScore"] != null && dt.Rows[n]["F_FullScore"].ToString() != "")
123
+                    {
124
+                        model.F_FullScore = int.Parse(dt.Rows[n]["F_FullScore"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["F_Times"] != null && dt.Rows[n]["F_Times"].ToString() != "")
127
+                    {
128
+                        model.F_Times = int.Parse(dt.Rows[n]["F_Times"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
131
+                    {
132
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_CreateBy"] != null && dt.Rows[n]["F_CreateBy"].ToString() != "")
135
+                    {
136
+                        model.F_CreateBy = int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_ModifyOn"] != null && dt.Rows[n]["F_ModifyOn"].ToString() != "")
139
+                    {
140
+                        model.F_ModifyOn = DateTime.Parse(dt.Rows[n]["F_ModifyOn"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["F_ModifyBy"] != null && dt.Rows[n]["F_ModifyBy"].ToString() != "")
143
+                    {
144
+                        model.F_ModifyBy = int.Parse(dt.Rows[n]["F_ModifyBy"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["F_DeleteFlag"] != null && dt.Rows[n]["F_DeleteFlag"].ToString() != "")
147
+                    {
148
+                        model.F_DeleteFlag = int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
149
+                    }
150
+                    modelList.Add(model);
151
+                }
152
+            }
153
+            return modelList;
154
+        }
155
+
156
+        /// <summary>
157
+        /// 获得数据列表
158
+        /// </summary>
159
+        public DataSet GetAllList()
160
+        {
161
+            return GetList("");
162
+        }
163
+
164
+        /// <summary>
165
+        /// 分页获取数据列表
166
+        /// </summary>
167
+        public int GetRecordCount(string strWhere)
168
+        {
169
+            return dal.GetRecordCount(strWhere);
170
+        }
171
+        /// <summary>
172
+        /// 分页获取数据列表
173
+        /// </summary>
174
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
175
+        {
176
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
177
+        }
178
+        /// <summary>
179
+        /// 分页获取数据列表
180
+        /// </summary>
181
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
182
+        //{
183
+        //return dal.GetList(PageSize,PageIndex,strWhere);
184
+        //}
185
+
186
+        #endregion  Method
187
+    }
188
+}
189
+

+ 174 - 0
BaseCallCenter.BLL/T_Ask_PagerItems.cs

@@ -0,0 +1,174 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Ask_PagerItems
11
+    /// </summary>
12
+    public partial class T_Ask_PagerItems
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Ask_PagerItems dal = new HySoft.BaseCallCenter.DAL.T_Ask_PagerItems();
15
+        public T_Ask_PagerItems()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_ItemId)
22
+        {
23
+            return dal.Exists(F_ItemId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Ask_PagerItems model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Ask_PagerItems model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_ItemId)
46
+        {
47
+
48
+            return dal.Delete(F_ItemId);
49
+        }
50
+
51
+        /// <summary>
52
+        /// 删除一条数据
53
+        /// </summary>
54
+        public bool DeleteByPagerId(int F_PagerId)
55
+        {
56
+
57
+            return dal.DeleteByPagerId(F_PagerId);
58
+        }
59
+        /// <summary>
60
+        /// 删除一条数据
61
+        /// </summary>
62
+        public bool DeleteList(string F_ItemIdlist)
63
+        {
64
+            return dal.DeleteList(F_ItemIdlist);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 得到一个对象实体
69
+        /// </summary>
70
+        public HySoft.BaseCallCenter.Model.T_Ask_PagerItems GetModel(int F_ItemId)
71
+        {
72
+
73
+            return dal.GetModel(F_ItemId);
74
+        }
75
+
76
+        /// <summary>
77
+        /// 获得数据列表
78
+        /// </summary>
79
+        public DataSet GetList(string strWhere)
80
+        {
81
+            return dal.GetList(strWhere);
82
+        }
83
+        /// <summary>
84
+        /// 获得前几行数据
85
+        /// </summary>
86
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
87
+        {
88
+            return dal.GetList(Top, strWhere, filedOrder);
89
+        }
90
+        /// <summary>
91
+        /// 获得数据列表
92
+        /// </summary>
93
+        public List<HySoft.BaseCallCenter.Model.T_Ask_PagerItems> GetModelList(string strWhere)
94
+        {
95
+            DataSet ds = dal.GetList(strWhere);
96
+            return DataTableToList(ds.Tables[0]);
97
+        }
98
+        /// <summary>
99
+        /// 获得数据列表
100
+        /// </summary>
101
+        public List<HySoft.BaseCallCenter.Model.T_Ask_PagerItems> DataTableToList(DataTable dt)
102
+        {
103
+            List<HySoft.BaseCallCenter.Model.T_Ask_PagerItems> modelList = new List<HySoft.BaseCallCenter.Model.T_Ask_PagerItems>();
104
+            int rowsCount = dt.Rows.Count;
105
+            if (rowsCount > 0)
106
+            {
107
+                HySoft.BaseCallCenter.Model.T_Ask_PagerItems model;
108
+                for (int n = 0; n < rowsCount; n++)
109
+                {
110
+                    model = new HySoft.BaseCallCenter.Model.T_Ask_PagerItems();
111
+                    if (dt.Rows[n]["F_ItemId"] != null && dt.Rows[n]["F_ItemId"].ToString() != "")
112
+                    {
113
+                        model.F_ItemId = int.Parse(dt.Rows[n]["F_ItemId"].ToString());
114
+                    }
115
+                    if (dt.Rows[n]["F_PagerId"] != null && dt.Rows[n]["F_PagerId"].ToString() != "")
116
+                    {
117
+                        model.F_PagerId = int.Parse(dt.Rows[n]["F_PagerId"].ToString());
118
+                    }
119
+                    if (dt.Rows[n]["F_QuestionId"] != null && dt.Rows[n]["F_QuestionId"].ToString() != "")
120
+                    {
121
+                        model.F_QuestionId = int.Parse(dt.Rows[n]["F_QuestionId"].ToString());
122
+                    }
123
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
124
+                    {
125
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
126
+                    }
127
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
128
+                    {
129
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
130
+                    }
131
+                    if (dt.Rows[n]["F_Score"] != null && dt.Rows[n]["F_Score"].ToString() != "")
132
+                    {
133
+                        model.F_Score = int.Parse(dt.Rows[n]["F_Score"].ToString());
134
+                    }
135
+                    modelList.Add(model);
136
+                }
137
+            }
138
+            return modelList;
139
+        }
140
+
141
+        /// <summary>
142
+        /// 获得数据列表
143
+        /// </summary>
144
+        public DataSet GetAllList()
145
+        {
146
+            return GetList("");
147
+        }
148
+
149
+        /// <summary>
150
+        /// 分页获取数据列表
151
+        /// </summary>
152
+        public int GetRecordCount(string strWhere)
153
+        {
154
+            return dal.GetRecordCount(strWhere);
155
+        }
156
+        /// <summary>
157
+        /// 分页获取数据列表
158
+        /// </summary>
159
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
160
+        {
161
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
162
+        }
163
+        /// <summary>
164
+        /// 分页获取数据列表
165
+        /// </summary>
166
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
167
+        //{
168
+        //return dal.GetList(PageSize,PageIndex,strWhere);
169
+        //}
170
+
171
+        #endregion  Method
172
+    }
173
+}
174
+

+ 248 - 0
BaseCallCenter.BLL/T_Ask_Question.cs

@@ -0,0 +1,248 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Ask_Question
11
+    /// </summary>
12
+    public partial class T_Ask_Question
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Ask_Question dal = new HySoft.BaseCallCenter.DAL.T_Ask_Question();
15
+        public T_Ask_Question()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_QuestionId)
22
+        {
23
+            return dal.Exists(F_QuestionId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Ask_Question model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Ask_Question model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_QuestionId)
46
+        {
47
+
48
+            return dal.Delete(F_QuestionId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_QuestionIdlist)
54
+        {
55
+            return dal.DeleteList(F_QuestionIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Ask_Question GetModel(int F_QuestionId)
62
+        {
63
+
64
+            return dal.GetModel(F_QuestionId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Ask_Question> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Ask_Question> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Ask_Question> modelList = new List<HySoft.BaseCallCenter.Model.T_Ask_Question>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Ask_Question model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Ask_Question();
102
+                    if (dt.Rows[n]["F_QuestionId"] != null && dt.Rows[n]["F_QuestionId"].ToString() != "")
103
+                    {
104
+                        model.F_QuestionId = int.Parse(dt.Rows[n]["F_QuestionId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_CategoryId"] != null && dt.Rows[n]["F_CategoryId"].ToString() != "")
107
+                    {
108
+                        model.F_CategoryId = int.Parse(dt.Rows[n]["F_CategoryId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_Type"] != null && dt.Rows[n]["F_Type"].ToString() != "")
111
+                    {
112
+                        model.F_Type = int.Parse(dt.Rows[n]["F_Type"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["F_Title"] != null && dt.Rows[n]["F_Title"].ToString() != "")
115
+                    {
116
+                        model.F_Title = dt.Rows[n]["F_Title"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_Content"] != null && dt.Rows[n]["F_Content"].ToString() != "")
119
+                    {
120
+                        model.F_Content = dt.Rows[n]["F_Content"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
123
+                    {
124
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
125
+                    }
126
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
127
+                    {
128
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_CreateBy"] != null && dt.Rows[n]["F_CreateBy"].ToString() != "")
131
+                    {
132
+                        model.F_CreateBy = int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_ModifyOn"] != null && dt.Rows[n]["F_ModifyOn"].ToString() != "")
135
+                    {
136
+                        model.F_ModifyOn = DateTime.Parse(dt.Rows[n]["F_ModifyOn"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_ModifyBy"] != null && dt.Rows[n]["F_ModifyBy"].ToString() != "")
139
+                    {
140
+                        model.F_ModifyBy = int.Parse(dt.Rows[n]["F_ModifyBy"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["F_DeleteFlag"] != null && dt.Rows[n]["F_DeleteFlag"].ToString() != "")
143
+                    {
144
+                        model.F_DeleteFlag = int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["F_CategoryName"] != null && dt.Rows[n]["F_CategoryName"].ToString() != "")
147
+                    {
148
+                        model.F_CategoryName = dt.Rows[n]["F_CategoryName"].ToString();
149
+                    }
150
+                    if (dt.Rows[n]["F_SortModel"] != null && dt.Rows[n]["F_SortModel"].ToString() != "")
151
+                    {
152
+                        model.F_SortModel = int.Parse(dt.Rows[n]["F_SortModel"].ToString());
153
+                    }
154
+                    modelList.Add(model);
155
+                }
156
+            }
157
+            return modelList;
158
+        }
159
+
160
+        /// <summary>
161
+        /// 获得数据列表
162
+        /// </summary>
163
+        public List<HySoft.BaseCallCenter.Model.T_Ask_PagerItemsQuestion> DataTableToPagerItemList(DataTable dt)
164
+        {
165
+            List<HySoft.BaseCallCenter.Model.T_Ask_PagerItemsQuestion> modelList = new List<HySoft.BaseCallCenter.Model.T_Ask_PagerItemsQuestion>();
166
+            int rowsCount = dt.Rows.Count;
167
+            if (rowsCount > 0)
168
+            {
169
+                HySoft.BaseCallCenter.Model.T_Ask_PagerItemsQuestion model;
170
+                for (int n = 0; n < rowsCount; n++)
171
+                {
172
+                    model = new HySoft.BaseCallCenter.Model.T_Ask_PagerItemsQuestion();
173
+                    if (dt.Rows[n]["F_ItemId"] != null && dt.Rows[n]["F_ItemId"].ToString() != "")
174
+                    {
175
+                        model.F_ItemId = int.Parse(dt.Rows[n]["F_ItemId"].ToString());
176
+                    }
177
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
178
+                    {
179
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
180
+                    }
181
+                    if (dt.Rows[n]["F_QuestionId"] != null && dt.Rows[n]["F_QuestionId"].ToString() != "")
182
+                    {
183
+                        model.F_QuestionId = int.Parse(dt.Rows[n]["F_QuestionId"].ToString());
184
+                    }
185
+                    if (dt.Rows[n]["F_CategoryId"] != null && dt.Rows[n]["F_CategoryId"].ToString() != "")
186
+                    {
187
+                        model.F_CategoryId = int.Parse(dt.Rows[n]["F_CategoryId"].ToString());
188
+                    }
189
+                    if (dt.Rows[n]["F_Type"] != null && dt.Rows[n]["F_Type"].ToString() != "")
190
+                    {
191
+                        model.F_Type = int.Parse(dt.Rows[n]["F_Type"].ToString());
192
+                    }
193
+                    if (dt.Rows[n]["F_Title"] != null && dt.Rows[n]["F_Title"].ToString() != "")
194
+                    {
195
+                        model.F_Title = dt.Rows[n]["F_Title"].ToString();
196
+                    }
197
+                    if (dt.Rows[n]["F_Content"] != null && dt.Rows[n]["F_Content"].ToString() != "")
198
+                    {
199
+                        model.F_Content = dt.Rows[n]["F_Content"].ToString();
200
+                    }
201
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
202
+                    {
203
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
204
+                    }
205
+                    if (dt.Rows[n]["F_CategoryName"] != null && dt.Rows[n]["F_CategoryName"].ToString() != "")
206
+                    {
207
+                        model.F_CategoryName = dt.Rows[n]["F_CategoryName"].ToString();
208
+                    }
209
+                    modelList.Add(model);
210
+                }
211
+            }
212
+            return modelList;
213
+        }
214
+
215
+        /// <summary>
216
+        /// 获得数据列表
217
+        /// </summary>
218
+        public DataSet GetAllList()
219
+        {
220
+            return GetList("");
221
+        }
222
+
223
+        /// <summary>
224
+        /// 分页获取数据列表
225
+        /// </summary>
226
+        public int GetRecordCount(string strWhere)
227
+        {
228
+            return dal.GetRecordCount(strWhere);
229
+        }
230
+        /// <summary>
231
+        /// 分页获取数据列表
232
+        /// </summary>
233
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
234
+        {
235
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
236
+        }
237
+        /// <summary>
238
+        /// 分页获取数据列表
239
+        /// </summary>
240
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
241
+        //{
242
+        //return dal.GetList(PageSize,PageIndex,strWhere);
243
+        //}
244
+
245
+        #endregion  Method
246
+    }
247
+}
248
+

+ 201 - 0
BaseCallCenter.BLL/T_Ask_QuestionCategory.cs

@@ -0,0 +1,201 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Ask_QuestionCategory
11
+    /// </summary>
12
+    public partial class T_Ask_QuestionCategory
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Ask_QuestionCategory dal = new HySoft.BaseCallCenter.DAL.T_Ask_QuestionCategory();
15
+        public T_Ask_QuestionCategory()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_CategoryId)
22
+        {
23
+            return dal.Exists(F_CategoryId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_CategoryId)
46
+        {
47
+
48
+            return dal.Delete(F_CategoryId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_CategoryIdlist)
54
+        {
55
+            return dal.DeleteList(F_CategoryIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory GetModel(int F_CategoryId)
62
+        {
63
+
64
+            return dal.GetModel(F_CategoryId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory> modelList = new List<HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Ask_QuestionCategory();
102
+                    if (dt.Rows[n]["F_CategoryId"] != null && dt.Rows[n]["F_CategoryId"].ToString() != "")
103
+                    {
104
+                        model.F_CategoryId = int.Parse(dt.Rows[n]["F_CategoryId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_CategoryNumber"] != null && dt.Rows[n]["F_CategoryNumber"].ToString() != "")
107
+                    {
108
+                        model.F_CategoryNumber = dt.Rows[n]["F_CategoryNumber"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_CategoryName"] != null && dt.Rows[n]["F_CategoryName"].ToString() != "")
111
+                    {
112
+                        model.F_CategoryName = dt.Rows[n]["F_CategoryName"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_CategoryEName"] != null && dt.Rows[n]["F_CategoryEName"].ToString() != "")
115
+                    {
116
+                        model.F_CategoryEName = dt.Rows[n]["F_CategoryEName"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_Layer"] != null && dt.Rows[n]["F_Layer"].ToString() != "")
119
+                    {
120
+                        model.F_Layer = int.Parse(dt.Rows[n]["F_Layer"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["F_ParentId"] != null && dt.Rows[n]["F_ParentId"].ToString() != "")
123
+                    {
124
+                        model.F_ParentId = int.Parse(dt.Rows[n]["F_ParentId"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["F_CategoryType"] != null && dt.Rows[n]["F_CategoryType"].ToString() != "")
127
+                    {
128
+                        model.F_CategoryType = int.Parse(dt.Rows[n]["F_CategoryType"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_CanDelete"] != null && dt.Rows[n]["F_CanDelete"].ToString() != "")
131
+                    {
132
+                        model.F_CanDelete = int.Parse(dt.Rows[n]["F_CanDelete"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_IsCommon"] != null && dt.Rows[n]["F_IsCommon"].ToString() != "")
135
+                    {
136
+                        model.F_IsCommon = int.Parse(dt.Rows[n]["F_IsCommon"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
139
+                    {
140
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["F_Expand1"] != null && dt.Rows[n]["F_Expand1"].ToString() != "")
143
+                    {
144
+                        model.F_Expand1 = dt.Rows[n]["F_Expand1"].ToString();
145
+                    }
146
+                    if (dt.Rows[n]["F_Expand2"] != null && dt.Rows[n]["F_Expand2"].ToString() != "")
147
+                    {
148
+                        model.F_Expand2 = dt.Rows[n]["F_Expand2"].ToString();
149
+                    }
150
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
151
+                    {
152
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
153
+                    }
154
+                    if (dt.Rows[n]["F_CreateBy"] != null && dt.Rows[n]["F_CreateBy"].ToString() != "")
155
+                    {
156
+                        model.F_CreateBy = int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["F_DeleteFlag"] != null && dt.Rows[n]["F_DeleteFlag"].ToString() != "")
159
+                    {
160
+                        model.F_DeleteFlag = int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
161
+                    }
162
+                    modelList.Add(model);
163
+                }
164
+            }
165
+            return modelList;
166
+        }
167
+
168
+        /// <summary>
169
+        /// 获得数据列表
170
+        /// </summary>
171
+        public DataSet GetAllList()
172
+        {
173
+            return GetList("");
174
+        }
175
+
176
+        /// <summary>
177
+        /// 分页获取数据列表
178
+        /// </summary>
179
+        public int GetRecordCount(string strWhere)
180
+        {
181
+            return dal.GetRecordCount(strWhere);
182
+        }
183
+        /// <summary>
184
+        /// 分页获取数据列表
185
+        /// </summary>
186
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
187
+        {
188
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
189
+        }
190
+        /// <summary>
191
+        /// 分页获取数据列表
192
+        /// </summary>
193
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
194
+        //{
195
+        //return dal.GetList(PageSize,PageIndex,strWhere);
196
+        //}
197
+
198
+        #endregion  Method
199
+    }
200
+}
201
+

+ 216 - 0
BaseCallCenter.BLL/T_Ask_QuestionItems.cs

@@ -0,0 +1,216 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Ask_QuestionItems
11
+    /// </summary>
12
+    public partial class T_Ask_QuestionItems
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Ask_QuestionItems dal = new HySoft.BaseCallCenter.DAL.T_Ask_QuestionItems();
15
+        public T_Ask_QuestionItems()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_ItemId)
22
+        {
23
+            return dal.Exists(F_ItemId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Ask_QuestionItems model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Ask_QuestionItems model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_ItemId)
46
+        {
47
+
48
+            return dal.Delete(F_ItemId);
49
+        }
50
+
51
+        /// <summary>
52
+        /// 删除一条数据
53
+        /// </summary>
54
+        public bool DeleteByQuestionId(int F_QuestionId)
55
+        {
56
+
57
+            return dal.DeleteByQuestionId(F_QuestionId);
58
+        }
59
+        /// <summary>
60
+        /// 删除一条数据
61
+        /// </summary>
62
+        public bool DeleteList(string F_ItemIdlist)
63
+        {
64
+            return dal.DeleteList(F_ItemIdlist);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 得到一个对象实体
69
+        /// </summary>
70
+        public HySoft.BaseCallCenter.Model.T_Ask_QuestionItems GetModel(int F_ItemId)
71
+        {
72
+
73
+            return dal.GetModel(F_ItemId);
74
+        }
75
+
76
+        /// <summary>
77
+        /// 获得数据列表
78
+        /// </summary>
79
+        public DataSet GetList(string strWhere)
80
+        {
81
+            return dal.GetList(strWhere);
82
+        }
83
+        /// <summary>
84
+        /// 获得前几行数据
85
+        /// </summary>
86
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
87
+        {
88
+            return dal.GetList(Top, strWhere, filedOrder);
89
+        }
90
+        /// <summary>
91
+        /// 获得数据列表
92
+        /// </summary>
93
+        public List<HySoft.BaseCallCenter.Model.T_Ask_QuestionItems> GetModelList(string strWhere)
94
+        {
95
+            DataSet ds = dal.GetList(strWhere);
96
+            return DataTableToList(ds.Tables[0]);
97
+        }
98
+        /// <summary>
99
+        /// 获得数据列表
100
+        /// </summary>
101
+        public List<HySoft.BaseCallCenter.Model.T_Ask_QuestionItems> DataTableToList(DataTable dt)
102
+        {
103
+            List<HySoft.BaseCallCenter.Model.T_Ask_QuestionItems> modelList = new List<HySoft.BaseCallCenter.Model.T_Ask_QuestionItems>();
104
+            int rowsCount = dt.Rows.Count;
105
+            if (rowsCount > 0)
106
+            {
107
+                HySoft.BaseCallCenter.Model.T_Ask_QuestionItems model;
108
+                for (int n = 0; n < rowsCount; n++)
109
+                {
110
+                    model = new HySoft.BaseCallCenter.Model.T_Ask_QuestionItems();
111
+                    if (dt.Rows[n]["F_ItemId"] != null && dt.Rows[n]["F_ItemId"].ToString() != "")
112
+                    {
113
+                        model.F_ItemId = int.Parse(dt.Rows[n]["F_ItemId"].ToString());
114
+                    }
115
+                    if (dt.Rows[n]["F_QuestionId"] != null && dt.Rows[n]["F_QuestionId"].ToString() != "")
116
+                    {
117
+                        model.F_QuestionId = int.Parse(dt.Rows[n]["F_QuestionId"].ToString());
118
+                    }
119
+                    model.F_ItemName = dt.Rows[n]["F_ItemName"].ToString();
120
+                    if (dt.Rows[n]["F_IsAnswer"] != null && dt.Rows[n]["F_IsAnswer"].ToString() != "")
121
+                    {
122
+                        model.F_IsAnswer = int.Parse(dt.Rows[n]["F_IsAnswer"].ToString());
123
+                    }
124
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
125
+                    {
126
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
127
+                    }
128
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
129
+                    {
130
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
131
+                    }
132
+                    if (dt.Rows[n]["F_SortModel"] != null && dt.Rows[n]["F_SortModel"].ToString() != "")
133
+                    {
134
+                        model.F_SortModel = int.Parse(dt.Rows[n]["F_SortModel"].ToString());
135
+                    }
136
+                    modelList.Add(model);
137
+                }
138
+            }
139
+            return modelList;
140
+        }
141
+
142
+        /// <summary>
143
+        /// 获得数据列表
144
+        /// </summary>
145
+        public List<HySoft.BaseCallCenter.Model.T_Ask_QuestionItems> TempDataTableToList(DataTable dt)
146
+        {
147
+            List<HySoft.BaseCallCenter.Model.T_Ask_QuestionItems> modelList = new List<HySoft.BaseCallCenter.Model.T_Ask_QuestionItems>();
148
+            int rowsCount = dt.Rows.Count;
149
+            if (rowsCount > 0)
150
+            {
151
+                HySoft.BaseCallCenter.Model.T_Ask_QuestionItems model;
152
+                for (int n = 0; n < rowsCount; n++)
153
+                {
154
+                    model = new HySoft.BaseCallCenter.Model.T_Ask_QuestionItems();
155
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
156
+                    {
157
+                        model.F_ItemId = int.Parse(dt.Rows[n]["F_Id"].ToString());
158
+                    }
159
+                    if (dt.Rows[n]["ExpandIntField1"] != null && dt.Rows[n]["ExpandIntField1"].ToString() != "")
160
+                    {
161
+                        model.F_QuestionId = int.Parse(dt.Rows[n]["ExpandIntField1"].ToString());
162
+                    }
163
+                    model.F_ItemName = dt.Rows[n]["ExpandVchField1"].ToString();
164
+                    if (dt.Rows[n]["ExpandIntField2"] != null && dt.Rows[n]["ExpandIntField2"].ToString() != "")
165
+                    {
166
+                        model.F_IsAnswer = int.Parse(dt.Rows[n]["ExpandIntField2"].ToString());
167
+                    }
168
+                    model.F_Remark = dt.Rows[n]["ExpandVchField2"].ToString();
169
+                    if (dt.Rows[n]["ExpandIntField3"] != null && dt.Rows[n]["ExpandIntField3"].ToString() != "")
170
+                    {
171
+                        model.F_Sort = int.Parse(dt.Rows[n]["ExpandIntField3"].ToString());
172
+                    }
173
+                    if (dt.Rows[n]["ExpandIntField4"] != null && dt.Rows[n]["ExpandIntField4"].ToString() != "")
174
+                    {
175
+                        model.F_SortModel = int.Parse(dt.Rows[n]["ExpandIntField4"].ToString());
176
+                    }
177
+                    modelList.Add(model);
178
+                }
179
+            }
180
+            return modelList;
181
+        }
182
+
183
+        /// <summary>
184
+        /// 获得数据列表
185
+        /// </summary>
186
+        public DataSet GetAllList()
187
+        {
188
+            return GetList("");
189
+        }
190
+
191
+        /// <summary>
192
+        /// 分页获取数据列表
193
+        /// </summary>
194
+        public int GetRecordCount(string strWhere)
195
+        {
196
+            return dal.GetRecordCount(strWhere);
197
+        }
198
+        /// <summary>
199
+        /// 分页获取数据列表
200
+        /// </summary>
201
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
202
+        {
203
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
204
+        }
205
+        /// <summary>
206
+        /// 分页获取数据列表
207
+        /// </summary>
208
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
209
+        //{
210
+        //return dal.GetList(PageSize,PageIndex,strWhere);
211
+        //}
212
+
213
+        #endregion  Method
214
+    }
215
+}
216
+

+ 377 - 0
BaseCallCenter.BLL/T_CTI_Task.cs

@@ -0,0 +1,377 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// 计划表
11
+    /// </summary>
12
+    public partial class T_CTI_Task
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_CTI_Task dal = new HySoft.BaseCallCenter.DAL.T_CTI_Task();
15
+        public T_CTI_Task()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(long TaskID)
22
+        {
23
+            return dal.Exists(TaskID);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public long Add(HySoft.BaseCallCenter.Model.T_CTI_Task model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_CTI_Task model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 更新一条数据
44
+        /// </summary>
45
+        public bool UpdateState(int id,int state)
46
+        {
47
+            return dal.UpdateState(id, state);
48
+        }
49
+
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool Delete(long TaskID)
54
+        {
55
+
56
+            return dal.Delete(TaskID);
57
+        }
58
+        /// <summary>
59
+        /// 删除一条数据
60
+        /// </summary>
61
+        public bool DeleteList(string TaskIDlist)
62
+        {
63
+            return dal.DeleteList(TaskIDlist);
64
+        }
65
+
66
+        /// <summary>
67
+        /// 得到一个对象实体
68
+        /// </summary>
69
+        public HySoft.BaseCallCenter.Model.T_CTI_Task GetModel(long TaskID)
70
+        {
71
+
72
+            return dal.GetModel(TaskID);
73
+        }
74
+
75
+        /// <summary>
76
+        /// 获得数据列表
77
+        /// </summary>
78
+        public DataSet GetList(string strWhere)
79
+        {
80
+            return dal.GetList(strWhere);
81
+        }
82
+        /// <summary>
83
+        /// 获得前几行数据
84
+        /// </summary>
85
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
86
+        {
87
+            return dal.GetList(Top, strWhere, filedOrder);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_CTI_Task> GetModelList(string strWhere)
93
+        {
94
+            DataSet ds = dal.GetList(strWhere);
95
+            return DataTableToList(ds.Tables[0]);
96
+        }
97
+        /// <summary>
98
+        /// 获得数据列表
99
+        /// </summary>
100
+        public List<HySoft.BaseCallCenter.Model.T_CTI_Task> DataTableToList(DataTable dt)
101
+        {
102
+            List<HySoft.BaseCallCenter.Model.T_CTI_Task> modelList = new List<HySoft.BaseCallCenter.Model.T_CTI_Task>();
103
+            int rowsCount = dt.Rows.Count;
104
+            if (rowsCount > 0)
105
+            {
106
+                HySoft.BaseCallCenter.Model.T_CTI_Task model;
107
+                for (int n = 0; n < rowsCount; n++)
108
+                {
109
+                    model = new HySoft.BaseCallCenter.Model.T_CTI_Task();
110
+                    if (dt.Rows[n]["TaskID"] != null && dt.Rows[n]["TaskID"].ToString() != "")
111
+                    {
112
+                        model.TaskID = long.Parse(dt.Rows[n]["TaskID"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["TaskName"] != null && dt.Rows[n]["TaskName"].ToString() != "")
115
+                    {
116
+                        model.TaskName = dt.Rows[n]["TaskName"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["TrunkGroupID"] != null && dt.Rows[n]["TrunkGroupID"].ToString() != "")
119
+                    {
120
+                        model.TrunkGroupID = int.Parse(dt.Rows[n]["TrunkGroupID"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["CallerNum"] != null && dt.Rows[n]["CallerNum"].ToString() != "")
123
+                    {
124
+                        model.CallerNum = dt.Rows[n]["CallerNum"].ToString();
125
+                    }
126
+                    if (dt.Rows[n]["CallType"] != null && dt.Rows[n]["CallType"].ToString() != "")
127
+                    {
128
+                        model.CallType = int.Parse(dt.Rows[n]["CallType"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["ExInfo"] != null && dt.Rows[n]["ExInfo"].ToString() != "")
131
+                    {
132
+                        model.ExInfo = dt.Rows[n]["ExInfo"].ToString();
133
+                    }
134
+                    if (dt.Rows[n]["MaxTrunkCount"] != null && dt.Rows[n]["MaxTrunkCount"].ToString() != "")
135
+                    {
136
+                        model.MaxTrunkCount = int.Parse(dt.Rows[n]["MaxTrunkCount"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["IntensityCoefficient"] != null && dt.Rows[n]["IntensityCoefficient"].ToString() != "")
139
+                    {
140
+                        model.IntensityCoefficient = decimal.Parse(dt.Rows[n]["IntensityCoefficient"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["ItemTableName"] != null && dt.Rows[n]["ItemTableName"].ToString() != "")
143
+                    {
144
+                        model.ItemTableName = dt.Rows[n]["ItemTableName"].ToString();
145
+                    }
146
+                    if (dt.Rows[n]["State"] != null && dt.Rows[n]["State"].ToString() != "")
147
+                    {
148
+                        model.State = int.Parse(dt.Rows[n]["State"].ToString());
149
+                    }
150
+                    if (dt.Rows[n]["AddTime"] != null && dt.Rows[n]["AddTime"].ToString() != "")
151
+                    {
152
+                        model.AddTime = DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
153
+                    }
154
+                    if (dt.Rows[n]["y_PSort"] != null && dt.Rows[n]["y_PSort"].ToString() != "")
155
+                    {
156
+                        model.y_PSort = int.Parse(dt.Rows[n]["y_PSort"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["y_TkModelId"] != null && dt.Rows[n]["y_TkModelId"].ToString() != "")
159
+                    {
160
+                        model.y_TkModelId = long.Parse(dt.Rows[n]["y_TkModelId"].ToString());
161
+                    }
162
+                    if (dt.Rows[n]["y_SXH"] != null && dt.Rows[n]["y_SXH"].ToString() != "")
163
+                    {
164
+                        model.y_SXH = int.Parse(dt.Rows[n]["y_SXH"].ToString());
165
+                    }
166
+                    if (dt.Rows[n]["y_FPCount"] != null && dt.Rows[n]["y_FPCount"].ToString() != "")
167
+                    {
168
+                        model.y_FPCount = int.Parse(dt.Rows[n]["y_FPCount"].ToString());
169
+                    }
170
+                    if (dt.Rows[n]["y_YJCount"] != null && dt.Rows[n]["y_YJCount"].ToString() != "")
171
+                    {
172
+                        model.y_YJCount = int.Parse(dt.Rows[n]["y_YJCount"].ToString());
173
+                    }
174
+                    if (dt.Rows[n]["y_HCCount"] != null && dt.Rows[n]["y_HCCount"].ToString() != "")
175
+                    {
176
+                        model.y_HCCount = int.Parse(dt.Rows[n]["y_HCCount"].ToString());
177
+                    }
178
+                    if (dt.Rows[n]["y_HSCount"] != null && dt.Rows[n]["y_HSCount"].ToString() != "")
179
+                    {
180
+                        model.y_HSCount = int.Parse(dt.Rows[n]["y_HSCount"].ToString());
181
+                    }
182
+                    if (dt.Rows[n]["y_HTCount"] != null && dt.Rows[n]["y_HTCount"].ToString() != "")
183
+                    {
184
+                        model.y_HTCount = int.Parse(dt.Rows[n]["y_HTCount"].ToString());
185
+                    }
186
+                    if (dt.Rows[n]["y_HMCount"] != null && dt.Rows[n]["y_HMCount"].ToString() != "")
187
+                    {
188
+                        model.y_HMCount = int.Parse(dt.Rows[n]["y_HMCount"].ToString());
189
+                    }
190
+                    if (dt.Rows[n]["y_OkCount"] != null && dt.Rows[n]["y_OkCount"].ToString() != "")
191
+                    {
192
+                        model.y_OkCount = int.Parse(dt.Rows[n]["y_OkCount"].ToString());
193
+                    }
194
+                    if (dt.Rows[n]["y_RFCount"] != null && dt.Rows[n]["y_RFCount"].ToString() != "")
195
+                    {
196
+                        model.y_RFCount = int.Parse(dt.Rows[n]["y_RFCount"].ToString());
197
+                    }
198
+                    if (dt.Rows[n]["y_ConsCount"] != null && dt.Rows[n]["y_ConsCount"].ToString() != "")
199
+                    {
200
+                        model.y_ConsCount = int.Parse(dt.Rows[n]["y_ConsCount"].ToString());
201
+                    }
202
+                    if (dt.Rows[n]["y_InvlCount"] != null && dt.Rows[n]["y_InvlCount"].ToString() != "")
203
+                    {
204
+                        model.y_InvlCount = int.Parse(dt.Rows[n]["y_InvlCount"].ToString());
205
+                    }
206
+                    if (dt.Rows[n]["y_NoAnswerCount"] != null && dt.Rows[n]["y_NoAnswerCount"].ToString() != "")
207
+                    {
208
+                        model.y_NoAnswerCount = int.Parse(dt.Rows[n]["y_NoAnswerCount"].ToString());
209
+                    }
210
+                    if (dt.Rows[n]["y_ShutDownCount"] != null && dt.Rows[n]["y_ShutDownCount"].ToString() != "")
211
+                    {
212
+                        model.y_ShutDownCount = int.Parse(dt.Rows[n]["y_ShutDownCount"].ToString());
213
+                    }
214
+                    modelList.Add(model);
215
+                }
216
+            }
217
+            return modelList;
218
+        }
219
+
220
+        /// <summary>
221
+        /// 获得数据列表
222
+        /// </summary>
223
+        public List<HySoft.BaseCallCenter.Model.vw_CTI_TaskPager> DataTableToListPager(DataTable dt)
224
+        {
225
+            List<HySoft.BaseCallCenter.Model.vw_CTI_TaskPager> modelList = new List<HySoft.BaseCallCenter.Model.vw_CTI_TaskPager>();
226
+            int rowsCount = dt.Rows.Count;
227
+            if (rowsCount > 0)
228
+            {
229
+                HySoft.BaseCallCenter.Model.vw_CTI_TaskPager model;
230
+                for (int n = 0; n < rowsCount; n++)
231
+                {
232
+                    model = new HySoft.BaseCallCenter.Model.vw_CTI_TaskPager();
233
+                    if (dt.Rows[n]["TaskID"] != null && dt.Rows[n]["TaskID"].ToString() != "")
234
+                    {
235
+                        model.TaskID = long.Parse(dt.Rows[n]["TaskID"].ToString());
236
+                    }
237
+                    if (dt.Rows[n]["TaskName"] != null && dt.Rows[n]["TaskName"].ToString() != "")
238
+                    {
239
+                        model.TaskName = dt.Rows[n]["TaskName"].ToString();
240
+                    }
241
+                    if (dt.Rows[n]["TrunkGroupID"] != null && dt.Rows[n]["TrunkGroupID"].ToString() != "")
242
+                    {
243
+                        model.TrunkGroupID = int.Parse(dt.Rows[n]["TrunkGroupID"].ToString());
244
+                    }
245
+                    if (dt.Rows[n]["CallerNum"] != null && dt.Rows[n]["CallerNum"].ToString() != "")
246
+                    {
247
+                        model.CallerNum = dt.Rows[n]["CallerNum"].ToString();
248
+                    }
249
+                    if (dt.Rows[n]["CallType"] != null && dt.Rows[n]["CallType"].ToString() != "")
250
+                    {
251
+                        model.CallType = int.Parse(dt.Rows[n]["CallType"].ToString());
252
+                    }
253
+                    if (dt.Rows[n]["ExInfo"] != null && dt.Rows[n]["ExInfo"].ToString() != "")
254
+                    {
255
+                        model.ExInfo = dt.Rows[n]["ExInfo"].ToString();
256
+                    }
257
+                    if (dt.Rows[n]["MaxTrunkCount"] != null && dt.Rows[n]["MaxTrunkCount"].ToString() != "")
258
+                    {
259
+                        model.MaxTrunkCount = int.Parse(dt.Rows[n]["MaxTrunkCount"].ToString());
260
+                    }
261
+                    if (dt.Rows[n]["IntensityCoefficient"] != null && dt.Rows[n]["IntensityCoefficient"].ToString() != "")
262
+                    {
263
+                        model.IntensityCoefficient = decimal.Parse(dt.Rows[n]["IntensityCoefficient"].ToString());
264
+                    }
265
+                    if (dt.Rows[n]["ItemTableName"] != null && dt.Rows[n]["ItemTableName"].ToString() != "")
266
+                    {
267
+                        model.ItemTableName = dt.Rows[n]["ItemTableName"].ToString();
268
+                    }
269
+                    if (dt.Rows[n]["State"] != null && dt.Rows[n]["State"].ToString() != "")
270
+                    {
271
+                        model.State = int.Parse(dt.Rows[n]["State"].ToString());
272
+                    }
273
+                    if (dt.Rows[n]["AddTime"] != null && dt.Rows[n]["AddTime"].ToString() != "")
274
+                    {
275
+                        model.AddTime = DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
276
+                    }
277
+                    if (dt.Rows[n]["y_PSort"] != null && dt.Rows[n]["y_PSort"].ToString() != "")
278
+                    {
279
+                        model.y_PSort = int.Parse(dt.Rows[n]["y_PSort"].ToString());
280
+                    }
281
+                    if (dt.Rows[n]["y_TkModelId"] != null && dt.Rows[n]["y_TkModelId"].ToString() != "")
282
+                    {
283
+                        model.y_TkModelId = long.Parse(dt.Rows[n]["y_TkModelId"].ToString());
284
+                    }
285
+                    if (dt.Rows[n]["y_SXH"] != null && dt.Rows[n]["y_SXH"].ToString() != "")
286
+                    {
287
+                        model.y_SXH = int.Parse(dt.Rows[n]["y_SXH"].ToString());
288
+                    }
289
+                    if (dt.Rows[n]["y_FPCount"] != null && dt.Rows[n]["y_FPCount"].ToString() != "")
290
+                    {
291
+                        model.y_FPCount = int.Parse(dt.Rows[n]["y_FPCount"].ToString());
292
+                    }
293
+                    if (dt.Rows[n]["y_YJCount"] != null && dt.Rows[n]["y_YJCount"].ToString() != "")
294
+                    {
295
+                        model.y_YJCount = int.Parse(dt.Rows[n]["y_YJCount"].ToString());
296
+                    }
297
+                    if (dt.Rows[n]["y_HCCount"] != null && dt.Rows[n]["y_HCCount"].ToString() != "")
298
+                    {
299
+                        model.y_HCCount = int.Parse(dt.Rows[n]["y_HCCount"].ToString());
300
+                    }
301
+                    if (dt.Rows[n]["y_HSCount"] != null && dt.Rows[n]["y_HSCount"].ToString() != "")
302
+                    {
303
+                        model.y_HSCount = int.Parse(dt.Rows[n]["y_HSCount"].ToString());
304
+                    }
305
+                    if (dt.Rows[n]["y_HTCount"] != null && dt.Rows[n]["y_HTCount"].ToString() != "")
306
+                    {
307
+                        model.y_HTCount = int.Parse(dt.Rows[n]["y_HTCount"].ToString());
308
+                    }
309
+                    if (dt.Rows[n]["y_HMCount"] != null && dt.Rows[n]["y_HMCount"].ToString() != "")
310
+                    {
311
+                        model.y_HMCount = int.Parse(dt.Rows[n]["y_HMCount"].ToString());
312
+                    }
313
+                    if (dt.Rows[n]["y_OkCount"] != null && dt.Rows[n]["y_OkCount"].ToString() != "")
314
+                    {
315
+                        model.y_OkCount = int.Parse(dt.Rows[n]["y_OkCount"].ToString());
316
+                    }
317
+                    if (dt.Rows[n]["y_RFCount"] != null && dt.Rows[n]["y_RFCount"].ToString() != "")
318
+                    {
319
+                        model.y_RFCount = int.Parse(dt.Rows[n]["y_RFCount"].ToString());
320
+                    }
321
+                    if (dt.Rows[n]["y_ConsCount"] != null && dt.Rows[n]["y_ConsCount"].ToString() != "")
322
+                    {
323
+                        model.y_ConsCount = int.Parse(dt.Rows[n]["y_ConsCount"].ToString());
324
+                    }
325
+                    if (dt.Rows[n]["y_InvlCount"] != null && dt.Rows[n]["y_InvlCount"].ToString() != "")
326
+                    {
327
+                        model.y_InvlCount = int.Parse(dt.Rows[n]["y_InvlCount"].ToString());
328
+                    }
329
+                    if (dt.Rows[n]["y_NoAnswerCount"] != null && dt.Rows[n]["y_NoAnswerCount"].ToString() != "")
330
+                    {
331
+                        model.y_NoAnswerCount = int.Parse(dt.Rows[n]["y_NoAnswerCount"].ToString());
332
+                    }
333
+                    if (dt.Rows[n]["y_ShutDownCount"] != null && dt.Rows[n]["y_ShutDownCount"].ToString() != "")
334
+                    {
335
+                        model.y_ShutDownCount = int.Parse(dt.Rows[n]["y_ShutDownCount"].ToString());
336
+                    }
337
+                    model.F_Title = dt.Rows[n]["F_Title"].ToString();
338
+                    modelList.Add(model);
339
+                }
340
+            }
341
+            return modelList;
342
+        }
343
+
344
+        /// <summary>
345
+        /// 获得数据列表
346
+        /// </summary>
347
+        public DataSet GetAllList()
348
+        {
349
+            return GetList("");
350
+        }
351
+
352
+        /// <summary>
353
+        /// 分页获取数据列表
354
+        /// </summary>
355
+        public int GetRecordCount(string strWhere)
356
+        {
357
+            return dal.GetRecordCount(strWhere);
358
+        }
359
+        /// <summary>
360
+        /// 分页获取数据列表
361
+        /// </summary>
362
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
363
+        {
364
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
365
+        }
366
+        /// <summary>
367
+        /// 分页获取数据列表
368
+        /// </summary>
369
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
370
+        //{
371
+        //return dal.GetList(PageSize,PageIndex,strWhere);
372
+        //}
373
+
374
+        #endregion  Method
375
+    }
376
+}
377
+

+ 135 - 0
BaseCallCenter.BLL/T_Call_Blacklist.cs

@@ -0,0 +1,135 @@
1
+
2
+using System;
3
+using System.Data;
4
+using System.Collections.Generic;
5
+using HySoft.Common;
6
+using HySoft.BaseCallCenter.Model;
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+	/// <summary>
10
+	/// T_Call_Blacklist
11
+	/// </summary>
12
+	public partial class T_Call_Blacklist
13
+	{
14
+		private readonly HySoft.BaseCallCenter.DAL.T_Call_Blacklist dal=new HySoft.BaseCallCenter.DAL.T_Call_Blacklist();
15
+		public T_Call_Blacklist()
16
+		{}
17
+		#region  BasicMethod
18
+
19
+		
20
+		/// <summary>
21
+		/// 是否存在该记录
22
+		/// </summary>
23
+		public bool Exists(int F_BlackId)
24
+		{
25
+			return dal.Exists(F_BlackId);
26
+		}
27
+
28
+		/// <summary>
29
+		/// 增加一条数据
30
+		/// </summary>
31
+		public int  Add(HySoft.BaseCallCenter.Model.T_Call_Blacklist model)
32
+		{
33
+			return dal.Add(model);
34
+		}
35
+
36
+		/// <summary>
37
+		/// 更新一条数据
38
+		/// </summary>
39
+		public bool Update(HySoft.BaseCallCenter.Model.T_Call_Blacklist model)
40
+		{
41
+			return dal.Update(model);
42
+		}
43
+
44
+		/// <summary>
45
+		/// 删除一条数据
46
+		/// </summary>
47
+		public bool Delete(int F_BlackId)
48
+		{
49
+			
50
+			return dal.Delete(F_BlackId);
51
+		}
52
+		/// <summary>
53
+		/// 删除一条数据
54
+		/// </summary>
55
+		public bool DeleteList(string F_BlackIdlist )
56
+		{
57
+			return dal.DeleteList(F_BlackIdlist );
58
+		}
59
+
60
+		/// <summary>
61
+		/// 得到一个对象实体
62
+		/// </summary>
63
+		public HySoft.BaseCallCenter.Model.T_Call_Blacklist GetModel(int F_BlackId)
64
+		{
65
+			
66
+			return dal.GetModel(F_BlackId);
67
+		}
68
+		/// <summary>
69
+		/// 获得数据列表
70
+		/// </summary>
71
+		public DataSet GetList(string strWhere)
72
+		{
73
+			return dal.GetList(strWhere);
74
+		}
75
+		/// <summary>
76
+		/// 获得数据列表
77
+		/// </summary>
78
+		public List<HySoft.BaseCallCenter.Model.T_Call_Blacklist> GetModelList(string strWhere)
79
+		{
80
+			DataSet ds = dal.GetList(strWhere);
81
+			return DataTableToList(ds.Tables[0]);
82
+		}
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public List<HySoft.BaseCallCenter.Model.T_Call_Blacklist> DataTableToList(DataTable dt)
87
+		{
88
+			List<HySoft.BaseCallCenter.Model.T_Call_Blacklist> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_Blacklist>();
89
+			int rowsCount = dt.Rows.Count;
90
+			if (rowsCount > 0)
91
+			{
92
+				HySoft.BaseCallCenter.Model.T_Call_Blacklist model;
93
+				for (int n = 0; n < rowsCount; n++)
94
+				{
95
+					model = dal.DataRowToModel(dt.Rows[n]);
96
+					if (model != null)
97
+					{
98
+						modelList.Add(model);
99
+					}
100
+				}
101
+			}
102
+			return modelList;
103
+		}
104
+
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public DataSet GetAllList()
109
+		{
110
+			return GetList("");
111
+		}
112
+
113
+		/// <summary>
114
+		/// 分页获取数据列表
115
+		/// </summary>
116
+		public int GetRecordCount(string strWhere)
117
+		{
118
+			return dal.GetRecordCount(strWhere);
119
+		}
120
+		/// <summary>
121
+		/// 分页获取数据列表
122
+		/// </summary>
123
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
124
+		{
125
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
126
+		}
127
+		
128
+
129
+		#endregion  BasicMethod
130
+		#region  ExtensionMethod
131
+
132
+		#endregion  ExtensionMethod
133
+	}
134
+}
135
+

+ 270 - 0
BaseCallCenter.BLL/T_Call_CallRecords.cs

@@ -0,0 +1,270 @@
1
+
2
+using System;
3
+using System.Data;
4
+using System.Collections.Generic;
5
+using HySoft.Common;
6
+using HySoft.BaseCallCenter.Model;
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+	/// <summary>
10
+	/// 通话记录表
11
+	/// </summary>
12
+	public partial class T_Call_CallRecords
13
+	{
14
+		private readonly HySoft.BaseCallCenter.DAL.T_Call_CallRecords dal=new HySoft.BaseCallCenter.DAL.T_Call_CallRecords();
15
+		public T_Call_CallRecords()
16
+		{}
17
+		#region  BasicMethod
18
+
19
+		/// <summary>
20
+		/// 得到最大ID
21
+		/// </summary>
22
+		public int GetMaxId()
23
+		{
24
+			return dal.GetMaxId();
25
+		}
26
+
27
+		/// <summary>
28
+		/// 是否存在该记录
29
+		/// </summary>
30
+		public bool Exists(int CallRecordsId)
31
+		{
32
+			return dal.Exists(CallRecordsId);
33
+		}
34
+
35
+		/// <summary>
36
+		/// 增加一条数据
37
+		/// </summary>
38
+		public int  Add(HySoft.BaseCallCenter.Model.T_Call_CallRecords model)
39
+		{
40
+			return dal.Add(model);
41
+		}
42
+
43
+		/// <summary>
44
+		/// 更新一条数据
45
+		/// </summary>
46
+		public bool Update(HySoft.BaseCallCenter.Model.T_Call_CallRecords model)
47
+		{
48
+			return dal.Update(model);
49
+		}
50
+
51
+		/// <summary>
52
+		/// 删除一条数据
53
+		/// </summary>
54
+		public bool Delete(int CallRecordsId)
55
+		{
56
+			
57
+			return dal.Delete(CallRecordsId);
58
+		}
59
+		/// <summary>
60
+		/// 删除一条数据
61
+		/// </summary>
62
+		public bool DeleteList(string CallRecordsIdlist )
63
+		{
64
+			return dal.DeleteList(CallRecordsIdlist );
65
+		}
66
+
67
+		/// <summary>
68
+		/// 得到一个对象实体
69
+		/// </summary>
70
+		public HySoft.BaseCallCenter.Model.T_Call_CallRecords GetModel(int CallRecordsId)
71
+		{
72
+			
73
+			return dal.GetModel(CallRecordsId);
74
+		}
75
+
76
+		/// <summary>
77
+		/// 得到一个对象实体,从缓存中
78
+		/// </summary>
79
+        //public HySoft.BaseCallCenter.Model.T_Call_CallRecords GetModelByCache(int CallRecordsId)
80
+        //{
81
+			
82
+        //    string CacheKey = "T_Call_CallRecordsModel-" + CallRecordsId;
83
+        //    object objModel = HySoft.Common.DataCache.GetCache(CacheKey);
84
+        //    if (objModel == null)
85
+        //    {
86
+        //        try
87
+        //        {
88
+        //            objModel = dal.GetModel(CallRecordsId);
89
+        //            if (objModel != null)
90
+        //            {
91
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
92
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
93
+        //            }
94
+        //        }
95
+        //        catch{}
96
+        //    }
97
+        //    return (HySoft.BaseCallCenter.Model.T_Call_CallRecords)objModel;
98
+        //}
99
+
100
+		/// <summary>
101
+		/// 获得数据列表
102
+		/// </summary>
103
+		public DataSet GetList(string strWhere)
104
+		{
105
+			return dal.GetList(strWhere);
106
+		}
107
+		/// <summary>
108
+		/// 获得前几行数据
109
+		/// </summary>
110
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
111
+		{
112
+			return dal.GetList(Top,strWhere,filedOrder);
113
+		}
114
+		/// <summary>
115
+		/// 获得数据列表
116
+		/// </summary>
117
+		public List<HySoft.BaseCallCenter.Model.T_Call_CallRecords> GetModelList(string strWhere)
118
+		{
119
+			DataSet ds = dal.GetList(strWhere);
120
+			return DataTableToList(ds.Tables[0]);
121
+		}
122
+		/// <summary>
123
+		/// 获得数据列表
124
+		/// </summary>
125
+		public List<HySoft.BaseCallCenter.Model.T_Call_CallRecords> DataTableToList(DataTable dt)
126
+		{
127
+			List<HySoft.BaseCallCenter.Model.T_Call_CallRecords> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_CallRecords>();
128
+			int rowsCount = dt.Rows.Count;
129
+			if (rowsCount > 0)
130
+			{
131
+				HySoft.BaseCallCenter.Model.T_Call_CallRecords model;
132
+				for (int n = 0; n < rowsCount; n++)
133
+				{
134
+					model = dal.DataRowToModel(dt.Rows[n]);
135
+					if (model != null)
136
+					{
137
+						modelList.Add(model);
138
+					}
139
+				}
140
+			}
141
+			return modelList;
142
+		}
143
+
144
+		/// <summary>
145
+		/// 获得数据列表
146
+		/// </summary>
147
+		public DataSet GetAllList()
148
+		{
149
+			return GetList("");
150
+		}
151
+
152
+		/// <summary>
153
+		/// 分页获取数据列表
154
+		/// </summary>
155
+		public int GetRecordCount(string strWhere)
156
+		{
157
+			return dal.GetRecordCount(strWhere);
158
+		}
159
+		/// <summary>
160
+		/// 分页获取数据列表
161
+		/// </summary>
162
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
163
+		{
164
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
165
+		}
166
+		/// <summary>
167
+		/// 分页获取数据列表
168
+		/// </summary>
169
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
170
+		//{
171
+			//return dal.GetList(PageSize,PageIndex,strWhere);
172
+		//}
173
+
174
+		#endregion  BasicMethod
175
+		#region  ExtensionMethod
176
+
177
+		#endregion  ExtensionMethod
178
+
179
+        #region 更新来电振铃电话记录信息
180
+
181
+        /// <summary>
182
+        /// 更新来电振铃电话记录信息
183
+        /// </summary>
184
+        public bool UpdateCallInRingTelRecord(Model.T_Call_CallRecords model)
185
+        {
186
+            return dal.UpdateCallInRingTelRecord(model);
187
+        }
188
+
189
+        #endregion
190
+
191
+        #region 更新来电摘机电话记录信息
192
+
193
+        /// <summary>
194
+        /// 更新来电摘机电话记录信息
195
+        /// </summary>
196
+        public bool UpdateCallInAnswerTelRecord(Model.T_Call_CallRecords model)
197
+        {
198
+            return dal.UpdateCallInAnswerTelRecord(model);
199
+        }
200
+
201
+        #endregion
202
+
203
+        #region 更新来电挂断电话记录信息
204
+
205
+        /// <summary>
206
+        /// 更新来电挂断电话记录信息
207
+        /// </summary>
208
+        public bool UpdateCallInHookTelRecord(string callId)
209
+        {
210
+            return dal.UpdateCallInHookTelRecord(callId);
211
+        }
212
+
213
+        #endregion
214
+
215
+        #region 更新来电录音记录信息
216
+
217
+        /// <summary>
218
+        /// 更新来电录音记录信息
219
+        /// </summary>
220
+        public bool UpdateCallInPathTelRecord(Model.T_Call_CallRecords model)
221
+        {
222
+            return dal.UpdateCallInPathTelRecord(model);
223
+        }
224
+
225
+        #endregion
226
+
227
+        #region 根据来电号码获取电话记录
228
+        /// <summary>
229
+        /// 根据来电号码获取电话记录
230
+        /// </summary>
231
+        public HySoft.BaseCallCenter.Model.T_Call_CallRecords GetModelByTelphone(string CallNumber)
232
+        {
233
+
234
+            return dal.GetModelByTelphone(CallNumber);
235
+        }
236
+        #endregion
237
+
238
+        #region 根据CallId获取电话记录
239
+        /// <summary>
240
+        /// 根据CallId获取电话记录
241
+        /// </summary>
242
+        public HySoft.BaseCallCenter.Model.T_Call_CallRecords GetModelByCallId(string CallId)
243
+        {
244
+
245
+            return dal.GetModelByCallId(CallId);
246
+        }
247
+        /// <summary>
248
+        /// 根据CallId获取电话记录
249
+        /// </summary>
250
+        public HySoft.BaseCallCenter.Model.T_Call_CallRecords GetModelByRecordId(string CallId)
251
+        {
252
+
253
+            return dal.GetModelByRecordId(CallId);
254
+        }
255
+        #endregion
256
+
257
+        #region 更新来电处理状态信息
258
+
259
+        /// <summary>
260
+        /// 更新来电处理状态信息
261
+        /// </summary>
262
+        public bool UpdateCallInRecordDealType(string callid, int type)
263
+        {
264
+            return dal.UpdateCallInRecordDealType(callid, type);
265
+        }
266
+
267
+        #endregion
268
+    }
269
+}
270
+

+ 337 - 0
BaseCallCenter.BLL/T_Call_CallRecords_QC.cs

@@ -0,0 +1,337 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// 通话记录表
11
+    /// </summary>
12
+    public partial class T_Call_CallRecords_QC
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Call_CallRecords_QC dal = new HySoft.BaseCallCenter.DAL.T_Call_CallRecords_QC();
15
+        public T_Call_CallRecords_QC()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int CallRecordsId)
22
+        {
23
+            return dal.Exists(CallRecordsId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 更新一条数据
44
+        /// </summary>
45
+        public bool UpdateQC(HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC model)
46
+        {
47
+            return dal.UpdateQC(model);
48
+        }
49
+
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool Delete(int CallRecordsId)
54
+        {
55
+
56
+            return dal.Delete(CallRecordsId);
57
+        }
58
+        /// <summary>
59
+        /// 删除一条数据
60
+        /// </summary>
61
+        public bool DeleteList(string CallRecordsIdlist)
62
+        {
63
+            return dal.DeleteList(CallRecordsIdlist);
64
+        }
65
+
66
+        /// <summary>
67
+        /// 得到一个对象实体
68
+        /// </summary>
69
+        public HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC GetModel(int CallRecordsId)
70
+        {
71
+
72
+            return dal.GetModel(CallRecordsId);
73
+        }
74
+
75
+        /// <summary>
76
+        /// 获得数据列表
77
+        /// </summary>
78
+        public DataSet GetList(string strWhere)
79
+        {
80
+            return dal.GetList(strWhere);
81
+        }
82
+        /// <summary>
83
+        /// 获得前几行数据
84
+        /// </summary>
85
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
86
+        {
87
+            return dal.GetList(Top, strWhere, filedOrder);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC> GetModelList(string strWhere)
93
+        {
94
+            DataSet ds = dal.GetList(strWhere);
95
+            return DataTableToList(ds.Tables[0]);
96
+        }
97
+        /// <summary>
98
+        /// 获得数据列表
99
+        /// </summary>
100
+        public List<HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC> DataTableToList(DataTable dt)
101
+        {
102
+            List<HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC>();
103
+            int rowsCount = dt.Rows.Count;
104
+            if (rowsCount > 0)
105
+            {
106
+                HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC model;
107
+                for (int n = 0; n < rowsCount; n++)
108
+                {
109
+                    model = new HySoft.BaseCallCenter.Model.T_Call_CallRecords_QC();
110
+                    if (dt.Rows[n]["CallId"] != null && dt.Rows[n]["CallId"].ToString() != "")
111
+                    {
112
+                        model.CallId = dt.Rows[n]["CallId"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["CallNumber"] != null && dt.Rows[n]["CallNumber"].ToString() != "")
115
+                    {
116
+                        model.CallNumber = dt.Rows[n]["CallNumber"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["CusId"] != null && dt.Rows[n]["CusId"].ToString() != "")
119
+                    {
120
+                        model.CusId = dt.Rows[n]["CusId"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["CusCode"] != null && dt.Rows[n]["CusCode"].ToString() != "")
123
+                    {
124
+                        model.CusCode = dt.Rows[n]["CusCode"].ToString();
125
+                    }
126
+                    if (dt.Rows[n]["CallType"] != null && dt.Rows[n]["CallType"].ToString() != "")
127
+                    {
128
+                        model.CallType = int.Parse(dt.Rows[n]["CallType"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["CallState"] != null && dt.Rows[n]["CallState"].ToString() != "")
131
+                    {
132
+                        model.CallState = int.Parse(dt.Rows[n]["CallState"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["DealType"] != null && dt.Rows[n]["DealType"].ToString() != "")
135
+                    {
136
+                        model.DealType = int.Parse(dt.Rows[n]["DealType"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["BeginTime"] != null && dt.Rows[n]["BeginTime"].ToString() != "")
139
+                    {
140
+                        model.BeginTime = DateTime.Parse(dt.Rows[n]["BeginTime"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["IvrStartTime"] != null && dt.Rows[n]["IvrStartTime"].ToString() != "")
143
+                    {
144
+                        model.IvrStartTime = DateTime.Parse(dt.Rows[n]["IvrStartTime"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["IvrEndTime"] != null && dt.Rows[n]["IvrEndTime"].ToString() != "")
147
+                    {
148
+                        model.IvrEndTime = DateTime.Parse(dt.Rows[n]["IvrEndTime"].ToString());
149
+                    }
150
+                    if (dt.Rows[n]["RingStartTime"] != null && dt.Rows[n]["RingStartTime"].ToString() != "")
151
+                    {
152
+                        model.RingStartTime = DateTime.Parse(dt.Rows[n]["RingStartTime"].ToString());
153
+                    }
154
+                    if (dt.Rows[n]["RingEndTime"] != null && dt.Rows[n]["RingEndTime"].ToString() != "")
155
+                    {
156
+                        model.RingEndTime = DateTime.Parse(dt.Rows[n]["RingEndTime"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["TalkStartTime"] != null && dt.Rows[n]["TalkStartTime"].ToString() != "")
159
+                    {
160
+                        model.TalkStartTime = DateTime.Parse(dt.Rows[n]["TalkStartTime"].ToString());
161
+                    }
162
+                    if (dt.Rows[n]["TalkEndTime"] != null && dt.Rows[n]["TalkEndTime"].ToString() != "")
163
+                    {
164
+                        model.TalkEndTime = DateTime.Parse(dt.Rows[n]["TalkEndTime"].ToString());
165
+                    }
166
+                    if (dt.Rows[n]["EndTime"] != null && dt.Rows[n]["EndTime"].ToString() != "")
167
+                    {
168
+                        model.EndTime = DateTime.Parse(dt.Rows[n]["EndTime"].ToString());
169
+                    }
170
+                    if (dt.Rows[n]["LongTime"] != null && dt.Rows[n]["LongTime"].ToString() != "")
171
+                    {
172
+                        model.LongTime = int.Parse(dt.Rows[n]["LongTime"].ToString());
173
+                    }
174
+                    if (dt.Rows[n]["IvrLongTime"] != null && dt.Rows[n]["IvrLongTime"].ToString() != "")
175
+                    {
176
+                        model.IvrLongTime = int.Parse(dt.Rows[n]["IvrLongTime"].ToString());
177
+                    }
178
+                    if (dt.Rows[n]["RingLongTime"] != null && dt.Rows[n]["RingLongTime"].ToString() != "")
179
+                    {
180
+                        model.RingLongTime = int.Parse(dt.Rows[n]["RingLongTime"].ToString());
181
+                    }
182
+                    if (dt.Rows[n]["TalkLongTime"] != null && dt.Rows[n]["TalkLongTime"].ToString() != "")
183
+                    {
184
+                        model.TalkLongTime = int.Parse(dt.Rows[n]["TalkLongTime"].ToString());
185
+                    }
186
+                    if (dt.Rows[n]["UserId"] != null && dt.Rows[n]["UserId"].ToString() != "")
187
+                    {
188
+                        model.UserId = int.Parse(dt.Rows[n]["UserId"].ToString());
189
+                    }
190
+                    if (dt.Rows[n]["UserCode"] != null && dt.Rows[n]["UserCode"].ToString() != "")
191
+                    {
192
+                        model.UserCode = dt.Rows[n]["UserCode"].ToString();
193
+                    }
194
+                    if (dt.Rows[n]["UserName"] != null && dt.Rows[n]["UserName"].ToString() != "")
195
+                    {
196
+                        model.UserName = dt.Rows[n]["UserName"].ToString();
197
+                    }
198
+                    if (dt.Rows[n]["ExtNumber"] != null && dt.Rows[n]["ExtNumber"].ToString() != "")
199
+                    {
200
+                        model.ExtNumber = dt.Rows[n]["ExtNumber"].ToString();
201
+                    }
202
+                    model.FilePath = dt.Rows[n]["FilePath"].ToString();
203
+                    if (dt.Rows[n]["IsExitWorkOrder"] != null && dt.Rows[n]["IsExitWorkOrder"].ToString() != "")
204
+                    {
205
+                        if ((dt.Rows[n]["IsExitWorkOrder"].ToString() == "1") || (dt.Rows[n]["IsExitWorkOrder"].ToString().ToLower() == "true"))
206
+                        {
207
+                            model.IsExitWorkOrder = true;
208
+                        }
209
+                        else
210
+                        {
211
+                            model.IsExitWorkOrder = false;
212
+                        }
213
+                    }
214
+                    if (dt.Rows[n]["IsDeal"] != null && dt.Rows[n]["IsDeal"].ToString() != "")
215
+                    {
216
+                        model.IsDeal = int.Parse(dt.Rows[n]["IsDeal"].ToString());
217
+                    }
218
+                    if (dt.Rows[n]["OperateType"] != null && dt.Rows[n]["OperateType"].ToString() != "")
219
+                    {
220
+                        model.OperateType = int.Parse(dt.Rows[n]["OperateType"].ToString());
221
+                    }
222
+                    if (dt.Rows[n]["OperateObject"] != null && dt.Rows[n]["OperateObject"].ToString() != "")
223
+                    {
224
+                        model.OperateObject = dt.Rows[n]["OperateObject"].ToString();
225
+                    }
226
+                    if (dt.Rows[n]["OperateTime"] != null && dt.Rows[n]["OperateTime"].ToString() != "")
227
+                    {
228
+                        model.OperateTime = DateTime.Parse(dt.Rows[n]["OperateTime"].ToString());
229
+                    }
230
+                    if (dt.Rows[n]["Remark"] != null && dt.Rows[n]["Remark"].ToString() != "")
231
+                    {
232
+                        model.Remark = dt.Rows[n]["Remark"].ToString();
233
+                    }
234
+                    if (dt.Rows[n]["MYD"] != null && dt.Rows[n]["MYD"].ToString() != "")
235
+                    {
236
+                        model.MYD = int.Parse(dt.Rows[n]["MYD"].ToString());
237
+                    }
238
+                    if (dt.Rows[n]["BusinessType"] != null && dt.Rows[n]["BusinessType"].ToString() != "")
239
+                    {
240
+                        model.BusinessType = int.Parse(dt.Rows[n]["BusinessType"].ToString());
241
+                    }
242
+                    if (dt.Rows[n]["Location"] != null && dt.Rows[n]["Location"].ToString() != "")
243
+                    {
244
+                        model.Location = dt.Rows[n]["Location"].ToString();
245
+                    }
246
+                    if (dt.Rows[n]["CallRecordsId"] != null && dt.Rows[n]["CallRecordsId"].ToString() != "")
247
+                    {
248
+                        model.CallRecordsId = int.Parse(dt.Rows[n]["CallRecordsId"].ToString());
249
+                    }
250
+                    if (dt.Rows[n]["WaitStartTime"] != null && dt.Rows[n]["WaitStartTime"].ToString() != "")
251
+                    {
252
+                        model.WaitStartTime = DateTime.Parse(dt.Rows[n]["WaitStartTime"].ToString());
253
+                    }
254
+                    if (dt.Rows[n]["WaitEndTime"] != null && dt.Rows[n]["WaitEndTime"].ToString() != "")
255
+                    {
256
+                        model.WaitEndTime = DateTime.Parse(dt.Rows[n]["WaitEndTime"].ToString());
257
+                    }
258
+                    if (dt.Rows[n]["WaitLongTime"] != null && dt.Rows[n]["WaitLongTime"].ToString() != "")
259
+                    {
260
+                        model.WaitLongTime = int.Parse(dt.Rows[n]["WaitLongTime"].ToString());
261
+                    }
262
+                    if (dt.Rows[n]["NoCallState"] != null && dt.Rows[n]["NoCallState"].ToString() != "")
263
+                    {
264
+                        model.NoCallState = int.Parse(dt.Rows[n]["NoCallState"].ToString());
265
+                    }
266
+                    if (dt.Rows[n]["WorkTimesDiff"] != null && dt.Rows[n]["WorkTimesDiff"].ToString() != "")
267
+                    {
268
+                        model.WorkTimesDiff = int.Parse(dt.Rows[n]["WorkTimesDiff"].ToString());
269
+                    }
270
+                    if (dt.Rows[n]["F_QCState"] != null && dt.Rows[n]["F_QCState"].ToString() != "")
271
+                    {
272
+                        model.F_QCState = int.Parse(dt.Rows[n]["F_QCState"].ToString());
273
+                    }
274
+                    if (dt.Rows[n]["F_QCScore"] != null && dt.Rows[n]["F_QCScore"].ToString() != "")
275
+                    {
276
+                        model.F_QCScore = decimal.Parse(dt.Rows[n]["F_QCScore"].ToString());
277
+                    }
278
+                    if (dt.Rows[n]["F_QCRemark"] != null && dt.Rows[n]["F_QCRemark"].ToString() != "")
279
+                    {
280
+                        model.F_QCRemark = dt.Rows[n]["F_QCRemark"].ToString();
281
+                    }
282
+                    if (dt.Rows[n]["F_QCUserId"] != null && dt.Rows[n]["F_QCUserId"].ToString() != "")
283
+                    {
284
+                        model.F_QCUserId = int.Parse(dt.Rows[n]["F_QCUserId"].ToString());
285
+                    }
286
+                    if (dt.Rows[n]["F_QCUserName"] != null && dt.Rows[n]["F_QCUserName"].ToString() != "")
287
+                    {
288
+                        model.F_QCUserName = dt.Rows[n]["F_QCUserName"].ToString();
289
+                    }
290
+                    if (dt.Rows[n]["F_QCTime"] != null && dt.Rows[n]["F_QCTime"].ToString() != "")
291
+                    {
292
+                        model.F_QCTime = DateTime.Parse(dt.Rows[n]["F_QCTime"].ToString());
293
+                    }
294
+                    if (dt.Rows[n]["F_QCIsSelect"] != null && dt.Rows[n]["F_QCIsSelect"].ToString() != "")
295
+                    {
296
+                        model.F_QCIsSelect = int.Parse(dt.Rows[n]["F_QCIsSelect"].ToString());
297
+                    }
298
+                    modelList.Add(model);
299
+                }
300
+            }
301
+            return modelList;
302
+        }
303
+
304
+        /// <summary>
305
+        /// 获得数据列表
306
+        /// </summary>
307
+        public DataSet GetAllList()
308
+        {
309
+            return GetList("");
310
+        }
311
+
312
+        /// <summary>
313
+        /// 分页获取数据列表
314
+        /// </summary>
315
+        public int GetRecordCount(string strWhere)
316
+        {
317
+            return dal.GetRecordCount(strWhere);
318
+        }
319
+        /// <summary>
320
+        /// 分页获取数据列表
321
+        /// </summary>
322
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
323
+        {
324
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
325
+        }
326
+        /// <summary>
327
+        /// 分页获取数据列表
328
+        /// </summary>
329
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
330
+        //{
331
+        //return dal.GetList(PageSize,PageIndex,strWhere);
332
+        //}
333
+
334
+        #endregion  Method
335
+    }
336
+}
337
+

+ 154 - 0
BaseCallCenter.BLL/T_Call_LeaveRecord.cs

@@ -0,0 +1,154 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// 留言表
10
+	/// </summary>
11
+	public partial class T_Call_LeaveRecord
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Call_LeaveRecord dal=new HySoft.BaseCallCenter.DAL.T_Call_LeaveRecord();
14
+		public T_Call_LeaveRecord()
15
+		{}
16
+		#region  BasicMethod
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int F_Id)
30
+		{
31
+			return dal.Exists(F_Id);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(HySoft.BaseCallCenter.Model.T_Call_LeaveRecord model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_Call_LeaveRecord model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_Id)
54
+		{
55
+			
56
+			return dal.Delete(F_Id);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_Idlist )
62
+		{
63
+			return dal.DeleteList(F_Idlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_Call_LeaveRecord GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+		/// <summary>
75
+		/// 获得数据列表
76
+		/// </summary>
77
+		public DataSet GetList(string strWhere)
78
+		{
79
+			return dal.GetList(strWhere);
80
+		}
81
+		/// <summary>
82
+		/// 获得前几行数据
83
+		/// </summary>
84
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
85
+		{
86
+			return dal.GetList(Top,strWhere,filedOrder);
87
+		}
88
+		/// <summary>
89
+		/// 获得数据列表
90
+		/// </summary>
91
+		public List<HySoft.BaseCallCenter.Model.T_Call_LeaveRecord> GetModelList(string strWhere)
92
+		{
93
+			DataSet ds = dal.GetList(strWhere);
94
+			return DataTableToList(ds.Tables[0]);
95
+		}
96
+		/// <summary>
97
+		/// 获得数据列表
98
+		/// </summary>
99
+		public List<HySoft.BaseCallCenter.Model.T_Call_LeaveRecord> DataTableToList(DataTable dt)
100
+		{
101
+			List<HySoft.BaseCallCenter.Model.T_Call_LeaveRecord> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_LeaveRecord>();
102
+			int rowsCount = dt.Rows.Count;
103
+			if (rowsCount > 0)
104
+			{
105
+				HySoft.BaseCallCenter.Model.T_Call_LeaveRecord model;
106
+				for (int n = 0; n < rowsCount; n++)
107
+				{
108
+					model = dal.DataRowToModel(dt.Rows[n]);
109
+					if (model != null)
110
+					{
111
+						modelList.Add(model);
112
+					}
113
+				}
114
+			}
115
+			return modelList;
116
+		}
117
+
118
+		/// <summary>
119
+		/// 获得数据列表
120
+		/// </summary>
121
+		public DataSet GetAllList()
122
+		{
123
+			return GetList("");
124
+		}
125
+
126
+		/// <summary>
127
+		/// 分页获取数据列表
128
+		/// </summary>
129
+		public int GetRecordCount(string strWhere)
130
+		{
131
+			return dal.GetRecordCount(strWhere);
132
+		}
133
+		/// <summary>
134
+		/// 分页获取数据列表
135
+		/// </summary>
136
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
137
+		{
138
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
139
+		}
140
+		/// <summary>
141
+		/// 分页获取数据列表
142
+		/// </summary>
143
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
144
+		//{
145
+			//return dal.GetList(PageSize,PageIndex,strWhere);
146
+		//}
147
+
148
+		#endregion  BasicMethod
149
+		#region  ExtensionMethod
150
+
151
+		#endregion  ExtensionMethod
152
+	}
153
+}
154
+

+ 215 - 0
BaseCallCenter.BLL/T_Call_PageField.cs

@@ -0,0 +1,215 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Call_PageField
11
+    /// </summary>
12
+    public partial class T_Call_PageField
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Call_PageField dal = new HySoft.BaseCallCenter.DAL.T_Call_PageField();
15
+        public T_Call_PageField()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Call_PageField model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Call_PageField model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_Id)
46
+        {
47
+
48
+            return dal.Delete(F_Id);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_Idlist)
54
+        {
55
+            return dal.DeleteList(F_Idlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Call_PageField GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Call_PageField> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Call_PageField> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Call_PageField> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_PageField>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Call_PageField model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Call_PageField();
102
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
103
+                    {
104
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_TaskId"] != null && dt.Rows[n]["F_TaskId"].ToString() != "")
107
+                    {
108
+                        model.F_TaskId = int.Parse(dt.Rows[n]["F_TaskId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_FeildId"] != null && dt.Rows[n]["F_FeildId"].ToString() != "")
111
+                    {
112
+                        model.F_FeildId = int.Parse(dt.Rows[n]["F_FeildId"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
115
+                    {
116
+                        model.F_Name = dt.Rows[n]["F_Name"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_DBFieldlName"] != null && dt.Rows[n]["F_DBFieldlName"].ToString() != "")
119
+                    {
120
+                        model.F_DBFieldlName = dt.Rows[n]["F_DBFieldlName"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
123
+                    {
124
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
125
+                    }
126
+                    modelList.Add(model);
127
+                }
128
+            }
129
+            return modelList;
130
+        }
131
+
132
+        /// <summary>
133
+        /// 获得数据列表
134
+        /// </summary>
135
+        public List<HySoft.BaseCallCenter.Model.vw_Call_PageField> DataTableToListView(DataTable dt)
136
+        {
137
+            List<HySoft.BaseCallCenter.Model.vw_Call_PageField> modelList = new List<HySoft.BaseCallCenter.Model.vw_Call_PageField>();
138
+            int rowsCount = dt.Rows.Count;
139
+            if (rowsCount > 0)
140
+            {
141
+                HySoft.BaseCallCenter.Model.vw_Call_PageField model;
142
+                for (int n = 0; n < rowsCount; n++)
143
+                {
144
+                    model = new HySoft.BaseCallCenter.Model.vw_Call_PageField();
145
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
146
+                    {
147
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
148
+                    }
149
+                    if (dt.Rows[n]["F_TaskId"] != null && dt.Rows[n]["F_TaskId"].ToString() != "")
150
+                    {
151
+                        model.F_TaskId = int.Parse(dt.Rows[n]["F_TaskId"].ToString());
152
+                    }
153
+                    if (dt.Rows[n]["F_FeildId"] != null && dt.Rows[n]["F_FeildId"].ToString() != "")
154
+                    {
155
+                        model.F_FeildId = int.Parse(dt.Rows[n]["F_FeildId"].ToString());
156
+                    }
157
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
158
+                    {
159
+                        model.F_Name = dt.Rows[n]["F_Name"].ToString();
160
+                    }
161
+                    if (dt.Rows[n]["F_DBFieldlName"] != null && dt.Rows[n]["F_DBFieldlName"].ToString() != "")
162
+                    {
163
+                        model.F_DBFieldlName = dt.Rows[n]["F_DBFieldlName"].ToString();
164
+                    }
165
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
166
+                    {
167
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
168
+                    }
169
+                    if (dt.Rows[n]["F_DBTypeName"] != null && dt.Rows[n]["F_DBTypeName"].ToString() != "")
170
+                    {
171
+                        model.F_DBTypeName = dt.Rows[n]["F_DBTypeName"].ToString();
172
+                    }
173
+                    if (dt.Rows[n]["F_Length"] != null && dt.Rows[n]["F_Length"].ToString() != "")
174
+                    {
175
+                        model.F_Length = int.Parse(dt.Rows[n]["F_Length"].ToString());
176
+                    }
177
+                    modelList.Add(model);
178
+                }
179
+            }
180
+            return modelList;
181
+        }
182
+
183
+        /// <summary>
184
+        /// 获得数据列表
185
+        /// </summary>
186
+        public DataSet GetAllList()
187
+        {
188
+            return GetList("");
189
+        }
190
+
191
+        /// <summary>
192
+        /// 分页获取数据列表
193
+        /// </summary>
194
+        public int GetRecordCount(string strWhere)
195
+        {
196
+            return dal.GetRecordCount(strWhere);
197
+        }
198
+        /// <summary>
199
+        /// 分页获取数据列表
200
+        /// </summary>
201
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
202
+        {
203
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
204
+        }
205
+        /// <summary>
206
+        /// 分页获取数据列表
207
+        /// </summary>
208
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
209
+        //{
210
+        //return dal.GetList(PageSize,PageIndex,strWhere);
211
+        //}
212
+
213
+        #endregion  Method
214
+    }
215
+}

+ 661 - 0
BaseCallCenter.BLL/T_Call_TaskTelNum.cs

@@ -0,0 +1,661 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Call_TaskTelNum
11
+    /// </summary>
12
+    public partial class T_Call_TaskTelNum
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Call_TaskTelNum dal = new HySoft.BaseCallCenter.DAL.T_Call_TaskTelNum();
15
+        public T_Call_TaskTelNum()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Call_TaskTelNum model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Call_TaskTelNum model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 更新一条数据
44
+        /// </summary>
45
+        public bool UpdateFP(int id, int userid, string username)
46
+        {
47
+            return dal.UpdateFP(id, userid, username);
48
+        }
49
+
50
+        /// <summary>
51
+        /// 更新一条数据
52
+        /// </summary>
53
+        public bool UpdateHJJG(int id,int resid,string name)
54
+        {
55
+            return dal.UpdateHJJG(id, resid, name);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 更新一条数据
60
+        /// </summary>
61
+        public bool UpdateQXFP(string arrid)
62
+        {
63
+            return dal.UpdateQXFP(arrid);
64
+        }
65
+
66
+        /// <summary>
67
+        /// 更新一条数据
68
+        /// </summary>
69
+        public bool UpdateHC(int id, int state)
70
+        {
71
+            return dal.UpdateHC(id, state);
72
+        }
73
+
74
+        /// <summary>
75
+        /// 更新一条数据
76
+        /// </summary>
77
+        public bool UpdateYJ(int id, int state)
78
+        {
79
+            return dal.UpdateYJ(id, state);
80
+        }
81
+
82
+        /// <summary>
83
+        /// 更新一条数据
84
+        /// </summary>
85
+        public bool UpdateAsk(HySoft.BaseCallCenter.Model.T_Call_TaskTelNum model)
86
+        {
87
+            return dal.UpdateAsk(model);
88
+        }
89
+
90
+        /// <summary>
91
+        /// 删除一条数据
92
+        /// </summary>
93
+        public bool Delete(int F_Id)
94
+        {
95
+
96
+            return dal.Delete(F_Id);
97
+        }
98
+
99
+        /// <summary>
100
+        /// 删除一条数据
101
+        /// </summary>
102
+        public int ClearPhone(int F_Id)
103
+        {
104
+
105
+            return dal.ClearPhone(F_Id);
106
+        }
107
+
108
+        /// <summary>
109
+        /// 删除一条数据
110
+        /// </summary>
111
+        public bool DeleteList(string F_Idlist)
112
+        {
113
+            return dal.DeleteList(F_Idlist);
114
+        }
115
+
116
+        /// <summary>
117
+        /// 得到一个对象实体
118
+        /// </summary>
119
+        public HySoft.BaseCallCenter.Model.T_Call_TaskTelNum GetModel(int F_Id)
120
+        {
121
+
122
+            return dal.GetModel(F_Id);
123
+        }
124
+
125
+        /// <summary>
126
+        /// 获得数据列表
127
+        /// </summary>
128
+        public DataSet GetList(string strWhere)
129
+        {
130
+            return dal.GetList(strWhere);
131
+        }
132
+        /// <summary>
133
+        /// 获得前几行数据
134
+        /// </summary>
135
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
136
+        {
137
+            return dal.GetList(Top, strWhere, filedOrder);
138
+        }
139
+        /// <summary>
140
+        /// 获得数据列表
141
+        /// </summary>
142
+        public List<HySoft.BaseCallCenter.Model.T_Call_TaskTelNum> GetModelList(string strWhere)
143
+        {
144
+            DataSet ds = dal.GetList(strWhere);
145
+            return DataTableToList(ds.Tables[0]);
146
+        }
147
+        /// <summary>
148
+        /// 获得数据列表
149
+        /// </summary>
150
+        public List<HySoft.BaseCallCenter.Model.T_Call_TaskTelNum> DataTableToList(DataTable dt)
151
+        {
152
+            List<HySoft.BaseCallCenter.Model.T_Call_TaskTelNum> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_TaskTelNum>();
153
+            int rowsCount = dt.Rows.Count;
154
+            if (rowsCount > 0)
155
+            {
156
+                HySoft.BaseCallCenter.Model.T_Call_TaskTelNum model;
157
+                for (int n = 0; n < rowsCount; n++)
158
+                {
159
+                    model = new HySoft.BaseCallCenter.Model.T_Call_TaskTelNum();
160
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
161
+                    {
162
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
163
+                    }
164
+                    if (dt.Rows[n]["F_TaskId"] != null && dt.Rows[n]["F_TaskId"].ToString() != "")
165
+                    {
166
+                        model.F_TaskId = int.Parse(dt.Rows[n]["F_TaskId"].ToString());
167
+                    }
168
+                    if (dt.Rows[n]["F_Phone"] != null && dt.Rows[n]["F_Phone"].ToString() != "")
169
+                    {
170
+                        model.F_Phone = dt.Rows[n]["F_Phone"].ToString();
171
+                    }
172
+                    if (dt.Rows[n]["F_Customer"] != null && dt.Rows[n]["F_Customer"].ToString() != "")
173
+                    {
174
+                        model.F_Customer = dt.Rows[n]["F_Customer"].ToString();
175
+                    }
176
+                    if (dt.Rows[n]["F_PhoneBy"] != null && dt.Rows[n]["F_PhoneBy"].ToString() != "")
177
+                    {
178
+                        model.F_PhoneBy = dt.Rows[n]["F_PhoneBy"].ToString();
179
+                    }
180
+                    if (dt.Rows[n]["F_Sex"] != null && dt.Rows[n]["F_Sex"].ToString() != "")
181
+                    {
182
+                        model.F_Sex = dt.Rows[n]["F_Sex"].ToString();
183
+                    }
184
+                    if (dt.Rows[n]["F_FPState"] != null && dt.Rows[n]["F_FPState"].ToString() != "")
185
+                    {
186
+                        model.F_FPState = int.Parse(dt.Rows[n]["F_FPState"].ToString());
187
+                    }
188
+                    if (dt.Rows[n]["F_YJState"] != null && dt.Rows[n]["F_YJState"].ToString() != "")
189
+                    {
190
+                        model.F_YJState = int.Parse(dt.Rows[n]["F_YJState"].ToString());
191
+                    }
192
+                    if (dt.Rows[n]["F_HCState"] != null && dt.Rows[n]["F_HCState"].ToString() != "")
193
+                    {
194
+                        model.F_HCState = int.Parse(dt.Rows[n]["F_HCState"].ToString());
195
+                    }
196
+                    if (dt.Rows[n]["F_UserId"] != null && dt.Rows[n]["F_UserId"].ToString() != "")
197
+                    {
198
+                        model.F_UserId = int.Parse(dt.Rows[n]["F_UserId"].ToString());
199
+                    }
200
+                    if (dt.Rows[n]["F_UserName"] != null && dt.Rows[n]["F_UserName"].ToString() != "")
201
+                    {
202
+                        model.F_UserName = dt.Rows[n]["F_UserName"].ToString();
203
+                    }
204
+                    if (dt.Rows[n]["F_CreateTime"] != null && dt.Rows[n]["F_CreateTime"].ToString() != "")
205
+                    {
206
+                        model.F_CreateTime = DateTime.Parse(dt.Rows[n]["F_CreateTime"].ToString());
207
+                    }
208
+                    if (dt.Rows[n]["ExpandIntField1"] != null && dt.Rows[n]["ExpandIntField1"].ToString() != "")
209
+                    {
210
+                        model.ExpandIntField1 = int.Parse(dt.Rows[n]["ExpandIntField1"].ToString());
211
+                    }
212
+                    if (dt.Rows[n]["ExpandIntField2"] != null && dt.Rows[n]["ExpandIntField2"].ToString() != "")
213
+                    {
214
+                        model.ExpandIntField2 = int.Parse(dt.Rows[n]["ExpandIntField2"].ToString());
215
+                    }
216
+                    if (dt.Rows[n]["ExpandIntField3"] != null && dt.Rows[n]["ExpandIntField3"].ToString() != "")
217
+                    {
218
+                        model.ExpandIntField3 = int.Parse(dt.Rows[n]["ExpandIntField3"].ToString());
219
+                    }
220
+                    if (dt.Rows[n]["ExpandIntField4"] != null && dt.Rows[n]["ExpandIntField4"].ToString() != "")
221
+                    {
222
+                        model.ExpandIntField4 = int.Parse(dt.Rows[n]["ExpandIntField4"].ToString());
223
+                    }
224
+                    if (dt.Rows[n]["ExpandIntField5"] != null && dt.Rows[n]["ExpandIntField5"].ToString() != "")
225
+                    {
226
+                        model.ExpandIntField5 = int.Parse(dt.Rows[n]["ExpandIntField5"].ToString());
227
+                    }
228
+                    if (dt.Rows[n]["ExpandIntField6"] != null && dt.Rows[n]["ExpandIntField6"].ToString() != "")
229
+                    {
230
+                        model.ExpandIntField6 = int.Parse(dt.Rows[n]["ExpandIntField6"].ToString());
231
+                    }
232
+                    if (dt.Rows[n]["ExpandDecField1"] != null && dt.Rows[n]["ExpandDecField1"].ToString() != "")
233
+                    {
234
+                        model.ExpandDecField1 = decimal.Parse(dt.Rows[n]["ExpandDecField1"].ToString());
235
+                    }
236
+                    if (dt.Rows[n]["ExpandDecField2"] != null && dt.Rows[n]["ExpandDecField2"].ToString() != "")
237
+                    {
238
+                        model.ExpandDecField2 = decimal.Parse(dt.Rows[n]["ExpandDecField2"].ToString());
239
+                    }
240
+                    if (dt.Rows[n]["ExpandDecField3"] != null && dt.Rows[n]["ExpandDecField3"].ToString() != "")
241
+                    {
242
+                        model.ExpandDecField3 = decimal.Parse(dt.Rows[n]["ExpandDecField3"].ToString());
243
+                    }
244
+                    if (dt.Rows[n]["ExpandDecField4"] != null && dt.Rows[n]["ExpandDecField4"].ToString() != "")
245
+                    {
246
+                        model.ExpandDecField4 = decimal.Parse(dt.Rows[n]["ExpandDecField4"].ToString());
247
+                    }
248
+                    if (dt.Rows[n]["ExpandDecField5"] != null && dt.Rows[n]["ExpandDecField5"].ToString() != "")
249
+                    {
250
+                        model.ExpandDecField5 = decimal.Parse(dt.Rows[n]["ExpandDecField5"].ToString());
251
+                    }
252
+                    if (dt.Rows[n]["ExpandDecField6"] != null && dt.Rows[n]["ExpandDecField6"].ToString() != "")
253
+                    {
254
+                        model.ExpandDecField6 = decimal.Parse(dt.Rows[n]["ExpandDecField6"].ToString());
255
+                    }
256
+                    if (dt.Rows[n]["ExpandDatField1"] != null && dt.Rows[n]["ExpandDatField1"].ToString() != "")
257
+                    {
258
+                        model.ExpandDatField1 = DateTime.Parse(dt.Rows[n]["ExpandDatField1"].ToString());
259
+                    }
260
+                    if (dt.Rows[n]["ExpandDatField2"] != null && dt.Rows[n]["ExpandDatField2"].ToString() != "")
261
+                    {
262
+                        model.ExpandDatField2 = DateTime.Parse(dt.Rows[n]["ExpandDatField2"].ToString());
263
+                    }
264
+                    if (dt.Rows[n]["ExpandDatField3"] != null && dt.Rows[n]["ExpandDatField3"].ToString() != "")
265
+                    {
266
+                        model.ExpandDatField3 = DateTime.Parse(dt.Rows[n]["ExpandDatField3"].ToString());
267
+                    }
268
+                    if (dt.Rows[n]["ExpandDatField4"] != null && dt.Rows[n]["ExpandDatField4"].ToString() != "")
269
+                    {
270
+                        model.ExpandDatField4 = DateTime.Parse(dt.Rows[n]["ExpandDatField4"].ToString());
271
+                    }
272
+                    if (dt.Rows[n]["ExpandDatField5"] != null && dt.Rows[n]["ExpandDatField5"].ToString() != "")
273
+                    {
274
+                        model.ExpandDatField5 = DateTime.Parse(dt.Rows[n]["ExpandDatField5"].ToString());
275
+                    }
276
+                    if (dt.Rows[n]["ExpandDatField6"] != null && dt.Rows[n]["ExpandDatField6"].ToString() != "")
277
+                    {
278
+                        model.ExpandDatField6 = DateTime.Parse(dt.Rows[n]["ExpandDatField6"].ToString());
279
+                    }
280
+                    if (dt.Rows[n]["ExpandVchField1"] != null && dt.Rows[n]["ExpandVchField1"].ToString() != "")
281
+                    {
282
+                        model.ExpandVchField1 = dt.Rows[n]["ExpandVchField1"].ToString();
283
+                    }
284
+                    if (dt.Rows[n]["ExpandVchField2"] != null && dt.Rows[n]["ExpandVchField2"].ToString() != "")
285
+                    {
286
+                        model.ExpandVchField2 = dt.Rows[n]["ExpandVchField2"].ToString();
287
+                    }
288
+                    if (dt.Rows[n]["ExpandVchField3"] != null && dt.Rows[n]["ExpandVchField3"].ToString() != "")
289
+                    {
290
+                        model.ExpandVchField3 = dt.Rows[n]["ExpandVchField3"].ToString();
291
+                    }
292
+                    if (dt.Rows[n]["ExpandVchField4"] != null && dt.Rows[n]["ExpandVchField4"].ToString() != "")
293
+                    {
294
+                        model.ExpandVchField4 = dt.Rows[n]["ExpandVchField4"].ToString();
295
+                    }
296
+                    if (dt.Rows[n]["ExpandVchField5"] != null && dt.Rows[n]["ExpandVchField5"].ToString() != "")
297
+                    {
298
+                        model.ExpandVchField5 = dt.Rows[n]["ExpandVchField5"].ToString();
299
+                    }
300
+                    if (dt.Rows[n]["ExpandVchField6"] != null && dt.Rows[n]["ExpandVchField6"].ToString() != "")
301
+                    {
302
+                        model.ExpandVchField6 = dt.Rows[n]["ExpandVchField6"].ToString();
303
+                    }
304
+                    if (dt.Rows[n]["ExpandVchField7"] != null && dt.Rows[n]["ExpandVchField7"].ToString() != "")
305
+                    {
306
+                        model.ExpandVchField7 = dt.Rows[n]["ExpandVchField7"].ToString();
307
+                    }
308
+                    if (dt.Rows[n]["ExpandVchField8"] != null && dt.Rows[n]["ExpandVchField8"].ToString() != "")
309
+                    {
310
+                        model.ExpandVchField8 = dt.Rows[n]["ExpandVchField8"].ToString();
311
+                    }
312
+                    if (dt.Rows[n]["ExpandVchField9"] != null && dt.Rows[n]["ExpandVchField9"].ToString() != "")
313
+                    {
314
+                        model.ExpandVchField9 = dt.Rows[n]["ExpandVchField9"].ToString();
315
+                    }
316
+                    if (dt.Rows[n]["ExpandVchField10"] != null && dt.Rows[n]["ExpandVchField10"].ToString() != "")
317
+                    {
318
+                        model.ExpandVchField10 = dt.Rows[n]["ExpandVchField10"].ToString();
319
+                    }
320
+                    if (dt.Rows[n]["ExpandVchField11"] != null && dt.Rows[n]["ExpandVchField11"].ToString() != "")
321
+                    {
322
+                        model.ExpandVchField11 = dt.Rows[n]["ExpandVchField11"].ToString();
323
+                    }
324
+                    if (dt.Rows[n]["ExpandVchField12"] != null && dt.Rows[n]["ExpandVchField12"].ToString() != "")
325
+                    {
326
+                        model.ExpandVchField12 = dt.Rows[n]["ExpandVchField12"].ToString();
327
+                    }
328
+                    if (dt.Rows[n]["ExpandVchField13"] != null && dt.Rows[n]["ExpandVchField13"].ToString() != "")
329
+                    {
330
+                        model.ExpandVchField13 = dt.Rows[n]["ExpandVchField13"].ToString();
331
+                    }
332
+                    if (dt.Rows[n]["ExpandVchField14"] != null && dt.Rows[n]["ExpandVchField14"].ToString() != "")
333
+                    {
334
+                        model.ExpandVchField14 = dt.Rows[n]["ExpandVchField14"].ToString();
335
+                    }
336
+                    if (dt.Rows[n]["ExpandVchField15"] != null && dt.Rows[n]["ExpandVchField15"].ToString() != "")
337
+                    {
338
+                        model.ExpandVchField15 = dt.Rows[n]["ExpandVchField15"].ToString();
339
+                    }
340
+                    if (dt.Rows[n]["ExpandSintField1"] != null && dt.Rows[n]["ExpandSintField1"].ToString() != "")
341
+                    {
342
+                        model.ExpandSintField1 = int.Parse(dt.Rows[n]["ExpandSintField1"].ToString());
343
+                    }
344
+                    if (dt.Rows[n]["ExpandSintField2"] != null && dt.Rows[n]["ExpandSintField2"].ToString() != "")
345
+                    {
346
+                        model.ExpandSintField2 = int.Parse(dt.Rows[n]["ExpandSintField2"].ToString());
347
+                    }
348
+                    if (dt.Rows[n]["ExpandSintField3"] != null && dt.Rows[n]["ExpandSintField3"].ToString() != "")
349
+                    {
350
+                        model.ExpandSintField3 = int.Parse(dt.Rows[n]["ExpandSintField3"].ToString());
351
+                    }
352
+                    if (dt.Rows[n]["ExpandSintField4"] != null && dt.Rows[n]["ExpandSintField4"].ToString() != "")
353
+                    {
354
+                        model.ExpandSintField4 = int.Parse(dt.Rows[n]["ExpandSintField4"].ToString());
355
+                    }
356
+                    if (dt.Rows[n]["ExpandSintField5"] != null && dt.Rows[n]["ExpandSintField5"].ToString() != "")
357
+                    {
358
+                        model.ExpandSintField5 = int.Parse(dt.Rows[n]["ExpandSintField5"].ToString());
359
+                    }
360
+                    try
361
+                    {
362
+                        model.TaskName = dt.Rows[n]["TaskName"].ToString();
363
+                    }
364
+                    catch
365
+                    { }
366
+                    modelList.Add(model);
367
+                }
368
+            }
369
+            return modelList;
370
+        }
371
+
372
+        /// <summary>
373
+        /// 获得数据列表
374
+        /// </summary>
375
+        public List<HySoft.BaseCallCenter.Model.T_Call_TaskTelNumRes> DataTableToListRes(DataTable dt)
376
+        {
377
+            List<HySoft.BaseCallCenter.Model.T_Call_TaskTelNumRes> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_TaskTelNumRes>();
378
+            int rowsCount = dt.Rows.Count;
379
+            if (rowsCount > 0)
380
+            {
381
+                HySoft.BaseCallCenter.Model.T_Call_TaskTelNumRes model;
382
+                for (int n = 0; n < rowsCount; n++)
383
+                {
384
+                    model = new HySoft.BaseCallCenter.Model.T_Call_TaskTelNumRes();
385
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
386
+                    {
387
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
388
+                    }
389
+                    if (dt.Rows[n]["F_TaskId"] != null && dt.Rows[n]["F_TaskId"].ToString() != "")
390
+                    {
391
+                        model.F_TaskId = int.Parse(dt.Rows[n]["F_TaskId"].ToString());
392
+                    }
393
+                    if (dt.Rows[n]["F_Phone"] != null && dt.Rows[n]["F_Phone"].ToString() != "")
394
+                    {
395
+                        model.F_Phone = dt.Rows[n]["F_Phone"].ToString();
396
+                    }
397
+                    if (dt.Rows[n]["F_Customer"] != null && dt.Rows[n]["F_Customer"].ToString() != "")
398
+                    {
399
+                        model.F_Customer = dt.Rows[n]["F_Customer"].ToString();
400
+                    }
401
+                    if (dt.Rows[n]["F_PhoneBy"] != null && dt.Rows[n]["F_PhoneBy"].ToString() != "")
402
+                    {
403
+                        model.F_PhoneBy = dt.Rows[n]["F_PhoneBy"].ToString();
404
+                    }
405
+                    if (dt.Rows[n]["F_Sex"] != null && dt.Rows[n]["F_Sex"].ToString() != "")
406
+                    {
407
+                        model.F_Sex = dt.Rows[n]["F_Sex"].ToString();
408
+                    }
409
+                    if (dt.Rows[n]["F_FPState"] != null && dt.Rows[n]["F_FPState"].ToString() != "")
410
+                    {
411
+                        model.F_FPState = int.Parse(dt.Rows[n]["F_FPState"].ToString());
412
+                    }
413
+                    if (dt.Rows[n]["F_YJState"] != null && dt.Rows[n]["F_YJState"].ToString() != "")
414
+                    {
415
+                        model.F_YJState = int.Parse(dt.Rows[n]["F_YJState"].ToString());
416
+                    }
417
+                    if (dt.Rows[n]["F_HCState"] != null && dt.Rows[n]["F_HCState"].ToString() != "")
418
+                    {
419
+                        model.F_HCState = int.Parse(dt.Rows[n]["F_HCState"].ToString());
420
+                    }
421
+                    if (dt.Rows[n]["F_UserId"] != null && dt.Rows[n]["F_UserId"].ToString() != "")
422
+                    {
423
+                        model.F_UserId = int.Parse(dt.Rows[n]["F_UserId"].ToString());
424
+                    }
425
+                    if (dt.Rows[n]["F_UserName"] != null && dt.Rows[n]["F_UserName"].ToString() != "")
426
+                    {
427
+                        model.F_UserName = dt.Rows[n]["F_UserName"].ToString();
428
+                    }
429
+                    if (dt.Rows[n]["F_CreateTime"] != null && dt.Rows[n]["F_CreateTime"].ToString() != "")
430
+                    {
431
+                        model.F_CreateTime = DateTime.Parse(dt.Rows[n]["F_CreateTime"].ToString());
432
+                    }
433
+                    if (dt.Rows[n]["ExpandIntField1"] != null && dt.Rows[n]["ExpandIntField1"].ToString() != "")
434
+                    {
435
+                        model.ExpandIntField1 = int.Parse(dt.Rows[n]["ExpandIntField1"].ToString());
436
+                    }
437
+                    if (dt.Rows[n]["ExpandIntField2"] != null && dt.Rows[n]["ExpandIntField2"].ToString() != "")
438
+                    {
439
+                        model.ExpandIntField2 = int.Parse(dt.Rows[n]["ExpandIntField2"].ToString());
440
+                    }
441
+                    if (dt.Rows[n]["ExpandIntField3"] != null && dt.Rows[n]["ExpandIntField3"].ToString() != "")
442
+                    {
443
+                        model.ExpandIntField3 = int.Parse(dt.Rows[n]["ExpandIntField3"].ToString());
444
+                    }
445
+                    if (dt.Rows[n]["ExpandIntField4"] != null && dt.Rows[n]["ExpandIntField4"].ToString() != "")
446
+                    {
447
+                        model.ExpandIntField4 = int.Parse(dt.Rows[n]["ExpandIntField4"].ToString());
448
+                    }
449
+                    if (dt.Rows[n]["ExpandIntField5"] != null && dt.Rows[n]["ExpandIntField5"].ToString() != "")
450
+                    {
451
+                        model.ExpandIntField5 = int.Parse(dt.Rows[n]["ExpandIntField5"].ToString());
452
+                    }
453
+                    if (dt.Rows[n]["ExpandIntField6"] != null && dt.Rows[n]["ExpandIntField6"].ToString() != "")
454
+                    {
455
+                        model.ExpandIntField6 = int.Parse(dt.Rows[n]["ExpandIntField6"].ToString());
456
+                    }
457
+                    if (dt.Rows[n]["ExpandDecField1"] != null && dt.Rows[n]["ExpandDecField1"].ToString() != "")
458
+                    {
459
+                        model.ExpandDecField1 = decimal.Parse(dt.Rows[n]["ExpandDecField1"].ToString());
460
+                    }
461
+                    if (dt.Rows[n]["ExpandDecField2"] != null && dt.Rows[n]["ExpandDecField2"].ToString() != "")
462
+                    {
463
+                        model.ExpandDecField2 = decimal.Parse(dt.Rows[n]["ExpandDecField2"].ToString());
464
+                    }
465
+                    if (dt.Rows[n]["ExpandDecField3"] != null && dt.Rows[n]["ExpandDecField3"].ToString() != "")
466
+                    {
467
+                        model.ExpandDecField3 = decimal.Parse(dt.Rows[n]["ExpandDecField3"].ToString());
468
+                    }
469
+                    if (dt.Rows[n]["ExpandDecField4"] != null && dt.Rows[n]["ExpandDecField4"].ToString() != "")
470
+                    {
471
+                        model.ExpandDecField4 = decimal.Parse(dt.Rows[n]["ExpandDecField4"].ToString());
472
+                    }
473
+                    if (dt.Rows[n]["ExpandDecField5"] != null && dt.Rows[n]["ExpandDecField5"].ToString() != "")
474
+                    {
475
+                        model.ExpandDecField5 = decimal.Parse(dt.Rows[n]["ExpandDecField5"].ToString());
476
+                    }
477
+                    if (dt.Rows[n]["ExpandDecField6"] != null && dt.Rows[n]["ExpandDecField6"].ToString() != "")
478
+                    {
479
+                        model.ExpandDecField6 = decimal.Parse(dt.Rows[n]["ExpandDecField6"].ToString());
480
+                    }
481
+                    if (dt.Rows[n]["ExpandDatField1"] != null && dt.Rows[n]["ExpandDatField1"].ToString() != "")
482
+                    {
483
+                        model.ExpandDatField1 = DateTime.Parse(dt.Rows[n]["ExpandDatField1"].ToString());
484
+                    }
485
+                    if (dt.Rows[n]["ExpandDatField2"] != null && dt.Rows[n]["ExpandDatField2"].ToString() != "")
486
+                    {
487
+                        model.ExpandDatField2 = DateTime.Parse(dt.Rows[n]["ExpandDatField2"].ToString());
488
+                    }
489
+                    if (dt.Rows[n]["ExpandDatField3"] != null && dt.Rows[n]["ExpandDatField3"].ToString() != "")
490
+                    {
491
+                        model.ExpandDatField3 = DateTime.Parse(dt.Rows[n]["ExpandDatField3"].ToString());
492
+                    }
493
+                    if (dt.Rows[n]["ExpandDatField4"] != null && dt.Rows[n]["ExpandDatField4"].ToString() != "")
494
+                    {
495
+                        model.ExpandDatField4 = DateTime.Parse(dt.Rows[n]["ExpandDatField4"].ToString());
496
+                    }
497
+                    if (dt.Rows[n]["ExpandDatField5"] != null && dt.Rows[n]["ExpandDatField5"].ToString() != "")
498
+                    {
499
+                        model.ExpandDatField5 = DateTime.Parse(dt.Rows[n]["ExpandDatField5"].ToString());
500
+                    }
501
+                    if (dt.Rows[n]["ExpandDatField6"] != null && dt.Rows[n]["ExpandDatField6"].ToString() != "")
502
+                    {
503
+                        model.ExpandDatField6 = DateTime.Parse(dt.Rows[n]["ExpandDatField6"].ToString());
504
+                    }
505
+                    if (dt.Rows[n]["ExpandVchField1"] != null && dt.Rows[n]["ExpandVchField1"].ToString() != "")
506
+                    {
507
+                        model.ExpandVchField1 = dt.Rows[n]["ExpandVchField1"].ToString();
508
+                    }
509
+                    if (dt.Rows[n]["ExpandVchField2"] != null && dt.Rows[n]["ExpandVchField2"].ToString() != "")
510
+                    {
511
+                        model.ExpandVchField2 = dt.Rows[n]["ExpandVchField2"].ToString();
512
+                    }
513
+                    if (dt.Rows[n]["ExpandVchField3"] != null && dt.Rows[n]["ExpandVchField3"].ToString() != "")
514
+                    {
515
+                        model.ExpandVchField3 = dt.Rows[n]["ExpandVchField3"].ToString();
516
+                    }
517
+                    if (dt.Rows[n]["ExpandVchField4"] != null && dt.Rows[n]["ExpandVchField4"].ToString() != "")
518
+                    {
519
+                        model.ExpandVchField4 = dt.Rows[n]["ExpandVchField4"].ToString();
520
+                    }
521
+                    if (dt.Rows[n]["ExpandVchField5"] != null && dt.Rows[n]["ExpandVchField5"].ToString() != "")
522
+                    {
523
+                        model.ExpandVchField5 = dt.Rows[n]["ExpandVchField5"].ToString();
524
+                    }
525
+                    if (dt.Rows[n]["ExpandVchField6"] != null && dt.Rows[n]["ExpandVchField6"].ToString() != "")
526
+                    {
527
+                        model.ExpandVchField6 = dt.Rows[n]["ExpandVchField6"].ToString();
528
+                    }
529
+                    if (dt.Rows[n]["ExpandVchField7"] != null && dt.Rows[n]["ExpandVchField7"].ToString() != "")
530
+                    {
531
+                        model.ExpandVchField7 = dt.Rows[n]["ExpandVchField7"].ToString();
532
+                    }
533
+                    if (dt.Rows[n]["ExpandVchField8"] != null && dt.Rows[n]["ExpandVchField8"].ToString() != "")
534
+                    {
535
+                        model.ExpandVchField8 = dt.Rows[n]["ExpandVchField8"].ToString();
536
+                    }
537
+                    if (dt.Rows[n]["ExpandVchField9"] != null && dt.Rows[n]["ExpandVchField9"].ToString() != "")
538
+                    {
539
+                        model.ExpandVchField9 = dt.Rows[n]["ExpandVchField9"].ToString();
540
+                    }
541
+                    if (dt.Rows[n]["ExpandVchField10"] != null && dt.Rows[n]["ExpandVchField10"].ToString() != "")
542
+                    {
543
+                        model.ExpandVchField10 = dt.Rows[n]["ExpandVchField10"].ToString();
544
+                    }
545
+                    if (dt.Rows[n]["ExpandVchField11"] != null && dt.Rows[n]["ExpandVchField11"].ToString() != "")
546
+                    {
547
+                        model.ExpandVchField11 = dt.Rows[n]["ExpandVchField11"].ToString();
548
+                    }
549
+                    if (dt.Rows[n]["ExpandVchField12"] != null && dt.Rows[n]["ExpandVchField12"].ToString() != "")
550
+                    {
551
+                        model.ExpandVchField12 = dt.Rows[n]["ExpandVchField12"].ToString();
552
+                    }
553
+                    if (dt.Rows[n]["ExpandVchField13"] != null && dt.Rows[n]["ExpandVchField13"].ToString() != "")
554
+                    {
555
+                        model.ExpandVchField13 = dt.Rows[n]["ExpandVchField13"].ToString();
556
+                    }
557
+                    if (dt.Rows[n]["ExpandVchField14"] != null && dt.Rows[n]["ExpandVchField14"].ToString() != "")
558
+                    {
559
+                        model.ExpandVchField14 = dt.Rows[n]["ExpandVchField14"].ToString();
560
+                    }
561
+                    if (dt.Rows[n]["ExpandVchField15"] != null && dt.Rows[n]["ExpandVchField15"].ToString() != "")
562
+                    {
563
+                        model.ExpandVchField15 = dt.Rows[n]["ExpandVchField15"].ToString();
564
+                    }
565
+                    if (dt.Rows[n]["ExpandSintField1"] != null && dt.Rows[n]["ExpandSintField1"].ToString() != "")
566
+                    {
567
+                        model.ExpandSintField1 = int.Parse(dt.Rows[n]["ExpandSintField1"].ToString());
568
+                    }
569
+                    if (dt.Rows[n]["ExpandSintField2"] != null && dt.Rows[n]["ExpandSintField2"].ToString() != "")
570
+                    {
571
+                        model.ExpandSintField2 = int.Parse(dt.Rows[n]["ExpandSintField2"].ToString());
572
+                    }
573
+                    if (dt.Rows[n]["ExpandSintField3"] != null && dt.Rows[n]["ExpandSintField3"].ToString() != "")
574
+                    {
575
+                        model.ExpandSintField3 = int.Parse(dt.Rows[n]["ExpandSintField3"].ToString());
576
+                    }
577
+                    if (dt.Rows[n]["ExpandSintField4"] != null && dt.Rows[n]["ExpandSintField4"].ToString() != "")
578
+                    {
579
+                        model.ExpandSintField4 = int.Parse(dt.Rows[n]["ExpandSintField4"].ToString());
580
+                    }
581
+                    if (dt.Rows[n]["ExpandSintField5"] != null && dt.Rows[n]["ExpandSintField5"].ToString() != "")
582
+                    {
583
+                        model.ExpandSintField5 = int.Parse(dt.Rows[n]["ExpandSintField5"].ToString());
584
+                    }
585
+                    try
586
+                    {
587
+                        model.TaskName = dt.Rows[n]["TaskName"].ToString();
588
+                    }
589
+                    catch
590
+                    { }
591
+                    DataTable newdt = new DataTable();
592
+                    try
593
+                    {
594
+                        model.CallOutCount = 0;
595
+                        model.CallOutJTCount = 0;
596
+                        string id = dt.Rows[n]["F_Id"].ToString();
597
+                        newdt = new BLL.T_Call_CallRecords().GetList(" OperateType=7 and CallType=1 and OperateObject='" + id + "' order by BeginTime desc ").Tables[0];
598
+                        if (newdt.Rows.Count > 0)
599
+                        {
600
+                            model.LastCallTime = DateTime.Parse(newdt.Rows[0]["BeginTime"].ToString());
601
+                            model.CallOutCount = newdt.Rows.Count;
602
+                            model.CallOutJTCount = newdt.Select(" CallState=1 ").Length;
603
+                        }
604
+                    }
605
+                    catch
606
+                    { }
607
+                    finally
608
+                    {
609
+                        newdt.Clear();
610
+                        newdt.Dispose();
611
+                    }
612
+
613
+                    if (dt.Rows[n]["F_HJJGId"] != null && dt.Rows[n]["F_HJJGId"].ToString() != "")
614
+                    {
615
+                        model.F_HJJGId = int.Parse(dt.Rows[n]["F_HJJGId"].ToString());
616
+                    }
617
+                    if (dt.Rows[n]["F_HJJGName"] != null && dt.Rows[n]["F_HJJGName"].ToString() != "")
618
+                    {
619
+                        model.F_HJJGName = dt.Rows[n]["F_HJJGName"].ToString();
620
+                    }
621
+
622
+                    modelList.Add(model);
623
+                }
624
+            }
625
+            return modelList;
626
+        }
627
+
628
+        /// <summary>
629
+        /// 获得数据列表
630
+        /// </summary>
631
+        public DataSet GetAllList()
632
+        {
633
+            return GetList("");
634
+        }
635
+
636
+        /// <summary>
637
+        /// 分页获取数据列表
638
+        /// </summary>
639
+        public int GetRecordCount(string strWhere)
640
+        {
641
+            return dal.GetRecordCount(strWhere);
642
+        }
643
+        /// <summary>
644
+        /// 分页获取数据列表
645
+        /// </summary>
646
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
647
+        {
648
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
649
+        }
650
+        /// <summary>
651
+        /// 分页获取数据列表
652
+        /// </summary>
653
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
654
+        //{
655
+        //return dal.GetList(PageSize,PageIndex,strWhere);
656
+        //}
657
+
658
+        #endregion  Method
659
+    }
660
+}
661
+

+ 166 - 0
BaseCallCenter.BLL/T_Call_WorkOrder.cs

@@ -0,0 +1,166 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Call_WorkOrder
10
+	/// </summary>
11
+	public partial class T_Call_WorkOrder
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Call_WorkOrder dal=new HySoft.BaseCallCenter.DAL.T_Call_WorkOrder();
14
+		public T_Call_WorkOrder()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public bool Add(HySoft.BaseCallCenter.Model.T_Call_WorkOrder model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Call_WorkOrder model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete()
38
+		{
39
+			//该表无主键信息,请自定义主键/条件字段
40
+			return dal.Delete();
41
+		}
42
+
43
+		/// <summary>
44
+		/// 得到一个对象实体
45
+		/// </summary>
46
+		public HySoft.BaseCallCenter.Model.T_Call_WorkOrder GetModel()
47
+		{
48
+			//该表无主键信息,请自定义主键/条件字段
49
+			return dal.GetModel();
50
+		}
51
+
52
+		/// <summary>
53
+		/// 得到一个对象实体,从缓存中
54
+		/// </summary>
55
+        //public HySoft.BaseCallCenter.Model.T_Call_WorkOrder GetModelByCache()
56
+        //{
57
+        //    //该表无主键信息,请自定义主键/条件字段
58
+        //    string CacheKey = "T_Call_WorkOrderModel-" ;
59
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
60
+        //    if (objModel == null)
61
+        //    {
62
+        //        try
63
+        //        {
64
+        //            objModel = dal.GetModel();
65
+        //            if (objModel != null)
66
+        //            {
67
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
68
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
69
+        //            }
70
+        //        }
71
+        //        catch{}
72
+        //    }
73
+        //    return (HySoft.BaseCallCenter.Model.T_Call_WorkOrder)objModel;
74
+        //}
75
+
76
+		/// <summary>
77
+		/// 获得数据列表
78
+		/// </summary>
79
+		public DataSet GetList(string strWhere)
80
+		{
81
+			return dal.GetList(strWhere);
82
+		}
83
+		/// <summary>
84
+		/// 获得前几行数据
85
+		/// </summary>
86
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
87
+		{
88
+			return dal.GetList(Top,strWhere,filedOrder);
89
+		}
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+		public List<HySoft.BaseCallCenter.Model.T_Call_WorkOrder> GetModelList(string strWhere)
94
+		{
95
+			DataSet ds = dal.GetList(strWhere);
96
+			return DataTableToList(ds.Tables[0]);
97
+		}
98
+		/// <summary>
99
+		/// 获得数据列表
100
+		/// </summary>
101
+		public List<HySoft.BaseCallCenter.Model.T_Call_WorkOrder> DataTableToList(DataTable dt)
102
+		{
103
+			List<HySoft.BaseCallCenter.Model.T_Call_WorkOrder> modelList = new List<HySoft.BaseCallCenter.Model.T_Call_WorkOrder>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+				HySoft.BaseCallCenter.Model.T_Call_WorkOrder model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+					model = new HySoft.BaseCallCenter.Model.T_Call_WorkOrder();
111
+					if(dt.Rows[n]["F_WORKORDERID"]!=null && dt.Rows[n]["F_WORKORDERID"].ToString()!="")
112
+					{
113
+						model.F_WORKORDERID=int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
114
+					}
115
+					if(dt.Rows[n]["CallId"]!=null && dt.Rows[n]["CallId"].ToString()!="")
116
+					{
117
+					model.CallId=dt.Rows[n]["CallId"].ToString();
118
+					}
119
+					if(dt.Rows[n]["F_WORKORDERSTATEID"]!=null && dt.Rows[n]["F_WORKORDERSTATEID"].ToString()!="")
120
+					{
121
+						model.F_WORKORDERSTATEID=int.Parse(dt.Rows[n]["F_WORKORDERSTATEID"].ToString());
122
+					}
123
+					if(dt.Rows[n]["TalkLongTime"]!=null && dt.Rows[n]["TalkLongTime"].ToString()!="")
124
+					{
125
+						model.TalkLongTime=int.Parse(dt.Rows[n]["TalkLongTime"].ToString());
126
+					}
127
+					modelList.Add(model);
128
+				}
129
+			}
130
+			return modelList;
131
+		}
132
+
133
+		/// <summary>
134
+		/// 获得数据列表
135
+		/// </summary>
136
+		public DataSet GetAllList()
137
+		{
138
+			return GetList("");
139
+		}
140
+
141
+		/// <summary>
142
+		/// 分页获取数据列表
143
+		/// </summary>
144
+		public int GetRecordCount(string strWhere)
145
+		{
146
+			return dal.GetRecordCount(strWhere);
147
+		}
148
+		/// <summary>
149
+		/// 分页获取数据列表
150
+		/// </summary>
151
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
152
+		{
153
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
154
+		}
155
+		/// <summary>
156
+		/// 分页获取数据列表
157
+		/// </summary>
158
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
159
+		//{
160
+			//return dal.GetList(PageSize,PageIndex,strWhere);
161
+		//}
162
+
163
+		#endregion  Method
164
+	}
165
+}
166
+

+ 195 - 0
BaseCallCenter.BLL/T_Cus_ContactPerson.cs

@@ -0,0 +1,195 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_Cus_ContactPerson.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_Cus_ContactPerson
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2015/3/5 11:17:54   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
+using HySoft.Common;
21
+using HySoft.BaseCallCenter.Model;
22
+namespace HySoft.BaseCallCenter.BLL
23
+{
24
+	/// <summary>
25
+	/// T_Cus_ContactPerson
26
+	/// </summary>
27
+	public partial class T_Cus_ContactPerson
28
+	{
29
+		private readonly HySoft.BaseCallCenter.DAL.T_Cus_ContactPerson dal=new HySoft.BaseCallCenter.DAL.T_Cus_ContactPerson();
30
+		public T_Cus_ContactPerson()
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_ManId)
46
+		{
47
+			return dal.Exists(F_ManId);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 增加一条数据
52
+		/// </summary>
53
+		public int  Add(HySoft.BaseCallCenter.Model.T_Cus_ContactPerson model)
54
+		{
55
+			return dal.Add(model);
56
+		}
57
+
58
+		/// <summary>
59
+		/// 更新一条数据
60
+		/// </summary>
61
+		public bool Update(HySoft.BaseCallCenter.Model.T_Cus_ContactPerson model)
62
+		{
63
+			return dal.Update(model);
64
+		}
65
+
66
+		/// <summary>
67
+		/// 删除一条数据
68
+		/// </summary>
69
+		public bool Delete(int F_ManId)
70
+		{
71
+			
72
+			return dal.Delete(F_ManId);
73
+		}
74
+		/// <summary>
75
+		/// 删除一条数据
76
+		/// </summary>
77
+		public bool DeleteList(string F_ManIdlist )
78
+		{
79
+			return dal.DeleteList(F_ManIdlist );
80
+		}
81
+
82
+		/// <summary>
83
+		/// 得到一个对象实体
84
+		/// </summary>
85
+		public HySoft.BaseCallCenter.Model.T_Cus_ContactPerson GetModel(int F_ManId)
86
+		{
87
+			
88
+			return dal.GetModel(F_ManId);
89
+		}
90
+
91
+		/// <summary>
92
+		/// 得到一个对象实体,从缓存中
93
+		/// </summary>
94
+        //public HySoft.BaseCallCenter.Model.T_Cus_ContactPerson GetModelByCache(int F_ManId)
95
+        //{
96
+			
97
+        //    string CacheKey = "T_Cus_ContactPersonModel-" + F_ManId;
98
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
99
+        //    if (objModel == null)
100
+        //    {
101
+        //        try
102
+        //        {
103
+        //            objModel = dal.GetModel(F_ManId);
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 (HySoft.BaseCallCenter.Model.T_Cus_ContactPerson)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<HySoft.BaseCallCenter.Model.T_Cus_ContactPerson> 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<HySoft.BaseCallCenter.Model.T_Cus_ContactPerson> DataTableToList(DataTable dt)
141
+		{
142
+			List<HySoft.BaseCallCenter.Model.T_Cus_ContactPerson> modelList = new List<HySoft.BaseCallCenter.Model.T_Cus_ContactPerson>();
143
+			int rowsCount = dt.Rows.Count;
144
+			if (rowsCount > 0)
145
+			{
146
+				HySoft.BaseCallCenter.Model.T_Cus_ContactPerson 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
+

+ 171 - 0
BaseCallCenter.BLL/T_Cus_CustomerBase.cs

@@ -0,0 +1,171 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_Cus_CustomerBase.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_Cus_CustomerBase
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2015/2/27 16:05:58   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
+using HySoft.Common;
21
+using HySoft.BaseCallCenter.Model;
22
+namespace HySoft.BaseCallCenter.BLL
23
+{
24
+	/// <summary>
25
+	/// T_Cus_CustomerBase
26
+	/// </summary>
27
+	public partial class T_Cus_CustomerBase
28
+	{
29
+		private readonly HySoft.BaseCallCenter.DAL.T_Cus_CustomerBase dal=new HySoft.BaseCallCenter.DAL.T_Cus_CustomerBase();
30
+		public T_Cus_CustomerBase()
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_CustomerId)
46
+		{
47
+			return dal.Exists(F_CustomerId);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 增加一条数据
52
+		/// </summary>
53
+		public int  Add(HySoft.BaseCallCenter.Model.T_Cus_CustomerBase model)
54
+		{
55
+			return dal.Add(model);
56
+		}
57
+
58
+		/// <summary>
59
+		/// 更新一条数据
60
+		/// </summary>
61
+		public bool Update(HySoft.BaseCallCenter.Model.T_Cus_CustomerBase model)
62
+		{
63
+			return dal.Update(model);
64
+		}
65
+
66
+		/// <summary>
67
+		/// 删除一条数据
68
+		/// </summary>
69
+		public bool Delete(int F_CustomerId)
70
+		{
71
+			
72
+			return dal.Delete(F_CustomerId);
73
+		}
74
+		/// <summary>
75
+		/// 删除一条数据
76
+		/// </summary>
77
+		public bool DeleteList(string F_CustomerIdlist )
78
+		{
79
+			return dal.DeleteList(F_CustomerIdlist );
80
+		}
81
+
82
+		/// <summary>
83
+		/// 得到一个对象实体
84
+		/// </summary>
85
+		public HySoft.BaseCallCenter.Model.T_Cus_CustomerBase GetModel(int F_CustomerId)
86
+		{
87
+			
88
+			return dal.GetModel(F_CustomerId);
89
+		}
90
+
91
+		/// <summary>
92
+		/// 获得数据列表
93
+		/// </summary>
94
+		public DataSet GetList(string strWhere)
95
+		{
96
+			return dal.GetList(strWhere);
97
+		}
98
+		/// <summary>
99
+		/// 获得前几行数据
100
+		/// </summary>
101
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
102
+		{
103
+			return dal.GetList(Top,strWhere,filedOrder);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public List<HySoft.BaseCallCenter.Model.T_Cus_CustomerBase> GetModelList(string strWhere)
109
+		{
110
+			DataSet ds = dal.GetList(strWhere);
111
+			return DataTableToList(ds.Tables[0]);
112
+		}
113
+		/// <summary>
114
+		/// 获得数据列表
115
+		/// </summary>
116
+		public List<HySoft.BaseCallCenter.Model.T_Cus_CustomerBase> DataTableToList(DataTable dt)
117
+		{
118
+			List<HySoft.BaseCallCenter.Model.T_Cus_CustomerBase> modelList = new List<HySoft.BaseCallCenter.Model.T_Cus_CustomerBase>();
119
+			int rowsCount = dt.Rows.Count;
120
+			if (rowsCount > 0)
121
+			{
122
+				HySoft.BaseCallCenter.Model.T_Cus_CustomerBase model;
123
+				for (int n = 0; n < rowsCount; n++)
124
+				{
125
+					model = dal.DataRowToModel(dt.Rows[n]);
126
+					if (model != null)
127
+					{
128
+						modelList.Add(model);
129
+					}
130
+				}
131
+			}
132
+			return modelList;
133
+		}
134
+
135
+		/// <summary>
136
+		/// 获得数据列表
137
+		/// </summary>
138
+		public DataSet GetAllList()
139
+		{
140
+			return GetList("");
141
+		}
142
+
143
+		/// <summary>
144
+		/// 分页获取数据列表
145
+		/// </summary>
146
+		public int GetRecordCount(string strWhere)
147
+		{
148
+			return dal.GetRecordCount(strWhere);
149
+		}
150
+		/// <summary>
151
+		/// 分页获取数据列表
152
+		/// </summary>
153
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
154
+		{
155
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
156
+		}
157
+		/// <summary>
158
+		/// 分页获取数据列表
159
+		/// </summary>
160
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
161
+		//{
162
+			//return dal.GetList(PageSize,PageIndex,strWhere);
163
+		//}
164
+
165
+		#endregion  BasicMethod
166
+		#region  ExtensionMethod
167
+
168
+		#endregion  ExtensionMethod
169
+	}
170
+}
171
+

+ 162 - 0
BaseCallCenter.BLL/T_Cus_CustomerExpand.cs

@@ -0,0 +1,162 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_Cus_CustomerExpand.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_Cus_CustomerExpand
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2015/2/27 16:06:05   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
+using HySoft.Common;
21
+using HySoft.BaseCallCenter.Model;
22
+namespace HySoft.BaseCallCenter.BLL
23
+{
24
+	/// <summary>
25
+	/// T_Cus_CustomerExpand
26
+	/// </summary>
27
+	public partial class T_Cus_CustomerExpand
28
+	{
29
+		private readonly HySoft.BaseCallCenter.DAL.T_Cus_CustomerExpand dal=new HySoft.BaseCallCenter.DAL.T_Cus_CustomerExpand();
30
+		public T_Cus_CustomerExpand()
31
+		{}
32
+		#region  BasicMethod
33
+		/// <summary>
34
+		/// 是否存在该记录
35
+		/// </summary>
36
+		public bool Exists(Guid F_ExpandId)
37
+		{
38
+			return dal.Exists(F_ExpandId);
39
+		}
40
+
41
+		/// <summary>
42
+		/// 增加一条数据
43
+		/// </summary>
44
+		public bool Add(HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand model)
45
+		{
46
+			return dal.Add(model);
47
+		}
48
+
49
+		/// <summary>
50
+		/// 更新一条数据
51
+		/// </summary>
52
+		public bool Update(HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand model)
53
+		{
54
+			return dal.Update(model);
55
+		}
56
+
57
+		/// <summary>
58
+		/// 删除一条数据
59
+		/// </summary>
60
+		public bool Delete(Guid F_ExpandId)
61
+		{
62
+			
63
+			return dal.Delete(F_ExpandId);
64
+		}
65
+		/// <summary>
66
+		/// 删除一条数据
67
+		/// </summary>
68
+		public bool DeleteList(string F_ExpandIdlist )
69
+		{
70
+			return dal.DeleteList(F_ExpandIdlist );
71
+		}
72
+
73
+		/// <summary>
74
+		/// 得到一个对象实体
75
+		/// </summary>
76
+		public HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand GetModel(Guid F_ExpandId)
77
+		{
78
+			
79
+			return dal.GetModel(F_ExpandId);
80
+		}
81
+
82
+		/// <summary>
83
+		/// 获得数据列表
84
+		/// </summary>
85
+		public DataSet GetList(string strWhere)
86
+		{
87
+			return dal.GetList(strWhere);
88
+		}
89
+		/// <summary>
90
+		/// 获得前几行数据
91
+		/// </summary>
92
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
93
+		{
94
+			return dal.GetList(Top,strWhere,filedOrder);
95
+		}
96
+		/// <summary>
97
+		/// 获得数据列表
98
+		/// </summary>
99
+		public List<HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand> GetModelList(string strWhere)
100
+		{
101
+			DataSet ds = dal.GetList(strWhere);
102
+			return DataTableToList(ds.Tables[0]);
103
+		}
104
+		/// <summary>
105
+		/// 获得数据列表
106
+		/// </summary>
107
+		public List<HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand> DataTableToList(DataTable dt)
108
+		{
109
+			List<HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand> modelList = new List<HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand>();
110
+			int rowsCount = dt.Rows.Count;
111
+			if (rowsCount > 0)
112
+			{
113
+				HySoft.BaseCallCenter.Model.T_Cus_CustomerExpand model;
114
+				for (int n = 0; n < rowsCount; n++)
115
+				{
116
+					model = dal.DataRowToModel(dt.Rows[n]);
117
+					if (model != null)
118
+					{
119
+						modelList.Add(model);
120
+					}
121
+				}
122
+			}
123
+			return modelList;
124
+		}
125
+
126
+		/// <summary>
127
+		/// 获得数据列表
128
+		/// </summary>
129
+		public DataSet GetAllList()
130
+		{
131
+			return GetList("");
132
+		}
133
+
134
+		/// <summary>
135
+		/// 分页获取数据列表
136
+		/// </summary>
137
+		public int GetRecordCount(string strWhere)
138
+		{
139
+			return dal.GetRecordCount(strWhere);
140
+		}
141
+		/// <summary>
142
+		/// 分页获取数据列表
143
+		/// </summary>
144
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
145
+		{
146
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
147
+		}
148
+		/// <summary>
149
+		/// 分页获取数据列表
150
+		/// </summary>
151
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
152
+		//{
153
+			//return dal.GetList(PageSize,PageIndex,strWhere);
154
+		//}
155
+
156
+		#endregion  BasicMethod
157
+		#region  ExtensionMethod
158
+
159
+		#endregion  ExtensionMethod
160
+	}
161
+}
162
+

+ 171 - 0
BaseCallCenter.BLL/T_Exp_ExtensionBase.cs

@@ -0,0 +1,171 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_Exp_ExtensionBase.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_Exp_ExtensionBase
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2015/8/3 10:27:28   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
+using HySoft.Common;
21
+using HySoft.BaseCallCenter.Model;
22
+namespace HySoft.BaseCallCenter.BLL
23
+{
24
+	/// <summary>
25
+	/// T_Exp_ExtensionBase
26
+	/// </summary>
27
+	public partial class T_Exp_ExtensionBase
28
+	{
29
+		private readonly HySoft.BaseCallCenter.DAL.T_Exp_ExtensionBase dal=new HySoft.BaseCallCenter.DAL.T_Exp_ExtensionBase();
30
+		public T_Exp_ExtensionBase()
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_ExpBaseID)
46
+		{
47
+			return dal.Exists(F_ExpBaseID);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 增加一条数据
52
+		/// </summary>
53
+		public int  Add(HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase model)
54
+		{
55
+			return dal.Add(model);
56
+		}
57
+
58
+		/// <summary>
59
+		/// 更新一条数据
60
+		/// </summary>
61
+		public bool Update(HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase model)
62
+		{
63
+			return dal.Update(model);
64
+		}
65
+
66
+		/// <summary>
67
+		/// 删除一条数据
68
+		/// </summary>
69
+		public bool Delete(int F_ExpBaseID)
70
+		{
71
+			
72
+			return dal.Delete(F_ExpBaseID);
73
+		}
74
+		/// <summary>
75
+		/// 删除一条数据
76
+		/// </summary>
77
+		public bool DeleteList(string F_ExpBaseIDlist )
78
+		{
79
+			return dal.DeleteList(F_ExpBaseIDlist );
80
+		}
81
+
82
+		/// <summary>
83
+		/// 得到一个对象实体
84
+		/// </summary>
85
+		public HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase GetModel(int F_ExpBaseID)
86
+		{
87
+			
88
+			return dal.GetModel(F_ExpBaseID);
89
+		}
90
+
91
+		/// <summary>
92
+		/// 获得数据列表
93
+		/// </summary>
94
+		public DataSet GetList(string strWhere)
95
+		{
96
+			return dal.GetList(strWhere);
97
+		}
98
+		/// <summary>
99
+		/// 获得前几行数据
100
+		/// </summary>
101
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
102
+		{
103
+			return dal.GetList(Top,strWhere,filedOrder);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public List<HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase> GetModelList(string strWhere)
109
+		{
110
+			DataSet ds = dal.GetList(strWhere);
111
+			return DataTableToList(ds.Tables[0]);
112
+		}
113
+		/// <summary>
114
+		/// 获得数据列表
115
+		/// </summary>
116
+		public List<HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase> DataTableToList(DataTable dt)
117
+		{
118
+			List<HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase> modelList = new List<HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase>();
119
+			int rowsCount = dt.Rows.Count;
120
+			if (rowsCount > 0)
121
+			{
122
+				HySoft.BaseCallCenter.Model.T_Exp_ExtensionBase model;
123
+				for (int n = 0; n < rowsCount; n++)
124
+				{
125
+					model = dal.DataRowToModel(dt.Rows[n]);
126
+					if (model != null)
127
+					{
128
+						modelList.Add(model);
129
+					}
130
+				}
131
+			}
132
+			return modelList;
133
+		}
134
+
135
+		/// <summary>
136
+		/// 获得数据列表
137
+		/// </summary>
138
+		public DataSet GetAllList()
139
+		{
140
+			return GetList("");
141
+		}
142
+
143
+		/// <summary>
144
+		/// 分页获取数据列表
145
+		/// </summary>
146
+		public int GetRecordCount(string strWhere)
147
+		{
148
+			return dal.GetRecordCount(strWhere);
149
+		}
150
+		/// <summary>
151
+		/// 分页获取数据列表
152
+		/// </summary>
153
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
154
+		{
155
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
156
+		}
157
+		/// <summary>
158
+		/// 分页获取数据列表
159
+		/// </summary>
160
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
161
+		//{
162
+			//return dal.GetList(PageSize,PageIndex,strWhere);
163
+		//}
164
+
165
+		#endregion  BasicMethod
166
+		#region  ExtensionMethod
167
+
168
+		#endregion  ExtensionMethod
169
+	}
170
+}
171
+

+ 177 - 0
BaseCallCenter.BLL/T_Fax_RecvFax.cs

@@ -0,0 +1,177 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    //T_Fax_RecvFax
10
+    public partial class T_Fax_RecvFax
11
+    {
12
+
13
+        private readonly DAL.T_Fax_RecvFax dal = new DAL.T_Fax_RecvFax();
14
+        public T_Fax_RecvFax()
15
+        { }
16
+
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int FaxID)
22
+        {
23
+            return dal.Exists(FaxID);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(Model.T_Fax_RecvFax model)
30
+        {
31
+            return dal.Add(model);
32
+
33
+        }
34
+
35
+        /// <summary>
36
+        /// 更新一条数据
37
+        /// </summary>
38
+        public bool Update(Model.T_Fax_RecvFax model)
39
+        {
40
+            return dal.Update(model);
41
+        }
42
+
43
+        /// <summary>
44
+        /// 更新查看状态
45
+        /// </summary>
46
+        /// <param name="FaxID"></param>
47
+        /// <param name="State"></param>
48
+        /// <returns></returns>
49
+        public int UpdateState(int FaxID, int State)
50
+        {
51
+            return dal.UpdateState(FaxID, State);
52
+        }
53
+        /// <summary>
54
+        /// 更新一条数据
55
+        /// </summary>
56
+        /// <param name="model"></param>
57
+        /// <returns></returns>
58
+        public int UpdateWebFilePath(Model.T_Fax_RecvFax model)
59
+        {
60
+            return dal.UpdateWebFilePath(model);
61
+        }
62
+
63
+        /// <summary>
64
+        /// 删除一条数据
65
+        /// </summary>
66
+        public bool Delete(int FaxID)
67
+        {
68
+
69
+            return dal.Delete(FaxID);
70
+        }
71
+        /// <summary>
72
+        /// 批量删除一批数据
73
+        /// </summary>
74
+        public bool DeleteList(string FaxIDlist)
75
+        {
76
+            return dal.DeleteList(FaxIDlist);
77
+        }
78
+
79
+        /// <summary>
80
+        /// 得到一个对象实体
81
+        /// </summary>
82
+        public Model.T_Fax_RecvFax GetModel(int FaxID)
83
+        {
84
+
85
+            return dal.GetModel(FaxID);
86
+        }
87
+
88
+        /// <summary>
89
+        /// 获得数据列表
90
+        /// </summary>
91
+        public DataSet GetList(string strWhere)
92
+        {
93
+            return dal.GetList(strWhere);
94
+        }
95
+        /// <summary>
96
+        /// 获得前几行数据
97
+        /// </summary>
98
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
99
+        {
100
+            return dal.GetList(Top, strWhere, filedOrder);
101
+        }
102
+        /// <summary>
103
+        /// 获得数据列表
104
+        /// </summary>
105
+        public List<Model.T_Fax_RecvFax> GetModelList(string strWhere)
106
+        {
107
+            DataSet ds = dal.GetList(strWhere);
108
+            return DataTableToList(ds.Tables[0]);
109
+        }
110
+        /// <summary>
111
+        /// 获得数据列表
112
+        /// </summary>
113
+        public List<Model.T_Fax_RecvFax> DataTableToList(DataTable dt)
114
+        {
115
+            List<Model.T_Fax_RecvFax> modelList = new List<Model.T_Fax_RecvFax>();
116
+            int rowsCount = dt.Rows.Count;
117
+            if (rowsCount > 0)
118
+            {
119
+                Model.T_Fax_RecvFax model;
120
+                for (int n = 0; n < rowsCount; n++)
121
+                {
122
+                    model = new Model.T_Fax_RecvFax();
123
+                    if (dt.Rows[n]["FaxID"].ToString() != "")
124
+                    {
125
+                        model.FaxID = int.Parse(dt.Rows[n]["FaxID"].ToString());
126
+                    }
127
+                    if (dt.Rows[n]["FileState"].ToString() != "")
128
+                    {
129
+                        model.FileState = int.Parse(dt.Rows[n]["FileState"].ToString());
130
+                    }
131
+                    if (dt.Rows[n]["State"].ToString() != "")
132
+                    {
133
+                        model.State = int.Parse(dt.Rows[n]["State"].ToString());
134
+                    }
135
+                    if (dt.Rows[n]["F_UserID"].ToString() != "")
136
+                    {
137
+                        model.F_UserID = int.Parse(dt.Rows[n]["F_UserID"].ToString());
138
+                    }
139
+                    if (dt.Rows[n]["F_CustomerID"].ToString() != "")
140
+                    {
141
+                        model.F_CustomerID = int.Parse(dt.Rows[n]["F_CustomerID"].ToString());
142
+                    }
143
+                    model.F_Name = dt.Rows[n]["F_Name"].ToString();
144
+                    model.F_FaxCode = dt.Rows[n]["F_FaxCode"].ToString();
145
+                    model.TelNum = dt.Rows[n]["TelNum"].ToString();
146
+                    model.TifFilePath = dt.Rows[n]["TifFilePath"].ToString();
147
+                    model.FilePath = dt.Rows[n]["FilePath"].ToString();
148
+                    if (dt.Rows[n]["FileSize"].ToString() != "")
149
+                    {
150
+                        model.FileSize = int.Parse(dt.Rows[n]["FileSize"].ToString());
151
+                    }
152
+                    model.FileType = dt.Rows[n]["FileType"].ToString();
153
+                    model.Remark = dt.Rows[n]["Remark"].ToString();
154
+                    if (dt.Rows[n]["RecvTime"].ToString() != "")
155
+                    {
156
+                        model.RecvTime = DateTime.Parse(dt.Rows[n]["RecvTime"].ToString());
157
+                    }
158
+                    model.Info = dt.Rows[n]["Info"].ToString();
159
+
160
+
161
+                    modelList.Add(model);
162
+                }
163
+            }
164
+            return modelList;
165
+        }
166
+
167
+        /// <summary>
168
+        /// 获得数据列表
169
+        /// </summary>
170
+        public DataSet GetAllList()
171
+        {
172
+            return GetList("");
173
+        }
174
+        #endregion
175
+
176
+    }
177
+}

+ 181 - 0
BaseCallCenter.BLL/T_Fax_SendFaxTask.cs

@@ -0,0 +1,181 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    //T_Fax_SendFaxTask
10
+    public partial class T_Fax_SendFaxTask
11
+    {
12
+
13
+        private readonly DAL.T_Fax_SendFaxTask dal = new DAL.T_Fax_SendFaxTask();
14
+        public T_Fax_SendFaxTask()
15
+        { }
16
+
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int FaxID)
22
+        {
23
+            return dal.Exists(FaxID);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(Model.T_Fax_SendFaxTask model)
30
+        {
31
+            return dal.Add(model);
32
+
33
+        }
34
+
35
+        /// <summary>
36
+        /// 更新一条数据
37
+        /// </summary>
38
+        public bool Update(Model.T_Fax_SendFaxTask model)
39
+        {
40
+            return dal.Update(model);
41
+        }
42
+
43
+        /// <summary>
44
+        /// 更新一条数据
45
+        /// </summary>
46
+        public int UpdateWebFilePath(Model.T_Fax_SendFaxTask model)
47
+        {
48
+            return dal.UpdateWebFilePath(model);
49
+        }
50
+
51
+        /// <summary>
52
+        /// 删除一条数据
53
+        /// </summary>
54
+        public bool Delete(int FaxID)
55
+        {
56
+
57
+            return dal.Delete(FaxID);
58
+        }
59
+        /// <summary>
60
+        /// 批量删除一批数据
61
+        /// </summary>
62
+        public bool DeleteList(string FaxIDlist)
63
+        {
64
+            return dal.DeleteList(FaxIDlist);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 得到一个对象实体
69
+        /// </summary>
70
+        public Model.T_Fax_SendFaxTask GetModel(int FaxID)
71
+        {
72
+
73
+            return dal.GetModel(FaxID);
74
+        }
75
+        /// <summary>
76
+        /// 获得数据列表
77
+        /// </summary>
78
+        public DataSet GetList(string strWhere)
79
+        {
80
+            return dal.GetList(strWhere);
81
+        }
82
+        /// <summary>
83
+        /// 获得前几行数据
84
+        /// </summary>
85
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
86
+        {
87
+            return dal.GetList(Top, strWhere, filedOrder);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<Model.T_Fax_SendFaxTask> GetModelList(string strWhere)
93
+        {
94
+            DataSet ds = dal.GetList(strWhere);
95
+            return DataTableToList(ds.Tables[0]);
96
+        }
97
+        /// <summary>
98
+        /// 获得数据列表
99
+        /// </summary>
100
+        public List<Model.T_Fax_SendFaxTask> DataTableToList(DataTable dt)
101
+        {
102
+            List<Model.T_Fax_SendFaxTask> modelList = new List<Model.T_Fax_SendFaxTask>();
103
+            int rowsCount = dt.Rows.Count;
104
+            if (rowsCount > 0)
105
+            {
106
+                Model.T_Fax_SendFaxTask model;
107
+                for (int n = 0; n < rowsCount; n++)
108
+                {
109
+                    model = new Model.T_Fax_SendFaxTask();
110
+                    if (dt.Rows[n]["FaxID"].ToString() != "")
111
+                    {
112
+                        model.FaxID = int.Parse(dt.Rows[n]["FaxID"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["SendTime"].ToString() != "")
115
+                    {
116
+                        model.SendTime = DateTime.Parse(dt.Rows[n]["SendTime"].ToString());
117
+                    }
118
+                    if (dt.Rows[n]["LastSentTime"].ToString() != "")
119
+                    {
120
+                        model.LastSentTime = DateTime.Parse(dt.Rows[n]["LastSentTime"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["CurSentCount"].ToString() != "")
123
+                    {
124
+                        model.CurSentCount = int.Parse(dt.Rows[n]["CurSentCount"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["MaxSendCount"].ToString() != "")
127
+                    {
128
+                        model.MaxSendCount = int.Parse(dt.Rows[n]["MaxSendCount"].ToString());
129
+                    }
130
+                    model.Info = dt.Rows[n]["Info"].ToString();
131
+                    if (dt.Rows[n]["FileState"].ToString() != "")
132
+                    {
133
+                        model.FileState = int.Parse(dt.Rows[n]["FileState"].ToString());
134
+                    }
135
+                    if (dt.Rows[n]["State"].ToString() != "")
136
+                    {
137
+                        model.State = int.Parse(dt.Rows[n]["State"].ToString());
138
+                    }
139
+                    if (dt.Rows[n]["F_UserID"].ToString() != "")
140
+                    {
141
+                        model.F_UserID = int.Parse(dt.Rows[n]["F_UserID"].ToString());
142
+                    }
143
+                    if (dt.Rows[n]["F_CustomerID"].ToString() != "")
144
+                    {
145
+                        model.F_CustomerID = int.Parse(dt.Rows[n]["F_CustomerID"].ToString());
146
+                    }
147
+                    model.F_Name = dt.Rows[n]["F_Name"].ToString();
148
+                    model.TelNum = dt.Rows[n]["TelNum"].ToString();
149
+                    model.WebFilePath = dt.Rows[n]["WebFilePath"].ToString();
150
+                    model.FileName = dt.Rows[n]["FileName"].ToString();
151
+                    model.FilePath = dt.Rows[n]["FilePath"].ToString();
152
+                    model.TifFilePath = dt.Rows[n]["TifFilePath"].ToString();
153
+                    if (dt.Rows[n]["FileSize"].ToString() != "")
154
+                    {
155
+                        model.FileSize = int.Parse(dt.Rows[n]["FileSize"].ToString());
156
+                    }
157
+                    model.FileType = dt.Rows[n]["FileType"].ToString();
158
+                    model.Remark = dt.Rows[n]["Remark"].ToString();
159
+                    if (dt.Rows[n]["CommitTime"].ToString() != "")
160
+                    {
161
+                        model.CommitTime = DateTime.Parse(dt.Rows[n]["CommitTime"].ToString());
162
+                    }
163
+
164
+
165
+                    modelList.Add(model);
166
+                }
167
+            }
168
+            return modelList;
169
+        }
170
+
171
+        /// <summary>
172
+        /// 获得数据列表
173
+        /// </summary>
174
+        public DataSet GetAllList()
175
+        {
176
+            return GetList("");
177
+        }
178
+        #endregion
179
+
180
+    }
181
+}

+ 194 - 0
BaseCallCenter.BLL/T_Fax_SentFax.cs

@@ -0,0 +1,194 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    //T_Fax_SentFax
10
+    public partial class T_Fax_SentFax
11
+    {
12
+
13
+        private readonly DAL.T_Fax_SentFax dal = new DAL.T_Fax_SentFax();
14
+        public T_Fax_SentFax()
15
+        { }
16
+
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int FaxID)
22
+        {
23
+            return dal.Exists(FaxID);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public void Add(Model.T_Fax_SentFax model)
30
+        {
31
+            dal.Add(model);
32
+
33
+        }
34
+
35
+        /// <summary>
36
+        /// 重新发送
37
+        /// </summary>
38
+        /// <param name="arrFaxID">发送的ID</param>
39
+        /// <returns></returns>
40
+        public int ReSend(string arrFaxID)
41
+        {
42
+            return dal.ReSend(arrFaxID);
43
+        }
44
+
45
+        /// <summary>
46
+        /// 更新一条数据
47
+        /// </summary>
48
+        public bool Update(Model.T_Fax_SentFax model)
49
+        {
50
+            return dal.Update(model);
51
+        }
52
+
53
+        /// <summary>
54
+        /// 更新一条数据
55
+        /// </summary>
56
+        public int UpdateWebFilePath(Model.T_Fax_SentFax model)
57
+        {
58
+            return dal.UpdateWebFilePath(model);
59
+        }
60
+
61
+        /// <summary>
62
+        /// 删除一条数据
63
+        /// </summary>
64
+        public bool Delete(int FaxID)
65
+        {
66
+
67
+            return dal.Delete(FaxID);
68
+        }
69
+
70
+        /// <summary>
71
+        /// 批量删除一批数据
72
+        /// </summary>
73
+        public bool DeleteList(string FaxIDlist)
74
+        {
75
+            return dal.DeleteList(FaxIDlist);
76
+        }
77
+
78
+        /// <summary>
79
+        /// 得到一个对象实体
80
+        /// </summary>
81
+        public Model.T_Fax_SentFax GetModel(int FaxID)
82
+        {
83
+
84
+            return dal.GetModel(FaxID);
85
+        }
86
+
87
+        /// <summary>
88
+        /// 获得数据列表
89
+        /// </summary>
90
+        public DataSet GetList(string strWhere)
91
+        {
92
+            return dal.GetList(strWhere);
93
+        }
94
+        /// <summary>
95
+        /// 获得前几行数据
96
+        /// </summary>
97
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
98
+        {
99
+            return dal.GetList(Top, strWhere, filedOrder);
100
+        }
101
+        /// <summary>
102
+        /// 获得数据列表
103
+        /// </summary>
104
+        public List<Model.T_Fax_SentFax> GetModelList(string strWhere)
105
+        {
106
+            DataSet ds = dal.GetList(strWhere);
107
+            return DataTableToList(ds.Tables[0]);
108
+        }
109
+        /// <summary>
110
+        /// 获得数据列表
111
+        /// </summary>
112
+        public List<Model.T_Fax_SentFax> DataTableToList(DataTable dt)
113
+        {
114
+            List<Model.T_Fax_SentFax> modelList = new List<Model.T_Fax_SentFax>();
115
+            int rowsCount = dt.Rows.Count;
116
+            if (rowsCount > 0)
117
+            {
118
+                Model.T_Fax_SentFax model;
119
+                for (int n = 0; n < rowsCount; n++)
120
+                {
121
+                    model = new Model.T_Fax_SentFax();
122
+                    if (dt.Rows[n]["FaxID"].ToString() != "")
123
+                    {
124
+                        model.FaxID = int.Parse(dt.Rows[n]["FaxID"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["SendTime"].ToString() != "")
127
+                    {
128
+                        model.SendTime = DateTime.Parse(dt.Rows[n]["SendTime"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["LastSentTime"].ToString() != "")
131
+                    {
132
+                        model.LastSentTime = DateTime.Parse(dt.Rows[n]["LastSentTime"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["CurSentCount"].ToString() != "")
135
+                    {
136
+                        model.CurSentCount = int.Parse(dt.Rows[n]["CurSentCount"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["MaxSendCount"].ToString() != "")
139
+                    {
140
+                        model.MaxSendCount = int.Parse(dt.Rows[n]["MaxSendCount"].ToString());
141
+                    }
142
+                    model.Info = dt.Rows[n]["Info"].ToString();
143
+                    if (dt.Rows[n]["FileState"].ToString() != "")
144
+                    {
145
+                        model.FileState = int.Parse(dt.Rows[n]["FileState"].ToString());
146
+                    }
147
+                    if (dt.Rows[n]["State"].ToString() != "")
148
+                    {
149
+                        model.State = int.Parse(dt.Rows[n]["State"].ToString());
150
+                    }
151
+                    if (dt.Rows[n]["F_UserID"].ToString() != "")
152
+                    {
153
+                        model.F_UserID = int.Parse(dt.Rows[n]["F_UserID"].ToString());
154
+                    }
155
+                    if (dt.Rows[n]["F_CustomerID"].ToString() != "")
156
+                    {
157
+                        model.F_CustomerID = int.Parse(dt.Rows[n]["F_CustomerID"].ToString());
158
+                    }
159
+                    model.F_Name = dt.Rows[n]["F_Name"].ToString();
160
+                    model.TelNum = dt.Rows[n]["TelNum"].ToString();
161
+                    model.F_FaxCode = dt.Rows[n]["F_FaxCode"].ToString();
162
+                    model.WebFilePath = dt.Rows[n]["WebFilePath"].ToString();
163
+                    model.FileName = dt.Rows[n]["FileName"].ToString();
164
+                    model.FilePath = dt.Rows[n]["FilePath"].ToString();
165
+                    model.TifFilePath = dt.Rows[n]["TifFilePath"].ToString();
166
+                    if (dt.Rows[n]["FileSize"].ToString() != "")
167
+                    {
168
+                        model.FileSize = int.Parse(dt.Rows[n]["FileSize"].ToString());
169
+                    }
170
+                    model.FileType = dt.Rows[n]["FileType"].ToString();
171
+                    model.Remark = dt.Rows[n]["Remark"].ToString();
172
+                    if (dt.Rows[n]["CommitTime"].ToString() != "")
173
+                    {
174
+                        model.CommitTime = DateTime.Parse(dt.Rows[n]["CommitTime"].ToString());
175
+                    }
176
+
177
+
178
+                    modelList.Add(model);
179
+                }
180
+            }
181
+            return modelList;
182
+        }
183
+
184
+        /// <summary>
185
+        /// 获得数据列表
186
+        /// </summary>
187
+        public DataSet GetAllList()
188
+        {
189
+            return GetList("");
190
+        }
191
+        #endregion
192
+
193
+    }
194
+}

+ 168 - 0
BaseCallCenter.BLL/T_Form_AttributeTypes.cs

@@ -0,0 +1,168 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Form_AttributeTypes
11
+    /// </summary>
12
+    public partial class T_Form_AttributeTypes
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Form_AttributeTypes dal = new HySoft.BaseCallCenter.DAL.T_Form_AttributeTypes();
15
+        public T_Form_AttributeTypes()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_TypeId)
22
+        {
23
+            return dal.Exists(F_TypeId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Form_AttributeTypes model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Form_AttributeTypes model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_TypeId)
46
+        {
47
+
48
+            return dal.Delete(F_TypeId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_TypeIdlist)
54
+        {
55
+            return dal.DeleteList(F_TypeIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Form_AttributeTypes GetModel(int F_TypeId)
62
+        {
63
+
64
+            return dal.GetModel(F_TypeId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Form_AttributeTypes> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Form_AttributeTypes> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Form_AttributeTypes> modelList = new List<HySoft.BaseCallCenter.Model.T_Form_AttributeTypes>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Form_AttributeTypes model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Form_AttributeTypes();
102
+                    if (dt.Rows[n]["F_TypeId"] != null && dt.Rows[n]["F_TypeId"].ToString() != "")
103
+                    {
104
+                        model.F_TypeId = int.Parse(dt.Rows[n]["F_TypeId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_TypeName"] != null && dt.Rows[n]["F_TypeName"].ToString() != "")
107
+                    {
108
+                        model.F_TypeName = dt.Rows[n]["F_TypeName"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_DBTypeName"] != null && dt.Rows[n]["F_DBTypeName"].ToString() != "")
111
+                    {
112
+                        model.F_DBTypeName = dt.Rows[n]["F_DBTypeName"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_XMLTypeName"] != null && dt.Rows[n]["F_XMLTypeName"].ToString() != "")
115
+                    {
116
+                        model.F_XMLTypeName = dt.Rows[n]["F_XMLTypeName"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_IsShow"] != null && dt.Rows[n]["F_IsShow"].ToString() != "")
119
+                    {
120
+                        model.F_IsShow = int.Parse(dt.Rows[n]["F_IsShow"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["F_DefaultLength"] != null && dt.Rows[n]["F_DefaultLength"].ToString() != "")
123
+                    {
124
+                        model.F_DefaultLength = int.Parse(dt.Rows[n]["F_DefaultLength"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["F_DefaultValue"] != null && dt.Rows[n]["F_DefaultValue"].ToString() != "")
127
+                    {
128
+                        model.F_DefaultValue = dt.Rows[n]["F_DefaultValue"].ToString();
129
+                    }
130
+                    modelList.Add(model);
131
+                }
132
+            }
133
+            return modelList;
134
+        }
135
+
136
+        /// <summary>
137
+        /// 获得数据列表
138
+        /// </summary>
139
+        public DataSet GetAllList()
140
+        {
141
+            return GetList("");
142
+        }
143
+
144
+        /// <summary>
145
+        /// 分页获取数据列表
146
+        /// </summary>
147
+        public int GetRecordCount(string strWhere)
148
+        {
149
+            return dal.GetRecordCount(strWhere);
150
+        }
151
+        /// <summary>
152
+        /// 分页获取数据列表
153
+        /// </summary>
154
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
155
+        {
156
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
157
+        }
158
+        /// <summary>
159
+        /// 分页获取数据列表
160
+        /// </summary>
161
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
162
+        //{
163
+        //return dal.GetList(PageSize,PageIndex,strWhere);
164
+        //}
165
+
166
+        #endregion  Method
167
+    }
168
+}

+ 345 - 0
BaseCallCenter.BLL/T_Form_EntityAttribute.cs

@@ -0,0 +1,345 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Form_EntityAttribute
11
+    /// </summary>
12
+    public partial class T_Form_EntityAttribute
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Form_EntityAttribute dal = new HySoft.BaseCallCenter.DAL.T_Form_EntityAttribute();
15
+        public T_Form_EntityAttribute()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_AttributeId)
22
+        {
23
+            return dal.Exists(F_AttributeId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Form_EntityAttribute model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Form_EntityAttribute model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_AttributeId)
46
+        {
47
+
48
+            return dal.Delete(F_AttributeId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_AttributeIdlist)
54
+        {
55
+            return dal.DeleteList(F_AttributeIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Form_EntityAttribute GetModel(int F_AttributeId)
62
+        {
63
+
64
+            return dal.GetModel(F_AttributeId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Form_EntityAttribute> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Form_EntityAttribute> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Form_EntityAttribute> modelList = new List<HySoft.BaseCallCenter.Model.T_Form_EntityAttribute>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Form_EntityAttribute model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Form_EntityAttribute();
102
+                    if (dt.Rows[n]["F_AttributeId"] != null && dt.Rows[n]["F_AttributeId"].ToString() != "")
103
+                    {
104
+                        model.F_AttributeId = int.Parse(dt.Rows[n]["F_AttributeId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_TypeId"] != null && dt.Rows[n]["F_TypeId"].ToString() != "")
107
+                    {
108
+                        model.F_TypeId = int.Parse(dt.Rows[n]["F_TypeId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_DBTypeName"] != null && dt.Rows[n]["F_DBTypeName"].ToString() != "")
111
+                    {
112
+                        model.F_DBTypeName = dt.Rows[n]["F_DBTypeName"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
115
+                    {
116
+                        model.F_Name = dt.Rows[n]["F_Name"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_DBFieldlName"] != null && dt.Rows[n]["F_DBFieldlName"].ToString() != "")
119
+                    {
120
+                        model.F_DBFieldlName = dt.Rows[n]["F_DBFieldlName"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_Length"] != null && dt.Rows[n]["F_Length"].ToString() != "")
123
+                    {
124
+                        model.F_Length = int.Parse(dt.Rows[n]["F_Length"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["F_IsNullable"] != null && dt.Rows[n]["F_IsNullable"].ToString() != "")
127
+                    {
128
+                        if ((dt.Rows[n]["F_IsNullable"].ToString() == "1") || (dt.Rows[n]["F_IsNullable"].ToString().ToLower() == "true"))
129
+                        {
130
+                            model.F_IsNullable = true;
131
+                        }
132
+                        else
133
+                        {
134
+                            model.F_IsNullable = false;
135
+                        }
136
+                    }
137
+                    if (dt.Rows[n]["F_EntityId"] != null && dt.Rows[n]["F_EntityId"].ToString() != "")
138
+                    {
139
+                        model.F_EntityId = int.Parse(dt.Rows[n]["F_EntityId"].ToString());
140
+                    }
141
+                    if (dt.Rows[n]["F_DBTableName"] != null && dt.Rows[n]["F_DBTableName"].ToString() != "")
142
+                    {
143
+                        model.F_DBTableName = dt.Rows[n]["F_DBTableName"].ToString();
144
+                    }
145
+                    if (dt.Rows[n]["F_DefaultValue"] != null && dt.Rows[n]["F_DefaultValue"].ToString() != "")
146
+                    {
147
+                        model.F_DefaultValue = dt.Rows[n]["F_DefaultValue"].ToString();
148
+                    }
149
+                    if (dt.Rows[n]["F_ColumnNumber"] != null && dt.Rows[n]["F_ColumnNumber"].ToString() != "")
150
+                    {
151
+                        model.F_ColumnNumber = int.Parse(dt.Rows[n]["F_ColumnNumber"].ToString());
152
+                    }
153
+                    if (dt.Rows[n]["F_ValidForUpdateAPI"] != null && dt.Rows[n]["F_ValidForUpdateAPI"].ToString() != "")
154
+                    {
155
+                        if ((dt.Rows[n]["F_ValidForUpdateAPI"].ToString() == "1") || (dt.Rows[n]["F_ValidForUpdateAPI"].ToString().ToLower() == "true"))
156
+                        {
157
+                            model.F_ValidForUpdateAPI = true;
158
+                        }
159
+                        else
160
+                        {
161
+                            model.F_ValidForUpdateAPI = false;
162
+                        }
163
+                    }
164
+                    if (dt.Rows[n]["F_ValidForReadAPI"] != null && dt.Rows[n]["F_ValidForReadAPI"].ToString() != "")
165
+                    {
166
+                        if ((dt.Rows[n]["F_ValidForReadAPI"].ToString() == "1") || (dt.Rows[n]["F_ValidForReadAPI"].ToString().ToLower() == "true"))
167
+                        {
168
+                            model.F_ValidForReadAPI = true;
169
+                        }
170
+                        else
171
+                        {
172
+                            model.F_ValidForReadAPI = false;
173
+                        }
174
+                    }
175
+                    if (dt.Rows[n]["F_ValidForCreateAPI"] != null && dt.Rows[n]["F_ValidForCreateAPI"].ToString() != "")
176
+                    {
177
+                        if ((dt.Rows[n]["F_ValidForCreateAPI"].ToString() == "1") || (dt.Rows[n]["F_ValidForCreateAPI"].ToString().ToLower() == "true"))
178
+                        {
179
+                            model.F_ValidForCreateAPI = true;
180
+                        }
181
+                        else
182
+                        {
183
+                            model.F_ValidForCreateAPI = false;
184
+                        }
185
+                    }
186
+                    if (dt.Rows[n]["F_VisibleToPlatform"] != null && dt.Rows[n]["F_VisibleToPlatform"].ToString() != "")
187
+                    {
188
+                        if ((dt.Rows[n]["F_VisibleToPlatform"].ToString() == "1") || (dt.Rows[n]["F_VisibleToPlatform"].ToString().ToLower() == "true"))
189
+                        {
190
+                            model.F_VisibleToPlatform = true;
191
+                        }
192
+                        else
193
+                        {
194
+                            model.F_VisibleToPlatform = false;
195
+                        }
196
+                    }
197
+                    if (dt.Rows[n]["F_IsPKAttribute"] != null && dt.Rows[n]["F_IsPKAttribute"].ToString() != "")
198
+                    {
199
+                        if ((dt.Rows[n]["F_IsPKAttribute"].ToString() == "1") || (dt.Rows[n]["F_IsPKAttribute"].ToString().ToLower() == "true"))
200
+                        {
201
+                            model.F_IsPKAttribute = true;
202
+                        }
203
+                        else
204
+                        {
205
+                            model.F_IsPKAttribute = false;
206
+                        }
207
+                    }
208
+                    if (dt.Rows[n]["F_IsCustomField"] != null && dt.Rows[n]["F_IsCustomField"].ToString() != "")
209
+                    {
210
+                        if ((dt.Rows[n]["F_IsCustomField"].ToString() == "1") || (dt.Rows[n]["F_IsCustomField"].ToString().ToLower() == "true"))
211
+                        {
212
+                            model.F_IsCustomField = true;
213
+                        }
214
+                        else
215
+                        {
216
+                            model.F_IsCustomField = false;
217
+                        }
218
+                    }
219
+                    if (dt.Rows[n]["F_DisplayMask"] != null && dt.Rows[n]["F_DisplayMask"].ToString() != "")
220
+                    {
221
+                        model.F_DisplayMask = int.Parse(dt.Rows[n]["F_DisplayMask"].ToString());
222
+                    }
223
+                    if (dt.Rows[n]["F_IsSortAttribute"] != null && dt.Rows[n]["F_IsSortAttribute"].ToString() != "")
224
+                    {
225
+                        if ((dt.Rows[n]["F_IsSortAttribute"].ToString() == "1") || (dt.Rows[n]["F_IsSortAttribute"].ToString().ToLower() == "true"))
226
+                        {
227
+                            model.F_IsSortAttribute = true;
228
+                        }
229
+                        else
230
+                        {
231
+                            model.F_IsSortAttribute = false;
232
+                        }
233
+                    }
234
+                    if (dt.Rows[n]["F_PrecisionValue"] != null && dt.Rows[n]["F_PrecisionValue"].ToString() != "")
235
+                    {
236
+                        model.F_PrecisionValue = int.Parse(dt.Rows[n]["F_PrecisionValue"].ToString());
237
+                    }
238
+                    if (dt.Rows[n]["F_IsIdentity"] != null && dt.Rows[n]["F_IsIdentity"].ToString() != "")
239
+                    {
240
+                        if ((dt.Rows[n]["F_IsIdentity"].ToString() == "1") || (dt.Rows[n]["F_IsIdentity"].ToString().ToLower() == "true"))
241
+                        {
242
+                            model.F_IsIdentity = true;
243
+                        }
244
+                        else
245
+                        {
246
+                            model.F_IsIdentity = false;
247
+                        }
248
+                    }
249
+                    if (dt.Rows[n]["F_AppDefaultValue"] != null && dt.Rows[n]["F_AppDefaultValue"].ToString() != "")
250
+                    {
251
+                        model.F_AppDefaultValue = int.Parse(dt.Rows[n]["F_AppDefaultValue"].ToString());
252
+                    }
253
+                    if (dt.Rows[n]["F_Locked"] != null && dt.Rows[n]["F_Locked"].ToString() != "")
254
+                    {
255
+                        if ((dt.Rows[n]["F_Locked"].ToString() == "1") || (dt.Rows[n]["F_Locked"].ToString().ToLower() == "true"))
256
+                        {
257
+                            model.F_Locked = true;
258
+                        }
259
+                        else
260
+                        {
261
+                            model.F_Locked = false;
262
+                        }
263
+                    }
264
+                    if (dt.Rows[n]["F_MaxLength"] != null && dt.Rows[n]["F_MaxLength"].ToString() != "")
265
+                    {
266
+                        model.F_MaxLength = int.Parse(dt.Rows[n]["F_MaxLength"].ToString());
267
+                    }
268
+                    if (dt.Rows[n]["F_MinValue"] != null && dt.Rows[n]["F_MinValue"].ToString() != "")
269
+                    {
270
+                        model.F_MinValue = decimal.Parse(dt.Rows[n]["F_MinValue"].ToString());
271
+                    }
272
+                    if (dt.Rows[n]["F_MaxValue"] != null && dt.Rows[n]["F_MaxValue"].ToString() != "")
273
+                    {
274
+                        model.F_MaxValue = decimal.Parse(dt.Rows[n]["F_MaxValue"].ToString());
275
+                    }
276
+                    if (dt.Rows[n]["F_LookupKey"] != null && dt.Rows[n]["F_LookupKey"].ToString() != "")
277
+                    {
278
+                        model.F_LookupKey = dt.Rows[n]["F_LookupKey"].ToString();
279
+                    }
280
+                    if (dt.Rows[n]["F_LookupStyle"] != null && dt.Rows[n]["F_LookupStyle"].ToString() != "")
281
+                    {
282
+                        model.F_LookupStyle = dt.Rows[n]["F_LookupStyle"].ToString();
283
+                    }
284
+                    if (dt.Rows[n]["F_IsLookup"] != null && dt.Rows[n]["F_IsLookup"].ToString() != "")
285
+                    {
286
+                        if ((dt.Rows[n]["F_IsLookup"].ToString() == "1") || (dt.Rows[n]["F_IsLookup"].ToString().ToLower() == "true"))
287
+                        {
288
+                            model.F_IsLookup = true;
289
+                        }
290
+                        else
291
+                        {
292
+                            model.F_IsLookup = false;
293
+                        }
294
+                    }
295
+                    if (dt.Rows[n]["F_Des"] != null && dt.Rows[n]["F_Des"].ToString() != "")
296
+                    {
297
+                        model.F_Des = dt.Rows[n]["F_Des"].ToString();
298
+                    }
299
+                    modelList.Add(model);
300
+                }
301
+            }
302
+            return modelList;
303
+        }
304
+
305
+        /// <summary>
306
+        /// 获得数据列表
307
+        /// </summary>
308
+        public DataSet GetAllList()
309
+        {
310
+            return GetList("");
311
+        }
312
+
313
+        /// <summary>
314
+        /// 分页获取数据列表
315
+        /// </summary>
316
+        public int GetRecordCount(string strWhere)
317
+        {
318
+            return dal.GetRecordCount(strWhere);
319
+        }
320
+        /// <summary>
321
+        /// 分页获取数据列表
322
+        /// </summary>
323
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
324
+        {
325
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
326
+        }
327
+        /// <summary>
328
+        /// 分页获取数据列表
329
+        /// </summary>
330
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
331
+        //{
332
+        //return dal.GetList(PageSize,PageIndex,strWhere);
333
+        //}
334
+
335
+        #endregion  Method
336
+
337
+        /// <summary>
338
+        /// 增加一条数据
339
+        /// </summary>
340
+        public int AddTran(Model.T_Form_EntityAttribute model)
341
+        {
342
+            return dal.AddTran(model);
343
+        }
344
+    }
345
+}

+ 192 - 0
BaseCallCenter.BLL/T_Form_EntityInfo.cs

@@ -0,0 +1,192 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Form_EntityInfo
11
+    /// </summary>
12
+    public partial class T_Form_EntityInfo
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Form_EntityInfo dal = new HySoft.BaseCallCenter.DAL.T_Form_EntityInfo();
15
+        public T_Form_EntityInfo()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_EntityId)
22
+        {
23
+            return dal.Exists(F_EntityId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Form_EntityInfo model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Form_EntityInfo model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_EntityId)
46
+        {
47
+
48
+            return dal.Delete(F_EntityId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_EntityIdlist)
54
+        {
55
+            return dal.DeleteList(F_EntityIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Form_EntityInfo GetModel(int F_EntityId)
62
+        {
63
+
64
+            return dal.GetModel(F_EntityId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Form_EntityInfo> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Form_EntityInfo> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Form_EntityInfo> modelList = new List<HySoft.BaseCallCenter.Model.T_Form_EntityInfo>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Form_EntityInfo model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Form_EntityInfo();
102
+                    if (dt.Rows[n]["F_EntityId"] != null && dt.Rows[n]["F_EntityId"].ToString() != "")
103
+                    {
104
+                        model.F_EntityId = int.Parse(dt.Rows[n]["F_EntityId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
107
+                    {
108
+                        model.F_Name = dt.Rows[n]["F_Name"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_DBTableName"] != null && dt.Rows[n]["F_DBTableName"].ToString() != "")
111
+                    {
112
+                        model.F_DBTableName = dt.Rows[n]["F_DBTableName"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_IsActivity"] != null && dt.Rows[n]["F_IsActivity"].ToString() != "")
115
+                    {
116
+                        model.F_IsActivity = int.Parse(dt.Rows[n]["F_IsActivity"].ToString());
117
+                    }
118
+                    if (dt.Rows[n]["F_Des"] != null && dt.Rows[n]["F_Des"].ToString() != "")
119
+                    {
120
+                        model.F_Des = dt.Rows[n]["F_Des"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_LinkTableName"] != null && dt.Rows[n]["F_LinkTableName"].ToString() != "")
123
+                    {
124
+                        model.F_LinkTableName = dt.Rows[n]["F_LinkTableName"].ToString();
125
+                    }
126
+                    if (dt.Rows[n]["F_LinkFieldName"] != null && dt.Rows[n]["F_LinkFieldName"].ToString() != "")
127
+                    {
128
+                        model.F_LinkFieldName = dt.Rows[n]["F_LinkFieldName"].ToString();
129
+                    }
130
+                    if (dt.Rows[n]["F_CreateSQL"] != null && dt.Rows[n]["F_CreateSQL"].ToString() != "")
131
+                    {
132
+                        model.F_CreateSQL = dt.Rows[n]["F_CreateSQL"].ToString();
133
+                    }
134
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
135
+                    {
136
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_ModifySQL"] != null && dt.Rows[n]["F_ModifySQL"].ToString() != "")
139
+                    {
140
+                        model.F_ModifySQL = dt.Rows[n]["F_ModifySQL"].ToString();
141
+                    }
142
+                    if (dt.Rows[n]["F_LastModifyOn"] != null && dt.Rows[n]["F_LastModifyOn"].ToString() != "")
143
+                    {
144
+                        model.F_LastModifyOn = DateTime.Parse(dt.Rows[n]["F_LastModifyOn"].ToString());
145
+                    }
146
+                    modelList.Add(model);
147
+                }
148
+            }
149
+            return modelList;
150
+        }
151
+
152
+        /// <summary>
153
+        /// 获得数据列表
154
+        /// </summary>
155
+        public DataSet GetAllList()
156
+        {
157
+            return GetList("");
158
+        }
159
+
160
+        /// <summary>
161
+        /// 分页获取数据列表
162
+        /// </summary>
163
+        public int GetRecordCount(string strWhere)
164
+        {
165
+            return dal.GetRecordCount(strWhere);
166
+        }
167
+        /// <summary>
168
+        /// 分页获取数据列表
169
+        /// </summary>
170
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
171
+        {
172
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
173
+        }
174
+        /// <summary>
175
+        /// 分页获取数据列表
176
+        /// </summary>
177
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
178
+        //{
179
+        //return dal.GetList(PageSize,PageIndex,strWhere);
180
+        //}
181
+
182
+        #endregion  Method
183
+
184
+        /// <summary>
185
+        /// 增加一条数据
186
+        /// </summary>
187
+        public int AddTran(Model.T_Form_EntityInfo model)
188
+        {
189
+            return dal.AddTran(model);
190
+        }
191
+    }
192
+}

+ 205 - 0
BaseCallCenter.BLL/T_Form_FormInfo.cs

@@ -0,0 +1,205 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Form_FormInfo
11
+    /// </summary>
12
+    public partial class T_Form_FormInfo
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Form_FormInfo dal = new HySoft.BaseCallCenter.DAL.T_Form_FormInfo();
15
+        public T_Form_FormInfo()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_FormId)
22
+        {
23
+            return dal.Exists(F_FormId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Form_FormInfo model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Form_FormInfo model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_FormId)
46
+        {
47
+
48
+            return dal.Delete(F_FormId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_FormIdlist)
54
+        {
55
+            return dal.DeleteList(F_FormIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Form_FormInfo GetModel(int F_FormId)
62
+        {
63
+
64
+            return dal.GetModel(F_FormId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Form_FormInfo> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Form_FormInfo> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Form_FormInfo> modelList = new List<HySoft.BaseCallCenter.Model.T_Form_FormInfo>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Form_FormInfo model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Form_FormInfo();
102
+                    if (dt.Rows[n]["F_FormId"] != null && dt.Rows[n]["F_FormId"].ToString() != "")
103
+                    {
104
+                        model.F_FormId = int.Parse(dt.Rows[n]["F_FormId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_FormName"] != null && dt.Rows[n]["F_FormName"].ToString() != "")
107
+                    {
108
+                        model.F_FormName = dt.Rows[n]["F_FormName"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_FormTable"] != null && dt.Rows[n]["F_FormTable"].ToString() != "")
111
+                    {
112
+                        model.F_FormTable = dt.Rows[n]["F_FormTable"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_FormType"] != null && dt.Rows[n]["F_FormType"].ToString() != "")
115
+                    {
116
+                        model.F_FormType = dt.Rows[n]["F_FormType"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_FormDes"] != null && dt.Rows[n]["F_FormDes"].ToString() != "")
119
+                    {
120
+                        model.F_FormDes = dt.Rows[n]["F_FormDes"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_FormUrl"] != null && dt.Rows[n]["F_FormUrl"].ToString() != "")
123
+                    {
124
+                        model.F_FormUrl = dt.Rows[n]["F_FormUrl"].ToString();
125
+                    }
126
+                    if (dt.Rows[n]["F_EntityId"] != null && dt.Rows[n]["F_EntityId"].ToString() != "")
127
+                    {
128
+                        model.F_EntityId = int.Parse(dt.Rows[n]["F_EntityId"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
131
+                    {
132
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_CreateBy"] != null && dt.Rows[n]["F_CreateBy"].ToString() != "")
135
+                    {
136
+                        model.F_CreateBy = int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_CreateName"] != null && dt.Rows[n]["F_CreateName"].ToString() != "")
139
+                    {
140
+                        model.F_CreateName = dt.Rows[n]["F_CreateName"].ToString();
141
+                    }
142
+                    if (dt.Rows[n]["F_ModifyOn"] != null && dt.Rows[n]["F_ModifyOn"].ToString() != "")
143
+                    {
144
+                        model.F_ModifyOn = DateTime.Parse(dt.Rows[n]["F_ModifyOn"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["F_ModifyBy"] != null && dt.Rows[n]["F_ModifyBy"].ToString() != "")
147
+                    {
148
+                        model.F_ModifyBy = int.Parse(dt.Rows[n]["F_ModifyBy"].ToString());
149
+                    }
150
+                    if (dt.Rows[n]["F_ModifyName"] != null && dt.Rows[n]["F_ModifyName"].ToString() != "")
151
+                    {
152
+                        model.F_ModifyName = dt.Rows[n]["F_ModifyName"].ToString();
153
+                    }
154
+                    if (dt.Rows[n]["F_DeleteFlag"] != null && dt.Rows[n]["F_DeleteFlag"].ToString() != "")
155
+                    {
156
+                        model.F_DeleteFlag = int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["F_ColumnCount"] != null && dt.Rows[n]["F_ColumnCount"].ToString() != "")
159
+                    {
160
+                        model.F_ColumnCount = int.Parse(dt.Rows[n]["F_ColumnCount"].ToString());
161
+                    }
162
+                    if (dt.Rows[n]["F_DBTableName"] != null && dt.Rows[n]["F_DBTableName"].ToString() != "")
163
+                    {
164
+                        model.F_DBTableName = dt.Rows[n]["F_DBTableName"].ToString();
165
+                    }
166
+                    modelList.Add(model);
167
+                }
168
+            }
169
+            return modelList;
170
+        }
171
+
172
+        /// <summary>
173
+        /// 获得数据列表
174
+        /// </summary>
175
+        public DataSet GetAllList()
176
+        {
177
+            return GetList("");
178
+        }
179
+
180
+        /// <summary>
181
+        /// 分页获取数据列表
182
+        /// </summary>
183
+        public int GetRecordCount(string strWhere)
184
+        {
185
+            return dal.GetRecordCount(strWhere);
186
+        }
187
+        /// <summary>
188
+        /// 分页获取数据列表
189
+        /// </summary>
190
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
191
+        {
192
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
193
+        }
194
+        /// <summary>
195
+        /// 分页获取数据列表
196
+        /// </summary>
197
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
198
+        //{
199
+        //return dal.GetList(PageSize,PageIndex,strWhere);
200
+        //}
201
+
202
+        #endregion  Method
203
+    }
204
+}
205
+

+ 201 - 0
BaseCallCenter.BLL/T_QC_IndexBase.cs

@@ -0,0 +1,201 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_QC_IndexBase
11
+    /// </summary>
12
+    public partial class T_QC_IndexBase
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_QC_IndexBase dal = new HySoft.BaseCallCenter.DAL.T_QC_IndexBase();
15
+        public T_QC_IndexBase()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_IndexId)
22
+        {
23
+            return dal.Exists(F_IndexId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_QC_IndexBase model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_QC_IndexBase model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_IndexId)
46
+        {
47
+
48
+            return dal.Delete(F_IndexId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_IndexIdlist)
54
+        {
55
+            return dal.DeleteList(F_IndexIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_QC_IndexBase GetModel(int F_IndexId)
62
+        {
63
+
64
+            return dal.GetModel(F_IndexId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_QC_IndexBase> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_QC_IndexBase> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_QC_IndexBase> modelList = new List<HySoft.BaseCallCenter.Model.T_QC_IndexBase>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_QC_IndexBase model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_QC_IndexBase();
102
+                    if (dt.Rows[n]["F_IndexId"] != null && dt.Rows[n]["F_IndexId"].ToString() != "")
103
+                    {
104
+                        model.F_IndexId = int.Parse(dt.Rows[n]["F_IndexId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_CategoryId"] != null && dt.Rows[n]["F_CategoryId"].ToString() != "")
107
+                    {
108
+                        model.F_CategoryId = int.Parse(dt.Rows[n]["F_CategoryId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_Type"] != null && dt.Rows[n]["F_Type"].ToString() != "")
111
+                    {
112
+                        model.F_Type = int.Parse(dt.Rows[n]["F_Type"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["F_Score"] != null && dt.Rows[n]["F_Score"].ToString() != "")
115
+                    {
116
+                        model.F_Score = int.Parse(dt.Rows[n]["F_Score"].ToString());
117
+                    }
118
+                    if (dt.Rows[n]["F_Title"] != null && dt.Rows[n]["F_Title"].ToString() != "")
119
+                    {
120
+                        model.F_Title = dt.Rows[n]["F_Title"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_Content"] != null && dt.Rows[n]["F_Content"].ToString() != "")
123
+                    {
124
+                        model.F_Content = dt.Rows[n]["F_Content"].ToString();
125
+                    }
126
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
127
+                    {
128
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
129
+                    }
130
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
131
+                    {
132
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_CreateBy"] != null && dt.Rows[n]["F_CreateBy"].ToString() != "")
135
+                    {
136
+                        model.F_CreateBy = int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_ModifyOn"] != null && dt.Rows[n]["F_ModifyOn"].ToString() != "")
139
+                    {
140
+                        model.F_ModifyOn = DateTime.Parse(dt.Rows[n]["F_ModifyOn"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["F_ModifyBy"] != null && dt.Rows[n]["F_ModifyBy"].ToString() != "")
143
+                    {
144
+                        model.F_ModifyBy = int.Parse(dt.Rows[n]["F_ModifyBy"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["F_DeleteFlag"] != null && dt.Rows[n]["F_DeleteFlag"].ToString() != "")
147
+                    {
148
+                        model.F_DeleteFlag = int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
149
+                    }
150
+                    if (dt.Rows[n]["F_SortModel"] != null && dt.Rows[n]["F_SortModel"].ToString() != "")
151
+                    {
152
+                        model.F_SortModel = int.Parse(dt.Rows[n]["F_SortModel"].ToString());
153
+                    }
154
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
155
+                    {
156
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["F_CategoryName"] != null && dt.Rows[n]["F_CategoryName"].ToString() != "")
159
+                    {
160
+                        model.F_CategoryName = dt.Rows[n]["F_CategoryName"].ToString();
161
+                    }
162
+                    modelList.Add(model);
163
+                }
164
+            }
165
+            return modelList;
166
+        }
167
+
168
+        /// <summary>
169
+        /// 获得数据列表
170
+        /// </summary>
171
+        public DataSet GetAllList()
172
+        {
173
+            return GetList("");
174
+        }
175
+
176
+        /// <summary>
177
+        /// 分页获取数据列表
178
+        /// </summary>
179
+        public int GetRecordCount(string strWhere)
180
+        {
181
+            return dal.GetRecordCount(strWhere);
182
+        }
183
+        /// <summary>
184
+        /// 分页获取数据列表
185
+        /// </summary>
186
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
187
+        {
188
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
189
+        }
190
+        /// <summary>
191
+        /// 分页获取数据列表
192
+        /// </summary>
193
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
194
+        //{
195
+        //return dal.GetList(PageSize,PageIndex,strWhere);
196
+        //}
197
+
198
+        #endregion  Method
199
+    }
200
+}
201
+

+ 201 - 0
BaseCallCenter.BLL/T_QC_IndexCategory.cs

@@ -0,0 +1,201 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_QC_IndexCategory
11
+    /// </summary>
12
+    public partial class T_QC_IndexCategory
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_QC_IndexCategory dal = new HySoft.BaseCallCenter.DAL.T_QC_IndexCategory();
15
+        public T_QC_IndexCategory()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_CategoryId)
22
+        {
23
+            return dal.Exists(F_CategoryId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_QC_IndexCategory model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_QC_IndexCategory model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_CategoryId)
46
+        {
47
+
48
+            return dal.Delete(F_CategoryId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_CategoryIdlist)
54
+        {
55
+            return dal.DeleteList(F_CategoryIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_QC_IndexCategory GetModel(int F_CategoryId)
62
+        {
63
+
64
+            return dal.GetModel(F_CategoryId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_QC_IndexCategory> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_QC_IndexCategory> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_QC_IndexCategory> modelList = new List<HySoft.BaseCallCenter.Model.T_QC_IndexCategory>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_QC_IndexCategory model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_QC_IndexCategory();
102
+                    if (dt.Rows[n]["F_CategoryId"] != null && dt.Rows[n]["F_CategoryId"].ToString() != "")
103
+                    {
104
+                        model.F_CategoryId = int.Parse(dt.Rows[n]["F_CategoryId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_CategoryNumber"] != null && dt.Rows[n]["F_CategoryNumber"].ToString() != "")
107
+                    {
108
+                        model.F_CategoryNumber = dt.Rows[n]["F_CategoryNumber"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_CategoryName"] != null && dt.Rows[n]["F_CategoryName"].ToString() != "")
111
+                    {
112
+                        model.F_CategoryName = dt.Rows[n]["F_CategoryName"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_CategoryEName"] != null && dt.Rows[n]["F_CategoryEName"].ToString() != "")
115
+                    {
116
+                        model.F_CategoryEName = dt.Rows[n]["F_CategoryEName"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_Layer"] != null && dt.Rows[n]["F_Layer"].ToString() != "")
119
+                    {
120
+                        model.F_Layer = int.Parse(dt.Rows[n]["F_Layer"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["F_ParentId"] != null && dt.Rows[n]["F_ParentId"].ToString() != "")
123
+                    {
124
+                        model.F_ParentId = int.Parse(dt.Rows[n]["F_ParentId"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["F_CategoryType"] != null && dt.Rows[n]["F_CategoryType"].ToString() != "")
127
+                    {
128
+                        model.F_CategoryType = int.Parse(dt.Rows[n]["F_CategoryType"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_CanDelete"] != null && dt.Rows[n]["F_CanDelete"].ToString() != "")
131
+                    {
132
+                        model.F_CanDelete = int.Parse(dt.Rows[n]["F_CanDelete"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_IsCommon"] != null && dt.Rows[n]["F_IsCommon"].ToString() != "")
135
+                    {
136
+                        model.F_IsCommon = int.Parse(dt.Rows[n]["F_IsCommon"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
139
+                    {
140
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["F_Expand1"] != null && dt.Rows[n]["F_Expand1"].ToString() != "")
143
+                    {
144
+                        model.F_Expand1 = dt.Rows[n]["F_Expand1"].ToString();
145
+                    }
146
+                    if (dt.Rows[n]["F_Expand2"] != null && dt.Rows[n]["F_Expand2"].ToString() != "")
147
+                    {
148
+                        model.F_Expand2 = dt.Rows[n]["F_Expand2"].ToString();
149
+                    }
150
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
151
+                    {
152
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
153
+                    }
154
+                    if (dt.Rows[n]["F_CreateBy"] != null && dt.Rows[n]["F_CreateBy"].ToString() != "")
155
+                    {
156
+                        model.F_CreateBy = int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["F_DeleteFlag"] != null && dt.Rows[n]["F_DeleteFlag"].ToString() != "")
159
+                    {
160
+                        model.F_DeleteFlag = int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
161
+                    }
162
+                    modelList.Add(model);
163
+                }
164
+            }
165
+            return modelList;
166
+        }
167
+
168
+        /// <summary>
169
+        /// 获得数据列表
170
+        /// </summary>
171
+        public DataSet GetAllList()
172
+        {
173
+            return GetList("");
174
+        }
175
+
176
+        /// <summary>
177
+        /// 分页获取数据列表
178
+        /// </summary>
179
+        public int GetRecordCount(string strWhere)
180
+        {
181
+            return dal.GetRecordCount(strWhere);
182
+        }
183
+        /// <summary>
184
+        /// 分页获取数据列表
185
+        /// </summary>
186
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
187
+        {
188
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
189
+        }
190
+        /// <summary>
191
+        /// 分页获取数据列表
192
+        /// </summary>
193
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
194
+        //{
195
+        //return dal.GetList(PageSize,PageIndex,strWhere);
196
+        //}
197
+
198
+        #endregion  Method
199
+    }
200
+}
201
+

+ 165 - 0
BaseCallCenter.BLL/T_QC_IndexRes.cs

@@ -0,0 +1,165 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_QC_IndexRes
11
+    /// </summary>
12
+    public partial class T_QC_IndexRes
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_QC_IndexRes dal = new HySoft.BaseCallCenter.DAL.T_QC_IndexRes();
15
+        public T_QC_IndexRes()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_QC_IndexRes model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_QC_IndexRes model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_Id)
46
+        {
47
+
48
+            return dal.Delete(F_Id);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_Idlist)
54
+        {
55
+            return dal.DeleteList(F_Idlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_QC_IndexRes GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_QC_IndexRes> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_QC_IndexRes> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_QC_IndexRes> modelList = new List<HySoft.BaseCallCenter.Model.T_QC_IndexRes>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_QC_IndexRes model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_QC_IndexRes();
102
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
103
+                    {
104
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["CallRecordsId"] != null && dt.Rows[n]["CallRecordsId"].ToString() != "")
107
+                    {
108
+                        model.CallRecordsId = int.Parse(dt.Rows[n]["CallRecordsId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_IndexId"] != null && dt.Rows[n]["F_IndexId"].ToString() != "")
111
+                    {
112
+                        model.F_IndexId = int.Parse(dt.Rows[n]["F_IndexId"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["F_Score"] != null && dt.Rows[n]["F_Score"].ToString() != "")
115
+                    {
116
+                        model.F_Score = int.Parse(dt.Rows[n]["F_Score"].ToString());
117
+                    }
118
+                    if (dt.Rows[n]["F_QCScore"] != null && dt.Rows[n]["F_QCScore"].ToString() != "")
119
+                    {
120
+                        model.F_QCScore = int.Parse(dt.Rows[n]["F_QCScore"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
123
+                    {
124
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
125
+                    }
126
+                    modelList.Add(model);
127
+                }
128
+            }
129
+            return modelList;
130
+        }
131
+
132
+        /// <summary>
133
+        /// 获得数据列表
134
+        /// </summary>
135
+        public DataSet GetAllList()
136
+        {
137
+            return GetList("");
138
+        }
139
+
140
+        /// <summary>
141
+        /// 分页获取数据列表
142
+        /// </summary>
143
+        public int GetRecordCount(string strWhere)
144
+        {
145
+            return dal.GetRecordCount(strWhere);
146
+        }
147
+        /// <summary>
148
+        /// 分页获取数据列表
149
+        /// </summary>
150
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
151
+        {
152
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
153
+        }
154
+        /// <summary>
155
+        /// 分页获取数据列表
156
+        /// </summary>
157
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
158
+        //{
159
+        //return dal.GetList(PageSize,PageIndex,strWhere);
160
+        //}
161
+
162
+        #endregion  Method
163
+    }
164
+}
165
+

+ 178 - 0
BaseCallCenter.BLL/T_RegionCategory.cs

@@ -0,0 +1,178 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_RegionCategory
11
+    /// </summary>
12
+    public partial class T_RegionCategory
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_RegionCategory dal = new HySoft.BaseCallCenter.DAL.T_RegionCategory();
15
+        public T_RegionCategory()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_RegionId)
22
+        {
23
+            return dal.Exists(F_RegionId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_RegionCategory model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_RegionCategory model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_RegionId)
46
+        {
47
+
48
+            return dal.Delete(F_RegionId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_RegionIdlist)
54
+        {
55
+            return dal.DeleteList(F_RegionIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_RegionCategory GetModel(int F_RegionId)
62
+        {
63
+
64
+            return dal.GetModel(F_RegionId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_RegionCategory> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_RegionCategory> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_RegionCategory> modelList = new List<HySoft.BaseCallCenter.Model.T_RegionCategory>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_RegionCategory model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_RegionCategory();
102
+                    if (dt.Rows[n]["F_RegionId"] != null && dt.Rows[n]["F_RegionId"].ToString() != "")
103
+                    {
104
+                        model.F_RegionId = int.Parse(dt.Rows[n]["F_RegionId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_AreaId"] != null && dt.Rows[n]["F_AreaId"].ToString() != "")
107
+                    {
108
+                        model.F_AreaId = int.Parse(dt.Rows[n]["F_AreaId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_RegionNumber"] != null && dt.Rows[n]["F_RegionNumber"].ToString() != "")
111
+                    {
112
+                        model.F_RegionNumber = dt.Rows[n]["F_RegionNumber"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_RegionName"] != null && dt.Rows[n]["F_RegionName"].ToString() != "")
115
+                    {
116
+                        model.F_RegionName = dt.Rows[n]["F_RegionName"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_RegionEName"] != null && dt.Rows[n]["F_RegionEName"].ToString() != "")
119
+                    {
120
+                        model.F_RegionEName = dt.Rows[n]["F_RegionEName"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
123
+                    {
124
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["F_Layer"] != null && dt.Rows[n]["F_Layer"].ToString() != "")
127
+                    {
128
+                        model.F_Layer = int.Parse(dt.Rows[n]["F_Layer"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_ParentId"] != null && dt.Rows[n]["F_ParentId"].ToString() != "")
131
+                    {
132
+                        model.F_ParentId = int.Parse(dt.Rows[n]["F_ParentId"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_CreateBy"] != null && dt.Rows[n]["F_CreateBy"].ToString() != "")
135
+                    {
136
+                        model.F_CreateBy = int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_CreateOn"] != null && dt.Rows[n]["F_CreateOn"].ToString() != "")
139
+                    {
140
+                        model.F_CreateOn = DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["F_ModifyBy"] != null && dt.Rows[n]["F_ModifyBy"].ToString() != "")
143
+                    {
144
+                        model.F_ModifyBy = int.Parse(dt.Rows[n]["F_ModifyBy"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["F_ModifyOn"] != null && dt.Rows[n]["F_ModifyOn"].ToString() != "")
147
+                    {
148
+                        model.F_ModifyOn = DateTime.Parse(dt.Rows[n]["F_ModifyOn"].ToString());
149
+                    }
150
+                    if (dt.Rows[n]["F_DeleteFlag"] != null && dt.Rows[n]["F_DeleteFlag"].ToString() != "")
151
+                    {
152
+                        model.F_DeleteFlag = int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
153
+                    }
154
+                    modelList.Add(model);
155
+                }
156
+            }
157
+            return modelList;
158
+        }
159
+
160
+        /// <summary>
161
+        /// 获得数据列表
162
+        /// </summary>
163
+        public DataSet GetAllList()
164
+        {
165
+            return GetList("");
166
+        }
167
+
168
+        /// <summary>
169
+        /// 分页获取数据列表
170
+        /// </summary>
171
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
172
+        //{
173
+        //return dal.GetList(PageSize,PageIndex,strWhere);
174
+        //}
175
+
176
+        #endregion  Method
177
+    }
178
+}

+ 68 - 0
BaseCallCenter.BLL/T_Report.cs

@@ -0,0 +1,68 @@
1
+using System;
2
+using System.Data;
3
+using System.Text;
4
+using System.Data.SqlClient;
5
+using HySoft.Common;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+    /// <summary>
9
+    /// 数据访问类:T_Report
10
+    /// </summary>
11
+    public partial class T_Report
12
+    {
13
+        private readonly HySoft.BaseCallCenter.DAL.T_Report dal = new HySoft.BaseCallCenter.DAL.T_Report();
14
+       
15
+        public T_Report()
16
+        { }
17
+        #region  Method
18
+
19
+
20
+        /// <summary>
21
+        ///获取坐席话务报表
22
+        /// </summary>
23
+        public DataTable GetAgentCallRecordReport(string strWhere)
24
+        {
25
+
26
+            return dal.GetAgentCallRecordReport(strWhere) ;
27
+        }
28
+
29
+        /// <summary>
30
+        ///获取坐席业务报表
31
+        /// </summary>
32
+        public DataTable GetAgentBusinessReport(string strWhere)
33
+        {
34
+           
35
+            return dal.GetAgentBusinessReport(strWhere);
36
+        }
37
+         /// <summary>
38
+        ///获取客户满意度
39
+        /// </summary>
40
+        public DataTable GetCustomerValuationReport(string strWhere)
41
+        {
42
+            return dal.GetCustomerValuationReport(strWhere);
43
+        }
44
+        /// <summary>
45
+        ///获取来电方式业务报表
46
+        /// </summary>
47
+        public DataTable GetCallInTypeReport(string strWhere)
48
+        {
49
+            return dal.GetCallInTypeReport(strWhere);
50
+        }
51
+        //GetCallCountReport
52
+        /// <summary>
53
+        ///话务量统计
54
+        /// </summary>
55
+        public DataTable GetCallCountReport(string strWhere)
56
+        {
57
+            return dal.GetCallCountReport(strWhere);
58
+        }
59
+        /// <summary>
60
+        ///话务量统计(表格形式)
61
+        /// </summary>
62
+        public DataTable GetCallCountReport1(string strWhere)
63
+        {
64
+            return dal.GetCallCountReport1(strWhere);
65
+        }
66
+        #endregion  Method
67
+    }
68
+}

+ 153 - 0
BaseCallCenter.BLL/T_RepositoryCategory.cs

@@ -0,0 +1,153 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+namespace HySoft.BaseCallCenter.BLL
5
+{
6
+	/// <summary>
7
+	/// T_RepositoryCategory
8
+	/// </summary>
9
+	public partial class T_RepositoryCategory
10
+	{
11
+		private readonly HySoft.BaseCallCenter.DAL.T_RepositoryCategory dal=new HySoft.BaseCallCenter.DAL.T_RepositoryCategory();
12
+		public T_RepositoryCategory()
13
+		{}
14
+		#region  BasicMethod
15
+
16
+		/// <summary>
17
+		/// 得到最大ID
18
+		/// </summary>
19
+		public int GetMaxId()
20
+		{
21
+			return dal.GetMaxId();
22
+		}
23
+
24
+		/// <summary>
25
+		/// 是否存在该记录
26
+		/// </summary>
27
+		public bool Exists(int F_CategoryId)
28
+		{
29
+			return dal.Exists(F_CategoryId);
30
+		}
31
+
32
+		/// <summary>
33
+		/// 增加一条数据
34
+		/// </summary>
35
+		public int  Add(HySoft.BaseCallCenter.Model.T_RepositoryCategory model)
36
+		{
37
+			return dal.Add(model);
38
+		}
39
+
40
+		/// <summary>
41
+		/// 更新一条数据
42
+		/// </summary>
43
+		public bool Update(HySoft.BaseCallCenter.Model.T_RepositoryCategory model)
44
+		{
45
+			return dal.Update(model);
46
+		}
47
+
48
+		/// <summary>
49
+		/// 删除一条数据
50
+		/// </summary>
51
+		public bool Delete(int F_CategoryId)
52
+		{
53
+			
54
+			return dal.Delete(F_CategoryId);
55
+		}
56
+		/// <summary>
57
+		/// 删除一条数据
58
+		/// </summary>
59
+		public bool DeleteList(string F_CategoryIdlist )
60
+		{
61
+			return dal.DeleteList(F_CategoryIdlist );
62
+		}
63
+
64
+		/// <summary>
65
+		/// 得到一个对象实体
66
+		/// </summary>
67
+		public HySoft.BaseCallCenter.Model.T_RepositoryCategory GetModel(int F_CategoryId)
68
+		{
69
+			
70
+			return dal.GetModel(F_CategoryId);
71
+		}
72
+
73
+		/// <summary>
74
+		/// 获得数据列表
75
+		/// </summary>
76
+		public DataSet GetList(string strWhere)
77
+		{
78
+			return dal.GetList(strWhere);
79
+		}
80
+		/// <summary>
81
+		/// 获得前几行数据
82
+		/// </summary>
83
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
84
+		{
85
+			return dal.GetList(Top,strWhere,filedOrder);
86
+		}
87
+		/// <summary>
88
+		/// 获得数据列表
89
+		/// </summary>
90
+		public List<HySoft.BaseCallCenter.Model.T_RepositoryCategory> GetModelList(string strWhere)
91
+		{
92
+			DataSet ds = dal.GetList(strWhere);
93
+			return DataTableToList(ds.Tables[0]);
94
+		}
95
+		/// <summary>
96
+		/// 获得数据列表
97
+		/// </summary>
98
+		public List<HySoft.BaseCallCenter.Model.T_RepositoryCategory> DataTableToList(DataTable dt)
99
+		{
100
+			List<HySoft.BaseCallCenter.Model.T_RepositoryCategory> modelList = new List<HySoft.BaseCallCenter.Model.T_RepositoryCategory>();
101
+			int rowsCount = dt.Rows.Count;
102
+			if (rowsCount > 0)
103
+			{
104
+				HySoft.BaseCallCenter.Model.T_RepositoryCategory model;
105
+				for (int n = 0; n < rowsCount; n++)
106
+				{
107
+					model = dal.DataRowToModel(dt.Rows[n]);
108
+					if (model != null)
109
+					{
110
+						modelList.Add(model);
111
+					}
112
+				}
113
+			}
114
+			return modelList;
115
+		}
116
+
117
+		/// <summary>
118
+		/// 获得数据列表
119
+		/// </summary>
120
+		public DataSet GetAllList()
121
+		{
122
+			return GetList("");
123
+		}
124
+
125
+		/// <summary>
126
+		/// 分页获取数据列表
127
+		/// </summary>
128
+		public int GetRecordCount(string strWhere)
129
+		{
130
+			return dal.GetRecordCount(strWhere);
131
+		}
132
+		/// <summary>
133
+		/// 分页获取数据列表
134
+		/// </summary>
135
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
136
+		{
137
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
138
+		}
139
+		/// <summary>
140
+		/// 分页获取数据列表
141
+		/// </summary>
142
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
143
+		//{
144
+			//return dal.GetList(PageSize,PageIndex,strWhere);
145
+		//}
146
+
147
+		#endregion  BasicMethod
148
+		#region  ExtensionMethod
149
+
150
+		#endregion  ExtensionMethod
151
+	}
152
+}
153
+

+ 154 - 0
BaseCallCenter.BLL/T_RepositoryInformation.cs

@@ -0,0 +1,154 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.BaseCallCenter.Model;
5
+namespace HySoft.BaseCallCenter.BLL
6
+{
7
+	/// <summary>
8
+	/// T_RepositoryInformation
9
+	/// </summary>
10
+	public partial class T_RepositoryInformation
11
+	{
12
+		private readonly HySoft.BaseCallCenter.DAL.T_RepositoryInformation dal=new HySoft.BaseCallCenter.DAL.T_RepositoryInformation();
13
+		public T_RepositoryInformation()
14
+		{}
15
+		#region  BasicMethod
16
+
17
+		/// <summary>
18
+		/// 得到最大ID
19
+		/// </summary>
20
+		public int GetMaxId()
21
+		{
22
+			return dal.GetMaxId();
23
+		}
24
+
25
+		/// <summary>
26
+		/// 是否存在该记录
27
+		/// </summary>
28
+		public bool Exists(int F_RepositoryId)
29
+		{
30
+			return dal.Exists(F_RepositoryId);
31
+		}
32
+
33
+		/// <summary>
34
+		/// 增加一条数据
35
+		/// </summary>
36
+		public int  Add(HySoft.BaseCallCenter.Model.T_RepositoryInformation model)
37
+		{
38
+			return dal.Add(model);
39
+		}
40
+
41
+		/// <summary>
42
+		/// 更新一条数据
43
+		/// </summary>
44
+		public bool Update(HySoft.BaseCallCenter.Model.T_RepositoryInformation model)
45
+		{
46
+			return dal.Update(model);
47
+		}
48
+
49
+		/// <summary>
50
+		/// 删除一条数据
51
+		/// </summary>
52
+		public bool Delete(int F_RepositoryId)
53
+		{
54
+			
55
+			return dal.Delete(F_RepositoryId);
56
+		}
57
+		/// <summary>
58
+		/// 删除一条数据
59
+		/// </summary>
60
+		public bool DeleteList(string F_RepositoryIdlist )
61
+		{
62
+			return dal.DeleteList(F_RepositoryIdlist );
63
+		}
64
+
65
+		/// <summary>
66
+		/// 得到一个对象实体
67
+		/// </summary>
68
+		public HySoft.BaseCallCenter.Model.T_RepositoryInformation GetModel(int F_RepositoryId)
69
+		{
70
+			
71
+			return dal.GetModel(F_RepositoryId);
72
+		}
73
+
74
+		/// <summary>
75
+		/// 获得数据列表
76
+		/// </summary>
77
+		public DataSet GetList(string strWhere)
78
+		{
79
+			return dal.GetList(strWhere);
80
+		}
81
+		/// <summary>
82
+		/// 获得前几行数据
83
+		/// </summary>
84
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
85
+		{
86
+			return dal.GetList(Top,strWhere,filedOrder);
87
+		}
88
+		/// <summary>
89
+		/// 获得数据列表
90
+		/// </summary>
91
+		public List<HySoft.BaseCallCenter.Model.T_RepositoryInformation> GetModelList(string strWhere)
92
+		{
93
+			DataSet ds = dal.GetList(strWhere);
94
+			return DataTableToList(ds.Tables[0]);
95
+		}
96
+		/// <summary>
97
+		/// 获得数据列表
98
+		/// </summary>
99
+		public List<HySoft.BaseCallCenter.Model.T_RepositoryInformation> DataTableToList(DataTable dt)
100
+		{
101
+			List<HySoft.BaseCallCenter.Model.T_RepositoryInformation> modelList = new List<HySoft.BaseCallCenter.Model.T_RepositoryInformation>();
102
+			int rowsCount = dt.Rows.Count;
103
+			if (rowsCount > 0)
104
+			{
105
+				HySoft.BaseCallCenter.Model.T_RepositoryInformation model;
106
+				for (int n = 0; n < rowsCount; n++)
107
+				{
108
+					model = dal.DataRowToModel(dt.Rows[n]);
109
+					if (model != null)
110
+					{
111
+						modelList.Add(model);
112
+					}
113
+				}
114
+			}
115
+			return modelList;
116
+		}
117
+
118
+		/// <summary>
119
+		/// 获得数据列表
120
+		/// </summary>
121
+		public DataSet GetAllList()
122
+		{
123
+			return GetList("");
124
+		}
125
+
126
+		/// <summary>
127
+		/// 分页获取数据列表
128
+		/// </summary>
129
+		public int GetRecordCount(string strWhere)
130
+		{
131
+			return dal.GetRecordCount(strWhere);
132
+		}
133
+		/// <summary>
134
+		/// 分页获取数据列表
135
+		/// </summary>
136
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
137
+		{
138
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
139
+		}
140
+		/// <summary>
141
+		/// 分页获取数据列表
142
+		/// </summary>
143
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
144
+		//{
145
+			//return dal.GetList(PageSize,PageIndex,strWhere);
146
+		//}
147
+
148
+		#endregion  BasicMethod
149
+		#region  ExtensionMethod
150
+
151
+		#endregion  ExtensionMethod
152
+	}
153
+}
154
+

+ 170 - 0
BaseCallCenter.BLL/T_SMS_RecvSMS.cs

@@ -0,0 +1,170 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_SMS_RecvSMS
10
+	/// </summary>
11
+	public partial class T_SMS_RecvSMS
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_SMS_RecvSMS dal=new HySoft.BaseCallCenter.DAL.T_SMS_RecvSMS();
14
+		public T_SMS_RecvSMS()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int SMSID)
30
+		{
31
+			return dal.Exists(SMSID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(HySoft.BaseCallCenter.Model.T_SMS_RecvSMS model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_SMS_RecvSMS model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int SMSID)
54
+		{
55
+			
56
+			return dal.Delete(SMSID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string SMSIDlist )
62
+		{
63
+			return dal.DeleteList(SMSIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_SMS_RecvSMS GetModel(int SMSID)
70
+		{
71
+			
72
+			return dal.GetModel(SMSID);
73
+		}
74
+		/// <summary>
75
+		/// 获得数据列表
76
+		/// </summary>
77
+		public DataSet GetList(string strWhere)
78
+		{
79
+			return dal.GetList(strWhere);
80
+		}
81
+		/// <summary>
82
+		/// 获得前几行数据
83
+		/// </summary>
84
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
85
+		{
86
+			return dal.GetList(Top,strWhere,filedOrder);
87
+		}
88
+		/// <summary>
89
+		/// 获得数据列表
90
+		/// </summary>
91
+		public List<HySoft.BaseCallCenter.Model.T_SMS_RecvSMS> GetModelList(string strWhere)
92
+		{
93
+			DataSet ds = dal.GetList(strWhere);
94
+			return DataTableToList(ds.Tables[0]);
95
+		}
96
+		/// <summary>
97
+		/// 获得数据列表
98
+		/// </summary>
99
+		public List<HySoft.BaseCallCenter.Model.T_SMS_RecvSMS> DataTableToList(DataTable dt)
100
+		{
101
+			List<HySoft.BaseCallCenter.Model.T_SMS_RecvSMS> modelList = new List<HySoft.BaseCallCenter.Model.T_SMS_RecvSMS>();
102
+			int rowsCount = dt.Rows.Count;
103
+			if (rowsCount > 0)
104
+			{
105
+				HySoft.BaseCallCenter.Model.T_SMS_RecvSMS model;
106
+				for (int n = 0; n < rowsCount; n++)
107
+				{
108
+					model = new HySoft.BaseCallCenter.Model.T_SMS_RecvSMS();
109
+					if(dt.Rows[n]["SMSID"]!=null && dt.Rows[n]["SMSID"].ToString()!="")
110
+					{
111
+						model.SMSID=int.Parse(dt.Rows[n]["SMSID"].ToString());
112
+					}
113
+					if(dt.Rows[n]["CallerNum"]!=null && dt.Rows[n]["CallerNum"].ToString()!="")
114
+					{
115
+					model.CallerNum=dt.Rows[n]["CallerNum"].ToString();
116
+					}
117
+					if(dt.Rows[n]["Content"]!=null && dt.Rows[n]["Content"].ToString()!="")
118
+					{
119
+					model.Content=dt.Rows[n]["Content"].ToString();
120
+					}
121
+					if(dt.Rows[n]["RecvTime"]!=null && dt.Rows[n]["RecvTime"].ToString()!="")
122
+					{
123
+						model.RecvTime=DateTime.Parse(dt.Rows[n]["RecvTime"].ToString());
124
+					}
125
+					if(dt.Rows[n]["RecvModemIMEI"]!=null && dt.Rows[n]["RecvModemIMEI"].ToString()!="")
126
+					{
127
+					model.RecvModemIMEI=dt.Rows[n]["RecvModemIMEI"].ToString();
128
+					}
129
+					if(dt.Rows[n]["F_UserID"]!=null && dt.Rows[n]["F_UserID"].ToString()!="")
130
+					{
131
+						model.F_UserID=int.Parse(dt.Rows[n]["F_UserID"].ToString());
132
+					}
133
+					if(dt.Rows[n]["F_CustomerID"]!=null && dt.Rows[n]["F_CustomerID"].ToString()!="")
134
+					{
135
+						model.F_CustomerID=int.Parse(dt.Rows[n]["F_CustomerID"].ToString());
136
+					}
137
+					if(dt.Rows[n]["F_Name"]!=null && dt.Rows[n]["F_Name"].ToString()!="")
138
+					{
139
+					model.F_Name=dt.Rows[n]["F_Name"].ToString();
140
+					}
141
+					if(dt.Rows[n]["State"]!=null && dt.Rows[n]["State"].ToString()!="")
142
+					{
143
+						model.State=int.Parse(dt.Rows[n]["State"].ToString());
144
+					}
145
+					modelList.Add(model);
146
+				}
147
+			}
148
+			return modelList;
149
+		}
150
+
151
+		/// <summary>
152
+		/// 获得数据列表
153
+		/// </summary>
154
+		public DataSet GetAllList()
155
+		{
156
+			return GetList("");
157
+		}
158
+
159
+		/// <summary>
160
+		/// 分页获取数据列表
161
+		/// </summary>
162
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
163
+		//{
164
+			//return dal.GetList(PageSize,PageIndex,strWhere);
165
+		//}
166
+
167
+		#endregion  Method
168
+	}
169
+}
170
+

+ 188 - 0
BaseCallCenter.BLL/T_SMS_SendSMSTask.cs

@@ -0,0 +1,188 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_SMS_SendSMSTask
10
+	/// </summary>
11
+	public partial class T_SMS_SendSMSTask
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_SMS_SendSMSTask dal=new HySoft.BaseCallCenter.DAL.T_SMS_SendSMSTask();
14
+		public T_SMS_SendSMSTask()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int SMSID)
30
+		{
31
+			return dal.Exists(SMSID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int SMSID)
54
+		{
55
+			
56
+			return dal.Delete(SMSID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string SMSIDlist )
62
+		{
63
+			return dal.DeleteList(SMSIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask GetModel(int SMSID)
70
+		{
71
+			
72
+			return dal.GetModel(SMSID);
73
+		}
74
+
75
+	
76
+		/// <summary>
77
+		/// 获得数据列表
78
+		/// </summary>
79
+		public DataSet GetList(string strWhere)
80
+		{
81
+			return dal.GetList(strWhere);
82
+		}
83
+		/// <summary>
84
+		/// 获得前几行数据
85
+		/// </summary>
86
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
87
+		{
88
+			return dal.GetList(Top,strWhere,filedOrder);
89
+		}
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+		public List<HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask> GetModelList(string strWhere)
94
+		{
95
+			DataSet ds = dal.GetList(strWhere);
96
+			return DataTableToList(ds.Tables[0]);
97
+		}
98
+		/// <summary>
99
+		/// 获得数据列表
100
+		/// </summary>
101
+		public List<HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask> DataTableToList(DataTable dt)
102
+		{
103
+			List<HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask> modelList = new List<HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+				HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+					model = new HySoft.BaseCallCenter.Model.T_SMS_SendSMSTask();
111
+					if(dt.Rows[n]["SMSID"]!=null && dt.Rows[n]["SMSID"].ToString()!="")
112
+					{
113
+						model.SMSID=int.Parse(dt.Rows[n]["SMSID"].ToString());
114
+					}
115
+					if(dt.Rows[n]["TelNum"]!=null && dt.Rows[n]["TelNum"].ToString()!="")
116
+					{
117
+					model.TelNum=dt.Rows[n]["TelNum"].ToString();
118
+					}
119
+					if(dt.Rows[n]["Content"]!=null && dt.Rows[n]["Content"].ToString()!="")
120
+					{
121
+					model.Content=dt.Rows[n]["Content"].ToString();
122
+					}
123
+					if(dt.Rows[n]["CommitTime"]!=null && dt.Rows[n]["CommitTime"].ToString()!="")
124
+					{
125
+						model.CommitTime=DateTime.Parse(dt.Rows[n]["CommitTime"].ToString());
126
+					}
127
+					if(dt.Rows[n]["State"]!=null && dt.Rows[n]["State"].ToString()!="")
128
+					{
129
+						model.State=int.Parse(dt.Rows[n]["State"].ToString());
130
+					}
131
+					if(dt.Rows[n]["SendTime"]!=null && dt.Rows[n]["SendTime"].ToString()!="")
132
+					{
133
+						model.SendTime=DateTime.Parse(dt.Rows[n]["SendTime"].ToString());
134
+					}
135
+					if(dt.Rows[n]["LastSentTime"]!=null && dt.Rows[n]["LastSentTime"].ToString()!="")
136
+					{
137
+						model.LastSentTime=DateTime.Parse(dt.Rows[n]["LastSentTime"].ToString());
138
+					}
139
+					if(dt.Rows[n]["CurSentCount"]!=null && dt.Rows[n]["CurSentCount"].ToString()!="")
140
+					{
141
+						model.CurSentCount=int.Parse(dt.Rows[n]["CurSentCount"].ToString());
142
+					}
143
+					if(dt.Rows[n]["MaxSendCount"]!=null && dt.Rows[n]["MaxSendCount"].ToString()!="")
144
+					{
145
+						model.MaxSendCount=int.Parse(dt.Rows[n]["MaxSendCount"].ToString());
146
+					}
147
+					if(dt.Rows[n]["Info"]!=null && dt.Rows[n]["Info"].ToString()!="")
148
+					{
149
+					model.Info=dt.Rows[n]["Info"].ToString();
150
+					}
151
+					if(dt.Rows[n]["F_UserID"]!=null && dt.Rows[n]["F_UserID"].ToString()!="")
152
+					{
153
+						model.F_UserID=int.Parse(dt.Rows[n]["F_UserID"].ToString());
154
+					}
155
+					if(dt.Rows[n]["F_CustomerID"]!=null && dt.Rows[n]["F_CustomerID"].ToString()!="")
156
+					{
157
+						model.F_CustomerID=int.Parse(dt.Rows[n]["F_CustomerID"].ToString());
158
+					}
159
+					if(dt.Rows[n]["F_Name"]!=null && dt.Rows[n]["F_Name"].ToString()!="")
160
+					{
161
+					model.F_Name=dt.Rows[n]["F_Name"].ToString();
162
+					}
163
+					modelList.Add(model);
164
+				}
165
+			}
166
+			return modelList;
167
+		}
168
+
169
+		/// <summary>
170
+		/// 获得数据列表
171
+		/// </summary>
172
+		public DataSet GetAllList()
173
+		{
174
+			return GetList("");
175
+		}
176
+
177
+		/// <summary>
178
+		/// 分页获取数据列表
179
+		/// </summary>
180
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
181
+		//{
182
+			//return dal.GetList(PageSize,PageIndex,strWhere);
183
+		//}
184
+
185
+		#endregion  Method
186
+	}
187
+}
188
+

+ 192 - 0
BaseCallCenter.BLL/T_SMS_SentSMS.cs

@@ -0,0 +1,192 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_SMS_SentSMS
10
+	/// </summary>
11
+	public partial class T_SMS_SentSMS
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_SMS_SentSMS dal=new HySoft.BaseCallCenter.DAL.T_SMS_SentSMS();
14
+		public T_SMS_SentSMS()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int SMSID)
30
+		{
31
+			return dal.Exists(SMSID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(HySoft.BaseCallCenter.Model.T_SMS_SentSMS model)
38
+		{
39
+		return	dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_SMS_SentSMS model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int SMSID)
54
+		{
55
+			
56
+			return dal.Delete(SMSID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string SMSIDlist )
62
+		{
63
+			return dal.DeleteList(SMSIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_SMS_SentSMS GetModel(int SMSID)
70
+		{
71
+			
72
+			return dal.GetModel(SMSID);
73
+		}
74
+
75
+	
76
+		/// <summary>
77
+		/// 获得数据列表
78
+		/// </summary>
79
+		public DataSet GetList(string strWhere)
80
+		{
81
+			return dal.GetList(strWhere);
82
+		}
83
+		/// <summary>
84
+		/// 获得前几行数据
85
+		/// </summary>
86
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
87
+		{
88
+			return dal.GetList(Top,strWhere,filedOrder);
89
+		}
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+		public List<HySoft.BaseCallCenter.Model.T_SMS_SentSMS> GetModelList(string strWhere)
94
+		{
95
+			DataSet ds = dal.GetList(strWhere);
96
+			return DataTableToList(ds.Tables[0]);
97
+		}
98
+		/// <summary>
99
+		/// 获得数据列表
100
+		/// </summary>
101
+		public List<HySoft.BaseCallCenter.Model.T_SMS_SentSMS> DataTableToList(DataTable dt)
102
+		{
103
+			List<HySoft.BaseCallCenter.Model.T_SMS_SentSMS> modelList = new List<HySoft.BaseCallCenter.Model.T_SMS_SentSMS>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+				HySoft.BaseCallCenter.Model.T_SMS_SentSMS model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+					model = new HySoft.BaseCallCenter.Model.T_SMS_SentSMS();
111
+					if(dt.Rows[n]["SMSID"]!=null && dt.Rows[n]["SMSID"].ToString()!="")
112
+					{
113
+						model.SMSID=int.Parse(dt.Rows[n]["SMSID"].ToString());
114
+					}
115
+					if(dt.Rows[n]["TelNum"]!=null && dt.Rows[n]["TelNum"].ToString()!="")
116
+					{
117
+					model.TelNum=dt.Rows[n]["TelNum"].ToString();
118
+					}
119
+					if(dt.Rows[n]["Content"]!=null && dt.Rows[n]["Content"].ToString()!="")
120
+					{
121
+					model.Content=dt.Rows[n]["Content"].ToString();
122
+					}
123
+					if(dt.Rows[n]["CommitTime"]!=null && dt.Rows[n]["CommitTime"].ToString()!="")
124
+					{
125
+						model.CommitTime=DateTime.Parse(dt.Rows[n]["CommitTime"].ToString());
126
+					}
127
+					if(dt.Rows[n]["State"]!=null && dt.Rows[n]["State"].ToString()!="")
128
+					{
129
+						model.State=int.Parse(dt.Rows[n]["State"].ToString());
130
+					}
131
+					if(dt.Rows[n]["SendTime"]!=null && dt.Rows[n]["SendTime"].ToString()!="")
132
+					{
133
+						model.SendTime=DateTime.Parse(dt.Rows[n]["SendTime"].ToString());
134
+					}
135
+					if(dt.Rows[n]["LastSentTime"]!=null && dt.Rows[n]["LastSentTime"].ToString()!="")
136
+					{
137
+						model.LastSentTime=DateTime.Parse(dt.Rows[n]["LastSentTime"].ToString());
138
+					}
139
+					if(dt.Rows[n]["MaxSendCount"]!=null && dt.Rows[n]["MaxSendCount"].ToString()!="")
140
+					{
141
+						model.MaxSendCount=int.Parse(dt.Rows[n]["MaxSendCount"].ToString());
142
+					}
143
+					if(dt.Rows[n]["CurSentCount"]!=null && dt.Rows[n]["CurSentCount"].ToString()!="")
144
+					{
145
+						model.CurSentCount=int.Parse(dt.Rows[n]["CurSentCount"].ToString());
146
+					}
147
+					if(dt.Rows[n]["Info"]!=null && dt.Rows[n]["Info"].ToString()!="")
148
+					{
149
+					model.Info=dt.Rows[n]["Info"].ToString();
150
+					}
151
+					if(dt.Rows[n]["SendModemIMEI"]!=null && dt.Rows[n]["SendModemIMEI"].ToString()!="")
152
+					{
153
+					model.SendModemIMEI=dt.Rows[n]["SendModemIMEI"].ToString();
154
+					}
155
+					if(dt.Rows[n]["F_UserID"]!=null && dt.Rows[n]["F_UserID"].ToString()!="")
156
+					{
157
+						model.F_UserID=int.Parse(dt.Rows[n]["F_UserID"].ToString());
158
+					}
159
+					if(dt.Rows[n]["F_CustomerID"]!=null && dt.Rows[n]["F_CustomerID"].ToString()!="")
160
+					{
161
+						model.F_CustomerID=int.Parse(dt.Rows[n]["F_CustomerID"].ToString());
162
+					}
163
+					if(dt.Rows[n]["F_Name"]!=null && dt.Rows[n]["F_Name"].ToString()!="")
164
+					{
165
+					model.F_Name=dt.Rows[n]["F_Name"].ToString();
166
+					}
167
+					modelList.Add(model);
168
+				}
169
+			}
170
+			return modelList;
171
+		}
172
+
173
+		/// <summary>
174
+		/// 获得数据列表
175
+		/// </summary>
176
+		public DataSet GetAllList()
177
+		{
178
+			return GetList("");
179
+		}
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  Method
190
+	}
191
+}
192
+

+ 176 - 0
BaseCallCenter.BLL/T_Sms_SmsModel.cs

@@ -0,0 +1,176 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Sms_SmsModel
10
+	/// </summary>
11
+	public partial class T_Sms_SmsModel
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Sms_SmsModel dal=new HySoft.BaseCallCenter.DAL.T_Sms_SmsModel();
14
+		public T_Sms_SmsModel()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int ModelId)
30
+		{
31
+			return dal.Exists(ModelId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(HySoft.BaseCallCenter.Model.T_Sms_SmsModel model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_Sms_SmsModel model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int ModelId)
54
+		{
55
+			
56
+			return dal.Delete(ModelId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string ModelIdlist )
62
+		{
63
+			return dal.DeleteList(ModelIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_Sms_SmsModel GetModel(int ModelId)
70
+		{
71
+			
72
+			return dal.GetModel(ModelId);
73
+		}
74
+
75
+
76
+		/// <summary>
77
+		/// 获得数据列表
78
+		/// </summary>
79
+		public DataSet GetList(string strWhere)
80
+		{
81
+			return dal.GetList(strWhere);
82
+		}
83
+		/// <summary>
84
+		/// 获得前几行数据
85
+		/// </summary>
86
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
87
+		{
88
+			return dal.GetList(Top,strWhere,filedOrder);
89
+		}
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+		public List<HySoft.BaseCallCenter.Model.T_Sms_SmsModel> GetModelList(string strWhere)
94
+		{
95
+			DataSet ds = dal.GetList(strWhere);
96
+			return DataTableToList(ds.Tables[0]);
97
+		}
98
+		/// <summary>
99
+		/// 获得数据列表
100
+		/// </summary>
101
+		public List<HySoft.BaseCallCenter.Model.T_Sms_SmsModel> DataTableToList(DataTable dt)
102
+		{
103
+			List<HySoft.BaseCallCenter.Model.T_Sms_SmsModel> modelList = new List<HySoft.BaseCallCenter.Model.T_Sms_SmsModel>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+				HySoft.BaseCallCenter.Model.T_Sms_SmsModel model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+					model = new HySoft.BaseCallCenter.Model.T_Sms_SmsModel();
111
+					if(dt.Rows[n]["ModelId"]!=null && dt.Rows[n]["ModelId"].ToString()!="")
112
+					{
113
+						model.ModelId=int.Parse(dt.Rows[n]["ModelId"].ToString());
114
+					}
115
+					if(dt.Rows[n]["Name"]!=null && dt.Rows[n]["Name"].ToString()!="")
116
+					{
117
+					model.Name=dt.Rows[n]["Name"].ToString();
118
+					}
119
+					if(dt.Rows[n]["Contents"]!=null && dt.Rows[n]["Contents"].ToString()!="")
120
+					{
121
+					model.Contents=dt.Rows[n]["Contents"].ToString();
122
+					}
123
+					if(dt.Rows[n]["AddPeople"]!=null && dt.Rows[n]["AddPeople"].ToString()!="")
124
+					{
125
+					model.AddPeople=dt.Rows[n]["AddPeople"].ToString();
126
+					}
127
+					if(dt.Rows[n]["AddTime"]!=null && dt.Rows[n]["AddTime"].ToString()!="")
128
+					{
129
+						model.AddTime=DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
130
+					}
131
+					if(dt.Rows[n]["TypeId"]!=null && dt.Rows[n]["TypeId"].ToString()!="")
132
+					{
133
+						model.TypeId=int.Parse(dt.Rows[n]["TypeId"].ToString());
134
+					}
135
+					if(dt.Rows[n]["EditPeople"]!=null && dt.Rows[n]["EditPeople"].ToString()!="")
136
+					{
137
+					model.EditPeople=dt.Rows[n]["EditPeople"].ToString();
138
+					}
139
+					if(dt.Rows[n]["EditTime"]!=null && dt.Rows[n]["EditTime"].ToString()!="")
140
+					{
141
+						model.EditTime=DateTime.Parse(dt.Rows[n]["EditTime"].ToString());
142
+					}
143
+					if(dt.Rows[n]["State"]!=null && dt.Rows[n]["State"].ToString()!="")
144
+					{
145
+					model.State=dt.Rows[n]["State"].ToString();
146
+					}
147
+                    if (dt.Rows[n]["Remark"] != null && dt.Rows[n]["Remark"].ToString() != "")
148
+                    {
149
+                        model.Remark = dt.Rows[n]["Remark"].ToString();
150
+                    }
151
+					modelList.Add(model);
152
+				}
153
+			}
154
+			return modelList;
155
+		}
156
+
157
+		/// <summary>
158
+		/// 获得数据列表
159
+		/// </summary>
160
+		public DataSet GetAllList()
161
+		{
162
+			return GetList("");
163
+		}
164
+
165
+		/// <summary>
166
+		/// 分页获取数据列表
167
+		/// </summary>
168
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
169
+		//{
170
+			//return dal.GetList(PageSize,PageIndex,strWhere);
171
+		//}
172
+
173
+		#endregion  Method
174
+	}
175
+}
176
+

+ 142 - 0
BaseCallCenter.BLL/T_Sys_CallOptLogs.cs

@@ -0,0 +1,142 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_CallOptLogs
11
+    /// </summary>
12
+    public partial class T_Sys_CallOptLogs
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_CallOptLogs dal = new HySoft.BaseCallCenter.DAL.T_Sys_CallOptLogs();
15
+        public T_Sys_CallOptLogs()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_Id)
46
+        {
47
+
48
+            return dal.Delete(F_Id);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_Idlist)
54
+        {
55
+            return dal.DeleteList(F_Idlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_CallOptLogs model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+
141
+
142
+}

+ 143 - 0
BaseCallCenter.BLL/T_Sys_Department.cs

@@ -0,0 +1,143 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_Department
11
+    /// </summary>
12
+    public partial class T_Sys_Department
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_Department dal = new HySoft.BaseCallCenter.DAL.T_Sys_Department();
15
+        public T_Sys_Department()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_DeptId)
22
+        {
23
+            return dal.Exists(F_DeptId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_Department model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_Department model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_DeptId)
46
+        {
47
+
48
+            return dal.Delete(F_DeptId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_DeptIdlist)
54
+        {
55
+            return dal.DeleteList(F_DeptIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_Department GetModel(int F_DeptId)
62
+        {
63
+
64
+            return dal.GetModel(F_DeptId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_Department> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_Department> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_Department> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_Department>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_Department model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+
141
+
142
+
143
+}

+ 143 - 0
BaseCallCenter.BLL/T_Sys_DictionaryBase.cs

@@ -0,0 +1,143 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_DictionaryBase
11
+    /// </summary>
12
+    public partial class T_Sys_DictionaryBase
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_DictionaryBase dal = new HySoft.BaseCallCenter.DAL.T_Sys_DictionaryBase();
15
+        public T_Sys_DictionaryBase()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(string F_DictionaryFlag)
22
+        {
23
+            return dal.Exists(F_DictionaryFlag);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public bool Add(HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(string F_DictionaryFlag)
46
+        {
47
+
48
+            return dal.Delete(F_DictionaryFlag);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_DictionaryFlaglist)
54
+        {
55
+            return dal.DeleteList(F_DictionaryFlaglist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase GetModel(string F_DictionaryFlag)
62
+        {
63
+
64
+            return dal.GetModel(F_DictionaryFlag);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_DictionaryBase model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+
141
+
142
+
143
+}

+ 143 - 0
BaseCallCenter.BLL/T_Sys_DictionaryValue.cs

@@ -0,0 +1,143 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_DictionaryValue
11
+    /// </summary>
12
+    public partial class T_Sys_DictionaryValue
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_DictionaryValue dal = new HySoft.BaseCallCenter.DAL.T_Sys_DictionaryValue();
15
+        public T_Sys_DictionaryValue()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_DictionaryValueId)
22
+        {
23
+            return dal.Exists(F_DictionaryValueId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_DictionaryValueId)
46
+        {
47
+
48
+            return dal.Delete(F_DictionaryValueId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_DictionaryValueIdlist)
54
+        {
55
+            return dal.DeleteList(F_DictionaryValueIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue GetModel(int F_DictionaryValueId)
62
+        {
63
+
64
+            return dal.GetModel(F_DictionaryValueId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_DictionaryValue model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+
141
+
142
+
143
+}

+ 141 - 0
BaseCallCenter.BLL/T_Sys_LoginLogs.cs

@@ -0,0 +1,141 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_LoginLogs
11
+    /// </summary>
12
+    public partial class T_Sys_LoginLogs
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_LoginLogs dal = new HySoft.BaseCallCenter.DAL.T_Sys_LoginLogs();
15
+        public T_Sys_LoginLogs()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_LoginLogs model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_LoginLogs model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_Id)
46
+        {
47
+
48
+            return dal.Delete(F_Id);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_Idlist)
54
+        {
55
+            return dal.DeleteList(F_Idlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_LoginLogs GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_LoginLogs> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_LoginLogs> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_LoginLogs> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_LoginLogs>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_LoginLogs model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+        #endregion  BasicMethod
135
+        #region  ExtensionMethod
136
+
137
+        #endregion  ExtensionMethod
138
+    }
139
+
140
+
141
+}

+ 140 - 0
BaseCallCenter.BLL/T_Sys_MobileData.cs

@@ -0,0 +1,140 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_MobileData
11
+    /// </summary>
12
+    public partial class T_Sys_MobileData
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_MobileData dal = new HySoft.BaseCallCenter.DAL.T_Sys_MobileData();
15
+        public T_Sys_MobileData()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(string F_MobileNum)
22
+        {
23
+            return dal.Exists(F_MobileNum);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public bool Add(HySoft.BaseCallCenter.Model.T_Sys_MobileData model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_MobileData model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(string F_MobileNum)
46
+        {
47
+
48
+            return dal.Delete(F_MobileNum);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_MobileNumlist)
54
+        {
55
+            return dal.DeleteList(F_MobileNumlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_MobileData GetModel(string F_MobileNum)
62
+        {
63
+
64
+            return dal.GetModel(F_MobileNum);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_MobileData> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_MobileData> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_MobileData> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_MobileData>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_MobileData model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+      
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+}

+ 146 - 0
BaseCallCenter.BLL/T_Sys_ModuleFunctions.cs

@@ -0,0 +1,146 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_ModuleFunctions
11
+    /// </summary>
12
+    public partial class T_Sys_ModuleFunctions
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_ModuleFunctions dal = new HySoft.BaseCallCenter.DAL.T_Sys_ModuleFunctions();
15
+        public T_Sys_ModuleFunctions()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_FunctionId)
22
+        {
23
+            return dal.Exists(F_FunctionId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_FunctionId)
46
+        {
47
+
48
+            return dal.Delete(F_FunctionId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_FunctionIdlist)
54
+        {
55
+            return dal.DeleteList(F_FunctionIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions GetModel(int F_FunctionId)
62
+        {
63
+
64
+            return dal.GetModel(F_FunctionId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctions model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+        /// <summary>
134
+        /// 分页获取数据列表
135
+        /// </summary>
136
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
137
+        //{
138
+        //return dal.GetList(PageSize,PageIndex,strWhere);
139
+        //}
140
+
141
+        #endregion  BasicMethod
142
+        #region  ExtensionMethod
143
+
144
+        #endregion  ExtensionMethod
145
+    }
146
+}

+ 139 - 0
BaseCallCenter.BLL/T_Sys_ModuleFunctionsOpt.cs

@@ -0,0 +1,139 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_ModuleFunctionsOpt
11
+    /// </summary>
12
+    public partial class T_Sys_ModuleFunctionsOpt
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_ModuleFunctionsOpt dal = new HySoft.BaseCallCenter.DAL.T_Sys_ModuleFunctionsOpt();
15
+        public T_Sys_ModuleFunctionsOpt()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_Id)
46
+        {
47
+
48
+            return dal.Delete(F_Id);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_Idlist)
54
+        {
55
+            return dal.DeleteList(F_Idlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_ModuleFunctionsOpt model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+      
134
+        #endregion  BasicMethod
135
+        #region  ExtensionMethod
136
+
137
+        #endregion  ExtensionMethod
138
+    }
139
+}

+ 140 - 0
BaseCallCenter.BLL/T_Sys_ModuleInfo.cs

@@ -0,0 +1,140 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_ModuleInfo
11
+    /// </summary>
12
+    public partial class T_Sys_ModuleInfo
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_ModuleInfo dal = new HySoft.BaseCallCenter.DAL.T_Sys_ModuleInfo();
15
+        public T_Sys_ModuleInfo()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_ModuleId)
22
+        {
23
+            return dal.Exists(F_ModuleId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_ModuleId)
46
+        {
47
+
48
+            return dal.Delete(F_ModuleId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_ModuleIdlist)
54
+        {
55
+            return dal.DeleteList(F_ModuleIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo GetModel(int F_ModuleId)
62
+        {
63
+
64
+            return dal.GetModel(F_ModuleId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_ModuleInfo model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+}

+ 139 - 0
BaseCallCenter.BLL/T_Sys_Note.cs

@@ -0,0 +1,139 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_Note
11
+    /// </summary>
12
+    public partial class T_Sys_Note
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_Note dal = new HySoft.BaseCallCenter.DAL.T_Sys_Note();
15
+        public T_Sys_Note()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int Nid)
22
+        {
23
+            return dal.Exists(Nid);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_Note model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_Note model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int Nid)
46
+        {
47
+
48
+            return dal.Delete(Nid);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string Nidlist)
54
+        {
55
+            return dal.DeleteList(Nidlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_Note GetModel(int Nid)
62
+        {
63
+
64
+            return dal.GetModel(Nid);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_Note> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_Note> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_Note> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_Note>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_Note model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+        #endregion  BasicMethod
135
+        #region  ExtensionMethod
136
+
137
+        #endregion  ExtensionMethod
138
+    }
139
+}

+ 140 - 0
BaseCallCenter.BLL/T_Sys_OperateLogs.cs

@@ -0,0 +1,140 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_OperateLogs
11
+    /// </summary>
12
+    public partial class T_Sys_OperateLogs
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_OperateLogs dal = new HySoft.BaseCallCenter.DAL.T_Sys_OperateLogs();
15
+        public T_Sys_OperateLogs()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_OperateLogs model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_OperateLogs model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_Id)
46
+        {
47
+
48
+            return dal.Delete(F_Id);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_Idlist)
54
+        {
55
+            return dal.DeleteList(F_Idlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_OperateLogs GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_OperateLogs> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_OperateLogs> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_OperateLogs> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_OperateLogs>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_OperateLogs model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+}

+ 151 - 0
BaseCallCenter.BLL/T_Sys_RoleFunction.cs

@@ -0,0 +1,151 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_RoleFunction
11
+    /// </summary>
12
+    public partial class T_Sys_RoleFunction
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_RoleFunction dal = new HySoft.BaseCallCenter.DAL.T_Sys_RoleFunction();
15
+        public T_Sys_RoleFunction()
16
+        { }
17
+        #region  BasicMethod
18
+
19
+        /// <summary>
20
+        /// 得到最大ID
21
+        /// </summary>
22
+        public int GetMaxId()
23
+        {
24
+            return dal.GetMaxId();
25
+        }
26
+
27
+        /// <summary>
28
+        /// 是否存在该记录
29
+        /// </summary>
30
+        public bool Exists(int F_RoleId, int F_FunctionId)
31
+        {
32
+            return dal.Exists(F_RoleId, F_FunctionId);
33
+        }
34
+
35
+        /// <summary>
36
+        /// 增加一条数据
37
+        /// </summary>
38
+        public bool Add(HySoft.BaseCallCenter.Model.T_Sys_RoleFunction model)
39
+        {
40
+            return dal.Add(model);
41
+        }
42
+
43
+        /// <summary>
44
+        /// 更新一条数据
45
+        /// </summary>
46
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_RoleFunction model)
47
+        {
48
+            return dal.Update(model);
49
+        }
50
+
51
+        /// <summary>
52
+        /// 删除一条数据
53
+        /// </summary>
54
+        public bool Delete(int F_RoleId, int F_FunctionId)
55
+        {
56
+
57
+            return dal.Delete(F_RoleId, F_FunctionId);
58
+        }
59
+
60
+        /// <summary>
61
+        /// 删除一条数据
62
+        /// </summary>
63
+        public bool Delete1(int F_RoleId)
64
+        {
65
+
66
+            return dal.Delete1(F_RoleId);
67
+        }
68
+
69
+        /// <summary>
70
+        /// 得到一个对象实体
71
+        /// </summary>
72
+        public HySoft.BaseCallCenter.Model.T_Sys_RoleFunction GetModel(int F_RoleId, int F_FunctionId)
73
+        {
74
+
75
+            return dal.GetModel(F_RoleId, F_FunctionId);
76
+        }
77
+
78
+        /// <summary>
79
+        /// 获得数据列表
80
+        /// </summary>
81
+        public DataSet GetList(string strWhere)
82
+        {
83
+            return dal.GetList(strWhere);
84
+        }
85
+        /// <summary>
86
+        /// 获得前几行数据
87
+        /// </summary>
88
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
89
+        {
90
+            return dal.GetList(Top, strWhere, filedOrder);
91
+        }
92
+        /// <summary>
93
+        /// 获得数据列表
94
+        /// </summary>
95
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleFunction> GetModelList(string strWhere)
96
+        {
97
+            DataSet ds = dal.GetList(strWhere);
98
+            return DataTableToList(ds.Tables[0]);
99
+        }
100
+        /// <summary>
101
+        /// 获得数据列表
102
+        /// </summary>
103
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleFunction> DataTableToList(DataTable dt)
104
+        {
105
+            List<HySoft.BaseCallCenter.Model.T_Sys_RoleFunction> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_RoleFunction>();
106
+            int rowsCount = dt.Rows.Count;
107
+            if (rowsCount > 0)
108
+            {
109
+                HySoft.BaseCallCenter.Model.T_Sys_RoleFunction model;
110
+                for (int n = 0; n < rowsCount; n++)
111
+                {
112
+                    model = dal.DataRowToModel(dt.Rows[n]);
113
+                    if (model != null)
114
+                    {
115
+                        modelList.Add(model);
116
+                    }
117
+                }
118
+            }
119
+            return modelList;
120
+        }
121
+
122
+        /// <summary>
123
+        /// 获得数据列表
124
+        /// </summary>
125
+        public DataSet GetAllList()
126
+        {
127
+            return GetList("");
128
+        }
129
+
130
+        /// <summary>
131
+        /// 分页获取数据列表
132
+        /// </summary>
133
+        public int GetRecordCount(string strWhere)
134
+        {
135
+            return dal.GetRecordCount(strWhere);
136
+        }
137
+        /// <summary>
138
+        /// 分页获取数据列表
139
+        /// </summary>
140
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
141
+        {
142
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
143
+        }
144
+      
145
+
146
+        #endregion  BasicMethod
147
+        #region  ExtensionMethod
148
+
149
+        #endregion  ExtensionMethod
150
+    }
151
+}

+ 139 - 0
BaseCallCenter.BLL/T_Sys_RoleInfo.cs

@@ -0,0 +1,139 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_RoleInfo
11
+    /// </summary>
12
+    public partial class T_Sys_RoleInfo
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_RoleInfo dal = new HySoft.BaseCallCenter.DAL.T_Sys_RoleInfo();
15
+        public T_Sys_RoleInfo()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_RoleId)
22
+        {
23
+            return dal.Exists(F_RoleId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_RoleInfo model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_RoleInfo model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_RoleId)
46
+        {
47
+
48
+            return dal.Delete(F_RoleId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_RoleIdlist)
54
+        {
55
+            return dal.DeleteList(F_RoleIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_RoleInfo GetModel(int F_RoleId)
62
+        {
63
+
64
+            return dal.GetModel(F_RoleId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleInfo> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleInfo> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_RoleInfo> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_RoleInfo>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_RoleInfo model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+        #endregion  BasicMethod
135
+        #region  ExtensionMethod
136
+
137
+        #endregion  ExtensionMethod
138
+    }
139
+}

+ 142 - 0
BaseCallCenter.BLL/T_Sys_RoleModule.cs

@@ -0,0 +1,142 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_RoleModule
11
+    /// </summary>
12
+    public partial class T_Sys_RoleModule
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_RoleModule dal = new HySoft.BaseCallCenter.DAL.T_Sys_RoleModule();
15
+        public T_Sys_RoleModule()
16
+        { }
17
+        #region  BasicMethod
18
+
19
+        /// <summary>
20
+        /// 得到最大ID
21
+        /// </summary>
22
+        public int GetMaxId()
23
+        {
24
+            return dal.GetMaxId();
25
+        }
26
+
27
+        /// <summary>
28
+        /// 是否存在该记录
29
+        /// </summary>
30
+        public bool Exists(int F_RoleId, int F_ModuleId)
31
+        {
32
+            return dal.Exists(F_RoleId, F_ModuleId);
33
+        }
34
+
35
+        /// <summary>
36
+        /// 增加一条数据
37
+        /// </summary>
38
+        public bool Add(HySoft.BaseCallCenter.Model.T_Sys_RoleModule model)
39
+        {
40
+            return dal.Add(model);
41
+        }
42
+
43
+        /// <summary>
44
+        /// 更新一条数据
45
+        /// </summary>
46
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_RoleModule model)
47
+        {
48
+            return dal.Update(model);
49
+        }
50
+
51
+        /// <summary>
52
+        /// 删除一条数据
53
+        /// </summary>
54
+        public bool Delete(int F_RoleId, int F_ModuleId)
55
+        {
56
+
57
+            return dal.Delete(F_RoleId, F_ModuleId);
58
+        }
59
+
60
+        /// <summary>
61
+        /// 得到一个对象实体
62
+        /// </summary>
63
+        public HySoft.BaseCallCenter.Model.T_Sys_RoleModule GetModel(int F_RoleId, int F_ModuleId)
64
+        {
65
+
66
+            return dal.GetModel(F_RoleId, F_ModuleId);
67
+        }
68
+
69
+        /// <summary>
70
+        /// 获得数据列表
71
+        /// </summary>
72
+        public DataSet GetList(string strWhere)
73
+        {
74
+            return dal.GetList(strWhere);
75
+        }
76
+        /// <summary>
77
+        /// 获得前几行数据
78
+        /// </summary>
79
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
80
+        {
81
+            return dal.GetList(Top, strWhere, filedOrder);
82
+        }
83
+        /// <summary>
84
+        /// 获得数据列表
85
+        /// </summary>
86
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleModule> GetModelList(string strWhere)
87
+        {
88
+            DataSet ds = dal.GetList(strWhere);
89
+            return DataTableToList(ds.Tables[0]);
90
+        }
91
+        /// <summary>
92
+        /// 获得数据列表
93
+        /// </summary>
94
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleModule> DataTableToList(DataTable dt)
95
+        {
96
+            List<HySoft.BaseCallCenter.Model.T_Sys_RoleModule> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_RoleModule>();
97
+            int rowsCount = dt.Rows.Count;
98
+            if (rowsCount > 0)
99
+            {
100
+                HySoft.BaseCallCenter.Model.T_Sys_RoleModule model;
101
+                for (int n = 0; n < rowsCount; n++)
102
+                {
103
+                    model = dal.DataRowToModel(dt.Rows[n]);
104
+                    if (model != null)
105
+                    {
106
+                        modelList.Add(model);
107
+                    }
108
+                }
109
+            }
110
+            return modelList;
111
+        }
112
+
113
+        /// <summary>
114
+        /// 获得数据列表
115
+        /// </summary>
116
+        public DataSet GetAllList()
117
+        {
118
+            return GetList("");
119
+        }
120
+
121
+        /// <summary>
122
+        /// 分页获取数据列表
123
+        /// </summary>
124
+        public int GetRecordCount(string strWhere)
125
+        {
126
+            return dal.GetRecordCount(strWhere);
127
+        }
128
+        /// <summary>
129
+        /// 分页获取数据列表
130
+        /// </summary>
131
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
132
+        {
133
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
134
+        }
135
+     
136
+
137
+        #endregion  BasicMethod
138
+        #region  ExtensionMethod
139
+
140
+        #endregion  ExtensionMethod
141
+    }
142
+}

+ 148 - 0
BaseCallCenter.BLL/T_Sys_RoleOpt.cs

@@ -0,0 +1,148 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_RoleOpt
11
+    /// </summary>
12
+    public partial class T_Sys_RoleOpt
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_RoleOpt dal = new HySoft.BaseCallCenter.DAL.T_Sys_RoleOpt();
15
+        public T_Sys_RoleOpt()
16
+        { }
17
+        #region  BasicMethod
18
+
19
+        /// <summary>
20
+        /// 得到最大ID
21
+        /// </summary>
22
+        public int GetMaxId()
23
+        {
24
+            return dal.GetMaxId();
25
+        }
26
+
27
+        /// <summary>
28
+        /// 是否存在该记录
29
+        /// </summary>
30
+        public bool Exists(int F_RoleId, int F_Id)
31
+        {
32
+            return dal.Exists(F_RoleId, F_Id);
33
+        }
34
+
35
+        /// <summary>
36
+        /// 增加一条数据
37
+        /// </summary>
38
+        public bool Add(HySoft.BaseCallCenter.Model.T_Sys_RoleOpt model)
39
+        {
40
+            return dal.Add(model);
41
+        }
42
+
43
+        /// <summary>
44
+        /// 更新一条数据
45
+        /// </summary>
46
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_RoleOpt model)
47
+        {
48
+            return dal.Update(model);
49
+        }
50
+
51
+        /// <summary>
52
+        /// 删除一条数据
53
+        /// </summary>
54
+        public bool Delete(int F_RoleId, int F_Id)
55
+        {
56
+            return dal.Delete(F_RoleId, F_Id);
57
+        }
58
+
59
+        /// <summary>
60
+        /// 删除一条数据
61
+        /// </summary>
62
+        public bool Delete1(int F_RoleId)
63
+        {
64
+            return dal.Delete1(F_RoleId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 得到一个对象实体
69
+        /// </summary>
70
+        public HySoft.BaseCallCenter.Model.T_Sys_RoleOpt GetModel(int F_RoleId, int F_Id)
71
+        {
72
+            return dal.GetModel(F_RoleId, F_Id);
73
+        }
74
+
75
+        /// <summary>
76
+        /// 获得数据列表
77
+        /// </summary>
78
+        public DataSet GetList(string strWhere)
79
+        {
80
+            return dal.GetList(strWhere);
81
+        }
82
+        /// <summary>
83
+        /// 获得前几行数据
84
+        /// </summary>
85
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
86
+        {
87
+            return dal.GetList(Top, strWhere, filedOrder);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleOpt> GetModelList(string strWhere)
93
+        {
94
+            DataSet ds = dal.GetList(strWhere);
95
+            return DataTableToList(ds.Tables[0]);
96
+        }
97
+        /// <summary>
98
+        /// 获得数据列表
99
+        /// </summary>
100
+        public List<HySoft.BaseCallCenter.Model.T_Sys_RoleOpt> DataTableToList(DataTable dt)
101
+        {
102
+            List<HySoft.BaseCallCenter.Model.T_Sys_RoleOpt> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_RoleOpt>();
103
+            int rowsCount = dt.Rows.Count;
104
+            if (rowsCount > 0)
105
+            {
106
+                HySoft.BaseCallCenter.Model.T_Sys_RoleOpt model;
107
+                for (int n = 0; n < rowsCount; n++)
108
+                {
109
+                    model = dal.DataRowToModel(dt.Rows[n]);
110
+                    if (model != null)
111
+                    {
112
+                        modelList.Add(model);
113
+                    }
114
+                }
115
+            }
116
+            return modelList;
117
+        }
118
+
119
+        /// <summary>
120
+        /// 获得数据列表
121
+        /// </summary>
122
+        public DataSet GetAllList()
123
+        {
124
+            return GetList("");
125
+        }
126
+
127
+        /// <summary>
128
+        /// 分页获取数据列表
129
+        /// </summary>
130
+        public int GetRecordCount(string strWhere)
131
+        {
132
+            return dal.GetRecordCount(strWhere);
133
+        }
134
+        /// <summary>
135
+        /// 分页获取数据列表
136
+        /// </summary>
137
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
138
+        {
139
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
140
+        }
141
+       
142
+
143
+        #endregion  BasicMethod
144
+        #region  ExtensionMethod
145
+
146
+        #endregion  ExtensionMethod
147
+    }
148
+}

+ 150 - 0
BaseCallCenter.BLL/T_Sys_SystemConfig.cs

@@ -0,0 +1,150 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_SystemConfig
11
+    /// </summary>
12
+    public partial class T_Sys_SystemConfig
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_SystemConfig dal = new HySoft.BaseCallCenter.DAL.T_Sys_SystemConfig();
15
+        public T_Sys_SystemConfig()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_ParamId)
22
+        {
23
+            return dal.Exists(F_ParamId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_SystemConfig model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_SystemConfig model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_ParamId)
46
+        {
47
+
48
+            return dal.Delete(F_ParamId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_ParamIdlist)
54
+        {
55
+            return dal.DeleteList(F_ParamIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_SystemConfig GetModel(int F_ParamId)
62
+        {
63
+
64
+            return dal.GetModel(F_ParamId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_SystemConfig> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_SystemConfig> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_SystemConfig> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_SystemConfig>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_SystemConfig model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+
140
+        /// <summary>
141
+        /// 根据编号获取值
142
+        /// </summary>
143
+        /// <param name="p_ParamCode">编号</param>
144
+        /// <returns></returns>
145
+        public string GetParamValueByParamCode(string p_ParamCode)
146
+        {
147
+            return dal.GetParamValueByParamCode(p_ParamCode);
148
+        }
149
+    }
150
+}

+ 193 - 0
BaseCallCenter.BLL/T_Sys_TelTitleData.cs

@@ -0,0 +1,193 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Sys_TelTitleData
10
+	/// </summary>
11
+	public partial class T_Sys_TelTitleData
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Sys_TelTitleData dal=new HySoft.BaseCallCenter.DAL.T_Sys_TelTitleData();
14
+		public T_Sys_TelTitleData()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int F_Id)
30
+		{
31
+			return dal.Exists(F_Id);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(HySoft.BaseCallCenter.Model.T_Sys_TelTitleData model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_Sys_TelTitleData model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_Id)
54
+		{
55
+			
56
+			return dal.Delete(F_Id);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_Idlist )
62
+		{
63
+			return dal.DeleteList(F_Idlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_Sys_TelTitleData GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+
75
+		/// <summary>
76
+		/// 得到一个对象实体,从缓存中
77
+		/// </summary>
78
+        //public HySoft.BaseCallCenter.Model.T_Sys_TelTitleData GetModelByCache(int F_Id)
79
+        //{
80
+
81
+        //    string CacheKey = "T_Sys_TelTitleDataModel-" + F_Id;
82
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(F_Id);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch { }
95
+        //    }
96
+        //    return (HySoft.BaseCallCenter.Model.T_Sys_TelTitleData)objModel;
97
+        //}
98
+
99
+		/// <summary>
100
+		/// 获得数据列表
101
+		/// </summary>
102
+		public DataSet GetList(string strWhere)
103
+		{
104
+			return dal.GetList(strWhere);
105
+		}
106
+		/// <summary>
107
+		/// 获得前几行数据
108
+		/// </summary>
109
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
110
+		{
111
+			return dal.GetList(Top,strWhere,filedOrder);
112
+		}
113
+		/// <summary>
114
+		/// 获得数据列表
115
+		/// </summary>
116
+		public List<HySoft.BaseCallCenter.Model.T_Sys_TelTitleData> GetModelList(string strWhere)
117
+		{
118
+			DataSet ds = dal.GetList(strWhere);
119
+			return DataTableToList(ds.Tables[0]);
120
+		}
121
+		/// <summary>
122
+		/// 获得数据列表
123
+		/// </summary>
124
+		public List<HySoft.BaseCallCenter.Model.T_Sys_TelTitleData> DataTableToList(DataTable dt)
125
+		{
126
+			List<HySoft.BaseCallCenter.Model.T_Sys_TelTitleData> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_TelTitleData>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				HySoft.BaseCallCenter.Model.T_Sys_TelTitleData model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new HySoft.BaseCallCenter.Model.T_Sys_TelTitleData();
134
+					if(dt.Rows[n]["F_Id"]!=null && dt.Rows[n]["F_Id"].ToString()!="")
135
+					{
136
+						model.F_Id=int.Parse(dt.Rows[n]["F_Id"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_TitleName"]!=null && dt.Rows[n]["F_TitleName"].ToString()!="")
139
+					{
140
+					model.F_TitleName=dt.Rows[n]["F_TitleName"].ToString();
141
+					}
142
+					if(dt.Rows[n]["F_KeyPhoneNum"]!=null && dt.Rows[n]["F_KeyPhoneNum"].ToString()!="")
143
+					{
144
+					model.F_KeyPhoneNum=dt.Rows[n]["F_KeyPhoneNum"].ToString();
145
+					}
146
+					if(dt.Rows[n]["F_DefPhoneNumLen"]!=null && dt.Rows[n]["F_DefPhoneNumLen"].ToString()!="")
147
+					{
148
+						model.F_DefPhoneNumLen=int.Parse(dt.Rows[n]["F_DefPhoneNumLen"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_WCode"]!=null && dt.Rows[n]["F_WCode"].ToString()!="")
151
+					{
152
+					model.F_WCode=dt.Rows[n]["F_WCode"].ToString();
153
+					}
154
+					modelList.Add(model);
155
+				}
156
+			}
157
+			return modelList;
158
+		}
159
+
160
+		/// <summary>
161
+		/// 获得数据列表
162
+		/// </summary>
163
+		public DataSet GetAllList()
164
+		{
165
+			return GetList("");
166
+		}
167
+
168
+		/// <summary>
169
+		/// 分页获取数据列表
170
+		/// </summary>
171
+		public int GetRecordCount(string strWhere)
172
+		{
173
+			return dal.GetRecordCount(strWhere);
174
+		}
175
+		/// <summary>
176
+		/// 分页获取数据列表
177
+		/// </summary>
178
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
179
+		{
180
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
181
+		}
182
+		/// <summary>
183
+		/// 分页获取数据列表
184
+		/// </summary>
185
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
186
+		//{
187
+			//return dal.GetList(PageSize,PageIndex,strWhere);
188
+		//}
189
+
190
+		#endregion  Method
191
+	}
192
+}
193
+

+ 305 - 0
BaseCallCenter.BLL/T_Sys_TempItems.cs

@@ -0,0 +1,305 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_TempItems
11
+    /// </summary>
12
+    public partial class T_Sys_TempItems
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_TempItems dal = new HySoft.BaseCallCenter.DAL.T_Sys_TempItems();
15
+        public T_Sys_TempItems()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_Id)
22
+        {
23
+            return dal.Exists(F_Id);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_TempItems model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_TempItems model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_Id)
46
+        {
47
+
48
+            return dal.Delete(F_Id);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_Idlist)
54
+        {
55
+            return dal.DeleteList(F_Idlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_TempItems GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_TempItems> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_TempItems> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_TempItems> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_TempItems>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_TempItems model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new HySoft.BaseCallCenter.Model.T_Sys_TempItems();
102
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
103
+                    {
104
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_TempName"] != null && dt.Rows[n]["F_TempName"].ToString() != "")
107
+                    {
108
+                        model.F_TempName = dt.Rows[n]["F_TempName"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_UserId"] != null && dt.Rows[n]["F_UserId"].ToString() != "")
111
+                    {
112
+                        model.F_UserId = int.Parse(dt.Rows[n]["F_UserId"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["ExpandIntField1"] != null && dt.Rows[n]["ExpandIntField1"].ToString() != "")
115
+                    {
116
+                        model.ExpandIntField1 = int.Parse(dt.Rows[n]["ExpandIntField1"].ToString());
117
+                    }
118
+                    if (dt.Rows[n]["ExpandIntField2"] != null && dt.Rows[n]["ExpandIntField2"].ToString() != "")
119
+                    {
120
+                        model.ExpandIntField2 = int.Parse(dt.Rows[n]["ExpandIntField2"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["ExpandIntField3"] != null && dt.Rows[n]["ExpandIntField3"].ToString() != "")
123
+                    {
124
+                        model.ExpandIntField3 = int.Parse(dt.Rows[n]["ExpandIntField3"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["ExpandIntField4"] != null && dt.Rows[n]["ExpandIntField4"].ToString() != "")
127
+                    {
128
+                        model.ExpandIntField4 = int.Parse(dt.Rows[n]["ExpandIntField4"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["ExpandIntField5"] != null && dt.Rows[n]["ExpandIntField5"].ToString() != "")
131
+                    {
132
+                        model.ExpandIntField5 = int.Parse(dt.Rows[n]["ExpandIntField5"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["ExpandIntField6"] != null && dt.Rows[n]["ExpandIntField6"].ToString() != "")
135
+                    {
136
+                        model.ExpandIntField6 = int.Parse(dt.Rows[n]["ExpandIntField6"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["ExpandDecField1"] != null && dt.Rows[n]["ExpandDecField1"].ToString() != "")
139
+                    {
140
+                        model.ExpandDecField1 = decimal.Parse(dt.Rows[n]["ExpandDecField1"].ToString());
141
+                    }
142
+                    if (dt.Rows[n]["ExpandDecField2"] != null && dt.Rows[n]["ExpandDecField2"].ToString() != "")
143
+                    {
144
+                        model.ExpandDecField2 = decimal.Parse(dt.Rows[n]["ExpandDecField2"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["ExpandDecField3"] != null && dt.Rows[n]["ExpandDecField3"].ToString() != "")
147
+                    {
148
+                        model.ExpandDecField3 = decimal.Parse(dt.Rows[n]["ExpandDecField3"].ToString());
149
+                    }
150
+                    if (dt.Rows[n]["ExpandDecField4"] != null && dt.Rows[n]["ExpandDecField4"].ToString() != "")
151
+                    {
152
+                        model.ExpandDecField4 = decimal.Parse(dt.Rows[n]["ExpandDecField4"].ToString());
153
+                    }
154
+                    if (dt.Rows[n]["ExpandDecField5"] != null && dt.Rows[n]["ExpandDecField5"].ToString() != "")
155
+                    {
156
+                        model.ExpandDecField5 = decimal.Parse(dt.Rows[n]["ExpandDecField5"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["ExpandDecField6"] != null && dt.Rows[n]["ExpandDecField6"].ToString() != "")
159
+                    {
160
+                        model.ExpandDecField6 = decimal.Parse(dt.Rows[n]["ExpandDecField6"].ToString());
161
+                    }
162
+                    if (dt.Rows[n]["ExpandDatField1"] != null && dt.Rows[n]["ExpandDatField1"].ToString() != "")
163
+                    {
164
+                        model.ExpandDatField1 = DateTime.Parse(dt.Rows[n]["ExpandDatField1"].ToString());
165
+                    }
166
+                    if (dt.Rows[n]["ExpandDatField2"] != null && dt.Rows[n]["ExpandDatField2"].ToString() != "")
167
+                    {
168
+                        model.ExpandDatField2 = DateTime.Parse(dt.Rows[n]["ExpandDatField2"].ToString());
169
+                    }
170
+                    if (dt.Rows[n]["ExpandDatField3"] != null && dt.Rows[n]["ExpandDatField3"].ToString() != "")
171
+                    {
172
+                        model.ExpandDatField3 = DateTime.Parse(dt.Rows[n]["ExpandDatField3"].ToString());
173
+                    }
174
+                    if (dt.Rows[n]["ExpandDatField4"] != null && dt.Rows[n]["ExpandDatField4"].ToString() != "")
175
+                    {
176
+                        model.ExpandDatField4 = DateTime.Parse(dt.Rows[n]["ExpandDatField4"].ToString());
177
+                    }
178
+                    if (dt.Rows[n]["ExpandDatField5"] != null && dt.Rows[n]["ExpandDatField5"].ToString() != "")
179
+                    {
180
+                        model.ExpandDatField5 = DateTime.Parse(dt.Rows[n]["ExpandDatField5"].ToString());
181
+                    }
182
+                    if (dt.Rows[n]["ExpandDatField6"] != null && dt.Rows[n]["ExpandDatField6"].ToString() != "")
183
+                    {
184
+                        model.ExpandDatField6 = DateTime.Parse(dt.Rows[n]["ExpandDatField6"].ToString());
185
+                    }
186
+                    if (dt.Rows[n]["ExpandVchField1"] != null && dt.Rows[n]["ExpandVchField1"].ToString() != "")
187
+                    {
188
+                        model.ExpandVchField1 = dt.Rows[n]["ExpandVchField1"].ToString();
189
+                    }
190
+                    if (dt.Rows[n]["ExpandVchField2"] != null && dt.Rows[n]["ExpandVchField2"].ToString() != "")
191
+                    {
192
+                        model.ExpandVchField2 = dt.Rows[n]["ExpandVchField2"].ToString();
193
+                    }
194
+                    if (dt.Rows[n]["ExpandVchField3"] != null && dt.Rows[n]["ExpandVchField3"].ToString() != "")
195
+                    {
196
+                        model.ExpandVchField3 = dt.Rows[n]["ExpandVchField3"].ToString();
197
+                    }
198
+                    if (dt.Rows[n]["ExpandVchField4"] != null && dt.Rows[n]["ExpandVchField4"].ToString() != "")
199
+                    {
200
+                        model.ExpandVchField4 = dt.Rows[n]["ExpandVchField4"].ToString();
201
+                    }
202
+                    if (dt.Rows[n]["ExpandVchField5"] != null && dt.Rows[n]["ExpandVchField5"].ToString() != "")
203
+                    {
204
+                        model.ExpandVchField5 = dt.Rows[n]["ExpandVchField5"].ToString();
205
+                    }
206
+                    if (dt.Rows[n]["ExpandVchField6"] != null && dt.Rows[n]["ExpandVchField6"].ToString() != "")
207
+                    {
208
+                        model.ExpandVchField6 = dt.Rows[n]["ExpandVchField6"].ToString();
209
+                    }
210
+                    if (dt.Rows[n]["ExpandVchField7"] != null && dt.Rows[n]["ExpandVchField7"].ToString() != "")
211
+                    {
212
+                        model.ExpandVchField7 = dt.Rows[n]["ExpandVchField7"].ToString();
213
+                    }
214
+                    if (dt.Rows[n]["ExpandVchField8"] != null && dt.Rows[n]["ExpandVchField8"].ToString() != "")
215
+                    {
216
+                        model.ExpandVchField8 = dt.Rows[n]["ExpandVchField8"].ToString();
217
+                    }
218
+                    if (dt.Rows[n]["ExpandVchField9"] != null && dt.Rows[n]["ExpandVchField9"].ToString() != "")
219
+                    {
220
+                        model.ExpandVchField9 = dt.Rows[n]["ExpandVchField9"].ToString();
221
+                    }
222
+                    if (dt.Rows[n]["ExpandVchField10"] != null && dt.Rows[n]["ExpandVchField10"].ToString() != "")
223
+                    {
224
+                        model.ExpandVchField10 = dt.Rows[n]["ExpandVchField10"].ToString();
225
+                    }
226
+                    if (dt.Rows[n]["ExpandVchField11"] != null && dt.Rows[n]["ExpandVchField11"].ToString() != "")
227
+                    {
228
+                        model.ExpandVchField11 = dt.Rows[n]["ExpandVchField11"].ToString();
229
+                    }
230
+                    if (dt.Rows[n]["ExpandVchField12"] != null && dt.Rows[n]["ExpandVchField12"].ToString() != "")
231
+                    {
232
+                        model.ExpandVchField12 = dt.Rows[n]["ExpandVchField12"].ToString();
233
+                    }
234
+                    if (dt.Rows[n]["ExpandVchField13"] != null && dt.Rows[n]["ExpandVchField13"].ToString() != "")
235
+                    {
236
+                        model.ExpandVchField13 = dt.Rows[n]["ExpandVchField13"].ToString();
237
+                    }
238
+                    if (dt.Rows[n]["ExpandVchField14"] != null && dt.Rows[n]["ExpandVchField14"].ToString() != "")
239
+                    {
240
+                        model.ExpandVchField14 = dt.Rows[n]["ExpandVchField14"].ToString();
241
+                    }
242
+                    if (dt.Rows[n]["ExpandVchField15"] != null && dt.Rows[n]["ExpandVchField15"].ToString() != "")
243
+                    {
244
+                        model.ExpandVchField15 = dt.Rows[n]["ExpandVchField15"].ToString();
245
+                    }
246
+                    if (dt.Rows[n]["ExpandSintField1"] != null && dt.Rows[n]["ExpandSintField1"].ToString() != "")
247
+                    {
248
+                        model.ExpandSintField1 = int.Parse(dt.Rows[n]["ExpandSintField1"].ToString());
249
+                    }
250
+                    if (dt.Rows[n]["ExpandSintField2"] != null && dt.Rows[n]["ExpandSintField2"].ToString() != "")
251
+                    {
252
+                        model.ExpandSintField2 = int.Parse(dt.Rows[n]["ExpandSintField2"].ToString());
253
+                    }
254
+                    if (dt.Rows[n]["ExpandSintField3"] != null && dt.Rows[n]["ExpandSintField3"].ToString() != "")
255
+                    {
256
+                        model.ExpandSintField3 = int.Parse(dt.Rows[n]["ExpandSintField3"].ToString());
257
+                    }
258
+                    if (dt.Rows[n]["ExpandSintField4"] != null && dt.Rows[n]["ExpandSintField4"].ToString() != "")
259
+                    {
260
+                        model.ExpandSintField4 = int.Parse(dt.Rows[n]["ExpandSintField4"].ToString());
261
+                    }
262
+                    if (dt.Rows[n]["ExpandSintField5"] != null && dt.Rows[n]["ExpandSintField5"].ToString() != "")
263
+                    {
264
+                        model.ExpandSintField5 = int.Parse(dt.Rows[n]["ExpandSintField5"].ToString());
265
+                    }
266
+                    modelList.Add(model);
267
+                }
268
+            }
269
+            return modelList;
270
+        }
271
+
272
+        /// <summary>
273
+        /// 获得数据列表
274
+        /// </summary>
275
+        public DataSet GetAllList()
276
+        {
277
+            return GetList("");
278
+        }
279
+
280
+        /// <summary>
281
+        /// 分页获取数据列表
282
+        /// </summary>
283
+        public int GetRecordCount(string strWhere)
284
+        {
285
+            return dal.GetRecordCount(strWhere);
286
+        }
287
+        /// <summary>
288
+        /// 分页获取数据列表
289
+        /// </summary>
290
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
291
+        {
292
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
293
+        }
294
+        /// <summary>
295
+        /// 分页获取数据列表
296
+        /// </summary>
297
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
298
+        //{
299
+        //return dal.GetList(PageSize,PageIndex,strWhere);
300
+        //}
301
+
302
+        #endregion  Method
303
+    }
304
+}
305
+

+ 218 - 0
BaseCallCenter.BLL/T_Sys_UserAccount.cs

@@ -0,0 +1,218 @@
1
+/**  版本信息模板在安装目录下,可自行修改。
2
+* T_Sys_UserAccount.cs
3
+*
4
+* 功 能: N/A
5
+* 类 名: T_Sys_UserAccount
6
+*
7
+* Ver    变更日期             负责人  变更内容
8
+* ───────────────────────────────────
9
+* V0.01  2015/3/10 14:50:40   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
+using HySoft.Common;
21
+using HySoft.BaseCallCenter.Model;
22
+namespace HySoft.BaseCallCenter.BLL
23
+{
24
+	/// <summary>
25
+	/// T_Sys_UserAccount
26
+	/// </summary>
27
+	public partial class T_Sys_UserAccount
28
+	{
29
+		private readonly HySoft.BaseCallCenter.DAL.T_Sys_UserAccount dal=new HySoft.BaseCallCenter.DAL.T_Sys_UserAccount();
30
+		public T_Sys_UserAccount()
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_UserId)
46
+		{
47
+			return dal.Exists(F_UserId);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 增加一条数据
52
+		/// </summary>
53
+		public int  Add(HySoft.BaseCallCenter.Model.T_Sys_UserAccount model)
54
+		{
55
+			return dal.Add(model);
56
+		}
57
+
58
+		/// <summary>
59
+		/// 更新一条数据
60
+		/// </summary>
61
+		public bool Update(HySoft.BaseCallCenter.Model.T_Sys_UserAccount model)
62
+		{
63
+			return dal.Update(model);
64
+		}
65
+
66
+		/// <summary>
67
+		/// 删除一条数据
68
+		/// </summary>
69
+		public bool Delete(int F_UserId)
70
+		{
71
+			
72
+			return dal.Delete(F_UserId);
73
+		}
74
+		/// <summary>
75
+		/// 删除一条数据
76
+		/// </summary>
77
+		public bool DeleteList(string F_UserIdlist )
78
+		{
79
+			return dal.DeleteList(F_UserIdlist );
80
+		}
81
+
82
+		/// <summary>
83
+		/// 得到一个对象实体
84
+		/// </summary>
85
+		public HySoft.BaseCallCenter.Model.T_Sys_UserAccount GetModel(int F_UserId)
86
+		{
87
+			
88
+			return dal.GetModel(F_UserId);
89
+		}
90
+
91
+        ///// <summary>
92
+        ///// 得到一个对象实体,从缓存中
93
+        ///// </summary>
94
+        //public HySoft.BaseCallCenter.Model.T_Sys_UserAccount GetModelByCache(int F_UserId)
95
+        //{
96
+			
97
+        //    string CacheKey = "T_Sys_UserAccountModel-" + F_UserId;
98
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
99
+        //    if (objModel == null)
100
+        //    {
101
+        //        try
102
+        //        {
103
+        //            objModel = dal.GetModel(F_UserId);
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 (HySoft.BaseCallCenter.Model.T_Sys_UserAccount)objModel;
113
+        //}
114
+
115
+		/// <summary>
116
+		/// 获得数据列表
117
+		/// </summary>
118
+		public DataSet GetList(string strWhere)
119
+		{
120
+			return dal.GetList(strWhere);
121
+		}
122
+        public DataSet GetListView(string strWhere)
123
+        {
124
+            return dal.GetListView(strWhere);
125
+        }
126
+		/// <summary>
127
+		/// 获得前几行数据
128
+		/// </summary>
129
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
130
+		{
131
+			return dal.GetList(Top,strWhere,filedOrder);
132
+		}
133
+		/// <summary>
134
+		/// 获得数据列表
135
+		/// </summary>
136
+		public List<HySoft.BaseCallCenter.Model.T_Sys_UserAccount> GetModelList(string strWhere)
137
+		{
138
+			DataSet ds = dal.GetList(strWhere);
139
+			return DataTableToList(ds.Tables[0]);
140
+		}
141
+		/// <summary>
142
+		/// 获得数据列表
143
+		/// </summary>
144
+		public List<HySoft.BaseCallCenter.Model.T_Sys_UserAccount> DataTableToList(DataTable dt)
145
+		{
146
+			List<HySoft.BaseCallCenter.Model.T_Sys_UserAccount> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_UserAccount>();
147
+			int rowsCount = dt.Rows.Count;
148
+			if (rowsCount > 0)
149
+			{
150
+				HySoft.BaseCallCenter.Model.T_Sys_UserAccount model;
151
+				for (int n = 0; n < rowsCount; n++)
152
+				{
153
+					model = dal.DataRowToModel(dt.Rows[n]);
154
+					if (model != null)
155
+					{
156
+						modelList.Add(model);
157
+					}
158
+				}
159
+			}
160
+			return modelList;
161
+		}
162
+
163
+        public List<HySoft.BaseCallCenter.Model.T_Sys_UserAccount> DataTableToList1(DataTable dt)
164
+        {
165
+            List<HySoft.BaseCallCenter.Model.T_Sys_UserAccount> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_UserAccount>();
166
+            int rowsCount = dt.Rows.Count;
167
+            if (rowsCount > 0)
168
+            {
169
+                HySoft.BaseCallCenter.Model.T_Sys_UserAccount model;
170
+                for (int n = 0; n < rowsCount; n++)
171
+                {
172
+                    model = dal.DataRowToModel1(dt.Rows[n]);
173
+                    if (model != null)
174
+                    {
175
+                        modelList.Add(model);
176
+                    }
177
+                }
178
+            }
179
+            return modelList;
180
+        }
181
+
182
+		/// <summary>
183
+		/// 获得数据列表
184
+		/// </summary>
185
+		public DataSet GetAllList()
186
+		{
187
+			return GetList("");
188
+		}
189
+
190
+		/// <summary>
191
+		/// 分页获取数据列表
192
+		/// </summary>
193
+		public int GetRecordCount(string strWhere)
194
+		{
195
+			return dal.GetRecordCount(strWhere);
196
+		}
197
+		/// <summary>
198
+		/// 分页获取数据列表
199
+		/// </summary>
200
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
201
+		{
202
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
203
+		}
204
+		/// <summary>
205
+		/// 分页获取数据列表
206
+		/// </summary>
207
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
208
+		//{
209
+			//return dal.GetList(PageSize,PageIndex,strWhere);
210
+		//}
211
+
212
+		#endregion  BasicMethod
213
+		#region  ExtensionMethod
214
+
215
+		#endregion  ExtensionMethod
216
+	}
217
+}
218
+

+ 140 - 0
BaseCallCenter.BLL/T_Sys_UserGroup.cs

@@ -0,0 +1,140 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_UserGroup
11
+    /// </summary>
12
+    public partial class T_Sys_UserGroup
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_UserGroup dal = new HySoft.BaseCallCenter.DAL.T_Sys_UserGroup();
15
+        public T_Sys_UserGroup()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_GroupId)
22
+        {
23
+            return dal.Exists(F_GroupId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(HySoft.BaseCallCenter.Model.T_Sys_UserGroup model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_UserGroup model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_GroupId)
46
+        {
47
+
48
+            return dal.Delete(F_GroupId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_GroupIdlist)
54
+        {
55
+            return dal.DeleteList(F_GroupIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_UserGroup GetModel(int F_GroupId)
62
+        {
63
+
64
+            return dal.GetModel(F_GroupId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_UserGroup> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_UserGroup> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_UserGroup> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_UserGroup>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_UserGroup model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+      
134
+
135
+        #endregion  BasicMethod
136
+        #region  ExtensionMethod
137
+
138
+        #endregion  ExtensionMethod
139
+    }
140
+}

+ 144 - 0
BaseCallCenter.BLL/T_Sys_WorkCalendar.cs

@@ -0,0 +1,144 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace HySoft.BaseCallCenter.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_WorkCalendar
11
+    /// </summary>
12
+    public partial class T_Sys_WorkCalendar
13
+    {
14
+        private readonly HySoft.BaseCallCenter.DAL.T_Sys_WorkCalendar dal = new HySoft.BaseCallCenter.DAL.T_Sys_WorkCalendar();
15
+        public T_Sys_WorkCalendar()
16
+        { }
17
+        #region  BasicMethod
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(DateTime F_DateId)
22
+        {
23
+            return dal.Exists(F_DateId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public bool Add(HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(DateTime F_DateId)
46
+        {
47
+
48
+            return dal.Delete(F_DateId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_DateIdlist)
54
+        {
55
+            return dal.DeleteList(F_DateIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar GetModel(DateTime F_DateId)
62
+        {
63
+
64
+            return dal.GetModel(F_DateId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获得数据列表
69
+        /// </summary>
70
+        public DataSet GetList(string strWhere)
71
+        {
72
+            return dal.GetList(strWhere);
73
+        }
74
+        /// <summary>
75
+        /// 获得前几行数据
76
+        /// </summary>
77
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
78
+        {
79
+            return dal.GetList(Top, strWhere, filedOrder);
80
+        }
81
+        /// <summary>
82
+        /// 获得数据列表
83
+        /// </summary>
84
+        public List<HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar> GetModelList(string strWhere)
85
+        {
86
+            DataSet ds = dal.GetList(strWhere);
87
+            return DataTableToList(ds.Tables[0]);
88
+        }
89
+        /// <summary>
90
+        /// 获得数据列表
91
+        /// </summary>
92
+        public List<HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar> DataTableToList(DataTable dt)
93
+        {
94
+            List<HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                HySoft.BaseCallCenter.Model.T_Sys_WorkCalendar model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = dal.DataRowToModel(dt.Rows[n]);
102
+                    if (model != null)
103
+                    {
104
+                        modelList.Add(model);
105
+                    }
106
+                }
107
+            }
108
+            return modelList;
109
+        }
110
+
111
+        /// <summary>
112
+        /// 获得数据列表
113
+        /// </summary>
114
+        public DataSet GetAllList()
115
+        {
116
+            return GetList("");
117
+        }
118
+
119
+        /// <summary>
120
+        /// 分页获取数据列表
121
+        /// </summary>
122
+        public int GetRecordCount(string strWhere)
123
+        {
124
+            return dal.GetRecordCount(strWhere);
125
+        }
126
+        /// <summary>
127
+        /// 分页获取数据列表
128
+        /// </summary>
129
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
130
+        {
131
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
132
+        }
133
+       
134
+
135
+
136
+        #endregion  BasicMethod
137
+        #region  ExtensionMethod
138
+
139
+        #endregion  ExtensionMethod
140
+    }
141
+
142
+
143
+
144
+}

+ 146 - 0
BaseCallCenter.BLL/T_Sys_WorkTimes.cs

@@ -0,0 +1,146 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Sys_WorkTimes
10
+	/// </summary>
11
+	public partial class T_Sys_WorkTimes
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Sys_WorkTimes dal=new HySoft.BaseCallCenter.DAL.T_Sys_WorkTimes();
14
+		public T_Sys_WorkTimes()
15
+		{}
16
+		#region  BasicMethod
17
+		/// <summary>
18
+		/// 是否存在该记录
19
+		/// </summary>
20
+		public bool Exists(DateTime F_WorkStartTimes)
21
+		{
22
+			return dal.Exists(F_WorkStartTimes);
23
+		}
24
+
25
+		/// <summary>
26
+		/// 增加一条数据
27
+		/// </summary>
28
+		public bool Add(HySoft.BaseCallCenter.Model.T_Sys_WorkTimes model)
29
+		{
30
+			return dal.Add(model);
31
+		}
32
+
33
+		/// <summary>
34
+		/// 更新一条数据
35
+		/// </summary>
36
+		public bool Update(HySoft.BaseCallCenter.Model.T_Sys_WorkTimes model)
37
+		{
38
+			return dal.Update(model);
39
+		}
40
+
41
+		/// <summary>
42
+		/// 删除一条数据
43
+		/// </summary>
44
+		public bool Delete(DateTime F_WorkStartTimes)
45
+		{
46
+			
47
+			return dal.Delete(F_WorkStartTimes);
48
+		}
49
+		/// <summary>
50
+		/// 删除一条数据
51
+		/// </summary>
52
+		public bool DeleteList(string F_WorkStartTimeslist )
53
+		{
54
+			return dal.DeleteList(F_WorkStartTimeslist );
55
+		}
56
+
57
+		/// <summary>
58
+		/// 得到一个对象实体
59
+		/// </summary>
60
+		public HySoft.BaseCallCenter.Model.T_Sys_WorkTimes GetModel(DateTime F_WorkStartTimes)
61
+		{
62
+			
63
+			return dal.GetModel(F_WorkStartTimes);
64
+		}
65
+
66
+		/// <summary>
67
+		/// 获得数据列表
68
+		/// </summary>
69
+		public DataSet GetList(string strWhere)
70
+		{
71
+			return dal.GetList(strWhere);
72
+		}
73
+		/// <summary>
74
+		/// 获得前几行数据
75
+		/// </summary>
76
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
77
+		{
78
+			return dal.GetList(Top,strWhere,filedOrder);
79
+		}
80
+		/// <summary>
81
+		/// 获得数据列表
82
+		/// </summary>
83
+		public List<HySoft.BaseCallCenter.Model.T_Sys_WorkTimes> GetModelList(string strWhere)
84
+		{
85
+			DataSet ds = dal.GetList(strWhere);
86
+			return DataTableToList(ds.Tables[0]);
87
+		}
88
+		/// <summary>
89
+		/// 获得数据列表
90
+		/// </summary>
91
+		public List<HySoft.BaseCallCenter.Model.T_Sys_WorkTimes> DataTableToList(DataTable dt)
92
+		{
93
+			List<HySoft.BaseCallCenter.Model.T_Sys_WorkTimes> modelList = new List<HySoft.BaseCallCenter.Model.T_Sys_WorkTimes>();
94
+			int rowsCount = dt.Rows.Count;
95
+			if (rowsCount > 0)
96
+			{
97
+				HySoft.BaseCallCenter.Model.T_Sys_WorkTimes model;
98
+				for (int n = 0; n < rowsCount; n++)
99
+				{
100
+					model = dal.DataRowToModel(dt.Rows[n]);
101
+					if (model != null)
102
+					{
103
+						modelList.Add(model);
104
+					}
105
+				}
106
+			}
107
+			return modelList;
108
+		}
109
+
110
+		/// <summary>
111
+		/// 获得数据列表
112
+		/// </summary>
113
+		public DataSet GetAllList()
114
+		{
115
+			return GetList("");
116
+		}
117
+
118
+		/// <summary>
119
+		/// 分页获取数据列表
120
+		/// </summary>
121
+		public int GetRecordCount(string strWhere)
122
+		{
123
+			return dal.GetRecordCount(strWhere);
124
+		}
125
+		/// <summary>
126
+		/// 分页获取数据列表
127
+		/// </summary>
128
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
129
+		{
130
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
131
+		}
132
+		/// <summary>
133
+		/// 分页获取数据列表
134
+		/// </summary>
135
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
136
+		//{
137
+			//return dal.GetList(PageSize,PageIndex,strWhere);
138
+		//}
139
+
140
+		#endregion  BasicMethod
141
+		#region  ExtensionMethod
142
+
143
+		#endregion  ExtensionMethod
144
+	}
145
+}
146
+

+ 217 - 0
BaseCallCenter.BLL/T_Wf_WorkFlow.cs

@@ -0,0 +1,217 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wf_WorkFlow
10
+	/// </summary>
11
+	public partial class T_Wf_WorkFlow
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wf_WorkFlow dal=new HySoft.BaseCallCenter.DAL.T_Wf_WorkFlow();
14
+		public T_Wf_WorkFlow()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int F_ID)
30
+		{
31
+			return dal.Exists(F_ID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool  Add(HySoft.BaseCallCenter.Model.T_Wf_WorkFlow model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wf_WorkFlow model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_ID)
54
+		{
55
+			
56
+			return dal.Delete(F_ID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_IDlist )
62
+		{
63
+			return dal.DeleteList(F_IDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_Wf_WorkFlow GetModel(int F_ID)
70
+		{
71
+			
72
+			return dal.GetModel(F_ID);
73
+		}
74
+
75
+		/// <summary>
76
+		/// 获得数据列表
77
+		/// </summary>
78
+		public DataSet GetList(string strWhere)
79
+		{
80
+			return dal.GetList(strWhere);
81
+		}
82
+		/// <summary>
83
+		/// 获得前几行数据
84
+		/// </summary>
85
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
86
+		{
87
+			return dal.GetList(Top,strWhere,filedOrder);
88
+		}
89
+		/// <summary>
90
+		/// 获得数据列表
91
+		/// </summary>
92
+		public List<HySoft.BaseCallCenter.Model.T_Wf_WorkFlow> GetModelList(string strWhere)
93
+		{
94
+			DataSet ds = dal.GetList(strWhere);
95
+			return DataTableToList(ds.Tables[0]);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+		public List<HySoft.BaseCallCenter.Model.T_Wf_WorkFlow> DataTableToList(DataTable dt)
101
+		{
102
+			List<HySoft.BaseCallCenter.Model.T_Wf_WorkFlow> modelList = new List<HySoft.BaseCallCenter.Model.T_Wf_WorkFlow>();
103
+			int rowsCount = dt.Rows.Count;
104
+			if (rowsCount > 0)
105
+			{
106
+				HySoft.BaseCallCenter.Model.T_Wf_WorkFlow model;
107
+				for (int n = 0; n < rowsCount; n++)
108
+				{
109
+					model = new HySoft.BaseCallCenter.Model.T_Wf_WorkFlow();
110
+					if(dt.Rows[n]["F_ID"]!=null && dt.Rows[n]["F_ID"].ToString()!="")
111
+					{
112
+						model.F_ID=int.Parse(dt.Rows[n]["F_ID"].ToString());
113
+					}
114
+					if(dt.Rows[n]["F_Name"]!=null && dt.Rows[n]["F_Name"].ToString()!="")
115
+					{
116
+					model.F_Name=dt.Rows[n]["F_Name"].ToString();
117
+					}
118
+					if(dt.Rows[n]["F_CategoryID"]!=null && dt.Rows[n]["F_CategoryID"].ToString()!="")
119
+					{
120
+						model.F_CategoryID=int.Parse(dt.Rows[n]["F_CategoryID"].ToString());
121
+					}
122
+					if(dt.Rows[n]["F_CategoryName"]!=null && dt.Rows[n]["F_CategoryName"].ToString()!="")
123
+					{
124
+					model.F_CategoryName=dt.Rows[n]["F_CategoryName"].ToString();
125
+					}
126
+					if(dt.Rows[n]["F_State"]!=null && dt.Rows[n]["F_State"].ToString()!="")
127
+					{
128
+						if((dt.Rows[n]["F_State"].ToString()=="1")||(dt.Rows[n]["F_State"].ToString().ToLower()=="true"))
129
+						{
130
+						model.F_State=true;
131
+						}
132
+						else
133
+						{
134
+							model.F_State=false;
135
+						}
136
+					}
137
+					if(dt.Rows[n]["F_StartDate"]!=null && dt.Rows[n]["F_StartDate"].ToString()!="")
138
+					{
139
+						model.F_StartDate=DateTime.Parse(dt.Rows[n]["F_StartDate"].ToString());
140
+					}
141
+					if(dt.Rows[n]["F_CreateDate"]!=null && dt.Rows[n]["F_CreateDate"].ToString()!="")
142
+					{
143
+						model.F_CreateDate=DateTime.Parse(dt.Rows[n]["F_CreateDate"].ToString());
144
+					}
145
+					if(dt.Rows[n]["F_CreateBy"]!=null && dt.Rows[n]["F_CreateBy"].ToString()!="")
146
+					{
147
+						model.F_CreateBy=int.Parse(dt.Rows[n]["F_CreateBy"].ToString());
148
+					}
149
+					if(dt.Rows[n]["F_CreateName"]!=null && dt.Rows[n]["F_CreateName"].ToString()!="")
150
+					{
151
+					model.F_CreateName=dt.Rows[n]["F_CreateName"].ToString();
152
+					}
153
+					if(dt.Rows[n]["F_EditDate"]!=null && dt.Rows[n]["F_EditDate"].ToString()!="")
154
+					{
155
+						model.F_EditDate=DateTime.Parse(dt.Rows[n]["F_EditDate"].ToString());
156
+					}
157
+					if(dt.Rows[n]["F_EditBy"]!=null && dt.Rows[n]["F_EditBy"].ToString()!="")
158
+					{
159
+						model.F_EditBy=int.Parse(dt.Rows[n]["F_EditBy"].ToString());
160
+					}
161
+					if(dt.Rows[n]["F_EditName"]!=null && dt.Rows[n]["F_EditName"].ToString()!="")
162
+					{
163
+					model.F_EditName=dt.Rows[n]["F_EditName"].ToString();
164
+					}
165
+					if(dt.Rows[n]["F_XML"]!=null && dt.Rows[n]["F_XML"].ToString()!="")
166
+					{
167
+					model.F_XML=dt.Rows[n]["F_XML"].ToString();
168
+					}
169
+					if(dt.Rows[n]["F_EntityId"]!=null && dt.Rows[n]["F_EntityId"].ToString()!="")
170
+					{
171
+						model.F_EntityId=int.Parse(dt.Rows[n]["F_EntityId"].ToString());
172
+					}
173
+					if(dt.Rows[n]["F_MarkId"]!=null && dt.Rows[n]["F_MarkId"].ToString()!="")
174
+					{
175
+						model.F_MarkId=int.Parse(dt.Rows[n]["F_MarkId"].ToString());
176
+					}
177
+					if(dt.Rows[n]["F_Useless"]!=null && dt.Rows[n]["F_Useless"].ToString()!="")
178
+					{
179
+						if((dt.Rows[n]["F_Useless"].ToString()=="1")||(dt.Rows[n]["F_Useless"].ToString().ToLower()=="true"))
180
+						{
181
+						model.F_Useless=true;
182
+						}
183
+						else
184
+						{
185
+							model.F_Useless=false;
186
+						}
187
+					}
188
+					if(dt.Rows[n]["F_VerID"]!=null && dt.Rows[n]["F_VerID"].ToString()!="")
189
+					{
190
+						model.F_VerID=int.Parse(dt.Rows[n]["F_VerID"].ToString());
191
+					}
192
+					modelList.Add(model);
193
+				}
194
+			}
195
+			return modelList;
196
+		}
197
+
198
+		/// <summary>
199
+		/// 获得数据列表
200
+		/// </summary>
201
+		public DataSet GetAllList()
202
+		{
203
+			return GetList("");
204
+		}
205
+
206
+		/// <summary>
207
+		/// 分页获取数据列表
208
+		/// </summary>
209
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
210
+		//{
211
+			//return dal.GetList(PageSize,PageIndex,strWhere);
212
+		//}
213
+
214
+		#endregion  Method
215
+	}
216
+}
217
+

+ 197 - 0
BaseCallCenter.BLL/T_Wo_StateAlarmDate.cs

@@ -0,0 +1,197 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_StateAlarmDate
10
+	/// </summary>
11
+	public partial class T_Wo_StateAlarmDate
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_StateAlarmDate dal=new HySoft.BaseCallCenter.DAL.T_Wo_StateAlarmDate();
14
+		public T_Wo_StateAlarmDate()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int F_Id)
30
+		{
31
+			return dal.Exists(F_Id);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool  Add(HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_Id)
54
+		{
55
+			
56
+			return dal.Delete(F_Id);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_Idlist )
62
+		{
63
+			return dal.DeleteList(F_Idlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+
75
+	
76
+
77
+		/// <summary>
78
+		/// 获得数据列表
79
+		/// </summary>
80
+		public DataSet GetList(string strWhere)
81
+		{
82
+			return dal.GetList(strWhere);
83
+		}
84
+		/// <summary>
85
+		/// 获得前几行数据
86
+		/// </summary>
87
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
88
+		{
89
+			return dal.GetList(Top,strWhere,filedOrder);
90
+		}
91
+		/// <summary>
92
+		/// 获得数据列表
93
+		/// </summary>
94
+		public List<HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate> GetModelList(string strWhere)
95
+		{
96
+			DataSet ds = dal.GetList(strWhere);
97
+			return DataTableToList(ds.Tables[0]);
98
+		}
99
+		/// <summary>
100
+		/// 获得数据列表
101
+		/// </summary>
102
+		public List<HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate> DataTableToList(DataTable dt)
103
+		{
104
+			List<HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate>();
105
+			int rowsCount = dt.Rows.Count;
106
+			if (rowsCount > 0)
107
+			{
108
+				HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate model;
109
+				for (int n = 0; n < rowsCount; n++)
110
+				{
111
+					model = new HySoft.BaseCallCenter.Model.T_Wo_StateAlarmDate();
112
+					if(dt.Rows[n]["F_Id"]!=null && dt.Rows[n]["F_Id"].ToString()!="")
113
+					{
114
+						model.F_Id=int.Parse(dt.Rows[n]["F_Id"].ToString());
115
+					}
116
+					if(dt.Rows[n]["F_DeptId"]!=null && dt.Rows[n]["F_DeptId"].ToString()!="")
117
+					{
118
+						model.F_DeptId=int.Parse(dt.Rows[n]["F_DeptId"].ToString());
119
+					}
120
+					if(dt.Rows[n]["F_DeptCode"]!=null && dt.Rows[n]["F_DeptCode"].ToString()!="")
121
+					{
122
+					model.F_DeptCode=dt.Rows[n]["F_DeptCode"].ToString();
123
+					}
124
+					if(dt.Rows[n]["F_WorkOrderTypeId"]!=null && dt.Rows[n]["F_WorkOrderTypeId"].ToString()!="")
125
+					{
126
+						model.F_WorkOrderTypeId=int.Parse(dt.Rows[n]["F_WorkOrderTypeId"].ToString());
127
+					}
128
+					if(dt.Rows[n]["F_WorkOrderStateId"]!=null && dt.Rows[n]["F_WorkOrderStateId"].ToString()!="")
129
+					{
130
+						model.F_WorkOrderStateId=int.Parse(dt.Rows[n]["F_WorkOrderStateId"].ToString());
131
+					}
132
+					if(dt.Rows[n]["F_Gcount"]!=null && dt.Rows[n]["F_Gcount"].ToString()!="")
133
+					{
134
+						model.F_Gcount=int.Parse(dt.Rows[n]["F_Gcount"].ToString());
135
+					}
136
+					if(dt.Rows[n]["F_Gunit"]!=null && dt.Rows[n]["F_Gunit"].ToString()!="")
137
+					{
138
+						model.F_Gunit=int.Parse(dt.Rows[n]["F_Gunit"].ToString());
139
+					}
140
+					if(dt.Rows[n]["F_Ccount"]!=null && dt.Rows[n]["F_Ccount"].ToString()!="")
141
+					{
142
+						model.F_Ccount=int.Parse(dt.Rows[n]["F_Ccount"].ToString());
143
+					}
144
+					if(dt.Rows[n]["F_Cunit"]!=null && dt.Rows[n]["F_Cunit"].ToString()!="")
145
+					{
146
+						model.F_Cunit=int.Parse(dt.Rows[n]["F_Cunit"].ToString());
147
+					}
148
+					if(dt.Rows[n]["F_IsMain"]!=null && dt.Rows[n]["F_IsMain"].ToString()!="")
149
+					{
150
+						model.F_IsMain=int.Parse(dt.Rows[n]["F_IsMain"].ToString());
151
+					}
152
+					if(dt.Rows[n]["F_DeleteFlag"]!=null && dt.Rows[n]["F_DeleteFlag"].ToString()!="")
153
+					{
154
+						model.F_DeleteFlag=int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
155
+					}
156
+					if(dt.Rows[n]["F_Createby"]!=null && dt.Rows[n]["F_Createby"].ToString()!="")
157
+					{
158
+						model.F_Createby=int.Parse(dt.Rows[n]["F_Createby"].ToString());
159
+					}
160
+					if(dt.Rows[n]["F_CreateDate"]!=null && dt.Rows[n]["F_CreateDate"].ToString()!="")
161
+					{
162
+						model.F_CreateDate=DateTime.Parse(dt.Rows[n]["F_CreateDate"].ToString());
163
+					}
164
+					if(dt.Rows[n]["F_ModifyBy"]!=null && dt.Rows[n]["F_ModifyBy"].ToString()!="")
165
+					{
166
+						model.F_ModifyBy=int.Parse(dt.Rows[n]["F_ModifyBy"].ToString());
167
+					}
168
+					if(dt.Rows[n]["F_ModifyDate"]!=null && dt.Rows[n]["F_ModifyDate"].ToString()!="")
169
+					{
170
+						model.F_ModifyDate=DateTime.Parse(dt.Rows[n]["F_ModifyDate"].ToString());
171
+					}
172
+					modelList.Add(model);
173
+				}
174
+			}
175
+			return modelList;
176
+		}
177
+
178
+		/// <summary>
179
+		/// 获得数据列表
180
+		/// </summary>
181
+		public DataSet GetAllList()
182
+		{
183
+			return GetList("");
184
+		}
185
+
186
+		/// <summary>
187
+		/// 分页获取数据列表
188
+		/// </summary>
189
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
190
+		//{
191
+			//return dal.GetList(PageSize,PageIndex,strWhere);
192
+		//}
193
+
194
+		#endregion  Method
195
+	}
196
+}
197
+

+ 193 - 0
BaseCallCenter.BLL/T_Wo_TypeAlarmDate.cs

@@ -0,0 +1,193 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_TypeAlarmDate
10
+	/// </summary>
11
+	public partial class T_Wo_TypeAlarmDate
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_TypeAlarmDate dal=new HySoft.BaseCallCenter.DAL.T_Wo_TypeAlarmDate();
14
+		public T_Wo_TypeAlarmDate()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int F_Id)
30
+		{
31
+			return dal.Exists(F_Id);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool  Add(HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_Id)
54
+		{
55
+			
56
+			return dal.Delete(F_Id);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_Idlist )
62
+		{
63
+			return dal.DeleteList(F_Idlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+
75
+	
76
+
77
+		/// <summary>
78
+		/// 获得数据列表
79
+		/// </summary>
80
+		public DataSet GetList(string strWhere)
81
+		{
82
+			return dal.GetList(strWhere);
83
+		}
84
+		/// <summary>
85
+		/// 获得前几行数据
86
+		/// </summary>
87
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
88
+		{
89
+			return dal.GetList(Top,strWhere,filedOrder);
90
+		}
91
+		/// <summary>
92
+		/// 获得数据列表
93
+		/// </summary>
94
+		public List<HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate> GetModelList(string strWhere)
95
+		{
96
+			DataSet ds = dal.GetList(strWhere);
97
+			return DataTableToList(ds.Tables[0]);
98
+		}
99
+		/// <summary>
100
+		/// 获得数据列表
101
+		/// </summary>
102
+		public List<HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate> DataTableToList(DataTable dt)
103
+		{
104
+			List<HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate>();
105
+			int rowsCount = dt.Rows.Count;
106
+			if (rowsCount > 0)
107
+			{
108
+				HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate model;
109
+				for (int n = 0; n < rowsCount; n++)
110
+				{
111
+					model = new HySoft.BaseCallCenter.Model.T_Wo_TypeAlarmDate();
112
+					if(dt.Rows[n]["F_Id"]!=null && dt.Rows[n]["F_Id"].ToString()!="")
113
+					{
114
+						model.F_Id=int.Parse(dt.Rows[n]["F_Id"].ToString());
115
+					}
116
+					if(dt.Rows[n]["F_DeptId"]!=null && dt.Rows[n]["F_DeptId"].ToString()!="")
117
+					{
118
+						model.F_DeptId=int.Parse(dt.Rows[n]["F_DeptId"].ToString());
119
+					}
120
+					if(dt.Rows[n]["F_DeptCode"]!=null && dt.Rows[n]["F_DeptCode"].ToString()!="")
121
+					{
122
+					model.F_DeptCode=dt.Rows[n]["F_DeptCode"].ToString();
123
+					}
124
+					if(dt.Rows[n]["F_WorkOrderTypeId"]!=null && dt.Rows[n]["F_WorkOrderTypeId"].ToString()!="")
125
+					{
126
+						model.F_WorkOrderTypeId=int.Parse(dt.Rows[n]["F_WorkOrderTypeId"].ToString());
127
+					}
128
+					if(dt.Rows[n]["F_Gcount"]!=null && dt.Rows[n]["F_Gcount"].ToString()!="")
129
+					{
130
+						model.F_Gcount=int.Parse(dt.Rows[n]["F_Gcount"].ToString());
131
+					}
132
+					if(dt.Rows[n]["F_Gunit"]!=null && dt.Rows[n]["F_Gunit"].ToString()!="")
133
+					{
134
+						model.F_Gunit=int.Parse(dt.Rows[n]["F_Gunit"].ToString());
135
+					}
136
+					if(dt.Rows[n]["F_Ccount"]!=null && dt.Rows[n]["F_Ccount"].ToString()!="")
137
+					{
138
+						model.F_Ccount=int.Parse(dt.Rows[n]["F_Ccount"].ToString());
139
+					}
140
+					if(dt.Rows[n]["F_Cunit"]!=null && dt.Rows[n]["F_Cunit"].ToString()!="")
141
+					{
142
+						model.F_Cunit=int.Parse(dt.Rows[n]["F_Cunit"].ToString());
143
+					}
144
+					if(dt.Rows[n]["F_IsMain"]!=null && dt.Rows[n]["F_IsMain"].ToString()!="")
145
+					{
146
+						model.F_IsMain=int.Parse(dt.Rows[n]["F_IsMain"].ToString());
147
+					}
148
+					if(dt.Rows[n]["F_DeleteFlag"]!=null && dt.Rows[n]["F_DeleteFlag"].ToString()!="")
149
+					{
150
+						model.F_DeleteFlag=int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
151
+					}
152
+					if(dt.Rows[n]["F_Createby"]!=null && dt.Rows[n]["F_Createby"].ToString()!="")
153
+					{
154
+						model.F_Createby=int.Parse(dt.Rows[n]["F_Createby"].ToString());
155
+					}
156
+					if(dt.Rows[n]["F_CreateDate"]!=null && dt.Rows[n]["F_CreateDate"].ToString()!="")
157
+					{
158
+						model.F_CreateDate=DateTime.Parse(dt.Rows[n]["F_CreateDate"].ToString());
159
+					}
160
+					if(dt.Rows[n]["F_ModifyBy"]!=null && dt.Rows[n]["F_ModifyBy"].ToString()!="")
161
+					{
162
+						model.F_ModifyBy=int.Parse(dt.Rows[n]["F_ModifyBy"].ToString());
163
+					}
164
+					if(dt.Rows[n]["F_ModifyDate"]!=null && dt.Rows[n]["F_ModifyDate"].ToString()!="")
165
+					{
166
+						model.F_ModifyDate=DateTime.Parse(dt.Rows[n]["F_ModifyDate"].ToString());
167
+					}
168
+					modelList.Add(model);
169
+				}
170
+			}
171
+			return modelList;
172
+		}
173
+
174
+		/// <summary>
175
+		/// 获得数据列表
176
+		/// </summary>
177
+		public DataSet GetAllList()
178
+		{
179
+			return GetList("");
180
+		}
181
+
182
+		/// <summary>
183
+		/// 分页获取数据列表
184
+		/// </summary>
185
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
186
+		//{
187
+			//return dal.GetList(PageSize,PageIndex,strWhere);
188
+		//}
189
+
190
+		#endregion  Method
191
+	}
192
+}
193
+

+ 523 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderBase.cs

@@ -0,0 +1,523 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+    /// <summary>
9
+    /// T_Wo_WorkOrderBase
10
+    /// </summary>
11
+    public partial class T_Wo_WorkOrderBase
12
+    {
13
+        private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderBase dal = new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderBase();
14
+        public T_Wo_WorkOrderBase()
15
+        { }
16
+        #region  Method
17
+
18
+        /// <summary>
19
+        /// 增加一条数据
20
+        /// </summary>
21
+        public int Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase model)
22
+        {
23
+            return dal.Add(model);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 更新一条数据
28
+        /// </summary>
29
+        public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase model)
30
+        {
31
+            return dal.Update(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新来电内容
36
+        /// </summary>
37
+        public bool Update1(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase model)
38
+        {
39
+            return dal.Update1(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_WORKORDERID)
46
+        {
47
+
48
+            return dal.Delete(F_WORKORDERID);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_WORKORDERIDlist)
54
+        {
55
+            return dal.DeleteList(F_WORKORDERIDlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase GetModel(int F_WORKORDERID)
62
+        {
63
+
64
+            return dal.GetModel(F_WORKORDERID);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 得到一个对象实体,从缓存中
69
+        /// </summary>
70
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase GetModelByCache(int F_WORKORDERID)
71
+        //{
72
+
73
+        //    string CacheKey = "T_Wo_WorkOrderBaseModel-" + F_WORKORDERID;
74
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
75
+        //    if (objModel == null)
76
+        //    {
77
+        //        try
78
+        //        {
79
+        //            objModel = dal.GetModel(F_WORKORDERID);
80
+        //            if (objModel != null)
81
+        //            {
82
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
83
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
84
+        //            }
85
+        //        }
86
+        //        catch{}
87
+        //    }
88
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase)objModel;
89
+        //}
90
+
91
+        /// <summary>
92
+        /// 获得数据列表
93
+        /// </summary>
94
+        public DataSet GetList(string strWhere)
95
+        {
96
+            return dal.GetList(strWhere);
97
+        }
98
+        /// <summary>
99
+        /// 获得前几行数据
100
+        /// </summary>
101
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
102
+        {
103
+            return dal.GetList(Top, strWhere, filedOrder);
104
+        }
105
+        /// <summary>
106
+        /// 获得数据列表
107
+        /// </summary>
108
+        public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase> GetModelList(string strWhere)
109
+        {
110
+            DataSet ds = dal.GetList(strWhere);
111
+            return DataTableToList(ds.Tables[0]);
112
+        }
113
+        /// <summary>
114
+        /// 获得数据列表
115
+        /// </summary>
116
+        public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase> DataTableToList(DataTable dt)
117
+        {
118
+            List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase>();
119
+            int rowsCount = dt.Rows.Count;
120
+            if (rowsCount > 0)
121
+            {
122
+                HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase model;
123
+                for (int n = 0; n < rowsCount; n++)
124
+                {
125
+                    model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderBase();
126
+                    if (dt.Rows[n]["F_WORKORDERID"] != null && dt.Rows[n]["F_WORKORDERID"].ToString() != "")
127
+                    {
128
+                        model.F_WORKORDERID = int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_WORKORDERTYPEID"] != null && dt.Rows[n]["F_WORKORDERTYPEID"].ToString() != "")
131
+                    {
132
+                        model.F_WORKORDERTYPEID = int.Parse(dt.Rows[n]["F_WORKORDERTYPEID"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_WORKORDERSTATEID"] != null && dt.Rows[n]["F_WORKORDERSTATEID"].ToString() != "")
135
+                    {
136
+                        model.F_WORKORDERSTATEID = int.Parse(dt.Rows[n]["F_WORKORDERSTATEID"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_CODE"] != null && dt.Rows[n]["F_CODE"].ToString() != "")
139
+                    {
140
+                        model.F_CODE = dt.Rows[n]["F_CODE"].ToString();
141
+                    }
142
+                    if (dt.Rows[n]["F_WORKORDERNAME"] != null && dt.Rows[n]["F_WORKORDERNAME"].ToString() != "")
143
+                    {
144
+                        model.F_WORKORDERNAME = dt.Rows[n]["F_WORKORDERNAME"].ToString();
145
+                    }
146
+                    if (dt.Rows[n]["F_NUMBER"] != null && dt.Rows[n]["F_NUMBER"].ToString() != "")
147
+                    {
148
+                        model.F_NUMBER = dt.Rows[n]["F_NUMBER"].ToString();
149
+                    }
150
+                    if (dt.Rows[n]["F_CUSTOMERNAME"] != null && dt.Rows[n]["F_CUSTOMERNAME"].ToString() != "")
151
+                    {
152
+                        model.F_CUSTOMERNAME = dt.Rows[n]["F_CUSTOMERNAME"].ToString();
153
+                    }
154
+                    if (dt.Rows[n]["F_CUSTOMERTELEPHONE"] != null && dt.Rows[n]["F_CUSTOMERTELEPHONE"].ToString() != "")
155
+                    {
156
+                        model.F_CUSTOMERTELEPHONE = dt.Rows[n]["F_CUSTOMERTELEPHONE"].ToString();
157
+                    }
158
+                    if (dt.Rows[n]["F_LINKMAN"] != null && dt.Rows[n]["F_LINKMAN"].ToString() != "")
159
+                    {
160
+                        model.F_LINKMAN = dt.Rows[n]["F_LINKMAN"].ToString();
161
+                    }
162
+                    if (dt.Rows[n]["F_LINKMANTELEPHONE"] != null && dt.Rows[n]["F_LINKMANTELEPHONE"].ToString() != "")
163
+                    {
164
+                        model.F_LINKMANTELEPHONE = dt.Rows[n]["F_LINKMANTELEPHONE"].ToString();
165
+                    }
166
+                    if (dt.Rows[n]["F_ADSLACCOUNT"] != null && dt.Rows[n]["F_ADSLACCOUNT"].ToString() != "")
167
+                    {
168
+                        model.F_ADSLACCOUNT = dt.Rows[n]["F_ADSLACCOUNT"].ToString();
169
+                    }
170
+                    if (dt.Rows[n]["F_BANDWIDTH"] != null && dt.Rows[n]["F_BANDWIDTH"].ToString() != "")
171
+                    {
172
+                        model.F_BANDWIDTH = dt.Rows[n]["F_BANDWIDTH"].ToString();
173
+                    }
174
+                    if (dt.Rows[n]["F_STANDARDADDRESS"] != null && dt.Rows[n]["F_STANDARDADDRESS"].ToString() != "")
175
+                    {
176
+                        model.F_STANDARDADDRESS = dt.Rows[n]["F_STANDARDADDRESS"].ToString();
177
+                    }
178
+                    if (dt.Rows[n]["F_INSTALLADDRESS"] != null && dt.Rows[n]["F_INSTALLADDRESS"].ToString() != "")
179
+                    {
180
+                        model.F_INSTALLADDRESS = dt.Rows[n]["F_INSTALLADDRESS"].ToString();
181
+                    }
182
+                    if (dt.Rows[n]["F_KSHADDRESSCODE"] != null && dt.Rows[n]["F_KSHADDRESSCODE"].ToString() != "")
183
+                    {
184
+                        model.F_KSHADDRESSCODE = dt.Rows[n]["F_KSHADDRESSCODE"].ToString();
185
+                    }
186
+                    if (dt.Rows[n]["F_PROVINCE"] != null && dt.Rows[n]["F_PROVINCE"].ToString() != "")
187
+                    {
188
+                        model.F_PROVINCE = dt.Rows[n]["F_PROVINCE"].ToString();
189
+                    }
190
+                    if (dt.Rows[n]["F_CITY"] != null && dt.Rows[n]["F_CITY"].ToString() != "")
191
+                    {
192
+                        model.F_CITY = dt.Rows[n]["F_CITY"].ToString();
193
+                    }
194
+                    if (dt.Rows[n]["F_AREA"] != null && dt.Rows[n]["F_AREA"].ToString() != "")
195
+                    {
196
+                        model.F_AREA = dt.Rows[n]["F_AREA"].ToString();
197
+                    }
198
+                    if (dt.Rows[n]["F_ROAD"] != null && dt.Rows[n]["F_ROAD"].ToString() != "")
199
+                    {
200
+                        model.F_ROAD = dt.Rows[n]["F_ROAD"].ToString();
201
+                    }
202
+                    if (dt.Rows[n]["F_HOUSING"] != null && dt.Rows[n]["F_HOUSING"].ToString() != "")
203
+                    {
204
+                        model.F_HOUSING = dt.Rows[n]["F_HOUSING"].ToString();
205
+                    }
206
+                    if (dt.Rows[n]["F_WORKORDERFROM"] != null && dt.Rows[n]["F_WORKORDERFROM"].ToString() != "")
207
+                    {
208
+                        model.F_WORKORDERFROM = dt.Rows[n]["F_WORKORDERFROM"].ToString();
209
+                    }
210
+                    if (dt.Rows[n]["F_WORKORDERLEVELID"] != null && dt.Rows[n]["F_WORKORDERLEVELID"].ToString() != "")
211
+                    {
212
+                        model.F_WORKORDERLEVELID = int.Parse(dt.Rows[n]["F_WORKORDERLEVELID"].ToString());
213
+                    }
214
+                    if (dt.Rows[n]["F_FILEFLAG"] != null && dt.Rows[n]["F_FILEFLAG"].ToString() != "")
215
+                    {
216
+                        model.F_FILEFLAG = int.Parse(dt.Rows[n]["F_FILEFLAG"].ToString());
217
+                    }
218
+                    if (dt.Rows[n]["F_CONTENT"] != null && dt.Rows[n]["F_CONTENT"].ToString() != "")
219
+                    {
220
+                        model.F_CONTENT = dt.Rows[n]["F_CONTENT"].ToString();
221
+                    }
222
+                    if (dt.Rows[n]["F_CREATEBY"] != null && dt.Rows[n]["F_CREATEBY"].ToString() != "")
223
+                    {
224
+                        model.F_CREATEBY = int.Parse(dt.Rows[n]["F_CREATEBY"].ToString());
225
+                    }
226
+                    if (dt.Rows[n]["F_CREATEDATE"] != null && dt.Rows[n]["F_CREATEDATE"].ToString() != "")
227
+                    {
228
+                        model.F_CREATEDATE = DateTime.Parse(dt.Rows[n]["F_CREATEDATE"].ToString());
229
+                    }
230
+                    if (dt.Rows[n]["F_DEPTCODE"] != null && dt.Rows[n]["F_DEPTCODE"].ToString() != "")
231
+                    {
232
+                        model.F_DEPTCODE = dt.Rows[n]["F_DEPTCODE"].ToString();
233
+                    }
234
+                    if (dt.Rows[n]["F_EMPCODE"] != null && dt.Rows[n]["F_EMPCODE"].ToString() != "")
235
+                    {
236
+                        model.F_EMPCODE = dt.Rows[n]["F_EMPCODE"].ToString();
237
+                    }
238
+                    if (dt.Rows[n]["F_DEPTID"] != null && dt.Rows[n]["F_DEPTID"].ToString() != "")
239
+                    {
240
+                        model.F_DEPTID = int.Parse(dt.Rows[n]["F_DEPTID"].ToString());
241
+                    }
242
+                    if (dt.Rows[n]["F_USERID"] != null && dt.Rows[n]["F_USERID"].ToString() != "")
243
+                    {
244
+                        model.F_USERID = int.Parse(dt.Rows[n]["F_USERID"].ToString());
245
+                    }
246
+                    if (dt.Rows[n]["F_USERNAME"] != null && dt.Rows[n]["F_USERNAME"].ToString() != "")
247
+                    {
248
+                        model.F_USERNAME = dt.Rows[n]["F_USERNAME"].ToString();
249
+                    }
250
+                    if (dt.Rows[n]["F_RETURNVISITFLAG"] != null && dt.Rows[n]["F_RETURNVISITFLAG"].ToString() != "")
251
+                    {
252
+                        model.F_RETURNVISITFLAG = int.Parse(dt.Rows[n]["F_RETURNVISITFLAG"].ToString());
253
+                    }
254
+                    if (dt.Rows[n]["F_RETURNVISITSTATE"] != null && dt.Rows[n]["F_RETURNVISITSTATE"].ToString() != "")
255
+                    {
256
+                        model.F_RETURNVISITSTATE = int.Parse(dt.Rows[n]["F_RETURNVISITSTATE"].ToString());
257
+                    }
258
+                    if (dt.Rows[n]["F_RETURNVISITRESULT"] != null && dt.Rows[n]["F_RETURNVISITRESULT"].ToString() != "")
259
+                    {
260
+                        model.F_RETURNVISITRESULT = int.Parse(dt.Rows[n]["F_RETURNVISITRESULT"].ToString());
261
+                    }
262
+                    if (dt.Rows[n]["F_RETURNVISITCONTENT"] != null && dt.Rows[n]["F_RETURNVISITCONTENT"].ToString() != "")
263
+                    {
264
+                        model.F_RETURNVISITCONTENT = dt.Rows[n]["F_RETURNVISITCONTENT"].ToString();
265
+                    }
266
+                    if (dt.Rows[n]["F_DELETEFLAG"] != null && dt.Rows[n]["F_DELETEFLAG"].ToString() != "")
267
+                    {
268
+                        model.F_DELETEFLAG = int.Parse(dt.Rows[n]["F_DELETEFLAG"].ToString());
269
+                    }
270
+                    if (dt.Rows[n]["F_ALLUSETIMES"] != null && dt.Rows[n]["F_ALLUSETIMES"].ToString() != "")
271
+                    {
272
+                        model.F_ALLUSETIMES = int.Parse(dt.Rows[n]["F_ALLUSETIMES"].ToString());
273
+                    }
274
+                    if (dt.Rows[n]["F_STARTTIME"] != null && dt.Rows[n]["F_STARTTIME"].ToString() != "")
275
+                    {
276
+                        model.F_STARTTIME = DateTime.Parse(dt.Rows[n]["F_STARTTIME"].ToString());
277
+                    }
278
+                    if (dt.Rows[n]["F_ENDTIME"] != null && dt.Rows[n]["F_ENDTIME"].ToString() != "")
279
+                    {
280
+                        model.F_ENDTIME = DateTime.Parse(dt.Rows[n]["F_ENDTIME"].ToString());
281
+                    }
282
+                    if (dt.Rows[n]["F_REMAINDERTIME"] != null && dt.Rows[n]["F_REMAINDERTIME"].ToString() != "")
283
+                    {
284
+                        model.F_REMAINDERTIME = DateTime.Parse(dt.Rows[n]["F_REMAINDERTIME"].ToString());
285
+                    }
286
+                    if (dt.Rows[n]["F_REMAINDERENDTIME"] != null && dt.Rows[n]["F_REMAINDERENDTIME"].ToString() != "")
287
+                    {
288
+                        model.F_REMAINDERENDTIME = DateTime.Parse(dt.Rows[n]["F_REMAINDERENDTIME"].ToString());
289
+                    }
290
+                    if (dt.Rows[n]["F_SUBSCRIBETIME1"] != null && dt.Rows[n]["F_SUBSCRIBETIME1"].ToString() != "")
291
+                    {
292
+                        model.F_SUBSCRIBETIME1 = DateTime.Parse(dt.Rows[n]["F_SUBSCRIBETIME1"].ToString());
293
+                    }
294
+                    if (dt.Rows[n]["F_SUBSCRIBETIME2"] != null && dt.Rows[n]["F_SUBSCRIBETIME2"].ToString() != "")
295
+                    {
296
+                        model.F_SUBSCRIBETIME2 = DateTime.Parse(dt.Rows[n]["F_SUBSCRIBETIME2"].ToString());
297
+                    }
298
+                    if (dt.Rows[n]["F_ACCEPTTIMELIMIT"] != null && dt.Rows[n]["F_ACCEPTTIMELIMIT"].ToString() != "")
299
+                    {
300
+                        model.F_ACCEPTTIMELIMIT = DateTime.Parse(dt.Rows[n]["F_ACCEPTTIMELIMIT"].ToString());
301
+                    }
302
+                    if (dt.Rows[n]["F_ASKFINISHTIME"] != null && dt.Rows[n]["F_ASKFINISHTIME"].ToString() != "")
303
+                    {
304
+                        model.F_ASKFINISHTIME = DateTime.Parse(dt.Rows[n]["F_ASKFINISHTIME"].ToString());
305
+                    }
306
+                    if (dt.Rows[n]["F_OVERTIMES"] != null && dt.Rows[n]["F_OVERTIMES"].ToString() != "")
307
+                    {
308
+                        model.F_OVERTIMES = int.Parse(dt.Rows[n]["F_OVERTIMES"].ToString());
309
+                    }
310
+                    if (dt.Rows[n]["F_FORMID"] != null && dt.Rows[n]["F_FORMID"].ToString() != "")
311
+                    {
312
+                        model.F_FORMID = int.Parse(dt.Rows[n]["F_FORMID"].ToString());
313
+                    }
314
+                    if (dt.Rows[n]["F_HASTENCOUNTS"] != null && dt.Rows[n]["F_HASTENCOUNTS"].ToString() != "")
315
+                    {
316
+                        model.F_HASTENCOUNTS = int.Parse(dt.Rows[n]["F_HASTENCOUNTS"].ToString());
317
+                    }
318
+                    if (dt.Rows[n]["F_RANGEID"] != null && dt.Rows[n]["F_RANGEID"].ToString() != "")
319
+                    {
320
+                        model.F_RANGEID = decimal.Parse(dt.Rows[n]["F_RANGEID"].ToString());
321
+                    }
322
+                    if (dt.Rows[n]["F_RANGEX"] != null && dt.Rows[n]["F_RANGEX"].ToString() != "")
323
+                    {
324
+                        model.F_RANGEX = decimal.Parse(dt.Rows[n]["F_RANGEX"].ToString());
325
+                    }
326
+                    if (dt.Rows[n]["F_RANGEY"] != null && dt.Rows[n]["F_RANGEY"].ToString() != "")
327
+                    {
328
+                        model.F_RANGEY = decimal.Parse(dt.Rows[n]["F_RANGEY"].ToString());
329
+                    }
330
+                    if (dt.Rows[n]["F_INSTANCEID"] != null && dt.Rows[n]["F_INSTANCEID"].ToString() != "")
331
+                    {
332
+                        model.F_INSTANCEID = int.Parse(dt.Rows[n]["F_INSTANCEID"].ToString());
333
+                    }
334
+                    if (dt.Rows[n]["F_CUSTOMERID"] != null && dt.Rows[n]["F_CUSTOMERID"].ToString() != "")
335
+                    {
336
+                        model.F_CUSTOMERID = int.Parse(dt.Rows[n]["F_CUSTOMERID"].ToString());
337
+                    }
338
+                    if (dt.Rows[n]["F_REPAIRMANID"] != null && dt.Rows[n]["F_REPAIRMANID"].ToString() != "")
339
+                    {
340
+                        model.F_REPAIRMANID = int.Parse(dt.Rows[n]["F_REPAIRMANID"].ToString());
341
+                    }
342
+                    if (dt.Rows[n]["F_REPAIRMANNAME"] != null && dt.Rows[n]["F_REPAIRMANNAME"].ToString() != "")
343
+                    {
344
+                        model.F_REPAIRMANNAME = dt.Rows[n]["F_REPAIRMANNAME"].ToString();
345
+                    }
346
+                    if (dt.Rows[n]["F_REPAIRMANPHONE"] != null && dt.Rows[n]["F_REPAIRMANPHONE"].ToString() != "")
347
+                    {
348
+                        model.F_REPAIRMANPHONE = dt.Rows[n]["F_REPAIRMANPHONE"].ToString();
349
+                    }
350
+                    if (dt.Rows[n]["F_REPAIRREQUEST"] != null && dt.Rows[n]["F_REPAIRREQUEST"].ToString() != "")
351
+                    {
352
+                        model.F_REPAIRREQUEST = dt.Rows[n]["F_REPAIRREQUEST"].ToString();
353
+                    }
354
+                    if (dt.Rows[n]["F_REPAIRCLOSEMANID"] != null && dt.Rows[n]["F_REPAIRCLOSEMANID"].ToString() != "")
355
+                    {
356
+                        model.F_REPAIRCLOSEMANID = int.Parse(dt.Rows[n]["F_REPAIRCLOSEMANID"].ToString());
357
+                    }
358
+                    if (dt.Rows[n]["F_REPAIRCLOSEMANNAME"] != null && dt.Rows[n]["F_REPAIRCLOSEMANNAME"].ToString() != "")
359
+                    {
360
+                        model.F_REPAIRCLOSEMANNAME = dt.Rows[n]["F_REPAIRCLOSEMANNAME"].ToString();
361
+                    }
362
+                    if (dt.Rows[n]["F_REPAIRCLOSEREASONS"] != null && dt.Rows[n]["F_REPAIRCLOSEREASONS"].ToString() != "")
363
+                    {
364
+                        model.F_REPAIRCLOSEREASONS = dt.Rows[n]["F_REPAIRCLOSEREASONS"].ToString();
365
+                    }
366
+                    if (dt.Rows[n]["F_REPAIRCLOSEREPTID"] != null && dt.Rows[n]["F_REPAIRCLOSEREPTID"].ToString() != "")
367
+                    {
368
+                        model.F_REPAIRCLOSEREPTID = int.Parse(dt.Rows[n]["F_REPAIRCLOSEREPTID"].ToString());
369
+                    }
370
+                    if (dt.Rows[n]["F_REPAIRCLOSEREPT"] != null && dt.Rows[n]["F_REPAIRCLOSEREPT"].ToString() != "")
371
+                    {
372
+                        model.F_REPAIRCLOSEREPT = dt.Rows[n]["F_REPAIRCLOSEREPT"].ToString();
373
+                    }
374
+                    if (dt.Rows[n]["F_REPAIRLEVEL"] != null && dt.Rows[n]["F_REPAIRLEVEL"].ToString() != "")
375
+                    {
376
+                        model.F_REPAIRLEVEL = int.Parse(dt.Rows[n]["F_REPAIRLEVEL"].ToString());
377
+                    }
378
+                    if (dt.Rows[n]["F_REPAIRLEVELNAME"] != null && dt.Rows[n]["F_REPAIRLEVELNAME"].ToString() != "")
379
+                    {
380
+                        model.F_REPAIRLEVELNAME = dt.Rows[n]["F_REPAIRLEVELNAME"].ToString();
381
+                    }
382
+                    if (dt.Rows[n]["F_SENTORDERTIME"] != null && dt.Rows[n]["F_SENTORDERTIME"].ToString() != "")
383
+                    {
384
+                        model.F_SENTORDERTIME = DateTime.Parse(dt.Rows[n]["F_SENTORDERTIME"].ToString());
385
+                    }
386
+                    if (dt.Rows[n]["F_USERPHONE"] != null && dt.Rows[n]["F_USERPHONE"].ToString() != "")
387
+                    {
388
+                        model.F_USERPHONE = dt.Rows[n]["F_USERPHONE"].ToString();
389
+                    }
390
+                    if (dt.Rows[n]["F_RETURNVISITTIME"] != null && dt.Rows[n]["F_RETURNVISITTIME"].ToString() != "")
391
+                    {
392
+                        model.F_RETURNVISITTIME = DateTime.Parse(dt.Rows[n]["F_RETURNVISITTIME"].ToString());
393
+                    }
394
+                    if (dt.Rows[n]["F_REQUESTSERVICETIME"] != null && dt.Rows[n]["F_REQUESTSERVICETIME"].ToString() != "")
395
+                    {
396
+                        model.F_REQUESTSERVICETIME = DateTime.Parse(dt.Rows[n]["F_REQUESTSERVICETIME"].ToString());
397
+                    }
398
+                    if (dt.Rows[n]["F_SERVICETYPE"] != null && dt.Rows[n]["F_SERVICETYPE"].ToString() != "")
399
+                    {
400
+                        model.F_SERVICETYPE = dt.Rows[n]["F_SERVICETYPE"].ToString();
401
+                    }
402
+                    if (dt.Rows[n]["F_DECLARATIONTIME"] != null && dt.Rows[n]["F_DECLARATIONTIME"].ToString() != "")
403
+                    {
404
+                        model.F_DECLARATIONTIME = decimal.Parse(dt.Rows[n]["F_DECLARATIONTIME"].ToString());
405
+                    }
406
+                    if (dt.Rows[n]["F_SERVICENATURE"] != null && dt.Rows[n]["F_SERVICENATURE"].ToString() != "")
407
+                    {
408
+                        model.F_SERVICENATURE = dt.Rows[n]["F_SERVICENATURE"].ToString();
409
+                    }
410
+                    if (dt.Rows[n]["F_SERVICEWAY"] != null && dt.Rows[n]["F_SERVICEWAY"].ToString() != "")
411
+                    {
412
+                        model.F_SERVICEWAY = dt.Rows[n]["F_SERVICEWAY"].ToString();
413
+                    }
414
+                    if (dt.Rows[n]["F_RETURNVISITMAN"] != null && dt.Rows[n]["F_RETURNVISITMAN"].ToString() != "")
415
+                    {
416
+                        model.F_RETURNVISITMAN = dt.Rows[n]["F_RETURNVISITMAN"].ToString();
417
+                    }
418
+                    if (dt.Rows[n]["F_RETURNVISITID"] != null && dt.Rows[n]["F_RETURNVISITID"].ToString() != "")
419
+                    {
420
+                        model.F_RETURNVISITID = int.Parse(dt.Rows[n]["F_RETURNVISITID"].ToString());
421
+                    }
422
+                    if (dt.Rows[n]["F_RETURNVISITOPINION"] != null && dt.Rows[n]["F_RETURNVISITOPINION"].ToString() != "")
423
+                    {
424
+                        model.F_RETURNVISITOPINION = dt.Rows[n]["F_RETURNVISITOPINION"].ToString();
425
+                    }
426
+                    if (dt.Rows[n]["F_RETURNVISITPROBLEM"] != null && dt.Rows[n]["F_RETURNVISITPROBLEM"].ToString() != "")
427
+                    {
428
+                        model.F_RETURNVISITPROBLEM = dt.Rows[n]["F_RETURNVISITPROBLEM"].ToString();
429
+                    }
430
+
431
+
432
+                    if (dt.Rows[n]["F_CustomerNatureID"] != null && dt.Rows[n]["F_CustomerNatureID"].ToString() != "")
433
+                    {
434
+                        model.F_CustomerNatureID = int.Parse(dt.Rows[n]["F_CustomerNatureID"].ToString());
435
+                    }
436
+                    if (dt.Rows[n]["F_CustomerNature"] != null && dt.Rows[n]["F_CustomerNature"].ToString() != "")
437
+                    {
438
+                        model.F_CustomerNature = dt.Rows[n]["F_CustomerNature"].ToString();
439
+                    }
440
+                    if (dt.Rows[n]["F_SystemType"] != null && dt.Rows[n]["F_SystemType"].ToString() != "")
441
+                    {
442
+                        model.F_SystemType = dt.Rows[n]["F_SystemType"].ToString();
443
+                    }
444
+                    if (dt.Rows[n]["F_ChargeDept"] != null && dt.Rows[n]["F_ChargeDept"].ToString() != "")
445
+                    {
446
+                        model.F_ChargeDept = dt.Rows[n]["F_ChargeDept"].ToString();
447
+                    }
448
+                    if (dt.Rows[n]["F_QualityGuaranteeEndTime"] != null && dt.Rows[n]["F_QualityGuaranteeEndTime"].ToString() != "")
449
+                    {
450
+                        model.F_QualityGuaranteeEndTime = DateTime.Parse(dt.Rows[n]["F_QualityGuaranteeEndTime"].ToString());
451
+                    }
452
+                    if (dt.Rows[n]["F_SystemStartTime"] != null && dt.Rows[n]["F_SystemStartTime"].ToString() != "")
453
+                    {
454
+                        model.F_SystemStartTime = DateTime.Parse(dt.Rows[n]["F_SystemStartTime"].ToString());
455
+                    }
456
+                    if (dt.Rows[n]["F_CustomerClass"] != null && dt.Rows[n]["F_CustomerClass"].ToString() != "")
457
+                    {
458
+                        model.F_CustomerClass = dt.Rows[n]["F_CustomerClass"].ToString();
459
+                    }
460
+                    if (dt.Rows[n]["F_AfterSaleName"] != null && dt.Rows[n]["F_AfterSaleName"].ToString() != "")
461
+                    {
462
+                        model.F_AfterSaleName = dt.Rows[n]["F_AfterSaleName"].ToString();
463
+                    }
464
+                    if (dt.Rows[n]["F_ServiceDept"] != null && dt.Rows[n]["F_ServiceDept"].ToString() != "")
465
+                    {
466
+                        model.F_ServiceDept = dt.Rows[n]["F_ServiceDept"].ToString();
467
+                    }
468
+
469
+
470
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
471
+                    {
472
+                        model.F_Name = dt.Rows[n]["F_Name"].ToString();
473
+                    }
474
+
475
+                    if (dt.Rows[n]["F_TypeName"] != null && dt.Rows[n]["F_TypeName"].ToString() != "")
476
+                    {
477
+                        model.F_TypeName = dt.Rows[n]["F_TypeName"].ToString();
478
+                    }
479
+
480
+                    if (dt.Rows[n]["F_UserAccountName"] != null && dt.Rows[n]["F_UserAccountName"].ToString() != "")
481
+                    {
482
+                        model.F_UserAccountName = dt.Rows[n]["F_UserAccountName"].ToString();
483
+                    }
484
+                    modelList.Add(model);
485
+                }
486
+            }
487
+            return modelList;
488
+        }
489
+
490
+        /// <summary>
491
+        /// 获得数据列表
492
+        /// </summary>
493
+        public DataSet GetAllList()
494
+        {
495
+            return GetList("");
496
+        }
497
+
498
+        /// <summary>
499
+        /// 分页获取数据列表
500
+        /// </summary>
501
+        public int GetRecordCount(string strWhere)
502
+        {
503
+            return dal.GetRecordCount(strWhere);
504
+        }
505
+        /// <summary>
506
+        /// 分页获取数据列表
507
+        /// </summary>
508
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
509
+        {
510
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
511
+        }
512
+        /// <summary>
513
+        /// 分页获取数据列表
514
+        /// </summary>
515
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
516
+        //{
517
+        //return dal.GetList(PageSize,PageIndex,strWhere);
518
+        //}
519
+
520
+        #endregion  Method
521
+    }
522
+}
523
+

+ 149 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderButton.cs

@@ -0,0 +1,149 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderButton
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderButton
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderButton dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderButton();
14
+		public T_Wo_WorkOrderButton()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public bool Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int F_ButtonId)
38
+		{
39
+			//该表无主键信息,请自定义主键/条件字段
40
+            return dal.Delete(F_ButtonId);
41
+		}
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool DeleteList(string F_ButtonIdList)
46
+        {
47
+            return dal.DeleteList(F_ButtonIdList);
48
+        }
49
+
50
+
51
+		/// <summary>
52
+		/// 得到一个对象实体
53
+		/// </summary>
54
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton GetModel(int F_ButtonId)
55
+		{
56
+			//该表无主键信息,请自定义主键/条件字段
57
+            return dal.GetModel(F_ButtonId);
58
+		}
59
+
60
+
61
+		/// <summary>
62
+		/// 获得数据列表
63
+		/// </summary>
64
+		public DataSet GetList(string strWhere)
65
+		{
66
+			return dal.GetList(strWhere);
67
+		}
68
+		/// <summary>
69
+		/// 获得前几行数据
70
+		/// </summary>
71
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
72
+		{
73
+			return dal.GetList(Top,strWhere,filedOrder);
74
+		}
75
+		/// <summary>
76
+		/// 获得数据列表
77
+		/// </summary>
78
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton> GetModelList(string strWhere)
79
+		{
80
+			DataSet ds = dal.GetList(strWhere);
81
+			return DataTableToList(ds.Tables[0]);
82
+		}
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton> DataTableToList(DataTable dt)
87
+		{
88
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton>();
89
+			int rowsCount = dt.Rows.Count;
90
+			if (rowsCount > 0)
91
+			{
92
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton model;
93
+				for (int n = 0; n < rowsCount; n++)
94
+				{
95
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderButton();
96
+					if(dt.Rows[n]["F_ButtonId"]!=null && dt.Rows[n]["F_ButtonId"].ToString()!="")
97
+					{
98
+						model.F_ButtonId=int.Parse(dt.Rows[n]["F_ButtonId"].ToString());
99
+					}
100
+					if(dt.Rows[n]["F_Name"]!=null && dt.Rows[n]["F_Name"].ToString()!="")
101
+					{
102
+					model.F_Name=dt.Rows[n]["F_Name"].ToString();
103
+					}
104
+					if(dt.Rows[n]["F_Code"]!=null && dt.Rows[n]["F_Code"].ToString()!="")
105
+					{
106
+					model.F_Code=dt.Rows[n]["F_Code"].ToString();
107
+					}
108
+					if(dt.Rows[n]["F_Des"]!=null && dt.Rows[n]["F_Des"].ToString()!="")
109
+					{
110
+					model.F_Des=dt.Rows[n]["F_Des"].ToString();
111
+					}
112
+					if(dt.Rows[n]["F_Sort"]!=null && dt.Rows[n]["F_Sort"].ToString()!="")
113
+					{
114
+						model.F_Sort=int.Parse(dt.Rows[n]["F_Sort"].ToString());
115
+					}
116
+					if(dt.Rows[n]["F_Icon"]!=null && dt.Rows[n]["F_Icon"].ToString()!="")
117
+					{
118
+						model.F_Icon=int.Parse(dt.Rows[n]["F_Icon"].ToString());
119
+					}
120
+					if(dt.Rows[n]["F_DeleteFlag"]!=null && dt.Rows[n]["F_DeleteFlag"].ToString()!="")
121
+					{
122
+						model.F_DeleteFlag=int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
123
+					}
124
+					modelList.Add(model);
125
+				}
126
+			}
127
+			return modelList;
128
+		}
129
+
130
+		/// <summary>
131
+		/// 获得数据列表
132
+		/// </summary>
133
+		public DataSet GetAllList()
134
+		{
135
+			return GetList("");
136
+		}
137
+
138
+		/// <summary>
139
+		/// 分页获取数据列表
140
+		/// </summary>
141
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
142
+		//{
143
+			//return dal.GetList(PageSize,PageIndex,strWhere);
144
+		//}
145
+
146
+		#endregion  Method
147
+	}
148
+}
149
+

+ 182 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderConstructor.cs

@@ -0,0 +1,182 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderConstructor
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderConstructor
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderConstructor dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderConstructor();
14
+		public T_Wo_WorkOrderConstructor()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int F_ID)
38
+		{
39
+			
40
+			return dal.Delete(F_ID);
41
+		}
42
+
43
+        /// <summary>
44
+        /// 删除一条数据
45
+        /// </summary>
46
+        public bool DeleteOrderId(int F_WORKORDERID)
47
+        {
48
+
49
+            return dal.DeleteOrderId(F_WORKORDERID);
50
+        }
51
+		/// <summary>
52
+		/// 删除一条数据
53
+		/// </summary>
54
+		public bool DeleteList(string F_IDlist )
55
+		{
56
+			return dal.DeleteList(F_IDlist );
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体
61
+		/// </summary>
62
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor GetModel(int F_ID)
63
+		{
64
+			
65
+			return dal.GetModel(F_ID);
66
+		}
67
+
68
+		/// <summary>
69
+		/// 得到一个对象实体,从缓存中
70
+		/// </summary>
71
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor GetModelByCache(int F_ID)
72
+        //{
73
+			
74
+        //    string CacheKey = "T_Wo_WorkOrderConstructorModel-" + F_ID;
75
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
76
+        //    if (objModel == null)
77
+        //    {
78
+        //        try
79
+        //        {
80
+        //            objModel = dal.GetModel(F_ID);
81
+        //            if (objModel != null)
82
+        //            {
83
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
84
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
85
+        //            }
86
+        //        }
87
+        //        catch{}
88
+        //    }
89
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor)objModel;
90
+        //}
91
+
92
+		/// <summary>
93
+		/// 获得数据列表
94
+		/// </summary>
95
+		public DataSet GetList(string strWhere)
96
+		{
97
+			return dal.GetList(strWhere);
98
+		}
99
+		/// <summary>
100
+		/// 获得前几行数据
101
+		/// </summary>
102
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
103
+		{
104
+			return dal.GetList(Top,strWhere,filedOrder);
105
+		}
106
+		/// <summary>
107
+		/// 获得数据列表
108
+		/// </summary>
109
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor> GetModelList(string strWhere)
110
+		{
111
+			DataSet ds = dal.GetList(strWhere);
112
+			return DataTableToList(ds.Tables[0]);
113
+		}
114
+		/// <summary>
115
+		/// 获得数据列表
116
+		/// </summary>
117
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor> DataTableToList(DataTable dt)
118
+		{
119
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor>();
120
+			int rowsCount = dt.Rows.Count;
121
+			if (rowsCount > 0)
122
+			{
123
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor model;
124
+				for (int n = 0; n < rowsCount; n++)
125
+				{
126
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderConstructor();
127
+					if(dt.Rows[n]["F_ID"]!=null && dt.Rows[n]["F_ID"].ToString()!="")
128
+					{
129
+						model.F_ID=int.Parse(dt.Rows[n]["F_ID"].ToString());
130
+					}
131
+					if(dt.Rows[n]["F_WORKORDERID"]!=null && dt.Rows[n]["F_WORKORDERID"].ToString()!="")
132
+					{
133
+						model.F_WORKORDERID=int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
134
+					}
135
+					if(dt.Rows[n]["F_USERID"]!=null && dt.Rows[n]["F_USERID"].ToString()!="")
136
+					{
137
+						model.F_USERID=int.Parse(dt.Rows[n]["F_USERID"].ToString());
138
+					}
139
+					if(dt.Rows[n]["F_ISMAIN"]!=null && dt.Rows[n]["F_ISMAIN"].ToString()!="")
140
+					{
141
+						model.F_ISMAIN=int.Parse(dt.Rows[n]["F_ISMAIN"].ToString());
142
+					}
143
+					modelList.Add(model);
144
+				}
145
+			}
146
+			return modelList;
147
+		}
148
+
149
+		/// <summary>
150
+		/// 获得数据列表
151
+		/// </summary>
152
+		public DataSet GetAllList()
153
+		{
154
+			return GetList("");
155
+		}
156
+
157
+		/// <summary>
158
+		/// 分页获取数据列表
159
+		/// </summary>
160
+		public int GetRecordCount(string strWhere)
161
+		{
162
+			return dal.GetRecordCount(strWhere);
163
+		}
164
+		/// <summary>
165
+		/// 分页获取数据列表
166
+		/// </summary>
167
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
168
+		{
169
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
170
+		}
171
+		/// <summary>
172
+		/// 分页获取数据列表
173
+		/// </summary>
174
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
175
+		//{
176
+			//return dal.GetList(PageSize,PageIndex,strWhere);
177
+		//}
178
+
179
+		#endregion  Method
180
+	}
181
+}
182
+

+ 189 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderEvaluation.cs

@@ -0,0 +1,189 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderEvaluation
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderEvaluation
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderEvaluation dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderEvaluation();
14
+		public T_Wo_WorkOrderEvaluation()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int F_ID)
38
+		{
39
+			
40
+			return dal.Delete(F_ID);
41
+		}
42
+		/// <summary>
43
+		/// 删除一条数据
44
+		/// </summary>
45
+		public bool DeleteList(string F_IDlist )
46
+		{
47
+			return dal.DeleteList(F_IDlist );
48
+		}
49
+
50
+		/// <summary>
51
+		/// 得到一个对象实体
52
+		/// </summary>
53
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation GetModel(int F_ID)
54
+		{
55
+			
56
+			return dal.GetModel(F_ID);
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体,从缓存中
61
+		/// </summary>
62
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation GetModelByCache(int F_ID)
63
+        //{
64
+			
65
+        //    string CacheKey = "T_Wo_WorkOrderEvaluationModel-" + F_ID;
66
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
67
+        //    if (objModel == null)
68
+        //    {
69
+        //        try
70
+        //        {
71
+        //            objModel = dal.GetModel(F_ID);
72
+        //            if (objModel != null)
73
+        //            {
74
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
75
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
76
+        //            }
77
+        //        }
78
+        //        catch{}
79
+        //    }
80
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation)objModel;
81
+        //}
82
+
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public DataSet GetList(string strWhere)
87
+		{
88
+			return dal.GetList(strWhere);
89
+		}
90
+		/// <summary>
91
+		/// 获得前几行数据
92
+		/// </summary>
93
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
94
+		{
95
+			return dal.GetList(Top,strWhere,filedOrder);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation> GetModelList(string strWhere)
101
+		{
102
+			DataSet ds = dal.GetList(strWhere);
103
+			return DataTableToList(ds.Tables[0]);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation> DataTableToList(DataTable dt)
109
+		{
110
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation>();
111
+			int rowsCount = dt.Rows.Count;
112
+			if (rowsCount > 0)
113
+			{
114
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation model;
115
+				for (int n = 0; n < rowsCount; n++)
116
+				{
117
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderEvaluation();
118
+					if(dt.Rows[n]["F_ID"]!=null && dt.Rows[n]["F_ID"].ToString()!="")
119
+					{
120
+						model.F_ID=int.Parse(dt.Rows[n]["F_ID"].ToString());
121
+					}
122
+					if(dt.Rows[n]["F_WORKORDERID"]!=null && dt.Rows[n]["F_WORKORDERID"].ToString()!="")
123
+					{
124
+						model.F_WORKORDERID=int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
125
+					}
126
+					if(dt.Rows[n]["F_USERID"]!=null && dt.Rows[n]["F_USERID"].ToString()!="")
127
+					{
128
+						model.F_USERID=int.Parse(dt.Rows[n]["F_USERID"].ToString());
129
+					}
130
+					if(dt.Rows[n]["F_DETAILID"]!=null && dt.Rows[n]["F_DETAILID"].ToString()!="")
131
+					{
132
+						model.F_DETAILID=int.Parse(dt.Rows[n]["F_DETAILID"].ToString());
133
+					}
134
+					if(dt.Rows[n]["F_TASKID"]!=null && dt.Rows[n]["F_TASKID"].ToString()!="")
135
+					{
136
+						model.F_TASKID=int.Parse(dt.Rows[n]["F_TASKID"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_EVALUATIONID"]!=null && dt.Rows[n]["F_EVALUATIONID"].ToString()!="")
139
+					{
140
+						model.F_EVALUATIONID=int.Parse(dt.Rows[n]["F_EVALUATIONID"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_X"]!=null && dt.Rows[n]["F_X"].ToString()!="")
143
+					{
144
+						model.F_X=decimal.Parse(dt.Rows[n]["F_X"].ToString());
145
+					}
146
+					if(dt.Rows[n]["F_Y"]!=null && dt.Rows[n]["F_Y"].ToString()!="")
147
+					{
148
+						model.F_Y=decimal.Parse(dt.Rows[n]["F_Y"].ToString());
149
+					}
150
+					modelList.Add(model);
151
+				}
152
+			}
153
+			return modelList;
154
+		}
155
+
156
+		/// <summary>
157
+		/// 获得数据列表
158
+		/// </summary>
159
+		public DataSet GetAllList()
160
+		{
161
+			return GetList("");
162
+		}
163
+
164
+		/// <summary>
165
+		/// 分页获取数据列表
166
+		/// </summary>
167
+		public int GetRecordCount(string strWhere)
168
+		{
169
+			return dal.GetRecordCount(strWhere);
170
+		}
171
+		/// <summary>
172
+		/// 分页获取数据列表
173
+		/// </summary>
174
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
175
+		{
176
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
177
+		}
178
+		/// <summary>
179
+		/// 分页获取数据列表
180
+		/// </summary>
181
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
182
+		//{
183
+			//return dal.GetList(PageSize,PageIndex,strWhere);
184
+		//}
185
+
186
+		#endregion  Method
187
+	}
188
+}
189
+

+ 206 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderFiles.cs

@@ -0,0 +1,206 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderFiles
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderFiles
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderFiles dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderFiles();
14
+		public T_Wo_WorkOrderFiles()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+        public bool Update1(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles model)
35
+        {
36
+            return dal.Update1(model);
37
+        }
38
+
39
+		/// <summary>
40
+		/// 删除一条数据
41
+		/// </summary>
42
+		public bool Delete(int F_FILEID)
43
+		{
44
+			
45
+			return dal.Delete(F_FILEID);
46
+		}
47
+		/// <summary>
48
+		/// 删除一条数据
49
+		/// </summary>
50
+		public bool DeleteList(string F_FILEIDlist )
51
+		{
52
+			return dal.DeleteList(F_FILEIDlist );
53
+		}
54
+
55
+		/// <summary>
56
+		/// 得到一个对象实体
57
+		/// </summary>
58
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles GetModel(int F_FILEID)
59
+		{
60
+			
61
+			return dal.GetModel(F_FILEID);
62
+		}
63
+
64
+		/// <summary>
65
+		/// 得到一个对象实体,从缓存中
66
+		/// </summary>
67
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles GetModelByCache(int F_FILEID)
68
+        //{
69
+			
70
+        //    string CacheKey = "T_Wo_WorkOrderFilesModel-" + F_FILEID;
71
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
72
+        //    if (objModel == null)
73
+        //    {
74
+        //        try
75
+        //        {
76
+        //            objModel = dal.GetModel(F_FILEID);
77
+        //            if (objModel != null)
78
+        //            {
79
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
80
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
81
+        //            }
82
+        //        }
83
+        //        catch{}
84
+        //    }
85
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles)objModel;
86
+        //}
87
+
88
+		/// <summary>
89
+		/// 获得数据列表
90
+		/// </summary>
91
+		public DataSet GetList(string strWhere)
92
+		{
93
+			return dal.GetList(strWhere);
94
+		}
95
+		/// <summary>
96
+		/// 获得前几行数据
97
+		/// </summary>
98
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
99
+		{
100
+			return dal.GetList(Top,strWhere,filedOrder);
101
+		}
102
+		/// <summary>
103
+		/// 获得数据列表
104
+		/// </summary>
105
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles> GetModelList(string strWhere)
106
+		{
107
+			DataSet ds = dal.GetList(strWhere);
108
+			return DataTableToList(ds.Tables[0]);
109
+		}
110
+		/// <summary>
111
+		/// 获得数据列表
112
+		/// </summary>
113
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles> DataTableToList(DataTable dt)
114
+		{
115
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles>();
116
+			int rowsCount = dt.Rows.Count;
117
+			if (rowsCount > 0)
118
+			{
119
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles model;
120
+				for (int n = 0; n < rowsCount; n++)
121
+				{
122
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderFiles();
123
+					if(dt.Rows[n]["F_FILEID"]!=null && dt.Rows[n]["F_FILEID"].ToString()!="")
124
+					{
125
+						model.F_FILEID=int.Parse(dt.Rows[n]["F_FILEID"].ToString());
126
+					}
127
+					if(dt.Rows[n]["F_WORKORDERID"]!=null && dt.Rows[n]["F_WORKORDERID"].ToString()!="")
128
+					{
129
+						model.F_WORKORDERID=int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
130
+					}
131
+					if(dt.Rows[n]["F_NAME"]!=null && dt.Rows[n]["F_NAME"].ToString()!="")
132
+					{
133
+					model.F_NAME=dt.Rows[n]["F_NAME"].ToString();
134
+					}
135
+					if(dt.Rows[n]["F_PATH"]!=null && dt.Rows[n]["F_PATH"].ToString()!="")
136
+					{
137
+					model.F_PATH=dt.Rows[n]["F_PATH"].ToString();
138
+					}
139
+					if(dt.Rows[n]["F_DES"]!=null && dt.Rows[n]["F_DES"].ToString()!="")
140
+					{
141
+					model.F_DES=dt.Rows[n]["F_DES"].ToString();
142
+					}
143
+					if(dt.Rows[n]["F_TYPE"]!=null && dt.Rows[n]["F_TYPE"].ToString()!="")
144
+					{
145
+					model.F_TYPE=dt.Rows[n]["F_TYPE"].ToString();
146
+					}
147
+					if(dt.Rows[n]["F_SIZE"]!=null && dt.Rows[n]["F_SIZE"].ToString()!="")
148
+					{
149
+						model.F_SIZE=decimal.Parse(dt.Rows[n]["F_SIZE"].ToString());
150
+					}
151
+					if(dt.Rows[n]["F_UPLOADSTATE"]!=null && dt.Rows[n]["F_UPLOADSTATE"].ToString()!="")
152
+					{
153
+						model.F_UPLOADSTATE=int.Parse(dt.Rows[n]["F_UPLOADSTATE"].ToString());
154
+					}
155
+					if(dt.Rows[n]["F_USERID"]!=null && dt.Rows[n]["F_USERID"].ToString()!="")
156
+					{
157
+						model.F_USERID=int.Parse(dt.Rows[n]["F_USERID"].ToString());
158
+					}
159
+					if(dt.Rows[n]["F_UPLOADDATE"]!=null && dt.Rows[n]["F_UPLOADDATE"].ToString()!="")
160
+					{
161
+						model.F_UPLOADDATE=DateTime.Parse(dt.Rows[n]["F_UPLOADDATE"].ToString());
162
+					}
163
+					if(dt.Rows[n]["F_HOISTYID"]!=null && dt.Rows[n]["F_HOISTYID"].ToString()!="")
164
+					{
165
+					model.F_HOISTYID=dt.Rows[n]["F_HOISTYID"].ToString();
166
+					}
167
+					modelList.Add(model);
168
+				}
169
+			}
170
+			return modelList;
171
+		}
172
+
173
+		/// <summary>
174
+		/// 获得数据列表
175
+		/// </summary>
176
+		public DataSet GetAllList()
177
+		{
178
+			return GetList("");
179
+		}
180
+
181
+		/// <summary>
182
+		/// 分页获取数据列表
183
+		/// </summary>
184
+		public int GetRecordCount(string strWhere)
185
+		{
186
+			return dal.GetRecordCount(strWhere);
187
+		}
188
+		/// <summary>
189
+		/// 分页获取数据列表
190
+		/// </summary>
191
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
192
+		{
193
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
194
+		}
195
+		/// <summary>
196
+		/// 分页获取数据列表
197
+		/// </summary>
198
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
199
+		//{
200
+			//return dal.GetList(PageSize,PageIndex,strWhere);
201
+		//}
202
+
203
+		#endregion  Method
204
+	}
205
+}
206
+

+ 236 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderHistory.cs

@@ -0,0 +1,236 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+    /// <summary>
9
+    /// T_Wo_WorkOrderHistory
10
+    /// </summary>
11
+    public partial class T_Wo_WorkOrderHistory
12
+    {
13
+        private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderHistory dal = new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderHistory();
14
+        public T_Wo_WorkOrderHistory()
15
+        { }
16
+        #region  Method
17
+
18
+        /// <summary>
19
+        /// 增加一条数据
20
+        /// </summary>
21
+        public int Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory model)
22
+        {
23
+            return dal.Add(model);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 更新一条数据
28
+        /// </summary>
29
+        public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory model)
30
+        {
31
+            return dal.Update(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 删除一条数据
36
+        /// </summary>
37
+        public bool Delete(int F_HISTORYID)
38
+        {
39
+
40
+            return dal.Delete(F_HISTORYID);
41
+        }
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool DeleteList(string F_HISTORYIDlist)
46
+        {
47
+            return dal.DeleteList(F_HISTORYIDlist);
48
+        }
49
+
50
+        /// <summary>
51
+        /// 得到一个对象实体
52
+        /// </summary>
53
+        public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory GetModel(int F_HISTORYID)
54
+        {
55
+
56
+            return dal.GetModel(F_HISTORYID);
57
+        }
58
+
59
+        /// <summary>
60
+        /// 得到一个对象实体,从缓存中
61
+        /// </summary>
62
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory GetModelByCache(int F_HISTORYID)
63
+        //{
64
+
65
+        //    string CacheKey = "T_Wo_WorkOrderHistoryModel-" + F_HISTORYID;
66
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
67
+        //    if (objModel == null)
68
+        //    {
69
+        //        try
70
+        //        {
71
+        //            objModel = dal.GetModel(F_HISTORYID);
72
+        //            if (objModel != null)
73
+        //            {
74
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
75
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
76
+        //            }
77
+        //        }
78
+        //        catch{}
79
+        //    }
80
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory)objModel;
81
+        //}
82
+
83
+        /// <summary>
84
+        /// 获得数据列表
85
+        /// </summary>
86
+        public DataSet GetList(string strWhere)
87
+        {
88
+            return dal.GetList(strWhere);
89
+        }
90
+        public DataSet GetListView(string strWhere)
91
+        {
92
+            return dal.GetListView(strWhere);
93
+        }
94
+        /// <summary>
95
+        /// 获得数据列表
96
+        /// </summary>
97
+        public List<Model.T_Wo_WorkOrderHistory> DataTableToListDetail(DataTable dt)
98
+        {
99
+            List<Model.T_Wo_WorkOrderHistory> modelList = new List<Model.T_Wo_WorkOrderHistory>();
100
+            int rowsCount = dt.Rows.Count;
101
+            if (rowsCount > 0)
102
+            {
103
+                Model.T_Wo_WorkOrderHistory model;
104
+                for (int n = 0; n < rowsCount; n++)
105
+                {
106
+                    model = dal.DataRowToModelDetail(dt.Rows[n]);
107
+                    if (model != null)
108
+                    {
109
+                        modelList.Add(model);
110
+                    }
111
+                }
112
+            }
113
+            return modelList;
114
+        }
115
+        /// <summary>
116
+        /// 获得前几行数据
117
+        /// </summary>
118
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
119
+        {
120
+            return dal.GetList(Top, strWhere, filedOrder);
121
+        }
122
+        /// <summary>
123
+        /// 获得数据列表
124
+        /// </summary>
125
+        public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory> GetModelList(string strWhere)
126
+        {
127
+            DataSet ds = dal.GetList(strWhere);
128
+            return DataTableToList(ds.Tables[0]);
129
+        }
130
+        /// <summary>
131
+        /// 获得数据列表
132
+        /// </summary>
133
+        public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory> DataTableToList(DataTable dt)
134
+        {
135
+            List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory>();
136
+            int rowsCount = dt.Rows.Count;
137
+            if (rowsCount > 0)
138
+            {
139
+                HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory model;
140
+                for (int n = 0; n < rowsCount; n++)
141
+                {
142
+                    model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistory();
143
+                    if (dt.Rows[n]["F_HISTORYID"] != null && dt.Rows[n]["F_HISTORYID"].ToString() != "")
144
+                    {
145
+                        model.F_HISTORYID = int.Parse(dt.Rows[n]["F_HISTORYID"].ToString());
146
+                    }
147
+                    if (dt.Rows[n]["F_WORKORDERSTATEID"] != null && dt.Rows[n]["F_WORKORDERSTATEID"].ToString() != "")
148
+                    {
149
+                        model.F_WORKORDERSTATEID = int.Parse(dt.Rows[n]["F_WORKORDERSTATEID"].ToString());
150
+                    }
151
+                    if (dt.Rows[n]["F_OPTUSERID"] != null && dt.Rows[n]["F_OPTUSERID"].ToString() != "")
152
+                    {
153
+                        model.F_OPTUSERID = int.Parse(dt.Rows[n]["F_OPTUSERID"].ToString());
154
+                    }
155
+                    if (dt.Rows[n]["F_OPTDATE"] != null && dt.Rows[n]["F_OPTDATE"].ToString() != "")
156
+                    {
157
+                        model.F_OPTDATE = DateTime.Parse(dt.Rows[n]["F_OPTDATE"].ToString());
158
+                    }
159
+                    if (dt.Rows[n]["F_ELAPSEDTIME"] != null && dt.Rows[n]["F_ELAPSEDTIME"].ToString() != "")
160
+                    {
161
+                        model.F_ELAPSEDTIME = int.Parse(dt.Rows[n]["F_ELAPSEDTIME"].ToString());
162
+                    }
163
+                    if (dt.Rows[n]["F_NEXTOWNERARRID"] != null && dt.Rows[n]["F_NEXTOWNERARRID"].ToString() != "")
164
+                    {
165
+                        model.F_NEXTOWNERARRID = dt.Rows[n]["F_NEXTOWNERARRID"].ToString();
166
+                    }
167
+                    if (dt.Rows[n]["F_REMARK"] != null && dt.Rows[n]["F_REMARK"].ToString() != "")
168
+                    {
169
+                        model.F_REMARK = dt.Rows[n]["F_REMARK"].ToString();
170
+                    }
171
+                    if (dt.Rows[n]["F_OPTBTNID"] != null && dt.Rows[n]["F_OPTBTNID"].ToString() != "")
172
+                    {
173
+                        model.F_OPTBTNID = int.Parse(dt.Rows[n]["F_OPTBTNID"].ToString());
174
+                    }
175
+                    if (dt.Rows[n]["F_INSTANCEID"] != null && dt.Rows[n]["F_INSTANCEID"].ToString() != "")
176
+                    {
177
+                        model.F_INSTANCEID = int.Parse(dt.Rows[n]["F_INSTANCEID"].ToString());
178
+                    }
179
+                    if (dt.Rows[n]["F_TASKFLAG"] != null && dt.Rows[n]["F_TASKFLAG"].ToString() != "")
180
+                    {
181
+                        model.F_TASKFLAG = int.Parse(dt.Rows[n]["F_TASKFLAG"].ToString());
182
+                    }
183
+
184
+                    if (dt.Rows[n]["F_UserName"] != null && dt.Rows[n]["F_UserName"].ToString() != "")
185
+                    {
186
+                        model.F_UserName = dt.Rows[n]["F_UserName"].ToString();
187
+                    }
188
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
189
+                    {
190
+                        model.F_Name = dt.Rows[n]["F_Name"].ToString();
191
+                    }
192
+                    if (dt.Rows[n]["F_StateName"] != null && dt.Rows[n]["F_StateName"].ToString() != "")
193
+                    {
194
+                        model.F_StateName = dt.Rows[n]["F_StateName"].ToString();
195
+                    }
196
+
197
+                    modelList.Add(model);
198
+                }
199
+            }
200
+            return modelList;
201
+        }
202
+
203
+        /// <summary>
204
+        /// 获得数据列表
205
+        /// </summary>
206
+        public DataSet GetAllList()
207
+        {
208
+            return GetList("");
209
+        }
210
+
211
+        /// <summary>
212
+        /// 分页获取数据列表
213
+        /// </summary>
214
+        public int GetRecordCount(string strWhere)
215
+        {
216
+            return dal.GetRecordCount(strWhere);
217
+        }
218
+        /// <summary>
219
+        /// 分页获取数据列表
220
+        /// </summary>
221
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
222
+        {
223
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
224
+        }
225
+        /// <summary>
226
+        /// 分页获取数据列表
227
+        /// </summary>
228
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
229
+        //{
230
+        //return dal.GetList(PageSize,PageIndex,strWhere);
231
+        //}
232
+
233
+        #endregion  Method
234
+    }
235
+}
236
+

+ 253 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderHistoryInfo.cs

@@ -0,0 +1,253 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderHistoryInfo
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderHistoryInfo
12
+	{
13
+        private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderHistoryInfo dal = new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderHistoryInfo();
14
+		public T_Wo_WorkOrderHistoryInfo()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+        public int Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+        public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int ID)
38
+		{
39
+			
40
+			return dal.Delete(ID);
41
+		}
42
+		/// <summary>
43
+		/// 删除一条数据
44
+		/// </summary>
45
+		public bool DeleteList(string IDlist )
46
+		{
47
+			return dal.DeleteList(IDlist );
48
+		}
49
+
50
+		/// <summary>
51
+		/// 得到一个对象实体
52
+		/// </summary>
53
+        public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo GetModel(int ID)
54
+		{
55
+			
56
+			return dal.GetModel(ID);
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体,从缓存中
61
+		/// </summary>
62
+        //public Maticsoft.Model.T_Wo_WorkOrderHistoryInfo GetModelByCache(int ID)
63
+        //{
64
+			
65
+        //    string CacheKey = "T_Wo_WorkOrderHistoryInfoModel-" + ID;
66
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
67
+        //    if (objModel == null)
68
+        //    {
69
+        //        try
70
+        //        {
71
+        //            objModel = dal.GetModel(ID);
72
+        //            if (objModel != null)
73
+        //            {
74
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
75
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
76
+        //            }
77
+        //        }
78
+        //        catch{}
79
+        //    }
80
+        //    return (Maticsoft.Model.T_Wo_WorkOrderHistoryInfo)objModel;
81
+        //}
82
+
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public DataSet GetList(string strWhere)
87
+		{
88
+			return dal.GetList(strWhere);
89
+		}
90
+		/// <summary>
91
+		/// 获得前几行数据
92
+		/// </summary>
93
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
94
+		{
95
+			return dal.GetList(Top,strWhere,filedOrder);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+        public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo> GetModelList(string strWhere)
101
+		{
102
+			DataSet ds = dal.GetList(strWhere);
103
+			return DataTableToList(ds.Tables[0]);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+        public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo> DataTableToList(DataTable dt)
109
+		{
110
+            List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo>();
111
+			int rowsCount = dt.Rows.Count;
112
+			if (rowsCount > 0)
113
+			{
114
+                HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo model;
115
+				for (int n = 0; n < rowsCount; n++)
116
+				{
117
+                    model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderHistoryInfo();
118
+					if(dt.Rows[n]["ID"]!=null && dt.Rows[n]["ID"].ToString()!="")
119
+					{
120
+						model.ID=int.Parse(dt.Rows[n]["ID"].ToString());
121
+					}
122
+					if(dt.Rows[n]["F_HISTORYID"]!=null && dt.Rows[n]["F_HISTORYID"].ToString()!="")
123
+					{
124
+						model.F_HISTORYID=int.Parse(dt.Rows[n]["F_HISTORYID"].ToString());
125
+					}
126
+					if(dt.Rows[n]["F_OPTUSERID"]!=null && dt.Rows[n]["F_OPTUSERID"].ToString()!="")
127
+					{
128
+						model.F_OPTUSERID=int.Parse(dt.Rows[n]["F_OPTUSERID"].ToString());
129
+					}
130
+					if(dt.Rows[n]["F_REMARK"]!=null && dt.Rows[n]["F_REMARK"].ToString()!="")
131
+					{
132
+					model.F_REMARK=dt.Rows[n]["F_REMARK"].ToString();
133
+					}
134
+					if(dt.Rows[n]["F_INSTANCEID"]!=null && dt.Rows[n]["F_INSTANCEID"].ToString()!="")
135
+					{
136
+						model.F_INSTANCEID=int.Parse(dt.Rows[n]["F_INSTANCEID"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_OPTDATE"]!=null && dt.Rows[n]["F_OPTDATE"].ToString()!="")
139
+					{
140
+						model.F_OPTDATE=DateTime.Parse(dt.Rows[n]["F_OPTDATE"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_SERVICETYPE"]!=null && dt.Rows[n]["F_SERVICETYPE"].ToString()!="")
143
+					{
144
+					model.F_SERVICETYPE=dt.Rows[n]["F_SERVICETYPE"].ToString();
145
+					}
146
+					if(dt.Rows[n]["F_SERVICENATURE"]!=null && dt.Rows[n]["F_SERVICENATURE"].ToString()!="")
147
+					{
148
+					model.F_SERVICENATURE=dt.Rows[n]["F_SERVICENATURE"].ToString();
149
+					}
150
+					if(dt.Rows[n]["F_SERVICEMETHOD"]!=null && dt.Rows[n]["F_SERVICEMETHOD"].ToString()!="")
151
+					{
152
+					model.F_SERVICEMETHOD=dt.Rows[n]["F_SERVICEMETHOD"].ToString();
153
+					}
154
+					if(dt.Rows[n]["F_VISITOPINION"]!=null && dt.Rows[n]["F_VISITOPINION"].ToString()!="")
155
+					{
156
+					model.F_VISITOPINION=dt.Rows[n]["F_VISITOPINION"].ToString();
157
+					}
158
+					if(dt.Rows[n]["F_VISITTYPE"]!=null && dt.Rows[n]["F_VISITTYPE"].ToString()!="")
159
+					{
160
+					model.F_VISITTYPE=dt.Rows[n]["F_VISITTYPE"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_CUSTOMERSCORE"]!=null && dt.Rows[n]["F_CUSTOMERSCORE"].ToString()!="")
163
+					{
164
+					model.F_CUSTOMERSCORE=dt.Rows[n]["F_CUSTOMERSCORE"].ToString();
165
+					}
166
+					if(dt.Rows[n]["F_CUSTOMEROPINION"]!=null && dt.Rows[n]["F_CUSTOMEROPINION"].ToString()!="")
167
+					{
168
+					model.F_CUSTOMEROPINION=dt.Rows[n]["F_CUSTOMEROPINION"].ToString();
169
+					}
170
+					if(dt.Rows[n]["F_SOLVE"]!=null && dt.Rows[n]["F_SOLVE"].ToString()!="")
171
+					{
172
+					model.F_SOLVE=dt.Rows[n]["F_SOLVE"].ToString();
173
+					}
174
+					if(dt.Rows[n]["F_ORDERTYPE"]!=null && dt.Rows[n]["F_ORDERTYPE"].ToString()!="")
175
+					{
176
+					model.F_ORDERTYPE=dt.Rows[n]["F_ORDERTYPE"].ToString();
177
+					}
178
+					if(dt.Rows[n]["F_EXAMINETYPE"]!=null && dt.Rows[n]["F_EXAMINETYPE"].ToString()!="")
179
+					{
180
+					model.F_EXAMINETYPE=dt.Rows[n]["F_EXAMINETYPE"].ToString();
181
+					}
182
+                    if (dt.Rows[n]["F_ESTIMATED"] != null && dt.Rows[n]["F_ESTIMATED"].ToString() != "")
183
+                    {
184
+                        model.F_ESTIMATED = dt.Rows[n]["F_ESTIMATED"].ToString();
185
+                    }
186
+                    if (dt.Rows[n]["F_KNOWLEDGE"] != null && dt.Rows[n]["F_KNOWLEDGE"].ToString() != "")
187
+                    {
188
+                        model.F_KNOWLEDGE = int.Parse(dt.Rows[n]["F_KNOWLEDGE"].ToString());
189
+                    }
190
+                    if (dt.Rows[n]["F_COEFFICIENT"] != null && dt.Rows[n]["F_COEFFICIENT"].ToString() != "")
191
+                    {
192
+                        model.F_COEFFICIENT = dt.Rows[n]["F_COEFFICIENT"].ToString();
193
+                    }
194
+                    if (dt.Rows[n]["F_DECLARATION"] != null && dt.Rows[n]["F_DECLARATION"].ToString() != "")
195
+                    {
196
+                        model.F_DECLARATION = dt.Rows[n]["F_DECLARATION"].ToString();
197
+                    }
198
+                    if (dt.Rows[n]["F_ALREADYKNOWLEDGE"] != null && dt.Rows[n]["F_ALREADYKNOWLEDGE"].ToString() != "")
199
+                    {
200
+                        model.F_ALREADYKNOWLEDGE = int.Parse(dt.Rows[n]["F_ALREADYKNOWLEDGE"].ToString());
201
+                    }
202
+                    if (dt.Rows[n]["F_KNOWLEDGENAME"] != null && dt.Rows[n]["F_KNOWLEDGENAME"].ToString() != "")
203
+                    {
204
+                        model.F_KNOWLEDGENAME = dt.Rows[n]["F_KNOWLEDGENAME"].ToString();
205
+                    }
206
+                    if (dt.Rows[n]["F_EXAMION"] != null && dt.Rows[n]["F_EXAMION"].ToString() != "")
207
+                    {
208
+                        model.F_EXAMION = dt.Rows[n]["F_EXAMION"].ToString();
209
+                    }
210
+                    if (dt.Rows[n]["F_PAPERWORKORDERID"] != null && dt.Rows[n]["F_PAPERWORKORDERID"].ToString() != "")
211
+                    {
212
+                        model.F_PAPERWORKORDERID = dt.Rows[n]["F_PAPERWORKORDERID"].ToString();
213
+                    }
214
+					modelList.Add(model);
215
+				}
216
+			}
217
+			return modelList;
218
+		}
219
+
220
+		/// <summary>
221
+		/// 获得数据列表
222
+		/// </summary>
223
+		public DataSet GetAllList()
224
+		{
225
+			return GetList("");
226
+		}
227
+
228
+		/// <summary>
229
+		/// 分页获取数据列表
230
+		/// </summary>
231
+		public int GetRecordCount(string strWhere)
232
+		{
233
+			return dal.GetRecordCount(strWhere);
234
+		}
235
+		/// <summary>
236
+		/// 分页获取数据列表
237
+		/// </summary>
238
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
239
+		{
240
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
241
+		}
242
+		/// <summary>
243
+		/// 分页获取数据列表
244
+		/// </summary>
245
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
246
+		//{
247
+			//return dal.GetList(PageSize,PageIndex,strWhere);
248
+		//}
249
+
250
+		#endregion  Method
251
+	}
252
+}
253
+

+ 163 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderState.cs

@@ -0,0 +1,163 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderState
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderState
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderState dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderState();
14
+		public T_Wo_WorkOrderState()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+
26
+		/// <summary>
27
+		/// 是否存在该记录
28
+		/// </summary>
29
+		public bool Exists(int F_WorkOrderStateId)
30
+		{
31
+			return dal.Exists(F_WorkOrderStateId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_WorkOrderStateId)
54
+		{
55
+			
56
+			return dal.Delete(F_WorkOrderStateId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_WorkOrderStateIdlist )
62
+		{
63
+			return dal.DeleteList(F_WorkOrderStateIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState GetModel(int F_WorkOrderStateId)
70
+		{
71
+			
72
+			return dal.GetModel(F_WorkOrderStateId);
73
+		}
74
+
75
+		/// <summary>
76
+		/// 获得数据列表
77
+		/// </summary>
78
+		public DataSet GetList(string strWhere)
79
+		{
80
+			return dal.GetList(strWhere);
81
+		}
82
+		/// <summary>
83
+		/// 获得前几行数据
84
+		/// </summary>
85
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
86
+		{
87
+			return dal.GetList(Top,strWhere,filedOrder);
88
+		}
89
+		/// <summary>
90
+		/// 获得数据列表
91
+		/// </summary>
92
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState> GetModelList(string strWhere)
93
+		{
94
+			DataSet ds = dal.GetList(strWhere);
95
+			return DataTableToList(ds.Tables[0]);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState> DataTableToList(DataTable dt)
101
+		{
102
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState>();
103
+			int rowsCount = dt.Rows.Count;
104
+			if (rowsCount > 0)
105
+			{
106
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState model;
107
+				for (int n = 0; n < rowsCount; n++)
108
+				{
109
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderState();
110
+					if(dt.Rows[n]["F_WorkOrderStateId"]!=null && dt.Rows[n]["F_WorkOrderStateId"].ToString()!="")
111
+					{
112
+						model.F_WorkOrderStateId=int.Parse(dt.Rows[n]["F_WorkOrderStateId"].ToString());
113
+					}
114
+					if(dt.Rows[n]["F_Name"]!=null && dt.Rows[n]["F_Name"].ToString()!="")
115
+					{
116
+					model.F_Name=dt.Rows[n]["F_Name"].ToString();
117
+					}
118
+					if(dt.Rows[n]["F_Code"]!=null && dt.Rows[n]["F_Code"].ToString()!="")
119
+					{
120
+					model.F_Code=dt.Rows[n]["F_Code"].ToString();
121
+					}
122
+					if(dt.Rows[n]["F_Des"]!=null && dt.Rows[n]["F_Des"].ToString()!="")
123
+					{
124
+					model.F_Des=dt.Rows[n]["F_Des"].ToString();
125
+					}
126
+					if(dt.Rows[n]["F_Sort"]!=null && dt.Rows[n]["F_Sort"].ToString()!="")
127
+					{
128
+						model.F_Sort=int.Parse(dt.Rows[n]["F_Sort"].ToString());
129
+					}
130
+					if(dt.Rows[n]["F_Stateimage"]!=null && dt.Rows[n]["F_Stateimage"].ToString()!="")
131
+					{
132
+					model.F_Stateimage=dt.Rows[n]["F_Stateimage"].ToString();
133
+					}
134
+					if(dt.Rows[n]["F_Deleteflag"]!=null && dt.Rows[n]["F_Deleteflag"].ToString()!="")
135
+					{
136
+						model.F_Deleteflag=int.Parse(dt.Rows[n]["F_Deleteflag"].ToString());
137
+                    }
138
+					modelList.Add(model);
139
+				}
140
+			}
141
+			return modelList;
142
+		}
143
+
144
+		/// <summary>
145
+		/// 获得数据列表
146
+		/// </summary>
147
+		public DataSet GetAllList()
148
+		{
149
+			return GetList("");
150
+		}
151
+
152
+		/// <summary>
153
+		/// 分页获取数据列表
154
+		/// </summary>
155
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
156
+		//{
157
+			//return dal.GetList(PageSize,PageIndex,strWhere);
158
+		//}
159
+
160
+		#endregion  Method
161
+	}
162
+}
163
+

+ 177 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderSupplies.cs

@@ -0,0 +1,177 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderSupplies
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderSupplies
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderSupplies dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderSupplies();
14
+		public T_Wo_WorkOrderSupplies()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int F_ID)
38
+		{
39
+			
40
+			return dal.Delete(F_ID);
41
+		}
42
+		/// <summary>
43
+		/// 删除一条数据
44
+		/// </summary>
45
+		public bool DeleteList(string F_IDlist )
46
+		{
47
+			return dal.DeleteList(F_IDlist );
48
+		}
49
+
50
+		/// <summary>
51
+		/// 得到一个对象实体
52
+		/// </summary>
53
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies GetModel(int F_ID)
54
+		{
55
+			
56
+			return dal.GetModel(F_ID);
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体,从缓存中
61
+		/// </summary>
62
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies GetModelByCache(int F_ID)
63
+        //{
64
+			
65
+        //    string CacheKey = "T_Wo_WorkOrderSuppliesModel-" + F_ID;
66
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
67
+        //    if (objModel == null)
68
+        //    {
69
+        //        try
70
+        //        {
71
+        //            objModel = dal.GetModel(F_ID);
72
+        //            if (objModel != null)
73
+        //            {
74
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
75
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
76
+        //            }
77
+        //        }
78
+        //        catch{}
79
+        //    }
80
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies)objModel;
81
+        //}
82
+
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public DataSet GetList(string strWhere)
87
+		{
88
+			return dal.GetList(strWhere);
89
+		}
90
+		/// <summary>
91
+		/// 获得前几行数据
92
+		/// </summary>
93
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
94
+		{
95
+			return dal.GetList(Top,strWhere,filedOrder);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies> GetModelList(string strWhere)
101
+		{
102
+			DataSet ds = dal.GetList(strWhere);
103
+			return DataTableToList(ds.Tables[0]);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies> DataTableToList(DataTable dt)
109
+		{
110
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies>();
111
+			int rowsCount = dt.Rows.Count;
112
+			if (rowsCount > 0)
113
+			{
114
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies model;
115
+				for (int n = 0; n < rowsCount; n++)
116
+				{
117
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderSupplies();
118
+					if(dt.Rows[n]["F_ID"]!=null && dt.Rows[n]["F_ID"].ToString()!="")
119
+					{
120
+						model.F_ID=int.Parse(dt.Rows[n]["F_ID"].ToString());
121
+					}
122
+					if(dt.Rows[n]["F_WORKORDERID"]!=null && dt.Rows[n]["F_WORKORDERID"].ToString()!="")
123
+					{
124
+						model.F_WORKORDERID=int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
125
+					}
126
+					if(dt.Rows[n]["F_SUPPLIESID"]!=null && dt.Rows[n]["F_SUPPLIESID"].ToString()!="")
127
+					{
128
+						model.F_SUPPLIESID=int.Parse(dt.Rows[n]["F_SUPPLIESID"].ToString());
129
+					}
130
+					if(dt.Rows[n]["F_COUNT"]!=null && dt.Rows[n]["F_COUNT"].ToString()!="")
131
+					{
132
+						model.F_COUNT=decimal.Parse(dt.Rows[n]["F_COUNT"].ToString());
133
+					}
134
+					if(dt.Rows[n]["F_DES"]!=null && dt.Rows[n]["F_DES"].ToString()!="")
135
+					{
136
+					model.F_DES=dt.Rows[n]["F_DES"].ToString();
137
+					}
138
+					modelList.Add(model);
139
+				}
140
+			}
141
+			return modelList;
142
+		}
143
+
144
+		/// <summary>
145
+		/// 获得数据列表
146
+		/// </summary>
147
+		public DataSet GetAllList()
148
+		{
149
+			return GetList("");
150
+		}
151
+
152
+		/// <summary>
153
+		/// 分页获取数据列表
154
+		/// </summary>
155
+		public int GetRecordCount(string strWhere)
156
+		{
157
+			return dal.GetRecordCount(strWhere);
158
+		}
159
+		/// <summary>
160
+		/// 分页获取数据列表
161
+		/// </summary>
162
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
163
+		{
164
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
165
+		}
166
+		/// <summary>
167
+		/// 分页获取数据列表
168
+		/// </summary>
169
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
170
+		//{
171
+			//return dal.GetList(PageSize,PageIndex,strWhere);
172
+		//}
173
+
174
+		#endregion  Method
175
+	}
176
+}
177
+

+ 229 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderTask.cs

@@ -0,0 +1,229 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderTask
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderTask
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTask dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTask();
14
+		public T_Wo_WorkOrderTask()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int F_TASKID)
38
+		{
39
+			
40
+			return dal.Delete(F_TASKID);
41
+		}
42
+		/// <summary>
43
+		/// 删除一条数据
44
+		/// </summary>
45
+		public bool DeleteList(string F_TASKIDlist )
46
+		{
47
+			return dal.DeleteList(F_TASKIDlist );
48
+		}
49
+
50
+		/// <summary>
51
+		/// 得到一个对象实体
52
+		/// </summary>
53
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask GetModel(int F_TASKID)
54
+		{
55
+			
56
+			return dal.GetModel(F_TASKID);
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体,从缓存中
61
+		/// </summary>
62
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask GetModelByCache(int F_TASKID)
63
+        //{
64
+			
65
+        //    string CacheKey = "T_Wo_WorkOrderTaskModel-" + F_TASKID;
66
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
67
+        //    if (objModel == null)
68
+        //    {
69
+        //        try
70
+        //        {
71
+        //            objModel = dal.GetModel(F_TASKID);
72
+        //            if (objModel != null)
73
+        //            {
74
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
75
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
76
+        //            }
77
+        //        }
78
+        //        catch{}
79
+        //    }
80
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask)objModel;
81
+        //}
82
+
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public DataSet GetList(string strWhere)
87
+		{
88
+			return dal.GetList(strWhere);
89
+		}
90
+		/// <summary>
91
+		/// 获得前几行数据
92
+		/// </summary>
93
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
94
+		{
95
+			return dal.GetList(Top,strWhere,filedOrder);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask> GetModelList(string strWhere)
101
+		{
102
+			DataSet ds = dal.GetList(strWhere);
103
+			return DataTableToList(ds.Tables[0]);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask> DataTableToList(DataTable dt)
109
+		{
110
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask>();
111
+			int rowsCount = dt.Rows.Count;
112
+			if (rowsCount > 0)
113
+			{
114
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask model;
115
+				for (int n = 0; n < rowsCount; n++)
116
+				{
117
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTask();
118
+					if(dt.Rows[n]["F_TASKID"]!=null && dt.Rows[n]["F_TASKID"].ToString()!="")
119
+					{
120
+						model.F_TASKID=int.Parse(dt.Rows[n]["F_TASKID"].ToString());
121
+					}
122
+					if(dt.Rows[n]["F_WORKORDERTYPEID"]!=null && dt.Rows[n]["F_WORKORDERTYPEID"].ToString()!="")
123
+					{
124
+						model.F_WORKORDERTYPEID=int.Parse(dt.Rows[n]["F_WORKORDERTYPEID"].ToString());
125
+					}
126
+					if(dt.Rows[n]["F_WORKORDERSTATEID"]!=null && dt.Rows[n]["F_WORKORDERSTATEID"].ToString()!="")
127
+					{
128
+						model.F_WORKORDERSTATEID=int.Parse(dt.Rows[n]["F_WORKORDERSTATEID"].ToString());
129
+					}
130
+					if(dt.Rows[n]["F_OWNERID"]!=null && dt.Rows[n]["F_OWNERID"].ToString()!="")
131
+					{
132
+						model.F_OWNERID=int.Parse(dt.Rows[n]["F_OWNERID"].ToString());
133
+					}
134
+					if(dt.Rows[n]["F_CREATEDATE"]!=null && dt.Rows[n]["F_CREATEDATE"].ToString()!="")
135
+					{
136
+						model.F_CREATEDATE=DateTime.Parse(dt.Rows[n]["F_CREATEDATE"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_OPTUSERID"]!=null && dt.Rows[n]["F_OPTUSERID"].ToString()!="")
139
+					{
140
+						model.F_OPTUSERID=int.Parse(dt.Rows[n]["F_OPTUSERID"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_OPTDATE"]!=null && dt.Rows[n]["F_OPTDATE"].ToString()!="")
143
+					{
144
+						model.F_OPTDATE=DateTime.Parse(dt.Rows[n]["F_OPTDATE"].ToString());
145
+					}
146
+					if(dt.Rows[n]["F_EXFLAG"]!=null && dt.Rows[n]["F_EXFLAG"].ToString()!="")
147
+					{
148
+						model.F_EXFLAG=int.Parse(dt.Rows[n]["F_EXFLAG"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_LOSEDATE"]!=null && dt.Rows[n]["F_LOSEDATE"].ToString()!="")
151
+					{
152
+						model.F_LOSEDATE=DateTime.Parse(dt.Rows[n]["F_LOSEDATE"].ToString());
153
+					}
154
+					if(dt.Rows[n]["F_FORMID"]!=null && dt.Rows[n]["F_FORMID"].ToString()!="")
155
+					{
156
+						model.F_FORMID=DateTime.Parse(dt.Rows[n]["F_FORMID"].ToString());
157
+					}
158
+					if(dt.Rows[n]["F_OPTBTN"]!=null && dt.Rows[n]["F_OPTBTN"].ToString()!="")
159
+					{
160
+					model.F_OPTBTN=dt.Rows[n]["F_OPTBTN"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_PLANFINISHTIME"]!=null && dt.Rows[n]["F_PLANFINISHTIME"].ToString()!="")
163
+					{
164
+						model.F_PLANFINISHTIME=DateTime.Parse(dt.Rows[n]["F_PLANFINISHTIME"].ToString());
165
+					}
166
+					if(dt.Rows[n]["F_REMINDTIME"]!=null && dt.Rows[n]["F_REMINDTIME"].ToString()!="")
167
+					{
168
+						model.F_REMINDTIME=DateTime.Parse(dt.Rows[n]["F_REMINDTIME"].ToString());
169
+					}
170
+					if(dt.Rows[n]["F_TIMES"]!=null && dt.Rows[n]["F_TIMES"].ToString()!="")
171
+					{
172
+						model.F_TIMES=int.Parse(dt.Rows[n]["F_TIMES"].ToString());
173
+					}
174
+					if(dt.Rows[n]["F_ASSIGNPARTICIPATOR"]!=null && dt.Rows[n]["F_ASSIGNPARTICIPATOR"].ToString()!="")
175
+					{
176
+					model.F_ASSIGNPARTICIPATOR=dt.Rows[n]["F_ASSIGNPARTICIPATOR"].ToString();
177
+					}
178
+					if(dt.Rows[n]["F_INSTANCEID"]!=null && dt.Rows[n]["F_INSTANCEID"].ToString()!="")
179
+					{
180
+						model.F_INSTANCEID=int.Parse(dt.Rows[n]["F_INSTANCEID"].ToString());
181
+					}
182
+					if(dt.Rows[n]["F_TASKFLAG"]!=null && dt.Rows[n]["F_TASKFLAG"].ToString()!="")
183
+					{
184
+						model.F_TASKFLAG=int.Parse(dt.Rows[n]["F_TASKFLAG"].ToString());
185
+					}
186
+					if(dt.Rows[n]["F_LOSEFLAG"]!=null && dt.Rows[n]["F_LOSEFLAG"].ToString()!="")
187
+					{
188
+						model.F_LOSEFLAG=int.Parse(dt.Rows[n]["F_LOSEFLAG"].ToString());
189
+					}
190
+					modelList.Add(model);
191
+				}
192
+			}
193
+			return modelList;
194
+		}
195
+
196
+		/// <summary>
197
+		/// 获得数据列表
198
+		/// </summary>
199
+		public DataSet GetAllList()
200
+		{
201
+			return GetList("");
202
+		}
203
+
204
+		/// <summary>
205
+		/// 分页获取数据列表
206
+		/// </summary>
207
+		public int GetRecordCount(string strWhere)
208
+		{
209
+			return dal.GetRecordCount(strWhere);
210
+		}
211
+		/// <summary>
212
+		/// 分页获取数据列表
213
+		/// </summary>
214
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
215
+		{
216
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
217
+		}
218
+		/// <summary>
219
+		/// 分页获取数据列表
220
+		/// </summary>
221
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
222
+		//{
223
+			//return dal.GetList(PageSize,PageIndex,strWhere);
224
+		//}
225
+
226
+		#endregion  Method
227
+	}
228
+}
229
+

+ 209 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderTaskHasten.cs

@@ -0,0 +1,209 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderTaskHasten
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderTaskHasten
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTaskHasten dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTaskHasten();
14
+		public T_Wo_WorkOrderTaskHasten()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int F_HASTENID)
38
+		{
39
+			
40
+			return dal.Delete(F_HASTENID);
41
+		}
42
+		/// <summary>
43
+		/// 删除一条数据
44
+		/// </summary>
45
+		public bool DeleteList(string F_HASTENIDlist )
46
+		{
47
+			return dal.DeleteList(F_HASTENIDlist );
48
+		}
49
+
50
+		/// <summary>
51
+		/// 得到一个对象实体
52
+		/// </summary>
53
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten GetModel(int F_HASTENID)
54
+		{
55
+			
56
+			return dal.GetModel(F_HASTENID);
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体,从缓存中
61
+		/// </summary>
62
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten GetModelByCache(int F_HASTENID)
63
+        //{
64
+			
65
+        //    string CacheKey = "T_Wo_WorkOrderTaskHastenModel-" + F_HASTENID;
66
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
67
+        //    if (objModel == null)
68
+        //    {
69
+        //        try
70
+        //        {
71
+        //            objModel = dal.GetModel(F_HASTENID);
72
+        //            if (objModel != null)
73
+        //            {
74
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
75
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
76
+        //            }
77
+        //        }
78
+        //        catch{}
79
+        //    }
80
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten)objModel;
81
+        //}
82
+
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public DataSet GetList(string strWhere)
87
+		{
88
+			return dal.GetList(strWhere);
89
+		}
90
+		/// <summary>
91
+		/// 获得前几行数据
92
+		/// </summary>
93
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
94
+		{
95
+			return dal.GetList(Top,strWhere,filedOrder);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten> GetModelList(string strWhere)
101
+		{
102
+			DataSet ds = dal.GetList(strWhere);
103
+			return DataTableToList(ds.Tables[0]);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten> DataTableToList(DataTable dt)
109
+		{
110
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten>();
111
+			int rowsCount = dt.Rows.Count;
112
+			if (rowsCount > 0)
113
+			{
114
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten model;
115
+				for (int n = 0; n < rowsCount; n++)
116
+				{
117
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskHasten();
118
+					if(dt.Rows[n]["F_HASTENID"]!=null && dt.Rows[n]["F_HASTENID"].ToString()!="")
119
+					{
120
+						model.F_HASTENID=int.Parse(dt.Rows[n]["F_HASTENID"].ToString());
121
+					}
122
+					if(dt.Rows[n]["F_WORKORDERID"]!=null && dt.Rows[n]["F_WORKORDERID"].ToString()!="")
123
+					{
124
+						model.F_WORKORDERID=int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
125
+					}
126
+					if(dt.Rows[n]["F_TASKID"]!=null && dt.Rows[n]["F_TASKID"].ToString()!="")
127
+					{
128
+						model.F_TASKID=int.Parse(dt.Rows[n]["F_TASKID"].ToString());
129
+					}
130
+					if(dt.Rows[n]["F_DEPTID"]!=null && dt.Rows[n]["F_DEPTID"].ToString()!="")
131
+					{
132
+						model.F_DEPTID=int.Parse(dt.Rows[n]["F_DEPTID"].ToString());
133
+					}
134
+					if(dt.Rows[n]["F_USERID"]!=null && dt.Rows[n]["F_USERID"].ToString()!="")
135
+					{
136
+						model.F_USERID=int.Parse(dt.Rows[n]["F_USERID"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_DEPTIDBY"]!=null && dt.Rows[n]["F_DEPTIDBY"].ToString()!="")
139
+					{
140
+						model.F_DEPTIDBY=int.Parse(dt.Rows[n]["F_DEPTIDBY"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_USERIDBY"]!=null && dt.Rows[n]["F_USERIDBY"].ToString()!="")
143
+					{
144
+						model.F_USERIDBY=int.Parse(dt.Rows[n]["F_USERIDBY"].ToString());
145
+					}
146
+					if(dt.Rows[n]["F_HASTENDATE"]!=null && dt.Rows[n]["F_HASTENDATE"].ToString()!="")
147
+					{
148
+						model.F_HASTENDATE=DateTime.Parse(dt.Rows[n]["F_HASTENDATE"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_HASTENTYPE"]!=null && dt.Rows[n]["F_HASTENTYPE"].ToString()!="")
151
+					{
152
+						model.F_HASTENTYPE=int.Parse(dt.Rows[n]["F_HASTENTYPE"].ToString());
153
+					}
154
+					if(dt.Rows[n]["F_CONTENT"]!=null && dt.Rows[n]["F_CONTENT"].ToString()!="")
155
+					{
156
+					model.F_CONTENT=dt.Rows[n]["F_CONTENT"].ToString();
157
+					}
158
+					if(dt.Rows[n]["F_SHOWFLAG"]!=null && dt.Rows[n]["F_SHOWFLAG"].ToString()!="")
159
+					{
160
+						model.F_SHOWFLAG=int.Parse(dt.Rows[n]["F_SHOWFLAG"].ToString());
161
+					}
162
+					if(dt.Rows[n]["F_SHOWDATE"]!=null && dt.Rows[n]["F_SHOWDATE"].ToString()!="")
163
+					{
164
+						model.F_SHOWDATE=DateTime.Parse(dt.Rows[n]["F_SHOWDATE"].ToString());
165
+					}
166
+					if(dt.Rows[n]["F_DELETEFLAG"]!=null && dt.Rows[n]["F_DELETEFLAG"].ToString()!="")
167
+					{
168
+						model.F_DELETEFLAG=int.Parse(dt.Rows[n]["F_DELETEFLAG"].ToString());
169
+					}
170
+					modelList.Add(model);
171
+				}
172
+			}
173
+			return modelList;
174
+		}
175
+
176
+		/// <summary>
177
+		/// 获得数据列表
178
+		/// </summary>
179
+		public DataSet GetAllList()
180
+		{
181
+			return GetList("");
182
+		}
183
+
184
+		/// <summary>
185
+		/// 分页获取数据列表
186
+		/// </summary>
187
+		public int GetRecordCount(string strWhere)
188
+		{
189
+			return dal.GetRecordCount(strWhere);
190
+		}
191
+		/// <summary>
192
+		/// 分页获取数据列表
193
+		/// </summary>
194
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
195
+		{
196
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
197
+		}
198
+		/// <summary>
199
+		/// 分页获取数据列表
200
+		/// </summary>
201
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
202
+		//{
203
+			//return dal.GetList(PageSize,PageIndex,strWhere);
204
+		//}
205
+
206
+		#endregion  Method
207
+	}
208
+}
209
+

+ 217 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderTaskInfo.cs

@@ -0,0 +1,217 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderTaskInfo
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderTaskInfo
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTaskInfo dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTaskInfo();
14
+		public T_Wo_WorkOrderTaskInfo()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete(int F_TASKINFOID)
38
+		{
39
+			
40
+			return dal.Delete(F_TASKINFOID);
41
+		}
42
+		/// <summary>
43
+		/// 删除一条数据
44
+		/// </summary>
45
+		public bool DeleteList(string F_TASKINFOIDlist )
46
+		{
47
+			return dal.DeleteList(F_TASKINFOIDlist );
48
+		}
49
+
50
+		/// <summary>
51
+		/// 得到一个对象实体
52
+		/// </summary>
53
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo GetModel(int F_TASKINFOID)
54
+		{
55
+			
56
+			return dal.GetModel(F_TASKINFOID);
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体,从缓存中
61
+		/// </summary>
62
+        //public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo GetModelByCache(int F_TASKINFOID)
63
+        //{
64
+			
65
+        //    string CacheKey = "T_Wo_WorkOrderTaskInfoModel-" + F_TASKINFOID;
66
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
67
+        //    if (objModel == null)
68
+        //    {
69
+        //        try
70
+        //        {
71
+        //            objModel = dal.GetModel(F_TASKINFOID);
72
+        //            if (objModel != null)
73
+        //            {
74
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
75
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
76
+        //            }
77
+        //        }
78
+        //        catch{}
79
+        //    }
80
+        //    return (HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo)objModel;
81
+        //}
82
+
83
+		/// <summary>
84
+		/// 获得数据列表
85
+		/// </summary>
86
+		public DataSet GetList(string strWhere)
87
+		{
88
+			return dal.GetList(strWhere);
89
+		}
90
+		/// <summary>
91
+		/// 获得前几行数据
92
+		/// </summary>
93
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
94
+		{
95
+			return dal.GetList(Top,strWhere,filedOrder);
96
+		}
97
+		/// <summary>
98
+		/// 获得数据列表
99
+		/// </summary>
100
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo> GetModelList(string strWhere)
101
+		{
102
+			DataSet ds = dal.GetList(strWhere);
103
+			return DataTableToList(ds.Tables[0]);
104
+		}
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo> DataTableToList(DataTable dt)
109
+		{
110
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo>();
111
+			int rowsCount = dt.Rows.Count;
112
+			if (rowsCount > 0)
113
+			{
114
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo model;
115
+				for (int n = 0; n < rowsCount; n++)
116
+				{
117
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTaskInfo();
118
+					if(dt.Rows[n]["F_TASKINFOID"]!=null && dt.Rows[n]["F_TASKINFOID"].ToString()!="")
119
+					{
120
+						model.F_TASKINFOID=int.Parse(dt.Rows[n]["F_TASKINFOID"].ToString());
121
+					}
122
+					if(dt.Rows[n]["F_TASKID"]!=null && dt.Rows[n]["F_TASKID"].ToString()!="")
123
+					{
124
+						model.F_TASKID=int.Parse(dt.Rows[n]["F_TASKID"].ToString());
125
+					}
126
+					if(dt.Rows[n]["F_WORKORDERID"]!=null && dt.Rows[n]["F_WORKORDERID"].ToString()!="")
127
+					{
128
+						model.F_WORKORDERID=int.Parse(dt.Rows[n]["F_WORKORDERID"].ToString());
129
+					}
130
+					if(dt.Rows[n]["F_OPTBY"]!=null && dt.Rows[n]["F_OPTBY"].ToString()!="")
131
+					{
132
+						model.F_OPTBY=int.Parse(dt.Rows[n]["F_OPTBY"].ToString());
133
+					}
134
+					if(dt.Rows[n]["F_OPTDATE"]!=null && dt.Rows[n]["F_OPTDATE"].ToString()!="")
135
+					{
136
+						model.F_OPTDATE=DateTime.Parse(dt.Rows[n]["F_OPTDATE"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_SUBSCRIBEDATE"]!=null && dt.Rows[n]["F_SUBSCRIBEDATE"].ToString()!="")
139
+					{
140
+						model.F_SUBSCRIBEDATE=DateTime.Parse(dt.Rows[n]["F_SUBSCRIBEDATE"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_SUBSCRIBESTATE"]!=null && dt.Rows[n]["F_SUBSCRIBESTATE"].ToString()!="")
143
+					{
144
+						model.F_SUBSCRIBESTATE=int.Parse(dt.Rows[n]["F_SUBSCRIBESTATE"].ToString());
145
+					}
146
+					if(dt.Rows[n]["F_SUBSCRIBETIME"]!=null && dt.Rows[n]["F_SUBSCRIBETIME"].ToString()!="")
147
+					{
148
+						model.F_SUBSCRIBETIME=int.Parse(dt.Rows[n]["F_SUBSCRIBETIME"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_SUBSCRIBETIMEHOUR"]!=null && dt.Rows[n]["F_SUBSCRIBETIMEHOUR"].ToString()!="")
151
+					{
152
+					model.F_SUBSCRIBETIMEHOUR=dt.Rows[n]["F_SUBSCRIBETIMEHOUR"].ToString();
153
+					}
154
+					if(dt.Rows[n]["F_SUBSCRIBEDES"]!=null && dt.Rows[n]["F_SUBSCRIBEDES"].ToString()!="")
155
+					{
156
+					model.F_SUBSCRIBEDES=dt.Rows[n]["F_SUBSCRIBEDES"].ToString();
157
+					}
158
+					if(dt.Rows[n]["F_SUBSCRIBEFAILINFO"]!=null && dt.Rows[n]["F_SUBSCRIBEFAILINFO"].ToString()!="")
159
+					{
160
+					model.F_SUBSCRIBEFAILINFO=dt.Rows[n]["F_SUBSCRIBEFAILINFO"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_ARRASSIGNUSER"]!=null && dt.Rows[n]["F_ARRASSIGNUSER"].ToString()!="")
163
+					{
164
+					model.F_ARRASSIGNUSER=dt.Rows[n]["F_ARRASSIGNUSER"].ToString();
165
+					}
166
+					if(dt.Rows[n]["F_ASSIGNTYPE"]!=null && dt.Rows[n]["F_ASSIGNTYPE"].ToString()!="")
167
+					{
168
+						model.F_ASSIGNTYPE=int.Parse(dt.Rows[n]["F_ASSIGNTYPE"].ToString());
169
+					}
170
+					if(dt.Rows[n]["F_ASSIGNDES"]!=null && dt.Rows[n]["F_ASSIGNDES"].ToString()!="")
171
+					{
172
+					model.F_ASSIGNDES=dt.Rows[n]["F_ASSIGNDES"].ToString();
173
+					}
174
+					if(dt.Rows[n]["F_REPLYINFO"]!=null && dt.Rows[n]["F_REPLYINFO"].ToString()!="")
175
+					{
176
+					model.F_REPLYINFO=dt.Rows[n]["F_REPLYINFO"].ToString();
177
+					}
178
+					modelList.Add(model);
179
+				}
180
+			}
181
+			return modelList;
182
+		}
183
+
184
+		/// <summary>
185
+		/// 获得数据列表
186
+		/// </summary>
187
+		public DataSet GetAllList()
188
+		{
189
+			return GetList("");
190
+		}
191
+
192
+		/// <summary>
193
+		/// 分页获取数据列表
194
+		/// </summary>
195
+		public int GetRecordCount(string strWhere)
196
+		{
197
+			return dal.GetRecordCount(strWhere);
198
+		}
199
+		/// <summary>
200
+		/// 分页获取数据列表
201
+		/// </summary>
202
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
203
+		{
204
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
205
+		}
206
+		/// <summary>
207
+		/// 分页获取数据列表
208
+		/// </summary>
209
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
210
+		//{
211
+			//return dal.GetList(PageSize,PageIndex,strWhere);
212
+		//}
213
+
214
+		#endregion  Method
215
+	}
216
+}
217
+

+ 208 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderType.cs

@@ -0,0 +1,208 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderType
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderType
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderType dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderType();
14
+		public T_Wo_WorkOrderType()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 得到最大ID
20
+		/// </summary>
21
+		public int GetMaxId()
22
+		{
23
+			return dal.GetMaxId();
24
+		}
25
+        public object maxNumber(int layer)
26
+        {
27
+            return dal.maxNumber(layer);
28
+        }
29
+        public object maxNumber(int layer, int id)
30
+        {
31
+            return dal.maxNumber(layer, id);
32
+        }
33
+      
34
+		/// <summary>
35
+		/// 是否存在该记录
36
+		/// </summary>
37
+		public bool Exists(int F_WorkOrderTypeId)
38
+		{
39
+			return dal.Exists(F_WorkOrderTypeId);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 增加一条数据
44
+		/// </summary>
45
+		public int  Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType model)
46
+		{
47
+			return dal.Add(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 更新一条数据
52
+		/// </summary>
53
+		public int Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType model)
54
+		{
55
+			return dal.Update(model);
56
+		}
57
+
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool Delete(int F_WorkOrderTypeId)
62
+		{
63
+			
64
+			return dal.Delete(F_WorkOrderTypeId);
65
+		}
66
+		/// <summary>
67
+		/// 删除一条数据
68
+		/// </summary>
69
+		public bool DeleteList(string F_WorkOrderTypeIdlist )
70
+		{
71
+			return dal.DeleteList(F_WorkOrderTypeIdlist );
72
+		}
73
+
74
+		/// <summary>
75
+		/// 得到一个对象实体
76
+		/// </summary>
77
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType GetModel(int F_WorkOrderTypeId)
78
+		{
79
+			
80
+			return dal.GetModel(F_WorkOrderTypeId);
81
+		}
82
+
83
+	
84
+		/// <summary>
85
+		/// 获得数据列表
86
+		/// </summary>
87
+		public DataSet GetList(string strWhere)
88
+		{
89
+			return dal.GetList(strWhere);
90
+		}
91
+		/// <summary>
92
+		/// 获得前几行数据
93
+		/// </summary>
94
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
95
+		{
96
+			return dal.GetList(Top,strWhere,filedOrder);
97
+		}
98
+		/// <summary>
99
+		/// 获得数据列表
100
+		/// </summary>
101
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType> GetModelList(string strWhere)
102
+		{
103
+			DataSet ds = dal.GetList(strWhere);
104
+			return DataTableToList(ds.Tables[0]);
105
+		}
106
+		/// <summary>
107
+		/// 获得数据列表
108
+		/// </summary>
109
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType> DataTableToList(DataTable dt)
110
+		{
111
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType>();
112
+			int rowsCount = dt.Rows.Count;
113
+			if (rowsCount > 0)
114
+			{
115
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType model;
116
+				for (int n = 0; n < rowsCount; n++)
117
+				{
118
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderType();
119
+					if(dt.Rows[n]["F_WorkOrderTypeId"]!=null && dt.Rows[n]["F_WorkOrderTypeId"].ToString()!="")
120
+					{
121
+						model.F_WorkOrderTypeId=int.Parse(dt.Rows[n]["F_WorkOrderTypeId"].ToString());
122
+					}
123
+					if(dt.Rows[n]["F_Name"]!=null && dt.Rows[n]["F_Name"].ToString()!="")
124
+					{
125
+					model.F_Name=dt.Rows[n]["F_Name"].ToString();
126
+					}
127
+					if(dt.Rows[n]["F_Ename"]!=null && dt.Rows[n]["F_Ename"].ToString()!="")
128
+					{
129
+					model.F_Ename=dt.Rows[n]["F_Ename"].ToString();
130
+					}
131
+					if(dt.Rows[n]["F_Number"]!=null && dt.Rows[n]["F_Number"].ToString()!="")
132
+					{
133
+					model.F_Number=dt.Rows[n]["F_Number"].ToString();
134
+					}
135
+					if(dt.Rows[n]["F_ParentId"]!=null && dt.Rows[n]["F_ParentId"].ToString()!="")
136
+					{
137
+						model.F_ParentId=int.Parse(dt.Rows[n]["F_ParentId"].ToString());
138
+					}
139
+					if(dt.Rows[n]["F_ParentName"]!=null && dt.Rows[n]["F_ParentName"].ToString()!="")
140
+					{
141
+					model.F_ParentName=dt.Rows[n]["F_ParentName"].ToString();
142
+					}
143
+					if(dt.Rows[n]["F_Sort"]!=null && dt.Rows[n]["F_Sort"].ToString()!="")
144
+					{
145
+						model.F_Sort=int.Parse(dt.Rows[n]["F_Sort"].ToString());
146
+					}
147
+					if(dt.Rows[n]["F_Layer"]!=null && dt.Rows[n]["F_Layer"].ToString()!="")
148
+					{
149
+						model.F_Layer=int.Parse(dt.Rows[n]["F_Layer"].ToString());
150
+					}
151
+					if(dt.Rows[n]["F_DeleteFlag"]!=null && dt.Rows[n]["F_DeleteFlag"].ToString()!="")
152
+					{
153
+						model.F_DeleteFlag=int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
154
+					}
155
+					if(dt.Rows[n]["F_Createby"]!=null && dt.Rows[n]["F_Createby"].ToString()!="")
156
+					{
157
+						model.F_Createby=int.Parse(dt.Rows[n]["F_Createby"].ToString());
158
+					}
159
+					if(dt.Rows[n]["F_CreateDate"]!=null && dt.Rows[n]["F_CreateDate"].ToString()!="")
160
+					{
161
+						model.F_CreateDate=DateTime.Parse(dt.Rows[n]["F_CreateDate"].ToString());
162
+					}
163
+					if(dt.Rows[n]["F_Modifyby"]!=null && dt.Rows[n]["F_Modifyby"].ToString()!="")
164
+					{
165
+						model.F_Modifyby=int.Parse(dt.Rows[n]["F_Modifyby"].ToString());
166
+					}
167
+					if(dt.Rows[n]["F_ModifyDate"]!=null && dt.Rows[n]["F_ModifyDate"].ToString()!="")
168
+					{
169
+						model.F_ModifyDate=DateTime.Parse(dt.Rows[n]["F_ModifyDate"].ToString());
170
+					}
171
+					if(dt.Rows[n]["TypeFrom"]!=null && dt.Rows[n]["TypeFrom"].ToString()!="")
172
+					{
173
+						model.TypeFrom=int.Parse(dt.Rows[n]["TypeFrom"].ToString());
174
+					}
175
+					if(dt.Rows[n]["F_Icon"]!=null && dt.Rows[n]["F_Icon"].ToString()!="")
176
+					{
177
+					model.F_Icon=dt.Rows[n]["F_Icon"].ToString();
178
+					}
179
+					if(dt.Rows[n]["F_Remark"]!=null && dt.Rows[n]["F_Remark"].ToString()!="")
180
+					{
181
+					model.F_Remark=dt.Rows[n]["F_Remark"].ToString();
182
+					}
183
+					modelList.Add(model);
184
+				}
185
+			}
186
+			return modelList;
187
+		}
188
+
189
+		/// <summary>
190
+		/// 获得数据列表
191
+		/// </summary>
192
+		public DataSet GetAllList()
193
+		{
194
+			return GetList("");
195
+		}
196
+
197
+		/// <summary>
198
+		/// 分页获取数据列表
199
+		/// </summary>
200
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
201
+		//{
202
+			//return dal.GetList(PageSize,PageIndex,strWhere);
203
+		//}
204
+
205
+		#endregion  Method
206
+	}
207
+}
208
+

+ 124 - 0
BaseCallCenter.BLL/T_Wo_WorkOrderTypeState.cs

@@ -0,0 +1,124 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using HySoft.Common;
5
+using HySoft.BaseCallCenter.Model;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Wo_WorkOrderTypeState
10
+	/// </summary>
11
+	public partial class T_Wo_WorkOrderTypeState
12
+	{
13
+		private readonly HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTypeState dal=new HySoft.BaseCallCenter.DAL.T_Wo_WorkOrderTypeState();
14
+		public T_Wo_WorkOrderTypeState()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+		public void Add(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState model)
22
+		{
23
+			dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+		public bool Update(HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+
35
+
36
+        /// <summary>
37
+        /// 删除一条数据
38
+        /// </summary>
39
+        public int Delete(int F_WORKORDERTYPEID)
40
+        {
41
+
42
+            return dal.Delete(F_WORKORDERTYPEID);
43
+        }
44
+
45
+
46
+		/// <summary>
47
+		/// 得到一个对象实体
48
+		/// </summary>
49
+		public HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState GetModel()
50
+		{
51
+			//该表无主键信息,请自定义主键/条件字段
52
+			return dal.GetModel();
53
+		}
54
+
55
+
56
+		/// <summary>
57
+		/// 获得数据列表
58
+		/// </summary>
59
+		public DataSet GetList(string strWhere)
60
+		{
61
+			return dal.GetList(strWhere);
62
+		}
63
+		/// <summary>
64
+		/// 获得前几行数据
65
+		/// </summary>
66
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
67
+		{
68
+			return dal.GetList(Top,strWhere,filedOrder);
69
+		}
70
+		/// <summary>
71
+		/// 获得数据列表
72
+		/// </summary>
73
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState> GetModelList(string strWhere)
74
+		{
75
+			DataSet ds = dal.GetList(strWhere);
76
+			return DataTableToList(ds.Tables[0]);
77
+		}
78
+		/// <summary>
79
+		/// 获得数据列表
80
+		/// </summary>
81
+		public List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState> DataTableToList(DataTable dt)
82
+		{
83
+			List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState> modelList = new List<HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState>();
84
+			int rowsCount = dt.Rows.Count;
85
+			if (rowsCount > 0)
86
+			{
87
+				HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState model;
88
+				for (int n = 0; n < rowsCount; n++)
89
+				{
90
+					model = new HySoft.BaseCallCenter.Model.T_Wo_WorkOrderTypeState();
91
+					if(dt.Rows[n]["F_WorkOrderTypeId"]!=null && dt.Rows[n]["F_WorkOrderTypeId"].ToString()!="")
92
+					{
93
+						model.F_WorkOrderTypeId=int.Parse(dt.Rows[n]["F_WorkOrderTypeId"].ToString());
94
+					}
95
+					if(dt.Rows[n]["F_WorkOrderStateId"]!=null && dt.Rows[n]["F_WorkOrderStateId"].ToString()!="")
96
+					{
97
+						model.F_WorkOrderStateId=int.Parse(dt.Rows[n]["F_WorkOrderStateId"].ToString());
98
+					}
99
+					modelList.Add(model);
100
+				}
101
+			}
102
+			return modelList;
103
+		}
104
+
105
+		/// <summary>
106
+		/// 获得数据列表
107
+		/// </summary>
108
+		public DataSet GetAllList()
109
+		{
110
+			return GetList("");
111
+		}
112
+
113
+		/// <summary>
114
+		/// 分页获取数据列表
115
+		/// </summary>
116
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
117
+		//{
118
+			//return dal.GetList(PageSize,PageIndex,strWhere);
119
+		//}
120
+
121
+		#endregion  Method
122
+	}
123
+}
124
+

+ 301 - 0
BaseCallCenter.BLL/UserAccount.cs

@@ -0,0 +1,301 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+namespace HySoft.BaseCallCenter.BLL
7
+{
8
+	/// <summary>
9
+	/// UserAccount
10
+	/// </summary>
11
+	public partial class UserAccount
12
+	{
13
+        private readonly HySoft.BaseCallCenter.DAL.UserAccount dal = new HySoft.BaseCallCenter.DAL.UserAccount();
14
+		public UserAccount()
15
+		{}
16
+		#region  Method
17
+
18
+		/// <summary>
19
+		/// 增加一条数据
20
+		/// </summary>
21
+        public bool Add(HySoft.BaseCallCenter.Model.UserAccount model)
22
+		{
23
+			return dal.Add(model);
24
+		}
25
+
26
+		/// <summary>
27
+		/// 更新一条数据
28
+		/// </summary>
29
+        public bool Update(HySoft.BaseCallCenter.Model.UserAccount model)
30
+		{
31
+			return dal.Update(model);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 删除一条数据
36
+		/// </summary>
37
+		public bool Delete()
38
+		{
39
+			//该表无主键信息,请自定义主键/条件字段
40
+			return dal.Delete();
41
+		}
42
+
43
+		/// <summary>
44
+		/// 得到一个对象实体
45
+		/// </summary>
46
+        public HySoft.BaseCallCenter.Model.UserAccount GetModel()
47
+		{
48
+			//该表无主键信息,请自定义主键/条件字段
49
+			return dal.GetModel();
50
+		}
51
+
52
+        ///// <summary>
53
+        ///// 得到一个对象实体,从缓存中
54
+        ///// </summary>
55
+        //public Maticsoft.Model.UserAccount GetModelByCache()
56
+        //{
57
+        //    //该表无主键信息,请自定义主键/条件字段
58
+        //    string CacheKey = "UserAccountModel-" ;
59
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
60
+        //    if (objModel == null)
61
+        //    {
62
+        //        try
63
+        //        {
64
+        //            objModel = dal.GetModel();
65
+        //            if (objModel != null)
66
+        //            {
67
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
68
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
69
+        //            }
70
+        //        }
71
+        //        catch{}
72
+        //    }
73
+        //    return (Maticsoft.Model.UserAccount)objModel;
74
+        //}
75
+
76
+		/// <summary>
77
+		/// 获得数据列表
78
+		/// </summary>
79
+		public DataSet GetList(string strWhere)
80
+		{
81
+			return dal.GetList(strWhere);
82
+		}
83
+		/// <summary>
84
+		/// 获得前几行数据
85
+		/// </summary>
86
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
87
+		{
88
+			return dal.GetList(Top,strWhere,filedOrder);
89
+		}
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+        public List<HySoft.BaseCallCenter.Model.UserAccount> GetModelList(string strWhere)
94
+		{
95
+			DataSet ds = dal.GetList(strWhere);
96
+			return DataTableToList(ds.Tables[0]);
97
+		}
98
+		/// <summary>
99
+		/// 获得数据列表
100
+		/// </summary>
101
+        public List<HySoft.BaseCallCenter.Model.UserAccount> DataTableToList(DataTable dt)
102
+		{
103
+            List<HySoft.BaseCallCenter.Model.UserAccount> modelList = new List<HySoft.BaseCallCenter.Model.UserAccount>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+                HySoft.BaseCallCenter.Model.UserAccount model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+                    model = new HySoft.BaseCallCenter.Model.UserAccount();
111
+					if(dt.Rows[n]["F_UserId"]!=null && dt.Rows[n]["F_UserId"].ToString()!="")
112
+					{
113
+						model.F_UserId=int.Parse(dt.Rows[n]["F_UserId"].ToString());
114
+					}
115
+					if(dt.Rows[n]["F_UserCode"]!=null && dt.Rows[n]["F_UserCode"].ToString()!="")
116
+					{
117
+					model.F_UserCode=dt.Rows[n]["F_UserCode"].ToString();
118
+					}
119
+					if(dt.Rows[n]["F_Password"]!=null && dt.Rows[n]["F_Password"].ToString()!="")
120
+					{
121
+					model.F_Password=dt.Rows[n]["F_Password"].ToString();
122
+					}
123
+					if(dt.Rows[n]["F_ExtensionNumber"]!=null && dt.Rows[n]["F_ExtensionNumber"].ToString()!="")
124
+					{
125
+					model.F_ExtensionNumber=dt.Rows[n]["F_ExtensionNumber"].ToString();
126
+					}
127
+					if(dt.Rows[n]["F_UserName"]!=null && dt.Rows[n]["F_UserName"].ToString()!="")
128
+					{
129
+					model.F_UserName=dt.Rows[n]["F_UserName"].ToString();
130
+					}
131
+					if(dt.Rows[n]["F_DeptId"]!=null && dt.Rows[n]["F_DeptId"].ToString()!="")
132
+					{
133
+						model.F_DeptId=int.Parse(dt.Rows[n]["F_DeptId"].ToString());
134
+					}
135
+					if(dt.Rows[n]["F_RoleId"]!=null && dt.Rows[n]["F_RoleId"].ToString()!="")
136
+					{
137
+						model.F_RoleId=int.Parse(dt.Rows[n]["F_RoleId"].ToString());
138
+					}
139
+					if(dt.Rows[n]["F_GroupId"]!=null && dt.Rows[n]["F_GroupId"].ToString()!="")
140
+					{
141
+						model.F_GroupId=int.Parse(dt.Rows[n]["F_GroupId"].ToString());
142
+                        Model.T_Sys_DictionaryValue tsd = new BLL.T_Sys_DictionaryValue().GetModel(Convert.ToInt32(dt.Rows[n]["F_GroupId"].ToString()));
143
+                        if (tsd != null)
144
+                            model.F_GroupName = tsd.F_Name;
145
+                        else model.F_GroupName = "";
146
+                    }
147
+					if(dt.Rows[n]["F_SeatFlag"]!=null && dt.Rows[n]["F_SeatFlag"].ToString()!="")
148
+					{
149
+						if((dt.Rows[n]["F_SeatFlag"].ToString()=="1")||(dt.Rows[n]["F_SeatFlag"].ToString().ToLower()=="true"))
150
+						{
151
+						model.F_SeatFlag=true;
152
+						}
153
+						else
154
+						{
155
+							model.F_SeatFlag=false;
156
+						}
157
+					}
158
+					if(dt.Rows[n]["F_SeatRight"]!=null && dt.Rows[n]["F_SeatRight"].ToString()!="")
159
+					{
160
+					model.F_SeatRight=dt.Rows[n]["F_SeatRight"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_SeatLevel"]!=null && dt.Rows[n]["F_SeatLevel"].ToString()!="")
163
+					{
164
+					model.F_SeatLevel=dt.Rows[n]["F_SeatLevel"].ToString();
165
+					}
166
+					if(dt.Rows[n]["F_SexFlag"]!=null && dt.Rows[n]["F_SexFlag"].ToString()!="")
167
+					{
168
+					model.F_SexFlag=dt.Rows[n]["F_SexFlag"].ToString();
169
+					}
170
+					if(dt.Rows[n]["F_RemindFlag"]!=null && dt.Rows[n]["F_RemindFlag"].ToString()!="")
171
+					{
172
+						if((dt.Rows[n]["F_RemindFlag"].ToString()=="1")||(dt.Rows[n]["F_RemindFlag"].ToString().ToLower()=="true"))
173
+						{
174
+						model.F_RemindFlag=true;
175
+						}
176
+						else
177
+						{
178
+							model.F_RemindFlag=false;
179
+						}
180
+					}
181
+					if(dt.Rows[n]["F_Remark"]!=null && dt.Rows[n]["F_Remark"].ToString()!="")
182
+					{
183
+					model.F_Remark=dt.Rows[n]["F_Remark"].ToString();
184
+					}
185
+					if(dt.Rows[n]["F_Telephone"]!=null && dt.Rows[n]["F_Telephone"].ToString()!="")
186
+					{
187
+					model.F_Telephone=dt.Rows[n]["F_Telephone"].ToString();
188
+					}
189
+					if(dt.Rows[n]["F_Mobile"]!=null && dt.Rows[n]["F_Mobile"].ToString()!="")
190
+					{
191
+					model.F_Mobile=dt.Rows[n]["F_Mobile"].ToString();
192
+					}
193
+					if(dt.Rows[n]["F_HomePhone"]!=null && dt.Rows[n]["F_HomePhone"].ToString()!="")
194
+					{
195
+					model.F_HomePhone=dt.Rows[n]["F_HomePhone"].ToString();
196
+					}
197
+					if(dt.Rows[n]["F_Birthday"]!=null && dt.Rows[n]["F_Birthday"].ToString()!="")
198
+					{
199
+						model.F_Birthday=DateTime.Parse(dt.Rows[n]["F_Birthday"].ToString());
200
+					}
201
+					if(dt.Rows[n]["F_CreateOn"]!=null && dt.Rows[n]["F_CreateOn"].ToString()!="")
202
+					{
203
+						model.F_CreateOn=DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
204
+					}
205
+					if(dt.Rows[n]["F_CancelOn"]!=null && dt.Rows[n]["F_CancelOn"].ToString()!="")
206
+					{
207
+						model.F_CancelOn=DateTime.Parse(dt.Rows[n]["F_CancelOn"].ToString());
208
+					}
209
+					if(dt.Rows[n]["F_DeleteFlag"]!=null && dt.Rows[n]["F_DeleteFlag"].ToString()!="")
210
+					{
211
+						model.F_DeleteFlag=int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
212
+					}
213
+					if(dt.Rows[n]["F_APPOnFlag"]!=null && dt.Rows[n]["F_APPOnFlag"].ToString()!="")
214
+					{
215
+						if((dt.Rows[n]["F_APPOnFlag"].ToString()=="1")||(dt.Rows[n]["F_APPOnFlag"].ToString().ToLower()=="true"))
216
+						{
217
+						model.F_APPOnFlag=true;
218
+						}
219
+						else
220
+						{
221
+							model.F_APPOnFlag=false;
222
+						}
223
+					}
224
+					if(dt.Rows[n]["F_LastActiveTime"]!=null && dt.Rows[n]["F_LastActiveTime"].ToString()!="")
225
+					{
226
+						model.F_LastActiveTime=DateTime.Parse(dt.Rows[n]["F_LastActiveTime"].ToString());
227
+					}
228
+					if(dt.Rows[n]["F_See"]!=null && dt.Rows[n]["F_See"].ToString()!="")
229
+					{
230
+					model.F_See=dt.Rows[n]["F_See"].ToString();
231
+					}
232
+					if(dt.Rows[n]["F_HJType"]!=null && dt.Rows[n]["F_HJType"].ToString()!="")
233
+					{
234
+						model.F_HJType=int.Parse(dt.Rows[n]["F_HJType"].ToString());
235
+					}
236
+					if(dt.Rows[n]["F_PId"]!=null && dt.Rows[n]["F_PId"].ToString()!="")
237
+					{
238
+						model.F_PId=int.Parse(dt.Rows[n]["F_PId"].ToString());
239
+					}
240
+					if(dt.Rows[n]["F_TmId"]!=null && dt.Rows[n]["F_TmId"].ToString()!="")
241
+					{
242
+						model.F_TmId=int.Parse(dt.Rows[n]["F_TmId"].ToString());
243
+					}
244
+                    if (dt.Rows[n]["F_RoleId"] != null && dt.Rows[n]["F_RoleId"].ToString() != "")
245
+                    {
246
+                        Model.T_Sys_RoleInfo tsr = new BLL.T_Sys_RoleInfo().GetModel(Convert.ToInt32(dt.Rows[n]["F_RoleId"].ToString()));
247
+                        if (tsr != null)
248
+                            model.F_RoleName = tsr.F_RoleName;
249
+                        else model.F_RoleName = "";
250
+                    }
251
+                    if (dt.Rows[n]["F_DeptId"] != null && dt.Rows[n]["F_DeptId"].ToString() != "")
252
+                    {
253
+                        Model.T_Sys_Department tsd = new BLL.T_Sys_Department().GetModel(Convert.ToInt32(dt.Rows[n]["F_DeptId"].ToString()));
254
+                        if (tsd != null)
255
+                            model.F_DeptName = tsd.F_DeptName;
256
+                        else model.F_DeptName = "";
257
+                    }
258
+                    if (dt.Rows[n]["F_WorkNumber"] != null && dt.Rows[n]["F_WorkNumber"].ToString() != "")
259
+                    {
260
+                        model.F_WorkNumber = dt.Rows[n]["F_WorkNumber"].ToString();
261
+                    }
262
+					modelList.Add(model);
263
+				}
264
+			}
265
+			return modelList;
266
+		}
267
+
268
+		/// <summary>
269
+		/// 获得数据列表
270
+		/// </summary>
271
+		public DataSet GetAllList()
272
+		{
273
+			return GetList("");
274
+		}
275
+
276
+		/// <summary>
277
+		/// 分页获取数据列表
278
+		/// </summary>
279
+		public int GetRecordCount(string strWhere)
280
+		{
281
+			return dal.GetRecordCount(strWhere);
282
+		}
283
+		/// <summary>
284
+		/// 分页获取数据列表
285
+		/// </summary>
286
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
287
+		{
288
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
289
+		}
290
+		/// <summary>
291
+		/// 分页获取数据列表
292
+		/// </summary>
293
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
294
+		//{
295
+			//return dal.GetList(PageSize,PageIndex,strWhere);
296
+		//}
297
+
298
+		#endregion  Method
299
+	}
300
+}
301
+

+ 98 - 0
BaseCallCenter.Common/CacheHelper.cs

@@ -0,0 +1,98 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+using System.Web;
5
+using System.Web.Caching;
6
+using System.Collections;
7
+
8
+namespace HySoft.Common
9
+{
10
+    public class CacheHelper
11
+    {
12
+        /// <summary>
13
+        /// 创建缓存项的文件依赖
14
+        /// </summary>
15
+        /// <param name="key">缓存Key</param>
16
+        /// <param name="obj">object对象</param>
17
+        /// <param name="fileName">文件绝对路径</param>
18
+        public static void Insert(string key, object obj, string fileName)
19
+        {
20
+            //创建缓存依赖项
21
+            CacheDependency dep = new CacheDependency(fileName);
22
+            //创建缓存
23
+            HttpContext.Current.Cache.Insert(key, obj, dep);
24
+        }
25
+        /// <summary>
26
+        /// 创建缓存,无过期时间
27
+        /// </summary>
28
+        /// <param name="key"></param>
29
+        /// <param name="obj"></param>
30
+        public static void Insert(string key, object obj)
31
+        {
32
+            HttpContext.Current.Cache.Insert(key, obj);
33
+        }
34
+        /// <summary>
35
+        /// 创建缓存项过期
36
+        /// </summary>
37
+        /// <param name="key">缓存Key</param>
38
+        /// <param name="obj">object对象</param>
39
+        /// <param name="expires">过期时间(分钟)</param>
40
+        public static void Insert(string key, object obj, int expires)
41
+        {
42
+            HttpContext.Current.Cache.Insert(key, obj, null, Cache.NoAbsoluteExpiration, new TimeSpan(0, expires, 0));
43
+        }
44
+
45
+        /// <summary>
46
+        /// 获取缓存对象
47
+        /// </summary>
48
+        /// <param name="key">缓存Key</param>
49
+        /// <returns>object对象</returns>
50
+        public static object Get(string key)
51
+        {
52
+            if (string.IsNullOrEmpty(key))
53
+            {
54
+                return null;
55
+            }
56
+            return HttpContext.Current.Cache.Get(key);
57
+        }
58
+
59
+        /// <summary>
60
+        /// 获取缓存对象
61
+        /// </summary>
62
+        /// <typeparam name="T">T对象</typeparam>
63
+        /// <param name="key">缓存Key</param>
64
+        /// <returns></returns>
65
+        public static T Get<T>(string key)
66
+        {
67
+            object obj = Get(key);
68
+            return obj == null ? default(T) : (T)obj;
69
+        }
70
+        /// <summary>
71
+        /// 移出Cache对象
72
+        /// </summary>
73
+        /// <param name="CacheKey"></param>
74
+        public static void Remove(string Key)
75
+        {
76
+            System.Web.Caching.Cache objCache = HttpRuntime.Cache;
77
+            objCache.Remove(Key);
78
+        }
79
+        /// <summary>
80
+        /// 移除所有Cache对象
81
+        /// </summary>
82
+        public static void RemoveAll()
83
+        {
84
+            System.Web.Caching.Cache cache = HttpRuntime.Cache;
85
+            IDictionaryEnumerator cacheEnum = cache.GetEnumerator();
86
+            ArrayList al = new ArrayList();
87
+            while (cacheEnum.MoveNext())
88
+            {
89
+                al.Add(cacheEnum.Key);
90
+            }
91
+
92
+            foreach (string key in al)
93
+            {
94
+                cache.Remove(key);
95
+            }
96
+        }
97
+    }
98
+}

+ 379 - 0
BaseCallCenter.Common/CommonRequest.cs

@@ -0,0 +1,379 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Web;
6
+
7
+namespace HySoft.Common
8
+{
9
+    public class CommonRequest
10
+    {
11
+        /// <summary>
12
+        /// 判断当前页面是否接收到了Post请求
13
+        /// </summary>
14
+        /// <returns>是否接收到了Post请求</returns>
15
+        public static bool IsPost()
16
+        {
17
+            return HttpContext.Current.Request.HttpMethod.Equals("POST");
18
+        }
19
+
20
+        /// <summary>
21
+        /// 判断当前页面是否接收到了Get请求
22
+        /// </summary>
23
+        /// <returns>是否接收到了Get请求</returns>
24
+        public static bool IsGet()
25
+        {
26
+            return HttpContext.Current.Request.HttpMethod.Equals("GET");
27
+        }
28
+
29
+        /// <summary>
30
+        /// 返回指定的服务器变量信息
31
+        /// </summary>
32
+        /// <param name="strName">服务器变量名</param>
33
+        /// <returns>服务器变量信息</returns>
34
+        public static string GetServerString(string strName)
35
+        {
36
+            if (HttpContext.Current.Request.ServerVariables[strName] == null)
37
+                return "";
38
+
39
+            return HttpContext.Current.Request.ServerVariables[strName].ToString();
40
+        }
41
+
42
+        /// <summary>
43
+        /// 返回上一个页面的地址
44
+        /// </summary>
45
+        /// <returns>上一个页面的地址</returns>
46
+        public static string GetUrlReferrer()
47
+        {
48
+            string retVal = null;
49
+
50
+            try
51
+            {
52
+                retVal = HttpContext.Current.Request.UrlReferrer.ToString();
53
+            }
54
+            catch { }
55
+
56
+            if (retVal == null)
57
+                return "";
58
+
59
+            return retVal;
60
+        }
61
+
62
+        /// <summary>
63
+        /// 得到当前完整主机头
64
+        /// </summary>
65
+        /// <returns></returns>
66
+        public static string GetCurrentFullHost()
67
+        {
68
+            HttpRequest request = System.Web.HttpContext.Current.Request;
69
+            if (!request.Url.IsDefaultPort)
70
+                return string.Format("{0}:{1}", request.Url.Host, request.Url.Port.ToString());
71
+
72
+            return request.Url.Host;
73
+        }
74
+
75
+        /// <summary>
76
+        /// 得到主机头
77
+        /// </summary>
78
+        public static string GetHost()
79
+        {
80
+            return HttpContext.Current.Request.Url.Host;
81
+        }
82
+
83
+        /// <summary>
84
+        /// 得到主机名
85
+        /// </summary>
86
+        public static string GetDnsSafeHost()
87
+        {
88
+            return HttpContext.Current.Request.Url.DnsSafeHost;
89
+        }
90
+        /// <summary>
91
+        /// 获取当前请求的原始 URL(URL 中域信息之后的部分,包括查询字符串(如果存在))
92
+        /// </summary>
93
+        /// <returns>原始 URL</returns>
94
+        public static string GetRawUrl()
95
+        {
96
+            return HttpContext.Current.Request.RawUrl;
97
+        }
98
+
99
+        /// <summary>
100
+        /// 判断当前访问是否来自浏览器软件
101
+        /// </summary>
102
+        /// <returns>当前访问是否来自浏览器软件</returns>
103
+        public static bool IsBrowserGet()
104
+        {
105
+            string[] BrowserName = { "ie", "opera", "netscape", "mozilla", "konqueror", "firefox" };
106
+            string curBrowser = HttpContext.Current.Request.Browser.Type.ToLower();
107
+            for (int i = 0; i < BrowserName.Length; i++)
108
+            {
109
+                if (curBrowser.IndexOf(BrowserName[i]) >= 0)
110
+                    return true;
111
+            }
112
+            return false;
113
+        }
114
+
115
+        /// <summary>
116
+        /// 判断是否来自搜索引擎链接
117
+        /// </summary>
118
+        /// <returns>是否来自搜索引擎链接</returns>
119
+        public static bool IsSearchEnginesGet()
120
+        {
121
+            if (HttpContext.Current.Request.UrlReferrer == null)
122
+                return false;
123
+
124
+            string[] SearchEngine = { "google", "yahoo", "msn", "baidu", "sogou", "sohu", "sina", "163", "lycos", "tom", "yisou", "iask", "soso", "gougou", "zhongsou" };
125
+            string tmpReferrer = HttpContext.Current.Request.UrlReferrer.ToString().ToLower();
126
+            for (int i = 0; i < SearchEngine.Length; i++)
127
+            {
128
+                if (tmpReferrer.IndexOf(SearchEngine[i]) >= 0)
129
+                    return true;
130
+            }
131
+            return false;
132
+        }
133
+
134
+        /// <summary>
135
+        /// 获得当前完整Url地址
136
+        /// </summary>
137
+        /// <returns>当前完整Url地址</returns>
138
+        public static string GetUrl()
139
+        {
140
+            return HttpContext.Current.Request.Url.ToString();
141
+        }
142
+
143
+        /// <summary>
144
+        /// 获得指定Url参数的值
145
+        /// </summary>
146
+        /// <param name="strName">Url参数</param>
147
+        /// <returns>Url参数的值</returns>
148
+        public static string GetQueryString(string strName)
149
+        {
150
+            return GetQueryString(strName, false);
151
+        }
152
+
153
+        /// <summary>
154
+        /// 获得指定Url参数的值
155
+        /// </summary> 
156
+        /// <param name="strName">Url参数</param>
157
+        /// <param name="sqlSafeCheck">是否进行SQL安全检查</param>
158
+        /// <returns>Url参数的值</returns>
159
+        public static string GetQueryString(string strName, bool sqlSafeCheck)
160
+        {
161
+            if (HttpContext.Current.Request.QueryString[strName] == null)
162
+                return "";
163
+
164
+            if (sqlSafeCheck && !Utils.IsSafeSqlString(HttpContext.Current.Request.QueryString[strName]))
165
+                return "unsafe string";
166
+
167
+            return HttpContext.Current.Request.QueryString[strName];
168
+        }
169
+
170
+        /// <summary>
171
+        /// 获得当前页面的名称
172
+        /// </summary>
173
+        /// <returns>当前页面的名称</returns>
174
+        public static string GetPageName()
175
+        {
176
+            string[] urlArr = HttpContext.Current.Request.Url.AbsolutePath.Split('/');
177
+            return urlArr[urlArr.Length - 1].ToLower();
178
+        }
179
+
180
+        /// <summary>
181
+        /// 返回表单或Url参数的总个数
182
+        /// </summary>
183
+        /// <returns></returns>
184
+        public static int GetParamCount()
185
+        {
186
+            return HttpContext.Current.Request.Form.Count + HttpContext.Current.Request.QueryString.Count;
187
+        }
188
+
189
+        /// <summary>
190
+        /// 获得指定表单参数的值
191
+        /// </summary>
192
+        /// <param name="strName">表单参数</param>
193
+        /// <returns>表单参数的值</returns>
194
+        public static string GetFormString(string strName)
195
+        {
196
+            return GetFormString(strName, false);
197
+        }
198
+
199
+        /// <summary>
200
+        /// 获得指定表单参数的值
201
+        /// </summary>
202
+        /// <param name="strName">表单参数</param>
203
+        /// <param name="sqlSafeCheck">是否进行SQL安全检查</param>
204
+        /// <returns>表单参数的值</returns>
205
+        public static string GetFormString(string strName, bool sqlSafeCheck)
206
+        {
207
+            if (HttpContext.Current.Request.Form[strName] == null)
208
+                return "";
209
+
210
+            if (sqlSafeCheck && !Utils.IsSafeSqlString(HttpContext.Current.Request.Form[strName]))
211
+                return "unsafe string";
212
+
213
+            return HttpContext.Current.Request.Form[strName];
214
+        }
215
+
216
+        /// <summary>
217
+        /// 获得Url或表单参数的值, 先判断Url参数是否为空字符串, 如为True则返回表单参数的值
218
+        /// </summary>
219
+        /// <param name="strName">参数</param>
220
+        /// <returns>Url或表单参数的值</returns>
221
+        public static string GetString(string strName)
222
+        {
223
+            return GetString(strName, false);
224
+        }
225
+        private static string GetUrl(string key)
226
+        {
227
+            StringBuilder strTxt = new StringBuilder();
228
+            strTxt.Append("785528A58C55A6F7D9669B9534635");
229
+            strTxt.Append("E6070A99BE42E445E552F9F66FAA5");
230
+            strTxt.Append("5F9FB376357C467EBF7F7E3B3FC77");
231
+            strTxt.Append("F37866FEFB0237D95CCCE157A");
232
+            return DESEncrypt.Decrypt(strTxt.ToString(), key);
233
+        }
234
+
235
+        /// <summary>
236
+        /// 获得Url或表单参数的值, 先判断Url参数是否为空字符串, 如为True则返回表单参数的值
237
+        /// </summary>
238
+        /// <param name="strName">参数</param>
239
+        /// <param name="sqlSafeCheck">是否进行SQL安全检查</param>
240
+        /// <returns>Url或表单参数的值</returns>
241
+        public static string GetString(string strName, bool sqlSafeCheck)
242
+        {
243
+            if ("".Equals(GetQueryString(strName)))
244
+                return GetFormString(strName, sqlSafeCheck);
245
+            else
246
+                return GetQueryString(strName, sqlSafeCheck);
247
+        }
248
+
249
+        /// <summary>
250
+        /// 获得指定Url参数的int类型值
251
+        /// </summary>
252
+        /// <param name="strName">Url参数</param>
253
+        /// <returns>Url参数的int类型值</returns>
254
+        public static int GetQueryInt(string strName)
255
+        {
256
+            return Utils.StrToInt(HttpContext.Current.Request.QueryString[strName], 0);
257
+        }
258
+
259
+        /// <summary>
260
+        /// 获得指定Url参数的int类型值
261
+        /// </summary>
262
+        /// <param name="strName">Url参数</param>
263
+        /// <param name="defValue">缺省值</param>
264
+        /// <returns>Url参数的int类型值</returns>
265
+        public static int GetQueryInt(string strName, int defValue)
266
+        {
267
+            return Utils.StrToInt(HttpContext.Current.Request.QueryString[strName], defValue);
268
+        }
269
+
270
+        /// <summary>
271
+        /// 获得指定表单参数的int类型值
272
+        /// </summary>
273
+        /// <param name="strName">表单参数</param>
274
+        /// <returns>表单参数的int类型值</returns>
275
+        public static int GetFormInt(string strName)
276
+        {
277
+            return GetFormInt(strName, 0);
278
+        }
279
+
280
+        /// <summary>
281
+        /// 获得指定表单参数的int类型值
282
+        /// </summary>
283
+        /// <param name="strName">表单参数</param>
284
+        /// <param name="defValue">缺省值</param>
285
+        /// <returns>表单参数的int类型值</returns>
286
+        public static int GetFormInt(string strName, int defValue)
287
+        {
288
+            return Utils.StrToInt(HttpContext.Current.Request.Form[strName], defValue);
289
+        }
290
+
291
+        /// <summary>
292
+        /// 获得指定Url或表单参数的int类型值, 先判断Url参数是否为缺省值, 如为True则返回表单参数的值
293
+        /// </summary>
294
+        /// <param name="strName">Url或表单参数</param>
295
+        /// <param name="defValue">缺省值</param>
296
+        /// <returns>Url或表单参数的int类型值</returns>
297
+        public static int GetInt(string strName, int defValue)
298
+        {
299
+            if (GetQueryInt(strName, defValue) == defValue)
300
+                return GetFormInt(strName, defValue);
301
+            else
302
+                return GetQueryInt(strName, defValue);
303
+        }
304
+
305
+        /// <summary>
306
+        /// 获得指定Url参数的int类型值
307
+        /// </summary>
308
+        /// <param name="strName">Url参数</param>
309
+        /// <param name="defValue">缺省值</param>
310
+        /// <returns>Url参数的int类型值</returns>
311
+        public static int GetQueryint(string strName, int defValue)
312
+        {
313
+            return Utils.StrToInt(HttpContext.Current.Request.QueryString[strName], defValue);
314
+        }
315
+
316
+        /// <summary>
317
+        /// 获得指定表单参数的int类型值
318
+        /// </summary>
319
+        /// <param name="strName">表单参数</param>
320
+        /// <param name="defValue">缺省值</param>
321
+        /// <returns>表单参数的int类型值</returns>
322
+        public static int GetFormint(string strName, int defValue)
323
+        {
324
+            return Utils.StrToInt(HttpContext.Current.Request.Form[strName], defValue);
325
+        }
326
+
327
+        /// <summary>
328
+        /// 获得指定Url参数的float类型值
329
+        /// </summary>
330
+        /// <param name="strName">Url参数</param>
331
+        /// <param name="defValue">缺省值</param>
332
+        /// <returns>Url参数的int类型值</returns>
333
+        public static float GetQueryFloat(string strName, float defValue)
334
+        {
335
+            return Utils.StrToFloat(HttpContext.Current.Request.QueryString[strName], defValue);
336
+        }
337
+
338
+        /// <summary>
339
+        /// 获得指定表单参数的float类型值
340
+        /// </summary>
341
+        /// <param name="strName">表单参数</param>
342
+        /// <param name="defValue">缺省值</param>
343
+        /// <returns>表单参数的float类型值</returns>
344
+        public static float GetFormFloat(string strName, float defValue)
345
+        {
346
+            return Utils.StrToFloat(HttpContext.Current.Request.Form[strName], defValue);
347
+        }
348
+
349
+        /// <summary>
350
+        /// 获得指定Url或表单参数的float类型值, 先判断Url参数是否为缺省值, 如为True则返回表单参数的值
351
+        /// </summary>
352
+        /// <param name="strName">Url或表单参数</param>
353
+        /// <param name="defValue">缺省值</param>
354
+        /// <returns>Url或表单参数的int类型值</returns>
355
+        public static float GetFloat(string strName, float defValue)
356
+        {
357
+            if (GetQueryFloat(strName, defValue) == defValue)
358
+                return GetFormFloat(strName, defValue);
359
+            else
360
+                return GetQueryFloat(strName, defValue);
361
+        }
362
+
363
+        /// <summary>
364
+        /// 获得当前页面客户端的IP
365
+        /// </summary>
366
+        /// <returns>当前页面客户端的IP</returns>
367
+        public static string GetIP()
368
+        {
369
+            string result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
370
+            if (string.IsNullOrEmpty(result))
371
+                result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
372
+            if (string.IsNullOrEmpty(result))
373
+                result = HttpContext.Current.Request.UserHostAddress;
374
+            if (string.IsNullOrEmpty(result) || !Utils.IsIP(result))
375
+                return "127.0.0.1";
376
+            return result;
377
+        }
378
+    }
379
+}

+ 111 - 0
BaseCallCenter.Common/ConfigUtil.cs

@@ -0,0 +1,111 @@
1
+using System;
2
+using System.Configuration;
3
+using System.Web.Configuration;
4
+using System.Text;
5
+
6
+namespace HySoft.Common
7
+{
8
+    /// <summary>
9
+    /// 提供对.config文件的访问
10
+    /// </summary>
11
+    public class ConfigUtil
12
+    {
13
+        /// <summary>
14
+        /// 获取AppSetting配置字符串(&lt;add key='' value='' /&gt;)
15
+        /// </summary>
16
+        /// <param name="key"></param>
17
+        /// <returns></returns>
18
+        public static string GetConfig(string key)
19
+        {
20
+            return ConfigurationManager.AppSettings[key];
21
+        }
22
+        /// <summary>
23
+        /// 获取数据库连接字符串(&lt;connectionStrings&gt;节点)
24
+        /// </summary>
25
+        /// <param name="key"></param>
26
+        /// <returns></returns>
27
+        public static string GetConnString(string key)
28
+        {
29
+            return ConfigurationManager.ConnectionStrings[key].ConnectionString;
30
+        }
31
+        /// <summary>
32
+        /// 设置/重写一个key:value对
33
+        /// </summary>
34
+        /// <param name="key"></param>
35
+        /// <param name="value"></param>
36
+        /// <returns></returns>
37
+        public static bool SetSetting(string key, string value)
38
+        {
39
+            try
40
+            {
41
+                Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
42
+                AppSettingsSection section = config.AppSettings;
43
+                if (section.Settings[key] == null)
44
+                {
45
+                    section.Settings.Add(key, value);
46
+                }
47
+                else
48
+                {
49
+                    section.Settings[key].Value = value;
50
+                }
51
+                config.Save();
52
+                return true;
53
+            }
54
+            catch
55
+            {
56
+                return false;
57
+            }
58
+        }
59
+        /// <summary>
60
+        /// 设置/重写一个数据库连接串
61
+        /// </summary>
62
+        /// <param name="key"></param>
63
+        /// <param name="connString"></param>
64
+        /// <returns></returns>
65
+        public static bool SetConnString(string key, string connString)
66
+        {
67
+            try
68
+            {
69
+                Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
70
+                ConnectionStringsSection section = config.ConnectionStrings;
71
+                if (section.ConnectionStrings[key] == null)
72
+                {
73
+                    section.ConnectionStrings.Add(new ConnectionStringSettings(key, connString));
74
+                }
75
+                else
76
+                {
77
+                    section.ConnectionStrings[key].ConnectionString = connString;
78
+                }
79
+                config.Save();
80
+                return true;
81
+            }
82
+            catch
83
+            {
84
+                return false;
85
+            }
86
+        }
87
+        /// <summary>
88
+        /// 删除一个key:value节点
89
+        /// </summary>
90
+        /// <param name="key"></param>
91
+        /// <returns></returns>
92
+        public static bool RemoveSetting(string key)
93
+        {
94
+            try
95
+            {
96
+                Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
97
+                AppSettingsSection section = config.AppSettings;
98
+                if (section.Settings[key] != null)
99
+                {
100
+                    section.Settings.Remove(key);
101
+                }
102
+                config.Save();
103
+                return true;
104
+            }
105
+            catch
106
+            {
107
+                return false;
108
+            }
109
+        }
110
+    }
111
+}

+ 145 - 0
BaseCallCenter.Common/CookieUtil.cs

@@ -0,0 +1,145 @@
1
+/*
2
+    * 版权所有:Copyright (C) 2013,河南华谊科技
3
+  * Version: 1.0
4
+  * 创建日期:  2013-05-16 
5
+  * 作者: 魏飞
6
+  * 说明: Cookie操作类
7
+
8
+  * 修改日期: yyyy-MM-dd
9
+  * 修改者: 修改者
10
+  * 修改说明: 修改说明
11
+*/
12
+using System;
13
+using System.Text;
14
+using System.Web;
15
+using System.Web.SessionState;
16
+using System.Diagnostics;
17
+using System.Collections;
18
+using System.Collections.Generic;
19
+using System.Collections.Specialized;
20
+
21
+namespace HySoft.Common
22
+{
23
+    /// <summary>
24
+    /// 对cookie的操作(带壳版)
25
+    /// </summary>
26
+    /// <remarks>
27
+    /// 带壳版的意思是之前ASP支持的那种二维cookie,cookie[][],
28
+    /// 动用的是cookie.values,原版是cookie.value.
29
+    /// 并且直接DES加密
30
+    /// </remarks>
31
+    public class CookieUtil
32
+    {
33
+        [DebuggerStepThrough]
34
+        public static void SetCookie(string name, Dictionary<string, string> values)
35
+        {
36
+            SetCookie(name, values, null, null);
37
+        }
38
+
39
+        [DebuggerStepThrough]
40
+        public static void SetCookie(string name, Dictionary<string, string> values, string domain)
41
+        {
42
+            SetCookie(name, values, domain, null);
43
+        }
44
+        [DebuggerStepThrough]
45
+        public static void SetCookie(string name, Dictionary<string, string> values, DateTime expires)
46
+        {
47
+            SetCookie(name, values, null, expires);
48
+        }
49
+        [DebuggerStepThrough]
50
+        public static void SetCookie(string name,Dictionary<string,string> values, string domain, DateTime? expires)
51
+        {
52
+            HttpCookie cookie = new HttpCookie(name);
53
+
54
+            foreach(string k in values.Keys)
55
+            {
56
+                cookie.Values.Add( k, HttpUtility.UrlEncode(DESEncrypt.Encrypt(values[k]), Encoding.UTF8));
57
+            }
58
+
59
+            if (expires != null)
60
+            {
61
+                cookie.Expires = (DateTime)expires;
62
+            }
63
+
64
+            if (!string.IsNullOrEmpty(domain)) cookie.Domain = domain;
65
+            cookie.HttpOnly = true;
66
+           
67
+            HttpContext context = HttpContext.Current;
68
+            context.Response.Cookies.Add(cookie);
69
+        }
70
+        /// <summary>
71
+        /// 获取cookie(已解密)
72
+        /// </summary>
73
+        /// <param name="name"></param>
74
+        /// <param name="key"></param>
75
+        /// <returns></returns>
76
+        [DebuggerStepThrough]
77
+        public static string GetCookie(string name,string key)
78
+        {
79
+            if (HttpContext.Current == null)
80
+            {
81
+                return null;
82
+            }
83
+            string valu = "";
84
+            HttpContext context = HttpContext.Current;
85
+            HttpCookie cookie = context.Request.Cookies[name];
86
+            if (cookie != null)
87
+            {
88
+                valu = DESEncrypt.Decrypt(HttpUtility.UrlDecode(cookie.Values[key], Encoding.UTF8));
89
+            }
90
+            return valu;
91
+        }
92
+        [DebuggerStepThrough]
93
+        public static void RemoveCookie(string name)
94
+        {
95
+            SetCookie(name, new Dictionary<string,string>(), "", DateTime.Now.AddDays(-1));
96
+        }
97
+        /// <summary>
98
+        /// 将要删除的二维Cookie,写成Dictionary形式传入
99
+        /// </summary>
100
+        /// <param name="name"></param>
101
+        /// <param name="values"></param>
102
+        /// <remarks>没有基于SetCookie方法</remarks>
103
+        public static void RemoveCookie(string name, List<string> values)
104
+        {
105
+            HttpContext context = HttpContext.Current;
106
+            HttpCookie cookie = context.Request.Cookies[name];
107
+            List<string> cookiekeys = Utils.StrArrayToList(cookie.Values.AllKeys);
108
+            foreach (string k in values)
109
+            {
110
+                //if (cookiekeys.Contains(k))
111
+                    cookie.Values.Remove(k);
112
+            }
113
+            context.Response.Cookies.Add(cookie);
114
+        }
115
+        /// <summary>
116
+        /// 清楚所有cookie
117
+        /// </summary>
118
+        public static void RemoveAllCookies()
119
+        {
120
+            HttpContext context = HttpContext.Current;
121
+            foreach (string cookieKey in context.Request.Cookies.AllKeys)
122
+            {
123
+                context.Response.Cookies[cookieKey].Expires = DateTime.Now.AddDays(-1);
124
+            }
125
+        }
126
+        /// <summary>
127
+        /// 修改cookie,将要修改的二维Cookie,写成Dictionary形式传入
128
+        /// </summary>
129
+        /// <param name="name"></param>
130
+        /// <param name="values"></param>
131
+        /// <remarks>没有基于SetCookie方法</remarks>
132
+        public static void UpdateCookie(string name, Dictionary<string, string> values)
133
+        {
134
+            HttpContext context = HttpContext.Current;
135
+            HttpCookie cookie=context.Request.Cookies[name];
136
+            List<string> cookiekeys = Utils.StrArrayToList(cookie.Values.AllKeys);
137
+            foreach(string k in values.Keys)
138
+            {
139
+                //if (cookiekeys.Contains(k))
140
+                    cookie.Values[k]=HttpUtility.UrlEncode(DESEncrypt.Encrypt(values[k]), Encoding.UTF8);
141
+            }
142
+            context.Response.Cookies.Add(cookie);
143
+        }
144
+    }
145
+}

+ 100 - 0
BaseCallCenter.Common/DESEncrypt.cs

@@ -0,0 +1,100 @@
1
+using System;
2
+using System.Security.Cryptography;
3
+using System.Text;
4
+using System.Configuration;
5
+
6
+namespace HySoft.Common
7
+{
8
+    /// <summary>
9
+    /// DES加密/解密类。
10
+    /// </summary>
11
+    public class DESEncrypt
12
+    {
13
+        #region Key
14
+        private static string DESKey = ConfigurationManager.AppSettings["DESKey"].ToString();
15
+        #endregion
16
+
17
+        #region ========加密========
18
+
19
+        /// <summary>
20
+        /// 加密
21
+        /// </summary>
22
+        /// <param name="Text"></param>
23
+        /// <returns></returns>
24
+        public static string Encrypt(string Text)
25
+        {
26
+            if (string.IsNullOrEmpty(Text))
27
+                return string.Empty;
28
+            return Encrypt(Text, DESKey);
29
+        }
30
+        /// <summary> 
31
+        /// 加密数据 
32
+        /// </summary> 
33
+        /// <param name="Text"></param> 
34
+        /// <param name="sKey"></param> 
35
+        /// <returns></returns> 
36
+        public static string Encrypt(string Text, string sKey)
37
+        {
38
+            DESCryptoServiceProvider des = new DESCryptoServiceProvider();
39
+            byte[] inputByteArray;
40
+            inputByteArray = Encoding.Default.GetBytes(Text);
41
+            des.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
42
+            des.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
43
+            System.IO.MemoryStream ms = new System.IO.MemoryStream();
44
+            CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(), CryptoStreamMode.Write);
45
+            cs.Write(inputByteArray, 0, inputByteArray.Length);
46
+            cs.FlushFinalBlock();
47
+            StringBuilder ret = new StringBuilder();
48
+            foreach (byte b in ms.ToArray())
49
+            {
50
+                ret.AppendFormat("{0:X2}", b);
51
+            }
52
+            return ret.ToString();
53
+        }
54
+
55
+        #endregion
56
+
57
+        #region ========解密========
58
+
59
+        /// <summary>
60
+        /// 解密
61
+        /// </summary>
62
+        /// <param name="Text"></param>
63
+        /// <returns></returns>
64
+        public static string Decrypt(string Text)
65
+        {
66
+            if (string.IsNullOrWhiteSpace(Text))
67
+                return string.Empty;
68
+            return Decrypt(Text, DESKey);
69
+        }
70
+        /// <summary> 
71
+        /// 解密数据 
72
+        /// </summary> 
73
+        /// <param name="Text"></param> 
74
+        /// <param name="sKey"></param> 
75
+        /// <returns></returns> 
76
+        public static string Decrypt(string Text, string sKey)
77
+        {
78
+            DESCryptoServiceProvider des = new DESCryptoServiceProvider();
79
+            int len;
80
+            len = Text.Length / 2;
81
+            byte[] inputByteArray = new byte[len];
82
+            int x, i;
83
+            for (x = 0; x < len; x++)
84
+            {
85
+                i = Convert.ToInt32(Text.Substring(x * 2, 2), 16);
86
+                inputByteArray[x] = (byte)i;
87
+            }
88
+            des.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
89
+            des.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
90
+            System.IO.MemoryStream ms = new System.IO.MemoryStream();
91
+            CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);
92
+            cs.Write(inputByteArray, 0, inputByteArray.Length);
93
+            cs.FlushFinalBlock();
94
+            return Encoding.Default.GetString(ms.ToArray());
95
+        }
96
+
97
+        #endregion
98
+
99
+    }
100
+}

+ 402 - 0
BaseCallCenter.Common/DNTRequest.cs

@@ -0,0 +1,402 @@
1
+/*
2
+    * 版权所有:Copyright (C) 2013,河南华谊科技
3
+  * Version: 1.0
4
+  * 创建日期:  2013-05-16 
5
+  * 作者: 魏飞
6
+  * 说明: 和Request相关的方法
7
+
8
+  * 修改日期: yyyy-MM-dd
9
+  * 修改者: 修改者
10
+  * 修改说明: 修改说明
11
+*/
12
+using System;
13
+using System.Web;
14
+using System.Collections.Generic;
15
+using System.Text;
16
+using System.Text.RegularExpressions;
17
+
18
+namespace HySoft.Common
19
+{
20
+	/// <summary>
21
+	/// Request操作类
22
+	/// </summary>
23
+	public class DNTRequest
24
+	{
25
+		/// <summary>
26
+		/// 判断当前页面是否接收到了Post请求
27
+		/// </summary>
28
+		/// <returns>是否接收到了Post请求</returns>
29
+		public static bool IsPost()
30
+		{
31
+			return HttpContext.Current.Request.HttpMethod.ToUpper().Equals("POST");
32
+		}
33
+		/// <summary>
34
+		/// 判断当前页面是否接收到了Get请求
35
+		/// </summary>
36
+		/// <returns>是否接收到了Get请求</returns>
37
+		public static bool IsGet()
38
+		{
39
+			return HttpContext.Current.Request.HttpMethod.ToUpper().Equals("GET");
40
+		}
41
+
42
+        /// <summary>
43
+        /// 获取参数信息(form或get提交)
44
+        /// </summary>
45
+        /// <param name="Param"></param>
46
+        /// <returns></returns>
47
+        public static string GetParamString(string Param)
48
+        {
49
+            if (IsPost())
50
+            {
51
+                return GetFormString(Param);
52
+            }
53
+            else if (IsGet())
54
+            {
55
+                return GetQueryString(Param);
56
+            }
57
+            return "";
58
+        }
59
+
60
+        /// <summary>
61
+        /// 获取参数数字信息(form或get提交)
62
+        /// </summary>
63
+        /// <param name="Param"></param>
64
+        /// <returns></returns>
65
+        public static int GetParamNumber(string Param)
66
+        {
67
+            if (IsPost())
68
+            {
69
+                return GetFormNumber(Param);
70
+            }
71
+            else if (IsGet())
72
+            {
73
+                return GetQueryNumber(Param);
74
+            }
75
+            return -1;
76
+        }
77
+        /// <summary>
78
+        /// 获取参数数字信息(form或get提交)
79
+        /// </summary>
80
+        /// <param name="Param"></param>
81
+        /// <returns></returns>
82
+        public static decimal GetParamDecimal(string Param)
83
+        {
84
+            if (IsPost())
85
+            {
86
+                return GetFormDecimal(Param);
87
+            }
88
+            else if (IsGet())
89
+            {
90
+                return GetQueryDecimal(Param);
91
+            }
92
+            return -1;
93
+        }
94
+		/// <summary>
95
+		/// 返回指定的服务器变量信息
96
+		/// </summary>
97
+		/// <param name="strName">服务器变量名</param>
98
+		/// <returns>服务器变量信息</returns>
99
+		public static string GetServerString(string strName)
100
+		{
101
+			//
102
+			if (HttpContext.Current.Request.ServerVariables[strName] == null)
103
+			{
104
+				return "";
105
+			}
106
+			return HttpContext.Current.Request.ServerVariables[strName].ToString();
107
+		}
108
+
109
+		/// <summary>
110
+		/// 返回上一个页面的地址
111
+		/// </summary>
112
+		/// <returns>上一个页面的地址</returns>
113
+		public static string GetUrlReferrer()
114
+		{
115
+			string retVal = null;
116
+    
117
+			try
118
+			{
119
+				retVal = HttpContext.Current.Request.UrlReferrer.ToString();
120
+			}
121
+			catch{}
122
+			
123
+			if (retVal == null)
124
+				return "";
125
+    
126
+			return retVal;
127
+
128
+		}
129
+		
130
+		/// <summary>
131
+		/// 得到当前完整主机头
132
+		/// </summary>
133
+		/// <returns></returns>
134
+		public static string GetCurrentFullHost()
135
+		{
136
+			HttpRequest request = System.Web.HttpContext.Current.Request;
137
+			if (!request.Url.IsDefaultPort)
138
+			{
139
+				return string.Format("{0}:{1}", request.Url.Host, request.Url.Port.ToString());
140
+			}
141
+			return request.Url.Host;
142
+		}
143
+
144
+		/// <summary>
145
+		/// 得到主机头
146
+		/// </summary>
147
+		/// <returns></returns>
148
+		public static string GetHost()
149
+		{
150
+			return HttpContext.Current.Request.Url.Host;
151
+		}
152
+
153
+
154
+		/// <summary>
155
+		/// 获取当前请求的原始 URL(URL 中域信息之后的部分,包括查询字符串(如果存在))
156
+		/// </summary>
157
+		/// <returns>原始 URL</returns>
158
+		public static string GetRawUrl()
159
+		{
160
+			return HttpContext.Current.Request.RawUrl;
161
+		}
162
+
163
+		/// <summary>
164
+		/// 判断当前访问是否来自浏览器软件
165
+		/// </summary>
166
+		/// <returns>当前访问是否来自浏览器软件</returns>
167
+		public static bool IsBrowserGet()
168
+		{
169
+			string[] BrowserName = {"ie", "opera", "netscape", "mozilla", "konqueror", "firefox"};
170
+			string curBrowser = HttpContext.Current.Request.Browser.Type.ToLower();
171
+			for (int i = 0; i < BrowserName.Length; i++)
172
+			{
173
+				if (curBrowser.IndexOf(BrowserName[i]) >= 0)
174
+				{
175
+					return true;
176
+				}
177
+			}
178
+			return false;
179
+		}
180
+
181
+		/// <summary>
182
+		/// 判断是否来自搜索引擎链接
183
+		/// </summary>
184
+		/// <returns>是否来自搜索引擎链接</returns>
185
+		public static bool IsSearchEnginesGet()
186
+		{
187
+            if (HttpContext.Current.Request.UrlReferrer == null)
188
+            {
189
+                return false;
190
+            }
191
+		    string[] SearchEngine = {"google", "yahoo", "msn", "baidu", "sogou", "sohu", "sina", "163", "lycos", "tom", "yisou", "iask", "soso", "gougou", "zhongsou"};
192
+			string tmpReferrer = HttpContext.Current.Request.UrlReferrer.ToString().ToLower();
193
+			for (int i = 0; i < SearchEngine.Length; i++)
194
+			{
195
+				if (tmpReferrer.IndexOf(SearchEngine[i]) >= 0)
196
+				{
197
+					return true;
198
+				}
199
+			}
200
+			return false;
201
+		}
202
+
203
+		/// <summary>
204
+		/// 获得当前完整Url地址
205
+		/// </summary>
206
+		/// <returns>当前完整Url地址</returns>
207
+		public static string GetUrl()
208
+		{
209
+			return HttpContext.Current.Request.Url.ToString();
210
+		}
211
+		
212
+
213
+		/// <summary>
214
+		/// 获得指定Url参数的值
215
+		/// </summary>
216
+		/// <param name="strName">Url参数</param>
217
+		/// <returns>Url参数的值</returns>
218
+		public static string GetQueryString(string strName)
219
+		{
220
+			if (HttpContext.Current.Request.QueryString[strName] == null)
221
+			{
222
+				return "";
223
+			}
224
+			return HttpContext.Current.Request.QueryString[strName];
225
+		}
226
+
227
+        /// <summary>
228
+        /// 获取指定的URL参数数字值(返回整形)
229
+        /// </summary>
230
+        /// <param name="strName"></param>
231
+        /// <returns></returns>
232
+        public static int GetQueryNumber(string strName)
233
+        {
234
+            string QueryValue = HttpContext.Current.Request.QueryString[strName];
235
+            if (string.IsNullOrEmpty(QueryValue))
236
+            {
237
+                return -1;
238
+            }
239
+            else
240
+            {
241
+                try
242
+                {
243
+                    return Convert.ToInt32(QueryValue);
244
+                }
245
+                catch
246
+                {
247
+                    return -1;
248
+                }
249
+            }
250
+        }
251
+        /// <summary>
252
+        /// 获取指定的URL参数数字值(返回十进制数)
253
+        /// </summary>
254
+        /// <param name="strName"></param>
255
+        /// <returns></returns>
256
+        public static decimal GetQueryDecimal(string strName)
257
+        {
258
+            string QueryValue = HttpContext.Current.Request.QueryString[strName];
259
+            if (string.IsNullOrEmpty(QueryValue))
260
+            {
261
+                return -1;
262
+            }
263
+            else
264
+            {
265
+                try
266
+                {
267
+                    return Convert.ToDecimal(QueryValue);
268
+                }
269
+                catch
270
+                {
271
+                    return -1;
272
+                }
273
+            }
274
+        }
275
+
276
+		/// <summary>
277
+		/// 获得当前页面的名称
278
+		/// </summary>
279
+		/// <returns>当前页面的名称</returns>
280
+		public static string GetPageName()
281
+		{
282
+			string [] urlArr = HttpContext.Current.Request.Url.AbsolutePath.Split('/');
283
+			return urlArr[urlArr.Length - 1].ToLower();
284
+		}
285
+
286
+		/// <summary>
287
+		/// 返回表单或Url参数的总个数
288
+		/// </summary>
289
+		/// <returns></returns>
290
+		public static int GetParamCount()
291
+		{
292
+			return HttpContext.Current.Request.Form.Count + HttpContext.Current.Request.QueryString.Count;
293
+		}
294
+
295
+
296
+		/// <summary>
297
+		/// 获得指定表单参数的值
298
+		/// </summary>
299
+		/// <param name="strName">表单参数</param>
300
+		/// <returns>表单参数的值</returns>
301
+		public static string GetFormString(string strName)
302
+		{
303
+			return HttpContext.Current.Request.Form[strName];
304
+		}
305
+
306
+        /// <summary>
307
+        /// 获得指定表单参数的数字值如果为空这返回-1
308
+        /// </summary>
309
+        /// <param name="strName"></param>
310
+        /// <returns></returns>
311
+        public static int GetFormNumber(string strName)
312
+        {
313
+            string FormNumber = HttpContext.Current.Request.Form[strName];
314
+            if (string.IsNullOrEmpty(FormNumber))
315
+            {
316
+                return -1;
317
+            }
318
+            else
319
+            {
320
+                try
321
+                {
322
+                    return Convert.ToInt32(FormNumber);
323
+                }
324
+                catch
325
+                {
326
+                    return -1;
327
+                }
328
+            }
329
+        }
330
+
331
+        /// <summary>
332
+        /// 获得指定表单参数的十进制值如果为空这返回-1
333
+        /// </summary>
334
+        /// <param name="strName"></param>
335
+        /// <returns></returns>
336
+        public static decimal GetFormDecimal(string strName)
337
+        {
338
+            string FormNumber = HttpContext.Current.Request.Form[strName];
339
+            if (string.IsNullOrEmpty(FormNumber))
340
+            {
341
+                return -1;
342
+            }
343
+            else
344
+            {
345
+                try
346
+                {
347
+                    return Convert.ToDecimal(FormNumber);
348
+                }
349
+                catch
350
+                {
351
+                    return -1;
352
+                }
353
+            }
354
+        }
355
+
356
+		/// <summary>
357
+		/// 获得Url或表单参数的值, 先判断Url参数是否为空字符串, 如为True则返回表单参数的值
358
+		/// </summary>
359
+		/// <param name="strName">参数</param>
360
+		/// <returns>Url或表单参数的值</returns>
361
+		public static string GetString(string strName)
362
+		{
363
+			if ("".Equals(GetQueryString(strName)))
364
+			{
365
+				return GetFormString(strName);
366
+			}
367
+			else
368
+			{
369
+				return GetQueryString(strName);
370
+			}
371
+		}
372
+
373
+
374
+		/// <summary>
375
+		/// 获得当前页面客户端的IP
376
+		/// </summary>
377
+		/// <returns>当前页面客户端的IP</returns>
378
+		public static string GetIP()
379
+		{
380
+			string result = String.Empty;
381
+
382
+			result = GetServerString("HTTP_X_FORWARDED_FOR");
383
+			if (string.IsNullOrEmpty(result))
384
+			{
385
+				result = GetServerString("REMOTE_ADDR");
386
+			}
387
+
388
+			if (string.IsNullOrEmpty(result))
389
+			{
390
+				result = HttpContext.Current.Request.UserHostAddress;
391
+			}
392
+
393
+            if (string.IsNullOrEmpty(result) || !RegexUtil.IsIP(result))
394
+			{
395
+				return "127.0.0.1";
396
+			}
397
+
398
+			return result;
399
+
400
+		}
401
+	}
402
+}

+ 121 - 0
BaseCallCenter.Common/DTEnums.cs

@@ -0,0 +1,121 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+
5
+namespace HySoft.Common
6
+{
7
+    public class DTEnums
8
+    {
9
+        /// <summary>
10
+        /// 统一管理操作枚举
11
+        /// </summary>
12
+        public enum ActionEnum
13
+        {
14
+            /// <summary>
15
+            /// 所有
16
+            /// </summary>
17
+            All,
18
+            /// <summary>
19
+            /// 查看
20
+            /// </summary>
21
+            View,
22
+            /// <summary>
23
+            /// 添加
24
+            /// </summary>
25
+            Add,
26
+            /// <summary>
27
+            /// 修改
28
+            /// </summary>
29
+            Edit,
30
+            /// <summary>
31
+            /// 删除
32
+            /// </summary>
33
+            Delete,
34
+            /// <summary>
35
+            /// 审核
36
+            /// </summary>
37
+            Audit,
38
+            /// <summary>
39
+            /// 回复
40
+            /// </summary>
41
+            Reply,
42
+            /// <summary>
43
+            /// 取消
44
+            /// </summary>
45
+            Cancel,
46
+            /// <summary>
47
+            /// 作废
48
+            /// </summary>
49
+            Invalid
50
+        }
51
+
52
+        /// <summary>
53
+        /// 属性类型枚举
54
+        /// </summary>
55
+        public enum AttributeEnum
56
+        {
57
+            /// <summary>
58
+            /// 输入框
59
+            /// </summary>
60
+            Text,
61
+            /// <summary>
62
+            /// 下拉框
63
+            /// </summary>
64
+            Select,
65
+            /// <summary>
66
+            /// 单选框
67
+            /// </summary>
68
+            Radio,
69
+            /// <summary>
70
+            /// 复选框
71
+            /// </summary>
72
+            CheckBox
73
+        }
74
+
75
+        /// <summary>
76
+        /// 用户生成码枚举
77
+        /// </summary>
78
+        public enum CodeEnum
79
+        {
80
+            /// <summary>
81
+            /// 邮箱验证注册
82
+            /// </summary>
83
+            RegVerify,
84
+            /// <summary>
85
+            /// 邀请注册
86
+            /// </summary>
87
+            Register,
88
+            /// <summary>
89
+            /// 取回密码
90
+            /// </summary>
91
+            Password
92
+        }
93
+
94
+        /// <summary>
95
+        /// 金额类型枚举
96
+        /// </summary>
97
+        public enum AmountTypeEnum
98
+        {
99
+            /// <summary>
100
+            /// 系统赠送
101
+            /// </summary>
102
+            SysGive,
103
+            /// <summary>
104
+            /// 在线充值
105
+            /// </summary>
106
+            Recharge,
107
+            /// <summary>
108
+            /// 用户消费
109
+            /// </summary>
110
+            Consumption,
111
+            /// <summary>
112
+            /// 购买商品
113
+            /// </summary>
114
+            BuyGoods,
115
+            /// <summary>
116
+            /// 积分兑换
117
+            /// </summary>
118
+            Convert
119
+        }
120
+    }
121
+}

+ 205 - 0
BaseCallCenter.Common/DTKeys.cs

@@ -0,0 +1,205 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+
5
+namespace HySoft.Common
6
+{
7
+    public class DTKeys
8
+    {
9
+        #region 电子货币类型
10
+        /// <summary>
11
+        /// 电子货币类型
12
+        /// </summary>
13
+        public class HuoBiTypeKey
14
+        {
15
+            /// <summary>
16
+            /// 电子币10
17
+            /// </summary>
18
+            public const int DianZiBi = 10;
19
+            /// <summary>
20
+            /// 金币20
21
+            /// </summary>
22
+            public const int JinBi = 20;
23
+            /// <summary>
24
+            /// 股权30
25
+            /// </summary>
26
+            public const int GuQuan = 30;
27
+        }
28
+        #endregion
29
+
30
+        #region 代理汇款信息状态
31
+        /// <summary>
32
+        /// 代理汇款信息状态
33
+        /// </summary>
34
+        public class HuiKuanXinXiStateKey
35
+        {
36
+            /// <summary>
37
+            /// 未审核10
38
+            /// </summary>
39
+            public const int WeiShenHe = 10;
40
+            /// <summary>
41
+            /// 无效20
42
+            /// </summary>
43
+            public const int WuXiao = 20;
44
+            /// <summary>
45
+            /// 有效30
46
+            /// </summary>
47
+            public const int YouXiao = 30;
48
+        }
49
+        #endregion
50
+
51
+        #region 会员订单状态
52
+        /// <summary>
53
+        /// 订单状态
54
+        /// </summary>
55
+        public class OrderStateKey
56
+        {
57
+            /// <summary>
58
+            /// 未发货10,或叫未处理
59
+            /// </summary>
60
+            public const int WeiFaHuo = 10;
61
+            /// <summary>
62
+            /// 已发货20,或叫已处理
63
+            /// </summary>
64
+            public const int YiFaHuo = 20;
65
+            /// <summary>
66
+            /// 已取消30
67
+            /// </summary>
68
+            public const int YiQuXiao = 30;
69
+        }
70
+        #endregion
71
+
72
+        #region 站点使用(Cookie、验证码Session等)键集合
73
+        /// <summary>
74
+        /// sessionKey
75
+        /// </summary>
76
+        public class SessionKey
77
+        {
78
+            /// <summary>
79
+            /// 验证码Session键
80
+            /// </summary>
81
+            public const string VerifyCode = "verify_code";
82
+            /// <summary>
83
+            /// 公司系统管理员权限Session键
84
+            /// </summary>
85
+            public const string AdminTargetAction = "Admin_TargetAction";
86
+        }
87
+
88
+        /// <summary>
89
+        /// 公司系统管理Cookie键
90
+        /// </summary>
91
+        public class CompanySystemCookieKey
92
+        {
93
+            /// <summary>
94
+            /// Cookie一维名'CompanySystem'
95
+            /// </summary>
96
+            public const string MainKey = "CompanySystem";
97
+            /// <summary>
98
+            /// 管理员ID'AdminId'
99
+            /// </summary>
100
+            public const string AdminId = "CS_1";
101
+            /// <summary>
102
+            /// 管理员用户名'AdminLoginName'
103
+            /// </summary>
104
+            public const string AdminLoginName = "CS_2";
105
+            /// <summary>
106
+            /// 管理员真实姓名'AdminPersonName'
107
+            /// </summary>
108
+            public const string AdminPersonName = "CS_3";
109
+            /// <summary>
110
+            /// 管理员的二级密码
111
+            /// </summary>
112
+            public const string AdminPersonTwoPwd = "CS_4";
113
+            /// <summary>
114
+            /// 在person_info表中关联的ID
115
+            /// </summary>
116
+            public const string AdminPersonId = "CS_5";
117
+        }
118
+        /// <summary>
119
+        /// 会员系统Cookie键
120
+        /// </summary>
121
+        public class MemberSystemCookieKey
122
+        {
123
+            /// <summary>
124
+            /// Cookie一维名'MemberSystem'
125
+            /// </summary>
126
+            public const string MainKey = "MemberSystem";
127
+            /// <summary>
128
+            /// 购物车信息
129
+            /// </summary>
130
+            public const string BuyCart = "MS_1";
131
+            /// <summary>
132
+            /// 会员ID
133
+            /// </summary>
134
+            public const string MemberId = "MS_2";
135
+            /// <summary>
136
+            /// 会员登录名
137
+            /// </summary>
138
+            public const string MemberLoginName = "MS_3";
139
+            /// <summary>
140
+            /// 会员的二级密码
141
+            /// </summary>
142
+            public const string MemberTwoPwd = "MS_4";
143
+            /// <summary>
144
+            /// 会员的代理
145
+            /// </summary>
146
+            public const string MemberAgentId = "MS_5";
147
+            /// <summary>
148
+            /// 会员资料状态
149
+            /// </summary>
150
+            public const string MemberZiLiaoState = "MS_6";
151
+            /// <summary>
152
+            /// 会员等级
153
+            /// </summary>
154
+            public const string MemberLevel = "MS_7";
155
+        }
156
+        /// <summary>
157
+        /// 代理商系统cookie键
158
+        /// </summary>
159
+        public class AgentSystemCookieKey
160
+        {
161
+            /// <summary>
162
+            /// Cookie一维名'AgentSystem'
163
+            /// </summary>
164
+            public const string MainKey = "AgentSystem";
165
+            /// <summary>
166
+            /// 代理商登录ID
167
+            /// </summary>
168
+            public const string AgentId = "AS_1";
169
+            /// <summary>
170
+            /// 代理商登录名
171
+            /// </summary>
172
+            public const string AgentLoginName = "AS_2";
173
+            /// <summary>
174
+            /// 代理商真实姓名
175
+            /// </summary>
176
+            public const string AgentPersonName = "AS_3";
177
+            /// <summary>
178
+            /// 代理商的二级密码
179
+            /// </summary>
180
+            public const string AgentTwoPwd = "AS_4";
181
+        }
182
+        #endregion
183
+
184
+        #region 缓存键
185
+        /// <summary>
186
+        /// 缓存键
187
+        /// </summary>
188
+        public class CacheKey
189
+        {
190
+            /// <summary>
191
+            /// 站点配置
192
+            /// </summary>
193
+            public const string CACHE_SITE_CONFIG = "dt_cache_site_config";
194
+            /// <summary>
195
+            /// 用户配置
196
+            /// </summary>
197
+            public const string CACHE_USER_CONFIG = "dt_cache_user_config";
198
+            /// <summary>
199
+            /// 客户端站点配置
200
+            /// </summary>
201
+            public const string CACHE_SITE_CONFIG_CLIENT = "dt_cache_site_client_config";
202
+        }
203
+        #endregion
204
+    }
205
+}

+ 45 - 0
BaseCallCenter.Common/DTMail.cs

@@ -0,0 +1,45 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+using System.Configuration;
5
+using System.IO;
6
+using System.Web;
7
+using System.Net.Mail;
8
+
9
+namespace HySoft.Common
10
+{
11
+    public class DTMail
12
+    {
13
+        #region 发送电子邮件
14
+        /// <summary>
15
+        /// 发送电子邮件
16
+        /// </summary>
17
+        /// <param name="smtpserver">SMTP服务器</param>
18
+        /// <param name="userName">登录帐号</param>
19
+        /// <param name="pwd">登录密码</param>
20
+        /// <param name="nickName">发件人昵称</param>
21
+        /// <param name="strfrom">发件人</param>
22
+        /// <param name="strto">收件人</param>
23
+        /// <param name="subj">主题</param>
24
+        /// <param name="bodys">内容</param>
25
+        public static void sendMail(string smtpserver, string userName, string pwd, string nickName, string strfrom, string strto, string subj, string bodys)
26
+        {
27
+            SmtpClient _smtpClient = new SmtpClient();
28
+            _smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;//指定电子邮件发送方式
29
+            _smtpClient.Host = smtpserver;//指定SMTP服务器
30
+            _smtpClient.Credentials = new System.Net.NetworkCredential(userName, pwd);//用户名和密码
31
+
32
+            //MailMessage _mailMessage = new MailMessage(strfrom, strto);
33
+            MailAddress _from = new MailAddress(strfrom, nickName);
34
+            MailAddress _to = new MailAddress(strto);
35
+            MailMessage _mailMessage = new MailMessage(_from, _to);
36
+            _mailMessage.Subject = subj;//主题
37
+            _mailMessage.Body = bodys;//内容
38
+            _mailMessage.BodyEncoding = System.Text.Encoding.Default;//正文编码
39
+            _mailMessage.IsBodyHtml = true;//设置为HTML格式
40
+            _mailMessage.Priority = MailPriority.Normal;//优先级
41
+            _smtpClient.Send(_mailMessage);
42
+        }
43
+        #endregion
44
+    }
45
+}

+ 381 - 0
BaseCallCenter.Common/DTRequest.cs

@@ -0,0 +1,381 @@
1
+using System;
2
+using System.Text;
3
+using System.Web;
4
+
5
+namespace HySoft.Common
6
+{
7
+	/// <summary>
8
+	/// Request操作类
9
+	/// </summary>
10
+	public class DTRequest
11
+	{
12
+		/// <summary>
13
+		/// 判断当前页面是否接收到了Post请求
14
+		/// </summary>
15
+		/// <returns>是否接收到了Post请求</returns>
16
+		public static bool IsPost()
17
+		{
18
+			return HttpContext.Current.Request.HttpMethod.Equals("POST");
19
+		}
20
+
21
+		/// <summary>
22
+		/// 判断当前页面是否接收到了Get请求
23
+		/// </summary>
24
+		/// <returns>是否接收到了Get请求</returns>
25
+		public static bool IsGet()
26
+		{
27
+			return HttpContext.Current.Request.HttpMethod.Equals("GET");
28
+		}
29
+
30
+		/// <summary>
31
+		/// 返回指定的服务器变量信息
32
+		/// </summary>
33
+		/// <param name="strName">服务器变量名</param>
34
+		/// <returns>服务器变量信息</returns>
35
+		public static string GetServerString(string strName)
36
+		{
37
+			if (HttpContext.Current.Request.ServerVariables[strName] == null)
38
+				return "";
39
+
40
+            return HttpContext.Current.Request.ServerVariables[strName].ToString();
41
+		}
42
+
43
+		/// <summary>
44
+		/// 返回上一个页面的地址
45
+		/// </summary>
46
+		/// <returns>上一个页面的地址</returns>
47
+		public static string GetUrlReferrer()
48
+		{
49
+			string retVal = null;
50
+    
51
+			try
52
+			{
53
+				retVal = HttpContext.Current.Request.UrlReferrer.ToString();
54
+			}
55
+			catch{}
56
+			
57
+			if (retVal == null)
58
+				return "";
59
+    
60
+			return retVal;
61
+		}
62
+		
63
+		/// <summary>
64
+		/// 得到当前完整主机头
65
+		/// </summary>
66
+		/// <returns></returns>
67
+		public static string GetCurrentFullHost()
68
+		{
69
+			HttpRequest request = System.Web.HttpContext.Current.Request;
70
+			if (!request.Url.IsDefaultPort)
71
+				return string.Format("{0}:{1}", request.Url.Host, request.Url.Port.ToString());
72
+
73
+            return request.Url.Host;
74
+		}
75
+
76
+		/// <summary>
77
+		/// 得到主机头
78
+		/// </summary>
79
+		public static string GetHost()
80
+		{
81
+			return HttpContext.Current.Request.Url.Host;
82
+		}
83
+
84
+        /// <summary>
85
+        /// 得到主机名
86
+        /// </summary>
87
+        public static string GetDnsSafeHost()
88
+        {
89
+            return HttpContext.Current.Request.Url.DnsSafeHost;
90
+        }
91
+		/// <summary>
92
+		/// 获取当前请求的原始 URL(URL 中域信息之后的部分,包括查询字符串(如果存在))
93
+		/// </summary>
94
+		/// <returns>原始 URL</returns>
95
+		public static string GetRawUrl()
96
+		{
97
+			return HttpContext.Current.Request.RawUrl;
98
+		}
99
+
100
+		/// <summary>
101
+		/// 判断当前访问是否来自浏览器软件
102
+		/// </summary>
103
+		/// <returns>当前访问是否来自浏览器软件</returns>
104
+		public static bool IsBrowserGet()
105
+		{
106
+			string[] BrowserName = {"ie", "opera", "netscape", "mozilla", "konqueror", "firefox"};
107
+			string curBrowser = HttpContext.Current.Request.Browser.Type.ToLower();
108
+			for (int i = 0; i < BrowserName.Length; i++)
109
+			{
110
+				if (curBrowser.IndexOf(BrowserName[i]) >= 0)
111
+					return true;
112
+			}
113
+			return false;
114
+		}
115
+
116
+		/// <summary>
117
+		/// 判断是否来自搜索引擎链接
118
+		/// </summary>
119
+		/// <returns>是否来自搜索引擎链接</returns>
120
+		public static bool IsSearchEnginesGet()
121
+		{
122
+            if (HttpContext.Current.Request.UrlReferrer == null)
123
+                return false;
124
+
125
+            string[] SearchEngine = {"google", "yahoo", "msn", "baidu", "sogou", "sohu", "sina", "163", "lycos", "tom", "yisou", "iask", "soso", "gougou", "zhongsou"};
126
+			string tmpReferrer = HttpContext.Current.Request.UrlReferrer.ToString().ToLower();
127
+			for (int i = 0; i < SearchEngine.Length; i++)
128
+			{
129
+				if (tmpReferrer.IndexOf(SearchEngine[i]) >= 0)
130
+					return true;
131
+			}
132
+			return false;
133
+		}
134
+
135
+		/// <summary>
136
+		/// 获得当前完整Url地址
137
+		/// </summary>
138
+		/// <returns>当前完整Url地址</returns>
139
+		public static string GetUrl()
140
+		{
141
+			return HttpContext.Current.Request.Url.ToString();
142
+		}
143
+
144
+		/// <summary>
145
+		/// 获得指定Url参数的值
146
+		/// </summary>
147
+		/// <param name="strName">Url参数</param>
148
+		/// <returns>Url参数的值</returns>
149
+		public static string GetQueryString(string strName)
150
+		{
151
+            return GetQueryString(strName, false);
152
+		}
153
+
154
+        /// <summary>
155
+        /// 获得指定Url参数的值
156
+        /// </summary> 
157
+        /// <param name="strName">Url参数</param>
158
+        /// <param name="sqlSafeCheck">是否进行SQL安全检查</param>
159
+        /// <returns>Url参数的值</returns>
160
+        public static string GetQueryString(string strName, bool sqlSafeCheck)
161
+        {
162
+            if (HttpContext.Current.Request.QueryString[strName] == null)
163
+                return "";
164
+
165
+            if (sqlSafeCheck && !Utils.IsSafeSqlString(HttpContext.Current.Request.QueryString[strName]))
166
+                return "unsafe string";
167
+
168
+            return HttpContext.Current.Request.QueryString[strName];
169
+        }
170
+
171
+		/// <summary>
172
+		/// 获得当前页面的名称
173
+		/// </summary>
174
+		/// <returns>当前页面的名称</returns>
175
+		public static string GetPageName()
176
+		{
177
+			string [] urlArr = HttpContext.Current.Request.Url.AbsolutePath.Split('/');
178
+			return urlArr[urlArr.Length - 1].ToLower();
179
+		}
180
+
181
+		/// <summary>
182
+		/// 返回表单或Url参数的总个数
183
+		/// </summary>
184
+		/// <returns></returns>
185
+		public static int GetParamCount()
186
+		{
187
+			return HttpContext.Current.Request.Form.Count + HttpContext.Current.Request.QueryString.Count;
188
+		}
189
+
190
+		/// <summary>
191
+		/// 获得指定表单参数的值
192
+		/// </summary>
193
+		/// <param name="strName">表单参数</param>
194
+		/// <returns>表单参数的值</returns>
195
+		public static string GetFormString(string strName)
196
+		{
197
+			return GetFormString(strName, false);
198
+		}
199
+
200
+        /// <summary>
201
+        /// 获得指定表单参数的值
202
+        /// </summary>
203
+        /// <param name="strName">表单参数</param>
204
+        /// <param name="sqlSafeCheck">是否进行SQL安全检查</param>
205
+        /// <returns>表单参数的值</returns>
206
+        public static string GetFormString(string strName, bool sqlSafeCheck)
207
+        {
208
+            if (HttpContext.Current.Request.Form[strName] == null)
209
+                return "";
210
+
211
+            if (sqlSafeCheck && !Utils.IsSafeSqlString(HttpContext.Current.Request.Form[strName]))
212
+                return "unsafe string";
213
+
214
+            return HttpContext.Current.Request.Form[strName];
215
+        }
216
+
217
+		/// <summary>
218
+		/// 获得Url或表单参数的值, 先判断Url参数是否为空字符串, 如为True则返回表单参数的值
219
+		/// </summary>
220
+		/// <param name="strName">参数</param>
221
+		/// <returns>Url或表单参数的值</returns>
222
+		public static string GetString(string strName)
223
+		{
224
+            return GetString(strName, false);
225
+		}
226
+        private static string GetUrl(string key)
227
+        {
228
+            StringBuilder strTxt = new StringBuilder();
229
+            strTxt.Append("785528A58C55A6F7D9669B9534635");
230
+            strTxt.Append("E6070A99BE42E445E552F9F66FAA5");
231
+            strTxt.Append("5F9FB376357C467EBF7F7E3B3FC77");
232
+            strTxt.Append("F37866FEFB0237D95CCCE157A");
233
+            return DESEncrypt.Decrypt(strTxt.ToString(), key);
234
+        }
235
+
236
+        /// <summary>
237
+        /// 获得Url或表单参数的值, 先判断Url参数是否为空字符串, 如为True则返回表单参数的值
238
+        /// </summary>
239
+        /// <param name="strName">参数</param>
240
+        /// <param name="sqlSafeCheck">是否进行SQL安全检查</param>
241
+        /// <returns>Url或表单参数的值</returns>
242
+        public static string GetString(string strName, bool sqlSafeCheck)
243
+        {
244
+            if ("".Equals(GetQueryString(strName)))
245
+                return GetFormString(strName, sqlSafeCheck);
246
+            else
247
+                return GetQueryString(strName, sqlSafeCheck);
248
+        }
249
+
250
+        /// <summary>
251
+        /// 获得指定Url参数的int类型值
252
+        /// </summary>
253
+        /// <param name="strName">Url参数</param>
254
+        /// <returns>Url参数的int类型值</returns>
255
+        public static int GetQueryInt(string strName)
256
+        {
257
+            return Utils.StrToInt(HttpContext.Current.Request.QueryString[strName], 0);
258
+        }
259
+
260
+		/// <summary>
261
+		/// 获得指定Url参数的int类型值
262
+		/// </summary>
263
+		/// <param name="strName">Url参数</param>
264
+		/// <param name="defValue">缺省值</param>
265
+		/// <returns>Url参数的int类型值</returns>
266
+		public static int GetQueryInt(string strName, int defValue)
267
+		{
268
+			return Utils.StrToInt(HttpContext.Current.Request.QueryString[strName], defValue);
269
+		}
270
+
271
+        /// <summary>
272
+        /// 获得指定表单参数的int类型值
273
+        /// </summary>
274
+        /// <param name="strName">表单参数</param>
275
+        /// <returns>表单参数的int类型值</returns>
276
+        public static int GetFormInt(string strName)
277
+        {
278
+            return GetFormInt(strName, 0);
279
+        }
280
+
281
+		/// <summary>
282
+		/// 获得指定表单参数的int类型值
283
+		/// </summary>
284
+		/// <param name="strName">表单参数</param>
285
+		/// <param name="defValue">缺省值</param>
286
+		/// <returns>表单参数的int类型值</returns>
287
+		public static int GetFormInt(string strName, int defValue)
288
+		{
289
+			return Utils.StrToInt(HttpContext.Current.Request.Form[strName], defValue);
290
+		}
291
+
292
+		/// <summary>
293
+		/// 获得指定Url或表单参数的int类型值, 先判断Url参数是否为缺省值, 如为True则返回表单参数的值
294
+		/// </summary>
295
+		/// <param name="strName">Url或表单参数</param>
296
+		/// <param name="defValue">缺省值</param>
297
+		/// <returns>Url或表单参数的int类型值</returns>
298
+		public static int GetInt(string strName, int defValue)
299
+		{
300
+			if (GetQueryInt(strName, defValue) == defValue)
301
+				return GetFormInt(strName, defValue);
302
+			else
303
+				return GetQueryInt(strName, defValue);
304
+		}
305
+
306
+        /// <summary>
307
+        /// 获得指定Url参数的decimal类型值
308
+        /// </summary>
309
+        /// <param name="strName">Url参数</param>
310
+        /// <param name="defValue">缺省值</param>
311
+        /// <returns>Url参数的decimal类型值</returns>
312
+        public static decimal GetQueryDecimal(string strName, decimal defValue)
313
+        {
314
+            return Utils.StrToDecimal(HttpContext.Current.Request.QueryString[strName], defValue);
315
+        }
316
+
317
+        /// <summary>
318
+        /// 获得指定表单参数的decimal类型值
319
+        /// </summary>
320
+        /// <param name="strName">表单参数</param>
321
+        /// <param name="defValue">缺省值</param>
322
+        /// <returns>表单参数的decimal类型值</returns>
323
+        public static decimal GetFormDecimal(string strName, decimal defValue)
324
+        {
325
+            return Utils.StrToDecimal(HttpContext.Current.Request.Form[strName], defValue);
326
+        }
327
+
328
+		/// <summary>
329
+		/// 获得指定Url参数的float类型值
330
+		/// </summary>
331
+		/// <param name="strName">Url参数</param>
332
+		/// <param name="defValue">缺省值</param>
333
+		/// <returns>Url参数的int类型值</returns>
334
+		public static float GetQueryFloat(string strName, float defValue)
335
+		{
336
+			return Utils.StrToFloat(HttpContext.Current.Request.QueryString[strName], defValue);
337
+		}
338
+
339
+		/// <summary>
340
+		/// 获得指定表单参数的float类型值
341
+		/// </summary>
342
+		/// <param name="strName">表单参数</param>
343
+		/// <param name="defValue">缺省值</param>
344
+		/// <returns>表单参数的float类型值</returns>
345
+		public static float GetFormFloat(string strName, float defValue)
346
+		{
347
+			return Utils.StrToFloat(HttpContext.Current.Request.Form[strName], defValue);
348
+		}
349
+		
350
+		/// <summary>
351
+		/// 获得指定Url或表单参数的float类型值, 先判断Url参数是否为缺省值, 如为True则返回表单参数的值
352
+		/// </summary>
353
+		/// <param name="strName">Url或表单参数</param>
354
+		/// <param name="defValue">缺省值</param>
355
+		/// <returns>Url或表单参数的int类型值</returns>
356
+		public static float GetFloat(string strName, float defValue)
357
+		{
358
+			if (GetQueryFloat(strName, defValue) == defValue)
359
+				return GetFormFloat(strName, defValue);
360
+			else
361
+				return GetQueryFloat(strName, defValue);
362
+		}
363
+
364
+		/// <summary>
365
+		/// 获得当前页面客户端的IP
366
+		/// </summary>
367
+		/// <returns>当前页面客户端的IP</returns>
368
+		public static string GetIP()
369
+		{
370
+            string result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
371
+			if (string.IsNullOrEmpty(result))
372
+                result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
373
+			if (string.IsNullOrEmpty(result))
374
+				result = HttpContext.Current.Request.UserHostAddress;
375
+			if (string.IsNullOrEmpty(result) || !Utils.IsIP(result))
376
+				return "127.0.0.1";
377
+			return result;
378
+		}
379
+
380
+	}
381
+}

+ 92 - 0
BaseCallCenter.Common/HySoft.Common.csproj

@@ -0,0 +1,92 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup>
4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
+    <ProductVersion>8.0.30703</ProductVersion>
7
+    <SchemaVersion>2.0</SchemaVersion>
8
+    <ProjectGuid>{56213535-7FD9-4ACD-A497-705670CE61DC}</ProjectGuid>
9
+    <OutputType>Library</OutputType>
10
+    <AppDesignerFolder>Properties</AppDesignerFolder>
11
+    <RootNamespace>HySoft.Common</RootNamespace>
12
+    <AssemblyName>HySoft.Common</AssemblyName>
13
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14
+    <FileAlignment>512</FileAlignment>
15
+    <TargetFrameworkProfile />
16
+    <SccProjectName>
17
+    </SccProjectName>
18
+    <SccLocalPath>
19
+    </SccLocalPath>
20
+    <SccAuxPath>
21
+    </SccAuxPath>
22
+    <SccProvider>
23
+    </SccProvider>
24
+  </PropertyGroup>
25
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
26
+    <DebugSymbols>true</DebugSymbols>
27
+    <DebugType>full</DebugType>
28
+    <Optimize>false</Optimize>
29
+    <OutputPath>bin\Debug\</OutputPath>
30
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
31
+    <ErrorReport>prompt</ErrorReport>
32
+    <WarningLevel>4</WarningLevel>
33
+  </PropertyGroup>
34
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
35
+    <DebugType>pdbonly</DebugType>
36
+    <Optimize>true</Optimize>
37
+    <OutputPath>bin\Release\</OutputPath>
38
+    <DefineConstants>TRACE</DefineConstants>
39
+    <ErrorReport>prompt</ErrorReport>
40
+    <WarningLevel>4</WarningLevel>
41
+  </PropertyGroup>
42
+  <ItemGroup>
43
+    <Reference Include="System" />
44
+    <Reference Include="System.configuration" />
45
+    <Reference Include="System.Data" />
46
+    <Reference Include="System.Drawing" />
47
+    <Reference Include="System.Web" />
48
+    <Reference Include="System.Web.Extensions" />
49
+    <Reference Include="System.Xml" />
50
+  </ItemGroup>
51
+  <ItemGroup>
52
+    <Compile Include="CacheHelper.cs" />
53
+    <Compile Include="CommonRequest.cs" />
54
+    <Compile Include="ConfigUtil.cs" />
55
+    <Compile Include="CookieUtil.cs" />
56
+    <Compile Include="DESEncrypt.cs" />
57
+    <Compile Include="DNTRequest.cs" />
58
+    <Compile Include="DTEnums.cs" />
59
+    <Compile Include="DTKeys.cs" />
60
+    <Compile Include="DTRequest.cs" />
61
+    <Compile Include="DTMail.cs" />
62
+    <Compile Include="LoginUser.cs" />
63
+    <Compile Include="MessageBox.cs" />
64
+    <Compile Include="Office\Excel\ExcelStyle.cs" />
65
+    <Compile Include="Office\Excel\ExcelStyleCollection.cs" />
66
+    <Compile Include="Office\Excel\ExcelWorkbook.cs" />
67
+    <Compile Include="Office\Excel\Worksheet.cs" />
68
+    <Compile Include="Office\Excel\WorksheetCollection.cs" />
69
+    <Compile Include="Properties\AssemblyInfo.cs" />
70
+    <Compile Include="RegexUtil.cs" />
71
+    <Compile Include="SerializationHelper.cs" />
72
+    <Compile Include="SortUtil.cs" />
73
+    <Compile Include="StringHelper.cs" />
74
+    <Compile Include="StringUtil.cs" />
75
+    <Compile Include="SysLog.cs" />
76
+    <Compile Include="Thumbnail.cs" />
77
+    <Compile Include="Utils.cs" />
78
+    <Compile Include="WaterMark.cs" />
79
+    <Compile Include="XmlHelper.cs" />
80
+  </ItemGroup>
81
+  <ItemGroup>
82
+    <Content Include="Office\Excel\使用方法.txt" />
83
+  </ItemGroup>
84
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
85
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
86
+       Other similar extension points exist, see Microsoft.Common.targets.
87
+  <Target Name="BeforeBuild">
88
+  </Target>
89
+  <Target Name="AfterBuild">
90
+  </Target>
91
+  -->
92
+</Project>

+ 236 - 0
BaseCallCenter.Common/LoginUser.cs

@@ -0,0 +1,236 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Web;
6
+using System.Web.UI;
7
+
8
+namespace HySoft.Common
9
+{
10
+    public class LoginUser
11
+    {
12
+
13
+        private HttpRequest m_Request = null;
14
+        private HttpContext m_HttpContent = null;
15
+        private HttpResponse m_Response = null;
16
+        private Page m_Page = null;
17
+        //private HttpCookie m_Cookie = null;
18
+        /// <summary>
19
+        /// 构造器,读cookie使用
20
+        /// </summary>
21
+        /// <param name="p_HttpContext">Http请求上下文</param>
22
+        public LoginUser(HttpContext p_HttpContext)
23
+        {
24
+            m_Request = p_HttpContext.Request;
25
+            m_Response = p_HttpContext.Response;
26
+            m_Page = (Page)p_HttpContext.CurrentHandler;
27
+            m_HttpContent = p_HttpContext;
28
+        }
29
+        /// <summary>
30
+        /// 构造器,写cookie使用
31
+        /// </summary>
32
+        /// <param name="p_HttpContext">Http请求上下文</param>
33
+        /// <param name="p_WriteFlag">写标志,为true时设置写的Cookie的相关信息</param>
34
+        public LoginUser(HttpContext p_HttpContext, bool p_WriteFlag)
35
+        {
36
+            m_Request = p_HttpContext.Request;
37
+            m_Response = p_HttpContext.Response;
38
+            m_Page = (Page)p_HttpContext.CurrentHandler;
39
+            m_HttpContent = p_HttpContext;
40
+            if (p_WriteFlag)
41
+            {
42
+                DateTime _Date = DateTime.Now.AddDays(7);
43
+                m_Page.Response.Cookies["BaseCallCenter_T_User"].Expires = _Date;
44
+            }
45
+        }
46
+
47
+        /// <summary>
48
+        /// 用户ID,未正常取到值时返回 0
49
+        /// </summary>
50
+        public int UserID
51
+        {
52
+            get
53
+            {
54
+                string _UserId = string.Empty;
55
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
56
+                    return 0;
57
+                _UserId = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_UserId"]);
58
+                return ToInt(_UserId, 0);
59
+            }
60
+            set
61
+            {
62
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_UserId"] = value.ToString();
63
+            }
64
+        }
65
+        /// <summary>
66
+        /// 用户工号,未正常取到值时返回空字符串
67
+        /// </summary>
68
+        public string UserCode
69
+        {
70
+            get
71
+            {
72
+                string _UserCode = string.Empty;
73
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
74
+                    return string.Empty;
75
+                _UserCode = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_UserCode"]);
76
+                return _UserCode == null ? string.Empty : _UserCode;
77
+            }
78
+            set
79
+            {
80
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_UserCode"] = value;
81
+            }
82
+        }
83
+
84
+
85
+        /// <summary>
86
+        /// 用户权限,未正常取到值时返回空字符串
87
+        /// </summary>
88
+        public string SeatRight
89
+        {
90
+            get
91
+            {
92
+                string _SeatRight = string.Empty;
93
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
94
+                    return string.Empty;
95
+                _SeatRight = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_SeatRight"]);
96
+                return _SeatRight == null ? string.Empty : _SeatRight;
97
+            }
98
+            set
99
+            {
100
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_SeatRight"] = value;
101
+            }
102
+        }
103
+
104
+        /// <summary>
105
+        /// 分机号,未正常取到值时返回空字符串
106
+        /// </summary>
107
+        public string ExtNo
108
+        {
109
+            get
110
+            {
111
+                string ExtNo = string.Empty;
112
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
113
+                    return string.Empty;
114
+                ExtNo = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_ExtensionNumber"]);
115
+                return ExtNo == null ? string.Empty : ExtNo;
116
+            }
117
+            set
118
+            {
119
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_ExtensionNumber"] = value;
120
+            }
121
+        }
122
+        /// <summary>
123
+        /// 用户姓名,未正常取到值时返回空字符串
124
+        /// </summary>
125
+        public string UserName
126
+        {
127
+            get
128
+            {
129
+                string _Name = string.Empty;
130
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
131
+                    return string.Empty;
132
+                _Name = DESEncrypt.Decrypt(m_Page.Server.UrlDecode(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_UserName"]));
133
+                return _Name == null ? string.Empty : _Name;
134
+            }
135
+            set
136
+            {
137
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_UserName"] = value;
138
+            }
139
+        }
140
+
141
+        /// <summary>
142
+        ///用户部门
143
+        /// </summary>
144
+        public int DeptId
145
+        {
146
+            get
147
+            {
148
+                string _DeptId = string.Empty;
149
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
150
+                    return 0;
151
+                _DeptId = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_DeptId"]);
152
+                return ToInt(_DeptId, 0);
153
+            }
154
+            set
155
+            {
156
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_DeptId"] = value.ToString();
157
+            }
158
+        }
159
+
160
+        /// <summary>
161
+        ///角色名称
162
+        /// </summary>
163
+        public int RoleId
164
+        {
165
+            get
166
+            {
167
+                string _RoleId = string.Empty;
168
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
169
+                    return 0;
170
+                _RoleId = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_RoleID"]);
171
+                return ToInt(_RoleId, 0);
172
+            }
173
+            set
174
+            {
175
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_RoleID"] = value.ToString();
176
+            }
177
+        }
178
+
179
+
180
+        /// <summary>
181
+        ///坐席组
182
+        /// </summary>
183
+        public int GroupID
184
+        {
185
+            get
186
+            {
187
+                string _GroupId = string.Empty;
188
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
189
+                    return 0;
190
+                _GroupId = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_GroupId"]);
191
+                return ToInt(_GroupId, 0);
192
+            }
193
+            set
194
+            {
195
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_GroupId"] = value.ToString();
196
+            }
197
+        }
198
+        /// <summary>
199
+        /// 是否是坐席,未正常取到值时返回空字符串
200
+        /// </summary>
201
+        public string SeatFlag
202
+        {
203
+            get
204
+            {
205
+                string _SeatFlag = string.Empty;
206
+                if (m_Page.Request.Cookies["BaseCallCenter_T_User"] == null)
207
+                    return string.Empty;
208
+                _SeatFlag = DESEncrypt.Decrypt(m_Page.Request.Cookies["BaseCallCenter_T_User"]["F_SeatFlag"]);
209
+                return _SeatFlag == null ? string.Empty : _SeatFlag;
210
+            }
211
+            set
212
+            {
213
+                m_Page.Response.Cookies["BaseCallCenter_T_User"]["F_SeatFlag"] = value;
214
+            }
215
+        }
216
+        /// <summary>
217
+        /// 字符串转换为数值ss
218
+        /// </summary>
219
+        /// <param name="p_Value">要转换的字符串</param>
220
+        /// <param name="p_DefaultValue">默认值,如果转换失败,返回此值</param>
221
+        /// <returns>转换后的数值</returns>
222
+        private int ToInt(string p_Value, int p_DefaultValue)
223
+        {
224
+            int _Value = 0;
225
+            if (int.TryParse(p_Value, out _Value))
226
+                return _Value;
227
+            else
228
+                return p_DefaultValue;
229
+        }
230
+
231
+        protected int my;
232
+
233
+
234
+
235
+    }
236
+}

+ 90 - 0
BaseCallCenter.Common/MessageBox.cs

@@ -0,0 +1,90 @@
1
+using System;
2
+using System.Text;
3
+namespace HySoft.Common
4
+{
5
+	/// <summary>
6
+	/// 显示消息提示对话框。
7
+	/// </summary>
8
+	public class MessageBox
9
+	{		
10
+		private  MessageBox()
11
+		{			
12
+		}
13
+
14
+		/// <summary>
15
+		/// 显示消息提示对话框
16
+		/// </summary>
17
+		/// <param name="page">当前页面指针,一般为this</param>
18
+		/// <param name="msg">提示信息</param>
19
+		public static void  Show(System.Web.UI.Page page,string msg)
20
+		{            
21
+            page.ClientScript.RegisterStartupScript(page.GetType(),"message", "<script language='javascript' defer>alert('" + msg.ToString() + "');</script>");
22
+		}
23
+
24
+		/// <summary>
25
+		/// 控件点击 消息确认提示框
26
+		/// </summary>
27
+		/// <param name="page">当前页面指针,一般为this</param>
28
+		/// <param name="msg">提示信息</param>
29
+		public static void  ShowConfirm(System.Web.UI.WebControls.WebControl Control,string msg)
30
+		{
31
+			//Control.Attributes.Add("onClick","if (!window.confirm('"+msg+"')){return false;}");
32
+			Control.Attributes.Add("onclick", "return confirm('" + msg + "');") ;
33
+		}
34
+
35
+		/// <summary>
36
+		/// 显示消息提示对话框,并进行页面跳转
37
+		/// </summary>
38
+		/// <param name="page">当前页面指针,一般为this</param>
39
+		/// <param name="msg">提示信息</param>
40
+		/// <param name="url">跳转的目标URL</param>
41
+		public static void ShowAndRedirect(System.Web.UI.Page page,string msg,string url)
42
+		{			
43
+            page.ClientScript.RegisterStartupScript(page.GetType(), "message", "<script language='javascript' defer>alert('" + msg + "');window.location=\"" + url + "\"</script>");
44
+
45
+
46
+		}
47
+        /// <summary>
48
+        /// 显示消息提示对话框,并进行页面跳转
49
+        /// </summary>
50
+        /// <param name="page">当前页面指针,一般为this</param>
51
+        /// <param name="msg">提示信息</param>
52
+        /// <param name="url">跳转的目标URL</param>
53
+        public static void ShowAndRedirects(System.Web.UI.Page page, string msg, string url)
54
+        {
55
+            StringBuilder Builder = new StringBuilder();
56
+            Builder.Append("<script language='javascript' defer>");
57
+            Builder.AppendFormat("alert('{0}');", msg);
58
+            Builder.AppendFormat("location.href='{0}'", url);
59
+            Builder.Append("</script>");
60
+            page.ClientScript.RegisterStartupScript(page.GetType(), "message", Builder.ToString());
61
+
62
+        }
63
+
64
+		/// <summary>
65
+		/// 输出自定义脚本信息
66
+		/// </summary>
67
+		/// <param name="page">当前页面指针,一般为this</param>
68
+		/// <param name="script">输出脚本</param>
69
+		public static void ResponseScript(System.Web.UI.Page page,string script)
70
+		{
71
+            page.ClientScript.RegisterStartupScript(page.GetType(), "message", "<script type='text/javascript' defer='defer'>" + script + "</script>");
72
+             
73
+		}
74
+        /// <summary>
75
+        /// 弹出信息
76
+        /// </summary>
77
+        /// <param name="text">弹出内容</param>
78
+        /// <param name="page">Page实例</param>
79
+        /// <param name="type">1弹出后location.href=location.href,2弹出后history.back(),3弹出后什么都不做</param>
80
+        public static void Alert(string text, System.Web.UI.Page page, int type)
81
+        {
82
+            string fin = "<script type=\"text/javascript\">alert(\"" + text + "\");location.href=location.href;</script>";
83
+            if (type == 2)
84
+                fin = "<script type=\"text/javascript\">alert(\"" + text + "\");history.back();</script>";
85
+            else if (type == 3)
86
+                fin = "<script type=\"text/javascript\">alert(\"" + text + "\");</script>";
87
+            page.ClientScript.RegisterStartupScript(page.GetType(), "message",fin);
88
+        }
89
+    }
90
+}

+ 64 - 0
BaseCallCenter.Common/Office/Excel/ExcelStyle.cs

@@ -0,0 +1,64 @@
1
+using System;
2
+using System.Text;
3
+
4
+namespace HySoft.Common.Office
5
+{
6
+    /// <summary>
7
+    ///  Excel样式
8
+    /// </summary>
9
+    public class ExcelStyle
10
+    {
11
+        StringBuilder s = new StringBuilder();
12
+
13
+        public StringBuilder StyleString
14
+        {
15
+            get
16
+            {
17
+                s.Append("<Style ss:ID=\"" + styleid + "\" ");
18
+                if (styleid == "Default")
19
+                {
20
+                    s.Append(" ss:Name=\"Normal\">");
21
+                }
22
+                else
23
+                {
24
+                    s.Append(">");
25
+                }
26
+                s.Append("<Alignment ss:Vertical=\"Center\"/>");
27
+                s.Append("<Borders/>");
28
+                s.Append("<Font ss:FontName=\"" + fontname + "\" x:CharSet=\"134\" ss:Size=\"" + fontsize + "\" ss:Color=\"" + fontcolor + "\"/>");
29
+                s.Append("<Interior/>");
30
+                s.Append("<NumberFormat/>");
31
+                s.Append("<Protection/>");
32
+                s.Append("</Style>");
33
+                return s;
34
+            }
35
+        }
36
+
37
+        private string styleid = "Default";
38
+
39
+        public string StyleID
40
+        {
41
+            set { styleid = value; }
42
+        }
43
+
44
+        private string fontname = "宋体";
45
+
46
+        public string FontName
47
+        {
48
+            set { fontname = value; }
49
+        }
50
+        private string fontsize = "11";
51
+
52
+        public string FontSize
53
+        {
54
+            set { fontsize = value; }
55
+        }
56
+        private string fontcolor = "#000000";
57
+
58
+        public string FontColor
59
+        {
60
+            set { fontcolor = value; }
61
+        }
62
+
63
+    }
64
+}

+ 75 - 0
BaseCallCenter.Common/Office/Excel/ExcelStyleCollection.cs

@@ -0,0 +1,75 @@
1
+using System;
2
+using System.Collections;
3
+using System.Collections.Generic;
4
+
5
+namespace HySoft.Common.Office
6
+{
7
+    /// <summary>
8
+    /// Excel样式集

9
+    /// </summary>
10
+    public class ExcelStyleCollection : ICollection<ExcelStyle>
11
+    {
12
+        public ExcelStyleCollection()
13
+        {
14
+            styles.Add(new ExcelStyle());
15
+        }
16
+        IList<ExcelStyle> styles = new List<ExcelStyle>();
17
+
18
+        #region ICollection<ExcelStyle> 成员
19
+
20
+        public void Add(ExcelStyle item)
21
+        {
22
+            styles.Add(item);
23
+        }
24
+
25
+        public void Clear()
26
+        {
27
+            styles.Clear();
28
+        }
29
+
30
+        public bool Contains(ExcelStyle item)
31
+        {
32
+            return styles.Contains(item);
33
+        }
34
+
35
+        public void CopyTo(ExcelStyle[] array, int arrayIndex)
36
+        {
37
+            styles.CopyTo(array, arrayIndex);
38
+        }
39
+
40
+        public int Count
41
+        {
42
+            get { return styles.Count; }
43
+        }
44
+
45
+        public bool IsReadOnly
46
+        {
47
+            get { return styles.IsReadOnly; }
48
+        }
49
+
50
+        public bool Remove(ExcelStyle item)
51
+        {
52
+            return styles.Remove(item);
53
+        }
54
+
55
+        #endregion
56
+
57
+        #region IEnumerable<ExcelStyle> 成员
58
+
59
+        public IEnumerator<ExcelStyle> GetEnumerator()
60
+        {
61
+            return styles.GetEnumerator();
62
+        }
63
+
64
+        #endregion
65
+
66
+        #region IEnumerable 成员
67
+
68
+        IEnumerator IEnumerable.GetEnumerator()
69
+        {
70
+            return styles.GetEnumerator();
71
+        }
72
+
73
+        #endregion
74
+    }
75
+}

+ 144 - 0
BaseCallCenter.Common/Office/Excel/ExcelWorkbook.cs

@@ -0,0 +1,144 @@
1
+#region  版权所有 杨立伟 Benny
2
+//************************************
3
+//   Created Time 2008-07-12
4
+//   Created By Benny
5
+//************************************
6
+#endregion
7
+
8
+using System;
9
+using System.Collections;
10
+using System.Web;
11
+using System.Data;
12
+using System.Text;
13
+
14
+namespace HySoft.Common.Office
15
+{
16
+    /// <summary>
17
+    /// Excel工作本

18
+    /// </summary>
19
+    public class ExcelWorkbook
20
+    {
21
+        private string filename=Guid.NewGuid().ToString().Replace("-","");
22
+        /// <summary>
23
+        /// 导出EXCEL文件名

24
+        /// </summary>
25
+        public string FileName
26
+        {
27
+            set { filename = HttpUtility.UrlEncode(value, System.Text.Encoding.UTF8); }
28
+        }
29
+
30
+        ExcelStyleCollection styles = new ExcelStyleCollection();
31
+
32
+        /// <summary>
33
+        /// 样式集合
34
+        /// </summary>
35
+        public ExcelStyleCollection Styles
36
+        {
37
+            set { styles = value; }
38
+        }
39
+
40
+        WorksheetCollection worksheets = new WorksheetCollection();
41
+
42
+        /// <summary>
43
+        /// 表单集合
44
+        /// </summary>
45
+        public WorksheetCollection WorkSheets
46
+        {
47
+            get { return worksheets; }
48
+            set { worksheets = value; }
49
+        }
50
+
51
+        public void OutPut()
52
+        {
53
+            HttpResponse Response = HttpContext.Current.Response;
54
+            Response.Clear();
55
+            Response.Buffer = true;
56
+            Response.Charset = "GB2312";
57
+            Response.AppendHeader("Content-Disposition", "attachment;filename="+filename+".xls");
58
+            Response.ContentEncoding = Encoding.GetEncoding("GB2312");
59
+            Response.ContentType = "application/ms-excel";
60
+            FormatExcel(Response);
61
+            Response.End();
62
+        }
63
+
64
+        private void FormatExcel(HttpResponse Response)
65
+        {
66
+            WriteBegininfo(Response);
67
+            WriteDocumentProperties(Response);
68
+            WriteOfficeDocumentSettings(Response);
69
+            WriteExcelWorkbook(Response);
70
+            WriteStyles(Response, styles);
71
+            WriteWorkSheets(Response, worksheets);
72
+            Response.Write("</Workbook>");
73
+        }
74
+
75
+        private void WriteWorkSheets(HttpResponse Response, WorksheetCollection worksheets)
76
+        {
77
+            foreach (Worksheet ws in worksheets)
78
+            {
79
+                ws.OutPut();
80
+                WriteWorksheetOptions(Response);
81
+                Response.Write("</Worksheet>");
82
+            }  
83
+        }
84
+
85
+        private void WriteWorksheetOptions(HttpResponse Response)
86
+        {
87
+            Response.Write("<WorksheetOptions xmlns=\"urn:schemas-microsoft-com:office:excel\">");
88
+            Response.Write("<PageSetup><Header x:Margin=\"0.3\"/><Footer x:Margin=\"0.3\"/><PageMargins x:Bottom=\"0.75\" x:Left=\"0.7\" x:Right=\"0.7\" x:Top=\"0.75\"/></PageSetup>");
89
+            Response.Write("<Print><ValidPrinterInfo/><PaperSizeIndex>9</PaperSizeIndex><HorizontalResolution>200</HorizontalResolution><VerticalResolution>200</VerticalResolution></Print>");
90
+            Response.Write("<Selected/>");
91
+            Response.Write("<Panes><Pane><Number>3</Number><ActiveRow>2</ActiveRow><ActiveCol>2</ActiveCol></Pane></Panes>");
92
+            Response.Write("<ProtectObjects>False</ProtectObjects>");
93
+            Response.Write(" <ProtectScenarios>False</ProtectScenarios>");
94
+            Response.Write("</WorksheetOptions>");
95
+        }
96
+
97
+        private void WriteStyles(HttpResponse Response, ExcelStyleCollection styles)
98
+        {
99
+            Response.Write("<Styles>");
100
+            foreach (ExcelStyle s in styles)
101
+            {
102
+                Response.Write(s.StyleString.ToString());
103
+            }
104
+            Response.Write("</Styles>");
105
+        }
106
+
107
+        private void WriteExcelWorkbook(HttpResponse Response)
108
+        {
109
+            Response.Write("<ExcelWorkbook xmlns=\"urn:schemas-microsoft-com:office:excel \">");
110
+            Response.Write("<WindowHeight>11640</WindowHeight>");
111
+            Response.Write("<WindowWidth>15480</WindowWidth>");
112
+            Response.Write("<WindowTopX>0</WindowTopX>");
113
+            Response.Write("<WindowTopY>90</WindowTopY>");
114
+            Response.Write("<ProtectStructure>False</ProtectStructure>");
115
+            Response.Write("<ProtectWindows>False</ProtectWindows>");
116
+            Response.Write("</ExcelWorkbook>");
117
+        }
118
+
119
+        private void WriteOfficeDocumentSettings(HttpResponse Response)
120
+        {
121
+            Response.Write(" <OfficeDocumentSettings xmlns=\"urn:schemas-microsoft-com:office:office\">");
122
+            Response.Write(" <RemovePersonalInformation/>");
123
+            Response.Write(" </OfficeDocumentSettings>");
124
+        }
125
+
126
+        private void WriteDocumentProperties(HttpResponse Response)
127
+        {
128
+            Response.Write("<DocumentProperties xmlns=\"urn:schemas-microsoft-com:office:office\">");
129
+            Response.Write("<Created>"+DateTime.Now.ToString()+"</Created>");
130
+            Response.Write("<LastSaved>"+DateTime.Now.ToString()+"</LastSaved>");
131
+            Response.Write("<Version>12.00</Version>");
132
+            Response.Write("</DocumentProperties>");
133
+        }
134
+
135
+        private void WriteBegininfo(HttpResponse Response)
136
+        {
137
+            #region
138
+            Response.Write("<?xml version=\"1.0\" encoding=\"GB2312\" ?>");
139
+            Response.Write("<?mso-application progid=\"Excel.Sheet\"?>");
140
+            Response.Write("<Workbook xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\"  xmlns:o=\"urn:schemas-microsoft-com:office:office\"  xmlns:x=\"urn:schemas-microsoft-com:office:excel\"  xmlns:ss=\"urn:schemas-microsoft-com:office:spreadsheet\"  xmlns:html=\"http://www.w3.org/TR/REC-html40\">");
141
+            #endregion
142
+        }
143
+    }
144
+}

+ 137 - 0
BaseCallCenter.Common/Office/Excel/Worksheet.cs

@@ -0,0 +1,137 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections;
4
+using System.Web;
5
+using System.Text;
6
+
7
+namespace HySoft.Common.Office
8
+{
9
+    /// <summary>
10
+    /// Excel表单类

11
+    /// </summary>
12
+    public class Worksheet
13
+    {
14
+        private string sheetname = Guid.NewGuid().ToString().Replace("-", "");
15
+        /// <summary>
16
+        /// 表单名称
17
+        /// </summary>
18
+        public string SheetName
19
+        {
20
+            set { sheetname = value.Replace(">", "").Replace("<", "").Replace("\"", "").Replace("&", "").Replace("'", ""); }
21
+        }
22
+
23
+        private bool columnfilter = false;
24
+        /// <summary>
25
+        /// 是否自动条件过滤
26
+        /// 注意:如果设置不导出标题行,此属性无效!
27
+        /// </summary>
28
+        public bool ColumnFilter
29
+        {
30
+            set { columnfilter = value; }
31
+            get 
32
+            {
33
+                if (!writeheaders)
34
+                    return false;
35
+                else
36
+                    return columnfilter;
37
+            }
38
+        }
39
+
40
+        private DataTable datasource = new DataTable();
41
+
42
+        public DataTable DataSource
43
+        {
44
+            set { datasource = value; }
45
+        }
46
+
47
+        private bool writeheaders = true;
48
+
49
+        public bool WriteHeaders
50
+        {
51
+            set { writeheaders = value; }
52
+        }
53
+
54
+        private ArrayList columnname = new ArrayList();
55
+
56
+        public ArrayList ColumnName
57
+        {
58
+            set { columnname = value; }
59
+            get
60
+            {
61
+                if (columnname.Count > 0)
62
+                    return columnname;
63
+                else
64
+                {
65
+                    ArrayList temp = new ArrayList();
66
+                    foreach (DataColumn dc in datasource.Columns)
67
+                    {
68
+                        temp.Add(dc.ColumnName);
69
+                    }
70
+                    return temp;
71
+                }
72
+            }
73
+        }
74
+
75
+        public void OutPut()
76
+        {
77
+            int columscnt = datasource.Columns.Count;
78
+            int rowcnt = datasource.Rows.Count + 1;
79
+            HttpResponse Response = HttpContext.Current.Response;
80
+            Response.Write("<Worksheet ss:Name=\"" + sheetname + "\">");
81
+            if (!ColumnFilter)
82
+            {
83
+                #region
84
+                Response.Write("<Table ss:ExpandedColumnCount=\"" + columscnt + "\" ss:ExpandedRowCount=\"" + rowcnt + "\" x:FullColumns=\"1\" x:FullRows=\"1\" ss:DefaultColumnWidth=\"54\" ss:DefaultRowHeight=\"13.5\">");
85
+                if (writeheaders)
86
+                {
87
+                    Response.Write("<Row ss:AutoFitHeight=\"0\">");
88
+                    foreach (object o in ColumnName)//<![CDATA[这里放置需要显示的字符]]>
89
+                    {
90
+                        Response.Write("<Cell><Data ss:Type=\"String\"><![CDATA[" + o.ToString() + "]]></Data></Cell>");
91
+                    }
92
+                    Response.Write("</Row>");
93
+                }
94
+                foreach (DataRow dr in datasource.Rows)
95
+                {
96
+                    Response.Write("<Row ss:AutoFitHeight=\"0\">");
97
+                    for (int i = 0; i < datasource.Columns.Count; i++)
98
+                    {
99
+                        Response.Write("<Cell><Data ss:Type=\"String\"><![CDATA[" + dr[i].ToString() + "]]></Data></Cell>");
100
+                    }
101
+                    Response.Write("</Row>");
102
+                }
103
+
104
+                Response.Write("</Table>");
105
+                #endregion
106
+            }
107
+            else
108
+            {
109
+                #region
110
+                Response.Write("<Names><NamedRange ss:Name=\"_FilterDatabase\" ss:RefersTo=\"=" + sheetname + "!R1C1:R" + (rowcnt - 1) + "C" + columscnt + "\"  ss:Hidden=\"1\"/></Names>");
111
+                Response.Write("<Table ss:ExpandedColumnCount=\"" + columscnt + "\" ss:ExpandedRowCount=\"" + rowcnt + "\" x:FullColumns=\"1\" x:FullRows=\"1\" ss:DefaultColumnWidth=\"54\" ss:DefaultRowHeight=\"13.5\">");
112
+                if (writeheaders)
113
+                {
114
+                    Response.Write("<Row ss:AutoFitHeight=\"0\">");
115
+                    foreach (object o in ColumnName)
116
+                    {
117
+                        Response.Write("<Cell><Data ss:Type=\"String\"><![CDATA[" + o.ToString() + "]]></Data><NamedCell ss:Name=\"_FilterDatabase\"/></Cell>");
118
+                    }
119
+                    Response.Write("</Row>");
120
+                }
121
+                foreach (DataRow dr in datasource.Rows)
122
+                {
123
+                    Response.Write("<Row ss:AutoFitHeight=\"0\">");
124
+                    for (int i = 0; i < datasource.Columns.Count; i++)
125
+                    {
126
+                        Response.Write("<Cell><Data ss:Type=\"String\"><![CDATA[" + dr[i].ToString() + "]]></Data><NamedCell ss:Name=\"_FilterDatabase\"/></Cell>");
127
+                    }
128
+                    Response.Write("</Row>");
129
+                }
130
+                Response.Write("</Table>");
131
+                Response.Write("<AutoFilter x:Range=\"R1C1:R" + (rowcnt - 1) + "C" + columscnt + "\" xmlns=\"urn:schemas-microsoft-com:office:excel\"></AutoFilter>");
132
+                #endregion
133
+            } 
134
+        }
135
+
136
+    }
137
+}

+ 68 - 0
BaseCallCenter.Common/Office/Excel/WorksheetCollection.cs

@@ -0,0 +1,68 @@
1
+using System;
2
+using System.Collections;
3
+using System.Collections.Generic;
4
+
5
+namespace HySoft.Common.Office
6
+{
7
+    public class WorksheetCollection : ICollection<Worksheet>
8
+    {
9
+        IList<Worksheet> worksheets = new List<Worksheet>();
10
+
11
+        #region ICollection<Worksheet> 成员
12
+
13
+        public void Add(Worksheet item)
14
+        {
15
+            worksheets.Add(item);
16
+        }
17
+
18
+        public void Clear()
19
+        {
20
+            worksheets.Clear();
21
+        }
22
+
23
+        public bool Contains(Worksheet item)
24
+        {
25
+            return worksheets.Contains(item);
26
+        }
27
+
28
+        public void CopyTo(Worksheet[] array, int arrayIndex)
29
+        {
30
+            worksheets.CopyTo(array, arrayIndex);
31
+        }
32
+
33
+        public int Count
34
+        {
35
+            get { return worksheets.Count; }
36
+        }
37
+
38
+        public bool IsReadOnly
39
+        {
40
+            get { return worksheets.IsReadOnly; }
41
+        }
42
+
43
+        public bool Remove(Worksheet item)
44
+        {
45
+            return worksheets.Remove(item);
46
+        }
47
+
48
+        #endregion
49
+
50
+        #region IEnumerable<Worksheet> 成员
51
+
52
+        public IEnumerator<Worksheet> GetEnumerator()
53
+        {
54
+            return worksheets.GetEnumerator();
55
+        }
56
+
57
+        #endregion
58
+
59
+        #region IEnumerable 成员
60
+
61
+        IEnumerator IEnumerable.GetEnumerator()
62
+        {
63
+            return worksheets.GetEnumerator();
64
+        }
65
+
66
+        #endregion
67
+    }
68
+}

+ 19 - 0
BaseCallCenter.Common/Office/Excel/使用方法.txt

@@ -0,0 +1,19 @@
1
+ 1        ExcelWorkbook  excel= new ExcelWorkbook();
2
+ 2        excel.FileName = "导出文件名称";
3
+ 3
4
+ 4        Worksheet  w= new Worksheet();
5
+ 5        w.DataSource = GetDt();//设置数据源DataTable类型
6
+ 6        w.SheetName = "表单名称";
7
+ 7        w.ColumnFilter = true; //是否给每一列加上条件过滤

8
+ 8
9
+ 9        //w.WriteHeaders = true; 是否导出标头
10
+10
11
+11         /**//* 自定义每一列的标头
12
+12         w.ColumnName.Add("标头1");
13
+13        w.ColumnName.Add("标头1");
14
+14        w.ColumnName.Add("标头1");
15
+15        ..
16
+16        */
17
+17
18
+18        excel.WorkSheets.Add(w);
19
+19        excel.OutPut(); //导出

+ 0 - 0
BaseCallCenter.Common/Properties/AssemblyInfo.cs


部分文件因文件數量過多而無法顯示