Browse Source

优化项目结构

liuyuqi-dellpc 2 years ago
parent
commit
4973cbe564

+ 21 - 0
README.md

@@ -0,0 +1,21 @@
+# HotelManage
+
+酒店管理系统
+
+
+## developer
+
+* vs 2019 above
+* sql server2018
+* iis 
+* windows 10 above
+* .net froment4.7.2
+* nuget:  microsoft.reportviewer.webform
+
+
+```
+Get-Package
+
+```
+
+

+ 5 - 2
src/BLL/BLL.csproj

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,8 +10,9 @@
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>BLL</RootNamespace>
     <RootNamespace>BLL</RootNamespace>
     <AssemblyName>BLL</AssemblyName>
     <AssemblyName>BLL</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <FileAlignment>512</FileAlignment>
+    <TargetFrameworkProfile />
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
     <DebugSymbols>true</DebugSymbols>
@@ -21,6 +22,7 @@
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
     <DebugType>pdbonly</DebugType>
@@ -29,6 +31,7 @@
     <DefineConstants>TRACE</DefineConstants>
     <DefineConstants>TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
   </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Reference Include="System" />
     <Reference Include="System" />

+ 5 - 2
src/DAL/DAL.csproj

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,8 +10,9 @@
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>DAL</RootNamespace>
     <RootNamespace>DAL</RootNamespace>
     <AssemblyName>DAL</AssemblyName>
     <AssemblyName>DAL</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <FileAlignment>512</FileAlignment>
+    <TargetFrameworkProfile />
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
     <DebugSymbols>true</DebugSymbols>
@@ -21,6 +22,7 @@
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
     <DebugType>pdbonly</DebugType>
@@ -29,6 +31,7 @@
     <DefineConstants>TRACE</DefineConstants>
     <DefineConstants>TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
   </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Reference Include="System" />
     <Reference Include="System" />

+ 0 - 2
src/DAL/DBHelper.cs

@@ -38,7 +38,5 @@ namespace DAL
   
   
       }
       }
 
 
-
-
     }
     }
 }
 }

+ 7 - 2
src/HotelManage.sln

@@ -1,6 +1,8 @@
 
 
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.32802.440
+MinimumVisualStudioVersion = 10.0.40219.1
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelManage", "HotelManage\HotelManage.csproj", "{6CF68FCC-6C94-499E-BE43-686836AC8835}"
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelManage", "HotelManage\HotelManage.csproj", "{6CF68FCC-6C94-499E-BE43-686836AC8835}"
 EndProject
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DAL", "DAL\DAL.csproj", "{E9BC7E1B-804F-46F6-87FA-85877625A4CE}"
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DAL", "DAL\DAL.csproj", "{E9BC7E1B-804F-46F6-87FA-85877625A4CE}"
@@ -29,4 +31,7 @@ Global
 	GlobalSection(SolutionProperties) = preSolution
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 		HideSolutionNode = FALSE
 	EndGlobalSection
 	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {15B37864-1A88-4BCD-9DE6-F21BCFCD6FC1}
+	EndGlobalSection
 EndGlobal
 EndGlobal

+ 0 - 24
src/HotelManage/AboutUs.aspx.designer.cs

@@ -1,24 +0,0 @@
-//------------------------------------------------------------------------------
-// <自动生成>
-//     此代码由工具生成。
-//
-//     对此文件的更改可能会导致不正确的行为,并且如果
-//     重新生成代码,这些更改将会丢失。 
-// </自动生成>
-//------------------------------------------------------------------------------
-
-namespace HotelManage {
-    
-    
-    public partial class AboutUs {
-        
-        /// <summary>
-        /// form1 控件。
-        /// </summary>
-        /// <remarks>
-        /// 自动生成的字段。
-        /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
-        /// </remarks>
-        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-    }
-}

+ 1 - 3
src/HotelManage/ChangeGuest.aspx.cs

@@ -19,6 +19,7 @@ namespace HotelManage
                 bind();
                 bind();
             }
             }
         }
         }
+
         public void bind() {
         public void bind() {
             DataTable dt = BLL_Hotel.bind_GuestTname();
             DataTable dt = BLL_Hotel.bind_GuestTname();
             this.DropDownList1.DataSource = dt;
             this.DropDownList1.DataSource = dt;
@@ -36,9 +37,6 @@ namespace HotelManage
                 this.RadioButton2.Checked = true;
                 this.RadioButton2.Checked = true;
             }
             }
             this.DropDownList1.SelectedValue = dt1.Rows[0]["gtid"].ToString();
             this.DropDownList1.SelectedValue = dt1.Rows[0]["gtid"].ToString();
-
-        
-        
         }
         }
 
 
         protected void Button1_Click(object sender, EventArgs e)
         protected void Button1_Click(object sender, EventArgs e)

+ 3 - 3
src/HotelManage/ChangeSession.aspx

@@ -8,9 +8,9 @@
 </head>
 </head>
 <body>
 <body>
     <form id="form1" runat="server">
     <form id="form1" runat="server">
-    <div>
-    
-    </div>
+        <div>
+            
+        </div>
     </form>
     </form>
 </body>
 </body>
 </html>
 </html>

+ 49 - 10
src/HotelManage/HotelManage.csproj

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
   <PropertyGroup>
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -12,8 +13,20 @@
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>HotelManage</RootNamespace>
     <RootNamespace>HotelManage</RootNamespace>
     <AssemblyName>HotelManage</AssemblyName>
     <AssemblyName>HotelManage</AssemblyName>
-    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
     <UseIISExpress>false</UseIISExpress>
     <UseIISExpress>false</UseIISExpress>
+    <FileUpgradeFlags>
+    </FileUpgradeFlags>
+    <UpgradeBackupLocation>
+    </UpgradeBackupLocation>
+    <OldToolsVersion>4.0</OldToolsVersion>
+    <TargetFrameworkProfile />
+    <Use64BitIISExpress />
+    <IISExpressSSLPort />
+    <IISExpressAnonymousAuthentication />
+    <IISExpressWindowsAuthentication />
+    <IISExpressUseClassicPipelineMode />
+    <UseGlobalApplicationHostFile />
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
     <DebugSymbols>true</DebugSymbols>
@@ -23,6 +36,14 @@
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <Prefer32Bit>false</Prefer32Bit>
+    <PublishDatabaseSettings>
+      <Objects>
+        <ObjectGroup Name="sqlserver1-Deployment" Order="1">
+          <Destination Path="" />
+        </ObjectGroup>
+      </Objects>
+    </PublishDatabaseSettings>
   </PropertyGroup>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
     <DebugType>pdbonly</DebugType>
@@ -31,31 +52,40 @@
     <DefineConstants>TRACE</DefineConstants>
     <DefineConstants>TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
+    <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
   </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Reference Include="Microsoft.CSharp" />
     <Reference Include="Microsoft.CSharp" />
+    <Reference Include="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <HintPath>..\packages\Microsoft.ReportViewer.Common.10.0.40219.1\lib\Microsoft.ReportViewer.Common.dll</HintPath>
+    </Reference>
+    <Reference Include="Microsoft.ReportViewer.DataVisualization, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <HintPath>..\packages\Microsoft.ReportViewer.Common.10.0.40219.1\lib\Microsoft.ReportViewer.DataVisualization.dll</HintPath>
+    </Reference>
+    <Reference Include="Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <HintPath>..\packages\Microsoft.ReportViewer.Common.10.0.40219.1\lib\Microsoft.ReportViewer.ProcessingObjectModel.dll</HintPath>
+    </Reference>
     <Reference Include="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
     <Reference Include="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
-      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\packages\Microsoft.ReportViewer.WebForms.10.0.40219.1\lib\Microsoft.ReportViewer.WebForms.dll</HintPath>
     </Reference>
     </Reference>
+    <Reference Include="System.Data.DataSetExtensions" />
     <Reference Include="System.Web.DynamicData" />
     <Reference Include="System.Web.DynamicData" />
     <Reference Include="System.Web.Entity" />
     <Reference Include="System.Web.Entity" />
     <Reference Include="System.Web.ApplicationServices" />
     <Reference Include="System.Web.ApplicationServices" />
     <Reference Include="System" />
     <Reference Include="System" />
     <Reference Include="System.Data" />
     <Reference Include="System.Data" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Data.DataSetExtensions" />
     <Reference Include="System.Web.Extensions" />
     <Reference Include="System.Web.Extensions" />
-    <Reference Include="System.Xml.Linq" />
     <Reference Include="System.Drawing" />
     <Reference Include="System.Drawing" />
     <Reference Include="System.Web" />
     <Reference Include="System.Web" />
     <Reference Include="System.Xml" />
     <Reference Include="System.Xml" />
     <Reference Include="System.Configuration" />
     <Reference Include="System.Configuration" />
     <Reference Include="System.Web.Services" />
     <Reference Include="System.Web.Services" />
     <Reference Include="System.EnterpriseServices" />
     <Reference Include="System.EnterpriseServices" />
+    <Reference Include="System.Xml.Linq" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <Content Include="AboutProject.aspx" />
     <Content Include="AboutProject.aspx" />
-    <Content Include="AboutUs.aspx" />
+    <Content Include="Pages\AboutUs.aspx" />
     <Content Include="ChangeGuest.aspx" />
     <Content Include="ChangeGuest.aspx" />
     <Content Include="CreRoom.aspx" />
     <Content Include="CreRoom.aspx" />
     <Content Include="GuestMan.aspx" />
     <Content Include="GuestMan.aspx" />
@@ -235,11 +265,11 @@
     <Compile Include="AboutProject.aspx.designer.cs">
     <Compile Include="AboutProject.aspx.designer.cs">
       <DependentUpon>AboutProject.aspx</DependentUpon>
       <DependentUpon>AboutProject.aspx</DependentUpon>
     </Compile>
     </Compile>
-    <Compile Include="AboutUs.aspx.cs">
+    <Compile Include="Pages\AboutUs.aspx.cs">
       <DependentUpon>AboutUs.aspx</DependentUpon>
       <DependentUpon>AboutUs.aspx</DependentUpon>
       <SubType>ASPXCodeBehind</SubType>
       <SubType>ASPXCodeBehind</SubType>
     </Compile>
     </Compile>
-    <Compile Include="AboutUs.aspx.designer.cs">
+    <Compile Include="Pages\AboutUs.aspx.designer.cs">
       <DependentUpon>AboutUs.aspx</DependentUpon>
       <DependentUpon>AboutUs.aspx</DependentUpon>
     </Compile>
     </Compile>
     <Compile Include="Act.aspx.cs">
     <Compile Include="Act.aspx.cs">
@@ -456,8 +486,17 @@
       <Name>BLL</Name>
       <Name>BLL</Name>
     </ProjectReference>
     </ProjectReference>
   </ItemGroup>
   </ItemGroup>
+  <ItemGroup>
+    <None Include="packages.config" />
+  </ItemGroup>
+  <ItemGroup />
+  <PropertyGroup>
+    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+  </PropertyGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+  <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
+  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
   <ProjectExtensions>
   <ProjectExtensions>
     <VisualStudio>
     <VisualStudio>
       <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
       <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">

+ 2 - 31
src/HotelManage/Index.aspx

@@ -4,7 +4,7 @@
 
 
 <html xmlns="http://www.w3.org/1999/xhtml">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head id="Head1" runat="server">
 <head id="Head1" runat="server">
-    <title></title>
+<title>首页</title>
 <style type="text/css">
 <style type="text/css">
 body{ margin:0px; width:100%; overflow:hidden;scrolling:no;}
 body{ margin:0px; width:100%; overflow:hidden;scrolling:no;}
 #top{width:100%;height:140px; scrolling:no; }
 #top{width:100%;height:140px; scrolling:no; }
@@ -17,22 +17,14 @@ body{ margin:0px; width:100%; overflow:hidden;scrolling:no;}
 .white_content{border-radius:15px ;display: none;position: absolute;top: 40%;left: 32%;width: 35%;height:218px;border: 10px solid #00AA68;background-color: white;z-index:1002;overflow: auto; text-align:center}
 .white_content{border-radius:15px ;display: none;position: absolute;top: 40%;left: 32%;width: 35%;height:218px;border: 10px solid #00AA68;background-color: white;z-index:1002;overflow: auto; text-align:center}
 .white_content_small {border-radius:15px; display: none;position: absolute;top: 20%;left: 30%;width: 40%;height: 50%;border: 10px solid #00AA68;background-color: white;z-index:1002;overflow: auto;}
 .white_content_small {border-radius:15px; display: none;position: absolute;top: 20%;left: 30%;width: 40%;height: 50%;border: 10px solid #00AA68;background-color: white;z-index:1002;overflow: auto;}
 
 
-
-
 </style>
 </style>
-
-
-
 <script type="text/javascript">
 <script type="text/javascript">
     //弹出隐藏层
     //弹出隐藏层
     function ShowDiv(show_div, bg_div) {
     function ShowDiv(show_div, bg_div) {
-
         var Opname='<%=Session["opname"] %>';
         var Opname='<%=Session["opname"] %>';
         if (Opname != "") { 
         if (Opname != "") { 
         document.getElementById("compareIframe").src = "changeSession.aspx?sd=1"; 
         document.getElementById("compareIframe").src = "changeSession.aspx?sd=1"; 
-        } 
-
-
+        }
         document.getElementById(show_div).style.display = 'block';
         document.getElementById(show_div).style.display = 'block';
         document.getElementById(bg_div).style.display = 'block';
         document.getElementById(bg_div).style.display = 'block';
         var bgdiv = document.getElementById(bg_div);
         var bgdiv = document.getElementById(bg_div);
@@ -41,12 +33,9 @@ body{ margin:0px; width:100%; overflow:hidden;scrolling:no;}
     };
     };
     //关闭弹出层
     //关闭弹出层
     function CloseDiv(show_div, bg_div) {
     function CloseDiv(show_div, bg_div) {
-
-
         var pwd = document.getElementById("Text1").value;  //获取text的值
         var pwd = document.getElementById("Text1").value;  //获取text的值
         var pwd1 = '<%=Session["pwd"] %>';
         var pwd1 = '<%=Session["pwd"] %>';
       
       
-       
         if (pwd == pwd1) { 
         if (pwd == pwd1) { 
               document.getElementById(show_div).style.display = 'none';
               document.getElementById(show_div).style.display = 'none';
               document.getElementById(bg_div).style.display = 'none';
               document.getElementById(bg_div).style.display = 'none';
@@ -61,13 +50,10 @@ body{ margin:0px; width:100%; overflow:hidden;scrolling:no;}
 </script>
 </script>
 
 
 <script type="text/jscript">
 <script type="text/jscript">
-
     function stop() {
     function stop() {
-
         return false;
         return false;
 
 
     }
     }
-
     document.oncontextmenu = stop;
     document.oncontextmenu = stop;
 
 
 </script>
 </script>
@@ -81,17 +67,8 @@ body{ margin:0px; width:100%; overflow:hidden;scrolling:no;}
           }
           }
       }
       }
   </script>
   </script>
-
-
-
-
-
-
-
 </head>
 </head>
 <body onload="stop()">    
 <body onload="stop()">    
-
-
     <form id="form1" runat="server"> 
     <form id="form1" runat="server"> 
      <input id="Bt" type="button" value="锁定" onclick="ShowDiv('MyDiv','fade')" style="border-radius:7px; border:white solid  2px; width:50px; height:26px; background-color:#00AA68; font-size:16px; font-family:微软雅黑; color:White;cursor:pointer; position: absolute; top:100px; left:388px" />  
      <input id="Bt" type="button" value="锁定" onclick="ShowDiv('MyDiv','fade')" style="border-radius:7px; border:white solid  2px; width:50px; height:26px; background-color:#00AA68; font-size:16px; font-family:微软雅黑; color:White;cursor:pointer; position: absolute; top:100px; left:388px" />  
     <div>
     <div>
@@ -129,14 +106,8 @@ body{ margin:0px; width:100%; overflow:hidden;scrolling:no;}
     tel:13657168500&nbsp;&nbsp;&nbsp;qq:844591473&nbsp;&nbsp;&nbsp;mail:kuankuank@outlook.com</p>
     tel:13657168500&nbsp;&nbsp;&nbsp;qq:844591473&nbsp;&nbsp;&nbsp;mail:kuankuank@outlook.com</p>
 
 
 </div>
 </div>
-
-
-
     </form>
     </form>
-    
     <%--<span style="font-size: 16px;" onclick="CloseDiv('MyDiv','fade')">关闭</span>--%>
     <%--<span style="font-size: 16px;" onclick="CloseDiv('MyDiv','fade')">关闭</span>--%>
-
-   
 </body>
 </body>
 </html>
 </html>
 
 

+ 7 - 11
src/HotelManage/Login.aspx

@@ -4,26 +4,22 @@
 
 
 <html xmlns="http://www.w3.org/1999/xhtml">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head runat="server">
 <head runat="server">
-<title></title>
+<title>登录</title>
 <style type="text/css">
 <style type="text/css">
 body{ margin:0px; padding:0px;overflow:scroll;overflow-x:hidden}
 body{ margin:0px; padding:0px;overflow:scroll;overflow-x:hidden}
 #top{ background-color:#00AA68; height:110px; width:100%}
 #top{ background-color:#00AA68; height:110px; width:100%}
 #middle{ background-color:#F8DEDA; height:500px; width:100%; text-align:center}
 #middle{ background-color:#F8DEDA; height:500px; width:100%; text-align:center}
 #login{ ba}
 #login{ ba}
-    
 </style>
 </style>
 </head>
 </head>
 <body>
 <body>
     <form id="form1" runat="server">
     <form id="form1" runat="server">
-    <div> 
-    <div id="top"></div>
-    <div id="middle"><img src="images/img3.jpg"/>
-    <div id="login"></div>
-    
-    
-    </div>
-    
-    </div>
+        <div>
+            <div id="top"></div>
+            <div id="middle"><img src="images/img3.jpg" />
+                <div id="login"></div>
+            </div>
+        </div>
     </form>
     </form>
 </body>
 </body>
 </html>
 </html>

+ 15 - 15
src/HotelManage/OPLogin.aspx

@@ -18,24 +18,24 @@ body{ margin:0px; padding:0px; background-image:url("images/opbg1.jpg"); backgro
 
 
 <body>
 <body>
     <form id="form1" runat="server">
     <form id="form1" runat="server">
-    <div>
-    <div id="login">
+        <div>
+            <div id="login">
                 <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                 <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
-        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
-            <ContentTemplate>
-               
-        <asp:TextBox ID="TextBox1" runat="server" class="username" Font-Size="18pt" 
-            ForeColor="#00AA68"   placeholder="请输入帐号" > </asp:TextBox> <br/>
-        <asp:TextBox ID="TextBox2" runat="server" class="userpwd" Font-Size="18pt" 
-            ForeColor="#00AA68" TextMode="Password"   placeholder="请输入密码" ></asp:TextBox>
-        <asp:Button ID="Button1" runat="server" Text="登      录" class="loginbuttom" 
-            Font-Bold="False" ForeColor="White" onclick="Button1_Click" />
-        <asp:Label ID="Label1" runat="server" Text="" class="error" 
-            CssClass="error" Font-Bold="False" Font-Size="18pt" ForeColor="Red"></asp:Label>
+                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
+                    <ContentTemplate>
+                    
+                <asp:TextBox ID="TextBox1" runat="server" class="username" Font-Size="18pt" 
+                    ForeColor="#00AA68"   placeholder="请输入帐号" > </asp:TextBox> <br/>
+                <asp:TextBox ID="TextBox2" runat="server" class="userpwd" Font-Size="18pt" 
+                    ForeColor="#00AA68" TextMode="Password"   placeholder="请输入密码" ></asp:TextBox>
+                <asp:Button ID="Button1" runat="server" Text="登      录" class="loginbuttom" 
+                    Font-Bold="False" ForeColor="White" onclick="Button1_Click" />
+                <asp:Label ID="Label1" runat="server" Text="" class="error" 
+                    CssClass="error" Font-Bold="False" Font-Size="18pt" ForeColor="Red"></asp:Label>
 
 
-           </ContentTemplate> </asp:UpdatePanel>
+                </ContentTemplate> </asp:UpdatePanel>
+            </div>
         </div>
         </div>
-    </div>
     </form>
     </form>
 </body>
 </body>
 </html>
 </html>

+ 1 - 3
src/HotelManage/OPLogin.aspx.cs

@@ -19,16 +19,14 @@ namespace HotelManage
         {
         {
             string opname = this.TextBox1.Text;
             string opname = this.TextBox1.Text;
             string oppwd = this.TextBox2.Text;
             string oppwd = this.TextBox2.Text;
-            DataTable dt= BLL_Hotel.OP_login(opname,oppwd);
+            DataTable dt = BLL_Hotel.OP_login(opname,oppwd);
             if (dt.Rows.Count > 0)
             if (dt.Rows.Count > 0)
             {   Session["opname"] = dt.Rows[0]["oname"].ToString();
             {   Session["opname"] = dt.Rows[0]["oname"].ToString();
                 Session["pwd"] = dt.Rows[0]["pwd"].ToString();
                 Session["pwd"] = dt.Rows[0]["pwd"].ToString();
                 Response.Redirect("index.aspx");
                 Response.Redirect("index.aspx");
-               
             }
             }
             else {
             else {
                 this.Label1.Text ="帐号或密码错误!";
                 this.Label1.Text ="帐号或密码错误!";
-            
             }
             }
            
            
         }
         }

+ 1 - 5
src/HotelManage/AboutUs.aspx → src/HotelManage/Pages/AboutUs.aspx

@@ -15,11 +15,7 @@ body{text-align:center; overflow-y:hidden;overflow-X:hidden;}
 <body style="text-align: center">
 <body style="text-align: center">
     <form id="form1" runat="server">
     <form id="form1" runat="server">
 
 
-    <div id="bk" class="style2">
-
-
-
-     
+    <div id="bk" class="style2"
         
         
         <div id="foot">
         <div id="foot">
             <br />
             <br />

+ 0 - 0
src/HotelManage/AboutUs.aspx.cs → src/HotelManage/Pages/AboutUs.aspx.cs


+ 26 - 0
src/HotelManage/Pages/AboutUs.aspx.designer.cs

@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated. 
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace HotelManage
+{
+
+
+    public partial class AboutUs
+    {
+
+        /// <summary>
+        /// form1 control.
+        /// </summary>
+        /// <remarks>
+        /// Auto-generated field.
+        /// To modify move field declaration from designer file to code-behind file.
+        /// </remarks>
+        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+    }
+}

+ 0 - 34
src/HotelManage/Report_Ave.aspx.cs

@@ -56,9 +56,6 @@ namespace HotelManage
 
 
                 }
                 }
 
 
-
-
-
             }
             }
 
 
             return sb.ToString();
             return sb.ToString();
@@ -98,42 +95,11 @@ namespace HotelManage
 
 
                 }
                 }
 
 
-
-
-
             }
             }
 
 
             return sb.ToString();
             return sb.ToString();
         }
         }
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
     }
     }
 }
 }
 
 

+ 18 - 10
src/HotelManage/Web.config

@@ -4,27 +4,35 @@
   http://go.microsoft.com/fwlink/?LinkId=169433
   http://go.microsoft.com/fwlink/?LinkId=169433
   -->
   -->
 <configuration>
 <configuration>
+  <!--
+    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
+
+    The following attributes can be set on the <httpRuntime> tag.
+      <system.Web>
+        <httpRuntime targetFramework="4.7.2" />
+      </system.Web>
+  -->
   <system.web>
   <system.web>
     <httpHandlers>
     <httpHandlers>
-      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
-        validate="false" />
+      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
     </httpHandlers>
     </httpHandlers>
-    <compilation debug="true" targetFramework="4.0">
+    <compilation debug="true" targetFramework="4.7.2">
       <assemblies>
       <assemblies>
-        <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
-        <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
-        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
-        <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
+        <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
+        <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
+        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
+        <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
       </assemblies>
       </assemblies>
       <buildProviders>
       <buildProviders>
-        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
       </buildProviders>
       </buildProviders>
     </compilation>
     </compilation>
+    <pages controlRenderingCompatibilityVersion="4.0"/>
   </system.web>
   </system.web>
   <system.webServer>
   <system.webServer>
-    <validation validateIntegratedModeConfiguration="false" />
+    <validation validateIntegratedModeConfiguration="false"/>
     <handlers>
     <handlers>
-      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
     </handlers>
     </handlers>
   </system.webServer>
   </system.webServer>
 </configuration>
 </configuration>

+ 5 - 0
src/HotelManage/packages.config

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+  <package id="Microsoft.ReportViewer.Common" version="10.0.40219.1" targetFramework="net472" />
+  <package id="Microsoft.ReportViewer.WebForms" version="10.0.40219.1" targetFramework="net472" />
+</packages>