qrmode 에서 wms rcv 태그 인식되게 함
This commit is contained in:
@@ -1,109 +1,109 @@
|
||||
# CLAUDE.md
|
||||
|
||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||
이 파일은 Claude Code (claude.ai/code)가 이 저장소에서 코드 작업을 할 때 지침을 제공합니다.
|
||||
|
||||
## Project Overview
|
||||
## 프로젝트 개요
|
||||
|
||||
This is an industrial automation system for ATV (Automatic Test Vehicle) reel label attachment, modification, and transfer operations. The system is built in C# (.NET Framework 4.8) using Windows Forms and integrates with various hardware components including motion controllers, barcode readers, printers, and PLCs.
|
||||
이것은 ATV (Automatic Test Vehicle) 릴 라벨 부착, 수정 및 전송 작업을 위한 산업 자동화 시스템입니다. 시스템은 Windows Forms를 사용하여 C# (.NET Framework 4.8)로 구축되었으며, 모션 컨트롤러, 바코드 리더, 프린터 및 PLC를 포함한 다양한 하드웨어 구성 요소와 통합됩니다.
|
||||
|
||||
## Build Commands
|
||||
## 빌드 명령어
|
||||
|
||||
```bash
|
||||
# Build the main solution
|
||||
# 메인 솔루션 빌드
|
||||
msbuild "STDLabelAttach(ATV).sln" /p:Configuration=Debug /p:Platform="Any CPU"
|
||||
|
||||
# Build for release
|
||||
# 릴리즈 빌드
|
||||
msbuild "STDLabelAttach(ATV).sln" /p:Configuration=Release /p:Platform="Any CPU"
|
||||
|
||||
# Build specific project (example)
|
||||
# 특정 프로젝트 빌드 (예시)
|
||||
msbuild "Project\STDLabelAttach(ATV).csproj" /p:Configuration=Debug
|
||||
|
||||
# Build for x86 platform (common configuration)
|
||||
# x86 플랫폼 빌드 (일반적인 구성)
|
||||
msbuild "STDLabelAttach(ATV).sln" /p:Configuration=Debug /p:Platform=x86
|
||||
```
|
||||
|
||||
## Architecture Overview
|
||||
## 아키텍처 개요
|
||||
|
||||
### Core Components
|
||||
### 핵심 구성 요소
|
||||
|
||||
- **Project/**: Main application with UI and business logic
|
||||
- Contains the primary Windows Forms application (`fMain.cs`)
|
||||
- Implements state machine logic in `RunCode/StateMachine/` and `RunCode/Step/`
|
||||
- Device interfaces in `Device/` folder (KeyenceBarcode, SATOPrinter, TowerLamp, etc.)
|
||||
- Dialog forms for user interactions
|
||||
- **Project/**: UI 및 비즈니스 로직이 포함된 메인 애플리케이션
|
||||
- 기본 Windows Forms 애플리케이션 포함 (`fMain.cs`)
|
||||
- `RunCode/StateMachine/` 및 `RunCode/Step/`에서 상태 머신 로직 구현
|
||||
- `Device/` 폴더의 디바이스 인터페이스 (KeyenceBarcode, SATOPrinter, TowerLamp 등)
|
||||
- 사용자 상호작용을 위한 다이얼로그 폼
|
||||
|
||||
- **Project_form2/**: Secondary receiver application for data handling
|
||||
- Handles SID (Serial ID) conversion and processing
|
||||
- Customer information management
|
||||
- Import/export functionality
|
||||
- **Project_form2/**: 데이터 처리를 위한 보조 수신기 애플리케이션
|
||||
- SID (Serial ID) 변환 및 처리 담당
|
||||
- 고객 정보 관리
|
||||
- 가져오기/내보내기 기능
|
||||
|
||||
- **Sub/**: Shared libraries and utilities
|
||||
- `arCtl/`: Custom UI controls and components
|
||||
- `arAzinAxt/`: Motion controller interface (AzinAxt hardware)
|
||||
- `arRS232/`: Serial communication library
|
||||
- `AmkorRestfulService/`: RESTful API service for external integration
|
||||
- `CommSM/`: State machine communication library
|
||||
- `CommUtil/`: Common utilities and dialogs
|
||||
- **Sub/**: 공유 라이브러리 및 유틸리티
|
||||
- `arCtl/`: 사용자 정의 UI 컨트롤 및 구성 요소
|
||||
- `arAzinAxt/`: 모션 컨트롤러 인터페이스 (AzinAxt 하드웨어)
|
||||
- `arRS232/`: 시리얼 통신 라이브러리
|
||||
- `AmkorRestfulService/`: 외부 통합을 위한 RESTful API 서비스
|
||||
- `CommSM/`: 상태 머신 통신 라이브러리
|
||||
- `CommUtil/`: 공통 유틸리티 및 다이얼로그
|
||||
|
||||
### Key Technologies
|
||||
### 주요 기술
|
||||
|
||||
- **Hardware Integration**: Motion controllers (AzinAxt), barcode readers (Keyence), SATO printers
|
||||
- **Database**: Entity Framework 6.2.0 with SQL Server
|
||||
- **Communication**: Serial (RS232), RESTful APIs, WebSocket
|
||||
- **Vision**: EmguCV for image processing
|
||||
- **Protocols**: Custom state machine implementation for equipment control
|
||||
- **하드웨어 통합**: 모션 컨트롤러 (AzinAxt), 바코드 리더 (Keyence), SATO 프린터
|
||||
- **데이터베이스**: SQL Server를 사용한 Entity Framework 6.2.0
|
||||
- **통신**: 시리얼 (RS232), RESTful API, WebSocket
|
||||
- **비전**: 이미지 처리를 위한 EmguCV
|
||||
- **프로토콜**: 장비 제어를 위한 사용자 정의 상태 머신 구현
|
||||
|
||||
### State Machine Architecture
|
||||
### 상태 머신 아키텍처
|
||||
|
||||
The application uses a comprehensive state machine pattern:
|
||||
- `RunCode/Step/`: Main operational steps (INIT, IDLE, RUN, HOME, FINISH)
|
||||
- `RunCode/StateMachine/`: Core state machine logic and event handling
|
||||
- `RunCode/RunSequence/`: Specific operation sequences (barcode reading, printing, picking)
|
||||
애플리케이션은 포괄적인 상태 머신 패턴을 사용합니다:
|
||||
- `RunCode/Step/`: 주요 작업 단계 (INIT, IDLE, RUN, HOME, FINISH)
|
||||
- `RunCode/StateMachine/`: 핵심 상태 머신 로직 및 이벤트 처리
|
||||
- `RunCode/RunSequence/`: 특정 작업 시퀀스 (바코드 읽기, 인쇄, 피킹)
|
||||
|
||||
### Device Management
|
||||
### 디바이스 관리
|
||||
|
||||
- Motion control through `arAzinAxt` library with position validation
|
||||
- Barcode reading with Keyence scanner integration
|
||||
- Label printing via SATO printer API
|
||||
- PLC communication for safety and I/O control
|
||||
- 위치 검증이 포함된 `arAzinAxt` 라이브러리를 통한 모션 제어
|
||||
- Keyence 스캐너 통합을 통한 바코드 읽기
|
||||
- SATO 프린터 API를 통한 라벨 인쇄
|
||||
- 안전 및 I/O 제어를 위한 PLC 통신
|
||||
|
||||
## Development Patterns
|
||||
## 개발 패턴
|
||||
|
||||
### Configuration Management
|
||||
- Settings stored in `Setting/` classes with UI forms for modification
|
||||
- System parameters in `System_Setting.cs` and `System_MotParameter.cs`
|
||||
- User-specific settings in `UserSetting.cs`
|
||||
### 구성 관리
|
||||
- 수정을 위한 UI 폼이 포함된 `Setting/` 클래스에 설정 저장
|
||||
- `System_Setting.cs` 및 `System_MotParameter.cs`의 시스템 매개변수
|
||||
- `UserSetting.cs`의 사용자별 설정
|
||||
|
||||
### Data Management
|
||||
- Entity Framework models in `Model1.edmx`
|
||||
- Database managers in `Manager/` folder for different data types
|
||||
- Component classes for reel information, results, and SID conversion
|
||||
### 데이터 관리
|
||||
- `Model1.edmx`의 Entity Framework 모델
|
||||
- 다양한 데이터 유형을 위한 `Manager/` 폴더의 데이터베이스 관리자
|
||||
- 릴 정보, 결과 및 SID 변환을 위한 구성 요소 클래스
|
||||
|
||||
### UI Patterns
|
||||
- Custom controls in `UIControl/` folder
|
||||
- Consistent dialog patterns in `Dialog/` folder
|
||||
- Resource management with embedded images and icons
|
||||
### UI 패턴
|
||||
- `UIControl/` 폴더의 사용자 정의 컨트롤
|
||||
- `Dialog/` 폴더의 일관된 다이얼로그 패턴
|
||||
- 포함된 이미지 및 아이콘을 사용한 리소스 관리
|
||||
|
||||
## Important Notes
|
||||
## 중요 사항
|
||||
|
||||
- The system requires specific hardware drivers (AzinAxt motion controller, Keyence SDK, SATO printer drivers)
|
||||
- Database connection strings are configured in `app.config`
|
||||
- Motion parameters are stored in `.swpp` and `.usrs` files in `MotParam/`
|
||||
- The application supports both Debug and Release configurations with different output paths
|
||||
- Platform target is typically x64 for hardware compatibility
|
||||
- 시스템에는 특정 하드웨어 드라이버가 필요합니다 (AzinAxt 모션 컨트롤러, Keyence SDK, SATO 프린터 드라이버)
|
||||
- 데이터베이스 연결 문자열은 `app.config`에서 구성됩니다
|
||||
- 모션 매개변수는 `MotParam/`의 `.swpp` 및 `.usrs` 파일에 저장됩니다
|
||||
- 애플리케이션은 서로 다른 출력 경로를 가진 Debug 및 Release 구성을 모두 지원합니다
|
||||
- 플랫폼 대상은 일반적으로 하드웨어 호환성을 위해 x64입니다
|
||||
|
||||
## Testing
|
||||
## 테스트
|
||||
|
||||
No formal unit test projects are present. Testing is typically done through:
|
||||
- Manual operation using the main application
|
||||
- Hardware-in-the-loop testing with actual equipment
|
||||
- Debug dialogs and monitoring forms in the application
|
||||
공식적인 단위 테스트 프로젝트는 없습니다. 테스트는 일반적으로 다음을 통해 수행됩니다:
|
||||
- 메인 애플리케이션을 사용한 수동 작업
|
||||
- 실제 장비를 사용한 하드웨어 인 더 루프 테스트
|
||||
- 애플리케이션의 디버그 다이얼로그 및 모니터링 폼
|
||||
|
||||
## Dependencies
|
||||
## 종속성
|
||||
|
||||
Key external dependencies include:
|
||||
주요 외부 종속성은 다음과 같습니다:
|
||||
- Entity Framework 6.2.0
|
||||
- Newtonsoft.Json 13.0.3
|
||||
- EmguCV 4.5.1
|
||||
- Microsoft OWIN stack for web services
|
||||
- Various hardware-specific SDKs and drivers
|
||||
- 웹 서비스를 위한 Microsoft OWIN 스택
|
||||
- 다양한 하드웨어별 SDK 및 드라이버
|
||||
@@ -34,6 +34,10 @@
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="arCommUtil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DLL\arCommUtil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
@@ -201,10 +205,6 @@
|
||||
<Project>{14e8c9a5-013e-49ba-b435-efefc77dd623}</Project>
|
||||
<Name>CommData</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\CommUtil\arCommUtil.csproj">
|
||||
<Project>{14e8c9a5-013e-49ba-b435-ffffff7dd623}</Project>
|
||||
<Name>arCommUtil</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\Setting\Setting.csproj">
|
||||
<Project>{48654765-548d-42ed-9238-d65eb3bc99ad}</Project>
|
||||
<Name>Setting</Name>
|
||||
|
||||
BIN
Handler/DLL/arCommUtil.dll
Normal file
BIN
Handler/DLL/arCommUtil.dll
Normal file
Binary file not shown.
BIN
Handler/DLL/arControl.Net4.dll
Normal file
BIN
Handler/DLL/arControl.Net4.dll
Normal file
Binary file not shown.
@@ -1,187 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public static class AmkorReelID
|
||||
{
|
||||
/// <summary>
|
||||
/// 앰코 ID형태인지 확인합니다.
|
||||
/// </summary>
|
||||
/// <param name="rid"></param>
|
||||
/// <param name="yy"></param>
|
||||
/// <param name="m"></param>
|
||||
/// <returns></returns>
|
||||
public static Boolean IsValidID(string rid, out string yy, out string m)
|
||||
{
|
||||
yy = string.Empty;
|
||||
m = string.Empty;
|
||||
if (rid.Length != 15) return false;
|
||||
try
|
||||
{
|
||||
var custCost = rid.Substring(2, 4);
|
||||
var site = "K" + rid.Substring(6, 1);
|
||||
var mc = rid.Substring(7, 1);
|
||||
yy = rid.Substring(8, 2);
|
||||
m = rid.Substring(10, 1);
|
||||
var sn = rid.Substring(11, 4);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static string MakeReelID(string customercode, string ym)
|
||||
{
|
||||
if (customercode.Length != 4)
|
||||
{
|
||||
return String.Empty;//
|
||||
//throw new Exception("Customer 코드는 4자리 입니다");
|
||||
}
|
||||
if (ym.Length != 3)
|
||||
{
|
||||
return string.Empty;//
|
||||
//throw new Exception("Ym 코드는 3자리 입니다");
|
||||
}
|
||||
var rid = "RC{CUST}{DEVLOC}{DEVID}{YM}";
|
||||
rid = rid.Replace("{DEVLOC}", AR.SETTING.Data.ReelIdDeviceLoc);
|
||||
rid = rid.Replace("{DEVID}", AR.SETTING.Data.ReelIdDeviceID);
|
||||
rid = rid.Replace("{CUST}", customercode);
|
||||
rid = rid.Replace("{YM}", ym);
|
||||
rid += GetNextSNbyYM(ym);
|
||||
return rid;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 입력된 월 기준으로 시리얼 번호를 생성합니다
|
||||
/// </summary>
|
||||
/// <param name="ym">21년 1월의 경우 211, 10월의 경우 21A 식으로 표현</param>
|
||||
/// <param name="removeR">1,2번 위치에 R기호를 제거 할 것인가?</param>
|
||||
/// <returns></returns>
|
||||
public static string GetNextSNbyYM(string ym)
|
||||
{
|
||||
//서버에서 자료를 조회해서 처리한다.
|
||||
var db = new EEEntities();
|
||||
var dr = db.Component_Reel_Result.Where(t => t.PDATE == ym && t.PDATE.Contains("R") == false).OrderByDescending(t => t.RSN).FirstOrDefault();
|
||||
if (dr == null) return "0001"; //처음쓰는 자료인다.
|
||||
var curSN = dr.RSN;
|
||||
return GetNextSNbySN(curSN);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 해당월의 리턴릴의 번호를 생성한다
|
||||
/// </summary>
|
||||
/// <param name="ym"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetNextSNbyYM_Return(string ym)
|
||||
{
|
||||
//서버에서 자료를 조회해서 처리한다.
|
||||
var db = new EEEntities();
|
||||
var dr = db.Component_Reel_Result.Where(t => t.PDATE == ym && t.PDATE.StartsWith("R")).OrderByDescending(t => t.RSN).FirstOrDefault();
|
||||
if (dr == null) return "R001"; //처음쓰는 자료인다.
|
||||
var curSN = dr.RSN;
|
||||
return GetNextSNbySN_Return(curSN);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 중복릴의 다은번호를 생성한다
|
||||
/// </summary>
|
||||
/// <param name="ym"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetNextSNbyYM_Dup(string ym)
|
||||
{
|
||||
//서버에서 자료를 조회해서 처리한다.
|
||||
var db = new EEEntities();
|
||||
var dr = db.Component_Reel_Result.Where(t => t.PDATE == ym && t.PDATE.StartsWith("0R")).OrderByDescending(t => t.RSN).FirstOrDefault();
|
||||
if (dr == null) return "0R01"; //처음쓰는 자료인다.
|
||||
var curSN = dr.RSN;
|
||||
return GetNextSNbySN_Dup(curSN);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 입력한 시리얼 번호 이후의 번호를 생성합니다(0000~ZZZZ) 까지의 데이터를 가지며 2번쨰짜리까지는 R을 사용하지 못한다
|
||||
/// </summary>
|
||||
/// <param name="sn">기준 시리얼번호 4자리</param>
|
||||
/// <param name="removeR"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetNextSNbySN(string sn)
|
||||
{
|
||||
//서버에서 자료를 조회해서 처리한다.
|
||||
string curSN = sn;
|
||||
if (sn.Length != 4) throw new Exception("s/n length 4");
|
||||
|
||||
var buffer = curSN.ToCharArray();
|
||||
for (int i = buffer.Length; i > 0; i--)
|
||||
{
|
||||
if (i <= 2)
|
||||
if (buffer[i - 1] == 'Q') buffer[i - 1] = 'R';
|
||||
|
||||
if (buffer[i - 1] == '9') { buffer[i - 1] = 'A'; break; }
|
||||
else if (buffer[i - 1] == 'Z') buffer[i - 1] = '0';
|
||||
else { buffer[i - 1] = (char)((byte)buffer[i - 1] + 1); break; }
|
||||
}
|
||||
return string.Join("", buffer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 리턴릴의 다음 번호 생성 R로시작하며 000~ZZZ 영역을 가진다(제외문자 없음)
|
||||
/// </summary>
|
||||
/// <param name="sn"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetNextSNbySN_Return(string sn)
|
||||
{
|
||||
//서버에서 자료를 조회해서 처리한다.
|
||||
string curSN = sn;
|
||||
if (sn.Length != 4) throw new Exception("s/n length 4");
|
||||
|
||||
var buffer = curSN.ToCharArray();
|
||||
for (int i = buffer.Length; i > 1; i--)
|
||||
{
|
||||
//if (i <= 2) //1,2번 영역에는 R값이 들어가면 안된다.
|
||||
//{
|
||||
// if (buffer[i - 1] == 'Q') buffer[i - 1] = 'R';
|
||||
//}
|
||||
|
||||
if (buffer[i - 1] == '9') { buffer[i - 1] = 'A'; break; }
|
||||
else if (buffer[i - 1] == 'Z') buffer[i - 1] = '0';
|
||||
else { buffer[i - 1] = (char)((byte)buffer[i - 1] + 1); break; }
|
||||
}
|
||||
buffer[0] = 'R';
|
||||
return string.Join("", buffer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 중복릴의 다음 번호 생성(0R로 시작하며 00~ZZ의 영역을 가진다)
|
||||
/// </summary>
|
||||
/// <param name="sn"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetNextSNbySN_Dup(string sn)
|
||||
{
|
||||
//서버에서 자료를 조회해서 처리한다.
|
||||
string curSN = sn;
|
||||
if (sn.Length != 4) throw new Exception("s/n length 4");
|
||||
|
||||
var buffer = curSN.ToCharArray();
|
||||
for (int i = buffer.Length; i > 2; i--)
|
||||
{
|
||||
//if (i <= 2) //1,2번 영역에는 R값이 들어가면 안된다.
|
||||
//{
|
||||
// if (buffer[i - 1] == 'Q') buffer[i - 1] = 'R';
|
||||
//}
|
||||
|
||||
if (buffer[i - 1] == '9') { buffer[i - 1] = 'A'; break; }
|
||||
else if (buffer[i - 1] == 'Z') buffer[i - 1] = '0';
|
||||
else { buffer[i - 1] = (char)((byte)buffer[i - 1] + 1); break; }
|
||||
}
|
||||
buffer[0] = '0';
|
||||
buffer[1] = 'R';
|
||||
return string.Join("", buffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@ using System.Net;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AR;
|
||||
|
||||
/// <summary>
|
||||
/// ============================================================================
|
||||
@@ -223,7 +224,9 @@ public static partial class EEMStatus
|
||||
}
|
||||
else if (status == eSMStep.PAUSE) //일시중지도 오류코드가 포함된다,
|
||||
{
|
||||
if (PUB.Result.ResultErrorCode == eECode.USER_STEP || PUB.Result.ResultErrorCode == eECode.USER_STOP || PUB.Result.ResultErrorCode.ToString().StartsWith("MESSAGE"))
|
||||
if (PUB.Result.ResultErrorCode == Project.eECode.USER_STEP ||
|
||||
PUB.Result.ResultErrorCode == Project.eECode.USER_STOP ||
|
||||
PUB.Result.ResultErrorCode.ToString().StartsWith("MESSAGE"))
|
||||
{
|
||||
//사용자에의해 멈추는 것은 오류코드를 넣지 않는다.
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Text;
|
||||
using System.Drawing;
|
||||
using System.ComponentModel;
|
||||
using System.Web.Services.Protocols;
|
||||
using AR;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Drawing;
|
||||
using System.Collections.Concurrent;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
using AR;
|
||||
|
||||
namespace Project.Class
|
||||
{
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 이 코드는 템플릿에서 생성되었습니다.
|
||||
//
|
||||
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
|
||||
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Project
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Component_Reel_Info
|
||||
{
|
||||
public int idx { get; set; }
|
||||
public string CUST { get; set; }
|
||||
public string AMKSID { get; set; }
|
||||
public string CUST_PARTNO { get; set; }
|
||||
public string MFG_PARTNO { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 이 코드는 템플릿에서 생성되었습니다.
|
||||
//
|
||||
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
|
||||
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Project
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Component_Reel_Result
|
||||
{
|
||||
public int idx { get; set; }
|
||||
public System.DateTime STIME { get; set; }
|
||||
public Nullable<System.DateTime> ETIME { get; set; }
|
||||
public Nullable<System.DateTime> PTIME { get; set; }
|
||||
public string PDATE { get; set; }
|
||||
public string JTYPE { get; set; }
|
||||
public string JGUID { get; set; }
|
||||
public string SID { get; set; }
|
||||
public string SID0 { get; set; }
|
||||
public string RID { get; set; }
|
||||
public string RID0 { get; set; }
|
||||
public string RSN { get; set; }
|
||||
public string QR { get; set; }
|
||||
public string ZPL { get; set; }
|
||||
public string POS { get; set; }
|
||||
public string LOC { get; set; }
|
||||
public Nullable<double> ANGLE { get; set; }
|
||||
public Nullable<int> QTY { get; set; }
|
||||
public Nullable<int> QTY0 { get; set; }
|
||||
public string VLOT { get; set; }
|
||||
public string VNAME { get; set; }
|
||||
public string MFGDATE { get; set; }
|
||||
public Nullable<bool> PRNATTACH { get; set; }
|
||||
public Nullable<bool> PRNVALID { get; set; }
|
||||
public string REMARK { get; set; }
|
||||
public System.DateTime wdate { get; set; }
|
||||
public string MC { get; set; }
|
||||
public Nullable<System.Guid> GUID { get; set; }
|
||||
public Nullable<System.DateTime> ATIME { get; set; }
|
||||
public Nullable<int> OPT { get; set; }
|
||||
public Nullable<int> OPT_DATA { get; set; }
|
||||
public string PARTNO { get; set; }
|
||||
public string CUSTCODE { get; set; }
|
||||
public string BATCH { get; set; }
|
||||
public Nullable<int> qtymax { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 이 코드는 템플릿에서 생성되었습니다.
|
||||
//
|
||||
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
|
||||
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Project
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class Component_Reel_SID_Convert
|
||||
{
|
||||
public int idx { get; set; }
|
||||
public Nullable<bool> Chk { get; set; }
|
||||
public string SIDFrom { get; set; }
|
||||
public string SIDTo { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public Nullable<System.DateTime> wdate { get; set; }
|
||||
public string MC { get; set; }
|
||||
}
|
||||
}
|
||||
408
Handler/Project/DSList.Designer.cs
generated
408
Handler/Project/DSList.Designer.cs
generated
@@ -421,13 +421,21 @@ namespace Project {
|
||||
|
||||
private global::System.Data.DataColumn columncode;
|
||||
|
||||
private global::System.Data.DataColumn columnpre;
|
||||
private global::System.Data.DataColumn columnidx;
|
||||
|
||||
private global::System.Data.DataColumn columnpos;
|
||||
private global::System.Data.DataColumn columnMatchEx;
|
||||
|
||||
private global::System.Data.DataColumn columnlen;
|
||||
private global::System.Data.DataColumn columnMatchIndex;
|
||||
|
||||
private global::System.Data.DataColumn columnexp;
|
||||
private global::System.Data.DataColumn columnGroupIndex;
|
||||
|
||||
private global::System.Data.DataColumn columnReplaceEx;
|
||||
|
||||
private global::System.Data.DataColumn columnReplaceStr;
|
||||
|
||||
private global::System.Data.DataColumn columnvarName;
|
||||
|
||||
private global::System.Data.DataColumn columnRemark;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
@@ -472,33 +480,65 @@ namespace Project {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn preColumn {
|
||||
public global::System.Data.DataColumn idxColumn {
|
||||
get {
|
||||
return this.columnpre;
|
||||
return this.columnidx;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn posColumn {
|
||||
public global::System.Data.DataColumn MatchExColumn {
|
||||
get {
|
||||
return this.columnpos;
|
||||
return this.columnMatchEx;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn lenColumn {
|
||||
public global::System.Data.DataColumn MatchIndexColumn {
|
||||
get {
|
||||
return this.columnlen;
|
||||
return this.columnMatchIndex;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn expColumn {
|
||||
public global::System.Data.DataColumn GroupIndexColumn {
|
||||
get {
|
||||
return this.columnexp;
|
||||
return this.columnGroupIndex;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn ReplaceExColumn {
|
||||
get {
|
||||
return this.columnReplaceEx;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn ReplaceStrColumn {
|
||||
get {
|
||||
return this.columnReplaceStr;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn varNameColumn {
|
||||
get {
|
||||
return this.columnvarName;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn RemarkColumn {
|
||||
get {
|
||||
return this.columnRemark;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -539,14 +579,18 @@ namespace Project {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public Component_Reel_CustRuleRow AddComponent_Reel_CustRuleRow(string code, string pre, string pos, int len, string exp) {
|
||||
public Component_Reel_CustRuleRow AddComponent_Reel_CustRuleRow(string code, string MatchEx, int MatchIndex, int GroupIndex, string ReplaceEx, string ReplaceStr, string varName, string Remark) {
|
||||
Component_Reel_CustRuleRow rowComponent_Reel_CustRuleRow = ((Component_Reel_CustRuleRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
code,
|
||||
pre,
|
||||
pos,
|
||||
len,
|
||||
exp};
|
||||
null,
|
||||
MatchEx,
|
||||
MatchIndex,
|
||||
GroupIndex,
|
||||
ReplaceEx,
|
||||
ReplaceStr,
|
||||
varName,
|
||||
Remark};
|
||||
rowComponent_Reel_CustRuleRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowComponent_Reel_CustRuleRow);
|
||||
return rowComponent_Reel_CustRuleRow;
|
||||
@@ -577,10 +621,14 @@ namespace Project {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.columncode = base.Columns["code"];
|
||||
this.columnpre = base.Columns["pre"];
|
||||
this.columnpos = base.Columns["pos"];
|
||||
this.columnlen = base.Columns["len"];
|
||||
this.columnexp = base.Columns["exp"];
|
||||
this.columnidx = base.Columns["idx"];
|
||||
this.columnMatchEx = base.Columns["MatchEx"];
|
||||
this.columnMatchIndex = base.Columns["MatchIndex"];
|
||||
this.columnGroupIndex = base.Columns["GroupIndex"];
|
||||
this.columnReplaceEx = base.Columns["ReplaceEx"];
|
||||
this.columnReplaceStr = base.Columns["ReplaceStr"];
|
||||
this.columnvarName = base.Columns["varName"];
|
||||
this.columnRemark = base.Columns["Remark"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -588,22 +636,40 @@ namespace Project {
|
||||
private void InitClass() {
|
||||
this.columncode = new global::System.Data.DataColumn("code", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columncode);
|
||||
this.columnpre = new global::System.Data.DataColumn("pre", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnpre);
|
||||
this.columnpos = new global::System.Data.DataColumn("pos", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnpos);
|
||||
this.columnlen = new global::System.Data.DataColumn("len", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnlen);
|
||||
this.columnexp = new global::System.Data.DataColumn("exp", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnexp);
|
||||
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnidx);
|
||||
this.columnMatchEx = new global::System.Data.DataColumn("MatchEx", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnMatchEx);
|
||||
this.columnMatchIndex = new global::System.Data.DataColumn("MatchIndex", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnMatchIndex);
|
||||
this.columnGroupIndex = new global::System.Data.DataColumn("GroupIndex", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnGroupIndex);
|
||||
this.columnReplaceEx = new global::System.Data.DataColumn("ReplaceEx", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnReplaceEx);
|
||||
this.columnReplaceStr = new global::System.Data.DataColumn("ReplaceStr", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnReplaceStr);
|
||||
this.columnvarName = new global::System.Data.DataColumn("varName", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnvarName);
|
||||
this.columnRemark = new global::System.Data.DataColumn("Remark", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnRemark);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columncode}, true));
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] {
|
||||
this.columnidx}, false));
|
||||
this.columncode.AllowDBNull = false;
|
||||
this.columncode.Unique = true;
|
||||
this.columncode.MaxLength = 10;
|
||||
this.columnpre.MaxLength = 20;
|
||||
this.columnpos.MaxLength = 20;
|
||||
this.columnexp.MaxLength = 100;
|
||||
this.columnidx.AutoIncrement = true;
|
||||
this.columnidx.AutoIncrementSeed = -1;
|
||||
this.columnidx.AutoIncrementStep = -1;
|
||||
this.columnidx.AllowDBNull = false;
|
||||
this.columnidx.ReadOnly = true;
|
||||
this.columnidx.Unique = true;
|
||||
this.columnMatchEx.MaxLength = 200;
|
||||
this.columnReplaceEx.MaxLength = 200;
|
||||
this.columnReplaceStr.MaxLength = 200;
|
||||
this.columnvarName.MaxLength = 50;
|
||||
this.columnRemark.MaxLength = 255;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -957,6 +1023,7 @@ namespace Project {
|
||||
this.columnPartNo.AllowDBNull = false;
|
||||
this.columnPartNo.MaxLength = 100;
|
||||
this.columnPrintPosition.MaxLength = 10;
|
||||
this.columnRemark.AllowDBNull = false;
|
||||
this.columnRemark.MaxLength = 100;
|
||||
}
|
||||
|
||||
@@ -2054,114 +2121,209 @@ namespace Project {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string pre {
|
||||
public int idx {
|
||||
get {
|
||||
if (this.IspreNull()) {
|
||||
return string.Empty;
|
||||
return ((int)(this[this.tableComponent_Reel_CustRule.idxColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.idxColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string MatchEx {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.MatchExColumn]));
|
||||
}
|
||||
else {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.preColumn]));
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'MatchEx\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.preColumn] = value;
|
||||
this[this.tableComponent_Reel_CustRule.MatchExColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string pos {
|
||||
public int MatchIndex {
|
||||
get {
|
||||
if (this.IsposNull()) {
|
||||
return string.Empty;
|
||||
try {
|
||||
return ((int)(this[this.tableComponent_Reel_CustRule.MatchIndexColumn]));
|
||||
}
|
||||
else {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.posColumn]));
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'MatchIndex\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.posColumn] = value;
|
||||
this[this.tableComponent_Reel_CustRule.MatchIndexColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public int len {
|
||||
public int GroupIndex {
|
||||
get {
|
||||
if (this.IslenNull()) {
|
||||
return 0;
|
||||
try {
|
||||
return ((int)(this[this.tableComponent_Reel_CustRule.GroupIndexColumn]));
|
||||
}
|
||||
else {
|
||||
return ((int)(this[this.tableComponent_Reel_CustRule.lenColumn]));
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'GroupIndex\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.lenColumn] = value;
|
||||
this[this.tableComponent_Reel_CustRule.GroupIndexColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string exp {
|
||||
public string ReplaceEx {
|
||||
get {
|
||||
if (this.IsexpNull()) {
|
||||
return string.Empty;
|
||||
try {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.ReplaceExColumn]));
|
||||
}
|
||||
else {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.expColumn]));
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'ReplaceEx\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.expColumn] = value;
|
||||
this[this.tableComponent_Reel_CustRule.ReplaceExColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IspreNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.preColumn);
|
||||
public string ReplaceStr {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.ReplaceStrColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'ReplaceStr\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.ReplaceStrColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetpreNull() {
|
||||
this[this.tableComponent_Reel_CustRule.preColumn] = global::System.Convert.DBNull;
|
||||
public string varName {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.varNameColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'varName\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.varNameColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsposNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.posColumn);
|
||||
public string Remark {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tableComponent_Reel_CustRule.RemarkColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'Remark\' 열의 값이 DBNull입니다.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_CustRule.RemarkColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetposNull() {
|
||||
this[this.tableComponent_Reel_CustRule.posColumn] = global::System.Convert.DBNull;
|
||||
public bool IsMatchExNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.MatchExColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IslenNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.lenColumn);
|
||||
public void SetMatchExNull() {
|
||||
this[this.tableComponent_Reel_CustRule.MatchExColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetlenNull() {
|
||||
this[this.tableComponent_Reel_CustRule.lenColumn] = global::System.Convert.DBNull;
|
||||
public bool IsMatchIndexNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.MatchIndexColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsexpNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.expColumn);
|
||||
public void SetMatchIndexNull() {
|
||||
this[this.tableComponent_Reel_CustRule.MatchIndexColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetexpNull() {
|
||||
this[this.tableComponent_Reel_CustRule.expColumn] = global::System.Convert.DBNull;
|
||||
public bool IsGroupIndexNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.GroupIndexColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetGroupIndexNull() {
|
||||
this[this.tableComponent_Reel_CustRule.GroupIndexColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsReplaceExNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.ReplaceExColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetReplaceExNull() {
|
||||
this[this.tableComponent_Reel_CustRule.ReplaceExColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsReplaceStrNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.ReplaceStrColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetReplaceStrNull() {
|
||||
this[this.tableComponent_Reel_CustRule.ReplaceStrColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsvarNameNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.varNameColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetvarNameNull() {
|
||||
this[this.tableComponent_Reel_CustRule.varNameColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsRemarkNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_CustRule.RemarkColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetRemarkNull() {
|
||||
this[this.tableComponent_Reel_CustRule.RemarkColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2264,12 +2426,7 @@ namespace Project {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string Remark {
|
||||
get {
|
||||
if (this.IsRemarkNull()) {
|
||||
return string.Empty;
|
||||
}
|
||||
else {
|
||||
return ((string)(this[this.tableComponent_Reel_SIDInfo.RemarkColumn]));
|
||||
}
|
||||
return ((string)(this[this.tableComponent_Reel_SIDInfo.RemarkColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableComponent_Reel_SIDInfo.RemarkColumn] = value;
|
||||
@@ -2311,18 +2468,6 @@ namespace Project {
|
||||
public void SetPrintPositionNull() {
|
||||
this[this.tableComponent_Reel_SIDInfo.PrintPositionColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsRemarkNull() {
|
||||
return this.IsNull(this.tableComponent_Reel_SIDInfo.RemarkColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetRemarkNull() {
|
||||
this[this.tableComponent_Reel_SIDInfo.RemarkColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2990,10 +3135,14 @@ namespace Project.DSListTableAdapters {
|
||||
tableMapping.SourceTable = "Table";
|
||||
tableMapping.DataSetTable = "Component_Reel_CustRule";
|
||||
tableMapping.ColumnMappings.Add("code", "code");
|
||||
tableMapping.ColumnMappings.Add("pre", "pre");
|
||||
tableMapping.ColumnMappings.Add("pos", "pos");
|
||||
tableMapping.ColumnMappings.Add("len", "len");
|
||||
tableMapping.ColumnMappings.Add("exp", "exp");
|
||||
tableMapping.ColumnMappings.Add("idx", "idx");
|
||||
tableMapping.ColumnMappings.Add("MatchEx", "MatchEx");
|
||||
tableMapping.ColumnMappings.Add("MatchIndex", "MatchIndex");
|
||||
tableMapping.ColumnMappings.Add("GroupIndex", "GroupIndex");
|
||||
tableMapping.ColumnMappings.Add("ReplaceEx", "ReplaceEx");
|
||||
tableMapping.ColumnMappings.Add("ReplaceStr", "ReplaceStr");
|
||||
tableMapping.ColumnMappings.Add("varName", "varName");
|
||||
tableMapping.ColumnMappings.Add("Remark", "Remark");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.DeleteCommand.Connection = this.Connection;
|
||||
@@ -3010,15 +3159,17 @@ namespace Project.DSListTableAdapters {
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_exp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exp", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.InsertCommand.Connection = this.Connection;
|
||||
this._adapter.InsertCommand.CommandText = "INSERT INTO [Component_Reel_CustRule] ([code], [pre], [pos], [len], [exp]) VALUES" +
|
||||
" (@code, @pre, @pos, @len, @exp);\r\nSELECT code, pre, pos, len, exp FROM Componen" +
|
||||
"t_Reel_CustRule WHERE (code = @code)";
|
||||
this._adapter.InsertCommand.CommandText = @"INSERT INTO [K4EE_Component_Reel_CustRule] ([code], [MatchEx], [MatchIndex], [GroupIndex], [ReplaceEx], [ReplaceStr], [varName], [Remark]) VALUES (@code, @MatchEx, @MatchIndex, @GroupIndex, @ReplaceEx, @ReplaceStr, @varName, @Remark);
|
||||
SELECT idx, code, MatchEx, MatchIndex, GroupIndex, ReplaceEx, ReplaceStr, varName, Remark FROM K4EE_Component_Reel_CustRule WHERE (idx = SCOPE_IDENTITY())";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pre", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pre", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pos", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pos", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@len", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "len", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@exp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatchEx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatchEx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatchIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatchIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GroupIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GroupIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReplaceEx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplaceEx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReplaceStr", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplaceStr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@varName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "varName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._adapter.UpdateCommand.Connection = this.Connection;
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE [Component_Reel_CustRule] SET [code] = @code, [pre] = @pre, [pos] = @pos, [len] = @len, [exp] = @exp WHERE (([code] = @Original_code) AND ((@IsNull_pre = 1 AND [pre] IS NULL) OR ([pre] = @Original_pre)) AND ((@IsNull_pos = 1 AND [pos] IS NULL) OR ([pos] = @Original_pos)) AND ((@IsNull_len = 1 AND [len] IS NULL) OR ([len] = @Original_len)) AND ((@IsNull_exp = 1 AND [exp] IS NULL) OR ([exp] = @Original_exp)));
|
||||
@@ -3053,7 +3204,8 @@ SELECT code, pre, pos, len, exp FROM Component_Reel_CustRule WHERE (code = @code
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT Component_Reel_CustRule.*\r\nFROM Component_Reel_CustRule";
|
||||
this._commandCollection[0].CommandText = "SELECT idx, code, MatchEx, MatchIndex, GroupIndex, ReplaceEx, ReplaceStr, varNam" +
|
||||
"e, Remark\r\nFROM K4EE_Component_Reel_CustRule";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
}
|
||||
|
||||
@@ -3173,36 +3325,54 @@ SELECT code, pre, pos, len, exp FROM Component_Reel_CustRule WHERE (code = @code
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
||||
public virtual int Insert(string code, string pre, string pos, global::System.Nullable<int> len, string exp) {
|
||||
public virtual int Insert(string code, string MatchEx, global::System.Nullable<int> MatchIndex, global::System.Nullable<int> GroupIndex, string ReplaceEx, string ReplaceStr, string varName, string Remark) {
|
||||
if ((code == null)) {
|
||||
throw new global::System.ArgumentNullException("code");
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(code));
|
||||
}
|
||||
if ((pre == null)) {
|
||||
if ((MatchEx == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pre));
|
||||
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(MatchEx));
|
||||
}
|
||||
if ((pos == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
if ((MatchIndex.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(MatchIndex.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(pos));
|
||||
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((len.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[3].Value = ((int)(len.Value));
|
||||
if ((GroupIndex.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[3].Value = ((int)(GroupIndex.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((exp == null)) {
|
||||
if ((ReplaceEx == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(exp));
|
||||
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ReplaceEx));
|
||||
}
|
||||
if ((ReplaceStr == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ReplaceStr));
|
||||
}
|
||||
if ((varName == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(varName));
|
||||
}
|
||||
if ((Remark == null)) {
|
||||
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Remark));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
||||
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -3513,12 +3683,12 @@ SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark FROM C
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark\r\nFROM " +
|
||||
" Component_Reel_SIDInfo\r\nWHERE (SID = @sid) AND (CustCode = @custcode) AND (" +
|
||||
"PartNo = @partno)";
|
||||
" K4EE_Component_Reel_SIDInfo\r\nWHERE (SID = @sid) AND (CustCode = @custcode) " +
|
||||
"AND (PartNo = @partno)";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "SID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@custcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "CustCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@partno", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "SID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@custcode", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "CustCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@partno", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -4092,8 +4262,8 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark\r" +
|
||||
"\nFROM Component_Reel_SIDConv\r\nWHERE (SIDFrom = @sidfrom) AND (SIDTo = @sidt" +
|
||||
"o)";
|
||||
"\nFROM K4EE_Component_Reel_SIDConv\r\nWHERE (SIDFrom = @sidfrom) AND (SIDTo = " +
|
||||
"@sidto)";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sidfrom", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "SIDFrom", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sidto", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "SIDTo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_CustRuleTableAdapter" GeneratorDataComponentClassName="Component_Reel_CustRuleTableAdapter" Name="Component_Reel_CustRule" UserDataComponentName="Component_Reel_CustRuleTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_CustRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_CustRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_CustRule] WHERE (([code] = @Original_code) AND ((@IsNull_pre = 1 AND [pre] IS NULL) OR ([pre] = @Original_pre)) AND ((@IsNull_pos = 1 AND [pos] IS NULL) OR ([pos] = @Original_pos)) AND ((@IsNull_len = 1 AND [len] IS NULL) OR ([len] = @Original_len)) AND ((@IsNull_exp = 1 AND [exp] IS NULL) OR ([exp] = @Original_exp)))</CommandText>
|
||||
@@ -28,21 +28,24 @@
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [Component_Reel_CustRule] ([code], [pre], [pos], [len], [exp]) VALUES (@code, @pre, @pos, @len, @exp);
|
||||
SELECT code, pre, pos, len, exp FROM Component_Reel_CustRule WHERE (code = @code)</CommandText>
|
||||
<CommandText>INSERT INTO [K4EE_Component_Reel_CustRule] ([code], [MatchEx], [MatchIndex], [GroupIndex], [ReplaceEx], [ReplaceStr], [varName], [Remark]) VALUES (@code, @MatchEx, @MatchIndex, @GroupIndex, @ReplaceEx, @ReplaceStr, @varName, @Remark);
|
||||
SELECT idx, code, MatchEx, MatchIndex, GroupIndex, ReplaceEx, ReplaceStr, varName, Remark FROM K4EE_Component_Reel_CustRule WHERE (idx = SCOPE_IDENTITY())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="code" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@pre" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pre" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@pos" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pos" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@len" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="len" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@exp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="exp" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MatchEx" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MatchEx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MatchIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MatchIndex" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GroupIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GroupIndex" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ReplaceEx" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ReplaceEx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ReplaceStr" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ReplaceStr" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@varName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="varName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT Component_Reel_CustRule.*
|
||||
FROM Component_Reel_CustRule</CommandText>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, code, MatchEx, MatchIndex, GroupIndex, ReplaceEx, ReplaceStr, varName, Remark
|
||||
FROM K4EE_Component_Reel_CustRule</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -72,16 +75,20 @@ SELECT code, pre, pos, len, exp FROM Component_Reel_CustRule WHERE (code = @code
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="code" DataSetColumn="code" />
|
||||
<Mapping SourceColumn="pre" DataSetColumn="pre" />
|
||||
<Mapping SourceColumn="pos" DataSetColumn="pos" />
|
||||
<Mapping SourceColumn="len" DataSetColumn="len" />
|
||||
<Mapping SourceColumn="exp" DataSetColumn="exp" />
|
||||
<Mapping SourceColumn="idx" DataSetColumn="idx" />
|
||||
<Mapping SourceColumn="MatchEx" DataSetColumn="MatchEx" />
|
||||
<Mapping SourceColumn="MatchIndex" DataSetColumn="MatchIndex" />
|
||||
<Mapping SourceColumn="GroupIndex" DataSetColumn="GroupIndex" />
|
||||
<Mapping SourceColumn="ReplaceEx" DataSetColumn="ReplaceEx" />
|
||||
<Mapping SourceColumn="ReplaceStr" DataSetColumn="ReplaceStr" />
|
||||
<Mapping SourceColumn="varName" DataSetColumn="varName" />
|
||||
<Mapping SourceColumn="Remark" DataSetColumn="Remark" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_SIDInfoTableAdapter" GeneratorDataComponentClassName="Component_Reel_SIDInfoTableAdapter" Name="Component_Reel_SIDInfo" UserDataComponentName="Component_Reel_SIDInfoTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_SIDInfo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_SIDInfo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_SIDInfo] WHERE (([SID] = @Original_SID) AND ([CustCode] = @Original_CustCode) AND ((@IsNull_CustName = 1 AND [CustName] IS NULL) OR ([CustName] = @Original_CustName)) AND ((@IsNull_VenderName = 1 AND [VenderName] IS NULL) OR ([VenderName] = @Original_VenderName)) AND ([PartNo] = @Original_PartNo) AND ((@IsNull_PrintPosition = 1 AND [PrintPosition] IS NULL) OR ([PrintPosition] = @Original_PrintPosition)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)))</CommandText>
|
||||
@@ -118,12 +125,12 @@ SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark FROM C
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark
|
||||
FROM Component_Reel_SIDInfo
|
||||
FROM K4EE_Component_Reel_SIDInfo
|
||||
WHERE (SID = @sid) AND (CustCode = @custcode) AND (PartNo = @partno)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_SIDInfo" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="custcode" ColumnName="CustCode" DataSourceName="EE.dbo.Component_Reel_SIDInfo" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@custcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="CustCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="partno" ColumnName="PartNo" DataSourceName="EE.dbo.Component_Reel_SIDInfo" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@partno" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="PartNo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_SIDInfo" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="custcode" ColumnName="CustCode" DataSourceName="WMS.dbo.K4EE_Component_Reel_SIDInfo" DataTypeServer="nvarchar(20)" DbType="String" Direction="Input" ParameterName="@custcode" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumn="CustCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="partno" ColumnName="PartNo" DataSourceName="WMS.dbo.K4EE_Component_Reel_SIDInfo" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@partno" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="PartNo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -168,7 +175,7 @@ SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark FROM C
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_SIDConvTableAdapter" GeneratorDataComponentClassName="Component_Reel_SIDConvTableAdapter" Name="Component_Reel_SIDConv" UserDataComponentName="Component_Reel_SIDConvTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_SIDConv" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_SIDConv" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_SIDConv] WHERE (([idx] = @Original_idx) AND ((@IsNull_M101 = 1 AND [M101] IS NULL) OR ([M101] = @Original_M101)) AND ((@IsNull_M103 = 1 AND [M103] IS NULL) OR ([M103] = @Original_M103)) AND ((@IsNull_M106 = 1 AND [M106] IS NULL) OR ([M106] = @Original_M106)) AND ((@IsNull_M108 = 1 AND [M108] IS NULL) OR ([M108] = @Original_M108)) AND ((@IsNull_M103_2 = 1 AND [M103_2] IS NULL) OR ([M103_2] = @Original_M103_2)) AND ((@IsNull_M101_2 = 1 AND [M101_2] IS NULL) OR ([M101_2] = @Original_M101_2)) AND ((@IsNull_Chk = 1 AND [Chk] IS NULL) OR ([Chk] = @Original_Chk)) AND ((@IsNull_SIDFrom = 1 AND [SIDFrom] IS NULL) OR ([SIDFrom] = @Original_SIDFrom)) AND ((@IsNull_SIDTo = 1 AND [SIDTo] IS NULL) OR ([SIDTo] = @Original_SIDTo)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)))</CommandText>
|
||||
@@ -218,11 +225,11 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
|
||||
FROM Component_Reel_SIDConv
|
||||
FROM K4EE_Component_Reel_SIDConv
|
||||
WHERE (SIDFrom = @sidfrom) AND (SIDTo = @sidto)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sidfrom" ColumnName="SIDFrom" DataSourceName="EE.dbo.Component_Reel_SIDConv" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sidfrom" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SIDFrom" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sidto" ColumnName="SIDTo" DataSourceName="EE.dbo.Component_Reel_SIDConv" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sidto" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SIDTo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sidfrom" ColumnName="SIDFrom" DataSourceName="WMS.dbo.K4EE_Component_Reel_SIDConv" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sidfrom" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SIDFrom" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sidto" ColumnName="SIDTo" DataSourceName="WMS.dbo.K4EE_Component_Reel_SIDConv" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sidto" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SIDTo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -262,7 +269,7 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_SIDTo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SIDTo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Component_Reel_SIDConv" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -288,105 +295,121 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DSList" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSList" msprop:Generator_UserDSName="DSList">
|
||||
<xs:element name="DSList" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_UserDSName="DSList" msprop:Generator_DataSetName="DSList">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="Supply" msprop:Generator_TableClassName="SupplyDataTable" msprop:Generator_TableVarName="tableSupply" msprop:Generator_RowChangedName="SupplyRowChanged" msprop:Generator_TablePropName="Supply" msprop:Generator_RowDeletingName="SupplyRowDeleting" msprop:Generator_RowChangingName="SupplyRowChanging" msprop:Generator_RowEvHandlerName="SupplyRowChangeEventHandler" msprop:Generator_RowDeletedName="SupplyRowDeleted" msprop:Generator_RowClassName="SupplyRow" msprop:Generator_UserTableName="Supply" msprop:Generator_RowEvArgName="SupplyRowChangeEvent">
|
||||
<xs:element name="Supply" msprop:Generator_RowEvHandlerName="SupplyRowChangeEventHandler" msprop:Generator_RowDeletedName="SupplyRowDeleted" msprop:Generator_RowDeletingName="SupplyRowDeleting" msprop:Generator_RowEvArgName="SupplyRowChangeEvent" msprop:Generator_TablePropName="Supply" msprop:Generator_RowChangedName="SupplyRowChanged" msprop:Generator_RowChangingName="SupplyRowChanging" msprop:Generator_TableClassName="SupplyDataTable" msprop:Generator_RowClassName="SupplyRow" msprop:Generator_TableVarName="tableSupply" msprop:Generator_UserTableName="Supply">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="TITLE" msprop:Generator_ColumnVarNameInTable="columnTITLE" msprop:Generator_ColumnPropNameInRow="TITLE" msprop:Generator_ColumnPropNameInTable="TITLEColumn" msprop:Generator_UserColumnName="TITLE" type="xs:string" />
|
||||
<xs:element name="TITLE" msprop:Generator_ColumnPropNameInRow="TITLE" msprop:Generator_ColumnPropNameInTable="TITLEColumn" msprop:Generator_ColumnVarNameInTable="columnTITLE" msprop:Generator_UserColumnName="TITLE" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="SIDConvert" msprop:Generator_TableClassName="SIDConvertDataTable" msprop:Generator_TableVarName="tableSIDConvert" msprop:Generator_RowChangedName="SIDConvertRowChanged" msprop:Generator_TablePropName="SIDConvert" msprop:Generator_RowDeletingName="SIDConvertRowDeleting" msprop:Generator_RowChangingName="SIDConvertRowChanging" msprop:Generator_RowEvHandlerName="SIDConvertRowChangeEventHandler" msprop:Generator_RowDeletedName="SIDConvertRowDeleted" msprop:Generator_RowClassName="SIDConvertRow" msprop:Generator_UserTableName="SIDConvert" msprop:Generator_RowEvArgName="SIDConvertRowChangeEvent">
|
||||
<xs:element name="SIDConvert" msprop:Generator_RowEvHandlerName="SIDConvertRowChangeEventHandler" msprop:Generator_RowDeletedName="SIDConvertRowDeleted" msprop:Generator_RowDeletingName="SIDConvertRowDeleting" msprop:Generator_RowEvArgName="SIDConvertRowChangeEvent" msprop:Generator_TablePropName="SIDConvert" msprop:Generator_RowChangedName="SIDConvertRowChanged" msprop:Generator_RowChangingName="SIDConvertRowChanging" msprop:Generator_TableClassName="SIDConvertDataTable" msprop:Generator_RowClassName="SIDConvertRow" msprop:Generator_TableVarName="tableSIDConvert" msprop:Generator_UserTableName="SIDConvert">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="SID101" msprop:Generator_ColumnVarNameInTable="columnSID101" msprop:Generator_ColumnPropNameInRow="SID101" msprop:Generator_ColumnPropNameInTable="SID101Column" msprop:Generator_UserColumnName="SID101" type="xs:string" />
|
||||
<xs:element name="SID103" msprop:Generator_ColumnVarNameInTable="columnSID103" msprop:Generator_ColumnPropNameInRow="SID103" msprop:Generator_ColumnPropNameInTable="SID103Column" msprop:Generator_UserColumnName="SID103" type="xs:string" />
|
||||
<xs:element name="SID101" msprop:Generator_ColumnPropNameInRow="SID101" msprop:Generator_ColumnPropNameInTable="SID101Column" msprop:Generator_ColumnVarNameInTable="columnSID101" msprop:Generator_UserColumnName="SID101" type="xs:string" />
|
||||
<xs:element name="SID103" msprop:Generator_ColumnPropNameInRow="SID103" msprop:Generator_ColumnPropNameInTable="SID103Column" msprop:Generator_ColumnVarNameInTable="columnSID103" msprop:Generator_UserColumnName="SID103" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_CustRule" msprop:Generator_TableClassName="Component_Reel_CustRuleDataTable" msprop:Generator_TableVarName="tableComponent_Reel_CustRule" msprop:Generator_TablePropName="Component_Reel_CustRule" msprop:Generator_RowDeletingName="Component_Reel_CustRuleRowDeleting" msprop:Generator_RowChangingName="Component_Reel_CustRuleRowChanging" msprop:Generator_RowEvHandlerName="Component_Reel_CustRuleRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_CustRuleRowDeleted" msprop:Generator_UserTableName="Component_Reel_CustRule" msprop:Generator_RowChangedName="Component_Reel_CustRuleRowChanged" msprop:Generator_RowEvArgName="Component_Reel_CustRuleRowChangeEvent" msprop:Generator_RowClassName="Component_Reel_CustRuleRow">
|
||||
<xs:element name="Component_Reel_CustRule" msprop:Generator_RowClassName="Component_Reel_CustRuleRow" msprop:Generator_RowEvHandlerName="Component_Reel_CustRuleRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_CustRuleRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_CustRuleRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_CustRuleRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_CustRule" msprop:Generator_RowChangedName="Component_Reel_CustRuleRowChanged" msprop:Generator_RowChangingName="Component_Reel_CustRuleRowChanging" msprop:Generator_TableClassName="Component_Reel_CustRuleDataTable" msprop:Generator_UserTableName="Component_Reel_CustRule" msprop:Generator_TableVarName="tableComponent_Reel_CustRule">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="code" msprop:Generator_ColumnVarNameInTable="columncode" msprop:Generator_ColumnPropNameInRow="code" msprop:Generator_ColumnPropNameInTable="codeColumn" msprop:Generator_UserColumnName="code">
|
||||
<xs:element name="code" msprop:Generator_ColumnPropNameInRow="code" msprop:Generator_ColumnPropNameInTable="codeColumn" msprop:Generator_ColumnVarNameInTable="columncode" msprop:Generator_UserColumnName="code">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pre" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="pre" msprop:Generator_ColumnVarNameInTable="columnpre" msprop:Generator_ColumnPropNameInTable="preColumn" msprop:Generator_UserColumnName="pre" minOccurs="0">
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_UserColumnName="idx" type="xs:int" />
|
||||
<xs:element name="MatchEx" msprop:Generator_ColumnPropNameInRow="MatchEx" msprop:Generator_ColumnPropNameInTable="MatchExColumn" msprop:Generator_ColumnVarNameInTable="columnMatchEx" msprop:Generator_UserColumnName="MatchEx" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="pos" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="pos" msprop:Generator_ColumnVarNameInTable="columnpos" msprop:Generator_ColumnPropNameInTable="posColumn" msprop:Generator_UserColumnName="pos" minOccurs="0">
|
||||
<xs:element name="MatchIndex" msprop:Generator_ColumnPropNameInRow="MatchIndex" msprop:Generator_ColumnPropNameInTable="MatchIndexColumn" msprop:Generator_ColumnVarNameInTable="columnMatchIndex" msprop:Generator_UserColumnName="MatchIndex" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="GroupIndex" msprop:Generator_ColumnPropNameInRow="GroupIndex" msprop:Generator_ColumnPropNameInTable="GroupIndexColumn" msprop:Generator_ColumnVarNameInTable="columnGroupIndex" msprop:Generator_UserColumnName="GroupIndex" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="ReplaceEx" msprop:Generator_ColumnPropNameInRow="ReplaceEx" msprop:Generator_ColumnPropNameInTable="ReplaceExColumn" msprop:Generator_ColumnVarNameInTable="columnReplaceEx" msprop:Generator_UserColumnName="ReplaceEx" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="len" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="len" msprop:Generator_ColumnVarNameInTable="columnlen" msprop:Generator_ColumnPropNameInTable="lenColumn" msprop:Generator_UserColumnName="len" type="xs:int" minOccurs="0" />
|
||||
<xs:element name="exp" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="exp" msprop:Generator_ColumnVarNameInTable="columnexp" msprop:Generator_ColumnPropNameInTable="expColumn" msprop:Generator_UserColumnName="exp" minOccurs="0">
|
||||
<xs:element name="ReplaceStr" msprop:Generator_ColumnPropNameInRow="ReplaceStr" msprop:Generator_ColumnPropNameInTable="ReplaceStrColumn" msprop:Generator_ColumnVarNameInTable="columnReplaceStr" msprop:Generator_UserColumnName="ReplaceStr" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_SIDInfo" msprop:Generator_TableClassName="Component_Reel_SIDInfoDataTable" msprop:Generator_TableVarName="tableComponent_Reel_SIDInfo" msprop:Generator_RowChangedName="Component_Reel_SIDInfoRowChanged" msprop:Generator_TablePropName="Component_Reel_SIDInfo" msprop:Generator_RowDeletingName="Component_Reel_SIDInfoRowDeleting" msprop:Generator_RowChangingName="Component_Reel_SIDInfoRowChanging" msprop:Generator_RowEvHandlerName="Component_Reel_SIDInfoRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_SIDInfoRowDeleted" msprop:Generator_RowClassName="Component_Reel_SIDInfoRow" msprop:Generator_UserTableName="Component_Reel_SIDInfo" msprop:Generator_RowEvArgName="Component_Reel_SIDInfoRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="SID" msprop:Generator_ColumnVarNameInTable="columnSID" msprop:Generator_ColumnPropNameInRow="SID" msprop:Generator_ColumnPropNameInTable="SIDColumn" msprop:Generator_UserColumnName="SID">
|
||||
<xs:element name="varName" msprop:Generator_ColumnPropNameInRow="varName" msprop:Generator_ColumnPropNameInTable="varNameColumn" msprop:Generator_ColumnVarNameInTable="columnvarName" msprop:Generator_UserColumnName="varName" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CustCode" msprop:Generator_ColumnVarNameInTable="columnCustCode" msprop:Generator_ColumnPropNameInRow="CustCode" msprop:Generator_ColumnPropNameInTable="CustCodeColumn" msprop:Generator_UserColumnName="CustCode">
|
||||
<xs:element name="Remark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_UserColumnName="Remark" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="255" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_SIDInfo" msprop:Generator_RowEvHandlerName="Component_Reel_SIDInfoRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_SIDInfoRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_SIDInfoRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_SIDInfoRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_SIDInfo" msprop:Generator_RowChangedName="Component_Reel_SIDInfoRowChanged" msprop:Generator_RowChangingName="Component_Reel_SIDInfoRowChanging" msprop:Generator_TableClassName="Component_Reel_SIDInfoDataTable" msprop:Generator_RowClassName="Component_Reel_SIDInfoRow" msprop:Generator_TableVarName="tableComponent_Reel_SIDInfo" msprop:Generator_UserTableName="Component_Reel_SIDInfo">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="SID" msprop:Generator_ColumnPropNameInRow="SID" msprop:Generator_ColumnPropNameInTable="SIDColumn" msprop:Generator_ColumnVarNameInTable="columnSID" msprop:Generator_UserColumnName="SID">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CustCode" msprop:Generator_ColumnPropNameInRow="CustCode" msprop:Generator_ColumnPropNameInTable="CustCodeColumn" msprop:Generator_ColumnVarNameInTable="columnCustCode" msprop:Generator_UserColumnName="CustCode">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CustName" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="CustName" msprop:Generator_ColumnVarNameInTable="columnCustName" msprop:Generator_ColumnPropNameInTable="CustNameColumn" msprop:Generator_UserColumnName="CustName" minOccurs="0">
|
||||
<xs:element name="CustName" msprop:Generator_ColumnPropNameInTable="CustNameColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="CustName" msprop:Generator_UserColumnName="CustName" msprop:Generator_ColumnVarNameInTable="columnCustName" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="VenderName" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="VenderName" msprop:Generator_ColumnVarNameInTable="columnVenderName" msprop:Generator_ColumnPropNameInTable="VenderNameColumn" msprop:Generator_UserColumnName="VenderName" minOccurs="0">
|
||||
<xs:element name="VenderName" msprop:Generator_ColumnPropNameInTable="VenderNameColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="VenderName" msprop:Generator_UserColumnName="VenderName" msprop:Generator_ColumnVarNameInTable="columnVenderName" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="PartNo" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="PartNo" msprop:Generator_ColumnVarNameInTable="columnPartNo" msprop:Generator_ColumnPropNameInTable="PartNoColumn" msprop:Generator_UserColumnName="PartNo">
|
||||
<xs:element name="PartNo" msprop:Generator_ColumnPropNameInTable="PartNoColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="PartNo" msprop:Generator_UserColumnName="PartNo" msprop:Generator_ColumnVarNameInTable="columnPartNo">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="PrintPosition" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="PrintPosition" msprop:Generator_ColumnVarNameInTable="columnPrintPosition" msprop:Generator_ColumnPropNameInTable="PrintPositionColumn" msprop:Generator_UserColumnName="PrintPosition" minOccurs="0">
|
||||
<xs:element name="PrintPosition" msprop:Generator_ColumnPropNameInTable="PrintPositionColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="PrintPosition" msprop:Generator_UserColumnName="PrintPosition" msprop:Generator_ColumnVarNameInTable="columnPrintPosition" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Remark" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
|
||||
<xs:element name="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_UserColumnName="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
@@ -396,68 +419,68 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_SIDConv" msprop:Generator_TableClassName="Component_Reel_SIDConvDataTable" msprop:Generator_TableVarName="tableComponent_Reel_SIDConv" msprop:Generator_TablePropName="Component_Reel_SIDConv" msprop:Generator_RowDeletingName="Component_Reel_SIDConvRowDeleting" msprop:Generator_RowChangingName="Component_Reel_SIDConvRowChanging" msprop:Generator_RowEvHandlerName="Component_Reel_SIDConvRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_SIDConvRowDeleted" msprop:Generator_UserTableName="Component_Reel_SIDConv" msprop:Generator_RowChangedName="Component_Reel_SIDConvRowChanged" msprop:Generator_RowEvArgName="Component_Reel_SIDConvRowChangeEvent" msprop:Generator_RowClassName="Component_Reel_SIDConvRow">
|
||||
<xs:element name="Component_Reel_SIDConv" msprop:Generator_RowClassName="Component_Reel_SIDConvRow" msprop:Generator_RowEvHandlerName="Component_Reel_SIDConvRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_SIDConvRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_SIDConvRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_SIDConvRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_SIDConv" msprop:Generator_RowChangedName="Component_Reel_SIDConvRowChanged" msprop:Generator_RowChangingName="Component_Reel_SIDConvRowChanging" msprop:Generator_TableClassName="Component_Reel_SIDConvDataTable" msprop:Generator_UserTableName="Component_Reel_SIDConv" msprop:Generator_TableVarName="tableComponent_Reel_SIDConv">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
|
||||
<xs:element name="M101" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M101" msprop:Generator_ColumnVarNameInTable="columnM101" msprop:Generator_ColumnPropNameInTable="M101Column" msprop:Generator_UserColumnName="M101" minOccurs="0">
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_UserColumnName="idx" type="xs:int" />
|
||||
<xs:element name="M101" msprop:Generator_ColumnPropNameInTable="M101Column" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M101" msprop:Generator_UserColumnName="M101" msprop:Generator_ColumnVarNameInTable="columnM101" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="M103" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M103" msprop:Generator_ColumnVarNameInTable="columnM103" msprop:Generator_ColumnPropNameInTable="M103Column" msprop:Generator_UserColumnName="M103" minOccurs="0">
|
||||
<xs:element name="M103" msprop:Generator_ColumnPropNameInTable="M103Column" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M103" msprop:Generator_UserColumnName="M103" msprop:Generator_ColumnVarNameInTable="columnM103" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="M106" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M106" msprop:Generator_ColumnVarNameInTable="columnM106" msprop:Generator_ColumnPropNameInTable="M106Column" msprop:Generator_UserColumnName="M106" minOccurs="0">
|
||||
<xs:element name="M106" msprop:Generator_ColumnPropNameInTable="M106Column" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M106" msprop:Generator_UserColumnName="M106" msprop:Generator_ColumnVarNameInTable="columnM106" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="M108" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M108" msprop:Generator_ColumnVarNameInTable="columnM108" msprop:Generator_ColumnPropNameInTable="M108Column" msprop:Generator_UserColumnName="M108" minOccurs="0">
|
||||
<xs:element name="M108" msprop:Generator_ColumnPropNameInTable="M108Column" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M108" msprop:Generator_UserColumnName="M108" msprop:Generator_ColumnVarNameInTable="columnM108" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="M103_2" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M103_2" msprop:Generator_ColumnVarNameInTable="columnM103_2" msprop:Generator_ColumnPropNameInTable="M103_2Column" msprop:Generator_UserColumnName="M103_2" minOccurs="0">
|
||||
<xs:element name="M103_2" msprop:Generator_ColumnPropNameInTable="M103_2Column" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M103_2" msprop:Generator_UserColumnName="M103_2" msprop:Generator_ColumnVarNameInTable="columnM103_2" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="M101_2" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M101_2" msprop:Generator_ColumnVarNameInTable="columnM101_2" msprop:Generator_ColumnPropNameInTable="M101_2Column" msprop:Generator_UserColumnName="M101_2" minOccurs="0">
|
||||
<xs:element name="M101_2" msprop:Generator_ColumnPropNameInTable="M101_2Column" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="M101_2" msprop:Generator_UserColumnName="M101_2" msprop:Generator_ColumnVarNameInTable="columnM101_2" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Chk" msprop:Generator_ColumnVarNameInTable="columnChk" msprop:Generator_ColumnPropNameInRow="Chk" msprop:Generator_ColumnPropNameInTable="ChkColumn" msprop:Generator_UserColumnName="Chk" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SIDFrom" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="SIDFrom" msprop:Generator_ColumnVarNameInTable="columnSIDFrom" msprop:Generator_ColumnPropNameInTable="SIDFromColumn" msprop:Generator_UserColumnName="SIDFrom" minOccurs="0">
|
||||
<xs:element name="Chk" msprop:Generator_ColumnPropNameInRow="Chk" msprop:Generator_ColumnPropNameInTable="ChkColumn" msprop:Generator_ColumnVarNameInTable="columnChk" msprop:Generator_UserColumnName="Chk" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="SIDFrom" msprop:Generator_ColumnPropNameInTable="SIDFromColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="SIDFrom" msprop:Generator_UserColumnName="SIDFrom" msprop:Generator_ColumnVarNameInTable="columnSIDFrom" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="SIDTo" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="SIDTo" msprop:Generator_ColumnVarNameInTable="columnSIDTo" msprop:Generator_ColumnPropNameInTable="SIDToColumn" msprop:Generator_UserColumnName="SIDTo" minOccurs="0">
|
||||
<xs:element name="SIDTo" msprop:Generator_ColumnPropNameInTable="SIDToColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="SIDTo" msprop:Generator_UserColumnName="SIDTo" msprop:Generator_ColumnVarNameInTable="columnSIDTo" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Remark" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
|
||||
<xs:element name="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_UserColumnName="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
@@ -482,6 +505,10 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
|
||||
<xs:selector xpath=".//mstns:Component_Reel_CustRule" />
|
||||
<xs:field xpath="mstns:code" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Constraint2">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_CustRule" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_SIDInfo_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_SIDInfo" />
|
||||
<xs:field xpath="mstns:SID" />
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Component_Reel_CustRule" ZOrder="3" X="510" Y="141" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Component_Reel_CustRule" ZOrder="3" X="511" Y="141" Height="172" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Component_Reel_SIDInfo" ZOrder="1" X="651" Y="371" Height="210" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:Component_Reel_SIDConv" ZOrder="2" X="281" Y="384" Height="286" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:Component_Reel_SIDConv" ZOrder="2" X="281" Y="385" Height="286" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:Supply" ZOrder="5" X="120" Y="87" Height="48" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="44" />
|
||||
<Shape ID="DesignTable:SIDConvert" ZOrder="4" X="316" Y="82" Height="67" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="63" />
|
||||
</Shapes>
|
||||
|
||||
198
Handler/Project/DSSetup.Designer.cs
generated
198
Handler/Project/DSSetup.Designer.cs
generated
@@ -29,7 +29,7 @@ namespace Project {
|
||||
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public DSSetup() {
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
@@ -40,7 +40,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected DSSetup(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context, false) {
|
||||
if ((this.IsBinarySerialized(info, context) == true)) {
|
||||
@@ -76,7 +76,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
||||
public MotionParamDataTable MotionParam {
|
||||
@@ -86,7 +86,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.BrowsableAttribute(true)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
||||
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
|
||||
@@ -99,7 +99,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
||||
public new global::System.Data.DataTableCollection Tables {
|
||||
get {
|
||||
@@ -108,7 +108,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
|
||||
public new global::System.Data.DataRelationCollection Relations {
|
||||
get {
|
||||
@@ -117,7 +117,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void InitializeDerivedDataSet() {
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
@@ -125,7 +125,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public override global::System.Data.DataSet Clone() {
|
||||
DSSetup cln = ((DSSetup)(base.Clone()));
|
||||
cln.InitVars();
|
||||
@@ -134,19 +134,19 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override bool ShouldSerializeTables() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override bool ShouldSerializeRelations() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
|
||||
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
|
||||
this.Reset();
|
||||
@@ -171,7 +171,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
|
||||
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
|
||||
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
|
||||
@@ -180,13 +180,13 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.InitVars(true);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal void InitVars(bool initTable) {
|
||||
this.tableMotionParam = ((MotionParamDataTable)(base.Tables["MotionParam"]));
|
||||
if ((initTable == true)) {
|
||||
@@ -197,7 +197,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void InitClass() {
|
||||
this.DataSetName = "DSSetup";
|
||||
this.Prefix = "";
|
||||
@@ -209,13 +209,13 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private bool ShouldSerializeMotionParam() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
||||
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
||||
this.InitVars();
|
||||
@@ -223,7 +223,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
||||
DSSetup ds = new DSSetup();
|
||||
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
||||
@@ -269,7 +269,7 @@ namespace Project {
|
||||
return type;
|
||||
}
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public delegate void MotionParamRowChangeEventHandler(object sender, MotionParamRowChangeEvent e);
|
||||
|
||||
/// <summary>
|
||||
@@ -306,7 +306,7 @@ namespace Project {
|
||||
private global::System.Data.DataColumn columnMaxAcc;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public MotionParamDataTable() {
|
||||
this.TableName = "MotionParam";
|
||||
this.BeginInit();
|
||||
@@ -315,7 +315,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal MotionParamDataTable(global::System.Data.DataTable table) {
|
||||
this.TableName = table.TableName;
|
||||
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
||||
@@ -332,14 +332,14 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected MotionParamDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context) {
|
||||
this.InitVars();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn idxColumn {
|
||||
get {
|
||||
return this.columnidx;
|
||||
@@ -347,7 +347,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn EnableColumn {
|
||||
get {
|
||||
return this.columnEnable;
|
||||
@@ -355,7 +355,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn UseOriginColumn {
|
||||
get {
|
||||
return this.columnUseOrigin;
|
||||
@@ -363,7 +363,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn UseEStopColumn {
|
||||
get {
|
||||
return this.columnUseEStop;
|
||||
@@ -371,7 +371,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn HomeAccColumn {
|
||||
get {
|
||||
return this.columnHomeAcc;
|
||||
@@ -379,7 +379,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn HomeDccColumn {
|
||||
get {
|
||||
return this.columnHomeDcc;
|
||||
@@ -387,7 +387,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn HomeHighColumn {
|
||||
get {
|
||||
return this.columnHomeHigh;
|
||||
@@ -395,7 +395,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn HomeLowColumn {
|
||||
get {
|
||||
return this.columnHomeLow;
|
||||
@@ -403,7 +403,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn SWLimitPColumn {
|
||||
get {
|
||||
return this.columnSWLimitP;
|
||||
@@ -411,7 +411,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn TitleColumn {
|
||||
get {
|
||||
return this.columnTitle;
|
||||
@@ -419,7 +419,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn InpositionAccrColumn {
|
||||
get {
|
||||
return this.columnInpositionAccr;
|
||||
@@ -427,7 +427,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn MaxSpeedColumn {
|
||||
get {
|
||||
return this.columnMaxSpeed;
|
||||
@@ -435,7 +435,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn MaxAccColumn {
|
||||
get {
|
||||
return this.columnMaxAcc;
|
||||
@@ -443,7 +443,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
public int Count {
|
||||
get {
|
||||
@@ -452,33 +452,33 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public MotionParamRow this[int index] {
|
||||
get {
|
||||
return ((MotionParamRow)(this.Rows[index]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event MotionParamRowChangeEventHandler MotionParamRowChanging;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event MotionParamRowChangeEventHandler MotionParamRowChanged;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event MotionParamRowChangeEventHandler MotionParamRowDeleting;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public event MotionParamRowChangeEventHandler MotionParamRowDeleted;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void AddMotionParamRow(MotionParamRow row) {
|
||||
this.Rows.Add(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public MotionParamRow AddMotionParamRow(short idx, bool Enable, bool UseOrigin, bool UseEStop, double HomeAcc, double HomeDcc, double HomeHigh, double HomeLow, double SWLimitP, string Title, float InpositionAccr, double MaxSpeed, double MaxAcc) {
|
||||
MotionParamRow rowMotionParamRow = ((MotionParamRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
@@ -501,14 +501,14 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public MotionParamRow FindByidx(short idx) {
|
||||
return ((MotionParamRow)(this.Rows.Find(new object[] {
|
||||
idx})));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public override global::System.Data.DataTable Clone() {
|
||||
MotionParamDataTable cln = ((MotionParamDataTable)(base.Clone()));
|
||||
cln.InitVars();
|
||||
@@ -516,13 +516,13 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Data.DataTable CreateInstance() {
|
||||
return new MotionParamDataTable();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.columnidx = base.Columns["idx"];
|
||||
this.columnEnable = base.Columns["Enable"];
|
||||
@@ -540,7 +540,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
private void InitClass() {
|
||||
this.columnidx = new global::System.Data.DataColumn("idx", typeof(short), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnidx);
|
||||
@@ -575,25 +575,25 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public MotionParamRow NewMotionParamRow() {
|
||||
return ((MotionParamRow)(this.NewRow()));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
||||
return new MotionParamRow(builder);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override global::System.Type GetRowType() {
|
||||
return typeof(MotionParamRow);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanged(e);
|
||||
if ((this.MotionParamRowChanged != null)) {
|
||||
@@ -602,7 +602,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanging(e);
|
||||
if ((this.MotionParamRowChanging != null)) {
|
||||
@@ -611,7 +611,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleted(e);
|
||||
if ((this.MotionParamRowDeleted != null)) {
|
||||
@@ -620,7 +620,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleting(e);
|
||||
if ((this.MotionParamRowDeleting != null)) {
|
||||
@@ -629,13 +629,13 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void RemoveMotionParamRow(MotionParamRow row) {
|
||||
this.Rows.Remove(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
||||
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
||||
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
||||
@@ -706,14 +706,14 @@ namespace Project {
|
||||
private MotionParamDataTable tableMotionParam;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
internal MotionParamRow(global::System.Data.DataRowBuilder rb) :
|
||||
base(rb) {
|
||||
this.tableMotionParam = ((MotionParamDataTable)(this.Table));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public short idx {
|
||||
get {
|
||||
return ((short)(this[this.tableMotionParam.idxColumn]));
|
||||
@@ -724,7 +724,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool Enable {
|
||||
get {
|
||||
if (this.IsEnableNull()) {
|
||||
@@ -740,7 +740,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool UseOrigin {
|
||||
get {
|
||||
if (this.IsUseOriginNull()) {
|
||||
@@ -756,7 +756,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool UseEStop {
|
||||
get {
|
||||
if (this.IsUseEStopNull()) {
|
||||
@@ -772,7 +772,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public double HomeAcc {
|
||||
get {
|
||||
if (this.IsHomeAccNull()) {
|
||||
@@ -788,7 +788,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public double HomeDcc {
|
||||
get {
|
||||
if (this.IsHomeDccNull()) {
|
||||
@@ -804,7 +804,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public double HomeHigh {
|
||||
get {
|
||||
if (this.IsHomeHighNull()) {
|
||||
@@ -820,7 +820,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public double HomeLow {
|
||||
get {
|
||||
if (this.IsHomeLowNull()) {
|
||||
@@ -836,7 +836,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public double SWLimitP {
|
||||
get {
|
||||
if (this.IsSWLimitPNull()) {
|
||||
@@ -852,7 +852,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public string Title {
|
||||
get {
|
||||
if (this.IsTitleNull()) {
|
||||
@@ -868,7 +868,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public float InpositionAccr {
|
||||
get {
|
||||
if (this.IsInpositionAccrNull()) {
|
||||
@@ -884,7 +884,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public double MaxSpeed {
|
||||
get {
|
||||
if (this.IsMaxSpeedNull()) {
|
||||
@@ -900,7 +900,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public double MaxAcc {
|
||||
get {
|
||||
if (this.IsMaxAccNull()) {
|
||||
@@ -916,145 +916,145 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsEnableNull() {
|
||||
return this.IsNull(this.tableMotionParam.EnableColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetEnableNull() {
|
||||
this[this.tableMotionParam.EnableColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsUseOriginNull() {
|
||||
return this.IsNull(this.tableMotionParam.UseOriginColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetUseOriginNull() {
|
||||
this[this.tableMotionParam.UseOriginColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsUseEStopNull() {
|
||||
return this.IsNull(this.tableMotionParam.UseEStopColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetUseEStopNull() {
|
||||
this[this.tableMotionParam.UseEStopColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsHomeAccNull() {
|
||||
return this.IsNull(this.tableMotionParam.HomeAccColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetHomeAccNull() {
|
||||
this[this.tableMotionParam.HomeAccColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsHomeDccNull() {
|
||||
return this.IsNull(this.tableMotionParam.HomeDccColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetHomeDccNull() {
|
||||
this[this.tableMotionParam.HomeDccColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsHomeHighNull() {
|
||||
return this.IsNull(this.tableMotionParam.HomeHighColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetHomeHighNull() {
|
||||
this[this.tableMotionParam.HomeHighColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsHomeLowNull() {
|
||||
return this.IsNull(this.tableMotionParam.HomeLowColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetHomeLowNull() {
|
||||
this[this.tableMotionParam.HomeLowColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsSWLimitPNull() {
|
||||
return this.IsNull(this.tableMotionParam.SWLimitPColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetSWLimitPNull() {
|
||||
this[this.tableMotionParam.SWLimitPColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsTitleNull() {
|
||||
return this.IsNull(this.tableMotionParam.TitleColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetTitleNull() {
|
||||
this[this.tableMotionParam.TitleColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsInpositionAccrNull() {
|
||||
return this.IsNull(this.tableMotionParam.InpositionAccrColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetInpositionAccrNull() {
|
||||
this[this.tableMotionParam.InpositionAccrColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsMaxSpeedNull() {
|
||||
return this.IsNull(this.tableMotionParam.MaxSpeedColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetMaxSpeedNull() {
|
||||
this[this.tableMotionParam.MaxSpeedColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsMaxAccNull() {
|
||||
return this.IsNull(this.tableMotionParam.MaxAccColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetMaxAccNull() {
|
||||
this[this.tableMotionParam.MaxAccColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
@@ -1063,7 +1063,7 @@ namespace Project {
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public class MotionParamRowChangeEvent : global::System.EventArgs {
|
||||
|
||||
private MotionParamRow eventRow;
|
||||
@@ -1071,14 +1071,14 @@ namespace Project {
|
||||
private global::System.Data.DataRowAction eventAction;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public MotionParamRowChangeEvent(MotionParamRow row, global::System.Data.DataRowAction action) {
|
||||
this.eventRow = row;
|
||||
this.eventAction = action;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public MotionParamRow Row {
|
||||
get {
|
||||
return this.eventRow;
|
||||
@@ -1086,7 +1086,7 @@ namespace Project {
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataRowAction Action {
|
||||
get {
|
||||
return this.eventAction;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:MotionParam" ZOrder="1" X="0" Y="0" Height="257" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="86" />
|
||||
<Shape ID="DesignTable:MotionParam" ZOrder="1" X="198" Y="21" Height="257" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="86" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
@@ -7,9 +7,9 @@
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="CS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CS (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Project.Properties.Settings.GlobalReference.Default.CS" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_ResultTableAdapter" GeneratorDataComponentClassName="Component_Reel_ResultTableAdapter" Name="Component_Reel_Result" UserDataComponentName="Component_Reel_ResultTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_ResultTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_ResultTableAdapter" Name="K4EE_Component_Reel_Result" UserDataComponentName="K4EE_Component_Reel_ResultTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_Result] WHERE (([idx] = @Original_idx) AND ([STIME] = @Original_STIME) AND ((@IsNull_ETIME = 1 AND [ETIME] IS NULL) OR ([ETIME] = @Original_ETIME)) AND ((@IsNull_PDATE = 1 AND [PDATE] IS NULL) OR ([PDATE] = @Original_PDATE)) AND ((@IsNull_JTYPE = 1 AND [JTYPE] IS NULL) OR ([JTYPE] = @Original_JTYPE)) AND ((@IsNull_JGUID = 1 AND [JGUID] IS NULL) OR ([JGUID] = @Original_JGUID)) AND ((@IsNull_SID = 1 AND [SID] IS NULL) OR ([SID] = @Original_SID)) AND ((@IsNull_SID0 = 1 AND [SID0] IS NULL) OR ([SID0] = @Original_SID0)) AND ((@IsNull_RID = 1 AND [RID] IS NULL) OR ([RID] = @Original_RID)) AND ((@IsNull_RID0 = 1 AND [RID0] IS NULL) OR ([RID0] = @Original_RID0)) AND ((@IsNull_RSN = 1 AND [RSN] IS NULL) OR ([RSN] = @Original_RSN)) AND ((@IsNull_QR = 1 AND [QR] IS NULL) OR ([QR] = @Original_QR)) AND ((@IsNull_ZPL = 1 AND [ZPL] IS NULL) OR ([ZPL] = @Original_ZPL)) AND ((@IsNull_POS = 1 AND [POS] IS NULL) OR ([POS] = @Original_POS)) AND ((@IsNull_LOC = 1 AND [LOC] IS NULL) OR ([LOC] = @Original_LOC)) AND ((@IsNull_ANGLE = 1 AND [ANGLE] IS NULL) OR ([ANGLE] = @Original_ANGLE)) AND ((@IsNull_QTY = 1 AND [QTY] IS NULL) OR ([QTY] = @Original_QTY)) AND ((@IsNull_QTY0 = 1 AND [QTY0] IS NULL) OR ([QTY0] = @Original_QTY0)) AND ([wdate] = @Original_wdate) AND ((@IsNull_VNAME = 1 AND [VNAME] IS NULL) OR ([VNAME] = @Original_VNAME)) AND ((@IsNull_PRNATTACH = 1 AND [PRNATTACH] IS NULL) OR ([PRNATTACH] = @Original_PRNATTACH)) AND ((@IsNull_PRNVALID = 1 AND [PRNVALID] IS NULL) OR ([PRNVALID] = @Original_PRNVALID)) AND ((@IsNull_PTIME = 1 AND [PTIME] IS NULL) OR ([PTIME] = @Original_PTIME)) AND ((@IsNull_MFGDATE = 1 AND [MFGDATE] IS NULL) OR ([MFGDATE] = @Original_MFGDATE)) AND ((@IsNull_VLOT = 1 AND [VLOT] IS NULL) OR ([VLOT] = @Original_VLOT)) AND ((@IsNull_REMARK = 1 AND [REMARK] IS NULL) OR ([REMARK] = @Original_REMARK)) AND ((@IsNull_MC = 1 AND [MC] IS NULL) OR ([MC] = @Original_MC)) AND ((@IsNull_PARTNO = 1 AND [PARTNO] IS NULL) OR ([PARTNO] = @Original_PARTNO)) AND ((@IsNull_CUSTCODE = 1 AND [CUSTCODE] IS NULL) OR ([CUSTCODE] = @Original_CUSTCODE)) AND ((@IsNull_ATIME = 1 AND [ATIME] IS NULL) OR ([ATIME] = @Original_ATIME)) AND ((@IsNull_BATCH = 1 AND [BATCH] IS NULL) OR ([BATCH] = @Original_BATCH)) AND ((@IsNull_qtymax = 1 AND [qtymax] IS NULL) OR ([qtymax] = @Original_qtymax)) AND ((@IsNull_GUID = 1 AND [GUID] IS NULL) OR ([GUID] = @Original_GUID)))</CommandText>
|
||||
@@ -126,7 +126,7 @@
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZPL, POS, LOC, ANGLE, QTY, QTY0, wdate, VNAME, PRNATTACH, PRNVALID, PTIME, MFGDATE, VLOT, REMARK,
|
||||
MC, PARTNO, CUSTCODE, ATIME, BATCH, qtymax, GUID, iNBOUND, MCN, target
|
||||
FROM Component_Reel_Result WITH (NOLOCK)
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (CONVERT(varchar(10), wdate, 120) BETWEEN @sd AND @ed) AND (ISNULL(MC, '') = @mc)
|
||||
ORDER BY wdate DESC, idx</CommandText>
|
||||
<Parameters>
|
||||
@@ -231,7 +231,11 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy50" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetBy50" GeneratorSourceName="FillBy50" GetMethodModifier="Public" GetMethodName="GetBy50" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetBy50" UserSourceName="FillBy50">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT TOP (50) ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate FROM Component_Reel_Result WITH (NOLOCK) WHERE (CONVERT (varchar(10), wdate, 120) BETWEEN @sd AND @ed) AND (ISNULL(MC, '') = @mc) ORDER BY wdate DESC</CommandText>
|
||||
<CommandText>SELECT TOP (50) ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID,
|
||||
RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (CONVERT(varchar(10), wdate, 120) BETWEEN @sd AND @ed) AND (ISNULL(MC, '') = @mc)
|
||||
ORDER BY wdate DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sd" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="ed" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -243,9 +247,13 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByAllGUID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByAllGUID" GeneratorSourceName="FillByAllGUID" GetMethodModifier="Public" GetMethodName="GetByAllGUID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByAllGUID" UserSourceName="FillByAllGUID">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate FROM Component_Reel_Result WITH (NOLOCK) WHERE (GUID = @guid) AND (ISNULL(MC, '') = @mc) AND (PRNATTACH = 1) AND (PRNVALID = 1) ORDER BY wdate DESC</CommandText>
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0,
|
||||
RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (GUID = @guid) AND (ISNULL(MC, '') = @mc) AND (PRNATTACH = 1) AND (PRNVALID = 1)
|
||||
ORDER BY wdate DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="guid" ColumnName="GUID" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@guid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="GUID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="guid" ColumnName="GUID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@guid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="GUID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
@@ -254,9 +262,12 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByJGUID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByJGUID" GeneratorSourceName="FillByJGUID" GetMethodModifier="Public" GetMethodName="GetByJGUID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByJGUID" UserSourceName="FillByJGUID">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate FROM Component_Reel_Result WITH (NOLOCK) WHERE (JGUID = @jguid)</CommandText>
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0,
|
||||
RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (JGUID = @jguid)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="jguid" ColumnName="JGUID" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@jguid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="JGUID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="jguid" ColumnName="JGUID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@jguid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="JGUID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -264,10 +275,14 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByLastVLotOne" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByLastVLotOne" GeneratorSourceName="FillByLastVLotOne" GetMethodModifier="Public" GetMethodName="GetByLastVLotOne" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByLastVLotOne" UserSourceName="FillByLastVLotOne">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT TOP (1) ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate FROM Component_Reel_Result WITH (NOLOCK) WHERE (MC = @mc) AND (VLOT = @vlot) ORDER BY wdate DESC</CommandText>
|
||||
<CommandText>SELECT TOP (1) ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID,
|
||||
RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (MC = @mc) AND (VLOT = @vlot)
|
||||
ORDER BY wdate DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="vlot" ColumnName="VLOT" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@vlot" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="VLOT" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="vlot" ColumnName="VLOT" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@vlot" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="VLOT" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -275,7 +290,11 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByLen7" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByLen7" GeneratorSourceName="FillByLen7" GetMethodModifier="Public" GetMethodName="GetByLen7" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByLen7" UserSourceName="FillByLen7">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT TOP (50) ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate FROM Component_Reel_Result WITH (NOLOCK) WHERE (CONVERT (varchar(10), wdate, 120) BETWEEN @sd AND @ed) AND (ISNULL(MC, '') = @mc) ORDER BY wdate DESC</CommandText>
|
||||
<CommandText>SELECT TOP (50) ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID,
|
||||
RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (CONVERT(varchar(10), wdate, 120) BETWEEN @sd AND @ed) AND (ISNULL(MC, '') = @mc)
|
||||
ORDER BY wdate DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sd" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="ed" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -289,11 +308,11 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZPL, POS, LOC, ANGLE, QTY, QTY0, wdate, VNAME, PRNATTACH, PRNVALID, PTIME, MFGDATE, VLOT, REMARK,
|
||||
MC, PARTNO, CUSTCODE, ATIME, BATCH, qtymax, GUID, iNBOUND, MCN, target
|
||||
FROM Component_Reel_Result WITH (NOLOCK)
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (MC = @mc) AND (CONVERT(varchar(10), wdate, 120) BETWEEN @sd AND @ed) AND (ISNULL(QR, '') LIKE @search)
|
||||
ORDER BY wdate DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sd" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="ed" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="search" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@search" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -304,11 +323,15 @@ ORDER BY wdate DESC</CommandText>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByValid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByValid" GeneratorSourceName="FillByValid" GetMethodModifier="Public" GetMethodName="GetByValid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByValid" UserSourceName="FillByValid">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate FROM Component_Reel_Result WITH (NOLOCK) WHERE (STIME BETWEEN @sd AND @ed) AND (MC = @mc) AND (ISNULL(PRNVALID, 0) = 1) AND (ISNULL(PRNATTACH, 0) = 1) ORDER BY wdate DESC, idx</CommandText>
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0,
|
||||
RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (STIME BETWEEN @sd AND @ed) AND (MC = @mc) AND (ISNULL(PRNVALID, 0) = 1) AND (ISNULL(PRNATTACH, 0) = 1)
|
||||
ORDER BY wdate DESC, idx</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sd" ColumnName="STIME" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="ed" ColumnName="STIME" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sd" ColumnName="STIME" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="ed" ColumnName="STIME" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -316,12 +339,16 @@ ORDER BY wdate DESC</CommandText>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByValidGuid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByValidGuid" GeneratorSourceName="FillByValidGuid" GetMethodModifier="Public" GetMethodName="GetByValidGuid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByValidGuid" UserSourceName="FillByValidGuid">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0, RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate FROM Component_Reel_Result WITH (NOLOCK) WHERE (STIME BETWEEN @sd AND @ed) AND (MC = @mc) AND (ISNULL(PRNVALID, 0) = 1) AND (ISNULL(PRNATTACH, 0) = 1) AND (GUID = @guid) ORDER BY wdate DESC, idx</CommandText>
|
||||
<CommandText>SELECT ANGLE, ATIME, BATCH, CUSTCODE, ETIME, GUID, JGUID, JTYPE, LOC, MC, MCN, MFGDATE, PARTNO, PDATE, POS, PRNATTACH, PRNVALID, PTIME, QR, QTY, QTY0, REMARK, RID, RID0,
|
||||
RSN, SID, SID0, STIME, VLOT, VNAME, ZPL, iNBOUND, idx, qtymax, target, wdate
|
||||
FROM K4EE_Component_Reel_Result WITH (NOLOCK)
|
||||
WHERE (STIME BETWEEN @sd AND @ed) AND (MC = @mc) AND (ISNULL(PRNVALID, 0) = 1) AND (ISNULL(PRNATTACH, 0) = 1) AND (GUID = @guid)
|
||||
ORDER BY wdate DESC, idx</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sd" ColumnName="STIME" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="ed" ColumnName="STIME" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="guid" ColumnName="GUID" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@guid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="GUID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sd" ColumnName="STIME" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="ed" ColumnName="STIME" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="guid" ColumnName="GUID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@guid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="GUID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -330,11 +357,11 @@ ORDER BY wdate DESC</CommandText>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT COUNT(*) AS Expr1
|
||||
FROM Component_Reel_Result
|
||||
FROM K4EE_Component_Reel_Result WITH (no lock)
|
||||
WHERE (iNBOUND = 'OK') AND (SID = @sid) AND (BATCH = @batch) AND (MC <> 'R0')</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="batch" ColumnName="BATCH" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@batch" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="BATCH" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="batch" ColumnName="BATCH" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@batch" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="BATCH" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -343,21 +370,21 @@ WHERE (iNBOUND = 'OK') AND (SID = @sid) AND (BATCH = @batch) AND (MC <> '
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT TOP (1) ISNULL(POS, '') AS Expr1
|
||||
FROM Component_Reel_Result
|
||||
FROM K4EE_Component_Reel_Result WITH (no lock)
|
||||
WHERE (MC = @mc) AND (SID = @sid) AND (ISNULL(POS, '') <> '')
|
||||
ORDER BY wdate DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_RegExRuleTableAdapter" GeneratorDataComponentClassName="Component_Reel_RegExRuleTableAdapter" Name="Component_Reel_RegExRule" UserDataComponentName="Component_Reel_RegExRuleTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_RegExRuleTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_RegExRuleTableAdapter" Name="K4EE_Component_Reel_RegExRule" UserDataComponentName="K4EE_Component_Reel_RegExRuleTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_RegExRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_RegExRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_RegExRule] WHERE (([Id] = @Original_Id) AND ((@IsNull_Seq = 1 AND [Seq] IS NULL) OR ([Seq] = @Original_Seq)) AND ((@IsNull_CustCode = 1 AND [CustCode] IS NULL) OR ([CustCode] = @Original_CustCode)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Symbol = 1 AND [Symbol] IS NULL) OR ([Symbol] = @Original_Symbol)) AND ((@IsNull_Groups = 1 AND [Groups] IS NULL) OR ([Groups] = @Original_Groups)) AND ((@IsNull_IsEnable = 1 AND [IsEnable] IS NULL) OR ([IsEnable] = @Original_IsEnable)) AND ((@IsNull_IsTrust = 1 AND [IsTrust] IS NULL) OR ([IsTrust] = @Original_IsTrust)) AND ((@IsNull_IsAmkStd = 1 AND [IsAmkStd] IS NULL) OR ([IsAmkStd] = @Original_IsAmkStd)) AND ((@IsNull_IsIgnore = 1 AND [IsIgnore] IS NULL) OR ([IsIgnore] = @Original_IsIgnore)))</CommandText>
|
||||
@@ -405,7 +432,7 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrust, IsAmkStd, IsIgnore
|
||||
FROM Component_Reel_RegExRule
|
||||
FROM K4EE_Component_Reel_RegExRule
|
||||
WHERE (ISNULL(CustCode, '') LIKE @custcode)
|
||||
ORDER BY CustCode, Seq, Description</CommandText>
|
||||
<Parameters>
|
||||
@@ -447,7 +474,7 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsAmkStd" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsAmkStd" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsIgnore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsIgnore" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsIgnore" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsIgnore" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="EE.dbo.Component_Reel_RegExRule" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -470,7 +497,8 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_RegExRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillAll" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetAll" GeneratorSourceName="FillAll" GetMethodModifier="Public" GetMethodName="GetAll" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetAll" UserSourceName="FillAll">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CustCode, Description, Groups, Id, IsAmkStd, IsEnable, IsIgnore, IsTrust, Pattern, Seq, Symbol FROM Component_Reel_RegExRule
|
||||
<CommandText>SELECT CustCode, Description, Groups, Id, IsAmkStd, IsEnable, IsIgnore, IsTrust, Pattern, Seq, Symbol
|
||||
FROM K4EE_Component_Reel_RegExRule
|
||||
ORDER BY CustCode, Seq, Description</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
@@ -479,7 +507,11 @@ ORDER BY CustCode, Seq, Description</CommandText>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_RegExRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByWithSample" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByWithSample" GeneratorSourceName="FillByWithSample" GetMethodModifier="Public" GetMethodName="GetByWithSample" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByWithSample" UserSourceName="FillByWithSample">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CustCode, Description, Groups, Id, IsAmkStd, IsEnable, IsIgnore, IsTrust, Pattern, Seq, Symbol FROM Component_Reel_RegExRule WHERE (ISNULL(CustCode, '') = '') OR (ISNULL(CustCode, '') LIKE @custcode) ORDER BY CustCode, Seq, Description</CommandText>
|
||||
<CommandText>SELECT CustCode, Description, Groups, Id, IsAmkStd, IsEnable, IsIgnore, IsTrust, Pattern, Seq, Symbol
|
||||
FROM K4EE_Component_Reel_RegExRule
|
||||
WHERE (ISNULL(CustCode, '') = '') OR
|
||||
(ISNULL(CustCode, '') LIKE @custcode)
|
||||
ORDER BY CustCode, Seq, Description</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="custcode" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@custcode" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
@@ -490,7 +522,7 @@ ORDER BY CustCode, Seq, Description</CommandText>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CustCode, Description, Groups, Id, IsAmkStd, IsEnable, IsIgnore, IsTrust, Pattern, Seq, Symbol
|
||||
FROM Component_Reel_RegExRule
|
||||
FROM K4EE_Component_Reel_RegExRule
|
||||
WHERE (ISNULL(CustCode, '') LIKE @custcode) AND (ISNULL(IsIgnore, 0) = 1)
|
||||
ORDER BY CustCode, Seq, Description</CommandText>
|
||||
<Parameters>
|
||||
@@ -501,9 +533,9 @@ ORDER BY CustCode, Seq, Description</CommandText>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_SID_ConvertTableAdapter" GeneratorDataComponentClassName="Component_Reel_SID_ConvertTableAdapter" Name="Component_Reel_SID_Convert" UserDataComponentName="Component_Reel_SID_ConvertTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_SID_ConvertTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_SID_ConvertTableAdapter" Name="K4EE_Component_Reel_SID_Convert" UserDataComponentName="K4EE_Component_Reel_SID_ConvertTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_SID_Convert" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_SID_Convert" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_SID_Convert] WHERE (([idx] = @Original_idx) AND ((@IsNull_MC = 1 AND [MC] IS NULL) OR ([MC] = @Original_MC)) AND ((@IsNull_Chk = 1 AND [Chk] IS NULL) OR ([Chk] = @Original_Chk)) AND ((@IsNull_SIDFrom = 1 AND [SIDFrom] IS NULL) OR ([SIDFrom] = @Original_SIDFrom)) AND ((@IsNull_SIDTo = 1 AND [SIDTo] IS NULL) OR ([SIDTo] = @Original_SIDTo)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)))</CommandText>
|
||||
@@ -541,7 +573,7 @@ SELECT idx, MC, Chk, SIDFrom, SIDTo, Remark, wdate FROM Component_Reel_SID_Conve
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, MC, Chk, SIDFrom, SIDTo, Remark, wdate
|
||||
FROM Component_Reel_SID_Convert WITH (NOLOCK)
|
||||
FROM K4EE_Component_Reel_SID_Convert WITH (NOLOCK)
|
||||
WHERE (ISNULL(SIDFrom, '') <> '') AND (ISNULL(SIDTo, '') <> '') AND (ISNULL(SIDFrom, '') <> ISNULL(SIDTo, ''))
|
||||
ORDER BY SIDFrom</CommandText>
|
||||
<Parameters />
|
||||
@@ -588,9 +620,9 @@ SELECT idx, MC, Chk, SIDFrom, SIDTo, Remark, wdate FROM Component_Reel_SID_Conve
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_SID_InformationTableAdapter" GeneratorDataComponentClassName="Component_Reel_SID_InformationTableAdapter" Name="Component_Reel_SID_Information" UserDataComponentName="Component_Reel_SID_InformationTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_SID_InformationTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_SID_InformationTableAdapter" Name="K4EE_Component_Reel_SID_Information" UserDataComponentName="K4EE_Component_Reel_SID_InformationTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_SID_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_SID_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_SID_Information] WHERE (([idx] = @Original_idx) AND ((@IsNull_MC = 1 AND [MC] IS NULL) OR ([MC] = @Original_MC)) AND ([SID] = @Original_SID) AND ([CustCode] = @Original_CustCode) AND ([PartNo] = @Original_PartNo) AND ((@IsNull_CustName = 1 AND [CustName] IS NULL) OR ([CustName] = @Original_CustName)) AND ((@IsNull_VenderName = 1 AND [VenderName] IS NULL) OR ([VenderName] = @Original_VenderName)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)) AND ((@IsNull_batch = 1 AND [batch] IS NULL) OR ([batch] = @Original_batch)) AND ((@IsNull_qtymax = 1 AND [qtymax] IS NULL) OR ([qtymax] = @Original_qtymax)) AND ((@IsNull_VenderLot = 1 AND [VenderLot] IS NULL) OR ([VenderLot] = @Original_VenderLot)) AND ((@IsNull_attach = 1 AND [attach] IS NULL) OR ([attach] = @Original_attach)))</CommandText>
|
||||
@@ -643,11 +675,11 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batch, qtymax, VenderLot, attach
|
||||
FROM Component_Reel_SID_Information WITH (NOLOCK)
|
||||
FROM K4EE_Component_Reel_SID_Information WITH (NOLOCK)
|
||||
WHERE (MC = @mcname)
|
||||
ORDER BY idx</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -690,7 +722,7 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_VenderLot" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VenderLot" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_attach" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="attach" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_attach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="attach" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -712,7 +744,7 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc
|
||||
<Mapping SourceColumn="attach" DataSetColumn="attach" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteAll" Modifier="Public" Name="DeleteAll" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteAll">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteAll" Modifier="Public" Name="DeleteAll" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteAll">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>DELETE FROM [Component_Reel_SID_Information] WHERE mc = @mcname</CommandText>
|
||||
@@ -721,14 +753,25 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>DELETE FROM K4EE_Component_Reel_SID_Information
|
||||
WHERE (MC = @mcname)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_SID_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBySID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetBySID" GeneratorSourceName="FillBySID" GetMethodModifier="Public" GetMethodName="GetBySID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetBySID" UserSourceName="FillBySID">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CustCode, CustName, MC, PartNo, Remark, SID, VenderLot, VenderName, attach, batch, idx, qtymax, wdate FROM Component_Reel_SID_Information WITH (NOLOCK) WHERE (MC = @mcname) AND (SID = @sid)</CommandText>
|
||||
<CommandText>SELECT CustCode, CustName, MC, PartNo, Remark, SID, VenderLot, VenderName, attach, batch, idx, qtymax, wdate
|
||||
FROM K4EE_Component_Reel_SID_Information WITH (NOLOCK)
|
||||
WHERE (MC = @mcname) AND (SID = @sid)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -736,15 +779,17 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_SID_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBySIDNoCustCode" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbySIDNoCustCode" GeneratorSourceName="FillBySIDNoCustCode" GetMethodModifier="Public" GetMethodName="GetbySIDNoCustCode" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbySIDNoCustCode" UserSourceName="FillBySIDNoCustCode">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT CustCode, CustName, MC, PartNo, Remark, SID, VenderLot, VenderName, attach, batch, idx, qtymax, wdate FROM Component_Reel_SID_Information WITH (NOLOCK) WHERE (MC = @mcname) AND (SID = @sid) AND (ISNULL(CustCode, '') <> '')</CommandText>
|
||||
<CommandText>SELECT CustCode, CustName, MC, PartNo, Remark, SID, VenderLot, VenderName, attach, batch, idx, qtymax, wdate
|
||||
FROM K4EE_Component_Reel_SID_Information WITH (NOLOCK)
|
||||
WHERE (MC = @mcname) AND (SID = @sid) AND (ISNULL(CustCode, '') <> '')</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="MakeIBData" Modifier="Public" Name="MakeIBData" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="MakeIBData">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_SID_Information" DbObjectType="Table" GenerateShortCommands="true" GeneratorSourceName="MakeIBData" Modifier="Public" Name="MakeIBData" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="MakeIBData">
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>insert into Component_Reel_SID_Information(mc,sid,custcode,partno,custname,vendername,venderlot,printposition,remark,mfg,qtymax,batch,wdate)
|
||||
@@ -756,12 +801,24 @@ where mc = @mcname</CommandText>
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>INSERT INTO K4EE_Component_Reel_SID_Information
|
||||
(MC, SID, CustCode, PartNo, CustName, VenderName, VenderLot, PrintPosition, Remark, MFG, qtymax, batch, wdate)
|
||||
SELECT 'IB' AS Expr1, SID, CustCode, PartNo, CustName, VenderName, VenderLot, PrintPosition, 'disable ECS' AS Expr2, MFG, qtymax, batch, wdate
|
||||
FROM K4EE_Component_Reel_SID_Information AS Component_Reel_SID_Information_1
|
||||
WHERE (MC = @mcname)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_PreSetTableAdapter" GeneratorDataComponentClassName="Component_Reel_PreSetTableAdapter" Name="Component_Reel_PreSet" UserDataComponentName="Component_Reel_PreSetTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_PreSetTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_PreSetTableAdapter" Name="K4EE_Component_Reel_PreSet" UserDataComponentName="K4EE_Component_Reel_PreSetTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_PreSet" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_PreSet" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_PreSet] WHERE (([idx] = @Original_idx) AND ((@IsNull_MC = 1 AND [MC] IS NULL) OR ([MC] = @Original_MC)) AND ([Title] = @Original_Title) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)) AND ((@IsNull_vOption = 1 AND [vOption] IS NULL) OR ([vOption] = @Original_vOption)) AND ((@IsNull_vJobInfo = 1 AND [vJobInfo] IS NULL) OR ([vJobInfo] = @Original_vJobInfo)) AND ((@IsNull_vSidInfo = 1 AND [vSidInfo] IS NULL) OR ([vSidInfo] = @Original_vSidInfo)) AND ((@IsNull_vServerWrite = 1 AND [vServerWrite] IS NULL) OR ([vServerWrite] = @Original_vServerWrite)) AND ((@IsNull_jobtype = 1 AND [jobtype] IS NULL) OR ([jobtype] = @Original_jobtype)) AND ((@IsNull_bypasssid = 1 AND [bypasssid] IS NULL) OR ([bypasssid] = @Original_bypasssid)))</CommandText>
|
||||
@@ -810,7 +867,7 @@ SELECT idx, MC, Title, Remark, wdate, vOption, vJobInfo, vSidInfo, vServerWrite,
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, MC, Title, Remark, wdate, vOption, vJobInfo, vSidInfo, vServerWrite, jobtype, bypasssid
|
||||
FROM Component_Reel_PreSet
|
||||
FROM K4EE_Component_Reel_PreSet
|
||||
WHERE (ISNULL(MC, '') = @mc)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="mc" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -852,7 +909,7 @@ SELECT idx, MC, Title, Remark, wdate, vOption, vJobInfo, vSidInfo, vServerWrite,
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_jobtype" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="jobtype" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_bypasssid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="bypasssid" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_bypasssid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="bypasssid" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Component_Reel_PreSet" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -873,9 +930,9 @@ SELECT idx, MC, Title, Remark, wdate, vOption, vJobInfo, vSidInfo, vServerWrite,
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_CustInfoTableAdapter" GeneratorDataComponentClassName="Component_Reel_CustInfoTableAdapter" Name="Component_Reel_CustInfo" UserDataComponentName="Component_Reel_CustInfoTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_CustInfoTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_CustInfoTableAdapter" Name="K4EE_Component_Reel_CustInfo" UserDataComponentName="K4EE_Component_Reel_CustInfoTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_CustInfo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_CustInfo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_CustInfo] WHERE (([code] = @Original_code) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)))</CommandText>
|
||||
@@ -899,7 +956,7 @@ SELECT code, name FROM Component_Reel_CustInfo WHERE (code = @code)</CommandText
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT code, name
|
||||
FROM Component_Reel_CustInfo WITH (NOLOCK)</CommandText>
|
||||
FROM K4EE_Component_Reel_CustInfo WITH (NOLOCK)</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -926,11 +983,11 @@ SELECT code, name FROM Component_Reel_CustInfo WHERE (code = @code)</CommandText
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ResultSummaryTableAdapter" GeneratorDataComponentClassName="ResultSummaryTableAdapter" Name="ResultSummary" UserDataComponentName="ResultSummaryTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_Result" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT PARTNO, VLOT, COUNT(*) AS QTY, SUM(QTY) / 1000 AS KPC
|
||||
FROM Component_Reel_Result
|
||||
FROM K4EE_Component_Reel_Result
|
||||
WHERE (ISNULL(MC, '') = @mc) AND (PRNATTACH = 1) AND (CONVERT(varchar(10), STIME, 120) BETWEEN @sd AND @ed)
|
||||
GROUP BY PARTNO, VLOT
|
||||
ORDER BY PARTNO, VLOT</CommandText>
|
||||
@@ -951,9 +1008,9 @@ ORDER BY PARTNO, VLOT</CommandText>
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_Print_InformationTableAdapter" GeneratorDataComponentClassName="Component_Reel_Print_InformationTableAdapter" Name="Component_Reel_Print_Information" UserDataComponentName="Component_Reel_Print_InformationTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_Print_InformationTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_Print_InformationTableAdapter" Name="K4EE_Component_Reel_Print_Information" UserDataComponentName="K4EE_Component_Reel_Print_InformationTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_Print_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_Print_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_Print_Information] WHERE (([idx] = @Original_idx) AND ((@IsNull_MC = 1 AND [MC] IS NULL) OR ([MC] = @Original_MC)) AND ([SID] = @Original_SID) AND ((@IsNull_PrintPosition = 1 AND [PrintPosition] IS NULL) OR ([PrintPosition] = @Original_PrintPosition)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)))</CommandText>
|
||||
@@ -987,10 +1044,10 @@ SELECT idx, MC, SID, PrintPosition, Remark, wdate FROM Component_Reel_Print_Info
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idx, MC, SID, PrintPosition, Remark, wdate
|
||||
FROM Component_Reel_Print_Information WITH (NOLOCK)
|
||||
FROM K4EE_Component_Reel_Print_Information WITH (NOLOCK)
|
||||
WHERE (MC = @mc)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mc" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_Print_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mc" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_Print_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -1033,23 +1090,23 @@ SELECT idx, MC, SID, PrintPosition, Remark, wdate FROM Component_Reel_Print_Info
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT idx, MC, SID, PrintPosition, Remark, wdate
|
||||
FROM Component_Reel_Print_Information WITH (NOLOCK)
|
||||
FROM K4EE_Component_Reel_Print_Information WITH (NOLOCK)
|
||||
WHERE (MC = @mc) AND (SID = @sid)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mc" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_Print_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_Print_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mc" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_Print_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mc" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Print_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Component_Reel_PrintRegExRuleTableAdapter" GeneratorDataComponentClassName="Component_Reel_PrintRegExRuleTableAdapter" Name="Component_Reel_PrintRegExRule" UserDataComponentName="Component_Reel_PrintRegExRuleTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="K4EE_Component_Reel_PrintRegExRuleTableAdapter" GeneratorDataComponentClassName="K4EE_Component_Reel_PrintRegExRuleTableAdapter" Name="K4EE_Component_Reel_PrintRegExRule" UserDataComponentName="K4EE_Component_Reel_PrintRegExRuleTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_PrintRegExRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_PrintRegExRule" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [Component_Reel_PrintRegExRule] WHERE (([Id] = @Original_Id) AND ((@IsNull_Seq = 1 AND [Seq] IS NULL) OR ([Seq] = @Original_Seq)) AND ((@IsNull_CustCode = 1 AND [CustCode] IS NULL) OR ([CustCode] = @Original_CustCode)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Symbol = 1 AND [Symbol] IS NULL) OR ([Symbol] = @Original_Symbol)) AND ((@IsNull_Groups = 1 AND [Groups] IS NULL) OR ([Groups] = @Original_Groups)) AND ((@IsNull_IsEnable = 1 AND [IsEnable] IS NULL) OR ([IsEnable] = @Original_IsEnable)) AND ((@IsNull_IsTrust = 1 AND [IsTrust] IS NULL) OR ([IsTrust] = @Original_IsTrust)) AND ((@IsNull_IsAmkStd = 1 AND [IsAmkStd] IS NULL) OR ([IsAmkStd] = @Original_IsAmkStd)) AND ((@IsNull_IsIgnore = 1 AND [IsIgnore] IS NULL) OR ([IsIgnore] = @Original_IsIgnore)))</CommandText>
|
||||
<CommandText>DELETE FROM [K4EE_Component_Reel_PrintRegExRule] WHERE (([Id] = @Original_Id) AND ((@IsNull_Seq = 1 AND [Seq] IS NULL) OR ([Seq] = @Original_Seq)) AND ((@IsNull_CustCode = 1 AND [CustCode] IS NULL) OR ([CustCode] = @Original_CustCode)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Symbol = 1 AND [Symbol] IS NULL) OR ([Symbol] = @Original_Symbol)) AND ((@IsNull_Groups = 1 AND [Groups] IS NULL) OR ([Groups] = @Original_Groups)) AND ((@IsNull_IsEnable = 1 AND [IsEnable] IS NULL) OR ([IsEnable] = @Original_IsEnable)) AND ((@IsNull_IsTrust = 1 AND [IsTrust] IS NULL) OR ([IsTrust] = @Original_IsTrust)) AND ((@IsNull_IsAmkStd = 1 AND [IsAmkStd] IS NULL) OR ([IsAmkStd] = @Original_IsAmkStd)) AND ((@IsNull_IsIgnore = 1 AND [IsIgnore] IS NULL) OR ([IsIgnore] = @Original_IsIgnore)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Seq" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Seq" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
@@ -1075,8 +1132,8 @@ WHERE (MC = @mc) AND (SID = @sid)</CommandText>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [Component_Reel_PrintRegExRule] ([Seq], [CustCode], [Description], [Symbol], [Pattern], [Groups], [IsEnable], [IsTrust], [IsAmkStd], [IsIgnore]) VALUES (@Seq, @CustCode, @Description, @Symbol, @Pattern, @Groups, @IsEnable, @IsTrust, @IsAmkStd, @IsIgnore);
|
||||
SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrust, IsAmkStd, IsIgnore FROM Component_Reel_PrintRegExRule WHERE (Id = SCOPE_IDENTITY())</CommandText>
|
||||
<CommandText>INSERT INTO [K4EE_Component_Reel_PrintRegExRule] ([Seq], [CustCode], [Description], [Symbol], [Pattern], [Groups], [IsEnable], [IsTrust], [IsAmkStd], [IsIgnore]) VALUES (@Seq, @CustCode, @Description, @Symbol, @Pattern, @Groups, @IsEnable, @IsTrust, @IsAmkStd, @IsIgnore);
|
||||
SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrust, IsAmkStd, IsIgnore FROM K4EE_Component_Reel_PrintRegExRule WHERE (Id = SCOPE_IDENTITY()) ORDER BY Id</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Seq" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Seq" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@CustCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="CustCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -1092,16 +1149,17 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT Component_Reel_PrintRegExRule.*
|
||||
FROM Component_Reel_PrintRegExRule</CommandText>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrust, IsAmkStd, IsIgnore
|
||||
FROM K4EE_Component_Reel_PrintRegExRule
|
||||
ORDER BY Id</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [Component_Reel_PrintRegExRule] SET [Seq] = @Seq, [CustCode] = @CustCode, [Description] = @Description, [Symbol] = @Symbol, [Pattern] = @Pattern, [Groups] = @Groups, [IsEnable] = @IsEnable, [IsTrust] = @IsTrust, [IsAmkStd] = @IsAmkStd, [IsIgnore] = @IsIgnore WHERE (([Id] = @Original_Id) AND ((@IsNull_Seq = 1 AND [Seq] IS NULL) OR ([Seq] = @Original_Seq)) AND ((@IsNull_CustCode = 1 AND [CustCode] IS NULL) OR ([CustCode] = @Original_CustCode)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Symbol = 1 AND [Symbol] IS NULL) OR ([Symbol] = @Original_Symbol)) AND ((@IsNull_Groups = 1 AND [Groups] IS NULL) OR ([Groups] = @Original_Groups)) AND ((@IsNull_IsEnable = 1 AND [IsEnable] IS NULL) OR ([IsEnable] = @Original_IsEnable)) AND ((@IsNull_IsTrust = 1 AND [IsTrust] IS NULL) OR ([IsTrust] = @Original_IsTrust)) AND ((@IsNull_IsAmkStd = 1 AND [IsAmkStd] IS NULL) OR ([IsAmkStd] = @Original_IsAmkStd)) AND ((@IsNull_IsIgnore = 1 AND [IsIgnore] IS NULL) OR ([IsIgnore] = @Original_IsIgnore)));
|
||||
SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrust, IsAmkStd, IsIgnore FROM Component_Reel_PrintRegExRule WHERE (Id = @Id)</CommandText>
|
||||
<CommandText>UPDATE [K4EE_Component_Reel_PrintRegExRule] SET [Seq] = @Seq, [CustCode] = @CustCode, [Description] = @Description, [Symbol] = @Symbol, [Pattern] = @Pattern, [Groups] = @Groups, [IsEnable] = @IsEnable, [IsTrust] = @IsTrust, [IsAmkStd] = @IsAmkStd, [IsIgnore] = @IsIgnore WHERE (([Id] = @Original_Id) AND ((@IsNull_Seq = 1 AND [Seq] IS NULL) OR ([Seq] = @Original_Seq)) AND ((@IsNull_CustCode = 1 AND [CustCode] IS NULL) OR ([CustCode] = @Original_CustCode)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)) AND ((@IsNull_Symbol = 1 AND [Symbol] IS NULL) OR ([Symbol] = @Original_Symbol)) AND ((@IsNull_Groups = 1 AND [Groups] IS NULL) OR ([Groups] = @Original_Groups)) AND ((@IsNull_IsEnable = 1 AND [IsEnable] IS NULL) OR ([IsEnable] = @Original_IsEnable)) AND ((@IsNull_IsTrust = 1 AND [IsTrust] IS NULL) OR ([IsTrust] = @Original_IsTrust)) AND ((@IsNull_IsAmkStd = 1 AND [IsAmkStd] IS NULL) OR ([IsAmkStd] = @Original_IsAmkStd)) AND ((@IsNull_IsIgnore = 1 AND [IsIgnore] IS NULL) OR ([IsIgnore] = @Original_IsIgnore)));
|
||||
SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrust, IsAmkStd, IsIgnore FROM K4EE_Component_Reel_PrintRegExRule WHERE (Id = @Id) ORDER BY Id</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Seq" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Seq" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@CustCode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="CustCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -1132,7 +1190,7 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsAmkStd" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsAmkStd" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsIgnore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsIgnore" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsIgnore" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsIgnore" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="EE.dbo.Component_Reel_PrintRegExRule" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="Id" DataSourceName="WMS.dbo.K4EE_Component_Reel_PrintRegExRule" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -1153,18 +1211,18 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SidinfoCustGroupTableAdapter" GeneratorDataComponentClassName="SidinfoCustGroupTableAdapter" Name="SidinfoCustGroup" UserDataComponentName="SidinfoCustGroupTableAdapter">
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CustCodeListTableAdapter" GeneratorDataComponentClassName="CustCodeListTableAdapter" Name="CustCodeList" UserDataComponentName="CustCodeListTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="EE.dbo.Component_Reel_SID_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_SID_Information" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT CustCode
|
||||
FROM Component_Reel_SID_Information WITH (NOLOCK)
|
||||
FROM K4EE_Component_Reel_SID_Information WITH (NOLOCK)
|
||||
WHERE (MC = @mcname)
|
||||
GROUP BY CustCode
|
||||
ORDER BY CustCode</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -1180,16 +1238,27 @@ ORDER BY CustCode</CommandText>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetCustName" MethodsParameterType="CLR" Modifier="Public" Name="GetCustName" QueryType="Scalar" ScalarCallRetval="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetCustName">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>select isnull(name,'')
|
||||
from [Component_Reel_CustInfo]
|
||||
where code = @code</CommandText>
|
||||
<CommandText>SELECT ISNULL(name, '') AS Expr1
|
||||
FROM K4EE_Component_Reel_CustInfo WITH (no lock)
|
||||
WHERE (code = @code)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="code" ColumnName="code" DataSourceName="EE.dbo.Component_Reel_CustInfo" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@code" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="code" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="code" ColumnName="code" DataSourceName="WMS.dbo.K4EE_Component_Reel_CustInfo" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@code" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="code" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="SetCustName" MethodsParameterType="CLR" Modifier="Public" Name="SetCustName" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="SetCustName">
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.K4EE_Component_Reel_CustInfo" DbObjectType="Table" GenerateShortCommands="true" GeneratorSourceName="SetCustName" MethodsParameterType="CLR" Modifier="Public" Name="SetCustName" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="SetCustName">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>UPDATE K4EE_Component_Reel_CustInfo
|
||||
SET name = @newname
|
||||
WHERE (code = @custcode)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="newname" ColumnName="name" DataSourceName="WMS.dbo.K4EE_Component_Reel_CustInfo" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@newname" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="custcode" ColumnName="code" DataSourceName="WMS.dbo.K4EE_Component_Reel_CustInfo" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@custcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="code" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>UPDATE [Component_Reel_CustInfo] set name = @newname
|
||||
@@ -1204,12 +1273,12 @@ where code = @custcode</CommandText>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetSIDFromCustAndPart" MethodsParameterType="CLR" Modifier="Public" Name="GetSIDFromCustAndPart" QueryType="Scalar" ScalarCallRetval="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="GetSIDFromCustAndPart">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>select isnull(sid,'')
|
||||
from Component_Reel_SID_Information
|
||||
where custcode = @custcode and partno = @partno</CommandText>
|
||||
<CommandText>SELECT ISNULL(SID, '') AS Expr1
|
||||
FROM K4EE_Component_Reel_SID_Information WITH (no lock)
|
||||
WHERE (CustCode = @custcode) AND (PartNo = @partno)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="custcode" ColumnName="CustCode" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@custcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="CustCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="partno" ColumnName="PartNo" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@partno" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="PartNo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="custcode" ColumnName="CustCode" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@custcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="CustCode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="partno" ColumnName="PartNo" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@partno" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="PartNo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -1218,11 +1287,11 @@ where custcode = @custcode and partno = @partno</CommandText>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT TOP (1) ISNULL(VLOT, '') AS Expr1
|
||||
FROM Component_Reel_Result
|
||||
FROM K4EE_Component_Reel_Result WITH (no lock)
|
||||
WHERE (SID = @isd)
|
||||
ORDER BY wdate DESC</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="isd" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@isd" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="isd" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@isd" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -1230,10 +1299,12 @@ ORDER BY wdate DESC</CommandText>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="CheckSIDExist" MethodsParameterType="CLR" Modifier="Public" Name="CheckSIDExist" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="CheckSIDExist">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT count(*) FROM Component_Reel_SID_Information WHERE (MC = @mcname) and sid = @sid</CommandText>
|
||||
<CommandText>SELECT COUNT(*) AS Expr1
|
||||
FROM K4EE_Component_Reel_SID_Information WITH (no lock)
|
||||
WHERE (MC = @mcname) AND (SID = @sid)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_SID_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="mcname" ColumnName="MC" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@mcname" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="MC" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_SID_Information" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -1242,12 +1313,12 @@ ORDER BY wdate DESC</CommandText>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT COUNT(*) AS Expr1
|
||||
FROM Component_Reel_Result
|
||||
FROM K4EE_Component_Reel_Result WITH (no lock)
|
||||
WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @batch)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="stime" ColumnName="STIME" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@stime" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="SID" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="batch" ColumnName="BATCH" DataSourceName="EE.dbo.Component_Reel_Result" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@batch" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="BATCH" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="stime" ColumnName="STIME" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@stime" Precision="0" ProviderType="DateTime" Scale="0" Size="8" SourceColumn="STIME" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="SID" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="SID" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="batch" ColumnName="BATCH" DataSourceName="WMS.dbo.K4EE_Component_Reel_Result" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@batch" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="BATCH" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -1377,7 +1448,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_Result" msprop:Generator_RowEvHandlerName="Component_Reel_ResultRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_ResultRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_ResultRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_ResultRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_Result" msprop:Generator_RowChangedName="Component_Reel_ResultRowChanged" msprop:Generator_UserTableName="Component_Reel_Result" msprop:Generator_RowChangingName="Component_Reel_ResultRowChanging" msprop:Generator_RowClassName="Component_Reel_ResultRow" msprop:Generator_TableClassName="Component_Reel_ResultDataTable" msprop:Generator_TableVarName="tableComponent_Reel_Result">
|
||||
<xs:element name="K4EE_Component_Reel_Result" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_ResultRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_ResultRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_ResultRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_ResultRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_Result" msprop:Generator_RowChangedName="K4EE_Component_Reel_ResultRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_Result" msprop:Generator_RowChangingName="K4EE_Component_Reel_ResultRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_ResultRow" msprop:Generator_TableClassName="K4EE_Component_Reel_ResultDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_Result">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
@@ -1601,7 +1672,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_RegExRule" msprop:Generator_RowEvHandlerName="Component_Reel_RegExRuleRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_RegExRuleRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_RegExRuleRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_RegExRuleRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_RegExRule" msprop:Generator_RowChangedName="Component_Reel_RegExRuleRowChanged" msprop:Generator_UserTableName="Component_Reel_RegExRule" msprop:Generator_RowChangingName="Component_Reel_RegExRuleRowChanging" msprop:Generator_RowClassName="Component_Reel_RegExRuleRow" msprop:Generator_TableClassName="Component_Reel_RegExRuleDataTable" msprop:Generator_TableVarName="tableComponent_Reel_RegExRule">
|
||||
<xs:element name="K4EE_Component_Reel_RegExRule" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_RegExRuleRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_RegExRuleRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_RegExRuleRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_RegExRuleRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_RegExRule" msprop:Generator_RowChangedName="K4EE_Component_Reel_RegExRuleRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_RegExRule" msprop:Generator_RowChangingName="K4EE_Component_Reel_RegExRuleRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_RegExRuleRow" msprop:Generator_TableClassName="K4EE_Component_Reel_RegExRuleDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_RegExRule">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_UserColumnName="Id" msprop:Generator_ColumnVarNameInTable="columnId" type="xs:int" />
|
||||
@@ -1648,7 +1719,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_SID_Convert" msprop:Generator_RowEvHandlerName="Component_Reel_SID_ConvertRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_SID_ConvertRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_SID_ConvertRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_SID_ConvertRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_SID_Convert" msprop:Generator_RowChangedName="Component_Reel_SID_ConvertRowChanged" msprop:Generator_UserTableName="Component_Reel_SID_Convert" msprop:Generator_RowChangingName="Component_Reel_SID_ConvertRowChanging" msprop:Generator_RowClassName="Component_Reel_SID_ConvertRow" msprop:Generator_TableClassName="Component_Reel_SID_ConvertDataTable" msprop:Generator_TableVarName="tableComponent_Reel_SID_Convert">
|
||||
<xs:element name="K4EE_Component_Reel_SID_Convert" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_SID_ConvertRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_SID_ConvertRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_SID_ConvertRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_SID_ConvertRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_SID_Convert" msprop:Generator_RowChangedName="K4EE_Component_Reel_SID_ConvertRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_SID_Convert" msprop:Generator_RowChangingName="K4EE_Component_Reel_SID_ConvertRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_SID_ConvertRow" msprop:Generator_TableClassName="K4EE_Component_Reel_SID_ConvertDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_SID_Convert">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
@@ -1685,7 +1756,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_SID_Information" msprop:Generator_RowEvHandlerName="Component_Reel_SID_InformationRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_SID_InformationRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_SID_InformationRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_SID_InformationRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_SID_Information" msprop:Generator_RowChangedName="Component_Reel_SID_InformationRowChanged" msprop:Generator_UserTableName="Component_Reel_SID_Information" msprop:Generator_RowChangingName="Component_Reel_SID_InformationRowChanging" msprop:Generator_RowClassName="Component_Reel_SID_InformationRow" msprop:Generator_TableClassName="Component_Reel_SID_InformationDataTable" msprop:Generator_TableVarName="tableComponent_Reel_SID_Information">
|
||||
<xs:element name="K4EE_Component_Reel_SID_Information" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_SID_InformationRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_SID_InformationRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_SID_InformationRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_SID_InformationRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_SID_Information" msprop:Generator_RowChangedName="K4EE_Component_Reel_SID_InformationRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_SID_Information" msprop:Generator_RowChangingName="K4EE_Component_Reel_SID_InformationRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_SID_InformationRow" msprop:Generator_TableClassName="K4EE_Component_Reel_SID_InformationDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_SID_Information">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
@@ -1764,7 +1835,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_PreSet" msprop:Generator_RowEvHandlerName="Component_Reel_PreSetRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_PreSetRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_PreSetRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_PreSetRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_PreSet" msprop:Generator_RowChangedName="Component_Reel_PreSetRowChanged" msprop:Generator_UserTableName="Component_Reel_PreSet" msprop:Generator_RowChangingName="Component_Reel_PreSetRowChanging" msprop:Generator_RowClassName="Component_Reel_PreSetRow" msprop:Generator_TableClassName="Component_Reel_PreSetDataTable" msprop:Generator_TableVarName="tableComponent_Reel_PreSet">
|
||||
<xs:element name="K4EE_Component_Reel_PreSet" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_PreSetRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_PreSetRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_PreSetRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_PreSetRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_PreSet" msprop:Generator_RowChangedName="K4EE_Component_Reel_PreSetRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_PreSet" msprop:Generator_RowChangingName="K4EE_Component_Reel_PreSetRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_PreSetRow" msprop:Generator_TableClassName="K4EE_Component_Reel_PreSetDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_PreSet">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
@@ -1811,7 +1882,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_CustInfo" msprop:Generator_RowEvHandlerName="Component_Reel_CustInfoRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_CustInfoRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_CustInfoRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_CustInfoRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_CustInfo" msprop:Generator_RowChangedName="Component_Reel_CustInfoRowChanged" msprop:Generator_UserTableName="Component_Reel_CustInfo" msprop:Generator_RowChangingName="Component_Reel_CustInfoRowChanging" msprop:Generator_RowClassName="Component_Reel_CustInfoRow" msprop:Generator_TableClassName="Component_Reel_CustInfoDataTable" msprop:Generator_TableVarName="tableComponent_Reel_CustInfo">
|
||||
<xs:element name="K4EE_Component_Reel_CustInfo" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_CustInfoRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_CustInfoRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_CustInfoRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_CustInfoRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_CustInfo" msprop:Generator_RowChangedName="K4EE_Component_Reel_CustInfoRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_CustInfo" msprop:Generator_RowChangingName="K4EE_Component_Reel_CustInfoRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_CustInfoRow" msprop:Generator_TableClassName="K4EE_Component_Reel_CustInfoDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_CustInfo">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="code" msprop:Generator_ColumnPropNameInTable="codeColumn" msprop:Generator_ColumnPropNameInRow="code" msprop:Generator_UserColumnName="code" msprop:Generator_ColumnVarNameInTable="columncode">
|
||||
@@ -1853,7 +1924,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_Print_Information" msprop:Generator_RowEvHandlerName="Component_Reel_Print_InformationRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_Print_InformationRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_Print_InformationRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_Print_InformationRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_Print_Information" msprop:Generator_RowChangedName="Component_Reel_Print_InformationRowChanged" msprop:Generator_UserTableName="Component_Reel_Print_Information" msprop:Generator_RowChangingName="Component_Reel_Print_InformationRowChanging" msprop:Generator_RowClassName="Component_Reel_Print_InformationRow" msprop:Generator_TableClassName="Component_Reel_Print_InformationDataTable" msprop:Generator_TableVarName="tableComponent_Reel_Print_Information">
|
||||
<xs:element name="K4EE_Component_Reel_Print_Information" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_Print_InformationRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_Print_InformationRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_Print_InformationRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_Print_InformationRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_Print_Information" msprop:Generator_RowChangedName="K4EE_Component_Reel_Print_InformationRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_Print_Information" msprop:Generator_RowChangingName="K4EE_Component_Reel_Print_InformationRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_Print_InformationRow" msprop:Generator_TableClassName="K4EE_Component_Reel_Print_InformationDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_Print_Information">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
@@ -1889,7 +1960,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Component_Reel_PrintRegExRule" msprop:Generator_RowEvHandlerName="Component_Reel_PrintRegExRuleRowChangeEventHandler" msprop:Generator_RowDeletedName="Component_Reel_PrintRegExRuleRowDeleted" msprop:Generator_RowDeletingName="Component_Reel_PrintRegExRuleRowDeleting" msprop:Generator_RowEvArgName="Component_Reel_PrintRegExRuleRowChangeEvent" msprop:Generator_TablePropName="Component_Reel_PrintRegExRule" msprop:Generator_RowChangedName="Component_Reel_PrintRegExRuleRowChanged" msprop:Generator_UserTableName="Component_Reel_PrintRegExRule" msprop:Generator_RowChangingName="Component_Reel_PrintRegExRuleRowChanging" msprop:Generator_RowClassName="Component_Reel_PrintRegExRuleRow" msprop:Generator_TableClassName="Component_Reel_PrintRegExRuleDataTable" msprop:Generator_TableVarName="tableComponent_Reel_PrintRegExRule">
|
||||
<xs:element name="K4EE_Component_Reel_PrintRegExRule" msprop:Generator_RowEvHandlerName="K4EE_Component_Reel_PrintRegExRuleRowChangeEventHandler" msprop:Generator_RowDeletedName="K4EE_Component_Reel_PrintRegExRuleRowDeleted" msprop:Generator_RowDeletingName="K4EE_Component_Reel_PrintRegExRuleRowDeleting" msprop:Generator_RowEvArgName="K4EE_Component_Reel_PrintRegExRuleRowChangeEvent" msprop:Generator_TablePropName="K4EE_Component_Reel_PrintRegExRule" msprop:Generator_RowChangedName="K4EE_Component_Reel_PrintRegExRuleRowChanged" msprop:Generator_UserTableName="K4EE_Component_Reel_PrintRegExRule" msprop:Generator_RowChangingName="K4EE_Component_Reel_PrintRegExRuleRowChanging" msprop:Generator_RowClassName="K4EE_Component_Reel_PrintRegExRuleRow" msprop:Generator_TableClassName="K4EE_Component_Reel_PrintRegExRuleDataTable" msprop:Generator_TableVarName="tableK4EE_Component_Reel_PrintRegExRule">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_UserColumnName="Id" msprop:Generator_ColumnVarNameInTable="columnId" type="xs:int" />
|
||||
@@ -1936,7 +2007,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="SidinfoCustGroup" msprop:Generator_RowEvHandlerName="SidinfoCustGroupRowChangeEventHandler" msprop:Generator_RowDeletedName="SidinfoCustGroupRowDeleted" msprop:Generator_RowDeletingName="SidinfoCustGroupRowDeleting" msprop:Generator_RowEvArgName="SidinfoCustGroupRowChangeEvent" msprop:Generator_TablePropName="SidinfoCustGroup" msprop:Generator_RowChangedName="SidinfoCustGroupRowChanged" msprop:Generator_UserTableName="SidinfoCustGroup" msprop:Generator_RowChangingName="SidinfoCustGroupRowChanging" msprop:Generator_RowClassName="SidinfoCustGroupRow" msprop:Generator_TableClassName="SidinfoCustGroupDataTable" msprop:Generator_TableVarName="tableSidinfoCustGroup">
|
||||
<xs:element name="CustCodeList" msprop:Generator_RowEvHandlerName="CustCodeListRowChangeEventHandler" msprop:Generator_RowDeletedName="CustCodeListRowDeleted" msprop:Generator_RowDeletingName="CustCodeListRowDeleting" msprop:Generator_RowEvArgName="CustCodeListRowChangeEvent" msprop:Generator_TablePropName="CustCodeList" msprop:Generator_RowChangedName="CustCodeListRowChanged" msprop:Generator_UserTableName="CustCodeList" msprop:Generator_RowChangingName="CustCodeListRowChanging" msprop:Generator_RowClassName="CustCodeListRow" msprop:Generator_TableClassName="CustCodeListDataTable" msprop:Generator_TableVarName="tableCustCodeList">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="CustCode" msprop:Generator_ColumnPropNameInTable="CustCodeColumn" msprop:Generator_ColumnPropNameInRow="CustCode" msprop:Generator_UserColumnName="CustCode" msprop:Generator_ColumnVarNameInTable="columnCustCode">
|
||||
@@ -1984,8 +2055,8 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
<xs:selector xpath=".//mstns:SIDHistory" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_Result_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_Result" />
|
||||
<xs:unique name="K4EE_Component_Reel_Result_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_Result" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
<xs:unique name="InputDescription_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
@@ -2008,24 +2079,24 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
<xs:selector xpath=".//mstns:ModelList" />
|
||||
<xs:field xpath="mstns:Title" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_RegExRule_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_RegExRule" />
|
||||
<xs:unique name="K4EE_Component_Reel_RegExRule_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_RegExRule" />
|
||||
<xs:field xpath="mstns:Id" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_SID_Convert_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_SID_Convert" />
|
||||
<xs:unique name="K4EE_Component_Reel_SID_Convert_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_SID_Convert" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_SID_Information_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_SID_Information" />
|
||||
<xs:unique name="K4EE_Component_Reel_SID_Information_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_SID_Information" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_PreSet_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_PreSet" />
|
||||
<xs:unique name="K4EE_Component_Reel_PreSet_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_PreSet" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_CustInfo_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_CustInfo" />
|
||||
<xs:unique name="K4EE_Component_Reel_CustInfo_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_CustInfo" />
|
||||
<xs:field xpath="mstns:code" />
|
||||
</xs:unique>
|
||||
<xs:unique name="ResultSummary_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
@@ -2033,16 +2104,16 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @
|
||||
<xs:field xpath="mstns:PARTNO" />
|
||||
<xs:field xpath="mstns:VLOT" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_Print_Information_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_Print_Information" />
|
||||
<xs:unique name="K4EE_Component_Reel_Print_Information_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_Print_Information" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
<xs:unique name="Component_Reel_PrintRegExRule_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:Component_Reel_PrintRegExRule" />
|
||||
<xs:unique name="K4EE_Component_Reel_PrintRegExRule_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:K4EE_Component_Reel_PrintRegExRule" />
|
||||
<xs:field xpath="mstns:Id" />
|
||||
</xs:unique>
|
||||
<xs:unique name="SidinfoCustGroup_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:SidinfoCustGroup" />
|
||||
<xs:unique name="CustCodeList_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:CustCodeList" />
|
||||
<xs:field xpath="mstns:CustCode" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
|
||||
@@ -4,33 +4,33 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="117" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-139" ViewPortY="18" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Component_Reel_Result" ZOrder="1" X="11" Y="502" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Component_Reel_RegExRule" ZOrder="8" X="401" Y="216" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="252" />
|
||||
<Shape ID="DesignTable:Component_Reel_SID_Convert" ZOrder="7" X="327" Y="274" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:Component_Reel_SID_Information" ZOrder="14" X="895" Y="267" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="197" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Component_Reel_PreSet" ZOrder="16" X="868" Y="663" Height="305" Width="287" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:Component_Reel_CustInfo" ZOrder="3" X="856" Y="142" Height="115" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ResultSummary" ZOrder="12" X="307" Y="651" Height="153" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:Component_Reel_Print_Information" ZOrder="2" X="1008" Y="42" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:Component_Reel_PrintRegExRule" ZOrder="5" X="436" Y="427" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:SidinfoCustGroup" ZOrder="4" X="588" Y="532" Height="96" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
|
||||
<Shape ID="DesignTable:Users" ZOrder="25" X="342" Y="536" Height="87" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:MCModel" ZOrder="13" X="333" Y="112" Height="410" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="406" />
|
||||
<Shape ID="DesignTable:language" ZOrder="11" X="502" Y="80" Height="239" Width="134" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:OPModel" ZOrder="17" X="8" Y="281" Height="371" Width="152" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="367" />
|
||||
<Shape ID="DesignTable:BCDData" ZOrder="24" X="156" Y="140" Height="163" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:UserSID" ZOrder="23" X="170" Y="256" Height="68" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:MailFormat" ZOrder="22" X="179" Y="339" Height="49" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="45" />
|
||||
<Shape ID="DesignTable:MailRecipient" ZOrder="21" X="172" Y="414" Height="68" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:SIDHistory" ZOrder="20" X="0" Y="90" Height="182" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:InputDescription" ZOrder="19" X="0" Y="0" Height="143" Width="164" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="139" />
|
||||
<Shape ID="DesignTable:OutputDescription" ZOrder="15" X="168" Y="0" Height="182" Width="174" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:UserTable" ZOrder="18" X="336" Y="0" Height="86" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="82" />
|
||||
<Shape ID="DesignTable:ErrorDescription" ZOrder="10" X="639" Y="98" Height="105" Width="161" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="101" />
|
||||
<Shape ID="DesignTable:ModelList" ZOrder="9" X="670" Y="74" Height="48" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="44" />
|
||||
<Shape ID="DesignSources:QueriesTableAdapter" ZOrder="6" X="275" Y="569" Height="124" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="120" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_Result" ZOrder="20" X="-129" Y="198" Height="533" Width="313" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="275" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_RegExRule" ZOrder="11" X="-3" Y="234" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="252" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_SID_Convert" ZOrder="5" X="-67" Y="154" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_SID_Information" ZOrder="16" X="5" Y="229" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="197" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_PreSet" ZOrder="4" X="68" Y="68" Height="305" Width="287" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_CustInfo" ZOrder="21" X="123" Y="97" Height="115" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ResultSummary" ZOrder="12" X="-124" Y="28" Height="153" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_Print_Information" ZOrder="3" X="108" Y="81" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:K4EE_Component_Reel_PrintRegExRule" ZOrder="6" X="48" Y="39" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:CustCodeList" ZOrder="14" X="587" Y="115" Height="96" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
|
||||
<Shape ID="DesignTable:Users" ZOrder="17" X="645" Y="602" Height="87" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:MCModel" ZOrder="10" X="653" Y="596" Height="410" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="406" />
|
||||
<Shape ID="DesignTable:language" ZOrder="23" X="685" Y="603" Height="239" Width="134" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:OPModel" ZOrder="13" X="675" Y="601" Height="371" Width="152" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="367" />
|
||||
<Shape ID="DesignTable:BCDData" ZOrder="9" X="657" Y="586" Height="163" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
|
||||
<Shape ID="DesignTable:UserSID" ZOrder="25" X="671" Y="606" Height="68" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:MailFormat" ZOrder="18" X="673" Y="596" Height="49" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="45" />
|
||||
<Shape ID="DesignTable:MailRecipient" ZOrder="24" X="664" Y="596" Height="68" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:SIDHistory" ZOrder="7" X="666" Y="598" Height="182" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:InputDescription" ZOrder="8" X="662" Y="595" Height="143" Width="164" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="139" />
|
||||
<Shape ID="DesignTable:OutputDescription" ZOrder="19" X="658" Y="594" Height="182" Width="174" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:UserTable" ZOrder="2" X="662" Y="597" Height="86" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="82" />
|
||||
<Shape ID="DesignTable:ErrorDescription" ZOrder="15" X="654" Y="604" Height="105" Width="161" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="101" />
|
||||
<Shape ID="DesignTable:ModelList" ZOrder="22" X="683" Y="598" Height="48" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="44" />
|
||||
<Shape ID="DesignSources:QueriesTableAdapter" ZOrder="1" X="532" Y="260" Height="315" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="311" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
@@ -49,8 +49,9 @@ namespace Project.Dialog.Debug
|
||||
OPER_NAME = tboper.Text,
|
||||
HOST_NAME = System.Net.Dns.GetHostEntry("").HostName,
|
||||
};
|
||||
var rlt = Amkor.RestfulService.Inbound_label_attach_reel_info(reelinfo, out string errmsg);
|
||||
if (rlt == false) UTIL.MsgE(errmsg);
|
||||
UTIL.MsgE("미지원");
|
||||
//var rlt = Amkor.RestfulService.Inbound_label_attach_reel_info(reelinfo, out string errmsg);
|
||||
//if (rlt == false) UTIL.MsgE(errmsg);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1097,7 +1097,7 @@ namespace Project
|
||||
|
||||
private void toolStripButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dialog.fInput("모델명을 입력하세요",string.Empty);
|
||||
var f = new AR.Dialog.fInput("모델명을 입력하세요",string.Empty);
|
||||
if (f.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
//지정한 이름이있는지 확인한다.
|
||||
@@ -1422,7 +1422,7 @@ namespace Project
|
||||
return;
|
||||
}
|
||||
|
||||
var f = new Dialog.fTouchKeyFull("모델명 변경", dr.Title);
|
||||
var f = new AR.Dialog.fTouchKeyFull("모델명 변경", dr.Title);
|
||||
if (f.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
var valstr = f.tbInput.Text.Trim();
|
||||
|
||||
@@ -9,6 +9,7 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
|
||||
namespace Project.Dialog
|
||||
{
|
||||
@@ -851,7 +852,7 @@ namespace Project.Dialog
|
||||
if (tn == null) return;
|
||||
|
||||
var old = tn.Text.Trim();
|
||||
var f = new Dialog.fInput("입력",tn.Text);
|
||||
var f = new AR.Dialog.fInput("입력",tn.Text);
|
||||
if (f.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
if (f.ValueString.isEmpty()) return;
|
||||
|
||||
@@ -603,7 +603,7 @@ namespace Project
|
||||
|
||||
private void toolStripButton4_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dialog.fTouchKeyFull("모델명을 입력하세요", DateTime.Now.ToString("yyyyMMddHHmmss"));
|
||||
var f = new AR.Dialog.fTouchKeyFull("모델명을 입력하세요", DateTime.Now.ToString("yyyyMMddHHmmss"));
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
var newdr = this.ds1.OPModel.NewOPModelRow();
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Text.RegularExpressions;
|
||||
using AR;
|
||||
|
||||
namespace Project.Dialog
|
||||
{
|
||||
|
||||
@@ -3,175 +3,160 @@ using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using AR;
|
||||
|
||||
namespace Project.Dialog
|
||||
{
|
||||
public partial class fFinishJob : Form
|
||||
{
|
||||
public string Command = string.Empty;
|
||||
public partial class fFinishJob : Form
|
||||
{
|
||||
public string Command = string.Empty;
|
||||
|
||||
public fFinishJob()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.KeyPreview = true;
|
||||
this.KeyDown += (s1, e1) =>
|
||||
{
|
||||
if (e1.KeyCode == Keys.Escape)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
};
|
||||
if (System.Diagnostics.Debugger.IsAttached == true)
|
||||
{
|
||||
this.TopMost = false;
|
||||
}
|
||||
this.FormClosed += fFinishJob_FormClosed;
|
||||
}
|
||||
public fFinishJob()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.KeyPreview = true;
|
||||
this.KeyDown += (s1, e1) =>
|
||||
{
|
||||
if (e1.KeyCode == Keys.Escape)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
};
|
||||
if (System.Diagnostics.Debugger.IsAttached == true)
|
||||
{
|
||||
this.TopMost = false;
|
||||
}
|
||||
this.FormClosed += fFinishJob_FormClosed;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void fFinishJob_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
// Comm.WebService.Message -= WebService_Message;
|
||||
}
|
||||
void fFinishJob_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
// Comm.WebService.Message -= WebService_Message;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void __LoaD(object sender, EventArgs e)
|
||||
{
|
||||
this.Text = string.Format("금일 작업 목록 입니다({0})", DateTime.Now.ToShortDateString());
|
||||
private void __LoaD(object sender, EventArgs e)
|
||||
{
|
||||
this.Text = string.Format("금일 작업 목록 입니다({0})", DateTime.Now.ToShortDateString());
|
||||
|
||||
|
||||
if (AR.SETTING.Data.OnlineMode)
|
||||
{
|
||||
RefreshData();
|
||||
}
|
||||
if (AR.SETTING.Data.OnlineMode)
|
||||
{
|
||||
RefreshData();
|
||||
}
|
||||
|
||||
//lbCntL.Text = cntl.ToString();
|
||||
//lbCntR.Text = cntr.ToString();
|
||||
//lbSumQty.Text = qty.ToString();
|
||||
}
|
||||
//lbCntL.Text = cntl.ToString();
|
||||
//lbCntR.Text = cntr.ToString();
|
||||
//lbSumQty.Text = qty.ToString();
|
||||
}
|
||||
|
||||
void RefreshData()
|
||||
{
|
||||
void RefreshData()
|
||||
{
|
||||
var sd = DateTime.Parse(DateTime.Now.ToShortDateString() + " 00:00:00");
|
||||
var ed = DateTime.Parse(DateTime.Now.ToShortDateString() + " 23:59:59");
|
||||
|
||||
int cntl = 0;
|
||||
int cntr = 0;
|
||||
float qty = 0;
|
||||
if (PUB.Result.JobStartTime.Year != 1982) sd = PUB.Result.JobStartTime;
|
||||
if (PUB.Result.JobEndTime.Year != 1982) ed = PUB.Result.JobEndTime;
|
||||
|
||||
using (var db = new EEEntities())
|
||||
{
|
||||
var sd = DateTime.Parse(DateTime.Now.ToShortDateString() + " 00:00:00");
|
||||
var ed = DateTime.Parse(DateTime.Now.ToShortDateString() + " 23:59:59");
|
||||
label2.Text = string.Format("현 작업 정보({0}~{1})", sd.ToString("HH:mm:ss"), ed.ToString("HH:mm:ss"));
|
||||
|
||||
if (PUB.Result.JobStartTime.Year != 1982) sd = PUB.Result.JobStartTime;
|
||||
if (PUB.Result.JobEndTime.Year != 1982) ed = PUB.Result.JobEndTime;
|
||||
//현작업
|
||||
var ta = new DataSet1TableAdapters.Component_Reel_ResultTableAdapter();
|
||||
var list = ta.GetByValidGuid(sd, ed, AR.SETTING.Data.McName, PUB.Result.guid);
|
||||
//var list = db.Component_Reel_Result.Where(t => t.STIME >= sd && t.STIME <= ed && t.PRNVALID == true && t.PRNATTACH == true && t.MC == AR.SETTING.Data.McName);
|
||||
UpdateList(list, dataGridView1, dataGridView2);
|
||||
|
||||
label2.Text = string.Format("현 작업 정보({0}~{1})", sd.ToString("HH:mm:ss"), ed.ToString("HH:mm:ss"));
|
||||
//당일작업
|
||||
sd = DateTime.Parse(sd.ToShortDateString() + " 00:00:00");
|
||||
ed = DateTime.Parse(sd.ToShortDateString() + " 23:59:59");
|
||||
label3.Text = $"당일({sd.ToShortDateString()}) 작업 정보";
|
||||
var listday = ta.GetByValid(sd, ed, AR.SETTING.Data.McName);
|
||||
UpdateList(listday, dataGridView3, dataGridView4);
|
||||
}
|
||||
|
||||
//현작업
|
||||
var ta = new DataSet1TableAdapters.Component_Reel_ResultTableAdapter();
|
||||
var list = ta.GetByValidGuid(sd, ed, AR.SETTING.Data.McName,PUB.Result.guid);
|
||||
//var list = db.Component_Reel_Result.Where(t => t.STIME >= sd && t.STIME <= ed && t.PRNVALID == true && t.PRNATTACH == true && t.MC == AR.SETTING.Data.McName);
|
||||
UpdateList(list, dataGridView1, dataGridView2);
|
||||
void UpdateList(DataSet1.Component_Reel_ResultDataTable list, DataGridView dvS, DataGridView dvB)
|
||||
{
|
||||
dvS.Rows.Clear();
|
||||
dvB.Rows.Clear();
|
||||
|
||||
int sum_reel = 0;
|
||||
int sum_cntl = 0;
|
||||
int sum_cntr = 0;
|
||||
double sum_kpc = 0;
|
||||
|
||||
if (list != null && list.Count() > 0)
|
||||
{
|
||||
//SID별
|
||||
sum_reel = 0;
|
||||
sum_cntl = 0;
|
||||
sum_cntr = 0;
|
||||
sum_kpc = 0;
|
||||
|
||||
var grplist = list.OrderBy(t => t.SID).GroupBy(t => t.SID);
|
||||
foreach (var row in grplist)
|
||||
{
|
||||
var sid = row.Key;
|
||||
var reel = row.Count();
|
||||
var cntl = row.Where(t => t.LOC == "L")?.Count() ?? 0;
|
||||
var cntr = row.Where(t => t.LOC == "R")?.Count() ?? 0;
|
||||
double kpc = row.Sum(t => t.QTY);
|
||||
if (kpc > 0) kpc = kpc / 1000.0;
|
||||
|
||||
var lim = -1;
|
||||
dvS.Rows.Add(new object[] { sid, reel, cntl, cntr, kpc, lim });
|
||||
|
||||
sum_reel += reel;
|
||||
sum_cntl += cntl;
|
||||
sum_cntr += cntr;
|
||||
sum_kpc += kpc;
|
||||
}
|
||||
dvS.Rows.Add(new object[] { "TOTAL", sum_reel, sum_cntl, sum_cntr, sum_kpc, null });
|
||||
dvS.Rows[dvS.RowCount - 1].DefaultCellStyle.BackColor = Color.DimGray;
|
||||
|
||||
|
||||
//당일작업
|
||||
sd = DateTime.Parse(sd.ToShortDateString() + " 00:00:00");
|
||||
ed = DateTime.Parse(sd.ToShortDateString() + " 23:59:59");
|
||||
label3.Text = $"당일({sd.ToShortDateString()}) 작업 정보";
|
||||
var listday = ta.GetByValid(sd, ed, AR.SETTING.Data.McName);
|
||||
UpdateList(listday, dataGridView3, dataGridView4);
|
||||
//if (list != null && list.Count() > 0)
|
||||
//{
|
||||
// cntl = list.Where(t => t.LOC == "L").GroupBy(t => t.RID0).Count();
|
||||
// cntr = list.Where(t => t.LOC == "R").GroupBy(t => t.RID0).Count();
|
||||
//}
|
||||
//dbqty = list.Sum(t => t.QTY);
|
||||
//if (dbqty != null) qty = ((int)dbqty);
|
||||
}
|
||||
}
|
||||
//배치별
|
||||
sum_reel = 0;
|
||||
sum_cntl = 0;
|
||||
sum_cntr = 0;
|
||||
sum_kpc = 0;
|
||||
|
||||
void UpdateList(DataSet1.Component_Reel_ResultDataTable list, DataGridView dvS, DataGridView dvB)
|
||||
{
|
||||
dvS.Rows.Clear();
|
||||
dvB.Rows.Clear();
|
||||
var grpbatch = list.OrderBy(t => t.BATCH).GroupBy(t => t.BATCH);
|
||||
foreach (var row in grpbatch)
|
||||
{
|
||||
var sid = row.Key;
|
||||
if (sid.isEmpty()) sid = "(none)";
|
||||
var reel = row.Count();
|
||||
var cntl = row.Where(t => t.LOC == "L")?.Count() ?? 0;
|
||||
var cntr = row.Where(t => t.LOC == "R")?.Count() ?? 0;
|
||||
double kpc = row.Sum(t => t.QTY);
|
||||
if (kpc > 0) kpc = kpc / 1000.0;
|
||||
|
||||
int sum_reel = 0;
|
||||
int sum_cntl = 0;
|
||||
int sum_cntr = 0;
|
||||
double sum_kpc = 0;
|
||||
var lim = -1;
|
||||
dvB.Rows.Add(new object[] { sid, reel, cntl, cntr, kpc, lim });
|
||||
|
||||
if (list != null && list.Count() > 0)
|
||||
{
|
||||
//SID별
|
||||
sum_reel = 0;
|
||||
sum_cntl = 0;
|
||||
sum_cntr = 0;
|
||||
sum_kpc = 0;
|
||||
sum_reel += reel;
|
||||
sum_cntl += cntl;
|
||||
sum_cntr += cntr;
|
||||
sum_kpc += kpc;
|
||||
}
|
||||
dvB.Rows.Add(new object[] { "TOTAL", sum_reel, sum_cntl, sum_cntr, sum_kpc, null });
|
||||
dvB.Rows[dvB.RowCount - 1].DefaultCellStyle.BackColor = Color.DimGray;
|
||||
|
||||
var grplist = list.OrderBy(t => t.SID).GroupBy(t => t.SID);
|
||||
foreach (var row in grplist)
|
||||
{
|
||||
var sid = row.Key;
|
||||
var reel = row.Count();
|
||||
var cntl = row.Where(t => t.LOC == "L")?.Count() ?? 0;
|
||||
var cntr = row.Where(t => t.LOC == "R")?.Count() ?? 0;
|
||||
double kpc = row.Sum(t => t.QTY) ;
|
||||
if (kpc > 0) kpc = kpc / 1000.0;
|
||||
}
|
||||
dvS.Invalidate();
|
||||
dvB.Invalidate();
|
||||
}
|
||||
|
||||
var lim = -1;
|
||||
dvS.Rows.Add(new object[] { sid, reel, cntl, cntr, kpc, lim });
|
||||
|
||||
sum_reel += reel;
|
||||
sum_cntl += cntl;
|
||||
sum_cntr += cntr;
|
||||
sum_kpc += kpc;
|
||||
}
|
||||
dvS.Rows.Add(new object[] { "TOTAL", sum_reel, sum_cntl, sum_cntr, sum_kpc, null });
|
||||
dvS.Rows[dvS.RowCount - 1].DefaultCellStyle.BackColor = Color.DimGray;
|
||||
|
||||
|
||||
//배치별
|
||||
sum_reel = 0;
|
||||
sum_cntl = 0;
|
||||
sum_cntr = 0;
|
||||
sum_kpc = 0;
|
||||
|
||||
var grpbatch = list.OrderBy(t => t.BATCH).GroupBy(t => t.BATCH);
|
||||
foreach (var row in grpbatch)
|
||||
{
|
||||
var sid = row.Key;
|
||||
if (sid.isEmpty()) sid = "(none)";
|
||||
var reel = row.Count();
|
||||
var cntl = row.Where(t => t.LOC == "L")?.Count() ?? 0;
|
||||
var cntr = row.Where(t => t.LOC == "R")?.Count() ?? 0;
|
||||
double kpc = row.Sum(t => t.QTY) ;
|
||||
if (kpc > 0) kpc = kpc / 1000.0;
|
||||
|
||||
var lim = -1;
|
||||
dvB.Rows.Add(new object[] { sid, reel, cntl, cntr, kpc, lim });
|
||||
|
||||
sum_reel += reel;
|
||||
sum_cntl += cntl;
|
||||
sum_cntr += cntr;
|
||||
sum_kpc += kpc;
|
||||
}
|
||||
dvB.Rows.Add(new object[] { "TOTAL", sum_reel, sum_cntl, sum_cntr, sum_kpc, null });
|
||||
dvB.Rows[dvB.RowCount - 1].DefaultCellStyle.BackColor = Color.DimGray;
|
||||
|
||||
}
|
||||
dvS.Invalidate();
|
||||
dvB.Invalidate();
|
||||
}
|
||||
|
||||
private void label3_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (AR.SETTING.Data.OnlineMode)
|
||||
RefreshData();
|
||||
}
|
||||
}
|
||||
private void label3_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (AR.SETTING.Data.OnlineMode)
|
||||
RefreshData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
88
Handler/Project/Dialog/fHistory.Designer.cs
generated
88
Handler/Project/Dialog/fHistory.Designer.cs
generated
@@ -55,11 +55,6 @@
|
||||
this.tbFind = new System.Windows.Forms.TextBox();
|
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.dv = new arCtl.arDatagridView();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dataSet1 = new Project.DataSet1();
|
||||
this.ta = new Project.DataSet1TableAdapters.Component_Reel_ResultTableAdapter();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.sTIMEDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ETIME = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.jTYPEDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -78,6 +73,11 @@
|
||||
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.PRNVALID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dataSet1 = new Project.DataSet1();
|
||||
this.ta = new Project.DataSet1TableAdapters.Component_Reel_ResultTableAdapter();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.panel1.SuspendLayout();
|
||||
this.cm.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv)).BeginInit();
|
||||
@@ -301,45 +301,6 @@
|
||||
this.dv.TabIndex = 2;
|
||||
this.dv.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv_CellDoubleClick);
|
||||
//
|
||||
// bs
|
||||
//
|
||||
this.bs.DataMember = "Component_Reel_Result";
|
||||
this.bs.DataSource = this.dataSet1;
|
||||
this.bs.Sort = "wdate desc";
|
||||
//
|
||||
// dataSet1
|
||||
//
|
||||
this.dataSet1.DataSetName = "DataSet1";
|
||||
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
//
|
||||
// ta
|
||||
//
|
||||
this.ta.ClearBeforeFill = true;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.tbFind);
|
||||
this.panel2.Controls.Add(this.button1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 543);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(954, 40);
|
||||
this.panel2.TabIndex = 6;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.button1.Location = new System.Drawing.Point(898, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(56, 40);
|
||||
this.button1.TabIndex = 11;
|
||||
this.button1.Tag = "0";
|
||||
this.button1.Text = "KEY";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// sTIMEDataGridViewTextBoxColumn
|
||||
//
|
||||
this.sTIMEDataGridViewTextBoxColumn.DataPropertyName = "STIME";
|
||||
@@ -483,6 +444,45 @@
|
||||
this.Column1.Name = "Column1";
|
||||
this.Column1.ReadOnly = true;
|
||||
//
|
||||
// bs
|
||||
//
|
||||
this.bs.DataMember = "Component_Reel_Result";
|
||||
this.bs.DataSource = this.dataSet1;
|
||||
this.bs.Sort = "wdate desc";
|
||||
//
|
||||
// dataSet1
|
||||
//
|
||||
this.dataSet1.DataSetName = "DataSet1";
|
||||
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
//
|
||||
// ta
|
||||
//
|
||||
this.ta.ClearBeforeFill = true;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.tbFind);
|
||||
this.panel2.Controls.Add(this.button1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 543);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(954, 40);
|
||||
this.panel2.TabIndex = 6;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.button1.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.button1.Location = new System.Drawing.Point(898, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(56, 40);
|
||||
this.button1.TabIndex = 11;
|
||||
this.button1.Tag = "0";
|
||||
this.button1.Text = "KEY";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// fHistory
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
|
||||
@@ -282,7 +282,7 @@ namespace Project.Dialog
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var str = tbFind.Text.Trim();
|
||||
var f = new Dialog.fTouchKeyFull("검색어 입력", str);
|
||||
var f = new AR.Dialog.fTouchKeyFull("검색어 입력", str);
|
||||
if (f.ShowDialog() != DialogResult.OK) return;
|
||||
tbFind.Text = f.tbInput.Text.Trim();
|
||||
FindData();
|
||||
|
||||
107
Handler/Project/Dialog/fLoaderInfo.Designer.cs
generated
107
Handler/Project/Dialog/fLoaderInfo.Designer.cs
generated
@@ -54,6 +54,10 @@
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tbRID = new System.Windows.Forms.TextBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.linkLabel10 = new System.Windows.Forms.LinkLabel();
|
||||
this.tbQtyMax = new System.Windows.Forms.TextBox();
|
||||
this.lnkBatch = new System.Windows.Forms.LinkLabel();
|
||||
this.tbBatch = new System.Windows.Forms.TextBox();
|
||||
this.tbRID0 = new System.Windows.Forms.Label();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.btIDChk = new System.Windows.Forms.Button();
|
||||
@@ -108,10 +112,6 @@
|
||||
this.tmAutoConfirm = new System.Windows.Forms.Timer(this.components);
|
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.lnkBatch = new System.Windows.Forms.LinkLabel();
|
||||
this.tbBatch = new System.Windows.Forms.TextBox();
|
||||
this.linkLabel10 = new System.Windows.Forms.LinkLabel();
|
||||
this.tbQtyMax = new System.Windows.Forms.TextBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.cmbarc.SuspendLayout();
|
||||
this.panel7.SuspendLayout();
|
||||
@@ -423,6 +423,50 @@
|
||||
this.groupBox2.Text = "Barcode information";
|
||||
this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
|
||||
//
|
||||
// linkLabel10
|
||||
//
|
||||
this.linkLabel10.AutoSize = true;
|
||||
this.linkLabel10.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.linkLabel10.Location = new System.Drawing.Point(328, 250);
|
||||
this.linkLabel10.Name = "linkLabel10";
|
||||
this.linkLabel10.Size = new System.Drawing.Size(66, 20);
|
||||
this.linkLabel10.TabIndex = 36;
|
||||
this.linkLabel10.TabStop = true;
|
||||
this.linkLabel10.Text = "MaxQTY";
|
||||
this.linkLabel10.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel10_LinkClicked);
|
||||
//
|
||||
// tbQtyMax
|
||||
//
|
||||
this.tbQtyMax.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbQtyMax.Location = new System.Drawing.Point(399, 245);
|
||||
this.tbQtyMax.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbQtyMax.Name = "tbQtyMax";
|
||||
this.tbQtyMax.Size = new System.Drawing.Size(142, 31);
|
||||
this.tbQtyMax.TabIndex = 35;
|
||||
this.tbQtyMax.Tag = "PARTNO";
|
||||
//
|
||||
// lnkBatch
|
||||
//
|
||||
this.lnkBatch.AutoSize = true;
|
||||
this.lnkBatch.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lnkBatch.Location = new System.Drawing.Point(40, 251);
|
||||
this.lnkBatch.Name = "lnkBatch";
|
||||
this.lnkBatch.Size = new System.Drawing.Size(57, 20);
|
||||
this.lnkBatch.TabIndex = 34;
|
||||
this.lnkBatch.TabStop = true;
|
||||
this.lnkBatch.Text = "BATCH";
|
||||
this.lnkBatch.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkBatch_LinkClicked);
|
||||
//
|
||||
// tbBatch
|
||||
//
|
||||
this.tbBatch.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbBatch.Location = new System.Drawing.Point(102, 246);
|
||||
this.tbBatch.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbBatch.Name = "tbBatch";
|
||||
this.tbBatch.Size = new System.Drawing.Size(222, 31);
|
||||
this.tbBatch.TabIndex = 33;
|
||||
this.tbBatch.Tag = "PARTNO";
|
||||
//
|
||||
// tbRID0
|
||||
//
|
||||
this.tbRID0.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50)))));
|
||||
@@ -452,13 +496,15 @@
|
||||
// btIDChk
|
||||
//
|
||||
this.btIDChk.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.btIDChk.ForeColor = System.Drawing.Color.Red;
|
||||
this.btIDChk.Location = new System.Drawing.Point(484, 36);
|
||||
this.btIDChk.Name = "btIDChk";
|
||||
this.btIDChk.Size = new System.Drawing.Size(57, 50);
|
||||
this.btIDChk.TabIndex = 30;
|
||||
this.btIDChk.Text = "검사";
|
||||
this.btIDChk.UseVisualStyleBackColor = true;
|
||||
this.btIDChk.Click += new System.EventHandler(this.button8_Click);
|
||||
this.btIDChk.Visible = false;
|
||||
this.btIDChk.Click += new System.EventHandler(this.btIDCheck_Click);
|
||||
//
|
||||
// tbSidFind
|
||||
//
|
||||
@@ -630,13 +676,16 @@
|
||||
//
|
||||
// btChkQty
|
||||
//
|
||||
this.btChkQty.Enabled = false;
|
||||
this.btChkQty.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.btChkQty.ForeColor = System.Drawing.Color.Red;
|
||||
this.btChkQty.Location = new System.Drawing.Point(399, 122);
|
||||
this.btChkQty.Name = "btChkQty";
|
||||
this.btChkQty.Size = new System.Drawing.Size(142, 51);
|
||||
this.btChkQty.TabIndex = 8;
|
||||
this.btChkQty.Text = "서버 수량 체크";
|
||||
this.btChkQty.UseVisualStyleBackColor = true;
|
||||
this.btChkQty.Visible = false;
|
||||
this.btChkQty.Click += new System.EventHandler(this.btReqQty_Click);
|
||||
//
|
||||
// button9
|
||||
@@ -917,7 +966,7 @@
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 39);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(768, 490);
|
||||
this.tabPage2.Size = new System.Drawing.Size(768, 441);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "Rear Image";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
@@ -943,7 +992,7 @@
|
||||
this.ivR.NoImageMessage = "";
|
||||
this.ivR.Resolution = ((System.Drawing.PointF)(resources.GetObject("ivR.Resolution")));
|
||||
this.ivR.ShowMouseTracking = false;
|
||||
this.ivR.Size = new System.Drawing.Size(762, 484);
|
||||
this.ivR.Size = new System.Drawing.Size(762, 435);
|
||||
this.ivR.TabIndex = 23;
|
||||
this.ivR.TabStop = false;
|
||||
//
|
||||
@@ -1109,50 +1158,6 @@
|
||||
this.toolStripStatusLabel1.Size = new System.Drawing.Size(121, 17);
|
||||
this.toolStripStatusLabel1.Text = "toolStripStatusLabel1";
|
||||
//
|
||||
// lnkBatch
|
||||
//
|
||||
this.lnkBatch.AutoSize = true;
|
||||
this.lnkBatch.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lnkBatch.Location = new System.Drawing.Point(40, 251);
|
||||
this.lnkBatch.Name = "lnkBatch";
|
||||
this.lnkBatch.Size = new System.Drawing.Size(57, 20);
|
||||
this.lnkBatch.TabIndex = 34;
|
||||
this.lnkBatch.TabStop = true;
|
||||
this.lnkBatch.Text = "BATCH";
|
||||
this.lnkBatch.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkBatch_LinkClicked);
|
||||
//
|
||||
// tbBatch
|
||||
//
|
||||
this.tbBatch.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbBatch.Location = new System.Drawing.Point(102, 246);
|
||||
this.tbBatch.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbBatch.Name = "tbBatch";
|
||||
this.tbBatch.Size = new System.Drawing.Size(222, 31);
|
||||
this.tbBatch.TabIndex = 33;
|
||||
this.tbBatch.Tag = "PARTNO";
|
||||
//
|
||||
// linkLabel10
|
||||
//
|
||||
this.linkLabel10.AutoSize = true;
|
||||
this.linkLabel10.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.linkLabel10.Location = new System.Drawing.Point(328, 250);
|
||||
this.linkLabel10.Name = "linkLabel10";
|
||||
this.linkLabel10.Size = new System.Drawing.Size(66, 20);
|
||||
this.linkLabel10.TabIndex = 36;
|
||||
this.linkLabel10.TabStop = true;
|
||||
this.linkLabel10.Text = "MaxQTY";
|
||||
this.linkLabel10.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel10_LinkClicked);
|
||||
//
|
||||
// tbQtyMax
|
||||
//
|
||||
this.tbQtyMax.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbQtyMax.Location = new System.Drawing.Point(399, 245);
|
||||
this.tbQtyMax.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
|
||||
this.tbQtyMax.Name = "tbQtyMax";
|
||||
this.tbQtyMax.Size = new System.Drawing.Size(142, 31);
|
||||
this.tbQtyMax.TabIndex = 35;
|
||||
this.tbQtyMax.Tag = "PARTNO";
|
||||
//
|
||||
// fLoaderInfo
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 30F);
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using AR;
|
||||
using SATOPrinterAPI;
|
||||
|
||||
namespace Project.Dialog
|
||||
{
|
||||
@@ -585,33 +587,9 @@ namespace Project.Dialog
|
||||
}
|
||||
|
||||
UpdateSID(auto);
|
||||
makenewId();
|
||||
|
||||
}
|
||||
|
||||
void makenewId()
|
||||
{
|
||||
//ID가 잘못되었다.
|
||||
if (VAR.BOOL[eVarBool.Opt_NewReelID] && CheckRID() == false)
|
||||
{
|
||||
//릴 아이디가 잘못되었다면 새로 갱신한다
|
||||
var yy = DateTime.Now.ToString("yy");
|
||||
var m = DateTime.Now.Month.ToString("X");
|
||||
if (TbCustCode.Text.isEmpty())
|
||||
{
|
||||
PUB.log.AddAT("Customer 값이 없어 reelid를 새로 생성하지 못했습니다");
|
||||
}
|
||||
else
|
||||
{
|
||||
var newrid = AmkorReelID.MakeReelID(TbCustCode.Text, yy + m);
|
||||
PUB.log.Add($"RID값을 자동 변경 했습니다 {tbRID.Text} -> {newrid}");
|
||||
//if(tbRID.Text.isEmpty()==false) tbri
|
||||
tbRID.Text = newrid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 데이터베이스의 정보를 UI에 반영한다
|
||||
/// </summary>
|
||||
@@ -699,181 +677,193 @@ namespace Project.Dialog
|
||||
Boolean func_CheckDateQty()
|
||||
{
|
||||
Boolean bwarn = false;
|
||||
using (var db2 = new EEEntities())
|
||||
|
||||
var sid = this.tbSID.Text.Trim();
|
||||
if (sid.isEmpty()) return false; //sid가 없다.
|
||||
|
||||
//최근 6시간안에서 동일한 데이터를 찾아서 제안 해준다
|
||||
var sd = DateTime.Now.AddHours(-1);
|
||||
var sql = "select * from K4EE_Component_Reel_Result with (no lock)" +
|
||||
" where jtype = @jtype and sid = @sid and isnull(QR,'') <> '' and stime >= @sd" +
|
||||
" order by wdate desc";
|
||||
var ps = new SqlParameter[] {
|
||||
new SqlParameter("jtype", PUB.Result.JobType2),
|
||||
new SqlParameter("sid", sid),
|
||||
new SqlParameter("sd", sd),
|
||||
};
|
||||
|
||||
DataSet1.Component_Reel_ResultRow preData = null;
|
||||
var preDatas = DBHelper.Get(sql, ps);
|
||||
if (preDatas.Rows.Count > 0) preData = preDatas.Rows[0] as DataSet1.Component_Reel_ResultRow;
|
||||
|
||||
//var preData = db2.Component_Reel_Result.AsNoTracking().Where(t =>
|
||||
//t.JTYPE == PUB.Result.JobType2 &&
|
||||
//t.SID == sid &&
|
||||
//string.IsNullOrEmpty(t.QR) == false &&
|
||||
//t.STIME >= sd).OrderByDescending(t => t.wdate).FirstOrDefault();
|
||||
|
||||
//기존자료가 없다면 취소
|
||||
if (preData == null) return false;
|
||||
var amkorid = new StdLabelPrint.CAmkorSTDBarcode(preData.QR);
|
||||
|
||||
if (preData.VNAME != tbVName.Text)
|
||||
{
|
||||
var sid = this.tbSID.Text.Trim();
|
||||
if (sid.isEmpty()) return false; //sid가 없다.
|
||||
|
||||
//최근 6시간안에서 동일한 데이터를 찾아서 제안 해준다
|
||||
var sd = DateTime.Now.AddHours(-1);
|
||||
var preData = db2.Component_Reel_Result.AsNoTracking().Where(t =>
|
||||
t.JTYPE == PUB.Result.JobType2 &&
|
||||
t.SID == sid &&
|
||||
string.IsNullOrEmpty(t.QR) == false &&
|
||||
t.STIME >= sd).OrderByDescending(t => t.wdate).FirstOrDefault();
|
||||
|
||||
//기존자료가 없다면 취소
|
||||
if (preData == null) return false;
|
||||
var amkorid = new StdLabelPrint.CAmkorSTDBarcode(preData.QR);
|
||||
|
||||
if (preData.VNAME != tbVName.Text)
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},mfgdata={1}", sid, amkorid.MFGDate));
|
||||
tbVName.Text = preData.VNAME;
|
||||
bwarn = true;
|
||||
//if (func_existbcddata(amkorid.MFGDate) == false)
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},mfgdata={1}", sid, amkorid.MFGDate));
|
||||
tbVName.Text = preData.VNAME;
|
||||
bwarn = true;
|
||||
//if (func_existbcddata(amkorid.MFGDate) == false)
|
||||
{
|
||||
AddErrorMessage("V.Name 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'V.Name' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (amkorid.MFGDate.isEmpty() == false && tbMFG.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},mfgdata={1}", sid, amkorid.MFGDate));
|
||||
tbMFG.Text = amkorid.MFGDate;
|
||||
bwarn = true;
|
||||
if (func_existbcddata(amkorid.MFGDate) == false)
|
||||
{
|
||||
AddErrorMessage("MFG 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'MFG Date' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
}
|
||||
|
||||
if (amkorid.QTY > 0 && tbQTY.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
PUB.log.Add($"수량업데이트 {tbQTY.Text}->{amkorid.QTY}");
|
||||
tbQTY.Text = amkorid.QTY.ToString();
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},qty={1}", sid, amkorid.QTY));
|
||||
bwarn = true;
|
||||
if (func_existbcddata(amkorid.QTY.ToString()) == false)
|
||||
{
|
||||
AddErrorMessage("QTY 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Qty' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (amkorid.PARTNO.isEmpty() == false && tbpartno.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
tbpartno.Text = amkorid.PARTNO;
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},PARTNO={1}", sid, amkorid.PARTNO));
|
||||
if (func_existbcddata(amkorid.PARTNO) == false)
|
||||
{
|
||||
AddErrorMessage("PartNo 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Part No' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Customer
|
||||
if (amkorid.RID.Length > 10 && amkorid.RID.Substring(2, 4) != TbCustCode.Text.Trim())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
TbCustCode.Text = amkorid.RID.Substring(2, 4);
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},VLOT={1}", sid, amkorid.VLOT));
|
||||
if (func_existbcddata(TbCustCode.Text) == false)
|
||||
{
|
||||
AddErrorMessage("Customer Code 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Customer Code' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
|
||||
|
||||
}
|
||||
btCustomAutoInput.PerformClick();
|
||||
}
|
||||
|
||||
|
||||
if (amkorid.VLOT.isEmpty() == false && tbVLOT.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
tbVLOT.Text = amkorid.VLOT;
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},VLOT={1}", sid, amkorid.VLOT));
|
||||
if (func_existbcddata(amkorid.VLOT) == false)
|
||||
{
|
||||
AddErrorMessage("VLOT 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Vender LOT' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (amkorid.VENDERNAME.isEmpty() == false && tbVName.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
tbVName.Text = amkorid.VENDERNAME;
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},VENDERNAME={1}", sid, amkorid.VENDERNAME));
|
||||
if (func_existbcddata(amkorid.VENDERNAME) == false)
|
||||
{
|
||||
AddErrorMessage("VNAME 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Vender Name' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
AddErrorMessage("V.Name 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'V.Name' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (amkorid.MFGDate.isEmpty() == false && tbMFG.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},mfgdata={1}", sid, amkorid.MFGDate));
|
||||
tbMFG.Text = amkorid.MFGDate;
|
||||
bwarn = true;
|
||||
if (func_existbcddata(amkorid.MFGDate) == false)
|
||||
{
|
||||
AddErrorMessage("MFG 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'MFG Date' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
}
|
||||
|
||||
if (amkorid.QTY > 0 && tbQTY.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
PUB.log.Add($"수량업데이트 {tbQTY.Text}->{amkorid.QTY}");
|
||||
tbQTY.Text = amkorid.QTY.ToString();
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},qty={1}", sid, amkorid.QTY));
|
||||
bwarn = true;
|
||||
if (func_existbcddata(amkorid.QTY.ToString()) == false)
|
||||
{
|
||||
AddErrorMessage("QTY 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Qty' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (amkorid.PARTNO.isEmpty() == false && tbpartno.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
tbpartno.Text = amkorid.PARTNO;
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},PARTNO={1}", sid, amkorid.PARTNO));
|
||||
if (func_existbcddata(amkorid.PARTNO) == false)
|
||||
{
|
||||
AddErrorMessage("PartNo 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Part No' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Customer
|
||||
if (amkorid.RID.Length > 10 && amkorid.RID.Substring(2, 4) != TbCustCode.Text.Trim())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
TbCustCode.Text = amkorid.RID.Substring(2, 4);
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},VLOT={1}", sid, amkorid.VLOT));
|
||||
if (func_existbcddata(TbCustCode.Text) == false)
|
||||
{
|
||||
AddErrorMessage("Customer Code 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Customer Code' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
|
||||
|
||||
}
|
||||
btCustomAutoInput.PerformClick();
|
||||
}
|
||||
|
||||
|
||||
if (amkorid.VLOT.isEmpty() == false && tbVLOT.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
tbVLOT.Text = amkorid.VLOT;
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},VLOT={1}", sid, amkorid.VLOT));
|
||||
if (func_existbcddata(amkorid.VLOT) == false)
|
||||
{
|
||||
AddErrorMessage("VLOT 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Vender LOT' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (amkorid.VENDERNAME.isEmpty() == false && tbVName.Text.isEmpty())
|
||||
{
|
||||
//해당 mfgdae 가 바코드목록에 잇다면 바로 적용
|
||||
//업다면 적용하고 적용 메세지 표시한다
|
||||
tbVName.Text = amkorid.VENDERNAME;
|
||||
bwarn = true;
|
||||
//Pub.log.Add(string.Format("이전결과에서 값 업데이트 sid:{0},VENDERNAME={1}", sid, amkorid.VENDERNAME));
|
||||
if (func_existbcddata(amkorid.VENDERNAME) == false)
|
||||
{
|
||||
AddErrorMessage("VNAME 이전 기록으로 업데이트");
|
||||
PUB.log.Add("'Vender Name' 값을 이전 기록을 통해서 입력했습니다\n" +
|
||||
"이전 작업시간 : " + ((DateTime)(preData.wdate)).ToString("yyyy-MM-dd HH:mm:ss") + "\n" +
|
||||
"SID : " + preData.SID + "\n" +
|
||||
"MFG Date : " + amkorid.MFGDate + "\n" +
|
||||
"Part No : " + amkorid.PARTNO + "\n" +
|
||||
"Vender Lot : " + amkorid.VLOT + "\n" +
|
||||
"Vender Name : " + amkorid.VENDERNAME + "\n" +
|
||||
"QTY : " + amkorid.QTY.ToString(), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return bwarn;
|
||||
|
||||
}
|
||||
@@ -902,7 +892,8 @@ namespace Project.Dialog
|
||||
UTIL.MsgE("오프라인 모드라 사용할 수 없습니다");
|
||||
return;
|
||||
}
|
||||
var cnt = (Amkor.RestfulService.get_stock_count(rid, out msg));
|
||||
|
||||
var cnt = 0;// (Amkor.RestfulService.get_stock_count(rid, out msg));
|
||||
if (cnt > 0)
|
||||
{
|
||||
var oldCnt = int.Parse(tbQTY.Text.Replace(",", ""));
|
||||
@@ -968,15 +959,15 @@ namespace Project.Dialog
|
||||
bool NewReelId = false;
|
||||
private void btNewID_Click(object sender, EventArgs e)
|
||||
{
|
||||
var id = TbCustCode.Text; // string.Empty;
|
||||
if (id.Length != 4)
|
||||
{
|
||||
UTIL.MsgE($"올바른 고객번호를 입력하세요\n" +
|
||||
$"고객번호는 4자리여야 합니다\n" +
|
||||
$"값 : {id}\n" +
|
||||
$"길이 : {id.Length}");
|
||||
return;
|
||||
}
|
||||
//var id = TbCustCode.Text; // string.Empty;
|
||||
//if (id.Length != 4)
|
||||
//{
|
||||
// UTIL.MsgE($"올바른 고객번호를 입력하세요\n" +
|
||||
// $"고객번호는 4자리여야 합니다\n" +
|
||||
// $"값 : {id}\n" +
|
||||
// $"길이 : {id.Length}");
|
||||
// return;
|
||||
//}
|
||||
//if (tbRID.Text.Length > 4) id = tbRID.Text.Substring(0, 4);
|
||||
|
||||
//already check
|
||||
@@ -992,29 +983,29 @@ namespace Project.Dialog
|
||||
//웹서비스로 생성한다.
|
||||
if (MakeNewID)
|
||||
{
|
||||
var newid = Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD(id, "4", "A", out string err);
|
||||
if (newid.isEmpty())
|
||||
var sid = tbSID.Text.Trim();
|
||||
if (sid.isEmpty())
|
||||
{
|
||||
UTIL.MsgE(err, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
//remain original reel id
|
||||
if (this.tbRID0.Text.isEmpty() && tbRID.Text.isEmpty() == false)
|
||||
this.tbRID0.Text = tbRID.Text.Trim();
|
||||
|
||||
this.tbRID.Text = newid;
|
||||
NewReelId = true;
|
||||
|
||||
PUB.log.AddI($"New REELID:{newid}(LoaderInfo)");
|
||||
UTIL.MsgE("No SID");
|
||||
return;
|
||||
}
|
||||
|
||||
//WMS은 DB에서 생성하낟.
|
||||
var newid = PUB.MakeNewREELID(sid);
|
||||
if (newid.success==false)
|
||||
{
|
||||
UTIL.MsgE($"No ReelID Data\n{newid.message}" , true);
|
||||
return;
|
||||
}
|
||||
|
||||
//remain original reel id
|
||||
if (this.tbRID0.Text.isEmpty() && tbRID.Text.isEmpty() == false)
|
||||
this.tbRID0.Text = tbRID.Text.Trim();
|
||||
|
||||
this.tbRID.Text = newid.newid;
|
||||
NewReelId = true;
|
||||
PUB.log.AddI($"New REELID:{newid.newid}(LoaderInfo)");
|
||||
}
|
||||
|
||||
//var f = new Dialog.fNewReelID(id);
|
||||
//if (f.ShowDialog() != DialogResult.OK) return;
|
||||
//this.tbRID.Text = f.NewID;
|
||||
|
||||
}
|
||||
|
||||
private void tbDate_Click(object sender, EventArgs e)
|
||||
@@ -1272,7 +1263,6 @@ namespace Project.Dialog
|
||||
PUB.log.Add(string.Format("amkor SId찾기 code={0},part={1},sid={2}", custcode, partno, amksid));
|
||||
tbSID.Text = amksid;
|
||||
UpdateSID();
|
||||
makenewId();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1287,7 +1277,7 @@ namespace Project.Dialog
|
||||
|
||||
}
|
||||
|
||||
private void button8_Click(object sender, EventArgs e)
|
||||
private void btIDCheck_Click(object sender, EventArgs e)
|
||||
{
|
||||
//중복검사
|
||||
var rid = tbRID.Text.Trim();
|
||||
@@ -1301,23 +1291,25 @@ namespace Project.Dialog
|
||||
UTIL.MsgE("오프라인 모드라 사용할 수 없습니다");
|
||||
return;
|
||||
}
|
||||
var result = Amkor.RestfulService.get_existed_matl_by_id(rid);
|
||||
if (result.Complete == false)
|
||||
{
|
||||
UTIL.MsgE(result.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (result.Result == true)
|
||||
{
|
||||
UTIL.MsgE($"해당 ID는 중복된 ID 입니다\n값:{rid}");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
UTIL.MsgI($"해당 ID는 중복되지 않았습니다\n{rid}");
|
||||
}
|
||||
}
|
||||
|
||||
UTIL.MsgE("WMS 기능 없음");
|
||||
//var result = Amkor.RestfulService.get_existed_matl_by_id(rid);
|
||||
//if (result.Complete == false)
|
||||
//{
|
||||
// UTIL.MsgE(result.Message);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// if (result.Result == true)
|
||||
// {
|
||||
// UTIL.MsgE($"해당 ID는 중복된 ID 입니다\n값:{rid}");
|
||||
// return;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// UTIL.MsgI($"해당 ID는 중복되지 않았습니다\n{rid}");
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
private void button9_Click(object sender, EventArgs e)
|
||||
@@ -1683,6 +1675,11 @@ namespace Project.Dialog
|
||||
{
|
||||
InsertTarget.Add(col.Key, col.Value);
|
||||
}
|
||||
foreach (var item in wheres)
|
||||
{
|
||||
if (InsertTarget.ContainsKey(item.Key) == false)
|
||||
InsertTarget.Add(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
if (UpdateTarget.Count > 0) //if update target
|
||||
@@ -1741,17 +1738,13 @@ namespace Project.Dialog
|
||||
var dlgMsg = $"다음 값을 서버에 저장 하시겠습니까?\n";
|
||||
foreach (var item in InsertTarget)
|
||||
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
|
||||
foreach (var item in wheres)
|
||||
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
|
||||
|
||||
var dlg = UTIL.MsgQ(dlgMsg);
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
var ISQL = $"insert into Component_Reel_SID_Information ([MC],wdate," +
|
||||
string.Join(",", wheres.Select(t => "[" + t.Key + "]")) + "," +
|
||||
string.Join(",", InsertTarget.Select(t => "[" + t.Key + "]")) + ") values(" +
|
||||
$"'{PUB.MCCode}',getdate()," +
|
||||
string.Join(",", wheres.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + "," +
|
||||
string.Join(",", InsertTarget.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + ")";
|
||||
|
||||
//ISQL += WSQL;
|
||||
@@ -1826,6 +1819,11 @@ namespace Project.Dialog
|
||||
{
|
||||
InsertTarget.Add(col.Key, col.Value);
|
||||
}
|
||||
foreach (var item in wheres)
|
||||
{
|
||||
if (InsertTarget.ContainsKey(item.Key) == false)
|
||||
InsertTarget.Add(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
if (UpdateTarget.Count > 0) //if update target
|
||||
@@ -1884,17 +1882,14 @@ namespace Project.Dialog
|
||||
var dlgMsg = $"다음 변환값을 서버에 추가 하시겠습니까?\n";
|
||||
foreach (var item in InsertTarget)
|
||||
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
|
||||
foreach (var item in wheres)
|
||||
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
|
||||
|
||||
|
||||
var dlg = UTIL.MsgQ(dlgMsg);
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
var ISQL = $"insert into {tableName} ([MC]," +
|
||||
string.Join(",", wheres.Select(t => "[" + t.Key + "]")) + "," +
|
||||
string.Join(",", InsertTarget.Select(t => "[" + t.Key + "]")) + ") values(" +
|
||||
$"'{PUB.MCCode}'," +
|
||||
string.Join(",", wheres.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + "," +
|
||||
string.Join(",", InsertTarget.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + ")";
|
||||
|
||||
//ISQL += WSQL;
|
||||
@@ -1973,6 +1968,11 @@ namespace Project.Dialog
|
||||
{
|
||||
InsertTarget.Add(col.Key, col.Value);
|
||||
}
|
||||
foreach (var item in wheres)
|
||||
{
|
||||
if (InsertTarget.ContainsKey(item.Key) == false)
|
||||
InsertTarget.Add(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
if (UpdateTarget.Count > 0) //if update target
|
||||
@@ -2031,17 +2031,14 @@ namespace Project.Dialog
|
||||
var dlgMsg = $"다음 값을 서버(변환정보)에 저장 하시겠습니까?\n";
|
||||
foreach (var item in InsertTarget)
|
||||
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
|
||||
foreach (var item in wheres)
|
||||
dlgMsg += $"항목:{item.Key} => {item.Value}\n";
|
||||
|
||||
|
||||
var dlg = UTIL.MsgQ(dlgMsg);
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
var ISQL = $"insert into Component_Reel_SID_Convert ([MC],wdate," +
|
||||
string.Join(",", wheres.Select(t => "[" + t.Key + "]")) + "," +
|
||||
string.Join(",", InsertTarget.Select(t => "[" + t.Key + "]")) + ") values(" +
|
||||
$"null,getdate()," +
|
||||
string.Join(",", wheres.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + "," +
|
||||
string.Join(",", InsertTarget.Select(t => "'" + t.Value.Replace("'", "''") + "'")) + ")";
|
||||
|
||||
//ISQL += WSQL;
|
||||
@@ -2090,49 +2087,51 @@ namespace Project.Dialog
|
||||
private void button1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
//데이터베이스 결과에서 자료를 추가한다.
|
||||
var result = new DataSet1.Component_Reel_ResultDataTable();// new List<Component_Reel_Result>();
|
||||
|
||||
List<Component_Reel_Result> result = new List<Component_Reel_Result>();
|
||||
var tabName = "K4EE_Component_Reel_Result with (no lock)";
|
||||
|
||||
using (var db = new EEEntities())
|
||||
//1.sid sid를 먼저 검색한다. 이것이 확률이 제일 높음
|
||||
if (this.tbSID.Text.isEmpty() == false)
|
||||
{
|
||||
//1.sid sid를 먼저 검색한다. 이것이 확률이 제일 높음
|
||||
if (this.tbSID.Text.isEmpty() == false)
|
||||
{
|
||||
var list = db.Component_Reel_Result.AsNoTracking().
|
||||
OrderByDescending(t => t.wdate).
|
||||
Where(t => t.SID == tbSID.Text.Trim()).Take(5).ToList();
|
||||
if (list != null && list.Count > 0) result.AddRange(list);
|
||||
}
|
||||
//2.파트번호
|
||||
if (result.Count == 0 && this.tbpartno.Text.isEmpty() == false)
|
||||
{
|
||||
var list = db.Component_Reel_Result.AsNoTracking().
|
||||
OrderByDescending(t => t.wdate).
|
||||
Where(t => t.QR.Contains(";" + tbpartno.Text)).Take(5).ToList();
|
||||
if (list != null && list.Count > 0) result.AddRange(list);
|
||||
}
|
||||
//3.벤더LOT
|
||||
if (result.Count == 0 && this.tbVLOT.Text.isEmpty() == false)
|
||||
{
|
||||
var list = db.Component_Reel_Result.AsNoTracking().
|
||||
OrderByDescending(t => t.wdate).
|
||||
Where(t => t.QR.Contains(";" + tbVLOT.Text + ";")).Take(5).ToList();
|
||||
if (list != null && list.Count > 0) result.AddRange(list);
|
||||
}
|
||||
var sql = $"select top 5 * from {tabName} where sid = @sid order by wdate desc";
|
||||
var list = DBHelper.Get(sql, new SqlParameter("sid", $"{tbSID.Text}"));
|
||||
//sql = sql.Replace("@sid", tbSID.Text.Trim());
|
||||
if (list.Rows.Count > 0) result.Merge(list);
|
||||
}
|
||||
//2.파트번호
|
||||
if (result.Count == 0 && this.tbpartno.Text.isEmpty() == false)
|
||||
{
|
||||
var sql = $"select top 5 * from {tabName} where QR like @search order by wdate desc";
|
||||
var list = DBHelper.Get(sql, new SqlParameter("search", $"%;{tbpartno.Text}%"));
|
||||
if (list.Rows.Count > 0) result.Merge(list);
|
||||
}
|
||||
//3.벤더LOT
|
||||
if (result.Count == 0 && this.tbVLOT.Text.isEmpty() == false)
|
||||
{
|
||||
var sql = $"select top 5 * from {tabName} where QR like @search order by wdate desc";
|
||||
var list = DBHelper.Get(sql, new SqlParameter("search", $"%;{tbVLOT.Text}%"));
|
||||
if (list.Rows.Count > 0) result.Merge(list);
|
||||
//var list = db.Component_Reel_Result.AsNoTracking().
|
||||
// OrderByDescending(t => t.wdate).
|
||||
// Where(t => t.QR.Contains(";" + tbVLOT.Text + ";")).Take(5).ToList();
|
||||
///if (list != null && list.Count > 0) result.AddRange(list);
|
||||
}
|
||||
|
||||
//4.벤더이름
|
||||
if (result.Count == 0 && this.tbVName.Text.isEmpty() == false)
|
||||
{
|
||||
var list = db.Component_Reel_Result.AsNoTracking().
|
||||
OrderByDescending(t => t.wdate).
|
||||
Where(t => t.QR.Contains(";" + tbVName.Text + ";")).Take(5).ToList();
|
||||
if (list != null && list.Count > 0) result.AddRange(list);
|
||||
}
|
||||
//4.벤더이름
|
||||
if (result.Count == 0 && this.tbVName.Text.isEmpty() == false)
|
||||
{
|
||||
var sql = $"select top 5 * from {tabName} where QR like @search order by wdate desc";
|
||||
var list = DBHelper.Get(sql, new SqlParameter("search", $"%;{tbVName.Text}%"));
|
||||
if (list.Rows.Count > 0) result.Merge(list);
|
||||
|
||||
//var list = db.Component_Reel_Result.AsNoTracking().
|
||||
// OrderByDescending(t => t.wdate).
|
||||
// Where(t => t.QR.Contains(";" + tbVName.Text + ";")).Take(5).ToList();
|
||||
//if (list != null && list.Count > 0) result.AddRange(list);
|
||||
}
|
||||
|
||||
//customer code
|
||||
|
||||
if (result.Count < 1)
|
||||
{
|
||||
UTIL.MsgE("검색된 결과가 없습니다\n검색 아이템\n" +
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
|
||||
412
Handler/Project/Dialog/fNewReelID.Designer.cs
generated
412
Handler/Project/Dialog/fNewReelID.Designer.cs
generated
@@ -1,412 +0,0 @@
|
||||
namespace Project.Dialog
|
||||
{
|
||||
partial class fNewReelID
|
||||
{
|
||||
/// <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.linkLabel3 = new System.Windows.Forms.LinkLabel();
|
||||
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.tbDiv = new System.Windows.Forms.TextBox();
|
||||
this.btOK = new System.Windows.Forms.Button();
|
||||
this.tbRID = new System.Windows.Forms.TextBox();
|
||||
this.tbCustCode = new System.Windows.Forms.TextBox();
|
||||
this.tbYear = new System.Windows.Forms.TextBox();
|
||||
this.linkLabel4 = new System.Windows.Forms.LinkLabel();
|
||||
this.tbSeq = new System.Windows.Forms.TextBox();
|
||||
this.tb1 = new System.Windows.Forms.TextBox();
|
||||
this.tbtype = new System.Windows.Forms.TextBox();
|
||||
this.linkLabel5 = new System.Windows.Forms.LinkLabel();
|
||||
this.linkLabel6 = new System.Windows.Forms.LinkLabel();
|
||||
this.linkLabel7 = new System.Windows.Forms.LinkLabel();
|
||||
this.tbLoca = new System.Windows.Forms.TextBox();
|
||||
this.linkLabel8 = new System.Windows.Forms.LinkLabel();
|
||||
this.tbMon = new System.Windows.Forms.TextBox();
|
||||
this.button8 = new System.Windows.Forms.Button();
|
||||
this.lbLen = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.radNormal = new System.Windows.Forms.RadioButton();
|
||||
this.radReturn = new System.Windows.Forms.RadioButton();
|
||||
this.radDup = new System.Windows.Forms.RadioButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// linkLabel3
|
||||
//
|
||||
this.linkLabel3.AutoSize = true;
|
||||
this.linkLabel3.Location = new System.Drawing.Point(58, 196);
|
||||
this.linkLabel3.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel3.Name = "linkLabel3";
|
||||
this.linkLabel3.Size = new System.Drawing.Size(95, 32);
|
||||
this.linkLabel3.TabIndex = 8;
|
||||
this.linkLabel3.TabStop = true;
|
||||
this.linkLabel3.Text = "분류(1)";
|
||||
this.linkLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked);
|
||||
//
|
||||
// linkLabel2
|
||||
//
|
||||
this.linkLabel2.AutoSize = true;
|
||||
this.linkLabel2.Location = new System.Drawing.Point(10, 104);
|
||||
this.linkLabel2.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel2.Name = "linkLabel2";
|
||||
this.linkLabel2.Size = new System.Drawing.Size(143, 32);
|
||||
this.linkLabel2.TabIndex = 4;
|
||||
this.linkLabel2.TabStop = true;
|
||||
this.linkLabel2.Text = "고객번호(4)";
|
||||
this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked);
|
||||
//
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold);
|
||||
this.linkLabel1.Location = new System.Drawing.Point(58, 242);
|
||||
this.linkLabel1.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(95, 32);
|
||||
this.linkLabel1.TabIndex = 10;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "년도(2)";
|
||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||
//
|
||||
// tbDiv
|
||||
//
|
||||
this.tbDiv.Location = new System.Drawing.Point(160, 193);
|
||||
this.tbDiv.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbDiv.Name = "tbDiv";
|
||||
this.tbDiv.Size = new System.Drawing.Size(404, 39);
|
||||
this.tbDiv.TabIndex = 9;
|
||||
this.tbDiv.Text = "A/M/L";
|
||||
this.tbDiv.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbDiv.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// btOK
|
||||
//
|
||||
this.btOK.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.btOK.Location = new System.Drawing.Point(0, 458);
|
||||
this.btOK.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.btOK.Name = "btOK";
|
||||
this.btOK.Size = new System.Drawing.Size(573, 50);
|
||||
this.btOK.TabIndex = 18;
|
||||
this.btOK.Text = "확인";
|
||||
this.btOK.UseVisualStyleBackColor = true;
|
||||
this.btOK.Click += new System.EventHandler(this.btOK_Click);
|
||||
//
|
||||
// tbRID
|
||||
//
|
||||
this.tbRID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.tbRID.Font = new System.Drawing.Font("맑은 고딕", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbRID.Location = new System.Drawing.Point(107, 417);
|
||||
this.tbRID.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbRID.Name = "tbRID";
|
||||
this.tbRID.ReadOnly = true;
|
||||
this.tbRID.Size = new System.Drawing.Size(364, 32);
|
||||
this.tbRID.TabIndex = 17;
|
||||
this.tbRID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tbCustCode
|
||||
//
|
||||
this.tbCustCode.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.tbCustCode.Location = new System.Drawing.Point(160, 101);
|
||||
this.tbCustCode.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbCustCode.Name = "tbCustCode";
|
||||
this.tbCustCode.Size = new System.Drawing.Size(404, 39);
|
||||
this.tbCustCode.TabIndex = 5;
|
||||
this.tbCustCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbCustCode.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// tbYear
|
||||
//
|
||||
this.tbYear.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.tbYear.Location = new System.Drawing.Point(160, 239);
|
||||
this.tbYear.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbYear.Name = "tbYear";
|
||||
this.tbYear.Size = new System.Drawing.Size(404, 39);
|
||||
this.tbYear.TabIndex = 11;
|
||||
this.tbYear.Text = "21";
|
||||
this.tbYear.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbYear.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// linkLabel4
|
||||
//
|
||||
this.linkLabel4.AutoSize = true;
|
||||
this.linkLabel4.Location = new System.Drawing.Point(10, 334);
|
||||
this.linkLabel4.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel4.Name = "linkLabel4";
|
||||
this.linkLabel4.Size = new System.Drawing.Size(143, 32);
|
||||
this.linkLabel4.TabIndex = 14;
|
||||
this.linkLabel4.TabStop = true;
|
||||
this.linkLabel4.Text = "일련번호(4)";
|
||||
this.linkLabel4.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel4_LinkClicked);
|
||||
//
|
||||
// tbSeq
|
||||
//
|
||||
this.tbSeq.Location = new System.Drawing.Point(160, 331);
|
||||
this.tbSeq.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbSeq.Name = "tbSeq";
|
||||
this.tbSeq.Size = new System.Drawing.Size(289, 39);
|
||||
this.tbSeq.TabIndex = 15;
|
||||
this.tbSeq.Text = "R000,0001";
|
||||
this.tbSeq.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbSeq.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// tb1
|
||||
//
|
||||
this.tb1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tb1.Location = new System.Drawing.Point(160, 9);
|
||||
this.tb1.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tb1.Name = "tb1";
|
||||
this.tb1.Size = new System.Drawing.Size(404, 39);
|
||||
this.tb1.TabIndex = 1;
|
||||
this.tb1.Text = "R";
|
||||
this.tb1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tb1.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// tbtype
|
||||
//
|
||||
this.tbtype.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
||||
this.tbtype.Location = new System.Drawing.Point(160, 55);
|
||||
this.tbtype.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbtype.Name = "tbtype";
|
||||
this.tbtype.Size = new System.Drawing.Size(404, 39);
|
||||
this.tbtype.TabIndex = 3;
|
||||
this.tbtype.Text = "I/C";
|
||||
this.tbtype.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbtype.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// linkLabel5
|
||||
//
|
||||
this.linkLabel5.AutoSize = true;
|
||||
this.linkLabel5.Location = new System.Drawing.Point(58, 12);
|
||||
this.linkLabel5.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel5.Name = "linkLabel5";
|
||||
this.linkLabel5.Size = new System.Drawing.Size(95, 32);
|
||||
this.linkLabel5.TabIndex = 0;
|
||||
this.linkLabel5.TabStop = true;
|
||||
this.linkLabel5.Text = "예약(1)";
|
||||
this.linkLabel5.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel5_LinkClicked);
|
||||
//
|
||||
// linkLabel6
|
||||
//
|
||||
this.linkLabel6.AutoSize = true;
|
||||
this.linkLabel6.Location = new System.Drawing.Point(58, 58);
|
||||
this.linkLabel6.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel6.Name = "linkLabel6";
|
||||
this.linkLabel6.Size = new System.Drawing.Size(95, 32);
|
||||
this.linkLabel6.TabIndex = 2;
|
||||
this.linkLabel6.TabStop = true;
|
||||
this.linkLabel6.Text = "종류(1)";
|
||||
this.linkLabel6.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel6_LinkClicked);
|
||||
//
|
||||
// linkLabel7
|
||||
//
|
||||
this.linkLabel7.AutoSize = true;
|
||||
this.linkLabel7.Location = new System.Drawing.Point(34, 150);
|
||||
this.linkLabel7.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel7.Name = "linkLabel7";
|
||||
this.linkLabel7.Size = new System.Drawing.Size(119, 32);
|
||||
this.linkLabel7.TabIndex = 6;
|
||||
this.linkLabel7.TabStop = true;
|
||||
this.linkLabel7.Text = "발행처(1)";
|
||||
this.linkLabel7.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel7_LinkClicked);
|
||||
//
|
||||
// tbLoca
|
||||
//
|
||||
this.tbLoca.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.tbLoca.Location = new System.Drawing.Point(160, 147);
|
||||
this.tbLoca.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbLoca.Name = "tbLoca";
|
||||
this.tbLoca.Size = new System.Drawing.Size(404, 39);
|
||||
this.tbLoca.TabIndex = 7;
|
||||
this.tbLoca.Text = "K3=3,K4=4,K5=5";
|
||||
this.tbLoca.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbLoca.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// linkLabel8
|
||||
//
|
||||
this.linkLabel8.AutoSize = true;
|
||||
this.linkLabel8.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold);
|
||||
this.linkLabel8.Location = new System.Drawing.Point(82, 288);
|
||||
this.linkLabel8.Margin = new System.Windows.Forms.Padding(8, 0, 8, 0);
|
||||
this.linkLabel8.Name = "linkLabel8";
|
||||
this.linkLabel8.Size = new System.Drawing.Size(71, 32);
|
||||
this.linkLabel8.TabIndex = 12;
|
||||
this.linkLabel8.TabStop = true;
|
||||
this.linkLabel8.Text = "월(1)";
|
||||
this.linkLabel8.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel8_LinkClicked);
|
||||
//
|
||||
// tbMon
|
||||
//
|
||||
this.tbMon.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.tbMon.Location = new System.Drawing.Point(160, 285);
|
||||
this.tbMon.Margin = new System.Windows.Forms.Padding(8, 13, 8, 13);
|
||||
this.tbMon.Name = "tbMon";
|
||||
this.tbMon.Size = new System.Drawing.Size(404, 39);
|
||||
this.tbMon.TabIndex = 13;
|
||||
this.tbMon.Text = "10=A,11=B,12=C";
|
||||
this.tbMon.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
this.tbMon.TextChanged += new System.EventHandler(this.tbCustCode_TextChanged);
|
||||
//
|
||||
// button8
|
||||
//
|
||||
this.button8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.button8.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.button8.Location = new System.Drawing.Point(477, 417);
|
||||
this.button8.Name = "button8";
|
||||
this.button8.Size = new System.Drawing.Size(87, 32);
|
||||
this.button8.TabIndex = 31;
|
||||
this.button8.Text = "중복검사";
|
||||
this.button8.UseVisualStyleBackColor = true;
|
||||
this.button8.Click += new System.EventHandler(this.button8_Click);
|
||||
//
|
||||
// lbLen
|
||||
//
|
||||
this.lbLen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.lbLen.BackColor = System.Drawing.Color.Tomato;
|
||||
this.lbLen.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.lbLen.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lbLen.Location = new System.Drawing.Point(13, 417);
|
||||
this.lbLen.Name = "lbLen";
|
||||
this.lbLen.Size = new System.Drawing.Size(89, 32);
|
||||
this.lbLen.TabIndex = 33;
|
||||
this.lbLen.Text = "길이";
|
||||
this.lbLen.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.button1.Location = new System.Drawing.Point(460, 331);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(104, 39);
|
||||
this.button1.TabIndex = 34;
|
||||
this.button1.Text = "생성";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click_1);
|
||||
//
|
||||
// radNormal
|
||||
//
|
||||
this.radNormal.AutoSize = true;
|
||||
this.radNormal.Checked = true;
|
||||
this.radNormal.Location = new System.Drawing.Point(160, 376);
|
||||
this.radNormal.Name = "radNormal";
|
||||
this.radNormal.Size = new System.Drawing.Size(81, 36);
|
||||
this.radNormal.TabIndex = 36;
|
||||
this.radNormal.TabStop = true;
|
||||
this.radNormal.Text = "일반";
|
||||
this.radNormal.UseVisualStyleBackColor = true;
|
||||
this.radNormal.Click += new System.EventHandler(this.radNormal_Click);
|
||||
//
|
||||
// radReturn
|
||||
//
|
||||
this.radReturn.AutoSize = true;
|
||||
this.radReturn.Location = new System.Drawing.Point(247, 376);
|
||||
this.radReturn.Name = "radReturn";
|
||||
this.radReturn.Size = new System.Drawing.Size(81, 36);
|
||||
this.radReturn.TabIndex = 36;
|
||||
this.radReturn.Text = "반환";
|
||||
this.radReturn.UseVisualStyleBackColor = true;
|
||||
this.radReturn.Click += new System.EventHandler(this.radNormal_Click);
|
||||
//
|
||||
// radDup
|
||||
//
|
||||
this.radDup.AutoSize = true;
|
||||
this.radDup.Location = new System.Drawing.Point(334, 376);
|
||||
this.radDup.Name = "radDup";
|
||||
this.radDup.Size = new System.Drawing.Size(81, 36);
|
||||
this.radDup.TabIndex = 36;
|
||||
this.radDup.Text = "중복";
|
||||
this.radDup.UseVisualStyleBackColor = true;
|
||||
this.radDup.Click += new System.EventHandler(this.radNormal_Click);
|
||||
//
|
||||
// fNewReelID
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(14F, 32F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(573, 508);
|
||||
this.Controls.Add(this.radDup);
|
||||
this.Controls.Add(this.radReturn);
|
||||
this.Controls.Add(this.radNormal);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.lbLen);
|
||||
this.Controls.Add(this.button8);
|
||||
this.Controls.Add(this.linkLabel8);
|
||||
this.Controls.Add(this.tbMon);
|
||||
this.Controls.Add(this.linkLabel7);
|
||||
this.Controls.Add(this.tbLoca);
|
||||
this.Controls.Add(this.linkLabel6);
|
||||
this.Controls.Add(this.linkLabel5);
|
||||
this.Controls.Add(this.tbtype);
|
||||
this.Controls.Add(this.tb1);
|
||||
this.Controls.Add(this.linkLabel4);
|
||||
this.Controls.Add(this.tbSeq);
|
||||
this.Controls.Add(this.linkLabel3);
|
||||
this.Controls.Add(this.linkLabel2);
|
||||
this.Controls.Add(this.linkLabel1);
|
||||
this.Controls.Add(this.tbDiv);
|
||||
this.Controls.Add(this.btOK);
|
||||
this.Controls.Add(this.tbRID);
|
||||
this.Controls.Add(this.tbCustCode);
|
||||
this.Controls.Add(this.tbYear);
|
||||
this.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.Margin = new System.Windows.Forms.Padding(6, 8, 6, 8);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "fNewReelID";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Make New Reel ID";
|
||||
this.Load += new System.EventHandler(this.fNewReelID_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.LinkLabel linkLabel3;
|
||||
private System.Windows.Forms.LinkLabel linkLabel2;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.Button btOK;
|
||||
private System.Windows.Forms.LinkLabel linkLabel4;
|
||||
public System.Windows.Forms.TextBox tbDiv;
|
||||
public System.Windows.Forms.TextBox tbCustCode;
|
||||
public System.Windows.Forms.TextBox tbYear;
|
||||
public System.Windows.Forms.TextBox tbSeq;
|
||||
private System.Windows.Forms.TextBox tbRID;
|
||||
public System.Windows.Forms.TextBox tb1;
|
||||
public System.Windows.Forms.TextBox tbtype;
|
||||
private System.Windows.Forms.LinkLabel linkLabel5;
|
||||
private System.Windows.Forms.LinkLabel linkLabel6;
|
||||
private System.Windows.Forms.LinkLabel linkLabel7;
|
||||
public System.Windows.Forms.TextBox tbLoca;
|
||||
private System.Windows.Forms.LinkLabel linkLabel8;
|
||||
public System.Windows.Forms.TextBox tbMon;
|
||||
private System.Windows.Forms.Button button8;
|
||||
private System.Windows.Forms.Label lbLen;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.RadioButton radNormal;
|
||||
private System.Windows.Forms.RadioButton radReturn;
|
||||
private System.Windows.Forms.RadioButton radDup;
|
||||
}
|
||||
}
|
||||
@@ -1,261 +0,0 @@
|
||||
using AR;
|
||||
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 Project.Dialog
|
||||
{
|
||||
public partial class fNewReelID : Form
|
||||
{
|
||||
public string NewID { get; set; }
|
||||
public fNewReelID(string custcode)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.NewID = string.Empty;
|
||||
tbCustCode.Text = custcode;
|
||||
|
||||
if (PUB.Result.JobType2 == "RET")
|
||||
radReturn.Checked = true;
|
||||
else
|
||||
radNormal.Checked = false;
|
||||
|
||||
|
||||
tbRID.TextChanged += (s1, e1) =>
|
||||
{
|
||||
lbLen.Text = $"길이({tbRID.Text.Length})";
|
||||
lbLen.BackColor = tbRID.Text.Length == 15 ? Color.Lime : Color.Tomato;
|
||||
};
|
||||
}
|
||||
private void fNewReelID_Load(object sender, EventArgs e)
|
||||
{
|
||||
tbtype.Text = "C";
|
||||
tbLoca.Text = AR.SETTING.Data.ReelIdDeviceLoc;
|
||||
tbDiv.Text = AR.SETTING.Data.ReelIdDeviceID;
|
||||
tbYear.Text = DateTime.Now.Year.ToString().Substring(2);
|
||||
tbMon.Text = DateTime.Now.Month.ToString("X");
|
||||
this.radNormal.Checked = true;
|
||||
RefreshID();
|
||||
}
|
||||
|
||||
private void btOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
var codelen = 15;
|
||||
this.NewID = tbRID.Text;
|
||||
if (this.NewID.Length != codelen)
|
||||
{
|
||||
UTIL.MsgE($"Reel ID는 {codelen}자리 입니다");
|
||||
return;
|
||||
}
|
||||
|
||||
//db에서도 검색한다
|
||||
var db = new EEEntities();
|
||||
if (db.Component_Reel_Result.Where(t => t.RID == NewID).Any())
|
||||
{
|
||||
UTIL.MsgE($"해당 ID는 발행 기록이 있는 ID 입니다\n값:{NewID}");
|
||||
return;
|
||||
}
|
||||
|
||||
//서버에서 중복검사실행
|
||||
if (AR.SETTING.Data.OnlineMode == false)
|
||||
{
|
||||
UTIL.MsgE("오프라인 모드라 사용할 수 없습니다");
|
||||
return;
|
||||
}
|
||||
|
||||
var rlt = Amkor.RestfulService.get_existed_matl_by_id(NewID);
|
||||
if (rlt.Complete == false)
|
||||
{
|
||||
UTIL.MsgE("중복검사 실패\n" + rlt.Message);
|
||||
return;
|
||||
}
|
||||
else if (rlt.Result == true)
|
||||
{
|
||||
UTIL.MsgE("REEL ID 가 중복되었습니다\n새로고침 하세요");
|
||||
return;
|
||||
}
|
||||
|
||||
////데이터를 추가해준다.
|
||||
//var db = new EEEntities();
|
||||
//db.Component_Reel_NewAssign.Add(new Component_Reel_NewAssign()
|
||||
//{
|
||||
// bPrint = false,
|
||||
// CUST = tbCustCode.Text.Trim(),
|
||||
// TIME = tbYear.Text.Trim(),
|
||||
// DIV = tbDiv.Text.Trim(),
|
||||
// SEQ = tbSeq.Text,
|
||||
// RID = tbRID.Text.Trim(),
|
||||
// wdate = DateTime.Now,
|
||||
// wuid = COMM.SETTING.Data.Asset,
|
||||
//});
|
||||
//db.SaveChanges();
|
||||
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
void UpdateRID()
|
||||
{
|
||||
var data = tb1.Text.Trim();
|
||||
data += tbtype.Text.Trim();
|
||||
data += tbCustCode.Text.Trim();
|
||||
data += tbLoca.Text.Trim();
|
||||
data += tbDiv.Text.Trim();
|
||||
data += tbYear.Text.Trim();
|
||||
data += tbMon.Text.Trim();
|
||||
data += tbSeq.Text.Trim();
|
||||
this.tbRID.Text = data;
|
||||
}
|
||||
|
||||
private void tbCustCode_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateRID();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshID();
|
||||
}
|
||||
void RefreshID()
|
||||
{
|
||||
if (tbCustCode.Text.Length != 4)
|
||||
{
|
||||
tbCustCode.Focus();
|
||||
tbCustCode.SelectAll();
|
||||
}
|
||||
|
||||
|
||||
//시간정보업데이트
|
||||
tbYear.Text = DateTime.Now.ToString("yy");
|
||||
tbDiv.Text = AR.SETTING.Data.ReelIdDeviceID; //라벨어태치용
|
||||
|
||||
UpdateSN();
|
||||
UpdateRID();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 일련번호 업데이트
|
||||
/// </summary>
|
||||
void UpdateSN()
|
||||
{
|
||||
var datestr = this.tbYear.Text + this.tbMon.Text;
|
||||
if (datestr.Length != 3)
|
||||
{
|
||||
UTIL.MsgE("년도/월 값이 입력되지 않았습니다");
|
||||
return;
|
||||
}
|
||||
|
||||
var newsn = string.Empty;
|
||||
|
||||
if (this.radReturn.Checked)
|
||||
newsn = AmkorReelID.GetNextSNbyYM_Return(datestr);
|
||||
else if (this.radDup.Checked)
|
||||
newsn = AmkorReelID.GetNextSNbyYM_Dup(datestr);
|
||||
else
|
||||
newsn = AmkorReelID.GetNextSNbyYM(datestr);
|
||||
|
||||
tbSeq.Text = newsn;
|
||||
}
|
||||
|
||||
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tbCustCode, "고객코드를 입력하세요");
|
||||
}
|
||||
|
||||
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tbDiv, "장치 분류를 입력(L:Logistic/M:Manufacture,A:AutoLabel Attach)");
|
||||
}
|
||||
|
||||
private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tbSeq, "일련번호입력(001~999)");
|
||||
}
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tbYear, "년도(2자리)");
|
||||
}
|
||||
|
||||
private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tb1, "예약됨(R)");
|
||||
}
|
||||
|
||||
private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tbtype, "예약됨(C/I)");
|
||||
}
|
||||
|
||||
private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tbLoca, "발행처(3/4/5)");
|
||||
}
|
||||
|
||||
private void linkLabel8_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
UTIL.TouchKeyShow(tbMon, "월(1자리 10월=A,11월=B,12월=C");
|
||||
}
|
||||
|
||||
private void button8_Click(object sender, EventArgs e)
|
||||
{
|
||||
//중복검사
|
||||
var rid = tbRID.Text.Trim();
|
||||
if (rid.isEmpty())
|
||||
{
|
||||
UTIL.MsgE("Reel Id 값이 없습니다");
|
||||
return;
|
||||
}
|
||||
|
||||
//db에서도 검색한다
|
||||
if (AR.SETTING.Data.OnlineMode)
|
||||
{
|
||||
var db = new EEEntities();
|
||||
if (db.Component_Reel_Result.Where(t => t.RID == rid).Any())
|
||||
{
|
||||
UTIL.MsgE($"해당 ID는 발행 기록이 있는 ID 입니다\n값:{rid}");
|
||||
return;
|
||||
}
|
||||
|
||||
var result = Amkor.RestfulService.get_existed_matl_by_id(rid);
|
||||
if (result.Complete == false)
|
||||
{
|
||||
UTIL.MsgE("중복검사 서버 오류\n" + result.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (result.Result == true)
|
||||
{
|
||||
UTIL.MsgE($"해당 ID는 중복된 ID 입니다\n값:{rid}");
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
UTIL.MsgI($"해당 ID는 중복되지 않았습니다\n{rid}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void chkReturn_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateSN();
|
||||
UpdateRID();
|
||||
}
|
||||
|
||||
private void button1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
UpdateSN();
|
||||
}
|
||||
|
||||
private void radNormal_Click(object sender, EventArgs e)
|
||||
{
|
||||
UpdateSN();
|
||||
UpdateRID();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -2,11 +2,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Data.SqlClient;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Forms.Design;
|
||||
using AR;
|
||||
namespace Project.Dialog
|
||||
{
|
||||
@@ -258,7 +261,7 @@ namespace Project.Dialog
|
||||
//PUB.sm.seq.Clear(eSMStep.RUN_VISION0);
|
||||
//PUB.sm.seq.UpdateTime(eSMStep.RUN_COM_VS0);
|
||||
PUB.log.Add(string.Format("LEFT-QR검증({0}) 취소 JGUID={1}", "L", PUB.Result.ItemDataL.guid));
|
||||
UpdateDatabase(0);
|
||||
UpdateDatabase(eWorkPort.Left);
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
@@ -283,25 +286,34 @@ namespace Project.Dialog
|
||||
{
|
||||
var itemdata = vidx == eWorkPort.Left ? PUB.Result.ItemDataL : PUB.Result.ItemDataR;
|
||||
|
||||
//취소상태를 DB에도 남긴다.
|
||||
using (var db = new EEEntities())
|
||||
var sql = "select top 1 * from K4EE_Component_Reel_Result where JGUID = @jguid";
|
||||
var dr = DBHelper.Get<DataSet1.Component_Reel_ResultDataTable>(sql, new SqlParameter("jguid", itemdata.guid)).FirstOrDefault();
|
||||
if (dr == null)
|
||||
{
|
||||
|
||||
var dr = db.Component_Reel_Result.AsNoTracking().Where(t => t.JGUID == itemdata.guid).FirstOrDefault();
|
||||
if (dr == null)
|
||||
{
|
||||
var ermsg = string.Format("다음 guid 를 찾을수 없어 검증취소 를 변경하지 못함 vidx={2},guid={0},sid={1}", itemdata.guid, itemdata.VisionData.SID, vidx);
|
||||
PUB.AddDebugLog(ermsg, true);
|
||||
PUB.log.AddE(ermsg);
|
||||
}
|
||||
else
|
||||
{
|
||||
dr.ANGLE = itemdata.VisionData.ApplyAngle; //210331 - 도중에 사용자 angle 이 있다면 그것이 적용되었음
|
||||
dr.PRNVALID = false;
|
||||
dr.REMARK = "검증취소";
|
||||
db.SaveChanges();
|
||||
}
|
||||
var ermsg = string.Format("다음 guid 를 찾을수 없어 검증취소 를 변경하지 못함 vidx={2},guid={0},sid={1}", itemdata.guid, itemdata.VisionData.SID, vidx);
|
||||
PUB.AddDebugLog(ermsg, true);
|
||||
PUB.log.AddE(ermsg);
|
||||
}
|
||||
else
|
||||
{
|
||||
DBHelper.UpdateWhere("K4EE_Component_Reel_Result",
|
||||
new Dictionary<string, object>
|
||||
{
|
||||
{ "ANGLE", itemdata.VisionData.ApplyAngle },
|
||||
{ "PRNVALID", 0 },
|
||||
{ "REMARK", "검증취소" }
|
||||
},
|
||||
new Dictionary<string, object>
|
||||
{
|
||||
{ "idx", dr.idx }
|
||||
});
|
||||
|
||||
//dr.ANGLE = itemdata.VisionData.ApplyAngle; //210331 - 도중에 사용자 angle 이 있다면 그것이 적용되었음
|
||||
//dr.PRNVALID = false;
|
||||
//dr.REMARK = "검증취소";
|
||||
//db.SaveChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void button11_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
|
||||
@@ -517,7 +517,7 @@ namespace Project.Dialog
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.TopMost = false;
|
||||
var f = new Dialog.fTouchKeyFull("CUSTOMER CODE", cmbCustCode.Text.Trim());
|
||||
var f = new AR.Dialog.fTouchKeyFull("CUSTOMER CODE", cmbCustCode.Text.Trim());
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
cmbCustCode.Text = f.tbInput.Text.Trim();
|
||||
|
||||
@@ -13,12 +13,12 @@ namespace Project.Dialog
|
||||
{
|
||||
public partial class fSelectResult : Form
|
||||
{
|
||||
public Component_Reel_Result SelectedValue = null;
|
||||
public fSelectResult(List<Component_Reel_Result> list)
|
||||
public DataSet1.Component_Reel_ResultRow SelectedValue = null;
|
||||
public fSelectResult(DataSet1.Component_Reel_ResultDataTable list)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.lv1.Items.Clear();
|
||||
foreach (var item in list)
|
||||
foreach (DataSet1.Component_Reel_ResultRow item in list)
|
||||
{
|
||||
var dt = (DateTime)item.wdate;
|
||||
var lv = this.lv1.Items.Add(dt.ToString("dd HH:mm:ss"));
|
||||
@@ -53,7 +53,7 @@ namespace Project.Dialog
|
||||
UTIL.MsgE("아이템을 선택하세요\n\n취소하려면 ESC키 혹은 닫기 버튼을 누르세요");
|
||||
return;
|
||||
}
|
||||
this.SelectedValue = this.lv1.FocusedItem.Tag as Component_Reel_Result;
|
||||
this.SelectedValue = this.lv1.FocusedItem.Tag as DataSet1.Component_Reel_ResultRow;
|
||||
this.DialogResult = DialogResult.OK;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
|
||||
207
Handler/Project/Dialog/fZPLEditor.Designer.cs
generated
207
Handler/Project/Dialog/fZPLEditor.Designer.cs
generated
@@ -29,114 +29,113 @@ namespace Project.Dialog
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fZPLEditor));
|
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
|
||||
this.logTextBox1 = new arCtl.LogTextBox();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// richTextBox1
|
||||
//
|
||||
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.richTextBox1.Location = new System.Drawing.Point(0, 39);
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.Size = new System.Drawing.Size(664, 462);
|
||||
this.richTextBox1.TabIndex = 0;
|
||||
this.richTextBox1.Text = "";
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton4 = new System.Windows.Forms.ToolStripButton();
|
||||
this.logTextBox1 = new arCtl.LogTextBox();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// richTextBox1
|
||||
//
|
||||
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.richTextBox1.Location = new System.Drawing.Point(0, 39);
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.Size = new System.Drawing.Size(664, 462);
|
||||
this.richTextBox1.TabIndex = 0;
|
||||
this.richTextBox1.Text = "";
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.toolStripButton4});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(664, 39);
|
||||
this.toolStrip1.TabIndex = 1;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// 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(69, 36);
|
||||
this.toolStripButton1.Text = "Load";
|
||||
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(68, 36);
|
||||
this.toolStripButton2.Text = "Save";
|
||||
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
|
||||
//
|
||||
// toolStripButton3
|
||||
//
|
||||
this.toolStripButton3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
|
||||
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new System.Drawing.Size(82, 36);
|
||||
this.toolStripButton3.Text = "Print(L)";
|
||||
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
|
||||
//
|
||||
// toolStripButton4
|
||||
//
|
||||
this.toolStripButton4.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton4.Image")));
|
||||
this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new System.Drawing.Size(83, 36);
|
||||
this.toolStripButton4.Text = "Print(R)";
|
||||
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
|
||||
//
|
||||
// logTextBox1
|
||||
//
|
||||
this.logTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
|
||||
this.logTextBox1.ColorList = new arCtl.sLogMessageColor[0];
|
||||
this.logTextBox1.DateFormat = "yy-MM-dd HH:mm:ss";
|
||||
this.logTextBox1.DefaultColor = System.Drawing.Color.LightGray;
|
||||
this.logTextBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.logTextBox1.EnableDisplayTimer = true;
|
||||
this.logTextBox1.EnableGubunColor = true;
|
||||
this.logTextBox1.Font = new System.Drawing.Font("Consolas", 9F);
|
||||
this.logTextBox1.ListFormat = "[{0}] {1}";
|
||||
this.logTextBox1.Location = new System.Drawing.Point(0, 501);
|
||||
this.logTextBox1.MaxListCount = ((ushort)(200));
|
||||
this.logTextBox1.MaxTextLength = ((uint)(4000u));
|
||||
this.logTextBox1.MessageInterval = 50;
|
||||
this.logTextBox1.Name = "logTextBox1";
|
||||
this.logTextBox1.Size = new System.Drawing.Size(664, 100);
|
||||
this.logTextBox1.TabIndex = 2;
|
||||
this.logTextBox1.Text = "";
|
||||
//
|
||||
// fZPLEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(664, 601);
|
||||
this.Controls.Add(this.richTextBox1);
|
||||
this.Controls.Add(this.logTextBox1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Name = "fZPLEditor";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "fZPLEditor";
|
||||
this.Load += new System.EventHandler(this.fZPLEditor_Load);
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(664, 39);
|
||||
this.toolStrip1.TabIndex = 1;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
this.toolStripButton1.Image = global::Project.Properties.Resources.icons8_folder_40;
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(69, 36);
|
||||
this.toolStripButton1.Text = "Load";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// toolStripButton2
|
||||
//
|
||||
this.toolStripButton2.Image = global::Project.Properties.Resources.icons8_save_40;
|
||||
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new System.Drawing.Size(68, 36);
|
||||
this.toolStripButton2.Text = "Save";
|
||||
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
|
||||
//
|
||||
// toolStripButton3
|
||||
//
|
||||
this.toolStripButton3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton3.Image = global::Project.Properties.Resources.icons8_printer_48;
|
||||
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new System.Drawing.Size(82, 36);
|
||||
this.toolStripButton3.Text = "Print(L)";
|
||||
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
|
||||
//
|
||||
// toolStripButton4
|
||||
//
|
||||
this.toolStripButton4.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton4.Image = global::Project.Properties.Resources.icons8_printer_48;
|
||||
this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton4.Name = "toolStripButton4";
|
||||
this.toolStripButton4.Size = new System.Drawing.Size(83, 36);
|
||||
this.toolStripButton4.Text = "Print(R)";
|
||||
this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click);
|
||||
//
|
||||
// logTextBox1
|
||||
//
|
||||
this.logTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
|
||||
this.logTextBox1.ColorList = new arCtl.sLogMessageColor[0];
|
||||
this.logTextBox1.DateFormat = "yy-MM-dd HH:mm:ss";
|
||||
this.logTextBox1.DefaultColor = System.Drawing.Color.LightGray;
|
||||
this.logTextBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.logTextBox1.EnableDisplayTimer = true;
|
||||
this.logTextBox1.EnableGubunColor = true;
|
||||
this.logTextBox1.Font = new System.Drawing.Font("Consolas", 9F);
|
||||
this.logTextBox1.ListFormat = "[{0}] {1}";
|
||||
this.logTextBox1.Location = new System.Drawing.Point(0, 501);
|
||||
this.logTextBox1.MaxListCount = ((ushort)(200));
|
||||
this.logTextBox1.MaxTextLength = ((uint)(4000u));
|
||||
this.logTextBox1.MessageInterval = 50;
|
||||
this.logTextBox1.Name = "logTextBox1";
|
||||
this.logTextBox1.Size = new System.Drawing.Size(664, 100);
|
||||
this.logTextBox1.TabIndex = 2;
|
||||
this.logTextBox1.Text = "";
|
||||
//
|
||||
// fZPLEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(664, 601);
|
||||
this.Controls.Add(this.richTextBox1);
|
||||
this.Controls.Add(this.logTextBox1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Name = "fZPLEditor";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "ZPL Printer Code Editor";
|
||||
this.Load += new System.EventHandler(this.fZPLEditor_Load);
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -120,65 +120,4 @@
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="toolStripButton1.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>
|
||||
<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>
|
||||
<data name="toolStripButton3.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>
|
||||
<data name="toolStripButton4.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>
|
||||
</root>
|
||||
356
Handler/Project/Manager/DBHelper.cs
Normal file
356
Handler/Project/Manager/DBHelper.cs
Normal file
@@ -0,0 +1,356 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using AR;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public static class DBHelper
|
||||
{
|
||||
public static SqlConnection GetConnection()
|
||||
{
|
||||
var cs = SETTING.Data.WMS_DB_PROD ? Properties.Settings.Default.WMS_PRD : Properties.Settings.Default.WMS_DEV;
|
||||
return new SqlConnection(cs);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static int ExecuteNonQuery(string sql, params SqlParameter[] p)
|
||||
{
|
||||
var cn = GetConnection();
|
||||
try
|
||||
{
|
||||
var cmd = new SqlCommand(sql, cn);
|
||||
if (p != null) cmd.Parameters.AddRange(p);
|
||||
cn.Open();
|
||||
return cmd.ExecuteNonQuery();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// 예외 처리 (필요에 따라 로깅 추가)
|
||||
return -1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (cn != null && cn.State != ConnectionState.Closed)
|
||||
cn.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// CodeIgniter 스타일의 UPDATE 헬퍼 (Dictionary 방식)
|
||||
public static int Update(string tableName, Dictionary<string, object> data, string whereClause = "", params SqlParameter[] whereParams)
|
||||
{
|
||||
if (data == null || data.Count == 0)
|
||||
return 0;
|
||||
|
||||
var setClause = new List<string>();
|
||||
var parameters = new List<SqlParameter>();
|
||||
int paramIndex = 0;
|
||||
|
||||
// SET 절 생성
|
||||
foreach (var item in data)
|
||||
{
|
||||
string paramName = $"@set{paramIndex}";
|
||||
setClause.Add($"{item.Key} = {paramName}");
|
||||
parameters.Add(new SqlParameter(paramName, item.Value ?? DBNull.Value));
|
||||
paramIndex++;
|
||||
}
|
||||
|
||||
// WHERE 절 파라미터 추가
|
||||
if (whereParams != null)
|
||||
{
|
||||
parameters.AddRange(whereParams);
|
||||
}
|
||||
|
||||
string sql = $"UPDATE {tableName} SET {string.Join(", ", setClause)}";
|
||||
if (!string.IsNullOrEmpty(whereClause))
|
||||
{
|
||||
sql += $" WHERE {whereClause}";
|
||||
}
|
||||
|
||||
return ExecuteNonQuery(sql, parameters.ToArray());
|
||||
}
|
||||
|
||||
// SqlParameter 배열 방식의 UPDATE 헬퍼
|
||||
public static int Update(string tableName, string setClause, string whereClause = "", params SqlParameter[] parameters)
|
||||
{
|
||||
string sql = $"UPDATE {tableName} SET {setClause}";
|
||||
if (!string.IsNullOrEmpty(whereClause))
|
||||
{
|
||||
sql += $" WHERE {whereClause}";
|
||||
}
|
||||
|
||||
return ExecuteNonQuery(sql, parameters);
|
||||
}
|
||||
|
||||
|
||||
// 여러 조건을 위한 헬퍼 (Dictionary 방식)
|
||||
public static int UpdateWhere(string tableName, Dictionary<string, object> data, Dictionary<string, object> whereConditions)
|
||||
{
|
||||
if (whereConditions == null || whereConditions.Count == 0)
|
||||
return Update(tableName, data);
|
||||
|
||||
var whereClause = new List<string>();
|
||||
var whereParams = new List<SqlParameter>();
|
||||
int paramIndex = 0;
|
||||
|
||||
foreach (var condition in whereConditions)
|
||||
{
|
||||
string paramName = $"@where{paramIndex}";
|
||||
whereClause.Add($"{condition.Key} = {paramName}");
|
||||
whereParams.Add(new SqlParameter(paramName, condition.Value ?? DBNull.Value));
|
||||
paramIndex++;
|
||||
}
|
||||
|
||||
return Update(tableName, data, string.Join(" AND ", whereClause), whereParams.ToArray());
|
||||
}
|
||||
|
||||
public static int UpdateWhere(string tableName, string setClause, string whereColumn, object whereValue)
|
||||
{
|
||||
return Update(tableName, setClause, $"{whereColumn} = @whereValue", new SqlParameter("@whereValue", whereValue));
|
||||
}
|
||||
|
||||
// CodeIgniter 스타일의 DELETE 헬퍼
|
||||
public static int Delete(string tableName, string whereClause = "", params SqlParameter[] whereParams)
|
||||
{
|
||||
string sql = $"DELETE FROM {tableName}";
|
||||
if (!string.IsNullOrEmpty(whereClause))
|
||||
{
|
||||
sql += $" WHERE {whereClause}";
|
||||
}
|
||||
|
||||
return ExecuteNonQuery(sql, whereParams);
|
||||
}
|
||||
|
||||
// 간단한 WHERE 조건을 위한 DELETE 헬퍼
|
||||
public static int DeleteWhere(string tableName, string whereColumn, object whereValue)
|
||||
{
|
||||
return Delete(tableName, $"{whereColumn} = @whereValue", new SqlParameter("@whereValue", whereValue));
|
||||
}
|
||||
|
||||
// 여러 조건을 위한 DELETE 헬퍼 (Dictionary 방식)
|
||||
public static int DeleteWhere(string tableName, Dictionary<string, object> whereConditions)
|
||||
{
|
||||
if (whereConditions == null || whereConditions.Count == 0)
|
||||
return Delete(tableName); // WHERE 절 없이 전체 삭제
|
||||
|
||||
var whereClause = new List<string>();
|
||||
var whereParams = new List<SqlParameter>();
|
||||
int paramIndex = 0;
|
||||
|
||||
foreach (var condition in whereConditions)
|
||||
{
|
||||
string paramName = $"@where{paramIndex}";
|
||||
whereClause.Add($"{condition.Key} = {paramName}");
|
||||
whereParams.Add(new SqlParameter(paramName, condition.Value ?? DBNull.Value));
|
||||
paramIndex++;
|
||||
}
|
||||
|
||||
return Delete(tableName, string.Join(" AND ", whereClause), whereParams.ToArray());
|
||||
}
|
||||
|
||||
// SqlParameter 배열을 받는 DELETE 헬퍼 오버로드
|
||||
public static int DeleteWhere(string tableName, string whereClause, params SqlParameter[] whereParams)
|
||||
{
|
||||
return Delete(tableName, whereClause, whereParams);
|
||||
}
|
||||
|
||||
// 테이블 전체 삭제 (TRUNCATE 대신 DELETE 사용)
|
||||
public static int DeleteAll(string tableName)
|
||||
{
|
||||
return Delete(tableName);
|
||||
}
|
||||
|
||||
// CodeIgniter 스타일의 SELECT 헬퍼
|
||||
public static DataTable Select(string tableName, string columns = "*", string whereClause = "", params SqlParameter[] whereParams)
|
||||
{
|
||||
string sql = $"SELECT {columns} FROM {tableName}";
|
||||
if (!string.IsNullOrEmpty(whereClause))
|
||||
{
|
||||
sql += $" WHERE {whereClause}";
|
||||
}
|
||||
|
||||
return Get(sql, whereParams);
|
||||
}
|
||||
|
||||
// 간단한 WHERE 조건을 위한 SELECT 헬퍼
|
||||
public static DataTable SelectWhere(string tableName, string columns = "*", string whereColumn = "", object whereValue = null)
|
||||
{
|
||||
if (string.IsNullOrEmpty(whereColumn) || whereValue == null)
|
||||
return Select(tableName, columns);
|
||||
|
||||
return Select(tableName, columns, $"{whereColumn} = @whereValue", new SqlParameter("@whereValue", whereValue));
|
||||
}
|
||||
|
||||
// SqlParameter 배열을 받는 SELECT 헬퍼 오버로드
|
||||
public static DataTable SelectWhere(string tableName, string columns, string whereClause, params SqlParameter[] whereParams)
|
||||
{
|
||||
return Select(tableName, columns, whereClause, whereParams);
|
||||
}
|
||||
|
||||
// Dictionary로 WHERE 조건을 받는 SELECT 헬퍼 오버로드
|
||||
public static DataTable SelectWhere(string tableName, string columns, Dictionary<string, object> whereConditions)
|
||||
{
|
||||
if (whereConditions == null || whereConditions.Count == 0)
|
||||
return Select(tableName, columns);
|
||||
|
||||
var whereClause = new List<string>();
|
||||
var whereParams = new List<SqlParameter>();
|
||||
int paramIndex = 0;
|
||||
|
||||
foreach (var condition in whereConditions)
|
||||
{
|
||||
string paramName = $"@where{paramIndex}";
|
||||
whereClause.Add($"{condition.Key} = {paramName}");
|
||||
whereParams.Add(new SqlParameter(paramName, condition.Value ?? DBNull.Value));
|
||||
paramIndex++;
|
||||
}
|
||||
|
||||
return Select(tableName, columns, string.Join(" AND ", whereClause), whereParams.ToArray());
|
||||
}
|
||||
|
||||
// Dictionary로 WHERE 조건을 받는 SELECT 헬퍼 (기본 컬럼 *)
|
||||
public static DataTable SelectWhere(string tableName, Dictionary<string, object> whereConditions)
|
||||
{
|
||||
return SelectWhere(tableName, "*", whereConditions);
|
||||
}
|
||||
|
||||
// ORDER BY가 포함된 SELECT 헬퍼
|
||||
public static DataTable SelectOrderBy(string tableName, string columns = "*", string whereClause = "", string orderBy = "", params SqlParameter[] whereParams)
|
||||
{
|
||||
string sql = $"SELECT {columns} FROM {tableName}";
|
||||
if (!string.IsNullOrEmpty(whereClause))
|
||||
{
|
||||
sql += $" WHERE {whereClause}";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(orderBy))
|
||||
{
|
||||
sql += $" ORDER BY {orderBy}";
|
||||
}
|
||||
|
||||
return Get(sql, whereParams);
|
||||
}
|
||||
|
||||
// LIMIT이 포함된 SELECT 헬퍼 (TOP 사용)
|
||||
public static DataTable SelectLimit(string tableName, int limit, string columns = "*", string whereClause = "", string orderBy = "", params SqlParameter[] whereParams)
|
||||
{
|
||||
string sql = $"SELECT TOP {limit} {columns} FROM {tableName}";
|
||||
if (!string.IsNullOrEmpty(whereClause))
|
||||
{
|
||||
sql += $" WHERE {whereClause}";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(orderBy))
|
||||
{
|
||||
sql += $" ORDER BY {orderBy}";
|
||||
}
|
||||
|
||||
return Get(sql, whereParams);
|
||||
}
|
||||
|
||||
public static DataRow SelectFirst(string tableName, string columns = "*", Dictionary<string, object> whereParams = null)
|
||||
{
|
||||
if (whereParams == null || whereParams.Count == 0)
|
||||
return SelectFirst(tableName, columns);
|
||||
|
||||
var whereClause = new List<string>();
|
||||
var sqlParams = new List<SqlParameter>();
|
||||
int paramIndex = 0;
|
||||
|
||||
foreach (var condition in whereParams)
|
||||
{
|
||||
string paramName = $"@where{paramIndex}";
|
||||
whereClause.Add($"{condition.Key} = {paramName}");
|
||||
sqlParams.Add(new SqlParameter(paramName, condition.Value ?? DBNull.Value));
|
||||
paramIndex++;
|
||||
}
|
||||
|
||||
var dt = SelectLimit(tableName, 1, columns, string.Join(" AND ", whereClause), "", sqlParams.ToArray());
|
||||
return dt.Rows.Count > 0 ? dt.Rows[0] : null;
|
||||
}
|
||||
// 단일 행 조회 (첫 번째 행만)
|
||||
public static DataRow SelectFirst(string tableName, string columns = "*", string whereClause = "", params SqlParameter[] whereParams)
|
||||
{
|
||||
var dt = SelectLimit(tableName, 1, columns, whereClause, "", whereParams);
|
||||
return dt.Rows.Count > 0 ? dt.Rows[0] : null;
|
||||
}
|
||||
|
||||
// 단일 값 조회 (첫 번째 행의 첫 번째 컬럼)
|
||||
public static object SelectValue(string tableName, string column, string whereClause = "", params SqlParameter[] whereParams)
|
||||
{
|
||||
var row = SelectFirst(tableName, column, whereClause, whereParams);
|
||||
return row != null ? row[0] : null;
|
||||
}
|
||||
|
||||
public static T Get<T>(string sql, params SqlParameter[] p) where T : DataTable
|
||||
{
|
||||
var dt = (T)Activator.CreateInstance(typeof(T));
|
||||
var cn = GetConnection();
|
||||
try
|
||||
{
|
||||
var cmd = new SqlCommand(sql, cn);
|
||||
if (p != null) cmd.Parameters.AddRange(p);
|
||||
var da = new SqlDataAdapter(cmd);
|
||||
da.Fill(dt);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (cn != null && cn.State != ConnectionState.Closed)
|
||||
cn.Close();
|
||||
}
|
||||
return dt;
|
||||
}
|
||||
public static DataTable Get(string sql, params SqlParameter[] p)
|
||||
{
|
||||
var dt = new DataTable();
|
||||
var cn = GetConnection();
|
||||
try
|
||||
{
|
||||
var cmd = new SqlCommand(sql, cn);
|
||||
if (p != null) cmd.Parameters.AddRange(p);
|
||||
var da = new SqlDataAdapter(cmd);
|
||||
da.Fill(dt);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (cn != null && cn.State != ConnectionState.Closed)
|
||||
cn.Close();
|
||||
}
|
||||
|
||||
return dt;
|
||||
}
|
||||
public static void Fill(string sql, DataTable dt, params SqlParameter[] p)
|
||||
{
|
||||
var cn = GetConnection();
|
||||
try
|
||||
{
|
||||
var cmd = new SqlCommand(sql, cn);
|
||||
if (p != null) cmd.Parameters.Add(p);
|
||||
var da = new SqlDataAdapter(cmd);
|
||||
dt = new DataTable();
|
||||
da.Fill(dt);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (cn != null && cn.State != ConnectionState.Closed)
|
||||
cn.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 이 코드는 템플릿에서 생성되었습니다.
|
||||
//
|
||||
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
|
||||
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Project
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
|
||||
public partial class EEEntities : DbContext
|
||||
{
|
||||
public EEEntities()
|
||||
: base("name=EEEntities")
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
throw new UnintentionalCodeFirstException();
|
||||
}
|
||||
|
||||
public virtual DbSet<Component_Reel_Result> Component_Reel_Result { get; set; }
|
||||
public virtual DbSet<Component_Reel_Info> Component_Reel_Info { get; set; }
|
||||
public virtual DbSet<Component_Reel_SID_Convert> Component_Reel_SID_Convert { get; set; }
|
||||
public virtual DbSet<vCustomerList> vCustomerList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,636 +0,0 @@
|
||||
<#@ template language="C#" debug="false" hostspecific="true"#>
|
||||
<#@ include file="EF6.Utility.CS.ttinclude"#><#@
|
||||
output extension=".cs"#><#
|
||||
|
||||
const string inputFile = @"Model1.edmx";
|
||||
var textTransform = DynamicTextTransformation.Create(this);
|
||||
var code = new CodeGenerationTools(this);
|
||||
var ef = new MetadataTools(this);
|
||||
var typeMapper = new TypeMapper(code, ef, textTransform.Errors);
|
||||
var loader = new EdmMetadataLoader(textTransform.Host, textTransform.Errors);
|
||||
var itemCollection = loader.CreateEdmItemCollection(inputFile);
|
||||
var modelNamespace = loader.GetModelNamespace(inputFile);
|
||||
var codeStringGenerator = new CodeStringGenerator(code, typeMapper, ef);
|
||||
|
||||
var container = itemCollection.OfType<EntityContainer>().FirstOrDefault();
|
||||
if (container == null)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
#>
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
|
||||
//
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
<#
|
||||
|
||||
var codeNamespace = code.VsNamespaceSuggestion();
|
||||
if (!String.IsNullOrEmpty(codeNamespace))
|
||||
{
|
||||
#>
|
||||
namespace <#=code.EscapeNamespace(codeNamespace)#>
|
||||
{
|
||||
<#
|
||||
PushIndent(" ");
|
||||
}
|
||||
|
||||
#>
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
<#
|
||||
if (container.FunctionImports.Any())
|
||||
{
|
||||
#>
|
||||
using System.Data.Entity.Core.Objects;
|
||||
using System.Linq;
|
||||
<#
|
||||
}
|
||||
#>
|
||||
|
||||
<#=Accessibility.ForType(container)#> partial class <#=code.Escape(container)#> : DbContext
|
||||
{
|
||||
public <#=code.Escape(container)#>()
|
||||
: base("name=<#=container.Name#>")
|
||||
{
|
||||
<#
|
||||
if (!loader.IsLazyLoadingEnabled(container))
|
||||
{
|
||||
#>
|
||||
this.Configuration.LazyLoadingEnabled = false;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var entitySet in container.BaseEntitySets.OfType<EntitySet>())
|
||||
{
|
||||
// Note: the DbSet members are defined below such that the getter and
|
||||
// setter always have the same accessibility as the DbSet definition
|
||||
if (Accessibility.ForReadOnlyProperty(entitySet) != "public")
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.DbSetInitializer(entitySet)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
throw new UnintentionalCodeFirstException();
|
||||
}
|
||||
|
||||
<#
|
||||
foreach (var entitySet in container.BaseEntitySets.OfType<EntitySet>())
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.DbSet(entitySet)#>
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var edmFunction in container.FunctionImports)
|
||||
{
|
||||
WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: false);
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
|
||||
if (!String.IsNullOrEmpty(codeNamespace))
|
||||
{
|
||||
PopIndent();
|
||||
#>
|
||||
}
|
||||
<#
|
||||
}
|
||||
#>
|
||||
<#+
|
||||
|
||||
private void WriteFunctionImport(TypeMapper typeMapper, CodeStringGenerator codeStringGenerator, EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
if (typeMapper.IsComposable(edmFunction))
|
||||
{
|
||||
#>
|
||||
|
||||
[DbFunction("<#=edmFunction.NamespaceName#>", "<#=edmFunction.Name#>")]
|
||||
<#=codeStringGenerator.ComposableFunctionMethod(edmFunction, modelNamespace)#>
|
||||
{
|
||||
<#+
|
||||
codeStringGenerator.WriteFunctionParameters(edmFunction, WriteFunctionParameter);
|
||||
#>
|
||||
<#=codeStringGenerator.ComposableCreateQuery(edmFunction, modelNamespace)#>
|
||||
}
|
||||
<#+
|
||||
}
|
||||
else
|
||||
{
|
||||
#>
|
||||
|
||||
<#=codeStringGenerator.FunctionMethod(edmFunction, modelNamespace, includeMergeOption)#>
|
||||
{
|
||||
<#+
|
||||
codeStringGenerator.WriteFunctionParameters(edmFunction, WriteFunctionParameter);
|
||||
#>
|
||||
<#=codeStringGenerator.ExecuteFunction(edmFunction, modelNamespace, includeMergeOption)#>
|
||||
}
|
||||
<#+
|
||||
if (typeMapper.GenerateMergeOptionFunction(edmFunction, includeMergeOption))
|
||||
{
|
||||
WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void WriteFunctionParameter(string name, string isNotNull, string notNullInit, string nullInit)
|
||||
{
|
||||
#>
|
||||
var <#=name#> = <#=isNotNull#> ?
|
||||
<#=notNullInit#> :
|
||||
<#=nullInit#>;
|
||||
|
||||
<#+
|
||||
}
|
||||
|
||||
public const string TemplateId = "CSharp_DbContext_Context_EF6";
|
||||
|
||||
public class CodeStringGenerator
|
||||
{
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly TypeMapper _typeMapper;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public CodeStringGenerator(CodeGenerationTools code, TypeMapper typeMapper, MetadataTools ef)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(typeMapper, "typeMapper");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
|
||||
_code = code;
|
||||
_typeMapper = typeMapper;
|
||||
_ef = ef;
|
||||
}
|
||||
|
||||
public string Property(EdmProperty edmProperty)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
Accessibility.ForProperty(edmProperty),
|
||||
_typeMapper.GetTypeName(edmProperty.TypeUsage),
|
||||
_code.Escape(edmProperty),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(edmProperty)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(edmProperty)));
|
||||
}
|
||||
|
||||
public string NavigationProperty(NavigationProperty navProp)
|
||||
{
|
||||
var endType = _typeMapper.GetTypeName(navProp.ToEndMember.GetEntityType());
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
AccessibilityAndVirtual(Accessibility.ForNavigationProperty(navProp)),
|
||||
navProp.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many ? ("ICollection<" + endType + ">") : endType,
|
||||
_code.Escape(navProp),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(navProp)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(navProp)));
|
||||
}
|
||||
|
||||
public string AccessibilityAndVirtual(string accessibility)
|
||||
{
|
||||
return accessibility + (accessibility != "private" ? " virtual" : "");
|
||||
}
|
||||
|
||||
public string EntityClassOpening(EntityType entity)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1}partial class {2}{3}",
|
||||
Accessibility.ForType(entity),
|
||||
_code.SpaceAfter(_code.AbstractOption(entity)),
|
||||
_code.Escape(entity),
|
||||
_code.StringBefore(" : ", _typeMapper.GetTypeName(entity.BaseType)));
|
||||
}
|
||||
|
||||
public string EnumOpening(SimpleType enumType)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} enum {1} : {2}",
|
||||
Accessibility.ForType(enumType),
|
||||
_code.Escape(enumType),
|
||||
_code.Escape(_typeMapper.UnderlyingClrType(enumType)));
|
||||
}
|
||||
|
||||
public void WriteFunctionParameters(EdmFunction edmFunction, Action<string, string, string, string> writeParameter)
|
||||
{
|
||||
var parameters = FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
foreach (var parameter in parameters.Where(p => p.NeedsLocalVariable))
|
||||
{
|
||||
var isNotNull = parameter.IsNullableOfT ? parameter.FunctionParameterName + ".HasValue" : parameter.FunctionParameterName + " != null";
|
||||
var notNullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", " + parameter.FunctionParameterName + ")";
|
||||
var nullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", typeof(" + TypeMapper.FixNamespaces(parameter.RawClrTypeName) + "))";
|
||||
writeParameter(parameter.LocalVariableName, isNotNull, notNullInit, nullInit);
|
||||
}
|
||||
}
|
||||
|
||||
public string ComposableFunctionMethod(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} IQueryable<{1}> {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
_code.Escape(edmFunction),
|
||||
string.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray()));
|
||||
}
|
||||
|
||||
public string ComposableCreateQuery(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.CreateQuery<{0}>(\"[{1}].[{2}]({3})\"{4});",
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
edmFunction.NamespaceName,
|
||||
edmFunction.Name,
|
||||
string.Join(", ", parameters.Select(p => "@" + p.EsqlParameterName).ToArray()),
|
||||
_code.StringBefore(", ", string.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray())));
|
||||
}
|
||||
|
||||
public string FunctionMethod(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var paramList = String.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray());
|
||||
if (includeMergeOption)
|
||||
{
|
||||
paramList = _code.StringAfter(paramList, ", ") + "MergeOption mergeOption";
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
returnType == null ? "int" : "ObjectResult<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
_code.Escape(edmFunction),
|
||||
paramList);
|
||||
}
|
||||
|
||||
public string ExecuteFunction(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var callParams = _code.StringBefore(", ", String.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray()));
|
||||
if (includeMergeOption)
|
||||
{
|
||||
callParams = ", mergeOption" + callParams;
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction{0}(\"{1}\"{2});",
|
||||
returnType == null ? "" : "<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
edmFunction.Name,
|
||||
callParams);
|
||||
}
|
||||
|
||||
public string DbSet(EntitySet entitySet)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} virtual DbSet<{1}> {2} {{ get; set; }}",
|
||||
Accessibility.ForReadOnlyProperty(entitySet),
|
||||
_typeMapper.GetTypeName(entitySet.ElementType),
|
||||
_code.Escape(entitySet));
|
||||
}
|
||||
|
||||
public string DbSetInitializer(EntitySet entitySet)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} = Set<{1}>();",
|
||||
_code.Escape(entitySet),
|
||||
_typeMapper.GetTypeName(entitySet.ElementType));
|
||||
}
|
||||
|
||||
public string UsingDirectives(bool inHeader, bool includeCollections = true)
|
||||
{
|
||||
return inHeader == string.IsNullOrEmpty(_code.VsNamespaceSuggestion())
|
||||
? string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0}using System;{1}" +
|
||||
"{2}",
|
||||
inHeader ? Environment.NewLine : "",
|
||||
includeCollections ? (Environment.NewLine + "using System.Collections.Generic;") : "",
|
||||
inHeader ? "" : Environment.NewLine)
|
||||
: "";
|
||||
}
|
||||
}
|
||||
|
||||
public class TypeMapper
|
||||
{
|
||||
private const string ExternalTypeNameAttributeName = @"http://schemas.microsoft.com/ado/2006/04/codegeneration:ExternalTypeName";
|
||||
|
||||
private readonly System.Collections.IList _errors;
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public static string FixNamespaces(string typeName)
|
||||
{
|
||||
return typeName.Replace("System.Data.Spatial.", "System.Data.Entity.Spatial.");
|
||||
}
|
||||
|
||||
public TypeMapper(CodeGenerationTools code, MetadataTools ef, System.Collections.IList errors)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
ArgumentNotNull(errors, "errors");
|
||||
|
||||
_code = code;
|
||||
_ef = ef;
|
||||
_errors = errors;
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage, string modelNamespace)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, string modelNamespace)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, bool? isNullable, string modelNamespace)
|
||||
{
|
||||
if (edmType == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var collectionType = edmType as CollectionType;
|
||||
if (collectionType != null)
|
||||
{
|
||||
return String.Format(CultureInfo.InvariantCulture, "ICollection<{0}>", GetTypeName(collectionType.TypeUsage, modelNamespace));
|
||||
}
|
||||
|
||||
var typeName = _code.Escape(edmType.MetadataProperties
|
||||
.Where(p => p.Name == ExternalTypeNameAttributeName)
|
||||
.Select(p => (string)p.Value)
|
||||
.FirstOrDefault())
|
||||
?? (modelNamespace != null && edmType.NamespaceName != modelNamespace ?
|
||||
_code.CreateFullName(_code.EscapeNamespace(edmType.NamespaceName), _code.Escape(edmType)) :
|
||||
_code.Escape(edmType));
|
||||
|
||||
if (edmType is StructuralType)
|
||||
{
|
||||
return typeName;
|
||||
}
|
||||
|
||||
if (edmType is SimpleType)
|
||||
{
|
||||
var clrType = UnderlyingClrType(edmType);
|
||||
if (!IsEnumType(edmType))
|
||||
{
|
||||
typeName = _code.Escape(clrType);
|
||||
}
|
||||
|
||||
typeName = FixNamespaces(typeName);
|
||||
|
||||
return clrType.IsValueType && isNullable == true ?
|
||||
String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", typeName) :
|
||||
typeName;
|
||||
}
|
||||
|
||||
throw new ArgumentException("edmType");
|
||||
}
|
||||
|
||||
public Type UnderlyingClrType(EdmType edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
var primitiveType = edmType as PrimitiveType;
|
||||
if (primitiveType != null)
|
||||
{
|
||||
return primitiveType.ClrEquivalentType;
|
||||
}
|
||||
|
||||
if (IsEnumType(edmType))
|
||||
{
|
||||
return GetEnumUnderlyingType(edmType).ClrEquivalentType;
|
||||
}
|
||||
|
||||
return typeof(object);
|
||||
}
|
||||
|
||||
public object GetEnumMemberValue(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var valueProperty = enumMember.GetType().GetProperty("Value");
|
||||
return valueProperty == null ? null : valueProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public string GetEnumMemberName(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var nameProperty = enumMember.GetType().GetProperty("Name");
|
||||
return nameProperty == null ? null : (string)nameProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public System.Collections.IEnumerable GetEnumMembers(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var membersProperty = enumType.GetType().GetProperty("Members");
|
||||
return membersProperty != null
|
||||
? (System.Collections.IEnumerable)membersProperty.GetValue(enumType, null)
|
||||
: Enumerable.Empty<MetadataItem>();
|
||||
}
|
||||
|
||||
public bool EnumIsFlags(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var isFlagsProperty = enumType.GetType().GetProperty("IsFlags");
|
||||
return isFlagsProperty != null && (bool)isFlagsProperty.GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public bool IsEnumType(GlobalItem edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
return edmType.GetType().Name == "EnumType";
|
||||
}
|
||||
|
||||
public PrimitiveType GetEnumUnderlyingType(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
return (PrimitiveType)enumType.GetType().GetProperty("UnderlyingType").GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public string CreateLiteral(object value)
|
||||
{
|
||||
if (value == null || value.GetType() != typeof(TimeSpan))
|
||||
{
|
||||
return _code.CreateLiteral(value);
|
||||
}
|
||||
|
||||
return string.Format(CultureInfo.InvariantCulture, "new TimeSpan({0})", ((TimeSpan)value).Ticks);
|
||||
}
|
||||
|
||||
public bool VerifyCaseInsensitiveTypeUniqueness(IEnumerable<string> types, string sourceFile)
|
||||
{
|
||||
ArgumentNotNull(types, "types");
|
||||
ArgumentNotNull(sourceFile, "sourceFile");
|
||||
|
||||
var hash = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
|
||||
if (types.Any(item => !hash.Add(item)))
|
||||
{
|
||||
_errors.Add(
|
||||
new CompilerError(sourceFile, -1, -1, "6023",
|
||||
String.Format(CultureInfo.CurrentCulture, CodeGenerationTools.GetResourceString("Template_CaseInsensitiveTypeConflict"))));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public IEnumerable<SimpleType> GetEnumItemsToGenerate(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return GetItemsToGenerate<SimpleType>(itemCollection)
|
||||
.Where(e => IsEnumType(e));
|
||||
}
|
||||
|
||||
public IEnumerable<T> GetItemsToGenerate<T>(IEnumerable<GlobalItem> itemCollection) where T: EdmType
|
||||
{
|
||||
return itemCollection
|
||||
.OfType<T>()
|
||||
.Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName))
|
||||
.OrderBy(i => i.Name);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetAllGlobalItems(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return itemCollection
|
||||
.Where(i => i is EntityType || i is ComplexType || i is EntityContainer || IsEnumType(i))
|
||||
.Select(g => GetGlobalItemName(g));
|
||||
}
|
||||
|
||||
public string GetGlobalItemName(GlobalItem item)
|
||||
{
|
||||
if (item is EdmType)
|
||||
{
|
||||
return ((EdmType)item).Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ((EntityContainer)item).Name;
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetCollectionNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type && np.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
|
||||
}
|
||||
|
||||
public FunctionParameter GetReturnParameter(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var returnParamsProperty = edmFunction.GetType().GetProperty("ReturnParameters");
|
||||
return returnParamsProperty == null
|
||||
? edmFunction.ReturnParameter
|
||||
: ((IEnumerable<FunctionParameter>)returnParamsProperty.GetValue(edmFunction, null)).FirstOrDefault();
|
||||
}
|
||||
|
||||
public bool IsComposable(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var isComposableProperty = edmFunction.GetType().GetProperty("IsComposableAttribute");
|
||||
return isComposableProperty != null && (bool)isComposableProperty.GetValue(edmFunction, null);
|
||||
}
|
||||
|
||||
public IEnumerable<FunctionImportParameter> GetParameters(EdmFunction edmFunction)
|
||||
{
|
||||
return FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
}
|
||||
|
||||
public TypeUsage GetReturnType(EdmFunction edmFunction)
|
||||
{
|
||||
var returnParam = GetReturnParameter(edmFunction);
|
||||
return returnParam == null ? null : _ef.GetElementType(returnParam.TypeUsage);
|
||||
}
|
||||
|
||||
public bool GenerateMergeOptionFunction(EdmFunction edmFunction, bool includeMergeOption)
|
||||
{
|
||||
var returnType = GetReturnType(edmFunction);
|
||||
return !includeMergeOption && returnType != null && returnType.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType;
|
||||
}
|
||||
}
|
||||
|
||||
public static void ArgumentNotNull<T>(T arg, string name) where T : class
|
||||
{
|
||||
if (arg == null)
|
||||
{
|
||||
throw new ArgumentNullException(name);
|
||||
}
|
||||
}
|
||||
#>
|
||||
10
Handler/Project/Model1.Designer.cs
generated
10
Handler/Project/Model1.Designer.cs
generated
@@ -1,10 +0,0 @@
|
||||
// 모델 'D:\Source\(4875) 물류 Amkor Reel ID Print & Attach 장비 개발 (STD) - 리시빙\Source\_V2_Handler(EV)(UniConv)_리시빙통합\Project\Model1.edmx'에 대해 T4 코드 생성이 사용됩니다.
|
||||
// 레거시 코드 생성을 사용하려면 '코드 생성 전략' 디자이너 속성의 값을
|
||||
// 'Legacy ObjectContext'로 변경하십시오. 이 속성은 모델이 디자이너에서 열릴 때
|
||||
// 속성 창에서 사용할 수 있습니다.
|
||||
|
||||
// 컨텍스트 및 엔터티 클래스가 생성되지 않은 경우 빈 모델을 만들었기 때문일 수도 있지만
|
||||
// 사용할 Entity Framework 버전을 선택하지 않았기 때문일 수도 있습니다. 모델에 맞는 컨텍스트 클래스 및
|
||||
// 엔터티 클래스를 생성하려면 디자이너에서 모델을 열고 디자이너 화면에서 마우스 오른쪽 단추를 클릭한
|
||||
// 다음 '데이터베이스에서 모델 업데이트...', '모델에서 데이터베이스 생성...' 또는 '코드 생성 항목 추가...'를
|
||||
// 선택하십시오.
|
||||
@@ -1,9 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 이 코드는 템플릿에서 생성되었습니다.
|
||||
//
|
||||
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
|
||||
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,275 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- EF Runtime content -->
|
||||
<edmx:Runtime>
|
||||
<!-- SSDL content -->
|
||||
<edmx:StorageModels>
|
||||
<Schema Namespace="EEModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
||||
<EntityType Name="Component_Reel_Info">
|
||||
<Key>
|
||||
<PropertyRef Name="idx" />
|
||||
<PropertyRef Name="CUST" />
|
||||
<PropertyRef Name="AMKSID" />
|
||||
</Key>
|
||||
<Property Name="idx" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="CUST" Type="varchar" MaxLength="6" Nullable="false" />
|
||||
<Property Name="AMKSID" Type="varchar" MaxLength="12" Nullable="false" />
|
||||
<Property Name="CUST_PARTNO" Type="varchar" MaxLength="30" Nullable="false" />
|
||||
<Property Name="MFG_PARTNO" Type="varchar" MaxLength="30" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="Component_Reel_Result">
|
||||
<Key>
|
||||
<PropertyRef Name="idx" />
|
||||
</Key>
|
||||
<Property Name="idx" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="MC" Type="varchar" MaxLength="10" />
|
||||
<Property Name="GUID" Type="uniqueidentifier" />
|
||||
<Property Name="STIME" Type="datetime" Nullable="false" />
|
||||
<Property Name="ETIME" Type="datetime" />
|
||||
<Property Name="PTIME" Type="datetime" />
|
||||
<Property Name="ATIME" Type="datetime" />
|
||||
<Property Name="PDATE" Type="varchar" MaxLength="10" />
|
||||
<Property Name="JTYPE" Type="varchar" MaxLength="10" />
|
||||
<Property Name="JGUID" Type="varchar" MaxLength="50" />
|
||||
<Property Name="SID" Type="varchar" MaxLength="20" />
|
||||
<Property Name="SID0" Type="varchar" MaxLength="20" />
|
||||
<Property Name="RID" Type="varchar" MaxLength="50" />
|
||||
<Property Name="RID0" Type="varchar" MaxLength="50" />
|
||||
<Property Name="RSN" Type="varchar" MaxLength="10" />
|
||||
<Property Name="QR" Type="varchar" MaxLength="100" />
|
||||
<Property Name="ZPL" Type="varchar" MaxLength="1000" />
|
||||
<Property Name="POS" Type="varchar" MaxLength="10" />
|
||||
<Property Name="LOC" Type="varchar" MaxLength="1" />
|
||||
<Property Name="ANGLE" Type="float" />
|
||||
<Property Name="QTY" Type="int" />
|
||||
<Property Name="QTY0" Type="int" />
|
||||
<Property Name="VLOT" Type="varchar" MaxLength="100" />
|
||||
<Property Name="VNAME" Type="varchar" MaxLength="100" />
|
||||
<Property Name="MFGDATE" Type="varchar" MaxLength="20" />
|
||||
<Property Name="PRNATTACH" Type="bit" />
|
||||
<Property Name="PRNVALID" Type="bit" />
|
||||
<Property Name="REMARK" Type="varchar" MaxLength="200" />
|
||||
<Property Name="OPT" Type="int" />
|
||||
<Property Name="OPT_DATA" Type="int" />
|
||||
<Property Name="PARTNO" Type="varchar" MaxLength="100" />
|
||||
<Property Name="CUSTCODE" Type="varchar" MaxLength="20" />
|
||||
<Property Name="wdate" Type="datetime" Nullable="false" />
|
||||
<Property Name="BATCH" Type="varchar" MaxLength="100" />
|
||||
<Property Name="qtymax" Type="int" />
|
||||
</EntityType>
|
||||
<EntityType Name="Component_Reel_SID_Convert">
|
||||
<Key>
|
||||
<PropertyRef Name="idx" />
|
||||
</Key>
|
||||
<Property Name="idx" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="MC" Type="varchar" MaxLength="20" />
|
||||
<Property Name="Chk" Type="bit" />
|
||||
<Property Name="SIDFrom" Type="varchar" MaxLength="20" />
|
||||
<Property Name="SIDTo" Type="varchar" MaxLength="20" />
|
||||
<Property Name="Remark" Type="varchar" MaxLength="100" />
|
||||
<Property Name="wdate" Type="datetime" />
|
||||
</EntityType>
|
||||
<!--생성 중 오류 발생:
|
||||
경고 6002: 테이블/뷰 'EE.dbo.vCustomerList'에 기본 키가 정의되지 않았습니다. 키가 유추되었고 읽기 전용 테이블/뷰로 정의되었습니다.-->
|
||||
<EntityType Name="vCustomerList">
|
||||
<Key>
|
||||
<PropertyRef Name="CustCode" />
|
||||
</Key>
|
||||
<Property Name="CustCode" Type="varchar" MaxLength="10" Nullable="false" />
|
||||
<Property Name="CustName" Type="varchar" MaxLength="100" />
|
||||
</EntityType>
|
||||
<EntityContainer Name="EEModelStoreContainer">
|
||||
<EntitySet Name="Component_Reel_Info" EntityType="Self.Component_Reel_Info" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Component_Reel_Result" EntityType="Self.Component_Reel_Result" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Component_Reel_SID_Convert" EntityType="Self.Component_Reel_SID_Convert" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="vCustomerList" EntityType="Self.vCustomerList" store:Type="Views" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[vCustomerList].[CustCode] AS [CustCode],
|
||||
[vCustomerList].[CustName] AS [CustName]
|
||||
FROM [dbo].[vCustomerList] AS [vCustomerList]</DefiningQuery>
|
||||
</EntitySet>
|
||||
</EntityContainer>
|
||||
</Schema></edmx:StorageModels>
|
||||
<!-- CSDL content -->
|
||||
<edmx:ConceptualModels>
|
||||
<Schema Namespace="EEModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
||||
<EntityContainer Name="EEEntities" annotation:LazyLoadingEnabled="true">
|
||||
<EntitySet Name="Component_Reel_Result" EntityType="EEModel.Component_Reel_Result" />
|
||||
<EntitySet Name="Component_Reel_Info" EntityType="EEModel.Component_Reel_Info" />
|
||||
<EntitySet Name="Component_Reel_SID_Convert" EntityType="EEModel.Component_Reel_SID_Convert" />
|
||||
<EntitySet Name="vCustomerList" EntityType="EEModel.vCustomerList" />
|
||||
</EntityContainer>
|
||||
<EntityType Name="Component_Reel_Result">
|
||||
<Key>
|
||||
<PropertyRef Name="idx" />
|
||||
</Key>
|
||||
<Property Name="idx" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="STIME" Type="DateTime" Nullable="false" Precision="3" />
|
||||
<Property Name="ETIME" Type="DateTime" Precision="3" />
|
||||
<Property Name="PTIME" Type="DateTime" Precision="3" />
|
||||
<Property Name="PDATE" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
|
||||
<Property Name="JTYPE" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
|
||||
<Property Name="JGUID" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
|
||||
<Property Name="SID" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<Property Name="SID0" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<Property Name="RID" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
|
||||
<Property Name="RID0" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
|
||||
<Property Name="RSN" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
|
||||
<Property Name="QR" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
|
||||
<Property Name="ZPL" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
|
||||
<Property Name="POS" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
|
||||
<Property Name="LOC" Type="String" MaxLength="1" FixedLength="false" Unicode="false" />
|
||||
<Property Name="ANGLE" Type="Double" />
|
||||
<Property Name="QTY" Type="Int32" />
|
||||
<Property Name="QTY0" Type="Int32" />
|
||||
<Property Name="VLOT" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
|
||||
<Property Name="VNAME" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
|
||||
<Property Name="MFGDATE" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<Property Name="PRNATTACH" Type="Boolean" />
|
||||
<Property Name="PRNVALID" Type="Boolean" />
|
||||
<Property Name="REMARK" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
|
||||
<Property Name="wdate" Type="DateTime" Nullable="false" Precision="3" />
|
||||
<Property Name="MC" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
|
||||
<Property Name="GUID" Type="Guid" />
|
||||
<Property Name="ATIME" Type="DateTime" Precision="3" />
|
||||
<Property Name="OPT" Type="Int32" />
|
||||
<Property Name="OPT_DATA" Type="Int32" />
|
||||
<Property Name="PARTNO" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
|
||||
<Property Name="CUSTCODE" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<Property Name="BATCH" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
|
||||
<Property Name="qtymax" Type="Int32" />
|
||||
</EntityType>
|
||||
<EntityType Name="Component_Reel_Info">
|
||||
<Key>
|
||||
<PropertyRef Name="idx" />
|
||||
<PropertyRef Name="CUST" />
|
||||
<PropertyRef Name="AMKSID" />
|
||||
</Key>
|
||||
<Property Name="idx" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="CUST" Type="String" Nullable="false" MaxLength="6" FixedLength="false" Unicode="false" />
|
||||
<Property Name="AMKSID" Type="String" Nullable="false" MaxLength="12" FixedLength="false" Unicode="false" />
|
||||
<Property Name="CUST_PARTNO" Type="String" Nullable="false" MaxLength="30" FixedLength="false" Unicode="false" />
|
||||
<Property Name="MFG_PARTNO" Type="String" Nullable="false" MaxLength="30" FixedLength="false" Unicode="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="Component_Reel_SID_Convert">
|
||||
<Key>
|
||||
<PropertyRef Name="idx" />
|
||||
</Key>
|
||||
<Property Name="idx" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="Chk" Type="Boolean" />
|
||||
<Property Name="SIDFrom" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<Property Name="SIDTo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
<Property Name="Remark" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
|
||||
<Property Name="wdate" Type="DateTime" Precision="3" />
|
||||
<Property Name="MC" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="vCustomerList">
|
||||
<Key>
|
||||
<PropertyRef Name="CustCode" />
|
||||
</Key>
|
||||
<Property Name="CustCode" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="false" />
|
||||
<Property Name="CustName" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
|
||||
</EntityType>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
<edmx:Mappings>
|
||||
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
||||
<EntityContainerMapping StorageEntityContainer="EEModelStoreContainer" CdmEntityContainer="EEEntities">
|
||||
<EntitySetMapping Name="Component_Reel_Result">
|
||||
<EntityTypeMapping TypeName="EEModel.Component_Reel_Result">
|
||||
<MappingFragment StoreEntitySet="Component_Reel_Result">
|
||||
<ScalarProperty Name="qtymax" ColumnName="qtymax" />
|
||||
<ScalarProperty Name="BATCH" ColumnName="BATCH" />
|
||||
<ScalarProperty Name="CUSTCODE" ColumnName="CUSTCODE" />
|
||||
<ScalarProperty Name="PARTNO" ColumnName="PARTNO" />
|
||||
<ScalarProperty Name="OPT_DATA" ColumnName="OPT_DATA" />
|
||||
<ScalarProperty Name="OPT" ColumnName="OPT" />
|
||||
<ScalarProperty Name="ATIME" ColumnName="ATIME" />
|
||||
<ScalarProperty Name="GUID" ColumnName="GUID" />
|
||||
<ScalarProperty Name="MC" ColumnName="MC" />
|
||||
<ScalarProperty Name="wdate" ColumnName="wdate" />
|
||||
<ScalarProperty Name="REMARK" ColumnName="REMARK" />
|
||||
<ScalarProperty Name="PRNVALID" ColumnName="PRNVALID" />
|
||||
<ScalarProperty Name="PRNATTACH" ColumnName="PRNATTACH" />
|
||||
<ScalarProperty Name="MFGDATE" ColumnName="MFGDATE" />
|
||||
<ScalarProperty Name="VNAME" ColumnName="VNAME" />
|
||||
<ScalarProperty Name="VLOT" ColumnName="VLOT" />
|
||||
<ScalarProperty Name="QTY0" ColumnName="QTY0" />
|
||||
<ScalarProperty Name="QTY" ColumnName="QTY" />
|
||||
<ScalarProperty Name="ANGLE" ColumnName="ANGLE" />
|
||||
<ScalarProperty Name="LOC" ColumnName="LOC" />
|
||||
<ScalarProperty Name="POS" ColumnName="POS" />
|
||||
<ScalarProperty Name="ZPL" ColumnName="ZPL" />
|
||||
<ScalarProperty Name="QR" ColumnName="QR" />
|
||||
<ScalarProperty Name="RSN" ColumnName="RSN" />
|
||||
<ScalarProperty Name="RID0" ColumnName="RID0" />
|
||||
<ScalarProperty Name="RID" ColumnName="RID" />
|
||||
<ScalarProperty Name="SID0" ColumnName="SID0" />
|
||||
<ScalarProperty Name="SID" ColumnName="SID" />
|
||||
<ScalarProperty Name="JGUID" ColumnName="JGUID" />
|
||||
<ScalarProperty Name="JTYPE" ColumnName="JTYPE" />
|
||||
<ScalarProperty Name="PDATE" ColumnName="PDATE" />
|
||||
<ScalarProperty Name="PTIME" ColumnName="PTIME" />
|
||||
<ScalarProperty Name="ETIME" ColumnName="ETIME" />
|
||||
<ScalarProperty Name="STIME" ColumnName="STIME" />
|
||||
<ScalarProperty Name="idx" ColumnName="idx" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Component_Reel_Info">
|
||||
<EntityTypeMapping TypeName="EEModel.Component_Reel_Info">
|
||||
<MappingFragment StoreEntitySet="Component_Reel_Info">
|
||||
<ScalarProperty Name="MFG_PARTNO" ColumnName="MFG_PARTNO" />
|
||||
<ScalarProperty Name="CUST_PARTNO" ColumnName="CUST_PARTNO" />
|
||||
<ScalarProperty Name="AMKSID" ColumnName="AMKSID" />
|
||||
<ScalarProperty Name="CUST" ColumnName="CUST" />
|
||||
<ScalarProperty Name="idx" ColumnName="idx" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Component_Reel_SID_Convert">
|
||||
<EntityTypeMapping TypeName="EEModel.Component_Reel_SID_Convert">
|
||||
<MappingFragment StoreEntitySet="Component_Reel_SID_Convert">
|
||||
<ScalarProperty Name="MC" ColumnName="MC" />
|
||||
<ScalarProperty Name="wdate" ColumnName="wdate" />
|
||||
<ScalarProperty Name="Remark" ColumnName="Remark" />
|
||||
<ScalarProperty Name="SIDTo" ColumnName="SIDTo" />
|
||||
<ScalarProperty Name="SIDFrom" ColumnName="SIDFrom" />
|
||||
<ScalarProperty Name="Chk" ColumnName="Chk" />
|
||||
<ScalarProperty Name="idx" ColumnName="idx" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="vCustomerList">
|
||||
<EntityTypeMapping TypeName="EEModel.vCustomerList">
|
||||
<MappingFragment StoreEntitySet="vCustomerList">
|
||||
<ScalarProperty Name="CustName" ColumnName="CustName" />
|
||||
<ScalarProperty Name="CustCode" ColumnName="CustCode" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
</edmx:Runtime>
|
||||
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
||||
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<Connection>
|
||||
<DesignerInfoPropertySet>
|
||||
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
||||
</DesignerInfoPropertySet>
|
||||
</Connection>
|
||||
<Options>
|
||||
<DesignerInfoPropertySet>
|
||||
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
||||
<DesignerProperty Name="EnablePluralization" Value="false" />
|
||||
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
||||
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
||||
<DesignerProperty Name="CodeGenerationStrategy" Value="없음" />
|
||||
</DesignerInfoPropertySet>
|
||||
</Options>
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<Diagrams></Diagrams>
|
||||
</Designer>
|
||||
</edmx:Edmx>
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
||||
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<edmx:Diagrams>
|
||||
<Diagram DiagramId="609adb84b4644362bf704575c1801c11" Name="Diagram1" ZoomLevel="93">
|
||||
<EntityTypeShape EntityType="EEModel.Component_Reel_Result" Width="3.25" PointX="0.625" PointY="0.75" />
|
||||
<EntityTypeShape EntityType="EEModel.Component_Reel_Info" Width="3" PointX="4.375" PointY="0.75" />
|
||||
<EntityTypeShape EntityType="EEModel.Component_Reel_SID_Convert" Width="3.625" PointX="4.375" PointY="3.75" />
|
||||
<EntityTypeShape EntityType="EEModel.vCustomerList" Width="1.5" PointX="5.5" PointY="7.375" />
|
||||
</Diagram>
|
||||
</edmx:Diagrams>
|
||||
</edmx:Designer>
|
||||
</edmx:Edmx>
|
||||
@@ -1,733 +0,0 @@
|
||||
<#@ template language="C#" debug="false" hostspecific="true"#>
|
||||
<#@ include file="EF6.Utility.CS.ttinclude"#><#@
|
||||
output extension=".cs"#><#
|
||||
|
||||
const string inputFile = @"Model1.edmx";
|
||||
var textTransform = DynamicTextTransformation.Create(this);
|
||||
var code = new CodeGenerationTools(this);
|
||||
var ef = new MetadataTools(this);
|
||||
var typeMapper = new TypeMapper(code, ef, textTransform.Errors);
|
||||
var fileManager = EntityFrameworkTemplateFileManager.Create(this);
|
||||
var itemCollection = new EdmMetadataLoader(textTransform.Host, textTransform.Errors).CreateEdmItemCollection(inputFile);
|
||||
var codeStringGenerator = new CodeStringGenerator(code, typeMapper, ef);
|
||||
|
||||
if (!typeMapper.VerifyCaseInsensitiveTypeUniqueness(typeMapper.GetAllGlobalItems(itemCollection), inputFile))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
WriteHeader(codeStringGenerator, fileManager);
|
||||
|
||||
foreach (var entity in typeMapper.GetItemsToGenerate<EntityType>(itemCollection))
|
||||
{
|
||||
fileManager.StartNewFile(entity.Name + ".cs");
|
||||
BeginNamespace(code);
|
||||
#>
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: false)#>
|
||||
<#=codeStringGenerator.EntityClassOpening(entity)#>
|
||||
{
|
||||
<#
|
||||
var propertiesWithDefaultValues = typeMapper.GetPropertiesWithDefaultValues(entity);
|
||||
var collectionNavigationProperties = typeMapper.GetCollectionNavigationProperties(entity);
|
||||
var complexProperties = typeMapper.GetComplexProperties(entity);
|
||||
|
||||
if (propertiesWithDefaultValues.Any() || collectionNavigationProperties.Any() || complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
|
||||
public <#=code.Escape(entity)#>()
|
||||
{
|
||||
<#
|
||||
foreach (var edmProperty in propertiesWithDefaultValues)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var navigationProperty in collectionNavigationProperties)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(navigationProperty)#> = new HashSet<<#=typeMapper.GetTypeName(navigationProperty.ToEndMember.GetEntityType())#>>();
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var complexProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>();
|
||||
<#
|
||||
}
|
||||
#>
|
||||
}
|
||||
|
||||
<#
|
||||
}
|
||||
|
||||
var simpleProperties = typeMapper.GetSimpleProperties(entity);
|
||||
if (simpleProperties.Any())
|
||||
{
|
||||
foreach (var edmProperty in simpleProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(edmProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
if (complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
|
||||
<#
|
||||
foreach(var complexProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(complexProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
var navigationProperties = typeMapper.GetNavigationProperties(entity);
|
||||
if (navigationProperties.Any())
|
||||
{
|
||||
#>
|
||||
|
||||
<#
|
||||
foreach (var navigationProperty in navigationProperties)
|
||||
{
|
||||
if (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many)
|
||||
{
|
||||
#>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
<#
|
||||
}
|
||||
#>
|
||||
<#=codeStringGenerator.NavigationProperty(navigationProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
EndNamespace(code);
|
||||
}
|
||||
|
||||
foreach (var complex in typeMapper.GetItemsToGenerate<ComplexType>(itemCollection))
|
||||
{
|
||||
fileManager.StartNewFile(complex.Name + ".cs");
|
||||
BeginNamespace(code);
|
||||
#>
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: false, includeCollections: false)#>
|
||||
<#=Accessibility.ForType(complex)#> partial class <#=code.Escape(complex)#>
|
||||
{
|
||||
<#
|
||||
var complexProperties = typeMapper.GetComplexProperties(complex);
|
||||
var propertiesWithDefaultValues = typeMapper.GetPropertiesWithDefaultValues(complex);
|
||||
|
||||
if (propertiesWithDefaultValues.Any() || complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
public <#=code.Escape(complex)#>()
|
||||
{
|
||||
<#
|
||||
foreach (var edmProperty in propertiesWithDefaultValues)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var complexProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>();
|
||||
<#
|
||||
}
|
||||
#>
|
||||
}
|
||||
|
||||
<#
|
||||
}
|
||||
|
||||
var simpleProperties = typeMapper.GetSimpleProperties(complex);
|
||||
if (simpleProperties.Any())
|
||||
{
|
||||
foreach(var edmProperty in simpleProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(edmProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
if (complexProperties.Any())
|
||||
{
|
||||
#>
|
||||
|
||||
<#
|
||||
foreach(var edmProperty in complexProperties)
|
||||
{
|
||||
#>
|
||||
<#=codeStringGenerator.Property(edmProperty)#>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
EndNamespace(code);
|
||||
}
|
||||
|
||||
foreach (var enumType in typeMapper.GetEnumItemsToGenerate(itemCollection))
|
||||
{
|
||||
fileManager.StartNewFile(enumType.Name + ".cs");
|
||||
BeginNamespace(code);
|
||||
#>
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: false, includeCollections: false)#>
|
||||
<#
|
||||
if (typeMapper.EnumIsFlags(enumType))
|
||||
{
|
||||
#>
|
||||
[Flags]
|
||||
<#
|
||||
}
|
||||
#>
|
||||
<#=codeStringGenerator.EnumOpening(enumType)#>
|
||||
{
|
||||
<#
|
||||
var foundOne = false;
|
||||
|
||||
foreach (MetadataItem member in typeMapper.GetEnumMembers(enumType))
|
||||
{
|
||||
foundOne = true;
|
||||
#>
|
||||
<#=code.Escape(typeMapper.GetEnumMemberName(member))#> = <#=typeMapper.GetEnumMemberValue(member)#>,
|
||||
<#
|
||||
}
|
||||
|
||||
if (foundOne)
|
||||
{
|
||||
this.GenerationEnvironment.Remove(this.GenerationEnvironment.Length - 3, 1);
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
EndNamespace(code);
|
||||
}
|
||||
|
||||
fileManager.Process();
|
||||
|
||||
#>
|
||||
<#+
|
||||
|
||||
public void WriteHeader(CodeStringGenerator codeStringGenerator, EntityFrameworkTemplateFileManager fileManager)
|
||||
{
|
||||
fileManager.StartHeader();
|
||||
#>
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
|
||||
//
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
|
||||
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
<#=codeStringGenerator.UsingDirectives(inHeader: true)#>
|
||||
<#+
|
||||
fileManager.EndBlock();
|
||||
}
|
||||
|
||||
public void BeginNamespace(CodeGenerationTools code)
|
||||
{
|
||||
var codeNamespace = code.VsNamespaceSuggestion();
|
||||
if (!String.IsNullOrEmpty(codeNamespace))
|
||||
{
|
||||
#>
|
||||
namespace <#=code.EscapeNamespace(codeNamespace)#>
|
||||
{
|
||||
<#+
|
||||
PushIndent(" ");
|
||||
}
|
||||
}
|
||||
|
||||
public void EndNamespace(CodeGenerationTools code)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(code.VsNamespaceSuggestion()))
|
||||
{
|
||||
PopIndent();
|
||||
#>
|
||||
}
|
||||
<#+
|
||||
}
|
||||
}
|
||||
|
||||
public const string TemplateId = "CSharp_DbContext_Types_EF6";
|
||||
|
||||
public class CodeStringGenerator
|
||||
{
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly TypeMapper _typeMapper;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public CodeStringGenerator(CodeGenerationTools code, TypeMapper typeMapper, MetadataTools ef)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(typeMapper, "typeMapper");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
|
||||
_code = code;
|
||||
_typeMapper = typeMapper;
|
||||
_ef = ef;
|
||||
}
|
||||
|
||||
public string Property(EdmProperty edmProperty)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
Accessibility.ForProperty(edmProperty),
|
||||
_typeMapper.GetTypeName(edmProperty.TypeUsage),
|
||||
_code.Escape(edmProperty),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(edmProperty)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(edmProperty)));
|
||||
}
|
||||
|
||||
public string NavigationProperty(NavigationProperty navProp)
|
||||
{
|
||||
var endType = _typeMapper.GetTypeName(navProp.ToEndMember.GetEntityType());
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2} {{ {3}get; {4}set; }}",
|
||||
AccessibilityAndVirtual(Accessibility.ForNavigationProperty(navProp)),
|
||||
navProp.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many ? ("ICollection<" + endType + ">") : endType,
|
||||
_code.Escape(navProp),
|
||||
_code.SpaceAfter(Accessibility.ForGetter(navProp)),
|
||||
_code.SpaceAfter(Accessibility.ForSetter(navProp)));
|
||||
}
|
||||
|
||||
public string AccessibilityAndVirtual(string accessibility)
|
||||
{
|
||||
return accessibility + (accessibility != "private" ? " virtual" : "");
|
||||
}
|
||||
|
||||
public string EntityClassOpening(EntityType entity)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1}partial class {2}{3}",
|
||||
Accessibility.ForType(entity),
|
||||
_code.SpaceAfter(_code.AbstractOption(entity)),
|
||||
_code.Escape(entity),
|
||||
_code.StringBefore(" : ", _typeMapper.GetTypeName(entity.BaseType)));
|
||||
}
|
||||
|
||||
public string EnumOpening(SimpleType enumType)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} enum {1} : {2}",
|
||||
Accessibility.ForType(enumType),
|
||||
_code.Escape(enumType),
|
||||
_code.Escape(_typeMapper.UnderlyingClrType(enumType)));
|
||||
}
|
||||
|
||||
public void WriteFunctionParameters(EdmFunction edmFunction, Action<string, string, string, string> writeParameter)
|
||||
{
|
||||
var parameters = FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
foreach (var parameter in parameters.Where(p => p.NeedsLocalVariable))
|
||||
{
|
||||
var isNotNull = parameter.IsNullableOfT ? parameter.FunctionParameterName + ".HasValue" : parameter.FunctionParameterName + " != null";
|
||||
var notNullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", " + parameter.FunctionParameterName + ")";
|
||||
var nullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", typeof(" + TypeMapper.FixNamespaces(parameter.RawClrTypeName) + "))";
|
||||
writeParameter(parameter.LocalVariableName, isNotNull, notNullInit, nullInit);
|
||||
}
|
||||
}
|
||||
|
||||
public string ComposableFunctionMethod(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} IQueryable<{1}> {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
_code.Escape(edmFunction),
|
||||
string.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray()));
|
||||
}
|
||||
|
||||
public string ComposableCreateQuery(EdmFunction edmFunction, string modelNamespace)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.CreateQuery<{0}>(\"[{1}].[{2}]({3})\"{4});",
|
||||
_typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
|
||||
edmFunction.NamespaceName,
|
||||
edmFunction.Name,
|
||||
string.Join(", ", parameters.Select(p => "@" + p.EsqlParameterName).ToArray()),
|
||||
_code.StringBefore(", ", string.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray())));
|
||||
}
|
||||
|
||||
public string FunctionMethod(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var paramList = String.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray());
|
||||
if (includeMergeOption)
|
||||
{
|
||||
paramList = _code.StringAfter(paramList, ", ") + "MergeOption mergeOption";
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} {1} {2}({3})",
|
||||
AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
|
||||
returnType == null ? "int" : "ObjectResult<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
_code.Escape(edmFunction),
|
||||
paramList);
|
||||
}
|
||||
|
||||
public string ExecuteFunction(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
|
||||
{
|
||||
var parameters = _typeMapper.GetParameters(edmFunction);
|
||||
var returnType = _typeMapper.GetReturnType(edmFunction);
|
||||
|
||||
var callParams = _code.StringBefore(", ", String.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray()));
|
||||
if (includeMergeOption)
|
||||
{
|
||||
callParams = ", mergeOption" + callParams;
|
||||
}
|
||||
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction{0}(\"{1}\"{2});",
|
||||
returnType == null ? "" : "<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
|
||||
edmFunction.Name,
|
||||
callParams);
|
||||
}
|
||||
|
||||
public string DbSet(EntitySet entitySet)
|
||||
{
|
||||
return string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0} virtual DbSet<{1}> {2} {{ get; set; }}",
|
||||
Accessibility.ForReadOnlyProperty(entitySet),
|
||||
_typeMapper.GetTypeName(entitySet.ElementType),
|
||||
_code.Escape(entitySet));
|
||||
}
|
||||
|
||||
public string UsingDirectives(bool inHeader, bool includeCollections = true)
|
||||
{
|
||||
return inHeader == string.IsNullOrEmpty(_code.VsNamespaceSuggestion())
|
||||
? string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"{0}using System;{1}" +
|
||||
"{2}",
|
||||
inHeader ? Environment.NewLine : "",
|
||||
includeCollections ? (Environment.NewLine + "using System.Collections.Generic;") : "",
|
||||
inHeader ? "" : Environment.NewLine)
|
||||
: "";
|
||||
}
|
||||
}
|
||||
|
||||
public class TypeMapper
|
||||
{
|
||||
private const string ExternalTypeNameAttributeName = @"http://schemas.microsoft.com/ado/2006/04/codegeneration:ExternalTypeName";
|
||||
|
||||
private readonly System.Collections.IList _errors;
|
||||
private readonly CodeGenerationTools _code;
|
||||
private readonly MetadataTools _ef;
|
||||
|
||||
public TypeMapper(CodeGenerationTools code, MetadataTools ef, System.Collections.IList errors)
|
||||
{
|
||||
ArgumentNotNull(code, "code");
|
||||
ArgumentNotNull(ef, "ef");
|
||||
ArgumentNotNull(errors, "errors");
|
||||
|
||||
_code = code;
|
||||
_ef = ef;
|
||||
_errors = errors;
|
||||
}
|
||||
|
||||
public static string FixNamespaces(string typeName)
|
||||
{
|
||||
return typeName.Replace("System.Data.Spatial.", "System.Data.Entity.Spatial.");
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: null);
|
||||
}
|
||||
|
||||
public string GetTypeName(TypeUsage typeUsage, string modelNamespace)
|
||||
{
|
||||
return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, string modelNamespace)
|
||||
{
|
||||
return GetTypeName(edmType, isNullable: null, modelNamespace: modelNamespace);
|
||||
}
|
||||
|
||||
public string GetTypeName(EdmType edmType, bool? isNullable, string modelNamespace)
|
||||
{
|
||||
if (edmType == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var collectionType = edmType as CollectionType;
|
||||
if (collectionType != null)
|
||||
{
|
||||
return String.Format(CultureInfo.InvariantCulture, "ICollection<{0}>", GetTypeName(collectionType.TypeUsage, modelNamespace));
|
||||
}
|
||||
|
||||
var typeName = _code.Escape(edmType.MetadataProperties
|
||||
.Where(p => p.Name == ExternalTypeNameAttributeName)
|
||||
.Select(p => (string)p.Value)
|
||||
.FirstOrDefault())
|
||||
?? (modelNamespace != null && edmType.NamespaceName != modelNamespace ?
|
||||
_code.CreateFullName(_code.EscapeNamespace(edmType.NamespaceName), _code.Escape(edmType)) :
|
||||
_code.Escape(edmType));
|
||||
|
||||
if (edmType is StructuralType)
|
||||
{
|
||||
return typeName;
|
||||
}
|
||||
|
||||
if (edmType is SimpleType)
|
||||
{
|
||||
var clrType = UnderlyingClrType(edmType);
|
||||
if (!IsEnumType(edmType))
|
||||
{
|
||||
typeName = _code.Escape(clrType);
|
||||
}
|
||||
|
||||
typeName = FixNamespaces(typeName);
|
||||
|
||||
return clrType.IsValueType && isNullable == true ?
|
||||
String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", typeName) :
|
||||
typeName;
|
||||
}
|
||||
|
||||
throw new ArgumentException("edmType");
|
||||
}
|
||||
|
||||
public Type UnderlyingClrType(EdmType edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
var primitiveType = edmType as PrimitiveType;
|
||||
if (primitiveType != null)
|
||||
{
|
||||
return primitiveType.ClrEquivalentType;
|
||||
}
|
||||
|
||||
if (IsEnumType(edmType))
|
||||
{
|
||||
return GetEnumUnderlyingType(edmType).ClrEquivalentType;
|
||||
}
|
||||
|
||||
return typeof(object);
|
||||
}
|
||||
|
||||
public object GetEnumMemberValue(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var valueProperty = enumMember.GetType().GetProperty("Value");
|
||||
return valueProperty == null ? null : valueProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public string GetEnumMemberName(MetadataItem enumMember)
|
||||
{
|
||||
ArgumentNotNull(enumMember, "enumMember");
|
||||
|
||||
var nameProperty = enumMember.GetType().GetProperty("Name");
|
||||
return nameProperty == null ? null : (string)nameProperty.GetValue(enumMember, null);
|
||||
}
|
||||
|
||||
public System.Collections.IEnumerable GetEnumMembers(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var membersProperty = enumType.GetType().GetProperty("Members");
|
||||
return membersProperty != null
|
||||
? (System.Collections.IEnumerable)membersProperty.GetValue(enumType, null)
|
||||
: Enumerable.Empty<MetadataItem>();
|
||||
}
|
||||
|
||||
public bool EnumIsFlags(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
var isFlagsProperty = enumType.GetType().GetProperty("IsFlags");
|
||||
return isFlagsProperty != null && (bool)isFlagsProperty.GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public bool IsEnumType(GlobalItem edmType)
|
||||
{
|
||||
ArgumentNotNull(edmType, "edmType");
|
||||
|
||||
return edmType.GetType().Name == "EnumType";
|
||||
}
|
||||
|
||||
public PrimitiveType GetEnumUnderlyingType(EdmType enumType)
|
||||
{
|
||||
ArgumentNotNull(enumType, "enumType");
|
||||
|
||||
return (PrimitiveType)enumType.GetType().GetProperty("UnderlyingType").GetValue(enumType, null);
|
||||
}
|
||||
|
||||
public string CreateLiteral(object value)
|
||||
{
|
||||
if (value == null || value.GetType() != typeof(TimeSpan))
|
||||
{
|
||||
return _code.CreateLiteral(value);
|
||||
}
|
||||
|
||||
return string.Format(CultureInfo.InvariantCulture, "new TimeSpan({0})", ((TimeSpan)value).Ticks);
|
||||
}
|
||||
|
||||
public bool VerifyCaseInsensitiveTypeUniqueness(IEnumerable<string> types, string sourceFile)
|
||||
{
|
||||
ArgumentNotNull(types, "types");
|
||||
ArgumentNotNull(sourceFile, "sourceFile");
|
||||
|
||||
var hash = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
|
||||
if (types.Any(item => !hash.Add(item)))
|
||||
{
|
||||
_errors.Add(
|
||||
new CompilerError(sourceFile, -1, -1, "6023",
|
||||
String.Format(CultureInfo.CurrentCulture, CodeGenerationTools.GetResourceString("Template_CaseInsensitiveTypeConflict"))));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public IEnumerable<SimpleType> GetEnumItemsToGenerate(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return GetItemsToGenerate<SimpleType>(itemCollection)
|
||||
.Where(e => IsEnumType(e));
|
||||
}
|
||||
|
||||
public IEnumerable<T> GetItemsToGenerate<T>(IEnumerable<GlobalItem> itemCollection) where T: EdmType
|
||||
{
|
||||
return itemCollection
|
||||
.OfType<T>()
|
||||
.Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName))
|
||||
.OrderBy(i => i.Name);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetAllGlobalItems(IEnumerable<GlobalItem> itemCollection)
|
||||
{
|
||||
return itemCollection
|
||||
.Where(i => i is EntityType || i is ComplexType || i is EntityContainer || IsEnumType(i))
|
||||
.Select(g => GetGlobalItemName(g));
|
||||
}
|
||||
|
||||
public string GetGlobalItemName(GlobalItem item)
|
||||
{
|
||||
if (item is EdmType)
|
||||
{
|
||||
return ((EdmType)item).Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ((EntityContainer)item).Name;
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetSimpleProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetComplexProperties(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(EntityType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(ComplexType type)
|
||||
{
|
||||
return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type);
|
||||
}
|
||||
|
||||
public IEnumerable<NavigationProperty> GetCollectionNavigationProperties(EntityType type)
|
||||
{
|
||||
return type.NavigationProperties.Where(np => np.DeclaringType == type && np.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
|
||||
}
|
||||
|
||||
public FunctionParameter GetReturnParameter(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var returnParamsProperty = edmFunction.GetType().GetProperty("ReturnParameters");
|
||||
return returnParamsProperty == null
|
||||
? edmFunction.ReturnParameter
|
||||
: ((IEnumerable<FunctionParameter>)returnParamsProperty.GetValue(edmFunction, null)).FirstOrDefault();
|
||||
}
|
||||
|
||||
public bool IsComposable(EdmFunction edmFunction)
|
||||
{
|
||||
ArgumentNotNull(edmFunction, "edmFunction");
|
||||
|
||||
var isComposableProperty = edmFunction.GetType().GetProperty("IsComposableAttribute");
|
||||
return isComposableProperty != null && (bool)isComposableProperty.GetValue(edmFunction, null);
|
||||
}
|
||||
|
||||
public IEnumerable<FunctionImportParameter> GetParameters(EdmFunction edmFunction)
|
||||
{
|
||||
return FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
|
||||
}
|
||||
|
||||
public TypeUsage GetReturnType(EdmFunction edmFunction)
|
||||
{
|
||||
var returnParam = GetReturnParameter(edmFunction);
|
||||
return returnParam == null ? null : _ef.GetElementType(returnParam.TypeUsage);
|
||||
}
|
||||
|
||||
public bool GenerateMergeOptionFunction(EdmFunction edmFunction, bool includeMergeOption)
|
||||
{
|
||||
var returnType = GetReturnType(edmFunction);
|
||||
return !includeMergeOption && returnType != null && returnType.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType;
|
||||
}
|
||||
}
|
||||
|
||||
public static void ArgumentNotNull<T>(T arg, string name) where T : class
|
||||
{
|
||||
if (arg == null)
|
||||
{
|
||||
throw new ArgumentNullException(name);
|
||||
}
|
||||
}
|
||||
#>
|
||||
@@ -91,7 +91,8 @@ namespace Project
|
||||
PUB.log.Flush();
|
||||
UTIL.SaveBugReport(emsg);
|
||||
Shutdown();
|
||||
var f = new Dialog.fErrorException(emsg);
|
||||
|
||||
var f = new AR.Dialog.fErrorException(emsg);
|
||||
f.ShowDialog();
|
||||
Application.ExitThread();
|
||||
}
|
||||
@@ -118,7 +119,7 @@ namespace Project
|
||||
PUB.log.Flush();
|
||||
UTIL.SaveBugReport(emsg);
|
||||
Shutdown();
|
||||
var f = new Dialog.fErrorException(emsg);
|
||||
var f = new AR.Dialog.fErrorException(emsg);
|
||||
f.ShowDialog();
|
||||
Application.ExitThread();
|
||||
}
|
||||
|
||||
29
Handler/Project/Properties/Settings.Designer.cs
generated
29
Handler/Project/Properties/Settings.Designer.cs
generated
@@ -12,7 +12,7 @@ namespace Project.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
@@ -170,13 +170,34 @@ namespace Project.Properties {
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=K4FASQL.kr.ds.amkor.com,50150;Initial Catalog=EE;Persist Security Inf" +
|
||||
"o=True;User ID=eeadm;Password=uJnU8a8q&DJ+ug-D;Encrypt=False;TrustServerCertific" +
|
||||
"ate=True")]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;Use" +
|
||||
"r ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True")]
|
||||
public string CS {
|
||||
get {
|
||||
return ((string)(this["CS"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;Use" +
|
||||
"r ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True")]
|
||||
public string WMS_DEV {
|
||||
get {
|
||||
return ((string)(this["WMS_DEV"]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=V1SPCSQL,51122;Initial Catalog=WMS;Persist Security Info=True;User ID" +
|
||||
"=wmsadm;Password=\"2!x2$yY8R;}$\";Encrypt=False;TrustServerCertificate=True")]
|
||||
public string WMS_PRD {
|
||||
get {
|
||||
return ((string)(this["WMS_PRD"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,10 +95,26 @@
|
||||
<Setting Name="CS" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<ConnectionString>Data Source=K4FASQL.kr.ds.amkor.com,50150;Initial Catalog=EE;Persist Security Info=True;User ID=eeadm;Password=uJnU8a8q&amp;DJ+ug-D;Encrypt=False;TrustServerCertificate=True</ConnectionString>
|
||||
<ConnectionString>Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=K4FASQL.kr.ds.amkor.com,50150;Initial Catalog=EE;Persist Security Info=True;User ID=eeadm;Password=uJnU8a8q&DJ+ug-D;Encrypt=False;TrustServerCertificate=True</Value>
|
||||
<Value Profile="(Default)">Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True</Value>
|
||||
</Setting>
|
||||
<Setting Name="WMS_DEV" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<ConnectionString>Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True</Value>
|
||||
</Setting>
|
||||
<Setting Name="WMS_PRD" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<ConnectionString>Data Source=V1SPCSQL,51122;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password="2!x2$yY8R;}$";Encrypt=False;TrustServerCertificate=True</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=V1SPCSQL,51122;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password="2!x2$yY8R;}$";Encrypt=False;TrustServerCertificate=True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@@ -1,22 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Text;
|
||||
using System.Management;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Threading.Tasks;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Net;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
using AR;
|
||||
using AR;
|
||||
using Emgu.CV.BgSegm;
|
||||
using Microsoft.Owin.StaticFiles;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Management;
|
||||
using System.Net;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Remoting;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
@@ -156,6 +157,18 @@ namespace Project
|
||||
if (iserr) PUB.logDbg.AddE(msg);
|
||||
else PUB.logDbg.Add(div, msg);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// SQL Database Connection String
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetWMSConnectionString()
|
||||
{
|
||||
if (SETTING.Data.WMS_DB_PROD)
|
||||
return Properties.Settings.Default.WMS_PRD;
|
||||
else
|
||||
return Properties.Settings.Default.WMS_DEV;
|
||||
}
|
||||
public static bool SelectModelM(string modelName, bool bUploadConfig = true)
|
||||
{
|
||||
//if (this.InvokeRequired)
|
||||
@@ -212,6 +225,10 @@ namespace Project
|
||||
// }
|
||||
//}
|
||||
|
||||
public static bool UpdateWMS(Class.VisionData Data)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public static bool SelectModelV(string modelName, bool bUploadConfig = true)
|
||||
{
|
||||
//
|
||||
@@ -342,8 +359,7 @@ namespace Project
|
||||
return false;
|
||||
}
|
||||
|
||||
//public static List<string> activesid = new List<string>();
|
||||
public static Task<Tuple<bool, string, int>> UpdateSIDInfoByECS()
|
||||
public static Task<Tuple<bool, string, int>> UpdateSIDInfo()
|
||||
{
|
||||
var rlt = Task.Run<Tuple<bool, string, int>>(() =>
|
||||
{
|
||||
@@ -354,122 +370,20 @@ namespace Project
|
||||
System.Diagnostics.Stopwatch wat = new System.Diagnostics.Stopwatch();
|
||||
wat.Restart();
|
||||
|
||||
// activesid.Clear();
|
||||
//아무것도 하지 않는다.
|
||||
if (SETTING.Data.ECSSkip)
|
||||
//기존 SID정보에서 데이터를 취합니다.
|
||||
var mc = AR.SETTING.Data.McName;
|
||||
PUB.log.AddAT($"환경설정에서 ECS SKIP이 되었습니다 기존 정보에서 데이터를 생성합니다 MC={mc}");
|
||||
using (var tainfo = new DataSet1TableAdapters.Component_Reel_SID_InformationTableAdapter())
|
||||
{
|
||||
//기존 SID정보에서 데이터를 취합니다.
|
||||
var mc = AR.SETTING.Data.McName;
|
||||
PUB.log.AddAT($"환경설정에서 ECS SKIP이 되었습니다 기존 정보에서 데이터를 생성합니다 MC={mc}");
|
||||
using (var tainfo = new DataSet1TableAdapters.Component_Reel_SID_InformationTableAdapter())
|
||||
{
|
||||
var cntd = tainfo.DeleteAll("IB");
|
||||
PUB.log.AddAT($"{cntd}건의 자료가 삭제됨");
|
||||
var cnti = tainfo.MakeIBData(mc);
|
||||
PUB.log.AddAT($"{cnti}건의 자료가 복제됨");
|
||||
}
|
||||
message = "ECS-OFF 됨 장비전용 데이터로 진행 함";
|
||||
result = true;
|
||||
rdy = 1;
|
||||
var cntd = tainfo.DeleteAll("IB");
|
||||
PUB.log.AddAT($"{cntd}건의 자료가 삭제됨");
|
||||
var cnti = tainfo.MakeIBData(mc);
|
||||
PUB.log.AddAT($"{cnti}건의 자료가 복제됨");
|
||||
}
|
||||
else
|
||||
{
|
||||
message = "ECS-OFF 됨 장비전용 데이터로 진행 함";
|
||||
result = true;
|
||||
rdy = 1;
|
||||
|
||||
PUB.log.Add($"ECS로부터 SID 정보를 수신 합니다");
|
||||
var url = $@"http://10.131.32.29:8080/api/job?MC={SETTING.Data.McName}";
|
||||
var newbuf = UTIL.GetStrfromurl(url, out bool iserror, 15000);
|
||||
newbuf = newbuf.Replace("k__BackingField", "").Replace("<", "").Replace(">", "");
|
||||
if (newbuf.StartsWith("[") == false || newbuf.EndsWith("]") == false)
|
||||
{
|
||||
wat.Stop();
|
||||
PUB.log.AddE($"ECS수신데이터오류:{newbuf} {wat.ElapsedMilliseconds}ms");
|
||||
message = newbuf;
|
||||
result = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Newtonsoft.Json.Linq.JArray data = null;
|
||||
|
||||
try
|
||||
{
|
||||
data = Newtonsoft.Json.Linq.JArray.Parse(newbuf);
|
||||
|
||||
//시드정보를 삭제한다.
|
||||
PUB.log.Add($"sid정보삭제 {PUB.MCCode}");
|
||||
var ta = new DataSet1TableAdapters.Component_Reel_SID_InformationTableAdapter();
|
||||
ta.DeleteAll(PUB.MCCode);
|
||||
|
||||
//신규로드옭한다
|
||||
var dt = new DataSet1.Component_Reel_SID_InformationDataTable();
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
{
|
||||
var jsondata = data[i]; //데이터가 없는 경우 null반환
|
||||
var v_sid = jsondata["SID"];
|
||||
var v_bat = jsondata["BATCH"];
|
||||
var v_lot = jsondata["VENDOR_LOT"];
|
||||
var v_ccd = jsondata["CUST_CODE"];
|
||||
var v_pat = jsondata["PART_NO"];
|
||||
var v_ivq = jsondata["IVC_QTY"];
|
||||
var v_att = jsondata["ATTACH"];
|
||||
var v_rdy = jsondata["ECS_READY"].ToString().ToLower();
|
||||
|
||||
|
||||
|
||||
var newdr = dt.NewComponent_Reel_SID_InformationRow();
|
||||
newdr.MC = PUB.MCCode;
|
||||
newdr.SID = "";
|
||||
newdr.CustCode = "";
|
||||
newdr.CustName = "";
|
||||
newdr.PartNo = "";
|
||||
newdr.VenderLot = "";
|
||||
newdr.VenderName = "";
|
||||
newdr.Remark = "auto";
|
||||
newdr.qtymax = 0; //인보이스수량
|
||||
newdr.batch = "";
|
||||
newdr.attach = "";
|
||||
newdr.wdate = DateTime.Now;
|
||||
|
||||
//값이존재하는 경우에만 기록
|
||||
if (v_sid != null && v_sid.Type != Newtonsoft.Json.Linq.JTokenType.Null) newdr.SID = v_sid.ToString();
|
||||
if (v_bat != null && v_bat.Type != Newtonsoft.Json.Linq.JTokenType.Null) newdr.batch = v_bat.ToString();
|
||||
if (v_lot != null && v_lot.Type != Newtonsoft.Json.Linq.JTokenType.Null) newdr.VenderLot = v_lot.ToString();
|
||||
if (v_ccd != null && v_ccd.Type != Newtonsoft.Json.Linq.JTokenType.Null) newdr.CustCode = v_ccd.ToString();
|
||||
if (v_pat != null && v_pat.Type != Newtonsoft.Json.Linq.JTokenType.Null) newdr.PartNo = v_pat.ToString();
|
||||
if (v_ivq != null && v_ivq.Type != Newtonsoft.Json.Linq.JTokenType.Null) newdr.qtymax = (int)v_ivq;
|
||||
if (v_att != null && v_att.Type != Newtonsoft.Json.Linq.JTokenType.Null) newdr.attach = v_att.ToString();
|
||||
if (newdr.CustCode.Length == 3) newdr.CustCode = "0" + newdr.CustCode;
|
||||
|
||||
|
||||
if (v_rdy == "true")
|
||||
{
|
||||
rdy += 1;
|
||||
if (newdr.SID.isEmpty() == false)
|
||||
{
|
||||
//if (activesid.Contains(newdr.SID) == false)
|
||||
// activesid.Add(newdr.SID);
|
||||
PUB.log.Add($"{newdr.SID} 값은 활성화 SID입니다(ATTACH:{v_att},MC:{SETTING.Data.McName}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
newdr.EndEdit();
|
||||
if (newdr.SID.isEmpty() == false)
|
||||
dt.AddComponent_Reel_SID_InformationRow(newdr);
|
||||
else newdr.Delete();
|
||||
}
|
||||
cnt = ta.Update(dt);
|
||||
if (cnt == 0) message = "No data";
|
||||
result = cnt > 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
wat.Stop();
|
||||
message = ex.Message;
|
||||
PUB.log.AddE($"ECS수신데이터오류:{newbuf},메세지={ex.Message} {wat.ElapsedMilliseconds}ms");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
wat.Stop();
|
||||
PUB.log.Add($"{cnt}건의 sid정보가 추가됨 {wat.ElapsedMilliseconds:N2}ms");
|
||||
return new Tuple<bool, string, int>(result, message, rdy);
|
||||
@@ -477,122 +391,6 @@ namespace Project
|
||||
return rlt;
|
||||
}
|
||||
|
||||
public static List<Tuple<string, string, string, bool>> GetECSActiveSIDList()
|
||||
{
|
||||
List<Tuple<string, string, string, bool>> retval = new List<Tuple<string, string, string, bool>>();
|
||||
bool result = false;
|
||||
string message = string.Empty;
|
||||
int cnt = 0;
|
||||
int rdy = 0;
|
||||
|
||||
//아무것도 하지 않는다.
|
||||
if (SETTING.Data.ECSSkip)
|
||||
{
|
||||
PUB.log.AddAT($"ecs skip 으로 인해 활성sid목록을 가져오지 않습니다");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
PUB.log.Add($"ECS로부터 SID 정보를 수신 합니다");
|
||||
var url = $@"http://10.131.32.29:8080/api/job?MC={SETTING.Data.McName}";
|
||||
var newbuf = UTIL.GetStrfromurl(url, out bool iserror, 15000);
|
||||
newbuf = newbuf.Replace("k__BackingField", "").Replace("<", "").Replace(">", "");
|
||||
if (newbuf.StartsWith("[") == false || newbuf.EndsWith("]") == false)
|
||||
{
|
||||
PUB.log.AddE($"ECS수신데이터오류:{newbuf}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Newtonsoft.Json.Linq.JArray data = null;
|
||||
|
||||
try
|
||||
{
|
||||
data = Newtonsoft.Json.Linq.JArray.Parse(newbuf);
|
||||
|
||||
|
||||
//신규로드옭한다
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
{
|
||||
var jsondata = data[i]; //데이터가 없는 경우 null반환
|
||||
var v_sid = jsondata["SID"];
|
||||
var v_bat = jsondata["BATCH"];
|
||||
var v_att = jsondata["ATTACH"];
|
||||
var v_rdy = jsondata["ECS_READY"].ToString().ToLower();
|
||||
|
||||
var str_sid = "";
|
||||
var str_bat = "";
|
||||
var str_att = "";
|
||||
|
||||
//값이존재하는 경우에만 기록
|
||||
if (v_sid != null && v_sid.Type != Newtonsoft.Json.Linq.JTokenType.Null) str_sid = v_sid.ToString();
|
||||
if (v_bat != null && v_bat.Type != Newtonsoft.Json.Linq.JTokenType.Null) str_bat = v_bat.ToString();
|
||||
if (v_att != null && v_att.Type != Newtonsoft.Json.Linq.JTokenType.Null) str_att = v_att.ToString();
|
||||
|
||||
if (str_sid.isEmpty() == false && str_bat.isEmpty() == false)
|
||||
{
|
||||
retval.Add(new Tuple<string, string, string, bool>(
|
||||
str_sid,
|
||||
str_bat,
|
||||
str_att,
|
||||
(v_rdy == "true")));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
message = ex.Message;
|
||||
PUB.log.AddE($"ECS수신데이터오류:{newbuf},메세지={ex.Message} ");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
//public static Task<bool> GetECSSIDAcitve(string sid, string batch)
|
||||
//{
|
||||
// var rlt = Task.Run<bool>(() =>
|
||||
// {
|
||||
// bool result = false;
|
||||
// string message = string.Empty;
|
||||
// int cnt = 0;
|
||||
// int rdy = 0;
|
||||
// System.Diagnostics.Stopwatch wat = new System.Diagnostics.Stopwatch();
|
||||
// wat.Restart();
|
||||
|
||||
// //아무것도 하지 않는다.
|
||||
// if (SETTING.Data.ECSSkip)
|
||||
// {
|
||||
// result = true;
|
||||
// rdy = 1;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// PUB.log.Add($"ECS로부터 SID ACTIVE 정보를 수신 합니다");
|
||||
// var url = $@"http://10.131.32.29:8080/api/active?MC={SETTING.Data.McName}&SID={sid}&BATCH={batch}";
|
||||
// var newbuf = UTIL.GetStrfromurl(url, out bool iserror, 15000);
|
||||
// newbuf = newbuf.Replace("k__BackingField", "").Replace("<", "").Replace(">", "");
|
||||
// PUB.log.Add($"ecs active check message={newbuf}");
|
||||
// result = newbuf.ToLower() == "true";
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// PUB.log.AddE(ex.Message);
|
||||
// result = true;
|
||||
// }
|
||||
// }
|
||||
// wat.Stop();
|
||||
// //PUB.log.Add($"{cnt}건의 sid정보가 추가됨 {wat.ElapsedMilliseconds:N2}ms");
|
||||
// return result;
|
||||
// });
|
||||
// return rlt;
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 전체 작업목록을 별도파일에 저장한다
|
||||
@@ -602,8 +400,6 @@ namespace Project
|
||||
/// <param name="file"></param>
|
||||
public static void AddJobList(string seqdate, string seqno, string file)
|
||||
{
|
||||
//저장된 파일은 아래와같은 데이터를 가지고 있다
|
||||
//sb.AppendLine("#Time\tSID\tRID\tRAW");
|
||||
|
||||
//해당 차수로 저장된 파일이 잇는지 체크한다.
|
||||
var savepath = System.IO.Path.Combine(AR.SETTING.Data.Path_Data, "JobData", seqdate.Substring(0, 6), seqdate + "-" + seqno + ".txt");
|
||||
@@ -1478,7 +1274,7 @@ namespace Project
|
||||
}
|
||||
public static Boolean PasswordCheck()
|
||||
{
|
||||
var pass = new Dialog.fPassword();
|
||||
var pass = new AR.Dialog.fPassword();
|
||||
if (pass.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
var p = AR.SETTING.Data.Password_Setup;
|
||||
@@ -1689,7 +1485,7 @@ namespace Project
|
||||
}
|
||||
public static double ChangeValuePopup(double value, string title)
|
||||
{
|
||||
var f = new Dialog.fInput(title, value.ToString());
|
||||
var f = new AR.Dialog.fInput(title, value.ToString());
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
var val = double.Parse(f.tbInput.Text);
|
||||
@@ -1698,95 +1494,24 @@ namespace Project
|
||||
else return value;
|
||||
|
||||
}
|
||||
//public static bool ImportSIDInfo(DataSet1.Component_Reel_SID_InformationDataTable Component_Reel_SID_Information,
|
||||
// String InputFileName,
|
||||
// System.Windows.Forms.ProgressBar progressBar1 = null)
|
||||
//{
|
||||
// //엑셀을 읽어와서 처리한다.
|
||||
// var fi = new System.IO.FileInfo(InputFileName);
|
||||
// var ext = fi.Extension.ToLower();
|
||||
// libxl.Book book;
|
||||
// if (ext == ".xlsx") book = new libxl.XmlBook();
|
||||
// else if (ext == ".xls") book = new libxl.BinBook();
|
||||
// else return false;
|
||||
|
||||
// var keyinfo = Properties.Settings.Default.libxl.Split('/');
|
||||
// book.setKey(keyinfo[0], keyinfo[1]);
|
||||
// book.load(fi.FullName);
|
||||
// var sheet = book.getSheet(0);
|
||||
public static (bool success, string newid, string message) MakeNewREELID(string sid)
|
||||
{
|
||||
//WMS은 DB에서 생성하낟.
|
||||
var ta = new dsWMSTableAdapters.QueriesTableAdapter();
|
||||
|
||||
// var cs = sheet.firstCol();
|
||||
// var ce = sheet.lastCol();
|
||||
// var rs = sheet.firstRow();
|
||||
// var re = sheet.lastRow();
|
||||
string NewID = string.Empty;
|
||||
string Message = string.Empty;
|
||||
|
||||
// if (progressBar1 != null)
|
||||
// {
|
||||
// progressBar1.Minimum = 0;
|
||||
// progressBar1.Maximum = re;
|
||||
// progressBar1.Value = 0;
|
||||
// }
|
||||
|
||||
// if (rs == 0) rs += 1;
|
||||
|
||||
// int cntA = 0;
|
||||
// int cntU = 0;
|
||||
// for (int row = rs; row <= re; row++)
|
||||
// {
|
||||
// //update progress bar
|
||||
// if (progressBar1 != null)
|
||||
// {
|
||||
// if (progressBar1.Value < progressBar1.Maximum) progressBar1.Value += 1;
|
||||
// }
|
||||
|
||||
|
||||
// var cCustCode = sheet.readStr(row, 0);
|
||||
// var cSID = sheet.readStr(row, 1);
|
||||
// var cPartNo = sheet.readStr(row, 2);
|
||||
|
||||
// if (cCustCode.isEmpty() == false && cCustCode.Length != 4)
|
||||
// cCustCode = cCustCode.PadLeft(4, '0');
|
||||
|
||||
// if (cSID.isEmpty() && cCustCode.isEmpty()) break; //
|
||||
|
||||
// //if (cSID.StartsWith("10"))
|
||||
// //{
|
||||
// EnumerableRowCollection<DataSet1.Component_Reel_SID_InformationRow> plist = null;
|
||||
// plist = Component_Reel_SID_Information.Where(t => t.MC == AR.SETTING.Data.McName && t.SID == cSID && t.CustCode == cCustCode && t.PartNo == cPartNo);
|
||||
|
||||
// if (plist == null || plist.Any() == false)
|
||||
// {
|
||||
// //존재하지않으면 추가한다.
|
||||
// var newdr = Component_Reel_SID_Information.NewComponent_Reel_SID_InformationRow();
|
||||
// newdr.CustCode = cCustCode;
|
||||
// newdr.SID = cSID;
|
||||
// newdr.PartNo = cPartNo;
|
||||
// newdr.MC = AR.SETTING.Data.McName;
|
||||
// newdr.wdate = DateTime.Now;
|
||||
// Component_Reel_SID_Information.AddComponent_Reel_SID_InformationRow(newdr);
|
||||
// cntA += 1;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// //있다면 업데이트 해준다.
|
||||
// //foreach (var item in plist)
|
||||
// //{
|
||||
// // if (cSID.isEmpty() == false)
|
||||
// // {
|
||||
// // item.SID = cSID; ;
|
||||
// // item.EndEdit();
|
||||
// // cntU += 1;
|
||||
// // }
|
||||
|
||||
// //}
|
||||
// }
|
||||
// //}
|
||||
|
||||
// }
|
||||
// PUB.log.Add($"Import SID Information : {cntA}");
|
||||
// return true;
|
||||
//}
|
||||
var retval = ta.X_SP_GET_UNIT_ID_LABEL(SETTING.Data.WMS_PROGRAM_ID,
|
||||
SETTING.Data.WMS_CENTER_CD, sid,
|
||||
SETTING.Data.WMS_REG_USERID,
|
||||
PUB.IP,
|
||||
ref NewID,
|
||||
ref Message);
|
||||
|
||||
return ((!NewID.isEmpty() && Message == "OK"), NewID, Message);
|
||||
}
|
||||
|
||||
public static void CheckFreeSpace()
|
||||
{
|
||||
@@ -1842,7 +1567,7 @@ namespace Project
|
||||
public static void ChangeUIPopup(System.Windows.Forms.NumericUpDown valueCtl)
|
||||
{
|
||||
var value = valueCtl.Value.ToString();
|
||||
Dialog.fInput f = new Dialog.fInput("Input value", value);
|
||||
AR.Dialog.fInput f = new AR.Dialog.fInput("Input value", value);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
var val = decimal.Parse(f.tbInput.Text);
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Project
|
||||
{
|
||||
var bg1 = lbl.BackColor;
|
||||
var bg2 = lbl.BackColor2;
|
||||
lbl.BackColor = bg2;
|
||||
if(bg2 != null) lbl.BackColor = (Color)bg2;
|
||||
lbl.BackColor2 = bg1;
|
||||
lbl.Invalidate();
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Project
|
||||
var conv = VAR.BOOL[eVarBool.Use_Conveyor];
|
||||
if (conv)
|
||||
{
|
||||
var sidinfo = await PUB.UpdateSIDInfoByECS();
|
||||
var sidinfo = await PUB.UpdateSIDInfo();
|
||||
var systembypass = SETTING.Data.SystemBypass;
|
||||
if (systembypass == false && sidinfo.Item1 == false)
|
||||
{
|
||||
|
||||
@@ -343,111 +343,6 @@ namespace Project
|
||||
}
|
||||
}
|
||||
|
||||
//데이터가 충족되면 오류처리한다.
|
||||
if (PUB.Result.ItemDataC.VisionData.SID.isEmpty() == false && PUB.Result.ItemDataC.VisionData.BATCH.isEmpty() == false)
|
||||
{
|
||||
|
||||
//ecs on 컨베이어때만 사용한다
|
||||
bool warndata = false;
|
||||
if (SETTING.Data.ECSSkip == false && CVMode)
|
||||
{
|
||||
//모두 찾은상태에서는 활성화여부를 추가 확인한다.
|
||||
var sid = PUB.Result.ItemDataC.VisionData.SID;// item.VisionData.SID;
|
||||
var bat = PUB.Result.ItemDataC.VisionData.BATCH;// item.VisionData.BATCH;
|
||||
|
||||
//현 시점의 활성화 목록을 가져온다
|
||||
var activelist = PUB.GetECSActiveSIDList();
|
||||
|
||||
//해당sid+bat 가 활성화된것인지 확인한다.
|
||||
bool active = false;
|
||||
string active_sid = "";
|
||||
string active_bat = "";
|
||||
var sidorder = 0;
|
||||
var sidx = 0;
|
||||
foreach (var actItem in activelist)
|
||||
{
|
||||
if (actItem.Item3 != SETTING.Data.McName) continue;
|
||||
|
||||
if (actItem.Item4)
|
||||
{
|
||||
if (active_sid.isEmpty())
|
||||
{
|
||||
active_sid = actItem.Item1;
|
||||
active_bat = actItem.Item2;
|
||||
PUB.log.Add($"act 목록에서 활성화코드 확인:{active_sid},bat:{active_bat}");
|
||||
}
|
||||
}
|
||||
|
||||
if (actItem.Item1.Equals(sid) && actItem.Item2.Equals(bat))
|
||||
{
|
||||
active = actItem.Item4;
|
||||
sidorder = sidx; //순서를 저장한다. 0부터 시작하는값이다.
|
||||
}
|
||||
|
||||
//내 장비에 한해서 순서를 결정한다.
|
||||
//if (actItem.Item3 == SETTING.Data.McName)
|
||||
sidx += 1;
|
||||
}
|
||||
|
||||
//활성화된 sid가 아니다
|
||||
if (active == false)
|
||||
{
|
||||
if (sidorder > 1) //2번째는 무조건 에러
|
||||
{
|
||||
PUB.log.AddE($"active sid 아니고 {sidorder + 1}번 항목이므로 오류 처리한다.");
|
||||
warndata = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
//활성sid의 작업데이터가있으면 ok
|
||||
var qa = new DataSet1TableAdapters.QueriesTableAdapter();
|
||||
var existreadat = qa.GetIBResultCountBySIDBatch(DateTime.Now.AddHours(-6), active_sid, active_bat) > 0;
|
||||
|
||||
//활성sid의 작업데이터가있으면 ok
|
||||
if (existreadat)
|
||||
{
|
||||
PUB.log.AddAT($"active sid 는 아니지만 활성sid({active_sid},batch:{active_bat}) 의 기록이 있어 진행 합니다");
|
||||
warndata = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddE($"active sid 아니고 활성sid({active_sid},batch:{active_bat}) 의 기록이 없어 진행 불가");
|
||||
warndata = true;
|
||||
}
|
||||
//없으면 ng
|
||||
}
|
||||
}
|
||||
|
||||
//오류발생조건이나, 이미 발생했다면 처리하지 않는다.
|
||||
if (warndata)
|
||||
{
|
||||
if (warninactivelist.Contains(sid + bat) == false)
|
||||
{
|
||||
warninactivelist.Add(sid + bat);
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.log.AddAT($"이미 경고한 sid+bqt이므로 넘어갑니다({sid}{bat})");
|
||||
warndata = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (warndata)
|
||||
{
|
||||
PUB.Result.SetResultMessage(eResult.OPERATION, eECode.NOECSDATAACTIVE, eNextStep.PAUSE, item.VisionData.SID, item.VisionData.BATCH);
|
||||
if (ShowUserForm)
|
||||
{
|
||||
//오류로 인해 사용자 확인창을 표시하지 않습니다.
|
||||
ShowUserForm = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//사용자 확인창을 표시한다
|
||||
if (ShowUserForm)
|
||||
{
|
||||
@@ -1042,43 +937,27 @@ namespace Project
|
||||
|
||||
bool rlt = false;
|
||||
string errmsg = string.Empty;
|
||||
//var systembypassmode = SETTING PUB.Result.vModel.Title.Equals("BYPASS");
|
||||
|
||||
if (CVMode == true && SETTING.Data.SystemBypass == false)
|
||||
//var systembypassmode = SETTING PUB.Result.vModel.Title.Equals("BYPASS"); CVMode == true &&
|
||||
if (SETTING.Data.SystemBypass == false)
|
||||
{
|
||||
rlt = Amkor.RestfulService.Inbound_label_attach_reel_info(reelinfo, out errmsg);
|
||||
PUB.log.AddE("WAS전송" + (rlt ? "성공" : "실패") + $":{errmsg}");
|
||||
rlt = PUB.UpdateWMS(item.VisionData); //rlt = Amkor.RestfulService.Inbound_label_attach_reel_info(reelinfo, out errmsg);
|
||||
PUB.log.AddE("WMS전송" + (rlt ? "성공" : "실패") + $":{errmsg}");
|
||||
if (rlt == false) //230927 - 오류발생시
|
||||
{
|
||||
if (errmsg.Contains("LABEL_ID is duplicate") && SETTING.Data.InboundWebService_RID_DupSKIP)
|
||||
{
|
||||
PUB.log.AddAT($"환경설정에서 인바운드API 중복 오류가 무시됨");
|
||||
}
|
||||
else
|
||||
{
|
||||
PUB.Result.SetResultMessage(eResult.OPERATION, eECode.INBOUNDWEBAPIERROR, eNextStep.PAUSE, target, errmsg);
|
||||
return false; ;
|
||||
}
|
||||
PUB.Result.SetResultMessage(eResult.OPERATION, eECode.INBOUNDWEBAPIERROR, eNextStep.PAUSE, target, errmsg);
|
||||
return false; ;
|
||||
}
|
||||
}
|
||||
else if (CVMode == false)
|
||||
{
|
||||
//카트모드에서는 처리하지 않는다.
|
||||
rlt = true;
|
||||
errmsg = string.Empty;
|
||||
PUB.log.AddAT($"cart mode 로 인해 inbound 저장 안함");
|
||||
}
|
||||
else
|
||||
{
|
||||
errmsg = "bypass";
|
||||
rlt = false;
|
||||
PUB.log.AddAT($"System bytpass 로 인해 inbound 저장 안함");
|
||||
PUB.log.AddAT($"System bytpass 로 인해 WMS 저장 안함");
|
||||
}
|
||||
if (errmsg.Length > 190) errmsg = errmsg.Substring(0, 190); //230810 maxlength error
|
||||
SaveData_EE(item, (target == eWorkPort.Left ? "L" : "R"), (rlt ? "OK" : errmsg),"root_sequence");
|
||||
SaveData_EE(item, (target == eWorkPort.Left ? "L" : "R"), (rlt ? "OK" : errmsg), "root_sequence");
|
||||
//RefreshList(); //목록업데이트
|
||||
EEMStatus.AddStatusCount(1, $"{item.VisionData.SID}|{item.VisionData.RID}"); //eem 추가 230620
|
||||
|
||||
PUB.sm.seq.Update(cmdIndex);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -187,16 +187,16 @@ namespace Project
|
||||
//릴Id 신규부여
|
||||
if (OPT_BYPASS == false && VAR.BOOL[eVarBool.Opt_NewReelID])
|
||||
{
|
||||
if (itemC.VisionData.RIDNew == false && itemC.VisionData.CUSTCODE.isEmpty() == false)
|
||||
if (itemC.VisionData.RIDNew == false && itemC.VisionData.CUSTCODE.isEmpty() == false && itemC.VisionData.SID.isEmpty() == false)
|
||||
{
|
||||
var newid = Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD(itemC.VisionData.CUSTCODE, "4", "A", out string errmsg);
|
||||
if (newid.isEmpty() == false)
|
||||
var newid = PUB.MakeNewREELID(itemC.VisionData.SID);// Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD(itemC.VisionData.CUSTCODE, "4", "A", out string errmsg);
|
||||
if (newid.success == true)
|
||||
{
|
||||
//backup origin reel id
|
||||
itemC.VisionData.RID0 = itemC.VisionData.RID;
|
||||
|
||||
//set new reel id
|
||||
itemC.VisionData.SetRID(newid, "SPS:CHKDATACOMPLETE");// = newid;
|
||||
itemC.VisionData.SetRID(newid.newid, "SPS:CHKDATACOMPLETE");// = newid;
|
||||
itemC.VisionData.RIDNew = true; //applied new reel id
|
||||
|
||||
//서버의수량업데이트기능이 켜져있다면 해당 값을 제거해준다. (다시 조회되도록 함)
|
||||
@@ -216,7 +216,7 @@ namespace Project
|
||||
var logtime = VAR.TIME.RUN((int)eVarTime.LOG_NEWIDERROR);
|
||||
if (logtime.TotalSeconds >= 3000)
|
||||
{
|
||||
PUB.log.AddAT($"Reel_ID 생성실패 : {errmsg}");
|
||||
PUB.log.AddAT($"Reel_ID 생성실패 : {newid.message}");
|
||||
VAR.TIME.Update(eVarTime.LOG_NEWIDERROR);
|
||||
}
|
||||
}
|
||||
@@ -331,8 +331,12 @@ namespace Project
|
||||
//수량원본이 없는 경우
|
||||
if (item.VisionData.QTY0.isEmpty())
|
||||
{
|
||||
string msg;
|
||||
var cnt = (int)(Amkor.RestfulService.get_stock_count(item.VisionData.RID, out msg));
|
||||
string msg= "서버 수량 업데이트 기능은 WMS에 적용되지 않음, 필요한 경우 개발자 컨택";
|
||||
var cnt = 0;// (int)(Amkor.RestfulService.get_stock_count(item.VisionData.RID, out msg));
|
||||
if(mainjob)
|
||||
{
|
||||
PUB.log.AddE("서버 수량 업데이트 기능은 WMS에 적용되지 않음, 필요한 경우 개발자 컨택");
|
||||
}
|
||||
if (cnt > 0)
|
||||
{
|
||||
//새로받은 데이터를 실제 수량에 추가한다
|
||||
@@ -633,11 +637,11 @@ namespace Project
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
if (PUB.Result.ItemDataC.VisionData.ConfirmAuto == false)
|
||||
{
|
||||
PUB.logDbg.Add($"비젼 자동 확정 처리 {Source}");
|
||||
PUB.Result.ItemDataC.VisionData.ConfirmAuto = true;
|
||||
}
|
||||
if (PUB.Result.ItemDataC.VisionData.ConfirmAuto == false)
|
||||
{
|
||||
PUB.logDbg.Add($"비젼 자동 확정 처리 {Source}");
|
||||
PUB.Result.ItemDataC.VisionData.ConfirmAuto = true;
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -655,9 +659,9 @@ namespace Project
|
||||
if (item.VisionData.PARTNO.isEmpty()) item.VisionData.PARTNO = "PARTNO" + DateTime.Now.ToString("yyyyMMddHHmmss.fff");
|
||||
if (item.VisionData.RID.isEmpty())
|
||||
{
|
||||
var rid = Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD("1234", "4", "A", out string err);
|
||||
if (rid.isEmpty()) item.VisionData.SetRID("RID" + DateTime.Now.ToString("yyyyMMddHHmmss.fff"), "DRY");
|
||||
else item.VisionData.SetRID(rid, "DRY");
|
||||
var newid = PUB.MakeNewREELID(item.VisionData.SID);// Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD("1234", "4", "A", out string err);
|
||||
if (newid.success == false) item.VisionData.SetRID("RID" + DateTime.Now.ToString("yyyyMMddHHmmss.fff"), "DRY");
|
||||
else item.VisionData.SetRID(newid.newid, "DRY");
|
||||
}
|
||||
if (item.VisionData.PrintPositionData.isEmpty()) item.VisionData.PrintPositionData = "2";
|
||||
item.VisionData.PrintPositionCheck = true;
|
||||
|
||||
@@ -249,7 +249,6 @@ namespace Project
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
////New ReelID
|
||||
/// this process run ( 3_keyence_read.cs )
|
||||
//if (VAR.BOOL[eVarBool.Opt_NewReelID) && PUB.sm.isRunning)
|
||||
@@ -277,14 +276,14 @@ namespace Project
|
||||
{
|
||||
if (itemC.VisionData.RIDNew == false && itemC.VisionData.CUSTCODE.isEmpty() == false)
|
||||
{
|
||||
var newid = Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD(itemC.VisionData.CUSTCODE, "4", "A", out string errmsg);
|
||||
if (newid.isEmpty() == false)
|
||||
var newid = PUB.MakeNewREELID(vdata.SID);// Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD(itemC.VisionData.CUSTCODE, "4", "A", out string errmsg);
|
||||
if (newid.success)
|
||||
{
|
||||
//backup origin reel id
|
||||
itemC.VisionData.RID0 = itemC.VisionData.RID;
|
||||
|
||||
//set new reel id
|
||||
itemC.VisionData.SetRID(newid, "SPS:CHKDATACOMPLETE");// = newid;
|
||||
itemC.VisionData.SetRID(newid.newid, "SPS:CHKDATACOMPLETE");// = newid;
|
||||
itemC.VisionData.RIDNew = true; //applied new reel id
|
||||
|
||||
//서버의수량업데이트기능이 켜져있다면 해당 값을 제거해준다. (다시 조회되도록 함)
|
||||
@@ -304,7 +303,7 @@ namespace Project
|
||||
var logtime = VAR.TIME.RUN((int)eVarTime.LOG_NEWIDERROR);
|
||||
if (logtime.TotalSeconds >= 3000)
|
||||
{
|
||||
PUB.log.AddAT($"Reel_ID 생성실패 : {errmsg}");
|
||||
PUB.log.AddAT($"Reel_ID 생성실패 : {newid.message}");
|
||||
VAR.TIME.Update(eVarTime.LOG_NEWIDERROR);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<PropertyGroup />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>..\..\..\..\..\..\Amkor\STDLabelAttach%28Conv%29\</OutputPath>
|
||||
<OutputPath>..\..\..\..\..\Amkor\STDLabelAttach%28ATV%29\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
@@ -104,6 +104,14 @@
|
||||
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="arCommUtil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DLL\arCommUtil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="arControl.Net4, Version=18.7.27.1500, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DLL\arControl.Net4.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ArLog.Net4">
|
||||
<HintPath>..\DLL\ArLog.Net4.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -234,7 +242,6 @@
|
||||
<Compile Include="Button\START.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Class\AmkorReelID.cs" />
|
||||
<Compile Include="Class\CHistoryJOB.cs" />
|
||||
<Compile Include="Class\CHistorySIDRef.cs" />
|
||||
<Compile Include="Class\Command.cs" />
|
||||
@@ -254,15 +261,6 @@
|
||||
<Compile Include="Class\StatusMessage.cs" />
|
||||
<Compile Include="Class\VisionData.cs" />
|
||||
<Compile Include="Class\ItemData.cs" />
|
||||
<Compile Include="Component_Reel_Info.cs">
|
||||
<DependentUpon>Model1.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Component_Reel_Result.cs">
|
||||
<DependentUpon>Model1.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Component_Reel_SID_Convert.cs">
|
||||
<DependentUpon>Model1.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Controller\ModelController.cs" />
|
||||
<Compile Include="Controller\StateController.cs" />
|
||||
<Compile Include="Device\KeyenceBarcode.cs" />
|
||||
@@ -315,12 +313,6 @@
|
||||
<Compile Include="Dialog\fMessageInput.Designer.cs">
|
||||
<DependentUpon>fMessageInput.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Dialog\fNewReelID.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Dialog\fNewReelID.Designer.cs">
|
||||
<DependentUpon>fNewReelID.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Dialog\fNewSID.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -467,6 +459,12 @@
|
||||
<Compile Include="Dialog\fSIDQty.Designer.cs">
|
||||
<DependentUpon>fSIDQty.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="dsWMS.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>dsWMS.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Manager\DBHelper.cs" />
|
||||
<Compile Include="RunCode\StateMachine\_SM_RUN.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -561,21 +559,6 @@
|
||||
<DependentUpon>fMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Manager\DatabaseManagerSIDHistory.cs" />
|
||||
<Compile Include="Model1.Context.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Model1.Context.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Model1.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Model1.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Model1.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Model1.edmx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="RunCode\Display\GetErrorMessage.cs" />
|
||||
<Compile Include="RunCode\Display\_Interval_1min.cs">
|
||||
<SubType>Form</SubType>
|
||||
@@ -762,9 +745,6 @@
|
||||
<Compile Include="RunCode\Device\_Keyence.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="vCustomerList.cs">
|
||||
<DependentUpon>Model1.tt</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Dialog\Debug\fSendInboutData.resx">
|
||||
<DependentUpon>fSendInboutData.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -786,9 +766,6 @@
|
||||
<EmbeddedResource Include="Dialog\fMessageInput.resx">
|
||||
<DependentUpon>fMessageInput.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Dialog\fNewReelID.resx">
|
||||
<DependentUpon>fNewReelID.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Dialog\fNewSID.resx">
|
||||
<DependentUpon>fNewSID.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -906,7 +883,7 @@
|
||||
<None Include="DataSet1.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DataSet1.Designer.cs</LastGenOutput>
|
||||
<LastGenOutput>DataSet11.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DataSet1.xss">
|
||||
<DependentUpon>DataSet1.xsd</DependentUpon>
|
||||
@@ -923,10 +900,6 @@
|
||||
<None Include="DSList.xss">
|
||||
<DependentUpon>DSList.xsd</DependentUpon>
|
||||
</None>
|
||||
<EntityDeploy Include="Model1.edmx">
|
||||
<Generator>EntityModelCodeGenerator</Generator>
|
||||
<LastGenOutput>Model1.Designer.cs</LastGenOutput>
|
||||
</EntityDeploy>
|
||||
<None Include="DSSetup.xsc">
|
||||
<DependentUpon>DSSetup.xsd</DependentUpon>
|
||||
</None>
|
||||
@@ -938,8 +911,16 @@
|
||||
<None Include="DSSetup.xss">
|
||||
<DependentUpon>DSSetup.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="Model1.edmx.diagram">
|
||||
<DependentUpon>Model1.edmx</DependentUpon>
|
||||
<None Include="dsWMS.xsc">
|
||||
<DependentUpon>dsWMS.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="dsWMS.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>dsWMS.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="dsWMS.xss">
|
||||
<DependentUpon>dsWMS.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\app.manifest" />
|
||||
@@ -960,16 +941,6 @@
|
||||
<Content Include="libxl.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Model1.Context.tt">
|
||||
<Generator>TextTemplatingFileGenerator</Generator>
|
||||
<LastGenOutput>Model1.Context.cs</LastGenOutput>
|
||||
<DependentUpon>Model1.edmx</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Model1.tt">
|
||||
<Generator>TextTemplatingFileGenerator</Generator>
|
||||
<DependentUpon>Model1.edmx</DependentUpon>
|
||||
<LastGenOutput>Model1.cs</LastGenOutput>
|
||||
</Content>
|
||||
<None Include="Resources\icons8-object-40.png" />
|
||||
<None Include="Resources\icons8-stepper-motor-40.png" />
|
||||
<None Include="Resources\icons8-log-40.png" />
|
||||
@@ -1058,18 +1029,10 @@
|
||||
<Project>{9264cd2e-7cf8-4237-a69f-dcda984e0613}</Project>
|
||||
<Name>UIControl</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\AmkorRestfulService\AmkorRestfulService.csproj">
|
||||
<Project>{58cfc90c-5068-46a2-a8de-0e92ee9e0990}</Project>
|
||||
<Name>AmkorRestfulService</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\arAzinAxt\arAzinAxt.csproj">
|
||||
<Project>{4f457e76-bf83-4b98-8565-ae87d7d16744}</Project>
|
||||
<Name>arAzinAxt</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\arCtl\arControl.csproj">
|
||||
<Project>{f31c242c-1b15-4518-9733-48558499fe4b}</Project>
|
||||
<Name>arControl</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\arFrameControl\arFrameControl.csproj">
|
||||
<Project>{a16c9667-5241-4313-888e-548375f85d29}</Project>
|
||||
<Name>arFrameControl</Name>
|
||||
@@ -1078,14 +1041,6 @@
|
||||
<Project>{ed0d4179-fc0d-48d5-8bb3-cbf0f03d170c}</Project>
|
||||
<Name>arImageViewer.Emgu</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\arMCFrame\MemoryMapCore\MemoryMapCore.csproj">
|
||||
<Project>{140af52a-5986-4413-bf02-8ea55a61891b}</Project>
|
||||
<Name>MemoryMapCore</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\arRS232\arRS232.csproj">
|
||||
<Project>{802df40d-660e-4d72-b982-2fe5e6a7df1a}</Project>
|
||||
<Name>arRS232</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\CommData\CommData.csproj">
|
||||
<Project>{14e8c9a5-013e-49ba-b435-efefc77dd623}</Project>
|
||||
<Name>CommData</Name>
|
||||
@@ -1094,9 +1049,9 @@
|
||||
<Project>{d54444f7-1d85-4d5d-b1d1-10d040141a91}</Project>
|
||||
<Name>arCommSM</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\CommUtil\arCommUtil.csproj">
|
||||
<Project>{14e8c9a5-013e-49ba-b435-ffffff7dd623}</Project>
|
||||
<Name>arCommUtil</Name>
|
||||
<ProjectReference Include="..\Sub\MemoryMapCore\MemoryMapCore.csproj">
|
||||
<Project>{140af52a-5986-4413-bf02-8ea55a61891b}</Project>
|
||||
<Name>MemoryMapCore</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\Setting\Setting.csproj">
|
||||
<Project>{48654765-548d-42ed-9238-d65eb3bc99ad}</Project>
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using AR;
|
||||
|
||||
|
||||
namespace Project
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
|
||||
@@ -11,10 +11,14 @@
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="Project.Properties.Settings.CS" connectionString="Data Source=K4FASQL.kr.ds.amkor.com,50150;Initial Catalog=EE;Persist Security Info=True;User ID=eeadm;Password=uJnU8a8q&DJ+ug-D;Encrypt=False;TrustServerCertificate=True"
|
||||
<add name="Project.Properties.Settings.CS" connectionString="Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True"
|
||||
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="data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework""
|
||||
providerName="System.Data.EntityClient" />
|
||||
<add name="Project.Properties.Settings.WMS_DEV" connectionString="Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="Project.Properties.Settings.WMS_PRD" connectionString="Data Source=V1SPCSQL,51122;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password="2!x2$yY8R;}$";Encrypt=False;TrustServerCertificate=True"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
|
||||
2062
Handler/Project/dsWMS.Designer.cs
generated
Normal file
2062
Handler/Project/dsWMS.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
9
Handler/Project/dsWMS.xsc
Normal file
9
Handler/Project/dsWMS.xsc
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
160
Handler/Project/dsWMS.xsd
Normal file
160
Handler/Project/dsWMS.xsd
Normal file
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="dsWMS" targetNamespace="http://tempuri.org/dsWMS.xsd" xmlns:mstns="http://tempuri.org/dsWMS.xsd" xmlns="http://tempuri.org/dsWMS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="WMS_DEV" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="WMS_DEV (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Project.Properties.Settings.GlobalReference.Default.WMS_DEV" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="CS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CS (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Project.Properties.Settings.GlobalReference.Default.WMS_DEV" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VW_GET_MAX_QTY_CUSTTableAdapter" GeneratorDataComponentClassName="VW_GET_MAX_QTY_CUSTTableAdapter" Name="VW_GET_MAX_QTY_CUST" UserDataComponentName="VW_GET_MAX_QTY_CUSTTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.VW_GET_MAX_QTY_CUST" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT VW_GET_MAX_QTY_CUST.*
|
||||
FROM VW_GET_MAX_QTY_CUST</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="PART_NO" DataSetColumn="PART_NO" />
|
||||
<Mapping SourceColumn="VENDOR_NM" DataSetColumn="VENDOR_NM" />
|
||||
<Mapping SourceColumn="BATCH_NO" DataSetColumn="BATCH_NO" />
|
||||
<Mapping SourceColumn="QTY" DataSetColumn="QTY" />
|
||||
<Mapping SourceColumn="CUST_CODE" DataSetColumn="CUST_CODE" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VW_GET_MAX_QTY_VENDOR_LOTTableAdapter" GeneratorDataComponentClassName="VW_GET_MAX_QTY_VENDOR_LOTTableAdapter" Name="VW_GET_MAX_QTY_VENDOR_LOT" UserDataComponentName="VW_GET_MAX_QTY_VENDOR_LOTTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.VW_GET_MAX_QTY_VENDOR_LOT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT VW_GET_MAX_QTY_VENDOR_LOT.*
|
||||
FROM VW_GET_MAX_QTY_VENDOR_LOT</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="PART_NO" DataSetColumn="PART_NO" />
|
||||
<Mapping SourceColumn="VENDOR_NM" DataSetColumn="VENDOR_NM" />
|
||||
<Mapping SourceColumn="BATCH_NO" DataSetColumn="BATCH_NO" />
|
||||
<Mapping SourceColumn="QTY" DataSetColumn="QTY" />
|
||||
<Mapping SourceColumn="CUST_CODE" DataSetColumn="CUST_CODE" />
|
||||
<Mapping SourceColumn="VENDOR_LOT" DataSetColumn="VENDOR_LOT" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="CS (Settings)" DbObjectName="WMS.dbo.X_SP_GET_UNIT_ID_LABEL" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="X_SP_GET_UNIT_ID_LABEL" MethodsParameterType="CLR" Modifier="Public" Name="X_SP_GET_UNIT_ID_LABEL" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="X_SP_GET_UNIT_ID_LABEL">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.X_SP_GET_UNIT_ID_LABEL</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@P_PROGRAM_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@P_CENTER_CD" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@P_ITEM_CD" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@P_REG_USER_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@P_REG_IP" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="InputOutput" ParameterName="@O_UNIT_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="InputOutput" ParameterName="@O_MSG" Precision="0" ProviderType="VarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="dsWMS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsWMS" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsWMS">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="VW_GET_MAX_QTY_CUST" msprop:Generator_RowEvHandlerName="VW_GET_MAX_QTY_CUSTRowChangeEventHandler" msprop:Generator_RowDeletedName="VW_GET_MAX_QTY_CUSTRowDeleted" msprop:Generator_RowDeletingName="VW_GET_MAX_QTY_CUSTRowDeleting" msprop:Generator_RowEvArgName="VW_GET_MAX_QTY_CUSTRowChangeEvent" msprop:Generator_TablePropName="VW_GET_MAX_QTY_CUST" msprop:Generator_RowChangedName="VW_GET_MAX_QTY_CUSTRowChanged" msprop:Generator_UserTableName="VW_GET_MAX_QTY_CUST" msprop:Generator_RowChangingName="VW_GET_MAX_QTY_CUSTRowChanging" msprop:Generator_RowClassName="VW_GET_MAX_QTY_CUSTRow" msprop:Generator_TableClassName="VW_GET_MAX_QTY_CUSTDataTable" msprop:Generator_TableVarName="tableVW_GET_MAX_QTY_CUST">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="PART_NO" msprop:Generator_ColumnPropNameInTable="PART_NOColumn" msprop:Generator_ColumnPropNameInRow="PART_NO" msprop:Generator_UserColumnName="PART_NO" msprop:Generator_ColumnVarNameInTable="columnPART_NO">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="VENDOR_NM" msprop:Generator_ColumnPropNameInTable="VENDOR_NMColumn" msprop:Generator_ColumnPropNameInRow="VENDOR_NM" msprop:Generator_UserColumnName="VENDOR_NM" msprop:Generator_ColumnVarNameInTable="columnVENDOR_NM">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="BATCH_NO" msprop:Generator_ColumnPropNameInTable="BATCH_NOColumn" msprop:Generator_ColumnPropNameInRow="BATCH_NO" msprop:Generator_UserColumnName="BATCH_NO" msprop:Generator_ColumnVarNameInTable="columnBATCH_NO" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="QTY" msprop:Generator_ColumnPropNameInTable="QTYColumn" msprop:Generator_ColumnPropNameInRow="QTY" msprop:Generator_UserColumnName="QTY" msprop:Generator_ColumnVarNameInTable="columnQTY" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="CUST_CODE" msprop:Generator_ColumnPropNameInTable="CUST_CODEColumn" msprop:Generator_ColumnPropNameInRow="CUST_CODE" msprop:Generator_UserColumnName="CUST_CODE" msprop:Generator_ColumnVarNameInTable="columnCUST_CODE">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="VW_GET_MAX_QTY_VENDOR_LOT" msprop:Generator_RowEvHandlerName="VW_GET_MAX_QTY_VENDOR_LOTRowChangeEventHandler" msprop:Generator_RowDeletedName="VW_GET_MAX_QTY_VENDOR_LOTRowDeleted" msprop:Generator_RowDeletingName="VW_GET_MAX_QTY_VENDOR_LOTRowDeleting" msprop:Generator_RowEvArgName="VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent" msprop:Generator_TablePropName="VW_GET_MAX_QTY_VENDOR_LOT" msprop:Generator_RowChangedName="VW_GET_MAX_QTY_VENDOR_LOTRowChanged" msprop:Generator_UserTableName="VW_GET_MAX_QTY_VENDOR_LOT" msprop:Generator_RowChangingName="VW_GET_MAX_QTY_VENDOR_LOTRowChanging" msprop:Generator_RowClassName="VW_GET_MAX_QTY_VENDOR_LOTRow" msprop:Generator_TableClassName="VW_GET_MAX_QTY_VENDOR_LOTDataTable" msprop:Generator_TableVarName="tableVW_GET_MAX_QTY_VENDOR_LOT">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="PART_NO" msprop:Generator_ColumnPropNameInTable="PART_NOColumn" msprop:Generator_ColumnPropNameInRow="PART_NO" msprop:Generator_UserColumnName="PART_NO" msprop:Generator_ColumnVarNameInTable="columnPART_NO">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="VENDOR_NM" msprop:Generator_ColumnPropNameInTable="VENDOR_NMColumn" msprop:Generator_ColumnPropNameInRow="VENDOR_NM" msprop:Generator_UserColumnName="VENDOR_NM" msprop:Generator_ColumnVarNameInTable="columnVENDOR_NM">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="BATCH_NO" msprop:Generator_ColumnPropNameInTable="BATCH_NOColumn" msprop:Generator_ColumnPropNameInRow="BATCH_NO" msprop:Generator_UserColumnName="BATCH_NO" msprop:Generator_ColumnVarNameInTable="columnBATCH_NO" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="QTY" msprop:Generator_ColumnPropNameInTable="QTYColumn" msprop:Generator_ColumnPropNameInRow="QTY" msprop:Generator_UserColumnName="QTY" msprop:Generator_ColumnVarNameInTable="columnQTY" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="CUST_CODE" msprop:Generator_ColumnPropNameInTable="CUST_CODEColumn" msprop:Generator_ColumnPropNameInRow="CUST_CODE" msprop:Generator_UserColumnName="CUST_CODE" msprop:Generator_ColumnVarNameInTable="columnCUST_CODE">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="VENDOR_LOT" msprop:Generator_ColumnPropNameInTable="VENDOR_LOTColumn" msprop:Generator_ColumnPropNameInRow="VENDOR_LOT" msprop:Generator_UserColumnName="VENDOR_LOT" msprop:Generator_ColumnVarNameInTable="columnVENDOR_LOT">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
14
Handler/Project/dsWMS.xss
Normal file
14
Handler/Project/dsWMS.xss
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="85" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:VW_GET_MAX_QTY_CUST" ZOrder="3" X="84" Y="169" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:VW_GET_MAX_QTY_VENDOR_LOT" ZOrder="2" X="84" Y="346" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignSources:QueriesTableAdapter" ZOrder="1" X="524" Y="235" Height="48" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="44" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
3320
Handler/Project/fMain.Designer.cs
generated
3320
Handler/Project/fMain.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -513,15 +513,8 @@ namespace Project
|
||||
|
||||
this.Show();
|
||||
this.Activate();
|
||||
|
||||
Amkor.RestfulService.Message += RestfulService_Message;
|
||||
}
|
||||
|
||||
private void RestfulService_Message(object sender, Amkor.RestfulService.MessageEventArgs e)
|
||||
{
|
||||
if (e.isError) PUB.log.AddE($"restful log : {e.Message}");
|
||||
else PUB.log.AddI($"restful log : {e.Message}");
|
||||
}
|
||||
|
||||
private void Plc_ValueChanged(object sender, AR.MemoryMap.Core.monitorvalueargs e)
|
||||
{
|
||||
@@ -1188,7 +1181,9 @@ namespace Project
|
||||
|
||||
private void dIOMonitorToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var c = Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD("2000", "4", "A", out string error);
|
||||
var sid = UTIL.InputBox("input sid");
|
||||
if (sid.Item1 == false || sid.Item2.isEmpty()) return;
|
||||
var c = PUB.MakeNewREELID(sid.Item2);// Amkor.RestfulService.Allocation_Unique_ReelID_AmkorSTD("2000", "4", "A", out string error);
|
||||
}
|
||||
|
||||
private void refreshControklToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -1704,7 +1699,7 @@ namespace Project
|
||||
private void toolStripButton16_Click(object sender, EventArgs e)
|
||||
{
|
||||
var file = UTIL.ScreenCapture(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height, new Point(0, 0), false);
|
||||
var f = new Dialog.fMailReport("", file, "", AR.SETTING.Data.Bugreport_mail);
|
||||
var f = new AR.Dialog.fMailReport("", file, "", AR.SETTING.Data.Bugreport_mail);
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
@@ -2182,7 +2177,7 @@ namespace Project
|
||||
private void apiCheckToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
PUB.UpdateSIDInfoByECS().Wait();
|
||||
PUB.UpdateSIDInfo().Wait();
|
||||
|
||||
}
|
||||
|
||||
@@ -2230,7 +2225,7 @@ namespace Project
|
||||
|
||||
async private void 인바운드데이터업데이트ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var rlt = await PUB.UpdateSIDInfoByECS();
|
||||
var rlt = await PUB.UpdateSIDInfo();
|
||||
if (rlt.Item1 == false)
|
||||
{
|
||||
PUB.log.AddE($"인바운드 자료 업데이트 실패" + rlt.Item2);
|
||||
@@ -2255,26 +2250,6 @@ namespace Project
|
||||
|
||||
}
|
||||
|
||||
private void testToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void apiCheck2activeLiToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var sidlist = PUB.GetECSActiveSIDList();
|
||||
var ta = new DataSet1TableAdapters.QueriesTableAdapter();
|
||||
foreach (var item in sidlist)
|
||||
{
|
||||
var cnt = ta.GetIBResultCountBySIDBatch(DateTime.Now.AddHours(-6), item.Item1, item.Item2);
|
||||
PUB.log.Add($"sid:{item.Item1},batch:{item.Item2},active:{item.Item3},cnt:{cnt}");
|
||||
}
|
||||
}
|
||||
|
||||
private void sendMailToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,20 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 이 코드는 템플릿에서 생성되었습니다.
|
||||
//
|
||||
// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다.
|
||||
// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Project
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class vCustomerList
|
||||
{
|
||||
public string CustCode { get; set; }
|
||||
public string CustName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -130,10 +130,6 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Sub\arCtl\arControl.csproj">
|
||||
<Project>{f31c242c-1b15-4518-9733-48558499fe4b}</Project>
|
||||
<Name>arControl</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Sub\StdLabelPrint\StdLabelPrint.csproj">
|
||||
<Project>{b18d3b96-2fdf-4ed9-9a49-d9b8cee4ed6d}</Project>
|
||||
<Name>StdLabelPrint</Name>
|
||||
|
||||
@@ -3,9 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.6.33801.468
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STDLabelAttach(Conv+swPLC)", "Project\STDLabelAttach(Conv+swPLC).csproj", "{65F3E762-800C-499E-862F-A535642EC59F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arControl", "Sub\arCtl\arControl.csproj", "{F31C242C-1B15-4518-9733-48558499FE4B}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STDLabelAttach(ATV)", "Project\STDLabelAttach(ATV).csproj", "{65F3E762-800C-499E-862F-A535642EC59F}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Import", "Import", "{C423C39A-44E7-4F09-B2F7-7943975FF948}"
|
||||
EndProject
|
||||
@@ -15,31 +13,24 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arFrameControl", "Sub\arFra
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UIControl", "CapCleaningControl\UIControl.csproj", "{9264CD2E-7CF8-4237-A69F-DCDA984E0613}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_IOPanel", "Test\Test_IOPanel\Test_IOPanel.csproj", "{0029978E-035A-42D4-8489-CC8600BCB2F6}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{02CC42D0-2221-4855-9C3A-E2E35D651B17}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_AzinMotion", "Test\Test_AzinMotion\Test_AzinMotion.csproj", "{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arRS232", "Sub\arRS232\arRS232.csproj", "{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arImageViewer.Emgu", "Sub\arImageViewer_Emgu\arImageViewer.Emgu.csproj", "{ED0D4179-FC0D-48D5-8BB3-CBF0F03D170C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StdLabelPrint", "Sub\StdLabelPrint\StdLabelPrint.csproj", "{B18D3B96-2FDF-4ED9-9A49-D9B8CEE4ED6D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AmkorRestfulService", "Sub\AmkorRestfulService\AmkorRestfulService.csproj", "{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arAzinAxt", "Sub\arAzinAxt\arAzinAxt.csproj", "{4F457E76-BF83-4B98-8565-AE87D7D16744}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Setting", "Sub\Setting\Setting.csproj", "{48654765-548D-42ED-9238-D65EB3BC99AD}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arCommUtil", "Sub\CommUtil\arCommUtil.csproj", "{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arCommSM", "Sub\CommSM\arCommSM.csproj", "{D54444F7-1D85-4D5D-B1D1-10D040141A91}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommData", "Sub\CommData\CommData.csproj", "{14E8C9A5-013E-49BA-B435-EFEFC77DD623}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MemoryMapCore", "Sub\arMCFrame\MemoryMapCore\MemoryMapCore.csproj", "{140AF52A-5986-4413-BF02-8EA55A61891B}"
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "솔루션 항목", "솔루션 항목", "{2A3A057F-5D22-31FD-628C-DF5EF75AEF1E}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
CLAUDE.md = CLAUDE.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MemoryMapCore", "Sub\MemoryMapCore\MemoryMapCore.csproj", "{140AF52A-5986-4413-BF02-8EA55A61891B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@@ -67,18 +58,6 @@ Global
|
||||
{65F3E762-800C-499E-862F-A535642EC59F}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{65F3E762-800C-499E-862F-A535642EC59F}.Release|x86.ActiveCfg = Release|x86
|
||||
{65F3E762-800C-499E-862F-A535642EC59F}.Release|x86.Build.0 = Release|x86
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{4ED6F01A-0081-43E3-8EE5-7446BE0F2366}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4ED6F01A-0081-43E3-8EE5-7446BE0F2366}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4ED6F01A-0081-43E3-8EE5-7446BE0F2366}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
@@ -119,50 +98,6 @@ Global
|
||||
{9264CD2E-7CF8-4237-A69F-DCDA984E0613}.Release|x64.Build.0 = Release|Any CPU
|
||||
{9264CD2E-7CF8-4237-A69F-DCDA984E0613}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{9264CD2E-7CF8-4237-A69F-DCDA984E0613}.Release|x86.Build.0 = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|x64.Build.0 = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6}.Release|x86.Build.0 = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|x64.Build.0 = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F}.Release|x86.Build.0 = Release|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{ED0D4179-FC0D-48D5-8BB3-CBF0F03D170C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ED0D4179-FC0D-48D5-8BB3-CBF0F03D170C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ED0D4179-FC0D-48D5-8BB3-CBF0F03D170C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
@@ -195,22 +130,6 @@ Global
|
||||
{B18D3B96-2FDF-4ED9-9A49-D9B8CEE4ED6D}.Release|x64.Build.0 = Release|Any CPU
|
||||
{B18D3B96-2FDF-4ED9-9A49-D9B8CEE4ED6D}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{B18D3B96-2FDF-4ED9-9A49-D9B8CEE4ED6D}.Release|x86.Build.0 = Release|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|Mixed Platforms.Build.0 = Debug|x86
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Debug|x86.Build.0 = Debug|x86
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|Mixed Platforms.ActiveCfg = Release|x86
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|Mixed Platforms.Build.0 = Release|x86
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|x64.Build.0 = Release|Any CPU
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|x86.ActiveCfg = Release|x86
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990}.Release|x86.Build.0 = Release|x86
|
||||
{4F457E76-BF83-4B98-8565-AE87D7D16744}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4F457E76-BF83-4B98-8565-AE87D7D16744}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4F457E76-BF83-4B98-8565-AE87D7D16744}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
@@ -243,22 +162,6 @@ Global
|
||||
{48654765-548D-42ED-9238-D65EB3BC99AD}.Release|x64.Build.0 = Release|Any CPU
|
||||
{48654765-548D-42ED-9238-D65EB3BC99AD}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{48654765-548D-42ED-9238-D65EB3BC99AD}.Release|x86.Build.0 = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|x64.Build.0 = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623}.Release|x86.Build.0 = Release|Any CPU
|
||||
{D54444F7-1D85-4D5D-B1D1-10D040141A91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D54444F7-1D85-4D5D-B1D1-10D040141A91}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D54444F7-1D85-4D5D-B1D1-10D040141A91}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
@@ -312,18 +215,12 @@ Global
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{F31C242C-1B15-4518-9733-48558499FE4B} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{A16C9667-5241-4313-888E-548375F85D29} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{9264CD2E-7CF8-4237-A69F-DCDA984E0613} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{0029978E-035A-42D4-8489-CC8600BCB2F6} = {02CC42D0-2221-4855-9C3A-E2E35D651B17}
|
||||
{5709C3EC-EB33-4FD7-A933-E0CE173DE61F} = {02CC42D0-2221-4855-9C3A-E2E35D651B17}
|
||||
{802DF40D-660E-4D72-B982-2FE5E6A7DF1A} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{ED0D4179-FC0D-48D5-8BB3-CBF0F03D170C} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{B18D3B96-2FDF-4ED9-9A49-D9B8CEE4ED6D} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{58CFC90C-5068-46A2-A8DE-0E92EE9E0990} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{4F457E76-BF83-4B98-8565-AE87D7D16744} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{48654765-548D-42ED-9238-D65EB3BC99AD} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{14E8C9A5-013E-49BA-B435-FFFFFF7DD623} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{D54444F7-1D85-4D5D-B1D1-10D040141A91} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{14E8C9A5-013E-49BA-B435-EFEFC77DD623} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
{140AF52A-5986-4413-BF02-8EA55A61891B} = {C423C39A-44E7-4F09-B2F7-7943975FF948}
|
||||
|
||||
Submodule Handler/Sub/AmkorRestfulService deleted from c2a5826f21
@@ -46,6 +46,7 @@
|
||||
<Compile Include="Enum.cs" />
|
||||
<Compile Include="Enum_IO.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="RS232.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
1174
Handler/Sub/CommData/RS232.cs
Normal file
1174
Handler/Sub/CommData/RS232.cs
Normal file
File diff suppressed because it is too large
Load Diff
Submodule Handler/Sub/CommUtil deleted from 11d464e16a
36
Handler/Sub/MemoryMapCore/Client.cs
Normal file
36
Handler/Sub/MemoryMapCore/Client.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.IO.MemoryMappedFiles;
|
||||
using System.Threading;
|
||||
|
||||
namespace AR.MemoryMap
|
||||
{
|
||||
public class Client : Core
|
||||
{
|
||||
public Client(string MapFileName, int MapFileSize, int loopDelay = 50) : base(MapFileName, MapFileSize, loopDelay)
|
||||
{
|
||||
StartAction = () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
var MapFileSync = $"{MapFileName}{MapFileSize}";
|
||||
mmf = MemoryMappedFile.CreateOrOpen(MapFileName, MapFileSize);
|
||||
mutex = new Mutex(false, MapFileSync, out mutexCreated);
|
||||
ErrorMessage = string.Empty;
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrorMessage = ex.Message;
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
StopAction = () =>
|
||||
{
|
||||
ErrorMessage = string.Empty;
|
||||
brun = false;
|
||||
return true;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
574
Handler/Sub/MemoryMapCore/Core.cs
Normal file
574
Handler/Sub/MemoryMapCore/Core.cs
Normal file
@@ -0,0 +1,574 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.MemoryMappedFiles;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AR.MemoryMap
|
||||
{
|
||||
public abstract class Core
|
||||
{
|
||||
protected ManualResetEvent mre;
|
||||
protected MemoryMappedFile mmf;
|
||||
protected Mutex mutex;
|
||||
protected bool mutexCreated;
|
||||
protected Func<bool> StartAction;
|
||||
protected Func<bool> StopAction;
|
||||
string MapFileName = string.Empty;
|
||||
public int WriteTime = 100;
|
||||
public int ReadTime = 100;
|
||||
int MapSize = 100;
|
||||
public bool Init { get; set; } = false;
|
||||
Task loop;
|
||||
protected bool brun = false;
|
||||
public int LoopDelay { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
public Core(string mapFileName, int mapSize, int loopDelay = 50)
|
||||
{
|
||||
LoopDelay = loopDelay;
|
||||
this.MapFileName = mapFileName;
|
||||
this.MapSize = mapSize;
|
||||
this.monitorvalue = new byte[mapSize];
|
||||
mre = new ManualResetEvent(false);
|
||||
}
|
||||
~Core()
|
||||
{
|
||||
brun = false;
|
||||
}
|
||||
|
||||
public bool Start()
|
||||
{
|
||||
Init = StartAction.Invoke();
|
||||
return Init;
|
||||
}
|
||||
public void StartMonitor()
|
||||
{
|
||||
if (Init == false) return;
|
||||
if (IsMonitorRun) return;
|
||||
|
||||
|
||||
brun = true;
|
||||
loop = Task.Factory.StartNew(() =>
|
||||
{
|
||||
Monitor_Loop();
|
||||
});
|
||||
}
|
||||
public void StopMonitor()
|
||||
{
|
||||
brun = false;
|
||||
}
|
||||
public bool IsMonitorRun
|
||||
{
|
||||
get
|
||||
{
|
||||
if (loop == null) return false;
|
||||
if (loop.IsCompleted) return false;
|
||||
if (loop.IsCanceled) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool SetMonitorTarget(bool All)
|
||||
{
|
||||
if (mre.WaitOne(100) == false) return false;
|
||||
|
||||
|
||||
mre.Set();
|
||||
return true;
|
||||
}
|
||||
|
||||
byte[] monitorvalue;
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
StopAction.Invoke();
|
||||
}
|
||||
private void Monitor_Loop()
|
||||
{
|
||||
while (brun)
|
||||
{
|
||||
//작업가능확인
|
||||
bool readok = false;
|
||||
byte[] value = null;
|
||||
|
||||
try
|
||||
{
|
||||
if (mre.WaitOne(100))
|
||||
{
|
||||
try
|
||||
{
|
||||
//메모리접근 권한 확인
|
||||
if (MutexWaitOne(100))
|
||||
{
|
||||
//값을 읽은 경우
|
||||
if (ReadBytes(0, this.MapSize, out value))
|
||||
{
|
||||
readok = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
finally { mutex.ReleaseMutex(); }
|
||||
}
|
||||
}
|
||||
finally { mre.Set(); }
|
||||
|
||||
|
||||
if (readok)
|
||||
{
|
||||
//값의 변화가 있다면 이벤트 발생
|
||||
List<int> changeindex = new List<int>();
|
||||
for (int i = 0; i < value.Length; i++)
|
||||
{
|
||||
if (value[i] != monitorvalue[i]) changeindex.Add(i);
|
||||
}
|
||||
if (changeindex.Any())
|
||||
{
|
||||
ValueChanged.Invoke(this, new monitorvalueargs(changeindex.ToArray(), monitorvalue, value));
|
||||
}
|
||||
//신규값을 업데이트
|
||||
Array.Copy(value, monitorvalue, value.Length);
|
||||
}
|
||||
|
||||
//write
|
||||
System.Threading.Thread.Sleep(LoopDelay);
|
||||
}
|
||||
}
|
||||
public bool MutexWaitOne(int milli)
|
||||
{
|
||||
var MapFileSync = $"{MapFileName}{MapSize}";
|
||||
if (mutexCreated == false)
|
||||
{
|
||||
mutex = new Mutex(false, MapFileSync, out mutexCreated);
|
||||
return mutex.WaitOne(milli);
|
||||
}
|
||||
else
|
||||
{
|
||||
//이미생성된 경우에는 에러처리를 해야한다
|
||||
try
|
||||
{
|
||||
return mutex.WaitOne(milli);
|
||||
}
|
||||
catch
|
||||
{
|
||||
//오류가있으니 다시 작성한다
|
||||
mutex = new Mutex(false, MapFileSync, out mutexCreated);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event EventHandler<monitorvalueargs> ValueChanged;
|
||||
public class monitorvalueargs : EventArgs
|
||||
{
|
||||
public byte[] newdata;
|
||||
public byte[] olddata;
|
||||
public int[] idxlist;
|
||||
public monitorvalueargs(int[] idxs, byte[] beforedata, byte[] afterdata)
|
||||
{
|
||||
idxlist = new int[idxs.Length];
|
||||
Array.Copy(idxs, this.idxlist, idxs.Length);
|
||||
newdata = new byte[afterdata.Length];
|
||||
Array.Copy(afterdata, newdata, afterdata.Length);
|
||||
olddata = new byte[beforedata.Length];
|
||||
Array.Copy(beforedata, olddata, beforedata.Length);
|
||||
}
|
||||
}
|
||||
|
||||
#region "WRITE"
|
||||
public bool Write(int address, Boolean value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(value.GetType());
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool Write(int address, byte[] value, int startIndex = 0, int size = 0)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
if (size == 0) size = Marshal.SizeOf(value.GetType());
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value,startIndex,size);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, byte value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(value.GetType());
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, string value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(type);
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, Int32 value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(type);
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, Int16 value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(type);
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, UInt32 value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(type);
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, UInt16 value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(type);
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, Single value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(type);
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
public bool Write(int address, Double value)
|
||||
{
|
||||
if (Init == false) return false;
|
||||
if (MutexWaitOne(WriteTime) == false) return false;
|
||||
Type type = value.GetType();
|
||||
var size = Marshal.SizeOf(type);
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
using (var writer = new BinaryWriter(stream))
|
||||
writer.Write(value);
|
||||
mutex.ReleaseMutex();
|
||||
return true;
|
||||
}
|
||||
|
||||
//public bool Write<T>(int address, T value)
|
||||
//{
|
||||
// if (checktype(value.GetType()) == false) return false;
|
||||
// if (MutexWaitOne(3000) == false) return false;
|
||||
// var size = Marshal.SizeOf(typeof(T));
|
||||
// using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
// {
|
||||
// using (var reader = new BinaryWriter(stream))
|
||||
// {
|
||||
// var a = (byte[])Convert.ChangeType(value, typeof(byte[]));
|
||||
// reader.Write(a, 0, a.Length);
|
||||
// }
|
||||
// }
|
||||
// mutex.ReleaseMutex();
|
||||
// return true;
|
||||
//}
|
||||
#endregion
|
||||
#region "READ"
|
||||
public bool ReadSingle(int address, out Single value)
|
||||
{
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var retval = true;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 1;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToSingle(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadDouble(int address, out double value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 1;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToDouble(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadBytes(int address, int size, out byte[] value)
|
||||
{
|
||||
var retval = true;
|
||||
value = new byte[size];
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
reader.Read(value, 0, size);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadByte(int address, out byte value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 1;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = buffer.First();
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadInt16(int address, out Int16 value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 4;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToInt16(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadInt32(int address, out Int32 value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 4;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToInt32(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadInt64(int address, out Int64 value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 4;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToInt64(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadUInt16(int address, out UInt16 value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 4;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToUInt16(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadUInt32(int address, out UInt32 value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 4;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToUInt32(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
public bool ReadUInt64(int address, out UInt64 value)
|
||||
{
|
||||
var retval = true;
|
||||
value = 0;
|
||||
if (Init == false) return false;
|
||||
var type = value.GetType();
|
||||
if (MutexWaitOne(ReadTime) == false) return false;
|
||||
var size = 4;
|
||||
using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
{
|
||||
using (var reader = new BinaryReader(stream))
|
||||
{
|
||||
byte[] buffer = new byte[size];
|
||||
reader.Read(buffer, 0, size);
|
||||
value = BitConverter.ToUInt64(buffer, 0);
|
||||
}
|
||||
}
|
||||
mutex.ReleaseMutex();
|
||||
return retval;
|
||||
}
|
||||
|
||||
//public bool Read<T>(int address, out T value) where T : IConvertible
|
||||
//{
|
||||
// var retval = true;
|
||||
// value = default(T);
|
||||
// var type = value.GetType();
|
||||
// if (checktype(type) == false) return false;
|
||||
|
||||
// if (MutexWaitOne(3000) == false) return false;
|
||||
// var size = Marshal.SizeOf(typeof(T));
|
||||
// using (MemoryMappedViewStream stream = mmf.CreateViewStream(address, size))
|
||||
// {
|
||||
// using (var reader = new BinaryReader(stream))
|
||||
// {
|
||||
// byte[] buffer = new byte[size];
|
||||
// reader.Read(buffer, 0, size);
|
||||
// if (type == typeof(Int32))
|
||||
// value = (T)Convert.ChangeType(BitConverter.ToInt32(buffer, 0), typeof(T));
|
||||
// else if (type == typeof(UInt32))
|
||||
// value = (T)Convert.ChangeType(BitConverter.ToUInt32(buffer, 0), typeof(T));
|
||||
// else if (type == typeof(Int16))
|
||||
// value = (T)Convert.ChangeType(BitConverter.ToInt16(buffer, 0), typeof(T));
|
||||
// else if (type == typeof(UInt16))
|
||||
// value = (T)Convert.ChangeType(BitConverter.ToUInt16(buffer, 0), typeof(T));
|
||||
// else if (type == typeof(byte))
|
||||
// value = (T)Convert.ChangeType(buffer[0], typeof(T));
|
||||
// else if (type == typeof(string))
|
||||
// value = (T)Convert.ChangeType(System.Text.Encoding.Default.GetString(buffer), typeof(T));
|
||||
// else retval = false;
|
||||
// }
|
||||
// }
|
||||
// mutex.ReleaseMutex();
|
||||
// return retval;
|
||||
//}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 지정한 타입이 호환되는 타입인가?
|
||||
/// </summary>
|
||||
/// <param name="value"></param>
|
||||
/// <returns></returns>
|
||||
//bool checktype(Type value)
|
||||
//{
|
||||
// if (value == typeof(Int32)) return true;
|
||||
// else if (value == typeof(UInt32)) return true;
|
||||
// else if (value == typeof(Int16)) return true;
|
||||
// else if (value == typeof(UInt16)) return true;
|
||||
// else if (value == typeof(byte)) return true;
|
||||
// else if (value == typeof(string)) return true;
|
||||
// else return false;
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
45
Handler/Sub/MemoryMapCore/MemoryMap.txt
Normal file
45
Handler/Sub/MemoryMapCore/MemoryMap.txt
Normal file
@@ -0,0 +1,45 @@
|
||||
IO
|
||||
|
||||
01:VERSION(0~255)
|
||||
10:DEVICE_ID
|
||||
01:DICount(0~255)
|
||||
01:DOCount(0~255)
|
||||
---------------------12byte-----------
|
||||
##Command Area
|
||||
02:Command Device
|
||||
02:Command Code
|
||||
04:Command Value
|
||||
---------------------20byte-----------
|
||||
01:Status
|
||||
0 : init(<28>ʱ<EFBFBD>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD>)
|
||||
1 : error
|
||||
|
||||
02:StatusCode(-32767~32767)
|
||||
32:DIValue (dicount<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> dicount/8)
|
||||
32:DOValue (docount<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> docount/8)
|
||||
---------------------87byte-----------
|
||||
|
||||
|
||||
MOT
|
||||
01:VERSION(0~255)
|
||||
10:DEVICE_ID
|
||||
01:Axis Count(0~255)
|
||||
---------------------12byte----------------
|
||||
02:Status
|
||||
0 : init(<28>ʱ<EFBFBD>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD>)
|
||||
1 : error
|
||||
|
||||
02:StatusCode(-32767~32767)
|
||||
---------------------16byte----------------
|
||||
<EFBFBD>ະ<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͱ<EFBFBD> <20><>ȯ<EFBFBD>ȴ<EFBFBD>. <20><>10byte<74><65> <20><><EFBFBD><EFBFBD> <20><>
|
||||
01:Axis No
|
||||
01:Axist Status
|
||||
0 : Servo On
|
||||
1 : Inposition
|
||||
2 : N-Limit
|
||||
3 : P-Limit
|
||||
4 : Origin Sensor
|
||||
5 : HomeSet
|
||||
7 : Emergency
|
||||
04:Current Position
|
||||
04:Command Position
|
||||
52
Handler/Sub/MemoryMapCore/MemoryMapCore.csproj
Normal file
52
Handler/Sub/MemoryMapCore/MemoryMapCore.csproj
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{140AF52A-5986-4413-BF02-8EA55A61891B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>MemoryMapCore</RootNamespace>
|
||||
<AssemblyName>MemoryMapCore</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Client.cs" />
|
||||
<Compile Include="Core.cs" />
|
||||
<Compile Include="Server.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
36
Handler/Sub/MemoryMapCore/Properties/AssemblyInfo.cs
Normal file
36
Handler/Sub/MemoryMapCore/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해
|
||||
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
|
||||
// 이러한 특성 값을 변경하세요.
|
||||
[assembly: AssemblyTitle("MemoryMapCore")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MemoryMapCore")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에
|
||||
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면
|
||||
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
|
||||
[assembly: Guid("140af52a-5986-4413-bf02-8ea55a61891b")]
|
||||
|
||||
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
|
||||
//
|
||||
// 주 버전
|
||||
// 부 버전
|
||||
// 빌드 번호
|
||||
// 수정 버전
|
||||
//
|
||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
|
||||
// 기본값으로 할 수 있습니다.
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
40
Handler/Sub/MemoryMapCore/Server.cs
Normal file
40
Handler/Sub/MemoryMapCore/Server.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.CodeDom;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.MemoryMappedFiles;
|
||||
using System.Security.Policy;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace AR.MemoryMap
|
||||
{
|
||||
public class Server : Core
|
||||
{
|
||||
public Server(string MapFileName, int MapFileSize, int loopDelay = 50) : base(MapFileName, MapFileSize, loopDelay)
|
||||
{
|
||||
StartAction = () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
var MapFileSync = $"{MapFileName}{MapFileSize}";
|
||||
mmf = MemoryMappedFile.CreateOrOpen(MapFileName, MapFileSize);
|
||||
mutex = new Mutex(false, MapFileSync, out mutexCreated);
|
||||
ErrorMessage = string.Empty;
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrorMessage = ex.Message;
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
StopAction = () =>
|
||||
{
|
||||
ErrorMessage = string.Empty;
|
||||
brun = false;
|
||||
return true;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -138,14 +138,17 @@ namespace AR
|
||||
|
||||
#endregion
|
||||
|
||||
[Category("WMS")]
|
||||
public bool WMS_DB_PROD { get; set; }
|
||||
[Category("WMS")]
|
||||
public string WMS_PROGRAM_ID { get; set; }
|
||||
[Category("WMS")]
|
||||
public string WMS_CENTER_CD { get; set; }
|
||||
[Category("WMS")]
|
||||
public string WMS_REG_USERID { get; set; }
|
||||
|
||||
#region "Advanced Parameter"
|
||||
|
||||
[Category("Advanced Parameter"), DisplayName("ECS 자료조회 비활성"), Description("ECS 자료조회를 비활성화 합니다.\n기존 장비정보에 해당하는 자료를 사용합니다")]
|
||||
public bool ECSSkip { get; set; }
|
||||
|
||||
|
||||
[Category("Advanced Parameter")]
|
||||
public bool InboundWebService_RID_DupSKIP { get; set; }
|
||||
|
||||
[Category("Advanced Parameter"), DisplayName("Remote Contoller Port"), Description("디버그 포트 정보(시리얼통신), 입력 예) COM1:9600"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string Serial_Remocon { get; set; }
|
||||
@@ -512,6 +515,9 @@ namespace AR
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
if (WMS_CENTER_CD.isEmpty()) WMS_CENTER_CD = "V1";
|
||||
if (WMS_PROGRAM_ID.isEmpty()) WMS_PROGRAM_ID = "LABEL ATTACH";
|
||||
if (WMS_REG_USERID.isEmpty()) WMS_REG_USERID = "ATVLA1";
|
||||
|
||||
if (WebAPI_R1.isEmpty()) WebAPI_R1 = "http://10.131.32.31:9001";
|
||||
if (WebAPI_R2.isEmpty()) WebAPI_R2 = "http://10.131.32.24:9001";
|
||||
|
||||
@@ -25,10 +25,6 @@ namespace AR
|
||||
User.Save();
|
||||
}
|
||||
|
||||
public static bool isEmpty(this string data)
|
||||
{
|
||||
return string.IsNullOrEmpty(data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="arCommUtil, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\DLL\arCommUtil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ArSetting.Net4">
|
||||
<HintPath>..\..\DLL\ArSetting.Net4.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -53,15 +57,5 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SETTING.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\arCtl\arControl.csproj">
|
||||
<Project>{f31c242c-1b15-4518-9733-48558499fe4b}</Project>
|
||||
<Name>arControl</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\CommUtil\arCommUtil.csproj">
|
||||
<Project>{14e8c9a5-013e-49ba-b435-ffffff7dd623}</Project>
|
||||
<Name>arCommUtil</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Submodule Handler/Sub/arAzinAxt updated: e14c9dd159...34b3996759
Submodule Handler/Sub/arCtl deleted from 249154147d
@@ -87,12 +87,6 @@
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\arCtl\arControl.csproj">
|
||||
<Project>{f31c242c-1b15-4518-9733-48558499fe4b}</Project>
|
||||
<Name>arControl</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
Submodule Handler/Sub/arMCFrame deleted from a398dc0ae4
Submodule Handler/Sub/arRS232 deleted from e9b6a0a0d1
Submodule Handler/Sub/tcpservice deleted from d7fe2baa0e
Reference in New Issue
Block a user