diff --git a/Handler/CLAUDE.md b/Handler/CLAUDE.md index d2c95ec..7eb1f7b 100644 --- a/Handler/CLAUDE.md +++ b/Handler/CLAUDE.md @@ -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 \ No newline at end of file +- 웹 서비스를 위한 Microsoft OWIN 스택 +- 다양한 하드웨어별 SDK 및 드라이버 \ No newline at end of file diff --git a/Handler/CapCleaningControl/UIControl.csproj b/Handler/CapCleaningControl/UIControl.csproj index b607417..621cc95 100644 --- a/Handler/CapCleaningControl/UIControl.csproj +++ b/Handler/CapCleaningControl/UIControl.csproj @@ -34,6 +34,10 @@ false + + False + ..\DLL\arCommUtil.dll + @@ -201,10 +205,6 @@ {14e8c9a5-013e-49ba-b435-efefc77dd623} CommData - - {14e8c9a5-013e-49ba-b435-ffffff7dd623} - arCommUtil - {48654765-548d-42ed-9238-d65eb3bc99ad} Setting diff --git a/Handler/DLL/arCommUtil.dll b/Handler/DLL/arCommUtil.dll new file mode 100644 index 0000000..5ba1274 Binary files /dev/null and b/Handler/DLL/arCommUtil.dll differ diff --git a/Handler/DLL/arControl.Net4.dll b/Handler/DLL/arControl.Net4.dll new file mode 100644 index 0000000..81c5ba6 Binary files /dev/null and b/Handler/DLL/arControl.Net4.dll differ diff --git a/Handler/Project/Class/AmkorReelID.cs b/Handler/Project/Class/AmkorReelID.cs deleted file mode 100644 index c090a88..0000000 --- a/Handler/Project/Class/AmkorReelID.cs +++ /dev/null @@ -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 - { - /// - /// 앰코 ID형태인지 확인합니다. - /// - /// - /// - /// - /// - 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; - } - - - /// - /// 입력된 월 기준으로 시리얼 번호를 생성합니다 - /// - /// 21년 1월의 경우 211, 10월의 경우 21A 식으로 표현 - /// 1,2번 위치에 R기호를 제거 할 것인가? - /// - 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); - } - - /// - /// 해당월의 리턴릴의 번호를 생성한다 - /// - /// - /// - 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); - } - - /// - /// 중복릴의 다은번호를 생성한다 - /// - /// - /// - 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); - } - - /// - /// 입력한 시리얼 번호 이후의 번호를 생성합니다(0000~ZZZZ) 까지의 데이터를 가지며 2번쨰짜리까지는 R을 사용하지 못한다 - /// - /// 기준 시리얼번호 4자리 - /// - /// - 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); - } - - /// - /// 리턴릴의 다음 번호 생성 R로시작하며 000~ZZZ 영역을 가진다(제외문자 없음) - /// - /// - /// - 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); - } - - /// - /// 중복릴의 다음 번호 생성(0R로 시작하며 00~ZZ의 영역을 가진다) - /// - /// - /// - 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); - } - } -} diff --git a/Handler/Project/Class/EEMStatus.cs b/Handler/Project/Class/EEMStatus.cs index d8a9ee5..4d66c42 100644 --- a/Handler/Project/Class/EEMStatus.cs +++ b/Handler/Project/Class/EEMStatus.cs @@ -8,6 +8,7 @@ using System.Net; using System.Net.NetworkInformation; using System.Text; using System.Threading.Tasks; +using AR; /// /// ============================================================================ @@ -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")) { //사용자에의해 멈추는 것은 오류코드를 넣지 않는다. } diff --git a/Handler/Project/Class/ModelInfoM.cs b/Handler/Project/Class/ModelInfoM.cs index 12c376d..8467a80 100644 --- a/Handler/Project/Class/ModelInfoM.cs +++ b/Handler/Project/Class/ModelInfoM.cs @@ -5,6 +5,7 @@ using System.Text; using System.Drawing; using System.ComponentModel; using System.Web.Services.Protocols; +using AR; namespace Project { diff --git a/Handler/Project/Class/VisionData.cs b/Handler/Project/Class/VisionData.cs index 2039100..fd7e9a5 100644 --- a/Handler/Project/Class/VisionData.cs +++ b/Handler/Project/Class/VisionData.cs @@ -8,6 +8,7 @@ using System.Drawing; using System.Collections.Concurrent; using System.ComponentModel; using System.Runtime.CompilerServices; +using AR; namespace Project.Class { diff --git a/Handler/Project/Component_Reel_Info.cs b/Handler/Project/Component_Reel_Info.cs deleted file mode 100644 index 8ac8a1c..0000000 --- a/Handler/Project/Component_Reel_Info.cs +++ /dev/null @@ -1,23 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -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; } - } -} diff --git a/Handler/Project/Component_Reel_Result.cs b/Handler/Project/Component_Reel_Result.cs deleted file mode 100644 index 42e2ca3..0000000 --- a/Handler/Project/Component_Reel_Result.cs +++ /dev/null @@ -1,53 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -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 ETIME { get; set; } - public Nullable 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 ANGLE { get; set; } - public Nullable QTY { get; set; } - public Nullable QTY0 { get; set; } - public string VLOT { get; set; } - public string VNAME { get; set; } - public string MFGDATE { get; set; } - public Nullable PRNATTACH { get; set; } - public Nullable PRNVALID { get; set; } - public string REMARK { get; set; } - public System.DateTime wdate { get; set; } - public string MC { get; set; } - public Nullable GUID { get; set; } - public Nullable ATIME { get; set; } - public Nullable OPT { get; set; } - public Nullable OPT_DATA { get; set; } - public string PARTNO { get; set; } - public string CUSTCODE { get; set; } - public string BATCH { get; set; } - public Nullable qtymax { get; set; } - } -} diff --git a/Handler/Project/Component_Reel_SID_Convert.cs b/Handler/Project/Component_Reel_SID_Convert.cs deleted file mode 100644 index 964510f..0000000 --- a/Handler/Project/Component_Reel_SID_Convert.cs +++ /dev/null @@ -1,25 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace Project -{ - using System; - using System.Collections.Generic; - - public partial class Component_Reel_SID_Convert - { - public int idx { get; set; } - public Nullable Chk { get; set; } - public string SIDFrom { get; set; } - public string SIDTo { get; set; } - public string Remark { get; set; } - public Nullable wdate { get; set; } - public string MC { get; set; } - } -} diff --git a/Handler/Project/DSList.Designer.cs b/Handler/Project/DSList.Designer.cs index 16587b2..4f02a20 100644 --- a/Handler/Project/DSList.Designer.cs +++ b/Handler/Project/DSList.Designer.cs @@ -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; - } } /// @@ -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 len, string exp) { + public virtual int Insert(string code, string MatchEx, global::System.Nullable MatchIndex, global::System.Nullable 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, "", "", "")); diff --git a/Handler/Project/DSList.xsd b/Handler/Project/DSList.xsd index 8606dc0..1f62cbf 100644 --- a/Handler/Project/DSList.xsd +++ b/Handler/Project/DSList.xsd @@ -9,7 +9,7 @@ - + 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))) @@ -28,21 +28,24 @@ - 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) + 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()) - - - - + + + + + + + - - SELECT Component_Reel_CustRule.* -FROM Component_Reel_CustRule + + SELECT idx, code, MatchEx, MatchIndex, GroupIndex, ReplaceEx, ReplaceStr, varName, Remark +FROM K4EE_Component_Reel_CustRule @@ -72,16 +75,20 @@ SELECT code, pre, pos, len, exp FROM Component_Reel_CustRule WHERE (code = @code - - - - + + + + + + + + - + 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))) @@ -118,12 +125,12 @@ SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark FROM C 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) - - - + + + @@ -168,7 +175,7 @@ SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark FROM C - + 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))) @@ -218,11 +225,11 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark 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) - - + + @@ -262,7 +269,7 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark - + @@ -288,105 +295,121 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark - + - + - + - + - - + + - + - + - + + - + - + + + - + - - + - + - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + @@ -396,68 +419,68 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark - + - - + + - + - + - + - + - + - - + + - + - + @@ -482,6 +505,10 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark + + + + diff --git a/Handler/Project/DSList.xss b/Handler/Project/DSList.xss index c6139a3..5f2349b 100644 --- a/Handler/Project/DSList.xss +++ b/Handler/Project/DSList.xss @@ -6,9 +6,9 @@ --> - + - + diff --git a/Handler/Project/DSSetup.Designer.cs b/Handler/Project/DSSetup.Designer.cs index 78f4e8e..edb2945 100644 --- a/Handler/Project/DSSetup.Designer.cs +++ b/Handler/Project/DSSetup.Designer.cs @@ -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); /// @@ -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 { /// ///Row event argument class /// - [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; diff --git a/Handler/Project/DSSetup.xss b/Handler/Project/DSSetup.xss index 72c649a..6457e81 100644 --- a/Handler/Project/DSSetup.xss +++ b/Handler/Project/DSSetup.xss @@ -4,9 +4,9 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + \ No newline at end of file diff --git a/Handler/Project/DataSet1.xsd b/Handler/Project/DataSet1.xsd index 1bcfcce..b6a4b63 100644 --- a/Handler/Project/DataSet1.xsd +++ b/Handler/Project/DataSet1.xsd @@ -7,9 +7,9 @@ - + - + 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))) @@ -126,7 +126,7 @@ 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 @@ -231,7 +231,11 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP - 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 + 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 @@ -243,9 +247,13 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP - 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 + 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 - + @@ -254,9 +262,12 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP - 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) + 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) - + @@ -264,10 +275,14 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP - 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 + 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 - - + + @@ -275,7 +290,11 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP - 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 + 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 @@ -289,11 +308,11 @@ SELECT idx, STIME, ETIME, PDATE, JTYPE, JGUID, SID, SID0, RID, RID0, RSN, QR, ZP 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 - + @@ -304,11 +323,15 @@ ORDER BY wdate DESC - 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 + 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 - - - + + + @@ -316,12 +339,16 @@ ORDER BY wdate DESC - 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 + 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 - - - - + + + + @@ -330,11 +357,11 @@ ORDER BY wdate DESC 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') - - + + @@ -343,21 +370,21 @@ WHERE (iNBOUND = 'OK') AND (SID = @sid) AND (BATCH = @batch) AND (MC <> ' 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 - - + + - + - + 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))) @@ -405,7 +432,7 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus 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 @@ -447,7 +474,7 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus - + @@ -470,7 +497,8 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus - SELECT CustCode, Description, Groups, Id, IsAmkStd, IsEnable, IsIgnore, IsTrust, Pattern, Seq, Symbol FROM Component_Reel_RegExRule + SELECT CustCode, Description, Groups, Id, IsAmkStd, IsEnable, IsIgnore, IsTrust, Pattern, Seq, Symbol +FROM K4EE_Component_Reel_RegExRule ORDER BY CustCode, Seq, Description @@ -479,7 +507,11 @@ ORDER BY CustCode, Seq, Description - 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 + 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 @@ -490,7 +522,7 @@ ORDER BY CustCode, Seq, Description 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 @@ -501,9 +533,9 @@ ORDER BY CustCode, Seq, Description - + - + 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))) @@ -541,7 +573,7 @@ SELECT idx, MC, Chk, SIDFrom, SIDTo, Remark, wdate FROM Component_Reel_SID_Conve 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 @@ -588,9 +620,9 @@ SELECT idx, MC, Chk, SIDFrom, SIDTo, Remark, wdate FROM Component_Reel_SID_Conve - + - + 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))) @@ -643,11 +675,11 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc 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 - + @@ -690,7 +722,7 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc - + @@ -712,7 +744,7 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc - + DELETE FROM [Component_Reel_SID_Information] WHERE mc = @mcname @@ -721,14 +753,25 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc + + + DELETE FROM K4EE_Component_Reel_SID_Information +WHERE (MC = @mcname) + + + + + - 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) + 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) - - + + @@ -736,15 +779,17 @@ SELECT idx, MC, SID, CustCode, PartNo, CustName, VenderName, Remark, wdate, batc - 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, '') <> '') + 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, '') <> '') - - + + - + 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 + + + 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) + + + + + - + - + 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))) @@ -810,7 +867,7 @@ SELECT idx, MC, Title, Remark, wdate, vOption, vJobInfo, vSidInfo, vServerWrite, 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) @@ -852,7 +909,7 @@ SELECT idx, MC, Title, Remark, wdate, vOption, vJobInfo, vSidInfo, vServerWrite, - + @@ -873,9 +930,9 @@ SELECT idx, MC, Title, Remark, wdate, vOption, vJobInfo, vSidInfo, vServerWrite, - + - + DELETE FROM [Component_Reel_CustInfo] WHERE (([code] = @Original_code) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name))) @@ -899,7 +956,7 @@ SELECT code, name FROM Component_Reel_CustInfo WHERE (code = @code) SELECT code, name -FROM Component_Reel_CustInfo WITH (NOLOCK) +FROM K4EE_Component_Reel_CustInfo WITH (NOLOCK) @@ -926,11 +983,11 @@ SELECT code, name FROM Component_Reel_CustInfo WHERE (code = @code) - + 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 @@ -951,9 +1008,9 @@ ORDER BY PARTNO, VLOT - + - + 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))) @@ -987,10 +1044,10 @@ SELECT idx, MC, SID, PrintPosition, Remark, wdate FROM Component_Reel_Print_Info 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) - + @@ -1033,23 +1090,23 @@ SELECT idx, MC, SID, PrintPosition, Remark, wdate FROM Component_Reel_Print_Info 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) - - + + - + - + - 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))) + 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))) @@ -1075,8 +1132,8 @@ WHERE (MC = @mc) AND (SID = @sid) - 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()) + 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 @@ -1092,16 +1149,17 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus - - SELECT Component_Reel_PrintRegExRule.* -FROM Component_Reel_PrintRegExRule + + SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrust, IsAmkStd, IsIgnore +FROM K4EE_Component_Reel_PrintRegExRule +ORDER BY Id - 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) + 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 @@ -1132,7 +1190,7 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus - + @@ -1153,18 +1211,18 @@ SELECT Id, Seq, CustCode, Description, Symbol, Pattern, Groups, IsEnable, IsTrus - + - + 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 - + @@ -1180,16 +1238,27 @@ ORDER BY CustCode - select isnull(name,'') -from [Component_Reel_CustInfo] -where code = @code + SELECT ISNULL(name, '') AS Expr1 +FROM K4EE_Component_Reel_CustInfo WITH (no lock) +WHERE (code = @code) - + - + + + + UPDATE K4EE_Component_Reel_CustInfo +SET name = @newname +WHERE (code = @custcode) + + + + + + UPDATE [Component_Reel_CustInfo] set name = @newname @@ -1204,12 +1273,12 @@ where code = @custcode - select isnull(sid,'') -from Component_Reel_SID_Information -where custcode = @custcode and partno = @partno + SELECT ISNULL(SID, '') AS Expr1 +FROM K4EE_Component_Reel_SID_Information WITH (no lock) +WHERE (CustCode = @custcode) AND (PartNo = @partno) - - + + @@ -1218,11 +1287,11 @@ where custcode = @custcode and partno = @partno 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 - + @@ -1230,10 +1299,12 @@ ORDER BY wdate DESC - SELECT count(*) FROM Component_Reel_SID_Information WHERE (MC = @mcname) and sid = @sid + SELECT COUNT(*) AS Expr1 +FROM K4EE_Component_Reel_SID_Information WITH (no lock) +WHERE (MC = @mcname) AND (SID = @sid) - - + + @@ -1242,12 +1313,12 @@ ORDER BY wdate DESC 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) - - - + + + @@ -1377,7 +1448,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1601,7 +1672,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1648,7 +1719,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1685,7 +1756,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1764,7 +1835,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1811,7 +1882,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1853,7 +1924,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1889,7 +1960,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1936,7 +2007,7 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - + @@ -1984,8 +2055,8 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - - + + @@ -2008,24 +2079,24 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - - + + - - + + - - + + - - + + - - + + @@ -2033,16 +2104,16 @@ WHERE (iNBOUND = 'OK') AND (STIME >= @stime) AND (SID = @sid) AND (BATCH = @ - - + + - - + + - - + + diff --git a/Handler/Project/DataSet1.xss b/Handler/Project/DataSet1.xss index 62c54e7..3818741 100644 --- a/Handler/Project/DataSet1.xss +++ b/Handler/Project/DataSet1.xss @@ -4,33 +4,33 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Handler/Project/Dialog/Debug/fSendInboutData.cs b/Handler/Project/Dialog/Debug/fSendInboutData.cs index 4cfc14d..4491dd5 100644 --- a/Handler/Project/Dialog/Debug/fSendInboutData.cs +++ b/Handler/Project/Dialog/Debug/fSendInboutData.cs @@ -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); } diff --git a/Handler/Project/Dialog/Model_Motion.cs b/Handler/Project/Dialog/Model_Motion.cs index 06f15d2..3a6f491 100644 --- a/Handler/Project/Dialog/Model_Motion.cs +++ b/Handler/Project/Dialog/Model_Motion.cs @@ -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(); diff --git a/Handler/Project/Dialog/Model_Motion_Desc.cs b/Handler/Project/Dialog/Model_Motion_Desc.cs index 6015795..33cc268 100644 --- a/Handler/Project/Dialog/Model_Motion_Desc.cs +++ b/Handler/Project/Dialog/Model_Motion_Desc.cs @@ -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; diff --git a/Handler/Project/Dialog/Model_Operation.cs b/Handler/Project/Dialog/Model_Operation.cs index 2925907..8c8f365 100644 --- a/Handler/Project/Dialog/Model_Operation.cs +++ b/Handler/Project/Dialog/Model_Operation.cs @@ -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(); diff --git a/Handler/Project/Dialog/RegExTest.cs b/Handler/Project/Dialog/RegExTest.cs index 17a54f0..271c796 100644 --- a/Handler/Project/Dialog/RegExTest.cs +++ b/Handler/Project/Dialog/RegExTest.cs @@ -8,6 +8,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Text.RegularExpressions; +using AR; namespace Project.Dialog { diff --git a/Handler/Project/Dialog/fFinishJob.cs b/Handler/Project/Dialog/fFinishJob.cs index 58688a5..0597047 100644 --- a/Handler/Project/Dialog/fFinishJob.cs +++ b/Handler/Project/Dialog/fFinishJob.cs @@ -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(); + } + } } diff --git a/Handler/Project/Dialog/fHistory.Designer.cs b/Handler/Project/Dialog/fHistory.Designer.cs index d8ebb94..6388245 100644 --- a/Handler/Project/Dialog/fHistory.Designer.cs +++ b/Handler/Project/Dialog/fHistory.Designer.cs @@ -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; diff --git a/Handler/Project/Dialog/fHistory.cs b/Handler/Project/Dialog/fHistory.cs index 4467e3d..580b8b6 100644 --- a/Handler/Project/Dialog/fHistory.cs +++ b/Handler/Project/Dialog/fHistory.cs @@ -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(); diff --git a/Handler/Project/Dialog/fLoaderInfo.Designer.cs b/Handler/Project/Dialog/fLoaderInfo.Designer.cs index d4c3a7d..05b48d5 100644 --- a/Handler/Project/Dialog/fLoaderInfo.Designer.cs +++ b/Handler/Project/Dialog/fLoaderInfo.Designer.cs @@ -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); diff --git a/Handler/Project/Dialog/fLoaderInfo.cs b/Handler/Project/Dialog/fLoaderInfo.cs index 5f58d33..8ff50e8 100644 --- a/Handler/Project/Dialog/fLoaderInfo.cs +++ b/Handler/Project/Dialog/fLoaderInfo.cs @@ -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; - } - } - } - - /// /// 데이터베이스의 정보를 UI에 반영한다 /// @@ -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(); - List result = new List(); + 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" + diff --git a/Handler/Project/Dialog/fManualPrint0.cs b/Handler/Project/Dialog/fManualPrint0.cs index 2f3287f..c871af4 100644 --- a/Handler/Project/Dialog/fManualPrint0.cs +++ b/Handler/Project/Dialog/fManualPrint0.cs @@ -1,4 +1,5 @@ -using System; +using AR; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; diff --git a/Handler/Project/Dialog/fNewReelID.Designer.cs b/Handler/Project/Dialog/fNewReelID.Designer.cs deleted file mode 100644 index 2b88539..0000000 --- a/Handler/Project/Dialog/fNewReelID.Designer.cs +++ /dev/null @@ -1,412 +0,0 @@ -namespace Project.Dialog -{ - partial class fNewReelID - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - 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; - } -} \ No newline at end of file diff --git a/Handler/Project/Dialog/fNewReelID.cs b/Handler/Project/Dialog/fNewReelID.cs deleted file mode 100644 index f8ce863..0000000 --- a/Handler/Project/Dialog/fNewReelID.cs +++ /dev/null @@ -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(); - } - - /// - /// 일련번호 업데이트 - /// - 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(); - } - } -} diff --git a/Handler/Project/Dialog/fNewReelID.resx b/Handler/Project/Dialog/fNewReelID.resx deleted file mode 100644 index 1af7de1..0000000 --- a/Handler/Project/Dialog/fNewReelID.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Handler/Project/Dialog/fPickerMove.cs b/Handler/Project/Dialog/fPickerMove.cs index b2259e1..0dac740 100644 --- a/Handler/Project/Dialog/fPickerMove.cs +++ b/Handler/Project/Dialog/fPickerMove.cs @@ -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(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 + { + { "ANGLE", itemdata.VisionData.ApplyAngle }, + { "PRNVALID", 0 }, + { "REMARK", "검증취소" } + }, + new Dictionary + { + { "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) diff --git a/Handler/Project/Dialog/fSelectCustInfo.cs b/Handler/Project/Dialog/fSelectCustInfo.cs index ed0d0ae..54c42c0 100644 --- a/Handler/Project/Dialog/fSelectCustInfo.cs +++ b/Handler/Project/Dialog/fSelectCustInfo.cs @@ -1,4 +1,5 @@ -using System; +using AR; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; diff --git a/Handler/Project/Dialog/fSelectJob.cs b/Handler/Project/Dialog/fSelectJob.cs index cc5064f..6c9c443 100644 --- a/Handler/Project/Dialog/fSelectJob.cs +++ b/Handler/Project/Dialog/fSelectJob.cs @@ -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(); diff --git a/Handler/Project/Dialog/fSelectResult.cs b/Handler/Project/Dialog/fSelectResult.cs index 2373ba8..72d98f4 100644 --- a/Handler/Project/Dialog/fSelectResult.cs +++ b/Handler/Project/Dialog/fSelectResult.cs @@ -13,12 +13,12 @@ namespace Project.Dialog { public partial class fSelectResult : Form { - public Component_Reel_Result SelectedValue = null; - public fSelectResult(List 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; } diff --git a/Handler/Project/Dialog/fSelectSID.cs b/Handler/Project/Dialog/fSelectSID.cs index bf629cc..40ad9bf 100644 --- a/Handler/Project/Dialog/fSelectSID.cs +++ b/Handler/Project/Dialog/fSelectSID.cs @@ -1,4 +1,5 @@ -using System; +using AR; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; diff --git a/Handler/Project/Dialog/fZPLEditor.Designer.cs b/Handler/Project/Dialog/fZPLEditor.Designer.cs index 9363cc3..6a40846 100644 --- a/Handler/Project/Dialog/fZPLEditor.Designer.cs +++ b/Handler/Project/Dialog/fZPLEditor.Designer.cs @@ -29,114 +29,113 @@ namespace Project.Dialog /// 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(); } diff --git a/Handler/Project/Dialog/fZPLEditor.resx b/Handler/Project/Dialog/fZPLEditor.resx index 1e778fd..5da7a24 100644 --- a/Handler/Project/Dialog/fZPLEditor.resx +++ b/Handler/Project/Dialog/fZPLEditor.resx @@ -120,65 +120,4 @@ 17, 17 - - - - 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== - - - - - 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== - - - - - 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== - - - - - 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== - - \ No newline at end of file diff --git a/Handler/Project/Manager/DBHelper.cs b/Handler/Project/Manager/DBHelper.cs new file mode 100644 index 0000000..dd5c41e --- /dev/null +++ b/Handler/Project/Manager/DBHelper.cs @@ -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 data, string whereClause = "", params SqlParameter[] whereParams) + { + if (data == null || data.Count == 0) + return 0; + + var setClause = new List(); + var parameters = new List(); + 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 data, Dictionary whereConditions) + { + if (whereConditions == null || whereConditions.Count == 0) + return Update(tableName, data); + + var whereClause = new List(); + var whereParams = new List(); + 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 whereConditions) + { + if (whereConditions == null || whereConditions.Count == 0) + return Delete(tableName); // WHERE 절 없이 전체 삭제 + + var whereClause = new List(); + var whereParams = new List(); + 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 whereConditions) + { + if (whereConditions == null || whereConditions.Count == 0) + return Select(tableName, columns); + + var whereClause = new List(); + var whereParams = new List(); + 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 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 whereParams = null) + { + if (whereParams == null || whereParams.Count == 0) + return SelectFirst(tableName, columns); + + var whereClause = new List(); + var sqlParams = new List(); + 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(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(); + } + } + } +} diff --git a/Handler/Project/Model1.Context.cs b/Handler/Project/Model1.Context.cs deleted file mode 100644 index 4d1c40f..0000000 --- a/Handler/Project/Model1.Context.cs +++ /dev/null @@ -1,33 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -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 { get; set; } - public virtual DbSet Component_Reel_Info { get; set; } - public virtual DbSet Component_Reel_SID_Convert { get; set; } - public virtual DbSet vCustomerList { get; set; } - } -} diff --git a/Handler/Project/Model1.Context.tt b/Handler/Project/Model1.Context.tt deleted file mode 100644 index 7b8920f..0000000 --- a/Handler/Project/Model1.Context.tt +++ /dev/null @@ -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().FirstOrDefault(); -if (container == null) -{ - return string.Empty; -} -#> -//------------------------------------------------------------------------------ -// -// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#> -// -// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#> -// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#> -// -//------------------------------------------------------------------------------ - -<# - -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()) -{ - // 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()) - { -#> - <#=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 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(); - } - - 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 types, string sourceFile) - { - ArgumentNotNull(types, "types"); - ArgumentNotNull(sourceFile, "sourceFile"); - - var hash = new HashSet(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 GetEnumItemsToGenerate(IEnumerable itemCollection) - { - return GetItemsToGenerate(itemCollection) - .Where(e => IsEnumType(e)); - } - - public IEnumerable GetItemsToGenerate(IEnumerable itemCollection) where T: EdmType - { - return itemCollection - .OfType() - .Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName)) - .OrderBy(i => i.Name); - } - - public IEnumerable GetAllGlobalItems(IEnumerable 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 GetSimpleProperties(EntityType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type); - } - - public IEnumerable GetSimpleProperties(ComplexType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type); - } - - public IEnumerable GetComplexProperties(EntityType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type); - } - - public IEnumerable GetComplexProperties(ComplexType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type); - } - - public IEnumerable GetPropertiesWithDefaultValues(EntityType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null); - } - - public IEnumerable GetPropertiesWithDefaultValues(ComplexType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null); - } - - public IEnumerable GetNavigationProperties(EntityType type) - { - return type.NavigationProperties.Where(np => np.DeclaringType == type); - } - - public IEnumerable 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)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 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 arg, string name) where T : class -{ - if (arg == null) - { - throw new ArgumentNullException(name); - } -} -#> \ No newline at end of file diff --git a/Handler/Project/Model1.Designer.cs b/Handler/Project/Model1.Designer.cs deleted file mode 100644 index 16981b5..0000000 --- a/Handler/Project/Model1.Designer.cs +++ /dev/null @@ -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 버전을 선택하지 않았기 때문일 수도 있습니다. 모델에 맞는 컨텍스트 클래스 및 -// 엔터티 클래스를 생성하려면 디자이너에서 모델을 열고 디자이너 화면에서 마우스 오른쪽 단추를 클릭한 -// 다음 '데이터베이스에서 모델 업데이트...', '모델에서 데이터베이스 생성...' 또는 '코드 생성 항목 추가...'를 -// 선택하십시오. \ No newline at end of file diff --git a/Handler/Project/Model1.cs b/Handler/Project/Model1.cs deleted file mode 100644 index 593fb34..0000000 --- a/Handler/Project/Model1.cs +++ /dev/null @@ -1,9 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - diff --git a/Handler/Project/Model1.edmx b/Handler/Project/Model1.edmx deleted file mode 100644 index b31ffe9..0000000 --- a/Handler/Project/Model1.edmx +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT - [vCustomerList].[CustCode] AS [CustCode], - [vCustomerList].[CustName] AS [CustName] - FROM [dbo].[vCustomerList] AS [vCustomerList] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Handler/Project/Model1.edmx.diagram b/Handler/Project/Model1.edmx.diagram deleted file mode 100644 index a359a69..0000000 --- a/Handler/Project/Model1.edmx.diagram +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Handler/Project/Model1.tt b/Handler/Project/Model1.tt deleted file mode 100644 index b0e43c7..0000000 --- a/Handler/Project/Model1.tt +++ /dev/null @@ -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(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(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(); -#> -//------------------------------------------------------------------------------ -// -// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#> -// -// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#> -// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#> -// -//------------------------------------------------------------------------------ -<#=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 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(); - } - - 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 types, string sourceFile) - { - ArgumentNotNull(types, "types"); - ArgumentNotNull(sourceFile, "sourceFile"); - - var hash = new HashSet(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 GetEnumItemsToGenerate(IEnumerable itemCollection) - { - return GetItemsToGenerate(itemCollection) - .Where(e => IsEnumType(e)); - } - - public IEnumerable GetItemsToGenerate(IEnumerable itemCollection) where T: EdmType - { - return itemCollection - .OfType() - .Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName)) - .OrderBy(i => i.Name); - } - - public IEnumerable GetAllGlobalItems(IEnumerable 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 GetSimpleProperties(EntityType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type); - } - - public IEnumerable GetSimpleProperties(ComplexType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type); - } - - public IEnumerable GetComplexProperties(EntityType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type); - } - - public IEnumerable GetComplexProperties(ComplexType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type); - } - - public IEnumerable GetPropertiesWithDefaultValues(EntityType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null); - } - - public IEnumerable GetPropertiesWithDefaultValues(ComplexType type) - { - return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null); - } - - public IEnumerable GetNavigationProperties(EntityType type) - { - return type.NavigationProperties.Where(np => np.DeclaringType == type); - } - - public IEnumerable 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)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 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 arg, string name) where T : class -{ - if (arg == null) - { - throw new ArgumentNullException(name); - } -} -#> \ No newline at end of file diff --git a/Handler/Project/Program.cs b/Handler/Project/Program.cs index 46daa1a..586c943 100644 --- a/Handler/Project/Program.cs +++ b/Handler/Project/Program.cs @@ -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(); } diff --git a/Handler/Project/Properties/Settings.Designer.cs b/Handler/Project/Properties/Settings.Designer.cs index d7fad70..0de8f5f 100644 --- a/Handler/Project/Properties/Settings.Designer.cs +++ b/Handler/Project/Properties/Settings.Designer.cs @@ -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"])); + } + } } } diff --git a/Handler/Project/Properties/Settings.settings b/Handler/Project/Properties/Settings.settings index ada8486..cbf6d2c 100644 --- a/Handler/Project/Properties/Settings.settings +++ b/Handler/Project/Properties/Settings.settings @@ -95,10 +95,26 @@ <?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> - 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 + Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True + + + <?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> + Data Source=10.201.11.21,50150;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password=78#4AmWnh1!!;Encrypt=False;TrustServerCertificate=True + + + <?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> + Data Source=V1SPCSQL,51122;Initial Catalog=WMS;Persist Security Info=True;User ID=wmsadm;Password="2!x2$yY8R;}$";Encrypt=False;TrustServerCertificate=True \ No newline at end of file diff --git a/Handler/Project/Pub.cs b/Handler/Project/Pub.cs index ffcf293..d9faf40 100644 --- a/Handler/Project/Pub.cs +++ b/Handler/Project/Pub.cs @@ -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); } + + /// + /// SQL Database Connection String + /// + /// + 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 activesid = new List(); - public static Task> UpdateSIDInfoByECS() + public static Task> UpdateSIDInfo() { var rlt = Task.Run>(() => { @@ -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(result, message, rdy); @@ -477,123 +391,7 @@ namespace Project return rlt; } - public static List> GetECSActiveSIDList() - { - List> retval = new List>(); - 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( - 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 GetECSSIDAcitve(string sid, string batch) - //{ - // var rlt = Task.Run(() => - // { - // 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; - //} - + /// /// 전체 작업목록을 별도파일에 저장한다 /// @@ -602,8 +400,6 @@ namespace Project /// 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 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); diff --git a/Handler/Project/RunCode/Display/_UpdateStatusMessage.cs b/Handler/Project/RunCode/Display/_UpdateStatusMessage.cs index 2469c03..4cd692f 100644 --- a/Handler/Project/RunCode/Display/_UpdateStatusMessage.cs +++ b/Handler/Project/RunCode/Display/_UpdateStatusMessage.cs @@ -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(); } diff --git a/Handler/Project/RunCode/RunSequence/0_RUN_STARTCHK_SW.cs b/Handler/Project/RunCode/RunSequence/0_RUN_STARTCHK_SW.cs index 810c206..cf50125 100644 --- a/Handler/Project/RunCode/RunSequence/0_RUN_STARTCHK_SW.cs +++ b/Handler/Project/RunCode/RunSequence/0_RUN_STARTCHK_SW.cs @@ -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) { diff --git a/Handler/Project/RunCode/RunSequence/2_RUN_ROOT_SEQUENCE.cs b/Handler/Project/RunCode/RunSequence/2_RUN_ROOT_SEQUENCE.cs index c2727d4..14126cf 100644 --- a/Handler/Project/RunCode/RunSequence/2_RUN_ROOT_SEQUENCE.cs +++ b/Handler/Project/RunCode/RunSequence/2_RUN_ROOT_SEQUENCE.cs @@ -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; } diff --git a/Handler/Project/RunCode/RunSequence/3_KEYENCE_READ.cs b/Handler/Project/RunCode/RunSequence/3_KEYENCE_READ.cs index 494eeea..d81d6ea 100644 --- a/Handler/Project/RunCode/RunSequence/3_KEYENCE_READ.cs +++ b/Handler/Project/RunCode/RunSequence/3_KEYENCE_READ.cs @@ -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) { //새로받은 데이터를 실제 수량에 추가한다 @@ -570,7 +574,7 @@ namespace Project // active_sid = actItem.Item1; // active_bat = actItem.Item2; // } - + // } // if (actItem.Item1.Equals(sid) && actItem.Item2.Equals(bat)) @@ -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; diff --git a/Handler/Project/RunCode/StateMachine/_SPS_BarcodeProcess.cs b/Handler/Project/RunCode/StateMachine/_SPS_BarcodeProcess.cs index 6688ee2..a833cca 100644 --- a/Handler/Project/RunCode/StateMachine/_SPS_BarcodeProcess.cs +++ b/Handler/Project/RunCode/StateMachine/_SPS_BarcodeProcess.cs @@ -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); } } diff --git a/Handler/Project/STDLabelAttach(Conv+swPLC).csproj b/Handler/Project/STDLabelAttach(ATV).csproj similarity index 93% rename from Handler/Project/STDLabelAttach(Conv+swPLC).csproj rename to Handler/Project/STDLabelAttach(ATV).csproj index 0f70036..0b3aa70 100644 --- a/Handler/Project/STDLabelAttach(Conv+swPLC).csproj +++ b/Handler/Project/STDLabelAttach(ATV).csproj @@ -69,7 +69,7 @@ true - ..\..\..\..\..\..\Amkor\STDLabelAttach%28Conv%29\ + ..\..\..\..\..\Amkor\STDLabelAttach%28ATV%29\ DEBUG;TRACE full x64 @@ -104,6 +104,14 @@ Properties\app.manifest + + False + ..\DLL\arCommUtil.dll + + + False + ..\DLL\arControl.Net4.dll + ..\DLL\ArLog.Net4.dll @@ -234,7 +242,6 @@ Form - @@ -254,15 +261,6 @@ - - Model1.tt - - - Model1.tt - - - Model1.tt - @@ -315,12 +313,6 @@ fMessageInput.cs - - Form - - - fNewReelID.cs - Form @@ -467,6 +459,12 @@ fSIDQty.cs + + True + True + dsWMS.xsd + + Form @@ -561,21 +559,6 @@ fMain.cs - - True - True - Model1.Context.tt - - - True - True - Model1.tt - - - True - True - Model1.edmx - Form @@ -762,9 +745,6 @@ Form - - Model1.tt - fSendInboutData.cs @@ -786,9 +766,6 @@ fMessageInput.cs - - fNewReelID.cs - fNewSID.cs @@ -906,7 +883,7 @@ Designer MSDataSetGenerator - DataSet1.Designer.cs + DataSet11.Designer.cs DataSet1.xsd @@ -923,10 +900,6 @@ DSList.xsd - - EntityModelCodeGenerator - Model1.Designer.cs - DSSetup.xsd @@ -938,8 +911,16 @@ DSSetup.xsd - - Model1.edmx + + dsWMS.xsd + + + Designer + MSDataSetGenerator + dsWMS.Designer.cs + + + dsWMS.xsd @@ -960,16 +941,6 @@ PreserveNewest - - TextTemplatingFileGenerator - Model1.Context.cs - Model1.edmx - - - TextTemplatingFileGenerator - Model1.edmx - Model1.cs - @@ -1058,18 +1029,10 @@ {9264cd2e-7cf8-4237-a69f-dcda984e0613} UIControl - - {58cfc90c-5068-46a2-a8de-0e92ee9e0990} - AmkorRestfulService - {4f457e76-bf83-4b98-8565-ae87d7d16744} arAzinAxt - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {a16c9667-5241-4313-888e-548375f85d29} arFrameControl @@ -1078,14 +1041,6 @@ {ed0d4179-fc0d-48d5-8bb3-cbf0f03d170c} arImageViewer.Emgu - - {140af52a-5986-4413-bf02-8ea55a61891b} - MemoryMapCore - - - {802df40d-660e-4d72-b982-2fe5e6a7df1a} - arRS232 - {14e8c9a5-013e-49ba-b435-efefc77dd623} CommData @@ -1094,9 +1049,9 @@ {d54444f7-1d85-4d5d-b1d1-10d040141a91} arCommSM - - {14e8c9a5-013e-49ba-b435-ffffff7dd623} - arCommUtil + + {140af52a-5986-4413-bf02-8ea55a61891b} + MemoryMapCore {48654765-548d-42ed-9238-d65eb3bc99ad} diff --git a/Handler/Project/Setting/UserSetting.cs b/Handler/Project/Setting/UserSetting.cs index 7c861b1..a858c70 100644 --- a/Handler/Project/Setting/UserSetting.cs +++ b/Handler/Project/Setting/UserSetting.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; +using AR; namespace Project diff --git a/Handler/Project/Validation/Mot_Move.cs b/Handler/Project/Validation/Mot_Move.cs index c3a4583..0ce1738 100644 --- a/Handler/Project/Validation/Mot_Move.cs +++ b/Handler/Project/Validation/Mot_Move.cs @@ -1,4 +1,5 @@ -using System; +using AR; +using System; using System.Collections.Generic; using System.Drawing; using System.Linq; diff --git a/Handler/Project/app.config b/Handler/Project/app.config index 80ae4c7..519be08 100644 --- a/Handler/Project/app.config +++ b/Handler/Project/app.config @@ -11,10 +11,14 @@
- + + diff --git a/Handler/Project/dsWMS.Designer.cs b/Handler/Project/dsWMS.Designer.cs new file mode 100644 index 0000000..228253f --- /dev/null +++ b/Handler/Project/dsWMS.Designer.cs @@ -0,0 +1,2062 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace Project { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("dsWMS")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class dsWMS : global::System.Data.DataSet { + + private VW_GET_MAX_QTY_CUSTDataTable tableVW_GET_MAX_QTY_CUST; + + private VW_GET_MAX_QTY_VENDOR_LOTDataTable tableVW_GET_MAX_QTY_VENDOR_LOT; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public dsWMS() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected dsWMS(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["VW_GET_MAX_QTY_CUST"] != null)) { + base.Tables.Add(new VW_GET_MAX_QTY_CUSTDataTable(ds.Tables["VW_GET_MAX_QTY_CUST"])); + } + if ((ds.Tables["VW_GET_MAX_QTY_VENDOR_LOT"] != null)) { + base.Tables.Add(new VW_GET_MAX_QTY_VENDOR_LOTDataTable(ds.Tables["VW_GET_MAX_QTY_VENDOR_LOT"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 VW_GET_MAX_QTY_CUSTDataTable VW_GET_MAX_QTY_CUST { + get { + return this.tableVW_GET_MAX_QTY_CUST; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 VW_GET_MAX_QTY_VENDOR_LOTDataTable VW_GET_MAX_QTY_VENDOR_LOT { + get { + return this.tableVW_GET_MAX_QTY_VENDOR_LOT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataSet Clone() { + dsWMS cln = ((dsWMS)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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", "17.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["VW_GET_MAX_QTY_CUST"] != null)) { + base.Tables.Add(new VW_GET_MAX_QTY_CUSTDataTable(ds.Tables["VW_GET_MAX_QTY_CUST"])); + } + if ((ds.Tables["VW_GET_MAX_QTY_VENDOR_LOT"] != null)) { + base.Tables.Add(new VW_GET_MAX_QTY_VENDOR_LOTDataTable(ds.Tables["VW_GET_MAX_QTY_VENDOR_LOT"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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", "17.0.0.0")] + internal void InitVars(bool initTable) { + this.tableVW_GET_MAX_QTY_CUST = ((VW_GET_MAX_QTY_CUSTDataTable)(base.Tables["VW_GET_MAX_QTY_CUST"])); + if ((initTable == true)) { + if ((this.tableVW_GET_MAX_QTY_CUST != null)) { + this.tableVW_GET_MAX_QTY_CUST.InitVars(); + } + } + this.tableVW_GET_MAX_QTY_VENDOR_LOT = ((VW_GET_MAX_QTY_VENDOR_LOTDataTable)(base.Tables["VW_GET_MAX_QTY_VENDOR_LOT"])); + if ((initTable == true)) { + if ((this.tableVW_GET_MAX_QTY_VENDOR_LOT != null)) { + this.tableVW_GET_MAX_QTY_VENDOR_LOT.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.DataSetName = "dsWMS"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/dsWMS.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableVW_GET_MAX_QTY_CUST = new VW_GET_MAX_QTY_CUSTDataTable(); + base.Tables.Add(this.tableVW_GET_MAX_QTY_CUST); + this.tableVW_GET_MAX_QTY_VENDOR_LOT = new VW_GET_MAX_QTY_VENDOR_LOTDataTable(); + base.Tables.Add(this.tableVW_GET_MAX_QTY_VENDOR_LOT); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeVW_GET_MAX_QTY_CUST() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeVW_GET_MAX_QTY_VENDOR_LOT() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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) { + dsWMS ds = new dsWMS(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void VW_GET_MAX_QTY_CUSTRowChangeEventHandler(object sender, VW_GET_MAX_QTY_CUSTRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void VW_GET_MAX_QTY_VENDOR_LOTRowChangeEventHandler(object sender, VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VW_GET_MAX_QTY_CUSTDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnPART_NO; + + private global::System.Data.DataColumn columnVENDOR_NM; + + private global::System.Data.DataColumn columnBATCH_NO; + + private global::System.Data.DataColumn columnQTY; + + private global::System.Data.DataColumn columnCUST_CODE; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_CUSTDataTable() { + this.TableName = "VW_GET_MAX_QTY_CUST"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal VW_GET_MAX_QTY_CUSTDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected VW_GET_MAX_QTY_CUSTDataTable(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", "17.0.0.0")] + public global::System.Data.DataColumn PART_NOColumn { + get { + return this.columnPART_NO; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn VENDOR_NMColumn { + get { + return this.columnVENDOR_NM; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn BATCH_NOColumn { + get { + return this.columnBATCH_NO; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn QTYColumn { + get { + return this.columnQTY; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CUST_CODEColumn { + get { + return this.columnCUST_CODE; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_CUSTRow this[int index] { + get { + return ((VW_GET_MAX_QTY_CUSTRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_CUSTRowChangeEventHandler VW_GET_MAX_QTY_CUSTRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_CUSTRowChangeEventHandler VW_GET_MAX_QTY_CUSTRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_CUSTRowChangeEventHandler VW_GET_MAX_QTY_CUSTRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_CUSTRowChangeEventHandler VW_GET_MAX_QTY_CUSTRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void AddVW_GET_MAX_QTY_CUSTRow(VW_GET_MAX_QTY_CUSTRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_CUSTRow AddVW_GET_MAX_QTY_CUSTRow(string PART_NO, string VENDOR_NM, string BATCH_NO, decimal QTY, string CUST_CODE) { + VW_GET_MAX_QTY_CUSTRow rowVW_GET_MAX_QTY_CUSTRow = ((VW_GET_MAX_QTY_CUSTRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + PART_NO, + VENDOR_NM, + BATCH_NO, + QTY, + CUST_CODE}; + rowVW_GET_MAX_QTY_CUSTRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVW_GET_MAX_QTY_CUSTRow); + return rowVW_GET_MAX_QTY_CUSTRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + VW_GET_MAX_QTY_CUSTDataTable cln = ((VW_GET_MAX_QTY_CUSTDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new VW_GET_MAX_QTY_CUSTDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnPART_NO = base.Columns["PART_NO"]; + this.columnVENDOR_NM = base.Columns["VENDOR_NM"]; + this.columnBATCH_NO = base.Columns["BATCH_NO"]; + this.columnQTY = base.Columns["QTY"]; + this.columnCUST_CODE = base.Columns["CUST_CODE"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnPART_NO = new global::System.Data.DataColumn("PART_NO", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPART_NO); + this.columnVENDOR_NM = new global::System.Data.DataColumn("VENDOR_NM", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVENDOR_NM); + this.columnBATCH_NO = new global::System.Data.DataColumn("BATCH_NO", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBATCH_NO); + this.columnQTY = new global::System.Data.DataColumn("QTY", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQTY); + this.columnCUST_CODE = new global::System.Data.DataColumn("CUST_CODE", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCUST_CODE); + this.columnPART_NO.AllowDBNull = false; + this.columnPART_NO.MaxLength = 50; + this.columnVENDOR_NM.AllowDBNull = false; + this.columnVENDOR_NM.MaxLength = 200; + this.columnBATCH_NO.MaxLength = 50; + this.columnCUST_CODE.AllowDBNull = false; + this.columnCUST_CODE.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_CUSTRow NewVW_GET_MAX_QTY_CUSTRow() { + return ((VW_GET_MAX_QTY_CUSTRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 VW_GET_MAX_QTY_CUSTRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(VW_GET_MAX_QTY_CUSTRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_CUSTRowChanged != null)) { + this.VW_GET_MAX_QTY_CUSTRowChanged(this, new VW_GET_MAX_QTY_CUSTRowChangeEvent(((VW_GET_MAX_QTY_CUSTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_CUSTRowChanging != null)) { + this.VW_GET_MAX_QTY_CUSTRowChanging(this, new VW_GET_MAX_QTY_CUSTRowChangeEvent(((VW_GET_MAX_QTY_CUSTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_CUSTRowDeleted != null)) { + this.VW_GET_MAX_QTY_CUSTRowDeleted(this, new VW_GET_MAX_QTY_CUSTRowChangeEvent(((VW_GET_MAX_QTY_CUSTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_CUSTRowDeleting != null)) { + this.VW_GET_MAX_QTY_CUSTRowDeleting(this, new VW_GET_MAX_QTY_CUSTRowChangeEvent(((VW_GET_MAX_QTY_CUSTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveVW_GET_MAX_QTY_CUSTRow(VW_GET_MAX_QTY_CUSTRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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(); + dsWMS ds = new dsWMS(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "VW_GET_MAX_QTY_CUSTDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class VW_GET_MAX_QTY_VENDOR_LOTDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnPART_NO; + + private global::System.Data.DataColumn columnVENDOR_NM; + + private global::System.Data.DataColumn columnBATCH_NO; + + private global::System.Data.DataColumn columnQTY; + + private global::System.Data.DataColumn columnCUST_CODE; + + private global::System.Data.DataColumn columnVENDOR_LOT; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_VENDOR_LOTDataTable() { + this.TableName = "VW_GET_MAX_QTY_VENDOR_LOT"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal VW_GET_MAX_QTY_VENDOR_LOTDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected VW_GET_MAX_QTY_VENDOR_LOTDataTable(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", "17.0.0.0")] + public global::System.Data.DataColumn PART_NOColumn { + get { + return this.columnPART_NO; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn VENDOR_NMColumn { + get { + return this.columnVENDOR_NM; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn BATCH_NOColumn { + get { + return this.columnBATCH_NO; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn QTYColumn { + get { + return this.columnQTY; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CUST_CODEColumn { + get { + return this.columnCUST_CODE; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn VENDOR_LOTColumn { + get { + return this.columnVENDOR_LOT; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_VENDOR_LOTRow this[int index] { + get { + return ((VW_GET_MAX_QTY_VENDOR_LOTRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_VENDOR_LOTRowChangeEventHandler VW_GET_MAX_QTY_VENDOR_LOTRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_VENDOR_LOTRowChangeEventHandler VW_GET_MAX_QTY_VENDOR_LOTRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_VENDOR_LOTRowChangeEventHandler VW_GET_MAX_QTY_VENDOR_LOTRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event VW_GET_MAX_QTY_VENDOR_LOTRowChangeEventHandler VW_GET_MAX_QTY_VENDOR_LOTRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void AddVW_GET_MAX_QTY_VENDOR_LOTRow(VW_GET_MAX_QTY_VENDOR_LOTRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_VENDOR_LOTRow AddVW_GET_MAX_QTY_VENDOR_LOTRow(string PART_NO, string VENDOR_NM, string BATCH_NO, decimal QTY, string CUST_CODE, string VENDOR_LOT) { + VW_GET_MAX_QTY_VENDOR_LOTRow rowVW_GET_MAX_QTY_VENDOR_LOTRow = ((VW_GET_MAX_QTY_VENDOR_LOTRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + PART_NO, + VENDOR_NM, + BATCH_NO, + QTY, + CUST_CODE, + VENDOR_LOT}; + rowVW_GET_MAX_QTY_VENDOR_LOTRow.ItemArray = columnValuesArray; + this.Rows.Add(rowVW_GET_MAX_QTY_VENDOR_LOTRow); + return rowVW_GET_MAX_QTY_VENDOR_LOTRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + VW_GET_MAX_QTY_VENDOR_LOTDataTable cln = ((VW_GET_MAX_QTY_VENDOR_LOTDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new VW_GET_MAX_QTY_VENDOR_LOTDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnPART_NO = base.Columns["PART_NO"]; + this.columnVENDOR_NM = base.Columns["VENDOR_NM"]; + this.columnBATCH_NO = base.Columns["BATCH_NO"]; + this.columnQTY = base.Columns["QTY"]; + this.columnCUST_CODE = base.Columns["CUST_CODE"]; + this.columnVENDOR_LOT = base.Columns["VENDOR_LOT"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnPART_NO = new global::System.Data.DataColumn("PART_NO", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnPART_NO); + this.columnVENDOR_NM = new global::System.Data.DataColumn("VENDOR_NM", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVENDOR_NM); + this.columnBATCH_NO = new global::System.Data.DataColumn("BATCH_NO", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnBATCH_NO); + this.columnQTY = new global::System.Data.DataColumn("QTY", typeof(decimal), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQTY); + this.columnCUST_CODE = new global::System.Data.DataColumn("CUST_CODE", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCUST_CODE); + this.columnVENDOR_LOT = new global::System.Data.DataColumn("VENDOR_LOT", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVENDOR_LOT); + this.columnPART_NO.AllowDBNull = false; + this.columnPART_NO.MaxLength = 50; + this.columnVENDOR_NM.AllowDBNull = false; + this.columnVENDOR_NM.MaxLength = 200; + this.columnBATCH_NO.MaxLength = 50; + this.columnCUST_CODE.AllowDBNull = false; + this.columnCUST_CODE.MaxLength = 50; + this.columnVENDOR_LOT.AllowDBNull = false; + this.columnVENDOR_LOT.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_VENDOR_LOTRow NewVW_GET_MAX_QTY_VENDOR_LOTRow() { + return ((VW_GET_MAX_QTY_VENDOR_LOTRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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 VW_GET_MAX_QTY_VENDOR_LOTRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(VW_GET_MAX_QTY_VENDOR_LOTRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_VENDOR_LOTRowChanged != null)) { + this.VW_GET_MAX_QTY_VENDOR_LOTRowChanged(this, new VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent(((VW_GET_MAX_QTY_VENDOR_LOTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_VENDOR_LOTRowChanging != null)) { + this.VW_GET_MAX_QTY_VENDOR_LOTRowChanging(this, new VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent(((VW_GET_MAX_QTY_VENDOR_LOTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_VENDOR_LOTRowDeleted != null)) { + this.VW_GET_MAX_QTY_VENDOR_LOTRowDeleted(this, new VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent(((VW_GET_MAX_QTY_VENDOR_LOTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.VW_GET_MAX_QTY_VENDOR_LOTRowDeleting != null)) { + this.VW_GET_MAX_QTY_VENDOR_LOTRowDeleting(this, new VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent(((VW_GET_MAX_QTY_VENDOR_LOTRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveVW_GET_MAX_QTY_VENDOR_LOTRow(VW_GET_MAX_QTY_VENDOR_LOTRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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(); + dsWMS ds = new dsWMS(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "VW_GET_MAX_QTY_VENDOR_LOTDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class VW_GET_MAX_QTY_CUSTRow : global::System.Data.DataRow { + + private VW_GET_MAX_QTY_CUSTDataTable tableVW_GET_MAX_QTY_CUST; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal VW_GET_MAX_QTY_CUSTRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVW_GET_MAX_QTY_CUST = ((VW_GET_MAX_QTY_CUSTDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string PART_NO { + get { + return ((string)(this[this.tableVW_GET_MAX_QTY_CUST.PART_NOColumn])); + } + set { + this[this.tableVW_GET_MAX_QTY_CUST.PART_NOColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string VENDOR_NM { + get { + return ((string)(this[this.tableVW_GET_MAX_QTY_CUST.VENDOR_NMColumn])); + } + set { + this[this.tableVW_GET_MAX_QTY_CUST.VENDOR_NMColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string BATCH_NO { + get { + try { + return ((string)(this[this.tableVW_GET_MAX_QTY_CUST.BATCH_NOColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'VW_GET_MAX_QTY_CUST\' 테이블의 \'BATCH_NO\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableVW_GET_MAX_QTY_CUST.BATCH_NOColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public decimal QTY { + get { + try { + return ((decimal)(this[this.tableVW_GET_MAX_QTY_CUST.QTYColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'VW_GET_MAX_QTY_CUST\' 테이블의 \'QTY\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableVW_GET_MAX_QTY_CUST.QTYColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CUST_CODE { + get { + return ((string)(this[this.tableVW_GET_MAX_QTY_CUST.CUST_CODEColumn])); + } + set { + this[this.tableVW_GET_MAX_QTY_CUST.CUST_CODEColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsBATCH_NONull() { + return this.IsNull(this.tableVW_GET_MAX_QTY_CUST.BATCH_NOColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetBATCH_NONull() { + this[this.tableVW_GET_MAX_QTY_CUST.BATCH_NOColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsQTYNull() { + return this.IsNull(this.tableVW_GET_MAX_QTY_CUST.QTYColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetQTYNull() { + this[this.tableVW_GET_MAX_QTY_CUST.QTYColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class VW_GET_MAX_QTY_VENDOR_LOTRow : global::System.Data.DataRow { + + private VW_GET_MAX_QTY_VENDOR_LOTDataTable tableVW_GET_MAX_QTY_VENDOR_LOT; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal VW_GET_MAX_QTY_VENDOR_LOTRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableVW_GET_MAX_QTY_VENDOR_LOT = ((VW_GET_MAX_QTY_VENDOR_LOTDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string PART_NO { + get { + return ((string)(this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.PART_NOColumn])); + } + set { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.PART_NOColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string VENDOR_NM { + get { + return ((string)(this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.VENDOR_NMColumn])); + } + set { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.VENDOR_NMColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string BATCH_NO { + get { + try { + return ((string)(this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.BATCH_NOColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'VW_GET_MAX_QTY_VENDOR_LOT\' 테이블의 \'BATCH_NO\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.BATCH_NOColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public decimal QTY { + get { + try { + return ((decimal)(this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.QTYColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("\'VW_GET_MAX_QTY_VENDOR_LOT\' 테이블의 \'QTY\' 열의 값이 DBNull입니다.", e); + } + } + set { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.QTYColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CUST_CODE { + get { + return ((string)(this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.CUST_CODEColumn])); + } + set { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.CUST_CODEColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string VENDOR_LOT { + get { + return ((string)(this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.VENDOR_LOTColumn])); + } + set { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.VENDOR_LOTColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsBATCH_NONull() { + return this.IsNull(this.tableVW_GET_MAX_QTY_VENDOR_LOT.BATCH_NOColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetBATCH_NONull() { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.BATCH_NOColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool IsQTYNull() { + return this.IsNull(this.tableVW_GET_MAX_QTY_VENDOR_LOT.QTYColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void SetQTYNull() { + this[this.tableVW_GET_MAX_QTY_VENDOR_LOT.QTYColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class VW_GET_MAX_QTY_CUSTRowChangeEvent : global::System.EventArgs { + + private VW_GET_MAX_QTY_CUSTRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_CUSTRowChangeEvent(VW_GET_MAX_QTY_CUSTRow 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", "17.0.0.0")] + public VW_GET_MAX_QTY_CUSTRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent : global::System.EventArgs { + + private VW_GET_MAX_QTY_VENDOR_LOTRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_VENDOR_LOTRowChangeEvent(VW_GET_MAX_QTY_VENDOR_LOTRow 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", "17.0.0.0")] + public VW_GET_MAX_QTY_VENDOR_LOTRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace Project.dsWMSTableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class VW_GET_MAX_QTY_CUSTTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_CUSTTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "VW_GET_MAX_QTY_CUST"; + tableMapping.ColumnMappings.Add("PART_NO", "PART_NO"); + tableMapping.ColumnMappings.Add("VENDOR_NM", "VENDOR_NM"); + tableMapping.ColumnMappings.Add("BATCH_NO", "BATCH_NO"); + tableMapping.ColumnMappings.Add("QTY", "QTY"); + tableMapping.ColumnMappings.Add("CUST_CODE", "CUST_CODE"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::Project.Properties.Settings.Default.WMS_DEV; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + 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 VW_GET_MAX_QTY_CUST.*\r\nFROM VW_GET_MAX_QTY_CUST"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.Fill, true)] + public virtual int Fill(dsWMS.VW_GET_MAX_QTY_CUSTDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.Select, true)] + public virtual dsWMS.VW_GET_MAX_QTY_CUSTDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + dsWMS.VW_GET_MAX_QTY_CUSTDataTable dataTable = new dsWMS.VW_GET_MAX_QTY_CUSTDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class VW_GET_MAX_QTY_VENDOR_LOTTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public VW_GET_MAX_QTY_VENDOR_LOTTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "VW_GET_MAX_QTY_VENDOR_LOT"; + tableMapping.ColumnMappings.Add("PART_NO", "PART_NO"); + tableMapping.ColumnMappings.Add("VENDOR_NM", "VENDOR_NM"); + tableMapping.ColumnMappings.Add("BATCH_NO", "BATCH_NO"); + tableMapping.ColumnMappings.Add("QTY", "QTY"); + tableMapping.ColumnMappings.Add("CUST_CODE", "CUST_CODE"); + tableMapping.ColumnMappings.Add("VENDOR_LOT", "VENDOR_LOT"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::Project.Properties.Settings.Default.WMS_DEV; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + 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 VW_GET_MAX_QTY_VENDOR_LOT.*\r\nFROM VW_GET_MAX_QTY_VENDOR_LOT"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.Fill, true)] + public virtual int Fill(dsWMS.VW_GET_MAX_QTY_VENDOR_LOTDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [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.Select, true)] + public virtual dsWMS.VW_GET_MAX_QTY_VENDOR_LOTDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + dsWMS.VW_GET_MAX_QTY_VENDOR_LOTDataTable dataTable = new dsWMS.VW_GET_MAX_QTY_VENDOR_LOTDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class QueriesTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.IDbCommand[] _commandCollection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected global::System.Data.IDbCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.IDbCommand[1]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::Project.Properties.Settings.Default.WMS_DEV); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "dbo.X_SP_GET_UNIT_ID_LABEL"; + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.StoredProcedure; + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@P_PROGRAM_ID", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@P_CENTER_CD", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@P_ITEM_CD", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@P_REG_USER_ID", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@P_REG_IP", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@O_UNIT_ID", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.InputOutput, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@O_MSG", global::System.Data.SqlDbType.VarChar, 500, global::System.Data.ParameterDirection.InputOutput, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int X_SP_GET_UNIT_ID_LABEL(string P_PROGRAM_ID, string P_CENTER_CD, string P_ITEM_CD, string P_REG_USER_ID, string P_REG_IP, ref string O_UNIT_ID, ref string O_MSG) { + global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[0])); + if ((P_PROGRAM_ID == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(P_PROGRAM_ID)); + } + if ((P_CENTER_CD == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(P_CENTER_CD)); + } + if ((P_ITEM_CD == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(P_ITEM_CD)); + } + if ((P_REG_USER_ID == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(P_REG_USER_ID)); + } + if ((P_REG_IP == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(P_REG_IP)); + } + if ((O_UNIT_ID == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(O_UNIT_ID)); + } + if ((O_MSG == null)) { + command.Parameters[7].Value = global::System.DBNull.Value; + } + else { + command.Parameters[7].Value = ((string)(O_MSG)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((command.Parameters[6].Value == null) + || (command.Parameters[6].Value.GetType() == typeof(global::System.DBNull)))) { + O_UNIT_ID = null; + } + else { + O_UNIT_ID = ((string)(command.Parameters[6].Value)); + } + if (((command.Parameters[7].Value == null) + || (command.Parameters[7].Value.GetType() == typeof(global::System.DBNull)))) { + O_MSG = null; + } + else { + O_MSG = ((string)(command.Parameters[7].Value)); + } + return returnValue; + } + } + + /// + ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private int UpdateUpdatedRows(dsWMS dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private int UpdateInsertedRows(dsWMS dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private int UpdateDeletedRows(dsWMS dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public virtual int UpdateAll(dsWMS dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + global::System.Data.IDbConnection workConnection = this.Connection; + if ((workConnection == null)) { + throw new global::System.ApplicationException("TableAdapterManager에 연결 정보가 없습니다. 각 TableAdapterManager TableAdapter 속성을 올바른 Tabl" + + "eAdapter 인스턴스로 설정하십시오."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("트랜잭션을 시작할 수 없습니다. 현재 데이터 연결에서 트랜잭션이 지원되지 않거나 현재 상태에서 트랜잭션을 시작할 수 없습니다."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { + global::System.Diagnostics.Debug.Assert((row != null)); + global::System.Data.DataRow root = row; + distance = 0; + + global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); + traversedRows[row] = row; + + global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + + if ((distance == 0)) { + traversedRows.Clear(); + traversedRows[row] = row; + parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + + return root; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + int distance1 = 0; + global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); + + int distance2 = 0; + global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); + + if (object.ReferenceEquals(root1, root2)) { + return (this._childFirst * distance1.CompareTo(distance2)); + } + else { + global::System.Diagnostics.Debug.Assert(((root1.Table != null) + && (root2.Table != null))); + if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { + return -1; + } + else { + return 1; + } + } + } + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/Handler/Project/dsWMS.xsc b/Handler/Project/dsWMS.xsc new file mode 100644 index 0000000..05b0199 --- /dev/null +++ b/Handler/Project/dsWMS.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/Handler/Project/dsWMS.xsd b/Handler/Project/dsWMS.xsd new file mode 100644 index 0000000..8361f4d --- /dev/null +++ b/Handler/Project/dsWMS.xsd @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + SELECT VW_GET_MAX_QTY_CUST.* +FROM VW_GET_MAX_QTY_CUST + + + + + + + + + + + + + + + + + + + + SELECT VW_GET_MAX_QTY_VENDOR_LOT.* +FROM VW_GET_MAX_QTY_VENDOR_LOT + + + + + + + + + + + + + + + + + + + + + dbo.X_SP_GET_UNIT_ID_LABEL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Handler/Project/dsWMS.xss b/Handler/Project/dsWMS.xss new file mode 100644 index 0000000..4c5f091 --- /dev/null +++ b/Handler/Project/dsWMS.xss @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Handler/Project/fMain.Designer.cs b/Handler/Project/fMain.Designer.cs index b996ac8..b441579 100644 --- a/Handler/Project/fMain.Designer.cs +++ b/Handler/Project/fMain.Designer.cs @@ -29,168 +29,168 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); - arFrame.Control.ColorListItem colorListItem13 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem14 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem15 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem16 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem17 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem18 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem19 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem20 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem21 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem22 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem23 = new arFrame.Control.ColorListItem(); - arFrame.Control.ColorListItem colorListItem24 = new arFrame.Control.ColorListItem(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + arFrame.Control.ColorListItem colorListItem1 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem2 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem3 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem4 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem5 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem6 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem7 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem8 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem9 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem10 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem11 = new arFrame.Control.ColorListItem(); + arFrame.Control.ColorListItem colorListItem12 = new arFrame.Control.ColorListItem(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FMain)); - arCtl.sLogMessageColor sLogMessageColor5 = new arCtl.sLogMessageColor(); - arCtl.sLogMessageColor sLogMessageColor6 = new arCtl.sLogMessageColor(); - arCtl.sLogMessageColor sLogMessageColor7 = new arCtl.sLogMessageColor(); - arCtl.sLogMessageColor sLogMessageColor8 = new arCtl.sLogMessageColor(); - UIControl.CPicker cPicker3 = new UIControl.CPicker(); - UIControl.CPicker cPicker4 = new UIControl.CPicker(); - UIControl.CPort cPort4 = new UIControl.CPort(); - UIControl.CPort cPort5 = new UIControl.CPort(); - UIControl.CPort cPort6 = new UIControl.CPort(); - arCtl.ListView2.ColorData colorData9 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.ColorData colorData10 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.ColorData colorData11 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.ColorData colorData12 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.ColorData colorData13 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.ColorData colorData14 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.ColorData colorData15 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.ColorData colorData16 = new arCtl.ListView2.ColorData(); - arCtl.ListView2.Column column8 = new arCtl.ListView2.Column(); - arCtl.ListView2.Column column9 = new arCtl.ListView2.Column(); - arCtl.ListView2.Column column10 = new arCtl.ListView2.Column(); - arCtl.ListView2.Column column11 = new arCtl.ListView2.Column(); - arCtl.ListView2.Column column12 = new arCtl.ListView2.Column(); - arCtl.ListView2.Column column13 = new arCtl.ListView2.Column(); - arCtl.ListView2.ItemStyle itemStyle3 = new arCtl.ListView2.ItemStyle(); - arCtl.ListView2.Row row17 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell97 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell98 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell99 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell100 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell101 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell102 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row18 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell103 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell104 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell105 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell106 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell107 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell108 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row19 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell109 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell110 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell111 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell112 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell113 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell114 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row20 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell115 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell116 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell117 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell118 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell119 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell120 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row21 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell121 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell122 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell123 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell124 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell125 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell126 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row22 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell127 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell128 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell129 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell130 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell131 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell132 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row23 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell133 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell134 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell135 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell136 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell137 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell138 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row24 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell139 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell140 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell141 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell142 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell143 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell144 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row25 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell145 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell146 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell147 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell148 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell149 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell150 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row26 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell151 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell152 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell153 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell154 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell155 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell156 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row27 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell157 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell158 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell159 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell160 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell161 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell162 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row28 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell163 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell164 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell165 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell166 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell167 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell168 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row29 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell169 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell170 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell171 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell172 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell173 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell174 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row30 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell175 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell176 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell177 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell178 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell179 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell180 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row31 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell181 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell182 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell183 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell184 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell185 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell186 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Row row32 = new arCtl.ListView2.Row(); - arCtl.ListView2.Cell cell187 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell188 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell189 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell190 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell191 = new arCtl.ListView2.Cell(); - arCtl.ListView2.Cell cell192 = new arCtl.ListView2.Cell(); - arCtl.ListView2.ItemStyle itemStyle4 = new arCtl.ListView2.ItemStyle(); + arCtl.sLogMessageColor sLogMessageColor1 = new arCtl.sLogMessageColor(); + arCtl.sLogMessageColor sLogMessageColor2 = new arCtl.sLogMessageColor(); + arCtl.sLogMessageColor sLogMessageColor3 = new arCtl.sLogMessageColor(); + arCtl.sLogMessageColor sLogMessageColor4 = new arCtl.sLogMessageColor(); + UIControl.CPicker cPicker1 = new UIControl.CPicker(); + UIControl.CPicker cPicker2 = new UIControl.CPicker(); + UIControl.CPort cPort1 = new UIControl.CPort(); + UIControl.CPort cPort2 = new UIControl.CPort(); + UIControl.CPort cPort3 = new UIControl.CPort(); + arCtl.ListView2.ColorData colorData1 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.ColorData colorData2 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.ColorData colorData3 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.ColorData colorData4 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.ColorData colorData5 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.ColorData colorData6 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.ColorData colorData7 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.ColorData colorData8 = new arCtl.ListView2.ColorData(); + arCtl.ListView2.Column column2 = new arCtl.ListView2.Column(); + arCtl.ListView2.Column column3 = new arCtl.ListView2.Column(); + arCtl.ListView2.Column column4 = new arCtl.ListView2.Column(); + arCtl.ListView2.Column column5 = new arCtl.ListView2.Column(); + arCtl.ListView2.Column column6 = new arCtl.ListView2.Column(); + arCtl.ListView2.Column column7 = new arCtl.ListView2.Column(); + arCtl.ListView2.ItemStyle itemStyle1 = new arCtl.ListView2.ItemStyle(); + arCtl.ListView2.Row row1 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell1 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell2 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell3 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell4 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell5 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell6 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row2 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell7 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell8 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell9 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell10 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell11 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell12 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row3 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell13 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell14 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell15 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell16 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell17 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell18 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row4 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell19 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell20 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell21 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell22 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell23 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell24 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row5 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell25 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell26 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell27 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell28 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell29 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell30 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row6 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell31 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell32 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell33 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell34 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell35 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell36 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row7 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell37 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell38 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell39 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell40 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell41 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell42 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row8 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell43 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell44 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell45 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell46 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell47 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell48 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row9 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell49 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell50 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell51 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell52 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell53 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell54 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row10 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell55 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell56 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell57 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell58 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell59 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell60 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row11 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell61 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell62 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell63 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell64 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell65 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell66 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row12 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell67 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell68 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell69 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell70 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell71 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell72 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row13 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell73 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell74 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell75 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell76 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell77 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell78 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row14 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell79 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell80 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell81 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell82 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell83 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell84 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row15 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell85 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell86 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell87 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell88 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell89 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell90 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Row row16 = new arCtl.ListView2.Row(); + arCtl.ListView2.Cell cell91 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell92 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell93 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell94 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell95 = new arCtl.ListView2.Cell(); + arCtl.ListView2.Cell cell96 = new arCtl.ListView2.Cell(); + arCtl.ListView2.ItemStyle itemStyle2 = new arCtl.ListView2.ItemStyle(); this.tmDisplay = new System.Windows.Forms.Timer(this.components); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.arLabel76 = new arCtl.arLabel(); @@ -263,9 +263,7 @@ this.postDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.manualPrintToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.apiCheckToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.apiCheck2activeLiToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.barcodeTestToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.testToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.countToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.motionEmulatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.customerRuleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -273,7 +271,6 @@ this.systemParameterMotorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.regExTestToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.debugModeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.sendMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripSeparator(); this.dIOMonitorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.refreshControklToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -349,10 +346,11 @@ this.btManage = new System.Windows.Forms.ToolStripMenuItem(); this.빠른실행ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.btLightRoom = new System.Windows.Forms.ToolStripButton(); + this.btManualPrint = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); this.btJobCancle = new System.Windows.Forms.ToolStripButton(); this.btDebug = new System.Windows.Forms.ToolStripButton(); - this.toolStripButton15 = new System.Windows.Forms.ToolStripButton(); + this.btCheckInfo = new System.Windows.Forms.ToolStripButton(); this.toolStripButton3 = new System.Windows.Forms.ToolStripDropDownButton(); this.바코드LToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.연결ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -374,7 +372,7 @@ this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.webManagerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButton12 = new System.Windows.Forms.ToolStripButton(); + this.btHistory = new System.Windows.Forms.ToolStripButton(); this.panel24 = new System.Windows.Forms.Panel(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); @@ -416,7 +414,6 @@ this.hmi1 = new UIControl.HMI(); this.listView21 = new arCtl.ListView2(); this.ta = new Project.DataSet1TableAdapters.Component_Reel_ResultTableAdapter(); - this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.panBottom.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.arDatagridView1)).BeginInit(); this.contextMenuStrip1.SuspendLayout(); @@ -472,7 +469,7 @@ this.arLabel76.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.arLabel76.GradientRepeatBG = false; this.arLabel76.isButton = true; - this.arLabel76.Location = new System.Drawing.Point(206, 1); + this.arLabel76.Location = new System.Drawing.Point(246, 1); this.arLabel76.Margin = new System.Windows.Forms.Padding(0); this.arLabel76.MouseDownColor = System.Drawing.Color.Yellow; this.arLabel76.MouseOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); @@ -568,7 +565,7 @@ this.arLabel75.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.arLabel75.GradientRepeatBG = false; this.arLabel75.isButton = true; - this.arLabel75.Location = new System.Drawing.Point(204, 1); + this.arLabel75.Location = new System.Drawing.Point(244, 1); this.arLabel75.Margin = new System.Windows.Forms.Padding(0); this.arLabel75.MouseDownColor = System.Drawing.Color.Yellow; this.arLabel75.MouseOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); @@ -664,7 +661,7 @@ this.arLabel11.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.arLabel11.GradientRepeatBG = false; this.arLabel11.isButton = true; - this.arLabel11.Location = new System.Drawing.Point(204, 1); + this.arLabel11.Location = new System.Drawing.Point(244, 1); this.arLabel11.Margin = new System.Windows.Forms.Padding(0); this.arLabel11.MouseDownColor = System.Drawing.Color.Yellow; this.arLabel11.MouseOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); @@ -780,7 +777,7 @@ this.lbMsg.SignAlign = System.Drawing.ContentAlignment.BottomRight; this.lbMsg.SignColor = System.Drawing.Color.Yellow; this.lbMsg.SignFont = new System.Drawing.Font("Consolas", 7F, System.Drawing.FontStyle.Italic); - this.lbMsg.Size = new System.Drawing.Size(917, 42); + this.lbMsg.Size = new System.Drawing.Size(1037, 42); this.lbMsg.TabIndex = 1; this.lbMsg.Text = "--"; this.lbMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -1022,7 +1019,7 @@ this.panBottom.Dock = System.Windows.Forms.DockStyle.Fill; this.panBottom.Location = new System.Drawing.Point(1, 549); this.panBottom.Name = "panBottom"; - this.panBottom.Size = new System.Drawing.Size(917, 389); + this.panBottom.Size = new System.Drawing.Size(1037, 389); this.panBottom.TabIndex = 3; // // arDatagridView1 @@ -1066,21 +1063,21 @@ this.GUID}); this.arDatagridView1.ContextMenuStrip = this.contextMenuStrip1; this.arDatagridView1.DataSource = this.bs; - dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle24.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle24.Padding = new System.Windows.Forms.Padding(2); - dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.arDatagridView1.DefaultCellStyle = dataGridViewCellStyle24; + dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle12.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle12.Padding = new System.Windows.Forms.Padding(2); + dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.arDatagridView1.DefaultCellStyle = dataGridViewCellStyle12; this.arDatagridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.arDatagridView1.Location = new System.Drawing.Point(0, 0); this.arDatagridView1.Name = "arDatagridView1"; this.arDatagridView1.ReadOnly = true; this.arDatagridView1.RowTemplate.Height = 23; - this.arDatagridView1.Size = new System.Drawing.Size(917, 389); + this.arDatagridView1.Size = new System.Drawing.Size(1037, 389); this.arDatagridView1.TabIndex = 6; this.arDatagridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.arDatagridView1_CellContentClick); this.arDatagridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.arDatagridView1_DataError); @@ -1104,8 +1101,8 @@ // sTIMEDataGridViewTextBoxColumn // this.sTIMEDataGridViewTextBoxColumn.DataPropertyName = "STIME"; - dataGridViewCellStyle13.Format = "HH:mm:ss"; - this.sTIMEDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle13; + dataGridViewCellStyle1.Format = "HH:mm:ss"; + this.sTIMEDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1; this.sTIMEDataGridViewTextBoxColumn.HeaderText = "START"; this.sTIMEDataGridViewTextBoxColumn.Name = "sTIMEDataGridViewTextBoxColumn"; this.sTIMEDataGridViewTextBoxColumn.ReadOnly = true; @@ -1114,8 +1111,8 @@ // PTIME // this.PTIME.DataPropertyName = "BATCH"; - dataGridViewCellStyle14.Format = "HH:mm:ss"; - this.PTIME.DefaultCellStyle = dataGridViewCellStyle14; + dataGridViewCellStyle2.Format = "HH:mm:ss"; + this.PTIME.DefaultCellStyle = dataGridViewCellStyle2; this.PTIME.HeaderText = "BATCH"; this.PTIME.Name = "PTIME"; this.PTIME.ReadOnly = true; @@ -1124,8 +1121,8 @@ // sIDDataGridViewTextBoxColumn // this.sIDDataGridViewTextBoxColumn.DataPropertyName = "SID"; - dataGridViewCellStyle15.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.sIDDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle15; + dataGridViewCellStyle3.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.sIDDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3; this.sIDDataGridViewTextBoxColumn.HeaderText = "SID"; this.sIDDataGridViewTextBoxColumn.Name = "sIDDataGridViewTextBoxColumn"; this.sIDDataGridViewTextBoxColumn.ReadOnly = true; @@ -1134,9 +1131,9 @@ // rIDDataGridViewTextBoxColumn // this.rIDDataGridViewTextBoxColumn.DataPropertyName = "RID"; - dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle16.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.rIDDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle16; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.rIDDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4; this.rIDDataGridViewTextBoxColumn.HeaderText = "RID"; this.rIDDataGridViewTextBoxColumn.Name = "rIDDataGridViewTextBoxColumn"; this.rIDDataGridViewTextBoxColumn.ReadOnly = true; @@ -1145,8 +1142,8 @@ // VNAME // this.VNAME.DataPropertyName = "VNAME"; - dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.VNAME.DefaultCellStyle = dataGridViewCellStyle17; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.VNAME.DefaultCellStyle = dataGridViewCellStyle5; this.VNAME.HeaderText = "VENDER"; this.VNAME.Name = "VNAME"; this.VNAME.ReadOnly = true; @@ -1180,8 +1177,8 @@ // MFGDATE // this.MFGDATE.DataPropertyName = "MFGDATE"; - dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.MFGDATE.DefaultCellStyle = dataGridViewCellStyle18; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.MFGDATE.DefaultCellStyle = dataGridViewCellStyle6; this.MFGDATE.HeaderText = "MFGDATE"; this.MFGDATE.Name = "MFGDATE"; this.MFGDATE.ReadOnly = true; @@ -1214,8 +1211,8 @@ // Column1 // this.Column1.DataPropertyName = "REMARK"; - dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - this.Column1.DefaultCellStyle = dataGridViewCellStyle19; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.Column1.DefaultCellStyle = dataGridViewCellStyle7; this.Column1.HeaderText = "비고"; this.Column1.Name = "Column1"; this.Column1.ReadOnly = true; @@ -1248,8 +1245,8 @@ // SID0 // this.SID0.DataPropertyName = "SID0"; - dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(221)))), ((int)(((byte)(242))))); - this.SID0.DefaultCellStyle = dataGridViewCellStyle20; + dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(221)))), ((int)(((byte)(242))))); + this.SID0.DefaultCellStyle = dataGridViewCellStyle8; this.SID0.HeaderText = "SID(ORG)"; this.SID0.Name = "SID0"; this.SID0.ReadOnly = true; @@ -1258,8 +1255,8 @@ // RID0 // this.RID0.DataPropertyName = "RID0"; - dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(221)))), ((int)(((byte)(242))))); - this.RID0.DefaultCellStyle = dataGridViewCellStyle21; + dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(221)))), ((int)(((byte)(242))))); + this.RID0.DefaultCellStyle = dataGridViewCellStyle9; this.RID0.HeaderText = "RID(ORG)"; this.RID0.Name = "RID0"; this.RID0.ReadOnly = true; @@ -1268,9 +1265,9 @@ // QTY0 // this.QTY0.DataPropertyName = "QTY0"; - dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(221)))), ((int)(((byte)(242))))); - this.QTY0.DefaultCellStyle = dataGridViewCellStyle22; + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(121)))), ((int)(((byte)(221)))), ((int)(((byte)(242))))); + this.QTY0.DefaultCellStyle = dataGridViewCellStyle10; this.QTY0.FillWeight = 55F; this.QTY0.HeaderText = "QTY(ORG)"; this.QTY0.Name = "QTY0"; @@ -1280,9 +1277,9 @@ // ETIME // this.ETIME.DataPropertyName = "ETIME"; - dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle23.Format = "mm:ss.fff"; - this.ETIME.DefaultCellStyle = dataGridViewCellStyle23; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle11.Format = "mm:ss.fff"; + this.ETIME.DefaultCellStyle = dataGridViewCellStyle11; this.ETIME.HeaderText = "END"; this.ETIME.Name = "ETIME"; this.ETIME.ReadOnly = true; @@ -1417,11 +1414,11 @@ this.panel37.Controls.Add(this.arLabel76); this.panel37.Controls.Add(this.arLabel74); this.panel37.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel37.Location = new System.Drawing.Point(610, 0); + this.panel37.Location = new System.Drawing.Point(690, 0); this.panel37.Margin = new System.Windows.Forms.Padding(0); this.panel37.Name = "panel37"; this.panel37.Padding = new System.Windows.Forms.Padding(1); - this.panel37.Size = new System.Drawing.Size(307, 56); + this.panel37.Size = new System.Drawing.Size(347, 56); this.panel37.TabIndex = 155; // // lbLock2 @@ -1462,7 +1459,7 @@ this.lbLock2.SignAlign = System.Drawing.ContentAlignment.BottomRight; this.lbLock2.SignColor = System.Drawing.Color.Yellow; this.lbLock2.SignFont = new System.Drawing.Font("Consolas", 7F, System.Drawing.FontStyle.Italic); - this.lbLock2.Size = new System.Drawing.Size(105, 54); + this.lbLock2.Size = new System.Drawing.Size(145, 54); this.lbLock2.TabIndex = 15; this.lbLock2.Tag = "2"; this.lbLock2.Text = "포트잠금"; @@ -1478,11 +1475,11 @@ this.panel10.Controls.Add(this.arLabel75); this.panel10.Controls.Add(this.arLabel73); this.panel10.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel10.Location = new System.Drawing.Point(305, 0); + this.panel10.Location = new System.Drawing.Point(345, 0); this.panel10.Margin = new System.Windows.Forms.Padding(0); this.panel10.Name = "panel10"; this.panel10.Padding = new System.Windows.Forms.Padding(1); - this.panel10.Size = new System.Drawing.Size(305, 56); + this.panel10.Size = new System.Drawing.Size(345, 56); this.panel10.TabIndex = 154; // // lbLock1 @@ -1523,7 +1520,7 @@ this.lbLock1.SignAlign = System.Drawing.ContentAlignment.BottomRight; this.lbLock1.SignColor = System.Drawing.Color.Yellow; this.lbLock1.SignFont = new System.Drawing.Font("Consolas", 7F, System.Drawing.FontStyle.Italic); - this.lbLock1.Size = new System.Drawing.Size(103, 54); + this.lbLock1.Size = new System.Drawing.Size(143, 54); this.lbLock1.TabIndex = 15; this.lbLock1.Tag = "1"; this.lbLock1.Text = "포트잠금"; @@ -1543,7 +1540,7 @@ this.panel15.Margin = new System.Windows.Forms.Padding(0); this.panel15.Name = "panel15"; this.panel15.Padding = new System.Windows.Forms.Padding(1); - this.panel15.Size = new System.Drawing.Size(305, 56); + this.panel15.Size = new System.Drawing.Size(345, 56); this.panel15.TabIndex = 155; // // lbLock0 @@ -1584,7 +1581,7 @@ this.lbLock0.SignAlign = System.Drawing.ContentAlignment.BottomRight; this.lbLock0.SignColor = System.Drawing.Color.Yellow; this.lbLock0.SignFont = new System.Drawing.Font("Consolas", 7F, System.Drawing.FontStyle.Italic); - this.lbLock0.Size = new System.Drawing.Size(103, 54); + this.lbLock0.Size = new System.Drawing.Size(143, 54); this.lbLock0.TabIndex = 15; this.lbLock0.Tag = "0"; this.lbLock0.Text = "포트잠금"; @@ -1623,7 +1620,6 @@ this.debugModeToolStripMenuItem, this.demoRunToolStripMenuItem, this.toolStripMenuItem1, - this.sendMailToolStripMenuItem, this.toolStripMenuItem8, this.dIOMonitorToolStripMenuItem, this.refreshControklToolStripMenuItem, @@ -1651,9 +1647,7 @@ this.postDataToolStripMenuItem, this.manualPrintToolStripMenuItem, this.apiCheckToolStripMenuItem, - this.apiCheck2activeLiToolStripMenuItem, - this.barcodeTestToolStripMenuItem, - this.testToolStripMenuItem1}); + this.barcodeTestToolStripMenuItem}); this.inboundToolStripMenuItem.Name = "inboundToolStripMenuItem"; this.inboundToolStripMenuItem.Size = new System.Drawing.Size(253, 22); this.inboundToolStripMenuItem.Text = "Inbound"; @@ -1679,13 +1673,6 @@ this.apiCheckToolStripMenuItem.Text = "api check"; this.apiCheckToolStripMenuItem.Click += new System.EventHandler(this.apiCheckToolStripMenuItem_Click); // - // apiCheck2activeLiToolStripMenuItem - // - this.apiCheck2activeLiToolStripMenuItem.Name = "apiCheck2activeLiToolStripMenuItem"; - this.apiCheck2activeLiToolStripMenuItem.Size = new System.Drawing.Size(201, 22); - this.apiCheck2activeLiToolStripMenuItem.Text = "api check 2(active li"; - this.apiCheck2activeLiToolStripMenuItem.Click += new System.EventHandler(this.apiCheck2activeLiToolStripMenuItem_Click); - // // barcodeTestToolStripMenuItem // this.barcodeTestToolStripMenuItem.Name = "barcodeTestToolStripMenuItem"; @@ -1693,13 +1680,6 @@ this.barcodeTestToolStripMenuItem.Text = "Barcode Test"; this.barcodeTestToolStripMenuItem.Click += new System.EventHandler(this.barcodeTestToolStripMenuItem_Click); // - // testToolStripMenuItem1 - // - this.testToolStripMenuItem1.Name = "testToolStripMenuItem1"; - this.testToolStripMenuItem1.Size = new System.Drawing.Size(201, 22); - this.testToolStripMenuItem1.Text = "test"; - this.testToolStripMenuItem1.Click += new System.EventHandler(this.testToolStripMenuItem1_Click); - // // countToolStripMenuItem // this.countToolStripMenuItem.Name = "countToolStripMenuItem"; @@ -1749,13 +1729,6 @@ this.debugModeToolStripMenuItem.Text = "Debug Mode"; this.debugModeToolStripMenuItem.Click += new System.EventHandler(this.debugModeToolStripMenuItem_Click); // - // sendMailToolStripMenuItem - // - this.sendMailToolStripMenuItem.Name = "sendMailToolStripMenuItem"; - this.sendMailToolStripMenuItem.Size = new System.Drawing.Size(253, 22); - this.sendMailToolStripMenuItem.Text = "Send Mail"; - this.sendMailToolStripMenuItem.Click += new System.EventHandler(this.sendMailToolStripMenuItem_Click); - // // toolStripMenuItem8 // this.toolStripMenuItem8.Name = "toolStripMenuItem8"; @@ -2036,7 +2009,7 @@ this.panStatusBar.Location = new System.Drawing.Point(1, 938); this.panStatusBar.Margin = new System.Windows.Forms.Padding(0); this.panStatusBar.Name = "panStatusBar"; - this.panStatusBar.Size = new System.Drawing.Size(1262, 46); + this.panStatusBar.Size = new System.Drawing.Size(1382, 46); this.panStatusBar.TabIndex = 136; // // panel3 @@ -2047,7 +2020,7 @@ this.panel3.Location = new System.Drawing.Point(0, 0); this.panel3.Margin = new System.Windows.Forms.Padding(0); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(1258, 42); + this.panel3.Size = new System.Drawing.Size(1378, 42); this.panel3.TabIndex = 4; // // IOState @@ -2055,35 +2028,35 @@ this.IOState.arVeriticalDraw = false; this.IOState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90))))); this.IOState.BorderSize = 0; - colorListItem13.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); - colorListItem13.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); - colorListItem13.Remark = ""; - colorListItem14.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(182)))), ((int)(((byte)(122))))); - colorListItem14.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(182)))), ((int)(((byte)(122))))); - colorListItem14.Remark = ""; - colorListItem15.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(76)))), ((int)(((byte)(102))))); - colorListItem15.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(76)))), ((int)(((byte)(102))))); - colorListItem15.Remark = ""; - colorListItem16.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(66)))), ((int)(((byte)(145))))); - colorListItem16.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(66)))), ((int)(((byte)(145))))); - colorListItem16.Remark = ""; - colorListItem17.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(180)))), ((int)(((byte)(236))))); - colorListItem17.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(180)))), ((int)(((byte)(236))))); - colorListItem17.Remark = ""; - colorListItem18.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(210)))), ((int)(((byte)(76))))); - colorListItem18.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(210)))), ((int)(((byte)(76))))); - colorListItem18.Remark = ""; - colorListItem19.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(183)))), ((int)(((byte)(43))))); - colorListItem19.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(183)))), ((int)(((byte)(43))))); - colorListItem19.Remark = ""; + colorListItem1.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); + colorListItem1.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); + colorListItem1.Remark = ""; + colorListItem2.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(182)))), ((int)(((byte)(122))))); + colorListItem2.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(182)))), ((int)(((byte)(122))))); + colorListItem2.Remark = ""; + colorListItem3.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(76)))), ((int)(((byte)(102))))); + colorListItem3.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(76)))), ((int)(((byte)(102))))); + colorListItem3.Remark = ""; + colorListItem4.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(66)))), ((int)(((byte)(145))))); + colorListItem4.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(66)))), ((int)(((byte)(145))))); + colorListItem4.Remark = ""; + colorListItem5.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(180)))), ((int)(((byte)(236))))); + colorListItem5.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(180)))), ((int)(((byte)(236))))); + colorListItem5.Remark = ""; + colorListItem6.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(210)))), ((int)(((byte)(76))))); + colorListItem6.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(210)))), ((int)(((byte)(76))))); + colorListItem6.Remark = ""; + colorListItem7.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(183)))), ((int)(((byte)(43))))); + colorListItem7.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(183)))), ((int)(((byte)(43))))); + colorListItem7.Remark = ""; this.IOState.ColorList = new arFrame.Control.ColorListItem[] { - colorListItem13, - colorListItem14, - colorListItem15, - colorListItem16, - colorListItem17, - colorListItem18, - colorListItem19}; + colorListItem1, + colorListItem2, + colorListItem3, + colorListItem4, + colorListItem5, + colorListItem6, + colorListItem7}; this.IOState.Dock = System.Windows.Forms.DockStyle.Fill; this.IOState.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold); this.IOState.FontPin = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold); @@ -2115,7 +2088,7 @@ this.IOState.ShadowColor = System.Drawing.Color.Transparent; this.IOState.showDebugInfo = false; this.IOState.ShowIndexString = false; - this.IOState.Size = new System.Drawing.Size(940, 42); + this.IOState.Size = new System.Drawing.Size(1060, 42); this.IOState.TabIndex = 6; this.IOState.Tags = null; this.IOState.Text = "gridView2"; @@ -2154,27 +2127,27 @@ this.HWState.arVeriticalDraw = false; this.HWState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.HWState.BorderSize = 0; - colorListItem20.BackColor1 = System.Drawing.Color.Gray; - colorListItem20.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); - colorListItem20.Remark = "타이틀바(상)"; - colorListItem21.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); - colorListItem21.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - colorListItem21.Remark = "상태표시(하)"; - colorListItem22.BackColor1 = System.Drawing.Color.Green; - colorListItem22.BackColor2 = System.Drawing.Color.ForestGreen; - colorListItem22.Remark = "정상"; - colorListItem23.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - colorListItem23.BackColor2 = System.Drawing.Color.Red; - colorListItem23.Remark = "오류"; - colorListItem24.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); - colorListItem24.BackColor2 = System.Drawing.Color.Yellow; - colorListItem24.Remark = "오류(깜박)"; + colorListItem8.BackColor1 = System.Drawing.Color.Gray; + colorListItem8.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); + colorListItem8.Remark = "타이틀바(상)"; + colorListItem9.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); + colorListItem9.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + colorListItem9.Remark = "상태표시(하)"; + colorListItem10.BackColor1 = System.Drawing.Color.Green; + colorListItem10.BackColor2 = System.Drawing.Color.ForestGreen; + colorListItem10.Remark = "정상"; + colorListItem11.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + colorListItem11.BackColor2 = System.Drawing.Color.Red; + colorListItem11.Remark = "오류"; + colorListItem12.BackColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); + colorListItem12.BackColor2 = System.Drawing.Color.Yellow; + colorListItem12.Remark = "오류(깜박)"; this.HWState.ColorList = new arFrame.Control.ColorListItem[] { - colorListItem20, - colorListItem21, - colorListItem22, - colorListItem23, - colorListItem24}; + colorListItem8, + colorListItem9, + colorListItem10, + colorListItem11, + colorListItem12}; this.HWState.Dock = System.Windows.Forms.DockStyle.Left; this.HWState.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.HWState.FontPin = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -2252,18 +2225,18 @@ this.toolStripButton6, this.toolStripButton10, this.btLightRoom, - this.toolStripButton1, + this.btManualPrint, this.toolStripSeparator9, this.btJobCancle, this.btDebug, - this.toolStripButton15, + this.btCheckInfo, this.toolStripButton3, this.toolStripSeparator7, - this.toolStripButton12}); + this.btHistory}); this.panTopMenu.Location = new System.Drawing.Point(1, 1); this.panTopMenu.Name = "panTopMenu"; this.panTopMenu.Padding = new System.Windows.Forms.Padding(0); - this.panTopMenu.Size = new System.Drawing.Size(1262, 47); + this.panTopMenu.Size = new System.Drawing.Size(1382, 47); this.panTopMenu.TabIndex = 137; this.panTopMenu.Text = "toolStrip1"; // @@ -2294,7 +2267,7 @@ // this.모델선택ToolStripMenuItem.Image = global::Project.Properties.Resources.icons8_object_40; this.모델선택ToolStripMenuItem.Name = "모델선택ToolStripMenuItem"; - this.모델선택ToolStripMenuItem.Size = new System.Drawing.Size(150, 46); + this.모델선택ToolStripMenuItem.Size = new System.Drawing.Size(204, 46); this.모델선택ToolStripMenuItem.Text = "작업 모델"; this.모델선택ToolStripMenuItem.Click += new System.EventHandler(this.모델선택ToolStripMenuItem_Click); // @@ -2302,20 +2275,20 @@ // this.btModelMot.Image = global::Project.Properties.Resources.Motor; this.btModelMot.Name = "btModelMot"; - this.btModelMot.Size = new System.Drawing.Size(150, 46); + this.btModelMot.Size = new System.Drawing.Size(204, 46); this.btModelMot.Text = "모션 모델"; this.btModelMot.Click += new System.EventHandler(this.toolStripMenuItem23_Click); // // toolStripMenuItem12 // this.toolStripMenuItem12.Name = "toolStripMenuItem12"; - this.toolStripMenuItem12.Size = new System.Drawing.Size(147, 6); + this.toolStripMenuItem12.Size = new System.Drawing.Size(201, 6); // // 바코드룰ToolStripMenuItem // this.바코드룰ToolStripMenuItem.Image = global::Project.Properties.Resources.icons8_add_40; this.바코드룰ToolStripMenuItem.Name = "바코드룰ToolStripMenuItem"; - this.바코드룰ToolStripMenuItem.Size = new System.Drawing.Size(150, 46); + this.바코드룰ToolStripMenuItem.Size = new System.Drawing.Size(204, 46); this.바코드룰ToolStripMenuItem.Text = "바코드 룰"; this.바코드룰ToolStripMenuItem.Click += new System.EventHandler(this.바코드룰ToolStripMenuItem_Click); // @@ -2323,7 +2296,7 @@ // this.프린트룰ToolStripMenuItem.Image = global::Project.Properties.Resources.icons8_printer_48; this.프린트룰ToolStripMenuItem.Name = "프린트룰ToolStripMenuItem"; - this.프린트룰ToolStripMenuItem.Size = new System.Drawing.Size(150, 46); + this.프린트룰ToolStripMenuItem.Size = new System.Drawing.Size(204, 46); this.프린트룰ToolStripMenuItem.Text = "프린트 룰"; this.프린트룰ToolStripMenuItem.Click += new System.EventHandler(this.프린트룰ToolStripMenuItem_Click); // @@ -2334,7 +2307,7 @@ this.인바운드데이터업데이트ToolStripMenuItem}); this.sID정보ToolStripMenuItem.Image = global::Project.Properties.Resources.icons8_save_to_grid_40; this.sID정보ToolStripMenuItem.Name = "sID정보ToolStripMenuItem"; - this.sID정보ToolStripMenuItem.Size = new System.Drawing.Size(150, 46); + this.sID정보ToolStripMenuItem.Size = new System.Drawing.Size(204, 46); this.sID정보ToolStripMenuItem.Text = "SID 정보"; this.sID정보ToolStripMenuItem.Click += new System.EventHandler(this.sID정보ToolStripMenuItem_Click); // @@ -2519,7 +2492,7 @@ // sWPLCToolStripMenuItem // this.sWPLCToolStripMenuItem.Name = "sWPLCToolStripMenuItem"; - this.sWPLCToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.sWPLCToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.sWPLCToolStripMenuItem.Text = "S/W PLC"; this.sWPLCToolStripMenuItem.Click += new System.EventHandler(this.sWPLCToolStripMenuItem_Click); // @@ -2539,7 +2512,7 @@ // this.btManage.Image = global::Project.Properties.Resources.icons8_control_panel_40; this.btManage.Name = "btManage"; - this.btManage.Size = new System.Drawing.Size(146, 46); + this.btManage.Size = new System.Drawing.Size(204, 46); this.btManage.Text = "관리"; this.btManage.Click += new System.EventHandler(this.관리ToolStripMenuItem_Click_1); // @@ -2547,7 +2520,7 @@ // this.빠른실행ToolStripMenuItem.Image = global::Project.Properties.Resources.icons8_object_40; this.빠른실행ToolStripMenuItem.Name = "빠른실행ToolStripMenuItem"; - this.빠른실행ToolStripMenuItem.Size = new System.Drawing.Size(146, 46); + this.빠른실행ToolStripMenuItem.Size = new System.Drawing.Size(204, 46); this.빠른실행ToolStripMenuItem.Text = "빠른실행"; this.빠른실행ToolStripMenuItem.Click += new System.EventHandler(this.빠른실행ToolStripMenuItem_Click); // @@ -2561,6 +2534,15 @@ this.btLightRoom.ToolTipText = "내부 조명 On/Off"; this.btLightRoom.Click += new System.EventHandler(this.button7_Click); // + // btManualPrint + // + this.btManualPrint.Image = ((System.Drawing.Image)(resources.GetObject("btManualPrint.Image"))); + this.btManualPrint.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btManualPrint.Name = "btManualPrint"; + this.btManualPrint.Size = new System.Drawing.Size(99, 44); + this.btManualPrint.Text = "수동인쇄"; + this.btManualPrint.Click += new System.EventHandler(this.toolStripButton1_Click); + // // toolStripSeparator9 // this.toolStripSeparator9.Name = "toolStripSeparator9"; @@ -2590,14 +2572,14 @@ this.btDebug.ToolTipText = "개발자 메뉴(사용하지 마세요)"; this.btDebug.Click += new System.EventHandler(this.btDebug_Click); // - // toolStripButton15 + // btCheckInfo // - this.toolStripButton15.Image = global::Project.Properties.Resources.Barcode; - this.toolStripButton15.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButton15.Name = "toolStripButton15"; - this.toolStripButton15.Size = new System.Drawing.Size(111, 44); - this.toolStripButton15.Text = "바코드확인"; - this.toolStripButton15.Click += new System.EventHandler(this.toolStripButton15_Click); + this.btCheckInfo.Image = global::Project.Properties.Resources.Barcode; + this.btCheckInfo.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btCheckInfo.Name = "btCheckInfo"; + this.btCheckInfo.Size = new System.Drawing.Size(111, 44); + this.btCheckInfo.Text = "바코드확인"; + this.btCheckInfo.Click += new System.EventHandler(this.toolStripButton15_Click); // // toolStripButton3 // @@ -2622,7 +2604,7 @@ this.toolStripMenuItem30}); this.바코드LToolStripMenuItem.Image = global::Project.Properties.Resources.Arrow_Left; this.바코드LToolStripMenuItem.Name = "바코드LToolStripMenuItem"; - this.바코드LToolStripMenuItem.Size = new System.Drawing.Size(178, 46); + this.바코드LToolStripMenuItem.Size = new System.Drawing.Size(204, 46); this.바코드LToolStripMenuItem.Text = "바코드"; this.바코드LToolStripMenuItem.Click += new System.EventHandler(this.button1_Click_1); // @@ -2690,7 +2672,7 @@ this.webManagerToolStripMenuItem}); this.바코드키엔스ToolStripMenuItem.Image = global::Project.Properties.Resources.Barcode; this.바코드키엔스ToolStripMenuItem.Name = "바코드키엔스ToolStripMenuItem"; - this.바코드키엔스ToolStripMenuItem.Size = new System.Drawing.Size(178, 46); + this.바코드키엔스ToolStripMenuItem.Size = new System.Drawing.Size(204, 46); this.바코드키엔스ToolStripMenuItem.Text = "바코드(키엔스)"; // // toolStripMenuItem17 @@ -2769,15 +2751,15 @@ this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new System.Drawing.Size(6, 47); // - // toolStripButton12 + // btHistory // - this.toolStripButton12.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton12.Image"))); - this.toolStripButton12.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButton12.Name = "toolStripButton12"; - this.toolStripButton12.Size = new System.Drawing.Size(75, 44); - this.toolStripButton12.Text = "기록"; - this.toolStripButton12.ToolTipText = "작업 내역을 확인 합니다"; - this.toolStripButton12.Click += new System.EventHandler(this.button3_Click); + this.btHistory.Image = ((System.Drawing.Image)(resources.GetObject("btHistory.Image"))); + this.btHistory.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btHistory.Name = "btHistory"; + this.btHistory.Size = new System.Drawing.Size(75, 44); + this.btHistory.Text = "기록"; + this.btHistory.ToolTipText = "작업 내역을 확인 합니다"; + this.btHistory.Click += new System.EventHandler(this.button3_Click); // // panel24 // @@ -2794,7 +2776,7 @@ this.panel24.Controls.Add(this.groupBox3); this.panel24.Dock = System.Windows.Forms.DockStyle.Right; this.panel24.ForeColor = System.Drawing.Color.White; - this.panel24.Location = new System.Drawing.Point(918, 48); + this.panel24.Location = new System.Drawing.Point(1038, 48); this.panel24.Name = "panel24"; this.panel24.Padding = new System.Windows.Forms.Padding(10, 3, 10, 10); this.panel24.Size = new System.Drawing.Size(345, 890); @@ -2838,19 +2820,19 @@ // this.RtLog.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24))))); this.RtLog.BorderStyle = System.Windows.Forms.BorderStyle.None; - sLogMessageColor5.color = System.Drawing.Color.Black; - sLogMessageColor5.gubun = "NOR"; - sLogMessageColor6.color = System.Drawing.Color.Red; - sLogMessageColor6.gubun = "ERR"; - sLogMessageColor7.color = System.Drawing.Color.Tomato; - sLogMessageColor7.gubun = "WARN"; - sLogMessageColor8.color = System.Drawing.Color.Black; - sLogMessageColor8.gubun = "MSG"; + sLogMessageColor1.color = System.Drawing.Color.Black; + sLogMessageColor1.gubun = "NOR"; + sLogMessageColor2.color = System.Drawing.Color.Red; + sLogMessageColor2.gubun = "ERR"; + sLogMessageColor3.color = System.Drawing.Color.Tomato; + sLogMessageColor3.gubun = "WARN"; + sLogMessageColor4.color = System.Drawing.Color.Black; + sLogMessageColor4.gubun = "MSG"; this.RtLog.ColorList = new arCtl.sLogMessageColor[] { - sLogMessageColor5, - sLogMessageColor6, - sLogMessageColor7, - sLogMessageColor8}; + sLogMessageColor1, + sLogMessageColor2, + sLogMessageColor3, + sLogMessageColor4}; this.RtLog.DateFormat = "MM/dd HH:mm"; this.RtLog.DefaultColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); this.RtLog.Dock = System.Windows.Forms.DockStyle.Fill; @@ -3565,7 +3547,7 @@ this.panel9.Dock = System.Windows.Forms.DockStyle.Top; this.panel9.Location = new System.Drawing.Point(1, 48); this.panel9.Name = "panel9"; - this.panel9.Size = new System.Drawing.Size(917, 42); + this.panel9.Size = new System.Drawing.Size(1037, 42); this.panel9.TabIndex = 144; // // tableLayoutPanel1 @@ -3583,7 +3565,7 @@ this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(917, 56); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1037, 56); this.tableLayoutPanel1.TabIndex = 159; // // panel1 @@ -3593,7 +3575,7 @@ this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(1, 90); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(917, 403); + this.panel1.Size = new System.Drawing.Size(1037, 403); this.panel1.TabIndex = 160; // // hmi1 @@ -3701,106 +3683,106 @@ this.hmi1.arPortRItemOn = false; this.hmi1.arPRItemON = false; this.hmi1.arUnloaderSeq = ((byte)(0)); - cPicker3.HasRealItemOn = false; - cPicker3.ItemOn = false; - cPicker3.Overload = true; - cPicker3.PortIndex = ((short)(-1)); - cPicker3.PortPos = "13"; - cPicker3.PreCheckItemOn = false; - cPicker3.PrintPos = null; - cPicker3.VacOutput = new bool[] { + cPicker1.HasRealItemOn = false; + cPicker1.ItemOn = false; + cPicker1.Overload = true; + cPicker1.PortIndex = ((short)(-1)); + cPicker1.PortPos = "13"; + cPicker1.PreCheckItemOn = false; + cPicker1.PrintPos = null; + cPicker1.VacOutput = new bool[] { false, false, false, false}; - cPicker4.HasRealItemOn = false; - cPicker4.ItemOn = false; - cPicker4.Overload = false; - cPicker4.PortIndex = ((short)(-1)); - cPicker4.PortPos = "7"; - cPicker4.PreCheckItemOn = false; - cPicker4.PrintPos = null; - cPicker4.VacOutput = new bool[] { + cPicker2.HasRealItemOn = false; + cPicker2.ItemOn = false; + cPicker2.Overload = false; + cPicker2.PortIndex = ((short)(-1)); + cPicker2.PortPos = "7"; + cPicker2.PreCheckItemOn = false; + cPicker2.PrintPos = null; + cPicker2.VacOutput = new bool[] { false, false, false, false}; this.hmi1.arVar_Picker = new UIControl.CPicker[] { - cPicker3, - cPicker4}; - cPort4.AlignOK = ((byte)(0)); - cPort4.AnimationStepPort = 9; - cPort4.arrowIndex = 2; - cPort4.bgColor = System.Drawing.Color.Lime; - cPort4.CartSize = 0; - cPort4.DetectUp = true; - cPort4.Enable = true; - cPort4.errorCount = 0; - cPort4.fgColor = System.Drawing.Color.White; - cPort4.fgColorCount = System.Drawing.Color.Empty; - cPort4.LimitLower = true; - cPort4.LimitUpper = false; - cPort4.MotorDir = true; - cPort4.MotorRun = true; - cPort4.Ready = false; - cPort4.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cPort4.Rect"))); - cPort4.rect_count = new System.Drawing.Rectangle(0, 0, 0, 0); - cPort4.rect_title = new System.Drawing.Rectangle(0, 0, 0, 0); - cPort4.reelCount = 0; - cPort4.reelNo = -1; - cPort4.SaftyErr = false; - cPort4.State = ((ushort)(0)); - cPort4.title = "7\""; - cPort5.AlignOK = ((byte)(0)); - cPort5.AnimationStepPort = 9; - cPort5.arrowIndex = 2; - cPort5.bgColor = System.Drawing.Color.Lime; - cPort5.CartSize = 0; - cPort5.DetectUp = true; - cPort5.Enable = true; - cPort5.errorCount = 0; - cPort5.fgColor = System.Drawing.Color.White; - cPort5.fgColorCount = System.Drawing.Color.Empty; - cPort5.LimitLower = false; - cPort5.LimitUpper = true; - cPort5.MotorDir = false; - cPort5.MotorRun = true; - cPort5.Ready = false; - cPort5.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cPort5.Rect"))); - cPort5.rect_count = new System.Drawing.Rectangle(0, 0, 0, 0); - cPort5.rect_title = new System.Drawing.Rectangle(0, 0, 0, 0); - cPort5.reelCount = 0; - cPort5.reelNo = -1; - cPort5.SaftyErr = false; - cPort5.State = ((ushort)(0)); - cPort5.title = "13\""; - cPort6.AlignOK = ((byte)(0)); - cPort6.AnimationStepPort = 9; - cPort6.arrowIndex = 2; - cPort6.bgColor = System.Drawing.Color.Lime; - cPort6.CartSize = 0; - cPort6.DetectUp = true; - cPort6.Enable = true; - cPort6.errorCount = 0; - cPort6.fgColor = System.Drawing.Color.White; - cPort6.fgColorCount = System.Drawing.Color.Empty; - cPort6.LimitLower = false; - cPort6.LimitUpper = false; - cPort6.MotorDir = false; - cPort6.MotorRun = false; - cPort6.Ready = true; - cPort6.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cPort6.Rect"))); - cPort6.rect_count = new System.Drawing.Rectangle(0, 0, 0, 0); - cPort6.rect_title = new System.Drawing.Rectangle(0, 0, 0, 0); - cPort6.reelCount = 0; - cPort6.reelNo = -1; - cPort6.SaftyErr = false; - cPort6.State = ((ushort)(0)); - cPort6.title = "7\""; + cPicker1, + cPicker2}; + cPort1.AlignOK = ((byte)(0)); + cPort1.AnimationStepPort = 9; + cPort1.arrowIndex = 2; + cPort1.bgColor = System.Drawing.Color.Lime; + cPort1.CartSize = 0; + cPort1.DetectUp = true; + cPort1.Enable = true; + cPort1.errorCount = 0; + cPort1.fgColor = System.Drawing.Color.White; + cPort1.fgColorCount = System.Drawing.Color.Empty; + cPort1.LimitLower = true; + cPort1.LimitUpper = false; + cPort1.MotorDir = true; + cPort1.MotorRun = true; + cPort1.Ready = false; + cPort1.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cPort1.Rect"))); + cPort1.rect_count = new System.Drawing.Rectangle(0, 0, 0, 0); + cPort1.rect_title = new System.Drawing.Rectangle(0, 0, 0, 0); + cPort1.reelCount = 0; + cPort1.reelNo = -1; + cPort1.SaftyErr = false; + cPort1.State = ((ushort)(0)); + cPort1.title = "7\""; + cPort2.AlignOK = ((byte)(0)); + cPort2.AnimationStepPort = 9; + cPort2.arrowIndex = 2; + cPort2.bgColor = System.Drawing.Color.Lime; + cPort2.CartSize = 0; + cPort2.DetectUp = true; + cPort2.Enable = true; + cPort2.errorCount = 0; + cPort2.fgColor = System.Drawing.Color.White; + cPort2.fgColorCount = System.Drawing.Color.Empty; + cPort2.LimitLower = false; + cPort2.LimitUpper = true; + cPort2.MotorDir = false; + cPort2.MotorRun = true; + cPort2.Ready = false; + cPort2.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cPort2.Rect"))); + cPort2.rect_count = new System.Drawing.Rectangle(0, 0, 0, 0); + cPort2.rect_title = new System.Drawing.Rectangle(0, 0, 0, 0); + cPort2.reelCount = 0; + cPort2.reelNo = -1; + cPort2.SaftyErr = false; + cPort2.State = ((ushort)(0)); + cPort2.title = "13\""; + cPort3.AlignOK = ((byte)(0)); + cPort3.AnimationStepPort = 9; + cPort3.arrowIndex = 2; + cPort3.bgColor = System.Drawing.Color.Lime; + cPort3.CartSize = 0; + cPort3.DetectUp = true; + cPort3.Enable = true; + cPort3.errorCount = 0; + cPort3.fgColor = System.Drawing.Color.White; + cPort3.fgColorCount = System.Drawing.Color.Empty; + cPort3.LimitLower = false; + cPort3.LimitUpper = false; + cPort3.MotorDir = false; + cPort3.MotorRun = false; + cPort3.Ready = true; + cPort3.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cPort3.Rect"))); + cPort3.rect_count = new System.Drawing.Rectangle(0, 0, 0, 0); + cPort3.rect_title = new System.Drawing.Rectangle(0, 0, 0, 0); + cPort3.reelCount = 0; + cPort3.reelNo = -1; + cPort3.SaftyErr = false; + cPort3.State = ((ushort)(0)); + cPort3.title = "7\""; this.hmi1.arVar_Port = new UIControl.CPort[] { - cPort4, - cPort5, - cPort6}; + cPort1, + cPort2, + cPort3}; this.hmi1.arVision_RID = null; this.hmi1.arVision_SID = null; this.hmi1.arVisionProcessC = false; @@ -3823,7 +3805,7 @@ this.hmi1.R_PICK_BW = false; this.hmi1.R_PICK_FW = false; this.hmi1.Scean = UIControl.HMI.eScean.Nomal; - this.hmi1.Size = new System.Drawing.Size(466, 403); + this.hmi1.Size = new System.Drawing.Size(586, 403); this.hmi1.TabIndex = 0; this.hmi1.ZoneItemClick += new System.EventHandler(this.hmi1_ZoneItemClick); // @@ -3831,1248 +3813,1248 @@ // this.listView21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32))))); this.listView21.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90))))); - colorData9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); - colorData9.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); - colorData9.ForeColor = System.Drawing.Color.White; - colorData9.Tag = ""; - colorData10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); - colorData10.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); - colorData10.ForeColor = System.Drawing.Color.White; - colorData10.Tag = ""; - colorData11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(75)))), ((int)(((byte)(75))))); - colorData11.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(75)))), ((int)(((byte)(75))))); - colorData11.ForeColor = System.Drawing.Color.White; - colorData11.Tag = ""; - colorData12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(134)))), ((int)(((byte)(75)))), ((int)(((byte)(225))))); - colorData12.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(134)))), ((int)(((byte)(75)))), ((int)(((byte)(225))))); - colorData12.ForeColor = System.Drawing.Color.White; - colorData12.Tag = ""; - colorData13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(77)))), ((int)(((byte)(157))))); - colorData13.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(77)))), ((int)(((byte)(157))))); - colorData13.ForeColor = System.Drawing.Color.White; - colorData13.Tag = ""; - colorData14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(155)))), ((int)(((byte)(42))))); - colorData14.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(155)))), ((int)(((byte)(42))))); - colorData14.ForeColor = System.Drawing.Color.Black; - colorData14.Tag = ""; - colorData15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(124)))), ((int)(((byte)(128))))); - colorData15.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(124)))), ((int)(((byte)(128))))); - colorData15.ForeColor = System.Drawing.Color.WhiteSmoke; - colorData15.Tag = ""; - colorData16.BackColor = System.Drawing.Color.LimeGreen; - colorData16.BackColor2 = System.Drawing.Color.Lime; - colorData16.ForeColor = System.Drawing.Color.Black; - colorData16.Tag = ""; + colorData1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); + colorData1.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); + colorData1.ForeColor = System.Drawing.Color.White; + colorData1.Tag = ""; + colorData2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); + colorData2.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); + colorData2.ForeColor = System.Drawing.Color.White; + colorData2.Tag = ""; + colorData3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(75)))), ((int)(((byte)(75))))); + colorData3.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(75)))), ((int)(((byte)(75))))); + colorData3.ForeColor = System.Drawing.Color.White; + colorData3.Tag = ""; + colorData4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(134)))), ((int)(((byte)(75)))), ((int)(((byte)(225))))); + colorData4.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(134)))), ((int)(((byte)(75)))), ((int)(((byte)(225))))); + colorData4.ForeColor = System.Drawing.Color.White; + colorData4.Tag = ""; + colorData5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(77)))), ((int)(((byte)(157))))); + colorData5.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(77)))), ((int)(((byte)(157))))); + colorData5.ForeColor = System.Drawing.Color.White; + colorData5.Tag = ""; + colorData6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(155)))), ((int)(((byte)(42))))); + colorData6.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(155)))), ((int)(((byte)(42))))); + colorData6.ForeColor = System.Drawing.Color.Black; + colorData6.Tag = ""; + colorData7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(124)))), ((int)(((byte)(128))))); + colorData7.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(124)))), ((int)(((byte)(128))))); + colorData7.ForeColor = System.Drawing.Color.WhiteSmoke; + colorData7.Tag = ""; + colorData8.BackColor = System.Drawing.Color.LimeGreen; + colorData8.BackColor2 = System.Drawing.Color.Lime; + colorData8.ForeColor = System.Drawing.Color.Black; + colorData8.Tag = ""; this.listView21.ColorList = new arCtl.ListView2.ColorData[] { - colorData9, - colorData10, - colorData11, - colorData12, - colorData13, - colorData14, - colorData15, - colorData16}; + colorData1, + colorData2, + colorData3, + colorData4, + colorData5, + colorData6, + colorData7, + colorData8}; this.listView21.ColumnHeaderVisible = false; this.listView21.ColumnHeight = 35; - column8.DataGridViewInternal = null; - column8.DisplayIndex = 0; - column8.IndexInternal = 0; - column8.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column8.Rect"))); - column8.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; - column8.State = System.Windows.Forms.DataGridViewElementStates.None; - column8.Style = null; - column8.Text = ""; - column8.Width = 50; - column9.DataGridViewInternal = null; - column9.DisplayIndex = 0; - column9.IndexInternal = 0; - column9.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column9.Rect"))); - column9.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; - column9.State = System.Windows.Forms.DataGridViewElementStates.None; - column9.Style = null; - column9.Text = ""; - column9.Width = 100; - column10.DataGridViewInternal = null; - column10.DisplayIndex = 0; - column10.IndexInternal = 0; - column10.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column10.Rect"))); - column10.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; - column10.State = System.Windows.Forms.DataGridViewElementStates.None; - column10.Style = null; - column10.Text = ""; - column10.Width = 50; - column11.DataGridViewInternal = null; - column11.DisplayIndex = 0; - column11.IndexInternal = 0; - column11.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column11.Rect"))); - column11.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; - column11.State = System.Windows.Forms.DataGridViewElementStates.None; - column11.Style = null; - column11.Text = ""; - column11.Width = 100; - column12.DataGridViewInternal = null; - column12.DisplayIndex = 0; - column12.IndexInternal = 0; - column12.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column12.Rect"))); - column12.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; - column12.State = System.Windows.Forms.DataGridViewElementStates.None; - column12.Style = null; - column12.Text = ""; - column12.Width = 50; - column13.DataGridViewInternal = null; - column13.DisplayIndex = 0; - column13.IndexInternal = 0; - column13.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column13.Rect"))); - column13.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; - column13.State = System.Windows.Forms.DataGridViewElementStates.None; - column13.Style = null; - column13.Text = ""; - column13.Width = 100; + column2.DataGridViewInternal = null; + column2.DisplayIndex = 0; + column2.IndexInternal = 0; + column2.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column2.Rect"))); + column2.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; + column2.State = System.Windows.Forms.DataGridViewElementStates.None; + column2.Style = null; + column2.Text = ""; + column2.Width = 50; + column3.DataGridViewInternal = null; + column3.DisplayIndex = 0; + column3.IndexInternal = 0; + column3.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column3.Rect"))); + column3.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; + column3.State = System.Windows.Forms.DataGridViewElementStates.None; + column3.Style = null; + column3.Text = ""; + column3.Width = 100; + column4.DataGridViewInternal = null; + column4.DisplayIndex = 0; + column4.IndexInternal = 0; + column4.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column4.Rect"))); + column4.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; + column4.State = System.Windows.Forms.DataGridViewElementStates.None; + column4.Style = null; + column4.Text = ""; + column4.Width = 50; + column5.DataGridViewInternal = null; + column5.DisplayIndex = 0; + column5.IndexInternal = 0; + column5.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column5.Rect"))); + column5.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; + column5.State = System.Windows.Forms.DataGridViewElementStates.None; + column5.Style = null; + column5.Text = ""; + column5.Width = 100; + column6.DataGridViewInternal = null; + column6.DisplayIndex = 0; + column6.IndexInternal = 0; + column6.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column6.Rect"))); + column6.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; + column6.State = System.Windows.Forms.DataGridViewElementStates.None; + column6.Style = null; + column6.Text = ""; + column6.Width = 50; + column7.DataGridViewInternal = null; + column7.DisplayIndex = 0; + column7.IndexInternal = 0; + column7.Rect = ((System.Drawing.RectangleF)(resources.GetObject("column7.Rect"))); + column7.SizeOption = arCtl.ListView2.ColumnSizeOption.Pixel; + column7.State = System.Windows.Forms.DataGridViewElementStates.None; + column7.Style = null; + column7.Text = ""; + column7.Width = 100; this.listView21.Columns = new arCtl.ListView2.Column[] { - column8, - column9, - column10, - column11, - column12, - column13}; - itemStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); - itemStyle3.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); - itemStyle3.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold); - itemStyle3.ForeColor = System.Drawing.Color.White; - this.listView21.ColumnStyle = itemStyle3; + column2, + column3, + column4, + column5, + column6, + column7}; + itemStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); + itemStyle1.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); + itemStyle1.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold); + itemStyle1.ForeColor = System.Drawing.Color.White; + this.listView21.ColumnStyle = itemStyle1; this.listView21.Dock = System.Windows.Forms.DockStyle.Right; this.listView21.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold); this.listView21.ForeColor = System.Drawing.Color.White; - this.listView21.Location = new System.Drawing.Point(466, 0); + this.listView21.Location = new System.Drawing.Point(586, 0); this.listView21.MinimumSize = new System.Drawing.Size(30, 30); this.listView21.Name = "listView21"; this.listView21.RowHeight = 25; - cell97.BackColor = System.Drawing.Color.White; - cell97.BackColor2 = System.Drawing.Color.White; - cell97.DataGridViewInternal = null; - cell97.DisplayIndex = 0; - cell97.ForeColor = System.Drawing.Color.Black; - cell97.IndexInternal = 0; - cell97.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell97.Rect"))); - cell97.Style = null; - cell97.Text = "LEFT"; - cell97.Valuetype = arCtl.ListView2.eCellValueType.String; - cell98.BackColor = System.Drawing.Color.White; - cell98.BackColor2 = System.Drawing.Color.White; - cell98.DataGridViewInternal = null; - cell98.DisplayIndex = 0; - cell98.ForeColor = System.Drawing.Color.Black; - cell98.IndexInternal = 0; - cell98.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell98.Rect"))); - cell98.Style = null; - cell98.Text = "7/13"; - cell98.Valuetype = arCtl.ListView2.eCellValueType.String; - cell99.BackColor = System.Drawing.Color.White; - cell99.BackColor2 = System.Drawing.Color.White; - cell99.DataGridViewInternal = null; - cell99.DisplayIndex = 0; - cell99.ForeColor = System.Drawing.Color.Black; - cell99.IndexInternal = 0; - cell99.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell99.Rect"))); - cell99.Style = null; - cell99.Text = "PICKER"; - cell99.Valuetype = arCtl.ListView2.eCellValueType.String; - cell100.BackColor = System.Drawing.Color.White; - cell100.BackColor2 = System.Drawing.Color.White; - cell100.DataGridViewInternal = null; - cell100.DisplayIndex = 0; - cell100.ForeColor = System.Drawing.Color.Black; - cell100.IndexInternal = 0; - cell100.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell100.Rect"))); - cell100.Style = null; - cell100.Text = "7/13"; - cell100.Valuetype = arCtl.ListView2.eCellValueType.String; - cell101.BackColor = System.Drawing.Color.White; - cell101.BackColor2 = System.Drawing.Color.White; - cell101.DataGridViewInternal = null; - cell101.DisplayIndex = 0; - cell101.ForeColor = System.Drawing.Color.Black; - cell101.IndexInternal = 0; - cell101.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell101.Rect"))); - cell101.Style = null; - cell101.Text = "RIGHT"; - cell101.Valuetype = arCtl.ListView2.eCellValueType.String; - cell102.BackColor = System.Drawing.Color.White; - cell102.BackColor2 = System.Drawing.Color.White; - cell102.DataGridViewInternal = null; - cell102.DisplayIndex = 0; - cell102.ForeColor = System.Drawing.Color.Black; - cell102.IndexInternal = 0; - cell102.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell102.Rect"))); - cell102.Style = null; - cell102.Text = "7/13"; - cell102.Valuetype = arCtl.ListView2.eCellValueType.String; - row17.Cells = new arCtl.ListView2.Cell[] { - cell97, - cell98, - cell99, - cell100, - cell101, - cell102}; - row17.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row17.Rect"))); - row17.Style = null; - cell103.BackColor = System.Drawing.Color.White; - cell103.BackColor2 = System.Drawing.Color.White; - cell103.DataGridViewInternal = null; - cell103.DisplayIndex = 0; - cell103.ForeColor = System.Drawing.Color.Black; - cell103.IndexInternal = 0; - cell103.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell103.Rect"))); - cell103.Style = null; - cell103.Text = "RID"; - cell103.Valuetype = arCtl.ListView2.eCellValueType.String; - cell104.BackColor = System.Drawing.Color.White; - cell104.BackColor2 = System.Drawing.Color.White; - cell104.DataGridViewInternal = null; - cell104.DisplayIndex = 0; - cell104.ForeColor = System.Drawing.Color.Black; - cell104.IndexInternal = 0; - cell104.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell104.Rect"))); - cell104.Style = null; - cell104.Text = "--"; - cell104.Valuetype = arCtl.ListView2.eCellValueType.String; - cell105.BackColor = System.Drawing.Color.White; - cell105.BackColor2 = System.Drawing.Color.White; - cell105.DataGridViewInternal = null; - cell105.DisplayIndex = 0; - cell105.ForeColor = System.Drawing.Color.Black; - cell105.IndexInternal = 0; - cell105.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell105.Rect"))); - cell105.Style = null; - cell105.Text = "RID"; - cell105.Valuetype = arCtl.ListView2.eCellValueType.String; - cell106.BackColor = System.Drawing.Color.White; - cell106.BackColor2 = System.Drawing.Color.White; - cell106.DataGridViewInternal = null; - cell106.DisplayIndex = 0; - cell106.ForeColor = System.Drawing.Color.Black; - cell106.IndexInternal = 0; - cell106.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell106.Rect"))); - cell106.Style = null; - cell106.Text = "--"; - cell106.Valuetype = arCtl.ListView2.eCellValueType.String; - cell107.BackColor = System.Drawing.Color.White; - cell107.BackColor2 = System.Drawing.Color.White; - cell107.DataGridViewInternal = null; - cell107.DisplayIndex = 0; - cell107.ForeColor = System.Drawing.Color.Black; - cell107.IndexInternal = 0; - cell107.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell107.Rect"))); - cell107.Style = null; - cell107.Text = "RID"; - cell107.Valuetype = arCtl.ListView2.eCellValueType.String; - cell108.BackColor = System.Drawing.Color.White; - cell108.BackColor2 = System.Drawing.Color.White; - cell108.DataGridViewInternal = null; - cell108.DisplayIndex = 0; - cell108.ForeColor = System.Drawing.Color.Black; - cell108.IndexInternal = 0; - cell108.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell108.Rect"))); - cell108.Style = null; - cell108.Text = "--"; - cell108.Valuetype = arCtl.ListView2.eCellValueType.String; - row18.Cells = new arCtl.ListView2.Cell[] { - cell103, - cell104, - cell105, - cell106, - cell107, - cell108}; - row18.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row18.Rect"))); - row18.Style = null; - cell109.BackColor = System.Drawing.Color.White; - cell109.BackColor2 = System.Drawing.Color.White; - cell109.DataGridViewInternal = null; - cell109.DisplayIndex = 0; - cell109.ForeColor = System.Drawing.Color.Black; - cell109.IndexInternal = 0; - cell109.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell109.Rect"))); - cell109.Style = null; - cell109.Text = "SID"; - cell109.Valuetype = arCtl.ListView2.eCellValueType.String; - cell110.BackColor = System.Drawing.Color.White; - cell110.BackColor2 = System.Drawing.Color.White; - cell110.DataGridViewInternal = null; - cell110.DisplayIndex = 0; - cell110.ForeColor = System.Drawing.Color.Black; - cell110.IndexInternal = 0; - cell110.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell110.Rect"))); - cell110.Style = null; - cell110.Text = ""; - cell110.Valuetype = arCtl.ListView2.eCellValueType.String; - cell111.BackColor = System.Drawing.Color.White; - cell111.BackColor2 = System.Drawing.Color.White; - cell111.DataGridViewInternal = null; - cell111.DisplayIndex = 0; - cell111.ForeColor = System.Drawing.Color.Black; - cell111.IndexInternal = 0; - cell111.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell111.Rect"))); - cell111.Style = null; - cell111.Text = "SID"; - cell111.Valuetype = arCtl.ListView2.eCellValueType.String; - cell112.BackColor = System.Drawing.Color.White; - cell112.BackColor2 = System.Drawing.Color.White; - cell112.DataGridViewInternal = null; - cell112.DisplayIndex = 0; - cell112.ForeColor = System.Drawing.Color.Black; - cell112.IndexInternal = 0; - cell112.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell112.Rect"))); - cell112.Style = null; - cell112.Text = ""; - cell112.Valuetype = arCtl.ListView2.eCellValueType.String; - cell113.BackColor = System.Drawing.Color.White; - cell113.BackColor2 = System.Drawing.Color.White; - cell113.DataGridViewInternal = null; - cell113.DisplayIndex = 0; - cell113.ForeColor = System.Drawing.Color.Black; - cell113.IndexInternal = 0; - cell113.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell113.Rect"))); - cell113.Style = null; - cell113.Text = "SID"; - cell113.Valuetype = arCtl.ListView2.eCellValueType.String; - cell114.BackColor = System.Drawing.Color.White; - cell114.BackColor2 = System.Drawing.Color.White; - cell114.DataGridViewInternal = null; - cell114.DisplayIndex = 0; - cell114.ForeColor = System.Drawing.Color.Black; - cell114.IndexInternal = 0; - cell114.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell114.Rect"))); - cell114.Style = null; - cell114.Text = ""; - cell114.Valuetype = arCtl.ListView2.eCellValueType.String; - row19.Cells = new arCtl.ListView2.Cell[] { - cell109, - cell110, - cell111, - cell112, - cell113, - cell114}; - row19.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row19.Rect"))); - row19.Style = null; - cell115.BackColor = System.Drawing.Color.White; - cell115.BackColor2 = System.Drawing.Color.White; - cell115.DataGridViewInternal = null; - cell115.DisplayIndex = 0; - cell115.ForeColor = System.Drawing.Color.Black; - cell115.IndexInternal = 0; - cell115.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell115.Rect"))); - cell115.Style = null; - cell115.Text = "QTY"; - cell115.Valuetype = arCtl.ListView2.eCellValueType.String; - cell116.BackColor = System.Drawing.Color.White; - cell116.BackColor2 = System.Drawing.Color.White; - cell116.DataGridViewInternal = null; - cell116.DisplayIndex = 0; - cell116.ForeColor = System.Drawing.Color.Black; - cell116.IndexInternal = 0; - cell116.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell116.Rect"))); - cell116.Style = null; - cell116.Text = ""; - cell116.Valuetype = arCtl.ListView2.eCellValueType.String; - cell117.BackColor = System.Drawing.Color.White; - cell117.BackColor2 = System.Drawing.Color.White; - cell117.DataGridViewInternal = null; - cell117.DisplayIndex = 0; - cell117.ForeColor = System.Drawing.Color.Black; - cell117.IndexInternal = 0; - cell117.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell117.Rect"))); - cell117.Style = null; - cell117.Text = "QTY"; - cell117.Valuetype = arCtl.ListView2.eCellValueType.String; - cell118.BackColor = System.Drawing.Color.White; - cell118.BackColor2 = System.Drawing.Color.White; - cell118.DataGridViewInternal = null; - cell118.DisplayIndex = 0; - cell118.ForeColor = System.Drawing.Color.Black; - cell118.IndexInternal = 0; - cell118.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell118.Rect"))); - cell118.Style = null; - cell118.Text = ""; - cell118.Valuetype = arCtl.ListView2.eCellValueType.String; - cell119.BackColor = System.Drawing.Color.White; - cell119.BackColor2 = System.Drawing.Color.White; - cell119.DataGridViewInternal = null; - cell119.DisplayIndex = 0; - cell119.ForeColor = System.Drawing.Color.Black; - cell119.IndexInternal = 0; - cell119.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell119.Rect"))); - cell119.Style = null; - cell119.Text = "QTY"; - cell119.Valuetype = arCtl.ListView2.eCellValueType.String; - cell120.BackColor = System.Drawing.Color.White; - cell120.BackColor2 = System.Drawing.Color.White; - cell120.DataGridViewInternal = null; - cell120.DisplayIndex = 0; - cell120.ForeColor = System.Drawing.Color.Black; - cell120.IndexInternal = 0; - cell120.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell120.Rect"))); - cell120.Style = null; - cell120.Text = ""; - cell120.Valuetype = arCtl.ListView2.eCellValueType.String; - row20.Cells = new arCtl.ListView2.Cell[] { - cell115, - cell116, - cell117, - cell118, - cell119, - cell120}; - row20.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row20.Rect"))); - row20.Style = null; - cell121.BackColor = System.Drawing.Color.White; - cell121.BackColor2 = System.Drawing.Color.White; - cell121.DataGridViewInternal = null; - cell121.DisplayIndex = 0; - cell121.ForeColor = System.Drawing.Color.Black; - cell121.IndexInternal = 0; - cell121.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell121.Rect"))); - cell121.Style = null; - cell121.Text = "VNAME"; - cell121.Valuetype = arCtl.ListView2.eCellValueType.String; - cell122.BackColor = System.Drawing.Color.White; - cell122.BackColor2 = System.Drawing.Color.White; - cell122.DataGridViewInternal = null; - cell122.DisplayIndex = 0; - cell122.ForeColor = System.Drawing.Color.Black; - cell122.IndexInternal = 0; - cell122.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell122.Rect"))); - cell122.Style = null; - cell122.Text = ""; - cell122.Valuetype = arCtl.ListView2.eCellValueType.String; - cell123.BackColor = System.Drawing.Color.White; - cell123.BackColor2 = System.Drawing.Color.White; - cell123.DataGridViewInternal = null; - cell123.DisplayIndex = 0; - cell123.ForeColor = System.Drawing.Color.Black; - cell123.IndexInternal = 0; - cell123.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell123.Rect"))); - cell123.Style = null; - cell123.Text = "VNAME"; - cell123.Valuetype = arCtl.ListView2.eCellValueType.String; - cell124.BackColor = System.Drawing.Color.White; - cell124.BackColor2 = System.Drawing.Color.White; - cell124.DataGridViewInternal = null; - cell124.DisplayIndex = 0; - cell124.ForeColor = System.Drawing.Color.Black; - cell124.IndexInternal = 0; - cell124.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell124.Rect"))); - cell124.Style = null; - cell124.Text = ""; - cell124.Valuetype = arCtl.ListView2.eCellValueType.String; - cell125.BackColor = System.Drawing.Color.White; - cell125.BackColor2 = System.Drawing.Color.White; - cell125.DataGridViewInternal = null; - cell125.DisplayIndex = 0; - cell125.ForeColor = System.Drawing.Color.Black; - cell125.IndexInternal = 0; - cell125.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell125.Rect"))); - cell125.Style = null; - cell125.Text = "VNAME"; - cell125.Valuetype = arCtl.ListView2.eCellValueType.String; - cell126.BackColor = System.Drawing.Color.White; - cell126.BackColor2 = System.Drawing.Color.White; - cell126.DataGridViewInternal = null; - cell126.DisplayIndex = 0; - cell126.ForeColor = System.Drawing.Color.Black; - cell126.IndexInternal = 0; - cell126.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell126.Rect"))); - cell126.Style = null; - cell126.Text = ""; - cell126.Valuetype = arCtl.ListView2.eCellValueType.String; - row21.Cells = new arCtl.ListView2.Cell[] { - cell121, - cell122, - cell123, - cell124, - cell125, - cell126}; - row21.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row21.Rect"))); - row21.Style = null; - cell127.BackColor = System.Drawing.Color.White; - cell127.BackColor2 = System.Drawing.Color.White; - cell127.DataGridViewInternal = null; - cell127.DisplayIndex = 0; - cell127.ForeColor = System.Drawing.Color.Black; - cell127.IndexInternal = 0; - cell127.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell127.Rect"))); - cell127.Style = null; - cell127.Text = "VLOT"; - cell127.Valuetype = arCtl.ListView2.eCellValueType.String; - cell128.BackColor = System.Drawing.Color.White; - cell128.BackColor2 = System.Drawing.Color.White; - cell128.DataGridViewInternal = null; - cell128.DisplayIndex = 0; - cell128.ForeColor = System.Drawing.Color.Black; - cell128.IndexInternal = 0; - cell128.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell128.Rect"))); - cell128.Style = null; - cell128.Text = ""; - cell128.Valuetype = arCtl.ListView2.eCellValueType.String; - cell129.BackColor = System.Drawing.Color.White; - cell129.BackColor2 = System.Drawing.Color.White; - cell129.DataGridViewInternal = null; - cell129.DisplayIndex = 0; - cell129.ForeColor = System.Drawing.Color.Black; - cell129.IndexInternal = 0; - cell129.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell129.Rect"))); - cell129.Style = null; - cell129.Text = "VLOT"; - cell129.Valuetype = arCtl.ListView2.eCellValueType.String; - cell130.BackColor = System.Drawing.Color.White; - cell130.BackColor2 = System.Drawing.Color.White; - cell130.DataGridViewInternal = null; - cell130.DisplayIndex = 0; - cell130.ForeColor = System.Drawing.Color.Black; - cell130.IndexInternal = 0; - cell130.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell130.Rect"))); - cell130.Style = null; - cell130.Text = ""; - cell130.Valuetype = arCtl.ListView2.eCellValueType.String; - cell131.BackColor = System.Drawing.Color.White; - cell131.BackColor2 = System.Drawing.Color.White; - cell131.DataGridViewInternal = null; - cell131.DisplayIndex = 0; - cell131.ForeColor = System.Drawing.Color.Black; - cell131.IndexInternal = 0; - cell131.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell131.Rect"))); - cell131.Style = null; - cell131.Text = "VLOT"; - cell131.Valuetype = arCtl.ListView2.eCellValueType.String; - cell132.BackColor = System.Drawing.Color.White; - cell132.BackColor2 = System.Drawing.Color.White; - cell132.DataGridViewInternal = null; - cell132.DisplayIndex = 0; - cell132.ForeColor = System.Drawing.Color.Black; - cell132.IndexInternal = 0; - cell132.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell132.Rect"))); - cell132.Style = null; - cell132.Text = ""; - cell132.Valuetype = arCtl.ListView2.eCellValueType.String; - row22.Cells = new arCtl.ListView2.Cell[] { - cell127, - cell128, - cell129, - cell130, - cell131, - cell132}; - row22.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row22.Rect"))); - row22.Style = null; - cell133.BackColor = System.Drawing.Color.White; - cell133.BackColor2 = System.Drawing.Color.White; - cell133.DataGridViewInternal = null; - cell133.DisplayIndex = 0; - cell133.ForeColor = System.Drawing.Color.Black; - cell133.IndexInternal = 0; - cell133.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell133.Rect"))); - cell133.Style = null; - cell133.Text = "MFG"; - cell133.Valuetype = arCtl.ListView2.eCellValueType.String; - cell134.BackColor = System.Drawing.Color.White; - cell134.BackColor2 = System.Drawing.Color.White; - cell134.DataGridViewInternal = null; - cell134.DisplayIndex = 0; - cell134.ForeColor = System.Drawing.Color.Black; - cell134.IndexInternal = 0; - cell134.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell134.Rect"))); - cell134.Style = null; - cell134.Text = ""; - cell134.Valuetype = arCtl.ListView2.eCellValueType.String; - cell135.BackColor = System.Drawing.Color.White; - cell135.BackColor2 = System.Drawing.Color.White; - cell135.DataGridViewInternal = null; - cell135.DisplayIndex = 0; - cell135.ForeColor = System.Drawing.Color.Black; - cell135.IndexInternal = 0; - cell135.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell135.Rect"))); - cell135.Style = null; - cell135.Text = "MFG"; - cell135.Valuetype = arCtl.ListView2.eCellValueType.String; - cell136.BackColor = System.Drawing.Color.White; - cell136.BackColor2 = System.Drawing.Color.White; - cell136.DataGridViewInternal = null; - cell136.DisplayIndex = 0; - cell136.ForeColor = System.Drawing.Color.Black; - cell136.IndexInternal = 0; - cell136.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell136.Rect"))); - cell136.Style = null; - cell136.Text = ""; - cell136.Valuetype = arCtl.ListView2.eCellValueType.String; - cell137.BackColor = System.Drawing.Color.White; - cell137.BackColor2 = System.Drawing.Color.White; - cell137.DataGridViewInternal = null; - cell137.DisplayIndex = 0; - cell137.ForeColor = System.Drawing.Color.Black; - cell137.IndexInternal = 0; - cell137.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell137.Rect"))); - cell137.Style = null; - cell137.Text = "MFG"; - cell137.Valuetype = arCtl.ListView2.eCellValueType.String; - cell138.BackColor = System.Drawing.Color.White; - cell138.BackColor2 = System.Drawing.Color.White; - cell138.DataGridViewInternal = null; - cell138.DisplayIndex = 0; - cell138.ForeColor = System.Drawing.Color.Black; - cell138.IndexInternal = 0; - cell138.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell138.Rect"))); - cell138.Style = null; - cell138.Text = ""; - cell138.Valuetype = arCtl.ListView2.eCellValueType.String; - row23.Cells = new arCtl.ListView2.Cell[] { - cell133, - cell134, - cell135, - cell136, - cell137, - cell138}; - row23.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row23.Rect"))); - row23.Style = null; - cell139.BackColor = System.Drawing.Color.White; - cell139.BackColor2 = System.Drawing.Color.White; - cell139.DataGridViewInternal = null; - cell139.DisplayIndex = 0; - cell139.ForeColor = System.Drawing.Color.Black; - cell139.IndexInternal = 0; - cell139.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell139.Rect"))); - cell139.Style = null; - cell139.Text = "PART"; - cell139.Valuetype = arCtl.ListView2.eCellValueType.String; - cell140.BackColor = System.Drawing.Color.White; - cell140.BackColor2 = System.Drawing.Color.White; - cell140.DataGridViewInternal = null; - cell140.DisplayIndex = 0; - cell140.ForeColor = System.Drawing.Color.Black; - cell140.IndexInternal = 0; - cell140.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell140.Rect"))); - cell140.Style = null; - cell140.Text = ""; - cell140.Valuetype = arCtl.ListView2.eCellValueType.String; - cell141.BackColor = System.Drawing.Color.White; - cell141.BackColor2 = System.Drawing.Color.White; - cell141.DataGridViewInternal = null; - cell141.DisplayIndex = 0; - cell141.ForeColor = System.Drawing.Color.Black; - cell141.IndexInternal = 0; - cell141.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell141.Rect"))); - cell141.Style = null; - cell141.Text = "PART"; - cell141.Valuetype = arCtl.ListView2.eCellValueType.String; - cell142.BackColor = System.Drawing.Color.White; - cell142.BackColor2 = System.Drawing.Color.White; - cell142.DataGridViewInternal = null; - cell142.DisplayIndex = 0; - cell142.ForeColor = System.Drawing.Color.Black; - cell142.IndexInternal = 0; - cell142.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell142.Rect"))); - cell142.Style = null; - cell142.Text = ""; - cell142.Valuetype = arCtl.ListView2.eCellValueType.String; - cell143.BackColor = System.Drawing.Color.White; - cell143.BackColor2 = System.Drawing.Color.White; - cell143.DataGridViewInternal = null; - cell143.DisplayIndex = 0; - cell143.ForeColor = System.Drawing.Color.Black; - cell143.IndexInternal = 0; - cell143.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell143.Rect"))); - cell143.Style = null; - cell143.Text = "PART"; - cell143.Valuetype = arCtl.ListView2.eCellValueType.String; - cell144.BackColor = System.Drawing.Color.White; - cell144.BackColor2 = System.Drawing.Color.White; - cell144.DataGridViewInternal = null; - cell144.DisplayIndex = 0; - cell144.ForeColor = System.Drawing.Color.Black; - cell144.IndexInternal = 0; - cell144.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell144.Rect"))); - cell144.Style = null; - cell144.Text = ""; - cell144.Valuetype = arCtl.ListView2.eCellValueType.String; - row24.Cells = new arCtl.ListView2.Cell[] { - cell139, - cell140, - cell141, - cell142, - cell143, - cell144}; - row24.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row24.Rect"))); - row24.Style = null; - cell145.BackColor = System.Drawing.Color.White; - cell145.BackColor2 = System.Drawing.Color.White; - cell145.DataGridViewInternal = null; - cell145.DisplayIndex = 0; - cell145.ForeColor = System.Drawing.Color.Black; - cell145.IndexInternal = 0; - cell145.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell145.Rect"))); - cell145.Style = null; - cell145.Text = "SIZE"; - cell145.Valuetype = arCtl.ListView2.eCellValueType.String; - cell146.BackColor = System.Drawing.Color.White; - cell146.BackColor2 = System.Drawing.Color.White; - cell146.DataGridViewInternal = null; - cell146.DisplayIndex = 0; - cell146.ForeColor = System.Drawing.Color.Black; - cell146.IndexInternal = 0; - cell146.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell146.Rect"))); - cell146.Style = null; - cell146.Text = ""; - cell146.Valuetype = arCtl.ListView2.eCellValueType.String; - cell147.BackColor = System.Drawing.Color.White; - cell147.BackColor2 = System.Drawing.Color.White; - cell147.DataGridViewInternal = null; - cell147.DisplayIndex = 0; - cell147.ForeColor = System.Drawing.Color.Black; - cell147.IndexInternal = 0; - cell147.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell147.Rect"))); - cell147.Style = null; - cell147.Text = "SIZE"; - cell147.Valuetype = arCtl.ListView2.eCellValueType.String; - cell148.BackColor = System.Drawing.Color.White; - cell148.BackColor2 = System.Drawing.Color.White; - cell148.DataGridViewInternal = null; - cell148.DisplayIndex = 0; - cell148.ForeColor = System.Drawing.Color.Black; - cell148.IndexInternal = 0; - cell148.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell148.Rect"))); - cell148.Style = null; - cell148.Text = ""; - cell148.Valuetype = arCtl.ListView2.eCellValueType.String; - cell149.BackColor = System.Drawing.Color.White; - cell149.BackColor2 = System.Drawing.Color.White; - cell149.DataGridViewInternal = null; - cell149.DisplayIndex = 0; - cell149.ForeColor = System.Drawing.Color.Black; - cell149.IndexInternal = 0; - cell149.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell149.Rect"))); - cell149.Style = null; - cell149.Text = "SIZE"; - cell149.Valuetype = arCtl.ListView2.eCellValueType.String; - cell150.BackColor = System.Drawing.Color.White; - cell150.BackColor2 = System.Drawing.Color.White; - cell150.DataGridViewInternal = null; - cell150.DisplayIndex = 0; - cell150.ForeColor = System.Drawing.Color.Black; - cell150.IndexInternal = 0; - cell150.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell150.Rect"))); - cell150.Style = null; - cell150.Text = ""; - cell150.Valuetype = arCtl.ListView2.eCellValueType.String; - row25.Cells = new arCtl.ListView2.Cell[] { - cell145, - cell146, - cell147, - cell148, - cell149, - cell150}; - row25.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row25.Rect"))); - row25.Style = null; - cell151.BackColor = System.Drawing.Color.White; - cell151.BackColor2 = System.Drawing.Color.White; - cell151.DataGridViewInternal = null; - cell151.DisplayIndex = 0; - cell151.ForeColor = System.Drawing.Color.Black; - cell151.IndexInternal = 0; - cell151.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell151.Rect"))); - cell151.Style = null; - cell151.Text = "RID"; - cell151.Valuetype = arCtl.ListView2.eCellValueType.String; - cell152.BackColor = System.Drawing.Color.White; - cell152.BackColor2 = System.Drawing.Color.White; - cell152.DataGridViewInternal = null; - cell152.DisplayIndex = 0; - cell152.ForeColor = System.Drawing.Color.Black; - cell152.IndexInternal = 0; - cell152.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell152.Rect"))); - cell152.Style = null; - cell152.Text = ""; - cell152.Valuetype = arCtl.ListView2.eCellValueType.String; - cell153.BackColor = System.Drawing.Color.White; - cell153.BackColor2 = System.Drawing.Color.White; - cell153.DataGridViewInternal = null; - cell153.DisplayIndex = 0; - cell153.ForeColor = System.Drawing.Color.Black; - cell153.IndexInternal = 0; - cell153.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell153.Rect"))); - cell153.Style = null; - cell153.Text = "DEG"; - cell153.Valuetype = arCtl.ListView2.eCellValueType.String; - cell154.BackColor = System.Drawing.Color.White; - cell154.BackColor2 = System.Drawing.Color.White; - cell154.DataGridViewInternal = null; - cell154.DisplayIndex = 0; - cell154.ForeColor = System.Drawing.Color.Black; - cell154.IndexInternal = 0; - cell154.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell154.Rect"))); - cell154.Style = null; - cell154.Text = ""; - cell154.Valuetype = arCtl.ListView2.eCellValueType.String; - cell155.BackColor = System.Drawing.Color.White; - cell155.BackColor2 = System.Drawing.Color.White; - cell155.DataGridViewInternal = null; - cell155.DisplayIndex = 0; - cell155.ForeColor = System.Drawing.Color.Black; - cell155.IndexInternal = 0; - cell155.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell155.Rect"))); - cell155.Style = null; - cell155.Text = "RID"; - cell155.Valuetype = arCtl.ListView2.eCellValueType.String; - cell156.BackColor = System.Drawing.Color.White; - cell156.BackColor2 = System.Drawing.Color.White; - cell156.DataGridViewInternal = null; - cell156.DisplayIndex = 0; - cell156.ForeColor = System.Drawing.Color.Black; - cell156.IndexInternal = 0; - cell156.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell156.Rect"))); - cell156.Style = null; - cell156.Text = ""; - cell156.Valuetype = arCtl.ListView2.eCellValueType.String; - row26.Cells = new arCtl.ListView2.Cell[] { - cell151, - cell152, - cell153, - cell154, - cell155, - cell156}; - row26.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row26.Rect"))); - row26.Style = null; - cell157.BackColor = System.Drawing.Color.White; - cell157.BackColor2 = System.Drawing.Color.White; - cell157.DataGridViewInternal = null; - cell157.DisplayIndex = 0; - cell157.ForeColor = System.Drawing.Color.Black; - cell157.IndexInternal = 0; - cell157.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell157.Rect"))); - cell157.Style = null; - cell157.Text = "SID"; - cell157.Valuetype = arCtl.ListView2.eCellValueType.String; - cell158.BackColor = System.Drawing.Color.White; - cell158.BackColor2 = System.Drawing.Color.White; - cell158.DataGridViewInternal = null; - cell158.DisplayIndex = 0; - cell158.ForeColor = System.Drawing.Color.Black; - cell158.IndexInternal = 0; - cell158.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell158.Rect"))); - cell158.Style = null; - cell158.Text = ""; - cell158.Valuetype = arCtl.ListView2.eCellValueType.String; - cell159.BackColor = System.Drawing.Color.White; - cell159.BackColor2 = System.Drawing.Color.White; - cell159.DataGridViewInternal = null; - cell159.DisplayIndex = 0; - cell159.ForeColor = System.Drawing.Color.Black; - cell159.IndexInternal = 0; - cell159.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell159.Rect"))); - cell159.Style = null; - cell159.Text = "QR"; - cell159.Valuetype = arCtl.ListView2.eCellValueType.String; - cell160.BackColor = System.Drawing.Color.White; - cell160.BackColor2 = System.Drawing.Color.White; - cell160.DataGridViewInternal = null; - cell160.DisplayIndex = 0; - cell160.ForeColor = System.Drawing.Color.Black; - cell160.IndexInternal = 0; - cell160.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell160.Rect"))); - cell160.Style = null; - cell160.Text = ""; - cell160.Valuetype = arCtl.ListView2.eCellValueType.String; - cell161.BackColor = System.Drawing.Color.White; - cell161.BackColor2 = System.Drawing.Color.White; - cell161.DataGridViewInternal = null; - cell161.DisplayIndex = 0; - cell161.ForeColor = System.Drawing.Color.Black; - cell161.IndexInternal = 0; - cell161.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell161.Rect"))); - cell161.Style = null; - cell161.Text = "SID"; - cell161.Valuetype = arCtl.ListView2.eCellValueType.String; - cell162.BackColor = System.Drawing.Color.White; - cell162.BackColor2 = System.Drawing.Color.White; - cell162.DataGridViewInternal = null; - cell162.DisplayIndex = 0; - cell162.ForeColor = System.Drawing.Color.Black; - cell162.IndexInternal = 0; - cell162.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell162.Rect"))); - cell162.Style = null; - cell162.Text = ""; - cell162.Valuetype = arCtl.ListView2.eCellValueType.String; - row27.Cells = new arCtl.ListView2.Cell[] { - cell157, - cell158, - cell159, - cell160, - cell161, - cell162}; - row27.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row27.Rect"))); - row27.Style = null; - cell163.BackColor = System.Drawing.Color.White; - cell163.BackColor2 = System.Drawing.Color.White; - cell163.DataGridViewInternal = null; - cell163.DisplayIndex = 0; - cell163.ForeColor = System.Drawing.Color.Black; - cell163.IndexInternal = 0; - cell163.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell163.Rect"))); - cell163.Style = null; - cell163.Text = "QTY"; - cell163.Valuetype = arCtl.ListView2.eCellValueType.String; - cell164.BackColor = System.Drawing.Color.White; - cell164.BackColor2 = System.Drawing.Color.White; - cell164.DataGridViewInternal = null; - cell164.DisplayIndex = 0; - cell164.ForeColor = System.Drawing.Color.Black; - cell164.IndexInternal = 0; - cell164.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell164.Rect"))); - cell164.Style = null; - cell164.Text = ""; - cell164.Valuetype = arCtl.ListView2.eCellValueType.String; - cell165.BackColor = System.Drawing.Color.White; - cell165.BackColor2 = System.Drawing.Color.White; - cell165.DataGridViewInternal = null; - cell165.DisplayIndex = 0; - cell165.ForeColor = System.Drawing.Color.Black; - cell165.IndexInternal = 0; - cell165.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell165.Rect"))); - cell165.Style = null; - cell165.Text = ""; - cell165.Valuetype = arCtl.ListView2.eCellValueType.String; - cell166.BackColor = System.Drawing.Color.White; - cell166.BackColor2 = System.Drawing.Color.White; - cell166.DataGridViewInternal = null; - cell166.DisplayIndex = 0; - cell166.ForeColor = System.Drawing.Color.Black; - cell166.IndexInternal = 0; - cell166.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell166.Rect"))); - cell166.Style = null; - cell166.Text = ""; - cell166.Valuetype = arCtl.ListView2.eCellValueType.String; - cell167.BackColor = System.Drawing.Color.White; - cell167.BackColor2 = System.Drawing.Color.White; - cell167.DataGridViewInternal = null; - cell167.DisplayIndex = 0; - cell167.ForeColor = System.Drawing.Color.Black; - cell167.IndexInternal = 0; - cell167.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell167.Rect"))); - cell167.Style = null; - cell167.Text = ""; - cell167.Valuetype = arCtl.ListView2.eCellValueType.String; - cell168.BackColor = System.Drawing.Color.White; - cell168.BackColor2 = System.Drawing.Color.White; - cell168.DataGridViewInternal = null; - cell168.DisplayIndex = 0; - cell168.ForeColor = System.Drawing.Color.Black; - cell168.IndexInternal = 0; - cell168.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell168.Rect"))); - cell168.Style = null; - cell168.Text = ""; - cell168.Valuetype = arCtl.ListView2.eCellValueType.String; - row28.Cells = new arCtl.ListView2.Cell[] { - cell163, - cell164, - cell165, - cell166, - cell167, - cell168}; - row28.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row28.Rect"))); - row28.Style = null; - cell169.BackColor = System.Drawing.Color.White; - cell169.BackColor2 = System.Drawing.Color.White; - cell169.DataGridViewInternal = null; - cell169.DisplayIndex = 0; - cell169.ForeColor = System.Drawing.Color.Black; - cell169.IndexInternal = 0; - cell169.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell169.Rect"))); - cell169.Style = null; - cell169.Text = "MANU"; - cell169.Valuetype = arCtl.ListView2.eCellValueType.String; - cell170.BackColor = System.Drawing.Color.White; - cell170.BackColor2 = System.Drawing.Color.White; - cell170.DataGridViewInternal = null; - cell170.DisplayIndex = 0; - cell170.ForeColor = System.Drawing.Color.Black; - cell170.IndexInternal = 0; - cell170.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell170.Rect"))); - cell170.Style = null; - cell170.Text = ""; - cell170.Valuetype = arCtl.ListView2.eCellValueType.String; - cell171.BackColor = System.Drawing.Color.White; - cell171.BackColor2 = System.Drawing.Color.White; - cell171.DataGridViewInternal = null; - cell171.DisplayIndex = 0; - cell171.ForeColor = System.Drawing.Color.Black; - cell171.IndexInternal = 0; - cell171.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell171.Rect"))); - cell171.Style = null; - cell171.Text = ""; - cell171.Valuetype = arCtl.ListView2.eCellValueType.String; - cell172.BackColor = System.Drawing.Color.White; - cell172.BackColor2 = System.Drawing.Color.White; - cell172.DataGridViewInternal = null; - cell172.DisplayIndex = 0; - cell172.ForeColor = System.Drawing.Color.Black; - cell172.IndexInternal = 0; - cell172.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell172.Rect"))); - cell172.Style = null; - cell172.Text = ""; - cell172.Valuetype = arCtl.ListView2.eCellValueType.String; - cell173.BackColor = System.Drawing.Color.White; - cell173.BackColor2 = System.Drawing.Color.White; - cell173.DataGridViewInternal = null; - cell173.DisplayIndex = 0; - cell173.ForeColor = System.Drawing.Color.Black; - cell173.IndexInternal = 0; - cell173.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell173.Rect"))); - cell173.Style = null; - cell173.Text = ""; - cell173.Valuetype = arCtl.ListView2.eCellValueType.String; - cell174.BackColor = System.Drawing.Color.White; - cell174.BackColor2 = System.Drawing.Color.White; - cell174.DataGridViewInternal = null; - cell174.DisplayIndex = 0; - cell174.ForeColor = System.Drawing.Color.Black; - cell174.IndexInternal = 0; - cell174.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell174.Rect"))); - cell174.Style = null; - cell174.Text = ""; - cell174.Valuetype = arCtl.ListView2.eCellValueType.String; - row29.Cells = new arCtl.ListView2.Cell[] { - cell169, - cell170, - cell171, - cell172, - cell173, - cell174}; - row29.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row29.Rect"))); - row29.Style = null; - cell175.BackColor = System.Drawing.Color.White; - cell175.BackColor2 = System.Drawing.Color.White; - cell175.DataGridViewInternal = null; - cell175.DisplayIndex = 0; - cell175.ForeColor = System.Drawing.Color.Black; - cell175.IndexInternal = 0; - cell175.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell175.Rect"))); - cell175.Style = null; - cell175.Text = "VLOT"; - cell175.Valuetype = arCtl.ListView2.eCellValueType.String; - cell176.BackColor = System.Drawing.Color.White; - cell176.BackColor2 = System.Drawing.Color.White; - cell176.DataGridViewInternal = null; - cell176.DisplayIndex = 0; - cell176.ForeColor = System.Drawing.Color.Black; - cell176.IndexInternal = 0; - cell176.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell176.Rect"))); - cell176.Style = null; - cell176.Text = ""; - cell176.Valuetype = arCtl.ListView2.eCellValueType.String; - cell177.BackColor = System.Drawing.Color.White; - cell177.BackColor2 = System.Drawing.Color.White; - cell177.DataGridViewInternal = null; - cell177.DisplayIndex = 0; - cell177.ForeColor = System.Drawing.Color.Black; - cell177.IndexInternal = 0; - cell177.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell177.Rect"))); - cell177.Style = null; - cell177.Text = ""; - cell177.Valuetype = arCtl.ListView2.eCellValueType.String; - cell178.BackColor = System.Drawing.Color.White; - cell178.BackColor2 = System.Drawing.Color.White; - cell178.DataGridViewInternal = null; - cell178.DisplayIndex = 0; - cell178.ForeColor = System.Drawing.Color.Black; - cell178.IndexInternal = 0; - cell178.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell178.Rect"))); - cell178.Style = null; - cell178.Text = ""; - cell178.Valuetype = arCtl.ListView2.eCellValueType.String; - cell179.BackColor = System.Drawing.Color.White; - cell179.BackColor2 = System.Drawing.Color.White; - cell179.DataGridViewInternal = null; - cell179.DisplayIndex = 0; - cell179.ForeColor = System.Drawing.Color.Black; - cell179.IndexInternal = 0; - cell179.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell179.Rect"))); - cell179.Style = null; - cell179.Text = ""; - cell179.Valuetype = arCtl.ListView2.eCellValueType.String; - cell180.BackColor = System.Drawing.Color.White; - cell180.BackColor2 = System.Drawing.Color.White; - cell180.DataGridViewInternal = null; - cell180.DisplayIndex = 0; - cell180.ForeColor = System.Drawing.Color.Black; - cell180.IndexInternal = 0; - cell180.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell180.Rect"))); - cell180.Style = null; - cell180.Text = ""; - cell180.Valuetype = arCtl.ListView2.eCellValueType.String; - row30.Cells = new arCtl.ListView2.Cell[] { - cell175, - cell176, - cell177, - cell178, - cell179, - cell180}; - row30.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row30.Rect"))); - row30.Style = null; - cell181.BackColor = System.Drawing.Color.White; - cell181.BackColor2 = System.Drawing.Color.White; - cell181.DataGridViewInternal = null; - cell181.DisplayIndex = 0; - cell181.ForeColor = System.Drawing.Color.Black; - cell181.IndexInternal = 0; - cell181.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell181.Rect"))); - cell181.Style = null; - cell181.Text = "MFG"; - cell181.Valuetype = arCtl.ListView2.eCellValueType.String; - cell182.BackColor = System.Drawing.Color.White; - cell182.BackColor2 = System.Drawing.Color.White; - cell182.DataGridViewInternal = null; - cell182.DisplayIndex = 0; - cell182.ForeColor = System.Drawing.Color.Black; - cell182.IndexInternal = 0; - cell182.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell182.Rect"))); - cell182.Style = null; - cell182.Text = ""; - cell182.Valuetype = arCtl.ListView2.eCellValueType.String; - cell183.BackColor = System.Drawing.Color.White; - cell183.BackColor2 = System.Drawing.Color.White; - cell183.DataGridViewInternal = null; - cell183.DisplayIndex = 0; - cell183.ForeColor = System.Drawing.Color.Black; - cell183.IndexInternal = 0; - cell183.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell183.Rect"))); - cell183.Style = null; - cell183.Text = ""; - cell183.Valuetype = arCtl.ListView2.eCellValueType.String; - cell184.BackColor = System.Drawing.Color.White; - cell184.BackColor2 = System.Drawing.Color.White; - cell184.DataGridViewInternal = null; - cell184.DisplayIndex = 0; - cell184.ForeColor = System.Drawing.Color.Black; - cell184.IndexInternal = 0; - cell184.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell184.Rect"))); - cell184.Style = null; - cell184.Text = ""; - cell184.Valuetype = arCtl.ListView2.eCellValueType.String; - cell185.BackColor = System.Drawing.Color.White; - cell185.BackColor2 = System.Drawing.Color.White; - cell185.DataGridViewInternal = null; - cell185.DisplayIndex = 0; - cell185.ForeColor = System.Drawing.Color.Black; - cell185.IndexInternal = 0; - cell185.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell185.Rect"))); - cell185.Style = null; - cell185.Text = ""; - cell185.Valuetype = arCtl.ListView2.eCellValueType.String; - cell186.BackColor = System.Drawing.Color.White; - cell186.BackColor2 = System.Drawing.Color.White; - cell186.DataGridViewInternal = null; - cell186.DisplayIndex = 0; - cell186.ForeColor = System.Drawing.Color.Black; - cell186.IndexInternal = 0; - cell186.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell186.Rect"))); - cell186.Style = null; - cell186.Text = ""; - cell186.Valuetype = arCtl.ListView2.eCellValueType.String; - row31.Cells = new arCtl.ListView2.Cell[] { - cell181, - cell182, - cell183, - cell184, - cell185, - cell186}; - row31.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row31.Rect"))); - row31.Style = null; - cell187.BackColor = System.Drawing.Color.White; - cell187.BackColor2 = System.Drawing.Color.White; - cell187.DataGridViewInternal = null; - cell187.DisplayIndex = 0; - cell187.ForeColor = System.Drawing.Color.Black; - cell187.IndexInternal = 0; - cell187.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell187.Rect"))); - cell187.Style = null; - cell187.Text = "PART"; - cell187.Valuetype = arCtl.ListView2.eCellValueType.String; - cell188.BackColor = System.Drawing.Color.White; - cell188.BackColor2 = System.Drawing.Color.White; - cell188.DataGridViewInternal = null; - cell188.DisplayIndex = 0; - cell188.ForeColor = System.Drawing.Color.Black; - cell188.IndexInternal = 0; - cell188.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell188.Rect"))); - cell188.Style = null; - cell188.Text = ""; - cell188.Valuetype = arCtl.ListView2.eCellValueType.String; - cell189.BackColor = System.Drawing.Color.White; - cell189.BackColor2 = System.Drawing.Color.White; - cell189.DataGridViewInternal = null; - cell189.DisplayIndex = 0; - cell189.ForeColor = System.Drawing.Color.Black; - cell189.IndexInternal = 0; - cell189.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell189.Rect"))); - cell189.Style = null; - cell189.Text = ""; - cell189.Valuetype = arCtl.ListView2.eCellValueType.String; - cell190.BackColor = System.Drawing.Color.White; - cell190.BackColor2 = System.Drawing.Color.White; - cell190.DataGridViewInternal = null; - cell190.DisplayIndex = 0; - cell190.ForeColor = System.Drawing.Color.Black; - cell190.IndexInternal = 0; - cell190.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell190.Rect"))); - cell190.Style = null; - cell190.Text = ""; - cell190.Valuetype = arCtl.ListView2.eCellValueType.String; - cell191.BackColor = System.Drawing.Color.White; - cell191.BackColor2 = System.Drawing.Color.White; - cell191.DataGridViewInternal = null; - cell191.DisplayIndex = 0; - cell191.ForeColor = System.Drawing.Color.Black; - cell191.IndexInternal = 0; - cell191.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell191.Rect"))); - cell191.Style = null; - cell191.Text = "PART"; - cell191.Valuetype = arCtl.ListView2.eCellValueType.String; - cell192.BackColor = System.Drawing.Color.White; - cell192.BackColor2 = System.Drawing.Color.White; - cell192.DataGridViewInternal = null; - cell192.DisplayIndex = 0; - cell192.ForeColor = System.Drawing.Color.Black; - cell192.IndexInternal = 0; - cell192.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell192.Rect"))); - cell192.Style = null; - cell192.Text = ""; - cell192.Valuetype = arCtl.ListView2.eCellValueType.String; - row32.Cells = new arCtl.ListView2.Cell[] { - cell187, - cell188, - cell189, - cell190, - cell191, - cell192}; - row32.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row32.Rect"))); - row32.Style = null; + cell1.BackColor = System.Drawing.Color.White; + cell1.BackColor2 = System.Drawing.Color.White; + cell1.DataGridViewInternal = null; + cell1.DisplayIndex = 0; + cell1.ForeColor = System.Drawing.Color.Black; + cell1.IndexInternal = 0; + cell1.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell1.Rect"))); + cell1.Style = null; + cell1.Text = "LEFT"; + cell1.Valuetype = arCtl.ListView2.eCellValueType.String; + cell2.BackColor = System.Drawing.Color.White; + cell2.BackColor2 = System.Drawing.Color.White; + cell2.DataGridViewInternal = null; + cell2.DisplayIndex = 0; + cell2.ForeColor = System.Drawing.Color.Black; + cell2.IndexInternal = 0; + cell2.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell2.Rect"))); + cell2.Style = null; + cell2.Text = "7/13"; + cell2.Valuetype = arCtl.ListView2.eCellValueType.String; + cell3.BackColor = System.Drawing.Color.White; + cell3.BackColor2 = System.Drawing.Color.White; + cell3.DataGridViewInternal = null; + cell3.DisplayIndex = 0; + cell3.ForeColor = System.Drawing.Color.Black; + cell3.IndexInternal = 0; + cell3.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell3.Rect"))); + cell3.Style = null; + cell3.Text = "PICKER"; + cell3.Valuetype = arCtl.ListView2.eCellValueType.String; + cell4.BackColor = System.Drawing.Color.White; + cell4.BackColor2 = System.Drawing.Color.White; + cell4.DataGridViewInternal = null; + cell4.DisplayIndex = 0; + cell4.ForeColor = System.Drawing.Color.Black; + cell4.IndexInternal = 0; + cell4.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell4.Rect"))); + cell4.Style = null; + cell4.Text = "7/13"; + cell4.Valuetype = arCtl.ListView2.eCellValueType.String; + cell5.BackColor = System.Drawing.Color.White; + cell5.BackColor2 = System.Drawing.Color.White; + cell5.DataGridViewInternal = null; + cell5.DisplayIndex = 0; + cell5.ForeColor = System.Drawing.Color.Black; + cell5.IndexInternal = 0; + cell5.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell5.Rect"))); + cell5.Style = null; + cell5.Text = "RIGHT"; + cell5.Valuetype = arCtl.ListView2.eCellValueType.String; + cell6.BackColor = System.Drawing.Color.White; + cell6.BackColor2 = System.Drawing.Color.White; + cell6.DataGridViewInternal = null; + cell6.DisplayIndex = 0; + cell6.ForeColor = System.Drawing.Color.Black; + cell6.IndexInternal = 0; + cell6.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell6.Rect"))); + cell6.Style = null; + cell6.Text = "7/13"; + cell6.Valuetype = arCtl.ListView2.eCellValueType.String; + row1.Cells = new arCtl.ListView2.Cell[] { + cell1, + cell2, + cell3, + cell4, + cell5, + cell6}; + row1.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row1.Rect"))); + row1.Style = null; + cell7.BackColor = System.Drawing.Color.White; + cell7.BackColor2 = System.Drawing.Color.White; + cell7.DataGridViewInternal = null; + cell7.DisplayIndex = 0; + cell7.ForeColor = System.Drawing.Color.Black; + cell7.IndexInternal = 0; + cell7.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell7.Rect"))); + cell7.Style = null; + cell7.Text = "RID"; + cell7.Valuetype = arCtl.ListView2.eCellValueType.String; + cell8.BackColor = System.Drawing.Color.White; + cell8.BackColor2 = System.Drawing.Color.White; + cell8.DataGridViewInternal = null; + cell8.DisplayIndex = 0; + cell8.ForeColor = System.Drawing.Color.Black; + cell8.IndexInternal = 0; + cell8.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell8.Rect"))); + cell8.Style = null; + cell8.Text = "--"; + cell8.Valuetype = arCtl.ListView2.eCellValueType.String; + cell9.BackColor = System.Drawing.Color.White; + cell9.BackColor2 = System.Drawing.Color.White; + cell9.DataGridViewInternal = null; + cell9.DisplayIndex = 0; + cell9.ForeColor = System.Drawing.Color.Black; + cell9.IndexInternal = 0; + cell9.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell9.Rect"))); + cell9.Style = null; + cell9.Text = "RID"; + cell9.Valuetype = arCtl.ListView2.eCellValueType.String; + cell10.BackColor = System.Drawing.Color.White; + cell10.BackColor2 = System.Drawing.Color.White; + cell10.DataGridViewInternal = null; + cell10.DisplayIndex = 0; + cell10.ForeColor = System.Drawing.Color.Black; + cell10.IndexInternal = 0; + cell10.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell10.Rect"))); + cell10.Style = null; + cell10.Text = "--"; + cell10.Valuetype = arCtl.ListView2.eCellValueType.String; + cell11.BackColor = System.Drawing.Color.White; + cell11.BackColor2 = System.Drawing.Color.White; + cell11.DataGridViewInternal = null; + cell11.DisplayIndex = 0; + cell11.ForeColor = System.Drawing.Color.Black; + cell11.IndexInternal = 0; + cell11.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell11.Rect"))); + cell11.Style = null; + cell11.Text = "RID"; + cell11.Valuetype = arCtl.ListView2.eCellValueType.String; + cell12.BackColor = System.Drawing.Color.White; + cell12.BackColor2 = System.Drawing.Color.White; + cell12.DataGridViewInternal = null; + cell12.DisplayIndex = 0; + cell12.ForeColor = System.Drawing.Color.Black; + cell12.IndexInternal = 0; + cell12.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell12.Rect"))); + cell12.Style = null; + cell12.Text = "--"; + cell12.Valuetype = arCtl.ListView2.eCellValueType.String; + row2.Cells = new arCtl.ListView2.Cell[] { + cell7, + cell8, + cell9, + cell10, + cell11, + cell12}; + row2.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row2.Rect"))); + row2.Style = null; + cell13.BackColor = System.Drawing.Color.White; + cell13.BackColor2 = System.Drawing.Color.White; + cell13.DataGridViewInternal = null; + cell13.DisplayIndex = 0; + cell13.ForeColor = System.Drawing.Color.Black; + cell13.IndexInternal = 0; + cell13.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell13.Rect"))); + cell13.Style = null; + cell13.Text = "SID"; + cell13.Valuetype = arCtl.ListView2.eCellValueType.String; + cell14.BackColor = System.Drawing.Color.White; + cell14.BackColor2 = System.Drawing.Color.White; + cell14.DataGridViewInternal = null; + cell14.DisplayIndex = 0; + cell14.ForeColor = System.Drawing.Color.Black; + cell14.IndexInternal = 0; + cell14.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell14.Rect"))); + cell14.Style = null; + cell14.Text = ""; + cell14.Valuetype = arCtl.ListView2.eCellValueType.String; + cell15.BackColor = System.Drawing.Color.White; + cell15.BackColor2 = System.Drawing.Color.White; + cell15.DataGridViewInternal = null; + cell15.DisplayIndex = 0; + cell15.ForeColor = System.Drawing.Color.Black; + cell15.IndexInternal = 0; + cell15.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell15.Rect"))); + cell15.Style = null; + cell15.Text = "SID"; + cell15.Valuetype = arCtl.ListView2.eCellValueType.String; + cell16.BackColor = System.Drawing.Color.White; + cell16.BackColor2 = System.Drawing.Color.White; + cell16.DataGridViewInternal = null; + cell16.DisplayIndex = 0; + cell16.ForeColor = System.Drawing.Color.Black; + cell16.IndexInternal = 0; + cell16.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell16.Rect"))); + cell16.Style = null; + cell16.Text = ""; + cell16.Valuetype = arCtl.ListView2.eCellValueType.String; + cell17.BackColor = System.Drawing.Color.White; + cell17.BackColor2 = System.Drawing.Color.White; + cell17.DataGridViewInternal = null; + cell17.DisplayIndex = 0; + cell17.ForeColor = System.Drawing.Color.Black; + cell17.IndexInternal = 0; + cell17.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell17.Rect"))); + cell17.Style = null; + cell17.Text = "SID"; + cell17.Valuetype = arCtl.ListView2.eCellValueType.String; + cell18.BackColor = System.Drawing.Color.White; + cell18.BackColor2 = System.Drawing.Color.White; + cell18.DataGridViewInternal = null; + cell18.DisplayIndex = 0; + cell18.ForeColor = System.Drawing.Color.Black; + cell18.IndexInternal = 0; + cell18.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell18.Rect"))); + cell18.Style = null; + cell18.Text = ""; + cell18.Valuetype = arCtl.ListView2.eCellValueType.String; + row3.Cells = new arCtl.ListView2.Cell[] { + cell13, + cell14, + cell15, + cell16, + cell17, + cell18}; + row3.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row3.Rect"))); + row3.Style = null; + cell19.BackColor = System.Drawing.Color.White; + cell19.BackColor2 = System.Drawing.Color.White; + cell19.DataGridViewInternal = null; + cell19.DisplayIndex = 0; + cell19.ForeColor = System.Drawing.Color.Black; + cell19.IndexInternal = 0; + cell19.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell19.Rect"))); + cell19.Style = null; + cell19.Text = "QTY"; + cell19.Valuetype = arCtl.ListView2.eCellValueType.String; + cell20.BackColor = System.Drawing.Color.White; + cell20.BackColor2 = System.Drawing.Color.White; + cell20.DataGridViewInternal = null; + cell20.DisplayIndex = 0; + cell20.ForeColor = System.Drawing.Color.Black; + cell20.IndexInternal = 0; + cell20.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell20.Rect"))); + cell20.Style = null; + cell20.Text = ""; + cell20.Valuetype = arCtl.ListView2.eCellValueType.String; + cell21.BackColor = System.Drawing.Color.White; + cell21.BackColor2 = System.Drawing.Color.White; + cell21.DataGridViewInternal = null; + cell21.DisplayIndex = 0; + cell21.ForeColor = System.Drawing.Color.Black; + cell21.IndexInternal = 0; + cell21.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell21.Rect"))); + cell21.Style = null; + cell21.Text = "QTY"; + cell21.Valuetype = arCtl.ListView2.eCellValueType.String; + cell22.BackColor = System.Drawing.Color.White; + cell22.BackColor2 = System.Drawing.Color.White; + cell22.DataGridViewInternal = null; + cell22.DisplayIndex = 0; + cell22.ForeColor = System.Drawing.Color.Black; + cell22.IndexInternal = 0; + cell22.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell22.Rect"))); + cell22.Style = null; + cell22.Text = ""; + cell22.Valuetype = arCtl.ListView2.eCellValueType.String; + cell23.BackColor = System.Drawing.Color.White; + cell23.BackColor2 = System.Drawing.Color.White; + cell23.DataGridViewInternal = null; + cell23.DisplayIndex = 0; + cell23.ForeColor = System.Drawing.Color.Black; + cell23.IndexInternal = 0; + cell23.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell23.Rect"))); + cell23.Style = null; + cell23.Text = "QTY"; + cell23.Valuetype = arCtl.ListView2.eCellValueType.String; + cell24.BackColor = System.Drawing.Color.White; + cell24.BackColor2 = System.Drawing.Color.White; + cell24.DataGridViewInternal = null; + cell24.DisplayIndex = 0; + cell24.ForeColor = System.Drawing.Color.Black; + cell24.IndexInternal = 0; + cell24.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell24.Rect"))); + cell24.Style = null; + cell24.Text = ""; + cell24.Valuetype = arCtl.ListView2.eCellValueType.String; + row4.Cells = new arCtl.ListView2.Cell[] { + cell19, + cell20, + cell21, + cell22, + cell23, + cell24}; + row4.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row4.Rect"))); + row4.Style = null; + cell25.BackColor = System.Drawing.Color.White; + cell25.BackColor2 = System.Drawing.Color.White; + cell25.DataGridViewInternal = null; + cell25.DisplayIndex = 0; + cell25.ForeColor = System.Drawing.Color.Black; + cell25.IndexInternal = 0; + cell25.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell25.Rect"))); + cell25.Style = null; + cell25.Text = "VNAME"; + cell25.Valuetype = arCtl.ListView2.eCellValueType.String; + cell26.BackColor = System.Drawing.Color.White; + cell26.BackColor2 = System.Drawing.Color.White; + cell26.DataGridViewInternal = null; + cell26.DisplayIndex = 0; + cell26.ForeColor = System.Drawing.Color.Black; + cell26.IndexInternal = 0; + cell26.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell26.Rect"))); + cell26.Style = null; + cell26.Text = ""; + cell26.Valuetype = arCtl.ListView2.eCellValueType.String; + cell27.BackColor = System.Drawing.Color.White; + cell27.BackColor2 = System.Drawing.Color.White; + cell27.DataGridViewInternal = null; + cell27.DisplayIndex = 0; + cell27.ForeColor = System.Drawing.Color.Black; + cell27.IndexInternal = 0; + cell27.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell27.Rect"))); + cell27.Style = null; + cell27.Text = "VNAME"; + cell27.Valuetype = arCtl.ListView2.eCellValueType.String; + cell28.BackColor = System.Drawing.Color.White; + cell28.BackColor2 = System.Drawing.Color.White; + cell28.DataGridViewInternal = null; + cell28.DisplayIndex = 0; + cell28.ForeColor = System.Drawing.Color.Black; + cell28.IndexInternal = 0; + cell28.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell28.Rect"))); + cell28.Style = null; + cell28.Text = ""; + cell28.Valuetype = arCtl.ListView2.eCellValueType.String; + cell29.BackColor = System.Drawing.Color.White; + cell29.BackColor2 = System.Drawing.Color.White; + cell29.DataGridViewInternal = null; + cell29.DisplayIndex = 0; + cell29.ForeColor = System.Drawing.Color.Black; + cell29.IndexInternal = 0; + cell29.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell29.Rect"))); + cell29.Style = null; + cell29.Text = "VNAME"; + cell29.Valuetype = arCtl.ListView2.eCellValueType.String; + cell30.BackColor = System.Drawing.Color.White; + cell30.BackColor2 = System.Drawing.Color.White; + cell30.DataGridViewInternal = null; + cell30.DisplayIndex = 0; + cell30.ForeColor = System.Drawing.Color.Black; + cell30.IndexInternal = 0; + cell30.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell30.Rect"))); + cell30.Style = null; + cell30.Text = ""; + cell30.Valuetype = arCtl.ListView2.eCellValueType.String; + row5.Cells = new arCtl.ListView2.Cell[] { + cell25, + cell26, + cell27, + cell28, + cell29, + cell30}; + row5.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row5.Rect"))); + row5.Style = null; + cell31.BackColor = System.Drawing.Color.White; + cell31.BackColor2 = System.Drawing.Color.White; + cell31.DataGridViewInternal = null; + cell31.DisplayIndex = 0; + cell31.ForeColor = System.Drawing.Color.Black; + cell31.IndexInternal = 0; + cell31.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell31.Rect"))); + cell31.Style = null; + cell31.Text = "VLOT"; + cell31.Valuetype = arCtl.ListView2.eCellValueType.String; + cell32.BackColor = System.Drawing.Color.White; + cell32.BackColor2 = System.Drawing.Color.White; + cell32.DataGridViewInternal = null; + cell32.DisplayIndex = 0; + cell32.ForeColor = System.Drawing.Color.Black; + cell32.IndexInternal = 0; + cell32.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell32.Rect"))); + cell32.Style = null; + cell32.Text = ""; + cell32.Valuetype = arCtl.ListView2.eCellValueType.String; + cell33.BackColor = System.Drawing.Color.White; + cell33.BackColor2 = System.Drawing.Color.White; + cell33.DataGridViewInternal = null; + cell33.DisplayIndex = 0; + cell33.ForeColor = System.Drawing.Color.Black; + cell33.IndexInternal = 0; + cell33.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell33.Rect"))); + cell33.Style = null; + cell33.Text = "VLOT"; + cell33.Valuetype = arCtl.ListView2.eCellValueType.String; + cell34.BackColor = System.Drawing.Color.White; + cell34.BackColor2 = System.Drawing.Color.White; + cell34.DataGridViewInternal = null; + cell34.DisplayIndex = 0; + cell34.ForeColor = System.Drawing.Color.Black; + cell34.IndexInternal = 0; + cell34.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell34.Rect"))); + cell34.Style = null; + cell34.Text = ""; + cell34.Valuetype = arCtl.ListView2.eCellValueType.String; + cell35.BackColor = System.Drawing.Color.White; + cell35.BackColor2 = System.Drawing.Color.White; + cell35.DataGridViewInternal = null; + cell35.DisplayIndex = 0; + cell35.ForeColor = System.Drawing.Color.Black; + cell35.IndexInternal = 0; + cell35.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell35.Rect"))); + cell35.Style = null; + cell35.Text = "VLOT"; + cell35.Valuetype = arCtl.ListView2.eCellValueType.String; + cell36.BackColor = System.Drawing.Color.White; + cell36.BackColor2 = System.Drawing.Color.White; + cell36.DataGridViewInternal = null; + cell36.DisplayIndex = 0; + cell36.ForeColor = System.Drawing.Color.Black; + cell36.IndexInternal = 0; + cell36.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell36.Rect"))); + cell36.Style = null; + cell36.Text = ""; + cell36.Valuetype = arCtl.ListView2.eCellValueType.String; + row6.Cells = new arCtl.ListView2.Cell[] { + cell31, + cell32, + cell33, + cell34, + cell35, + cell36}; + row6.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row6.Rect"))); + row6.Style = null; + cell37.BackColor = System.Drawing.Color.White; + cell37.BackColor2 = System.Drawing.Color.White; + cell37.DataGridViewInternal = null; + cell37.DisplayIndex = 0; + cell37.ForeColor = System.Drawing.Color.Black; + cell37.IndexInternal = 0; + cell37.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell37.Rect"))); + cell37.Style = null; + cell37.Text = "MFG"; + cell37.Valuetype = arCtl.ListView2.eCellValueType.String; + cell38.BackColor = System.Drawing.Color.White; + cell38.BackColor2 = System.Drawing.Color.White; + cell38.DataGridViewInternal = null; + cell38.DisplayIndex = 0; + cell38.ForeColor = System.Drawing.Color.Black; + cell38.IndexInternal = 0; + cell38.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell38.Rect"))); + cell38.Style = null; + cell38.Text = ""; + cell38.Valuetype = arCtl.ListView2.eCellValueType.String; + cell39.BackColor = System.Drawing.Color.White; + cell39.BackColor2 = System.Drawing.Color.White; + cell39.DataGridViewInternal = null; + cell39.DisplayIndex = 0; + cell39.ForeColor = System.Drawing.Color.Black; + cell39.IndexInternal = 0; + cell39.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell39.Rect"))); + cell39.Style = null; + cell39.Text = "MFG"; + cell39.Valuetype = arCtl.ListView2.eCellValueType.String; + cell40.BackColor = System.Drawing.Color.White; + cell40.BackColor2 = System.Drawing.Color.White; + cell40.DataGridViewInternal = null; + cell40.DisplayIndex = 0; + cell40.ForeColor = System.Drawing.Color.Black; + cell40.IndexInternal = 0; + cell40.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell40.Rect"))); + cell40.Style = null; + cell40.Text = ""; + cell40.Valuetype = arCtl.ListView2.eCellValueType.String; + cell41.BackColor = System.Drawing.Color.White; + cell41.BackColor2 = System.Drawing.Color.White; + cell41.DataGridViewInternal = null; + cell41.DisplayIndex = 0; + cell41.ForeColor = System.Drawing.Color.Black; + cell41.IndexInternal = 0; + cell41.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell41.Rect"))); + cell41.Style = null; + cell41.Text = "MFG"; + cell41.Valuetype = arCtl.ListView2.eCellValueType.String; + cell42.BackColor = System.Drawing.Color.White; + cell42.BackColor2 = System.Drawing.Color.White; + cell42.DataGridViewInternal = null; + cell42.DisplayIndex = 0; + cell42.ForeColor = System.Drawing.Color.Black; + cell42.IndexInternal = 0; + cell42.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell42.Rect"))); + cell42.Style = null; + cell42.Text = ""; + cell42.Valuetype = arCtl.ListView2.eCellValueType.String; + row7.Cells = new arCtl.ListView2.Cell[] { + cell37, + cell38, + cell39, + cell40, + cell41, + cell42}; + row7.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row7.Rect"))); + row7.Style = null; + cell43.BackColor = System.Drawing.Color.White; + cell43.BackColor2 = System.Drawing.Color.White; + cell43.DataGridViewInternal = null; + cell43.DisplayIndex = 0; + cell43.ForeColor = System.Drawing.Color.Black; + cell43.IndexInternal = 0; + cell43.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell43.Rect"))); + cell43.Style = null; + cell43.Text = "PART"; + cell43.Valuetype = arCtl.ListView2.eCellValueType.String; + cell44.BackColor = System.Drawing.Color.White; + cell44.BackColor2 = System.Drawing.Color.White; + cell44.DataGridViewInternal = null; + cell44.DisplayIndex = 0; + cell44.ForeColor = System.Drawing.Color.Black; + cell44.IndexInternal = 0; + cell44.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell44.Rect"))); + cell44.Style = null; + cell44.Text = ""; + cell44.Valuetype = arCtl.ListView2.eCellValueType.String; + cell45.BackColor = System.Drawing.Color.White; + cell45.BackColor2 = System.Drawing.Color.White; + cell45.DataGridViewInternal = null; + cell45.DisplayIndex = 0; + cell45.ForeColor = System.Drawing.Color.Black; + cell45.IndexInternal = 0; + cell45.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell45.Rect"))); + cell45.Style = null; + cell45.Text = "PART"; + cell45.Valuetype = arCtl.ListView2.eCellValueType.String; + cell46.BackColor = System.Drawing.Color.White; + cell46.BackColor2 = System.Drawing.Color.White; + cell46.DataGridViewInternal = null; + cell46.DisplayIndex = 0; + cell46.ForeColor = System.Drawing.Color.Black; + cell46.IndexInternal = 0; + cell46.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell46.Rect"))); + cell46.Style = null; + cell46.Text = ""; + cell46.Valuetype = arCtl.ListView2.eCellValueType.String; + cell47.BackColor = System.Drawing.Color.White; + cell47.BackColor2 = System.Drawing.Color.White; + cell47.DataGridViewInternal = null; + cell47.DisplayIndex = 0; + cell47.ForeColor = System.Drawing.Color.Black; + cell47.IndexInternal = 0; + cell47.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell47.Rect"))); + cell47.Style = null; + cell47.Text = "PART"; + cell47.Valuetype = arCtl.ListView2.eCellValueType.String; + cell48.BackColor = System.Drawing.Color.White; + cell48.BackColor2 = System.Drawing.Color.White; + cell48.DataGridViewInternal = null; + cell48.DisplayIndex = 0; + cell48.ForeColor = System.Drawing.Color.Black; + cell48.IndexInternal = 0; + cell48.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell48.Rect"))); + cell48.Style = null; + cell48.Text = ""; + cell48.Valuetype = arCtl.ListView2.eCellValueType.String; + row8.Cells = new arCtl.ListView2.Cell[] { + cell43, + cell44, + cell45, + cell46, + cell47, + cell48}; + row8.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row8.Rect"))); + row8.Style = null; + cell49.BackColor = System.Drawing.Color.White; + cell49.BackColor2 = System.Drawing.Color.White; + cell49.DataGridViewInternal = null; + cell49.DisplayIndex = 0; + cell49.ForeColor = System.Drawing.Color.Black; + cell49.IndexInternal = 0; + cell49.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell49.Rect"))); + cell49.Style = null; + cell49.Text = "SIZE"; + cell49.Valuetype = arCtl.ListView2.eCellValueType.String; + cell50.BackColor = System.Drawing.Color.White; + cell50.BackColor2 = System.Drawing.Color.White; + cell50.DataGridViewInternal = null; + cell50.DisplayIndex = 0; + cell50.ForeColor = System.Drawing.Color.Black; + cell50.IndexInternal = 0; + cell50.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell50.Rect"))); + cell50.Style = null; + cell50.Text = ""; + cell50.Valuetype = arCtl.ListView2.eCellValueType.String; + cell51.BackColor = System.Drawing.Color.White; + cell51.BackColor2 = System.Drawing.Color.White; + cell51.DataGridViewInternal = null; + cell51.DisplayIndex = 0; + cell51.ForeColor = System.Drawing.Color.Black; + cell51.IndexInternal = 0; + cell51.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell51.Rect"))); + cell51.Style = null; + cell51.Text = "SIZE"; + cell51.Valuetype = arCtl.ListView2.eCellValueType.String; + cell52.BackColor = System.Drawing.Color.White; + cell52.BackColor2 = System.Drawing.Color.White; + cell52.DataGridViewInternal = null; + cell52.DisplayIndex = 0; + cell52.ForeColor = System.Drawing.Color.Black; + cell52.IndexInternal = 0; + cell52.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell52.Rect"))); + cell52.Style = null; + cell52.Text = ""; + cell52.Valuetype = arCtl.ListView2.eCellValueType.String; + cell53.BackColor = System.Drawing.Color.White; + cell53.BackColor2 = System.Drawing.Color.White; + cell53.DataGridViewInternal = null; + cell53.DisplayIndex = 0; + cell53.ForeColor = System.Drawing.Color.Black; + cell53.IndexInternal = 0; + cell53.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell53.Rect"))); + cell53.Style = null; + cell53.Text = "SIZE"; + cell53.Valuetype = arCtl.ListView2.eCellValueType.String; + cell54.BackColor = System.Drawing.Color.White; + cell54.BackColor2 = System.Drawing.Color.White; + cell54.DataGridViewInternal = null; + cell54.DisplayIndex = 0; + cell54.ForeColor = System.Drawing.Color.Black; + cell54.IndexInternal = 0; + cell54.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell54.Rect"))); + cell54.Style = null; + cell54.Text = ""; + cell54.Valuetype = arCtl.ListView2.eCellValueType.String; + row9.Cells = new arCtl.ListView2.Cell[] { + cell49, + cell50, + cell51, + cell52, + cell53, + cell54}; + row9.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row9.Rect"))); + row9.Style = null; + cell55.BackColor = System.Drawing.Color.White; + cell55.BackColor2 = System.Drawing.Color.White; + cell55.DataGridViewInternal = null; + cell55.DisplayIndex = 0; + cell55.ForeColor = System.Drawing.Color.Black; + cell55.IndexInternal = 0; + cell55.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell55.Rect"))); + cell55.Style = null; + cell55.Text = "RID"; + cell55.Valuetype = arCtl.ListView2.eCellValueType.String; + cell56.BackColor = System.Drawing.Color.White; + cell56.BackColor2 = System.Drawing.Color.White; + cell56.DataGridViewInternal = null; + cell56.DisplayIndex = 0; + cell56.ForeColor = System.Drawing.Color.Black; + cell56.IndexInternal = 0; + cell56.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell56.Rect"))); + cell56.Style = null; + cell56.Text = ""; + cell56.Valuetype = arCtl.ListView2.eCellValueType.String; + cell57.BackColor = System.Drawing.Color.White; + cell57.BackColor2 = System.Drawing.Color.White; + cell57.DataGridViewInternal = null; + cell57.DisplayIndex = 0; + cell57.ForeColor = System.Drawing.Color.Black; + cell57.IndexInternal = 0; + cell57.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell57.Rect"))); + cell57.Style = null; + cell57.Text = "DEG"; + cell57.Valuetype = arCtl.ListView2.eCellValueType.String; + cell58.BackColor = System.Drawing.Color.White; + cell58.BackColor2 = System.Drawing.Color.White; + cell58.DataGridViewInternal = null; + cell58.DisplayIndex = 0; + cell58.ForeColor = System.Drawing.Color.Black; + cell58.IndexInternal = 0; + cell58.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell58.Rect"))); + cell58.Style = null; + cell58.Text = ""; + cell58.Valuetype = arCtl.ListView2.eCellValueType.String; + cell59.BackColor = System.Drawing.Color.White; + cell59.BackColor2 = System.Drawing.Color.White; + cell59.DataGridViewInternal = null; + cell59.DisplayIndex = 0; + cell59.ForeColor = System.Drawing.Color.Black; + cell59.IndexInternal = 0; + cell59.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell59.Rect"))); + cell59.Style = null; + cell59.Text = "RID"; + cell59.Valuetype = arCtl.ListView2.eCellValueType.String; + cell60.BackColor = System.Drawing.Color.White; + cell60.BackColor2 = System.Drawing.Color.White; + cell60.DataGridViewInternal = null; + cell60.DisplayIndex = 0; + cell60.ForeColor = System.Drawing.Color.Black; + cell60.IndexInternal = 0; + cell60.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell60.Rect"))); + cell60.Style = null; + cell60.Text = ""; + cell60.Valuetype = arCtl.ListView2.eCellValueType.String; + row10.Cells = new arCtl.ListView2.Cell[] { + cell55, + cell56, + cell57, + cell58, + cell59, + cell60}; + row10.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row10.Rect"))); + row10.Style = null; + cell61.BackColor = System.Drawing.Color.White; + cell61.BackColor2 = System.Drawing.Color.White; + cell61.DataGridViewInternal = null; + cell61.DisplayIndex = 0; + cell61.ForeColor = System.Drawing.Color.Black; + cell61.IndexInternal = 0; + cell61.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell61.Rect"))); + cell61.Style = null; + cell61.Text = "SID"; + cell61.Valuetype = arCtl.ListView2.eCellValueType.String; + cell62.BackColor = System.Drawing.Color.White; + cell62.BackColor2 = System.Drawing.Color.White; + cell62.DataGridViewInternal = null; + cell62.DisplayIndex = 0; + cell62.ForeColor = System.Drawing.Color.Black; + cell62.IndexInternal = 0; + cell62.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell62.Rect"))); + cell62.Style = null; + cell62.Text = ""; + cell62.Valuetype = arCtl.ListView2.eCellValueType.String; + cell63.BackColor = System.Drawing.Color.White; + cell63.BackColor2 = System.Drawing.Color.White; + cell63.DataGridViewInternal = null; + cell63.DisplayIndex = 0; + cell63.ForeColor = System.Drawing.Color.Black; + cell63.IndexInternal = 0; + cell63.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell63.Rect"))); + cell63.Style = null; + cell63.Text = "QR"; + cell63.Valuetype = arCtl.ListView2.eCellValueType.String; + cell64.BackColor = System.Drawing.Color.White; + cell64.BackColor2 = System.Drawing.Color.White; + cell64.DataGridViewInternal = null; + cell64.DisplayIndex = 0; + cell64.ForeColor = System.Drawing.Color.Black; + cell64.IndexInternal = 0; + cell64.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell64.Rect"))); + cell64.Style = null; + cell64.Text = ""; + cell64.Valuetype = arCtl.ListView2.eCellValueType.String; + cell65.BackColor = System.Drawing.Color.White; + cell65.BackColor2 = System.Drawing.Color.White; + cell65.DataGridViewInternal = null; + cell65.DisplayIndex = 0; + cell65.ForeColor = System.Drawing.Color.Black; + cell65.IndexInternal = 0; + cell65.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell65.Rect"))); + cell65.Style = null; + cell65.Text = "SID"; + cell65.Valuetype = arCtl.ListView2.eCellValueType.String; + cell66.BackColor = System.Drawing.Color.White; + cell66.BackColor2 = System.Drawing.Color.White; + cell66.DataGridViewInternal = null; + cell66.DisplayIndex = 0; + cell66.ForeColor = System.Drawing.Color.Black; + cell66.IndexInternal = 0; + cell66.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell66.Rect"))); + cell66.Style = null; + cell66.Text = ""; + cell66.Valuetype = arCtl.ListView2.eCellValueType.String; + row11.Cells = new arCtl.ListView2.Cell[] { + cell61, + cell62, + cell63, + cell64, + cell65, + cell66}; + row11.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row11.Rect"))); + row11.Style = null; + cell67.BackColor = System.Drawing.Color.White; + cell67.BackColor2 = System.Drawing.Color.White; + cell67.DataGridViewInternal = null; + cell67.DisplayIndex = 0; + cell67.ForeColor = System.Drawing.Color.Black; + cell67.IndexInternal = 0; + cell67.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell67.Rect"))); + cell67.Style = null; + cell67.Text = "QTY"; + cell67.Valuetype = arCtl.ListView2.eCellValueType.String; + cell68.BackColor = System.Drawing.Color.White; + cell68.BackColor2 = System.Drawing.Color.White; + cell68.DataGridViewInternal = null; + cell68.DisplayIndex = 0; + cell68.ForeColor = System.Drawing.Color.Black; + cell68.IndexInternal = 0; + cell68.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell68.Rect"))); + cell68.Style = null; + cell68.Text = ""; + cell68.Valuetype = arCtl.ListView2.eCellValueType.String; + cell69.BackColor = System.Drawing.Color.White; + cell69.BackColor2 = System.Drawing.Color.White; + cell69.DataGridViewInternal = null; + cell69.DisplayIndex = 0; + cell69.ForeColor = System.Drawing.Color.Black; + cell69.IndexInternal = 0; + cell69.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell69.Rect"))); + cell69.Style = null; + cell69.Text = ""; + cell69.Valuetype = arCtl.ListView2.eCellValueType.String; + cell70.BackColor = System.Drawing.Color.White; + cell70.BackColor2 = System.Drawing.Color.White; + cell70.DataGridViewInternal = null; + cell70.DisplayIndex = 0; + cell70.ForeColor = System.Drawing.Color.Black; + cell70.IndexInternal = 0; + cell70.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell70.Rect"))); + cell70.Style = null; + cell70.Text = ""; + cell70.Valuetype = arCtl.ListView2.eCellValueType.String; + cell71.BackColor = System.Drawing.Color.White; + cell71.BackColor2 = System.Drawing.Color.White; + cell71.DataGridViewInternal = null; + cell71.DisplayIndex = 0; + cell71.ForeColor = System.Drawing.Color.Black; + cell71.IndexInternal = 0; + cell71.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell71.Rect"))); + cell71.Style = null; + cell71.Text = ""; + cell71.Valuetype = arCtl.ListView2.eCellValueType.String; + cell72.BackColor = System.Drawing.Color.White; + cell72.BackColor2 = System.Drawing.Color.White; + cell72.DataGridViewInternal = null; + cell72.DisplayIndex = 0; + cell72.ForeColor = System.Drawing.Color.Black; + cell72.IndexInternal = 0; + cell72.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell72.Rect"))); + cell72.Style = null; + cell72.Text = ""; + cell72.Valuetype = arCtl.ListView2.eCellValueType.String; + row12.Cells = new arCtl.ListView2.Cell[] { + cell67, + cell68, + cell69, + cell70, + cell71, + cell72}; + row12.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row12.Rect"))); + row12.Style = null; + cell73.BackColor = System.Drawing.Color.White; + cell73.BackColor2 = System.Drawing.Color.White; + cell73.DataGridViewInternal = null; + cell73.DisplayIndex = 0; + cell73.ForeColor = System.Drawing.Color.Black; + cell73.IndexInternal = 0; + cell73.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell73.Rect"))); + cell73.Style = null; + cell73.Text = "MANU"; + cell73.Valuetype = arCtl.ListView2.eCellValueType.String; + cell74.BackColor = System.Drawing.Color.White; + cell74.BackColor2 = System.Drawing.Color.White; + cell74.DataGridViewInternal = null; + cell74.DisplayIndex = 0; + cell74.ForeColor = System.Drawing.Color.Black; + cell74.IndexInternal = 0; + cell74.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell74.Rect"))); + cell74.Style = null; + cell74.Text = ""; + cell74.Valuetype = arCtl.ListView2.eCellValueType.String; + cell75.BackColor = System.Drawing.Color.White; + cell75.BackColor2 = System.Drawing.Color.White; + cell75.DataGridViewInternal = null; + cell75.DisplayIndex = 0; + cell75.ForeColor = System.Drawing.Color.Black; + cell75.IndexInternal = 0; + cell75.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell75.Rect"))); + cell75.Style = null; + cell75.Text = ""; + cell75.Valuetype = arCtl.ListView2.eCellValueType.String; + cell76.BackColor = System.Drawing.Color.White; + cell76.BackColor2 = System.Drawing.Color.White; + cell76.DataGridViewInternal = null; + cell76.DisplayIndex = 0; + cell76.ForeColor = System.Drawing.Color.Black; + cell76.IndexInternal = 0; + cell76.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell76.Rect"))); + cell76.Style = null; + cell76.Text = ""; + cell76.Valuetype = arCtl.ListView2.eCellValueType.String; + cell77.BackColor = System.Drawing.Color.White; + cell77.BackColor2 = System.Drawing.Color.White; + cell77.DataGridViewInternal = null; + cell77.DisplayIndex = 0; + cell77.ForeColor = System.Drawing.Color.Black; + cell77.IndexInternal = 0; + cell77.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell77.Rect"))); + cell77.Style = null; + cell77.Text = ""; + cell77.Valuetype = arCtl.ListView2.eCellValueType.String; + cell78.BackColor = System.Drawing.Color.White; + cell78.BackColor2 = System.Drawing.Color.White; + cell78.DataGridViewInternal = null; + cell78.DisplayIndex = 0; + cell78.ForeColor = System.Drawing.Color.Black; + cell78.IndexInternal = 0; + cell78.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell78.Rect"))); + cell78.Style = null; + cell78.Text = ""; + cell78.Valuetype = arCtl.ListView2.eCellValueType.String; + row13.Cells = new arCtl.ListView2.Cell[] { + cell73, + cell74, + cell75, + cell76, + cell77, + cell78}; + row13.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row13.Rect"))); + row13.Style = null; + cell79.BackColor = System.Drawing.Color.White; + cell79.BackColor2 = System.Drawing.Color.White; + cell79.DataGridViewInternal = null; + cell79.DisplayIndex = 0; + cell79.ForeColor = System.Drawing.Color.Black; + cell79.IndexInternal = 0; + cell79.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell79.Rect"))); + cell79.Style = null; + cell79.Text = "VLOT"; + cell79.Valuetype = arCtl.ListView2.eCellValueType.String; + cell80.BackColor = System.Drawing.Color.White; + cell80.BackColor2 = System.Drawing.Color.White; + cell80.DataGridViewInternal = null; + cell80.DisplayIndex = 0; + cell80.ForeColor = System.Drawing.Color.Black; + cell80.IndexInternal = 0; + cell80.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell80.Rect"))); + cell80.Style = null; + cell80.Text = ""; + cell80.Valuetype = arCtl.ListView2.eCellValueType.String; + cell81.BackColor = System.Drawing.Color.White; + cell81.BackColor2 = System.Drawing.Color.White; + cell81.DataGridViewInternal = null; + cell81.DisplayIndex = 0; + cell81.ForeColor = System.Drawing.Color.Black; + cell81.IndexInternal = 0; + cell81.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell81.Rect"))); + cell81.Style = null; + cell81.Text = ""; + cell81.Valuetype = arCtl.ListView2.eCellValueType.String; + cell82.BackColor = System.Drawing.Color.White; + cell82.BackColor2 = System.Drawing.Color.White; + cell82.DataGridViewInternal = null; + cell82.DisplayIndex = 0; + cell82.ForeColor = System.Drawing.Color.Black; + cell82.IndexInternal = 0; + cell82.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell82.Rect"))); + cell82.Style = null; + cell82.Text = ""; + cell82.Valuetype = arCtl.ListView2.eCellValueType.String; + cell83.BackColor = System.Drawing.Color.White; + cell83.BackColor2 = System.Drawing.Color.White; + cell83.DataGridViewInternal = null; + cell83.DisplayIndex = 0; + cell83.ForeColor = System.Drawing.Color.Black; + cell83.IndexInternal = 0; + cell83.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell83.Rect"))); + cell83.Style = null; + cell83.Text = ""; + cell83.Valuetype = arCtl.ListView2.eCellValueType.String; + cell84.BackColor = System.Drawing.Color.White; + cell84.BackColor2 = System.Drawing.Color.White; + cell84.DataGridViewInternal = null; + cell84.DisplayIndex = 0; + cell84.ForeColor = System.Drawing.Color.Black; + cell84.IndexInternal = 0; + cell84.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell84.Rect"))); + cell84.Style = null; + cell84.Text = ""; + cell84.Valuetype = arCtl.ListView2.eCellValueType.String; + row14.Cells = new arCtl.ListView2.Cell[] { + cell79, + cell80, + cell81, + cell82, + cell83, + cell84}; + row14.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row14.Rect"))); + row14.Style = null; + cell85.BackColor = System.Drawing.Color.White; + cell85.BackColor2 = System.Drawing.Color.White; + cell85.DataGridViewInternal = null; + cell85.DisplayIndex = 0; + cell85.ForeColor = System.Drawing.Color.Black; + cell85.IndexInternal = 0; + cell85.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell85.Rect"))); + cell85.Style = null; + cell85.Text = "MFG"; + cell85.Valuetype = arCtl.ListView2.eCellValueType.String; + cell86.BackColor = System.Drawing.Color.White; + cell86.BackColor2 = System.Drawing.Color.White; + cell86.DataGridViewInternal = null; + cell86.DisplayIndex = 0; + cell86.ForeColor = System.Drawing.Color.Black; + cell86.IndexInternal = 0; + cell86.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell86.Rect"))); + cell86.Style = null; + cell86.Text = ""; + cell86.Valuetype = arCtl.ListView2.eCellValueType.String; + cell87.BackColor = System.Drawing.Color.White; + cell87.BackColor2 = System.Drawing.Color.White; + cell87.DataGridViewInternal = null; + cell87.DisplayIndex = 0; + cell87.ForeColor = System.Drawing.Color.Black; + cell87.IndexInternal = 0; + cell87.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell87.Rect"))); + cell87.Style = null; + cell87.Text = ""; + cell87.Valuetype = arCtl.ListView2.eCellValueType.String; + cell88.BackColor = System.Drawing.Color.White; + cell88.BackColor2 = System.Drawing.Color.White; + cell88.DataGridViewInternal = null; + cell88.DisplayIndex = 0; + cell88.ForeColor = System.Drawing.Color.Black; + cell88.IndexInternal = 0; + cell88.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell88.Rect"))); + cell88.Style = null; + cell88.Text = ""; + cell88.Valuetype = arCtl.ListView2.eCellValueType.String; + cell89.BackColor = System.Drawing.Color.White; + cell89.BackColor2 = System.Drawing.Color.White; + cell89.DataGridViewInternal = null; + cell89.DisplayIndex = 0; + cell89.ForeColor = System.Drawing.Color.Black; + cell89.IndexInternal = 0; + cell89.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell89.Rect"))); + cell89.Style = null; + cell89.Text = ""; + cell89.Valuetype = arCtl.ListView2.eCellValueType.String; + cell90.BackColor = System.Drawing.Color.White; + cell90.BackColor2 = System.Drawing.Color.White; + cell90.DataGridViewInternal = null; + cell90.DisplayIndex = 0; + cell90.ForeColor = System.Drawing.Color.Black; + cell90.IndexInternal = 0; + cell90.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell90.Rect"))); + cell90.Style = null; + cell90.Text = ""; + cell90.Valuetype = arCtl.ListView2.eCellValueType.String; + row15.Cells = new arCtl.ListView2.Cell[] { + cell85, + cell86, + cell87, + cell88, + cell89, + cell90}; + row15.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row15.Rect"))); + row15.Style = null; + cell91.BackColor = System.Drawing.Color.White; + cell91.BackColor2 = System.Drawing.Color.White; + cell91.DataGridViewInternal = null; + cell91.DisplayIndex = 0; + cell91.ForeColor = System.Drawing.Color.Black; + cell91.IndexInternal = 0; + cell91.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell91.Rect"))); + cell91.Style = null; + cell91.Text = "PART"; + cell91.Valuetype = arCtl.ListView2.eCellValueType.String; + cell92.BackColor = System.Drawing.Color.White; + cell92.BackColor2 = System.Drawing.Color.White; + cell92.DataGridViewInternal = null; + cell92.DisplayIndex = 0; + cell92.ForeColor = System.Drawing.Color.Black; + cell92.IndexInternal = 0; + cell92.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell92.Rect"))); + cell92.Style = null; + cell92.Text = ""; + cell92.Valuetype = arCtl.ListView2.eCellValueType.String; + cell93.BackColor = System.Drawing.Color.White; + cell93.BackColor2 = System.Drawing.Color.White; + cell93.DataGridViewInternal = null; + cell93.DisplayIndex = 0; + cell93.ForeColor = System.Drawing.Color.Black; + cell93.IndexInternal = 0; + cell93.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell93.Rect"))); + cell93.Style = null; + cell93.Text = ""; + cell93.Valuetype = arCtl.ListView2.eCellValueType.String; + cell94.BackColor = System.Drawing.Color.White; + cell94.BackColor2 = System.Drawing.Color.White; + cell94.DataGridViewInternal = null; + cell94.DisplayIndex = 0; + cell94.ForeColor = System.Drawing.Color.Black; + cell94.IndexInternal = 0; + cell94.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell94.Rect"))); + cell94.Style = null; + cell94.Text = ""; + cell94.Valuetype = arCtl.ListView2.eCellValueType.String; + cell95.BackColor = System.Drawing.Color.White; + cell95.BackColor2 = System.Drawing.Color.White; + cell95.DataGridViewInternal = null; + cell95.DisplayIndex = 0; + cell95.ForeColor = System.Drawing.Color.Black; + cell95.IndexInternal = 0; + cell95.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell95.Rect"))); + cell95.Style = null; + cell95.Text = "PART"; + cell95.Valuetype = arCtl.ListView2.eCellValueType.String; + cell96.BackColor = System.Drawing.Color.White; + cell96.BackColor2 = System.Drawing.Color.White; + cell96.DataGridViewInternal = null; + cell96.DisplayIndex = 0; + cell96.ForeColor = System.Drawing.Color.Black; + cell96.IndexInternal = 0; + cell96.Rect = ((System.Drawing.RectangleF)(resources.GetObject("cell96.Rect"))); + cell96.Style = null; + cell96.Text = ""; + cell96.Valuetype = arCtl.ListView2.eCellValueType.String; + row16.Cells = new arCtl.ListView2.Cell[] { + cell91, + cell92, + cell93, + cell94, + cell95, + cell96}; + row16.Rect = ((System.Drawing.RectangleF)(resources.GetObject("row16.Rect"))); + row16.Style = null; this.listView21.Rows = new arCtl.ListView2.Row[] { - row17, - row18, - row19, - row20, - row21, - row22, - row23, - row24, - row25, - row26, - row27, - row28, - row29, - row30, - row31, - row32}; - itemStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); - itemStyle4.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); - itemStyle4.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold); - itemStyle4.ForeColor = System.Drawing.Color.Black; - this.listView21.RowStyle = itemStyle4; + row1, + row2, + row3, + row4, + row5, + row6, + row7, + row8, + row9, + row10, + row11, + row12, + row13, + row14, + row15, + row16}; + itemStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); + itemStyle2.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40))))); + itemStyle2.Font = new System.Drawing.Font("Consolas", 8F, System.Drawing.FontStyle.Bold); + itemStyle2.ForeColor = System.Drawing.Color.Black; + this.listView21.RowStyle = itemStyle2; this.listView21.Size = new System.Drawing.Size(451, 403); this.listView21.TabIndex = 7; this.listView21.Text = "listView21"; @@ -5082,19 +5064,10 @@ // this.ta.ClearBeforeFill = true; // - // 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(99, 44); - this.toolStripButton1.Text = "수동인쇄"; - this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); - // // FMain // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(1264, 985); + this.ClientSize = new System.Drawing.Size(1384, 985); this.Controls.Add(this.panBottom); this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.panel1); @@ -5197,7 +5170,6 @@ private System.Windows.Forms.ToolStripMenuItem axis3ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem axis4ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem clearToolStripMenuItem1; - private System.Windows.Forms.ToolStripMenuItem sendMailToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem processListToolStripMenuItem; private System.Windows.Forms.ContextMenuStrip cmCam; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; @@ -5244,7 +5216,7 @@ private System.Windows.Forms.ToolStripButton btLogViewer; private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; - private System.Windows.Forms.ToolStripButton toolStripButton12; + private System.Windows.Forms.ToolStripButton btHistory; private System.Windows.Forms.ToolStripButton btLightRoom; private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; private System.Windows.Forms.ToolStripButton btJobCancle; @@ -5275,7 +5247,7 @@ private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.Panel panel9; private arCtl.arLabel lbMsg; - private System.Windows.Forms.ToolStripButton toolStripButton15; + private System.Windows.Forms.ToolStripButton btCheckInfo; private System.Windows.Forms.ToolStripButton toolStripButton8; private System.Windows.Forms.ToolStripDropDownButton toolStripButton3; private System.Windows.Forms.ToolStripMenuItem 바코드LToolStripMenuItem; @@ -5348,7 +5320,6 @@ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem30; private System.Windows.Forms.ToolStripMenuItem 프로그램열기ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem 인바운드데이터업데이트ToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem testToolStripMenuItem1; private System.Windows.Forms.DataGridViewTextBoxColumn target; private System.Windows.Forms.DataGridViewTextBoxColumn JTYPE; private System.Windows.Forms.DataGridViewTextBoxColumn sTIMEDataGridViewTextBoxColumn; @@ -5374,8 +5345,7 @@ private System.Windows.Forms.DataGridViewTextBoxColumn JGUID; private System.Windows.Forms.DataGridViewTextBoxColumn GUID; private arCtl.arLabel arLabel1; - private System.Windows.Forms.ToolStripMenuItem apiCheck2activeLiToolStripMenuItem; - private System.Windows.Forms.ToolStripButton toolStripButton1; + private System.Windows.Forms.ToolStripButton btManualPrint; } } diff --git a/Handler/Project/fMain.cs b/Handler/Project/fMain.cs index 46f3a7c..5ce3bd9 100644 --- a/Handler/Project/fMain.cs +++ b/Handler/Project/fMain.cs @@ -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,27 +2250,7 @@ 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) { using (var f = new Dialog.fManualPrint()) diff --git a/Handler/Project/fMain.resx b/Handler/Project/fMain.resx index 9569c35..851a96b 100644 --- a/Handler/Project/fMain.resx +++ b/Handler/Project/fMain.resx @@ -189,9 +189,6 @@ 534, 17 - - 534, 17 - 441, 17 @@ -359,6 +356,42 @@ xwR/Xdgi6nJO0+z6Pve9PXM0teTlvt+1RKOzm9x/HfvBBY85HIPHWpwDjwxkwUs7xuZ8sCf+cMdjh/yk 115H3QAPiKXe1/aT5mHlz1OfdFXoHcm6xDJ+AnZSLiyaws7ZWRc6rYaWR36Mk4dV15KEd8O3PAZCV9hw gcGfdLH7Qe6hYzSVm2i6euplvRwXd8TF/QE1/NiTtMURWQAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj + GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ + t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm + aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 + bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj + GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ + t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm + aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 + bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj + GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ + t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm + aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 + bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj + GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ + t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm + aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 + bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= @@ -416,19 +449,19 @@ +roWwKdh3GpbAQ/t9bDCLyCxE8Zms97P+UYg8B+hshj6VVc14wAAAABJRU5ErkJggg== - + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIQSURBVGhD7ZPNShthFIanN6D3EIg7tXeg3fkDRXftroVC - C0WxIBK0oEREWynqwtrQYiamMsyoxET0BtQbULSbdtEq6ba9gTmdD98wk5nzQSEzyQHngWc353ufgBop - KSn3iPHf7uhY3b0dqxMl4eO6e+O9P4y5+Lkb4Mfj0/2FufjhB+MXc/HDjSUh5uKHG0tCzMXE9NW5MfON - lNxYEjb2jOnrU1S0QOOxTvwAZcsEHuPGkjC4iYoWCDzGjSVhcBMVLRB4jBtLwuAmKv6fyVx+5HUufzOR - y5Mk75oWh5CpR2J8Q6/tJzL1cIeSRKYe7kiSyNTDHUkSmXq4I0kiUw93JElk6gkfPHn2knr7+imbzbZV - tfn0+aumFiUy9YQPOhHfsLf/YVOLEpl6wgfcw+003INMPeED7tF2Gu5Bpp4XkzkKmslkOmq4B5lRStZx - j2nXzj2p5ByJFG1nqhXZPio+fCDYM2T7FJ3qX+ZDodb+INvH+wGX/McCtWsXyPYx7aMd9mOJ2tUSsn28 - /4E37McynUK2T9GqDJp21ftPl6/3JzSAbJ9y+aTry+6Bu21VSLKqseA43chuprDj/Pj8dZ9EW977jtwo - m9vW/seiRcLdQ26UtUJxbr1gkmg/mbPIjfJuY/PRysYWSXZ5bWsQuVGI6MHbpdXD+aVVd2H5A0lSNc0u - vq+oRuSmpKSkpNx7DOMfPOS3yHwq65YAAAAASUVORK5CYII= + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAISSURBVGhD7ZPNShtRGIanN6D3EIg7tXeg3flDId3pTkGw + FBQFkaCFlljRKkVdqA2FZMYIkxmFxIjegHoDLdpNXVhL3NoLSE7n4BtmMvMdKGQm+cB54NnNd94ni2gx + MTHPiDcP9dFUtfYnVRUiCl9Xa/epan0Yc+HzNECPh2ftN+bChx4MX8yFDzUWhZgLH2osCjEXEgvXV9ri + TyGlxqKwsact3FygogUaj3XiB0hbxvMYNRaF3k1UtIDnMWosCr2bqGgBz2PUWBR6N1Hx/8ymMyPv0pn7 + mXRGcPKpaWUImWo4xjd02u6QqYY65CQy1VBHnESmGuqIk8hUQx1xEplqqCNOIlON/2BsYlr09vWLZDLZ + VuXm+OTbphYpMtX4DzoR37C3/2VTixSZavwH1MPt1N+DTDX+A+rRdurvQaaaqdm08JpIJDqqvweZQQzz + rEe3KleOwrBPWYq2S9mKbBcZ7z9g7CWyXXJ2+S/xIVMrj8h2ydvlH/THDC1WviPbRS+eHpAfc9Q6MZDt + 4vwH5smPeTqHbJe8WRrUrRPnn85fw6oMINulUDjv+nZ4XM+ZJcFZ2Zi17W5kN5M1rFvnA/kRXwtHv5Ab + ZDdnHu/lTcHcI+QG2crml7ezumDtV30JuUE+7+y+Wt/ZF5xd29ofRG4QIcSL96ub5Q+fNuof174ITsqm + pZWNkmxEbkxMTEzMs0fT/gFwULetz3Mo6AAAAABJRU5ErkJggg== @@ -503,7 +536,7 @@ 9CkXAAAAAElFTkSuQmCC - + iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADOSURBVFhHYxgFIxLsv/VPZte9X6vpiUF2Qq0nDPbe/qm9 @@ -513,67 +546,31 @@ PQAAAABJRU5ErkJggg== - - - iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj - GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ - t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm - aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 - bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj - GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ - t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm - aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 - bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj - GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ - t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm - aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 - bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAMRJREFUWEdj - GAWjYDCAaVUu/4nFM2pde6Ha6AdAFt/ekEoQX12T/H9Bk+eXmTUufVCt9AHEOhCEB8SRpDgQhM+vSPw/ - t87jDyzaaYWhziPNgUfmRf2f2+Dxf8/s2P8fTzf//3qulSYYw4HE4iVtvv8f7CnHaig1McguqPMgDsSm - aCDxqAMpxaMOpBSPOpBSPOpASvGoAynFow6kFI86kFI86kBK8agDKcWjDqQUjzqQUjzqQEoxhgMHI4Y6 - bxSMggEEDAwAcaf95QqwNkoAAAAASUVORK5CYII= - - - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh - d2luZy5SZWN0YW5nbGVGBAAAAAF4AXkFd2lkdGgGaGVpZ2h0AAAAAAsLCwsCAAAAAAA0QgAAh0MAAKJC + d2luZy5SZWN0YW5nbGVGBAAAAAF4AXkFd2lkdGgGaGVpZ2h0AAAAAAsLCwsCAAAAAABkQgCAgkMAAMxC AADIQgs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh - d2luZy5SZWN0YW5nbGVGBAAAAAF4AXkFd2lkdGgGaGVpZ2h0AAAAAAsLCwsCAAAAAABAQwAAh0MAAKJC + d2luZy5SZWN0YW5nbGVGBAAAAAF4AXkFd2lkdGgGaGVpZ2h0AAAAAAsLCwsCAAAAAAByQwCAgkMAAMxC AADIQgs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh - d2luZy5SZWN0YW5nbGVGBAAAAAF4AXkFd2lkdGgGaGVpZ2h0AAAAAAsLCwsCAAAAAICpQwAAh0MAAKJC + d2luZy5SZWN0YW5nbGVGBAAAAAF4AXkFd2lkdGgGaGVpZ2h0AAAAAAsLCwsCAAAAAIDVQwCAgkMAAMxC AADIQgs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -581,7 +578,7 @@ AAAAAAs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -589,7 +586,7 @@ AAAAAAs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -597,7 +594,7 @@ AAAAAAs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -605,7 +602,7 @@ AAAAAAs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -613,7 +610,7 @@ AAAAAAs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -621,7 +618,7 @@ AAAAAAs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -629,7 +626,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -637,7 +634,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -645,7 +642,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -653,7 +650,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -661,7 +658,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -669,7 +666,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -677,7 +674,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -685,7 +682,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -693,7 +690,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -701,7 +698,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -709,7 +706,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -717,7 +714,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -725,7 +722,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -733,7 +730,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -741,7 +738,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -749,7 +746,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -757,7 +754,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -765,7 +762,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -773,7 +770,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -781,7 +778,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -789,7 +786,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -797,7 +794,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -805,7 +802,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -813,7 +810,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -821,7 +818,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -829,7 +826,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -837,7 +834,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -845,7 +842,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -853,7 +850,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -861,7 +858,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -869,7 +866,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -877,7 +874,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -885,7 +882,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -893,7 +890,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -901,7 +898,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -909,7 +906,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -917,7 +914,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -925,7 +922,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -933,7 +930,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -941,7 +938,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -949,7 +946,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -957,7 +954,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -965,7 +962,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -973,7 +970,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -981,7 +978,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -989,7 +986,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -997,7 +994,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1005,7 +1002,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1013,7 +1010,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1021,7 +1018,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1029,7 +1026,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1037,7 +1034,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1045,7 +1042,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1053,7 +1050,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1061,7 +1058,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1069,7 +1066,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1077,7 +1074,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1085,7 +1082,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1093,7 +1090,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1101,7 +1098,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1109,7 +1106,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1117,7 +1114,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1125,7 +1122,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1133,7 +1130,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1141,7 +1138,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1149,7 +1146,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1157,7 +1154,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1165,7 +1162,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1173,7 +1170,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1181,7 +1178,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1189,7 +1186,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1197,7 +1194,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1205,7 +1202,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1213,7 +1210,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1221,7 +1218,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1229,7 +1226,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1237,7 +1234,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1245,7 +1242,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1253,7 +1250,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1261,7 +1258,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1269,7 +1266,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1277,7 +1274,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1285,7 +1282,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1293,7 +1290,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1301,7 +1298,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1309,7 +1306,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1317,7 +1314,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1325,7 +1322,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1333,7 +1330,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1341,7 +1338,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1349,7 +1346,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1357,7 +1354,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1365,7 +1362,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1373,7 +1370,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1381,7 +1378,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1389,7 +1386,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1397,7 +1394,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1405,7 +1402,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1413,7 +1410,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1421,7 +1418,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1429,7 +1426,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1437,7 +1434,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1445,7 +1442,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1453,7 +1450,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1461,7 +1458,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1469,7 +1466,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1477,7 +1474,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1485,7 +1482,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1493,7 +1490,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1501,7 +1498,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh @@ -1509,7 +1506,7 @@ AADIQQs= - + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABlTeXN0ZW0uRHJh diff --git a/Handler/Project/vCustomerList.cs b/Handler/Project/vCustomerList.cs deleted file mode 100644 index e241867..0000000 --- a/Handler/Project/vCustomerList.cs +++ /dev/null @@ -1,20 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace Project -{ - using System; - using System.Collections.Generic; - - public partial class vCustomerList - { - public string CustCode { get; set; } - public string CustName { get; set; } - } -} diff --git a/Handler/ResultView/ResultView.csproj b/Handler/ResultView/ResultView.csproj index 1ceb32a..f9294a5 100644 --- a/Handler/ResultView/ResultView.csproj +++ b/Handler/ResultView/ResultView.csproj @@ -130,10 +130,6 @@ - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {b18d3b96-2fdf-4ed9-9a49-d9b8cee4ed6d} StdLabelPrint diff --git a/Handler/STDLabelAttach(ATV).sln b/Handler/STDLabelAttach(ATV).sln index adaa5ea..4bdb8e1 100644 --- a/Handler/STDLabelAttach(ATV).sln +++ b/Handler/STDLabelAttach(ATV).sln @@ -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} diff --git a/Handler/Sub/AmkorRestfulService b/Handler/Sub/AmkorRestfulService deleted file mode 160000 index c2a5826..0000000 --- a/Handler/Sub/AmkorRestfulService +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c2a5826f21cbf73c3c5b7b67cd1ed2be05100e1f diff --git a/Handler/Sub/CommData/CommData.csproj b/Handler/Sub/CommData/CommData.csproj index 78c1eb7..e33e12a 100644 --- a/Handler/Sub/CommData/CommData.csproj +++ b/Handler/Sub/CommData/CommData.csproj @@ -46,6 +46,7 @@ + \ No newline at end of file diff --git a/Handler/Sub/CommData/RS232.cs b/Handler/Sub/CommData/RS232.cs new file mode 100644 index 0000000..dace4e2 --- /dev/null +++ b/Handler/Sub/CommData/RS232.cs @@ -0,0 +1,1174 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.ComponentModel; +using System.Threading; + +namespace arDev +{ + public class RS232 : IDisposable + { + protected Boolean _isinit = false; + + #region "Event Args" + + /// + /// 데이터를 수신할떄 사용함(RAW 포함) + /// + public class ReceiveDataEventArgs : EventArgs + { + private readonly byte[] _buffer = null; + + /// + /// 바이트배열의 버퍼값 + /// + public byte[] Value { get { return _buffer; } } + + /// + /// 버퍼(바이트배열)의 데이터를 문자로 반환합니다. + /// + public string StrValue + { + get + { + //return string.Empty; + + if (_buffer == null || _buffer.Length < 1) return string.Empty; + else return System.Text.Encoding.Default.GetString(_buffer); + } + } + public ReceiveDataEventArgs(byte[] buffer) + { + _buffer = buffer; + } + } + + public class MessageEventArgs : EventArgs + { + private readonly Boolean _isError = false; + public Boolean IsError { get { return _isError; } } + private readonly string _message = string.Empty; + public string Message { get { return _message; } } + public MessageEventArgs(Boolean isError, string Message) + { + _isError = isError; + _message = Message; + } + } + + #endregion + + #region "Enum & Structure" + + /// + /// 데이터수신시 해당 데이터의 끝을 결정하는 방식을 설정합니다. + /// + public enum eTerminal : byte + { + /// + /// line feed + /// + LF = 0, + + /// + /// carrige return + /// + CR, + + /// + /// cr+lf + /// + CRLF, + + /// + /// stx + ETx 구성된 프로토콜을 감지합니다. stx,etx는 임의 지정이 가능하며 기본값으로는 stx = 0x02, etx = 0x03 을 가지고 있습니다. + /// + ETX, + + /// + /// 데이터의 길이를 가지고 판단합니다. + /// + Length, + + /// + /// 설정없음 .. 일정시간동안 대기한 후 버퍼의 내용을 모두 데이터로 인정합니다. + /// + None, + + /// + /// 내부 Receive 이벤트를 사용하지 않고 Raw 이벤트를 사용합니다. + /// 이 값을 설정할 경우 내부 Receivce 이벤트 내에서 메세지 수신 이벤트가 발생하지 않습니다. + /// DataParSER을 상속하여 해당 파서에서 데이터를 분리하세요. True 이면 분리성공, false 이면 완료될때까지 대기합니다. + /// + CustomParser + } + + #endregion + + #region "Public variable" + /// + /// WriteDataSync 명령 사용시 최대로 기다리는 시간 + /// + public int syncTimeout = 5000; + + /// + /// 오류가 발생했다면 이 변수에 그 내용이 기록됩니다. + /// + public string errorMessage = string.Empty; + + ///// + ///// WriteDataSync 명령 사용시 최대로 기다리는 시간 + ///// + //public int syncTimeout = 5000; + + /// + /// 이 값은 종단기호 형식이 Length 일때 사용됩니다. 버퍼의 갯수이 이 값과 일치하면 수신 이벤트를 발생합니다. + /// + public int MaxDataLength = 0x0d; + + /// + /// 마지막으로 데이터는 전송한 시간 + /// + public DateTime lastSendTime; + + /// + /// 최종 전송 메세지 + /// + public byte[] lastSendBuffer; + + /// + /// 마지막으로 데이터를 받은 시간 + /// + public DateTime lastRecvTime = DateTime.Parse("1982-11-23"); + + /// + /// 데이터 전송시 전송메세지를 발생할것인가? 171113 + /// + public Boolean EnableTxMessage { get; set; } + + /// + /// terminal 이 stx 일때에만 사용하며 기본값은 0x03 + /// + [Description("종단기호형식이 ETX일때 사용하는 데이터의 종료문자값입니다. 바이트값이므로 0~255 사이로 입력하세요.")] + [Category("설정"), DisplayName("Data End Byte")] + public byte ETX { get; set; } + + #endregion + + #region "Protect & private Variable" + + protected Boolean CheckACK { get; set; } + protected Boolean CheckNAK { get; set; } + + /// + /// 메세지 수신시 사용하는 내부버퍼 + /// + protected List _buffer = new List(); + + + /// + /// 데이터의 끝을 분석하는 종단기호의 설정 + /// + private eTerminal _term = eTerminal.LF; + + /// + /// WriteDataSync 명령사용시 활성화됨 + /// + protected Boolean _isSync = false; + + /// + /// sync timeOUt체크시 사용합니다. + /// + private System.Diagnostics.Stopwatch _wat = new System.Diagnostics.Stopwatch(); + + /// + /// Serialport Device + /// + protected System.IO.Ports.SerialPort _device; + + /// + /// for autoreset events + /// + protected ManualResetEvent _mre; + + protected Boolean isDisposed = false; + + #endregion + + #region "Internal Events" + + void barcode_ErrorReceived(object sender, System.IO.Ports.SerialErrorReceivedEventArgs e) + { + if (Message != null) Message(this, new MessageEventArgs(true, e.ToString())); + } + + void barcode_PinChanged(object sender, System.IO.Ports.SerialPinChangedEventArgs e) + { + + if (serialPinchanged != null) + serialPinchanged(this, e); + //if (Message != null) Message(this, new MessageEventArgs(true, "PinChanged")); + } + + void barcode_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) + { + this.lastRecvTime = DateTime.Now; + + if (_isSync) return; //싱크모드일경우에는 해당 루틴에서 직접 읽는다 + _isSync = false; + //none일경우에는 100ms 정도 기다려준다. + if (_term == eTerminal.None) + { + //none 일경우에는 무조건 데이터로 취급한다. + System.Threading.Thread.Sleep(200); + _buffer.Clear(); + } + + try + { + int ReadCount = _device.BytesToRead; + + byte[] buffer = new byte[ReadCount]; + _device.Read(buffer, 0, buffer.Length); + + if (ReceiveData_Raw != null) ReceiveData_Raw(this, new ReceiveDataEventArgs(buffer)); + System.Text.StringBuilder LogMsg = new StringBuilder(); + + if (Terminal == eTerminal.CustomParser) + { + byte[] remainBuffer; + Repeat: + if (CustomParser(buffer, out remainBuffer)) + { + //parser ok + RaiseRecvData(_buffer.ToArray()); + _buffer.Clear(); + if (remainBuffer != null && remainBuffer.Length > 0) + { + //버퍼를 변경해서 다시 전송을 해준다. + buffer = new byte[remainBuffer.Length]; + Array.Copy(remainBuffer, buffer, buffer.Length); + goto Repeat; //남은 버퍼가 있다면 진행을 해준다. + } + } + } + else + { + foreach (byte bb in buffer) + { + switch (_term) + { + + case eTerminal.CR: + if (bb == 0x0D) + { + RaiseRecvData(_buffer.ToArray()); ; + _buffer.Clear(); + } + else _buffer.Add(bb); + break; + case eTerminal.LF: + if (bb == 0x0A) + { + RaiseRecvData(_buffer.ToArray()); ; + _buffer.Clear(); + } + else _buffer.Add(bb); + break; + case eTerminal.CRLF: + if (bb == 0x0A) + { + RaiseRecvData(_buffer.ToArray()); ; + _buffer.Clear(); + } + else if (bb == 0x0D) + { + //0d는 그냥 넘어간다. + } + else _buffer.Add(bb); + break; + case eTerminal.Length: + _buffer.Add(bb); + if (_buffer.Count == MaxDataLength) + { + RaiseRecvData(_buffer.ToArray()); ; + _buffer.Clear(); + } + else if (_buffer.Count > MaxDataLength) + { + RaiseMessage("Buffer Length Error " + _buffer.Count.ToString() + "/" + MaxDataLength.ToString(), true); + _buffer.Clear(); + } + break; + case eTerminal.ETX: //asc타입의 프로토콜에서는 STX,ETX가 고유값이다. + if (bb == STX) + { + _buffer.Clear(); + } + else if (bb == ETX) + { + RaiseRecvData(_buffer.ToArray()); ; + _buffer.Clear(); + } + else _buffer.Add(bb); + break; + case eTerminal.None: + _buffer.Add(bb); + break; + } + } + + //170802 + if (_term == eTerminal.None) + { + RaiseRecvData(_buffer.ToArray()); ; + _buffer.Clear(); + } + } + } + catch (Exception ex) + { + if (IsOpen()) + { + //_device.DiscardInBuffer(); + //_device.DiscardOutBuffer(); + } + errorMessage = ex.Message; + RaiseMessage(ex.Message, true); + } + + } + + + #endregion + + #region "External Events" + + /// + /// 바코드에서 들어오는 데이터의 원본 메세지 + /// + public event EventHandler ReceiveData_Raw; + + /// + /// 데이터가 들어올 경우 발생합니다 (종단기호=Termianl) 문자열이 발견된 후에 발생함 + /// + public event EventHandler ReceiveData; + + + /// + /// 데이터를 전송할 때 해당 이벤트가 발생합니다. + /// + public event EventHandler SendData; + + /// + /// 오류 및 기타 일반 메세지 + /// + public event EventHandler Message; + + /// + /// 시리얼포트의 핀 상태값이 변경될 때 발생합니다. + /// + public event EventHandler serialPinchanged; + + + #endregion + + #region "Properties" + + /// + /// 식별번호(임의지정가능) - 장치 생성시 입력 + /// + [Description("이 장치의 식별 ID(임의 지정가능)")] + [Category("설정"), DisplayName("Device No")] + public string Tag { get; set; } + + /// + /// terminal 이 etx 일때에만 사용하며 기본값은 0x02 + /// + [Description("종단기호형식이 ETX일때 사용하는 데이터의 시작문자값입니다. 바이트값이므로 0~255 사이로 입력하세요.")] + [Category("설정"), DisplayName("Data Start Byte")] + public byte STX { get; set; } + + /// + /// 내장 분석기(Parser)를 사용할 경우 최종 데이터에서 CR,LF를 제거할지 선택합니다. + /// + [Description("내장분석기(Parser)를 사용할 경우 최종 데이터에서 CR.LF를 제거할지 선택합니다.")] + [Category("기타"), DisplayName("CRLF 제거")] + public Boolean RemoveCRLFNULL { get; set; } + + /// + /// 종단기호 형식 + /// + [Description("데이터의 종단기호를 설정합니다. 지정한 데이터가 올경우")] + [Category("설정"), DisplayName("종단기호")] + public eTerminal Terminal { get { return _term; } set { _term = value; } } + + [Category("설정")] + public System.IO.Ports.Parity Parity + { + get + { + + return _device.Parity; + } + set + { + _device.Parity = value; + } + } + + [Category("설정")] + public int DataBits + { + get + { + return _device.DataBits; + } + set + { + _device.DataBits = value; + } + } + + [Category("설정")] + public System.IO.Ports.StopBits StopBits + { + get + { + return _device.StopBits; + } + set + { + _device.StopBits = value; + } + + } + + [Category("설정")] + public System.IO.Ports.Handshake Handshake + { + get + { + return _device.Handshake; + } + set + { + _device.Handshake = value; + } + + } + + #region "pin state & pin setting" + + /// + /// Data Terminal Ready + /// + [Description("Data Terminal Ready 신호의 사용여부")] + [Category("PIN")] + public Boolean DtrEnable + { + get + { + return _device.DtrEnable; + + } + set + { + _device.DtrEnable = value; + } + } + + /// + /// Request To Send + /// + [Description("Request to Send 신호의 사용여부")] + [Category("PIN")] + public Boolean RtsEnable + { + get + { + return _device.RtsEnable; + + } + set + { + _device.RtsEnable = value; + } + } + + /// + /// Data set Ready 신호 상태 + /// + [Description("Data Set Ready 신호 상태")] + [Category("PIN")] + public Boolean PIN_DSR + { + get + { + if (!IsOpen()) return false; + return _device.DsrHolding; + } + } + + /// + /// Carrier Detect + /// + [Description("Carrier Detect 신호 상태")] + [Category("PIN")] + public Boolean PIN_CD + { + get + { + if (!IsOpen()) return false; + return _device.CDHolding; + } + } + + /// + /// Clear to Send + /// + [Description("Clear to Send 신호 상태")] + [Category("PIN")] + public Boolean PIN_CTS + { + get + { + if (!IsOpen()) return false; + return _device.CtsHolding; + } + } + + /// + /// Break State + /// + [Description("중단신호 상태")] + [Category("PIN")] + public Boolean PIN_BreakState + { + get + { + if (!IsOpen()) return false; + return _device.BreakState; + } + } + + + #endregion + + + + + /// + /// 포트가 열려있는지 확인 + /// + [Description("현재 시리얼포트가 열려있는지 확인합니다")] + [Category("정보"), DisplayName("Port Open")] + public virtual Boolean IsOpen() + { + if (_device == null) return false; + return _device.IsOpen; + } + + /// + /// 초기화등이 성공했는지 확인합니다.close 되었다면 실패입니다. isinit 변수값을 적절히 수정하시기 바랍니다. + /// + [Description("초기화성공여부 별도의 초기화 코드가없다면 isOpen 과 동일합니다.")] + [Category("정보"), DisplayName("Init OK?")] + public virtual Boolean IsInit() + { + + if (!IsOpen() || !_isinit) return false; + return true; + + } + + /// + /// 쓰기타임아웃 + /// + [Description("쓰기명령어의 최대대기시간(단위:ms)\r\n지정 시간을 초과할 경우 오류가 발생합니다.")] + [Category("설정"), DisplayName("쓰기 제한시간")] + public int WriteTimeout + { + get { return _device.WriteTimeout; } + set { _device.WriteTimeout = value; } + } + + /// + /// 읽기타임아웃 + /// + [Description("읽기명령어의 최대대기시간(단위:ms)\r\n지정 시간을 초과할 경우 오류가 발생합니다.")] + [Category("설정"), DisplayName("읽기 제한시간")] + public int ReadTimeout + { + get { return _device.ReadTimeout; } + set { _device.ReadTimeout = value; } + } + + /// + /// 포트이름 + /// + [Description("시리얼 포트 이름")] + [Category("설정"), DisplayName("Port Name")] + public string PortName { get { return _device.PortName; } set { if (string.IsNullOrEmpty(value) == false) _device.PortName = value; } } + /// + /// RS232 Baud Rate + /// + [Description("시리얼 포트 전송 속도")] + [Category("설정"), DisplayName("Baud Rate")] + public int BaudRate { get { return _device.BaudRate; } set { _device.BaudRate = value; } } + + #endregion + + #region "Method" + + /// + /// 쓰기버퍼비우기 + /// + public void ClearWriteBuffer() + { + if (_device.IsOpen) _device.DiscardOutBuffer(); + } + + /// + /// 읽기버퍼비우기 + /// + public void ClearReadBuffer() + { + if (_device.IsOpen) _device.DiscardInBuffer(); + } + + /// + /// 장치의 초기화작업을 수행합니다.(이 값은 기본값으로 true가 무조건 설정됩니다) 오버라이드하여 각 상황에 맞게 처리하세요. + /// + protected virtual void Init() + { + if (!IsOpen()) _isinit = false; + else _isinit = true; + } + + + + protected virtual Boolean CustomParser(byte[] buf, out byte[] remainBuffer) + { + remainBuffer = new byte[] { }; + return true; + } + + #region "Raise Message Events (임의로 메세지를 발생시킵니다)" + + + /// + /// 보낸메세지 이벤트를 발생 + /// + /// String Data + public void RaiseSendData(string data) + { + RaiseSendData(System.Text.Encoding.Default.GetBytes(data)); + } + + /// + /// 보낸메세지 이벤트를 발생 합니다. + /// + /// Byte Array + public void RaiseSendData(byte[] data) + { + try + { + if (SendData != null) SendData(this, new ReceiveDataEventArgs(data)); + } + catch (Exception ex) + { + RaiseMessage("RaiseSendData:" + ex.Message, true); + } + + } + + /// + /// 지정한 데이터로 바코드가 수신된것처럼 발생시킵니다. + /// + /// + public void RaiseRecvData(byte[] b) + { + byte[] Data; + + if (RemoveCRLFNULL) //제거해야하는경우에만 처리 170822 + Data = RemoveCRLF(b); + else + Data = b; + + try + { + if (ReceiveData != null) ReceiveData(this, new ReceiveDataEventArgs(Data)); + } + catch (Exception ex) + { + RaiseMessage("RaiseDataMessage:" + ex.Message, true); + } + } + + /// + /// 지정한 데이터로 바코드가 수신된것처럼 발생시킵니다. + /// + /// + public void RaiseRecvData(string data) + { + RaiseRecvData(System.Text.Encoding.Default.GetBytes(data)); + } + + /// + /// 메세지이벤트를 발생합니다. 오류메세지일 경우 2번째 파라미터를 true 로 입력하세요. + /// + /// 메세지 + /// 오류라면 True로 설정하세요. 기본값=False + public void RaiseMessage(string message, Boolean isError = false) + { + if (isError) errorMessage = message; //170920 + if (Message != null) Message(this, new MessageEventArgs(isError, message)); + } + + + #endregion + + /// + /// 포트열기(실패시 False)를 반환 + /// + public virtual Boolean Open(Boolean runInit = true) + { + try + { + _device.Open(); + if (_device.IsOpen) + { + Init(); + } + else + { + _isinit = false; + } + + return _isinit; + } + catch (Exception ex) + { + errorMessage = ex.Message; + RaiseMessage(ex.Message, true); + return false; + } + } + public virtual Boolean Open(string portname, int baud, Boolean runInit = true) + { + try + { + this.PortName = portname; + this.BaudRate = baud; + _device.Open(); + if (_device.IsOpen) + { + Init(); + } + else + { + _isinit = false; + } + + return _isinit; + } + catch (Exception ex) + { + errorMessage = ex.Message; + RaiseMessage(ex.Message, true); + return false; + } + } + + /// + /// 포트닫기 + /// + public virtual void Close() + { + if (_device != null && _device.IsOpen) + { + _isinit = false; + _device.DiscardInBuffer(); + _device.DiscardOutBuffer(); + + //외부에서 닫기를 하면 진행된다? + System.Threading.Tasks.Task.Run(new Action(() => + { + _device.Close(); + })); + + + } + } + + /// + /// 메세지내용중 Cr,LF 를 제거합니다. + /// + protected byte[] RemoveCRLF(byte[] src) + { + List bcdbuf = new List(); + foreach (byte by in src) + { + if (by == 0x00 || by == 0x0d || by == 0x0a || by == 0x02 || by == 0x03) continue; + bcdbuf.Add(by); + } + return bcdbuf.ToArray(); + } + + #endregion + + #region "Method Write Data" + + /// + /// 포트에 쓰기(barcode_DataReceived 이벤트로 메세지수신) + /// + public virtual Boolean WriteData(string data) + { + byte[] buf = System.Text.Encoding.Default.GetBytes(data); + return WriteData(buf); + } + + public virtual Boolean Write(string data) + { + return WriteData(data); + } + public virtual Boolean Write(byte[] buf) + { + return WriteData(buf); + } + + /// + /// 포트에 쓰기 반환될 때까지 기다림(SyncTimeOut 값까지 기다림) + /// + public virtual byte[] WriteDataSync(string data) + { + byte[] buf = System.Text.Encoding.Default.GetBytes(data); + return WriteDataSync(buf); + } + + /// + /// _buffer를 클리어하고 입력된 데이터를 버퍼에 추가합니다. + /// + /// + public void setRecvBuffer(byte[] buf) + { + this._buffer.Clear(); + this._buffer.AddRange(buf); + } + + public int WriteError = 0; + public string WriteErrorMessage = string.Empty; + + /// + /// 포트에 쓰기 반환될 때까지 기다림(SyncTimeOut 값까지 기다림) + /// + public virtual byte[] WriteDataSync(byte[] data, Boolean useReset = true) + { + errorMessage = string.Empty; + _isSync = true; + byte[] recvbuf = null; + // Boolean bRet = false; + + //171214 + if (!IsOpen()) + { + errorMessage = "Port Closed"; + return null; + } + + //171205 : 타임아웃시간추가 + if (useReset) + { + if (!_mre.WaitOne(syncTimeout)) + { + errorMessage = string.Format("WriteDataSync:MRE:WaitOne:TimeOut 3000ms"); + RaiseMessage(errorMessage, true); + return null; + } + + _mre.Reset(); + } + + + //save last command + lastSendTime = DateTime.Now; + if (lastSendBuffer == null) lastSendBuffer = new byte[data.Length]; //171113 + else Array.Resize(ref lastSendBuffer, data.Length); + Array.Copy(data, lastSendBuffer, data.Length); + Boolean sendOK = false; + + try + { + _device.DiscardInBuffer(); + _device.DiscardOutBuffer(); + _buffer.Clear(); //171205 + _device.Write(data, 0, data.Length); + WriteError = 0; + WriteErrorMessage = string.Empty; + sendOK = true; + } + catch (Exception ex) + { + WriteError += 1; + WriteErrorMessage = ex.Message; + } + + if (sendOK) + { + try + { + //171113 + if (EnableTxMessage && SendData != null) SendData(this, new ReceiveDataEventArgs(data)); + + _wat.Restart(); + Boolean bTimeOut = false; + _buffer.Clear(); + Boolean bDone = false; + while (!bDone) + { + if (_wat.ElapsedMilliseconds > WriteTimeout) + { + errorMessage = "(Sync)WriteTimeOut"; + bTimeOut = true; + break; + } + else + { + int RecvCnt = _device.BytesToRead; + if (RecvCnt > 0) + { + byte[] rbuf = new byte[RecvCnt]; + _device.Read(rbuf, 0, rbuf.Length); + + if (_term == eTerminal.CustomParser) + { + byte[] remainBuffer; + Repeat: + if (CustomParser(rbuf, out remainBuffer)) + { + var newMem = new byte[_buffer.Count]; + _buffer.CopyTo(newMem); + RaiseRecvData(newMem); + bDone = true; + if (remainBuffer != null && remainBuffer.Length > 0) + { + rbuf = new byte[remainBuffer.Length]; + Buffer.BlockCopy(remainBuffer, 0, rbuf, 0, rbuf.Length); + goto Repeat; + } + } + } + else + { + foreach (byte b in rbuf) + { + if (CheckACK && b == 0x06) //ack + { + _buffer.Add(b); + bDone = true; + break; + } + else if (CheckNAK && b == 0x15) //nak + { + _buffer.Add(b); + bDone = true; + break; + } + else + { + switch (_term) + { + case eTerminal.CR: + if (b == 0x0D) + { + bDone = true; + break; + } + else _buffer.Add(b); + break; + case eTerminal.LF: + if (b == 0x0A) + { + bDone = true; + break; + } + else _buffer.Add(b); + break; + case eTerminal.CRLF: + if (b == 0x0A) + { + bDone = true; + break; + } + else if (b == 0x0d) + { + //pass + } + else + { + _buffer.Add(b); + } + break; + case eTerminal.Length: + _buffer.Add(b); + if (_buffer.Count == MaxDataLength) + { + bDone = true; + break; + } + else if (_buffer.Count > MaxDataLength) + { + RaiseMessage("Buffer Length Error " + _buffer.Count.ToString() + "/" + MaxDataLength.ToString(), true); + _buffer.Clear(); + } + + break; + case eTerminal.ETX: + + if (b == STX) + { + _buffer.Clear(); + } + else if (b == ETX) + { + bDone = true; + break; + } + else _buffer.Add(b); + break; + } + } + + } + } + } + + } + } + _wat.Stop(); + if (!bTimeOut) + { + recvbuf = new byte[_buffer.Count]; + Buffer.BlockCopy(_buffer.ToArray(), 0, recvbuf, 0, recvbuf.Length); + //recvbuf = _buffer.ToArray(); + // bRet = true; + } + } + catch (Exception ex) + { + errorMessage = ex.Message; + //bRet = false; + } + finally + { + if (useReset) + _mre.Set();//release + } + } + + //syncmode off + _isSync = false; + return recvbuf; + } + + /// + /// 포트에 쓰기(barcode_DataReceived 이벤트로 메세지수신) + /// + public virtual Boolean WriteData(byte[] data) + { + Boolean bRet = false; + + //171205 : 타임아웃시간추가 + if (!_mre.WaitOne(3000)) + { + errorMessage = string.Format("WriteData:MRE:WaitOne:TimeOut 3000ms"); + RaiseMessage(errorMessage, true); + return false; + } + + _mre.Reset(); + + //Array.Resize(ref data, data.Length + 2); + + try + { + lastSendTime = DateTime.Now; + if (lastSendBuffer == null) lastSendBuffer = new byte[data.Length]; //171113 + else Array.Resize(ref lastSendBuffer, data.Length); + Array.Copy(data, lastSendBuffer, data.Length); + _device.Write(data, 0, data.Length); + + //171113 + if (EnableTxMessage && SendData != null) SendData(this, new ReceiveDataEventArgs(data)); + + bRet = true; + WriteError = 0; + WriteErrorMessage = string.Empty; + } + catch (Exception ex) + { + // this.isinit = false; + RaiseMessage(ex.Message, true);// if (ReceivceData != null) ReceivceData(this, true, ex.Message); + bRet = false; + WriteError += 1; //연속쓰기오류횟수 + WriteErrorMessage = ex.Message; + } + finally + { + _mre.Set(); + } + return bRet; + } + + #endregion + + + /// + /// 지정한ID를 가진 장치를 생성합니다. + /// + /// + public RS232(string tag_ = "") + { + _mre = new ManualResetEvent(true); + this.Tag = tag_; + this._device = new System.IO.Ports.SerialPort(); + + _device.DataReceived += barcode_DataReceived; + _device.ErrorReceived += barcode_ErrorReceived; + _device.PinChanged += barcode_PinChanged; + _device.ReadTimeout = 2000; + _device.WriteTimeout = 2000; + _device.BaudRate = 9600; + _term = eTerminal.CRLF; + STX = 0x02; + ETX = 0x03; + RemoveCRLFNULL = false; + EnableTxMessage = false; + } + + ~RS232() + { + Dispose(); + } + + + + /// + /// close를 호출합니다. + /// + public virtual void Dispose() + { + if (!isDisposed) //180219 + { + isDisposed = true; + _isinit = false; + _device.DataReceived -= barcode_DataReceived; + _device.ErrorReceived -= barcode_ErrorReceived; + _device.PinChanged -= barcode_PinChanged; + Close(); + } + } + } +} diff --git a/Handler/Sub/CommUtil b/Handler/Sub/CommUtil deleted file mode 160000 index 11d464e..0000000 --- a/Handler/Sub/CommUtil +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 11d464e16a41b8bc52629476c2b5f329e03a34af diff --git a/Handler/Sub/MemoryMapCore/Client.cs b/Handler/Sub/MemoryMapCore/Client.cs new file mode 100644 index 0000000..536a038 --- /dev/null +++ b/Handler/Sub/MemoryMapCore/Client.cs @@ -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; + }; + } + } +} diff --git a/Handler/Sub/MemoryMapCore/Core.cs b/Handler/Sub/MemoryMapCore/Core.cs new file mode 100644 index 0000000..16ee418 --- /dev/null +++ b/Handler/Sub/MemoryMapCore/Core.cs @@ -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 StartAction; + protected Func 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 changeindex = new List(); + 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 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(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(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 + + + /// + /// 지정한 타입이 호환되는 타입인가? + /// + /// + /// + //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; + //} + + } +} diff --git a/Handler/Sub/MemoryMapCore/MemoryMap.txt b/Handler/Sub/MemoryMapCore/MemoryMap.txt new file mode 100644 index 0000000..fb00664 --- /dev/null +++ b/Handler/Sub/MemoryMapCore/MemoryMap.txt @@ -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(ʱȭ) + 1 : error + +02:StatusCode(-32767~32767) +32:DIValue (dicount dicount/8) +32:DOValue (docount docount/8) +---------------------87byte----------- + + +MOT +01:VERSION(0~255) +10:DEVICE_ID +01:Axis Count(0~255) +---------------------12byte---------------- +02:Status + 0 : init(ʱȭ) + 1 : error + +02:StatusCode(-32767~32767) +---------------------16byte---------------- +ະ Ͱ ȯȴ. 10byte +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 \ No newline at end of file diff --git a/Handler/Sub/MemoryMapCore/MemoryMapCore.csproj b/Handler/Sub/MemoryMapCore/MemoryMapCore.csproj new file mode 100644 index 0000000..02c051c --- /dev/null +++ b/Handler/Sub/MemoryMapCore/MemoryMapCore.csproj @@ -0,0 +1,52 @@ + + + + + Debug + AnyCPU + {140AF52A-5986-4413-BF02-8EA55A61891B} + Library + Properties + MemoryMapCore + MemoryMapCore + v4.8 + 512 + true + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Handler/Sub/MemoryMapCore/Properties/AssemblyInfo.cs b/Handler/Sub/MemoryMapCore/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c47289d --- /dev/null +++ b/Handler/Sub/MemoryMapCore/Properties/AssemblyInfo.cs @@ -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")] diff --git a/Handler/Sub/MemoryMapCore/Server.cs b/Handler/Sub/MemoryMapCore/Server.cs new file mode 100644 index 0000000..9c98f3b --- /dev/null +++ b/Handler/Sub/MemoryMapCore/Server.cs @@ -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; + }; + } + } +} diff --git a/Handler/Sub/Setting/Common.cs b/Handler/Sub/Setting/Common.cs index 21f21a8..33ff29e 100644 --- a/Handler/Sub/Setting/Common.cs +++ b/Handler/Sub/Setting/Common.cs @@ -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"; diff --git a/Handler/Sub/Setting/SETTING.cs b/Handler/Sub/Setting/SETTING.cs index a710a65..16fe359 100644 --- a/Handler/Sub/Setting/SETTING.cs +++ b/Handler/Sub/Setting/SETTING.cs @@ -25,10 +25,6 @@ namespace AR User.Save(); } - public static bool isEmpty(this string data) - { - return string.IsNullOrEmpty(data); - } } diff --git a/Handler/Sub/Setting/Setting.csproj b/Handler/Sub/Setting/Setting.csproj index 7487c06..f2291de 100644 --- a/Handler/Sub/Setting/Setting.csproj +++ b/Handler/Sub/Setting/Setting.csproj @@ -34,6 +34,10 @@ false + + False + ..\..\DLL\arCommUtil.dll + ..\..\DLL\ArSetting.Net4.dll @@ -53,15 +57,5 @@ - - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - - - {14e8c9a5-013e-49ba-b435-ffffff7dd623} - arCommUtil - - \ No newline at end of file diff --git a/Handler/Sub/arAzinAxt b/Handler/Sub/arAzinAxt index e14c9dd..34b3996 160000 --- a/Handler/Sub/arAzinAxt +++ b/Handler/Sub/arAzinAxt @@ -1 +1 @@ -Subproject commit e14c9dd159c9aec98fab23d96e9f6f8fa26cba12 +Subproject commit 34b39967594cc4b858f4c9dc6965392ed721f5a7 diff --git a/Handler/Sub/arCtl b/Handler/Sub/arCtl deleted file mode 160000 index 2491541..0000000 --- a/Handler/Sub/arCtl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 249154147d963ce57aef40e549bea01e304e8134 diff --git a/Handler/Sub/arFrameControl/arFrameControl.csproj b/Handler/Sub/arFrameControl/arFrameControl.csproj index ce199e7..3195060 100644 --- a/Handler/Sub/arFrameControl/arFrameControl.csproj +++ b/Handler/Sub/arFrameControl/arFrameControl.csproj @@ -87,12 +87,6 @@ - - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - -