Pārlūkot izejas kodu

所有文件提交

zhengbingbing 7 gadi atpakaļ
revīzija
cd9e9e134d
100 mainītis faili ar 13217 papildinājumiem un 0 dzēšanām
  1. BIN
      .vs/HouseFundCallCenter/v14/.suo
  2. 1030 0
      .vs/config/applicationhost.config
  3. 145 0
      BLL/BLL.csproj
  4. 10 0
      BLL/BLL.csproj.vspscc
  5. 292 0
      BLL/DockingSystem.cs
  6. 179 0
      BLL/GG_XTKZ.cs
  7. 36 0
      BLL/Properties/AssemblyInfo.cs
  8. 209 0
      BLL/T_Bus_Accessories.cs
  9. 203 0
      BLL/T_Bus_ManageSet.cs
  10. 256 0
      BLL/T_Bus_RemindRecord.cs
  11. 199 0
      BLL/T_Bus_ReturnVisit.cs
  12. 279 0
      BLL/T_Bus_TimeOver.cs
  13. 171 0
      BLL/T_Bus_WorkCallRecord.cs
  14. 261 0
      BLL/T_Bus_WorkFlow.cs
  15. 235 0
      BLL/T_Bus_WorkHistory.cs
  16. 423 0
      BLL/T_Bus_WorkOrder.cs
  17. 214 0
      BLL/T_Bus_WorkType.cs
  18. 307 0
      BLL/T_CallRecord.cs
  19. 161 0
      BLL/T_CallRecordLink.cs
  20. 170 0
      BLL/T_CallRecordLinkTemp.cs
  21. 206 0
      BLL/T_Call_Blacklist.cs
  22. 408 0
      BLL/T_Call_CallRecords.cs
  23. 233 0
      BLL/T_Call_LeaveRecord.cs
  24. 182 0
      BLL/T_Cus_ConnPhone.cs
  25. 159 0
      BLL/T_DictionaryBase.cs
  26. 191 0
      BLL/T_DictionaryValue.cs
  27. 179 0
      BLL/T_Fax_RecvFax.cs
  28. 179 0
      BLL/T_Fax_SendFaxTask.cs
  29. 179 0
      BLL/T_Fax_SentFax.cs
  30. 174 0
      BLL/T_FunctionsMenu.cs
  31. 157 0
      BLL/T_Knowledge.cs
  32. 161 0
      BLL/T_KnowledgeClass.cs
  33. 165 0
      BLL/T_Organization.cs
  34. 178 0
      BLL/T_OrganizationMember.cs
  35. 182 0
      BLL/T_PhoneBlackList.cs
  36. 67 0
      BLL/T_Report.cs
  37. 163 0
      BLL/T_RightsManagement.cs
  38. 162 0
      BLL/T_Role.cs
  39. 213 0
      BLL/T_Sms_InfoType.cs
  40. 203 0
      BLL/T_Sms_SendInfo.cs
  41. 180 0
      BLL/T_Sys_CallOptLogs.cs
  42. 274 0
      BLL/T_Sys_Department.cs
  43. 230 0
      BLL/T_Sys_LoginLogs.cs
  44. 157 0
      BLL/T_Sys_MobileData.cs
  45. 209 0
      BLL/T_Sys_ModuleFunctions.cs
  46. 166 0
      BLL/T_Sys_ModuleFunctionsOpt.cs
  47. 158 0
      BLL/T_Sys_ModuleInfo.cs
  48. 192 0
      BLL/T_Sys_OperateLogs.cs
  49. 217 0
      BLL/T_Sys_RegionCategory.cs
  50. 165 0
      BLL/T_Sys_RoleAttribute.cs
  51. 134 0
      BLL/T_Sys_RoleFunction.cs
  52. 150 0
      BLL/T_Sys_RoleInfo.cs
  53. 127 0
      BLL/T_Sys_RoleModule.cs
  54. 134 0
      BLL/T_Sys_RoleOpt.cs
  55. 156 0
      BLL/T_Sys_SystemConfig.cs
  56. 161 0
      BLL/T_Sys_TelTitleData.cs
  57. 400 0
      BLL/T_Sys_UserAccount.cs
  58. 142 0
      BLL/T_Sys_UserGroup.cs
  59. 144 0
      BLL/T_Sys_WorkCalendar.cs
  60. 115 0
      BLL/T_SystemConfig.cs
  61. 33 0
      BLL/WebSet.cs
  62. BIN
      BLL/bin/Debug/AjaxPro.2.dll
  63. BIN
      BLL/bin/Debug/XYFDRQ.BLL.dll
  64. BIN
      BLL/bin/Debug/XYFDRQ.BLL.pdb
  65. BIN
      BLL/bin/Debug/XYFDRQ.Common.dll
  66. BIN
      BLL/bin/Debug/XYFDRQ.Common.pdb
  67. BIN
      BLL/bin/Debug/XYFDRQ.DAL.dll
  68. BIN
      BLL/bin/Debug/XYFDRQ.DAL.pdb
  69. BIN
      BLL/bin/Debug/XYFDRQ.DBUtility.dll
  70. BIN
      BLL/bin/Debug/XYFDRQ.DBUtility.pdb
  71. BIN
      BLL/bin/Debug/XYFDRQ.Model.dll
  72. BIN
      BLL/bin/Debug/XYFDRQ.Model.pdb
  73. BIN
      BLL/bin/Release/AjaxPro.2.dll
  74. BIN
      BLL/bin/Release/XYFDRQ.BLL.dll
  75. BIN
      BLL/bin/Release/XYFDRQ.BLL.pdb
  76. BIN
      BLL/bin/Release/XYFDRQ.Common.dll
  77. BIN
      BLL/bin/Release/XYFDRQ.Common.pdb
  78. BIN
      BLL/bin/Release/XYFDRQ.DAL.dll
  79. BIN
      BLL/bin/Release/XYFDRQ.DAL.pdb
  80. BIN
      BLL/bin/Release/XYFDRQ.DBUtility.dll
  81. BIN
      BLL/bin/Release/XYFDRQ.DBUtility.pdb
  82. BIN
      BLL/bin/Release/XYFDRQ.Model.dll
  83. BIN
      BLL/bin/Release/XYFDRQ.Model.pdb
  84. 182 0
      BLL/obj/Debug/BLL.csproj.FileListAbsolute.txt
  85. BIN
      BLL/obj/Debug/BLL.csprojResolveAssemblyReference.cache
  86. BIN
      BLL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  87. BIN
      BLL/obj/Debug/Refactor/XYFDRQ.BLL.dll
  88. BIN
      BLL/obj/Debug/ResolveAssemblyReference.cache
  89. BIN
      BLL/obj/Debug/XYFDRQ.BLL.dll
  90. BIN
      BLL/obj/Debug/XYFDRQ.BLL.pdb
  91. 14 0
      BLL/obj/Release/BLL.csproj.FileListAbsolute.txt
  92. BIN
      BLL/obj/Release/ResolveAssemblyReference.cache
  93. BIN
      BLL/obj/Release/XYFDRQ.BLL.dll
  94. BIN
      BLL/obj/Release/XYFDRQ.BLL.pdb
  95. 140 0
      Backup/BLL/BLL.csproj
  96. 292 0
      Backup/BLL/DockingSystem.cs
  97. 179 0
      Backup/BLL/GG_XTKZ.cs
  98. 36 0
      Backup/BLL/Properties/AssemblyInfo.cs
  99. 209 0
      Backup/BLL/T_Bus_Accessories.cs
  100. 0 0
      Backup/BLL/T_Bus_ManageSet.cs

BIN
.vs/HouseFundCallCenter/v14/.suo


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1030 - 0
.vs/config/applicationhost.config


+ 145 - 0
BLL/BLL.csproj

@@ -0,0 +1,145 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="14.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>9.0.30729</ProductVersion>
7
+    <SchemaVersion>2.0</SchemaVersion>
8
+    <ProjectGuid>{4A95FB31-1234-4FB2-A796-CBEC20EFDFFA}</ProjectGuid>
9
+    <OutputType>Library</OutputType>
10
+    <AppDesignerFolder>Properties</AppDesignerFolder>
11
+    <RootNamespace>XYFDRQ.BLL</RootNamespace>
12
+    <AssemblyName>XYFDRQ.BLL</AssemblyName>
13
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14
+    <FileAlignment>512</FileAlignment>
15
+    <SccProjectName>
16
+    </SccProjectName>
17
+    <SccLocalPath>
18
+    </SccLocalPath>
19
+    <SccAuxPath>
20
+    </SccAuxPath>
21
+    <SccProvider>
22
+    </SccProvider>
23
+    <FileUpgradeFlags>
24
+    </FileUpgradeFlags>
25
+    <UpgradeBackupLocation>
26
+    </UpgradeBackupLocation>
27
+    <OldToolsVersion>3.5</OldToolsVersion>
28
+  </PropertyGroup>
29
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
30
+    <DebugSymbols>true</DebugSymbols>
31
+    <DebugType>full</DebugType>
32
+    <Optimize>false</Optimize>
33
+    <OutputPath>bin\Debug\</OutputPath>
34
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
35
+    <ErrorReport>prompt</ErrorReport>
36
+    <WarningLevel>4</WarningLevel>
37
+  </PropertyGroup>
38
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
39
+    <DebugType>pdbonly</DebugType>
40
+    <Optimize>true</Optimize>
41
+    <OutputPath>bin\Release\</OutputPath>
42
+    <DefineConstants>TRACE</DefineConstants>
43
+    <ErrorReport>prompt</ErrorReport>
44
+    <WarningLevel>4</WarningLevel>
45
+  </PropertyGroup>
46
+  <ItemGroup>
47
+    <Reference Include="System" />
48
+    <Reference Include="System.Core">
49
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
50
+    </Reference>
51
+    <Reference Include="System.Xml.Linq">
52
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
53
+    </Reference>
54
+    <Reference Include="System.Data.DataSetExtensions">
55
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
56
+    </Reference>
57
+    <Reference Include="System.Data" />
58
+    <Reference Include="System.Xml" />
59
+  </ItemGroup>
60
+  <ItemGroup>
61
+    <Compile Include="DockingSystem.cs" />
62
+    <Compile Include="GG_XTKZ.cs" />
63
+    <Compile Include="Properties\AssemblyInfo.cs" />
64
+    <Compile Include="T_Bus_Accessories.cs" />
65
+    <Compile Include="T_Bus_ManageSet.cs" />
66
+    <Compile Include="T_Bus_RemindRecord.cs" />
67
+    <Compile Include="T_Bus_ReturnVisit.cs" />
68
+    <Compile Include="T_Bus_TimeOver.cs" />
69
+    <Compile Include="T_Bus_WorkCallRecord.cs" />
70
+    <Compile Include="T_Bus_WorkFlow.cs" />
71
+    <Compile Include="T_Bus_WorkHistory.cs" />
72
+    <Compile Include="T_Bus_WorkOrder.cs" />
73
+    <Compile Include="T_Bus_WorkType.cs" />
74
+    <Compile Include="T_CallRecord.cs" />
75
+    <Compile Include="T_CallRecordLink.cs" />
76
+    <Compile Include="T_CallRecordLinkTemp.cs" />
77
+    <Compile Include="T_Call_Blacklist.cs" />
78
+    <Compile Include="T_Call_CallRecords.cs" />
79
+    <Compile Include="T_Call_LeaveRecord.cs" />
80
+    <Compile Include="T_Cus_ConnPhone.cs" />
81
+    <Compile Include="T_DictionaryValue.cs" />
82
+    <Compile Include="T_DictionaryBase.cs" />
83
+    <Compile Include="T_Fax_RecvFax.cs" />
84
+    <Compile Include="T_Fax_SendFaxTask.cs" />
85
+    <Compile Include="T_Fax_SentFax.cs" />
86
+    <Compile Include="T_FunctionsMenu.cs" />
87
+    <Compile Include="T_Knowledge.cs" />
88
+    <Compile Include="T_KnowledgeClass.cs" />
89
+    <Compile Include="T_Organization.cs" />
90
+    <Compile Include="T_OrganizationMember.cs" />
91
+    <Compile Include="T_PhoneBlackList.cs" />
92
+    <Compile Include="T_Report.cs" />
93
+    <Compile Include="T_RightsManagement.cs" />
94
+    <Compile Include="T_Role.cs" />
95
+    <Compile Include="T_Sms_InfoType.cs" />
96
+    <Compile Include="T_Sms_SendInfo.cs" />
97
+    <Compile Include="T_SystemConfig.cs" />
98
+    <Compile Include="T_Sys_CallOptLogs.cs" />
99
+    <Compile Include="T_Sys_Department.cs" />
100
+    <Compile Include="T_Sys_LoginLogs.cs" />
101
+    <Compile Include="T_Sys_MobileData.cs" />
102
+    <Compile Include="T_Sys_ModuleFunctions.cs" />
103
+    <Compile Include="T_Sys_ModuleFunctionsOpt.cs" />
104
+    <Compile Include="T_Sys_ModuleInfo.cs" />
105
+    <Compile Include="T_Sys_OperateLogs.cs" />
106
+    <Compile Include="T_Sys_RegionCategory.cs" />
107
+    <Compile Include="T_Sys_RoleAttribute.cs" />
108
+    <Compile Include="T_Sys_RoleFunction.cs" />
109
+    <Compile Include="T_Sys_RoleInfo.cs" />
110
+    <Compile Include="T_Sys_RoleModule.cs" />
111
+    <Compile Include="T_Sys_RoleOpt.cs" />
112
+    <Compile Include="T_Sys_SystemConfig.cs" />
113
+    <Compile Include="T_Sys_TelTitleData.cs" />
114
+    <Compile Include="T_Sys_UserAccount.cs" />
115
+    <Compile Include="T_Sys_UserGroup.cs" />
116
+    <Compile Include="T_Sys_WorkCalendar.cs" />
117
+    <Compile Include="WebSet.cs" />
118
+  </ItemGroup>
119
+  <ItemGroup>
120
+    <ProjectReference Include="..\Common\Common.csproj">
121
+      <Project>{969F8594-DBCA-4AD1-BD28-944BFAA44B95}</Project>
122
+      <Name>Common</Name>
123
+    </ProjectReference>
124
+    <ProjectReference Include="..\DAL\DAL.csproj">
125
+      <Project>{6CD27746-823E-4AE6-8C6D-ACCF0F89B257}</Project>
126
+      <Name>DAL</Name>
127
+    </ProjectReference>
128
+    <ProjectReference Include="..\DBUtility\DBUtility.csproj">
129
+      <Project>{DB1CDE0C-EF19-48DB-96B1-870A80401B4F}</Project>
130
+      <Name>DBUtility</Name>
131
+    </ProjectReference>
132
+    <ProjectReference Include="..\Model\Model.csproj">
133
+      <Project>{AA2A8EB9-EFA2-4650-B63E-8E82F078F2CD}</Project>
134
+      <Name>Model</Name>
135
+    </ProjectReference>
136
+  </ItemGroup>
137
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
138
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
139
+       Other similar extension points exist, see Microsoft.Common.targets.
140
+  <Target Name="BeforeBuild">
141
+  </Target>
142
+  <Target Name="AfterBuild">
143
+  </Target>
144
+  -->
145
+</Project>

+ 10 - 0
BLL/BLL.csproj.vspscc

@@ -0,0 +1,10 @@
1
+""
2
+{
3
+"FILE_VERSION" = "9237"
4
+"ENLISTMENT_CHOICE" = "NEVER"
5
+"PROJECT_FILE_RELATIVE_PATH" = "relative:BLL"
6
+"NUMBER_OF_EXCLUDED_FILES" = "0"
7
+"ORIGINAL_PROJECT_FILE_PATH" = ""
8
+"NUMBER_OF_NESTED_PROJECTS" = "0"
9
+"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
10
+}

+ 292 - 0
BLL/DockingSystem.cs

@@ -0,0 +1,292 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// 工单流转表
11
+    /// </summary>
12
+    public partial class DockingSystem
13
+    {
14
+        private readonly XYFDRQ.DAL.DockingSystem dal = new XYFDRQ.DAL.DockingSystem();
15
+        public DockingSystem()
16
+        { }
17
+
18
+        #region 基本代码段
19
+        /// <summary>
20
+        /// 获取客户信息
21
+        /// </summary>
22
+        /// <returns></returns>
23
+        public DataTable GetUserInfo(string strWhere)
24
+        {
25
+            return dal.GetUserInfo(strWhere);
26
+        }
27
+
28
+        /// <summary>
29
+        /// 根据小区id获取小区信息
30
+        /// </summary>
31
+        /// <param name="lvId"></param>
32
+        /// <returns></returns>
33
+        public DataTable GetLvInfo(string lvId)
34
+        {
35
+            return dal.GetLvInfo(lvId);
36
+        }
37
+
38
+        /// <summary>
39
+        /// 根据小区编号或名称获取小区信息
40
+        /// </summary>
41
+        /// <param name="code"></param>
42
+        /// <returns></returns>
43
+        public DataTable GetLvInfos(string code)
44
+        {
45
+            return dal.GetLvInfos(code);
46
+        }
47
+
48
+        /// <summary>
49
+        /// 获取小区信息列表
50
+        /// </summary>
51
+        /// <param name="code"></param>
52
+        /// <returns></returns>
53
+        public DataTable GetLvInfos()
54
+        {
55
+            return dal.GetLvInfos();
56
+        }
57
+        /// <summary>
58
+        /// 根据区域id获取区域信息
59
+        /// </summary>
60
+        /// <param name="regionId"></param>
61
+        /// <returns></returns>
62
+        public DataTable GetRegionInfo(string regionId)
63
+        {
64
+            return dal.GetRegionInfo(regionId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获取用气类型信息
69
+        /// </summary>
70
+        /// <returns></returns>
71
+        public DataTable GetPrice(string GasPriceId)
72
+        {
73
+            return dal.GetPrice(GasPriceId);
74
+        }
75
+
76
+        /// <summary>
77
+        /// 获取表具信息
78
+        /// </summary>
79
+        /// <returns></returns>
80
+        public DataTable GetDevice(string AddressId)
81
+        {
82
+            return dal.GetDevice(AddressId);
83
+        }
84
+
85
+        /// <summary>
86
+        /// 获取IC卡信息
87
+        /// </summary>
88
+        /// <param name="DeviceId"></param>
89
+        /// <returns></returns>
90
+        public DataTable GetICCard(string DeviceId)
91
+        {
92
+            return dal.GetICCard(DeviceId);
93
+        }
94
+
95
+        /// <summary>
96
+        /// 获取最后一次读表信息
97
+        /// </summary>
98
+        /// <param name="AddressId"></param>
99
+        /// <param name="GasUserId"></param>
100
+        /// <returns></returns>
101
+        public DataTable GetLastReadMeterRecord(string AddressId, string GasUserId)
102
+        {
103
+            return dal.GetLastReadMeterRecord(AddressId, GasUserId);
104
+        }
105
+
106
+        /// <summary>
107
+        /// 获取读表信息
108
+        /// </summary>
109
+        /// <param name="AddressId"></param>
110
+        /// <param name="GasUserId"></param>
111
+        /// <returns></returns>
112
+        public DataTable GetReadMeterRecord(string AddressId, string GasUserId)
113
+        {
114
+
115
+            return dal.GetReadMeterRecord(AddressId, GasUserId);
116
+        }
117
+
118
+        /// <summary>
119
+        /// 获取报装记录信息
120
+        /// </summary>
121
+        /// <param name="AddressId"></param>
122
+        /// <returns></returns>
123
+        public DataTable GetAddressProjectInfo(string AddressId)
124
+        {
125
+            return dal.GetAddressProjectInfo(AddressId);
126
+        }
127
+
128
+        /// <summary>
129
+        /// 获取产品类型信息
130
+        /// </summary>
131
+        /// <param name="ProductId"></param>
132
+        /// <returns></returns>
133
+        public DataTable GetProduct(string ProductId)
134
+        {
135
+            return dal.GetProduct(ProductId);
136
+        }
137
+        #region 根据客户编号获取客户所有的欠费金额
138
+        /// <summary>
139
+        /// 根据客户编号获取客户所有的欠费金额
140
+        /// </summary>
141
+        /// <param name="cusCode"></param>
142
+        /// <returns></returns>
143
+        public DataTable GetALLQFMoneyByCusCode(string cusCode)
144
+        {
145
+            return dal.GetALLQFMoneyByCusCode(cusCode);
146
+        }
147
+        #endregion
148
+        #region 根据客户编号获取客户的欠费金额
149
+        /// <summary>
150
+        /// 根据客户编号获取客户的欠费金额
151
+        /// </summary>
152
+        /// <param name="cusCode"></param>
153
+        /// <returns></returns>
154
+        public DataTable GetQFMoneyByCusCode(string cusCode)
155
+        {
156
+            return dal.GetQFMoneyByCusCode(cusCode);
157
+        }
158
+        #endregion
159
+        #endregion
160
+
161
+
162
+
163
+        #region 二次处理代码段
164
+
165
+        /// <summary>
166
+        /// 迭代获取小区地址
167
+        /// </summary>
168
+        /// <param name="LvId"></param>
169
+        /// <returns></returns>
170
+        public string GetLvAddressInfos(string LvId)
171
+        {
172
+            string lvName = string.Empty;
173
+            DataTable dtLv = GetLvInfo(LvId);
174
+            if (dtLv != null && dtLv.Rows.Count > 0)
175
+            {
176
+                if (dtLv.Rows[0]["Parent"] != null && !string.IsNullOrEmpty(dtLv.Rows[0]["Parent"].ToString()))
177
+                {
178
+                    lvName = GetLvAddressInfos(dtLv.Rows[0]["Parent"].ToString()) + lvName;
179
+                }
180
+                lvName += dtLv.Rows[0]["Text"] == null ? "" : dtLv.Rows[0]["Text"].ToString();
181
+
182
+            }
183
+            return lvName;
184
+        }
185
+
186
+        /// <summary>
187
+        /// 获取住址信息
188
+        /// </summary>
189
+        /// <param name="addressId"></param>
190
+        /// <returns></returns>
191
+        public string GetAddress(string addressId)
192
+        {
193
+            string address = string.Empty;
194
+            DataTable dtUserInfo = GetUserInfo(" and addressId=" + addressId);
195
+            if (dtUserInfo != null && dtUserInfo.Rows.Count > 0)
196
+            {
197
+                ////区域
198
+                //if (dtUserInfo.Rows[0]["regionId"] != null && dtUserInfo.Rows[0]["regionId"].ToString() != "")
199
+                //{
200
+                //    DataTable dtRegion = GetRegionInfo(dtUserInfo.Rows[0]["regionId"].ToString());
201
+                //    if (dtRegion != null && dtRegion.Rows.Count > 0)
202
+                //    {
203
+                //        address += dtRegion.Rows[0]["Name"] == null ? "" : dtRegion.Rows[0]["Name"].ToString();                      
204
+                //    }
205
+                //}
206
+                //小区
207
+                if (dtUserInfo.Rows[0]["lvId"] != null && dtUserInfo.Rows[0]["lvId"].ToString() != "")
208
+                {
209
+                    //DataTable dtLv = GetLvInfo(dtUserInfo.Rows[0]["lvId"].ToString());
210
+                    //if (dtLv != null && dtLv.Rows.Count > 0)
211
+                    //{
212
+                    //    address += dtLv.Rows[0]["Text"] == null ? "" : dtLv.Rows[0]["Text"].ToString();   
213
+                    //}
214
+                    address += GetLvAddressInfos(dtUserInfo.Rows[0]["lvId"].ToString());
215
+                }
216
+                //楼栋              
217
+                address += dtUserInfo.Rows[0]["Lv4"] == null ? "" : dtUserInfo.Rows[0]["Lv4"].ToString();
218
+                address += dtUserInfo.Rows[0]["Lv4Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv4Tag"].ToString();
219
+                //单元              
220
+                address += dtUserInfo.Rows[0]["Lv5"] == null ? "" : dtUserInfo.Rows[0]["Lv5"].ToString();
221
+                address += dtUserInfo.Rows[0]["Lv5Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv5Tag"].ToString();
222
+                //门牌号              
223
+                address += dtUserInfo.Rows[0]["Lv6"] == null ? "" : dtUserInfo.Rows[0]["Lv6"].ToString();
224
+                address += dtUserInfo.Rows[0]["Lv6Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv6Tag"].ToString();
225
+                //位置              
226
+                address += dtUserInfo.Rows[0]["Lv7"] == null ? "" : dtUserInfo.Rows[0]["Lv7"].ToString();
227
+                address += dtUserInfo.Rows[0]["Lv7Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv7Tag"].ToString();
228
+                if (string.IsNullOrEmpty(address.Trim()))
229
+                {
230
+                    address += dtUserInfo.Rows[0]["HomeAddress"] == null ? "" : dtUserInfo.Rows[0]["HomeAddress"].ToString();
231
+                }
232
+            }
233
+            return address;
234
+        }
235
+
236
+        /// <summary>
237
+        /// 获取用气类型
238
+        /// </summary>
239
+        /// <returns></returns>
240
+        public string GetPriceType(string GasPriceId)
241
+        {
242
+            string typeName = string.Empty;
243
+            DataTable dt = GetPrice(GasPriceId);
244
+            if (dt != null && dt.Rows.Count > 0)
245
+            {
246
+                typeName = dt.Rows[0]["Name"] == null ? "" : dt.Rows[0]["Name"].ToString();
247
+            }
248
+            return typeName;
249
+        }
250
+
251
+        #region 根据区域id获取区域名称
252
+        /// <summary>
253
+        /// 根据区域id获取区域名称
254
+        /// </summary>
255
+        /// <param name="GasPriceId"></param>
256
+        /// <returns></returns>
257
+        public string GetRegionName(string RegionId)
258
+        {
259
+            string RegionName = string.Empty;
260
+            DataTable dtRegion = GetRegionInfo(RegionId);
261
+            if (dtRegion != null && dtRegion.Rows.Count > 0)
262
+            {
263
+                RegionName = dtRegion.Rows[0]["Name"] == null ? "" : dtRegion.Rows[0]["Name"].ToString();
264
+            }
265
+            return RegionName;
266
+        }
267
+        #endregion
268
+
269
+        #region 根据小区id获取小区名称
270
+
271
+        /// <summary>
272
+        /// 根据小区id获取小区名称
273
+        /// </summary>
274
+        /// <returns></returns>
275
+        public string GetLvName(object lvId)
276
+        {
277
+            string lvName = string.Empty;
278
+            if (lvId != null && !string.IsNullOrEmpty(lvId.ToString()))
279
+            {
280
+                DataTable dt = GetLvInfo(lvId.ToString());
281
+                if (dt != null && dt.Rows.Count > 0)
282
+                {
283
+                    lvName = dt.Rows[0]["Text"] == null ? "" : dt.Rows[0]["Text"].ToString();
284
+                }
285
+            }
286
+            return lvName;
287
+        }
288
+
289
+        #endregion
290
+        #endregion
291
+    }
292
+}

+ 179 - 0
BLL/GG_XTKZ.cs

@@ -0,0 +1,179 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// GG_XTKZ
10
+	/// </summary>
11
+	public partial class GG_XTKZ
12
+	{
13
+		private readonly XYFDRQ.DAL.GG_XTKZ dal=new XYFDRQ.DAL.GG_XTKZ();
14
+		public GG_XTKZ()
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 ID)
30
+		{
31
+			return dal.Exists(ID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(XYFDRQ.Model.GG_XTKZ model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.GG_XTKZ model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int ID)
54
+		{
55
+			
56
+			return dal.Delete(ID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string IDlist )
62
+		{
63
+			return dal.DeleteList(IDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.GG_XTKZ GetModel(int ID)
70
+		{
71
+			
72
+			return dal.GetModel(ID);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.GG_XTKZ GetModelByCache(int ID)
79
+        //{
80
+			
81
+        //    string CacheKey = "GG_XTKZModel-" + ID;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(ID);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.GG_XTKZ)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<XYFDRQ.Model.GG_XTKZ> 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<XYFDRQ.Model.GG_XTKZ> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.GG_XTKZ> modelList = new List<XYFDRQ.Model.GG_XTKZ>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.GG_XTKZ model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = dal.DataRowToModel(dt.Rows[n]);
134
+					if (model != null)
135
+					{
136
+						modelList.Add(model);
137
+				}
138
+				}
139
+			}
140
+			return modelList;
141
+		}
142
+
143
+		/// <summary>
144
+		/// 获得数据列表
145
+		/// </summary>
146
+		public DataSet GetAllList()
147
+		{
148
+			return GetList("");
149
+		}
150
+
151
+		/// <summary>
152
+		/// 分页获取数据列表
153
+		/// </summary>
154
+		public int GetRecordCount(string strWhere)
155
+		{
156
+			return dal.GetRecordCount(strWhere);
157
+		}
158
+		/// <summary>
159
+		/// 分页获取数据列表
160
+		/// </summary>
161
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
162
+		{
163
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
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  BasicMethod
174
+		#region  ExtensionMethod
175
+
176
+		#endregion  ExtensionMethod
177
+	}
178
+}
179
+

+ 36 - 0
BLL/Properties/AssemblyInfo.cs

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

+ 209 - 0
BLL/T_Bus_Accessories.cs

@@ -0,0 +1,209 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 附件表
10
+	/// </summary>
11
+	public partial class T_Bus_Accessories
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_Accessories dal=new XYFDRQ.DAL.T_Bus_Accessories();
14
+		public T_Bus_Accessories()
15
+		{}
16
+		#region  Method
17
+		/// <summary>
18
+		/// 是否存在该记录
19
+		/// </summary>
20
+		public bool Exists(string FileCode)
21
+		{
22
+			return dal.Exists(FileCode);
23
+		}
24
+
25
+		/// <summary>
26
+		/// 增加一条数据
27
+		/// </summary>
28
+		public bool Add(XYFDRQ.Model.T_Bus_Accessories model)
29
+		{
30
+			return dal.Add(model);
31
+		}
32
+
33
+		/// <summary>
34
+		/// 更新一条数据
35
+		/// </summary>
36
+		public bool Update(XYFDRQ.Model.T_Bus_Accessories model)
37
+		{
38
+			return dal.Update(model);
39
+		}
40
+
41
+		/// <summary>
42
+		/// 删除一条数据
43
+		/// </summary>
44
+		public bool Delete(string FileCode)
45
+		{
46
+			
47
+			return dal.Delete(FileCode);
48
+		}
49
+		/// <summary>
50
+		/// 删除一条数据
51
+		/// </summary>
52
+		public bool DeleteList(string FileCodelist )
53
+		{
54
+			return dal.DeleteList(FileCodelist );
55
+		}
56
+
57
+		/// <summary>
58
+		/// 得到一个对象实体
59
+		/// </summary>
60
+		public XYFDRQ.Model.T_Bus_Accessories GetModel(string FileCode)
61
+		{
62
+			
63
+			return dal.GetModel(FileCode);
64
+		}
65
+
66
+        ///// <summary>
67
+        ///// 得到一个对象实体,从缓存中
68
+        ///// </summary>
69
+        //public XYFDRQ.Model.T_Bus_Accessories GetModelByCache(string FileCode)
70
+        //{
71
+			
72
+        //    string CacheKey = "T_Bus_AccessoriesModel-" + FileCode;
73
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
74
+        //    if (objModel == null)
75
+        //    {
76
+        //        try
77
+        //        {
78
+        //            objModel = dal.GetModel(FileCode);
79
+        //            if (objModel != null)
80
+        //            {
81
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
82
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
83
+        //            }
84
+        //        }
85
+        //        catch{}
86
+        //    }
87
+        //    return (XYFDRQ.Model.T_Bus_Accessories)objModel;
88
+        //}
89
+
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+		public DataSet GetList(string strWhere)
94
+		{
95
+			return dal.GetList(strWhere);
96
+		}
97
+		/// <summary>
98
+		/// 获得前几行数据
99
+		/// </summary>
100
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
101
+		{
102
+			return dal.GetList(Top,strWhere,filedOrder);
103
+		}
104
+		/// <summary>
105
+		/// 获得数据列表
106
+		/// </summary>
107
+		public List<XYFDRQ.Model.T_Bus_Accessories> GetModelList(string strWhere)
108
+		{
109
+			DataSet ds = dal.GetList(strWhere);
110
+			return DataTableToList(ds.Tables[0]);
111
+		}
112
+		/// <summary>
113
+		/// 获得数据列表
114
+		/// </summary>
115
+		public List<XYFDRQ.Model.T_Bus_Accessories> DataTableToList(DataTable dt)
116
+		{
117
+			List<XYFDRQ.Model.T_Bus_Accessories> modelList = new List<XYFDRQ.Model.T_Bus_Accessories>();
118
+			int rowsCount = dt.Rows.Count;
119
+			if (rowsCount > 0)
120
+			{
121
+				XYFDRQ.Model.T_Bus_Accessories model;
122
+				for (int n = 0; n < rowsCount; n++)
123
+				{
124
+					model = new XYFDRQ.Model.T_Bus_Accessories();
125
+					if(dt.Rows[n]["FileCode"]!=null && dt.Rows[n]["FileCode"].ToString()!="")
126
+					{
127
+					model.FileCode=dt.Rows[n]["FileCode"].ToString();
128
+					}
129
+					if(dt.Rows[n]["FileName"]!=null && dt.Rows[n]["FileName"].ToString()!="")
130
+					{
131
+					model.FileName=dt.Rows[n]["FileName"].ToString();
132
+					}
133
+					if(dt.Rows[n]["FilePath"]!=null && dt.Rows[n]["FilePath"].ToString()!="")
134
+					{
135
+					model.FilePath=dt.Rows[n]["FilePath"].ToString();
136
+					}
137
+					if(dt.Rows[n]["FileExt"]!=null && dt.Rows[n]["FileExt"].ToString()!="")
138
+					{
139
+					model.FileExt=dt.Rows[n]["FileExt"].ToString();
140
+					}
141
+					if(dt.Rows[n]["TableName"]!=null && dt.Rows[n]["TableName"].ToString()!="")
142
+					{
143
+					model.TableName=dt.Rows[n]["TableName"].ToString();
144
+					}
145
+					if(dt.Rows[n]["AddTime"]!=null && dt.Rows[n]["AddTime"].ToString()!="")
146
+					{
147
+						model.AddTime=DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
148
+					}
149
+					if(dt.Rows[n]["UserId"]!=null && dt.Rows[n]["UserId"].ToString()!="")
150
+					{
151
+						model.UserId=int.Parse(dt.Rows[n]["UserId"].ToString());
152
+					}
153
+					modelList.Add(model);
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  Method
190
+
191
+        /// <summary>
192
+        /// 根据附件编号获取UrlPath
193
+        /// </summary>
194
+        /// <param name="FileCode"></param>
195
+        /// <returns></returns>
196
+        public string GetUrlPathByFileCode(string FileCode)
197
+        {
198
+            string urlPath = string.Empty;
199
+            XYFDRQ.Model.T_Bus_Accessories model_T_Bus_Accessories = GetModel(FileCode);
200
+            if (model_T_Bus_Accessories != null)
201
+            {
202
+                string path = new XYFDRQ.BLL.T_Sys_SystemConfig().GetParamValueByParamCode("FileUrlPath");
203
+                urlPath =path+ model_T_Bus_Accessories.FilePath;
204
+            }
205
+            return urlPath;
206
+        }
207
+	}
208
+}
209
+

+ 203 - 0
BLL/T_Bus_ManageSet.cs

@@ -0,0 +1,203 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using Maticsoft.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 负责人设置
10
+	/// </summary>
11
+	public partial class T_Bus_ManageSet
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_ManageSet dal=new XYFDRQ.DAL.T_Bus_ManageSet();
14
+		public T_Bus_ManageSet()
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 ManageType,int UserType,int UserId)
30
+		{
31
+			return dal.Exists(ManageType,UserType,UserId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(XYFDRQ.Model.T_Bus_ManageSet model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Bus_ManageSet model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int ManageType,int UserType,int UserId)
54
+		{
55
+			
56
+			return dal.Delete(ManageType,UserType,UserId);
57
+		}
58
+
59
+		/// <summary>
60
+		/// 得到一个对象实体
61
+		/// </summary>
62
+		public XYFDRQ.Model.T_Bus_ManageSet GetModel(int ManageType,int UserType,int UserId)
63
+		{
64
+			
65
+			return dal.GetModel(ManageType,UserType,UserId);
66
+		}
67
+
68
+        ///// <summary>
69
+        ///// 得到一个对象实体,从缓存中
70
+        ///// </summary>
71
+        //public XYFDRQ.Model.T_Bus_ManageSet GetModelByCache(int ManageType,int UserType,int UserId)
72
+        //{
73
+			
74
+        //    string CacheKey = "T_Bus_ManageSetModel-" + ManageType+UserType+UserId;
75
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
76
+        //    if (objModel == null)
77
+        //    {
78
+        //        try
79
+        //        {
80
+        //            objModel = dal.GetModel(ManageType,UserType,UserId);
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 (XYFDRQ.Model.T_Bus_ManageSet)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<XYFDRQ.Model.T_Bus_ManageSet> 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<XYFDRQ.Model.T_Bus_ManageSet> DataTableToList(DataTable dt)
118
+		{
119
+			List<XYFDRQ.Model.T_Bus_ManageSet> modelList = new List<XYFDRQ.Model.T_Bus_ManageSet>();
120
+			int rowsCount = dt.Rows.Count;
121
+			if (rowsCount > 0)
122
+			{
123
+				XYFDRQ.Model.T_Bus_ManageSet model;
124
+				for (int n = 0; n < rowsCount; n++)
125
+				{
126
+					model = new XYFDRQ.Model.T_Bus_ManageSet();
127
+					if(dt.Rows[n]["ManageType"]!=null && dt.Rows[n]["ManageType"].ToString()!="")
128
+					{
129
+						model.ManageType=int.Parse(dt.Rows[n]["ManageType"].ToString());
130
+					}
131
+					if(dt.Rows[n]["UserType"]!=null && dt.Rows[n]["UserType"].ToString()!="")
132
+					{
133
+						model.UserType=int.Parse(dt.Rows[n]["UserType"].ToString());
134
+					}
135
+					if(dt.Rows[n]["UserId"]!=null && dt.Rows[n]["UserId"].ToString()!="")
136
+					{
137
+						model.UserId=int.Parse(dt.Rows[n]["UserId"].ToString());
138
+					}
139
+					if(dt.Rows[n]["LvId"]!=null && dt.Rows[n]["LvId"].ToString()!="")
140
+					{
141
+						model.LvId=int.Parse(dt.Rows[n]["LvId"].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
+         /// <summary>
182
+        /// 使用事务保存所负责小区
183
+        /// </summary>
184
+        /// <param name="fzrType"></param>
185
+        /// <param name="userType"></param>
186
+        /// <param name="selectType"></param>
187
+        /// <param name="lvId"></param>
188
+        /// <returns></returns>
189
+        public int SaveInfos(string fzrType, string userType, string selectType, string[] lvIds)
190
+        {
191
+            return dal.SaveInfos(fzrType, userType, selectType, lvIds);
192
+        }
193
+
194
+           /// <summary>
195
+        /// 根据条件删除数据
196
+        /// </summary>
197
+        public bool DeleteInfoByCondition(string Condition)
198
+        {
199
+            return dal.DeleteInfoByCondition(Condition);
200
+        }
201
+	}
202
+}
203
+

+ 256 - 0
BLL/T_Bus_RemindRecord.cs

@@ -0,0 +1,256 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 催办表
10
+	/// </summary>
11
+	public partial class T_Bus_RemindRecord
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_RemindRecord dal=new XYFDRQ.DAL.T_Bus_RemindRecord();
14
+		public T_Bus_RemindRecord()
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_RemindRecId)
30
+		{
31
+			return dal.Exists(F_RemindRecId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Bus_RemindRecord model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Bus_RemindRecord model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_RemindRecId)
54
+		{
55
+			
56
+			return dal.Delete(F_RemindRecId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_RemindRecIdlist )
62
+		{
63
+			return dal.DeleteList(F_RemindRecIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Bus_RemindRecord GetModel(int F_RemindRecId)
70
+		{
71
+			
72
+			return dal.GetModel(F_RemindRecId);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Bus_RemindRecord GetModelByCache(int F_RemindRecId)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Bus_RemindRecordModel-" + F_RemindRecId;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(F_RemindRecId);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Bus_RemindRecord)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<XYFDRQ.Model.T_Bus_RemindRecord> 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<XYFDRQ.Model.T_Bus_RemindRecord> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Bus_RemindRecord> modelList = new List<XYFDRQ.Model.T_Bus_RemindRecord>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Bus_RemindRecord model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Bus_RemindRecord();
134
+					if(dt.Rows[n]["F_RemindRecId"]!=null && dt.Rows[n]["F_RemindRecId"].ToString()!="")
135
+					{
136
+						model.F_RemindRecId=int.Parse(dt.Rows[n]["F_RemindRecId"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_WorkOrdeCode"]!=null && dt.Rows[n]["F_WorkOrdeCode"].ToString()!="")
139
+					{
140
+					model.F_WorkOrdeCode=dt.Rows[n]["F_WorkOrdeCode"].ToString();
141
+					}
142
+					if(dt.Rows[n]["F_DeptId"]!=null && dt.Rows[n]["F_DeptId"].ToString()!="")
143
+					{
144
+						model.F_DeptId=int.Parse(dt.Rows[n]["F_DeptId"].ToString());
145
+					}
146
+					if(dt.Rows[n]["F_UserId"]!=null && dt.Rows[n]["F_UserId"].ToString()!="")
147
+					{
148
+						model.F_UserId=int.Parse(dt.Rows[n]["F_UserId"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_DealDeptId"]!=null && dt.Rows[n]["F_DealDeptId"].ToString()!="")
151
+					{
152
+						model.F_DealDeptId=int.Parse(dt.Rows[n]["F_DealDeptId"].ToString());
153
+					}
154
+					if(dt.Rows[n]["F_DealUserId"]!=null && dt.Rows[n]["F_DealUserId"].ToString()!="")
155
+					{
156
+						model.F_DealUserId=int.Parse(dt.Rows[n]["F_DealUserId"].ToString());
157
+					}
158
+					if(dt.Rows[n]["F_Phone"]!=null && dt.Rows[n]["F_Phone"].ToString()!="")
159
+					{
160
+					model.F_Phone=dt.Rows[n]["F_Phone"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_AcceptName"]!=null && dt.Rows[n]["F_AcceptName"].ToString()!="")
163
+					{
164
+					model.F_AcceptName=dt.Rows[n]["F_AcceptName"].ToString();
165
+					}
166
+					if(dt.Rows[n]["F_RemindName"]!=null && dt.Rows[n]["F_RemindName"].ToString()!="")
167
+					{
168
+					model.F_RemindName=dt.Rows[n]["F_RemindName"].ToString();
169
+					}
170
+					if(dt.Rows[n]["F_RemindTime"]!=null && dt.Rows[n]["F_RemindTime"].ToString()!="")
171
+					{
172
+						model.F_RemindTime=DateTime.Parse(dt.Rows[n]["F_RemindTime"].ToString());
173
+					}
174
+					if(dt.Rows[n]["F_CallId"]!=null && dt.Rows[n]["F_CallId"].ToString()!="")
175
+					{
176
+					model.F_CallId=dt.Rows[n]["F_CallId"].ToString();
177
+					}
178
+					if(dt.Rows[n]["F_RemindType"]!=null && dt.Rows[n]["F_RemindType"].ToString()!="")
179
+					{
180
+						model.F_RemindType=int.Parse(dt.Rows[n]["F_RemindType"].ToString());
181
+					}
182
+					if(dt.Rows[n]["F_SmsId"]!=null && dt.Rows[n]["F_SmsId"].ToString()!="")
183
+					{
184
+						model.F_SmsId=int.Parse(dt.Rows[n]["F_SmsId"].ToString());
185
+					}
186
+					if(dt.Rows[n]["F_RemindContent"]!=null && dt.Rows[n]["F_RemindContent"].ToString()!="")
187
+					{
188
+					model.F_RemindContent=dt.Rows[n]["F_RemindContent"].ToString();
189
+					}
190
+					if(dt.Rows[n]["F_IsRead"]!=null && dt.Rows[n]["F_IsRead"].ToString()!="")
191
+					{
192
+						if((dt.Rows[n]["F_IsRead"].ToString()=="1")||(dt.Rows[n]["F_IsRead"].ToString().ToLower()=="true"))
193
+						{
194
+						model.F_IsRead=true;
195
+						}
196
+						else
197
+						{
198
+							model.F_IsRead=false;
199
+						}
200
+					}
201
+					if(dt.Rows[n]["F_ReadTime"]!=null && dt.Rows[n]["F_ReadTime"].ToString()!="")
202
+					{
203
+						model.F_ReadTime=DateTime.Parse(dt.Rows[n]["F_ReadTime"].ToString());
204
+					}
205
+					if(dt.Rows[n]["F_UserCode"]!=null && dt.Rows[n]["F_UserCode"].ToString()!="")
206
+					{
207
+					model.F_UserCode=dt.Rows[n]["F_UserCode"].ToString();
208
+					}
209
+					if(dt.Rows[n]["F_RemindUserCode"]!=null && dt.Rows[n]["F_RemindUserCode"].ToString()!="")
210
+					{
211
+					model.F_RemindUserCode=dt.Rows[n]["F_RemindUserCode"].ToString();
212
+					}
213
+					if(dt.Rows[n]["F_Remark"]!=null && dt.Rows[n]["F_Remark"].ToString()!="")
214
+					{
215
+					model.F_Remark=dt.Rows[n]["F_Remark"].ToString();
216
+					}
217
+					modelList.Add(model);
218
+				}
219
+			}
220
+			return modelList;
221
+		}
222
+
223
+		/// <summary>
224
+		/// 获得数据列表
225
+		/// </summary>
226
+		public DataSet GetAllList()
227
+		{
228
+			return GetList("");
229
+		}
230
+
231
+		/// <summary>
232
+		/// 分页获取数据列表
233
+		/// </summary>
234
+		public int GetRecordCount(string strWhere)
235
+		{
236
+			return dal.GetRecordCount(strWhere);
237
+		}
238
+		/// <summary>
239
+		/// 分页获取数据列表
240
+		/// </summary>
241
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
242
+		{
243
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
244
+		}
245
+		/// <summary>
246
+		/// 分页获取数据列表
247
+		/// </summary>
248
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
249
+		//{
250
+			//return dal.GetList(PageSize,PageIndex,strWhere);
251
+		//}
252
+
253
+		#endregion  Method
254
+	}
255
+}
256
+

+ 199 - 0
BLL/T_Bus_ReturnVisit.cs

@@ -0,0 +1,199 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 回访表
10
+	/// </summary>
11
+	public partial class T_Bus_ReturnVisit
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_ReturnVisit dal=new XYFDRQ.DAL.T_Bus_ReturnVisit();
14
+		public T_Bus_ReturnVisit()
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(XYFDRQ.Model.T_Bus_ReturnVisit model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Bus_ReturnVisit 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 XYFDRQ.Model.T_Bus_ReturnVisit GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Bus_ReturnVisit GetModelByCache(int F_Id)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Bus_ReturnVisitModel-" + F_Id;
82
+        //    object objModel = XYFDRQ.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 = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Bus_ReturnVisit)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<XYFDRQ.Model.T_Bus_ReturnVisit> 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<XYFDRQ.Model.T_Bus_ReturnVisit> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Bus_ReturnVisit> modelList = new List<XYFDRQ.Model.T_Bus_ReturnVisit>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Bus_ReturnVisit model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Bus_ReturnVisit();
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_WorkOrderId"]!=null && dt.Rows[n]["F_WorkOrderId"].ToString()!="")
139
+					{
140
+						model.F_WorkOrderId=int.Parse(dt.Rows[n]["F_WorkOrderId"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_ReturnlTime"]!=null && dt.Rows[n]["F_ReturnlTime"].ToString()!="")
143
+					{
144
+						model.F_ReturnlTime=DateTime.Parse(dt.Rows[n]["F_ReturnlTime"].ToString());
145
+					}
146
+					if(dt.Rows[n]["F_ReturnUserId"]!=null && dt.Rows[n]["F_ReturnUserId"].ToString()!="")
147
+					{
148
+						model.F_ReturnUserId=int.Parse(dt.Rows[n]["F_ReturnUserId"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_ReturnUserSN"]!=null && dt.Rows[n]["F_ReturnUserSN"].ToString()!="")
151
+					{
152
+					model.F_ReturnUserSN=dt.Rows[n]["F_ReturnUserSN"].ToString();
153
+					}
154
+					if(dt.Rows[n]["F_ReturnUserName"]!=null && dt.Rows[n]["F_ReturnUserName"].ToString()!="")
155
+					{
156
+					model.F_ReturnUserName=dt.Rows[n]["F_ReturnUserName"].ToString();
157
+					}
158
+					if(dt.Rows[n]["F_ReutrnResult"]!=null && dt.Rows[n]["F_ReutrnResult"].ToString()!="")
159
+					{
160
+					model.F_ReutrnResult=dt.Rows[n]["F_ReutrnResult"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_ReturnState"]!=null && dt.Rows[n]["F_ReturnState"].ToString()!="")
163
+					{
164
+					model.F_ReturnState=dt.Rows[n]["F_ReturnState"].ToString();
165
+					}
166
+					if(dt.Rows[n]["F_Satisfaction"]!=null && dt.Rows[n]["F_Satisfaction"].ToString()!="")
167
+					{
168
+						model.F_Satisfaction=int.Parse(dt.Rows[n]["F_Satisfaction"].ToString());
169
+					}
170
+					if(dt.Rows[n]["F_UnSatisfactReason"]!=null && dt.Rows[n]["F_UnSatisfactReason"].ToString()!="")
171
+					{
172
+					model.F_UnSatisfactReason=dt.Rows[n]["F_UnSatisfactReason"].ToString();
173
+					}
174
+					modelList.Add(model);
175
+				}
176
+			}
177
+			return modelList;
178
+		}
179
+
180
+		/// <summary>
181
+		/// 获得数据列表
182
+		/// </summary>
183
+		public DataSet GetAllList()
184
+		{
185
+			return GetList("");
186
+		}
187
+
188
+		/// <summary>
189
+		/// 分页获取数据列表
190
+		/// </summary>
191
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
192
+		//{
193
+			//return dal.GetList(PageSize,PageIndex,strWhere);
194
+		//}
195
+
196
+		#endregion  Method
197
+	}
198
+}
199
+

+ 279 - 0
BLL/T_Bus_TimeOver.cs

@@ -0,0 +1,279 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 工单超时设置类
10
+	/// </summary>
11
+	public partial class T_Bus_TimeOver
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_TimeOver dal=new XYFDRQ.DAL.T_Bus_TimeOver();
14
+		public T_Bus_TimeOver()
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 Id)
30
+		{
31
+			return dal.Exists(Id);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Bus_TimeOver model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Bus_TimeOver model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int Id)
54
+		{
55
+			
56
+			return dal.Delete(Id);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string Idlist )
62
+		{
63
+			return dal.DeleteList(Idlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Bus_TimeOver GetModel(int Id)
70
+		{
71
+			
72
+			return dal.GetModel(Id);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Bus_TimeOver GetModelByCache(int Id)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Bus_TimeOverModel-" + Id;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(Id);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Bus_TimeOver)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<XYFDRQ.Model.T_Bus_TimeOver> 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<XYFDRQ.Model.T_Bus_TimeOver> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Bus_TimeOver> modelList = new List<XYFDRQ.Model.T_Bus_TimeOver>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Bus_TimeOver model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Bus_TimeOver();
134
+					if(dt.Rows[n]["Id"]!=null && dt.Rows[n]["Id"].ToString()!="")
135
+					{
136
+						model.Id=int.Parse(dt.Rows[n]["Id"].ToString());
137
+					}
138
+					if(dt.Rows[n]["BusinessType"]!=null && dt.Rows[n]["BusinessType"].ToString()!="")
139
+					{
140
+						model.BusinessType=int.Parse(dt.Rows[n]["BusinessType"].ToString());
141
+					}
142
+					if(dt.Rows[n]["InfoBigType"]!=null && dt.Rows[n]["InfoBigType"].ToString()!="")
143
+					{
144
+						model.InfoBigType=int.Parse(dt.Rows[n]["InfoBigType"].ToString());
145
+					}
146
+					if(dt.Rows[n]["BusinessLevel"]!=null && dt.Rows[n]["BusinessLevel"].ToString()!="")
147
+					{
148
+						model.BusinessLevel=int.Parse(dt.Rows[n]["BusinessLevel"].ToString());
149
+					}
150
+					if(dt.Rows[n]["State"]!=null && dt.Rows[n]["State"].ToString()!="")
151
+					{
152
+						model.State=int.Parse(dt.Rows[n]["State"].ToString());
153
+					}
154
+					if(dt.Rows[n]["TimeLong"]!=null && dt.Rows[n]["TimeLong"].ToString()!="")
155
+					{
156
+						model.TimeLong=int.Parse(dt.Rows[n]["TimeLong"].ToString());
157
+					}
158
+					if(dt.Rows[n]["TimeUnit"]!=null && dt.Rows[n]["TimeUnit"].ToString()!="")
159
+					{
160
+					model.TimeUnit=dt.Rows[n]["TimeUnit"].ToString();
161
+					}
162
+					if(dt.Rows[n]["Remark"]!=null && dt.Rows[n]["Remark"].ToString()!="")
163
+					{
164
+					model.Remark=dt.Rows[n]["Remark"].ToString();
165
+					}
166
+					if(dt.Rows[n]["RemainderTimeLong"]!=null && dt.Rows[n]["RemainderTimeLong"].ToString()!="")
167
+					{
168
+						model.RemainderTimeLong=int.Parse(dt.Rows[n]["RemainderTimeLong"].ToString());
169
+					}
170
+					if(dt.Rows[n]["RemainderTimeUnit"]!=null && dt.Rows[n]["RemainderTimeUnit"].ToString()!="")
171
+					{
172
+					model.RemainderTimeUnit=dt.Rows[n]["RemainderTimeUnit"].ToString();
173
+					}
174
+					modelList.Add(model);
175
+				}
176
+			}
177
+			return modelList;
178
+		}
179
+
180
+		/// <summary>
181
+		/// 获得数据列表
182
+		/// </summary>
183
+		public DataSet GetAllList()
184
+		{
185
+			return GetList("");
186
+		}
187
+
188
+		/// <summary>
189
+		/// 分页获取数据列表
190
+		/// </summary>
191
+		public int GetRecordCount(string strWhere)
192
+		{
193
+			return dal.GetRecordCount(strWhere);
194
+		}
195
+		/// <summary>
196
+		/// 分页获取数据列表
197
+		/// </summary>
198
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
199
+		{
200
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
201
+		}
202
+		/// <summary>
203
+		/// 分页获取数据列表
204
+		/// </summary>
205
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
206
+		//{
207
+			//return dal.GetList(PageSize,PageIndex,strWhere);
208
+		//}
209
+
210
+		#endregion  Method
211
+
212
+        /// <summary>
213
+        /// 根据业务类型和状态得到一个对象实体
214
+        /// </summary>
215
+        public XYFDRQ.Model.T_Bus_TimeOver GetModelByCoditin(string sql)
216
+        {
217
+            return dal.GetModelByCoditin(sql);
218
+        }
219
+
220
+        /// <summary>
221
+        /// 计算出计划结束时间
222
+        /// </summary>
223
+        /// <param name="beginTime"></param>
224
+        /// <param name="timeLong"></param>
225
+        /// <param name="TimeUnit"></param>
226
+        /// <returns></returns>
227
+        public DateTime? GetPlanEndTime(DateTime BeginTime, int TimeLong, string TimeUnit)
228
+        {
229
+            DateTime? dt = null;
230
+            if (TimeUnit == "分")
231
+            {
232
+                dt = BeginTime.AddMinutes(Convert.ToDouble(TimeLong));
233
+            }
234
+            else if (TimeUnit == "小时")
235
+            {
236
+                dt = BeginTime.AddHours(Convert.ToDouble(TimeLong));
237
+            }
238
+            else if (TimeUnit == "天")
239
+            {
240
+                dt = BeginTime.AddDays(Convert.ToDouble(TimeLong));
241
+            }
242
+            return dt;
243
+        }
244
+
245
+        /// <summary>
246
+        /// 计算出告警时间
247
+        /// </summary>
248
+        /// <param name="beginTime"></param>
249
+        /// <param name="timeLong"></param>
250
+        /// <param name="TimeUnit"></param>
251
+        /// <returns></returns>
252
+        public DateTime? GetRemainderTime(DateTime PlanEndTime, int TimeLong, string TimeUnit)
253
+        {
254
+            DateTime? dt = null;
255
+            if (TimeUnit == "分")
256
+            {
257
+                dt = PlanEndTime.AddMinutes(-Convert.ToDouble(TimeLong));
258
+            }
259
+            else if (TimeUnit == "小时")
260
+            {
261
+                dt = PlanEndTime.AddHours(-Convert.ToDouble(TimeLong));
262
+            }
263
+            else if (TimeUnit == "天")
264
+            {
265
+                dt = PlanEndTime.AddDays(-Convert.ToDouble(TimeLong));
266
+            }
267
+            return dt;
268
+        }
269
+
270
+        /// <summary>
271
+        /// 根据条件是否存在该记录
272
+        /// </summary>
273
+        public bool ExistsByCondition(string sql)
274
+        {
275
+            return dal.ExistsByCondition(sql);
276
+        }
277
+	}
278
+}
279
+

+ 171 - 0
BLL/T_Bus_WorkCallRecord.cs

@@ -0,0 +1,171 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 通话记录工单关联表
10
+	/// </summary>
11
+	public partial class T_Bus_WorkCallRecord
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_WorkCallRecord dal=new XYFDRQ.DAL.T_Bus_WorkCallRecord();
14
+		public T_Bus_WorkCallRecord()
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(XYFDRQ.Model.T_Bus_WorkCallRecord model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Bus_WorkCallRecord 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 XYFDRQ.Model.T_Bus_WorkCallRecord GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Bus_WorkCallRecord GetModelByCache(int F_Id)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Bus_WorkCallRecordModel-" + F_Id;
82
+        //    object objModel = XYFDRQ.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 = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Bus_WorkCallRecord)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<XYFDRQ.Model.T_Bus_WorkCallRecord> 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<XYFDRQ.Model.T_Bus_WorkCallRecord> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Bus_WorkCallRecord> modelList = new List<XYFDRQ.Model.T_Bus_WorkCallRecord>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Bus_WorkCallRecord model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Bus_WorkCallRecord();
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_CallRecordId"]!=null && dt.Rows[n]["F_CallRecordId"].ToString()!="")
139
+					{
140
+						model.F_CallRecordId=int.Parse(dt.Rows[n]["F_CallRecordId"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_WorkOrderId"]!=null && dt.Rows[n]["F_WorkOrderId"].ToString()!="")
143
+					{
144
+						model.F_WorkOrderId=int.Parse(dt.Rows[n]["F_WorkOrderId"].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 DataSet GetList(int PageSize,int PageIndex,string strWhere)
164
+		//{
165
+			//return dal.GetList(PageSize,PageIndex,strWhere);
166
+		//}
167
+
168
+		#endregion  Method
169
+	}
170
+}
171
+

+ 261 - 0
BLL/T_Bus_WorkFlow.cs

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

+ 235 - 0
BLL/T_Bus_WorkHistory.cs

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

+ 423 - 0
BLL/T_Bus_WorkOrder.cs

@@ -0,0 +1,423 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 工单表
10
+	/// </summary>
11
+	public partial class T_Bus_WorkOrder
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_WorkOrder dal=new XYFDRQ.DAL.T_Bus_WorkOrder();
14
+		public T_Bus_WorkOrder()
15
+		{}
16
+		#region  Method
17
+		/// <summary>
18
+		/// 是否存在该记录
19
+		/// </summary>
20
+		public bool Exists(string WorkOrderCode)
21
+		{
22
+			return dal.Exists(WorkOrderCode);
23
+		}
24
+
25
+		/// <summary>
26
+		/// 增加一条数据
27
+		/// </summary>
28
+		public bool Add(XYFDRQ.Model.T_Bus_WorkOrder model)
29
+		{
30
+			return dal.Add(model);
31
+		}
32
+
33
+		/// <summary>
34
+		/// 更新一条数据
35
+		/// </summary>
36
+		public bool Update(XYFDRQ.Model.T_Bus_WorkOrder model)
37
+		{
38
+			return dal.Update(model);
39
+		}
40
+
41
+		/// <summary>
42
+		/// 删除一条数据
43
+		/// </summary>
44
+		public bool Delete(string WorkOrderCode)
45
+		{
46
+			
47
+			return dal.Delete(WorkOrderCode);
48
+		}
49
+		/// <summary>
50
+		/// 删除一条数据
51
+		/// </summary>
52
+		public bool DeleteList(string WorkOrderCodelist )
53
+		{
54
+			return dal.DeleteList(WorkOrderCodelist );
55
+		}
56
+
57
+		/// <summary>
58
+		/// 得到一个对象实体
59
+		/// </summary>
60
+		public XYFDRQ.Model.T_Bus_WorkOrder GetModel(string WorkOrderCode)
61
+		{
62
+			
63
+			return dal.GetModel(WorkOrderCode);
64
+		}
65
+
66
+        ///// <summary>
67
+        ///// 得到一个对象实体,从缓存中
68
+        ///// </summary>
69
+        //public XYFDRQ.Model.T_Bus_WorkOrder GetModelByCache(string WorkOrderCode)
70
+        //{
71
+			
72
+        //    string CacheKey = "T_Bus_WorkOrderModel-" + WorkOrderCode;
73
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
74
+        //    if (objModel == null)
75
+        //    {
76
+        //        try
77
+        //        {
78
+        //            objModel = dal.GetModel(WorkOrderCode);
79
+        //            if (objModel != null)
80
+        //            {
81
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
82
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
83
+        //            }
84
+        //        }
85
+        //        catch{}
86
+        //    }
87
+        //    return (XYFDRQ.Model.T_Bus_WorkOrder)objModel;
88
+        //}
89
+
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+		public DataSet GetList(string strWhere)
94
+		{
95
+			return dal.GetList(strWhere);
96
+		}
97
+		/// <summary>
98
+		/// 获得前几行数据
99
+		/// </summary>
100
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
101
+		{
102
+			return dal.GetList(Top,strWhere,filedOrder);
103
+		}
104
+		/// <summary>
105
+		/// 获得数据列表
106
+		/// </summary>
107
+		public List<XYFDRQ.Model.T_Bus_WorkOrder> GetModelList(string strWhere)
108
+		{
109
+			DataSet ds = dal.GetList(strWhere);
110
+			return DataTableToList(ds.Tables[0]);
111
+		}
112
+		/// <summary>
113
+		/// 获得数据列表
114
+		/// </summary>
115
+		public List<XYFDRQ.Model.T_Bus_WorkOrder> DataTableToList(DataTable dt)
116
+		{
117
+			List<XYFDRQ.Model.T_Bus_WorkOrder> modelList = new List<XYFDRQ.Model.T_Bus_WorkOrder>();
118
+			int rowsCount = dt.Rows.Count;
119
+			if (rowsCount > 0)
120
+			{
121
+				XYFDRQ.Model.T_Bus_WorkOrder model;
122
+				for (int n = 0; n < rowsCount; n++)
123
+				{
124
+					model = new XYFDRQ.Model.T_Bus_WorkOrder();
125
+					if(dt.Rows[n]["WorkOrderCode"]!=null && dt.Rows[n]["WorkOrderCode"].ToString()!="")
126
+					{
127
+					model.WorkOrderCode=dt.Rows[n]["WorkOrderCode"].ToString();
128
+					}
129
+					if(dt.Rows[n]["CallId"]!=null && dt.Rows[n]["CallId"].ToString()!="")
130
+					{
131
+					model.CallId=dt.Rows[n]["CallId"].ToString();
132
+					}
133
+					if(dt.Rows[n]["CusId"]!=null && dt.Rows[n]["CusId"].ToString()!="")
134
+					{
135
+					model.CusId=dt.Rows[n]["CusId"].ToString();
136
+					}
137
+					if(dt.Rows[n]["CusCode"]!=null && dt.Rows[n]["CusCode"].ToString()!="")
138
+					{
139
+					model.CusCode=dt.Rows[n]["CusCode"].ToString();
140
+					}
141
+					if(dt.Rows[n]["CusName"]!=null && dt.Rows[n]["CusName"].ToString()!="")
142
+					{
143
+					model.CusName=dt.Rows[n]["CusName"].ToString();
144
+					}
145
+					if(dt.Rows[n]["CusConnPhone"]!=null && dt.Rows[n]["CusConnPhone"].ToString()!="")
146
+					{
147
+					model.CusConnPhone=dt.Rows[n]["CusConnPhone"].ToString();
148
+					}
149
+					if(dt.Rows[n]["CusAddress"]!=null && dt.Rows[n]["CusAddress"].ToString()!="")
150
+					{
151
+					model.CusAddress=dt.Rows[n]["CusAddress"].ToString();
152
+					}
153
+					if(dt.Rows[n]["CusQQ"]!=null && dt.Rows[n]["CusQQ"].ToString()!="")
154
+					{
155
+					model.CusQQ=dt.Rows[n]["CusQQ"].ToString();
156
+					}
157
+					if(dt.Rows[n]["CusEmail"]!=null && dt.Rows[n]["CusEmail"].ToString()!="")
158
+					{
159
+					model.CusEmail=dt.Rows[n]["CusEmail"].ToString();
160
+					}
161
+					if(dt.Rows[n]["CusProvince"]!=null && dt.Rows[n]["CusProvince"].ToString()!="")
162
+					{
163
+						model.CusProvince=int.Parse(dt.Rows[n]["CusProvince"].ToString());
164
+					}
165
+					if(dt.Rows[n]["CusCity"]!=null && dt.Rows[n]["CusCity"].ToString()!="")
166
+					{
167
+						model.CusCity=int.Parse(dt.Rows[n]["CusCity"].ToString());
168
+					}
169
+					if(dt.Rows[n]["CusArea"]!=null && dt.Rows[n]["CusArea"].ToString()!="")
170
+					{
171
+						model.CusArea=int.Parse(dt.Rows[n]["CusArea"].ToString());
172
+					}
173
+					if(dt.Rows[n]["CusLvId"]!=null && dt.Rows[n]["CusLvId"].ToString()!="")
174
+					{
175
+						model.CusLvId=int.Parse(dt.Rows[n]["CusLvId"].ToString());
176
+					}
177
+					if(dt.Rows[n]["InfoSource"]!=null && dt.Rows[n]["InfoSource"].ToString()!="")
178
+					{
179
+						model.InfoSource=int.Parse(dt.Rows[n]["InfoSource"].ToString());
180
+					}
181
+					if(dt.Rows[n]["InfoType"]!=null && dt.Rows[n]["InfoType"].ToString()!="")
182
+					{
183
+						model.InfoType=int.Parse(dt.Rows[n]["InfoType"].ToString());
184
+					}
185
+					if(dt.Rows[n]["InfoBigType"]!=null && dt.Rows[n]["InfoBigType"].ToString()!="")
186
+					{
187
+						model.InfoBigType=int.Parse(dt.Rows[n]["InfoBigType"].ToString());
188
+					}
189
+					if(dt.Rows[n]["InfoSmallType"]!=null && dt.Rows[n]["InfoSmallType"].ToString()!="")
190
+					{
191
+						model.InfoSmallType=int.Parse(dt.Rows[n]["InfoSmallType"].ToString());
192
+					}
193
+					if(dt.Rows[n]["InfoLevel"]!=null && dt.Rows[n]["InfoLevel"].ToString()!="")
194
+					{
195
+						model.InfoLevel=int.Parse(dt.Rows[n]["InfoLevel"].ToString());
196
+					}
197
+					if(dt.Rows[n]["Object"]!=null && dt.Rows[n]["Object"].ToString()!="")
198
+					{
199
+					model.Object=dt.Rows[n]["Object"].ToString();
200
+					}
201
+					if(dt.Rows[n]["IsAccessories"]!=null && dt.Rows[n]["IsAccessories"].ToString()!="")
202
+					{
203
+						if((dt.Rows[n]["IsAccessories"].ToString()=="1")||(dt.Rows[n]["IsAccessories"].ToString().ToLower()=="true"))
204
+						{
205
+						model.IsAccessories=true;
206
+						}
207
+						else
208
+						{
209
+							model.IsAccessories=false;
210
+						}
211
+					}
212
+					if(dt.Rows[n]["AccessoriesCode"]!=null && dt.Rows[n]["AccessoriesCode"].ToString()!="")
213
+					{
214
+					model.AccessoriesCode=dt.Rows[n]["AccessoriesCode"].ToString();
215
+					}
216
+					if(dt.Rows[n]["InfoContent"]!=null && dt.Rows[n]["InfoContent"].ToString()!="")
217
+					{
218
+					model.InfoContent=dt.Rows[n]["InfoContent"].ToString();
219
+					}
220
+					if(dt.Rows[n]["Remark"]!=null && dt.Rows[n]["Remark"].ToString()!="")
221
+					{
222
+					model.Remark=dt.Rows[n]["Remark"].ToString();
223
+					}
224
+					if(dt.Rows[n]["ProcessingMode"]!=null && dt.Rows[n]["ProcessingMode"].ToString()!="")
225
+					{
226
+						model.ProcessingMode=int.Parse(dt.Rows[n]["ProcessingMode"].ToString());
227
+					}
228
+					if(dt.Rows[n]["State"]!=null && dt.Rows[n]["State"].ToString()!="")
229
+					{
230
+						model.State=int.Parse(dt.Rows[n]["State"].ToString());
231
+					}
232
+					if(dt.Rows[n]["AddTime"]!=null && dt.Rows[n]["AddTime"].ToString()!="")
233
+					{
234
+						model.AddTime=DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
235
+					}
236
+					if(dt.Rows[n]["DeptId"]!=null && dt.Rows[n]["DeptId"].ToString()!="")
237
+					{
238
+						model.DeptId=int.Parse(dt.Rows[n]["DeptId"].ToString());
239
+					}
240
+					if(dt.Rows[n]["UserId"]!=null && dt.Rows[n]["UserId"].ToString()!="")
241
+					{
242
+						model.UserId=int.Parse(dt.Rows[n]["UserId"].ToString());
243
+					}
244
+					if(dt.Rows[n]["UserCode"]!=null && dt.Rows[n]["UserCode"].ToString()!="")
245
+					{
246
+					model.UserCode=dt.Rows[n]["UserCode"].ToString();
247
+					}
248
+					if(dt.Rows[n]["UserName"]!=null && dt.Rows[n]["UserName"].ToString()!="")
249
+					{
250
+					model.UserName=dt.Rows[n]["UserName"].ToString();
251
+					}
252
+					if(dt.Rows[n]["UserQQ"]!=null && dt.Rows[n]["UserQQ"].ToString()!="")
253
+					{
254
+					model.UserQQ=dt.Rows[n]["UserQQ"].ToString();
255
+					}
256
+					if(dt.Rows[n]["IsReturnVisit"]!=null && dt.Rows[n]["IsReturnVisit"].ToString()!="")
257
+					{
258
+						if((dt.Rows[n]["IsReturnVisit"].ToString()=="1")||(dt.Rows[n]["IsReturnVisit"].ToString().ToLower()=="true"))
259
+						{
260
+						model.IsReturnVisit=true;
261
+						}
262
+						else
263
+						{
264
+							model.IsReturnVisit=false;
265
+						}
266
+					}
267
+					if(dt.Rows[n]["ReturnVisitState"]!=null && dt.Rows[n]["ReturnVisitState"].ToString()!="")
268
+					{
269
+						model.ReturnVisitState=int.Parse(dt.Rows[n]["ReturnVisitState"].ToString());
270
+					}
271
+					if(dt.Rows[n]["ReturnVisitResult"]!=null && dt.Rows[n]["ReturnVisitResult"].ToString()!="")
272
+					{
273
+						model.ReturnVisitResult=int.Parse(dt.Rows[n]["ReturnVisitResult"].ToString());
274
+					}
275
+					if(dt.Rows[n]["ReturnVisitRemark"]!=null && dt.Rows[n]["ReturnVisitRemark"].ToString()!="")
276
+					{
277
+					model.ReturnVisitRemark=dt.Rows[n]["ReturnVisitRemark"].ToString();
278
+					}
279
+					if(dt.Rows[n]["IsDelete"]!=null && dt.Rows[n]["IsDelete"].ToString()!="")
280
+					{
281
+						if((dt.Rows[n]["IsDelete"].ToString()=="1")||(dt.Rows[n]["IsDelete"].ToString().ToLower()=="true"))
282
+						{
283
+						model.IsDelete=true;
284
+						}
285
+						else
286
+						{
287
+							model.IsDelete=false;
288
+						}
289
+					}
290
+					if(dt.Rows[n]["OverLong"]!=null && dt.Rows[n]["OverLong"].ToString()!="")
291
+					{
292
+						model.OverLong=int.Parse(dt.Rows[n]["OverLong"].ToString());
293
+					}
294
+					if(dt.Rows[n]["RemainderTime"]!=null && dt.Rows[n]["RemainderTime"].ToString()!="")
295
+					{
296
+						model.RemainderTime=DateTime.Parse(dt.Rows[n]["RemainderTime"].ToString());
297
+					}
298
+					if(dt.Rows[n]["PlanEndTime"]!=null && dt.Rows[n]["PlanEndTime"].ToString()!="")
299
+					{
300
+						model.PlanEndTime=DateTime.Parse(dt.Rows[n]["PlanEndTime"].ToString());
301
+					}
302
+					if(dt.Rows[n]["EndTime"]!=null && dt.Rows[n]["EndTime"].ToString()!="")
303
+					{
304
+						model.EndTime=DateTime.Parse(dt.Rows[n]["EndTime"].ToString());
305
+					}
306
+					if(dt.Rows[n]["ReturnVisitContent"]!=null && dt.Rows[n]["ReturnVisitContent"].ToString()!="")
307
+					{
308
+					model.ReturnVisitContent=dt.Rows[n]["ReturnVisitContent"].ToString();
309
+					}
310
+					if(dt.Rows[n]["LastReturnVisitDeptId"]!=null && dt.Rows[n]["LastReturnVisitDeptId"].ToString()!="")
311
+					{
312
+						model.LastReturnVisitDeptId=int.Parse(dt.Rows[n]["LastReturnVisitDeptId"].ToString());
313
+					}
314
+					if(dt.Rows[n]["LastReturnVisitUserId"]!=null && dt.Rows[n]["LastReturnVisitUserId"].ToString()!="")
315
+					{
316
+						model.LastReturnVisitUserId=int.Parse(dt.Rows[n]["LastReturnVisitUserId"].ToString());
317
+					}
318
+					if(dt.Rows[n]["LastReturnVisitTime"]!=null && dt.Rows[n]["LastReturnVisitTime"].ToString()!="")
319
+					{
320
+						model.LastReturnVisitTime=DateTime.Parse(dt.Rows[n]["LastReturnVisitTime"].ToString());
321
+					}
322
+					if(dt.Rows[n]["LastDealDeptId"]!=null && dt.Rows[n]["LastDealDeptId"].ToString()!="")
323
+					{
324
+						model.LastDealDeptId=int.Parse(dt.Rows[n]["LastDealDeptId"].ToString());
325
+					}
326
+					if(dt.Rows[n]["LastDealUserId"]!=null && dt.Rows[n]["LastDealUserId"].ToString()!="")
327
+					{
328
+						model.LastDealUserId=int.Parse(dt.Rows[n]["LastDealUserId"].ToString());
329
+					}
330
+					if(dt.Rows[n]["LastDealTime"]!=null && dt.Rows[n]["LastDealTime"].ToString()!="")
331
+					{
332
+						model.LastDealTime=DateTime.Parse(dt.Rows[n]["LastDealTime"].ToString());
333
+					}
334
+					if(dt.Rows[n]["PDTime"]!=null && dt.Rows[n]["PDTime"].ToString()!="")
335
+					{
336
+						model.PDTime=DateTime.Parse(dt.Rows[n]["PDTime"].ToString());
337
+					}
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
+        /// <summary>
377
+        /// 根据工单类型获取新的工单号
378
+        /// </summary>
379
+        /// <param name="p_BusinessType">工单类型</param>
380
+        /// <returns></returns>
381
+        public string GetNewWorkOrderCode(string p_BusinessType)
382
+        {
383
+            return dal.GetNewWorkOrderCode(p_BusinessType);
384
+        }
385
+
386
+        /// <summary>
387
+        /// 根据工单编号更新工单状态
388
+        /// </summary>
389
+        public bool UpdateInfoStateByWorkOrderCode(string workOrderCode, int state)
390
+        {
391
+            return dal.UpdateInfoStateByWorkOrderCode(workOrderCode, state);
392
+        }
393
+
394
+        /// <summary>
395
+        /// 根据工单编号作废工单
396
+        /// </summary>
397
+        public bool DelWorkOrderByWorkCode(string workOrderCode)
398
+        {
399
+            return dal.DelWorkOrderByWorkCode(workOrderCode);
400
+        }
401
+
402
+          /// <summary>
403
+        ///根据工单编号修改处理人信息
404
+        /// </summary>
405
+        public bool UpdateDealInfoByWorkOrderCode(string WorkOrderCode, int deptId, int userId)
406
+        {
407
+            return dal.UpdateDealInfoByWorkOrderCode(WorkOrderCode, deptId, userId);
408
+        }
409
+
410
+         /// <summary>
411
+       /// 根据客户编号,业务类型、业务类别判断单子是否存在
412
+       /// </summary>
413
+       /// <param name="CusCode"></param>
414
+       /// <param name="InfoType"></param>
415
+       /// <param name="BigType"></param>
416
+       /// <returns></returns>
417
+        public bool ExistsWorkOrder(string CusCode, string InfoType, string BigType)
418
+        {
419
+            return dal.ExistsWorkOrder(CusCode, InfoType, BigType);
420
+        }
421
+	}
422
+}
423
+

+ 214 - 0
BLL/T_Bus_WorkType.cs

@@ -0,0 +1,214 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 业务类型
10
+	/// </summary>
11
+	public partial class T_Bus_WorkType
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_WorkType dal=new XYFDRQ.DAL.T_Bus_WorkType();
14
+		public T_Bus_WorkType()
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 TypeId)
30
+		{
31
+			return dal.Exists(TypeId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Bus_WorkType model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Bus_WorkType model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int TypeId)
54
+		{
55
+			
56
+			return dal.Delete(TypeId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string TypeIdlist )
62
+		{
63
+			return dal.DeleteList(TypeIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Bus_WorkType GetModel(int TypeId)
70
+		{
71
+			
72
+			return dal.GetModel(TypeId);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Bus_WorkType GetModelByCache(int TypeId)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Bus_WorkTypeModel-" + TypeId;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(TypeId);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Bus_WorkType)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<XYFDRQ.Model.T_Bus_WorkType> 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<XYFDRQ.Model.T_Bus_WorkType> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Bus_WorkType> modelList = new List<XYFDRQ.Model.T_Bus_WorkType>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Bus_WorkType model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Bus_WorkType();
134
+					if(dt.Rows[n]["TypeId"]!=null && dt.Rows[n]["TypeId"].ToString()!="")
135
+					{
136
+						model.TypeId=int.Parse(dt.Rows[n]["TypeId"].ToString());
137
+					}
138
+					if(dt.Rows[n]["TypeName"]!=null && dt.Rows[n]["TypeName"].ToString()!="")
139
+					{
140
+					model.TypeName=dt.Rows[n]["TypeName"].ToString();
141
+					}
142
+					if(dt.Rows[n]["ParentTypeId"]!=null && dt.Rows[n]["ParentTypeId"].ToString()!="")
143
+					{
144
+						model.ParentTypeId=int.Parse(dt.Rows[n]["ParentTypeId"].ToString());
145
+					}
146
+					if(dt.Rows[n]["Sort"]!=null && dt.Rows[n]["Sort"].ToString()!="")
147
+					{
148
+						model.Sort=int.Parse(dt.Rows[n]["Sort"].ToString());
149
+					}
150
+					if(dt.Rows[n]["Remark"]!=null && dt.Rows[n]["Remark"].ToString()!="")
151
+					{
152
+					model.Remark=dt.Rows[n]["Remark"].ToString();
153
+					}
154
+					if(dt.Rows[n]["IsDelete"]!=null && dt.Rows[n]["IsDelete"].ToString()!="")
155
+					{
156
+						if((dt.Rows[n]["IsDelete"].ToString()=="1")||(dt.Rows[n]["IsDelete"].ToString().ToLower()=="true"))
157
+						{
158
+						model.IsDelete=true;
159
+						}
160
+						else
161
+						{
162
+							model.IsDelete=false;
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
+
179
+		/// <summary>
180
+		/// 分页获取数据列表
181
+		/// </summary>
182
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
183
+		//{
184
+			//return dal.GetList(PageSize,PageIndex,strWhere);
185
+		//}
186
+
187
+		#endregion  Method
188
+
189
+        /// <summary>
190
+        /// 根据类型id获取类型名称
191
+        /// </summary>
192
+        /// <param name="TypeId"></param>
193
+        /// <returns></returns>
194
+        public string GetTypeNameById(int TypeId)
195
+        {
196
+            string TypeName=string.Empty;
197
+            XYFDRQ.Model.T_Bus_WorkType model_T_Bus_WorkType = GetModel(TypeId);
198
+            if(model_T_Bus_WorkType!=null)
199
+            {
200
+                TypeName = model_T_Bus_WorkType.TypeName;
201
+            }
202
+            return TypeName;
203
+        }
204
+
205
+          /// <summary>
206
+        /// 更新工单类型状态
207
+        /// </summary>
208
+        public bool UpdateInfoStateById(int typeId, int isDelete)
209
+        {
210
+            return dal.UpdateInfoStateById(typeId, isDelete);
211
+        }
212
+	}
213
+}
214
+

+ 307 - 0
BLL/T_CallRecord.cs

@@ -0,0 +1,307 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Model;
5
+namespace XYFDRQ.BLL
6
+{
7
+    /// <summary>
8
+    /// T_CallRecord
9
+    /// </summary>
10
+    public partial class T_CallRecord
11
+    {
12
+        private readonly XYFDRQ.DAL.T_CallRecord dal = new XYFDRQ.DAL.T_CallRecord();
13
+        public T_CallRecord()
14
+        { }
15
+        #region  Method
16
+        /// <summary>
17
+        /// 是否存在该记录
18
+        /// </summary>
19
+        public bool Exists(int F_RecordId)
20
+        {
21
+            return dal.Exists(F_RecordId);
22
+        }
23
+
24
+        /// <summary>
25
+        /// 增加一条数据
26
+        /// </summary>
27
+        public int Add(XYFDRQ.Model.T_CallRecord model)
28
+        {
29
+            return dal.Add(model);
30
+        }
31
+
32
+        /// <summary>
33
+        /// 更新一条数据
34
+        /// </summary>
35
+        public bool Update(XYFDRQ.Model.T_CallRecord model)
36
+        {
37
+            return dal.Update(model);
38
+        }
39
+
40
+        /// <summary>
41
+        /// 删除一条数据
42
+        /// </summary>
43
+        public bool Delete(int F_RecordId)
44
+        {
45
+
46
+            return dal.Delete(F_RecordId);
47
+        }
48
+        /// <summary>
49
+        /// 删除一条数据
50
+        /// </summary>
51
+        public bool DeleteList(string F_RecordIdlist)
52
+        {
53
+            return dal.DeleteList(F_RecordIdlist);
54
+        }
55
+
56
+        /// <summary>
57
+        /// 得到一个对象实体
58
+        /// </summary>
59
+        public XYFDRQ.Model.T_CallRecord GetModel(int F_RecordId)
60
+        {
61
+
62
+            return dal.GetModel(F_RecordId);
63
+        }
64
+        public string Getappid(string sql)
65
+        {
66
+            return dal.Getappid(sql);
67
+        }
68
+        /// <summary>
69
+        /// 得到一个对象实体
70
+        /// </summary>
71
+        public XYFDRQ.Model.T_CallRecord GetModel(string F_RecordNumber)
72
+        {
73
+
74
+            return dal.GetModel(F_RecordNumber);
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<XYFDRQ.Model.T_CallRecord> 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<XYFDRQ.Model.T_CallRecord> DataTableToList(DataTable dt)
103
+        {
104
+            List<XYFDRQ.Model.T_CallRecord> modelList = new List<XYFDRQ.Model.T_CallRecord>();
105
+            int rowsCount = dt.Rows.Count;
106
+            if (rowsCount > 0)
107
+            {
108
+                XYFDRQ.Model.T_CallRecord model;
109
+                for (int n = 0; n < rowsCount; n++)
110
+                {
111
+                    model = new XYFDRQ.Model.T_CallRecord();
112
+                    if (dt.Rows[n]["F_RecordId"] != null && dt.Rows[n]["F_RecordId"].ToString() != "")
113
+                    {
114
+                        model.F_RecordId = int.Parse(dt.Rows[n]["F_RecordId"].ToString());
115
+                    }
116
+                    if (dt.Rows[n]["F_RecordNumber"] != null && dt.Rows[n]["F_RecordNumber"].ToString() != "")
117
+                    {
118
+                        model.F_RecordNumber = dt.Rows[n]["F_RecordNumber"].ToString();
119
+                    }
120
+                    if (dt.Rows[n]["F_APPId"] != null && dt.Rows[n]["F_APPId"].ToString() != "")
121
+                    {
122
+                        model.F_APPId = dt.Rows[n]["F_APPId"].ToString();
123
+                    }
124
+                    if (dt.Rows[n]["F_CallerTelephone"] != null && dt.Rows[n]["F_CallerTelephone"].ToString() != "")
125
+                    {
126
+                        model.F_CallerTelephone = dt.Rows[n]["F_CallerTelephone"].ToString();
127
+                    }
128
+                    if (dt.Rows[n]["F_LocalTelephone"] != null && dt.Rows[n]["F_LocalTelephone"].ToString() != "")
129
+                    {
130
+                        model.F_LocalTelephone = dt.Rows[n]["F_LocalTelephone"].ToString();
131
+                    }
132
+                    if (dt.Rows[n]["F_Type"] != null && dt.Rows[n]["F_Type"].ToString() != "")
133
+                    {
134
+                        model.F_Type = dt.Rows[n]["F_Type"].ToString();
135
+                    }
136
+                    if (dt.Rows[n]["F_IVRStartTime"] != null && dt.Rows[n]["F_IVRStartTime"].ToString() != "")
137
+                    {
138
+                        model.F_IVRStartTime = DateTime.Parse(dt.Rows[n]["F_IVRStartTime"].ToString());
139
+                    }
140
+                    if (dt.Rows[n]["F_IVREndTime"] != null && dt.Rows[n]["F_IVREndTime"].ToString() != "")
141
+                    {
142
+                        model.F_IVREndTime = DateTime.Parse(dt.Rows[n]["F_IVREndTime"].ToString());
143
+                    }
144
+                    if (dt.Rows[n]["F_CallStartTime"] != null && dt.Rows[n]["F_CallStartTime"].ToString() != "")
145
+                    {
146
+                        model.F_CallStartTime = DateTime.Parse(dt.Rows[n]["F_CallStartTime"].ToString());
147
+                    }
148
+                    if (dt.Rows[n]["F_CallEndTime"] != null && dt.Rows[n]["F_CallEndTime"].ToString() != "")
149
+                    {
150
+                        model.F_CallEndTime = DateTime.Parse(dt.Rows[n]["F_CallEndTime"].ToString());
151
+                    }
152
+                    if (dt.Rows[n]["F_Times"] != null && dt.Rows[n]["F_Times"].ToString() != "")
153
+                    {
154
+                        model.F_Times = int.Parse(dt.Rows[n]["F_Times"].ToString());
155
+                    }
156
+                    if (dt.Rows[n]["F_Way"] != null && dt.Rows[n]["F_Way"].ToString() != "")
157
+                    {
158
+                        model.F_Way = dt.Rows[n]["F_Way"].ToString();
159
+                    }
160
+                    if (dt.Rows[n]["F_RecordFilePath"] != null && dt.Rows[n]["F_RecordFilePath"].ToString() != "")
161
+                    {
162
+                        model.F_RecordFilePath = dt.Rows[n]["F_RecordFilePath"].ToString();
163
+                    }
164
+                    if (dt.Rows[n]["F_UserID"] != null && dt.Rows[n]["F_UserID"].ToString() != "")
165
+                    {
166
+                        model.F_UserID = int.Parse(dt.Rows[n]["F_UserID"].ToString());
167
+                    }
168
+                    if (dt.Rows[n]["F_CallType"] != null && dt.Rows[n]["F_CallType"].ToString() != "")
169
+                    {
170
+                        model.F_CallType = dt.Rows[n]["F_CallType"].ToString();
171
+                    }
172
+                    if (dt.Rows[n]["F_CreateTime"] != null && dt.Rows[n]["F_CreateTime"].ToString() != "")
173
+                    {
174
+                        model.F_CreateTime = DateTime.Parse(dt.Rows[n]["F_CreateTime"].ToString());
175
+                    }
176
+                    if (dt.Rows[n]["F_Content"] != null && dt.Rows[n]["F_Content"].ToString() != "")
177
+                    {
178
+                        model.F_Content = dt.Rows[n]["F_Content"].ToString();
179
+                    }
180
+                    if (dt.Rows[n]["F_MemberId"] != null && dt.Rows[n]["F_MemberId"].ToString() != "")
181
+                    {
182
+                        model.F_MemberId = int.Parse(dt.Rows[n]["F_MemberId"].ToString());
183
+                    }
184
+                    if (dt.Rows[n]["F_MemberName"] != null && dt.Rows[n]["F_MemberName"].ToString() != "")
185
+                    {
186
+                        model.F_MemberName = dt.Rows[n]["F_MemberName"].ToString();
187
+                    }
188
+                    if (dt.Rows[n]["F_OrganizationName"] != null && dt.Rows[n]["F_OrganizationName"].ToString() != "")
189
+                    {
190
+                        model.F_OrganizationName = dt.Rows[n]["F_OrganizationName"].ToString();
191
+                    }
192
+                    if (dt.Rows[n]["F_HBState"] != null && dt.Rows[n]["F_HBState"].ToString() != "")
193
+                    {
194
+                        model.F_HBState = int.Parse(dt.Rows[n]["F_HBState"].ToString());
195
+                    }
196
+                    modelList.Add(model);
197
+                }
198
+            }
199
+            return modelList;
200
+        }
201
+
202
+        /// <summary>
203
+        /// 获得数据列表
204
+        /// </summary>
205
+        public DataSet GetAllList()
206
+        {
207
+            return GetList("");
208
+        }
209
+
210
+        /// <summary>
211
+        /// 分页获取数据列表
212
+        /// </summary>
213
+        public int GetRecordCount(string strWhere)
214
+        {
215
+            return dal.GetRecordCount(strWhere);
216
+        }
217
+        /// <summary>
218
+        /// 分页获取数据列表
219
+        /// </summary>
220
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
221
+        {
222
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
223
+        }
224
+        /// <summary>
225
+        /// 分页获取数据列表
226
+        /// </summary>
227
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
228
+        //{
229
+        //return dal.GetList(PageSize,PageIndex,strWhere);
230
+        //}
231
+
232
+        #endregion  Method
233
+
234
+        #region 更新来电弹屏电话记录信息
235
+
236
+        /// <summary>
237
+        /// 更新一条数据
238
+        /// </summary>
239
+        public bool UpdateCallTelRecord(XYFDRQ.Model.T_CallRecord model)
240
+        {
241
+            return dal.UpdateCallTelRecord(model);
242
+        }
243
+
244
+        #endregion
245
+
246
+        #region 更新来电接通电话记录信息
247
+
248
+        /// <summary>
249
+        /// 更新一条数据
250
+        /// </summary>
251
+        public bool UpdateCallInTelRecord(XYFDRQ.Model.T_CallRecord model)
252
+        {
253
+            return dal.UpdateCallInTelRecord(model);
254
+        }
255
+
256
+        #endregion
257
+
258
+        #region 更新来电挂断电话记录信息
259
+
260
+        /// <summary>
261
+        /// 更新一条数据
262
+        /// </summary>
263
+        public bool UpdateCallInHookTelRecord(XYFDRQ.Model.T_CallRecord model)
264
+        {
265
+            return dal.UpdateCallInHookTelRecord(model);
266
+        }
267
+
268
+        #endregion
269
+
270
+        #region 更新去电接通电话记录信息
271
+
272
+        /// <summary>
273
+        /// 更新一条数据
274
+        /// </summary>
275
+        public bool UpdateCallOutTelRecord(XYFDRQ.Model.T_CallRecord model)
276
+        {
277
+            return dal.UpdateCallOutTelRecord(model);
278
+        }
279
+
280
+        #endregion
281
+
282
+        #region 更新去电挂断电话记录信息
283
+
284
+        /// <summary>
285
+        /// 更新一条数据
286
+        /// </summary>
287
+        public bool UpdateCallOutHookTelRecord(XYFDRQ.Model.T_CallRecord model)
288
+        {
289
+            return dal.UpdateCallOutHookTelRecord(model);
290
+        }
291
+
292
+        #endregion
293
+
294
+        #region 领导汇报
295
+
296
+        /// <summary>
297
+        /// 更新一条数据
298
+        /// </summary>
299
+        public bool UpdateHBInfo(XYFDRQ.Model.T_CallRecord model)
300
+        {
301
+            return dal.UpdateHBInfo(model);
302
+        }
303
+
304
+        #endregion
305
+    }
306
+}
307
+

+ 161 - 0
BLL/T_CallRecordLink.cs

@@ -0,0 +1,161 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_CallRecordLink
11
+    /// </summary>
12
+    public partial class T_CallRecordLink
13
+    {
14
+        private readonly XYFDRQ.DAL.T_CallRecordLink dal = new XYFDRQ.DAL.T_CallRecordLink();
15
+        public T_CallRecordLink()
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(XYFDRQ.Model.T_CallRecordLink model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.Model.T_CallRecordLink 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 XYFDRQ.Model.T_CallRecordLink GetModel(int F_Id)
62
+        {
63
+
64
+            return dal.GetModel(F_Id);
65
+        }
66
+        public XYFDRQ.Model.T_CallRecordLink GetModelByF_RecordId(int F_RecordId)
67
+        {
68
+
69
+            return dal.GetModelByF_RecordId(F_RecordId);
70
+        }
71
+        /// <summary>
72
+        /// 获得数据列表
73
+        /// </summary>
74
+        public DataSet GetList(string strWhere)
75
+        {
76
+            return dal.GetList(strWhere);
77
+        }
78
+        /// <summary>
79
+        /// 获得前几行数据
80
+        /// </summary>
81
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
82
+        {
83
+            return dal.GetList(Top, strWhere, filedOrder);
84
+        }
85
+        /// <summary>
86
+        /// 获得数据列表
87
+        /// </summary>
88
+        public List<XYFDRQ.Model.T_CallRecordLink> GetModelList(string strWhere)
89
+        {
90
+            DataSet ds = dal.GetList(strWhere);
91
+            return DataTableToList(ds.Tables[0]);
92
+        }
93
+        /// <summary>
94
+        /// 获得数据列表
95
+        /// </summary>
96
+        public List<XYFDRQ.Model.T_CallRecordLink> DataTableToList(DataTable dt)
97
+        {
98
+            List<XYFDRQ.Model.T_CallRecordLink> modelList = new List<XYFDRQ.Model.T_CallRecordLink>();
99
+            int rowsCount = dt.Rows.Count;
100
+            if (rowsCount > 0)
101
+            {
102
+                XYFDRQ.Model.T_CallRecordLink model;
103
+                for (int n = 0; n < rowsCount; n++)
104
+                {
105
+                    model = new XYFDRQ.Model.T_CallRecordLink();
106
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
107
+                    {
108
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_RecordId"] != null && dt.Rows[n]["F_RecordId"].ToString() != "")
111
+                    {
112
+                        model.F_RecordId = int.Parse(dt.Rows[n]["F_RecordId"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["F_LinkTable"] != null && dt.Rows[n]["F_LinkTable"].ToString() != "")
115
+                    {
116
+                        model.F_LinkTable = dt.Rows[n]["F_LinkTable"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_LinkId"] != null && dt.Rows[n]["F_LinkId"].ToString() != "")
119
+                    {
120
+                        model.F_LinkId = dt.Rows[n]["F_LinkId"].ToString();
121
+                    }
122
+                    modelList.Add(model);
123
+                }
124
+            }
125
+            return modelList;
126
+        }
127
+
128
+        /// <summary>
129
+        /// 获得数据列表
130
+        /// </summary>
131
+        public DataSet GetAllList()
132
+        {
133
+            return GetList("");
134
+        }
135
+
136
+        /// <summary>
137
+        /// 分页获取数据列表
138
+        /// </summary>
139
+        public int GetRecordCount(string strWhere)
140
+        {
141
+            return dal.GetRecordCount(strWhere);
142
+        }
143
+        /// <summary>
144
+        /// 分页获取数据列表
145
+        /// </summary>
146
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
147
+        {
148
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
149
+        }
150
+        /// <summary>
151
+        /// 分页获取数据列表
152
+        /// </summary>
153
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
154
+        //{
155
+        //return dal.GetList(PageSize,PageIndex,strWhere);
156
+        //}
157
+
158
+        #endregion  Method
159
+    }
160
+}
161
+

+ 170 - 0
BLL/T_CallRecordLinkTemp.cs

@@ -0,0 +1,170 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_CallRecordLinkTemp
11
+    /// </summary>
12
+    public partial class T_CallRecordLinkTemp
13
+    {
14
+        private readonly XYFDRQ.DAL.T_CallRecordLinkTemp dal = new XYFDRQ.DAL.T_CallRecordLinkTemp();
15
+        public T_CallRecordLinkTemp()
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(XYFDRQ.Model.T_CallRecordLinkTemp model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.Model.T_CallRecordLinkTemp 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
+
51
+        /// <summary>
52
+        /// 删除一条数据
53
+        /// </summary>
54
+        public bool DeleteByTempId(Guid F_Id)
55
+        {
56
+
57
+            return dal.DeleteByTempId(F_Id);
58
+        }
59
+        /// <summary>
60
+        /// 删除一条数据
61
+        /// </summary>
62
+        public bool DeleteList(string F_Idlist)
63
+        {
64
+            return dal.DeleteList(F_Idlist);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 得到一个对象实体
69
+        /// </summary>
70
+        public XYFDRQ.Model.T_CallRecordLinkTemp GetModel(int F_Id)
71
+        {
72
+
73
+            return dal.GetModel(F_Id);
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<XYFDRQ.Model.T_CallRecordLinkTemp> 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<XYFDRQ.Model.T_CallRecordLinkTemp> DataTableToList(DataTable dt)
102
+        {
103
+            List<XYFDRQ.Model.T_CallRecordLinkTemp> modelList = new List<XYFDRQ.Model.T_CallRecordLinkTemp>();
104
+            int rowsCount = dt.Rows.Count;
105
+            if (rowsCount > 0)
106
+            {
107
+                XYFDRQ.Model.T_CallRecordLinkTemp model;
108
+                for (int n = 0; n < rowsCount; n++)
109
+                {
110
+                    model = new XYFDRQ.Model.T_CallRecordLinkTemp();
111
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
112
+                    {
113
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
114
+                    }
115
+                    if (dt.Rows[n]["F_RecordId"] != null && dt.Rows[n]["F_RecordId"].ToString() != "")
116
+                    {
117
+                        model.F_RecordId = int.Parse(dt.Rows[n]["F_RecordId"].ToString());
118
+                    }
119
+                    if (dt.Rows[n]["F_LinkTable"] != null && dt.Rows[n]["F_LinkTable"].ToString() != "")
120
+                    {
121
+                        model.F_LinkTable = dt.Rows[n]["F_LinkTable"].ToString();
122
+                    }
123
+                    if (dt.Rows[n]["F_LinkId"] != null && dt.Rows[n]["F_LinkId"].ToString() != "")
124
+                    {
125
+                        model.F_LinkId = dt.Rows[n]["F_LinkId"].ToString();
126
+                    }
127
+                    if (dt.Rows[n]["F_TempId"] != null && dt.Rows[n]["F_TempId"].ToString() != "")
128
+                    {
129
+                        model.F_TempId = new Guid(dt.Rows[n]["F_TempId"].ToString());
130
+                    }
131
+                    modelList.Add(model);
132
+                }
133
+            }
134
+            return modelList;
135
+        }
136
+
137
+        /// <summary>
138
+        /// 获得数据列表
139
+        /// </summary>
140
+        public DataSet GetAllList()
141
+        {
142
+            return GetList("");
143
+        }
144
+
145
+        /// <summary>
146
+        /// 分页获取数据列表
147
+        /// </summary>
148
+        public int GetRecordCount(string strWhere)
149
+        {
150
+            return dal.GetRecordCount(strWhere);
151
+        }
152
+        /// <summary>
153
+        /// 分页获取数据列表
154
+        /// </summary>
155
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
156
+        {
157
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
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
+

+ 206 - 0
BLL/T_Call_Blacklist.cs

@@ -0,0 +1,206 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Call_Blacklist
10
+	/// </summary>
11
+	public partial class T_Call_Blacklist
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Call_Blacklist dal=new XYFDRQ.DAL.T_Call_Blacklist();
14
+		public T_Call_Blacklist()
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_BlackId)
30
+		{
31
+			return dal.Exists(F_BlackId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Call_Blacklist model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Call_Blacklist model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_BlackId)
54
+		{
55
+			
56
+			return dal.Delete(F_BlackId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_BlackIdlist )
62
+		{
63
+			return dal.DeleteList(F_BlackIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Call_Blacklist GetModel(int F_BlackId)
70
+		{
71
+			
72
+			return dal.GetModel(F_BlackId);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Call_Blacklist GetModelByCache(int F_BlackId)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Call_BlacklistModel-" + F_BlackId;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(F_BlackId);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Call_Blacklist)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<XYFDRQ.Model.T_Call_Blacklist> 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<XYFDRQ.Model.T_Call_Blacklist> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Call_Blacklist> modelList = new List<XYFDRQ.Model.T_Call_Blacklist>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Call_Blacklist model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Call_Blacklist();
134
+					if(dt.Rows[n]["F_BlackId"]!=null && dt.Rows[n]["F_BlackId"].ToString()!="")
135
+					{
136
+						model.F_BlackId=int.Parse(dt.Rows[n]["F_BlackId"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_CallId"]!=null && dt.Rows[n]["F_CallId"].ToString()!="")
139
+					{
140
+					model.F_CallId=dt.Rows[n]["F_CallId"].ToString();
141
+					}
142
+					if(dt.Rows[n]["F_TelPhone"]!=null && dt.Rows[n]["F_TelPhone"].ToString()!="")
143
+					{
144
+					model.F_TelPhone=dt.Rows[n]["F_TelPhone"].ToString();
145
+					}
146
+					if(dt.Rows[n]["F_BlackType"]!=null && dt.Rows[n]["F_BlackType"].ToString()!="")
147
+					{
148
+						model.F_BlackType=int.Parse(dt.Rows[n]["F_BlackType"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_SetTime"]!=null && dt.Rows[n]["F_SetTime"].ToString()!="")
151
+					{
152
+						model.F_SetTime=DateTime.Parse(dt.Rows[n]["F_SetTime"].ToString());
153
+					}
154
+					if(dt.Rows[n]["F_RemoveTime"]!=null && dt.Rows[n]["F_RemoveTime"].ToString()!="")
155
+					{
156
+						model.F_RemoveTime=DateTime.Parse(dt.Rows[n]["F_RemoveTime"].ToString());
157
+					}
158
+					if(dt.Rows[n]["F_Describe"]!=null && dt.Rows[n]["F_Describe"].ToString()!="")
159
+					{
160
+					model.F_Describe=dt.Rows[n]["F_Describe"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_UserId"]!=null && dt.Rows[n]["F_UserId"].ToString()!="")
163
+					{
164
+						model.F_UserId=int.Parse(dt.Rows[n]["F_UserId"].ToString());
165
+					}
166
+					if(dt.Rows[n]["F_InterceptNum"]!=null && dt.Rows[n]["F_InterceptNum"].ToString()!="")
167
+					{
168
+						model.F_InterceptNum=int.Parse(dt.Rows[n]["F_InterceptNum"].ToString());
169
+					}
170
+					if(dt.Rows[n]["F_IsDelete"]!=null && dt.Rows[n]["F_IsDelete"].ToString()!="")
171
+					{
172
+						if((dt.Rows[n]["F_IsDelete"].ToString()=="1")||(dt.Rows[n]["F_IsDelete"].ToString().ToLower()=="true"))
173
+						{
174
+						model.F_IsDelete=true;
175
+						}
176
+						else
177
+						{
178
+							model.F_IsDelete=false;
179
+						}
180
+					}
181
+					modelList.Add(model);
182
+				}
183
+			}
184
+			return modelList;
185
+		}
186
+
187
+		/// <summary>
188
+		/// 获得数据列表
189
+		/// </summary>
190
+		public DataSet GetAllList()
191
+		{
192
+			return GetList("");
193
+		}
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
+

+ 408 - 0
BLL/T_Call_CallRecords.cs

@@ -0,0 +1,408 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+    /// <summary>
9
+    /// 通话记录表
10
+    /// </summary>
11
+    public partial class T_Call_CallRecords
12
+    {
13
+        private readonly XYFDRQ.DAL.T_Call_CallRecords dal = new XYFDRQ.DAL.T_Call_CallRecords();
14
+        public T_Call_CallRecords()
15
+        { }
16
+
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(string CallId)
22
+        {
23
+            return dal.Exists(CallId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public bool Add(XYFDRQ.Model.T_Call_CallRecords model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.Model.T_Call_CallRecords model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(string CallId)
46
+        {
47
+
48
+            return dal.Delete(CallId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string CallIdlist)
54
+        {
55
+            return dal.DeleteList(CallIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public XYFDRQ.Model.T_Call_CallRecords GetModel(string CallId)
62
+        {
63
+
64
+            return dal.GetModel(CallId);
65
+        }
66
+
67
+        ///// <summary>
68
+        ///// 得到一个对象实体,从缓存中
69
+        ///// </summary>
70
+        //public XYFDRQ.Model.T_Call_CallRecords GetModelByCache(string CallId)
71
+        //{
72
+
73
+        //    string CacheKey = "T_Call_CallRecordsModel-" + CallId;
74
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
75
+        //    if (objModel == null)
76
+        //    {
77
+        //        try
78
+        //        {
79
+        //            objModel = dal.GetModel(CallId);
80
+        //            if (objModel != null)
81
+        //            {
82
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
83
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
84
+        //            }
85
+        //        }
86
+        //        catch { }
87
+        //    }
88
+        //    return (XYFDRQ.Model.T_Call_CallRecords)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<XYFDRQ.Model.T_Call_CallRecords> 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<XYFDRQ.Model.T_Call_CallRecords> DataTableToList(DataTable dt)
117
+        {
118
+            List<XYFDRQ.Model.T_Call_CallRecords> modelList = new List<XYFDRQ.Model.T_Call_CallRecords>();
119
+            int rowsCount = dt.Rows.Count;
120
+            if (rowsCount > 0)
121
+            {
122
+                XYFDRQ.Model.T_Call_CallRecords model;
123
+                for (int n = 0; n < rowsCount; n++)
124
+                {
125
+                    model = new XYFDRQ.Model.T_Call_CallRecords();
126
+                    if (dt.Rows[n]["CallId"] != null && dt.Rows[n]["CallId"].ToString() != "")
127
+                    {
128
+                        model.CallId = dt.Rows[n]["CallId"].ToString();
129
+                    }
130
+                    if (dt.Rows[n]["CallNumber"] != null && dt.Rows[n]["CallNumber"].ToString() != "")
131
+                    {
132
+                        model.CallNumber = dt.Rows[n]["CallNumber"].ToString();
133
+                    }
134
+                    if (dt.Rows[n]["CusId"] != null && dt.Rows[n]["CusId"].ToString() != "")
135
+                    {
136
+                        model.CusId = dt.Rows[n]["CusId"].ToString();
137
+                    }
138
+                    if (dt.Rows[n]["CusCode"] != null && dt.Rows[n]["CusCode"].ToString() != "")
139
+                    {
140
+                        model.CusCode = dt.Rows[n]["CusCode"].ToString();
141
+                    }
142
+                    if (dt.Rows[n]["CallType"] != null && dt.Rows[n]["CallType"].ToString() != "")
143
+                    {
144
+                        model.CallType = int.Parse(dt.Rows[n]["CallType"].ToString());
145
+                    }
146
+                    if (dt.Rows[n]["CallState"] != null && dt.Rows[n]["CallState"].ToString() != "")
147
+                    {
148
+                        model.CallState = int.Parse(dt.Rows[n]["CallState"].ToString());
149
+                    }
150
+                    if (dt.Rows[n]["DealType"] != null && dt.Rows[n]["DealType"].ToString() != "")
151
+                    {
152
+                        model.DealType = int.Parse(dt.Rows[n]["DealType"].ToString());
153
+                    }
154
+                    if (dt.Rows[n]["BeginTime"] != null && dt.Rows[n]["BeginTime"].ToString() != "")
155
+                    {
156
+                        model.BeginTime = DateTime.Parse(dt.Rows[n]["BeginTime"].ToString());
157
+                    }
158
+                    if (dt.Rows[n]["IvrStartTime"] != null && dt.Rows[n]["IvrStartTime"].ToString() != "")
159
+                    {
160
+                        model.IvrStartTime = DateTime.Parse(dt.Rows[n]["IvrStartTime"].ToString());
161
+                    }
162
+                    if (dt.Rows[n]["IvrEndTime"] != null && dt.Rows[n]["IvrEndTime"].ToString() != "")
163
+                    {
164
+                        model.IvrEndTime = DateTime.Parse(dt.Rows[n]["IvrEndTime"].ToString());
165
+                    }
166
+                    if (dt.Rows[n]["RingStartTime"] != null && dt.Rows[n]["RingStartTime"].ToString() != "")
167
+                    {
168
+                        model.RingStartTime = DateTime.Parse(dt.Rows[n]["RingStartTime"].ToString());
169
+                    }
170
+                    if (dt.Rows[n]["RingEndTime"] != null && dt.Rows[n]["RingEndTime"].ToString() != "")
171
+                    {
172
+                        model.RingEndTime = DateTime.Parse(dt.Rows[n]["RingEndTime"].ToString());
173
+                    }
174
+                    if (dt.Rows[n]["TalkStartTime"] != null && dt.Rows[n]["TalkStartTime"].ToString() != "")
175
+                    {
176
+                        model.TalkStartTime = DateTime.Parse(dt.Rows[n]["TalkStartTime"].ToString());
177
+                    }
178
+                    if (dt.Rows[n]["TalkEndTime"] != null && dt.Rows[n]["TalkEndTime"].ToString() != "")
179
+                    {
180
+                        model.TalkEndTime = DateTime.Parse(dt.Rows[n]["TalkEndTime"].ToString());
181
+                    }
182
+                    if (dt.Rows[n]["EndTime"] != null && dt.Rows[n]["EndTime"].ToString() != "")
183
+                    {
184
+                        model.EndTime = DateTime.Parse(dt.Rows[n]["EndTime"].ToString());
185
+                    }
186
+                    if (dt.Rows[n]["LongTime"] != null && dt.Rows[n]["LongTime"].ToString() != "")
187
+                    {
188
+                        model.LongTime = int.Parse(dt.Rows[n]["LongTime"].ToString());
189
+                    }
190
+                    if (dt.Rows[n]["IvrLongTime"] != null && dt.Rows[n]["IvrLongTime"].ToString() != "")
191
+                    {
192
+                        model.IvrLongTime = int.Parse(dt.Rows[n]["IvrLongTime"].ToString());
193
+                    }
194
+                    if (dt.Rows[n]["RingLongTime"] != null && dt.Rows[n]["RingLongTime"].ToString() != "")
195
+                    {
196
+                        model.RingLongTime = int.Parse(dt.Rows[n]["RingLongTime"].ToString());
197
+                    }
198
+                    if (dt.Rows[n]["TalkLongTime"] != null && dt.Rows[n]["TalkLongTime"].ToString() != "")
199
+                    {
200
+                        model.TalkLongTime = int.Parse(dt.Rows[n]["TalkLongTime"].ToString());
201
+                    }
202
+                    if (dt.Rows[n]["UserId"] != null && dt.Rows[n]["UserId"].ToString() != "")
203
+                    {
204
+                        model.UserId = int.Parse(dt.Rows[n]["UserId"].ToString());
205
+                    }
206
+                    if (dt.Rows[n]["UserCode"] != null && dt.Rows[n]["UserCode"].ToString() != "")
207
+                    {
208
+                        model.UserCode = dt.Rows[n]["UserCode"].ToString();
209
+                    }
210
+                    if (dt.Rows[n]["UserName"] != null && dt.Rows[n]["UserName"].ToString() != "")
211
+                    {
212
+                        model.UserName = dt.Rows[n]["UserName"].ToString();
213
+                    }
214
+                    if (dt.Rows[n]["ExtNumber"] != null && dt.Rows[n]["ExtNumber"].ToString() != "")
215
+                    {
216
+                        model.ExtNumber = dt.Rows[n]["ExtNumber"].ToString();
217
+                    }
218
+                    if (dt.Rows[n]["FilePath"] != null && dt.Rows[n]["FilePath"].ToString() != "")
219
+                    {
220
+                        model.FilePath = dt.Rows[n]["FilePath"].ToString();
221
+                    }
222
+                    if (dt.Rows[n]["IsExitWorkOrder"] != null && dt.Rows[n]["IsExitWorkOrder"].ToString() != "")
223
+                    {
224
+                        if ((dt.Rows[n]["IsExitWorkOrder"].ToString() == "1") || (dt.Rows[n]["IsExitWorkOrder"].ToString().ToLower() == "true"))
225
+                        {
226
+                            model.IsExitWorkOrder = true;
227
+                        }
228
+                        else
229
+                        {
230
+                            model.IsExitWorkOrder = false;
231
+                        }
232
+                    }
233
+                    if (dt.Rows[n]["IsDeal"] != null && dt.Rows[n]["IsDeal"].ToString() != "")
234
+                    {
235
+                        model.IsDeal = int.Parse(dt.Rows[n]["IsDeal"].ToString());
236
+                    }
237
+                    if (dt.Rows[n]["OperateType"] != null && dt.Rows[n]["OperateType"].ToString() != "")
238
+                    {
239
+                        model.OperateType = int.Parse(dt.Rows[n]["OperateType"].ToString());
240
+                    }
241
+                    if (dt.Rows[n]["OperateObject"] != null && dt.Rows[n]["OperateObject"].ToString() != "")
242
+                    {
243
+                        model.OperateObject = dt.Rows[n]["OperateObject"].ToString();
244
+                    }
245
+                    if (dt.Rows[n]["OperateTime"] != null && dt.Rows[n]["OperateTime"].ToString() != "")
246
+                    {
247
+                        model.OperateTime = DateTime.Parse(dt.Rows[n]["OperateTime"].ToString());
248
+                    }
249
+                    if (dt.Rows[n]["Remark"] != null && dt.Rows[n]["Remark"].ToString() != "")
250
+                    {
251
+                        model.Remark = dt.Rows[n]["Remark"].ToString();
252
+                    }
253
+                    if (dt.Rows[n]["MYD"] != null && dt.Rows[n]["MYD"].ToString() != "")
254
+                    {
255
+                        model.MYD = int.Parse(dt.Rows[n]["MYD"].ToString());
256
+                    }
257
+                    if (dt.Rows[n]["BusinessType"] != null && dt.Rows[n]["BusinessType"].ToString() != "")
258
+                    {
259
+                        model.BusinessType = int.Parse(dt.Rows[n]["BusinessType"].ToString());
260
+                    }
261
+                    modelList.Add(model);
262
+                }
263
+            }
264
+            return modelList;
265
+        }
266
+
267
+        /// <summary>
268
+        /// 获得数据列表
269
+        /// </summary>
270
+        public DataSet GetAllList()
271
+        {
272
+            return GetList("");
273
+        }
274
+
275
+        /// <summary>
276
+        /// 分页获取数据列表
277
+        /// </summary>
278
+        public int GetRecordCount(string strWhere)
279
+        {
280
+            return dal.GetRecordCount(strWhere);
281
+        }
282
+        /// <summary>
283
+        /// 分页获取数据列表
284
+        /// </summary>
285
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
286
+        {
287
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
288
+        }
289
+        /// <summary>
290
+        /// 分页获取数据列表
291
+        /// </summary>
292
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
293
+        //{
294
+        //return dal.GetList(PageSize,PageIndex,strWhere);
295
+        //}
296
+
297
+        #endregion  Method
298
+
299
+        #region 根据电话号码获取来电记录id
300
+        public string GetLastCallRecordIdByPhone(string F_CallTelPhone)
301
+        {
302
+            return dal.GetLastCallRecordIdByPhone(F_CallTelPhone);
303
+        }
304
+        #endregion
305
+
306
+        #region 更新来电振铃电话记录信息
307
+
308
+        /// <summary>
309
+        /// 更新一条数据
310
+        /// </summary>
311
+        public bool UpdateCallInRingTelRecord(XYFDRQ.Model.T_Call_CallRecords model)
312
+        {
313
+            return dal.UpdateCallInRingTelRecord(model);
314
+        }
315
+
316
+        #endregion
317
+
318
+        #region 更新来电接通电话记录信息
319
+
320
+        /// <summary>
321
+        /// 更新一条数据
322
+        /// </summary>
323
+        public bool UpdateCallInAnswerTelRecord(XYFDRQ.Model.T_Call_CallRecords model)
324
+        {
325
+            return dal.UpdateCallInAnswerTelRecord(model);
326
+        }
327
+
328
+        #endregion
329
+
330
+        #region 更新来电挂断电话记录信息
331
+
332
+        /// <summary>
333
+        /// 更新一条数据
334
+        /// </summary>
335
+        public bool UpdateCallInHookTelRecord(string callId,string p_AppId)
336
+        {
337
+            return dal.UpdateCallInHookTelRecord(callId,p_AppId);
338
+        }
339
+
340
+        #endregion
341
+
342
+
343
+
344
+        #region 更新去电接通电话记录信息
345
+
346
+        /// <summary>
347
+        /// 更新一条数据
348
+        /// </summary>
349
+        public bool UpdateCallOutAnswerTelRecord(XYFDRQ.Model.T_Call_CallRecords model)
350
+        {
351
+            return dal.UpdateCallOutAnswerTelRecord(model);
352
+        }
353
+
354
+        #endregion
355
+
356
+        #region 更新去电挂断电话记录信息
357
+
358
+        /// <summary>
359
+        /// 更新一条数据
360
+        /// </summary>
361
+        public bool UpdateCallOutHookTelRecord(XYFDRQ.Model.T_Call_CallRecords model)
362
+        {
363
+            return dal.UpdateCallOutHookTelRecord(model);
364
+        }
365
+
366
+        #endregion
367
+
368
+        #region 领导汇报
369
+
370
+        /// <summary>
371
+        /// 更新一条数据
372
+        /// </summary>
373
+        public bool UpdateHBInfo(XYFDRQ.Model.T_Call_CallRecords model)
374
+        {
375
+            return dal.UpdateHBInfo(model);
376
+        }
377
+
378
+        #endregion
379
+
380
+        #region 更新电话记录业务处理信息
381
+
382
+        /// <summary>
383
+        /// 更新电话记录业务处理信息
384
+        /// </summary>
385
+        /// <param name="CallId">呼叫编号</param>
386
+        /// <param name="F_IsDeal">是否处理0未处理1已处理2注销</param>
387
+        /// <param name="F_IsExitWorkOrder">是否录入工单</param>
388
+        /// <returns></returns>
389
+        public bool UpdateCallBusinessInfo(string CallId, int F_IsDeal, bool F_IsExitWorkOrder)
390
+        {
391
+            return dal.UpdateCallBusinessInfo(CallId, F_IsDeal, F_IsExitWorkOrder);
392
+        }
393
+        #endregion
394
+
395
+        #region 根据CallId获取语音地址
396
+        /// <summary>
397
+        /// 根据CallId获取语音地址
398
+        /// </summary>
399
+        /// <param name="CallId"></param>
400
+        /// <returns></returns>
401
+        public string GetFilePathByCallId(string CallId)
402
+        {
403
+            return dal.GetFilePathByCallId(CallId);
404
+        }
405
+
406
+        #endregion
407
+    }
408
+}

+ 233 - 0
BLL/T_Call_LeaveRecord.cs

@@ -0,0 +1,233 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 留言表
10
+	/// </summary>
11
+	public partial class T_Call_LeaveRecord
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Call_LeaveRecord dal=new XYFDRQ.DAL.T_Call_LeaveRecord();
14
+		public T_Call_LeaveRecord()
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(XYFDRQ.Model.T_Call_LeaveRecord model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.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 XYFDRQ.Model.T_Call_LeaveRecord GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Call_LeaveRecord GetModelByCache(int F_Id)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Call_LeaveRecordModel-" + F_Id;
82
+        //    object objModel = XYFDRQ.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 = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Call_LeaveRecord)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<XYFDRQ.Model.T_Call_LeaveRecord> 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<XYFDRQ.Model.T_Call_LeaveRecord> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Call_LeaveRecord> modelList = new List<XYFDRQ.Model.T_Call_LeaveRecord>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Call_LeaveRecord model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Call_LeaveRecord();
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_CallId"]!=null && dt.Rows[n]["F_CallId"].ToString()!="")
139
+					{
140
+					model.F_CallId=dt.Rows[n]["F_CallId"].ToString();
141
+					}
142
+					if(dt.Rows[n]["F_Phone"]!=null && dt.Rows[n]["F_Phone"].ToString()!="")
143
+					{
144
+					model.F_Phone=dt.Rows[n]["F_Phone"].ToString();
145
+					}
146
+					if(dt.Rows[n]["F_LeaveTime"]!=null && dt.Rows[n]["F_LeaveTime"].ToString()!="")
147
+					{
148
+						model.F_LeaveTime=DateTime.Parse(dt.Rows[n]["F_LeaveTime"].ToString());
149
+					}
150
+					if(dt.Rows[n]["F_Status"]!=null && dt.Rows[n]["F_Status"].ToString()!="")
151
+					{
152
+						model.F_Status=int.Parse(dt.Rows[n]["F_Status"].ToString());
153
+					}
154
+					if(dt.Rows[n]["F_UserId"]!=null && dt.Rows[n]["F_UserId"].ToString()!="")
155
+					{
156
+						model.F_UserId=int.Parse(dt.Rows[n]["F_UserId"].ToString());
157
+					}
158
+					if(dt.Rows[n]["F_UserCode"]!=null && dt.Rows[n]["F_UserCode"].ToString()!="")
159
+					{
160
+					model.F_UserCode=dt.Rows[n]["F_UserCode"].ToString();
161
+					}
162
+					if(dt.Rows[n]["F_UserName"]!=null && dt.Rows[n]["F_UserName"].ToString()!="")
163
+					{
164
+					model.F_UserName=dt.Rows[n]["F_UserName"].ToString();
165
+					}
166
+					if(dt.Rows[n]["F_DealTime"]!=null && dt.Rows[n]["F_DealTime"].ToString()!="")
167
+					{
168
+						model.F_DealTime=DateTime.Parse(dt.Rows[n]["F_DealTime"].ToString());
169
+					}
170
+					if(dt.Rows[n]["F_DealContent"]!=null && dt.Rows[n]["F_DealContent"].ToString()!="")
171
+					{
172
+					model.F_DealContent=dt.Rows[n]["F_DealContent"].ToString();
173
+					}
174
+					if(dt.Rows[n]["F_Remark"]!=null && dt.Rows[n]["F_Remark"].ToString()!="")
175
+					{
176
+					model.F_Remark=dt.Rows[n]["F_Remark"].ToString();
177
+					}
178
+					if(dt.Rows[n]["F_CallAppId"]!=null && dt.Rows[n]["F_CallAppId"].ToString()!="")
179
+					{
180
+					model.F_CallAppId=dt.Rows[n]["F_CallAppId"].ToString();
181
+					}
182
+					if(dt.Rows[n]["F_RecFileUrl"]!=null && dt.Rows[n]["F_RecFileUrl"].ToString()!="")
183
+					{
184
+					model.F_RecFileUrl=dt.Rows[n]["F_RecFileUrl"].ToString();
185
+					}
186
+					modelList.Add(model);
187
+				}
188
+			}
189
+			return modelList;
190
+		}
191
+
192
+		/// <summary>
193
+		/// 获得数据列表
194
+		/// </summary>
195
+		public DataSet GetAllList()
196
+		{
197
+			return GetList("");
198
+		}
199
+
200
+		/// <summary>
201
+		/// 分页获取数据列表
202
+		/// </summary>
203
+		public int GetRecordCount(string strWhere)
204
+		{
205
+			return dal.GetRecordCount(strWhere);
206
+		}
207
+		/// <summary>
208
+		/// 分页获取数据列表
209
+		/// </summary>
210
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
211
+		{
212
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
213
+		}
214
+		/// <summary>
215
+		/// 分页获取数据列表
216
+		/// </summary>
217
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
218
+		//{
219
+			//return dal.GetList(PageSize,PageIndex,strWhere);
220
+		//}
221
+
222
+		#endregion  Method
223
+
224
+        /// <summary>
225
+        /// 根据callid修改状态
226
+        /// </summary>
227
+        public bool UpdateStateByCallId(XYFDRQ.Model.T_Call_LeaveRecord model)
228
+        {
229
+            return dal.UpdateStateByCallId(model);
230
+        }
231
+	}
232
+}
233
+

+ 182 - 0
BLL/T_Cus_ConnPhone.cs

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

+ 159 - 0
BLL/T_DictionaryBase.cs

@@ -0,0 +1,159 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Model;
5
+namespace XYFDRQ.BLL
6
+{
7
+    /// <summary>
8
+    /// T_Sys_DictionaryBase
9
+    /// </summary>
10
+    public partial class T_Sys_DictionaryBase
11
+    {
12
+        private readonly XYFDRQ.DAL.T_Sys_DictionaryBase dal = new XYFDRQ.DAL.T_Sys_DictionaryBase();
13
+        public T_Sys_DictionaryBase()
14
+        { }
15
+        #region  Method
16
+        /// <summary>
17
+        /// 是否存在该记录
18
+        /// </summary>
19
+        public bool Exists(string F_DictionaryFlag)
20
+        {
21
+            return dal.Exists(F_DictionaryFlag);
22
+        }
23
+
24
+        /// <summary>
25
+        /// 增加一条数据
26
+        /// </summary>
27
+        public bool Add(XYFDRQ.Model.T_Sys_DictionaryBase model)
28
+        {
29
+            return dal.Add(model);
30
+        }
31
+
32
+        /// <summary>
33
+        /// 更新一条数据
34
+        /// </summary>
35
+        public bool Update(XYFDRQ.Model.T_Sys_DictionaryBase model)
36
+        {
37
+            return dal.Update(model);
38
+        }
39
+
40
+        /// <summary>
41
+        /// 删除一条数据
42
+        /// </summary>
43
+        public bool Delete(string F_DictionaryFlag)
44
+        {
45
+
46
+            return dal.Delete(F_DictionaryFlag);
47
+        }
48
+        /// <summary>
49
+        /// 删除一条数据
50
+        /// </summary>
51
+        public bool DeleteList(string F_DictionaryFlaglist)
52
+        {
53
+            return dal.DeleteList(F_DictionaryFlaglist);
54
+        }
55
+
56
+        /// <summary>
57
+        /// 得到一个对象实体
58
+        /// </summary>
59
+        public XYFDRQ.Model.T_Sys_DictionaryBase GetModel(string F_DictionaryFlag)
60
+        {
61
+
62
+            return dal.GetModel(F_DictionaryFlag);
63
+        }
64
+
65
+        /// <summary>
66
+        /// 获得数据列表
67
+        /// </summary>
68
+        public DataSet GetList(string strWhere)
69
+        {
70
+            return dal.GetList(strWhere);
71
+        }
72
+        /// <summary>
73
+        /// 获得前几行数据
74
+        /// </summary>
75
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
76
+        {
77
+            return dal.GetList(Top, strWhere, filedOrder);
78
+        }
79
+        /// <summary>
80
+        /// 获得数据列表
81
+        /// </summary>
82
+        public List<XYFDRQ.Model.T_Sys_DictionaryBase> GetModelList(string strWhere)
83
+        {
84
+            DataSet ds = dal.GetList(strWhere);
85
+            return DataTableToList(ds.Tables[0]);
86
+        }
87
+        /// <summary>
88
+        /// 获得数据列表
89
+        /// </summary>
90
+        public List<XYFDRQ.Model.T_Sys_DictionaryBase> DataTableToList(DataTable dt)
91
+        {
92
+            List<XYFDRQ.Model.T_Sys_DictionaryBase> modelList = new List<XYFDRQ.Model.T_Sys_DictionaryBase>();
93
+            int rowsCount = dt.Rows.Count;
94
+            if (rowsCount > 0)
95
+            {
96
+                XYFDRQ.Model.T_Sys_DictionaryBase model;
97
+                for (int n = 0; n < rowsCount; n++)
98
+                {
99
+                    model = new XYFDRQ.Model.T_Sys_DictionaryBase();
100
+                    if (dt.Rows[n]["F_DictionaryFlag"] != null && dt.Rows[n]["F_DictionaryFlag"].ToString() != "")
101
+                    {
102
+                        model.F_DictionaryFlag = dt.Rows[n]["F_DictionaryFlag"].ToString();
103
+                    }
104
+                    if (dt.Rows[n]["F_DictionaryName"] != null && dt.Rows[n]["F_DictionaryName"].ToString() != "")
105
+                    {
106
+                        model.F_DictionaryName = dt.Rows[n]["F_DictionaryName"].ToString();
107
+                    }
108
+                    if (dt.Rows[n]["F_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
109
+                    {
110
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
111
+                    }
112
+                    if (dt.Rows[n]["F_Describe"] != null && dt.Rows[n]["F_Describe"].ToString() != "")
113
+                    {
114
+                        model.F_Describe = dt.Rows[n]["F_Describe"].ToString();
115
+                    }
116
+                    if (dt.Rows[n]["F_State"] != null && dt.Rows[n]["F_State"].ToString() != "")
117
+                    {
118
+                        model.F_State = dt.Rows[n]["F_State"].ToString();
119
+                    }
120
+                    modelList.Add(model);
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  Method
157
+    }
158
+}
159
+

+ 191 - 0
BLL/T_DictionaryValue.cs

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

+ 179 - 0
BLL/T_Fax_RecvFax.cs

@@ -0,0 +1,179 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Fax_RecvFax
10
+	/// </summary>
11
+	public partial class T_Fax_RecvFax
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Fax_RecvFax dal=new XYFDRQ.DAL.T_Fax_RecvFax();
14
+		public T_Fax_RecvFax()
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 FaxID)
30
+		{
31
+			return dal.Exists(FaxID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Fax_RecvFax model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Fax_RecvFax model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int FaxID)
54
+		{
55
+			
56
+			return dal.Delete(FaxID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string FaxIDlist )
62
+		{
63
+			return dal.DeleteList(FaxIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Fax_RecvFax GetModel(int FaxID)
70
+		{
71
+			
72
+			return dal.GetModel(FaxID);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Fax_RecvFax GetModelByCache(int FaxID)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Fax_RecvFaxModel-" + FaxID;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(FaxID);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Fax_RecvFax)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<XYFDRQ.Model.T_Fax_RecvFax> 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<XYFDRQ.Model.T_Fax_RecvFax> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Fax_RecvFax> modelList = new List<XYFDRQ.Model.T_Fax_RecvFax>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Fax_RecvFax model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = dal.DataRowToModel(dt.Rows[n]);
134
+					if (model != null)
135
+					{
136
+						modelList.Add(model);
137
+				}
138
+				}
139
+			}
140
+			return modelList;
141
+		}
142
+
143
+		/// <summary>
144
+		/// 获得数据列表
145
+		/// </summary>
146
+		public DataSet GetAllList()
147
+		{
148
+			return GetList("");
149
+		}
150
+
151
+		/// <summary>
152
+		/// 分页获取数据列表
153
+		/// </summary>
154
+		public int GetRecordCount(string strWhere)
155
+		{
156
+			return dal.GetRecordCount(strWhere);
157
+		}
158
+		/// <summary>
159
+		/// 分页获取数据列表
160
+		/// </summary>
161
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
162
+		{
163
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
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  BasicMethod
174
+		#region  ExtensionMethod
175
+
176
+		#endregion  ExtensionMethod
177
+	}
178
+}
179
+

+ 179 - 0
BLL/T_Fax_SendFaxTask.cs

@@ -0,0 +1,179 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Fax_SendFaxTask
10
+	/// </summary>
11
+	public partial class T_Fax_SendFaxTask
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Fax_SendFaxTask dal=new XYFDRQ.DAL.T_Fax_SendFaxTask();
14
+		public T_Fax_SendFaxTask()
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 FaxID)
30
+		{
31
+			return dal.Exists(FaxID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Fax_SendFaxTask model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Fax_SendFaxTask model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int FaxID)
54
+		{
55
+			
56
+			return dal.Delete(FaxID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string FaxIDlist )
62
+		{
63
+			return dal.DeleteList(FaxIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Fax_SendFaxTask GetModel(int FaxID)
70
+		{
71
+			
72
+			return dal.GetModel(FaxID);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Fax_SendFaxTask GetModelByCache(int FaxID)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Fax_SendFaxTaskModel-" + FaxID;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(FaxID);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Fax_SendFaxTask)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<XYFDRQ.Model.T_Fax_SendFaxTask> 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<XYFDRQ.Model.T_Fax_SendFaxTask> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Fax_SendFaxTask> modelList = new List<XYFDRQ.Model.T_Fax_SendFaxTask>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Fax_SendFaxTask model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = dal.DataRowToModel(dt.Rows[n]);
134
+					if (model != null)
135
+					{
136
+						modelList.Add(model);
137
+				}
138
+				}
139
+			}
140
+			return modelList;
141
+		}
142
+
143
+		/// <summary>
144
+		/// 获得数据列表
145
+		/// </summary>
146
+		public DataSet GetAllList()
147
+		{
148
+			return GetList("");
149
+		}
150
+
151
+		/// <summary>
152
+		/// 分页获取数据列表
153
+		/// </summary>
154
+		public int GetRecordCount(string strWhere)
155
+		{
156
+			return dal.GetRecordCount(strWhere);
157
+		}
158
+		/// <summary>
159
+		/// 分页获取数据列表
160
+		/// </summary>
161
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
162
+		{
163
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
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  BasicMethod
174
+		#region  ExtensionMethod
175
+
176
+		#endregion  ExtensionMethod
177
+	}
178
+}
179
+

+ 179 - 0
BLL/T_Fax_SentFax.cs

@@ -0,0 +1,179 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Fax_SentFax
10
+	/// </summary>
11
+	public partial class T_Fax_SentFax
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Fax_SentFax dal=new XYFDRQ.DAL.T_Fax_SentFax();
14
+		public T_Fax_SentFax()
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 FaxID)
30
+		{
31
+			return dal.Exists(FaxID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(XYFDRQ.Model.T_Fax_SentFax model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Fax_SentFax model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int FaxID)
54
+		{
55
+			
56
+			return dal.Delete(FaxID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string FaxIDlist )
62
+		{
63
+			return dal.DeleteList(FaxIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Fax_SentFax GetModel(int FaxID)
70
+		{
71
+			
72
+			return dal.GetModel(FaxID);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Fax_SentFax GetModelByCache(int FaxID)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Fax_SentFaxModel-" + FaxID;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(FaxID);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Fax_SentFax)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<XYFDRQ.Model.T_Fax_SentFax> 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<XYFDRQ.Model.T_Fax_SentFax> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Fax_SentFax> modelList = new List<XYFDRQ.Model.T_Fax_SentFax>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Fax_SentFax model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = dal.DataRowToModel(dt.Rows[n]);
134
+					if (model != null)
135
+					{
136
+						modelList.Add(model);
137
+				}
138
+				}
139
+			}
140
+			return modelList;
141
+		}
142
+
143
+		/// <summary>
144
+		/// 获得数据列表
145
+		/// </summary>
146
+		public DataSet GetAllList()
147
+		{
148
+			return GetList("");
149
+		}
150
+
151
+		/// <summary>
152
+		/// 分页获取数据列表
153
+		/// </summary>
154
+		public int GetRecordCount(string strWhere)
155
+		{
156
+			return dal.GetRecordCount(strWhere);
157
+		}
158
+		/// <summary>
159
+		/// 分页获取数据列表
160
+		/// </summary>
161
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
162
+		{
163
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
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  BasicMethod
174
+		#region  ExtensionMethod
175
+
176
+		#endregion  ExtensionMethod
177
+	}
178
+}
179
+

+ 174 - 0
BLL/T_FunctionsMenu.cs

@@ -0,0 +1,174 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_FunctionsMenu
10
+	/// </summary>
11
+	public partial class T_FunctionsMenu
12
+	{
13
+		private readonly XYFDRQ.DAL.T_FunctionsMenu dal=new XYFDRQ.DAL.T_FunctionsMenu();
14
+		public T_FunctionsMenu()
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_FunctionsMenuId)
30
+		{
31
+			return dal.Exists(F_FunctionsMenuId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(XYFDRQ.Model.T_FunctionsMenu model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_FunctionsMenu model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_FunctionsMenuId)
54
+		{
55
+			
56
+			return dal.Delete(F_FunctionsMenuId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_FunctionsMenuIdlist )
62
+		{
63
+			return dal.DeleteList(F_FunctionsMenuIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_FunctionsMenu GetModel(int F_FunctionsMenuId)
70
+		{
71
+			
72
+			return dal.GetModel(F_FunctionsMenuId);
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<XYFDRQ.Model.T_FunctionsMenu> 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<XYFDRQ.Model.T_FunctionsMenu> DataTableToList(DataTable dt)
102
+		{
103
+			List<XYFDRQ.Model.T_FunctionsMenu> modelList = new List<XYFDRQ.Model.T_FunctionsMenu>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+				XYFDRQ.Model.T_FunctionsMenu model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+					model = new XYFDRQ.Model.T_FunctionsMenu();
111
+					if(dt.Rows[n]["F_FunctionsMenuId"]!=null && dt.Rows[n]["F_FunctionsMenuId"].ToString()!="")
112
+					{
113
+						model.F_FunctionsMenuId=int.Parse(dt.Rows[n]["F_FunctionsMenuId"].ToString());
114
+					}
115
+					if(dt.Rows[n]["F_Path"]!=null && dt.Rows[n]["F_Path"].ToString()!="")
116
+					{
117
+					model.F_Path=dt.Rows[n]["F_Path"].ToString();
118
+					}
119
+					if(dt.Rows[n]["F_ParentId"]!=null && dt.Rows[n]["F_ParentId"].ToString()!="")
120
+					{
121
+						model.F_ParentId=int.Parse(dt.Rows[n]["F_ParentId"].ToString());
122
+					}
123
+					if(dt.Rows[n]["F_Sp_Order"]!=null && dt.Rows[n]["F_Sp_Order"].ToString()!="")
124
+					{
125
+					model.F_Sp_Order=dt.Rows[n]["F_Sp_Order"].ToString();
126
+					}
127
+					if(dt.Rows[n]["F_FunctionDescribe"]!=null && dt.Rows[n]["F_FunctionDescribe"].ToString()!="")
128
+					{
129
+					model.F_FunctionDescribe=dt.Rows[n]["F_FunctionDescribe"].ToString();
130
+					}
131
+					if(dt.Rows[n]["F_Status"]!=null && dt.Rows[n]["F_Status"].ToString()!="")
132
+					{
133
+					model.F_Status=dt.Rows[n]["F_Status"].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
+

+ 157 - 0
BLL/T_Knowledge.cs

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

+ 161 - 0
BLL/T_KnowledgeClass.cs

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

+ 165 - 0
BLL/T_Organization.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 XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Organization
11
+    /// </summary>
12
+    public partial class T_Organization
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Organization dal = new XYFDRQ.DAL.T_Organization();
15
+        public T_Organization()
16
+        { }
17
+        #region  Method
18
+        /// <summary>
19
+        /// 是否存在该记录
20
+        /// </summary>
21
+        public bool Exists(int F_OrganizationId)
22
+        {
23
+            return dal.Exists(F_OrganizationId);
24
+        }
25
+
26
+        /// <summary>
27
+        /// 增加一条数据
28
+        /// </summary>
29
+        public int Add(XYFDRQ.Model.T_Organization model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.Model.T_Organization model)
38
+        {
39
+            return dal.Update(model);
40
+        }
41
+
42
+        /// <summary>
43
+        /// 删除一条数据
44
+        /// </summary>
45
+        public bool Delete(int F_OrganizationId)
46
+        {
47
+
48
+            return dal.Delete(F_OrganizationId);
49
+        }
50
+        /// <summary>
51
+        /// 删除一条数据
52
+        /// </summary>
53
+        public bool DeleteList(string F_OrganizationIdlist)
54
+        {
55
+            return dal.DeleteList(F_OrganizationIdlist);
56
+        }
57
+
58
+        /// <summary>
59
+        /// 得到一个对象实体
60
+        /// </summary>
61
+        public XYFDRQ.Model.T_Organization GetModel(int F_OrganizationId)
62
+        {
63
+
64
+            return dal.GetModel(F_OrganizationId);
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<XYFDRQ.Model.T_Organization> 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<XYFDRQ.Model.T_Organization> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Organization> modelList = new List<XYFDRQ.Model.T_Organization>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Organization model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Organization();
102
+                    if (dt.Rows[n]["F_OrganizationId"] != null && dt.Rows[n]["F_OrganizationId"].ToString() != "")
103
+                    {
104
+                        model.F_OrganizationId = int.Parse(dt.Rows[n]["F_OrganizationId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_Code"] != null && dt.Rows[n]["F_Code"].ToString() != "")
107
+                    {
108
+                        model.F_Code = dt.Rows[n]["F_Code"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
111
+                    {
112
+                        model.F_Name = dt.Rows[n]["F_Name"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_Telphone"] != null && dt.Rows[n]["F_Telphone"].ToString() != "")
115
+                    {
116
+                        model.F_Telphone = dt.Rows[n]["F_Telphone"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_Address"] != null && dt.Rows[n]["F_Address"].ToString() != "")
119
+                    {
120
+                        model.F_Address = dt.Rows[n]["F_Address"].ToString();
121
+                    }
122
+                    if (dt.Rows[n]["F_Type"] != null && dt.Rows[n]["F_Type"].ToString() != "")
123
+                    {
124
+                        model.F_Type = dt.Rows[n]["F_Type"].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_ParentId"] != null && dt.Rows[n]["F_ParentId"].ToString() != "")
131
+                    {
132
+                        model.F_ParentId = int.Parse(dt.Rows[n]["F_ParentId"].ToString());
133
+                    }
134
+                    modelList.Add(model);
135
+                }
136
+            }
137
+            return modelList;
138
+        }
139
+
140
+        /// <summary>
141
+        /// 获得数据列表
142
+        /// </summary>
143
+        public DataSet GetAllList()
144
+        {
145
+            return GetList("");
146
+        }
147
+        /// <summary>
148
+        /// 得到一个对象BYCode
149
+        /// </summary>
150
+        public DataSet GetOne(string code)
151
+        {
152
+            string sql = "F_Code='" + code + "'";
153
+            return dal.GetOne(sql);
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
+}

+ 178 - 0
BLL/T_OrganizationMember.cs

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

+ 182 - 0
BLL/T_PhoneBlackList.cs

@@ -0,0 +1,182 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_PhoneBlackList
10
+	/// </summary>
11
+	public partial class T_PhoneBlackList
12
+	{
13
+		private readonly XYFDRQ.DAL.T_PhoneBlackList dal=new XYFDRQ.DAL.T_PhoneBlackList();
14
+		public T_PhoneBlackList()
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_PhoneBlackListID)
30
+		{
31
+			return dal.Exists(F_PhoneBlackListID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(XYFDRQ.Model.T_PhoneBlackList model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_PhoneBlackList model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_PhoneBlackListID)
54
+		{
55
+			
56
+			return dal.Delete(F_PhoneBlackListID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_PhoneBlackListIDlist )
62
+		{
63
+			return dal.DeleteList(F_PhoneBlackListIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_PhoneBlackList GetModel(int F_PhoneBlackListID)
70
+		{
71
+			
72
+			return dal.GetModel(F_PhoneBlackListID);
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<XYFDRQ.Model.T_PhoneBlackList> 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<XYFDRQ.Model.T_PhoneBlackList> DataTableToList(DataTable dt)
102
+		{
103
+			List<XYFDRQ.Model.T_PhoneBlackList> modelList = new List<XYFDRQ.Model.T_PhoneBlackList>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+				XYFDRQ.Model.T_PhoneBlackList model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+					model = new XYFDRQ.Model.T_PhoneBlackList();
111
+					if(dt.Rows[n]["F_PhoneBlackListID"]!=null && dt.Rows[n]["F_PhoneBlackListID"].ToString()!="")
112
+					{
113
+						model.F_PhoneBlackListID=int.Parse(dt.Rows[n]["F_PhoneBlackListID"].ToString());
114
+					}
115
+					if(dt.Rows[n]["F_PhoneNumber"]!=null && dt.Rows[n]["F_PhoneNumber"].ToString()!="")
116
+					{
117
+					model.F_PhoneNumber=dt.Rows[n]["F_PhoneNumber"].ToString();
118
+					}
119
+					if(dt.Rows[n]["F_KeepTime"]!=null && dt.Rows[n]["F_KeepTime"].ToString()!="")
120
+					{
121
+						model.F_KeepTime=int.Parse(dt.Rows[n]["F_KeepTime"].ToString());
122
+					}
123
+					if(dt.Rows[n]["F_SetTime"]!=null && dt.Rows[n]["F_SetTime"].ToString()!="")
124
+					{
125
+						model.F_SetTime=DateTime.Parse(dt.Rows[n]["F_SetTime"].ToString());
126
+					}
127
+					if(dt.Rows[n]["F_RemoveTime"]!=null && dt.Rows[n]["F_RemoveTime"].ToString()!="")
128
+					{
129
+						model.F_RemoveTime=DateTime.Parse(dt.Rows[n]["F_RemoveTime"].ToString());
130
+					}
131
+					if(dt.Rows[n]["F_Describe"]!=null && dt.Rows[n]["F_Describe"].ToString()!="")
132
+					{
133
+					model.F_Describe=dt.Rows[n]["F_Describe"].ToString();
134
+					}
135
+					if(dt.Rows[n]["F_status"]!=null && dt.Rows[n]["F_status"].ToString()!="")
136
+					{
137
+					model.F_status=dt.Rows[n]["F_status"].ToString();
138
+					}
139
+					if(dt.Rows[n]["F_SetNumber"]!=null && dt.Rows[n]["F_SetNumber"].ToString()!="")
140
+					{
141
+					model.F_SetNumber=dt.Rows[n]["F_SetNumber"].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
+

+ 67 - 0
BLL/T_Report.cs

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

+ 163 - 0
BLL/T_RightsManagement.cs

@@ -0,0 +1,163 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_RightsManagement
10
+	/// </summary>
11
+	public partial class T_RightsManagement
12
+	{
13
+
14
+		private readonly XYFDRQ.DAL.T_RightsManagement dal=new XYFDRQ.DAL.T_RightsManagement();
15
+		public T_RightsManagement()
16
+		{}
17
+		#region  Method
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_RightsManagementId)
31
+		{
32
+			return dal.Exists(F_RightsManagementId);
33
+		}
34
+
35
+		/// <summary>
36
+		/// 增加一条数据
37
+		/// </summary>
38
+		public bool Add(XYFDRQ.Model.T_RightsManagement model)
39
+		{
40
+			return dal.Add(model);
41
+		}
42
+
43
+		/// <summary>
44
+		/// 更新一条数据
45
+		/// </summary>
46
+		public bool Update(XYFDRQ.Model.T_RightsManagement model)
47
+		{
48
+			return dal.Update(model);
49
+		}
50
+
51
+		/// <summary>
52
+		/// 删除一条数据
53
+		/// </summary>
54
+		public bool Delete(int F_RightsManagementId)
55
+		{
56
+			
57
+			return dal.Delete(F_RightsManagementId);
58
+		}
59
+		/// <summary>
60
+		/// 删除一条数据
61
+		/// </summary>
62
+		public bool DeleteList(string F_RightsManagementIdlist )
63
+		{
64
+			return dal.DeleteList(F_RightsManagementIdlist );
65
+		}
66
+
67
+		/// <summary>
68
+		/// 得到一个对象实体
69
+		/// </summary>
70
+		public XYFDRQ.Model.T_RightsManagement GetModel(int F_RightsManagementId)
71
+		{
72
+			
73
+			return dal.GetModel(F_RightsManagementId);
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<XYFDRQ.Model.T_RightsManagement> 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<XYFDRQ.Model.T_RightsManagement> DataTableToList(DataTable dt)
103
+		{
104
+			List<XYFDRQ.Model.T_RightsManagement> modelList = new List<XYFDRQ.Model.T_RightsManagement>();
105
+			int rowsCount = dt.Rows.Count;
106
+			if (rowsCount > 0)
107
+			{
108
+				XYFDRQ.Model.T_RightsManagement model;
109
+				for (int n = 0; n < rowsCount; n++)
110
+				{
111
+					model = new XYFDRQ.Model.T_RightsManagement();
112
+					if(dt.Rows[n]["F_RightsManagementId"]!=null && dt.Rows[n]["F_RightsManagementId"].ToString()!="")
113
+					{
114
+						model.F_RightsManagementId=int.Parse(dt.Rows[n]["F_RightsManagementId"].ToString());
115
+					}
116
+					if(dt.Rows[n]["F_RoleId"]!=null && dt.Rows[n]["F_RoleId"].ToString()!="")
117
+					{
118
+						model.F_RoleId=int.Parse(dt.Rows[n]["F_RoleId"].ToString());
119
+					}
120
+					if(dt.Rows[n]["F_FunctionsMenuId"]!=null && dt.Rows[n]["F_FunctionsMenuId"].ToString()!="")
121
+					{
122
+						model.F_FunctionsMenuId=int.Parse(dt.Rows[n]["F_FunctionsMenuId"].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 int GetRecordCount(string strWhere)
142
+		{
143
+			return dal.GetRecordCount(strWhere);
144
+		}
145
+		/// <summary>
146
+		/// 分页获取数据列表
147
+		/// </summary>
148
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
149
+		{
150
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
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
+

+ 162 - 0
BLL/T_Role.cs

@@ -0,0 +1,162 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Role
10
+	/// </summary>
11
+	public partial class T_Role
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Role dal=new XYFDRQ.DAL.T_Role();
14
+		public T_Role()
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_RoleID)
30
+		{
31
+			return dal.Exists(F_RoleID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(XYFDRQ.Model.T_Role model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Role model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_RoleID)
54
+		{
55
+			
56
+			return dal.Delete(F_RoleID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_RoleIDlist )
62
+		{
63
+			return dal.DeleteList(F_RoleIDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Role GetModel(int F_RoleID)
70
+		{
71
+			
72
+			return dal.GetModel(F_RoleID);
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<XYFDRQ.Model.T_Role> 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<XYFDRQ.Model.T_Role> DataTableToList(DataTable dt)
102
+		{
103
+			List<XYFDRQ.Model.T_Role> modelList = new List<XYFDRQ.Model.T_Role>();
104
+			int rowsCount = dt.Rows.Count;
105
+			if (rowsCount > 0)
106
+			{
107
+				XYFDRQ.Model.T_Role model;
108
+				for (int n = 0; n < rowsCount; n++)
109
+				{
110
+					model = new XYFDRQ.Model.T_Role();
111
+					if(dt.Rows[n]["F_RoleID"]!=null && dt.Rows[n]["F_RoleID"].ToString()!="")
112
+					{
113
+						model.F_RoleID=int.Parse(dt.Rows[n]["F_RoleID"].ToString());
114
+					}
115
+					if(dt.Rows[n]["F_RoleName"]!=null && dt.Rows[n]["F_RoleName"].ToString()!="")
116
+					{
117
+					model.F_RoleName=dt.Rows[n]["F_RoleName"].ToString();
118
+					}
119
+					if(dt.Rows[n]["F_RoleDescribe"]!=null && dt.Rows[n]["F_RoleDescribe"].ToString()!="")
120
+					{
121
+					model.F_RoleDescribe=dt.Rows[n]["F_RoleDescribe"].ToString();
122
+					}
123
+					modelList.Add(model);
124
+				}
125
+			}
126
+			return modelList;
127
+		}
128
+
129
+		/// <summary>
130
+		/// 获得数据列表
131
+		/// </summary>
132
+		public DataSet GetAllList()
133
+		{
134
+			return GetList("");
135
+		}
136
+
137
+		/// <summary>
138
+		/// 分页获取数据列表
139
+		/// </summary>
140
+		public int GetRecordCount(string strWhere)
141
+		{
142
+			return dal.GetRecordCount(strWhere);
143
+		}
144
+		/// <summary>
145
+		/// 分页获取数据列表
146
+		/// </summary>
147
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
148
+		{
149
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
150
+		}
151
+		/// <summary>
152
+		/// 分页获取数据列表
153
+		/// </summary>
154
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
155
+		//{
156
+			//return dal.GetList(PageSize,PageIndex,strWhere);
157
+		//}
158
+
159
+		#endregion  Method
160
+	}
161
+}
162
+

+ 213 - 0
BLL/T_Sms_InfoType.cs

@@ -0,0 +1,213 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 发送短信任务
10
+	/// </summary>
11
+	public partial class T_Sms_InfoType
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Sms_InfoType dal=new XYFDRQ.DAL.T_Sms_InfoType();
14
+		public T_Sms_InfoType()
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 TypeId)
30
+		{
31
+			return dal.Exists(TypeId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Sms_InfoType model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Sms_InfoType model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int TypeId)
54
+		{
55
+			
56
+			return dal.Delete(TypeId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string TypeIdlist )
62
+		{
63
+			return dal.DeleteList(TypeIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Sms_InfoType GetModel(int TypeId)
70
+		{
71
+			
72
+			return dal.GetModel(TypeId);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Sms_InfoType GetModelByCache(int TypeId)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Sms_InfoTypeModel-" + TypeId;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(TypeId);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Sms_InfoType)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<XYFDRQ.Model.T_Sms_InfoType> 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<XYFDRQ.Model.T_Sms_InfoType> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Sms_InfoType> modelList = new List<XYFDRQ.Model.T_Sms_InfoType>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Sms_InfoType model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Sms_InfoType();
134
+					if(dt.Rows[n]["TypeId"]!=null && dt.Rows[n]["TypeId"].ToString()!="")
135
+					{
136
+						model.TypeId=int.Parse(dt.Rows[n]["TypeId"].ToString());
137
+					}
138
+					if(dt.Rows[n]["TypeName"]!=null && dt.Rows[n]["TypeName"].ToString()!="")
139
+					{
140
+					model.TypeName=dt.Rows[n]["TypeName"].ToString();
141
+					}
142
+					if(dt.Rows[n]["InfoTemplate"]!=null && dt.Rows[n]["InfoTemplate"].ToString()!="")
143
+					{
144
+					model.InfoTemplate=dt.Rows[n]["InfoTemplate"].ToString();
145
+					}
146
+					if(dt.Rows[n]["Remark"]!=null && dt.Rows[n]["Remark"].ToString()!="")
147
+					{
148
+					model.Remark=dt.Rows[n]["Remark"].ToString();
149
+					}
150
+					if(dt.Rows[n]["IsDelete"]!=null && dt.Rows[n]["IsDelete"].ToString()!="")
151
+					{
152
+						if((dt.Rows[n]["IsDelete"].ToString()=="1")||(dt.Rows[n]["IsDelete"].ToString().ToLower()=="true"))
153
+						{
154
+						model.IsDelete=true;
155
+						}
156
+						else
157
+						{
158
+							model.IsDelete=false;
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
+
175
+		/// <summary>
176
+		/// 分页获取数据列表
177
+		/// </summary>
178
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
179
+		//{
180
+			//return dal.GetList(PageSize,PageIndex,strWhere);
181
+		//}
182
+
183
+		#endregion  Method
184
+
185
+        /// <summary>
186
+        /// 根据类型id获取短信内容
187
+        /// </summary>
188
+        /// <param name="typeId"></param>
189
+        /// <returns></returns>
190
+        public string GetSmsContentById(int typeId)
191
+        {
192
+            string smsContent = string.Empty;
193
+            XYFDRQ.Model.T_Sms_InfoType model_T_Sms_InfoType = GetModel(typeId);
194
+            if (model_T_Sms_InfoType != null)
195
+            {
196
+                smsContent = model_T_Sms_InfoType.InfoTemplate;
197
+            }
198
+            return smsContent;
199
+        }
200
+
201
+        /// <summary>
202
+        /// 修改短信类型的状态
203
+        /// </summary>
204
+        /// <param name="typeId"></param>
205
+        /// <param name="isDelete"></param>
206
+        /// <returns></returns>
207
+        public bool UpdateIsDeleteByTypeId(int typeId, bool isDelete)
208
+        {
209
+            return dal.UpdateIsDeleteByTypeId(typeId, isDelete);
210
+        }
211
+	}
212
+}
213
+

+ 203 - 0
BLL/T_Sms_SendInfo.cs

@@ -0,0 +1,203 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 发送短信任务
10
+	/// </summary>
11
+	public partial class T_Sms_SendInfo
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Sms_SendInfo dal=new XYFDRQ.DAL.T_Sms_SendInfo();
14
+		public T_Sms_SendInfo()
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(XYFDRQ.Model.T_Sms_SendInfo model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Sms_SendInfo 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 XYFDRQ.Model.T_Sms_SendInfo GetModel(int SmsID)
70
+		{
71
+			
72
+			return dal.GetModel(SmsID);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Sms_SendInfo GetModelByCache(int SmsID)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Sms_SendInfoModel-" + SmsID;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(SmsID);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Sms_SendInfo)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<XYFDRQ.Model.T_Sms_SendInfo> 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<XYFDRQ.Model.T_Sms_SendInfo> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Sms_SendInfo> modelList = new List<XYFDRQ.Model.T_Sms_SendInfo>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Sms_SendInfo model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Sms_SendInfo();
134
+					if(dt.Rows[n]["SmsID"]!=null && dt.Rows[n]["SmsID"].ToString()!="")
135
+					{
136
+						model.SmsID=int.Parse(dt.Rows[n]["SmsID"].ToString());
137
+					}
138
+					if(dt.Rows[n]["ReceivePhone"]!=null && dt.Rows[n]["ReceivePhone"].ToString()!="")
139
+					{
140
+					model.ReceivePhone=dt.Rows[n]["ReceivePhone"].ToString();
141
+					}
142
+					if(dt.Rows[n]["InsertTime"]!=null && dt.Rows[n]["InsertTime"].ToString()!="")
143
+					{
144
+						model.InsertTime=DateTime.Parse(dt.Rows[n]["InsertTime"].ToString());
145
+					}
146
+					if(dt.Rows[n]["TimingTime"]!=null && dt.Rows[n]["TimingTime"].ToString()!="")
147
+					{
148
+						model.TimingTime=DateTime.Parse(dt.Rows[n]["TimingTime"].ToString());
149
+					}
150
+					if(dt.Rows[n]["SendTime"]!=null && dt.Rows[n]["SendTime"].ToString()!="")
151
+					{
152
+						model.SendTime=DateTime.Parse(dt.Rows[n]["SendTime"].ToString());
153
+					}
154
+					if(dt.Rows[n]["State"]!=null && dt.Rows[n]["State"].ToString()!="")
155
+					{
156
+						model.State=int.Parse(dt.Rows[n]["State"].ToString());
157
+					}
158
+					if(dt.Rows[n]["UserId"]!=null && dt.Rows[n]["UserId"].ToString()!="")
159
+					{
160
+						model.UserId=int.Parse(dt.Rows[n]["UserId"].ToString());
161
+					}
162
+					if(dt.Rows[n]["SmsContent"]!=null && dt.Rows[n]["SmsContent"].ToString()!="")
163
+					{
164
+					model.SmsContent=dt.Rows[n]["SmsContent"].ToString();
165
+					}
166
+					if(dt.Rows[n]["SendType"]!=null && dt.Rows[n]["SendType"].ToString()!="")
167
+					{
168
+						model.SendType=int.Parse(dt.Rows[n]["SendType"].ToString());
169
+					}
170
+					if(dt.Rows[n]["InfoType"]!=null && dt.Rows[n]["InfoType"].ToString()!="")
171
+					{
172
+						model.InfoType=int.Parse(dt.Rows[n]["InfoType"].ToString());
173
+					}
174
+					modelList.Add(model);
175
+				}
176
+			}
177
+			return modelList;
178
+		}
179
+
180
+		/// <summary>
181
+		/// 获得数据列表
182
+		/// </summary>
183
+		public DataSet GetAllList()
184
+		{
185
+			return GetList("");
186
+		}
187
+
188
+		/// <summary>
189
+		/// 分页获取数据列表
190
+		/// </summary>
191
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
192
+		//{
193
+			//return dal.GetList(PageSize,PageIndex,strWhere);
194
+		//}
195
+
196
+		#endregion  Method
197
+        public int ReSend(string arrSMSID)
198
+        {
199
+            return dal.ReSend(arrSMSID);
200
+        }
201
+	}
202
+}
203
+

+ 180 - 0
BLL/T_Sys_CallOptLogs.cs

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

+ 274 - 0
BLL/T_Sys_Department.cs

@@ -0,0 +1,274 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Model;
5
+namespace XYFDRQ.BLL
6
+{
7
+	/// <summary>
8
+	/// T_Sys_Department
9
+	/// </summary>
10
+	public partial class T_Sys_Department
11
+	{
12
+		private readonly XYFDRQ.DAL.T_Sys_Department dal=new XYFDRQ.DAL.T_Sys_Department();
13
+		public T_Sys_Department()
14
+		{}
15
+		#region  Method
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_DeptId)
29
+		{
30
+			return dal.Exists(F_DeptId);
31
+		}
32
+
33
+		/// <summary>
34
+		/// 增加一条数据
35
+		/// </summary>
36
+		public int  Add(XYFDRQ.Model.T_Sys_Department model)
37
+		{
38
+			return dal.Add(model);
39
+		}
40
+
41
+		/// <summary>
42
+		/// 更新一条数据
43
+		/// </summary>
44
+		public bool Update(XYFDRQ.Model.T_Sys_Department model)
45
+		{
46
+			return dal.Update(model);
47
+		}
48
+
49
+		/// <summary>
50
+		/// 删除一条数据
51
+		/// </summary>
52
+		public bool Delete(int F_DeptId)
53
+		{
54
+			
55
+			return dal.Delete(F_DeptId);
56
+		}
57
+		/// <summary>
58
+		/// 删除一条数据
59
+		/// </summary>
60
+		public bool DeleteList(string F_DeptIdlist )
61
+		{
62
+			return dal.DeleteList(F_DeptIdlist );
63
+		}
64
+
65
+		/// <summary>
66
+		/// 得到一个对象实体
67
+		/// </summary>
68
+		public XYFDRQ.Model.T_Sys_Department GetModel(int F_DeptId)
69
+		{
70
+			
71
+			return dal.GetModel(F_DeptId);
72
+		}
73
+
74
+        ///// <summary>
75
+        ///// 得到一个对象实体,从缓存中
76
+        ///// </summary>
77
+        //public XYFDRQ.Model.T_Sys_Department GetModelByCache(int F_DeptId)
78
+        //{
79
+			
80
+        //    string CacheKey = "T_Sys_DepartmentModel-" + F_DeptId;
81
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
82
+        //    if (objModel == null)
83
+        //    {
84
+        //        try
85
+        //        {
86
+        //            objModel = dal.GetModel(F_DeptId);
87
+        //            if (objModel != null)
88
+        //            {
89
+        //                int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache");
90
+        //                Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
91
+        //            }
92
+        //        }
93
+        //        catch{}
94
+        //    }
95
+        //    return (XYFDRQ.Model.T_Sys_Department)objModel;
96
+        //}
97
+
98
+		/// <summary>
99
+		/// 获得数据列表
100
+		/// </summary>
101
+		public DataSet GetList(string strWhere)
102
+		{
103
+			return dal.GetList(strWhere);
104
+		}
105
+		/// <summary>
106
+		/// 获得前几行数据
107
+		/// </summary>
108
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
109
+		{
110
+			return dal.GetList(Top,strWhere,filedOrder);
111
+		}
112
+		/// <summary>
113
+		/// 获得数据列表
114
+		/// </summary>
115
+		public List<XYFDRQ.Model.T_Sys_Department> GetModelList(string strWhere)
116
+		{
117
+			DataSet ds = dal.GetList(strWhere);
118
+			return DataTableToList(ds.Tables[0]);
119
+		}
120
+		/// <summary>
121
+		/// 获得数据列表
122
+		/// </summary>
123
+		public List<XYFDRQ.Model.T_Sys_Department> DataTableToList(DataTable dt)
124
+		{
125
+			List<XYFDRQ.Model.T_Sys_Department> modelList = new List<XYFDRQ.Model.T_Sys_Department>();
126
+			int rowsCount = dt.Rows.Count;
127
+			if (rowsCount > 0)
128
+			{
129
+				XYFDRQ.Model.T_Sys_Department model;
130
+				for (int n = 0; n < rowsCount; n++)
131
+				{
132
+					model = new XYFDRQ.Model.T_Sys_Department();
133
+					if(dt.Rows[n]["F_DeptId"]!=null && dt.Rows[n]["F_DeptId"].ToString()!="")
134
+					{
135
+						model.F_DeptId=int.Parse(dt.Rows[n]["F_DeptId"].ToString());
136
+					}
137
+					if(dt.Rows[n]["F_DeptCode"]!=null && dt.Rows[n]["F_DeptCode"].ToString()!="")
138
+					{
139
+					model.F_DeptCode=dt.Rows[n]["F_DeptCode"].ToString();
140
+					}
141
+					if(dt.Rows[n]["F_ParentName"]!=null && dt.Rows[n]["F_ParentName"].ToString()!="")
142
+					{
143
+					model.F_ParentName=dt.Rows[n]["F_ParentName"].ToString();
144
+					}
145
+					if(dt.Rows[n]["F_ParentId"]!=null && dt.Rows[n]["F_ParentId"].ToString()!="")
146
+					{
147
+						model.F_ParentId=int.Parse(dt.Rows[n]["F_ParentId"].ToString());
148
+					}
149
+					if(dt.Rows[n]["F_ParentCode"]!=null && dt.Rows[n]["F_ParentCode"].ToString()!="")
150
+					{
151
+					model.F_ParentCode=dt.Rows[n]["F_ParentCode"].ToString();
152
+					}
153
+					if(dt.Rows[n]["F_DeptName"]!=null && dt.Rows[n]["F_DeptName"].ToString()!="")
154
+					{
155
+					model.F_DeptName=dt.Rows[n]["F_DeptName"].ToString();
156
+					}
157
+					if(dt.Rows[n]["F_State"]!=null && dt.Rows[n]["F_State"].ToString()!="")
158
+					{
159
+						model.F_State=int.Parse(dt.Rows[n]["F_State"].ToString());
160
+					}
161
+					if(dt.Rows[n]["F_Layer"]!=null && dt.Rows[n]["F_Layer"].ToString()!="")
162
+					{
163
+						model.F_Layer=int.Parse(dt.Rows[n]["F_Layer"].ToString());
164
+					}
165
+					if(dt.Rows[n]["F_Type"]!=null && dt.Rows[n]["F_Type"].ToString()!="")
166
+					{
167
+						model.F_Type=int.Parse(dt.Rows[n]["F_Type"].ToString());
168
+					}
169
+					if(dt.Rows[n]["F_Sort"]!=null && dt.Rows[n]["F_Sort"].ToString()!="")
170
+					{
171
+						model.F_Sort=int.Parse(dt.Rows[n]["F_Sort"].ToString());
172
+					}
173
+					if(dt.Rows[n]["F_Remark"]!=null && dt.Rows[n]["F_Remark"].ToString()!="")
174
+					{
175
+					model.F_Remark=dt.Rows[n]["F_Remark"].ToString();
176
+					}
177
+					if(dt.Rows[n]["F_Telephone"]!=null && dt.Rows[n]["F_Telephone"].ToString()!="")
178
+					{
179
+					model.F_Telephone=dt.Rows[n]["F_Telephone"].ToString();
180
+					}
181
+					if(dt.Rows[n]["F_Mobile"]!=null && dt.Rows[n]["F_Mobile"].ToString()!="")
182
+					{
183
+					model.F_Mobile=dt.Rows[n]["F_Mobile"].ToString();
184
+					}
185
+					if(dt.Rows[n]["F_OtherPhone"]!=null && dt.Rows[n]["F_OtherPhone"].ToString()!="")
186
+					{
187
+					model.F_OtherPhone=dt.Rows[n]["F_OtherPhone"].ToString();
188
+					}
189
+					if(dt.Rows[n]["F_Email"]!=null && dt.Rows[n]["F_Email"].ToString()!="")
190
+					{
191
+					model.F_Email=dt.Rows[n]["F_Email"].ToString();
192
+					}
193
+					if(dt.Rows[n]["F_Header"]!=null && dt.Rows[n]["F_Header"].ToString()!="")
194
+					{
195
+						model.F_Header=int.Parse(dt.Rows[n]["F_Header"].ToString());
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
+        /// <summary>
236
+        /// 根据部门id获取部门名称
237
+        /// </summary>
238
+        /// <param name="id"></param>
239
+        /// <returns></returns>
240
+        public string GetDeptNameById(object id)
241
+        {
242
+            string deptName = string.Empty;
243
+            if (id != null && !string.IsNullOrEmpty(id.ToString()))
244
+            {
245
+                XYFDRQ.Model.T_Sys_Department model_T_Sys_Department = GetModel(Convert.ToInt32(id));
246
+                if (model_T_Sys_Department != null)
247
+                {
248
+                    deptName = model_T_Sys_Department.F_DeptName;
249
+                }
250
+            }
251
+            return deptName;
252
+        }
253
+
254
+        /// <summary>
255
+        /// 根据当前部门id迭代本身及所有子部门id
256
+        /// </summary>
257
+        /// <param name="LvId"></param>
258
+        /// <returns></returns>
259
+        public string GetDeptIds(string DeptId)
260
+        {
261
+            string deptIds =DeptId;
262
+            DataTable dt = dal.GetList(" F_State=0 and F_ParentId="+DeptId).Tables[0];
263
+            if (dt != null && dt.Rows.Count > 0)
264
+            {
265
+                foreach (DataRow dr in dt.Rows)
266
+                {                   
267
+                    deptIds += ","+GetDeptIds(dr["F_DeptId"].ToString());
268
+                }             
269
+            }
270
+            return deptIds;
271
+        }
272
+	}
273
+}
274
+

+ 230 - 0
BLL/T_Sys_LoginLogs.cs

@@ -0,0 +1,230 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using Maticsoft.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Sys_LoginLogs
10
+	/// </summary>
11
+	public partial class T_Sys_LoginLogs
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Sys_LoginLogs dal=new XYFDRQ.DAL.T_Sys_LoginLogs();
14
+		public T_Sys_LoginLogs()
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(XYFDRQ.Model.T_Sys_LoginLogs model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Sys_LoginLogs 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 XYFDRQ.Model.T_Sys_LoginLogs GetModel(int F_Id)
70
+		{
71
+			
72
+			return dal.GetModel(F_Id);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Sys_LoginLogs GetModelByCache(int F_Id)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Sys_LoginLogsModel-" + 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 (XYFDRQ.Model.T_Sys_LoginLogs)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<XYFDRQ.Model.T_Sys_LoginLogs> 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<XYFDRQ.Model.T_Sys_LoginLogs> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Sys_LoginLogs> modelList = new List<XYFDRQ.Model.T_Sys_LoginLogs>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Sys_LoginLogs model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Sys_LoginLogs();
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_LoginName"]!=null && dt.Rows[n]["F_LoginName"].ToString()!="")
139
+					{
140
+					model.F_LoginName=dt.Rows[n]["F_LoginName"].ToString();
141
+					}
142
+					if(dt.Rows[n]["F_LoginId"]!=null && dt.Rows[n]["F_LoginId"].ToString()!="")
143
+					{
144
+						model.F_LoginId=int.Parse(dt.Rows[n]["F_LoginId"].ToString());
145
+					}
146
+					if(dt.Rows[n]["F_Result"]!=null && dt.Rows[n]["F_Result"].ToString()!="")
147
+					{
148
+					model.F_Result=dt.Rows[n]["F_Result"].ToString();
149
+					}
150
+					if(dt.Rows[n]["F_LoginIP"]!=null && dt.Rows[n]["F_LoginIP"].ToString()!="")
151
+					{
152
+					model.F_LoginIP=dt.Rows[n]["F_LoginIP"].ToString();
153
+					}
154
+					if(dt.Rows[n]["F_Hostname"]!=null && dt.Rows[n]["F_Hostname"].ToString()!="")
155
+					{
156
+					model.F_Hostname=dt.Rows[n]["F_Hostname"].ToString();
157
+					}
158
+					if(dt.Rows[n]["F_LoginDate"]!=null && dt.Rows[n]["F_LoginDate"].ToString()!="")
159
+					{
160
+						model.F_LoginDate=DateTime.Parse(dt.Rows[n]["F_LoginDate"].ToString());
161
+					}
162
+					if(dt.Rows[n]["F_LoginOutDate"]!=null && dt.Rows[n]["F_LoginOutDate"].ToString()!="")
163
+					{
164
+						model.F_LoginOutDate=DateTime.Parse(dt.Rows[n]["F_LoginOutDate"].ToString());
165
+					}
166
+					if(dt.Rows[n]["F_Remark"]!=null && dt.Rows[n]["F_Remark"].ToString()!="")
167
+					{
168
+					model.F_Remark=dt.Rows[n]["F_Remark"].ToString();
169
+					}
170
+					if(dt.Rows[n]["F_State"]!=null && dt.Rows[n]["F_State"].ToString()!="")
171
+					{
172
+						model.F_State=int.Parse(dt.Rows[n]["F_State"].ToString());
173
+					}
174
+					modelList.Add(model);
175
+				}
176
+			}
177
+			return modelList;
178
+		}
179
+
180
+		/// <summary>
181
+		/// 获得数据列表
182
+		/// </summary>
183
+		public DataSet GetAllList()
184
+		{
185
+			return GetList("");
186
+		}
187
+
188
+		/// <summary>
189
+		/// 分页获取数据列表
190
+		/// </summary>
191
+		public int GetRecordCount(string strWhere)
192
+		{
193
+			return dal.GetRecordCount(strWhere);
194
+		}
195
+		/// <summary>
196
+		/// 分页获取数据列表
197
+		/// </summary>
198
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
199
+		{
200
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
201
+		}
202
+		/// <summary>
203
+		/// 分页获取数据列表
204
+		/// </summary>
205
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
206
+		//{
207
+			//return dal.GetList(PageSize,PageIndex,strWhere);
208
+		//}
209
+
210
+		#endregion  Method
211
+
212
+           /// <summary>
213
+        /// 清除日志
214
+        /// </summary>
215
+        /// <returns></returns>
216
+        public int ClearLogs()
217
+        {
218
+            return dal.ClearLogs();
219
+        }
220
+        
221
+        /// <summary>
222
+        /// 更新当前登陆人的退出时间
223
+        /// </summary>
224
+        public bool UpdateLoginTime(int userId)
225
+        {
226
+            return dal.UpdateLoginTime(userId);
227
+        }
228
+	}
229
+}
230
+

+ 157 - 0
BLL/T_Sys_MobileData.cs

@@ -0,0 +1,157 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_MobileData
11
+    /// </summary>
12
+    public partial class T_Sys_MobileData
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_MobileData dal = new XYFDRQ.DAL.T_Sys_MobileData();
15
+        public T_Sys_MobileData()
16
+        { }
17
+        #region  Method
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(XYFDRQ.Model.T_Sys_MobileData model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.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 XYFDRQ.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<XYFDRQ.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<XYFDRQ.Model.T_Sys_MobileData> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_MobileData> modelList = new List<XYFDRQ.Model.T_Sys_MobileData>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_MobileData model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_MobileData();
102
+                    if (dt.Rows[n]["F_MobileNum"] != null && dt.Rows[n]["F_MobileNum"].ToString() != "")
103
+                    {
104
+                        model.F_MobileNum = dt.Rows[n]["F_MobileNum"].ToString();
105
+                    }
106
+                    if (dt.Rows[n]["F_ZipCode"] != null && dt.Rows[n]["F_ZipCode"].ToString() != "")
107
+                    {
108
+                        model.F_ZipCode = dt.Rows[n]["F_ZipCode"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_CityDes"] != null && dt.Rows[n]["F_CityDes"].ToString() != "")
111
+                    {
112
+                        model.F_CityDes = dt.Rows[n]["F_CityDes"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_CardDes"] != null && dt.Rows[n]["F_CardDes"].ToString() != "")
115
+                    {
116
+                        model.F_CardDes = dt.Rows[n]["F_CardDes"].ToString();
117
+                    }
118
+                    modelList.Add(model);
119
+                }
120
+            }
121
+            return modelList;
122
+        }
123
+
124
+        /// <summary>
125
+        /// 获得数据列表
126
+        /// </summary>
127
+        public DataSet GetAllList()
128
+        {
129
+            return GetList("");
130
+        }
131
+
132
+        /// <summary>
133
+        /// 分页获取数据列表
134
+        /// </summary>
135
+        public int GetRecordCount(string strWhere)
136
+        {
137
+            return dal.GetRecordCount(strWhere);
138
+        }
139
+        /// <summary>
140
+        /// 分页获取数据列表
141
+        /// </summary>
142
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
143
+        {
144
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
145
+        }
146
+        /// <summary>
147
+        /// 分页获取数据列表
148
+        /// </summary>
149
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
150
+        //{
151
+        //return dal.GetList(PageSize,PageIndex,strWhere);
152
+        //}
153
+
154
+        #endregion  Method
155
+    }
156
+}
157
+

+ 209 - 0
BLL/T_Sys_ModuleFunctions.cs

@@ -0,0 +1,209 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_ModuleFunctions
11
+    /// </summary>
12
+    public partial class T_Sys_ModuleFunctions
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_ModuleFunctions dal = new XYFDRQ.DAL.T_Sys_ModuleFunctions();
15
+        public T_Sys_ModuleFunctions()
16
+        { }
17
+        #region  Method
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(XYFDRQ.Model.T_Sys_ModuleFunctions model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.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 XYFDRQ.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<XYFDRQ.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<XYFDRQ.Model.T_Sys_ModuleFunctions> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_ModuleFunctions> modelList = new List<XYFDRQ.Model.T_Sys_ModuleFunctions>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_ModuleFunctions model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_ModuleFunctions();
102
+                    if (dt.Rows[n]["F_FunctionId"] != null && dt.Rows[n]["F_FunctionId"].ToString() != "")
103
+                    {
104
+                        model.F_FunctionId = int.Parse(dt.Rows[n]["F_FunctionId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_FunctionCode"] != null && dt.Rows[n]["F_FunctionCode"].ToString() != "")
107
+                    {
108
+                        model.F_FunctionCode = dt.Rows[n]["F_FunctionCode"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_ParentId"] != null && dt.Rows[n]["F_ParentId"].ToString() != "")
111
+                    {
112
+                        model.F_ParentId = int.Parse(dt.Rows[n]["F_ParentId"].ToString());
113
+                    }
114
+                    if (dt.Rows[n]["F_ParentCode"] != null && dt.Rows[n]["F_ParentCode"].ToString() != "")
115
+                    {
116
+                        model.F_ParentCode = dt.Rows[n]["F_ParentCode"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_Name"] != null && dt.Rows[n]["F_Name"].ToString() != "")
119
+                    {
120
+                        model.F_Name = dt.Rows[n]["F_Name"].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_StateFlag"] != null && dt.Rows[n]["F_StateFlag"].ToString() != "")
131
+                    {
132
+                        model.F_StateFlag = int.Parse(dt.Rows[n]["F_StateFlag"].ToString());
133
+                    }
134
+                    if (dt.Rows[n]["F_Type"] != null && dt.Rows[n]["F_Type"].ToString() != "")
135
+                    {
136
+                        model.F_Type = int.Parse(dt.Rows[n]["F_Type"].ToString());
137
+                    }
138
+                    if (dt.Rows[n]["F_OptUrl"] != null && dt.Rows[n]["F_OptUrl"].ToString() != "")
139
+                    {
140
+                        model.F_OptUrl = dt.Rows[n]["F_OptUrl"].ToString();
141
+                    }
142
+                    if (dt.Rows[n]["F_Remark"] != null && dt.Rows[n]["F_Remark"].ToString() != "")
143
+                    {
144
+                        model.F_Remark = dt.Rows[n]["F_Remark"].ToString();
145
+                    }
146
+                    if (dt.Rows[n]["F_SysFlag"] != null && dt.Rows[n]["F_SysFlag"].ToString() != "")
147
+                    {
148
+                        if ((dt.Rows[n]["F_SysFlag"].ToString() == "1") || (dt.Rows[n]["F_SysFlag"].ToString().ToLower() == "true"))
149
+                        {
150
+                            model.F_SysFlag = true;
151
+                        }
152
+                        else
153
+                        {
154
+                            model.F_SysFlag = false;
155
+                        }
156
+                    }
157
+                    if (dt.Rows[n]["F_ImgUrl"] != null && dt.Rows[n]["F_ImgUrl"].ToString() != "")
158
+                    {
159
+                        model.F_ImgUrl = dt.Rows[n]["F_ImgUrl"].ToString();
160
+                    }
161
+                    if (dt.Rows[n]["F_ModuleId"] != null && dt.Rows[n]["F_ModuleId"].ToString() != "")
162
+                    {
163
+                        model.F_ModuleId = int.Parse(dt.Rows[n]["F_ModuleId"].ToString());
164
+                    }
165
+                    if (dt.Rows[n]["F_ModuleCode"] != null && dt.Rows[n]["F_ModuleCode"].ToString() != "")
166
+                    {
167
+                        model.F_ModuleCode = dt.Rows[n]["F_ModuleCode"].ToString();
168
+                    }
169
+                    modelList.Add(model);
170
+                }
171
+            }
172
+            return modelList;
173
+        }
174
+
175
+        /// <summary>
176
+        /// 获得数据列表
177
+        /// </summary>
178
+        public DataSet GetAllList()
179
+        {
180
+            return GetList("");
181
+        }
182
+
183
+        /// <summary>
184
+        /// 分页获取数据列表
185
+        /// </summary>
186
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
187
+        //{
188
+        //return dal.GetList(PageSize,PageIndex,strWhere);
189
+        //}
190
+
191
+        #endregion  Method
192
+
193
+          /// <summary>
194
+        /// 根据ModeuleId更新moduleCode
195
+        /// </summary>
196
+        public bool UpdateModuleCodeByModuleId(int p_ModuleId, string p_ModuleCode)
197
+        {
198
+            return dal.UpdateModuleCodeByModuleId(p_ModuleId, p_ModuleCode);
199
+        }
200
+
201
+          /// <summary>
202
+        /// 根据ParentId更新ParentCode
203
+        /// </summary>
204
+        public bool UpdateParentCodeCodeByParentId(int p_FunctionId, string p_FunctionCode)
205
+        {
206
+            return dal.UpdateParentCodeCodeByParentId(p_FunctionId, p_FunctionCode);
207
+        }
208
+    }
209
+}

+ 166 - 0
BLL/T_Sys_ModuleFunctionsOpt.cs

@@ -0,0 +1,166 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_ModuleFunctionsOpt
11
+    /// </summary>
12
+    public partial class T_Sys_ModuleFunctionsOpt
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_ModuleFunctionsOpt dal = new XYFDRQ.DAL.T_Sys_ModuleFunctionsOpt();
15
+        public T_Sys_ModuleFunctionsOpt()
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(XYFDRQ.Model.T_Sys_ModuleFunctionsOpt model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.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 XYFDRQ.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<XYFDRQ.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<XYFDRQ.Model.T_Sys_ModuleFunctionsOpt> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_ModuleFunctionsOpt> modelList = new List<XYFDRQ.Model.T_Sys_ModuleFunctionsOpt>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_ModuleFunctionsOpt model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_ModuleFunctionsOpt();
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_FunctionId"] != null && dt.Rows[n]["F_FunctionId"].ToString() != "")
107
+                    {
108
+                        model.F_FunctionId = int.Parse(dt.Rows[n]["F_FunctionId"].ToString());
109
+                    }
110
+                    if (dt.Rows[n]["F_FunctionCode"] != null && dt.Rows[n]["F_FunctionCode"].ToString() != "")
111
+                    {
112
+                        model.F_FunctionCode = dt.Rows[n]["F_FunctionCode"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_OptName"] != null && dt.Rows[n]["F_OptName"].ToString() != "")
115
+                    {
116
+                        model.F_OptName = dt.Rows[n]["F_OptName"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_OptCode"] != null && dt.Rows[n]["F_OptCode"].ToString() != "")
119
+                    {
120
+                        model.F_OptCode = dt.Rows[n]["F_OptCode"].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_ControlId"] != null && dt.Rows[n]["F_ControlId"].ToString() != "")
127
+                    {
128
+                        model.F_ControlId = int.Parse(dt.Rows[n]["F_ControlId"].ToString());
129
+                    }
130
+                    if (dt.Rows[n]["F_ControlCode"] != null && dt.Rows[n]["F_ControlCode"].ToString() != "")
131
+                    {
132
+                        model.F_ControlCode = dt.Rows[n]["F_ControlCode"].ToString();
133
+                    }
134
+                    modelList.Add(model);
135
+                }
136
+            }
137
+            return modelList;
138
+        }
139
+
140
+        /// <summary>
141
+        /// 获得数据列表
142
+        /// </summary>
143
+        public DataSet GetAllList()
144
+        {
145
+            return GetList("");
146
+        }
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  Method
157
+
158
+          /// <summary>
159
+        /// 更新一条数据
160
+        /// </summary>
161
+        public bool UpdateFunctionCodeByFunctionId(int p_FunctionId, string p_FunctionCode)
162
+        {
163
+            return dal.UpdateFunctionCodeByFunctionId(p_FunctionId, p_FunctionCode);
164
+        }
165
+    }
166
+}

+ 158 - 0
BLL/T_Sys_ModuleInfo.cs

@@ -0,0 +1,158 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_ModuleInfo
11
+    /// </summary>
12
+    public partial class T_Sys_ModuleInfo
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_ModuleInfo dal = new XYFDRQ.DAL.T_Sys_ModuleInfo();
15
+        public T_Sys_ModuleInfo()
16
+        { }
17
+        #region  Method
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(XYFDRQ.Model.T_Sys_ModuleInfo model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.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 XYFDRQ.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<XYFDRQ.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<XYFDRQ.Model.T_Sys_ModuleInfo> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_ModuleInfo> modelList = new List<XYFDRQ.Model.T_Sys_ModuleInfo>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_ModuleInfo model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_ModuleInfo();
102
+                    if (dt.Rows[n]["F_ModuleId"] != null && dt.Rows[n]["F_ModuleId"].ToString() != "")
103
+                    {
104
+                        model.F_ModuleId = int.Parse(dt.Rows[n]["F_ModuleId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_ModuleName"] != null && dt.Rows[n]["F_ModuleName"].ToString() != "")
107
+                    {
108
+                        model.F_ModuleName = dt.Rows[n]["F_ModuleName"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_ModuleCode"] != null && dt.Rows[n]["F_ModuleCode"].ToString() != "")
111
+                    {
112
+                        model.F_ModuleCode = dt.Rows[n]["F_ModuleCode"].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_Sort"] != null && dt.Rows[n]["F_Sort"].ToString() != "")
119
+                    {
120
+                        model.F_Sort = int.Parse(dt.Rows[n]["F_Sort"].ToString());
121
+                    }
122
+                    if (dt.Rows[n]["F_StateFlag"] != null && dt.Rows[n]["F_StateFlag"].ToString() != "")
123
+                    {
124
+                        model.F_StateFlag = int.Parse(dt.Rows[n]["F_StateFlag"].ToString());
125
+                    }
126
+                    if (dt.Rows[n]["F_OptUrl"] != null && dt.Rows[n]["F_OptUrl"].ToString() != "")
127
+                    {
128
+                        model.F_OptUrl = dt.Rows[n]["F_OptUrl"].ToString();
129
+                    }
130
+                    if (dt.Rows[n]["F_ImgUrl"] != null && dt.Rows[n]["F_ImgUrl"].ToString() != "")
131
+                    {
132
+                        model.F_ImgUrl = dt.Rows[n]["F_ImgUrl"].ToString();
133
+                    }
134
+                    modelList.Add(model);
135
+                }
136
+            }
137
+            return modelList;
138
+        }
139
+
140
+        /// <summary>
141
+        /// 获得数据列表
142
+        /// </summary>
143
+        public DataSet GetAllList()
144
+        {
145
+            return GetList("");
146
+        }
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  Method
157
+    }
158
+}

+ 192 - 0
BLL/T_Sys_OperateLogs.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 XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_OperateLogs
11
+    /// </summary>
12
+    public partial class T_Sys_OperateLogs
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_OperateLogs dal = new XYFDRQ.DAL.T_Sys_OperateLogs();
15
+        public T_Sys_OperateLogs()
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(XYFDRQ.Model.T_Sys_OperateLogs model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+        /// <summary>
34
+        /// 添加操作日志
35
+        /// 参数:OptBy,OptName,ModuleId,FunctionId,FunctionItemId,Descript
36
+        /// </summary>
37
+        public void AddOperateLog(int iOptBy, string sOptName, int iModuleId, int iFunctionId, int iFunctionItemId, string sDescript)
38
+        {
39
+            XYFDRQ.Model.T_Sys_OperateLogs _model = new XYFDRQ.Model.T_Sys_OperateLogs();
40
+
41
+            _model.F_OptBy = iOptBy;
42
+            _model.F_OptOn = DateTime.Now;
43
+            _model.F_OptName = sOptName;
44
+            _model.F_ModuleId = iModuleId;
45
+            _model.F_FunctionId = iFunctionId;
46
+            _model.F_FunctionItemId = iFunctionItemId;
47
+            _model.F_Descript = sDescript;
48
+            _model.F_DeletionStateCode = 0;
49
+            _model.F_State = 0;
50
+
51
+            dal.Add(_model);
52
+        }
53
+
54
+        /// <summary>
55
+        /// 更新一条数据
56
+        /// </summary>
57
+        public bool Update(XYFDRQ.Model.T_Sys_OperateLogs model)
58
+        {
59
+            return dal.Update(model);
60
+        }
61
+
62
+        /// <summary>
63
+        /// 删除一条数据
64
+        /// </summary>
65
+        public bool Delete(int F_Id)
66
+        {
67
+
68
+            return dal.Delete(F_Id);
69
+        }
70
+        /// <summary>
71
+        /// 删除一条数据
72
+        /// </summary>
73
+        public bool DeleteList(string F_Idlist)
74
+        {
75
+            return dal.DeleteList(F_Idlist);
76
+        }
77
+        /// <summary>
78
+        /// 清除日志
79
+        /// </summary>
80
+        public int ClearLogs()
81
+        {
82
+            return dal.ClearLogs();
83
+        }
84
+        /// <summary>
85
+        /// 得到一个对象实体
86
+        /// </summary>
87
+        public XYFDRQ.Model.T_Sys_OperateLogs GetModel(int F_Id)
88
+        {
89
+
90
+            return dal.GetModel(F_Id);
91
+        }
92
+
93
+        /// <summary>
94
+        /// 获得数据列表
95
+        /// </summary>
96
+        public DataSet GetList(string strWhere)
97
+        {
98
+            return dal.GetList(strWhere);
99
+        }
100
+        /// <summary>
101
+        /// 获得前几行数据
102
+        /// </summary>
103
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
104
+        {
105
+            return dal.GetList(Top, strWhere, filedOrder);
106
+        }
107
+        /// <summary>
108
+        /// 获得数据列表
109
+        /// </summary>
110
+        public List<XYFDRQ.Model.T_Sys_OperateLogs> GetModelList(string strWhere)
111
+        {
112
+            DataSet ds = dal.GetList(strWhere);
113
+            return DataTableToList(ds.Tables[0]);
114
+        }
115
+        /// <summary>
116
+        /// 获得数据列表
117
+        /// </summary>
118
+        public List<XYFDRQ.Model.T_Sys_OperateLogs> DataTableToList(DataTable dt)
119
+        {
120
+            List<XYFDRQ.Model.T_Sys_OperateLogs> modelList = new List<XYFDRQ.Model.T_Sys_OperateLogs>();
121
+            int rowsCount = dt.Rows.Count;
122
+            if (rowsCount > 0)
123
+            {
124
+                XYFDRQ.Model.T_Sys_OperateLogs model;
125
+                for (int n = 0; n < rowsCount; n++)
126
+                {
127
+                    model = new XYFDRQ.Model.T_Sys_OperateLogs();
128
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
129
+                    {
130
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
131
+                    }
132
+                    if (dt.Rows[n]["F_OptBy"] != null && dt.Rows[n]["F_OptBy"].ToString() != "")
133
+                    {
134
+                        model.F_OptBy = int.Parse(dt.Rows[n]["F_OptBy"].ToString());
135
+                    }
136
+                    if (dt.Rows[n]["F_OptOn"] != null && dt.Rows[n]["F_OptOn"].ToString() != "")
137
+                    {
138
+                        model.F_OptOn = DateTime.Parse(dt.Rows[n]["F_OptOn"].ToString());
139
+                    }
140
+                    if (dt.Rows[n]["F_OptName"] != null && dt.Rows[n]["F_OptName"].ToString() != "")
141
+                    {
142
+                        model.F_OptName = dt.Rows[n]["F_OptName"].ToString();
143
+                    }
144
+                    if (dt.Rows[n]["F_ModuleId"] != null && dt.Rows[n]["F_ModuleId"].ToString() != "")
145
+                    {
146
+                        model.F_ModuleId = int.Parse(dt.Rows[n]["F_ModuleId"].ToString());
147
+                    }
148
+                    if (dt.Rows[n]["F_FunctionId"] != null && dt.Rows[n]["F_FunctionId"].ToString() != "")
149
+                    {
150
+                        model.F_FunctionId = int.Parse(dt.Rows[n]["F_FunctionId"].ToString());
151
+                    }
152
+                    if (dt.Rows[n]["F_FunctionItemId"] != null && dt.Rows[n]["F_FunctionItemId"].ToString() != "")
153
+                    {
154
+                        model.F_FunctionItemId = int.Parse(dt.Rows[n]["F_FunctionItemId"].ToString());
155
+                    }
156
+                    if (dt.Rows[n]["F_Descript"] != null && dt.Rows[n]["F_Descript"].ToString() != "")
157
+                    {
158
+                        model.F_Descript = dt.Rows[n]["F_Descript"].ToString();
159
+                    }
160
+                    if (dt.Rows[n]["F_DeletionStateCode"] != null && dt.Rows[n]["F_DeletionStateCode"].ToString() != "")
161
+                    {
162
+                        model.F_DeletionStateCode = int.Parse(dt.Rows[n]["F_DeletionStateCode"].ToString());
163
+                    }
164
+                    if (dt.Rows[n]["F_State"] != null && dt.Rows[n]["F_State"].ToString() != "")
165
+                    {
166
+                        model.F_State = int.Parse(dt.Rows[n]["F_State"].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
+}

+ 217 - 0
BLL/T_Sys_RegionCategory.cs

@@ -0,0 +1,217 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Sys_RegionCategory
10
+	/// </summary>
11
+	public partial class T_Sys_RegionCategory
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Sys_RegionCategory dal=new XYFDRQ.DAL.T_Sys_RegionCategory();
14
+		public T_Sys_RegionCategory()
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_RegionId)
30
+		{
31
+			return dal.Exists(F_RegionId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Sys_RegionCategory model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Sys_RegionCategory model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_RegionId)
54
+		{
55
+			
56
+			return dal.Delete(F_RegionId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_RegionIdlist )
62
+		{
63
+			return dal.DeleteList(F_RegionIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Sys_RegionCategory GetModel(int F_RegionId)
70
+		{
71
+			
72
+			return dal.GetModel(F_RegionId);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Sys_RegionCategory GetModelByCache(int F_RegionId)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Sys_RegionCategoryModel-" + F_RegionId;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(F_RegionId);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.T_Sys_RegionCategory)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<XYFDRQ.Model.T_Sys_RegionCategory> 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<XYFDRQ.Model.T_Sys_RegionCategory> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Sys_RegionCategory> modelList = new List<XYFDRQ.Model.T_Sys_RegionCategory>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Sys_RegionCategory model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Sys_RegionCategory();
134
+					if(dt.Rows[n]["F_RegionId"]!=null && dt.Rows[n]["F_RegionId"].ToString()!="")
135
+					{
136
+						model.F_RegionId=int.Parse(dt.Rows[n]["F_RegionId"].ToString());
137
+					}
138
+					if(dt.Rows[n]["F_AreaId"]!=null && dt.Rows[n]["F_AreaId"].ToString()!="")
139
+					{
140
+						model.F_AreaId=int.Parse(dt.Rows[n]["F_AreaId"].ToString());
141
+					}
142
+					if(dt.Rows[n]["F_RegionNumber"]!=null && dt.Rows[n]["F_RegionNumber"].ToString()!="")
143
+					{
144
+					model.F_RegionNumber=dt.Rows[n]["F_RegionNumber"].ToString();
145
+					}
146
+					if(dt.Rows[n]["F_RegionName"]!=null && dt.Rows[n]["F_RegionName"].ToString()!="")
147
+					{
148
+					model.F_RegionName=dt.Rows[n]["F_RegionName"].ToString();
149
+					}
150
+					if(dt.Rows[n]["F_RegionEName"]!=null && dt.Rows[n]["F_RegionEName"].ToString()!="")
151
+					{
152
+					model.F_RegionEName=dt.Rows[n]["F_RegionEName"].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_Layer"]!=null && dt.Rows[n]["F_Layer"].ToString()!="")
159
+					{
160
+						model.F_Layer=int.Parse(dt.Rows[n]["F_Layer"].ToString());
161
+					}
162
+					if(dt.Rows[n]["F_ParentId"]!=null && dt.Rows[n]["F_ParentId"].ToString()!="")
163
+					{
164
+						model.F_ParentId=int.Parse(dt.Rows[n]["F_ParentId"].ToString());
165
+					}
166
+					if(dt.Rows[n]["F_DeletionStateCode"]!=null && dt.Rows[n]["F_DeletionStateCode"].ToString()!="")
167
+					{
168
+						model.F_DeletionStateCode=int.Parse(dt.Rows[n]["F_DeletionStateCode"].ToString());
169
+					}
170
+					if(dt.Rows[n]["F_CreateBy"]!=null && dt.Rows[n]["F_CreateBy"].ToString()!="")
171
+					{
172
+						model.F_CreateBy=new Guid(dt.Rows[n]["F_CreateBy"].ToString());
173
+					}
174
+					if(dt.Rows[n]["F_CreateOn"]!=null && dt.Rows[n]["F_CreateOn"].ToString()!="")
175
+					{
176
+						model.F_CreateOn=DateTime.Parse(dt.Rows[n]["F_CreateOn"].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
+

+ 165 - 0
BLL/T_Sys_RoleAttribute.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
+using System.Collections;
7
+
8
+namespace XYFDRQ.BLL
9
+{
10
+    /// <summary>
11
+    /// T_Sys_RoleAttribute
12
+    /// </summary>
13
+    public class T_Sys_RoleAttribute
14
+    {
15
+        private readonly XYFDRQ.DAL.T_Sys_RoleAttribute dal = new XYFDRQ.DAL.T_Sys_RoleAttribute();
16
+        public T_Sys_RoleAttribute()
17
+        { }
18
+        #region  Method
19
+        /// <summary>
20
+        /// 是否存在该记录
21
+        /// </summary>
22
+        public bool Exists(int F_Id)
23
+        {
24
+            return dal.Exists(F_Id);
25
+        }
26
+
27
+        /// <summary>
28
+        /// 增加一条数据
29
+        /// </summary>
30
+        public int Add(XYFDRQ.Model.T_Sys_RoleAttribute model)
31
+        {
32
+            return dal.Add(model);
33
+        }
34
+
35
+        /// <summary>
36
+        /// 更新一条数据
37
+        /// </summary>
38
+        public bool Update(XYFDRQ.Model.T_Sys_RoleAttribute model)
39
+        {
40
+            return dal.Update(model);
41
+        }
42
+
43
+        /// <summary>
44
+        /// 删除一条数据
45
+        /// </summary>
46
+        public bool Delete(int F_Id)
47
+        {
48
+
49
+            return dal.Delete(F_Id);
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 XYFDRQ.Model.T_Sys_RoleAttribute GetModel(int F_Id)
63
+        {
64
+
65
+            return dal.GetModel(F_Id);
66
+        }
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 DataSet GetList(int Top, string strWhere, string filedOrder)
79
+        {
80
+            return dal.GetList(Top, strWhere, filedOrder);
81
+        }
82
+        /// <summary>
83
+        /// 获得数据列表
84
+        /// </summary>
85
+        public List<XYFDRQ.Model.T_Sys_RoleAttribute> GetModelList(string strWhere)
86
+        {
87
+            DataSet ds = dal.GetList(strWhere);
88
+            return DataTableToList(ds.Tables[0]);
89
+        }
90
+        /// <summary>
91
+        /// 获得数据列表
92
+        /// </summary>
93
+        public List<XYFDRQ.Model.T_Sys_RoleAttribute> DataTableToList(DataTable dt)
94
+        {
95
+            List<XYFDRQ.Model.T_Sys_RoleAttribute> modelList = new List<XYFDRQ.Model.T_Sys_RoleAttribute>();
96
+            int rowsCount = dt.Rows.Count;
97
+            if (rowsCount > 0)
98
+            {
99
+                XYFDRQ.Model.T_Sys_RoleAttribute model;
100
+                for (int n = 0; n < rowsCount; n++)
101
+                {
102
+                    model = new XYFDRQ.Model.T_Sys_RoleAttribute();
103
+                    if (dt.Rows[n]["F_Id"] != null && dt.Rows[n]["F_Id"].ToString() != "")
104
+                    {
105
+                        model.F_Id = int.Parse(dt.Rows[n]["F_Id"].ToString());
106
+                    }
107
+                    if (dt.Rows[n]["F_RoleId"] != null && dt.Rows[n]["F_RoleId"].ToString() != "")
108
+                    {
109
+                        model.F_RoleId = int.Parse(dt.Rows[n]["F_RoleId"].ToString());
110
+                    }
111
+                    if (dt.Rows[n]["F_DeptId"] != null && dt.Rows[n]["F_DeptId"].ToString() != "")
112
+                    {
113
+                        model.F_DeptId = int.Parse(dt.Rows[n]["F_DeptId"].ToString());
114
+                    }
115
+                    if (dt.Rows[n]["F_BaseTableName"] != null && dt.Rows[n]["F_BaseTableName"].ToString() != "")
116
+                    {
117
+                        model.F_BaseTableName = dt.Rows[n]["F_BaseTableName"].ToString();
118
+                    }
119
+                    if (dt.Rows[n]["F_Attributes"] != null && dt.Rows[n]["F_Attributes"].ToString() != "")
120
+                    {
121
+                        model.F_Attributes = dt.Rows[n]["F_Attributes"].ToString();
122
+                    }
123
+                    if (dt.Rows[n]["F_OptType"] != null && dt.Rows[n]["F_OptType"].ToString() != "")
124
+                    {
125
+                        model.F_OptType = dt.Rows[n]["F_OptType"].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
+
156
+        #region 事务添加用户信息权限
157
+
158
+        public int AddRoleAttribute(string roleid, string deptid, Hashtable ht, string optAuthority)
159
+        {
160
+            return dal.AddRoleAttribute(roleid, deptid, ht, optAuthority);
161
+        }
162
+        #endregion
163
+        #endregion  Method
164
+    }
165
+}

+ 134 - 0
BLL/T_Sys_RoleFunction.cs

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

+ 150 - 0
BLL/T_Sys_RoleInfo.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 XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_RoleInfo
11
+    /// </summary>
12
+    public partial class T_Sys_RoleInfo
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_RoleInfo dal = new XYFDRQ.DAL.T_Sys_RoleInfo();
15
+        public T_Sys_RoleInfo()
16
+        { }
17
+        #region  Method
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(XYFDRQ.Model.T_Sys_RoleInfo model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.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 XYFDRQ.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<XYFDRQ.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<XYFDRQ.Model.T_Sys_RoleInfo> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_RoleInfo> modelList = new List<XYFDRQ.Model.T_Sys_RoleInfo>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_RoleInfo model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_RoleInfo();
102
+                    if (dt.Rows[n]["F_RoleId"] != null && dt.Rows[n]["F_RoleId"].ToString() != "")
103
+                    {
104
+                        model.F_RoleId = int.Parse(dt.Rows[n]["F_RoleId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_RoleName"] != null && dt.Rows[n]["F_RoleName"].ToString() != "")
107
+                    {
108
+                        model.F_RoleName = dt.Rows[n]["F_RoleName"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_RoleCode"] != null && dt.Rows[n]["F_RoleCode"].ToString() != "")
111
+                    {
112
+                        model.F_RoleCode = dt.Rows[n]["F_RoleCode"].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
+                    modelList.Add(model);
119
+                }
120
+            }
121
+            return modelList;
122
+        }
123
+
124
+        /// <summary>
125
+        /// 获得数据列表
126
+        /// </summary>
127
+        public DataSet GetAllList()
128
+        {
129
+            return GetList("");
130
+        }
131
+
132
+        /// <summary>
133
+        /// 使用事务删除角色及权限
134
+        /// </summary>
135
+        public int DelRole(string roleId)
136
+        {
137
+            return dal.DelRole(roleId);
138
+        }      
139
+
140
+        /// <summary>
141
+        /// 使用事务保存角色权限
142
+        /// </summary>
143
+        public int AddRoleAuthority(string roleId, string[] moduleIds, string[] functionIds, string[] optIds)
144
+        {
145
+            return dal.AddRoleAuthority(roleId, moduleIds, functionIds, optIds);
146
+        }
147
+
148
+        #endregion  Method
149
+    }
150
+}

+ 127 - 0
BLL/T_Sys_RoleModule.cs

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

+ 134 - 0
BLL/T_Sys_RoleOpt.cs

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

+ 156 - 0
BLL/T_Sys_SystemConfig.cs

@@ -0,0 +1,156 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_SystemConfig
11
+    /// </summary>
12
+    public partial class T_Sys_SystemConfig
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_SystemConfig dal = new XYFDRQ.DAL.T_Sys_SystemConfig();
15
+        public T_Sys_SystemConfig()
16
+        { }
17
+        #region  Method
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(XYFDRQ.Model.T_Sys_SystemConfig model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.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 XYFDRQ.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<XYFDRQ.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<XYFDRQ.Model.T_Sys_SystemConfig> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_SystemConfig> modelList = new List<XYFDRQ.Model.T_Sys_SystemConfig>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_SystemConfig model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_SystemConfig();
102
+                    if (dt.Rows[n]["F_ParamId"] != null && dt.Rows[n]["F_ParamId"].ToString() != "")
103
+                    {
104
+                        model.F_ParamId = int.Parse(dt.Rows[n]["F_ParamId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_ParamCode"] != null && dt.Rows[n]["F_ParamCode"].ToString() != "")
107
+                    {
108
+                        model.F_ParamCode = dt.Rows[n]["F_ParamCode"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_ParamValue"] != null && dt.Rows[n]["F_ParamValue"].ToString() != "")
111
+                    {
112
+                        model.F_ParamValue = dt.Rows[n]["F_ParamValue"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_ParamDes"] != null && dt.Rows[n]["F_ParamDes"].ToString() != "")
115
+                    {
116
+                        model.F_ParamDes = dt.Rows[n]["F_ParamDes"].ToString();
117
+                    }
118
+                    if (dt.Rows[n]["F_State"] != null && dt.Rows[n]["F_State"].ToString() != "")
119
+                    {
120
+                        model.F_State = int.Parse(dt.Rows[n]["F_State"].ToString());
121
+                    }
122
+                    modelList.Add(model);
123
+                }
124
+            }
125
+            return modelList;
126
+        }
127
+
128
+        /// <summary>
129
+        /// 获得数据列表
130
+        /// </summary>
131
+        public DataSet GetAllList()
132
+        {
133
+            return GetList("");
134
+        }
135
+
136
+        /// <summary>
137
+        /// 分页获取数据列表
138
+        /// </summary>
139
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
140
+        //{
141
+        //return dal.GetList(PageSize,PageIndex,strWhere);
142
+        //}
143
+
144
+        #endregion  Method
145
+
146
+         /// <summary>
147
+        /// 根据编号获取值
148
+        /// </summary>
149
+       /// <param name="p_ParamCode">编号</param>
150
+       /// <returns></returns>
151
+        public string GetParamValueByParamCode(string p_ParamCode)
152
+        {
153
+            return dal.GetParamValueByParamCode(p_ParamCode);
154
+        }
155
+    }
156
+}

+ 161 - 0
BLL/T_Sys_TelTitleData.cs

@@ -0,0 +1,161 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_TelTitleData
11
+    /// </summary>
12
+    public partial class T_Sys_TelTitleData
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_TelTitleData dal = new XYFDRQ.DAL.T_Sys_TelTitleData();
15
+        public T_Sys_TelTitleData()
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(XYFDRQ.Model.T_Sys_TelTitleData model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.Model.T_Sys_TelTitleData 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 XYFDRQ.Model.T_Sys_TelTitleData 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<XYFDRQ.Model.T_Sys_TelTitleData> 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<XYFDRQ.Model.T_Sys_TelTitleData> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_TelTitleData> modelList = new List<XYFDRQ.Model.T_Sys_TelTitleData>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_TelTitleData model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_TelTitleData();
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_TitleName"] != null && dt.Rows[n]["F_TitleName"].ToString() != "")
107
+                    {
108
+                        model.F_TitleName = dt.Rows[n]["F_TitleName"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_KeyPhoneNum"] != null && dt.Rows[n]["F_KeyPhoneNum"].ToString() != "")
111
+                    {
112
+                        model.F_KeyPhoneNum = dt.Rows[n]["F_KeyPhoneNum"].ToString();
113
+                    }
114
+                    if (dt.Rows[n]["F_DefPhoneNumLen"] != null && dt.Rows[n]["F_DefPhoneNumLen"].ToString() != "")
115
+                    {
116
+                        model.F_DefPhoneNumLen = int.Parse(dt.Rows[n]["F_DefPhoneNumLen"].ToString());
117
+                    }
118
+                    if (dt.Rows[n]["F_WCode"] != null && dt.Rows[n]["F_WCode"].ToString() != "")
119
+                    {
120
+                        model.F_WCode = dt.Rows[n]["F_WCode"].ToString();
121
+                    }
122
+                    modelList.Add(model);
123
+                }
124
+            }
125
+            return modelList;
126
+        }
127
+
128
+        /// <summary>
129
+        /// 获得数据列表
130
+        /// </summary>
131
+        public DataSet GetAllList()
132
+        {
133
+            return GetList("");
134
+        }
135
+
136
+        /// <summary>
137
+        /// 分页获取数据列表
138
+        /// </summary>
139
+        public int GetRecordCount(string strWhere)
140
+        {
141
+            return dal.GetRecordCount(strWhere);
142
+        }
143
+        /// <summary>
144
+        /// 分页获取数据列表
145
+        /// </summary>
146
+        public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
147
+        {
148
+            return dal.GetListByPage(strWhere, orderby, startIndex, endIndex);
149
+        }
150
+        /// <summary>
151
+        /// 分页获取数据列表
152
+        /// </summary>
153
+        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
154
+        //{
155
+        //return dal.GetList(PageSize,PageIndex,strWhere);
156
+        //}
157
+
158
+        #endregion  Method
159
+    }
160
+}
161
+

+ 400 - 0
BLL/T_Sys_UserAccount.cs

@@ -0,0 +1,400 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using Maticsoft.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// T_Sys_UserAccount
10
+	/// </summary>
11
+	public partial class T_Sys_UserAccount
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Sys_UserAccount dal=new XYFDRQ.DAL.T_Sys_UserAccount();
14
+		public T_Sys_UserAccount()
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_UserId)
30
+		{
31
+			return dal.Exists(F_UserId);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public int  Add(XYFDRQ.Model.T_Sys_UserAccount model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.T_Sys_UserAccount model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int F_UserId)
54
+		{
55
+			
56
+			return dal.Delete(F_UserId);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string F_UserIdlist )
62
+		{
63
+			return dal.DeleteList(F_UserIdlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.T_Sys_UserAccount GetModel(int F_UserId)
70
+		{
71
+			
72
+			return dal.GetModel(F_UserId);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.T_Sys_UserAccount GetModelByCache(int F_UserId)
79
+        //{
80
+			
81
+        //    string CacheKey = "T_Sys_UserAccountModel-" + F_UserId;
82
+        //    object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(F_UserId);
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 (XYFDRQ.Model.T_Sys_UserAccount)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<XYFDRQ.Model.T_Sys_UserAccount> 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<XYFDRQ.Model.T_Sys_UserAccount> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.T_Sys_UserAccount> modelList = new List<XYFDRQ.Model.T_Sys_UserAccount>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.T_Sys_UserAccount model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = new XYFDRQ.Model.T_Sys_UserAccount();
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_UserCode"]!=null && dt.Rows[n]["F_UserCode"].ToString()!="")
139
+					{
140
+					model.F_UserCode=dt.Rows[n]["F_UserCode"].ToString();
141
+					}
142
+					if(dt.Rows[n]["F_Password"]!=null && dt.Rows[n]["F_Password"].ToString()!="")
143
+					{
144
+					model.F_Password=dt.Rows[n]["F_Password"].ToString();
145
+					}
146
+					if(dt.Rows[n]["F_ExtensionNumber"]!=null && dt.Rows[n]["F_ExtensionNumber"].ToString()!="")
147
+					{
148
+					model.F_ExtensionNumber=dt.Rows[n]["F_ExtensionNumber"].ToString();
149
+					}
150
+					if(dt.Rows[n]["F_UserName"]!=null && dt.Rows[n]["F_UserName"].ToString()!="")
151
+					{
152
+					model.F_UserName=dt.Rows[n]["F_UserName"].ToString();
153
+					}
154
+					if(dt.Rows[n]["F_DeptId"]!=null && dt.Rows[n]["F_DeptId"].ToString()!="")
155
+					{
156
+						model.F_DeptId=int.Parse(dt.Rows[n]["F_DeptId"].ToString());
157
+					}
158
+					if(dt.Rows[n]["F_RoleId"]!=null && dt.Rows[n]["F_RoleId"].ToString()!="")
159
+					{
160
+						model.F_RoleId=int.Parse(dt.Rows[n]["F_RoleId"].ToString());
161
+					}
162
+					if(dt.Rows[n]["F_GroupId"]!=null && dt.Rows[n]["F_GroupId"].ToString()!="")
163
+					{
164
+						model.F_GroupId=int.Parse(dt.Rows[n]["F_GroupId"].ToString());
165
+					}
166
+					if(dt.Rows[n]["F_SeatFlag"]!=null && dt.Rows[n]["F_SeatFlag"].ToString()!="")
167
+					{
168
+						if((dt.Rows[n]["F_SeatFlag"].ToString()=="1")||(dt.Rows[n]["F_SeatFlag"].ToString().ToLower()=="true"))
169
+						{
170
+						model.F_SeatFlag=true;
171
+						}
172
+						else
173
+						{
174
+							model.F_SeatFlag=false;
175
+						}
176
+					}
177
+					if(dt.Rows[n]["F_SeatRight"]!=null && dt.Rows[n]["F_SeatRight"].ToString()!="")
178
+					{
179
+					model.F_SeatRight=dt.Rows[n]["F_SeatRight"].ToString();
180
+					}
181
+					if(dt.Rows[n]["F_SeatLevel"]!=null && dt.Rows[n]["F_SeatLevel"].ToString()!="")
182
+					{
183
+					model.F_SeatLevel=dt.Rows[n]["F_SeatLevel"].ToString();
184
+					}
185
+					if(dt.Rows[n]["F_SexFlag"]!=null && dt.Rows[n]["F_SexFlag"].ToString()!="")
186
+					{
187
+					model.F_SexFlag=dt.Rows[n]["F_SexFlag"].ToString();
188
+					}
189
+					if(dt.Rows[n]["F_RemindFlag"]!=null && dt.Rows[n]["F_RemindFlag"].ToString()!="")
190
+					{
191
+						if((dt.Rows[n]["F_RemindFlag"].ToString()=="1")||(dt.Rows[n]["F_RemindFlag"].ToString().ToLower()=="true"))
192
+						{
193
+						model.F_RemindFlag=true;
194
+						}
195
+						else
196
+						{
197
+							model.F_RemindFlag=false;
198
+						}
199
+					}
200
+					if(dt.Rows[n]["F_Remark"]!=null && dt.Rows[n]["F_Remark"].ToString()!="")
201
+					{
202
+					model.F_Remark=dt.Rows[n]["F_Remark"].ToString();
203
+					}
204
+					if(dt.Rows[n]["F_Telephone"]!=null && dt.Rows[n]["F_Telephone"].ToString()!="")
205
+					{
206
+					model.F_Telephone=dt.Rows[n]["F_Telephone"].ToString();
207
+					}
208
+					if(dt.Rows[n]["F_Mobile"]!=null && dt.Rows[n]["F_Mobile"].ToString()!="")
209
+					{
210
+					model.F_Mobile=dt.Rows[n]["F_Mobile"].ToString();
211
+					}
212
+					if(dt.Rows[n]["F_HomePhone"]!=null && dt.Rows[n]["F_HomePhone"].ToString()!="")
213
+					{
214
+					model.F_HomePhone=dt.Rows[n]["F_HomePhone"].ToString();
215
+					}
216
+					if(dt.Rows[n]["F_Email"]!=null && dt.Rows[n]["F_Email"].ToString()!="")
217
+					{
218
+					model.F_Email=dt.Rows[n]["F_Email"].ToString();
219
+					}
220
+					if(dt.Rows[n]["F_Birthday"]!=null && dt.Rows[n]["F_Birthday"].ToString()!="")
221
+					{
222
+						model.F_Birthday=DateTime.Parse(dt.Rows[n]["F_Birthday"].ToString());
223
+					}
224
+					if(dt.Rows[n]["F_Address"]!=null && dt.Rows[n]["F_Address"].ToString()!="")
225
+					{
226
+					model.F_Address=dt.Rows[n]["F_Address"].ToString();
227
+					}
228
+					if(dt.Rows[n]["F_CreateOn"]!=null && dt.Rows[n]["F_CreateOn"].ToString()!="")
229
+					{
230
+						model.F_CreateOn=DateTime.Parse(dt.Rows[n]["F_CreateOn"].ToString());
231
+					}
232
+					if(dt.Rows[n]["F_CancelOn"]!=null && dt.Rows[n]["F_CancelOn"].ToString()!="")
233
+					{
234
+						model.F_CancelOn=DateTime.Parse(dt.Rows[n]["F_CancelOn"].ToString());
235
+					}
236
+					if(dt.Rows[n]["F_OnFlag"]!=null && dt.Rows[n]["F_OnFlag"].ToString()!="")
237
+					{
238
+						if((dt.Rows[n]["F_OnFlag"].ToString()=="1")||(dt.Rows[n]["F_OnFlag"].ToString().ToLower()=="true"))
239
+						{
240
+						model.F_OnFlag=true;
241
+						}
242
+						else
243
+						{
244
+							model.F_OnFlag=false;
245
+						}
246
+					}
247
+					if(dt.Rows[n]["F_StateFlag"]!=null && dt.Rows[n]["F_StateFlag"].ToString()!="")
248
+					{
249
+						if((dt.Rows[n]["F_StateFlag"].ToString()=="1")||(dt.Rows[n]["F_StateFlag"].ToString().ToLower()=="true"))
250
+						{
251
+						model.F_StateFlag=true;
252
+						}
253
+						else
254
+						{
255
+							model.F_StateFlag=false;
256
+						}
257
+					}
258
+					if(dt.Rows[n]["F_DeleteFlag"]!=null && dt.Rows[n]["F_DeleteFlag"].ToString()!="")
259
+					{
260
+						model.F_DeleteFlag=int.Parse(dt.Rows[n]["F_DeleteFlag"].ToString());
261
+					}
262
+					if(dt.Rows[n]["F_APPOnFlag"]!=null && dt.Rows[n]["F_APPOnFlag"].ToString()!="")
263
+					{
264
+						if((dt.Rows[n]["F_APPOnFlag"].ToString()=="1")||(dt.Rows[n]["F_APPOnFlag"].ToString().ToLower()=="true"))
265
+						{
266
+						model.F_APPOnFlag=true;
267
+						}
268
+						else
269
+						{
270
+							model.F_APPOnFlag=false;
271
+						}
272
+					}
273
+					if(dt.Rows[n]["F_LastActiveTime"]!=null && dt.Rows[n]["F_LastActiveTime"].ToString()!="")
274
+					{
275
+						model.F_LastActiveTime=DateTime.Parse(dt.Rows[n]["F_LastActiveTime"].ToString());
276
+					}
277
+					if(dt.Rows[n]["F_IsShow"]!=null && dt.Rows[n]["F_IsShow"].ToString()!="")
278
+					{
279
+						if((dt.Rows[n]["F_IsShow"].ToString()=="1")||(dt.Rows[n]["F_IsShow"].ToString().ToLower()=="true"))
280
+						{
281
+						model.F_IsShow=true;
282
+						}
283
+						else
284
+						{
285
+							model.F_IsShow=false;
286
+						}
287
+					}
288
+					if(dt.Rows[n]["F_Pic"]!=null && dt.Rows[n]["F_Pic"].ToString()!="")
289
+					{
290
+					model.F_Pic=dt.Rows[n]["F_Pic"].ToString();
291
+					}
292
+					if(dt.Rows[n]["F_IsSystemUser"]!=null && dt.Rows[n]["F_IsSystemUser"].ToString()!="")
293
+					{
294
+						if((dt.Rows[n]["F_IsSystemUser"].ToString()=="1")||(dt.Rows[n]["F_IsSystemUser"].ToString().ToLower()=="true"))
295
+						{
296
+						model.F_IsSystemUser=true;
297
+						}
298
+						else
299
+						{
300
+							model.F_IsSystemUser=false;
301
+						}
302
+					}
303
+					modelList.Add(model);
304
+				}
305
+			}
306
+			return modelList;
307
+		}
308
+
309
+		/// <summary>
310
+		/// 获得数据列表
311
+		/// </summary>
312
+		public DataSet GetAllList()
313
+		{
314
+			return GetList("");
315
+		}
316
+
317
+		/// <summary>
318
+		/// 分页获取数据列表
319
+		/// </summary>
320
+		public int GetRecordCount(string strWhere)
321
+		{
322
+			return dal.GetRecordCount(strWhere);
323
+		}
324
+		/// <summary>
325
+		/// 分页获取数据列表
326
+		/// </summary>
327
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
328
+		{
329
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
330
+		}
331
+		/// <summary>
332
+		/// 分页获取数据列表
333
+		/// </summary>
334
+		//public DataSet GetList(int PageSize,int PageIndex,string strWhere)
335
+		//{
336
+			//return dal.GetList(PageSize,PageIndex,strWhere);
337
+		//}
338
+
339
+		#endregion  Method
340
+
341
+        #region 二次添加代码
342
+        
343
+      
344
+
345
+        /// <summary>
346
+        /// 修改一条数据
347
+        /// </summary>
348
+        public bool UpdateUserState(int F_UserId, bool F_StateFlag)
349
+        {
350
+
351
+            return dal.UpdateUserState(F_UserId, F_StateFlag);
352
+
353
+        }
354
+
355
+        /// <summary>
356
+        /// 根据编号得到一个对象实体
357
+        /// </summary>
358
+        public XYFDRQ.Model.T_Sys_UserAccount GetModelByUserCode(string F_UserCode)
359
+        {
360
+            return dal.GetModelByUserCode(F_UserCode);
361
+        }
362
+
363
+        /// <summary>
364
+        /// 根据部门id获取部门名称
365
+        /// </summary>
366
+        /// <param name="id"></param>
367
+        /// <returns></returns>
368
+        public string GetUserNameByUserId(object UserId)
369
+        {
370
+            string userName = string.Empty;
371
+            if (UserId != null && !string.IsNullOrEmpty(UserId.ToString()))
372
+            {
373
+                XYFDRQ.Model.T_Sys_UserAccount model_T_Sys_UserAccount = GetModel(Convert.ToInt32(UserId));
374
+                if (model_T_Sys_UserAccount != null)
375
+                {
376
+                    userName = model_T_Sys_UserAccount.F_UserName;
377
+                }
378
+            }
379
+            return userName;
380
+        }
381
+
382
+        /// <summary>
383
+        /// 更新用户在线状态
384
+        /// </summary>
385
+        public bool UpdateFlag(int F_UserId, bool F_OnFlag)
386
+        {
387
+            return dal.UpdateFlag(F_UserId, F_OnFlag);
388
+        }  
389
+
390
+        /// <summary>
391
+        /// 根据条件判断是否存在信息
392
+        /// </summary>
393
+        public bool IsExistsByCondition(string condition)
394
+        {
395
+            return dal.IsExistsByCondition(condition);
396
+        }
397
+        #endregion
398
+	}
399
+}
400
+

+ 142 - 0
BLL/T_Sys_UserGroup.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 XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_UserGroup
11
+    /// </summary>
12
+    public partial class T_Sys_UserGroup
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_UserGroup dal = new XYFDRQ.DAL.T_Sys_UserGroup();
15
+        public T_Sys_UserGroup()
16
+        { }
17
+        #region  Method
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(XYFDRQ.Model.T_Sys_UserGroup model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(XYFDRQ.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 XYFDRQ.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<XYFDRQ.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<XYFDRQ.Model.T_Sys_UserGroup> DataTableToList(DataTable dt)
93
+        {
94
+            List<XYFDRQ.Model.T_Sys_UserGroup> modelList = new List<XYFDRQ.Model.T_Sys_UserGroup>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                XYFDRQ.Model.T_Sys_UserGroup model;
99
+                for (int n = 0; n < rowsCount; n++)
100
+                {
101
+                    model = new XYFDRQ.Model.T_Sys_UserGroup();
102
+                    if (dt.Rows[n]["F_GroupId"] != null && dt.Rows[n]["F_GroupId"].ToString() != "")
103
+                    {
104
+                        model.F_GroupId = int.Parse(dt.Rows[n]["F_GroupId"].ToString());
105
+                    }
106
+                    if (dt.Rows[n]["F_GroupName"] != null && dt.Rows[n]["F_GroupName"].ToString() != "")
107
+                    {
108
+                        model.F_GroupName = dt.Rows[n]["F_GroupName"].ToString();
109
+                    }
110
+                    if (dt.Rows[n]["F_GroupCode"] != null && dt.Rows[n]["F_GroupCode"].ToString() != "")
111
+                    {
112
+                        model.F_GroupCode = dt.Rows[n]["F_GroupCode"].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
+                    modelList.Add(model);
119
+                }
120
+            }
121
+            return modelList;
122
+        }
123
+
124
+        /// <summary>
125
+        /// 获得数据列表
126
+        /// </summary>
127
+        public DataSet GetAllList()
128
+        {
129
+            return GetList("");
130
+        }
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  Method
141
+    }
142
+}

+ 144 - 0
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 XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_WorkCalendar
11
+    /// </summary>
12
+    public partial class T_Sys_WorkCalendar
13
+    {
14
+        private readonly DAL.T_Sys_WorkCalendar dal = new 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(Model.T_Sys_WorkCalendar model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 更新一条数据
36
+        /// </summary>
37
+        public bool Update(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 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<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<Model.T_Sys_WorkCalendar> DataTableToList(DataTable dt)
93
+        {
94
+            List<Model.T_Sys_WorkCalendar> modelList = new List<Model.T_Sys_WorkCalendar>();
95
+            int rowsCount = dt.Rows.Count;
96
+            if (rowsCount > 0)
97
+            {
98
+                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
+}

+ 115 - 0
BLL/T_SystemConfig.cs

@@ -0,0 +1,115 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Model;
5
+namespace XYFDRQ.BLL
6
+{
7
+    /// <summary>
8
+    /// T_SystemConfig
9
+    /// </summary>
10
+    public partial class T_SystemConfig
11
+    {
12
+        private readonly XYFDRQ.DAL.T_SystemConfig dal = new XYFDRQ.DAL.T_SystemConfig();
13
+        public T_SystemConfig()
14
+        { }
15
+        #region  Method
16
+        /// <summary>
17
+        /// 是否存在该记录
18
+        /// </summary>
19
+        public bool Exists(int F_ParamId)
20
+        {
21
+            return dal.Exists(F_ParamId);
22
+        }
23
+
24
+        /// <summary>
25
+        /// 增加一条数据
26
+        /// </summary>
27
+        public int Add(XYFDRQ.Model.T_SystemConfig model)
28
+        {
29
+            return dal.Add(model);
30
+        }
31
+
32
+        /// <summary>
33
+        /// 得到一个对象实体
34
+        /// </summary>
35
+        public XYFDRQ.Model.T_SystemConfig GetModel(int F_ParamId)
36
+        {
37
+
38
+            return dal.GetModel(F_ParamId);
39
+        }
40
+
41
+        /// <summary>
42
+        /// 获得数据列表
43
+        /// </summary>
44
+        public DataSet GetList(string strWhere)
45
+        {
46
+            return dal.GetList(strWhere);
47
+        }
48
+        /// <summary>
49
+        /// 获得前几行数据
50
+        /// </summary>
51
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
52
+        {
53
+            return dal.GetList(Top, strWhere, filedOrder);
54
+        }
55
+        /// <summary>
56
+        /// 获得数据列表
57
+        /// </summary>
58
+        public List<XYFDRQ.Model.T_SystemConfig> GetModelList(string strWhere)
59
+        {
60
+            DataSet ds = dal.GetList(strWhere);
61
+            return DataTableToList(ds.Tables[0]);
62
+        }
63
+        /// <summary>
64
+        /// 获得数据列表
65
+        /// </summary>
66
+        public List<XYFDRQ.Model.T_SystemConfig> DataTableToList(DataTable dt)
67
+        {
68
+            List<XYFDRQ.Model.T_SystemConfig> modelList = new List<XYFDRQ.Model.T_SystemConfig>();
69
+            int rowsCount = dt.Rows.Count;
70
+            if (rowsCount > 0)
71
+            {
72
+                XYFDRQ.Model.T_SystemConfig model;
73
+                for (int n = 0; n < rowsCount; n++)
74
+                {
75
+                    model = new XYFDRQ.Model.T_SystemConfig();
76
+                    if (dt.Rows[n]["F_ParamId"] != null && dt.Rows[n]["F_ParamId"].ToString() != "")
77
+                    {
78
+                        model.F_ParamId = int.Parse(dt.Rows[n]["F_ParamId"].ToString());
79
+                    }
80
+                    if (dt.Rows[n]["F_ParamCode"] != null && dt.Rows[n]["F_ParamCode"].ToString() != "")
81
+                    {
82
+                        model.F_ParamCode = dt.Rows[n]["F_ParamCode"].ToString();
83
+                    }
84
+                    if (dt.Rows[n]["F_ParamValue"] != null && dt.Rows[n]["F_ParamValue"].ToString() != "")
85
+                    {
86
+                        model.F_ParamValue = dt.Rows[n]["F_ParamValue"].ToString();
87
+                    }
88
+                    if (dt.Rows[n]["F_ParamDes"] != null && dt.Rows[n]["F_ParamDes"].ToString() != "")
89
+                    {
90
+                        model.F_ParamDes = dt.Rows[n]["F_ParamDes"].ToString();
91
+                    }
92
+                    if (dt.Rows[n]["F_State"] != null && dt.Rows[n]["F_State"].ToString() != "")
93
+                    {
94
+                        model.F_State = int.Parse(dt.Rows[n]["F_State"].ToString());
95
+                    }
96
+                    modelList.Add(model);
97
+                }
98
+            }
99
+            return modelList;
100
+        }
101
+
102
+        /// <summary>
103
+        /// 获得数据列表
104
+        /// </summary>
105
+        public DataSet GetAllList()
106
+        {
107
+            return GetList("");
108
+        }
109
+
110
+     
111
+
112
+        #endregion  Method
113
+    }
114
+}
115
+

+ 33 - 0
BLL/WebSet.cs

@@ -0,0 +1,33 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Text;
4
+
5
+
6
+namespace XYFDRQ.BLL
7
+{
8
+    public class WebSet
9
+    {
10
+        private readonly XYFDRQ.DAL.WebSet dal = new XYFDRQ.DAL.WebSet();
11
+
12
+        /// <summary>
13
+        ///  读取配置文件
14
+        /// </summary>
15
+        /// <param name="configFilePath"></param>
16
+        /// <returns></returns>
17
+        public XYFDRQ.Model.WebSet loadConfig(string configFilePath)
18
+        {
19
+            return dal.loadConfig(configFilePath);
20
+        }
21
+
22
+        /// <summary>
23
+        ///  保存配置文件
24
+        /// </summary>
25
+        /// <param name="mode"></param>
26
+        /// <param name="configFilePath"></param>
27
+        /// <returns></returns>
28
+        public XYFDRQ.Model.WebSet saveConifg(XYFDRQ.Model.WebSet mode, string configFilePath)
29
+        {
30
+            return dal.saveConifg(mode, configFilePath);
31
+        }
32
+    }
33
+}

BIN
BLL/bin/Debug/AjaxPro.2.dll


BIN
BLL/bin/Debug/XYFDRQ.BLL.dll


BIN
BLL/bin/Debug/XYFDRQ.BLL.pdb


BIN
BLL/bin/Debug/XYFDRQ.Common.dll


BIN
BLL/bin/Debug/XYFDRQ.Common.pdb


BIN
BLL/bin/Debug/XYFDRQ.DAL.dll


BIN
BLL/bin/Debug/XYFDRQ.DAL.pdb


BIN
BLL/bin/Debug/XYFDRQ.DBUtility.dll


BIN
BLL/bin/Debug/XYFDRQ.DBUtility.pdb


BIN
BLL/bin/Debug/XYFDRQ.Model.dll


BIN
BLL/bin/Debug/XYFDRQ.Model.pdb


BIN
BLL/bin/Release/AjaxPro.2.dll


BIN
BLL/bin/Release/XYFDRQ.BLL.dll


BIN
BLL/bin/Release/XYFDRQ.BLL.pdb


BIN
BLL/bin/Release/XYFDRQ.Common.dll


BIN
BLL/bin/Release/XYFDRQ.Common.pdb


BIN
BLL/bin/Release/XYFDRQ.DAL.dll


BIN
BLL/bin/Release/XYFDRQ.DAL.pdb


BIN
BLL/bin/Release/XYFDRQ.DBUtility.dll


BIN
BLL/bin/Release/XYFDRQ.DBUtility.pdb


BIN
BLL/bin/Release/XYFDRQ.Model.dll


BIN
BLL/bin/Release/XYFDRQ.Model.pdb


+ 182 - 0
BLL/obj/Debug/BLL.csproj.FileListAbsolute.txt

@@ -0,0 +1,182 @@
1
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.BLL.dll
2
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.BLL.pdb
3
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.Common.dll
4
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.DAL.dll
5
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.dll
6
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.Model.dll
7
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\AjaxPro.2.dll
8
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.Model.pdb
9
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.DAL.pdb
10
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.Common.pdb
11
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
12
+G:\信阳富地燃气\Code\NewCode\BLL\obj\Debug\ResolveAssemblyReference.cache
13
+G:\信阳富地燃气\Code\NewCode\BLL\obj\Debug\XYFDRQ.BLL.dll
14
+G:\信阳富地燃气\Code\NewCode\BLL\obj\Debug\XYFDRQ.BLL.pdb
15
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.BLL.dll
16
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.BLL.pdb
17
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.Common.dll
18
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.DAL.dll
19
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.dll
20
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.Model.dll
21
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\AjaxPro.2.dll
22
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.DAL.pdb
23
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.Common.pdb
24
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
25
+C:\Users\Administrator\Desktop\NewCode\BLL\bin\Debug\XYFDRQ.Model.pdb
26
+C:\Users\Administrator\Desktop\NewCode\BLL\obj\Debug\ResolveAssemblyReference.cache
27
+C:\Users\Administrator\Desktop\NewCode\BLL\obj\Debug\XYFDRQ.BLL.dll
28
+C:\Users\Administrator\Desktop\NewCode\BLL\obj\Debug\XYFDRQ.BLL.pdb
29
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.BLL.dll
30
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.BLL.pdb
31
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.Common.dll
32
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.DAL.dll
33
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.dll
34
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.Model.dll
35
+F:\单迪楠文件\NewCode\BLL\bin\Debug\AjaxPro.2.dll
36
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.DAL.pdb
37
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.Common.pdb
38
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
39
+F:\单迪楠文件\NewCode\BLL\bin\Debug\XYFDRQ.Model.pdb
40
+F:\单迪楠文件\NewCode\BLL\obj\Debug\ResolveAssemblyReference.cache
41
+F:\单迪楠文件\NewCode\BLL\obj\Debug\XYFDRQ.BLL.dll
42
+F:\单迪楠文件\NewCode\BLL\obj\Debug\XYFDRQ.BLL.pdb
43
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.BLL.dll
44
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.BLL.pdb
45
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.Common.dll
46
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.DAL.dll
47
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.dll
48
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.Model.dll
49
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\AjaxPro.2.dll
50
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.DAL.pdb
51
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.Common.pdb
52
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
53
+F:\薛广兴文件不敢删\NewCode\BLL\bin\Debug\XYFDRQ.Model.pdb
54
+F:\薛广兴文件不敢删\NewCode\BLL\obj\Debug\ResolveAssemblyReference.cache
55
+F:\薛广兴文件不敢删\NewCode\BLL\obj\Debug\XYFDRQ.BLL.dll
56
+F:\薛广兴文件不敢删\NewCode\BLL\obj\Debug\XYFDRQ.BLL.pdb
57
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.BLL.dll
58
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.BLL.pdb
59
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.Common.dll
60
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.DAL.dll
61
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.DBUtility.dll
62
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.Model.dll
63
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\AjaxPro.2.dll
64
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.DAL.pdb
65
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.Common.pdb
66
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
67
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\bin\Debug\XYFDRQ.Model.pdb
68
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\obj\Debug\ResolveAssemblyReference.cache
69
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\obj\Debug\XYFDRQ.BLL.dll
70
+E:\work\工作\信阳富地燃气\程序\XYFDRQCallCenterV2\BLL\obj\Debug\XYFDRQ.BLL.pdb
71
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.BLL.dll
72
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.BLL.pdb
73
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Common.dll
74
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DAL.dll
75
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DBUtility.dll
76
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Model.dll
77
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\AjaxPro.2.dll
78
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Model.pdb
79
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DAL.pdb
80
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Common.pdb
81
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
82
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\obj\Debug\ResolveAssemblyReference.cache
83
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\obj\Debug\XYFDRQ.BLL.dll
84
+E:\work\工作\濮阳市12329客户服务中心\软件\程序\HouseFundCallCenterV1\BLL\obj\Debug\XYFDRQ.BLL.pdb
85
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.BLL.dll
86
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.BLL.pdb
87
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Common.dll
88
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DAL.dll
89
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DBUtility.dll
90
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Model.dll
91
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\AjaxPro.2.dll
92
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DAL.pdb
93
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Common.pdb
94
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
95
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Model.pdb
96
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\obj\Debug\ResolveAssemblyReference.cache
97
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\obj\Debug\XYFDRQ.BLL.dll
98
+E:\work\工作\住房公积金12329热线-濮阳\软件\程序\HouseFundCallCenterV1\BLL\obj\Debug\XYFDRQ.BLL.pdb
99
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.BLL.dll
100
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.BLL.pdb
101
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Common.dll
102
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DAL.dll
103
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DBUtility.dll
104
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Model.dll
105
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\AjaxPro.2.dll
106
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DAL.pdb
107
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Common.pdb
108
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
109
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\bin\Debug\XYFDRQ.Model.pdb
110
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\obj\Debug\ResolveAssemblyReference.cache
111
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\obj\Debug\XYFDRQ.BLL.dll
112
+E:\work\工作\住房公积金12329热线-信阳\软件\HouseFundCallCenterV1\BLL\obj\Debug\XYFDRQ.BLL.pdb
113
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.BLL.dll
114
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.BLL.pdb
115
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.Common.dll
116
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.DAL.dll
117
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.DBUtility.dll
118
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.Model.dll
119
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\AjaxPro.2.dll
120
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.DAL.pdb
121
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.Common.pdb
122
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
123
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\bin\Debug\XYFDRQ.Model.pdb
124
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\obj\Debug\ResolveAssemblyReference.cache
125
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\obj\Debug\XYFDRQ.BLL.dll
126
+E:\工作\洛阳公积金\HouseFundCallCenter1204V1\BLL\obj\Debug\XYFDRQ.BLL.pdb
127
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.dll
128
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.pdb
129
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.dll
130
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.dll
131
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.dll
132
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.dll
133
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\AjaxPro.2.dll
134
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.pdb
135
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.pdb
136
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
137
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.pdb
138
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\obj\Debug\ResolveAssemblyReference.cache
139
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.dll
140
+E:\work\工作\住房公积金12329热线-洛阳\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.pdb
141
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.dll
142
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.pdb
143
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.dll
144
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.dll
145
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.dll
146
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.dll
147
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\AjaxPro.2.dll
148
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.pdb
149
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.pdb
150
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.pdb
151
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
152
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\obj\Debug\ResolveAssemblyReference.cache
153
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.dll
154
+E:\项目文件\12329公积金系统\公积金\洛阳公积金\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.pdb
155
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.dll
156
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.pdb
157
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.dll
158
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.dll
159
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.dll
160
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.dll
161
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\AjaxPro.2.dll
162
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.pdb
163
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.pdb
164
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
165
+E:\洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.pdb
166
+E:\洛阳公积金\2、项目软件\BLL\obj\Debug\ResolveAssemblyReference.cache
167
+E:\洛阳公积金\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.dll
168
+E:\洛阳公积金\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.pdb
169
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.dll
170
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.BLL.pdb
171
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.dll
172
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.dll
173
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.dll
174
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.dll
175
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\AjaxPro.2.dll
176
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Common.pdb
177
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DAL.pdb
178
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.DBUtility.pdb
179
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\bin\Debug\XYFDRQ.Model.pdb
180
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\obj\Debug\BLL.csprojResolveAssemblyReference.cache
181
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.dll
182
+E:\项目-4.0及之前版本\LYGJJ洛阳公积金\2、项目软件\BLL\obj\Debug\XYFDRQ.BLL.pdb

BIN
BLL/obj/Debug/BLL.csprojResolveAssemblyReference.cache


BIN
BLL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
BLL/obj/Debug/Refactor/XYFDRQ.BLL.dll


BIN
BLL/obj/Debug/ResolveAssemblyReference.cache


BIN
BLL/obj/Debug/XYFDRQ.BLL.dll


BIN
BLL/obj/Debug/XYFDRQ.BLL.pdb


+ 14 - 0
BLL/obj/Release/BLL.csproj.FileListAbsolute.txt

@@ -0,0 +1,14 @@
1
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.BLL.dll
2
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.BLL.pdb
3
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.Common.dll
4
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.DAL.dll
5
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.DBUtility.dll
6
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.Model.dll
7
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\AjaxPro.2.dll
8
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.Model.pdb
9
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.DAL.pdb
10
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.Common.pdb
11
+G:\信阳富地燃气\Code\NewCode\BLL\bin\Release\XYFDRQ.DBUtility.pdb
12
+G:\信阳富地燃气\Code\NewCode\BLL\obj\Release\ResolveAssemblyReference.cache
13
+G:\信阳富地燃气\Code\NewCode\BLL\obj\Release\XYFDRQ.BLL.dll
14
+G:\信阳富地燃气\Code\NewCode\BLL\obj\Release\XYFDRQ.BLL.pdb

BIN
BLL/obj/Release/ResolveAssemblyReference.cache


BIN
BLL/obj/Release/XYFDRQ.BLL.dll


BIN
BLL/obj/Release/XYFDRQ.BLL.pdb


+ 140 - 0
Backup/BLL/BLL.csproj

@@ -0,0 +1,140 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="3.5" 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>9.0.30729</ProductVersion>
7
+    <SchemaVersion>2.0</SchemaVersion>
8
+    <ProjectGuid>{4A95FB31-1234-4FB2-A796-CBEC20EFDFFA}</ProjectGuid>
9
+    <OutputType>Library</OutputType>
10
+    <AppDesignerFolder>Properties</AppDesignerFolder>
11
+    <RootNamespace>XYFDRQ.BLL</RootNamespace>
12
+    <AssemblyName>XYFDRQ.BLL</AssemblyName>
13
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14
+    <FileAlignment>512</FileAlignment>
15
+    <SccProjectName>
16
+    </SccProjectName>
17
+    <SccLocalPath>
18
+    </SccLocalPath>
19
+    <SccAuxPath>
20
+    </SccAuxPath>
21
+    <SccProvider>
22
+    </SccProvider>
23
+  </PropertyGroup>
24
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25
+    <DebugSymbols>true</DebugSymbols>
26
+    <DebugType>full</DebugType>
27
+    <Optimize>false</Optimize>
28
+    <OutputPath>bin\Debug\</OutputPath>
29
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
30
+    <ErrorReport>prompt</ErrorReport>
31
+    <WarningLevel>4</WarningLevel>
32
+  </PropertyGroup>
33
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34
+    <DebugType>pdbonly</DebugType>
35
+    <Optimize>true</Optimize>
36
+    <OutputPath>bin\Release\</OutputPath>
37
+    <DefineConstants>TRACE</DefineConstants>
38
+    <ErrorReport>prompt</ErrorReport>
39
+    <WarningLevel>4</WarningLevel>
40
+  </PropertyGroup>
41
+  <ItemGroup>
42
+    <Reference Include="System" />
43
+    <Reference Include="System.Core">
44
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
45
+    </Reference>
46
+    <Reference Include="System.Xml.Linq">
47
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
48
+    </Reference>
49
+    <Reference Include="System.Data.DataSetExtensions">
50
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
51
+    </Reference>
52
+    <Reference Include="System.Data" />
53
+    <Reference Include="System.Xml" />
54
+  </ItemGroup>
55
+  <ItemGroup>
56
+    <Compile Include="DockingSystem.cs" />
57
+    <Compile Include="GG_XTKZ.cs" />
58
+    <Compile Include="Properties\AssemblyInfo.cs" />
59
+    <Compile Include="T_Bus_Accessories.cs" />
60
+    <Compile Include="T_Bus_ManageSet.cs" />
61
+    <Compile Include="T_Bus_RemindRecord.cs" />
62
+    <Compile Include="T_Bus_ReturnVisit.cs" />
63
+    <Compile Include="T_Bus_TimeOver.cs" />
64
+    <Compile Include="T_Bus_WorkCallRecord.cs" />
65
+    <Compile Include="T_Bus_WorkFlow.cs" />
66
+    <Compile Include="T_Bus_WorkHistory.cs" />
67
+    <Compile Include="T_Bus_WorkOrder.cs" />
68
+    <Compile Include="T_Bus_WorkType.cs" />
69
+    <Compile Include="T_CallRecord.cs" />
70
+    <Compile Include="T_CallRecordLink.cs" />
71
+    <Compile Include="T_CallRecordLinkTemp.cs" />
72
+    <Compile Include="T_Call_Blacklist.cs" />
73
+    <Compile Include="T_Call_CallRecords.cs" />
74
+    <Compile Include="T_Call_LeaveRecord.cs" />
75
+    <Compile Include="T_Cus_ConnPhone.cs" />
76
+    <Compile Include="T_DictionaryValue.cs" />
77
+    <Compile Include="T_DictionaryBase.cs" />
78
+    <Compile Include="T_Fax_RecvFax.cs" />
79
+    <Compile Include="T_Fax_SendFaxTask.cs" />
80
+    <Compile Include="T_Fax_SentFax.cs" />
81
+    <Compile Include="T_FunctionsMenu.cs" />
82
+    <Compile Include="T_Knowledge.cs" />
83
+    <Compile Include="T_KnowledgeClass.cs" />
84
+    <Compile Include="T_Organization.cs" />
85
+    <Compile Include="T_OrganizationMember.cs" />
86
+    <Compile Include="T_PhoneBlackList.cs" />
87
+    <Compile Include="T_Report.cs" />
88
+    <Compile Include="T_RightsManagement.cs" />
89
+    <Compile Include="T_Role.cs" />
90
+    <Compile Include="T_Sms_InfoType.cs" />
91
+    <Compile Include="T_Sms_SendInfo.cs" />
92
+    <Compile Include="T_SystemConfig.cs" />
93
+    <Compile Include="T_Sys_CallOptLogs.cs" />
94
+    <Compile Include="T_Sys_Department.cs" />
95
+    <Compile Include="T_Sys_LoginLogs.cs" />
96
+    <Compile Include="T_Sys_MobileData.cs" />
97
+    <Compile Include="T_Sys_ModuleFunctions.cs" />
98
+    <Compile Include="T_Sys_ModuleFunctionsOpt.cs" />
99
+    <Compile Include="T_Sys_ModuleInfo.cs" />
100
+    <Compile Include="T_Sys_OperateLogs.cs" />
101
+    <Compile Include="T_Sys_RegionCategory.cs" />
102
+    <Compile Include="T_Sys_RoleAttribute.cs" />
103
+    <Compile Include="T_Sys_RoleFunction.cs" />
104
+    <Compile Include="T_Sys_RoleInfo.cs" />
105
+    <Compile Include="T_Sys_RoleModule.cs" />
106
+    <Compile Include="T_Sys_RoleOpt.cs" />
107
+    <Compile Include="T_Sys_SystemConfig.cs" />
108
+    <Compile Include="T_Sys_TelTitleData.cs" />
109
+    <Compile Include="T_Sys_UserAccount.cs" />
110
+    <Compile Include="T_Sys_UserGroup.cs" />
111
+    <Compile Include="T_Sys_WorkCalendar.cs" />
112
+    <Compile Include="WebSet.cs" />
113
+  </ItemGroup>
114
+  <ItemGroup>
115
+    <ProjectReference Include="..\Common\Common.csproj">
116
+      <Project>{969F8594-DBCA-4AD1-BD28-944BFAA44B95}</Project>
117
+      <Name>Common</Name>
118
+    </ProjectReference>
119
+    <ProjectReference Include="..\DAL\DAL.csproj">
120
+      <Project>{6CD27746-823E-4AE6-8C6D-ACCF0F89B257}</Project>
121
+      <Name>DAL</Name>
122
+    </ProjectReference>
123
+    <ProjectReference Include="..\DBUtility\DBUtility.csproj">
124
+      <Project>{DB1CDE0C-EF19-48DB-96B1-870A80401B4F}</Project>
125
+      <Name>DBUtility</Name>
126
+    </ProjectReference>
127
+    <ProjectReference Include="..\Model\Model.csproj">
128
+      <Project>{AA2A8EB9-EFA2-4650-B63E-8E82F078F2CD}</Project>
129
+      <Name>Model</Name>
130
+    </ProjectReference>
131
+  </ItemGroup>
132
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
133
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
134
+       Other similar extension points exist, see Microsoft.Common.targets.
135
+  <Target Name="BeforeBuild">
136
+  </Target>
137
+  <Target Name="AfterBuild">
138
+  </Target>
139
+  -->
140
+</Project>

+ 292 - 0
Backup/BLL/DockingSystem.cs

@@ -0,0 +1,292 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Data;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// 工单流转表
11
+    /// </summary>
12
+    public partial class DockingSystem
13
+    {
14
+        private readonly XYFDRQ.DAL.DockingSystem dal = new XYFDRQ.DAL.DockingSystem();
15
+        public DockingSystem()
16
+        { }
17
+
18
+        #region 基本代码段
19
+        /// <summary>
20
+        /// 获取客户信息
21
+        /// </summary>
22
+        /// <returns></returns>
23
+        public DataTable GetUserInfo(string strWhere)
24
+        {
25
+            return dal.GetUserInfo(strWhere);
26
+        }
27
+
28
+        /// <summary>
29
+        /// 根据小区id获取小区信息
30
+        /// </summary>
31
+        /// <param name="lvId"></param>
32
+        /// <returns></returns>
33
+        public DataTable GetLvInfo(string lvId)
34
+        {
35
+            return dal.GetLvInfo(lvId);
36
+        }
37
+
38
+        /// <summary>
39
+        /// 根据小区编号或名称获取小区信息
40
+        /// </summary>
41
+        /// <param name="code"></param>
42
+        /// <returns></returns>
43
+        public DataTable GetLvInfos(string code)
44
+        {
45
+            return dal.GetLvInfos(code);
46
+        }
47
+
48
+        /// <summary>
49
+        /// 获取小区信息列表
50
+        /// </summary>
51
+        /// <param name="code"></param>
52
+        /// <returns></returns>
53
+        public DataTable GetLvInfos()
54
+        {
55
+            return dal.GetLvInfos();
56
+        }
57
+        /// <summary>
58
+        /// 根据区域id获取区域信息
59
+        /// </summary>
60
+        /// <param name="regionId"></param>
61
+        /// <returns></returns>
62
+        public DataTable GetRegionInfo(string regionId)
63
+        {
64
+            return dal.GetRegionInfo(regionId);
65
+        }
66
+
67
+        /// <summary>
68
+        /// 获取用气类型信息
69
+        /// </summary>
70
+        /// <returns></returns>
71
+        public DataTable GetPrice(string GasPriceId)
72
+        {
73
+            return dal.GetPrice(GasPriceId);
74
+        }
75
+
76
+        /// <summary>
77
+        /// 获取表具信息
78
+        /// </summary>
79
+        /// <returns></returns>
80
+        public DataTable GetDevice(string AddressId)
81
+        {
82
+            return dal.GetDevice(AddressId);
83
+        }
84
+
85
+        /// <summary>
86
+        /// 获取IC卡信息
87
+        /// </summary>
88
+        /// <param name="DeviceId"></param>
89
+        /// <returns></returns>
90
+        public DataTable GetICCard(string DeviceId)
91
+        {
92
+            return dal.GetICCard(DeviceId);
93
+        }
94
+
95
+        /// <summary>
96
+        /// 获取最后一次读表信息
97
+        /// </summary>
98
+        /// <param name="AddressId"></param>
99
+        /// <param name="GasUserId"></param>
100
+        /// <returns></returns>
101
+        public DataTable GetLastReadMeterRecord(string AddressId, string GasUserId)
102
+        {
103
+            return dal.GetLastReadMeterRecord(AddressId, GasUserId);
104
+        }
105
+
106
+        /// <summary>
107
+        /// 获取读表信息
108
+        /// </summary>
109
+        /// <param name="AddressId"></param>
110
+        /// <param name="GasUserId"></param>
111
+        /// <returns></returns>
112
+        public DataTable GetReadMeterRecord(string AddressId, string GasUserId)
113
+        {
114
+
115
+            return dal.GetReadMeterRecord(AddressId, GasUserId);
116
+        }
117
+
118
+        /// <summary>
119
+        /// 获取报装记录信息
120
+        /// </summary>
121
+        /// <param name="AddressId"></param>
122
+        /// <returns></returns>
123
+        public DataTable GetAddressProjectInfo(string AddressId)
124
+        {
125
+            return dal.GetAddressProjectInfo(AddressId);
126
+        }
127
+
128
+        /// <summary>
129
+        /// 获取产品类型信息
130
+        /// </summary>
131
+        /// <param name="ProductId"></param>
132
+        /// <returns></returns>
133
+        public DataTable GetProduct(string ProductId)
134
+        {
135
+            return dal.GetProduct(ProductId);
136
+        }
137
+        #region 根据客户编号获取客户所有的欠费金额
138
+        /// <summary>
139
+        /// 根据客户编号获取客户所有的欠费金额
140
+        /// </summary>
141
+        /// <param name="cusCode"></param>
142
+        /// <returns></returns>
143
+        public DataTable GetALLQFMoneyByCusCode(string cusCode)
144
+        {
145
+            return dal.GetALLQFMoneyByCusCode(cusCode);
146
+        }
147
+        #endregion
148
+        #region 根据客户编号获取客户的欠费金额
149
+        /// <summary>
150
+        /// 根据客户编号获取客户的欠费金额
151
+        /// </summary>
152
+        /// <param name="cusCode"></param>
153
+        /// <returns></returns>
154
+        public DataTable GetQFMoneyByCusCode(string cusCode)
155
+        {
156
+            return dal.GetQFMoneyByCusCode(cusCode);
157
+        }
158
+        #endregion
159
+        #endregion
160
+
161
+
162
+
163
+        #region 二次处理代码段
164
+
165
+        /// <summary>
166
+        /// 迭代获取小区地址
167
+        /// </summary>
168
+        /// <param name="LvId"></param>
169
+        /// <returns></returns>
170
+        public string GetLvAddressInfos(string LvId)
171
+        {
172
+            string lvName = string.Empty;
173
+            DataTable dtLv = GetLvInfo(LvId);
174
+            if (dtLv != null && dtLv.Rows.Count > 0)
175
+            {
176
+                if (dtLv.Rows[0]["Parent"] != null && !string.IsNullOrEmpty(dtLv.Rows[0]["Parent"].ToString()))
177
+                {
178
+                    lvName = GetLvAddressInfos(dtLv.Rows[0]["Parent"].ToString()) + lvName;
179
+                }
180
+                lvName += dtLv.Rows[0]["Text"] == null ? "" : dtLv.Rows[0]["Text"].ToString();
181
+
182
+            }
183
+            return lvName;
184
+        }
185
+
186
+        /// <summary>
187
+        /// 获取住址信息
188
+        /// </summary>
189
+        /// <param name="addressId"></param>
190
+        /// <returns></returns>
191
+        public string GetAddress(string addressId)
192
+        {
193
+            string address = string.Empty;
194
+            DataTable dtUserInfo = GetUserInfo(" and addressId=" + addressId);
195
+            if (dtUserInfo != null && dtUserInfo.Rows.Count > 0)
196
+            {
197
+                ////区域
198
+                //if (dtUserInfo.Rows[0]["regionId"] != null && dtUserInfo.Rows[0]["regionId"].ToString() != "")
199
+                //{
200
+                //    DataTable dtRegion = GetRegionInfo(dtUserInfo.Rows[0]["regionId"].ToString());
201
+                //    if (dtRegion != null && dtRegion.Rows.Count > 0)
202
+                //    {
203
+                //        address += dtRegion.Rows[0]["Name"] == null ? "" : dtRegion.Rows[0]["Name"].ToString();                      
204
+                //    }
205
+                //}
206
+                //小区
207
+                if (dtUserInfo.Rows[0]["lvId"] != null && dtUserInfo.Rows[0]["lvId"].ToString() != "")
208
+                {
209
+                    //DataTable dtLv = GetLvInfo(dtUserInfo.Rows[0]["lvId"].ToString());
210
+                    //if (dtLv != null && dtLv.Rows.Count > 0)
211
+                    //{
212
+                    //    address += dtLv.Rows[0]["Text"] == null ? "" : dtLv.Rows[0]["Text"].ToString();   
213
+                    //}
214
+                    address += GetLvAddressInfos(dtUserInfo.Rows[0]["lvId"].ToString());
215
+                }
216
+                //楼栋              
217
+                address += dtUserInfo.Rows[0]["Lv4"] == null ? "" : dtUserInfo.Rows[0]["Lv4"].ToString();
218
+                address += dtUserInfo.Rows[0]["Lv4Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv4Tag"].ToString();
219
+                //单元              
220
+                address += dtUserInfo.Rows[0]["Lv5"] == null ? "" : dtUserInfo.Rows[0]["Lv5"].ToString();
221
+                address += dtUserInfo.Rows[0]["Lv5Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv5Tag"].ToString();
222
+                //门牌号              
223
+                address += dtUserInfo.Rows[0]["Lv6"] == null ? "" : dtUserInfo.Rows[0]["Lv6"].ToString();
224
+                address += dtUserInfo.Rows[0]["Lv6Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv6Tag"].ToString();
225
+                //位置              
226
+                address += dtUserInfo.Rows[0]["Lv7"] == null ? "" : dtUserInfo.Rows[0]["Lv7"].ToString();
227
+                address += dtUserInfo.Rows[0]["Lv7Tag"] == null ? "" : dtUserInfo.Rows[0]["Lv7Tag"].ToString();
228
+                if (string.IsNullOrEmpty(address.Trim()))
229
+                {
230
+                    address += dtUserInfo.Rows[0]["HomeAddress"] == null ? "" : dtUserInfo.Rows[0]["HomeAddress"].ToString();
231
+                }
232
+            }
233
+            return address;
234
+        }
235
+
236
+        /// <summary>
237
+        /// 获取用气类型
238
+        /// </summary>
239
+        /// <returns></returns>
240
+        public string GetPriceType(string GasPriceId)
241
+        {
242
+            string typeName = string.Empty;
243
+            DataTable dt = GetPrice(GasPriceId);
244
+            if (dt != null && dt.Rows.Count > 0)
245
+            {
246
+                typeName = dt.Rows[0]["Name"] == null ? "" : dt.Rows[0]["Name"].ToString();
247
+            }
248
+            return typeName;
249
+        }
250
+
251
+        #region 根据区域id获取区域名称
252
+        /// <summary>
253
+        /// 根据区域id获取区域名称
254
+        /// </summary>
255
+        /// <param name="GasPriceId"></param>
256
+        /// <returns></returns>
257
+        public string GetRegionName(string RegionId)
258
+        {
259
+            string RegionName = string.Empty;
260
+            DataTable dtRegion = GetRegionInfo(RegionId);
261
+            if (dtRegion != null && dtRegion.Rows.Count > 0)
262
+            {
263
+                RegionName = dtRegion.Rows[0]["Name"] == null ? "" : dtRegion.Rows[0]["Name"].ToString();
264
+            }
265
+            return RegionName;
266
+        }
267
+        #endregion
268
+
269
+        #region 根据小区id获取小区名称
270
+
271
+        /// <summary>
272
+        /// 根据小区id获取小区名称
273
+        /// </summary>
274
+        /// <returns></returns>
275
+        public string GetLvName(object lvId)
276
+        {
277
+            string lvName = string.Empty;
278
+            if (lvId != null && !string.IsNullOrEmpty(lvId.ToString()))
279
+            {
280
+                DataTable dt = GetLvInfo(lvId.ToString());
281
+                if (dt != null && dt.Rows.Count > 0)
282
+                {
283
+                    lvName = dt.Rows[0]["Text"] == null ? "" : dt.Rows[0]["Text"].ToString();
284
+                }
285
+            }
286
+            return lvName;
287
+        }
288
+
289
+        #endregion
290
+        #endregion
291
+    }
292
+}

+ 179 - 0
Backup/BLL/GG_XTKZ.cs

@@ -0,0 +1,179 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+//using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// GG_XTKZ
10
+	/// </summary>
11
+	public partial class GG_XTKZ
12
+	{
13
+		private readonly XYFDRQ.DAL.GG_XTKZ dal=new XYFDRQ.DAL.GG_XTKZ();
14
+		public GG_XTKZ()
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 ID)
30
+		{
31
+			return dal.Exists(ID);
32
+		}
33
+
34
+		/// <summary>
35
+		/// 增加一条数据
36
+		/// </summary>
37
+		public bool Add(XYFDRQ.Model.GG_XTKZ model)
38
+		{
39
+			return dal.Add(model);
40
+		}
41
+
42
+		/// <summary>
43
+		/// 更新一条数据
44
+		/// </summary>
45
+		public bool Update(XYFDRQ.Model.GG_XTKZ model)
46
+		{
47
+			return dal.Update(model);
48
+		}
49
+
50
+		/// <summary>
51
+		/// 删除一条数据
52
+		/// </summary>
53
+		public bool Delete(int ID)
54
+		{
55
+			
56
+			return dal.Delete(ID);
57
+		}
58
+		/// <summary>
59
+		/// 删除一条数据
60
+		/// </summary>
61
+		public bool DeleteList(string IDlist )
62
+		{
63
+			return dal.DeleteList(IDlist );
64
+		}
65
+
66
+		/// <summary>
67
+		/// 得到一个对象实体
68
+		/// </summary>
69
+		public XYFDRQ.Model.GG_XTKZ GetModel(int ID)
70
+		{
71
+			
72
+			return dal.GetModel(ID);
73
+		}
74
+
75
+        ///// <summary>
76
+        ///// 得到一个对象实体,从缓存中
77
+        ///// </summary>
78
+        //public XYFDRQ.Model.GG_XTKZ GetModelByCache(int ID)
79
+        //{
80
+			
81
+        //    string CacheKey = "GG_XTKZModel-" + ID;
82
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
83
+        //    if (objModel == null)
84
+        //    {
85
+        //        try
86
+        //        {
87
+        //            objModel = dal.GetModel(ID);
88
+        //            if (objModel != null)
89
+        //            {
90
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
91
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
92
+        //            }
93
+        //        }
94
+        //        catch{}
95
+        //    }
96
+        //    return (XYFDRQ.Model.GG_XTKZ)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<XYFDRQ.Model.GG_XTKZ> 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<XYFDRQ.Model.GG_XTKZ> DataTableToList(DataTable dt)
125
+		{
126
+			List<XYFDRQ.Model.GG_XTKZ> modelList = new List<XYFDRQ.Model.GG_XTKZ>();
127
+			int rowsCount = dt.Rows.Count;
128
+			if (rowsCount > 0)
129
+			{
130
+				XYFDRQ.Model.GG_XTKZ model;
131
+				for (int n = 0; n < rowsCount; n++)
132
+				{
133
+					model = dal.DataRowToModel(dt.Rows[n]);
134
+					if (model != null)
135
+					{
136
+						modelList.Add(model);
137
+				}
138
+				}
139
+			}
140
+			return modelList;
141
+		}
142
+
143
+		/// <summary>
144
+		/// 获得数据列表
145
+		/// </summary>
146
+		public DataSet GetAllList()
147
+		{
148
+			return GetList("");
149
+		}
150
+
151
+		/// <summary>
152
+		/// 分页获取数据列表
153
+		/// </summary>
154
+		public int GetRecordCount(string strWhere)
155
+		{
156
+			return dal.GetRecordCount(strWhere);
157
+		}
158
+		/// <summary>
159
+		/// 分页获取数据列表
160
+		/// </summary>
161
+		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
162
+		{
163
+			return dal.GetListByPage( strWhere,  orderby,  startIndex,  endIndex);
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  BasicMethod
174
+		#region  ExtensionMethod
175
+
176
+		#endregion  ExtensionMethod
177
+	}
178
+}
179
+

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

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

+ 209 - 0
Backup/BLL/T_Bus_Accessories.cs

@@ -0,0 +1,209 @@
1
+using System;
2
+using System.Data;
3
+using System.Collections.Generic;
4
+using XYFDRQ.Common;
5
+using XYFDRQ.Model;
6
+namespace XYFDRQ.BLL
7
+{
8
+	/// <summary>
9
+	/// 附件表
10
+	/// </summary>
11
+	public partial class T_Bus_Accessories
12
+	{
13
+		private readonly XYFDRQ.DAL.T_Bus_Accessories dal=new XYFDRQ.DAL.T_Bus_Accessories();
14
+		public T_Bus_Accessories()
15
+		{}
16
+		#region  Method
17
+		/// <summary>
18
+		/// 是否存在该记录
19
+		/// </summary>
20
+		public bool Exists(string FileCode)
21
+		{
22
+			return dal.Exists(FileCode);
23
+		}
24
+
25
+		/// <summary>
26
+		/// 增加一条数据
27
+		/// </summary>
28
+		public bool Add(XYFDRQ.Model.T_Bus_Accessories model)
29
+		{
30
+			return dal.Add(model);
31
+		}
32
+
33
+		/// <summary>
34
+		/// 更新一条数据
35
+		/// </summary>
36
+		public bool Update(XYFDRQ.Model.T_Bus_Accessories model)
37
+		{
38
+			return dal.Update(model);
39
+		}
40
+
41
+		/// <summary>
42
+		/// 删除一条数据
43
+		/// </summary>
44
+		public bool Delete(string FileCode)
45
+		{
46
+			
47
+			return dal.Delete(FileCode);
48
+		}
49
+		/// <summary>
50
+		/// 删除一条数据
51
+		/// </summary>
52
+		public bool DeleteList(string FileCodelist )
53
+		{
54
+			return dal.DeleteList(FileCodelist );
55
+		}
56
+
57
+		/// <summary>
58
+		/// 得到一个对象实体
59
+		/// </summary>
60
+		public XYFDRQ.Model.T_Bus_Accessories GetModel(string FileCode)
61
+		{
62
+			
63
+			return dal.GetModel(FileCode);
64
+		}
65
+
66
+        ///// <summary>
67
+        ///// 得到一个对象实体,从缓存中
68
+        ///// </summary>
69
+        //public XYFDRQ.Model.T_Bus_Accessories GetModelByCache(string FileCode)
70
+        //{
71
+			
72
+        //    string CacheKey = "T_Bus_AccessoriesModel-" + FileCode;
73
+        //    object objModel = XYFDRQ.Common.DataCache.GetCache(CacheKey);
74
+        //    if (objModel == null)
75
+        //    {
76
+        //        try
77
+        //        {
78
+        //            objModel = dal.GetModel(FileCode);
79
+        //            if (objModel != null)
80
+        //            {
81
+        //                int ModelCache = XYFDRQ.Common.ConfigHelper.GetConfigInt("ModelCache");
82
+        //                XYFDRQ.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero);
83
+        //            }
84
+        //        }
85
+        //        catch{}
86
+        //    }
87
+        //    return (XYFDRQ.Model.T_Bus_Accessories)objModel;
88
+        //}
89
+
90
+		/// <summary>
91
+		/// 获得数据列表
92
+		/// </summary>
93
+		public DataSet GetList(string strWhere)
94
+		{
95
+			return dal.GetList(strWhere);
96
+		}
97
+		/// <summary>
98
+		/// 获得前几行数据
99
+		/// </summary>
100
+		public DataSet GetList(int Top,string strWhere,string filedOrder)
101
+		{
102
+			return dal.GetList(Top,strWhere,filedOrder);
103
+		}
104
+		/// <summary>
105
+		/// 获得数据列表
106
+		/// </summary>
107
+		public List<XYFDRQ.Model.T_Bus_Accessories> GetModelList(string strWhere)
108
+		{
109
+			DataSet ds = dal.GetList(strWhere);
110
+			return DataTableToList(ds.Tables[0]);
111
+		}
112
+		/// <summary>
113
+		/// 获得数据列表
114
+		/// </summary>
115
+		public List<XYFDRQ.Model.T_Bus_Accessories> DataTableToList(DataTable dt)
116
+		{
117
+			List<XYFDRQ.Model.T_Bus_Accessories> modelList = new List<XYFDRQ.Model.T_Bus_Accessories>();
118
+			int rowsCount = dt.Rows.Count;
119
+			if (rowsCount > 0)
120
+			{
121
+				XYFDRQ.Model.T_Bus_Accessories model;
122
+				for (int n = 0; n < rowsCount; n++)
123
+				{
124
+					model = new XYFDRQ.Model.T_Bus_Accessories();
125
+					if(dt.Rows[n]["FileCode"]!=null && dt.Rows[n]["FileCode"].ToString()!="")
126
+					{
127
+					model.FileCode=dt.Rows[n]["FileCode"].ToString();
128
+					}
129
+					if(dt.Rows[n]["FileName"]!=null && dt.Rows[n]["FileName"].ToString()!="")
130
+					{
131
+					model.FileName=dt.Rows[n]["FileName"].ToString();
132
+					}
133
+					if(dt.Rows[n]["FilePath"]!=null && dt.Rows[n]["FilePath"].ToString()!="")
134
+					{
135
+					model.FilePath=dt.Rows[n]["FilePath"].ToString();
136
+					}
137
+					if(dt.Rows[n]["FileExt"]!=null && dt.Rows[n]["FileExt"].ToString()!="")
138
+					{
139
+					model.FileExt=dt.Rows[n]["FileExt"].ToString();
140
+					}
141
+					if(dt.Rows[n]["TableName"]!=null && dt.Rows[n]["TableName"].ToString()!="")
142
+					{
143
+					model.TableName=dt.Rows[n]["TableName"].ToString();
144
+					}
145
+					if(dt.Rows[n]["AddTime"]!=null && dt.Rows[n]["AddTime"].ToString()!="")
146
+					{
147
+						model.AddTime=DateTime.Parse(dt.Rows[n]["AddTime"].ToString());
148
+					}
149
+					if(dt.Rows[n]["UserId"]!=null && dt.Rows[n]["UserId"].ToString()!="")
150
+					{
151
+						model.UserId=int.Parse(dt.Rows[n]["UserId"].ToString());
152
+					}
153
+					modelList.Add(model);
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  Method
190
+
191
+        /// <summary>
192
+        /// 根据附件编号获取UrlPath
193
+        /// </summary>
194
+        /// <param name="FileCode"></param>
195
+        /// <returns></returns>
196
+        public string GetUrlPathByFileCode(string FileCode)
197
+        {
198
+            string urlPath = string.Empty;
199
+            XYFDRQ.Model.T_Bus_Accessories model_T_Bus_Accessories = GetModel(FileCode);
200
+            if (model_T_Bus_Accessories != null)
201
+            {
202
+                string path = new XYFDRQ.BLL.T_Sys_SystemConfig().GetParamValueByParamCode("FileUrlPath");
203
+                urlPath =path+ model_T_Bus_Accessories.FilePath;
204
+            }
205
+            return urlPath;
206
+        }
207
+	}
208
+}
209
+

+ 0 - 0
Backup/BLL/T_Bus_ManageSet.cs


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels