구매 sid 검사 기능 추가

This commit is contained in:
chi
2023-07-12 17:22:24 +09:00
parent 2e484b04e0
commit e4d9011d2f
36 changed files with 961 additions and 689 deletions

View File

@@ -126,8 +126,8 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\DLL\ArSetting.Net4.dll</HintPath>
</Reference>
<Reference Include="CsvHelper, Version=27.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
<HintPath>..\packages\CsvHelper.27.0.4\lib\net45\CsvHelper.dll</HintPath>
<Reference Include="CsvHelper, Version=30.0.0.0, Culture=neutral, PublicKeyToken=8c4959082be5c823, processorArchitecture=MSIL">
<HintPath>..\packages\CsvHelper.30.0.1\lib\net45\CsvHelper.dll</HintPath>
</Reference>
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
@@ -140,8 +140,8 @@
<Reference Include="FarPoint.Win.Spread, Version=11.40.20177.0, Culture=neutral, PublicKeyToken=327c3516b1b18457, processorArchitecture=MSIL" />
<Reference Include="GrapeCity.Spreadsheet.Win, Version=11.40.20177.0, Culture=neutral, PublicKeyToken=327c3516b1b18457" />
<Reference Include="GrapeCity.Win.PluginInputMan, Version=11.40.20177.0, Culture=neutral, PublicKeyToken=327c3516b1b18457, processorArchitecture=MSIL" />
<Reference Include="HtmlAgilityPack, Version=1.4.9.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL">
<HintPath>..\packages\HtmlAgilityPack.CssSelectors.1.0.2\lib\net45\HtmlAgilityPack.dll</HintPath>
<Reference Include="HtmlAgilityPack, Version=1.11.49.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL">
<HintPath>..\packages\HtmlAgilityPack.1.11.49\lib\Net45\HtmlAgilityPack.dll</HintPath>
</Reference>
<Reference Include="HtmlAgilityPack.CssSelectors, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HtmlAgilityPack.CssSelectors.1.0.2\lib\net45\HtmlAgilityPack.CssSelectors.dll</HintPath>
@@ -149,17 +149,17 @@
<Reference Include="libxl.net">
<HintPath>..\DLL\libxl.net.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin, Version=4.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.4.2.0\lib\net45\Microsoft.Owin.dll</HintPath>
<Reference Include="Microsoft.Owin, Version=4.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.4.2.2\lib\net45\Microsoft.Owin.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.Cors, Version=4.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.Cors.4.2.0\lib\net45\Microsoft.Owin.Cors.dll</HintPath>
<Reference Include="Microsoft.Owin.Cors, Version=4.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.Cors.4.2.2\lib\net45\Microsoft.Owin.Cors.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.FileSystems, Version=4.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.FileSystems.4.2.0\lib\net45\Microsoft.Owin.FileSystems.dll</HintPath>
<Reference Include="Microsoft.Owin.FileSystems, Version=4.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.FileSystems.4.2.2\lib\net45\Microsoft.Owin.FileSystems.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.Host.HttpListener, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.Host.HttpListener.4.1.1\lib\net45\Microsoft.Owin.Host.HttpListener.dll</HintPath>
<Reference Include="Microsoft.Owin.Host.HttpListener, Version=4.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.Host.HttpListener.4.2.2\lib\net45\Microsoft.Owin.Host.HttpListener.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.Hosting, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Owin.Hosting.4.1.1\lib\net45\Microsoft.Owin.Hosting.dll</HintPath>
@@ -170,8 +170,8 @@
<Reference Include="Microsoft.SqlServer.Types, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
@@ -188,16 +188,16 @@
<Reference Include="System.Data.Linq" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Management" />
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.4\lib\netstandard1.1\System.Memory.dll</HintPath>
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.5\lib\netstandard1.1\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll</HintPath>
<Reference Include="System.Net.Http.Formatting, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.9\lib\net45\System.Net.Http.Formatting.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Security" />
@@ -206,14 +206,14 @@
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Web.Cors, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.Cors.5.0.0\lib\net45\System.Web.Cors.dll</HintPath>
<Reference Include="System.Web.Cors, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.Cors.5.2.9\lib\net45\System.Web.Cors.dll</HintPath>
</Reference>
<Reference Include="System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll</HintPath>
<Reference Include="System.Web.Http, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.9\lib\net45\System.Web.Http.dll</HintPath>
</Reference>
<Reference Include="System.Web.Http.Owin, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Owin.5.2.7\lib\net45\System.Web.Http.Owin.dll</HintPath>
<Reference Include="System.Web.Http.Owin, Version=5.2.9.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Owin.5.2.9\lib\net45\System.Web.Http.Owin.dll</HintPath>
</Reference>
<Reference Include="System.Web.Services" />
<Reference Include="System.Xml.Linq" />
@@ -828,10 +828,6 @@
<Project>{c2e0627d-0623-4b68-a558-37cbce6bdca6}</Project>
<Name>FEQ0000</Name>
</ProjectReference>
<ProjectReference Include="..\SubProject\FOW0000\FOW0000.csproj">
<Project>{8d593b42-1eae-4d5a-a2c1-0361e2c43a80}</Project>
<Name>FOW0000</Name>
</ProjectReference>
<ProjectReference Include="..\SubProject\FPJ0000\FPJ0000.csproj">
<Project>{74836a5f-cb5b-449f-9210-99c9d1a23b97}</Project>
<Name>FPJ0000</Name>
@@ -854,11 +850,4 @@
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Microsoft.AspNetCore.Components.WebAssembly.Server.6.0.2\build\Microsoft.AspNetCore.Components.WebAssembly.Server.targets" Condition="Exists('..\packages\Microsoft.AspNetCore.Components.WebAssembly.Server.6.0.2\build\Microsoft.AspNetCore.Components.WebAssembly.Server.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. 해당 패키지를 다운로드하려면 NuGet 패키지 복원을 사용하십시오. 자세한 내용은 http://go.microsoft.com/fwlink/?LinkID=322105를 참조하십시오. 누락된 파일은 {0}입니다.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.AspNetCore.Components.WebAssembly.Server.6.0.2\build\Microsoft.AspNetCore.Components.WebAssembly.Server.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.AspNetCore.Components.WebAssembly.Server.6.0.2\build\Microsoft.AspNetCore.Components.WebAssembly.Server.targets'))" />
</Target>
</Project>

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("23.06.26.1430")]
[assembly: AssemblyFileVersion("23.06.26.1430")]
[assembly: AssemblyVersion("23.07.12.1700")]
[assembly: AssemblyFileVersion("23.07.12.1700")]

View File

@@ -1,45 +1,45 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
//using System;
//using System.IO;
//using System.Runtime.InteropServices;
namespace SqlServerTypes
{
/// <summary>
/// Utility methods related to CLR Types for SQL Server
/// </summary>
public class Utilities
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr LoadLibrary(string libname);
//namespace SqlServerTypes
//{
// /// <summary>
// /// Utility methods related to CLR Types for SQL Server
// /// </summary>
// public class Utilities
// {
// [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
// private static extern IntPtr LoadLibrary(string libname);
/// <summary>
/// Loads the required native assemblies for the current architecture (x86 or x64)
/// </summary>
/// <param name="rootApplicationPath">
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
/// </param>
public static void LoadNativeAssemblies(string rootApplicationPath)
{
var nativeBinaryPath = IntPtr.Size > 4
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
// /// <summary>
// /// Loads the required native assemblies for the current architecture (x86 or x64)
// /// </summary>
// /// <param name="rootApplicationPath">
// /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
// /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
// /// </param>
// public static void LoadNativeAssemblies(string rootApplicationPath)
// {
// var nativeBinaryPath = IntPtr.Size > 4
// ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
// : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
}
// LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
// LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
// }
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
{
var path = Path.Combine(nativeBinaryPath, assemblyName);
var ptr = LoadLibrary(path);
if (ptr == IntPtr.Zero)
{
throw new Exception(string.Format(
"Error loading {0} (ErrorCode: {1})",
assemblyName,
Marshal.GetLastWin32Error()));
}
}
}
}
// private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
// {
// var path = Path.Combine(nativeBinaryPath, assemblyName);
// var ptr = LoadLibrary(path);
// if (ptr == IntPtr.Zero)
// {
// throw new Exception(string.Format(
// "Error loading {0} (ErrorCode: {1})",
// assemblyName,
// Marshal.GetLastWin32Error()));
// }
// }
// }
//}

View File

@@ -1092,7 +1092,7 @@ namespace Project
var ucnt = cmd.ExecuteNonQuery();
}
}
catch (Exception eX)
catch
{
//sendMsg = eX.Message;
//msgupdate = true;
@@ -1106,7 +1106,7 @@ namespace Project
cmd.Dispose();
cn.Close();
}
catch (Exception ex)
catch
{
}
@@ -1203,7 +1203,7 @@ namespace Project
}
}
}
catch (Exception ex)
catch
{
}

View File

@@ -133,7 +133,7 @@ namespace Project
cn.Dispose();
return retval;
}
catch (Exception ex)
catch
{
return false;
}

View File

@@ -2,24 +2,15 @@
<configuration>
<configSections></configSections>
<connectionStrings>
<add name="Project.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"
providerName="System.Data.SqlClient" />
<add name="EEEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntities1" connectionString="metadata=res://*/ModelMain.csdl|res://*/ModelMain.ssdl|res://*/ModelMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesMain" connectionString="metadata=res://*/AdoNetEFMain.csdl|res://*/AdoNetEFMain.ssdl|res://*/AdoNetEFMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="S1ACCESS300Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.141.18.50;initial catalog=S1ACCESS300;persist security info=True;user id=amkoruser;password=AmkorUser!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesPurchase" connectionString="metadata=res://*/ModelPurchase.csdl|res://*/ModelPurchase.ssdl|res://*/ModelPurchase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesCommon" connectionString="metadata=res://*/ModelCommon.csdl|res://*/ModelCommon.ssdl|res://*/ModelCommon.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesJobreport" connectionString="metadata=res://*/ModelJobreport.csdl|res://*/ModelJobreport.ssdl|res://*/ModelJobreport.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesProject" connectionString="metadata=res://*/ModelProject.csdl|res://*/ModelProject.ssdl|res://*/ModelProject.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="Project.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!" providerName="System.Data.SqlClient" />
<add name="EEEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="EEEntities1" connectionString="metadata=res://*/ModelMain.csdl|res://*/ModelMain.ssdl|res://*/ModelMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="EEEntitiesMain" connectionString="metadata=res://*/AdoNetEFMain.csdl|res://*/AdoNetEFMain.ssdl|res://*/AdoNetEFMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="S1ACCESS300Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.141.18.50;initial catalog=S1ACCESS300;persist security info=True;user id=amkoruser;password=AmkorUser!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="EEEntitiesPurchase" connectionString="metadata=res://*/ModelPurchase.csdl|res://*/ModelPurchase.ssdl|res://*/ModelPurchase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="EEEntitiesCommon" connectionString="metadata=res://*/ModelCommon.csdl|res://*/ModelCommon.ssdl|res://*/ModelCommon.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="EEEntitiesJobreport" connectionString="metadata=res://*/ModelJobreport.csdl|res://*/ModelJobreport.ssdl|res://*/ModelJobreport.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="EEEntitiesProject" connectionString="metadata=res://*/ModelProject.csdl|res://*/ModelProject.ssdl|res://*/ModelProject.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="Project.Properties.Settings.CS" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!" />
</connectionStrings>
<runtime>
@@ -34,11 +25,11 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
<bindingRedirect oldVersion="0.0.0.0-4.2.2.0" newVersion="4.2.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.ReportViewer.Common" publicKeyToken="89845dcd8080cc91" culture="neutral" />
@@ -54,7 +45,31 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.11.49.0" newVersion="1.11.49.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.9.0" newVersion="5.2.9.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.9.0" newVersion="5.2.9.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.FileSystems" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.2.0" newVersion="4.2.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
</dependentAssembly>
</assemblyBinding>
</runtime>

View File

@@ -1,30 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CsvHelper" version="27.0.4" targetFramework="net46" />
<package id="CsvHelper" version="30.0.1" targetFramework="net46" />
<package id="EntityFramework" version="6.2.0" targetFramework="net45" />
<package id="EntityFramework.ko" version="6.2.0" targetFramework="net45" />
<package id="HtmlAgilityPack" version="1.4.9" targetFramework="net452" />
<package id="HtmlAgilityPack" version="1.11.49" targetFramework="net46" />
<package id="HtmlAgilityPack.CssSelectors" version="1.0.2" targetFramework="net452" />
<package id="Microsoft.AspNet.Cors" version="5.0.0" targetFramework="net46" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.7" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.Owin" version="5.2.7" targetFramework="net452" />
<package id="Microsoft.AspNet.WebApi.OwinSelfHost" version="5.2.7" targetFramework="net452" />
<package id="Microsoft.AspNetCore.Components.WebAssembly.Server" version="6.0.2" targetFramework="net46" />
<package id="Microsoft.AspNet.Cors" version="5.2.9" targetFramework="net46" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.9" targetFramework="net46" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.9" targetFramework="net46" />
<package id="Microsoft.AspNet.WebApi.Owin" version="5.2.9" targetFramework="net46" />
<package id="Microsoft.AspNet.WebApi.OwinSelfHost" version="5.2.9" targetFramework="net46" />
<package id="Microsoft.CSharp" version="4.7.0" targetFramework="net46" />
<package id="Microsoft.Owin" version="4.2.0" targetFramework="net46" />
<package id="Microsoft.Owin.Cors" version="4.2.0" targetFramework="net46" />
<package id="Microsoft.Owin.FileSystems" version="4.2.0" targetFramework="net46" />
<package id="Microsoft.Owin.Host.HttpListener" version="4.1.1" targetFramework="net452" />
<package id="Microsoft.Owin.Hosting" version="4.1.1" targetFramework="net452" />
<package id="Microsoft.Owin" version="4.2.2" targetFramework="net46" />
<package id="Microsoft.Owin.Cors" version="4.2.2" targetFramework="net46" />
<package id="Microsoft.Owin.FileSystems" version="4.2.2" targetFramework="net46" />
<package id="Microsoft.Owin.Host.HttpListener" version="4.2.2" targetFramework="net46" />
<package id="Microsoft.Owin.Hosting" version="4.1.1" targetFramework="net46" />
<package id="Microsoft.Owin.StaticFiles" version="4.2.0" targetFramework="net46" />
<package id="Microsoft.Owin.StaticFiles.ko" version="4.2.0" targetFramework="net46" />
<package id="Microsoft.ReportingServices.ReportViewerControl.Winforms" version="150.1449.0" targetFramework="net452" />
<package id="Microsoft.SqlServer.Types" version="14.0.314.76" targetFramework="net452" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net452" />
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net46" />
<package id="Owin" version="1.0" targetFramework="net452" />
<package id="System.Buffers" version="4.5.1" targetFramework="net46" />
<package id="System.Memory" version="4.5.4" targetFramework="net46" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net46" />
<package id="System.Memory" version="4.5.5" targetFramework="net46" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net46" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net46" />
</packages>

Submodule Sub/AmkorRestfulService updated: 9b981a81fe...847840385f

View File

@@ -210,13 +210,13 @@ namespace FBS0000
//현재인원값
var bIndate = DateTime.TryParse(item.indate, out DateTime dtIn);
var bOutdate = DateTime.TryParse(item.outdate, out DateTime dtOut);
Boolean usePerson = true;
// Boolean usePerson = true;
//
if (bIndate == true && curDate.ToShortDateString().CompareTo(dtIn.ToShortDateString()) < 0)
usePerson = false;
if (bOutdate == true && curDate.ToShortDateString().CompareTo(dtOut.ToShortDateString()) > 0)
usePerson = false;
//if (bIndate == true && curDate.ToShortDateString().CompareTo(dtIn.ToShortDateString()) < 0)
// usePerson = false;
//if (bOutdate == true && curDate.ToShortDateString().CompareTo(dtOut.ToShortDateString()) > 0)
// usePerson = false;
ps[3] = bholy ? 1 : 0;
ps[2] += 1;

View File

@@ -1,45 +1,45 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
//using System;
//using System.IO;
//using System.Runtime.InteropServices;
namespace SqlServerTypes
{
/// <summary>
/// Utility methods related to CLR Types for SQL Server
/// </summary>
public class Utilities
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr LoadLibrary(string libname);
//namespace SqlServerTypes
//{
// /// <summary>
// /// Utility methods related to CLR Types for SQL Server
// /// </summary>
// public class Utilities
// {
// [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
// private static extern IntPtr LoadLibrary(string libname);
/// <summary>
/// Loads the required native assemblies for the current architecture (x86 or x64)
/// </summary>
/// <param name="rootApplicationPath">
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
/// </param>
public static void LoadNativeAssemblies(string rootApplicationPath)
{
var nativeBinaryPath = IntPtr.Size > 4
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
// /// <summary>
// /// Loads the required native assemblies for the current architecture (x86 or x64)
// /// </summary>
// /// <param name="rootApplicationPath">
// /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
// /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
// /// </param>
// public static void LoadNativeAssemblies(string rootApplicationPath)
// {
// var nativeBinaryPath = IntPtr.Size > 4
// ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
// : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
}
// LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
// LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
// }
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
{
var path = Path.Combine(nativeBinaryPath, assemblyName);
var ptr = LoadLibrary(path);
if (ptr == IntPtr.Zero)
{
throw new Exception(string.Format(
"Error loading {0} (ErrorCode: {1})",
assemblyName,
Marshal.GetLastWin32Error()));
}
}
}
}
// private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
// {
// var path = Path.Combine(nativeBinaryPath, assemblyName);
// var ptr = LoadLibrary(path);
// if (ptr == IntPtr.Zero)
// {
// throw new Exception(string.Format(
// "Error loading {0} (ErrorCode: {1})",
// assemblyName,
// Marshal.GetLastWin32Error()));
// }
// }
// }
//}

View File

@@ -1,45 +1,45 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
//using System;
//using System.IO;
//using System.Runtime.InteropServices;
namespace SqlServerTypes
{
/// <summary>
/// Utility methods related to CLR Types for SQL Server
/// </summary>
public class Utilities
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr LoadLibrary(string libname);
//namespace SqlServerTypes
//{
// /// <summary>
// /// Utility methods related to CLR Types for SQL Server
// /// </summary>
// public class Utilities
// {
// [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
// private static extern IntPtr LoadLibrary(string libname);
/// <summary>
/// Loads the required native assemblies for the current architecture (x86 or x64)
/// </summary>
/// <param name="rootApplicationPath">
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
/// </param>
public static void LoadNativeAssemblies(string rootApplicationPath)
{
var nativeBinaryPath = IntPtr.Size > 4
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
// /// <summary>
// /// Loads the required native assemblies for the current architecture (x86 or x64)
// /// </summary>
// /// <param name="rootApplicationPath">
// /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
// /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
// /// </param>
// public static void LoadNativeAssemblies(string rootApplicationPath)
// {
// var nativeBinaryPath = IntPtr.Size > 4
// ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
// : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
}
// LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
// LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
// }
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
{
var path = Path.Combine(nativeBinaryPath, assemblyName);
var ptr = LoadLibrary(path);
if (ptr == IntPtr.Zero)
{
throw new Exception(string.Format(
"Error loading {0} (ErrorCode: {1})",
assemblyName,
Marshal.GetLastWin32Error()));
}
}
}
}
// private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
// {
// var path = Path.Combine(nativeBinaryPath, assemblyName);
// var ptr = LoadLibrary(path);
// if (ptr == IntPtr.Zero)
// {
// throw new Exception(string.Format(
// "Error loading {0} (ErrorCode: {1})",
// assemblyName,
// Marshal.GetLastWin32Error()));
// }
// }
// }
//}

View File

@@ -280,7 +280,7 @@ namespace FCOMMON
" where prgmName = 'Amkor K4-EET GroupWare'";
return ExecuteScalar(sql);
}
catch (Exception ex)
catch
{
return string.Empty;
}
@@ -1043,7 +1043,7 @@ namespace FCOMMON
{
return ExecuteScalar(slq);
}
catch (Exception ex)
catch
{
return string.Empty;
}
@@ -1057,7 +1057,7 @@ namespace FCOMMON
try
{
return ExecuteScalar(slq);
}catch ( Exception ex)
}catch
{
return string.Empty;
}

View File

@@ -274,6 +274,12 @@
<Compile Include="PurchaseCR\rPurchaseCR.Designer.cs">
<DependentUpon>rPurchaseCR.cs</DependentUpon>
</Compile>
<Compile Include="Purchase\fSIDListSelect.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Purchase\fSIDListSelect.Designer.cs">
<DependentUpon>fSIDListSelect.cs</DependentUpon>
</Compile>
<Compile Include="Purchase\rPurchaseNR.cs">
<SubType>Form</SubType>
</Compile>
@@ -356,6 +362,9 @@
<EmbeddedResource Include="Purchase\fPurchaseNR.resx">
<DependentUpon>fPurchaseNR.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Purchase\fSIDListSelect.resx">
<DependentUpon>fSIDListSelect.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Purchase\Rpt_PurchasePrj.rdlc" />
<EmbeddedResource Include="Purchase\Rpt_PurchasePrc.rdlc" />
<EmbeddedResource Include="Purchase\Rpt_Purchase.rdlc" />
@@ -430,6 +439,10 @@
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Sub\AmkorRestfulService\AmkorRestfulService.csproj">
<Project>{58cfc90c-5068-46a2-a8de-0e92ee9e0990}</Project>
<Name>AmkorRestfulService</Name>
</ProjectReference>
<ProjectReference Include="..\..\Sub\YARTE\YARTE.csproj">
<Project>{db5ee9c8-eacf-4231-877e-b9dfd7a714de}</Project>
<Name>YARTE</Name>

View File

@@ -86,6 +86,7 @@
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.tbInQty = new System.Windows.Forms.TextBox();
this.button7 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
@@ -99,7 +100,8 @@
this.dsPurchase = new FEQ0000.dsPurchase();
this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
this.tbInQty = new System.Windows.Forms.TextBox();
this.btSIDChk = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components);
processLabel = new System.Windows.Forms.Label();
receiveLabel = new System.Windows.Forms.Label();
scLabel = new System.Windows.Forms.Label();
@@ -162,7 +164,7 @@
// sidLabel
//
sidLabel.AutoSize = true;
sidLabel.Location = new System.Drawing.Point(288, 251);
sidLabel.Location = new System.Drawing.Point(54, 252);
sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
sidLabel.Name = "sidLabel";
sidLabel.Size = new System.Drawing.Size(32, 20);
@@ -172,7 +174,7 @@
// pumscaleLabel
//
pumscaleLabel.AutoSize = true;
pumscaleLabel.Location = new System.Drawing.Point(10, 142);
pumscaleLabel.Location = new System.Drawing.Point(10, 124);
pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumscaleLabel.Name = "pumscaleLabel";
pumscaleLabel.Size = new System.Drawing.Size(75, 20);
@@ -182,7 +184,7 @@
// pumqtyLabel
//
pumqtyLabel.AutoSize = true;
pumqtyLabel.Location = new System.Drawing.Point(47, 179);
pumqtyLabel.Location = new System.Drawing.Point(47, 154);
pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumqtyLabel.Name = "pumqtyLabel";
pumqtyLabel.Size = new System.Drawing.Size(39, 20);
@@ -192,7 +194,7 @@
// pumpriceLabel
//
pumpriceLabel.AutoSize = true;
pumpriceLabel.Location = new System.Drawing.Point(280, 179);
pumpriceLabel.Location = new System.Drawing.Point(280, 154);
pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumpriceLabel.Name = "pumpriceLabel";
pumpriceLabel.Size = new System.Drawing.Size(39, 20);
@@ -202,7 +204,7 @@
// pumamtLabel
//
pumamtLabel.AutoSize = true;
pumamtLabel.Location = new System.Drawing.Point(47, 251);
pumamtLabel.Location = new System.Drawing.Point(47, 215);
pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumamtLabel.Name = "pumamtLabel";
pumamtLabel.Size = new System.Drawing.Size(39, 20);
@@ -283,7 +285,7 @@
// label3
//
label3.AutoSize = true;
label3.Location = new System.Drawing.Point(46, 69);
label3.Location = new System.Drawing.Point(46, 62);
label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(39, 20);
@@ -293,7 +295,7 @@
// label6
//
label6.AutoSize = true;
label6.Location = new System.Drawing.Point(280, 69);
label6.Location = new System.Drawing.Point(280, 62);
label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label6.Name = "label6";
label6.Size = new System.Drawing.Size(39, 20);
@@ -316,7 +318,7 @@
//
label8.AutoSize = true;
label8.ForeColor = System.Drawing.Color.Blue;
label8.Location = new System.Drawing.Point(29, 214);
label8.Location = new System.Drawing.Point(29, 182);
label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label8.Name = "label8";
label8.Size = new System.Drawing.Size(57, 20);
@@ -328,7 +330,7 @@
label9.AutoSize = true;
label9.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
label9.ForeColor = System.Drawing.Color.Blue;
label9.Location = new System.Drawing.Point(285, 218);
label9.Location = new System.Drawing.Point(285, 186);
label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label9.Name = "label9";
label9.Size = new System.Drawing.Size(163, 15);
@@ -338,13 +340,23 @@
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(287, 286);
label10.Location = new System.Drawing.Point(287, 215);
label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(75, 20);
label10.TabIndex = 38;
label10.Text = "STORAGE";
//
// label11
//
label11.AutoSize = true;
label11.Location = new System.Drawing.Point(27, 129);
label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label11.Name = "label11";
label11.Size = new System.Drawing.Size(69, 20);
label11.TabIndex = 37;
label11.Text = "입고수량";
//
// tbSC
//
this.tbSC.Location = new System.Drawing.Point(104, 191);
@@ -356,17 +368,18 @@
// tbSID
//
this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.tbSID.Location = new System.Drawing.Point(327, 248);
this.tbSID.Font = new System.Drawing.Font("맑은 고딕", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tbSID.Location = new System.Drawing.Point(93, 249);
this.tbSID.Margin = new System.Windows.Forms.Padding(4);
this.tbSID.Name = "tbSID";
this.tbSID.Size = new System.Drawing.Size(148, 27);
this.tbSID.Size = new System.Drawing.Size(179, 34);
this.tbSID.TabIndex = 20;
//
// tbPumName
//
this.tbPumName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbPumName.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbPumName.Location = new System.Drawing.Point(93, 102);
this.tbPumName.Location = new System.Drawing.Point(93, 91);
this.tbPumName.Margin = new System.Windows.Forms.Padding(4);
this.tbPumName.Name = "tbPumName";
this.tbPumName.Size = new System.Drawing.Size(311, 27);
@@ -378,7 +391,7 @@
//
this.tbPumModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbPumModel.ImeMode = System.Windows.Forms.ImeMode.Alpha;
this.tbPumModel.Location = new System.Drawing.Point(93, 139);
this.tbPumModel.Location = new System.Drawing.Point(93, 121);
this.tbPumModel.Margin = new System.Windows.Forms.Padding(4);
this.tbPumModel.Name = "tbPumModel";
this.tbPumModel.Size = new System.Drawing.Size(311, 27);
@@ -387,7 +400,7 @@
// tbPumUnit
//
this.tbPumUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
this.tbPumUnit.Location = new System.Drawing.Point(410, 139);
this.tbPumUnit.Location = new System.Drawing.Point(410, 121);
this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4);
this.tbPumUnit.Name = "tbPumUnit";
this.tbPumUnit.Size = new System.Drawing.Size(64, 27);
@@ -399,7 +412,7 @@
// tbPumQty
//
this.tbPumQty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbPumQty.Location = new System.Drawing.Point(94, 175);
this.tbPumQty.Location = new System.Drawing.Point(94, 150);
this.tbPumQty.Margin = new System.Windows.Forms.Padding(4);
this.tbPumQty.Name = "tbPumQty";
this.tbPumQty.Size = new System.Drawing.Size(111, 27);
@@ -409,7 +422,7 @@
//
// tbPumPrice
//
this.tbPumPrice.Location = new System.Drawing.Point(326, 175);
this.tbPumPrice.Location = new System.Drawing.Point(326, 150);
this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4);
this.tbPumPrice.Name = "tbPumPrice";
this.tbPumPrice.Size = new System.Drawing.Size(148, 27);
@@ -419,7 +432,7 @@
//
// tbPumAmt
//
this.tbPumAmt.Location = new System.Drawing.Point(93, 248);
this.tbPumAmt.Location = new System.Drawing.Point(93, 212);
this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4);
this.tbPumAmt.Name = "tbPumAmt";
this.tbPumAmt.ReadOnly = true;
@@ -431,15 +444,15 @@
// tbSupply
//
this.tbSupply.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbSupply.Location = new System.Drawing.Point(93, 283);
this.tbSupply.Location = new System.Drawing.Point(93, 288);
this.tbSupply.Margin = new System.Windows.Forms.Padding(4);
this.tbSupply.Name = "tbSupply";
this.tbSupply.Size = new System.Drawing.Size(112, 27);
this.tbSupply.Size = new System.Drawing.Size(311, 27);
this.tbSupply.TabIndex = 22;
//
// tbSupplyIndex
//
this.tbSupplyIndex.Location = new System.Drawing.Point(208, 283);
this.tbSupplyIndex.Location = new System.Drawing.Point(411, 288);
this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4);
this.tbSupplyIndex.Name = "tbSupplyIndex";
this.tbSupplyIndex.ReadOnly = true;
@@ -516,7 +529,7 @@
//
this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.cmbState.FormattingEnabled = true;
this.cmbState.Location = new System.Drawing.Point(327, 66);
this.cmbState.Location = new System.Drawing.Point(327, 59);
this.cmbState.Margin = new System.Windows.Forms.Padding(4);
this.cmbState.Name = "cmbState";
this.cmbState.Size = new System.Drawing.Size(148, 28);
@@ -543,7 +556,7 @@
this.cmbRequest.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbRequest.FormattingEnabled = true;
this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.cmbRequest.Location = new System.Drawing.Point(93, 66);
this.cmbRequest.Location = new System.Drawing.Point(93, 59);
this.cmbRequest.Margin = new System.Windows.Forms.Padding(4);
this.cmbRequest.Name = "cmbRequest";
this.cmbRequest.Size = new System.Drawing.Size(179, 28);
@@ -564,7 +577,7 @@
//
// tbPumIDX
//
this.tbPumIDX.Location = new System.Drawing.Point(410, 102);
this.tbPumIDX.Location = new System.Drawing.Point(410, 91);
this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4);
this.tbPumIDX.Name = "tbPumIDX";
this.tbPumIDX.ReadOnly = true;
@@ -576,7 +589,7 @@
//
// tbPumStock
//
this.tbPumStock.Location = new System.Drawing.Point(208, 175);
this.tbPumStock.Location = new System.Drawing.Point(208, 150);
this.tbPumStock.Margin = new System.Windows.Forms.Padding(4);
this.tbPumStock.Name = "tbPumStock";
this.tbPumStock.ReadOnly = true;
@@ -643,6 +656,7 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btSIDChk);
this.groupBox1.Controls.Add(this.tbStorage);
this.groupBox1.Controls.Add(label10);
this.groupBox1.Controls.Add(label9);
@@ -689,7 +703,7 @@
// tbStorage
//
this.tbStorage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.tbStorage.Location = new System.Drawing.Point(370, 283);
this.tbStorage.Location = new System.Drawing.Point(370, 212);
this.tbStorage.Margin = new System.Windows.Forms.Padding(4);
this.tbStorage.Name = "tbStorage";
this.tbStorage.Size = new System.Drawing.Size(104, 27);
@@ -698,7 +712,7 @@
// tbPumPriceD
//
this.tbPumPriceD.ForeColor = System.Drawing.Color.Blue;
this.tbPumPriceD.Location = new System.Drawing.Point(94, 211);
this.tbPumPriceD.Location = new System.Drawing.Point(94, 179);
this.tbPumPriceD.Margin = new System.Windows.Forms.Padding(4);
this.tbPumPriceD.Name = "tbPumPriceD";
this.tbPumPriceD.Size = new System.Drawing.Size(178, 27);
@@ -719,7 +733,7 @@
//
// button2
//
this.button2.Location = new System.Drawing.Point(9, 283);
this.button2.Location = new System.Drawing.Point(9, 288);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(80, 27);
this.button2.TabIndex = 33;
@@ -729,7 +743,7 @@
//
// button1
//
this.button1.Location = new System.Drawing.Point(9, 102);
this.button1.Location = new System.Drawing.Point(9, 91);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 27);
this.button1.TabIndex = 32;
@@ -776,6 +790,15 @@
this.groupBox2.TabStop = false;
this.groupBox2.Text = "추가정보";
//
// tbInQty
//
this.tbInQty.Location = new System.Drawing.Point(104, 125);
this.tbInQty.Margin = new System.Windows.Forms.Padding(4);
this.tbInQty.Name = "tbInQty";
this.tbInQty.Size = new System.Drawing.Size(286, 27);
this.tbInQty.TabIndex = 38;
this.tbInQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// button7
//
this.button7.Location = new System.Drawing.Point(6, 489);
@@ -890,24 +913,21 @@
//
this.purchaseTableAdapter.ClearBeforeFill = true;
//
// tbInQty
// btSIDChk
//
this.tbInQty.Location = new System.Drawing.Point(104, 125);
this.tbInQty.Margin = new System.Windows.Forms.Padding(4);
this.tbInQty.Name = "tbInQty";
this.tbInQty.Size = new System.Drawing.Size(286, 27);
this.tbInQty.TabIndex = 38;
this.tbInQty.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.btSIDChk.BackColor = System.Drawing.Color.Gray;
this.btSIDChk.Location = new System.Drawing.Point(279, 249);
this.btSIDChk.Name = "btSIDChk";
this.btSIDChk.Size = new System.Drawing.Size(196, 34);
this.btSIDChk.TabIndex = 40;
this.btSIDChk.Text = "SID 검사(SPR/NR)";
this.btSIDChk.UseVisualStyleBackColor = false;
this.btSIDChk.Click += new System.EventHandler(this.button8_Click);
//
// label11
// timer1
//
label11.AutoSize = true;
label11.Location = new System.Drawing.Point(27, 129);
label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label11.Name = "label11";
label11.Size = new System.Drawing.Size(69, 20);
label11.TabIndex = 37;
label11.Text = "입고수량";
this.timer1.Interval = 250;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// fPurchase_Add
//
@@ -988,5 +1008,7 @@
private System.Windows.Forms.TextBox tbPumPriceD;
private System.Windows.Forms.TextBox tbStorage;
private System.Windows.Forms.TextBox tbInQty;
private System.Windows.Forms.Button btSIDChk;
private System.Windows.Forms.Timer timer1;
}
}

View File

@@ -1,4 +1,6 @@
using System;
using FCOMMON;
using FEQ0000.Purchase;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -16,6 +18,8 @@ namespace FEQ0000
dsPurchase.PurchaseRow dr;
public Boolean repeatAdd = false;
Boolean binit = false;
string sidchk = string.Empty;
public fPurchase_Add(dsPurchase.PurchaseRow dr_)
{
InitializeComponent();
@@ -277,7 +281,12 @@ namespace FEQ0000
}
binit = true;
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added)
sidchk = string.Empty;
else
sidchk = tbSID.Text.Trim();
timer1.Start();
}
@@ -433,6 +442,24 @@ namespace FEQ0000
tbSID.Text = sidTrim(tbSID.Text);
if(string.IsNullOrWhiteSpace(this.sidchk))
{
FCOMMON.Util.MsgE("SID검사가 필요합니다.\n상단의 검사 버튼을 눌러 SPR/NR 재고 여부를 확인 하세요");
btSIDChk.Focus();
return false;
}
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
if (this.tbSID.Text.Trim().Equals(this.sidchk) == false)
{
Util.MsgE("SID검사 자료가 변경되었습니다. 다시 검사 하세요");
sidchk = string.Empty;
return false;
}
//if (cbProcess.Text.Trim() == "")
//{
// FCOMMON.Util.MsgE("추가정보내의 [공정]을 선택하세요.");
@@ -1010,5 +1037,58 @@ namespace FEQ0000
}
else tbPumPrice.Text = "0";
}
private void button8_Click(object sender, EventArgs e)
{
var sid = tbSID.Text.Trim();
if (sid.Length != 9)
{
FCOMMON.Util.MsgE("검색 할 SID를 입력하세요");
tbSID.Focus();
tbSID.SelectAll();
return;
}
var dt = Amkor.RestfulService.SPMSIDSearch(sid);
if (dt.Complete)
{
var f = new fSIDListSelect(sid,dt.Result);
if (f.ShowDialog() == DialogResult.OK)
this.sidchk = sid;
else
{
FCOMMON.Util.MsgE("목록표시 창에서 '확인' 버튼을 눌러야 SID검색이 완료됩니다.");
}
}
else
{
FCOMMON.Util.MsgI("SPM/NR 에서 검색된 정보가 없습니다\n저장이 가능 합니다");
this.sidchk = sid;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
if (tbSID.TextLength != 9)
{
if (btSIDChk.BackColor == Color.Gray)
btSIDChk.BackColor = Color.Tomato;
else
btSIDChk.BackColor = Color.Gray;
}
else
{
if (string.IsNullOrWhiteSpace(sidchk))
{
if (btSIDChk.BackColor == Color.Lime)
btSIDChk.BackColor = Color.White;
else
btSIDChk.BackColor = Color.Lime;
}
else btSIDChk.BackColor = SystemColors.Control;
}
}
}
}

View File

@@ -199,6 +199,9 @@
<metadata name="label10.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label11.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<data name="tbBigo.ToolTip" xml:space="preserve">
<value>* 공용 공구 / 상세한 사유 작성 (공용으로 함께 쓰는 것들.. 전동 드릴등)
* 공용 파트 / 상세한 사유 작성 (공용으로 보관하여 정비에 사용되는 것들..WRITE , COnnector ,pin 등)
@@ -206,9 +209,6 @@
* 개인 정비 공구 / 상세한 사유 작성 (개인이 보관하여 사용하는 공구류, WRench, Driver, Drill, Tab 등)
* 기타 물품 / 상세한 사유 작성 (상기 항목에 포함되지 않는다고 판단되는 것들 .. SPR 파트정리용, Feeder 파트 정리 등)</value>
</data>
<metadata name="label11.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="dsPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
@@ -218,6 +218,9 @@
<metadata name="purchaseTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>313, 17</value>
</metadata>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>587, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>58</value>
</metadata>

View File

@@ -0,0 +1,222 @@
namespace FEQ0000.Purchase
{
partial class fSIDListSelect
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSIDListSelect));
this.dv1 = new System.Windows.Forms.DataGridView();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
this.SuspendLayout();
//
// dv1
//
this.dv1.AllowUserToAddRows = false;
this.dv1.AllowUserToDeleteRows = false;
this.dv1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle1.Padding = new System.Windows.Forms.Padding(0, 5, 0, 5);
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dv1.DefaultCellStyle = dataGridViewCellStyle1;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(0, 0);
this.dv1.Name = "dv1";
this.dv1.ReadOnly = true;
this.dv1.RowTemplate.Height = 23;
this.dv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dv1.Size = new System.Drawing.Size(884, 378);
this.dv1.TabIndex = 0;
this.dv1.DoubleClick += new System.EventHandler(this.dataGridView1_DoubleClick);
//
// bn
//
this.bn.AddNewItem = null;
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.ImageScalingSize = new System.Drawing.Size(32, 32);
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.toolStripButton1});
this.bn.Location = new System.Drawing.Point(0, 378);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(884, 39);
this.bn.TabIndex = 1;
this.bn.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 36);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(36, 36);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(36, 36);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 39);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 39);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(36, 36);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(36, 36);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 39);
//
// toolStripButton1
//
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(95, 36);
this.toolStripButton1.Text = "확인 완료";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// fSIDListSelect
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(884, 417);
this.Controls.Add(this.dv1);
this.Controls.Add(this.bn);
this.Name = "fSIDListSelect";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "SPM 검색 결과";
this.Load += new System.EventHandler(this.fSIDListSelect_Load);
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DataGridView dv1;
private System.Windows.Forms.BindingSource bs;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton toolStripButton1;
}
}

View File

@@ -0,0 +1,41 @@
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FEQ0000.Purchase
{
public partial class fSIDListSelect : Form
{
public fSIDListSelect(string sid,DataTable dt)
{
InitializeComponent();
this.bs.DataSource = dt;
this.dv1.DataSource = this.bs;
this.bs.Sort = "quantity desc";
this.Text = $"SPM/NR 검색 결과 SID:{sid}";
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
DBM.InsertLog("SIDCHK", this.Text);
DialogResult = DialogResult.OK;
}
private void dataGridView1_DoubleClick(object sender, EventArgs e)
{
}
private void fSIDListSelect_Load(object sender, EventArgs e)
{
this.dv1.AutoResizeColumns();
}
}
}

View File

@@ -117,10 +117,53 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>81, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@@ -136,22 +179,4 @@
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>123, 17</value>
</metadata>
</root>

View File

@@ -1238,8 +1238,8 @@ namespace FEQ0000
//if (fi.Directory.Exists == false) fi.Directory.Create();
var xlsrow = 0;
var xlscol = 0;
// var xlsrow = 0;
// var xlscol = 0;
var sb = new System.Text.StringBuilder();
Dictionary<string, int> userlist = new Dictionary<string, int>();
foreach (var idx in selidx)
@@ -1249,7 +1249,7 @@ namespace FEQ0000
if (row == null || row.RowState == DataRowState.Deleted) continue;
//데이터를 찾았다
var sid = row.sid;
var deliver = 20;
//var deliver = 20;
var requestname = row.requestName;
var rquestid = row.request;
var tel = FCOMMON.DBM.GetUserTel(FCOMMON.info.Login.gcode, rquestid);

View File

@@ -88,6 +88,8 @@
this.dsPurchase = new FEQ0000.dsPurchase();
this.purchaseBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.purchaseTableAdapter = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
this.btSIDChk = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components);
receiveLabel = new System.Windows.Forms.Label();
scLabel = new System.Windows.Forms.Label();
sidLabel = new System.Windows.Forms.Label();
@@ -135,7 +137,7 @@
// sidLabel
//
sidLabel.AutoSize = true;
sidLabel.Location = new System.Drawing.Point(288, 251);
sidLabel.Location = new System.Drawing.Point(54, 245);
sidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
sidLabel.Name = "sidLabel";
sidLabel.Size = new System.Drawing.Size(32, 20);
@@ -145,7 +147,7 @@
// pumscaleLabel
//
pumscaleLabel.AutoSize = true;
pumscaleLabel.Location = new System.Drawing.Point(10, 142);
pumscaleLabel.Location = new System.Drawing.Point(10, 121);
pumscaleLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumscaleLabel.Name = "pumscaleLabel";
pumscaleLabel.Size = new System.Drawing.Size(75, 20);
@@ -155,7 +157,7 @@
// pumqtyLabel
//
pumqtyLabel.AutoSize = true;
pumqtyLabel.Location = new System.Drawing.Point(47, 179);
pumqtyLabel.Location = new System.Drawing.Point(47, 151);
pumqtyLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumqtyLabel.Name = "pumqtyLabel";
pumqtyLabel.Size = new System.Drawing.Size(39, 20);
@@ -165,7 +167,7 @@
// pumpriceLabel
//
pumpriceLabel.AutoSize = true;
pumpriceLabel.Location = new System.Drawing.Point(280, 179);
pumpriceLabel.Location = new System.Drawing.Point(280, 151);
pumpriceLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumpriceLabel.Name = "pumpriceLabel";
pumpriceLabel.Size = new System.Drawing.Size(39, 20);
@@ -175,7 +177,7 @@
// pumamtLabel
//
pumamtLabel.AutoSize = true;
pumamtLabel.Location = new System.Drawing.Point(47, 251);
pumamtLabel.Location = new System.Drawing.Point(47, 209);
pumamtLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
pumamtLabel.Name = "pumamtLabel";
pumamtLabel.Size = new System.Drawing.Size(39, 20);
@@ -226,7 +228,7 @@
// label3
//
label3.AutoSize = true;
label3.Location = new System.Drawing.Point(46, 69);
label3.Location = new System.Drawing.Point(46, 62);
label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(39, 20);
@@ -236,7 +238,7 @@
// label6
//
label6.AutoSize = true;
label6.Location = new System.Drawing.Point(280, 69);
label6.Location = new System.Drawing.Point(280, 62);
label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label6.Name = "label6";
label6.Size = new System.Drawing.Size(39, 20);
@@ -247,7 +249,7 @@
//
label8.AutoSize = true;
label8.ForeColor = System.Drawing.Color.Blue;
label8.Location = new System.Drawing.Point(29, 214);
label8.Location = new System.Drawing.Point(29, 179);
label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label8.Name = "label8";
label8.Size = new System.Drawing.Size(57, 20);
@@ -259,7 +261,7 @@
label9.AutoSize = true;
label9.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
label9.ForeColor = System.Drawing.Color.Blue;
label9.Location = new System.Drawing.Point(285, 218);
label9.Location = new System.Drawing.Point(285, 183);
label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label9.Name = "label9";
label9.Size = new System.Drawing.Size(163, 15);
@@ -269,7 +271,7 @@
// label10
//
label10.AutoSize = true;
label10.Location = new System.Drawing.Point(287, 286);
label10.Location = new System.Drawing.Point(287, 209);
label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label10.Name = "label10";
label10.Size = new System.Drawing.Size(75, 20);
@@ -307,17 +309,18 @@
// tbSID
//
this.tbSID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.tbSID.Location = new System.Drawing.Point(327, 248);
this.tbSID.Font = new System.Drawing.Font("맑은 고딕", 15F);
this.tbSID.Location = new System.Drawing.Point(93, 242);
this.tbSID.Margin = new System.Windows.Forms.Padding(4);
this.tbSID.Name = "tbSID";
this.tbSID.Size = new System.Drawing.Size(148, 27);
this.tbSID.Size = new System.Drawing.Size(179, 34);
this.tbSID.TabIndex = 20;
//
// tbPumName
//
this.tbPumName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbPumName.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tbPumName.Location = new System.Drawing.Point(93, 102);
this.tbPumName.Location = new System.Drawing.Point(93, 88);
this.tbPumName.Margin = new System.Windows.Forms.Padding(4);
this.tbPumName.Name = "tbPumName";
this.tbPumName.Size = new System.Drawing.Size(311, 27);
@@ -329,7 +332,7 @@
//
this.tbPumModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbPumModel.ImeMode = System.Windows.Forms.ImeMode.Alpha;
this.tbPumModel.Location = new System.Drawing.Point(93, 139);
this.tbPumModel.Location = new System.Drawing.Point(93, 118);
this.tbPumModel.Margin = new System.Windows.Forms.Padding(4);
this.tbPumModel.Name = "tbPumModel";
this.tbPumModel.Size = new System.Drawing.Size(311, 27);
@@ -338,7 +341,7 @@
// tbPumUnit
//
this.tbPumUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
this.tbPumUnit.Location = new System.Drawing.Point(410, 139);
this.tbPumUnit.Location = new System.Drawing.Point(410, 118);
this.tbPumUnit.Margin = new System.Windows.Forms.Padding(4);
this.tbPumUnit.Name = "tbPumUnit";
this.tbPumUnit.Size = new System.Drawing.Size(64, 27);
@@ -350,7 +353,7 @@
// tbPumQty
//
this.tbPumQty.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbPumQty.Location = new System.Drawing.Point(94, 175);
this.tbPumQty.Location = new System.Drawing.Point(94, 147);
this.tbPumQty.Margin = new System.Windows.Forms.Padding(4);
this.tbPumQty.Name = "tbPumQty";
this.tbPumQty.Size = new System.Drawing.Size(111, 27);
@@ -360,7 +363,7 @@
//
// tbPumPrice
//
this.tbPumPrice.Location = new System.Drawing.Point(326, 175);
this.tbPumPrice.Location = new System.Drawing.Point(326, 147);
this.tbPumPrice.Margin = new System.Windows.Forms.Padding(4);
this.tbPumPrice.Name = "tbPumPrice";
this.tbPumPrice.Size = new System.Drawing.Size(148, 27);
@@ -370,7 +373,7 @@
//
// tbPumAmt
//
this.tbPumAmt.Location = new System.Drawing.Point(93, 248);
this.tbPumAmt.Location = new System.Drawing.Point(93, 206);
this.tbPumAmt.Margin = new System.Windows.Forms.Padding(4);
this.tbPumAmt.Name = "tbPumAmt";
this.tbPumAmt.ReadOnly = true;
@@ -385,12 +388,12 @@
this.tbSupply.Location = new System.Drawing.Point(93, 283);
this.tbSupply.Margin = new System.Windows.Forms.Padding(4);
this.tbSupply.Name = "tbSupply";
this.tbSupply.Size = new System.Drawing.Size(112, 27);
this.tbSupply.Size = new System.Drawing.Size(311, 27);
this.tbSupply.TabIndex = 22;
//
// tbSupplyIndex
//
this.tbSupplyIndex.Location = new System.Drawing.Point(208, 283);
this.tbSupplyIndex.Location = new System.Drawing.Point(410, 283);
this.tbSupplyIndex.Margin = new System.Windows.Forms.Padding(4);
this.tbSupplyIndex.Name = "tbSupplyIndex";
this.tbSupplyIndex.ReadOnly = true;
@@ -468,7 +471,7 @@
//
this.cmbState.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.cmbState.FormattingEnabled = true;
this.cmbState.Location = new System.Drawing.Point(327, 66);
this.cmbState.Location = new System.Drawing.Point(327, 59);
this.cmbState.Margin = new System.Windows.Forms.Padding(4);
this.cmbState.Name = "cmbState";
this.cmbState.Size = new System.Drawing.Size(148, 28);
@@ -482,7 +485,7 @@
this.cmbRequest.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbRequest.FormattingEnabled = true;
this.cmbRequest.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.cmbRequest.Location = new System.Drawing.Point(93, 66);
this.cmbRequest.Location = new System.Drawing.Point(93, 59);
this.cmbRequest.Margin = new System.Windows.Forms.Padding(4);
this.cmbRequest.Name = "cmbRequest";
this.cmbRequest.Size = new System.Drawing.Size(179, 28);
@@ -503,7 +506,7 @@
//
// tbPumIDX
//
this.tbPumIDX.Location = new System.Drawing.Point(410, 102);
this.tbPumIDX.Location = new System.Drawing.Point(410, 88);
this.tbPumIDX.Margin = new System.Windows.Forms.Padding(4);
this.tbPumIDX.Name = "tbPumIDX";
this.tbPumIDX.ReadOnly = true;
@@ -515,7 +518,7 @@
//
// tbPumStock
//
this.tbPumStock.Location = new System.Drawing.Point(208, 175);
this.tbPumStock.Location = new System.Drawing.Point(208, 147);
this.tbPumStock.Margin = new System.Windows.Forms.Padding(4);
this.tbPumStock.Name = "tbPumStock";
this.tbPumStock.ReadOnly = true;
@@ -583,6 +586,7 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btSIDChk);
this.groupBox1.Controls.Add(this.tbStorage);
this.groupBox1.Controls.Add(label10);
this.groupBox1.Controls.Add(label9);
@@ -627,7 +631,7 @@
// tbStorage
//
this.tbStorage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.tbStorage.Location = new System.Drawing.Point(370, 283);
this.tbStorage.Location = new System.Drawing.Point(370, 206);
this.tbStorage.Margin = new System.Windows.Forms.Padding(4);
this.tbStorage.Name = "tbStorage";
this.tbStorage.Size = new System.Drawing.Size(104, 27);
@@ -636,7 +640,7 @@
// tbPumPriceD
//
this.tbPumPriceD.ForeColor = System.Drawing.Color.Blue;
this.tbPumPriceD.Location = new System.Drawing.Point(94, 211);
this.tbPumPriceD.Location = new System.Drawing.Point(94, 176);
this.tbPumPriceD.Margin = new System.Windows.Forms.Padding(4);
this.tbPumPriceD.Name = "tbPumPriceD";
this.tbPumPriceD.Size = new System.Drawing.Size(178, 27);
@@ -667,7 +671,7 @@
//
// button1
//
this.button1.Location = new System.Drawing.Point(9, 102);
this.button1.Location = new System.Drawing.Point(9, 88);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 27);
this.button1.TabIndex = 32;
@@ -744,6 +748,22 @@
//
this.purchaseTableAdapter.ClearBeforeFill = true;
//
// btSIDChk
//
this.btSIDChk.BackColor = System.Drawing.Color.Gray;
this.btSIDChk.Location = new System.Drawing.Point(279, 242);
this.btSIDChk.Name = "btSIDChk";
this.btSIDChk.Size = new System.Drawing.Size(196, 34);
this.btSIDChk.TabIndex = 41;
this.btSIDChk.Text = "SID 검사(SPR/NR)";
this.btSIDChk.UseVisualStyleBackColor = false;
this.btSIDChk.Click += new System.EventHandler(this.btSIDChk_Click);
//
// timer1
//
this.timer1.Interval = 250;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// fPurchaseCR_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
@@ -817,5 +837,7 @@
private System.Windows.Forms.TextBox tbStorage;
private System.Windows.Forms.TextBox tbInQty;
private System.Windows.Forms.TextBox tbInRemar;
private System.Windows.Forms.Button btSIDChk;
private System.Windows.Forms.Timer timer1;
}
}

View File

@@ -1,4 +1,6 @@
using System;
using FCOMMON;
using FEQ0000.Purchase;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -16,6 +18,8 @@ namespace FEQ0000
dsPurchase.EETGW_PurchaseCRRow dr;
public Boolean repeatAdd = false;
Boolean binit = false;
string sidchk = string.Empty;
public fPurchaseCR_Add(dsPurchase.EETGW_PurchaseCRRow dr_)
{
InitializeComponent();
@@ -278,6 +282,12 @@ namespace FEQ0000
//}
binit = true;
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Added)
sidchk = string.Empty;
else
sidchk = tbSID.Text;
timer1.Start();
}
@@ -443,6 +453,21 @@ namespace FEQ0000
return false;
}
if (string.IsNullOrWhiteSpace(this.sidchk))
{
FCOMMON.Util.MsgE("SID검사가 필요합니다.\n상단의 검사 버튼을 눌러 SPR/NR 재고 여부를 확인 하세요");
btSIDChk.Focus();
return false;
}
//시드검사한 자료와 현재 입력된 시드가 다르면 검사를 다시 하게 한다
if (this.tbSID.Text.Trim().Equals(this.sidchk) == false)
{
Util.MsgE("SID검사 자료가 변경되었습니다. 다시 검사 하세요");
sidchk = string.Empty;
return false;
}
//if (cbProcess.Text.Trim() == "")
//{
// FCOMMON.Util.MsgE("추가정보내의 [공정]을 선택하세요.");
@@ -914,5 +939,56 @@ namespace FEQ0000
{
}
private void timer1_Tick(object sender, EventArgs e)
{
if (tbSID.TextLength != 9)
{
if (btSIDChk.BackColor == Color.Gray)
btSIDChk.BackColor = Color.Tomato;
else
btSIDChk.BackColor = Color.Gray;
}
else
{
if (string.IsNullOrWhiteSpace(sidchk))
{
if (btSIDChk.BackColor == Color.Lime)
btSIDChk.BackColor = Color.White;
else
btSIDChk.BackColor = Color.Lime;
}
else btSIDChk.BackColor = SystemColors.Control;
}
}
private void btSIDChk_Click(object sender, EventArgs e)
{
var sid = tbSID.Text.Trim();
if (sid.Length != 9)
{
FCOMMON.Util.MsgE("검색 할 SID를 입력하세요");
tbSID.Focus();
tbSID.SelectAll();
return;
}
var dt = Amkor.RestfulService.SPMSIDSearch(sid);
if (dt.Complete)
{
var f = new fSIDListSelect(sid, dt.Result);
if (f.ShowDialog() == DialogResult.OK)
this.sidchk = sid;
else
{
FCOMMON.Util.MsgE("목록표시 창에서 '확인' 버튼을 눌러야 SID검색이 완료됩니다.");
}
}
else
{
FCOMMON.Util.MsgI("SPM/NR 에서 검색된 정보가 없습니다\n저장이 가능 합니다");
this.sidchk = sid;
}
}
}
}

View File

@@ -197,6 +197,9 @@
<metadata name="purchaseTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>313, 17</value>
</metadata>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>674, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>58</value>
</metadata>

View File

@@ -1,45 +1,45 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
//using System;
//using System.IO;
//using System.Runtime.InteropServices;
namespace SqlServerTypes
{
/// <summary>
/// Utility methods related to CLR Types for SQL Server
/// </summary>
public class Utilities
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr LoadLibrary(string libname);
//namespace SqlServerTypes
//{
// /// <summary>
// /// Utility methods related to CLR Types for SQL Server
// /// </summary>
// public class Utilities
// {
// [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
// private static extern IntPtr LoadLibrary(string libname);
/// <summary>
/// Loads the required native assemblies for the current architecture (x86 or x64)
/// </summary>
/// <param name="rootApplicationPath">
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
/// </param>
public static void LoadNativeAssemblies(string rootApplicationPath)
{
var nativeBinaryPath = IntPtr.Size > 4
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
// /// <summary>
// /// Loads the required native assemblies for the current architecture (x86 or x64)
// /// </summary>
// /// <param name="rootApplicationPath">
// /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
// /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
// /// </param>
// public static void LoadNativeAssemblies(string rootApplicationPath)
// {
// var nativeBinaryPath = IntPtr.Size > 4
// ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
// : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
}
// LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
// LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
// }
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
{
var path = Path.Combine(nativeBinaryPath, assemblyName);
var ptr = LoadLibrary(path);
if (ptr == IntPtr.Zero)
{
throw new Exception(string.Format(
"Error loading {0} (ErrorCode: {1})",
assemblyName,
Marshal.GetLastWin32Error()));
}
}
}
}
// private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
// {
// var path = Path.Combine(nativeBinaryPath, assemblyName);
// var ptr = LoadLibrary(path);
// if (ptr == IntPtr.Zero)
// {
// throw new Exception(string.Format(
// "Error loading {0} (ErrorCode: {1})",
// assemblyName,
// Marshal.GetLastWin32Error()));
// }
// }
// }
//}

View File

@@ -88,7 +88,7 @@ namespace FEQ0000
bs.Filter = filter;
tbFind.BackColor = Color.Lime;
}
catch (Exception ex)
catch
{
tbFind.BackColor = Color.Tomato;
}
@@ -129,7 +129,7 @@ namespace FEQ0000
bs2.Filter = filter;
tbFind2.BackColor = Color.Lime;
}
catch (Exception ex)
catch
{
tbFind2.BackColor = Color.Tomato;
}

View File

@@ -112,18 +112,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="fHappyNarae.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="fHappyNarae.Designer.cs">
<DependentUpon>fHappyNarae.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SqlServerTypes\Loader.cs" />
<EmbeddedResource Include="fHappyNarae.resx">
<DependentUpon>fHappyNarae.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>

View File

@@ -1,138 +0,0 @@

namespace FOW0000
{
partial class fHappyNarae
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fHappyNarae));
this.wb1 = new CefSharp.WinForms.ChromiumWebBrowser();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.sburl = new System.Windows.Forms.ToolStripStatusLabel();
this.sbstat = new System.Windows.Forms.ToolStripStatusLabel();
this.toolStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.SuspendLayout();
//
// wb1
//
this.wb1.ActivateBrowserOnCreation = false;
this.wb1.Dock = System.Windows.Forms.DockStyle.Fill;
this.wb1.Location = new System.Drawing.Point(0, 25);
this.wb1.Name = "wb1";
this.wb1.Size = new System.Drawing.Size(925, 621);
this.wb1.TabIndex = 0;
//
// toolStrip1
//
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1,
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(925, 25);
this.toolStrip1.TabIndex = 1;
this.toolStrip1.Text = "toolStrip1";
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.sburl,
this.sbstat});
this.statusStrip1.Location = new System.Drawing.Point(0, 646);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(925, 22);
this.statusStrip1.TabIndex = 2;
this.statusStrip1.Text = "statusStrip1";
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(66, 22);
this.toolStripButton1.Text = "Refresh";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// toolStripButton2
//
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(123, 22);
this.toolStripButton2.Text = "신규품목신청현황";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// sburl
//
this.sburl.Name = "sburl";
this.sburl.Size = new System.Drawing.Size(121, 17);
this.sburl.Text = "toolStripStatusLabel1";
//
// sbstat
//
this.sbstat.Name = "sbstat";
this.sbstat.Size = new System.Drawing.Size(121, 17);
this.sbstat.Text = "toolStripStatusLabel1";
//
// fHappyNarae
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(925, 668);
this.Controls.Add(this.wb1);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.toolStrip1);
this.Name = "fHappyNarae";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "행복나래 A-BSJUNG / Amkor1973 ";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.fHappyNarae_Load);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private CefSharp.WinForms.ChromiumWebBrowser wb1;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ToolStripStatusLabel sburl;
private System.Windows.Forms.ToolStripStatusLabel sbstat;
}
}

View File

@@ -1,91 +0,0 @@
using CefSharp;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FOW0000
{
public partial class fHappyNarae : Form
{
public fHappyNarae()
{
InitializeComponent();
this.wb1.FrameLoadEnd += Wb1_FrameLoadEnd;
this.wb1.AddressChanged += Wb1_AddressChanged;
this.wb1.StatusMessage += Wb1_StatusMessage;
}
private void Wb1_StatusMessage(object sender, StatusMessageEventArgs e)
{
sbstat.Text = e.Value;
}
private void Wb1_AddressChanged(object sender, AddressChangedEventArgs e)
{
sburl.Text = e.Address;
}
private void Wb1_FrameLoadEnd(object sender, FrameLoadEndEventArgs e)
{
Console.WriteLine("Frame End : " + e.Url); ;
//if (e.Url.Contains("logfail.jsp?LoginDNS=null"))
//{
// var frame = this.wb1.GetMainFrame();
// var visitor = new SourceVisitor((text) =>
// {
// BeginInvoke(new Action(() =>
// {
// MessageBox.Show(text.Substring(0, 100));
// }));
// });
// frame.GetSource(visitor);
//}
}
//public class SourceVisitor : IStringVisitor
//{
// private readonly Action<string> _callback;
// public SourceVisitor(Action<string> callback)
// {
// _callback = callback;
// }
// public override void Visit(string value)
// {
// _callback(value);
// }
// public override Dispose()
// {
// }
//}
private void fHappyNarae_Load(object sender, EventArgs e)
{
wb1.Load("https://www.happynarae.com/fullsize/frist_web/logfail.jsp?LoginDNS=null");
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
wb1.Load("https://www.happynarae.com/fullsize/frist_web/logfail.jsp?LoginDNS=null");
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
var script = "f_sub_menu_click(&quot;/havis/havis_custom/202auth/order/cust_order_05.jsp&quot;,&quot;/havis/fullsize/help_desk/202auth/main/cust_order_05.html&quot;,&quot;3&quot;);";
script = script.Replace("&quot;", "\"");
var command = string.Format(script);
this.wb1.GetMainFrame().ExecuteJavaScriptAsync(command);
}
}
}

View File

@@ -119,7 +119,7 @@ namespace FPJ0000
{
this.richTextBoxEx1.Rtf = dr.2;
}
catch (Exception ex)
catch
{
this.richTextBoxEx1.Text = dr.;
}
@@ -136,7 +136,7 @@ namespace FPJ0000
{
this.richTextBoxEx2.Rtf = dr.2;
}
catch (Exception ex)
catch
{
this.richTextBoxEx2.Text = dr.;
}

View File

@@ -68,7 +68,7 @@ namespace FPJ0000.JobReport_
//일반사용자 목록 가져온다
IQueryable<IGrouping<String, vJobReportForUser>> userlist;
//IQueryable<IGrouping<String, vJobReportForUser>> userlist;
//공정구분없이 전체사용자를 가져온다
foreach (System.Data.DataRow item in userList.Rows)

View File

@@ -257,7 +257,7 @@ namespace FPJ0000.JobReport_
var processName = grp.Max(t => t.userprocess);
//string[] columns = new string[dv1.ColumnCount];
var row = 0;
//var row = 0;
//columns[row++] = grp.Max(t => t.idx).ToString();
//columns[row++] = prjname;
//columns[row++] = sdate;
@@ -379,7 +379,7 @@ namespace FPJ0000.JobReport_
var status = prc.Max(t => t.status);
//string[] columns = new string[dv1.ColumnCount];
var row = 0;
//var row = 0;
//columns[row++] = grp.Max(t => t.idx).ToString();
//columns[row++] = prjname;
//columns[row++] = sdate;

View File

@@ -13,7 +13,7 @@ namespace FPJ0000.OtConfirm
public partial class fOTConfirmOK : Form
{
dsPRJ.JobReportRow[] dr;
Boolean binit = false;
//Boolean binit = false;
public fOTConfirmOK(dsPRJ.JobReportRow[] dr_)
{
@@ -28,7 +28,7 @@ namespace FPJ0000.OtConfirm
{
curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyreq));
button1.Enabled = curLevel >= 5;
binit = true;
//binit = true;
}
private void button1_Click(object sender, EventArgs e)

View File

@@ -205,7 +205,7 @@ namespace FPJ0000
var PO대기 = 0; //PR이 체크되어있으나 PO가 체크안된데이터
var = 0; // PO가 체크되어있으나 입고수량이 구매수량보다 적은 경우
var = 0; // 입고수량 >= 구매수량
var = 0;
//var 입력오류 = 0;
var project = int.Parse(tbIdx.Text);
@@ -217,8 +217,8 @@ namespace FPJ0000
{
var v_supply = string.Empty;
var v_sid = string.Empty;
Boolean bPR = false;
Boolean bPO = false;
//Boolean bPR = false;
//Boolean bPO = false;
var row = this.fpSpread1.ActiveSheet.Rows[i];
// var value_buy = this.fpSpread1.ActiveSheet.GetValue(i, col_buy);

View File

@@ -288,11 +288,11 @@ namespace FPJ0000
this.dr.CMP_Description = rtDesc.Rtf;
this.dr.CMP_Background = rtBack.Rtf;
var s = "dbo.getUserName2(championid,usermanager) as name_champion," +
"dbo.getUserName2(designid,usermain) as name_design," +
"dbo.getUserName2(assemblyid,userAssembly) as name_assembly," +
"dbo.getUserName2(epanelid,userhw2) as name_epanel," +
"dbo.getUserName2(softwareid,usersub) as name_software";
// var s = "dbo.getUserName2(championid,usermanager) as name_champion," +
//"dbo.getUserName2(designid,usermain) as name_design," +
//"dbo.getUserName2(assemblyid,userAssembly) as name_assembly," +
//"dbo.getUserName2(epanelid,userhw2) as name_epanel," +
//"dbo.getUserName2(softwareid,usersub) as name_software";
//if (cmbChampion.SelectedIndex < 1)
//{

View File

@@ -1,45 +1,45 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
//using System;
//using System.IO;
//using System.Runtime.InteropServices;
namespace SqlServerTypes
{
/// <summary>
/// Utility methods related to CLR Types for SQL Server
/// </summary>
public class Utilities
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr LoadLibrary(string libname);
//namespace SqlServerTypes
//{
// /// <summary>
// /// Utility methods related to CLR Types for SQL Server
// /// </summary>
// public class Utilities
// {
// [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
// private static extern IntPtr LoadLibrary(string libname);
/// <summary>
/// Loads the required native assemblies for the current architecture (x86 or x64)
/// </summary>
/// <param name="rootApplicationPath">
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
/// </param>
public static void LoadNativeAssemblies(string rootApplicationPath)
{
var nativeBinaryPath = IntPtr.Size > 4
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
// /// <summary>
// /// Loads the required native assemblies for the current architecture (x86 or x64)
// /// </summary>
// /// <param name="rootApplicationPath">
// /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
// /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
// /// </param>
// public static void LoadNativeAssemblies(string rootApplicationPath)
// {
// var nativeBinaryPath = IntPtr.Size > 4
// ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
// : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
}
// LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
// LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
// }
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
{
var path = Path.Combine(nativeBinaryPath, assemblyName);
var ptr = LoadLibrary(path);
if (ptr == IntPtr.Zero)
{
throw new Exception(string.Format(
"Error loading {0} (ErrorCode: {1})",
assemblyName,
Marshal.GetLastWin32Error()));
}
}
}
}
// private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
// {
// var path = Path.Combine(nativeBinaryPath, assemblyName);
// var ptr = LoadLibrary(path);
// if (ptr == IntPtr.Zero)
// {
// throw new Exception(string.Format(
// "Error loading {0} (ErrorCode: {1})",
// assemblyName,
// Marshal.GetLastWin32Error()));
// }
// }
// }
//}

View File

@@ -1,45 +1,45 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
//using System;
//using System.IO;
//using System.Runtime.InteropServices;
namespace SqlServerTypes
{
/// <summary>
/// Utility methods related to CLR Types for SQL Server
/// </summary>
public class Utilities
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr LoadLibrary(string libname);
//namespace SqlServerTypes
//{
// /// <summary>
// /// Utility methods related to CLR Types for SQL Server
// /// </summary>
// public class Utilities
// {
// [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
// private static extern IntPtr LoadLibrary(string libname);
/// <summary>
/// Loads the required native assemblies for the current architecture (x86 or x64)
/// </summary>
/// <param name="rootApplicationPath">
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
/// </param>
public static void LoadNativeAssemblies(string rootApplicationPath)
{
var nativeBinaryPath = IntPtr.Size > 4
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
// /// <summary>
// /// Loads the required native assemblies for the current architecture (x86 or x64)
// /// </summary>
// /// <param name="rootApplicationPath">
// /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
// /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
// /// </param>
// public static void LoadNativeAssemblies(string rootApplicationPath)
// {
// var nativeBinaryPath = IntPtr.Size > 4
// ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
// : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
}
// LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
// LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
// }
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
{
var path = Path.Combine(nativeBinaryPath, assemblyName);
var ptr = LoadLibrary(path);
if (ptr == IntPtr.Zero)
{
throw new Exception(string.Format(
"Error loading {0} (ErrorCode: {1})",
assemblyName,
Marshal.GetLastWin32Error()));
}
}
}
}
// private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
// {
// var path = Path.Combine(nativeBinaryPath, assemblyName);
// var ptr = LoadLibrary(path);
// if (ptr == IntPtr.Zero)
// {
// throw new Exception(string.Format(
// "Error loading {0} (ErrorCode: {1})",
// assemblyName,
// Marshal.GetLastWin32Error()));
// }
// }
// }
//}