Procházet zdrojové kódy

上下班时间设置

zhengbingbing %!s(int64=6) %!d(string=před) roky
rodič
revize
adc24dd9e3

+ 139 - 138
BLL/BLL.csproj

@@ -1,145 +1,146 @@
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" />
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="T_Sys_WorkTimes.cs" />
118
+    <Compile Include="WebSet.cs" />
119
+  </ItemGroup>
120
+  <ItemGroup>
121
+    <ProjectReference Include="..\Common\Common.csproj">
122
+      <Project>{969F8594-DBCA-4AD1-BD28-944BFAA44B95}</Project>
123
+      <Name>Common</Name>
124
+    </ProjectReference>
125
+    <ProjectReference Include="..\DAL\DAL.csproj">
126
+      <Project>{6CD27746-823E-4AE6-8C6D-ACCF0F89B257}</Project>
127
+      <Name>DAL</Name>
128
+    </ProjectReference>
129
+    <ProjectReference Include="..\DBUtility\DBUtility.csproj">
130
+      <Project>{DB1CDE0C-EF19-48DB-96B1-870A80401B4F}</Project>
131
+      <Name>DBUtility</Name>
132
+    </ProjectReference>
133
+    <ProjectReference Include="..\Model\Model.csproj">
134
+      <Project>{AA2A8EB9-EFA2-4650-B63E-8E82F078F2CD}</Project>
135
+      <Name>Model</Name>
136
+    </ProjectReference>
137
+  </ItemGroup>
138
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
138 139
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
139 140
        Other similar extension points exist, see Microsoft.Common.targets.
140 141
   <Target Name="BeforeBuild">
141 142
   </Target>
142 143
   <Target Name="AfterBuild">
143 144
   </Target>
144
-  -->
145
+  -->
145 146
 </Project>

+ 99 - 0
BLL/T_Sys_WorkTimes.cs

@@ -0,0 +1,99 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Data;
4
+using System.Linq;
5
+using System.Text;
6
+
7
+namespace XYFDRQ.BLL
8
+{
9
+    /// <summary>
10
+    /// T_Sys_WorkTimes
11
+    /// </summary>
12
+    public partial class T_Sys_WorkTimes
13
+    {
14
+        private readonly XYFDRQ.DAL.T_Sys_WorkTimes dal = new XYFDRQ.DAL.T_Sys_WorkTimes();
15
+        public T_Sys_WorkTimes()
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_WorkTimes model)
30
+        {
31
+            return dal.Add(model);
32
+        }
33
+
34
+        /// <summary>
35
+        /// 得到一个对象实体
36
+        /// </summary>
37
+        public XYFDRQ.Model.T_Sys_WorkTimes GetModel(int F_Id)
38
+        {
39
+
40
+            return dal.GetModel(F_Id);
41
+        }
42
+
43
+        /// <summary>
44
+        /// 获得数据列表
45
+        /// </summary>
46
+        public DataSet GetList(string strWhere)
47
+        {
48
+            return dal.GetList(strWhere);
49
+        }
50
+        /// <summary>
51
+        /// 获得前几行数据
52
+        /// </summary>
53
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
54
+        {
55
+            return dal.GetList(Top, strWhere, filedOrder);
56
+        }
57
+        /// <summary>
58
+        /// 获得数据列表
59
+        /// </summary>
60
+        public List<XYFDRQ.Model.T_Sys_WorkTimes> GetModelList(string strWhere)
61
+        {
62
+            DataSet ds = dal.GetList(strWhere);
63
+            return DataTableToList(ds.Tables[0]);
64
+        }
65
+        /// <summary>
66
+        /// 获得数据列表
67
+        /// </summary>
68
+        public List<XYFDRQ.Model.T_Sys_WorkTimes> DataTableToList(DataTable dt)
69
+        {
70
+            List<XYFDRQ.Model.T_Sys_WorkTimes> modelList = new List<XYFDRQ.Model.T_Sys_WorkTimes>();
71
+            int rowsCount = dt.Rows.Count;
72
+            if (rowsCount > 0)
73
+            {
74
+                XYFDRQ.Model.T_Sys_WorkTimes model;
75
+                for (int n = 0; n < rowsCount; n++)
76
+                {
77
+                    model = dal.DataRowToModel(dt.Rows[n]);
78
+                    if (model != null)
79
+                    {
80
+                        modelList.Add(model);
81
+                    }
82
+                }
83
+            }
84
+            return modelList;
85
+        }
86
+
87
+        /// <summary>
88
+        /// 获得数据列表
89
+        /// </summary>
90
+        public DataSet GetAllList()
91
+        {
92
+            return GetList("");
93
+        }
94
+
95
+
96
+
97
+        #endregion  Method
98
+    }
99
+}

+ 135 - 134
DAL/DAL.csproj

@@ -1,141 +1,142 @@
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>{6CD27746-823E-4AE6-8C6D-ACCF0F89B257}</ProjectGuid>
9
-    <OutputType>Library</OutputType>
10
-    <AppDesignerFolder>Properties</AppDesignerFolder>
11
-    <RootNamespace>XYFDRQ.DAL</RootNamespace>
12
-    <AssemblyName>XYFDRQ.DAL</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="..\DBUtility\DBUtility.csproj">
125
-      <Project>{DB1CDE0C-EF19-48DB-96B1-870A80401B4F}</Project>
126
-      <Name>DBUtility</Name>
127
-    </ProjectReference>
128
-    <ProjectReference Include="..\Model\Model.csproj">
129
-      <Project>{AA2A8EB9-EFA2-4650-B63E-8E82F078F2CD}</Project>
130
-      <Name>Model</Name>
131
-    </ProjectReference>
132
-  </ItemGroup>
133
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
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>{6CD27746-823E-4AE6-8C6D-ACCF0F89B257}</ProjectGuid>
9
+    <OutputType>Library</OutputType>
10
+    <AppDesignerFolder>Properties</AppDesignerFolder>
11
+    <RootNamespace>XYFDRQ.DAL</RootNamespace>
12
+    <AssemblyName>XYFDRQ.DAL</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="T_Sys_WorkTimes.cs" />
118
+    <Compile Include="WebSet.cs" />
119
+  </ItemGroup>
120
+  <ItemGroup>
121
+    <ProjectReference Include="..\Common\Common.csproj">
122
+      <Project>{969F8594-DBCA-4AD1-BD28-944BFAA44B95}</Project>
123
+      <Name>Common</Name>
124
+    </ProjectReference>
125
+    <ProjectReference Include="..\DBUtility\DBUtility.csproj">
126
+      <Project>{DB1CDE0C-EF19-48DB-96B1-870A80401B4F}</Project>
127
+      <Name>DBUtility</Name>
128
+    </ProjectReference>
129
+    <ProjectReference Include="..\Model\Model.csproj">
130
+      <Project>{AA2A8EB9-EFA2-4650-B63E-8E82F078F2CD}</Project>
131
+      <Name>Model</Name>
132
+    </ProjectReference>
133
+  </ItemGroup>
134
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
134 135
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
135 136
        Other similar extension points exist, see Microsoft.Common.targets.
136 137
   <Target Name="BeforeBuild">
137 138
   </Target>
138 139
   <Target Name="AfterBuild">
139 140
   </Target>
140
-  -->
141
+  -->
141 142
 </Project>

+ 184 - 0
DAL/T_Sys_WorkTimes.cs

@@ -0,0 +1,184 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Data;
4
+using System.Data.SqlClient;
5
+using System.Linq;
6
+using System.Text;
7
+using XYFDRQ.DBUtility;
8
+
9
+namespace XYFDRQ.DAL
10
+{
11
+    /// <summary>
12
+    /// 数据访问类:T_Sys_WorkTimes
13
+    /// </summary>
14
+    public partial class T_Sys_WorkTimes
15
+    {
16
+        public T_Sys_WorkTimes()
17
+        { }
18
+        #region  Method
19
+        /// <summary>
20
+        /// 是否存在该记录
21
+        /// </summary>
22
+        public bool Exists(int F_ID)
23
+        {
24
+            StringBuilder strSql = new StringBuilder();
25
+            strSql.Append("select count(1) from T_Sys_WorkTimes");
26
+            strSql.Append(" where F_Id=@F_Id");
27
+            SqlParameter[] parameters = {
28
+                    new SqlParameter("@F_Id", SqlDbType.Int,4)
29
+};
30
+            parameters[0].Value = F_ID;
31
+
32
+            return DbHelperSQL.Exists(strSql.ToString(), parameters);
33
+        }
34
+
35
+        
36
+        /// <summary>
37
+        /// 增加一条数据
38
+        /// </summary>
39
+        public int Add(XYFDRQ.Model.T_Sys_WorkTimes model)
40
+        {
41
+            StringBuilder strSql = new StringBuilder();
42
+            strSql.Append("insert into T_Sys_WorkTimes(");
43
+            strSql.Append("F_AMStartTimes,F_AMEndTimes,F_PMStartTimes,F_PMEndTimes,F_CreateBy,F_CreateOn,F_CreateByIP)");
44
+            strSql.Append(" values (");
45
+            strSql.Append("@F_AMStartTimes,@F_AMEndTimes,@F_PMStartTimes,@F_PMEndTimes,@F_CreateBy,@F_CreateOn,@F_CreateByIP)");
46
+            strSql.Append(";select @@IDENTITY");
47
+            SqlParameter[] parameters = {
48
+                    new SqlParameter("@F_AMStartTimes", SqlDbType.DateTime),
49
+                    new SqlParameter("@F_AMEndTimes", SqlDbType.DateTime),
50
+                    new SqlParameter("@F_PMStartTimes", SqlDbType.DateTime),
51
+                    new SqlParameter("@F_PMEndTimes", SqlDbType.DateTime),
52
+                    new SqlParameter("@F_CreateBy", SqlDbType.VarChar,50),
53
+                    new SqlParameter("@F_CreateOn", SqlDbType.DateTime),
54
+                    new SqlParameter("@F_CreateByIP", SqlDbType.VarChar,50)};
55
+            parameters[0].Value = model.F_AMStartTimes;
56
+            parameters[1].Value = model.F_AMEndTimes;
57
+            parameters[2].Value = model.F_PMStartTimes;
58
+            parameters[3].Value = model.F_PMEndTimes;
59
+            parameters[4].Value = model.F_CreateBy;
60
+            parameters[5].Value = model.F_CreateOn;
61
+            parameters[6].Value = model.F_CreateByIP;
62
+
63
+            object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
64
+            if (obj == null)
65
+            {
66
+                return 0;
67
+            }
68
+            else
69
+            {
70
+                return Convert.ToInt32(obj);
71
+            }
72
+        }
73
+
74
+        /// <summary>
75
+        /// 得到一个对象实体
76
+        /// </summary>
77
+        public XYFDRQ.Model.T_Sys_WorkTimes GetModel(int F_ID)
78
+        {
79
+
80
+            StringBuilder strSql = new StringBuilder();
81
+            strSql.Append("select  top 1 * from T_Sys_WorkTimes ");
82
+            strSql.Append(" where F_Id=@F_Id");
83
+            SqlParameter[] parameters = {
84
+                    new SqlParameter("@F_Id", SqlDbType.Int,4)
85
+};
86
+            parameters[0].Value = F_ID;
87
+
88
+            XYFDRQ.Model.T_Sys_WorkTimes model = new XYFDRQ.Model.T_Sys_WorkTimes();
89
+            DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
90
+            if (ds.Tables[0].Rows.Count > 0)
91
+            {
92
+                return DataRowToModel(ds.Tables[0].Rows[0]);
93
+            }
94
+            else
95
+            {
96
+                return null;
97
+            }
98
+        }
99
+        /// <summary>
100
+        /// 得到一个对象实体
101
+        /// </summary>
102
+        public Model.T_Sys_WorkTimes DataRowToModel(DataRow row)
103
+        {
104
+            Model.T_Sys_WorkTimes model = new Model.T_Sys_WorkTimes();
105
+            if (row != null)
106
+            {
107
+                if (row["F_Id"] != null && row["F_Id"].ToString() != "")
108
+                {
109
+                    model.F_Id = int.Parse(row["F_Id"].ToString());
110
+                }
111
+
112
+                if (row["F_AMStartTimes"] != null && row["F_AMStartTimes"].ToString() != "")
113
+                {
114
+                    model.F_AMStartTimes = DateTime.Parse(row["F_AMStartTimes"].ToString());
115
+                }
116
+                if (row["F_AMEndTimes"] != null && row["F_AMEndTimes"].ToString() != "")
117
+                {
118
+                    model.F_AMEndTimes = DateTime.Parse(row["F_AMEndTimes"].ToString());
119
+                }
120
+                if (row["F_PMStartTimes"] != null && row["F_PMStartTimes"].ToString() != "")
121
+                {
122
+                    model.F_PMStartTimes = DateTime.Parse(row["F_PMStartTimes"].ToString());
123
+                }
124
+                if (row["F_PMEndTimes"] != null && row["F_PMEndTimes"].ToString() != "")
125
+                {
126
+                    model.F_PMEndTimes = DateTime.Parse(row["F_PMEndTimes"].ToString());
127
+                }
128
+
129
+                if (row["F_CreateBy"] != null && row["F_CreateBy"].ToString() != "")
130
+                {
131
+                    model.F_CreateBy = row["F_CreateBy"].ToString();
132
+                }
133
+                if (row["F_CreateOn"] != null && row["F_CreateOn"].ToString() != "")
134
+                {
135
+                    model.F_CreateOn = DateTime.Parse(row["F_CreateOn"].ToString());
136
+                }
137
+                if (row["F_CreateByIP"] != null && row["F_CreateByIP"].ToString() != "")
138
+                {
139
+                    model.F_CreateByIP = row["F_CreateByIP"].ToString();
140
+                }
141
+            }
142
+            return model;
143
+        }
144
+
145
+        /// <summary>
146
+        /// 获得数据列表
147
+        /// </summary>
148
+        public DataSet GetList(string strWhere)
149
+        {
150
+            StringBuilder strSql = new StringBuilder();
151
+            strSql.Append("select * ");
152
+            strSql.Append(" FROM T_Sys_WorkTimes ");
153
+            if (strWhere.Trim() != "")
154
+            {
155
+                strSql.Append(" where " + strWhere);
156
+            }
157
+            return DbHelperSQL.Query(strSql.ToString());
158
+        }
159
+
160
+        /// <summary>
161
+        /// 获得前几行数据
162
+        /// </summary>
163
+        public DataSet GetList(int Top, string strWhere, string filedOrder)
164
+        {
165
+            StringBuilder strSql = new StringBuilder();
166
+            strSql.Append("select ");
167
+            if (Top > 0)
168
+            {
169
+                strSql.Append(" top " + Top.ToString());
170
+            }
171
+            strSql.Append(" * ");
172
+            strSql.Append(" FROM T_Sys_WorkTimes ");
173
+            if (strWhere.Trim() != "")
174
+            {
175
+                strSql.Append(" where " + strWhere);
176
+            }
177
+            strSql.Append(" order by " + filedOrder);
178
+            return DbHelperSQL.Query(strSql.ToString());
179
+        }
180
+
181
+
182
+        #endregion  Method
183
+    }
184
+}

+ 120 - 119
Model/Model.csproj

@@ -1,126 +1,127 @@
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>{AA2A8EB9-EFA2-4650-B63E-8E82F078F2CD}</ProjectGuid>
9
-    <OutputType>Library</OutputType>
10
-    <AppDesignerFolder>Properties</AppDesignerFolder>
11
-    <RootNamespace>XYFDRQ.Model</RootNamespace>
12
-    <AssemblyName>XYFDRQ.Model</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="classify.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_RightsManagement.cs" />
93
-    <Compile Include="T_Role.cs" />
94
-    <Compile Include="T_Sms_InfoType.cs" />
95
-    <Compile Include="T_Sms_SendInfo.cs" />
96
-    <Compile Include="T_SystemConfig.cs" />
97
-    <Compile Include="T_Sys_CallOptLogs.cs" />
98
-    <Compile Include="T_Sys_Department.cs" />
99
-    <Compile Include="T_Sys_LoginLogs.cs" />
100
-    <Compile Include="T_Sys_MobileData.cs" />
101
-    <Compile Include="T_Sys_ModuleFunctions.cs" />
102
-    <Compile Include="T_Sys_ModuleFunctionsOpt.cs" />
103
-    <Compile Include="T_Sys_ModuleInfo.cs" />
104
-    <Compile Include="T_Sys_OperateLogs.cs" />
105
-    <Compile Include="T_Sys_RegionCategory.cs" />
106
-    <Compile Include="T_Sys_RoleAttribute.cs" />
107
-    <Compile Include="T_Sys_RoleFunction.cs" />
108
-    <Compile Include="T_Sys_RoleInfo.cs" />
109
-    <Compile Include="T_Sys_RoleModule.cs" />
110
-    <Compile Include="T_Sys_RoleOpt.cs" />
111
-    <Compile Include="T_Sys_SystemConfig.cs" />
112
-    <Compile Include="T_Sys_TelTitleData.cs" />
113
-    <Compile Include="T_Sys_UserAccount.cs" />
114
-    <Compile Include="T_Sys_UserGroup.cs" />
115
-    <Compile Include="T_Sys_WorkCalendar.cs" />
116
-    <Compile Include="WebSet.cs" />
117
-  </ItemGroup>
118
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
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>{AA2A8EB9-EFA2-4650-B63E-8E82F078F2CD}</ProjectGuid>
9
+    <OutputType>Library</OutputType>
10
+    <AppDesignerFolder>Properties</AppDesignerFolder>
11
+    <RootNamespace>XYFDRQ.Model</RootNamespace>
12
+    <AssemblyName>XYFDRQ.Model</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="classify.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_RightsManagement.cs" />
93
+    <Compile Include="T_Role.cs" />
94
+    <Compile Include="T_Sms_InfoType.cs" />
95
+    <Compile Include="T_Sms_SendInfo.cs" />
96
+    <Compile Include="T_SystemConfig.cs" />
97
+    <Compile Include="T_Sys_CallOptLogs.cs" />
98
+    <Compile Include="T_Sys_Department.cs" />
99
+    <Compile Include="T_Sys_LoginLogs.cs" />
100
+    <Compile Include="T_Sys_MobileData.cs" />
101
+    <Compile Include="T_Sys_ModuleFunctions.cs" />
102
+    <Compile Include="T_Sys_ModuleFunctionsOpt.cs" />
103
+    <Compile Include="T_Sys_ModuleInfo.cs" />
104
+    <Compile Include="T_Sys_OperateLogs.cs" />
105
+    <Compile Include="T_Sys_RegionCategory.cs" />
106
+    <Compile Include="T_Sys_RoleAttribute.cs" />
107
+    <Compile Include="T_Sys_RoleFunction.cs" />
108
+    <Compile Include="T_Sys_RoleInfo.cs" />
109
+    <Compile Include="T_Sys_RoleModule.cs" />
110
+    <Compile Include="T_Sys_RoleOpt.cs" />
111
+    <Compile Include="T_Sys_SystemConfig.cs" />
112
+    <Compile Include="T_Sys_TelTitleData.cs" />
113
+    <Compile Include="T_Sys_UserAccount.cs" />
114
+    <Compile Include="T_Sys_UserGroup.cs" />
115
+    <Compile Include="T_Sys_WorkCalendar.cs" />
116
+    <Compile Include="T_Sys_WorkTimes.cs" />
117
+    <Compile Include="WebSet.cs" />
118
+  </ItemGroup>
119
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
119 120
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
120 121
        Other similar extension points exist, see Microsoft.Common.targets.
121 122
   <Target Name="BeforeBuild">
122 123
   </Target>
123 124
   <Target Name="AfterBuild">
124 125
   </Target>
125
-  -->
126
+  -->
126 127
 </Project>

+ 61 - 0
Model/T_Sys_WorkTimes.cs

@@ -0,0 +1,61 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+
6
+namespace XYFDRQ.Model
7
+{
8
+    /// <summary>
9
+	/// 上班时间段设置
10
+	/// </summary>
11
+	[Serializable]
12
+    public partial class T_Sys_WorkTimes
13
+    {
14
+        public T_Sys_WorkTimes()
15
+        { }
16
+        #region Model
17
+        private int _f_id;
18
+        private DateTime? _f_amstarttimes;
19
+        private DateTime? _f_amendtimes;
20
+        private DateTime? _f_pmstarttimes;
21
+        private DateTime? _f_pmendtimes;
22
+        private string _f_createby;
23
+        private DateTime? f_createon;
24
+        private string _f_createbyip;
25
+        public int F_Id
26
+        {
27
+            set { _f_id = value; }
28
+            get { return _f_id; }
29
+        }
30
+        
31
+        /// <summary>
32
+        /// 上午开始时间
33
+        /// </summary>
34
+        public DateTime? F_AMStartTimes { get => _f_amstarttimes; set => _f_amstarttimes = value; }
35
+        /// <summary>
36
+        /// 上午结束时间
37
+        /// </summary>
38
+        public DateTime? F_AMEndTimes { get => _f_amendtimes; set => _f_amendtimes = value; }
39
+        /// <summary>
40
+        /// 下午开始时间
41
+        /// </summary>
42
+        public DateTime? F_PMStartTimes { get => _f_pmstarttimes; set => _f_pmstarttimes = value; }
43
+        /// <summary>
44
+        /// 下午结束时间
45
+        /// </summary>
46
+        public DateTime? F_PMEndTimes { get => _f_pmendtimes; set => _f_pmendtimes = value; }
47
+        /// <summary>
48
+        /// 提交人
49
+        /// </summary>
50
+        public string F_CreateBy { get => _f_createby; set => _f_createby = value; }
51
+        /// <summary>
52
+        /// 提交时间
53
+        /// </summary>
54
+        public DateTime? F_CreateOn { get => f_createon; set => f_createon = value; }
55
+        /// <summary>
56
+        /// 提交人ip
57
+        /// </summary>
58
+        public string F_CreateByIP { get => _f_createbyip; set => _f_createbyip = value; }
59
+        #endregion Model
60
+    }
61
+}

+ 65 - 0
Web/SysSettings/workcalendarset.aspx

@@ -20,6 +20,7 @@
20 20
 
21 21
     <link href="../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
22 22
     <link href="../images/style.css" rel="stylesheet" type="text/css" />
23
+    <script src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
23 24
 
24 25
     <script type="text/javascript">
25 26
         $(function() {
@@ -105,7 +106,54 @@
105 106
             LoadList();
106 107
         }
107 108
     </script>
109
+    <script  type="text/javascript">
110
+        function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height) {
111
+            var btnstr = "";
112
+            switch (btnstyle) {
113
+                case 0:
114
+                    btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
115
+                    break;
116
+                case 1:
117
+                    btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
118
+                    break;
119
+                case 2:
120
+                    btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();pagination(1);'>确 定</button></div>";
121
+                    break;
122
+                case 3:
123
+                    btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
124
+                    break;
125
+                case 4:
126
+                    btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();DeleteOpt();'>确 定</button>&nbsp;&nbsp;&nbsp;&nbsp;<button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
127
+                    break;
128
+                case 5:
129
+                    btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();SetCallRecordZX();'>确 定</button>&nbsp;&nbsp;&nbsp;&nbsp;<button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
130
+                    break;
131
+                default:
132
+                    break;
133
+            }
134
+            if (_height != null) {
135
+                strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
136
+                document.getElementById("divMessageBox").style.height = _height;
137
+            }
138
+            else {
139
+                strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
140
+                document.getElementById("divMessageBox").style.height = 50;
141
+                _height = 120;
142
+            }
143
+            document.getElementById("spanTitle").innerHTML = strtitle;
144
+            document.getElementById("divContent").innerHTML = strmessage;
145
+            document.getElementById("divMessageBox").style.width = strwidth;
108 146
 
147
+            try {
148
+                document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
149
+                document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
150
+            }
151
+            catch (e)
152
+            { }
153
+            document.getElementById("divLock").style.display = "block";
154
+            document.getElementById("divMessageBox").style.display = "block";
155
+        }
156
+    </script>
109 157
 </head>
110 158
 <body style="margin: 0px; padding: 0px; overflow: hidden;">
111 159
     <form id="form1" runat="server">
@@ -130,6 +178,23 @@
130 178
     </div>
131 179
     <div id="divDataItems" style="width: 100%;">
132 180
     </div>
181
+    <div id="divTimes"  style="width: 100%; border: solid 1px #cccccc; height: 120px; padding-top: 10px;
182
+        text-align: center;">
183
+        <span style="font-size:14px; display:inline-block; line-height:35px; height:35px;">
184
+       上午:<asp:TextBox ID="txtAMSTime" runat="server" CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtAMSTime',dateFmt:'HH:mm'})"></asp:TextBox>
185
+                    &nbsp;&nbsp;-&nbsp;&nbsp;
186
+                    <asp:TextBox ID="txtAMETime" runat="server" CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtAMETime',dateFmt:'HH:mm'})"></asp:TextBox>
187
+            </span>
188
+        <br />
189
+        <span style="font-size:14px; display:inline-block; line-height:35px; height:35px;">
190
+       下午:<asp:TextBox ID="txtPMSTime" runat="server" CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtPMSTime',dateFmt:'HH:mm'})"></asp:TextBox> 
191
+                    &nbsp;&nbsp;-&nbsp;&nbsp;
192
+                    <asp:TextBox ID="txtPMETime" runat="server"  CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtPMETime',dateFmt:'HH:mm'})"></asp:TextBox>
193
+        </span>
194
+        <br />
195
+        <span style="font-size:14px; display:inline-block; line-height:35px; height:35px;">
196
+        <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="btn" Style="width: 80px; height: 23px;" OnClick="btnSave_Click" /></span>
197
+    </div>
133 198
     </form>
134 199
 </body>
135 200
 </html>

+ 52 - 3
Web/SysSettings/workcalendarset.aspx.cs

@@ -10,12 +10,61 @@ using System.Web.UI.HtmlControls;
10 10
 using System.Web.UI.WebControls;
11 11
 using System.Web.UI.WebControls.WebParts;
12 12
 using System.Xml.Linq;
13
-
13
+using XYFDRQ.Common;
14
+
14 15
 public partial class SysSettings_workcalendarset : System.Web.UI.Page
15 16
 {
17
+    XYFDRQ.BLL.T_Sys_WorkTimes timebll = new XYFDRQ.BLL.T_Sys_WorkTimes();
16 18
     protected void Page_Load(object sender, EventArgs e)
17 19
     {
18
-        txtYear.Text = DateTime.Now.ToString("yyyy");
19
-        txtMonth.Text = DateTime.Now.ToString("MM");
20
+        if (!this.IsPostBack)
21
+        {
22
+            txtYear.Text = DateTime.Now.ToString("yyyy");
23
+            txtMonth.Text = DateTime.Now.ToString("MM");
24
+            bindtimes();
25
+        }
20 26
     }
27
+    private void bindtimes()
28
+    {
29
+        
30
+        var times = timebll.GetModelList(" 1=1 order by F_CreateOn desc").FirstOrDefault();
31
+        if(times!=null)
32
+        {
33
+            txtAMSTime.Text = times.F_AMStartTimes != null ? times.F_AMStartTimes.Value.ToString("HH:mm") : "";
34
+            txtAMETime.Text = times.F_AMEndTimes != null ? times.F_AMEndTimes.Value.ToString("HH:mm") : "";
35
+            txtPMSTime.Text = times.F_PMStartTimes != null ? times.F_PMStartTimes.Value.ToString("HH:mm") : "";
36
+            txtPMETime.Text = times.F_PMEndTimes != null ? times.F_PMEndTimes.Value.ToString("HH:mm") : "";
37
+        }
38
+    }
39
+
40
+    protected void btnSave_Click(object sender, EventArgs e)
41
+    {
42
+        try
43
+        {
44
+            LoginUser p_LoginUser = new LoginUser(this.Context);
45
+            XYFDRQ.Model.T_Sys_WorkTimes timemodel = new XYFDRQ.Model.T_Sys_WorkTimes();
46
+            if (!string.IsNullOrEmpty(txtAMSTime.Text))
47
+                timemodel.F_AMStartTimes = DateTime.Parse(txtAMSTime.Text);
48
+            if (!string.IsNullOrEmpty(txtAMETime.Text))
49
+                timemodel.F_AMEndTimes = DateTime.Parse(txtAMETime.Text);
50
+            if (!string.IsNullOrEmpty(txtPMSTime.Text))
51
+                timemodel.F_PMStartTimes = DateTime.Parse(txtPMSTime.Text);
52
+            if (!string.IsNullOrEmpty(txtPMETime.Text))
53
+                timemodel.F_PMEndTimes = DateTime.Parse(txtPMETime.Text);
54
+            timemodel.F_CreateBy = p_LoginUser.UserCode;
55
+            timemodel.F_CreateOn = DateTime.Now;
56
+            timemodel.F_CreateByIP = Request.UserHostAddress;
57
+            var res = timebll.Add(timemodel);
58
+            if (res > 0)
59
+            {
60
+                Page.ClientScript.RegisterStartupScript(GetType(), "confirm", "OpenMessage('framemessage', '提示', '保存成功', 200, 0);", true);
61
+            }
62
+            else
63
+                Page.ClientScript.RegisterStartupScript(GetType(), "confirm", "OpenMessage('framemessage', '提示', '保存失败,请稍后重试!', 200, 0);", true);
64
+        }
65
+        catch (Exception ex)
66
+        {
67
+            Page.ClientScript.RegisterStartupScript(GetType(), "confirm", "OpenMessage('framemessage', '提示', ''保存异常,请联系技术人员<br /><br /><span style=\"color:red;\">" + ex.Message.Trim().Replace("'", "") + "</span>', 220, 0);", true);
68
+        }
69
+    }
21 70
 }