蚂蚁调度控制台,升级为netcore3.1
This commit is contained in:
parent
fbd61c0cf1
commit
e4b468711c
|
@ -0,0 +1,112 @@
|
|||
# EditorConfig is awesome:http://EditorConfig.org
|
||||
# https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Don't use tabs for indentation.
|
||||
[*]
|
||||
indent_style = space
|
||||
# (Please don't specify an indent_size here; that has too many unintended consequences.)
|
||||
|
||||
# Code files
|
||||
[*.{cs,csx,vb,vbx}]
|
||||
indent_size = 4
|
||||
insert_final_newline = false
|
||||
charset = utf-8-bom
|
||||
end_of_line = crlf
|
||||
|
||||
# Xml project files
|
||||
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
|
||||
indent_size = 2
|
||||
|
||||
# Xml config files
|
||||
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
|
||||
indent_size = 2
|
||||
|
||||
# JSON files
|
||||
[*.json]
|
||||
indent_size = 2
|
||||
|
||||
# Dotnet code style settings:
|
||||
[*.{cs,vb}]
|
||||
# Sort using and Import directives with System.* appearing first
|
||||
dotnet_sort_system_directives_first = true
|
||||
|
||||
csharp_indent_case_contents = true
|
||||
csharp_indent_switch_labels = true
|
||||
csharp_indent_labels = flush_left
|
||||
|
||||
#csharp_space_after_cast = true
|
||||
#csharp_space_after_keywords_in_control_flow_statements = true
|
||||
#csharp_space_between_method_declaration_parameter_list_parentheses = true
|
||||
#csharp_space_between_method_call_parameter_list_parentheses = true
|
||||
#csharp_space_between_parentheses = control_flow_statements, type_casts
|
||||
|
||||
# 单行放置代码
|
||||
csharp_preserve_single_line_statements = true
|
||||
csharp_preserve_single_line_blocks = true
|
||||
|
||||
# Avoid "this." and "Me." if not necessary
|
||||
dotnet_style_qualification_for_field = false:warning
|
||||
dotnet_style_qualification_for_property = false:warning
|
||||
dotnet_style_qualification_for_method = false:warning
|
||||
dotnet_style_qualification_for_event = false:warning
|
||||
|
||||
# Use language keywords instead of framework type names for type references
|
||||
dotnet_style_predefined_type_for_locals_parameters_members = false:suggestion
|
||||
dotnet_style_predefined_type_for_member_access = false:suggestion
|
||||
#dotnet_style_require_accessibility_modifiers = for_non_interface_members:none/always:suggestion
|
||||
|
||||
# Suggest more modern language features when available
|
||||
dotnet_style_object_initializer = true:suggestion
|
||||
dotnet_style_collection_initializer = true:suggestion
|
||||
dotnet_style_coalesce_expression = true:suggestion
|
||||
dotnet_style_null_propagation = true:suggestion
|
||||
dotnet_style_explicit_tuple_names = true:suggestion
|
||||
dotnet_style_prefer_inferred_tuple_names = true:suggestion
|
||||
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
|
||||
|
||||
# CSharp code style settings:
|
||||
[*.cs]
|
||||
# Prefer "var" everywhere
|
||||
csharp_style_var_for_built_in_types = true:warning
|
||||
csharp_style_var_when_type_is_apparent = true:warning
|
||||
csharp_style_var_elsewhere = true:warning
|
||||
|
||||
# Prefer method-like constructs to have a block body
|
||||
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
|
||||
csharp_style_expression_bodied_constructors = when_on_single_line:suggestion
|
||||
csharp_style_expression_bodied_operators = when_on_single_line:suggestion
|
||||
|
||||
# Prefer property-like constructs to have an expression-body
|
||||
csharp_style_expression_bodied_properties = true:suggestion
|
||||
csharp_style_expression_bodied_indexers = true:suggestion
|
||||
#csharp_style_expression_bodied_accessors = true:suggestion
|
||||
|
||||
# Suggest more modern language features when available
|
||||
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
|
||||
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
|
||||
csharp_style_inlined_variable_declaration = true:suggestion
|
||||
|
||||
csharp_prefer_simple_default_expression = true:suggestion
|
||||
csharp_style_deconstructed_variable_declaration = true:suggestion
|
||||
csharp_style_pattern_local_over_anonymous_function = true:suggestion
|
||||
|
||||
csharp_style_throw_expression = true:suggestion
|
||||
csharp_style_conditional_delegate_call = true:suggestion
|
||||
|
||||
# 单行不需要大括号
|
||||
csharp_prefer_braces = false:suggestion
|
||||
|
||||
# Newline settings
|
||||
csharp_new_line_before_open_brace = all
|
||||
csharp_new_line_before_else = true
|
||||
csharp_new_line_before_catch = true
|
||||
csharp_new_line_before_finally = true
|
||||
csharp_new_line_before_members_in_object_initializers = true
|
||||
csharp_new_line_before_members_in_anonymous_types = true
|
||||
csharp_new_line_between_query_expression_clauses = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
|
@ -27,3 +27,4 @@ bld/
|
|||
/AntJob.Web/Plugins
|
||||
/AntJob.Data/Config
|
||||
/AntJob.Web/Entity
|
||||
/BinWeb
|
||||
|
|
|
@ -16,20 +16,6 @@
|
|||
<DefineConstants>TRACE</DefineConstants>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<PackageId>NewLife.$(AssemblyName)</PackageId>
|
||||
<Authors>$(Company)</Authors>
|
||||
<ProjectUrl>https://github.com/NewLifeX</ProjectUrl>
|
||||
<PackageIconUrl>http://www.NewLifeX.com/favicon.ico</PackageIconUrl>
|
||||
<RepositoryUrl>https://github.com/NewLifeX/AntJob</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
|
||||
<PackageReleaseNotes>重量级任务调度系统</PackageReleaseNotes>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<IncludeSource>true</IncludeSource>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
|
||||
<DefineConstants>$(DefineConstants);NETSTANDARD2_0;__CORE__</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
@ -41,38 +27,22 @@
|
|||
<DebugType>full</DebugType>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Remove="Config\**" />
|
||||
<Compile Remove="Data\**" />
|
||||
<Compile Remove="Log\**" />
|
||||
<EmbeddedResource Remove="Config\**" />
|
||||
<EmbeddedResource Remove="Data\**" />
|
||||
<EmbeddedResource Remove="Log\**" />
|
||||
<None Remove="Config\**" />
|
||||
<None Remove="Data\**" />
|
||||
<None Remove="Log\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Build.tt" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="Build.tt">
|
||||
<Generator>TextTemplatingFileGenerator</Generator>
|
||||
<LastGenOutput>Build.log</LastGenOutput>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NewLife.Core" Version="8.5.2020.101" />
|
||||
<PackageReference Include="NewLife.XCode" Version="9.14.2020.101" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Build.log">
|
||||
<DesignTime>True</DesignTime>
|
||||
|
@ -80,7 +50,6 @@
|
|||
<DependentUpon>Build.tt</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AntJob\AntJob.csproj" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -1,296 +1,32 @@
|
|||
<Project ToolsVersion="15.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')" />
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{A9E0597C-E818-4B33-8AC3-BE134D68B78E}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>AntJob.Web</RootNamespace>
|
||||
<AssemblyName>AntJob.Web</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<AssemblyTitle>蚂蚁调度控制台</AssemblyTitle>
|
||||
<Description>分布式任务调度系统,纯NET打造的重量级大数据实时计算平台,万亿级调度经验积累!面向1000作业以内中小企业大数据分析场景。</Description>
|
||||
<Company>新生命开发团队</Company>
|
||||
<Copyright>版权所有(C) 新生命开发团队 2020</Copyright>
|
||||
<Version>1.0.2020.0110</Version>
|
||||
<FileVersion>1.0.2020.0110</FileVersion>
|
||||
<AssemblyVersion>1.0.*</AssemblyVersion>
|
||||
<Deterministic>false</Deterministic>
|
||||
<OutputPath>..\BinWeb</OutputPath>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Microsoft.VisualBasic" />
|
||||
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NewLife.Core, Version=8.5.7305.42329, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NewLife.Core.8.5.2020.101\lib\net46\NewLife.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NewLife.Cube, Version=2.8.7253.589, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NewLife.Cube.2.8.7253.589\lib\net45\NewLife.Cube.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.ServiceProcess" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.6\lib\net45\System.Web.Helpers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Mvc, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.6\lib\net45\System.Web.Mvc.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.6\lib\net45\System.Web.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.6\lib\net45\System.Web.WebPages.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.6\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="XCode, Version=9.14.7305.42400, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NewLife.XCode.9.14.2020.101\lib\net45\XCode.dll</HintPath>
|
||||
</Reference>
|
||||
<PackageReference Include="NewLife.Core" Version="8.5.2020.101" />
|
||||
<PackageReference Include="NewLife.Cube.Core" Version="3.0.2020.101" />
|
||||
<PackageReference Include="NewLife.XCode" Version="9.14.2020.101" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Global.asax" />
|
||||
<ProjectReference Include="..\AntJob.Data\AntJob.Data.csproj" />
|
||||
<ProjectReference Include="..\AntJob\AntJob.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Areas\Ant\AntAreaRegistration.cs" />
|
||||
<Compile Include="Areas\Ant\Controllers\AppController.cs" />
|
||||
<Compile Include="Areas\Ant\Controllers\AppOnlineController.cs" />
|
||||
<Compile Include="Areas\Ant\Controllers\JobController.cs" />
|
||||
<Compile Include="Areas\Ant\Controllers\JobErrorController.cs" />
|
||||
<Compile Include="Areas\Ant\Controllers\JobTaskController.cs" />
|
||||
<Compile Include="Areas\Ant\Controllers\AppMessageController.cs" />
|
||||
<Compile Include="Areas\Ant\Views\AppMessage\_List_Data.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Data.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\AppMessage\_List_Search.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Search.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\AppOnline\_List_Data.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Data.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\AppOnline\_List_Search.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Search.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\App\_List_Data.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Data.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\App\_List_Search.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Search.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\App\_List_Toolbar_Batch.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Toolbar_Batch.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\JobError\_List_Data.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Data.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\JobError\_List_Search.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Search.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\JobTask\_List_Data.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Data.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\JobTask\_List_Search.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Search.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\JobTask\_List_Toolbar_Batch.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Toolbar_Batch.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\Job\_List_Data.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Data.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\Job\_List_Search.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Search.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Areas\Ant\Views\Job\_List_Toolbar_Batch.generated.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>_List_Toolbar_Batch.cshtml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Areas\Ant\Views\AppOnline\_List_Data.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Data.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\AppOnline\_List_Search.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Search.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\App\_List_Data.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Data.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\App\_List_Search.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Search.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Toolbar_Batch.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\JobError\_List_Data.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Data.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\JobError\_List_Search.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Search.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\JobTask\_List_Data.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Data.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\JobTask\_List_Search.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Search.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\JobTask\_List_Toolbar_Batch.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Toolbar_Batch.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\AppMessage\_List_Data.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Data.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\AppMessage\_List_Search.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Search.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\Job\_List_Data.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Data.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\Job\_List_Search.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Search.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_List_Toolbar_Batch.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
<Content Include="Areas\Ant\Views\web.config" />
|
||||
<None Include="packages.config" />
|
||||
<Content Include="Web.config" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
<None Include="Web.Release.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Areas\Ant\Views\Shared\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AntJob.Data\AntJob.Data.csproj">
|
||||
<Project>{01639cc1-1574-4ae1-bbc5-e0538fa5c44c}</Project>
|
||||
<Name>AntJob.Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\AntJob\AntJob.csproj">
|
||||
<Project>{717a3c5a-c4e9-4e85-bb57-916ed6fac936}</Project>
|
||||
<Name>AntJob</Name>
|
||||
</ProjectReference>
|
||||
</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="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>20092</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:20092/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
|
@ -1,11 +1,15 @@
|
|||
using System.ComponentModel;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using NewLife.Cube;
|
||||
|
||||
namespace AntJob.Web.Areas.Ant
|
||||
{
|
||||
/// <summary>蚂蚁调度</summary>
|
||||
[DisplayName("蚂蚁调度")]
|
||||
public class AntAreaRegistration : AreaRegistrationBase
|
||||
public class AntArea : AreaBase
|
||||
{
|
||||
public AntArea() : base(nameof(AntArea).TrimEnd("Area")) { }
|
||||
|
||||
static AntArea() => RegisterArea<AntArea>();
|
||||
}
|
||||
}
|
|
@ -2,8 +2,8 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using AntJob.Data.Entity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Web;
|
||||
using XCode.Membership;
|
||||
|
@ -12,6 +12,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
{
|
||||
/// <summary>应用系统</summary>
|
||||
[DisplayName("应用系统")]
|
||||
[Area("Ant")]
|
||||
public class AppController : EntityController<App>
|
||||
{
|
||||
static AppController()
|
||||
|
@ -55,7 +56,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
/// <returns></returns>
|
||||
public ActionResult ResetApp()
|
||||
{
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
if (!ids.Any()) return JsonRefresh("未选中项!");
|
||||
|
||||
var now = DateTime.Now;
|
||||
|
@ -100,7 +101,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
|
||||
foreach (var item in ids)
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using AntJob.Data.Entity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Web;
|
||||
|
||||
|
@ -9,6 +10,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
{
|
||||
/// <summary>应用消息</summary>
|
||||
[DisplayName("应用消息")]
|
||||
[Area("Ant")]
|
||||
public class AppMessageController : EntityController<AppMessage>
|
||||
{
|
||||
static AppMessageController() => MenuOrder = 49;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using AntJob.Data.Entity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Web;
|
||||
|
||||
|
@ -9,6 +10,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
{
|
||||
/// <summary>应用在线</summary>
|
||||
[DisplayName("应用在线")]
|
||||
[Area("Ant")]
|
||||
public class AppOnlineController : EntityController<AppOnline>
|
||||
{
|
||||
static AppOnlineController()
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Mvc;
|
||||
using AntJob.Data.Entity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Web;
|
||||
using XCode.Membership;
|
||||
|
@ -12,6 +12,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
{
|
||||
/// <summary>作业</summary>
|
||||
[DisplayName("作业")]
|
||||
[Area("Ant")]
|
||||
public class JobController : EntityController<Job>
|
||||
{
|
||||
static JobController()
|
||||
|
@ -27,10 +28,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
MenuOrder = 80;
|
||||
}
|
||||
|
||||
public JobController()
|
||||
{
|
||||
PageSetting.EnableAdd = false;
|
||||
}
|
||||
public JobController() => PageSetting.EnableAdd = false;
|
||||
|
||||
/// <summary>搜索数据集</summary>
|
||||
/// <param name="p"></param>
|
||||
|
@ -63,7 +61,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
|
||||
foreach (var item in ids)
|
||||
{
|
||||
|
@ -86,9 +84,9 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
[EntityAuthorize(PermissionFlags.Update)]
|
||||
public ActionResult ResetTime(Int32 days = 0)
|
||||
{
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var st = Request["sday"].ToDateTime();
|
||||
var et = Request["eday"].ToDateTime();
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
var st = GetRequest("sday").ToDateTime();
|
||||
var et = GetRequest("eday").ToDateTime();
|
||||
Parallel.ForEach(ids, k =>
|
||||
{
|
||||
var dt = Job.FindByID(k);
|
||||
|
@ -103,7 +101,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
[EntityAuthorize(PermissionFlags.Update)]
|
||||
public ActionResult ResetOther()
|
||||
{
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
Parallel.ForEach(ids, k =>
|
||||
{
|
||||
var dt = Job.FindByID(k);
|
||||
|
@ -121,7 +119,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
{
|
||||
if (offset < 0) offset = 15;
|
||||
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
Parallel.ForEach(ids, k =>
|
||||
{
|
||||
var dt = Job.FindByID(k);
|
||||
|
@ -140,7 +138,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
[EntityAuthorize(PermissionFlags.Update)]
|
||||
public ActionResult ClearError()
|
||||
{
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
Parallel.ForEach(ids, k =>
|
||||
{
|
||||
var dt = Job.FindByID(k);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using AntJob.Data.Entity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Web;
|
||||
|
||||
|
@ -9,6 +10,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
{
|
||||
/// <summary>作业错误</summary>
|
||||
[DisplayName("作业错误")]
|
||||
[Area("Ant")]
|
||||
public class JobErrorController : EntityController<JobError>
|
||||
{
|
||||
static JobErrorController() => MenuOrder = 60;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Mvc;
|
||||
using AntJob.Data;
|
||||
using AntJob.Data.Entity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Web;
|
||||
using XCode.Membership;
|
||||
|
@ -12,6 +12,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
{
|
||||
/// <summary>作业任务</summary>
|
||||
[DisplayName("作业任务")]
|
||||
[Area("Ant")]
|
||||
public class JobTaskController : EntityController<JobTask>
|
||||
{
|
||||
static JobTaskController()
|
||||
|
@ -55,7 +56,7 @@ namespace AntJob.Web.Areas.Ant.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
var ids = Request["keys"].SplitAsInt(",");
|
||||
var ids = GetRequest("keys").SplitAsInt();
|
||||
|
||||
foreach (var item in ids)
|
||||
{
|
||||
|
|
|
@ -3,21 +3,17 @@
|
|||
@using NewLife.Web;
|
||||
@using XCode;
|
||||
@using XCode.Configuration;
|
||||
@using System.Web.Mvc;
|
||||
@using System.Web.Mvc.Ajax;
|
||||
@using System.Web.Mvc.Html;
|
||||
@using System.Web.Routing;
|
||||
@{
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as IList<FieldItem>;
|
||||
var enableSelect = this.EnableSelect();
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
var provider = ManageProvider.Provider;
|
||||
}
|
||||
<table class="table table-bordered table-hover table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<th class="text-center" style="width:10px;"><input type="checkbox" id="chkAll" title="全选" /></th>
|
||||
}
|
||||
|
@ -42,7 +38,7 @@
|
|||
@foreach (var entity in Model)
|
||||
{
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<td class="text-center"><input type="checkbox" name="keys" value="@entity.ID" /></td>
|
||||
}
|
||||
|
@ -62,7 +58,7 @@
|
|||
@if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
<td class="text-center">
|
||||
@Html.Partial("_List_Data_Action", (Object)entity)
|
||||
@await Html.PartialAsync("_List_Data_Action", (Object)entity)
|
||||
</td>
|
||||
}
|
||||
</tr>
|
||||
|
|
|
@ -1,625 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
|
||||
#line 6 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using System.Web.Mvc;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 7 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Ajax;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Html;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using System.Web.Routing;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using NewLife;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using NewLife.Web;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 4 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using XCode;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 5 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
using XCode.Configuration;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/App/_List_Data.cshtml")]
|
||||
public partial class _Areas_Ant_Views_App__List_Data_cshtml : System.Web.Mvc.WebViewPage<IList<AntJob.Data.Entity.App>>
|
||||
{
|
||||
public _Areas_Ant_Views_App__List_Data_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as IList<FieldItem>;
|
||||
var enableSelect = this.EnableSelect();
|
||||
var provider = ManageProvider.Provider;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<table");
|
||||
|
||||
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
|
||||
|
||||
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n");
|
||||
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"width:10px;\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" id=\"chkAll\"");
|
||||
|
||||
WriteLiteral(" title=\"全选\"");
|
||||
|
||||
WriteLiteral(" /></th>\r\n");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 823), Tuple.Create("\"", 862)
|
||||
|
||||
#line 24 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 830), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("ID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 830), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">编号</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 915), Tuple.Create("\"", 956)
|
||||
|
||||
#line 25 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 922), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Name"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 922), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">名称</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1009), Tuple.Create("\"", 1057)
|
||||
|
||||
#line 26 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1016), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("DisplayName"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1016), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">显示名</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1111), Tuple.Create("\"", 1160)
|
||||
|
||||
#line 27 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1118), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("MessageCount"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1118), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">消息数</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1214), Tuple.Create("\"", 1259)
|
||||
|
||||
#line 28 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1221), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("JobCount"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1221), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">作业数</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1313), Tuple.Create("\"", 1356)
|
||||
|
||||
#line 29 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1320), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Enable"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1320), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">启用</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">消息</th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">在线</th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">任务</th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">错误</th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1614), Tuple.Create("\"", 1661)
|
||||
|
||||
#line 34 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1621), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("UpdateTime"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1621), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">更新时间</a></th>\r\n");
|
||||
|
||||
|
||||
#line 35 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 35 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:100px;\"");
|
||||
|
||||
WriteLiteral(">操作</th>\r\n");
|
||||
|
||||
|
||||
#line 38 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n </thead>\r\n <tbody>\r\n");
|
||||
|
||||
|
||||
#line 42 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 42 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
foreach (var entity in Model)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n");
|
||||
|
||||
|
||||
#line 45 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 45 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" name=\"keys\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 2126), Tuple.Create("\"", 2144)
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2134), Tuple.Create<System.Object, System.Int32>(entity.ID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2134), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" /></td>\r\n");
|
||||
|
||||
|
||||
#line 48 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 49 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
Write(entity.ID);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2303), Tuple.Create("\"", 2358)
|
||||
|
||||
#line 50 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2310), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","Job",new {appid=entity.ID})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2310), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 50 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
Write(entity.Name);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td>");
|
||||
|
||||
|
||||
#line 51 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
Write(entity.DisplayName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 52 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
Write(entity.MessageCount.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2533), Tuple.Create("\"", 2588)
|
||||
|
||||
#line 53 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2540), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","Job",new {appid=entity.ID})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2540), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
Write(entity.JobCount);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">\r\n <a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2681), Tuple.Create("\"", 2745)
|
||||
, Tuple.Create(Tuple.Create("", 2688), Tuple.Create("App/Set/", 2688), true)
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2696), Tuple.Create<System.Object, System.Int32>(entity.ID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2696), false)
|
||||
, Tuple.Create(Tuple.Create("", 2706), Tuple.Create("?enable=", 2706), true)
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2714), Tuple.Create<System.Object, System.Int32>(entity.Enable?"false":"true"
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2714), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral("><i");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 2770), Tuple.Create("\"", 2832)
|
||||
, Tuple.Create(Tuple.Create("", 2778), Tuple.Create("glyphicon", 2778), true)
|
||||
, Tuple.Create(Tuple.Create(" ", 2787), Tuple.Create("glyphicon-", 2788), true)
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2798), Tuple.Create<System.Object, System.Int32>(entity.Enable ? "ok" : "remove"
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2798), false)
|
||||
);
|
||||
|
||||
WriteAttribute("style", Tuple.Create(" style=\"", 2833), Tuple.Create("\"", 2883)
|
||||
, Tuple.Create(Tuple.Create("", 2841), Tuple.Create("color:", 2841), true)
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create(" ", 2847), Tuple.Create<System.Object, System.Int32>(entity.Enable ? "green" : "red"
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2848), false)
|
||||
, Tuple.Create(Tuple.Create("", 2882), Tuple.Create(";", 2882), true)
|
||||
);
|
||||
|
||||
WriteLiteral("></i></a>\r\n </td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2960), Tuple.Create("\"", 3022)
|
||||
|
||||
#line 57 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2967), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","AppMessage",new {appid=entity.ID})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2967), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">消息</a></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 3079), Tuple.Create("\"", 3140)
|
||||
|
||||
#line 58 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3086), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","AppOnline",new {appid=entity.ID})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3086), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">在线</a></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 3197), Tuple.Create("\"", 3256)
|
||||
|
||||
#line 59 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3204), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","JobTask",new {appid=entity.ID})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3204), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">任务</a></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 3313), Tuple.Create("\"", 3373)
|
||||
|
||||
#line 60 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3320), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","JobError",new {appid=entity.ID})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3320), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">错误</a></td>\r\n <td>");
|
||||
|
||||
|
||||
#line 61 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
Write(entity.UpdateTime.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n");
|
||||
|
||||
|
||||
#line 62 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 62 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 65 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
Write(Html.Partial("_List_Data_Action", (Object)entity));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n");
|
||||
|
||||
|
||||
#line 67 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n");
|
||||
|
||||
|
||||
#line 69 "..\..\Areas\Ant\Views\App\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tbody>\r\n</table>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -7,7 +7,7 @@
|
|||
}
|
||||
<div class="form-group">
|
||||
<label for="enable" class="control-label">状态:</label>
|
||||
@Html.ForDropDownList("enable", dic, Request["enable"], "全部", true)
|
||||
@Html.ForDropDownList("enable", dic, page["enable"], "全部", true)
|
||||
<label for="category" class="control-label">分类:</label>
|
||||
@Html.ForDropDownList("category", AntJob.Data.Entity.App.FindAllCategoryByCache(), Request["category"], "全部", true)
|
||||
@Html.ForDropDownList("category", AntJob.Data.Entity.App.FindAllCategoryByCache(), page["category"], "全部", true)
|
||||
</div>
|
||||
|
|
|
@ -1,106 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\App\_List_Search.cshtml"
|
||||
using AntJob.Data.Entity;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/App/_List_Search.cshtml")]
|
||||
public partial class _Areas_Ant_Views_App__List_Search_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_App__List_Search_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\App\_List_Search.cshtml"
|
||||
|
||||
var page = ViewBag.Page as Pager;
|
||||
var dic = new Dictionary<Int32, String>();
|
||||
dic.Add(1, "启用");
|
||||
dic.Add(0, "禁用");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"form-group\"");
|
||||
|
||||
WriteLiteral(">\r\n <label");
|
||||
|
||||
WriteLiteral(" for=\"enable\"");
|
||||
|
||||
WriteLiteral(" class=\"control-label\"");
|
||||
|
||||
WriteLiteral(">状态:</label>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\App\_List_Search.cshtml"
|
||||
Write(Html.ForDropDownList("enable", dic, Request["enable"], "全部", true));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n <label");
|
||||
|
||||
WriteLiteral(" for=\"category\"");
|
||||
|
||||
WriteLiteral(" class=\"control-label\"");
|
||||
|
||||
WriteLiteral(">分类:</label>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 12 "..\..\Areas\Ant\Views\App\_List_Search.cshtml"
|
||||
Write(Html.ForDropDownList("category", AntJob.Data.Entity.App.FindAllCategoryByCache(), Request["category"], "全部", true));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n</div>\r\n");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -3,10 +3,10 @@
|
|||
@{
|
||||
var user = ViewBag.User as IUser ?? User.Identity as IUser;
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var enableSelect = this.EnableSelect();
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
|
||||
}
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<button type="button" class="btn btn-warning btn-sm" data-action="action" data-url="@Url.Action("ResetApp")" data-fields="keys" disabled>
|
||||
<span title="清空作业、作业项、统计、错误,开始时间设为本月一号">重置</span>
|
||||
|
|
|
@ -1,160 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
using System.Collections.Generic;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
using NewLife.Common;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/App/_List_Toolbar_Batch.cshtml")]
|
||||
public partial class _Areas_Ant_Views_App__List_Toolbar_Batch_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_App__List_Toolbar_Batch_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
|
||||
var user = ViewBag.User as IUser ?? User.Identity as IUser;
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var enableSelect = this.EnableSelect();
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 9 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-warning btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 11 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("ResetApp"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n <span");
|
||||
|
||||
WriteLiteral(" title=\"清空作业、作业项、统计、错误,开始时间设为本月一号\"");
|
||||
|
||||
WriteLiteral(">重置</span>\r\n </button>\r\n");
|
||||
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-success btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 14 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("Set"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("?enable=true\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 批量启用\r\n </button>\r\n");
|
||||
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-error btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 17 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("Set"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("?enable=false\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 批量禁用\r\n </button>\r\n");
|
||||
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\App\_List_Toolbar_Batch.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -3,21 +3,16 @@
|
|||
@using NewLife.Web;
|
||||
@using XCode;
|
||||
@using XCode.Configuration;
|
||||
@using System.Web.Mvc;
|
||||
@using System.Web.Mvc.Ajax;
|
||||
@using System.Web.Mvc.Html;
|
||||
@using System.Web.Routing;
|
||||
@{
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as IList<FieldItem>;
|
||||
var enableSelect = this.EnableSelect();
|
||||
//var provider = ManageProvider.Provider;
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
}
|
||||
<table class="table table-bordered table-hover table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<th class="text-center" style="width:10px;"><input type="checkbox" id="chkAll" title="全选" /></th>
|
||||
}
|
||||
|
@ -37,7 +32,7 @@
|
|||
@foreach (var entity in Model)
|
||||
{
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<td class="text-center"><input type="checkbox" name="keys" value="@entity.ID" /></td>
|
||||
}
|
||||
|
@ -50,7 +45,7 @@
|
|||
@if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
<td class="text-center">
|
||||
@Html.Partial("_List_Data_Action", (Object)entity)
|
||||
@await Html.PartialAsync("_List_Data_Action", (Object)entity)
|
||||
</td>
|
||||
}
|
||||
</tr>
|
||||
|
|
|
@ -1,474 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
|
||||
#line 6 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using System.Web.Mvc;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 7 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Ajax;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Html;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using System.Web.Routing;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using NewLife;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using NewLife.Web;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 4 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using XCode;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 5 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
using XCode.Configuration;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/AppMessage/_List_Data.cshtml")]
|
||||
public partial class _Areas_Ant_Views_AppMessage__List_Data_cshtml : System.Web.Mvc.WebViewPage<IList<AntJob.Data.Entity.AppMessage>>
|
||||
{
|
||||
public _Areas_Ant_Views_AppMessage__List_Data_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as IList<FieldItem>;
|
||||
var enableSelect = this.EnableSelect();
|
||||
//var provider = ManageProvider.Provider;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<table");
|
||||
|
||||
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
|
||||
|
||||
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n");
|
||||
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"width:10px;\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" id=\"chkAll\"");
|
||||
|
||||
WriteLiteral(" title=\"全选\"");
|
||||
|
||||
WriteLiteral(" /></th>\r\n");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 832), Tuple.Create("\"", 871)
|
||||
|
||||
#line 24 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 839), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("ID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 839), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">编号</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 924), Tuple.Create("\"", 966)
|
||||
|
||||
#line 25 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 931), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("AppID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 931), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">应用</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1019), Tuple.Create("\"", 1061)
|
||||
|
||||
#line 26 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1026), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("JobID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1026), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">作业</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" title=\"主题。区分作业下多种资源\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1135), Tuple.Create("\"", 1177)
|
||||
|
||||
#line 27 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1142), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Topic"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1142), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">主题</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1255), Tuple.Create("\"", 1302)
|
||||
|
||||
#line 28 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1262), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("CreateTime"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1262), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">创建时间</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1382), Tuple.Create("\"", 1429)
|
||||
|
||||
#line 29 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1389), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("UpdateTime"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1389), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">更新时间</a></th>\r\n");
|
||||
|
||||
|
||||
#line 30 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 30 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:100px;\"");
|
||||
|
||||
WriteLiteral(">操作</th>\r\n");
|
||||
|
||||
|
||||
#line 33 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n </thead>\r\n <tbody>\r\n");
|
||||
|
||||
|
||||
#line 37 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 37 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
foreach (var entity in Model)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n");
|
||||
|
||||
|
||||
#line 40 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 40 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" name=\"keys\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 1894), Tuple.Create("\"", 1912)
|
||||
|
||||
#line 42 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1902), Tuple.Create<System.Object, System.Int32>(entity.ID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1902), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" /></td>\r\n");
|
||||
|
||||
|
||||
#line 43 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 44 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
Write(entity.ID);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2051), Tuple.Create("\"", 2078)
|
||||
, Tuple.Create(Tuple.Create("", 2058), Tuple.Create("App?ID=", 2058), true)
|
||||
|
||||
#line 45 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2065), Tuple.Create<System.Object, System.Int32>(entity.AppID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2065), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 45 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
Write(entity.AppName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2128), Tuple.Create("\"", 2155)
|
||||
, Tuple.Create(Tuple.Create("", 2135), Tuple.Create("Job?ID=", 2135), true)
|
||||
|
||||
#line 46 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2142), Tuple.Create<System.Object, System.Int32>(entity.JobID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2142), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 46 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
Write(entity.JobName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td>");
|
||||
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
Write(entity.Topic);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 48 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
Write(entity.CreateTime.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 49 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
Write(entity.UpdateTime.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n");
|
||||
|
||||
|
||||
#line 50 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 50 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
Write(Html.Partial("_List_Data_Action", (Object)entity));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n");
|
||||
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n");
|
||||
|
||||
|
||||
#line 57 "..\..\Areas\Ant\Views\AppMessage\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tbody>\r\n</table>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -8,4 +8,4 @@
|
|||
<label for="status" class="control-label">应用:</label>
|
||||
@Html.ForDropDownList("appid", apps, "全部", true)
|
||||
</div>
|
||||
@Html.Partial("_DateRange")
|
||||
@await Html.PartialAsync("_DateRange")
|
|
@ -1,100 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\AppMessage\_List_Search.cshtml"
|
||||
using AntJob.Data;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\AppMessage\_List_Search.cshtml"
|
||||
using AntJob.Data.Entity;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/AppMessage/_List_Search.cshtml")]
|
||||
public partial class _Areas_Ant_Views_AppMessage__List_Search_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_AppMessage__List_Search_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\AppMessage\_List_Search.cshtml"
|
||||
|
||||
var page = ViewBag.Page as Pager;
|
||||
var apps = AntJob.Data.Entity.App.FindAllWithCache().Cast<IEntity>().ToList();
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"form-group\"");
|
||||
|
||||
WriteLiteral(">\r\n <label");
|
||||
|
||||
WriteLiteral(" for=\"status\"");
|
||||
|
||||
WriteLiteral(" class=\"control-label\"");
|
||||
|
||||
WriteLiteral(">应用:</label>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 9 "..\..\Areas\Ant\Views\AppMessage\_List_Search.cshtml"
|
||||
Write(Html.ForDropDownList("appid", apps, "全部", true));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n</div>\r\n");
|
||||
|
||||
|
||||
#line 11 "..\..\Areas\Ant\Views\AppMessage\_List_Search.cshtml"
|
||||
Write(Html.Partial("_DateRange"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -3,21 +3,17 @@
|
|||
@using NewLife.Web;
|
||||
@using XCode;
|
||||
@using XCode.Configuration;
|
||||
@using System.Web.Mvc;
|
||||
@using System.Web.Mvc.Ajax;
|
||||
@using System.Web.Mvc.Html;
|
||||
@using System.Web.Routing;
|
||||
@{
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as IList<FieldItem>;
|
||||
var enableSelect = this.EnableSelect();
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
//var provider = ManageProvider.Provider;
|
||||
}
|
||||
<table class="table table-bordered table-hover table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<th class="text-center" style="width:10px;"><input type="checkbox" id="chkAll" title="全选" /></th>
|
||||
}
|
||||
|
@ -44,7 +40,7 @@
|
|||
@foreach (var entity in Model)
|
||||
{
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<td class="text-center"><input type="checkbox" name="keys" value="@entity.ID" /></td>
|
||||
}
|
||||
|
@ -64,7 +60,7 @@
|
|||
@if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
<td class="text-center">
|
||||
@Html.Partial("_List_Data_Action", (Object)entity)
|
||||
@await Html.PartialAsync("_List_Data_Action", (Object)entity)
|
||||
</td>
|
||||
}
|
||||
</tr>
|
||||
|
|
|
@ -1,700 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
|
||||
#line 6 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using System.Web.Mvc;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 7 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Ajax;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Html;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using System.Web.Routing;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using NewLife;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using NewLife.Web;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 4 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using XCode;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 5 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
using XCode.Configuration;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/AppOnline/_List_Data.cshtml")]
|
||||
public partial class _Areas_Ant_Views_AppOnline__List_Data_cshtml : System.Web.Mvc.WebViewPage<IList<AntJob.Data.Entity.AppOnline>>
|
||||
{
|
||||
public _Areas_Ant_Views_AppOnline__List_Data_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as IList<FieldItem>;
|
||||
var enableSelect = this.EnableSelect();
|
||||
//var provider = ManageProvider.Provider;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<table");
|
||||
|
||||
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
|
||||
|
||||
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n");
|
||||
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"width:10px;\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" id=\"chkAll\"");
|
||||
|
||||
WriteLiteral(" title=\"全选\"");
|
||||
|
||||
WriteLiteral(" /></th>\r\n");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 831), Tuple.Create("\"", 870)
|
||||
|
||||
#line 24 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 838), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("ID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 838), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">编号</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 923), Tuple.Create("\"", 965)
|
||||
|
||||
#line 25 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 930), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("AppID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 930), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">应用</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" title=\"客户端。IP加进程\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1036), Tuple.Create("\"", 1079)
|
||||
|
||||
#line 26 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1043), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Client"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1043), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">客户端</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1133), Tuple.Create("\"", 1177)
|
||||
|
||||
#line 27 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1140), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Version"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1140), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">版本</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1230), Tuple.Create("\"", 1273)
|
||||
|
||||
#line 28 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1237), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Server"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1237), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">服务端</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1327), Tuple.Create("\"", 1369)
|
||||
|
||||
#line 29 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1334), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Tasks"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1334), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">任务数</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1423), Tuple.Create("\"", 1465)
|
||||
|
||||
#line 30 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1430), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Total"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1430), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">总数</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1518), Tuple.Create("\"", 1562)
|
||||
|
||||
#line 31 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1525), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Success"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1525), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">成功</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1615), Tuple.Create("\"", 1657)
|
||||
|
||||
#line 32 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1622), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Error"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1622), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">错误</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" title=\"耗时。总耗时,秒\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1727), Tuple.Create("\"", 1768)
|
||||
|
||||
#line 33 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1734), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Cost"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1734), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">耗时</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" title=\"速度。每秒处理数\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1838), Tuple.Create("\"", 1880)
|
||||
|
||||
#line 34 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1845), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Speed"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1845), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">速度</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1958), Tuple.Create("\"", 2005)
|
||||
|
||||
#line 35 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1965), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("CreateTime"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1965), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">创建时间</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2085), Tuple.Create("\"", 2132)
|
||||
|
||||
#line 36 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2092), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("UpdateTime"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2092), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">更新时间</a></th>\r\n");
|
||||
|
||||
|
||||
#line 37 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 37 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:100px;\"");
|
||||
|
||||
WriteLiteral(">操作</th>\r\n");
|
||||
|
||||
|
||||
#line 40 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n </thead>\r\n <tbody>\r\n");
|
||||
|
||||
|
||||
#line 44 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 44 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
foreach (var entity in Model)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n");
|
||||
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" name=\"keys\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 2597), Tuple.Create("\"", 2615)
|
||||
|
||||
#line 49 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2605), Tuple.Create<System.Object, System.Int32>(entity.ID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2605), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" /></td>\r\n");
|
||||
|
||||
|
||||
#line 50 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 51 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.ID);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2754), Tuple.Create("\"", 2781)
|
||||
, Tuple.Create(Tuple.Create("", 2761), Tuple.Create("App?ID=", 2761), true)
|
||||
|
||||
#line 52 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2768), Tuple.Create<System.Object, System.Int32>(entity.AppID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2768), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 52 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.AppName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 2828), Tuple.Create("\"", 2848)
|
||||
|
||||
#line 53 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2836), Tuple.Create<System.Object, System.Int32>(entity.Name
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2836), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Client);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 54 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Version);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Server);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2995), Tuple.Create("\"", 3078)
|
||||
|
||||
#line 56 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3002), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","JobTask",new {appid=entity.AppID,client=entity.Client})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3002), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 56 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Tasks.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 57 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Total.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 58 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Success.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 3310), Tuple.Create("\"", 3394)
|
||||
|
||||
#line 59 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3317), Tuple.Create<System.Object, System.Int32>(Url.Action("Index","JobError",new {appid=entity.AppID,client=entity.Client})
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3317), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 59 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Error.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 60 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(TimeSpan.FromSeconds(entity.Cost));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 61 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.Speed.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 62 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.CreateTime.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 63 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(entity.UpdateTime.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n");
|
||||
|
||||
|
||||
#line 64 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 64 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 67 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
Write(Html.Partial("_List_Data_Action", (Object)entity));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n");
|
||||
|
||||
|
||||
#line 69 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n");
|
||||
|
||||
|
||||
#line 71 "..\..\Areas\Ant\Views\AppOnline\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tbody>\r\n</table>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -1,4 +0,0 @@
|
|||
@{
|
||||
var page = ViewBag.Page as Pager;
|
||||
}
|
||||
@Html.Partial("_DateRange")
|
|
@ -1,68 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/AppOnline/_List_Search.cshtml")]
|
||||
public partial class _Areas_Ant_Views_AppOnline__List_Search_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_AppOnline__List_Search_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\AppOnline\_List_Search.cshtml"
|
||||
|
||||
var page = ViewBag.Page as Pager;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 4 "..\..\Areas\Ant\Views\AppOnline\_List_Search.cshtml"
|
||||
Write(Html.Partial("_DateRange"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -3,10 +3,6 @@
|
|||
@using NewLife.Web;
|
||||
@using XCode;
|
||||
@using XCode.Configuration;
|
||||
@using System.Web.Mvc;
|
||||
@using System.Web.Mvc.Ajax;
|
||||
@using System.Web.Mvc.Html;
|
||||
@using System.Web.Routing;
|
||||
@using AntJob.Data.Entity;
|
||||
@using AntJob.Data;
|
||||
@{
|
||||
|
@ -14,14 +10,14 @@
|
|||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as List<FieldItem>;
|
||||
var fk = fact.Unique;
|
||||
var enableSelect = this.EnableSelect();
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
|
||||
var appid = page["appid"].ToInt();
|
||||
}
|
||||
<table class="table table-bordered table-hover table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<th class="text-center" style="width:10px;"><input type="checkbox" id="chkAll" title="全选" /></th>
|
||||
}
|
||||
|
@ -65,7 +61,7 @@
|
|||
var ut = entity.UpdateTime.ToFullString("");
|
||||
if (entity.UpdateTime.Date == DateTime.Now.Date) { ut = entity.UpdateTime.ToString("HH:mm:ss"); }
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<td class="text-center"><input type="checkbox" name="keys" value="@entity[fk.Name]" /></td>
|
||||
}
|
||||
|
@ -127,7 +123,7 @@
|
|||
@if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
<td class="text-center">
|
||||
@Html.Partial("_List_Data_Action", (Object)entity)
|
||||
@await Html.PartialAsync("_List_Data_Action", (Object)entity)
|
||||
</td>
|
||||
}
|
||||
</tr>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -8,5 +8,5 @@
|
|||
}
|
||||
<div class="form-group">
|
||||
<label for="Mode" class="control-label">调度模式:</label>
|
||||
@Html.ForDropDownList("Mode", Mode, Request["Mode"], "全部", true)
|
||||
@Html.ForDropDownList("Mode", Mode, page["Mode"], "全部", true)
|
||||
</div>
|
||||
|
|
|
@ -1,85 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/Job/_List_Search.cshtml")]
|
||||
public partial class _Areas_Ant_Views_Job__List_Search_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_Job__List_Search_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\Job\_List_Search.cshtml"
|
||||
|
||||
var page = ViewBag.Page as Pager;
|
||||
|
||||
var Mode = new Dictionary<Int32, String>();
|
||||
Mode.Add(1, "时间片调度");
|
||||
Mode.Add(2, "定时调度");
|
||||
Mode.Add(3, "消息调度");
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"form-group\"");
|
||||
|
||||
WriteLiteral(">\r\n <label");
|
||||
|
||||
WriteLiteral(" for=\"Mode\"");
|
||||
|
||||
WriteLiteral(" class=\"control-label\"");
|
||||
|
||||
WriteLiteral(">调度模式:</label>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 11 "..\..\Areas\Ant\Views\Job\_List_Search.cshtml"
|
||||
Write(Html.ForDropDownList("Mode", Mode, Request["Mode"], "全部", true));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n</div>\r\n");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -3,7 +3,7 @@
|
|||
@{
|
||||
var user = ViewBag.User as IUser ?? User.Identity as IUser;
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var enableSelect = this.EnableSelect();
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
|
||||
var sdic = new Dictionary<String, String>();
|
||||
sdic["strFormat"] = "yyyy-MM-dd HH:mm:ss";
|
||||
|
@ -15,7 +15,7 @@
|
|||
edic["dname"] = "eday";
|
||||
edic["title"] = "结束";
|
||||
}
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<button type="button" class="btn btn-success btn-sm" data-action="action" data-url="@Url.Action("Set")?enable=true" data-fields="keys" disabled>
|
||||
批量启用
|
||||
|
|
|
@ -1,264 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
using System.Collections.Generic;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
using NewLife.Common;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/Job/_List_Toolbar_Batch.cshtml")]
|
||||
public partial class _Areas_Ant_Views_Job__List_Toolbar_Batch_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_Job__List_Toolbar_Batch_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
|
||||
var user = ViewBag.User as IUser ?? User.Identity as IUser;
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var enableSelect = this.EnableSelect();
|
||||
|
||||
var sdic = new Dictionary<String, String>();
|
||||
sdic["strFormat"] = "yyyy-MM-dd HH:mm:ss";
|
||||
sdic["dname"] = "sday";
|
||||
sdic["title"] = "开始";
|
||||
|
||||
var edic = new Dictionary<String, String>();
|
||||
edic["strFormat"] = "yyyy-MM-dd HH:mm:ss";
|
||||
edic["dname"] = "eday";
|
||||
edic["title"] = "结束";
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 18 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-success btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("Set"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("?enable=true\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 批量启用\r\n </button>\r\n");
|
||||
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-error btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("Set"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("?enable=false\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 批量禁用\r\n </button>\r\n");
|
||||
|
||||
WriteLiteral(" <input");
|
||||
|
||||
WriteLiteral(" type=\"number\"");
|
||||
|
||||
WriteLiteral(" name=\"days\"");
|
||||
|
||||
WriteLiteral(" value=\"-1\"");
|
||||
|
||||
WriteLiteral(" title=\"重置到多少天之前(-1表示直接清空开始时间)\"");
|
||||
|
||||
WriteLiteral(" style=\"width:40px\"");
|
||||
|
||||
WriteLiteral(" />\r\n");
|
||||
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-warning btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 27 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("ResetTime"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys,days\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 重置时间\r\n </button>\r\n");
|
||||
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-danger btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 30 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("ResetOther"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(" data-fi");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 重置其它\r\n </button>\r\n");
|
||||
|
||||
WriteLiteral(" <input");
|
||||
|
||||
WriteLiteral(" type=\"number\"");
|
||||
|
||||
WriteLiteral(" name=\"offset\"");
|
||||
|
||||
WriteLiteral(" value=\"15\"");
|
||||
|
||||
WriteLiteral(" title=\"距离实际时间秒数\"");
|
||||
|
||||
WriteLiteral(" style=\"width:40px\"");
|
||||
|
||||
WriteLiteral(" />\r\n");
|
||||
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-success btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 34 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("SetOffset"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys,offset\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 设置偏移\r\n </button>\r\n");
|
||||
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-success btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 37 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("ClearError"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 清空错误数\r\n </button>\r\n");
|
||||
|
||||
|
||||
#line 40 "..\..\Areas\Ant\Views\Job\_List_Toolbar_Batch.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -3,10 +3,6 @@
|
|||
@using NewLife.Web;
|
||||
@using XCode;
|
||||
@using XCode.Configuration;
|
||||
@using System.Web.Mvc;
|
||||
@using System.Web.Mvc.Ajax;
|
||||
@using System.Web.Mvc.Html;
|
||||
@using System.Web.Routing;
|
||||
@{
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
|
@ -55,7 +51,7 @@
|
|||
@if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
<td class="text-center">
|
||||
@Html.Partial("_List_Data_Action", (Object)entity)
|
||||
@await Html.PartialAsync("_List_Data_Action", (Object)entity)
|
||||
</td>
|
||||
}
|
||||
</tr>
|
||||
|
|
|
@ -1,473 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
|
||||
#line 6 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using System.Web.Mvc;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 7 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Ajax;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Html;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using System.Web.Routing;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using NewLife;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using NewLife.Web;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 4 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using XCode;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 5 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
using XCode.Configuration;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/JobError/_List_Data.cshtml")]
|
||||
public partial class _Areas_Ant_Views_JobError__List_Data_cshtml : System.Web.Mvc.WebViewPage<IList<AntJob.Data.Entity.JobError>>
|
||||
{
|
||||
public _Areas_Ant_Views_JobError__List_Data_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as List<FieldItem>;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<style>\r\n\r\n .OverFlow {\r\n overflow: hidden;\r\n text-overflow: e" +
|
||||
"llipsis;\r\n white-space: nowrap;\r\n max-width: 400px;\r\n }\r\n</styl" +
|
||||
"e>\r\n<table");
|
||||
|
||||
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
|
||||
|
||||
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 723), Tuple.Create("\"", 762)
|
||||
|
||||
#line 27 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 730), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("ID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 730), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">编号</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 815), Tuple.Create("\"", 857)
|
||||
|
||||
#line 28 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 822), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("AppID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 822), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">应用</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 935), Tuple.Create("\"", 982)
|
||||
|
||||
#line 29 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 942), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("TaskItemID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 942), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">任务项</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1036), Tuple.Create("\"", 1077)
|
||||
|
||||
#line 30 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1043), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Step"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1043), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">步进</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1130), Tuple.Create("\"", 1176)
|
||||
|
||||
#line 31 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1137), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("BatchSize"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1137), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">批大小</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1230), Tuple.Create("\"", 1270)
|
||||
|
||||
#line 32 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1237), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Key"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1237), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">数据键</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1324), Tuple.Create("\"", 1370)
|
||||
|
||||
#line 33 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1331), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("ErrorCode"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1331), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">错误码</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">内容</th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1494), Tuple.Create("\"", 1541)
|
||||
|
||||
#line 35 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1501), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("UpdateTime"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1501), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">更新时间</a></th>\r\n");
|
||||
|
||||
|
||||
#line 36 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 36 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:100px;\"");
|
||||
|
||||
WriteLiteral(">操作</th>\r\n");
|
||||
|
||||
|
||||
#line 39 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n </thead>\r\n <tbody>\r\n");
|
||||
|
||||
|
||||
#line 43 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 43 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
foreach (var entity in Model)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 46 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.ID);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1982), Tuple.Create("\"", 2012)
|
||||
, Tuple.Create(Tuple.Create("", 1989), Tuple.Create("Job?AppID=", 1989), true)
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1999), Tuple.Create<System.Object, System.Int32>(entity.AppID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1999), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.AppName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2062), Tuple.Create("\"", 2096)
|
||||
, Tuple.Create(Tuple.Create("", 2069), Tuple.Create("JobTask?JobID=", 2069), true)
|
||||
|
||||
#line 48 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2083), Tuple.Create<System.Object, System.Int32>(entity.JobID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2083), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 48 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.JobName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 49 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.Step.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 50 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.BatchSize.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 51 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.Key);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 52 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.ErrorCode);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"OverFlow\"");
|
||||
|
||||
WriteAttribute("title", Tuple.Create(" title=\"", 2393), Tuple.Create("\"", 2416)
|
||||
|
||||
#line 53 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2401), Tuple.Create<System.Object, System.Int32>(entity.Message
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2401), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 53 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.Message);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 54 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(entity.UpdateTime.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n");
|
||||
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 55 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 58 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
Write(Html.Partial("_List_Data_Action", (Object)entity));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n");
|
||||
|
||||
|
||||
#line 60 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n");
|
||||
|
||||
|
||||
#line 62 "..\..\Areas\Ant\Views\JobError\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tbody>\r\n</table>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -7,4 +7,4 @@
|
|||
<label for="status" class="control-label">应用:</label>
|
||||
@Html.ForDropDownList("appid", apps, "全部", true)
|
||||
</div>
|
||||
@Html.Partial("_DateRange")
|
||||
@await Html.PartialAsync("_DateRange")
|
|
@ -1,96 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\JobError\_List_Search.cshtml"
|
||||
using AntJob.Data.Entity;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/JobError/_List_Search.cshtml")]
|
||||
public partial class _Areas_Ant_Views_JobError__List_Search_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_JobError__List_Search_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\JobError\_List_Search.cshtml"
|
||||
|
||||
var page = ViewBag.Page as Pager;
|
||||
var apps = AntJob.Data.Entity.App.FindAllWithCache().Cast<IEntity>().ToList();
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"form-group\"");
|
||||
|
||||
WriteLiteral(">\r\n <label");
|
||||
|
||||
WriteLiteral(" for=\"status\"");
|
||||
|
||||
WriteLiteral(" class=\"control-label\"");
|
||||
|
||||
WriteLiteral(">应用:</label>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\JobError\_List_Search.cshtml"
|
||||
Write(Html.ForDropDownList("appid", apps, "全部", true));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n</div>\r\n");
|
||||
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\JobError\_List_Search.cshtml"
|
||||
Write(Html.Partial("_DateRange"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -3,7 +3,6 @@
|
|||
@using NewLife.Web;
|
||||
@using XCode;
|
||||
@using XCode.Configuration;
|
||||
@using System.Web.Mvc.Html;
|
||||
@using AntJob.Data.Entity;
|
||||
@using AntJob;
|
||||
@using AntJob.Data;
|
||||
|
@ -12,12 +11,12 @@
|
|||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as List<FieldItem>;
|
||||
var fk = fact.Unique;
|
||||
var enableSelect = this.EnableSelect();
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
}
|
||||
<table class="table table-bordered table-hover table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<th class="text-center" style="width:10px;"><input type="checkbox" id="chkAll" title="全选" /></th>
|
||||
}
|
||||
|
@ -70,7 +69,7 @@
|
|||
break;
|
||||
}
|
||||
<tr>
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<td class="text-center"><input type="checkbox" name="keys" value="@entity[fk.Name]" /></td>
|
||||
}
|
||||
|
@ -93,7 +92,7 @@
|
|||
@if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
<td class="text-center">
|
||||
@Html.Partial("_List_Data_Action", (Object)entity)
|
||||
@await Html.PartialAsync("_List_Data_Action", (Object)entity)
|
||||
</td>
|
||||
}
|
||||
</tr>
|
||||
|
|
|
@ -1,788 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
|
||||
#line 6 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using System.Web.Mvc.Html;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using AntJob;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 9 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using AntJob.Data;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 7 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using AntJob.Data.Entity;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using AntJob.Web;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using NewLife;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using NewLife.Web;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 4 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using XCode;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 5 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
using XCode.Configuration;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/JobTask/_List_Data.cshtml")]
|
||||
public partial class _Areas_Ant_Views_JobTask__List_Data_cshtml : System.Web.Mvc.WebViewPage<IList<AntJob.Data.Entity.JobTask>>
|
||||
{
|
||||
public _Areas_Ant_Views_JobTask__List_Data_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
|
||||
var fact = ViewBag.Factory as IEntityOperate;
|
||||
var page = ViewBag.Page as Pager;
|
||||
var fields = ViewBag.Fields as List<FieldItem>;
|
||||
var fk = fact.Unique;
|
||||
var enableSelect = this.EnableSelect();
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<table");
|
||||
|
||||
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
|
||||
|
||||
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n");
|
||||
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 20 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"width:10px;\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" id=\"chkAll\"");
|
||||
|
||||
WriteLiteral(" title=\"全选\"");
|
||||
|
||||
WriteLiteral(" /></th>\r\n");
|
||||
|
||||
|
||||
#line 23 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 792), Tuple.Create("\"", 831)
|
||||
|
||||
#line 24 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 799), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("ID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 799), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">编号</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 884), Tuple.Create("\"", 927)
|
||||
|
||||
#line 25 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 891), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("TaskID"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 891), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">任务</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 980), Tuple.Create("\"", 1022)
|
||||
|
||||
#line 26 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 987), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Start"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 987), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">开始</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1075), Tuple.Create("\"", 1118)
|
||||
|
||||
#line 27 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1082), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Client"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1082), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">客户端</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1172), Tuple.Create("\"", 1213)
|
||||
|
||||
#line 28 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1179), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Step"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1179), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">步进</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1266), Tuple.Create("\"", 1312)
|
||||
|
||||
#line 29 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1273), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("BatchSize"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1273), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">批大小</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1366), Tuple.Create("\"", 1408)
|
||||
|
||||
#line 30 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1373), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Total"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1373), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">总数</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1461), Tuple.Create("\"", 1505)
|
||||
|
||||
#line 31 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1468), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Success"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1468), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">成功</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1558), Tuple.Create("\"", 1600)
|
||||
|
||||
#line 32 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1565), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Error"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1565), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">错误</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1653), Tuple.Create("\"", 1695)
|
||||
|
||||
#line 33 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1660), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Times"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1660), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">次数</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1748), Tuple.Create("\"", 1790)
|
||||
|
||||
#line 34 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1755), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Speed"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1755), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">速度</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1843), Tuple.Create("\"", 1884)
|
||||
|
||||
#line 35 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1850), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Cost"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1850), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">耗时</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 1937), Tuple.Create("\"", 1982)
|
||||
|
||||
#line 36 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 1944), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("FullCost"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 1944), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">全耗时</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2036), Tuple.Create("\"", 2079)
|
||||
|
||||
#line 37 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2043), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Status"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2043), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">状态</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2132), Tuple.Create("\"", 2172)
|
||||
|
||||
#line 38 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2139), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("Key"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2139), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">最后键</a></th>\r\n <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(" style=\"min-width:134px;\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 2251), Tuple.Create("\"", 2298)
|
||||
|
||||
#line 39 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 2258), Tuple.Create<System.Object, System.Int32>(Html.Raw(page.GetSortUrl("UpdateTime"))
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 2258), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">更新时间</a></th>\r\n");
|
||||
|
||||
|
||||
#line 40 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 40 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <th");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">操作</th>\r\n");
|
||||
|
||||
|
||||
#line 43 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n </thead>\r\n <tbody>\r\n");
|
||||
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 47 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
foreach (var entity in Model)
|
||||
{
|
||||
var cls = "";
|
||||
switch (entity.Status)
|
||||
{
|
||||
case JobStatus.就绪:
|
||||
break;
|
||||
case JobStatus.抽取中:
|
||||
cls = "warning";
|
||||
break;
|
||||
case JobStatus.处理中:
|
||||
cls = "info";
|
||||
break;
|
||||
case JobStatus.错误:
|
||||
cls = "danger";
|
||||
break;
|
||||
case JobStatus.完成:
|
||||
cls = "success";
|
||||
break;
|
||||
case JobStatus.取消:
|
||||
cls = "active";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n");
|
||||
|
||||
|
||||
#line 73 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 73 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><input");
|
||||
|
||||
WriteLiteral(" type=\"checkbox\"");
|
||||
|
||||
WriteLiteral(" name=\"keys\"");
|
||||
|
||||
WriteAttribute("value", Tuple.Create(" value=\"", 3456), Tuple.Create("\"", 3480)
|
||||
|
||||
#line 75 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3464), Tuple.Create<System.Object, System.Int32>(entity[fk.Name]
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3464), false)
|
||||
);
|
||||
|
||||
WriteLiteral(" /></td>\r\n");
|
||||
|
||||
|
||||
#line 76 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center hidden-md hidden-sm hidden-xs\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 77 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.ID);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral("><a");
|
||||
|
||||
WriteAttribute("href", Tuple.Create(" href=\"", 3639), Tuple.Create("\"", 3666)
|
||||
, Tuple.Create(Tuple.Create("", 3646), Tuple.Create("Job?ID=", 3646), true)
|
||||
|
||||
#line 78 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create("", 3653), Tuple.Create<System.Object, System.Int32>(entity.JobID
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 3653), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 78 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.JobName);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</a></td>\r\n <td>");
|
||||
|
||||
|
||||
#line 79 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Start.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 80 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Client);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 81 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Step.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 82 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.BatchSize.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 83 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Total.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(" style=\"color:forestgreen\"");
|
||||
|
||||
WriteLiteral("><b>");
|
||||
|
||||
|
||||
#line 84 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Success.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</b></td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(" style=\"color:red\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 85 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Error.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 86 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Times.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 87 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Speed.ToString("n0"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 88 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(TimeSpan.FromSeconds(entity.Cost));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteLiteral(" class=\"text-right\"");
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 89 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(TimeSpan.FromSeconds(entity.FullCost));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td");
|
||||
|
||||
WriteAttribute("class", Tuple.Create(" class=\"", 4549), Tuple.Create("\"", 4573)
|
||||
, Tuple.Create(Tuple.Create("", 4557), Tuple.Create("text-center", 4557), true)
|
||||
|
||||
#line 90 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
, Tuple.Create(Tuple.Create(" ", 4568), Tuple.Create<System.Object, System.Int32>(cls
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
, 4569), false)
|
||||
);
|
||||
|
||||
WriteLiteral(">");
|
||||
|
||||
|
||||
#line 90 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Status);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 91 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.Key);
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n <td>");
|
||||
|
||||
|
||||
#line 92 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(entity.UpdateTime.ToFullString(""));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("</td>\r\n");
|
||||
|
||||
|
||||
#line 93 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 93 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
if (this.Has(PermissionFlags.Detail, PermissionFlags.Update, PermissionFlags.Delete))
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <td");
|
||||
|
||||
WriteLiteral(" class=\"text-center\"");
|
||||
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 96 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
Write(Html.Partial("_List_Data_Action", (Object)entity));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n");
|
||||
|
||||
|
||||
#line 98 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tr>\r\n");
|
||||
|
||||
|
||||
#line 100 "..\..\Areas\Ant\Views\JobTask\_List_Data.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" </tbody>\r\n</table>");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -5,6 +5,6 @@
|
|||
}
|
||||
<div class="form-group">
|
||||
<label for="status" class="control-label">状态:</label>
|
||||
@Html.ForDropDownList("status", System.EnumHelper.GetDescriptions(typeof(JobStatus)), Request["status"], "全部", true)
|
||||
@Html.ForDropDownList("status", System.EnumHelper.GetDescriptions(typeof(JobStatus)), page["status"], "全部", true)
|
||||
</div>
|
||||
@Html.Partial("_DateRange")
|
||||
@await Html.PartialAsync("_DateRange")
|
|
@ -1,99 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\JobTask\_List_Search.cshtml"
|
||||
using AntJob;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\JobTask\_List_Search.cshtml"
|
||||
using AntJob.Data;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/JobTask/_List_Search.cshtml")]
|
||||
public partial class _Areas_Ant_Views_JobTask__List_Search_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_JobTask__List_Search_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\JobTask\_List_Search.cshtml"
|
||||
|
||||
var page = ViewBag.Page as Pager;
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n<div");
|
||||
|
||||
WriteLiteral(" class=\"form-group\"");
|
||||
|
||||
WriteLiteral(">\r\n <label");
|
||||
|
||||
WriteLiteral(" for=\"status\"");
|
||||
|
||||
WriteLiteral(" class=\"control-label\"");
|
||||
|
||||
WriteLiteral(">状态:</label>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\JobTask\_List_Search.cshtml"
|
||||
Write(Html.ForDropDownList("status", System.EnumHelper.GetDescriptions(typeof(JobStatus)), Request["status"], "全部", true));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n</div>\r\n");
|
||||
|
||||
|
||||
#line 10 "..\..\Areas\Ant\Views\JobTask\_List_Search.cshtml"
|
||||
Write(Html.Partial("_DateRange"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -1,9 +1,9 @@
|
|||
@using NewLife.Common;
|
||||
@using System.Collections.Generic;
|
||||
@{
|
||||
var enableSelect = this.EnableSelect();
|
||||
var set = ViewBag.PageSetting as PageSetting;
|
||||
}
|
||||
@if (enableSelect)
|
||||
@if (set.EnableSelect)
|
||||
{
|
||||
<button type="button" class="btn btn-success btn-sm" data-action="action" data-url="@Url.Action("Set")" data-fields="keys" disabled>
|
||||
重置
|
||||
|
|
|
@ -1,107 +0,0 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ASP
|
||||
{
|
||||
using System;
|
||||
|
||||
#line 2 "..\..\Areas\Ant\Views\JobTask\_List_Toolbar_Batch.cshtml"
|
||||
using System.Collections.Generic;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Helpers;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using System.Web.Mvc.Html;
|
||||
using System.Web.Routing;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using AntJob.Web;
|
||||
using NewLife;
|
||||
|
||||
#line 1 "..\..\Areas\Ant\Views\JobTask\_List_Toolbar_Batch.cshtml"
|
||||
using NewLife.Common;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
using NewLife.Cube;
|
||||
using NewLife.Reflection;
|
||||
using NewLife.Web;
|
||||
using XCode;
|
||||
using XCode.Membership;
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
|
||||
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Ant/Views/JobTask/_List_Toolbar_Batch.cshtml")]
|
||||
public partial class _Areas_Ant_Views_JobTask__List_Toolbar_Batch_cshtml : System.Web.Mvc.WebViewPage<dynamic>
|
||||
{
|
||||
public _Areas_Ant_Views_JobTask__List_Toolbar_Batch_cshtml()
|
||||
{
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
|
||||
#line 3 "..\..\Areas\Ant\Views\JobTask\_List_Toolbar_Batch.cshtml"
|
||||
|
||||
var enableSelect = this.EnableSelect();
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n");
|
||||
|
||||
|
||||
#line 6 "..\..\Areas\Ant\Views\JobTask\_List_Toolbar_Batch.cshtml"
|
||||
if (enableSelect)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <button");
|
||||
|
||||
WriteLiteral(" type=\"button\"");
|
||||
|
||||
WriteLiteral(" class=\"btn btn-success btn-sm\"");
|
||||
|
||||
WriteLiteral(" data-action=\"action\"");
|
||||
|
||||
WriteLiteral(" data-url=\"");
|
||||
|
||||
|
||||
#line 8 "..\..\Areas\Ant\Views\JobTask\_List_Toolbar_Batch.cshtml"
|
||||
Write(Url.Action("Set"));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\"");
|
||||
|
||||
WriteLiteral(" data-fields=\"keys\"");
|
||||
|
||||
WriteLiteral(" disabled>\r\n 重置\r\n </button>\r\n");
|
||||
|
||||
|
||||
#line 11 "..\..\Areas\Ant\Views\JobTask\_List_Toolbar_Batch.cshtml"
|
||||
}
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore 1591
|
|
@ -0,0 +1,7 @@
|
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using NewLife
|
||||
@using NewLife.Cube
|
||||
@using NewLife.Reflection
|
||||
@using NewLife.Web
|
||||
@using XCode
|
||||
@using XCode.Membership
|
|
@ -1,41 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<system.web.webPages.razor>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
|
||||
<add namespace="AntJob.Web" />
|
||||
<add namespace="NewLife" />
|
||||
<add namespace="NewLife.Cube" />
|
||||
<add namespace="NewLife.Reflection" />
|
||||
<add namespace="NewLife.Web" />
|
||||
<add namespace="XCode" />
|
||||
<add namespace="XCode.Membership" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
|
||||
<appSettings>
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<remove name="BlockViewHandler"/>
|
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
|
@ -1 +0,0 @@
|
|||
<%@ Application Codebehind="Global.asax.cs" Inherits="AntJob.Web.MvcApplication" Language="C#" %>
|
|
@ -1,35 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
|
||||
namespace AntJob.Web
|
||||
{
|
||||
public class MvcApplication : System.Web.HttpApplication
|
||||
{
|
||||
protected void Application_Start()
|
||||
{
|
||||
AreaRegistration.RegisterAllAreas();
|
||||
RegisterGlobalFilters(GlobalFilters.Filters);
|
||||
RegisterRoutes(RouteTable.Routes);
|
||||
}
|
||||
|
||||
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
|
||||
{
|
||||
filters.Add(new HandleErrorAttribute());
|
||||
}
|
||||
|
||||
public static void RegisterRoutes(RouteCollection routes)
|
||||
{
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
|
||||
routes.MapRoute(
|
||||
name: "Default",
|
||||
url: "{controller}/{action}/{id}",
|
||||
defaults: new { controller = "CubeHome", action = "Index", id = UrlParameter.Optional }
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NewLife;
|
||||
using NewLife.Log;
|
||||
using NewLife.Cube;
|
||||
using NewLife.Serialization;
|
||||
|
||||
namespace AntJob.Web
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Environment.SetEnvironmentVariable("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "1");
|
||||
|
||||
XTrace.UseConsole();
|
||||
|
||||
//CreateWebHostBuilder(args).Build().Run();
|
||||
var app = ApplicationManager.Load();
|
||||
|
||||
do
|
||||
{
|
||||
app.Start(CreateHostBuilder(args).Build());
|
||||
} while ( app.Restarting);
|
||||
}
|
||||
|
||||
//public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
||||
// WebHost.CreateDefaultBuilder(args)
|
||||
// .UseStartup<Startup>();
|
||||
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(String[] args)
|
||||
{
|
||||
return Host.CreateDefaultBuilder(args)
|
||||
.ConfigureLogging(logging => { logging.AddXLog(); })
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
//webBuilder.UseUrls("http://*:5000;https://*:5001");
|
||||
webBuilder.UseStartup<Startup>();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过下列特性集
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("蚂蚁调度管理平台")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("AntJob.Web")]
|
||||
[assembly: AssemblyCopyright("Copyright © 新生命开发团队 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要
|
||||
// 从 COM 访问此程序集中的某个类型,请针对该类型将 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于 typelib 的 ID
|
||||
[assembly: Guid("a9e0597c-e818-4b33-8ac3-be134d68b78e")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订版本
|
||||
//
|
||||
// 可以指定所有值,也可以使用“修订号”和“内部版本号”的默认值,
|
||||
// 方法是按如下所示使用 "*":
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyFileVersion("1.0.2019.0908")]
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:3614/",
|
||||
"sslPort": 44393
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"AntJob.Web": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "https://localhost:5001;http://localhost:5000"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using NewLife.Cube;
|
||||
|
||||
namespace AntJob.Web
|
||||
{
|
||||
public class Startup
|
||||
{
|
||||
public Startup() { }
|
||||
|
||||
public void ConfigureServices(IServiceCollection services) => services.AddCube();
|
||||
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
// 使用Cube前添加自己的管道
|
||||
if (env.IsDevelopment())
|
||||
app.UseDeveloperExceptionPage();
|
||||
else
|
||||
app.UseExceptionHandler("/CubeHome/Error");
|
||||
|
||||
//// 启用https
|
||||
//app.UseHttpsRedirection();
|
||||
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseCube(env);
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapControllerRoute(
|
||||
"Default",
|
||||
"{controller=CubeHome}/{action=Index}/{id?}"
|
||||
);
|
||||
endpoints.MapRazorPages();
|
||||
})
|
||||
.Build();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- 有关使用 web.config 转换的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
在下例中,“SetAttributes”转换将更改
|
||||
“connectionString”的值,以仅在“Match”定位器
|
||||
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
|
||||
在下例中,“Replace”转换将替换
|
||||
web.config 文件的整个 <customErrors> 节。
|
||||
请注意,由于
|
||||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
|
@ -1,32 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- 有关使用 web.config 转换的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
在下例中,“SetAttributes”转换将更改
|
||||
“connectionString”的值,以仅在“Match”定位器
|
||||
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
|
||||
在下例中,“Replace”转换将替换
|
||||
web.config 文件的整个 <customErrors> 节。
|
||||
请注意,由于
|
||||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
|
@ -1,109 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
<add key="RouteDebugger:Enabled" value="true" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<!--<add name="Membership" connectionString="Data Source=..\Data\Membership.db;TablePrefix=school_;" providerName="Sqlite"/>-->
|
||||
<!--<add name="Membership" connectionString="Server=.;Integrated Security=SSPI;Database=Membership" providerName="System.Data.SqlClient" />-->
|
||||
<!--<add name="Membership" connectionString="Server=.;user id=sa;password=sa;Database=Membership" providerName="System.Data.SqlClient" />-->
|
||||
<!--<add name="Membership" connectionString="Server=localhost;Port=3306;Database=Membership;Uid=root;Pwd=root" providerName="MySql.Data.MySqlClient"/>-->
|
||||
<!--<add name="Membership" connectionString="Data Source=tcp://10.10.20.104/ORCL;User Id=scott;Password=tiger;" providerName="System.Data.OracleClient"/>-->
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<pages>
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="System.Web.WebPages" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
<httpRuntime executionTimeout="15" />
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<!--<handlers>
|
||||
<add name="json" verb="GET,HEAD" path="*.json" type="System.Web.StaticFileHandler"/>
|
||||
<add name="all" path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
|
||||
</handlers>-->
|
||||
<httpProtocol>
|
||||
<customHeaders>
|
||||
<remove name="X-Powered-By" />
|
||||
<add name="X-Powered-By" value="NewLife.Cube http://www.NewLifeX.com" />
|
||||
</customHeaders>
|
||||
</httpProtocol>
|
||||
<staticContent>
|
||||
<remove fileExtension=".woff" />
|
||||
<remove fileExtension=".woff2" />
|
||||
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
|
||||
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
|
||||
<remove fileExtension=".ttf" />
|
||||
<mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" />
|
||||
<remove fileExtension=".svg" />
|
||||
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
|
||||
<remove fileExtension=".otf" />
|
||||
<mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" />
|
||||
<remove fileExtension=".eot" />
|
||||
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
|
||||
<!--静态缓存使用浏览器缓存,超时时间之内不发出Http请求(F5除外)-->
|
||||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="240:00:00" />
|
||||
</staticContent>
|
||||
</system.webServer>
|
||||
|
||||
<system.web.webPages.razor>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
|
||||
<add namespace="NewLife" />
|
||||
<add namespace="NewLife.Cube" />
|
||||
<add namespace="NewLife.Reflection" />
|
||||
<add namespace="NewLife.Web" />
|
||||
<add namespace="XCode" />
|
||||
<add namespace="XCode.Membership" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="1.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Debug",
|
||||
"System": "Information",
|
||||
"Microsoft": "Information"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"ConnectionStrings": {
|
||||
"Membership1": {
|
||||
"connectionString": "Data Source=..\\Data\\Membership.db",
|
||||
"providerName": "SQLite"
|
||||
},
|
||||
"Membership2": {
|
||||
"connectionString": "Server=.;Port=3306;Database=Membership;Uid=root;Pwd=123456;SslMode=None;",
|
||||
"providerName": "MySql.Data.MySqlClient"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.AspNet.Mvc" version="5.2.6" targetFramework="net461" />
|
||||
<package id="Microsoft.AspNet.Mvc.zh-Hans" version="5.2.6" targetFramework="net461" />
|
||||
<package id="Microsoft.AspNet.Razor" version="3.2.6" targetFramework="net461" />
|
||||
<package id="Microsoft.AspNet.Razor.zh-Hans" version="3.2.6" targetFramework="net461" />
|
||||
<package id="Microsoft.AspNet.WebPages" version="3.2.6" targetFramework="net461" />
|
||||
<package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.2.6" targetFramework="net461" />
|
||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net461" />
|
||||
<package id="NewLife.Core" version="8.5.2020.101" targetFramework="net461" />
|
||||
<package id="NewLife.Cube" version="2.8.7253.589" targetFramework="net461" />
|
||||
<package id="NewLife.XCode" version="9.14.2020.101" targetFramework="net461" />
|
||||
</packages>
|
|
@ -1,7 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="本地X组件" value="../Bin" />
|
||||
<add key="本地AntJob" value="./Bin" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||
</packageSources>
|
||||
</configuration>
|
5
蚂蚁.sln
5
蚂蚁.sln
|
@ -24,6 +24,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{E842
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWork", "Samples\HelloWork\HelloWork.csproj", "{5E610811-2352-4882-ADD2-87222CCDE807}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A1EF271C-AEA8-4EA3-A76F-906B4D4A9058}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.editorconfig = .editorconfig
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
|
Loading…
Reference in New Issue