40 changed files with 240 additions and 1515 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,8 +1,9 @@ |
|||
{ |
|||
"runtimeOptions": { |
|||
"additionalProbingPaths": [ |
|||
"C:\\Users\\USER\\.dotnet\\store\\|arch|\\|tfm|", |
|||
"C:\\Users\\USER\\.nuget\\packages" |
|||
"C:\\Users\\RayLin\\.dotnet\\store\\|arch|\\|tfm|", |
|||
"C:\\Users\\RayLin\\.nuget\\packages", |
|||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" |
|||
] |
|||
} |
|||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,8 +1,9 @@ |
|||
{ |
|||
"runtimeOptions": { |
|||
"additionalProbingPaths": [ |
|||
"C:\\Users\\USER\\.dotnet\\store\\|arch|\\|tfm|", |
|||
"C:\\Users\\USER\\.nuget\\packages" |
|||
"C:\\Users\\RayLin\\.dotnet\\store\\|arch|\\|tfm|", |
|||
"C:\\Users\\RayLin\\.nuget\\packages", |
|||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" |
|||
] |
|||
} |
|||
} |
File diff suppressed because it is too large
Binary file not shown.
Binary file not shown.
@ -1,15 +1,16 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<WebStackScaffolding_ControllerDialogWidth>650.4</WebStackScaffolding_ControllerDialogWidth> |
|||
<WebStackScaffolding_ControllerDialogWidth>650</WebStackScaffolding_ControllerDialogWidth> |
|||
<Controller_SelectedScaffolderID>ApiControllerWithContextScaffolder</Controller_SelectedScaffolderID> |
|||
<Controller_SelectedScaffolderCategoryPath>root/Common/Api</Controller_SelectedScaffolderCategoryPath> |
|||
<WebStackScaffolding_IsLayoutPageSelected>False</WebStackScaffolding_IsLayoutPageSelected> |
|||
<WebStackScaffolding_IsLayoutPageSelected>True</WebStackScaffolding_IsLayoutPageSelected> |
|||
<WebStackScaffolding_IsPartialViewSelected>False</WebStackScaffolding_IsPartialViewSelected> |
|||
<WebStackScaffolding_IsReferencingScriptLibrariesSelected>True</WebStackScaffolding_IsReferencingScriptLibrariesSelected> |
|||
<WebStackScaffolding_LayoutPageFile /> |
|||
<WebStackScaffolding_DbContextTypeFullName>AMESCoreStudio.WebApi.AMESContext</WebStackScaffolding_DbContextTypeFullName> |
|||
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> |
|||
<ShowAllFiles>true</ShowAllFiles> |
|||
<ShowAllFiles>false</ShowAllFiles> |
|||
<WebStackScaffolding_IsViewGenerationSelected>True</WebStackScaffolding_IsViewGenerationSelected> |
|||
<NameOfLastUsedPublishProfile>D:\jh-ames-git\AMESCoreStudio.WebApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
|||
</PropertyGroup> |
|||
|
@ -0,0 +1,15 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace AMESCoreStudio.WebApi |
|||
{ |
|||
/// <summary>
|
|||
/// Swagger:隐藏属性
|
|||
/// </summary>
|
|||
[AttributeUsage(AttributeTargets.Property)] |
|||
public class IgnorePropertyAttribute : Attribute |
|||
{ |
|||
} |
|||
} |
@ -0,0 +1,52 @@ |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using AMESCoreStudio.WebApi.Models.AMES; |
|||
|
|||
namespace AMESCoreStudio.WebApi.Controllers.AMES |
|||
{ |
|||
|
|||
/// <summary>
|
|||
///
|
|||
/// </summary>
|
|||
[Route("api/[controller]")]
|
|||
[ApiController] |
|||
public class FactoryUnitController : Controller |
|||
{ |
|||
private readonly AMESContext _context; |
|||
|
|||
/// <summary>
|
|||
///
|
|||
/// </summary>
|
|||
/// <param name="context"></param>
|
|||
public FactoryUnitController(AMESContext context) |
|||
{ |
|||
_context = context; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 獲取產品別資料
|
|||
/// </summary>
|
|||
/// <returns></returns>
|
|||
// GET: api/SystemInfoes
|
|||
[HttpGet] |
|||
public async Task<ActionResult<IEnumerable<FactoryUnit>>> GetFactoryUnit() |
|||
{ |
|||
IQueryable<FactoryUnit> q = _context.FactoryUnits; |
|||
|
|||
q = q.OrderBy(p => p.UnitNO); |
|||
|
|||
//q = q.OrderByDescending(p => p.SystemID);
|
|||
|
|||
var FactoryUnit = await q.ToListAsync(); |
|||
|
|||
//return await _context.SystemInfoes.ToListAsync();
|
|||
|
|||
return FactoryUnit; |
|||
} |
|||
} |
|||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,8 +1,9 @@ |
|||
{ |
|||
"runtimeOptions": { |
|||
"additionalProbingPaths": [ |
|||
"C:\\Users\\USER\\.dotnet\\store\\|arch|\\|tfm|", |
|||
"C:\\Users\\USER\\.nuget\\packages" |
|||
"C:\\Users\\RayLin\\.dotnet\\store\\|arch|\\|tfm|", |
|||
"C:\\Users\\RayLin\\.nuget\\packages", |
|||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" |
|||
] |
|||
} |
|||
} |
File diff suppressed because it is too large
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@ |
|||
1b3c893708ca941b0dd54e78bee183b5991a80bf |
|||
2911a070cfcbab9b421c605adc4621bd70e2d537 |
|||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue