diff --git a/.claude/settings.local.json b/.claude/settings.local.json deleted file mode 100644 index fa431c0..0000000 --- a/.claude/settings.local.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/claude-code-settings.json", - "permissions": { - "allow": [ - "Bash(curl:*)", - "Bash(mkdir:*)", - "Bash(copy \"C:\\Data\\Source\\(0014) GroupWare\\Source\\Project\\Web\\Controller\\BaseController.cs\" \"C:\\Data\\Source\\(0014) GroupWare\\Source\\EETGW.Shared\\Controllers\"\")", - "Bash(copy:*)", - "Bash(powershell:*)", - "Bash(git add:*)", - "Bash(git checkout:*)", - "Bash(dir \"C:\\Data\\Source\\(0014) GroupWare\\Source\\Project\\Web\\wwwroot\\lib\\js\")" - ], - "deny": [] - } -} \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 6101fe5..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,267 +0,0 @@ -# CLAUDE.md - -This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. - -## Project Overview - -This is a Korean Enterprise GroupWare system built with C# .NET Framework 4.6 and Windows Forms. The application serves as a comprehensive business management system that includes project management, purchasing, attendance tracking, reporting, and web-based functionality. The project runs on port 7979 (previously 9000) and includes both desktop and web components. - -## Architecture - -### Main Application (Project/EETGW.csproj) -- **Entry Point**: `Project/Program.cs` - Handles WebView2Runtime extraction and starts the main form -- **Main Form**: `Project/fMain.cs` - Primary application window -- **Web Server**: Integrated OWIN-based web server for HTTP API and static files -- **Database**: Microsoft SQL Server with Entity Framework 6.2.0 -- **Target Framework**: .NET Framework 4.6 - -### Key Components - -1. **Web Layer** (`Project/Web/`): - - **Startup.cs**: OWIN configuration for HTTP API and static file serving - - **Controllers**: API controllers for various business functions (Home, Project, Purchase, Item, etc.) - - **wwwroot**: Static web assets (HTML, CSS, JS files) - -2. **SubProjects**: Modular components with specific business functionality: - - **FPJ0000**: Project management module - - **FCM0000**: Customer management - - **FEQ0000**: Equipment management - - **FBS0000**: Holiday/attendance management - - **FCOMMON**: Shared common functionality - - **WebServer**: Additional web services - - **AmkorRestfulService**: REST API services - -3. **Sub Components** (`Sub/`): - - **arCtl**: Custom controls library - - **arftp**: FTP functionality - - **tcpservice**: TCP communication services - - **YARTE**: HTML editor component - - **StaffLayoutCtl**: Staff layout controls - -### Technology Stack -- **UI Framework**: Windows Forms with custom controls (FarPoint Spread grids) -- **Web Framework**: OWIN with ASP.NET Web API 5.2.9 -- **Database ORM**: Entity Framework 6.2.0 -- **JSON Processing**: Newtonsoft.Json 13.0.3 -- **Web Browser**: Microsoft WebView2 1.0.2210.55 -- **Reports**: Microsoft ReportViewer 15.0 -- **Excel Processing**: libxl.net and CsvHelper 30.0.1 - -### Running the Application -- **Debug Mode**: Run from Visual Studio or build and execute the output from `Project/bin/Debug/` -- **Web Server**: Automatically starts on port 7979 when the application launches -- **Database**: Ensure SQL Server connection string is configured in app.config - -### Package Management -- Uses NuGet packages defined in `packages.config` files throughout the solution -- Restore packages using: `nuget restore EETGW.sln` - -## Configuration - -### Database Connection -- Connection strings configured in individual `app.config` files -- Primary database connection in `Project/app.config` -- Uses Entity Framework with SQL Server - -### Web Server Configuration -- **Port**: 7979 (configured in startup) -- **Static Files**: Served from `Project/Web/wwwroot/` -- **API Routes**: Configured in `Project/Web/Startup.cs` -- **CORS**: Enabled for all origins - -### Build Configurations -- **Debug**: Outputs to `Project/bin/Debug/` with x86 platform target -- **Release**: Optimized build configuration -- Different output paths for various configurations (see EETGW.csproj) - -## Key Conventions - -### Code Organization -- Korean comments and variable names are common throughout the codebase -- Business logic separated into modular SubProjects -- Shared functionality centralized in FCOMMON project -- Custom controls and utilities in Sub/ directory - -### File Structure -- Each SubProject has its own namespace and assembly -- Form files follow naming convention: `f[FormName].cs` with corresponding `.Designer.cs` and `.resx` -- Dataset files use `.xsd` schemas with generated code - -### Dependencies -- Heavy use of FarPoint Spread controls for data grids -- Custom logging via ArLog.Net4.dll -- Settings management through ArSetting.Net4.dll -- Multiple third-party libraries for Excel, FTP, and web functionality - -## Development Notes - -- WebView2Runtime is automatically extracted on first run from WebView2Runtime.zip -- The application includes comprehensive error handling and logging -- Multiple authentication methods including AD integration -- Supports both Korean and English localization -- Includes extensive reporting capabilities with RDLC files - -## React Development Guidelines - -### 파일 생성 및 프로젝트 등록 규칙 - -**❗ CRITICAL RULE**: 새로운 파일을 생성할 때마다 반드시 EETGW.csproj에 등록해야 합니다. - -#### 자동 등록 필수사항 -1. **새 파일 생성 시**: Write 도구 사용 후 즉시 프로젝트 파일에 등록 -2. **등록 형식**: - ```xml - - PreserveNewest - - ``` -3. **빌드 작업**: 없음 (`` 태그 사용) -4. **출력 디렉터리**: `PreserveNewest` (새 파일이면 복사) - -#### 등록 대상 파일들 -- `Web\wwwroot\react\*.jsx` - React 컴포넌트 -- `Web\wwwroot\react-*.html` - React 페이지 -- `Web\wwwroot\*.html` - HTML 파일 -- `Web\wwwroot\*.js`, `Web\wwwroot\*.css` - 정적 자원 - -### React 아키텍처 패턴 - -#### 파일 구조 -- **컴포넌트**: `/Web/wwwroot/react/[ComponentName].jsx` -- **페이지**: `/Web/wwwroot/react-[pagename].html` -- **라우팅**: `ReactController`에서 `/react/[pagename]` 경로로 서빙 - -#### React 컴포넌트 구조 -```jsx -// React 컴포넌트 기본 구조 -const { useState, useEffect, useRef } = React; - -function ComponentName() { - // 상태 관리 - const [data, setData] = useState({}); - const [loading, setLoading] = useState(false); - - // API 연동 - const loadData = async () => { - try { - const response = await fetch('/Controller/Action'); - const result = await response.json(); - setData(result); - } catch (error) { - console.error('데이터 로드 실패:', error); - } - }; - - // 생명주기 - useEffect(() => { - loadData(); - }, []); - - return ( -
- {/* JSX 컨텐츠 */} -
- ); -} -``` - -#### HTML 페이지 구조 -```html - - - - 페이지명 (React) - - - - - -
- -
- - - - - - - - - - - - - -``` - -### ReactController 패턴 - -```csharp -[HttpGet] -[Route("react/pagename")] -public HttpResponseMessage PageName() -{ - try - { - var wwwrootPath = GetWwwRootPath(); - var filePath = Path.Combine(wwwrootPath, "react-pagename.html"); - - if (!File.Exists(filePath)) - { - return Request.CreateErrorResponse(HttpStatusCode.NotFound, - $"React page not found: {filePath}"); - } - - var content = File.ReadAllText(filePath, Encoding.UTF8); - var response = Request.CreateResponse(HttpStatusCode.OK); - response.Content = new StringContent(content, Encoding.UTF8, "text/html"); - - return response; - } - catch (Exception ex) - { - return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, - $"Error serving React page: {ex.Message}"); - } -} -``` - -### 개발 워크플로우 - -1. **컴포넌트 생성**: `/react/ComponentName.jsx` 파일 생성 -2. **페이지 생성**: `/react-pagename.html` 파일 생성 -3. **프로젝트 등록**: EETGW.csproj에 두 파일 모두 등록 -4. **라우트 추가**: ReactController에 새 라우트 추가 -5. **테스트**: 빌드 후 `/react/pagename`으로 접근 테스트 - -### API 연동 가이드라인 - -- **병렬 호출**: `Promise.all()` 사용으로 성능 최적화 -- **에러 처리**: try-catch로 모든 API 호출 감싸기 -- **로딩 상태**: 사용자 경험을 위한 로딩 인디케이터 필수 -- **실시간 업데이트**: 중요한 데이터는 자동 새로고침 구현 - -### 디자인 시스템 - -- **CSS 프레임워크**: Tailwind CSS 사용 -- **색상 팔레트**: primary, success, warning, danger 정의 -- **글래스 효과**: `glass-effect` 클래스 활용 -- **애니메이션**: `animate-fade-in`, `animate-slide-up` 등 -- **반응형**: 모바일 퍼스트 접근법 - -### 품질 기준 - -- **접근성**: 키보드 네비게이션, 스크린 리더 지원 -- **성능**: 30초 자동 새로고침, 로딩 최적화 -- **에러 처리**: 사용자 친화적 오류 메시지 -- **호환성**: 모든 주요 브라우저 지원 - -### 주의사항 - -- 기존 시스템과 병행 개발 (`/react/` 하위에서 개발) -- 기존 API 컨트롤러 최대한 재사용 -- 동일한 디자인 언어 유지 (색상, 폰트, 레이아웃) -- 단계적 전환을 위한 라우팅 분리 \ No newline at end of file diff --git a/DBMigration/DBMigration.csproj b/DBMigration/DBMigration.csproj deleted file mode 100644 index f094c8c..0000000 --- a/DBMigration/DBMigration.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - WinExe - net8.0-windows - enable - true - enable - - - - - - - - \ No newline at end of file diff --git a/DBMigration/DBMigration.csproj.user b/DBMigration/DBMigration.csproj.user deleted file mode 100644 index 3c1b984..0000000 --- a/DBMigration/DBMigration.csproj.user +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Form - - - Form - - - Form - - - \ No newline at end of file diff --git a/DBMigration/Forms/ConnectionForm.cs b/DBMigration/Forms/ConnectionForm.cs deleted file mode 100644 index 4b1ee65..0000000 --- a/DBMigration/Forms/ConnectionForm.cs +++ /dev/null @@ -1,131 +0,0 @@ -using DBMigration.Models; - -namespace DBMigration.Forms -{ - public partial class ConnectionForm : Form - { - public ConnectionInfo ConnectionInfo { get; private set; } - - public ConnectionForm() - { - InitializeComponent(); - this.Load += ConnectionForm_Load; - } - - private void ConnectionForm_Load(object? sender, EventArgs e) - { - UpdateCredentialsFields(); - this.txtServer.Text = "10.131.15.18"; - this.txtDatabase.Text = "EE"; - this.txtUserId.Text = "eeuser"; - this.txtPassword.Text = "Amkor123!"; - this.chkWindowsAuth.Checked = false; - } - - private void UpdateCredentialsFields() - { - bool isWindowsAuth = chkWindowsAuth.Checked; - txtUserId.Enabled = !isWindowsAuth; - txtPassword.Enabled = !isWindowsAuth; - } - - private void InitializeComponent() - { - this.txtServer = new TextBox(); - this.txtDatabase = new TextBox(); - this.txtUserId = new TextBox(); - this.txtPassword = new TextBox(); - this.chkWindowsAuth = new CheckBox(); - this.btnConnect = new Button(); - this.btnCancel = new Button(); - this.SuspendLayout(); - - // txtServer - this.txtServer.Location = new Point(12, 12); - this.txtServer.Size = new Size(200, 23); - this.txtServer.PlaceholderText = "서버 이름"; - - // txtDatabase - this.txtDatabase.Location = new Point(12, 41); - this.txtDatabase.Size = new Size(200, 23); - this.txtDatabase.PlaceholderText = "데이터베이스 이름"; - - // txtUserId - this.txtUserId.Location = new Point(12, 70); - this.txtUserId.Size = new Size(200, 23); - this.txtUserId.PlaceholderText = "사용자 ID"; - - // txtPassword - this.txtPassword.Location = new Point(12, 99); - this.txtPassword.Size = new Size(200, 23); - this.txtPassword.PasswordChar = '*'; - this.txtPassword.PlaceholderText = "비밀번호"; - - // chkWindowsAuth - this.chkWindowsAuth.Location = new Point(12, 128); - this.chkWindowsAuth.Size = new Size(200, 23); - this.chkWindowsAuth.Text = "Windows 인증 사용"; - this.chkWindowsAuth.CheckedChanged += (s, e) => UpdateCredentialsFields(); - - // btnConnect - this.btnConnect.Location = new Point(12, 157); - this.btnConnect.Size = new Size(95, 23); - this.btnConnect.Text = "연결"; - this.btnConnect.Click += BtnConnect_Click; - - // btnCancel - this.btnCancel.Location = new Point(117, 157); - this.btnCancel.Size = new Size(95, 23); - this.btnCancel.Text = "취소"; - this.btnCancel.Click += BtnCancel_Click; - - // ConnectionForm - this.ClientSize = new Size(224, 192); - this.Controls.AddRange(new Control[] { - this.txtServer, - this.txtDatabase, - this.txtUserId, - this.txtPassword, - this.chkWindowsAuth, - this.btnConnect, - this.btnCancel - }); - this.FormBorderStyle = FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.StartPosition = FormStartPosition.CenterParent; - this.Text = "데이터베이스 연결"; - this.ResumeLayout(false); - this.PerformLayout(); - } - - private void BtnConnect_Click(object? sender, EventArgs e) - { - ConnectionInfo = new ConnectionInfo - { - ServerName = txtServer.Text, - DatabaseName = txtDatabase.Text, - UserId = txtUserId.Text, - Password = txtPassword.Text, - UseWindowsAuthentication = chkWindowsAuth.Checked - }; - - DialogResult = DialogResult.OK; - Close(); - } - - private void BtnCancel_Click(object? sender, EventArgs e) - { - DialogResult = DialogResult.Cancel; - Close(); - } - - private TextBox txtServer; - private TextBox txtDatabase; - private TextBox txtUserId; - private TextBox txtPassword; - private CheckBox chkWindowsAuth; - private Button btnConnect; - private Button btnCancel; - } -} diff --git a/DBMigration/Forms/MainForm.Designer.cs b/DBMigration/Forms/MainForm.Designer.cs deleted file mode 100644 index 9400e68..0000000 --- a/DBMigration/Forms/MainForm.Designer.cs +++ /dev/null @@ -1,67 +0,0 @@ -namespace DBMigration.Forms -{ - partial class MainForm - { - private System.ComponentModel.IContainer components = null; - - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - this.treeObjects = new System.Windows.Forms.TreeView(); - this.btnConnectSource = new System.Windows.Forms.Button(); - this.btnMigrate = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // treeObjects - // - this.treeObjects.Location = new System.Drawing.Point(12, 12); - this.treeObjects.Name = "treeObjects"; - this.treeObjects.Size = new System.Drawing.Size(300, 400); - this.treeObjects.TabIndex = 0; - // - // btnConnectSource - // - this.btnConnectSource.Location = new System.Drawing.Point(12, 418); - this.btnConnectSource.Name = "btnConnectSource"; - this.btnConnectSource.Size = new System.Drawing.Size(150, 30); - this.btnConnectSource.TabIndex = 1; - this.btnConnectSource.Text = "소스 DB 연결"; - this.btnConnectSource.UseVisualStyleBackColor = true; - this.btnConnectSource.Click += new System.EventHandler(this.btnConnectSource_Click); - // - // btnMigrate - // - this.btnMigrate.Location = new System.Drawing.Point(168, 418); - this.btnMigrate.Name = "btnMigrate"; - this.btnMigrate.Size = new System.Drawing.Size(144, 30); - this.btnMigrate.TabIndex = 2; - this.btnMigrate.Text = "마이그레이션 시작"; - this.btnMigrate.UseVisualStyleBackColor = true; - this.btnMigrate.Click += new System.EventHandler(this.btnMigrate_Click); - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(324, 461); - this.Controls.Add(this.btnMigrate); - this.Controls.Add(this.btnConnectSource); - this.Controls.Add(this.treeObjects); - this.Name = "MainForm"; - this.Text = "DB Migration Tool"; - this.ResumeLayout(false); - } - - private System.Windows.Forms.TreeView treeObjects; - private System.Windows.Forms.Button btnConnectSource; - private System.Windows.Forms.Button btnMigrate; - } -} diff --git a/DBMigration/Forms/MainForm.cs b/DBMigration/Forms/MainForm.cs deleted file mode 100644 index 71c0dc1..0000000 --- a/DBMigration/Forms/MainForm.cs +++ /dev/null @@ -1,184 +0,0 @@ -using DBMigration.Models; -using DBMigration.Services; - -namespace DBMigration.Forms -{ - public partial class MainForm : Form - { - private readonly DatabaseService _databaseService; - private readonly MigrationService _migrationService; - private ConnectionInfo? _sourceConnection; - private ConnectionInfo? _targetConnection; - private List? _databaseObjects; - private readonly CancellationTokenSource _cancellationTokenSource; - - public MainForm() - { - InitializeComponent(); - _databaseService = new DatabaseService(); - _migrationService = new MigrationService(); - _cancellationTokenSource = new CancellationTokenSource(); - _databaseObjects = new List(); - } - - private async void btnConnectSource_Click(object sender, EventArgs e) - { - using (var form = new ConnectionForm()) - { - if (form.ShowDialog() == DialogResult.OK) - { - _sourceConnection = form.ConnectionInfo; - await LoadDatabaseObjectsAsync(); - } - } - } - - private async Task LoadDatabaseObjectsAsync() - { - try - { - btnConnectSource.Enabled = false; - treeObjects.Nodes.Clear(); - - // 테이블, 뷰, 프로시저 노드 생성 - var tableNode = treeObjects.Nodes.Add("Tables"); - var viewNode = treeObjects.Nodes.Add("Views"); - var procNode = treeObjects.Nodes.Add("Stored Procedures"); - - // 테이블 로드 - tableNode.Nodes.Add("Loading..."); - treeObjects.ExpandAll(); - await LoadTablesAsync(tableNode); - - // 뷰 로드 - viewNode.Nodes.Add("Loading..."); - await LoadViewsAsync(viewNode); - - // 프로시저 로드 - procNode.Nodes.Add("Loading..."); - await LoadProceduresAsync(procNode); - - btnConnectSource.Enabled = true; - } - catch (Exception ex) - { - MessageBox.Show($"데이터베이스 객체 로드 중 오류 발생: {ex.Message}", "오류", MessageBoxButtons.OK, MessageBoxIcon.Error); - btnConnectSource.Enabled = true; - } - } - - private async Task LoadTablesAsync(TreeNode parentNode) - { - try - { - parentNode.Nodes.Clear(); - parentNode.Nodes.Add("Loading..."); - - await foreach (var table in _databaseService.GetTables(_sourceConnection!)) - { - if (_cancellationTokenSource.Token.IsCancellationRequested) - return; - - var node = new TreeNode($"{table.Schema}.{table.Name}") - { - Tag = table, - Checked = table.IsSelected - }; - - parentNode.Nodes.Add(node); - await Task.Yield(); - } - } - catch (Exception ex) - { - parentNode.Nodes.Clear(); - parentNode.Nodes.Add($"Error: {ex.Message}"); - } - } - - private async Task LoadViewsAsync(TreeNode parentNode) - { - try - { - parentNode.Nodes.Clear(); - parentNode.Nodes.Add("Loading..."); - - await foreach (var view in _databaseService.GetViews(_sourceConnection!)) - { - if (_cancellationTokenSource.Token.IsCancellationRequested) - return; - - var node = new TreeNode($"{view.Schema}.{view.Name}") - { - Tag = view, - Checked = view.IsSelected - }; - - parentNode.Nodes.Add(node); - await Task.Yield(); - } - } - catch (Exception ex) - { - parentNode.Nodes.Clear(); - parentNode.Nodes.Add($"Error: {ex.Message}"); - } - } - - private async Task LoadProceduresAsync(TreeNode parentNode) - { - try - { - parentNode.Nodes.Clear(); - parentNode.Nodes.Add("Loading..."); - - await foreach (var proc in _databaseService.GetProcedures(_sourceConnection!)) - { - if (_cancellationTokenSource.Token.IsCancellationRequested) - return; - - var node = new TreeNode($"{proc.Schema}.{proc.Name}") - { - Tag = proc, - Checked = proc.IsSelected - }; - - parentNode.Nodes.Add(node); - await Task.Yield(); - } - } - catch (Exception ex) - { - parentNode.Nodes.Clear(); - parentNode.Nodes.Add($"Error: {ex.Message}"); - } - } - - protected override void OnFormClosing(FormClosingEventArgs e) - { - _cancellationTokenSource.Cancel(); - base.OnFormClosing(e); - } - - private void btnMigrate_Click(object sender, EventArgs e) - { - if (_targetConnection == null) - { - MessageBox.Show("대상 데이터베이스 연결 정보를 먼저 설정하세요.", "알림", MessageBoxButtons.OK, MessageBoxIcon.Information); - return; - } - - var selectedObjects = _databaseObjects.Where(o => o.IsSelected).ToList(); - if (selectedObjects.Count == 0) - { - MessageBox.Show("마이그레이션할 객체를 선택하세요.", "알림", MessageBoxButtons.OK, MessageBoxIcon.Information); - return; - } - - using (var form = new ProgressForm(selectedObjects, _sourceConnection, _targetConnection)) - { - form.ShowDialog(); - } - } - } -} diff --git a/DBMigration/Forms/MainForm.resx b/DBMigration/Forms/MainForm.resx deleted file mode 100644 index 29dcb1b..0000000 --- a/DBMigration/Forms/MainForm.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/DBMigration/Forms/ProgressForm.Designer.cs b/DBMigration/Forms/ProgressForm.Designer.cs deleted file mode 100644 index 91eb0d0..0000000 --- a/DBMigration/Forms/ProgressForm.Designer.cs +++ /dev/null @@ -1,56 +0,0 @@ -namespace DBMigration.Forms -{ - partial class ProgressForm - { - private System.ComponentModel.IContainer components = null; - - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - this.progressBar = new System.Windows.Forms.ProgressBar(); - this.logTextBox = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // progressBar - // - this.progressBar.Location = new System.Drawing.Point(12, 12); - this.progressBar.Name = "progressBar"; - this.progressBar.Size = new System.Drawing.Size(300, 23); - this.progressBar.TabIndex = 0; - // - // logTextBox - // - this.logTextBox.Location = new System.Drawing.Point(12, 41); - this.logTextBox.Multiline = true; - this.logTextBox.Name = "logTextBox"; - this.logTextBox.ReadOnly = true; - this.logTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.logTextBox.Size = new System.Drawing.Size(300, 200); - this.logTextBox.TabIndex = 1; - // - // ProgressForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(324, 253); - this.Controls.Add(this.logTextBox); - this.Controls.Add(this.progressBar); - this.Name = "ProgressForm"; - this.Text = "마이그레이션 진행 상황"; - this.Load += new System.EventHandler(this.ProgressForm_Load); - this.ResumeLayout(false); - this.PerformLayout(); - } - - private System.Windows.Forms.ProgressBar progressBar; - private System.Windows.Forms.TextBox logTextBox; - } -} diff --git a/DBMigration/Forms/ProgressForm.cs b/DBMigration/Forms/ProgressForm.cs deleted file mode 100644 index 6a0b9ca..0000000 --- a/DBMigration/Forms/ProgressForm.cs +++ /dev/null @@ -1,107 +0,0 @@ -using DBMigration.Models; -using DBMigration.Services; -using Microsoft.Data.SqlClient; - -namespace DBMigration.Forms -{ - public partial class ProgressForm : Form - { - private readonly List _objects; - private readonly ConnectionInfo _source; - private readonly ConnectionInfo _target; - private readonly MigrationService _migrationService; - - public ProgressForm(List objects, ConnectionInfo source, ConnectionInfo target) - { - InitializeComponent(); - _objects = objects; - _source = source; - _target = target; - _migrationService = new MigrationService(); - - progressBar.Maximum = _objects.Count; - } - - private async void ProgressForm_Load(object sender, EventArgs e) - { - await Task.Run(() => MigrateObjects()); - } - - private void MigrateObjects() - { - foreach (var obj in _objects) - { - try - { - UpdateProgress($"마이그레이션 시작: {obj.Type} {obj.Schema}.{obj.Name}"); - - if (obj.Type == "TABLE") - { - _migrationService.MigrateTable(obj, _source, _target); - } - else - { - // 뷰나 프로시저의 경우 스크립트만 실행 - ExecuteScript(obj.Definition, _target); - } - - UpdateProgress($"완료: {obj.Type} {obj.Schema}.{obj.Name}"); - UpdateProgressBar(); - } - catch (Exception ex) - { - UpdateProgress($"오류 발생: {obj.Type} {obj.Schema}.{obj.Name}"); - UpdateProgress($"에러 메시지: {ex.Message}"); - - if (MessageBox.Show( - $"{obj.Type} {obj.Schema}.{obj.Name} 마이그레이션 중 오류가 발생했습니다.\n계속 진행하시겠습니까?", - "오류", - MessageBoxButtons.YesNo, - MessageBoxIcon.Error) == DialogResult.No) - { - break; - } - } - } - - MessageBox.Show("마이그레이션이 완료되었습니다.", "완료", MessageBoxButtons.OK, MessageBoxIcon.Information); - DialogResult = DialogResult.OK; - } - - private void UpdateProgress(string message) - { - if (InvokeRequired) - { - Invoke(new Action(UpdateProgress), message); - return; - } - - logTextBox.AppendText(message + Environment.NewLine); - logTextBox.SelectionStart = logTextBox.TextLength; - logTextBox.ScrollToCaret(); - } - - private void UpdateProgressBar() - { - if (InvokeRequired) - { - Invoke(new Action(UpdateProgressBar)); - return; - } - - progressBar.Value++; - } - - private void ExecuteScript(string script, ConnectionInfo connection) - { - using (var conn = new SqlConnection(connection.GetConnectionString())) - { - conn.Open(); - using (var cmd = new SqlCommand(script, conn)) - { - cmd.ExecuteNonQuery(); - } - } - } - } -} diff --git a/DBMigration/Models/ConnectionInfo.cs b/DBMigration/Models/ConnectionInfo.cs deleted file mode 100644 index b9780c6..0000000 --- a/DBMigration/Models/ConnectionInfo.cs +++ /dev/null @@ -1,30 +0,0 @@ -namespace DBMigration.Models -{ - public class ConnectionInfo - { - public string ServerName { get; set; } = string.Empty; - public string DatabaseName { get; set; } = string.Empty; - public string UserId { get; set; } = string.Empty; - public string Password { get; set; } = string.Empty; - public bool UseWindowsAuthentication { get; set; } - - public string GetConnectionString() - { - var builder = new Microsoft.Data.SqlClient.SqlConnectionStringBuilder - { - DataSource = ServerName, - InitialCatalog = DatabaseName, - IntegratedSecurity = UseWindowsAuthentication, - TrustServerCertificate = true - }; - - if (!UseWindowsAuthentication) - { - builder.UserID = UserId; - builder.Password = Password; - } - - return builder.ConnectionString; - } - } -} diff --git a/DBMigration/Models/DatabaseObject.cs b/DBMigration/Models/DatabaseObject.cs deleted file mode 100644 index cae82d9..0000000 --- a/DBMigration/Models/DatabaseObject.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace DBMigration.Models -{ - public class DatabaseObject - { - public string Name { get; set; } = string.Empty; - public string Schema { get; set; } = string.Empty; - public string Type { get; set; } = string.Empty; - public bool IsSelected { get; set; } - public string Definition { get; set; } = string.Empty; - - public string FullName => $"[{Schema}].[{Name}]"; - } -} diff --git a/DBMigration/Program.cs b/DBMigration/Program.cs deleted file mode 100644 index f4a9e7c..0000000 --- a/DBMigration/Program.cs +++ /dev/null @@ -1,18 +0,0 @@ -using DBMigration.Forms; - -namespace DBMigration; - -static class Program -{ - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - // To customize application configuration such as set high DPI settings or default font, - // see https://aka.ms/applicationconfiguration. - ApplicationConfiguration.Initialize(); - Application.Run(new MainForm()); - } -} \ No newline at end of file diff --git a/DBMigration/Scripts/20251203_Add_Board_Reply_Structure.sql b/DBMigration/Scripts/20251203_Add_Board_Reply_Structure.sql deleted file mode 100644 index d520b1f..0000000 --- a/DBMigration/Scripts/20251203_Add_Board_Reply_Structure.sql +++ /dev/null @@ -1,327 +0,0 @@ --- ============================================= --- EETGW_Board 테이블 구조 변경: 댓글/답글 시스템 추가 --- 작성일: 2025-12-03 --- 설명: 계층형 댓글/답글을 효율적으로 관리하기 위한 컬럼 추가 --- ============================================= - -USE [EETGW] -GO - -PRINT '=== Starting EETGW_Board structure update ==='; -PRINT 'Timestamp: ' + CONVERT(VARCHAR(20), GETDATE(), 120); -GO - --- 1. 기존 테이블 백업 -IF NOT EXISTS (SELECT * FROM sys.tables WHERE name = 'EETGW_Board_Backup_20251203') -BEGIN - SELECT * INTO EETGW_Board_Backup_20251203 FROM EETGW_Board; - PRINT '✓ Backup created: EETGW_Board_Backup_20251203'; -END -ELSE -BEGIN - PRINT '⚠ Backup already exists: EETGW_Board_Backup_20251203'; -END -GO - --- 2. 새로운 컬럼 추가 -PRINT ''; -PRINT '--- Adding new columns ---'; - --- root_idx: 최상위 원글의 idx (답글/댓글이 어느 글에 속하는지) -IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('EETGW_Board') AND name = 'root_idx') -BEGIN - ALTER TABLE EETGW_Board ADD root_idx INT NULL; - PRINT '✓ Added column: root_idx (최상위 원글 idx)'; -END -ELSE -BEGIN - PRINT '⊙ Column already exists: root_idx'; -END -GO - --- depth: 댓글 깊이 (0=원글, 1=1차댓글, 2=2차댓글...) -IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('EETGW_Board') AND name = 'depth') -BEGIN - ALTER TABLE EETGW_Board ADD depth INT NOT NULL DEFAULT 0; - PRINT '✓ Added column: depth (댓글 깊이)'; -END -ELSE -BEGIN - PRINT '⊙ Column already exists: depth'; -END -GO - --- sort_order: 같은 레벨에서의 정렬 순서 -IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('EETGW_Board') AND name = 'sort_order') -BEGIN - ALTER TABLE EETGW_Board ADD sort_order INT NOT NULL DEFAULT 0; - PRINT '✓ Added column: sort_order (정렬 순서)'; -END -ELSE -BEGIN - PRINT '⊙ Column already exists: sort_order'; -END -GO - --- thread_path: 계층 경로 (예: "1/5/12" - 빠른 정렬과 조회용) -IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('EETGW_Board') AND name = 'thread_path') -BEGIN - ALTER TABLE EETGW_Board ADD thread_path VARCHAR(1000) NULL; - PRINT '✓ Added column: thread_path (계층 경로)'; -END -ELSE -BEGIN - PRINT '⊙ Column already exists: thread_path'; -END -GO - --- is_comment: 댓글 여부 (true=댓글형식, false=답글형식) -IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('EETGW_Board') AND name = 'is_comment') -BEGIN - ALTER TABLE EETGW_Board ADD is_comment BIT NOT NULL DEFAULT 0; - PRINT '✓ Added column: is_comment (댓글/답글 구분)'; -END -ELSE -BEGIN - PRINT '⊙ Column already exists: is_comment'; -END -GO - --- reply_count: 하위 댓글/답글 개수 (캐시용) -IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('EETGW_Board') AND name = 'reply_count') -BEGIN - ALTER TABLE EETGW_Board ADD reply_count INT NOT NULL DEFAULT 0; - PRINT '✓ Added column: reply_count (댓글 개수 캐시)'; -END -ELSE -BEGIN - PRINT '⊙ Column already exists: reply_count'; -END -GO - --- 3. 기존 데이터 마이그레이션 -PRINT ''; -PRINT '--- Migrating existing data ---'; - --- 원글(pidx가 0이거나 NULL인 경우) -UPDATE EETGW_Board -SET - root_idx = idx, - depth = 0, - thread_path = CAST(idx AS VARCHAR(20)), - sort_order = 0, - is_comment = 0 -WHERE ISNULL(pidx, 0) = 0 AND (root_idx IS NULL OR thread_path IS NULL); - -DECLARE @originalCount INT = @@ROWCOUNT; -PRINT '✓ Updated ' + CAST(@originalCount AS VARCHAR(10)) + ' original posts (depth=0)'; - --- 답글(pidx가 있는 경우) - 1depth만 처리 -UPDATE b -SET - root_idx = ISNULL(p.root_idx, b.pidx), - depth = CASE WHEN p.depth IS NULL THEN 1 ELSE p.depth + 1 END, - thread_path = ISNULL(p.thread_path, CAST(b.pidx AS VARCHAR(20))) + '/' + CAST(b.idx AS VARCHAR(20)), - sort_order = 0, - is_comment = 0 -FROM EETGW_Board b -LEFT JOIN EETGW_Board p ON b.pidx = p.idx -WHERE ISNULL(b.pidx, 0) > 0 AND (b.root_idx IS NULL OR b.thread_path IS NULL); - -DECLARE @replyCount INT = @@ROWCOUNT; -PRINT '✓ Updated ' + CAST(@replyCount AS VARCHAR(10)) + ' reply posts'; -GO - --- 4. 인덱스 추가 (성능 최적화) -PRINT ''; -PRINT '--- Creating indexes ---'; - -IF NOT EXISTS (SELECT * FROM sys.indexes WHERE name = 'IX_EETGW_Board_root_idx_thread_path') -BEGIN - CREATE INDEX IX_EETGW_Board_root_idx_thread_path - ON EETGW_Board(root_idx, thread_path); - PRINT '✓ Created index: IX_EETGW_Board_root_idx_thread_path'; -END -ELSE -BEGIN - PRINT '⊙ Index already exists: IX_EETGW_Board_root_idx_thread_path'; -END -GO - -IF NOT EXISTS (SELECT * FROM sys.indexes WHERE name = 'IX_EETGW_Board_pidx') -BEGIN - CREATE INDEX IX_EETGW_Board_pidx - ON EETGW_Board(pidx); - PRINT '✓ Created index: IX_EETGW_Board_pidx'; -END -ELSE -BEGIN - PRINT '⊙ Index already exists: IX_EETGW_Board_pidx'; -END -GO - -IF NOT EXISTS (SELECT * FROM sys.indexes WHERE name = 'IX_EETGW_Board_bidx_wdate') -BEGIN - CREATE INDEX IX_EETGW_Board_bidx_wdate - ON EETGW_Board(bidx, wdate DESC); - PRINT '✓ Created index: IX_EETGW_Board_bidx_wdate'; -END -ELSE -BEGIN - PRINT '⊙ Index already exists: IX_EETGW_Board_bidx_wdate'; -END -GO - --- 5. reply_count 업데이트 (기존 데이터 기준) -PRINT ''; -PRINT '--- Updating reply counts ---'; - -UPDATE p -SET reply_count = ( - SELECT COUNT(*) - FROM EETGW_Board c - WHERE c.root_idx = p.idx AND c.depth > 0 -) -FROM EETGW_Board p -WHERE p.depth = 0; - -DECLARE @updatedRootPosts INT = @@ROWCOUNT; -PRINT '✓ Updated reply_count for ' + CAST(@updatedRootPosts AS VARCHAR(10)) + ' root posts'; -GO - --- 6. 트리거 생성 (reply_count 자동 업데이트) -PRINT ''; -PRINT '--- Creating triggers ---'; - -IF EXISTS (SELECT * FROM sys.triggers WHERE name = 'TR_EETGW_Board_AfterInsert') -BEGIN - DROP TRIGGER TR_EETGW_Board_AfterInsert; - PRINT '⊙ Dropped existing trigger: TR_EETGW_Board_AfterInsert'; -END -GO - -CREATE TRIGGER TR_EETGW_Board_AfterInsert -ON EETGW_Board -AFTER INSERT -AS -BEGIN - SET NOCOUNT ON; - - -- 댓글/답글이 추가된 경우 root_idx의 reply_count 증가 - UPDATE b - SET b.reply_count = b.reply_count + 1 - FROM EETGW_Board b - INNER JOIN inserted i ON b.idx = i.root_idx - WHERE i.root_idx IS NOT NULL AND i.depth > 0; -END -GO - -PRINT '✓ Created trigger: TR_EETGW_Board_AfterInsert'; -GO - -IF EXISTS (SELECT * FROM sys.triggers WHERE name = 'TR_EETGW_Board_AfterDelete') -BEGIN - DROP TRIGGER TR_EETGW_Board_AfterDelete; - PRINT '⊙ Dropped existing trigger: TR_EETGW_Board_AfterDelete'; -END -GO - -CREATE TRIGGER TR_EETGW_Board_AfterDelete -ON EETGW_Board -AFTER DELETE -AS -BEGIN - SET NOCOUNT ON; - - -- 댓글/답글이 삭제된 경우 root_idx의 reply_count 감소 - UPDATE b - SET b.reply_count = b.reply_count - 1 - FROM EETGW_Board b - INNER JOIN deleted d ON b.idx = d.root_idx - WHERE d.root_idx IS NOT NULL AND d.depth > 0 AND b.reply_count > 0; -END -GO - -PRINT '✓ Created trigger: TR_EETGW_Board_AfterDelete'; -GO - --- 7. 조회용 뷰 생성 (옵션) -PRINT ''; -PRINT '--- Creating views ---'; - -IF EXISTS (SELECT * FROM sys.views WHERE name = 'vEETGW_Board_WithReplies') -BEGIN - DROP VIEW vEETGW_Board_WithReplies; - PRINT '⊙ Dropped existing view: vEETGW_Board_WithReplies'; -END -GO - -CREATE VIEW vEETGW_Board_WithReplies -AS -SELECT - b.idx, - b.bidx, - b.header, - b.cate, - b.title, - b.contents, - b.[file], - b.guid, - b.url, - b.wuid, - b.wdate, - b.project, - b.pidx, - b.gcode, - b.[close], - b.remark, - b.root_idx, - b.depth, - b.sort_order, - b.thread_path, - b.is_comment, - b.reply_count, - dbo.getUserName(b.wuid) AS wuid_name, - CASE WHEN b.depth = 0 THEN b.idx ELSE b.root_idx END AS display_root_idx -FROM EETGW_Board b; -GO - -PRINT '✓ Created view: vEETGW_Board_WithReplies'; -GO - --- 8. 검증 쿼리 -PRINT ''; -PRINT '--- Verification ---'; - -DECLARE @totalPosts INT = (SELECT COUNT(*) FROM EETGW_Board); -DECLARE @rootPosts INT = (SELECT COUNT(*) FROM EETGW_Board WHERE depth = 0); -DECLARE @replyPosts INT = (SELECT COUNT(*) FROM EETGW_Board WHERE depth > 0); - -PRINT 'Total posts: ' + CAST(@totalPosts AS VARCHAR(10)); -PRINT 'Root posts (depth=0): ' + CAST(@rootPosts AS VARCHAR(10)); -PRINT 'Reply posts (depth>0): ' + CAST(@replyPosts AS VARCHAR(10)); -GO - -PRINT ''; -PRINT '=== EETGW_Board structure update completed successfully ==='; -PRINT ''; -PRINT '📋 New columns added:'; -PRINT ' • root_idx: 최상위 원글 idx'; -PRINT ' • depth: 댓글 깊이 (0=원글, 1=1차댓글, 2=2차댓글...)'; -PRINT ' • sort_order: 같은 레벨에서 정렬 순서'; -PRINT ' • thread_path: 계층 경로 (빠른 정렬용)'; -PRINT ' • is_comment: 댓글 타입 (0=답글, 1=댓글)'; -PRINT ' • reply_count: 하위 댓글 개수'; -PRINT ''; -PRINT '📝 Usage examples:'; -PRINT ' -- 원글 목록 (댓글 개수 포함)'; -PRINT ' SELECT * FROM EETGW_Board WHERE bidx = 5 AND depth = 0 ORDER BY wdate DESC;'; -PRINT ''; -PRINT ' -- 특정 글의 전체 댓글 (계층 구조 유지)'; -PRINT ' SELECT * FROM EETGW_Board WHERE root_idx = 123 ORDER BY thread_path, wdate;'; -PRINT ''; -PRINT ' -- 1depth 댓글만 조회'; -PRINT ' SELECT * FROM EETGW_Board WHERE root_idx = 123 AND depth = 1 ORDER BY wdate;'; -PRINT ''; -PRINT '✅ Migration completed at: ' + CONVERT(VARCHAR(20), GETDATE(), 120); -GO diff --git a/DBMigration/Services/DatabaseService.cs b/DBMigration/Services/DatabaseService.cs deleted file mode 100644 index 068a17e..0000000 --- a/DBMigration/Services/DatabaseService.cs +++ /dev/null @@ -1,123 +0,0 @@ -using Microsoft.Data.SqlClient; -using Microsoft.SqlServer.Management.Smo; -using DBMigration.Models; -using System.Threading.Tasks; - -namespace DBMigration.Services -{ - public class DatabaseService - { - public async IAsyncEnumerable GetTables(ConnectionInfo connection) - { - await foreach (var obj in GetDatabaseObjectsAsync(connection, "TABLE")) - { - yield return obj; - } - } - - public async IAsyncEnumerable GetViews(ConnectionInfo connection) - { - await foreach (var obj in GetDatabaseObjectsAsync(connection, "VIEW")) - { - yield return obj; - } - } - - public async IAsyncEnumerable GetProcedures(ConnectionInfo connection) - { - await foreach (var obj in GetDatabaseObjectsAsync(connection, "PROCEDURE")) - { - yield return obj; - } - } - - private async IAsyncEnumerable GetDatabaseObjectsAsync(ConnectionInfo connection, string objectType) - { - using (var conn = new SqlConnection(connection.GetConnectionString())) - { - await conn.OpenAsync(); - var server = new Server(new Microsoft.SqlServer.Management.Common.ServerConnection(conn)); - var database = server.Databases[connection.DatabaseName]; - - switch (objectType) - { - case "TABLE": - foreach (Table table in database.Tables) - { - if (table.IsSystemObject || table.Name.StartsWith("_")) continue; - yield return CreateDatabaseObject(table); - await Task.Yield(); - } - break; - - case "VIEW": - foreach (Microsoft.SqlServer.Management.Smo.View view in database.Views) - { - if (view.IsSystemObject) continue; - yield return CreateDatabaseObject(view); - await Task.Yield(); - } - break; - - case "PROCEDURE": - foreach (StoredProcedure sp in database.StoredProcedures) - { - if (sp.IsSystemObject) continue; - yield return CreateDatabaseObject(sp); - await Task.Yield(); - } - break; - } - } - } - - private DatabaseObject CreateDatabaseObject(Table table) - { - return new DatabaseObject - { - Name = table.Name, - Schema = table.Schema, - Type = "TABLE", - Definition = GetTableDefinition(table) - }; - } - - private DatabaseObject CreateDatabaseObject(Microsoft.SqlServer.Management.Smo.View view) - { - return new DatabaseObject - { - Name = view.Name, - Schema = view.Schema, - Type = "VIEW", - Definition = view.TextBody - }; - } - - private DatabaseObject CreateDatabaseObject(StoredProcedure sp) - { - return new DatabaseObject - { - Name = sp.Name, - Schema = sp.Schema, - Type = "PROCEDURE", - Definition = sp.TextBody - }; - } - - private string GetTableDefinition(Table table) - { - var options = new ScriptingOptions - { - IncludeIfNotExists = true, - ScriptDrops = false, - WithDependencies = true, - Indexes = true, - Triggers = true, - ClusteredIndexes = true, - NonClusteredIndexes = true - }; - - return table.Script(options).ToString(); - } - } -} diff --git a/DBMigration/Services/MigrationService.cs b/DBMigration/Services/MigrationService.cs deleted file mode 100644 index 946867b..0000000 --- a/DBMigration/Services/MigrationService.cs +++ /dev/null @@ -1,92 +0,0 @@ -using Microsoft.Data.SqlClient; -using Microsoft.SqlServer.Management.Smo; -using DBMigration.Models; - -namespace DBMigration.Services -{ - public class MigrationService - { - private readonly DatabaseService _databaseService; - - public MigrationService() - { - _databaseService = new DatabaseService(); - } - - public void MigrateTable(DatabaseObject table, ConnectionInfo source, ConnectionInfo target) - { - using (var sourceConn = new SqlConnection(source.GetConnectionString())) - using (var targetConn = new SqlConnection(target.GetConnectionString())) - { - sourceConn.Open(); - targetConn.Open(); - - // 1. 테이블 생성 (인덱스 포함) - ExecuteScript(table.Definition, targetConn); - - // 2. IDENTITY와 트리거 비활성화 - DisableIdentityAndTriggers(table, targetConn); - - // 3. 데이터 복사 - CopyData(table, sourceConn, targetConn); - - // 4. IDENTITY와 트리거 재활성화 - EnableIdentityAndTriggers(table, targetConn); - - // 5. 통계 업데이트 - UpdateStatistics(table, targetConn); - } - } - - private void ExecuteScript(string script, SqlConnection connection) - { - using (var cmd = new SqlCommand(script, connection)) - { - cmd.ExecuteNonQuery(); - } - } - - private void DisableIdentityAndTriggers(DatabaseObject table, SqlConnection connection) - { - var disableScript = $@" - -- IDENTITY 비활성화 - SET IDENTITY_INSERT {table.FullName} ON; - - -- 트리거 비활성화 - DISABLE TRIGGER ALL ON {table.FullName};"; - - ExecuteScript(disableScript, connection); - } - - private void EnableIdentityAndTriggers(DatabaseObject table, SqlConnection connection) - { - var enableScript = $@" - -- IDENTITY 활성화 - SET IDENTITY_INSERT {table.FullName} OFF; - - -- 트리거 활성화 - ENABLE TRIGGER ALL ON {table.FullName};"; - - ExecuteScript(enableScript, connection); - } - - private void CopyData(DatabaseObject table, SqlConnection source, SqlConnection target) - { - using (var cmd = new SqlCommand($"SELECT * FROM {table.FullName}", source)) - using (var reader = cmd.ExecuteReader()) - { - using (var bulkCopy = new SqlBulkCopy(target)) - { - bulkCopy.DestinationTableName = table.FullName; - bulkCopy.WriteToServer(reader); - } - } - } - - private void UpdateStatistics(DatabaseObject table, SqlConnection connection) - { - var updateStatsScript = $"UPDATE STATISTICS {table.FullName} WITH FULLSCAN;"; - ExecuteScript(updateStatsScript, connection); - } - } -} diff --git a/DLL/arControl.Net4.dll b/DLL/arControl.Net4.dll index e378884..7292ae7 100644 Binary files a/DLL/arControl.Net4.dll and b/DLL/arControl.Net4.dll differ diff --git a/DLL/arControl.Net4.pdb b/DLL/arControl.Net4.pdb index a930199..9b3f80e 100644 Binary files a/DLL/arControl.Net4.pdb and b/DLL/arControl.Net4.pdb differ diff --git a/EETGW.sln b/EETGW.sln index ec4773d..6aa20f5 100644 --- a/EETGW.sln +++ b/EETGW.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 15 for Windows Desktop -VisualStudioVersion = 15.0.36324.19 +# Visual Studio Version 17 +VisualStudioVersion = 17.14.36310.24 d17.14 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EETGW", "Project\EETGW.csproj", "{65F3E762-800C-499E-862F-A535642EC59F}" EndProject @@ -21,25 +21,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project", "Project", "{6C7E EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FBS0000", "SubProject\FBS0000\FBS0000.csproj", "{F6F515C6-6628-47C4-8A94-683BDF9FBB9C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FTPClass", "Sub\arftp\FTPClass.csproj", "{150859D3-1C5D-4E20-B324-F9EBE188D893}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FPM0000", "SubProject\FPM0000\FPM0000.csproj", "{D01A7891-AD0B-489B-8C45-F598C875FE26}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arControl", "Sub\arCtl\arControl.csproj", "{F31C242C-1B15-4518-9733-48558499FE4B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arTCPService.Shared", "Sub\tcpservice\arTCPService.Shared\arTCPService.Shared.csproj", "{3CD79316-211A-4B57-A6B4-00FA6091C29D}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UMSControl", "SubProject\CMSControl\UMSControl.csproj", "{55EF08A8-6E94-4569-8371-7AAC9DE916AB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebServer", "SubProject\WebServer\WebServer.csproj", "{CAFE5CD0-C055-4C77-9253-8D5EE9558D43}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FED0000", "SubProject\FED0000\FED0000.csproj", "{3869B8C1-1290-4864-B72D-D771475F914D}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "솔루션 항목", "솔루션 항목", "{3F107B67-9A59-4767-A20A-07A8AC4299D0}" - ProjectSection(SolutionItems) = preProject - MemoryMap.cs = MemoryMap.cs - EndProjectSection -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YARTE", "Sub\YARTE\YARTE.csproj", "{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Console_SendMail", "Sub\Console_SendMail\Console_SendMail.csproj", "{8C94D335-7468-4964-AA24-1E3313CF7ABA}" @@ -98,12 +85,6 @@ Global {F6F515C6-6628-47C4-8A94-683BDF9FBB9C}.Release|Any CPU.ActiveCfg = Release|Any CPU {F6F515C6-6628-47C4-8A94-683BDF9FBB9C}.Release|Any CPU.Build.0 = Release|Any CPU {F6F515C6-6628-47C4-8A94-683BDF9FBB9C}.Release|x86.ActiveCfg = Release|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|Any CPU.Build.0 = Debug|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|x86.ActiveCfg = Debug|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Release|Any CPU.ActiveCfg = Release|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Release|Any CPU.Build.0 = Release|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Release|x86.ActiveCfg = Release|Any CPU {D01A7891-AD0B-489B-8C45-F598C875FE26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D01A7891-AD0B-489B-8C45-F598C875FE26}.Debug|Any CPU.Build.0 = Debug|Any CPU {D01A7891-AD0B-489B-8C45-F598C875FE26}.Debug|x86.ActiveCfg = Debug|Any CPU @@ -112,22 +93,6 @@ Global {D01A7891-AD0B-489B-8C45-F598C875FE26}.Release|Any CPU.Build.0 = Release|Any CPU {D01A7891-AD0B-489B-8C45-F598C875FE26}.Release|x86.ActiveCfg = Release|Any CPU {D01A7891-AD0B-489B-8C45-F598C875FE26}.Release|x86.Build.0 = Release|Any CPU - {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|x86.ActiveCfg = Debug|Any CPU - {F31C242C-1B15-4518-9733-48558499FE4B}.Debug|x86.Build.0 = 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|x86.ActiveCfg = Release|Any CPU - {F31C242C-1B15-4518-9733-48558499FE4B}.Release|x86.Build.0 = Release|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Debug|x86.ActiveCfg = Debug|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Debug|x86.Build.0 = Debug|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Release|Any CPU.Build.0 = Release|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Release|x86.ActiveCfg = Release|Any CPU - {3CD79316-211A-4B57-A6B4-00FA6091C29D}.Release|x86.Build.0 = Release|Any CPU {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Debug|Any CPU.Build.0 = Debug|Any CPU {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Debug|x86.ActiveCfg = Debug|Any CPU @@ -136,14 +101,6 @@ Global {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Release|Any CPU.Build.0 = Release|Any CPU {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Release|x86.ActiveCfg = Release|Any CPU {55EF08A8-6E94-4569-8371-7AAC9DE916AB}.Release|x86.Build.0 = Release|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Debug|x86.ActiveCfg = Debug|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Debug|x86.Build.0 = Debug|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Release|Any CPU.Build.0 = Release|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Release|x86.ActiveCfg = Release|Any CPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43}.Release|x86.Build.0 = Release|Any CPU {3869B8C1-1290-4864-B72D-D771475F914D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3869B8C1-1290-4864-B72D-D771475F914D}.Debug|Any CPU.Build.0 = Debug|Any CPU {3869B8C1-1290-4864-B72D-D771475F914D}.Debug|x86.ActiveCfg = Debug|Any CPU @@ -187,12 +144,8 @@ Global {74836A5F-CB5B-449F-9210-99C9D1A23B97} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6} {26982882-C1FF-45F8-861C-D67558725FF1} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6} {F6F515C6-6628-47C4-8A94-683BDF9FBB9C} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6} - {150859D3-1C5D-4E20-B324-F9EBE188D893} = {28105E67-9D33-4627-8E26-FCE67700622F} {D01A7891-AD0B-489B-8C45-F598C875FE26} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6} - {F31C242C-1B15-4518-9733-48558499FE4B} = {28105E67-9D33-4627-8E26-FCE67700622F} - {3CD79316-211A-4B57-A6B4-00FA6091C29D} = {28105E67-9D33-4627-8E26-FCE67700622F} {55EF08A8-6E94-4569-8371-7AAC9DE916AB} = {28105E67-9D33-4627-8E26-FCE67700622F} - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6} {3869B8C1-1290-4864-B72D-D771475F914D} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6} {DB5EE9C8-EACF-4231-877E-B9DFD7A714DE} = {28105E67-9D33-4627-8E26-FCE67700622F} EndGlobalSection diff --git a/FTP_DB_Adapt/FTP_DB_Adapt.sln b/FTP_DB_Adapt/FTP_DB_Adapt.sln deleted file mode 100644 index 91b8f6a..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt.sln +++ /dev/null @@ -1,47 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.40629.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FTP_DB_Adapt", "FTP_DB_Adapt\FTP_DB_Adapt.csproj", "{BECE73DE-15C8-42B0-9F93-9484D745DF3A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FTPClass", "FTP_DB_Adapt\Sub\arftp\FTPClass.csproj", "{150859D3-1C5D-4E20-B324-F9EBE188D893}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArLog", "FTP_DB_Adapt\Sub\arLog_CSharp\ArLog.csproj", "{E9E16A98-8F8D-4848-A27E-4571C184FB1A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arSetting", "FTP_DB_Adapt\Sub\arSetting\arSetting.csproj", "{8870CE55-DF29-4E05-92FA-6D251DE4EC6C}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sub", "Sub", "{97A5415A-4C67-4C76-95E6-4AB406BF67CD}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Release|Any CPU.Build.0 = Release|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|Any CPU.Build.0 = Debug|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Release|Any CPU.ActiveCfg = Release|Any CPU - {150859D3-1C5D-4E20-B324-F9EBE188D893}.Release|Any CPU.Build.0 = Release|Any CPU - {E9E16A98-8F8D-4848-A27E-4571C184FB1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E9E16A98-8F8D-4848-A27E-4571C184FB1A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E9E16A98-8F8D-4848-A27E-4571C184FB1A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E9E16A98-8F8D-4848-A27E-4571C184FB1A}.Release|Any CPU.Build.0 = Release|Any CPU - {8870CE55-DF29-4E05-92FA-6D251DE4EC6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8870CE55-DF29-4E05-92FA-6D251DE4EC6C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8870CE55-DF29-4E05-92FA-6D251DE4EC6C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8870CE55-DF29-4E05-92FA-6D251DE4EC6C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {150859D3-1C5D-4E20-B324-F9EBE188D893} = {97A5415A-4C67-4C76-95E6-4AB406BF67CD} - {E9E16A98-8F8D-4848-A27E-4571C184FB1A} = {97A5415A-4C67-4C76-95E6-4AB406BF67CD} - {8870CE55-DF29-4E05-92FA-6D251DE4EC6C} = {97A5415A-4C67-4C76-95E6-4AB406BF67CD} - EndGlobalSection -EndGlobal diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/CSetting.cs b/FTP_DB_Adapt/FTP_DB_Adapt/CSetting.cs deleted file mode 100644 index fcef6fb..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/CSetting.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace FTP_DB_Adapt -{ - public class CSetting : arUtil.Setting - { - public string connstr { get; set; } - public string ftphost { get; set; } - public string ftpid { get; set; } - public string ftppw { get; set; } - - public override void AfterLoad() - { - if (connstr == "") - connstr = "Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"; - } - public override void AfterSave() - { - //throw new NotImplementedException(); - } - } -} diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/FTP_DB_Adapt.csproj b/FTP_DB_Adapt/FTP_DB_Adapt/FTP_DB_Adapt.csproj deleted file mode 100644 index e037f1c..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/FTP_DB_Adapt.csproj +++ /dev/null @@ -1,86 +0,0 @@ - - - - - Debug - AnyCPU - {BECE73DE-15C8-42B0-9F93-9484D745DF3A} - Exe - Properties - FTP_DB_Adapt - FTP_DB_Adapt - v4.5 - 512 - - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - ..\..\DLL\ArLog.Net4.dll - - - ..\..\DLL\ArSetting.Net4.dll - - - ..\..\DLL\Newtonsoft.Json.dll - - - - - - - - - - - - - - - True - True - Settings.settings - - - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - {150859d3-1c5d-4e20-b324-f9ebe188d893} - FTPClass - - - - - \ No newline at end of file diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/Program.cs b/FTP_DB_Adapt/FTP_DB_Adapt/Program.cs deleted file mode 100644 index e950481..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/Program.cs +++ /dev/null @@ -1,236 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -namespace FTP_DB_Adapt -{ - class Program - { - static System.Data.SqlClient.SqlConnection cn; - static System.Data.SqlClient.SqlCommand cmd; - static System.Data.SqlClient.SqlDataAdapter da; - static arUtil.FTPClient.FTPClient ftp; - static CSetting setting; - static arUtil.Log log; - - static string lastfile = ""; - static DateTime lasttime = DateTime.Now; - - class retdata - { - public int count { get; set; } - public System.Data.DataTable result { get; set; } - public string message { get; set; } - } - - static void Main(string[] args) - { - //var jstest = JsonConvert.SerializeObject(retval); - // var jsontest = "{\"count\":1,\"result\":[{\"id\":\"395552\",\"password\":\"B6589FC6AB0DC82CF12099D1C2D40AB994E8410C\",\"nameE\":\"Chikyun.Kim\",\"name\":\"��ġ��\",\"dept\":\"�������� ������� K4�����1��Ʈ\",\"grade\":\"å��\",\"email\":\"Chikyun.Kim@amkor.co.kr\",\"level\":1,\"indate\":\"2018-04-11\",\"outdate\":null"; - /// var json = JObject.Parse(jsontest); - // // var cnt = json["count"]; - - cw("setting load"); - setting = new CSetting(); - setting.Load(); - if (setting.Xml.Exist() == false) - { - setting.Xml.CreateFile(); - cw("setting file created"); - } - - if (setting.ftphost == "") - { - setting.ftphost = "ftp.amkor.co.kr"; - setting.ftpid = "k4pcbmgr"; - setting.ftppw = "W2$fYiXp"; - setting.Save(); - cw("setting default"); - } - cw(string.Format("ftp info - {0}", setting.ftphost)); - - - Properties.Settings.Default["cs"] = setting.connstr; // "Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"; - - - cw("program start v191212-0950" ); - cn = new System.Data.SqlClient.SqlConnection(Properties.Settings.Default.cs); - DateTime conntime = DateTime.Now; - - - - //ftp = new arUtil.FTPClient(); - while(true) - { - if(cn.State == System.Data.ConnectionState.Open) - { - if(ftp == null) - { - ftp = new arUtil.FTPClient.FTPClient(); - ftp.Host = setting.ftphost; - ftp.UserPassword = setting.ftppw; - ftp.UserID = setting.ftpid; - ftp.Port = 21; - cw(string.Format("ftp Initialize {0}",ftp.Host)); - } - - //monitor file list - string path = "/2D TEST/101369103/Log/QryResult"; - var list = ftp.directoryListSimple(path); - var sqllist = list.Where(t => t.ToLower().EndsWith(".sql")); - DateTime findtime = DateTime.Parse("1982-11-23"); - foreach(var sqlfile in sqllist) - { - string fn = sqlfile.Substring(0, sqlfile.Length - 3); - string resultfile = fn + "json"; - if (list.Contains(resultfile)) continue; - - if(lastfile == sqlfile) - { - var ts = DateTime.Now - lasttime; - if (ts.TotalSeconds < 3) continue; //3초이내 연속 실행 불가 - } - - //다운로드전에 무조건 대기해준다. - System.Threading.Thread.Sleep(200); - - // //이파일명에 해당하는 json 파일을 찾는다. - // string rltfile = - var file_local = AppDomain.CurrentDomain.BaseDirectory + sqlfile; - var file_remote = path + "/" + sqlfile; - try - { - if (System.IO.File.Exists(file_local)) System.IO.File.Delete(file_local); - cw(string.Format("Down {0} to {1}",file_remote, file_local)); - lastfile = sqlfile; - lasttime = DateTime.Now; - if(ftp.Download(file_remote,file_local)) - { - retdata retval = new retdata(); - retval.count = 0; - retval.result = null; - retval.message = ""; - - - cw("download ok : " + file_remote); - - var jsonStr = ""; - var sql = System.IO.File.ReadAllText(file_local, System.Text.Encoding.Default); - if (cmd == null) cmd = new System.Data.SqlClient.SqlCommand(sql); - - var downfi = new System.IO.FileInfo(file_local); - if (downfi.Length < 1) - { - retval.message = "0byte File Downaloaded : " + file_local; - } - else if(sql.Trim() == "") - { - retval.message = "No Sql data"; - } - else - { - cmd.CommandText = sql; - cmd.Connection = cn; - if (cn.State == System.Data.ConnectionState.Closed) cn.Open(); - - if (sql.ToLower().StartsWith("select")) - { - cw("select query"); - //data table - if (da == null) da = new System.Data.SqlClient.SqlDataAdapter(cmd); - using (var ds = new System.Data.DataSet()) - { - try - { - da.Fill(ds); - if (ds != null && ds.Tables.Count > 0) - { - retval.result = ds.Tables[0]; - retval.count = retval.result.Rows.Count; - } - } - catch (Exception ex) - { - retval.message = ex.Message + ",sql=" + sql; - } - } - } - else - { - cw("non query"); - //insert /update/ delete - cmd.Connection = cn; - try - { - retval.count = cmd.ExecuteNonQuery(); - } - catch (Exception ex) - { - retval.message = ex.Message + ",sql=" + sql; - } - } - - jsonStr = JsonConvert.SerializeObject(retval); - if (jsonStr != "") - { - file_local = AppDomain.CurrentDomain.BaseDirectory + resultfile; - System.IO.File.WriteAllText(file_local, jsonStr, System.Text.Encoding.Default); - cw("result file save : " + file_local); - - file_remote = path + "/" + resultfile; - if (!ftp.Upload(file_remote, file_local)) - cw("ftp Upload error remote = " + file_remote + "," + file_local); - } - } - } - else - { - cw("ftp down error remote = " + file_remote); - } - } - catch (Exception ex) - { - cw("conn error:" + ex.Message); - } - } - - } - else - { - var ts = DateTime.Now - conntime; - if(ts.TotalSeconds > 5) - { - try - { - cw("Try Database Connect "); - cn.Open(); - cw("Database Connected\n\nFTP Monitor ON"); - } - catch (Exception ex) - { - cw("conn error:" + ex.Message); - } - finally - { - conntime = DateTime.Now; - } - } - } - System.Threading.Thread.Sleep(1); - } - - } - static void cw(string msg,Boolean logon=true) - { - if(log == null) - { - log = new arUtil.Log(); - } - if (logon) log.Add(msg); - Console.WriteLine(msg); - } - - } -} diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/Properties/AssemblyInfo.cs b/FTP_DB_Adapt/FTP_DB_Adapt/Properties/AssemblyInfo.cs deleted file mode 100644 index 3b05de8..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 어셈블리의 일반 정보는 다음 특성 집합을 통해 제어됩니다. -// 어셈블리와 관련된 정보를 수정하려면 -// 이 특성 값을 변경하십시오. -[assembly: AssemblyTitle("FTP_DB_Adapt")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("FTP_DB_Adapt")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 -// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 -// 해당 형식에 대해 ComVisible 특성을 true로 설정하십시오. -[assembly: ComVisible(false)] - -// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. -[assembly: Guid("0d606978-0719-4d02-aea0-740db9f2a058")] - -// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. -// -// 주 버전 -// 부 버전 -// 빌드 번호 -// 수정 버전 -// -// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 버전이 자동으로 -// 지정되도록 할 수 있습니다. -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("19.12.12.0950")] -[assembly: AssemblyFileVersion("19.12.12.0950")] diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/Properties/Settings.Designer.cs b/FTP_DB_Adapt/FTP_DB_Adapt/Properties/Settings.Designer.cs deleted file mode 100644 index 5f08a8d..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/Properties/Settings.Designer.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 도구를 사용하여 생성되었습니다. -// 런타임 버전:4.0.30319.42000 -// -// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 -// 이러한 변경 내용이 손실됩니다. -// -//------------------------------------------------------------------------------ - -namespace FTP_DB_Adapt.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.ApplicationScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + - "user;Password=EEmicro123!")] - public string cs { - get { - return ((string)(this["cs"])); - } - } - } -} diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/Properties/Settings.settings b/FTP_DB_Adapt/FTP_DB_Adapt/Properties/Settings.settings deleted file mode 100644 index 44add71..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/Properties/Settings.settings +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - <?xml version="1.0" encoding="utf-16"?> -<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</ConnectionString> - <ProviderName>System.Data.SqlClient</ProviderName> -</SerializableConnectionString> - Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123! - - - \ No newline at end of file diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arLog_CSharp b/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arLog_CSharp deleted file mode 160000 index 106f873..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arLog_CSharp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 106f873d3755c65f5e5d2bee865416a8fd95c36e diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arSetting b/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arSetting deleted file mode 160000 index a09d4eb..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arSetting +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a09d4eb9f84e578ca93d5413f118d3370ca32dae diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arftp b/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arftp deleted file mode 160000 index 0826cbe..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/Sub/arftp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0826cbe09b31b0c3b3bb0f4f55b3ab17aaa76b51 diff --git a/FTP_DB_Adapt/FTP_DB_Adapt/app.config b/FTP_DB_Adapt/FTP_DB_Adapt/app.config deleted file mode 100644 index 51c6552..0000000 --- a/FTP_DB_Adapt/FTP_DB_Adapt/app.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/FTP_DB_Adapt/Newtonsoft.Json.dll b/FTP_DB_Adapt/Newtonsoft.Json.dll deleted file mode 100644 index 05c95b2..0000000 Binary files a/FTP_DB_Adapt/Newtonsoft.Json.dll and /dev/null differ diff --git a/FarpointGridSetting/fItem.xml b/FarpointGridSetting/fItem.xml deleted file mode 100644 index e875943..0000000 --- a/FarpointGridSetting/fItem.xml +++ /dev/null @@ -1,900 +0,0 @@ - - - - - - 0 - False - False - False - False - True - False - False - False - False - Copy - - True - Default - True - False - False - False - True - False - True - True - True - False - False - - Tile - Separate - No - True - True - 0 - Empty - Empty - False - True - True - Default - Default - Both - Split - True - 0.05 - 1.5 - 0 - True - True - False - Row - Column - Off - Off - True - True - Fixed3D - Always - True - AllHeaders - ExcludeSpans - ExcludeSpans - False - Leading - NoControl - True - NoControl - None - Always - False - False - -1 - Always - 1 - False - 0 - True - True - No - Leading - Always - Cells, Rows, Columns, Sheet - 1 - - Control - False - Always - - - - - - - WithHorizontalScrollBar - AsNeeded - 0.5 - - Info - InfoText - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - - 500 - Off - -1 - False - Always - 1 - Auto - - - 3 - -16777216 - - - - - White - White - White - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - Black - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - #ffd5d5d5 - #ffd5d5d5 - #ffdfe3f0 - #ffdfe3f0 - #ffdfe3f0 - White - White - White - White - #ffbaeafd - #ffbaeafd - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - White - Empty - #ff666666 - #ff666666 - #ffa6acb3 - #ffb2b2b2 - Trapezoid - Flat - Flat - - - - - #64c1e0ff - #64baeafd - #64baeafd - #64baeafd - #64baeafd - #64c1e0ff - - - - False - - - - - - - Auto - - - - - - - - - Auto - - - - - True - 평균 - 평균(&A) - Right - - - True - 개수 - 개수(&C) - Right - - - False - 숫자 세기 - 숫자세기(&T) - Right - - - False - 최소값 - 최소값(&I) - Right - - - False - 최대값 - 최대값(&X) - Right - - - True - 합계 - 합계 - Right - - - True - - 확대/축소 슬라이더(&Z) - Right - - - True - - 확대/축소(&Z) - Right - - - Default - White - Black - #ffcdcdcd - #ffa6a6a6 - #ffcdcdcd - #ffa6a6a6 - - Microsoft Sans Serif - 8.25 - False - 1 - False - False - False - Point - False - - - True - - - #ffe7eff7 - - - - 0001-01-01T00:00:00.000 - 0001-01-01T00:00:00.000 - 0 - - - - - Sheet1 - - #ffe7eff7 - - - - - - - False - - - - - 10 - 0 - -1 - -1 - - - - - - - - - 6 - - - - - - - - - - - - 맑은 고딕 - 9 - False - 129 - False - False - False - Point - False - - - - - 1 - 1 - 0 - 0 - - - 0 - -1 - 0 - - - - - 0 - -1 - 0 - - - - - - - - - - - 88 - 8 - 1 - - - 113 - 8 - 1 - - - 84 - 8 - 1 - - - 113 - 8 - 1 - - - 84 - 8 - 1 - - - - - - - <_startIndex>-1 - False - 35 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - <_startIndex>-1 - 42 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - - - - - 2 - - - - - 2 - - - - - 2 - - - - - 2 - - - - #ffe0e0e0 - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - Center - - - #ffc0ffff - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - 0 - False - UseRegional - 999999999999999 - -999999999999999 - UseRegional - True - True - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Right - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - - -1 - None - -1 - True - UseRegional - 999999999999999 - -999999999999999 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - Center - - - - 2 - - - - - - - - 0 - 0 - 800 - 904 - spreadNotesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - None - - - 0 - #ffffffff - - - 0 - #ffffffff - - - - - True - - - - 22 - - - - - - - - - - - 0 - 0 - 800 - 904 - spreadShapesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - - - - - - - - True - - - - True - False - A1 - False - 1 - 0.001 - -1 - Sheet1 - - - - idx - - - - - cate - - - - - name - - - - - sid - - - - - model - - - - - unit - - - - - price - - - - - manu - - - - - memo - - - - - scale - - - - - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - False - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - SummaryBelow, SummaryRight - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - - \ No newline at end of file diff --git a/FarpointGridSetting/fJobReport.xml b/FarpointGridSetting/fJobReport.xml deleted file mode 100644 index 03b1a7f..0000000 --- a/FarpointGridSetting/fJobReport.xml +++ /dev/null @@ -1,896 +0,0 @@ - - - - - - 0 - False - False - False - False - True - False - False - False - False - Copy - - True - Default - True - False - False - False - True - False - True - True - True - False - False - - Tile - Separate - No - True - True - 0 - Empty - Empty - False - True - True - Default - Default - Both - Split - True - 0.05 - 1.5 - 0 - True - True - False - Row - Column - Off - Off - True - True - Fixed3D - Always - True - AllHeaders - ExcludeSpans - ExcludeSpans - False - Leading - NoControl - True - NoControl - None - Always - False - False - -1 - Always - 1 - False - 0 - True - True - No - Leading - Always - Cells, Rows, Columns, Sheet - 1 - - Control - False - Always - - - - - - - WithHorizontalScrollBar - AsNeeded - 0.5 - - Info - InfoText - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - - 500 - Off - -1 - False - Always - 1 - Auto - - - 3 - -16777216 - - - - - White - White - White - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - Black - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - #ffd5d5d5 - #ffd5d5d5 - #ffdfe3f0 - #ffdfe3f0 - #ffdfe3f0 - White - White - White - White - #ffbaeafd - #ffbaeafd - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - White - Empty - #ff666666 - #ff666666 - #ffa6acb3 - #ffb2b2b2 - Trapezoid - Flat - Flat - - - - - #64c1e0ff - #64baeafd - #64baeafd - #64baeafd - #64baeafd - #64c1e0ff - - - - False - - - - - - - Auto - - - - - - - - - Auto - - - - - True - 평균 - 평균(&A) - Right - - - True - 개수 - 개수(&C) - Right - - - False - 숫자 세기 - 숫자세기(&T) - Right - - - False - 최소값 - 최소값(&I) - Right - - - False - 최대값 - 최대값(&X) - Right - - - True - 합계 - 합계 - Right - - - True - - 확대/축소 슬라이더(&Z) - Right - - - True - - 확대/축소(&Z) - Right - - - Default - White - Black - #ffcdcdcd - #ffa6a6a6 - #ffcdcdcd - #ffa6a6a6 - - Microsoft Sans Serif - 8.25 - False - 1 - False - False - False - Point - False - - - True - - - #ffe7eff7 - - - - 0001-01-01T00:00:00.000 - 0001-01-01T00:00:00.000 - 0 - - - - - Sheet1 - - #ffe7eff7 - - - - - - - False - - - - - 9 - 0 - -1 - -1 - - - - - - - - - 4 - - - - - - - - - - - - 맑은 고딕 - 9 - False - 1 - False - False - False - Point - False - - - - - 1 - 1 - 0 - 0 - - - 0 - -1 - 0 - - - - - 0 - -1 - 0 - - - - - - - - - - - 58 - 8 - 1 - - - 78 - 8 - 1 - - - 74 - 8 - 1 - - - 109 - 8 - 1 - - - 88 - 8 - 1 - - - 73 - 8 - 1 - - - 34 - 8 - 1 - - - 25 - 8 - 1 - - - 113 - 8 - 1 - - - - - - - <_startIndex>-1 - False - 35 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - <_startIndex>-1 - 28 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - - - - - 2 - - - - - 2 - - - - - 2 - - - - - 2 - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - #ffe0e0e0 - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - #ffe0e0e0 - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - - -1 - None - -1 - True - UseRegional - 999999999999999 - -999999999999999 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - - 2 - - - - - - - - 0 - 0 - 800 - 904 - spreadNotesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - None - - - 0 - #ffffffff - - - 0 - #ffffffff - - - - - True - - - - 22 - - - - - - - - - - - 0 - 0 - 800 - 904 - spreadShapesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - - - - - - - - True - - - - True - False - A1 - False - 1 - 0.001 - -1 - Sheet1 - - - - pdate - - - - - group - - - - - username - - - - - project - mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:System.String - - - - - projectidx - mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:System.Int32 - - - - - progress - - - - - type - - - - - hrs - - - - - memo - - - - - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - True - True - A1 - False - 1 - 0.001 - -1 - - - Date - - - Group - - - User - - - Project - - - * - - - % - - - Type - - - True - - - False - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - SummaryBelow, SummaryRight - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - - \ No newline at end of file diff --git a/FarpointGridSetting/fPartList.xml b/FarpointGridSetting/fPartList.xml deleted file mode 100644 index 01c292c..0000000 --- a/FarpointGridSetting/fPartList.xml +++ /dev/null @@ -1,1461 +0,0 @@ - - - - - - 0 - False - False - False - False - True - False - False - False - False - Copy - - True - Default - True - False - False - False - True - False - True - True - True - False - False - - Tile - Separate - No - True - True - 0 - Empty - Empty - False - True - True - Default - Default - Both - Split - True - 0.05 - 1.5 - 0 - True - True - False - Row - Column - Off - Off - True - True - Fixed3D - Always - True - AllHeaders - ExcludeSpans - ExcludeSpans - False - Leading - NoControl - True - NoControl - None - Always - False - True - -1 - Always - 1 - False - 0 - True - True - No - Leading - Always - Cells, Rows, Columns, Sheet - 1 - - Control - False - Always - - - - - - - WithHorizontalScrollBar - AsNeeded - 0.5 - - Info - InfoText - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - - 500 - Off - -1 - False - Always - 1 - Auto - - - - - - #ff828790 - #ffababab - #ff575757 - - - - - - - False - - - - - - - Auto - - - - - - - - - - - Auto - - - - - - - True - 평균 - 평균(&A) - Right - - - True - 개수 - 개수(&C) - Right - - - False - 숫자 세기 - 숫자세기(&T) - Right - - - False - 최소값 - 최소값(&I) - Right - - - False - 최대값 - 최대값(&X) - Right - - - True - 합계 - 합계 - Right - - - True - - 확대/축소 슬라이더(&Z) - Right - - - True - - 확대/축소(&Z) - Right - - - Office2013 - #ff217346 - White - #ff439467 - White - #ff439467 - White - - Microsoft Sans Serif - 8.25 - False - 1 - False - False - False - Point - False - - - True - - - #ffe7eff7 - PartList - - - - 0001-01-01T00:00:00.000 - 0001-01-01T00:00:00.000 - 0 - - - - - Sheet1 - - #ffe7eff7 - Partlist - - - - - -
PartList
-
EET Groupware - Alpha -
- 0 - 1 - Auto - All - Auto - False - False - False - -1 - -1 - -1 - -1 - -1 - -1 - False - True - True - False - True - Inherit - Inherit - Inherit - True - Inherit - Inherit - Default - 1 - False - False - False - True - False - 255 - None - True - None - -1 - -1 - -1 - -1 - 1 - 1 - -1 - -1 - - False - 0 - 0 -
- - - - - - False - - - - - 12 - 0 - -1 - -1 - - - - - - - - - 4 - -
-
-
- - - - - - - - Office2013 - - - #ff828790 - #ffababab - #ff575757 - - - - - Window - - -1 - None - False - - WindowText - General - General - Auto - - - White - ControlText - Center - - - - Default - Control - - Tile - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - ControlText - No - - False - True - NoControl - 0 - True - True - True - Top, Left - None - - 0 - 0 - - - 3 - 3 - 3 - 3 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - ButtonFace - Default - ControlDark - None - Horizontal - Center - None - ControlLightLight - - - 0 - TextLeftPictRight - - 0 - TextHorizontal - 0 - False - True - 0 - Center - Auto - True - False - - Center - Auto - - - White - - True - False - True - True - False - False - 0 - Text - GrayText - - ControlText - Center - Center - Auto - - - White - ControlText - Center - - - - Default - Control - - Tile - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - ControlText - No - - False - True - NoControl - 0 - True - True - True - Top, Left - None - - 0 - 0 - - - 3 - 3 - 3 - 3 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - ButtonFace - Default - ControlDark - None - Horizontal - Center - None - ControlLightLight - - - 0 - TextLeftPictRight - - 0 - TextHorizontal - 0 - False - True - 0 - Center - Auto - True - False - - Center - Auto - - - White - ControlText - Center - - - - Default - Control - - Tile - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - ControlText - No - - False - True - NoControl - 0 - True - True - True - Top, Left - None - - 0 - 0 - - - 3 - 3 - 3 - 3 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - ButtonFace - Default - ControlDark - None - Horizontal - Center - None - ControlLightLight - - - 0 - TextLeftPictRight - - 0 - TextHorizontal - 0 - False - True - 0 - Center - Auto - True - False - - Center - Auto - - - White - ControlText - Center - - - - Default - Control - - Tile - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - ControlText - No - - False - True - NoControl - 0 - True - True - True - Top, Left - None - - 0 - 0 - - - 3 - 3 - 3 - 3 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - ButtonFace - Default - ControlDark - None - Horizontal - Center - None - ControlLightLight - - - 0 - TextLeftPictRight - - 0 - TextHorizontal - 0 - False - True - 0 - Center - Auto - True - False - - Center - Auto - - - White - ControlText - Center - - Center - Auto - - - Office2013 - #ff217346 - White - #ff439467 - White - #ff439467 - White - - Microsoft Sans Serif - 8.25 - False - 1 - False - False - False - Point - False - - - - White - ControlText - Center - - Center - Auto - - - - 맑은 고딕 - 9 - False - 129 - False - False - False - Point - False - - - - - 1 - 1 - 0 - 0 - - - 0 - -1 - 0 - - - - - 0 - -1 - 0 - - - - - - - - - - - 113 - 8 - 1 - - - 88 - 8 - 1 - - - 113 - 8 - 1 - - - 88 - 8 - 1 - - - 84 - 8 - 1 - - - 88 - 8 - 1 - - - 113 - 8 - 1 - - - 100 - 8 - 1 - - - - - - - <_startIndex>-1 - False - 35 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - <_startIndex>-1 - 36 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - - - - - 2 - - - - - 2 - - - - - 2 - - - - - 2 - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - - - #ffffffc0 - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - #ffe0e0e0 - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - - True - -- - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - True - , - True - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - Center - - - - True - -- - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - True - , - True - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Right - Center - - - #ffe0e0e0 - - True - -- - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - True - , - True - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Right - Center - - - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - #ffffffc0 - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAABxTeXN0ZW0uV2luZG93cy5Gb3Jtcy5JbWVNb2RlAQAAAAd2YWx1ZV9fAAgCAAAACgAAAAs= - - - #ffe0e0e0 - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - 2 - - - - - - - - 0 - 0 - 800 - 904 - spreadNotesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - None - - - 0 - #ffffffff - - - 0 - #ffffffff - - - - - True - - - - 22 - - - - - - - - - - - 0 - 0 - 800 - 904 - spreadShapesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - - - - - - - - True - - - - True - False - A1 - False - 1 - 0.001 - -1 - Sheet1 - - - - ItemGroup - - - - - ItemName - - - - - Item - - - - - ItemModel - - - - - qty - - - - qty*price - - price - - - - - amt - - - - - jago - - - - - memo - - - - - supplyName - - - - - supplyidx - - - - - itemSID - - - - - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - True - True - A1 - False - 1 - 0.001 - -1 - - - Group - - - Item - - - * - - - Model - - - Stock - - - Supply - - - * - - - SID - - - True - - - False - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - SummaryBelow, SummaryRight - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - -
\ No newline at end of file diff --git a/FarpointGridSetting/fProjectList.xml b/FarpointGridSetting/fProjectList.xml deleted file mode 100644 index 2819994..0000000 --- a/FarpointGridSetting/fProjectList.xml +++ /dev/null @@ -1,883 +0,0 @@ - - - - - - 0 - False - False - False - False - True - False - False - False - False - Copy - - True - Default - True - False - False - False - True - False - True - True - True - False - False - - Tile - Separate - No - True - True - 0 - Empty - Empty - False - True - True - Default - Default - Both - Split - True - 0.05 - 1.5 - 0 - True - True - False - Row - Column - Off - Off - True - True - Fixed3D - Always - True - AllHeaders - ExcludeSpans - ExcludeSpans - False - Leading - NoControl - True - NoControl - None - Always - False - False - -1 - Always - 1 - False - 0 - True - True - No - Leading - Always - Cells, Rows, Columns, Sheet - 1 - - Control - False - Always - - - - - - - WithHorizontalScrollBar - AsNeeded - 0.5 - - Info - InfoText - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - - 500 - Off - -1 - False - Always - 1 - Auto - - - 3 - -16777216 - - - - - White - White - White - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - Black - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - #ffd5d5d5 - #ffd5d5d5 - #ffdfe3f0 - #ffdfe3f0 - #ffdfe3f0 - White - White - White - White - #ffbaeafd - #ffbaeafd - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - White - Empty - #ff666666 - #ff666666 - #ffa6acb3 - #ffb2b2b2 - Trapezoid - Flat - Flat - - - - - #64c1e0ff - #64baeafd - #64baeafd - #64baeafd - #64baeafd - #64c1e0ff - - - - False - - - - - - - Auto - - - - - - - - - Auto - - - - - True - 평균 - 평균(&A) - Right - - - True - 개수 - 개수(&C) - Right - - - False - 숫자 세기 - 숫자세기(&T) - Right - - - False - 최소값 - 최소값(&I) - Right - - - False - 최대값 - 최대값(&X) - Right - - - True - 합계 - 합계 - Right - - - True - - 확대/축소 슬라이더(&Z) - Right - - - True - - 확대/축소(&Z) - Right - - - Default - White - Black - #ffcdcdcd - #ffa6a6a6 - #ffcdcdcd - #ffa6a6a6 - - Microsoft Sans Serif - 8.25 - False - 1 - False - False - False - Point - False - - - True - - - #ffe7eff7 - - - - 0001-01-01T00:00:00.000 - 0001-01-01T00:00:00.000 - 0 - - - - - Sheet1 - - #ffe7eff7 - - - - - - - False - - - - - 10 - 0 - -1 - -1 - - - - - - - - - 3 - - - - - - - - - - - - 맑은 고딕 - 9 - False - 1 - False - False - False - Point - False - - - - - 1 - 1 - 0 - 0 - - - 0 - -1 - 0 - - - - - 0 - -1 - 0 - - - - - - - - - - - 113 - 8 - 1 - - - 70 - 8 - 1 - - - 113 - 8 - 1 - - - - - - - <_startIndex>-1 - False - 35 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - <_startIndex>-1 - 28 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - - - - - 2 - - - - - 2 - - - - - 2 - - - - - 2 - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - #ffe0e0e0 - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - #ffe0e0e0 - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - #ffe0e0e0 - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - Center - - - - 2 - - - - - - - - 0 - 0 - 800 - 904 - spreadNotesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - None - - - 0 - #ffffffff - - - 0 - #ffffffff - - - - - True - - - - 22 - - - - - - - - - - - 0 - 0 - 800 - 904 - spreadShapesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - - - - - - - - True - - - - True - False - A1 - False - 1 - 0.001 - -1 - Sheet1 - - - - pdate - - - - - statusName - - - - - name - - - - - usermain - mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:System.String - - - - - request - - - - - reqstaff - - - - - sdate - - - - - edate - - - - - odate - - - - - memo - - - - - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - True - True - A1 - False - 1 - 0.001 - -1 - - - Date - - - Stat - - - Title - - - User - - - Req.Dept - - - Req.Staff - - - Start - - - End - - - Release - - - True - - - False - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - SummaryBelow, SummaryRight - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - - \ No newline at end of file diff --git a/FarpointGridSetting/fPurchase.xml b/FarpointGridSetting/fPurchase.xml deleted file mode 100644 index 851e1cd..0000000 --- a/FarpointGridSetting/fPurchase.xml +++ /dev/null @@ -1,1297 +0,0 @@ - - - - - - 0 - False - False - False - False - True - False - False - False - False - Copy - - True - Default - True - False - False - False - True - False - True - True - True - False - False - - Tile - Separate - No - True - True - 0 - Empty - Empty - False - True - True - Default - Default - Both - Split - True - 0.05 - 1.5 - 0 - True - True - False - Row - Column - Off - Off - True - True - Fixed3D - Always - True - AllHeaders - ExcludeSpans - ExcludeSpans - False - Leading - NoControl - True - NoControl - None - Always - False - True - -1 - Always - 1 - False - 0 - True - True - No - Leading - Always - Cells, Rows, Columns, Sheet - 1 - - Control - False - Always - - - - - - - WithHorizontalScrollBar - AsNeeded - 0.5 - - Info - InfoText - - 굴림 - 9 - False - 129 - False - False - False - Point - False - - - 500 - Off - -1 - False - Always - 1 - Auto - - - 3 - -16777216 - - - - - White - White - White - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - Black - White - White - White - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffa6acb3 - #ffd5d5d5 - #ffd5d5d5 - #ffdfe3f0 - #ffdfe3f0 - #ffdfe3f0 - White - White - White - White - #ffbaeafd - #ffbaeafd - White - White - #ffbaeafd - #ffbaeafd - #ffbaeafd - #ffbaeafd - White - Empty - #ff666666 - #ff666666 - #ffa6acb3 - #ffb2b2b2 - Trapezoid - Flat - Flat - - - - - #64c1e0ff - #64baeafd - #64baeafd - #64baeafd - #64baeafd - #64c1e0ff - - - - False - - - - - - - Auto - - - - - - - - - Auto - - - - - True - 평균 - 평균(&A) - Right - - - True - 개수 - 개수(&C) - Right - - - False - 숫자 세기 - 숫자세기(&T) - Right - - - False - 최소값 - 최소값(&I) - Right - - - False - 최대값 - 최대값(&X) - Right - - - True - 합계 - 합계 - Right - - - True - - 확대/축소 슬라이더(&Z) - Right - - - True - - 확대/축소(&Z) - Right - - - Default - White - Black - #ffcdcdcd - #ffa6a6a6 - #ffcdcdcd - #ffa6a6a6 - - Microsoft Sans Serif - 8.25 - False - 1 - False - False - False - Point - False - - - True - - - #ffe7eff7 - - - - 0001-01-01T00:00:00.000 - 0001-01-01T00:00:00.000 - 0 - - - - - Sheet1 - - #ffe7eff7 - - - - - - - False - - - - - 23 - 0 - -1 - -1 - - - - - - - - - 1 - - - - - - - - - - - - 맑은 고딕 - 9 - False - 129 - False - False - False - Point - False - - - - - 1 - 1 - 0 - 0 - - - 0 - -1 - 0 - - - - - 0 - -1 - 0 - - - - - - - - - - - 34 - 8 - 1 - - - 49 - 8 - 1 - - - 48 - 8 - 1 - - - 27 - 8 - 1 - - - 46 - 8 - 1 - - - 31 - 8 - 1 - - - 33 - 8 - 1 - - - 14 - 8 - 1 - - - 43 - 8 - 1 - - - 28 - 8 - 1 - - - 31 - 8 - 1 - - - 35 - 8 - 1 - - - 32 - 8 - 1 - - - 46 - 8 - 1 - - - 14 - 8 - 1 - - - 46 - 8 - 1 - - - 14 - 8 - 1 - - - 35 - 8 - 1 - - - 38 - 8 - 1 - - - 42 - 8 - 1 - - - 23 - 8 - 1 - - - 33 - 8 - 1 - - - - - - - <_startIndex>-1 - False - 35 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - <_startIndex>-1 - 37 - <_endIndex>-1 - - - - - - - <_startIndex>-1 - False - <_endIndex>-1 - - - - - - - 2 - - - - - 2 - - - - - 2 - - - - - 2 - - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - #ffe0e0e0 - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - #ffe0e0e0 - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - - - - -1 - None - -1 - True - UseRegional - 999999999999999 - -999999999999999 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Right - - - - -1 - None - -1 - True - UseRegional - 999999999999999 - -999999999999999 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Right - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - #ffe0e0e0 - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - #ffe0e0e0 - - -1 - None - 0 - True - Yes - 2147483647 - -2147483648 - UseRegional - False - False - False - 1 - 0.1 - False - Auto - 3 - # ???/??? - False - False - False - - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Center - - - - -1 - None - Normal - 255 - False - None - Ascii - None - - Left - - - - 2 - - - - - - - - 0 - 0 - 800 - 904 - spreadNotesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - None - - - 0 - #ffffffff - - - 0 - #ffffffff - - - - - True - - - - 22 - - - - - - - - - - - 0 - 0 - 800 - 904 - spreadShapesContainer - - ControlText - Transparent - Center - Center - 255 - - Empty - 0 - Black - 1 - Solid - 0 - 0 - 0 - 0 - False - True - True - False - True - False - False - TextRotateCustom - None - None - - - - - - - - - True - - - - True - False - A1 - False - 1 - 0.001 - -1 - Sheet1 - - - - pdate - - - - - state - mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:System.String - - - - - process - - - - - request - - - - - sc - - - - - receive - - - - - sid - - - - - pumname - - - - - pumidx - - - - - pumscale - - - - - pumqty - - - - - pumunit - - - - - pumprice - - - - - pumamt - - - - - supply - - - - - supplyidx - - - - - project - - - - - projectidx - - - - - asset - - - - - edate - - - - - indate - - - - - po - - - - - dept - - - - - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - True - True - A1 - False - 1 - 0.001 - -1 - - - Date - - - state - - - sc# - - - sid# - - - Item - - - * - - - Model - - - Qty - - - Unit - - - Price - - - Amt - - - Supply - - - * - - - * - - - True - - - False - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - SummaryBelow, SummaryRight - True - - - True - True - A1 - False - 1 - 0.001 - -1 - True - - - - - \ No newline at end of file diff --git a/JobReportMailService/App.config b/JobReportMailService/App.config deleted file mode 100644 index c183762..0000000 --- a/JobReportMailService/App.config +++ /dev/null @@ -1,24 +0,0 @@ - - - - -
- - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/JobReportMailService/CSetting.cs b/JobReportMailService/CSetting.cs deleted file mode 100644 index 6f4061a..0000000 --- a/JobReportMailService/CSetting.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace JobReportMailService -{ - public class CSetting : arUtil.Setting - { - // public string connstr { get; set; } - public Boolean autoRun { get; set; } - public Boolean autoRunData { get; set; } - public override void AfterLoad() - { - //throw new NotImplementedException(); - //if (connstr == "") - // connstr = "Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"; - } - public override void AfterSave() - { - //throw new NotImplementedException(); - } - } -} diff --git a/JobReportMailService/DataSet1.Designer.cs b/JobReportMailService/DataSet1.Designer.cs deleted file mode 100644 index 859f6f1..0000000 --- a/JobReportMailService/DataSet1.Designer.cs +++ /dev/null @@ -1,15011 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 도구를 사용하여 생성되었습니다. -// 런타임 버전:4.0.30319.42000 -// -// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 -// 이러한 변경 내용이 손실됩니다. -// -//------------------------------------------------------------------------------ - -#pragma warning disable 1591 - -namespace JobReportMailService { - - - /// - ///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("DataSet1")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] - public partial class DataSet1 : global::System.Data.DataSet { - - private MailAutoDataTable tableMailAuto; - - private MailDataDataTable tableMailData; - - private MailFormDataTable tableMailForm; - - private vMailingProjectScheduleDataTable tablevMailingProjectSchedule; - - private vJobReportForUserDataTable tablevJobReportForUser; - - private vJobReportUserListDataTable tablevJobReportUserList; - - private JobReportDataTable tableJobReport; - - private HolidayLIstDataTable tableHolidayLIst; - - private vGroupUserDataTable tablevGroupUser; - - private JobReportDateListDataTable tableJobReportDateList; - - 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")] - public DataSet1() { - 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", "16.0.0.0")] - protected DataSet1(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["MailAuto"] != null)) { - base.Tables.Add(new MailAutoDataTable(ds.Tables["MailAuto"])); - } - if ((ds.Tables["MailData"] != null)) { - base.Tables.Add(new MailDataDataTable(ds.Tables["MailData"])); - } - if ((ds.Tables["MailForm"] != null)) { - base.Tables.Add(new MailFormDataTable(ds.Tables["MailForm"])); - } - if ((ds.Tables["vMailingProjectSchedule"] != null)) { - base.Tables.Add(new vMailingProjectScheduleDataTable(ds.Tables["vMailingProjectSchedule"])); - } - if ((ds.Tables["vJobReportForUser"] != null)) { - base.Tables.Add(new vJobReportForUserDataTable(ds.Tables["vJobReportForUser"])); - } - if ((ds.Tables["vJobReportUserList"] != null)) { - base.Tables.Add(new vJobReportUserListDataTable(ds.Tables["vJobReportUserList"])); - } - if ((ds.Tables["JobReport"] != null)) { - base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"])); - } - if ((ds.Tables["HolidayLIst"] != null)) { - base.Tables.Add(new HolidayLIstDataTable(ds.Tables["HolidayLIst"])); - } - if ((ds.Tables["vGroupUser"] != null)) { - base.Tables.Add(new vGroupUserDataTable(ds.Tables["vGroupUser"])); - } - if ((ds.Tables["JobReportDateList"] != null)) { - base.Tables.Add(new JobReportDateListDataTable(ds.Tables["JobReportDateList"])); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public MailAutoDataTable MailAuto { - get { - return this.tableMailAuto; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public MailDataDataTable MailData { - get { - return this.tableMailData; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public MailFormDataTable MailForm { - get { - return this.tableMailForm; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public vMailingProjectScheduleDataTable vMailingProjectSchedule { - get { - return this.tablevMailingProjectSchedule; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public vJobReportForUserDataTable vJobReportForUser { - get { - return this.tablevJobReportForUser; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public vJobReportUserListDataTable vJobReportUserList { - get { - return this.tablevJobReportUserList; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public JobReportDataTable JobReport { - get { - return this.tableJobReport; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public HolidayLIstDataTable HolidayLIst { - get { - return this.tableHolidayLIst; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public vGroupUserDataTable vGroupUser { - get { - return this.tablevGroupUser; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public JobReportDateListDataTable JobReportDateList { - get { - return this.tableJobReportDateList; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.0.0.0")] - public override global::System.Data.DataSet Clone() { - DataSet1 cln = ((DataSet1)(base.Clone())); - cln.InitVars(); - cln.SchemaSerializationMode = this.SchemaSerializationMode; - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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")] - protected override bool ShouldSerializeRelations() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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["MailAuto"] != null)) { - base.Tables.Add(new MailAutoDataTable(ds.Tables["MailAuto"])); - } - if ((ds.Tables["MailData"] != null)) { - base.Tables.Add(new MailDataDataTable(ds.Tables["MailData"])); - } - if ((ds.Tables["MailForm"] != null)) { - base.Tables.Add(new MailFormDataTable(ds.Tables["MailForm"])); - } - if ((ds.Tables["vMailingProjectSchedule"] != null)) { - base.Tables.Add(new vMailingProjectScheduleDataTable(ds.Tables["vMailingProjectSchedule"])); - } - if ((ds.Tables["vJobReportForUser"] != null)) { - base.Tables.Add(new vJobReportForUserDataTable(ds.Tables["vJobReportForUser"])); - } - if ((ds.Tables["vJobReportUserList"] != null)) { - base.Tables.Add(new vJobReportUserListDataTable(ds.Tables["vJobReportUserList"])); - } - if ((ds.Tables["JobReport"] != null)) { - base.Tables.Add(new JobReportDataTable(ds.Tables["JobReport"])); - } - if ((ds.Tables["HolidayLIst"] != null)) { - base.Tables.Add(new HolidayLIstDataTable(ds.Tables["HolidayLIst"])); - } - if ((ds.Tables["vGroupUser"] != null)) { - base.Tables.Add(new vGroupUserDataTable(ds.Tables["vGroupUser"])); - } - if ((ds.Tables["JobReportDateList"] != null)) { - base.Tables.Add(new JobReportDateListDataTable(ds.Tables["JobReportDateList"])); - } - 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", "16.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", "16.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")] - internal void InitVars(bool initTable) { - this.tableMailAuto = ((MailAutoDataTable)(base.Tables["MailAuto"])); - if ((initTable == true)) { - if ((this.tableMailAuto != null)) { - this.tableMailAuto.InitVars(); - } - } - this.tableMailData = ((MailDataDataTable)(base.Tables["MailData"])); - if ((initTable == true)) { - if ((this.tableMailData != null)) { - this.tableMailData.InitVars(); - } - } - this.tableMailForm = ((MailFormDataTable)(base.Tables["MailForm"])); - if ((initTable == true)) { - if ((this.tableMailForm != null)) { - this.tableMailForm.InitVars(); - } - } - this.tablevMailingProjectSchedule = ((vMailingProjectScheduleDataTable)(base.Tables["vMailingProjectSchedule"])); - if ((initTable == true)) { - if ((this.tablevMailingProjectSchedule != null)) { - this.tablevMailingProjectSchedule.InitVars(); - } - } - this.tablevJobReportForUser = ((vJobReportForUserDataTable)(base.Tables["vJobReportForUser"])); - if ((initTable == true)) { - if ((this.tablevJobReportForUser != null)) { - this.tablevJobReportForUser.InitVars(); - } - } - this.tablevJobReportUserList = ((vJobReportUserListDataTable)(base.Tables["vJobReportUserList"])); - if ((initTable == true)) { - if ((this.tablevJobReportUserList != null)) { - this.tablevJobReportUserList.InitVars(); - } - } - this.tableJobReport = ((JobReportDataTable)(base.Tables["JobReport"])); - if ((initTable == true)) { - if ((this.tableJobReport != null)) { - this.tableJobReport.InitVars(); - } - } - this.tableHolidayLIst = ((HolidayLIstDataTable)(base.Tables["HolidayLIst"])); - if ((initTable == true)) { - if ((this.tableHolidayLIst != null)) { - this.tableHolidayLIst.InitVars(); - } - } - this.tablevGroupUser = ((vGroupUserDataTable)(base.Tables["vGroupUser"])); - if ((initTable == true)) { - if ((this.tablevGroupUser != null)) { - this.tablevGroupUser.InitVars(); - } - } - this.tableJobReportDateList = ((JobReportDateListDataTable)(base.Tables["JobReportDateList"])); - if ((initTable == true)) { - if ((this.tableJobReportDateList != null)) { - this.tableJobReportDateList.InitVars(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.DataSetName = "DataSet1"; - this.Prefix = ""; - this.Namespace = "http://tempuri.org/DataSet1.xsd"; - this.EnforceConstraints = true; - this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - this.tableMailAuto = new MailAutoDataTable(); - base.Tables.Add(this.tableMailAuto); - this.tableMailData = new MailDataDataTable(); - base.Tables.Add(this.tableMailData); - this.tableMailForm = new MailFormDataTable(); - base.Tables.Add(this.tableMailForm); - this.tablevMailingProjectSchedule = new vMailingProjectScheduleDataTable(); - base.Tables.Add(this.tablevMailingProjectSchedule); - this.tablevJobReportForUser = new vJobReportForUserDataTable(); - base.Tables.Add(this.tablevJobReportForUser); - this.tablevJobReportUserList = new vJobReportUserListDataTable(); - base.Tables.Add(this.tablevJobReportUserList); - this.tableJobReport = new JobReportDataTable(); - base.Tables.Add(this.tableJobReport); - this.tableHolidayLIst = new HolidayLIstDataTable(); - base.Tables.Add(this.tableHolidayLIst); - this.tablevGroupUser = new vGroupUserDataTable(); - base.Tables.Add(this.tablevGroupUser); - this.tableJobReportDateList = new JobReportDateListDataTable(); - base.Tables.Add(this.tableJobReportDateList); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeMailAuto() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeMailData() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeMailForm() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializevMailingProjectSchedule() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializevJobReportForUser() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializevJobReportUserList() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeJobReport() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeHolidayLIst() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializevGroupUser() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private bool ShouldSerializeJobReportDateList() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - DataSet1 ds = new DataSet1(); - 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", "16.0.0.0")] - public delegate void MailAutoRowChangeEventHandler(object sender, MailAutoRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void MailDataRowChangeEventHandler(object sender, MailDataRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void MailFormRowChangeEventHandler(object sender, MailFormRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void vMailingProjectScheduleRowChangeEventHandler(object sender, vMailingProjectScheduleRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void vJobReportForUserRowChangeEventHandler(object sender, vJobReportForUserRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void vJobReportUserListRowChangeEventHandler(object sender, vJobReportUserListRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void JobReportRowChangeEventHandler(object sender, JobReportRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void HolidayLIstRowChangeEventHandler(object sender, HolidayLIstRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void vGroupUserRowChangeEventHandler(object sender, vGroupUserRowChangeEvent e); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public delegate void JobReportDateListRowChangeEventHandler(object sender, JobReportDateListRowChangeEvent e); - - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class MailAutoDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columnenable; - - private global::System.Data.DataColumn columnfidx; - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columntolist; - - private global::System.Data.DataColumn columnbcc; - - private global::System.Data.DataColumn columncc; - - private global::System.Data.DataColumn columnsdate; - - private global::System.Data.DataColumn columnedate; - - private global::System.Data.DataColumn columnstime; - - private global::System.Data.DataColumn columnsday; - - private global::System.Data.DataColumn columnwuid; - - private global::System.Data.DataColumn columnwdate; - - private global::System.Data.DataColumn columnfromlist; - - private global::System.Data.DataColumn columnsubject; - - private global::System.Data.DataColumn columnbody; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailAutoDataTable() { - this.TableName = "MailAuto"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MailAutoDataTable(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", "16.0.0.0")] - protected MailAutoDataTable(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")] - public global::System.Data.DataColumn idxColumn { - get { - return this.columnidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn enableColumn { - get { - return this.columnenable; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn fidxColumn { - get { - return this.columnfidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn tolistColumn { - get { - return this.columntolist; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn bccColumn { - get { - return this.columnbcc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ccColumn { - get { - return this.columncc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn sdateColumn { - get { - return this.columnsdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn edateColumn { - get { - return this.columnedate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn stimeColumn { - get { - return this.columnstime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn sdayColumn { - get { - return this.columnsday; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wuidColumn { - get { - return this.columnwuid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wdateColumn { - get { - return this.columnwdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn fromlistColumn { - get { - return this.columnfromlist; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn subjectColumn { - get { - return this.columnsubject; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn bodyColumn { - get { - return this.columnbody; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public MailAutoRow this[int index] { - get { - return ((MailAutoRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailAutoRowChangeEventHandler MailAutoRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailAutoRowChangeEventHandler MailAutoRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailAutoRowChangeEventHandler MailAutoRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailAutoRowChangeEventHandler MailAutoRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddMailAutoRow(MailAutoRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailAutoRow AddMailAutoRow( - int idx, - bool enable, - int fidx, - string gcode, - string tolist, - string bcc, - string cc, - string sdate, - string edate, - string stime, - byte[] sday, - string wuid, - System.DateTime wdate, - string fromlist, - string subject, - string body) { - MailAutoRow rowMailAutoRow = ((MailAutoRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - idx, - enable, - fidx, - gcode, - tolist, - bcc, - cc, - sdate, - edate, - stime, - sday, - wuid, - wdate, - fromlist, - subject, - body}; - rowMailAutoRow.ItemArray = columnValuesArray; - this.Rows.Add(rowMailAutoRow); - return rowMailAutoRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailAutoRow FindByidx(int idx) { - return ((MailAutoRow)(this.Rows.Find(new object[] { - idx}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - MailAutoDataTable cln = ((MailAutoDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new MailAutoDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnidx = base.Columns["idx"]; - this.columnenable = base.Columns["enable"]; - this.columnfidx = base.Columns["fidx"]; - this.columngcode = base.Columns["gcode"]; - this.columntolist = base.Columns["tolist"]; - this.columnbcc = base.Columns["bcc"]; - this.columncc = base.Columns["cc"]; - this.columnsdate = base.Columns["sdate"]; - this.columnedate = base.Columns["edate"]; - this.columnstime = base.Columns["stime"]; - this.columnsday = base.Columns["sday"]; - this.columnwuid = base.Columns["wuid"]; - this.columnwdate = base.Columns["wdate"]; - this.columnfromlist = base.Columns["fromlist"]; - this.columnsubject = base.Columns["subject"]; - this.columnbody = base.Columns["body"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidx); - this.columnenable = new global::System.Data.DataColumn("enable", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnenable); - this.columnfidx = new global::System.Data.DataColumn("fidx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnfidx); - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntolist); - this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbcc); - this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncc); - this.columnsdate = new global::System.Data.DataColumn("sdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsdate); - this.columnedate = new global::System.Data.DataColumn("edate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnedate); - this.columnstime = new global::System.Data.DataColumn("stime", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnstime); - this.columnsday = new global::System.Data.DataColumn("sday", typeof(byte[]), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsday); - this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwuid); - this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwdate); - this.columnfromlist = new global::System.Data.DataColumn("fromlist", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnfromlist); - this.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsubject); - this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbody); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnidx}, true)); - this.columnidx.AllowDBNull = false; - this.columnidx.Unique = true; - this.columnfidx.AllowDBNull = false; - this.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 10; - this.columntolist.MaxLength = 2147483647; - this.columnbcc.MaxLength = 2147483647; - this.columncc.MaxLength = 2147483647; - this.columnsdate.MaxLength = 10; - this.columnedate.MaxLength = 10; - this.columnstime.MaxLength = 8; - this.columnwuid.AllowDBNull = false; - this.columnwuid.MaxLength = 20; - this.columnwdate.AllowDBNull = false; - this.columnfromlist.MaxLength = 2147483647; - this.columnsubject.MaxLength = 2147483647; - this.columnbody.MaxLength = 2147483647; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailAutoRow NewMailAutoRow() { - return ((MailAutoRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new MailAutoRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(MailAutoRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.MailAutoRowChanged != null)) { - this.MailAutoRowChanged(this, new MailAutoRowChangeEvent(((MailAutoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.MailAutoRowChanging != null)) { - this.MailAutoRowChanging(this, new MailAutoRowChangeEvent(((MailAutoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.MailAutoRowDeleted != null)) { - this.MailAutoRowDeleted(this, new MailAutoRowChangeEvent(((MailAutoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.MailAutoRowDeleting != null)) { - this.MailAutoRowDeleting(this, new MailAutoRowChangeEvent(((MailAutoRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveMailAutoRow(MailAutoRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "MailAutoDataTable"; - 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 MailDataDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columnproject; - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columncate; - - private global::System.Data.DataColumn columnpdate; - - private global::System.Data.DataColumn columnsubject; - - private global::System.Data.DataColumn columntolist; - - private global::System.Data.DataColumn columnbcc; - - private global::System.Data.DataColumn columncc; - - private global::System.Data.DataColumn columnbody; - - private global::System.Data.DataColumn columnSendOK; - - private global::System.Data.DataColumn columnSendMsg; - - private global::System.Data.DataColumn columnaidx; - - private global::System.Data.DataColumn columnatime; - - private global::System.Data.DataColumn columnwuid; - - private global::System.Data.DataColumn columnwdate; - - private global::System.Data.DataColumn columnfromlist; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailDataDataTable() { - this.TableName = "MailData"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MailDataDataTable(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", "16.0.0.0")] - protected MailDataDataTable(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")] - public global::System.Data.DataColumn idxColumn { - get { - return this.columnidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn projectColumn { - get { - return this.columnproject; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn cateColumn { - get { - return this.columncate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn pdateColumn { - get { - return this.columnpdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn subjectColumn { - get { - return this.columnsubject; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn tolistColumn { - get { - return this.columntolist; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn bccColumn { - get { - return this.columnbcc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ccColumn { - get { - return this.columncc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn bodyColumn { - get { - return this.columnbody; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn SendOKColumn { - get { - return this.columnSendOK; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn SendMsgColumn { - get { - return this.columnSendMsg; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn aidxColumn { - get { - return this.columnaidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn atimeColumn { - get { - return this.columnatime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wuidColumn { - get { - return this.columnwuid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wdateColumn { - get { - return this.columnwdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn fromlistColumn { - get { - return this.columnfromlist; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public MailDataRow this[int index] { - get { - return ((MailDataRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailDataRowChangeEventHandler MailDataRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddMailDataRow(MailDataRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailDataRow AddMailDataRow( - int project, - string gcode, - string cate, - string pdate, - string subject, - string tolist, - string bcc, - string cc, - string body, - bool SendOK, - string SendMsg, - int aidx, - string atime, - string wuid, - System.DateTime wdate, - string fromlist) { - MailDataRow rowMailDataRow = ((MailDataRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - project, - gcode, - cate, - pdate, - subject, - tolist, - bcc, - cc, - body, - SendOK, - SendMsg, - aidx, - atime, - wuid, - wdate, - fromlist}; - rowMailDataRow.ItemArray = columnValuesArray; - this.Rows.Add(rowMailDataRow); - return rowMailDataRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailDataRow FindByidx(int idx) { - return ((MailDataRow)(this.Rows.Find(new object[] { - idx}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - MailDataDataTable cln = ((MailDataDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new MailDataDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnidx = base.Columns["idx"]; - this.columnproject = base.Columns["project"]; - this.columngcode = base.Columns["gcode"]; - this.columncate = base.Columns["cate"]; - this.columnpdate = base.Columns["pdate"]; - this.columnsubject = base.Columns["subject"]; - this.columntolist = base.Columns["tolist"]; - this.columnbcc = base.Columns["bcc"]; - this.columncc = base.Columns["cc"]; - this.columnbody = base.Columns["body"]; - this.columnSendOK = base.Columns["SendOK"]; - this.columnSendMsg = base.Columns["SendMsg"]; - this.columnaidx = base.Columns["aidx"]; - this.columnatime = base.Columns["atime"]; - this.columnwuid = base.Columns["wuid"]; - this.columnwdate = base.Columns["wdate"]; - this.columnfromlist = base.Columns["fromlist"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidx); - this.columnproject = new global::System.Data.DataColumn("project", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnproject); - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columncate = new global::System.Data.DataColumn("cate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncate); - this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpdate); - this.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsubject); - this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntolist); - this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbcc); - this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncc); - this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbody); - this.columnSendOK = new global::System.Data.DataColumn("SendOK", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnSendOK); - this.columnSendMsg = new global::System.Data.DataColumn("SendMsg", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnSendMsg); - this.columnaidx = new global::System.Data.DataColumn("aidx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnaidx); - this.columnatime = new global::System.Data.DataColumn("atime", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnatime); - this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwuid); - this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwdate); - this.columnfromlist = new global::System.Data.DataColumn("fromlist", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnfromlist); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnidx}, true)); - 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.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 10; - this.columncate.MaxLength = 20; - this.columnpdate.MaxLength = 10; - this.columnsubject.MaxLength = 2147483647; - this.columntolist.MaxLength = 2147483647; - this.columnbcc.MaxLength = 2147483647; - this.columncc.MaxLength = 2147483647; - this.columnbody.MaxLength = 2147483647; - this.columnSendMsg.MaxLength = 255; - this.columnatime.MaxLength = 20; - this.columnwuid.AllowDBNull = false; - this.columnwuid.MaxLength = 20; - this.columnwdate.AllowDBNull = false; - this.columnfromlist.MaxLength = 2147483647; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailDataRow NewMailDataRow() { - return ((MailDataRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new MailDataRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(MailDataRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.MailDataRowChanged != null)) { - this.MailDataRowChanged(this, new MailDataRowChangeEvent(((MailDataRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.MailDataRowChanging != null)) { - this.MailDataRowChanging(this, new MailDataRowChangeEvent(((MailDataRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.MailDataRowDeleted != null)) { - this.MailDataRowDeleted(this, new MailDataRowChangeEvent(((MailDataRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.MailDataRowDeleting != null)) { - this.MailDataRowDeleting(this, new MailDataRowChangeEvent(((MailDataRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveMailDataRow(MailDataRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "MailDataDataTable"; - 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 MailFormDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columncate; - - private global::System.Data.DataColumn columntitle; - - private global::System.Data.DataColumn columntolist; - - private global::System.Data.DataColumn columnbcc; - - private global::System.Data.DataColumn columncc; - - private global::System.Data.DataColumn columnsubject; - - private global::System.Data.DataColumn columntail; - - private global::System.Data.DataColumn columnbody; - - private global::System.Data.DataColumn columnselfTo; - - private global::System.Data.DataColumn columnselfCC; - - private global::System.Data.DataColumn columnselfBCC; - - private global::System.Data.DataColumn columnwuid; - - private global::System.Data.DataColumn columnwdate; - - private global::System.Data.DataColumn columnexceptmail; - - private global::System.Data.DataColumn columnexceptmailcc; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailFormDataTable() { - this.TableName = "MailForm"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MailFormDataTable(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", "16.0.0.0")] - protected MailFormDataTable(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")] - public global::System.Data.DataColumn idxColumn { - get { - return this.columnidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn cateColumn { - get { - return this.columncate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn titleColumn { - get { - return this.columntitle; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn tolistColumn { - get { - return this.columntolist; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn bccColumn { - get { - return this.columnbcc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ccColumn { - get { - return this.columncc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn subjectColumn { - get { - return this.columnsubject; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn tailColumn { - get { - return this.columntail; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn bodyColumn { - get { - return this.columnbody; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn selfToColumn { - get { - return this.columnselfTo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn selfCCColumn { - get { - return this.columnselfCC; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn selfBCCColumn { - get { - return this.columnselfBCC; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wuidColumn { - get { - return this.columnwuid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wdateColumn { - get { - return this.columnwdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn exceptmailColumn { - get { - return this.columnexceptmail; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn exceptmailccColumn { - get { - return this.columnexceptmailcc; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public MailFormRow this[int index] { - get { - return ((MailFormRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event MailFormRowChangeEventHandler MailFormRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddMailFormRow(MailFormRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailFormRow AddMailFormRow( - string gcode, - string cate, - string title, - string tolist, - string bcc, - string cc, - string subject, - string tail, - string body, - bool selfTo, - bool selfCC, - bool selfBCC, - string wuid, - System.DateTime wdate, - string exceptmail, - string exceptmailcc) { - MailFormRow rowMailFormRow = ((MailFormRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - gcode, - cate, - title, - tolist, - bcc, - cc, - subject, - tail, - body, - selfTo, - selfCC, - selfBCC, - wuid, - wdate, - exceptmail, - exceptmailcc}; - rowMailFormRow.ItemArray = columnValuesArray; - this.Rows.Add(rowMailFormRow); - return rowMailFormRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailFormRow FindByidx(int idx) { - return ((MailFormRow)(this.Rows.Find(new object[] { - idx}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - MailFormDataTable cln = ((MailFormDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new MailFormDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnidx = base.Columns["idx"]; - this.columngcode = base.Columns["gcode"]; - this.columncate = base.Columns["cate"]; - this.columntitle = base.Columns["title"]; - this.columntolist = base.Columns["tolist"]; - this.columnbcc = base.Columns["bcc"]; - this.columncc = base.Columns["cc"]; - this.columnsubject = base.Columns["subject"]; - this.columntail = base.Columns["tail"]; - this.columnbody = base.Columns["body"]; - this.columnselfTo = base.Columns["selfTo"]; - this.columnselfCC = base.Columns["selfCC"]; - this.columnselfBCC = base.Columns["selfBCC"]; - this.columnwuid = base.Columns["wuid"]; - this.columnwdate = base.Columns["wdate"]; - this.columnexceptmail = base.Columns["exceptmail"]; - this.columnexceptmailcc = base.Columns["exceptmailcc"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidx); - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columncate = new global::System.Data.DataColumn("cate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncate); - this.columntitle = new global::System.Data.DataColumn("title", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntitle); - this.columntolist = new global::System.Data.DataColumn("tolist", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntolist); - this.columnbcc = new global::System.Data.DataColumn("bcc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbcc); - this.columncc = new global::System.Data.DataColumn("cc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columncc); - this.columnsubject = new global::System.Data.DataColumn("subject", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsubject); - this.columntail = new global::System.Data.DataColumn("tail", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntail); - this.columnbody = new global::System.Data.DataColumn("body", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnbody); - this.columnselfTo = new global::System.Data.DataColumn("selfTo", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnselfTo); - this.columnselfCC = new global::System.Data.DataColumn("selfCC", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnselfCC); - this.columnselfBCC = new global::System.Data.DataColumn("selfBCC", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnselfBCC); - this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwuid); - this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwdate); - this.columnexceptmail = new global::System.Data.DataColumn("exceptmail", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnexceptmail); - this.columnexceptmailcc = new global::System.Data.DataColumn("exceptmailcc", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnexceptmailcc); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnidx}, true)); - 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.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 10; - this.columncate.MaxLength = 2; - this.columntitle.MaxLength = 100; - this.columntolist.MaxLength = 2147483647; - this.columnbcc.MaxLength = 2147483647; - this.columncc.MaxLength = 2147483647; - this.columnsubject.MaxLength = 2147483647; - this.columntail.MaxLength = 2147483647; - this.columnbody.MaxLength = 2147483647; - this.columnwuid.AllowDBNull = false; - this.columnwuid.MaxLength = 20; - this.columnwdate.AllowDBNull = false; - this.columnexceptmail.MaxLength = 2147483647; - this.columnexceptmailcc.MaxLength = 2147483647; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailFormRow NewMailFormRow() { - return ((MailFormRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new MailFormRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(MailFormRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.MailFormRowChanged != null)) { - this.MailFormRowChanged(this, new MailFormRowChangeEvent(((MailFormRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.MailFormRowChanging != null)) { - this.MailFormRowChanging(this, new MailFormRowChangeEvent(((MailFormRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.MailFormRowDeleted != null)) { - this.MailFormRowDeleted(this, new MailFormRowChangeEvent(((MailFormRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.MailFormRowDeleting != null)) { - this.MailFormRowDeleting(this, new MailFormRowChangeEvent(((MailFormRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveMailFormRow(MailFormRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "MailFormDataTable"; - 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 vMailingProjectScheduleDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columnpdate; - - private global::System.Data.DataColumn columnname; - - private global::System.Data.DataColumn columnuserManager; - - private global::System.Data.DataColumn columnseq; - - private global::System.Data.DataColumn columntitle; - - private global::System.Data.DataColumn columnsw; - - private global::System.Data.DataColumn columnew; - - private global::System.Data.DataColumn columnswa; - - private global::System.Data.DataColumn columnprogress; - - private global::System.Data.DataColumn columnewa; - - private global::System.Data.DataColumn columnww; - - private global::System.Data.DataColumn columnmemo; - - private global::System.Data.DataColumn columnsidx; - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columnstatus; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vMailingProjectScheduleDataTable() { - this.TableName = "vMailingProjectSchedule"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vMailingProjectScheduleDataTable(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", "16.0.0.0")] - protected vMailingProjectScheduleDataTable(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")] - public global::System.Data.DataColumn idxColumn { - get { - return this.columnidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn pdateColumn { - get { - return this.columnpdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn nameColumn { - get { - return this.columnname; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn userManagerColumn { - get { - return this.columnuserManager; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn seqColumn { - get { - return this.columnseq; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn titleColumn { - get { - return this.columntitle; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn swColumn { - get { - return this.columnsw; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ewColumn { - get { - return this.columnew; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn swaColumn { - get { - return this.columnswa; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn progressColumn { - get { - return this.columnprogress; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ewaColumn { - get { - return this.columnewa; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wwColumn { - get { - return this.columnww; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn memoColumn { - get { - return this.columnmemo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn sidxColumn { - get { - return this.columnsidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn statusColumn { - get { - return this.columnstatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public vMailingProjectScheduleRow this[int index] { - get { - return ((vMailingProjectScheduleRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vMailingProjectScheduleRowChangeEventHandler vMailingProjectScheduleRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vMailingProjectScheduleRowChangeEventHandler vMailingProjectScheduleRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vMailingProjectScheduleRowChangeEventHandler vMailingProjectScheduleRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vMailingProjectScheduleRowChangeEventHandler vMailingProjectScheduleRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddvMailingProjectScheduleRow(vMailingProjectScheduleRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vMailingProjectScheduleRow AddvMailingProjectScheduleRow( - int idx, - string pdate, - string name, - string userManager, - int seq, - string title, - string sw, - string ew, - string swa, - int progress, - string ewa, - int ww, - string memo, - int sidx, - string gcode, - string status) { - vMailingProjectScheduleRow rowvMailingProjectScheduleRow = ((vMailingProjectScheduleRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - idx, - pdate, - name, - userManager, - seq, - title, - sw, - ew, - swa, - progress, - ewa, - ww, - memo, - sidx, - gcode, - status}; - rowvMailingProjectScheduleRow.ItemArray = columnValuesArray; - this.Rows.Add(rowvMailingProjectScheduleRow); - return rowvMailingProjectScheduleRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vMailingProjectScheduleRow FindByidxsidx(int idx, int sidx) { - return ((vMailingProjectScheduleRow)(this.Rows.Find(new object[] { - idx, - sidx}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - vMailingProjectScheduleDataTable cln = ((vMailingProjectScheduleDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new vMailingProjectScheduleDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnidx = base.Columns["idx"]; - this.columnpdate = base.Columns["pdate"]; - this.columnname = base.Columns["name"]; - this.columnuserManager = base.Columns["userManager"]; - this.columnseq = base.Columns["seq"]; - this.columntitle = base.Columns["title"]; - this.columnsw = base.Columns["sw"]; - this.columnew = base.Columns["ew"]; - this.columnswa = base.Columns["swa"]; - this.columnprogress = base.Columns["progress"]; - this.columnewa = base.Columns["ewa"]; - this.columnww = base.Columns["ww"]; - this.columnmemo = base.Columns["memo"]; - this.columnsidx = base.Columns["sidx"]; - this.columngcode = base.Columns["gcode"]; - this.columnstatus = base.Columns["status"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidx); - this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpdate); - this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnname); - this.columnuserManager = new global::System.Data.DataColumn("userManager", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnuserManager); - this.columnseq = new global::System.Data.DataColumn("seq", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnseq); - this.columntitle = new global::System.Data.DataColumn("title", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntitle); - this.columnsw = new global::System.Data.DataColumn("sw", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsw); - this.columnew = new global::System.Data.DataColumn("ew", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnew); - this.columnswa = new global::System.Data.DataColumn("swa", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnswa); - this.columnprogress = new global::System.Data.DataColumn("progress", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnprogress); - this.columnewa = new global::System.Data.DataColumn("ewa", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnewa); - this.columnww = new global::System.Data.DataColumn("ww", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnww); - this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnmemo); - this.columnsidx = new global::System.Data.DataColumn("sidx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnsidx); - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columnstatus = new global::System.Data.DataColumn("status", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnstatus); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnidx, - this.columnsidx}, true)); - this.columnidx.AllowDBNull = false; - this.columnpdate.MaxLength = 10; - this.columnname.MaxLength = 255; - this.columnuserManager.MaxLength = 50; - this.columntitle.MaxLength = 100; - this.columnsw.MaxLength = 10; - this.columnew.MaxLength = 10; - this.columnswa.MaxLength = 10; - this.columnewa.MaxLength = 10; - this.columnww.ReadOnly = true; - this.columnmemo.MaxLength = 2147483647; - this.columnsidx.AllowDBNull = false; - this.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 10; - this.columnstatus.MaxLength = 50; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vMailingProjectScheduleRow NewvMailingProjectScheduleRow() { - return ((vMailingProjectScheduleRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new vMailingProjectScheduleRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(vMailingProjectScheduleRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.vMailingProjectScheduleRowChanged != null)) { - this.vMailingProjectScheduleRowChanged(this, new vMailingProjectScheduleRowChangeEvent(((vMailingProjectScheduleRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.vMailingProjectScheduleRowChanging != null)) { - this.vMailingProjectScheduleRowChanging(this, new vMailingProjectScheduleRowChangeEvent(((vMailingProjectScheduleRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.vMailingProjectScheduleRowDeleted != null)) { - this.vMailingProjectScheduleRowDeleted(this, new vMailingProjectScheduleRowChangeEvent(((vMailingProjectScheduleRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.vMailingProjectScheduleRowDeleting != null)) { - this.vMailingProjectScheduleRowDeleting(this, new vMailingProjectScheduleRowChangeEvent(((vMailingProjectScheduleRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemovevMailingProjectScheduleRow(vMailingProjectScheduleRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "vMailingProjectScheduleDataTable"; - 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 vJobReportForUserDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnid; - - private global::System.Data.DataColumn columnname; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportForUserDataTable() { - this.TableName = "vJobReportForUser"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vJobReportForUserDataTable(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", "16.0.0.0")] - protected vJobReportForUserDataTable(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")] - public global::System.Data.DataColumn idColumn { - get { - return this.columnid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn nameColumn { - get { - return this.columnname; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public vJobReportForUserRow this[int index] { - get { - return ((vJobReportForUserRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportForUserRowChangeEventHandler vJobReportForUserRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportForUserRowChangeEventHandler vJobReportForUserRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportForUserRowChangeEventHandler vJobReportForUserRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportForUserRowChangeEventHandler vJobReportForUserRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddvJobReportForUserRow(vJobReportForUserRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportForUserRow AddvJobReportForUserRow(string id, string name) { - vJobReportForUserRow rowvJobReportForUserRow = ((vJobReportForUserRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - id, - name}; - rowvJobReportForUserRow.ItemArray = columnValuesArray; - this.Rows.Add(rowvJobReportForUserRow); - return rowvJobReportForUserRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportForUserRow FindByid(string id) { - return ((vJobReportForUserRow)(this.Rows.Find(new object[] { - id}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - vJobReportForUserDataTable cln = ((vJobReportForUserDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new vJobReportForUserDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnid = base.Columns["id"]; - this.columnname = base.Columns["name"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnid = new global::System.Data.DataColumn("id", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnid); - this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnname); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnid}, true)); - this.columnid.AllowDBNull = false; - this.columnid.Unique = true; - this.columnid.MaxLength = 20; - this.columnname.MaxLength = 100; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportForUserRow NewvJobReportForUserRow() { - return ((vJobReportForUserRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new vJobReportForUserRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(vJobReportForUserRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.vJobReportForUserRowChanged != null)) { - this.vJobReportForUserRowChanged(this, new vJobReportForUserRowChangeEvent(((vJobReportForUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.vJobReportForUserRowChanging != null)) { - this.vJobReportForUserRowChanging(this, new vJobReportForUserRowChangeEvent(((vJobReportForUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.vJobReportForUserRowDeleted != null)) { - this.vJobReportForUserRowDeleted(this, new vJobReportForUserRowChangeEvent(((vJobReportForUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.vJobReportForUserRowDeleting != null)) { - this.vJobReportForUserRowDeleting(this, new vJobReportForUserRowChangeEvent(((vJobReportForUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemovevJobReportForUserRow(vJobReportForUserRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "vJobReportForUserDataTable"; - 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 vJobReportUserListDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columnname; - - private global::System.Data.DataColumn columnid; - - private global::System.Data.DataColumn columnoutdate; - - private global::System.Data.DataColumn columnemail; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportUserListDataTable() { - this.TableName = "vJobReportUserList"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vJobReportUserListDataTable(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", "16.0.0.0")] - protected vJobReportUserListDataTable(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")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn nameColumn { - get { - return this.columnname; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn idColumn { - get { - return this.columnid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn outdateColumn { - get { - return this.columnoutdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn emailColumn { - get { - return this.columnemail; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public vJobReportUserListRow this[int index] { - get { - return ((vJobReportUserListRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportUserListRowChangeEventHandler vJobReportUserListRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportUserListRowChangeEventHandler vJobReportUserListRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportUserListRowChangeEventHandler vJobReportUserListRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vJobReportUserListRowChangeEventHandler vJobReportUserListRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddvJobReportUserListRow(vJobReportUserListRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportUserListRow AddvJobReportUserListRow(string gcode, string name, string id, string outdate, string email) { - vJobReportUserListRow rowvJobReportUserListRow = ((vJobReportUserListRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - gcode, - name, - id, - outdate, - email}; - rowvJobReportUserListRow.ItemArray = columnValuesArray; - this.Rows.Add(rowvJobReportUserListRow); - return rowvJobReportUserListRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - vJobReportUserListDataTable cln = ((vJobReportUserListDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new vJobReportUserListDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columngcode = base.Columns["gcode"]; - this.columnname = base.Columns["name"]; - this.columnid = base.Columns["id"]; - this.columnoutdate = base.Columns["outdate"]; - this.columnemail = base.Columns["email"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnname); - this.columnid = new global::System.Data.DataColumn("id", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnid); - this.columnoutdate = new global::System.Data.DataColumn("outdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnoutdate); - this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnemail); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnid}, false)); - this.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 10; - this.columnname.MaxLength = 100; - this.columnid.Unique = true; - this.columnid.MaxLength = 20; - this.columnoutdate.MaxLength = 20; - this.columnemail.MaxLength = 100; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportUserListRow NewvJobReportUserListRow() { - return ((vJobReportUserListRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new vJobReportUserListRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(vJobReportUserListRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.vJobReportUserListRowChanged != null)) { - this.vJobReportUserListRowChanged(this, new vJobReportUserListRowChangeEvent(((vJobReportUserListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.vJobReportUserListRowChanging != null)) { - this.vJobReportUserListRowChanging(this, new vJobReportUserListRowChangeEvent(((vJobReportUserListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.vJobReportUserListRowDeleted != null)) { - this.vJobReportUserListRowDeleted(this, new vJobReportUserListRowChangeEvent(((vJobReportUserListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.vJobReportUserListRowDeleting != null)) { - this.vJobReportUserListRowDeleting(this, new vJobReportUserListRowChangeEvent(((vJobReportUserListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemovevJobReportUserListRow(vJobReportUserListRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "vJobReportUserListDataTable"; - 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 JobReportDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columnpdate; - - private global::System.Data.DataColumn columnpidx; - - private global::System.Data.DataColumn columnprojectName; - - private global::System.Data.DataColumn columnuid; - - private global::System.Data.DataColumn columnrequestpart; - - private global::System.Data.DataColumn columnpackage; - - private global::System.Data.DataColumn columnstatus; - - private global::System.Data.DataColumn columntype; - - private global::System.Data.DataColumn columnprocess; - - private global::System.Data.DataColumn columndescription; - - private global::System.Data.DataColumn columnremark; - - private global::System.Data.DataColumn columnhrs; - - private global::System.Data.DataColumn columnot; - - private global::System.Data.DataColumn columnotStart; - - private global::System.Data.DataColumn columnotEnd; - - private global::System.Data.DataColumn columnimport; - - private global::System.Data.DataColumn columnwuid; - - private global::System.Data.DataColumn columnwdate; - - private global::System.Data.DataColumn columndescription2; - - private global::System.Data.DataColumn columntag; - - private global::System.Data.DataColumn columnautoinput; - - private global::System.Data.DataColumn columnkisullv; - - private global::System.Data.DataColumn columnkisuldiv; - - private global::System.Data.DataColumn columnkisulamt; - - private global::System.Data.DataColumn columnot2; - - private global::System.Data.DataColumn columnotReason; - - private global::System.Data.DataColumn columnotwuid; - - private global::System.Data.DataColumn columnottime; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportDataTable() { - this.TableName = "JobReport"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal JobReportDataTable(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", "16.0.0.0")] - protected JobReportDataTable(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")] - public global::System.Data.DataColumn idxColumn { - get { - return this.columnidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn pdateColumn { - get { - return this.columnpdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn pidxColumn { - get { - return this.columnpidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn projectNameColumn { - get { - return this.columnprojectName; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn uidColumn { - get { - return this.columnuid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn requestpartColumn { - get { - return this.columnrequestpart; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn packageColumn { - get { - return this.columnpackage; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn statusColumn { - get { - return this.columnstatus; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn typeColumn { - get { - return this.columntype; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn processColumn { - get { - return this.columnprocess; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn descriptionColumn { - get { - return this.columndescription; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn remarkColumn { - get { - return this.columnremark; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn hrsColumn { - get { - return this.columnhrs; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn otColumn { - get { - return this.columnot; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn otStartColumn { - get { - return this.columnotStart; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn otEndColumn { - get { - return this.columnotEnd; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn importColumn { - get { - return this.columnimport; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wuidColumn { - get { - return this.columnwuid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wdateColumn { - get { - return this.columnwdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn description2Column { - get { - return this.columndescription2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn tagColumn { - get { - return this.columntag; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn autoinputColumn { - get { - return this.columnautoinput; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn kisullvColumn { - get { - return this.columnkisullv; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn kisuldivColumn { - get { - return this.columnkisuldiv; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn kisulamtColumn { - get { - return this.columnkisulamt; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ot2Column { - get { - return this.columnot2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn otReasonColumn { - get { - return this.columnotReason; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn otwuidColumn { - get { - return this.columnotwuid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ottimeColumn { - get { - return this.columnottime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public JobReportRow this[int index] { - get { - return ((JobReportRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportRowChangeEventHandler JobReportRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportRowChangeEventHandler JobReportRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportRowChangeEventHandler JobReportRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportRowChangeEventHandler JobReportRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddJobReportRow(JobReportRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportRow AddJobReportRow( - string gcode, - string pdate, - int pidx, - string projectName, - string uid, - string requestpart, - string package, - string status, - string type, - string process, - string description, - string remark, - double hrs, - double ot, - System.DateTime otStart, - System.DateTime otEnd, - bool import, - string wuid, - System.DateTime wdate, - string description2, - string tag, - bool autoinput, - string kisullv, - string kisuldiv, - decimal kisulamt, - double ot2, - string otReason, - string otwuid, - System.DateTime ottime) { - JobReportRow rowJobReportRow = ((JobReportRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - gcode, - pdate, - pidx, - projectName, - uid, - requestpart, - package, - status, - type, - process, - description, - remark, - hrs, - ot, - otStart, - otEnd, - import, - wuid, - wdate, - description2, - tag, - autoinput, - kisullv, - kisuldiv, - kisulamt, - ot2, - otReason, - otwuid, - ottime}; - rowJobReportRow.ItemArray = columnValuesArray; - this.Rows.Add(rowJobReportRow); - return rowJobReportRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportRow FindByidx(int idx) { - return ((JobReportRow)(this.Rows.Find(new object[] { - idx}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - JobReportDataTable cln = ((JobReportDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new JobReportDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnidx = base.Columns["idx"]; - this.columngcode = base.Columns["gcode"]; - this.columnpdate = base.Columns["pdate"]; - this.columnpidx = base.Columns["pidx"]; - this.columnprojectName = base.Columns["projectName"]; - this.columnuid = base.Columns["uid"]; - this.columnrequestpart = base.Columns["requestpart"]; - this.columnpackage = base.Columns["package"]; - this.columnstatus = base.Columns["status"]; - this.columntype = base.Columns["type"]; - this.columnprocess = base.Columns["process"]; - this.columndescription = base.Columns["description"]; - this.columnremark = base.Columns["remark"]; - this.columnhrs = base.Columns["hrs"]; - this.columnot = base.Columns["ot"]; - this.columnotStart = base.Columns["otStart"]; - this.columnotEnd = base.Columns["otEnd"]; - this.columnimport = base.Columns["import"]; - this.columnwuid = base.Columns["wuid"]; - this.columnwdate = base.Columns["wdate"]; - this.columndescription2 = base.Columns["description2"]; - this.columntag = base.Columns["tag"]; - this.columnautoinput = base.Columns["autoinput"]; - this.columnkisullv = base.Columns["kisullv"]; - this.columnkisuldiv = base.Columns["kisuldiv"]; - this.columnkisulamt = base.Columns["kisulamt"]; - this.columnot2 = base.Columns["ot2"]; - this.columnotReason = base.Columns["otReason"]; - this.columnotwuid = base.Columns["otwuid"]; - this.columnottime = base.Columns["ottime"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidx); - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpdate); - this.columnpidx = new global::System.Data.DataColumn("pidx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpidx); - this.columnprojectName = new global::System.Data.DataColumn("projectName", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnprojectName); - this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnuid); - this.columnrequestpart = new global::System.Data.DataColumn("requestpart", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnrequestpart); - this.columnpackage = new global::System.Data.DataColumn("package", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpackage); - this.columnstatus = new global::System.Data.DataColumn("status", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnstatus); - this.columntype = new global::System.Data.DataColumn("type", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntype); - this.columnprocess = new global::System.Data.DataColumn("process", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnprocess); - this.columndescription = new global::System.Data.DataColumn("description", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columndescription); - this.columnremark = new global::System.Data.DataColumn("remark", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnremark); - this.columnhrs = new global::System.Data.DataColumn("hrs", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnhrs); - this.columnot = new global::System.Data.DataColumn("ot", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnot); - this.columnotStart = new global::System.Data.DataColumn("otStart", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnotStart); - this.columnotEnd = new global::System.Data.DataColumn("otEnd", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnotEnd); - this.columnimport = new global::System.Data.DataColumn("import", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnimport); - this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwuid); - this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwdate); - this.columndescription2 = new global::System.Data.DataColumn("description2", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columndescription2); - this.columntag = new global::System.Data.DataColumn("tag", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntag); - this.columnautoinput = new global::System.Data.DataColumn("autoinput", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnautoinput); - this.columnkisullv = new global::System.Data.DataColumn("kisullv", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnkisullv); - this.columnkisuldiv = new global::System.Data.DataColumn("kisuldiv", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnkisuldiv); - this.columnkisulamt = new global::System.Data.DataColumn("kisulamt", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnkisulamt); - this.columnot2 = new global::System.Data.DataColumn("ot2", typeof(double), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnot2); - this.columnotReason = new global::System.Data.DataColumn("otReason", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnotReason); - this.columnotwuid = new global::System.Data.DataColumn("otwuid", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnotwuid); - this.columnottime = new global::System.Data.DataColumn("ottime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnottime); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnidx}, true)); - 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.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 10; - this.columnpdate.MaxLength = 10; - this.columnprojectName.MaxLength = 255; - this.columnuid.MaxLength = 20; - this.columnrequestpart.MaxLength = 50; - this.columnpackage.MaxLength = 50; - this.columnstatus.MaxLength = 20; - this.columntype.MaxLength = 50; - this.columnprocess.MaxLength = 50; - this.columndescription.MaxLength = 2147483647; - this.columnremark.MaxLength = 255; - this.columnwuid.AllowDBNull = false; - this.columnwuid.MaxLength = 20; - this.columnwdate.AllowDBNull = false; - this.columndescription2.MaxLength = 2147483647; - this.columntag.MaxLength = 255; - this.columnkisullv.MaxLength = 10; - this.columnkisuldiv.MaxLength = 100; - this.columnotReason.MaxLength = 255; - this.columnotwuid.MaxLength = 20; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportRow NewJobReportRow() { - return ((JobReportRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new JobReportRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(JobReportRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.JobReportRowChanged != null)) { - this.JobReportRowChanged(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.JobReportRowChanging != null)) { - this.JobReportRowChanging(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.JobReportRowDeleted != null)) { - this.JobReportRowDeleted(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.JobReportRowDeleting != null)) { - this.JobReportRowDeleting(this, new JobReportRowChangeEvent(((JobReportRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveJobReportRow(JobReportRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "JobReportDataTable"; - 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 HolidayLIstDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnidx; - - private global::System.Data.DataColumn columnpdate; - - private global::System.Data.DataColumn columnfree; - - private global::System.Data.DataColumn columnmemo; - - private global::System.Data.DataColumn columnwuid; - - private global::System.Data.DataColumn columnwdate; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public HolidayLIstDataTable() { - this.TableName = "HolidayLIst"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal HolidayLIstDataTable(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", "16.0.0.0")] - protected HolidayLIstDataTable(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")] - public global::System.Data.DataColumn idxColumn { - get { - return this.columnidx; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn pdateColumn { - get { - return this.columnpdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn freeColumn { - get { - return this.columnfree; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn memoColumn { - get { - return this.columnmemo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wuidColumn { - get { - return this.columnwuid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn wdateColumn { - get { - return this.columnwdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public HolidayLIstRow this[int index] { - get { - return ((HolidayLIstRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event HolidayLIstRowChangeEventHandler HolidayLIstRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event HolidayLIstRowChangeEventHandler HolidayLIstRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event HolidayLIstRowChangeEventHandler HolidayLIstRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event HolidayLIstRowChangeEventHandler HolidayLIstRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddHolidayLIstRow(HolidayLIstRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public HolidayLIstRow AddHolidayLIstRow(string pdate, bool free, string memo, string wuid, System.DateTime wdate) { - HolidayLIstRow rowHolidayLIstRow = ((HolidayLIstRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - null, - pdate, - free, - memo, - wuid, - wdate}; - rowHolidayLIstRow.ItemArray = columnValuesArray; - this.Rows.Add(rowHolidayLIstRow); - return rowHolidayLIstRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public HolidayLIstRow FindByidx(int idx) { - return ((HolidayLIstRow)(this.Rows.Find(new object[] { - idx}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - HolidayLIstDataTable cln = ((HolidayLIstDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new HolidayLIstDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnidx = base.Columns["idx"]; - this.columnpdate = base.Columns["pdate"]; - this.columnfree = base.Columns["free"]; - this.columnmemo = base.Columns["memo"]; - this.columnwuid = base.Columns["wuid"]; - this.columnwdate = base.Columns["wdate"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnidx); - this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpdate); - this.columnfree = new global::System.Data.DataColumn("free", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnfree); - this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnmemo); - this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwuid); - this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnwdate); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnidx}, true)); - 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.columnpdate.MaxLength = 10; - this.columnmemo.MaxLength = 255; - this.columnwuid.AllowDBNull = false; - this.columnwuid.MaxLength = 20; - this.columnwdate.AllowDBNull = false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public HolidayLIstRow NewHolidayLIstRow() { - return ((HolidayLIstRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new HolidayLIstRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(HolidayLIstRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.HolidayLIstRowChanged != null)) { - this.HolidayLIstRowChanged(this, new HolidayLIstRowChangeEvent(((HolidayLIstRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.HolidayLIstRowChanging != null)) { - this.HolidayLIstRowChanging(this, new HolidayLIstRowChangeEvent(((HolidayLIstRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.HolidayLIstRowDeleted != null)) { - this.HolidayLIstRowDeleted(this, new HolidayLIstRowChangeEvent(((HolidayLIstRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.HolidayLIstRowDeleting != null)) { - this.HolidayLIstRowDeleting(this, new HolidayLIstRowChangeEvent(((HolidayLIstRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveHolidayLIstRow(HolidayLIstRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "HolidayLIstDataTable"; - 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 vGroupUserDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columngcode; - - private global::System.Data.DataColumn columndept; - - private global::System.Data.DataColumn columnlevel; - - private global::System.Data.DataColumn columnname; - - private global::System.Data.DataColumn columnnameE; - - private global::System.Data.DataColumn columngrade; - - private global::System.Data.DataColumn columnemail; - - private global::System.Data.DataColumn columntel; - - private global::System.Data.DataColumn columnindate; - - private global::System.Data.DataColumn columnoutdate; - - private global::System.Data.DataColumn columnhp; - - private global::System.Data.DataColumn columnplace; - - private global::System.Data.DataColumn columnads_employNo; - - private global::System.Data.DataColumn columnads_title; - - private global::System.Data.DataColumn columnads_created; - - private global::System.Data.DataColumn columnmemo; - - private global::System.Data.DataColumn columnprocesss; - - private global::System.Data.DataColumn columnid; - - private global::System.Data.DataColumn columnstate; - - private global::System.Data.DataColumn columnuseJobReport; - - private global::System.Data.DataColumn columnuseUserState; - - private global::System.Data.DataColumn columnpassword; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vGroupUserDataTable() { - this.TableName = "vGroupUser"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vGroupUserDataTable(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", "16.0.0.0")] - protected vGroupUserDataTable(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")] - public global::System.Data.DataColumn gcodeColumn { - get { - return this.columngcode; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn deptColumn { - get { - return this.columndept; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn levelColumn { - get { - return this.columnlevel; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn nameColumn { - get { - return this.columnname; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn nameEColumn { - get { - return this.columnnameE; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn gradeColumn { - get { - return this.columngrade; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn emailColumn { - get { - return this.columnemail; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn telColumn { - get { - return this.columntel; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn indateColumn { - get { - return this.columnindate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn outdateColumn { - get { - return this.columnoutdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn hpColumn { - get { - return this.columnhp; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn placeColumn { - get { - return this.columnplace; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ads_employNoColumn { - get { - return this.columnads_employNo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ads_titleColumn { - get { - return this.columnads_title; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn ads_createdColumn { - get { - return this.columnads_created; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn memoColumn { - get { - return this.columnmemo; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn processsColumn { - get { - return this.columnprocesss; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn idColumn { - get { - return this.columnid; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn stateColumn { - get { - return this.columnstate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn useJobReportColumn { - get { - return this.columnuseJobReport; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn useUserStateColumn { - get { - return this.columnuseUserState; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataColumn passwordColumn { - get { - return this.columnpassword; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public vGroupUserRow this[int index] { - get { - return ((vGroupUserRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vGroupUserRowChangeEventHandler vGroupUserRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vGroupUserRowChangeEventHandler vGroupUserRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vGroupUserRowChangeEventHandler vGroupUserRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event vGroupUserRowChangeEventHandler vGroupUserRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddvGroupUserRow(vGroupUserRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vGroupUserRow AddvGroupUserRow( - string gcode, - string dept, - short level, - string name, - string nameE, - string grade, - string email, - string tel, - string indate, - string outdate, - string hp, - string place, - string ads_employNo, - string ads_title, - string ads_created, - string memo, - string processs, - string id, - string state, - bool useJobReport, - bool useUserState, - string password) { - vGroupUserRow rowvGroupUserRow = ((vGroupUserRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - gcode, - dept, - level, - name, - nameE, - grade, - email, - tel, - indate, - outdate, - hp, - place, - ads_employNo, - ads_title, - ads_created, - memo, - processs, - id, - state, - useJobReport, - useUserState, - password}; - rowvGroupUserRow.ItemArray = columnValuesArray; - this.Rows.Add(rowvGroupUserRow); - return rowvGroupUserRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - vGroupUserDataTable cln = ((vGroupUserDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new vGroupUserDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columngcode = base.Columns["gcode"]; - this.columndept = base.Columns["dept"]; - this.columnlevel = base.Columns["level"]; - this.columnname = base.Columns["name"]; - this.columnnameE = base.Columns["nameE"]; - this.columngrade = base.Columns["grade"]; - this.columnemail = base.Columns["email"]; - this.columntel = base.Columns["tel"]; - this.columnindate = base.Columns["indate"]; - this.columnoutdate = base.Columns["outdate"]; - this.columnhp = base.Columns["hp"]; - this.columnplace = base.Columns["place"]; - this.columnads_employNo = base.Columns["ads_employNo"]; - this.columnads_title = base.Columns["ads_title"]; - this.columnads_created = base.Columns["ads_created"]; - this.columnmemo = base.Columns["memo"]; - this.columnprocesss = base.Columns["processs"]; - this.columnid = base.Columns["id"]; - this.columnstate = base.Columns["state"]; - this.columnuseJobReport = base.Columns["useJobReport"]; - this.columnuseUserState = base.Columns["useUserState"]; - this.columnpassword = base.Columns["password"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngcode); - this.columndept = new global::System.Data.DataColumn("dept", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columndept); - this.columnlevel = new global::System.Data.DataColumn("level", typeof(short), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnlevel); - this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnname); - this.columnnameE = new global::System.Data.DataColumn("nameE", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnnameE); - this.columngrade = new global::System.Data.DataColumn("grade", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columngrade); - this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnemail); - this.columntel = new global::System.Data.DataColumn("tel", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columntel); - this.columnindate = new global::System.Data.DataColumn("indate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnindate); - this.columnoutdate = new global::System.Data.DataColumn("outdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnoutdate); - this.columnhp = new global::System.Data.DataColumn("hp", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnhp); - this.columnplace = new global::System.Data.DataColumn("place", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnplace); - this.columnads_employNo = new global::System.Data.DataColumn("ads_employNo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnads_employNo); - this.columnads_title = new global::System.Data.DataColumn("ads_title", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnads_title); - this.columnads_created = new global::System.Data.DataColumn("ads_created", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnads_created); - this.columnmemo = new global::System.Data.DataColumn("memo", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnmemo); - this.columnprocesss = new global::System.Data.DataColumn("processs", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnprocesss); - this.columnid = new global::System.Data.DataColumn("id", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnid); - this.columnstate = new global::System.Data.DataColumn("state", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnstate); - this.columnuseJobReport = new global::System.Data.DataColumn("useJobReport", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnuseJobReport); - this.columnuseUserState = new global::System.Data.DataColumn("useUserState", typeof(bool), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnuseUserState); - this.columnpassword = new global::System.Data.DataColumn("password", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpassword); - this.columngcode.AllowDBNull = false; - this.columngcode.MaxLength = 10; - this.columndept.MaxLength = 100; - this.columnname.MaxLength = 100; - this.columnnameE.MaxLength = 100; - this.columngrade.MaxLength = 10; - this.columnemail.MaxLength = 100; - this.columntel.MaxLength = 20; - this.columnindate.MaxLength = 20; - this.columnoutdate.MaxLength = 20; - this.columnhp.MaxLength = 20; - this.columnplace.MaxLength = 100; - this.columnads_employNo.MaxLength = 50; - this.columnads_title.MaxLength = 100; - this.columnads_created.MaxLength = 50; - this.columnmemo.MaxLength = 255; - this.columnprocesss.ReadOnly = true; - this.columnprocesss.MaxLength = 50; - this.columnid.MaxLength = 20; - this.columnstate.MaxLength = 20; - this.columnpassword.MaxLength = 50; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vGroupUserRow NewvGroupUserRow() { - return ((vGroupUserRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new vGroupUserRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(vGroupUserRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.vGroupUserRowChanged != null)) { - this.vGroupUserRowChanged(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.vGroupUserRowChanging != null)) { - this.vGroupUserRowChanging(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.vGroupUserRowDeleted != null)) { - this.vGroupUserRowDeleted(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.vGroupUserRowDeleting != null)) { - this.vGroupUserRowDeleting(this, new vGroupUserRowChangeEvent(((vGroupUserRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemovevGroupUserRow(vGroupUserRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "vGroupUserDataTable"; - 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 JobReportDateListDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnpdate; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportDateListDataTable() { - this.TableName = "JobReportDateList"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal JobReportDateListDataTable(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", "16.0.0.0")] - protected JobReportDateListDataTable(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")] - public global::System.Data.DataColumn pdateColumn { - get { - return this.columnpdate; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public JobReportDateListRow this[int index] { - get { - return ((JobReportDateListRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportDateListRowChangeEventHandler JobReportDateListRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportDateListRowChangeEventHandler JobReportDateListRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportDateListRowChangeEventHandler JobReportDateListRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public event JobReportDateListRowChangeEventHandler JobReportDateListRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void AddJobReportDateListRow(JobReportDateListRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportDateListRow AddJobReportDateListRow(string pdate) { - JobReportDateListRow rowJobReportDateListRow = ((JobReportDateListRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - pdate}; - rowJobReportDateListRow.ItemArray = columnValuesArray; - this.Rows.Add(rowJobReportDateListRow); - return rowJobReportDateListRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportDateListRow FindBypdate(string pdate) { - return ((JobReportDateListRow)(this.Rows.Find(new object[] { - pdate}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public override global::System.Data.DataTable Clone() { - JobReportDateListDataTable cln = ((JobReportDateListDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new JobReportDateListDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal void InitVars() { - this.columnpdate = base.Columns["pdate"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitClass() { - this.columnpdate = new global::System.Data.DataColumn("pdate", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnpdate); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnpdate}, true)); - this.columnpdate.AllowDBNull = false; - this.columnpdate.Unique = true; - this.columnpdate.MaxLength = 10; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportDateListRow NewJobReportDateListRow() { - return ((JobReportDateListRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new JobReportDateListRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(JobReportDateListRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.JobReportDateListRowChanged != null)) { - this.JobReportDateListRowChanged(this, new JobReportDateListRowChangeEvent(((JobReportDateListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.JobReportDateListRowChanging != null)) { - this.JobReportDateListRowChanging(this, new JobReportDateListRowChangeEvent(((JobReportDateListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.JobReportDateListRowDeleted != null)) { - this.JobReportDateListRowDeleted(this, new JobReportDateListRowChangeEvent(((JobReportDateListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.JobReportDateListRowDeleting != null)) { - this.JobReportDateListRowDeleting(this, new JobReportDateListRowChangeEvent(((JobReportDateListRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void RemoveJobReportDateListRow(JobReportDateListRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(); - DataSet1 ds = new DataSet1(); - 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 = "JobReportDateListDataTable"; - 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 MailAutoRow : global::System.Data.DataRow { - - private MailAutoDataTable tableMailAuto; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MailAutoRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableMailAuto = ((MailAutoDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int idx { - get { - return ((int)(this[this.tableMailAuto.idxColumn])); - } - set { - this[this.tableMailAuto.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool enable { - get { - if (this.IsenableNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailAuto.enableColumn])); - } - } - set { - this[this.tableMailAuto.enableColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int fidx { - get { - return ((int)(this[this.tableMailAuto.fidxColumn])); - } - set { - this[this.tableMailAuto.fidxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tableMailAuto.gcodeColumn])); - } - set { - this[this.tableMailAuto.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string tolist { - get { - if (this.IstolistNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.tolistColumn])); - } - } - set { - this[this.tableMailAuto.tolistColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string bcc { - get { - if (this.IsbccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.bccColumn])); - } - } - set { - this[this.tableMailAuto.bccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string cc { - get { - if (this.IsccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.ccColumn])); - } - } - set { - this[this.tableMailAuto.ccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string sdate { - get { - if (this.IssdateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.sdateColumn])); - } - } - set { - this[this.tableMailAuto.sdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string edate { - get { - if (this.IsedateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.edateColumn])); - } - } - set { - this[this.tableMailAuto.edateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string stime { - get { - if (this.IsstimeNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.stimeColumn])); - } - } - set { - this[this.tableMailAuto.stimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public byte[] sday { - get { - try { - return ((byte[])(this[this.tableMailAuto.sdayColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'MailAuto\' 테이블의 \'sday\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableMailAuto.sdayColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string wuid { - get { - return ((string)(this[this.tableMailAuto.wuidColumn])); - } - set { - this[this.tableMailAuto.wuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime wdate { - get { - return ((global::System.DateTime)(this[this.tableMailAuto.wdateColumn])); - } - set { - this[this.tableMailAuto.wdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string fromlist { - get { - if (this.IsfromlistNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.fromlistColumn])); - } - } - set { - this[this.tableMailAuto.fromlistColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string subject { - get { - if (this.IssubjectNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.subjectColumn])); - } - } - set { - this[this.tableMailAuto.subjectColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string body { - get { - if (this.IsbodyNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailAuto.bodyColumn])); - } - } - set { - this[this.tableMailAuto.bodyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsenableNull() { - return this.IsNull(this.tableMailAuto.enableColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetenableNull() { - this[this.tableMailAuto.enableColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstolistNull() { - return this.IsNull(this.tableMailAuto.tolistColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettolistNull() { - this[this.tableMailAuto.tolistColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsbccNull() { - return this.IsNull(this.tableMailAuto.bccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetbccNull() { - this[this.tableMailAuto.bccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsccNull() { - return this.IsNull(this.tableMailAuto.ccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetccNull() { - this[this.tableMailAuto.ccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IssdateNull() { - return this.IsNull(this.tableMailAuto.sdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetsdateNull() { - this[this.tableMailAuto.sdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsedateNull() { - return this.IsNull(this.tableMailAuto.edateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetedateNull() { - this[this.tableMailAuto.edateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsstimeNull() { - return this.IsNull(this.tableMailAuto.stimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetstimeNull() { - this[this.tableMailAuto.stimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IssdayNull() { - return this.IsNull(this.tableMailAuto.sdayColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetsdayNull() { - this[this.tableMailAuto.sdayColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsfromlistNull() { - return this.IsNull(this.tableMailAuto.fromlistColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetfromlistNull() { - this[this.tableMailAuto.fromlistColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IssubjectNull() { - return this.IsNull(this.tableMailAuto.subjectColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetsubjectNull() { - this[this.tableMailAuto.subjectColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsbodyNull() { - return this.IsNull(this.tableMailAuto.bodyColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetbodyNull() { - this[this.tableMailAuto.bodyColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class MailDataRow : global::System.Data.DataRow { - - private MailDataDataTable tableMailData; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MailDataRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableMailData = ((MailDataDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int idx { - get { - return ((int)(this[this.tableMailData.idxColumn])); - } - set { - this[this.tableMailData.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int project { - get { - if (this.IsprojectNull()) { - return -1; - } - else { - return ((int)(this[this.tableMailData.projectColumn])); - } - } - set { - this[this.tableMailData.projectColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tableMailData.gcodeColumn])); - } - set { - this[this.tableMailData.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string cate { - get { - if (this.IscateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.cateColumn])); - } - } - set { - this[this.tableMailData.cateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string pdate { - get { - if (this.IspdateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.pdateColumn])); - } - } - set { - this[this.tableMailData.pdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string subject { - get { - if (this.IssubjectNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.subjectColumn])); - } - } - set { - this[this.tableMailData.subjectColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string tolist { - get { - if (this.IstolistNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.tolistColumn])); - } - } - set { - this[this.tableMailData.tolistColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string bcc { - get { - if (this.IsbccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.bccColumn])); - } - } - set { - this[this.tableMailData.bccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string cc { - get { - if (this.IsccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.ccColumn])); - } - } - set { - this[this.tableMailData.ccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string body { - get { - if (this.IsbodyNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.bodyColumn])); - } - } - set { - this[this.tableMailData.bodyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool SendOK { - get { - if (this.IsSendOKNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailData.SendOKColumn])); - } - } - set { - this[this.tableMailData.SendOKColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string SendMsg { - get { - if (this.IsSendMsgNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.SendMsgColumn])); - } - } - set { - this[this.tableMailData.SendMsgColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int aidx { - get { - if (this.IsaidxNull()) { - return -1; - } - else { - return ((int)(this[this.tableMailData.aidxColumn])); - } - } - set { - this[this.tableMailData.aidxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string atime { - get { - if (this.IsatimeNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.atimeColumn])); - } - } - set { - this[this.tableMailData.atimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string wuid { - get { - return ((string)(this[this.tableMailData.wuidColumn])); - } - set { - this[this.tableMailData.wuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime wdate { - get { - return ((global::System.DateTime)(this[this.tableMailData.wdateColumn])); - } - set { - this[this.tableMailData.wdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string fromlist { - get { - if (this.IsfromlistNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailData.fromlistColumn])); - } - } - set { - this[this.tableMailData.fromlistColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsprojectNull() { - return this.IsNull(this.tableMailData.projectColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetprojectNull() { - this[this.tableMailData.projectColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IscateNull() { - return this.IsNull(this.tableMailData.cateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetcateNull() { - this[this.tableMailData.cateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IspdateNull() { - return this.IsNull(this.tableMailData.pdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetpdateNull() { - this[this.tableMailData.pdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IssubjectNull() { - return this.IsNull(this.tableMailData.subjectColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetsubjectNull() { - this[this.tableMailData.subjectColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstolistNull() { - return this.IsNull(this.tableMailData.tolistColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettolistNull() { - this[this.tableMailData.tolistColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsbccNull() { - return this.IsNull(this.tableMailData.bccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetbccNull() { - this[this.tableMailData.bccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsccNull() { - return this.IsNull(this.tableMailData.ccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetccNull() { - this[this.tableMailData.ccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsbodyNull() { - return this.IsNull(this.tableMailData.bodyColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetbodyNull() { - this[this.tableMailData.bodyColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsSendOKNull() { - return this.IsNull(this.tableMailData.SendOKColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetSendOKNull() { - this[this.tableMailData.SendOKColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsSendMsgNull() { - return this.IsNull(this.tableMailData.SendMsgColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetSendMsgNull() { - this[this.tableMailData.SendMsgColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsaidxNull() { - return this.IsNull(this.tableMailData.aidxColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetaidxNull() { - this[this.tableMailData.aidxColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsatimeNull() { - return this.IsNull(this.tableMailData.atimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetatimeNull() { - this[this.tableMailData.atimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsfromlistNull() { - return this.IsNull(this.tableMailData.fromlistColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetfromlistNull() { - this[this.tableMailData.fromlistColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class MailFormRow : global::System.Data.DataRow { - - private MailFormDataTable tableMailForm; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal MailFormRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableMailForm = ((MailFormDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int idx { - get { - return ((int)(this[this.tableMailForm.idxColumn])); - } - set { - this[this.tableMailForm.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tableMailForm.gcodeColumn])); - } - set { - this[this.tableMailForm.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string cate { - get { - if (this.IscateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.cateColumn])); - } - } - set { - this[this.tableMailForm.cateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string title { - get { - if (this.IstitleNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.titleColumn])); - } - } - set { - this[this.tableMailForm.titleColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string tolist { - get { - if (this.IstolistNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.tolistColumn])); - } - } - set { - this[this.tableMailForm.tolistColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string bcc { - get { - if (this.IsbccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.bccColumn])); - } - } - set { - this[this.tableMailForm.bccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string cc { - get { - if (this.IsccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.ccColumn])); - } - } - set { - this[this.tableMailForm.ccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string subject { - get { - if (this.IssubjectNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.subjectColumn])); - } - } - set { - this[this.tableMailForm.subjectColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string tail { - get { - if (this.IstailNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.tailColumn])); - } - } - set { - this[this.tableMailForm.tailColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string body { - get { - if (this.IsbodyNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.bodyColumn])); - } - } - set { - this[this.tableMailForm.bodyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool selfTo { - get { - if (this.IsselfToNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailForm.selfToColumn])); - } - } - set { - this[this.tableMailForm.selfToColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool selfCC { - get { - if (this.IsselfCCNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailForm.selfCCColumn])); - } - } - set { - this[this.tableMailForm.selfCCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool selfBCC { - get { - if (this.IsselfBCCNull()) { - return false; - } - else { - return ((bool)(this[this.tableMailForm.selfBCCColumn])); - } - } - set { - this[this.tableMailForm.selfBCCColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string wuid { - get { - return ((string)(this[this.tableMailForm.wuidColumn])); - } - set { - this[this.tableMailForm.wuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime wdate { - get { - return ((global::System.DateTime)(this[this.tableMailForm.wdateColumn])); - } - set { - this[this.tableMailForm.wdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string exceptmail { - get { - if (this.IsexceptmailNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.exceptmailColumn])); - } - } - set { - this[this.tableMailForm.exceptmailColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string exceptmailcc { - get { - if (this.IsexceptmailccNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableMailForm.exceptmailccColumn])); - } - } - set { - this[this.tableMailForm.exceptmailccColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IscateNull() { - return this.IsNull(this.tableMailForm.cateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetcateNull() { - this[this.tableMailForm.cateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstitleNull() { - return this.IsNull(this.tableMailForm.titleColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettitleNull() { - this[this.tableMailForm.titleColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstolistNull() { - return this.IsNull(this.tableMailForm.tolistColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettolistNull() { - this[this.tableMailForm.tolistColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsbccNull() { - return this.IsNull(this.tableMailForm.bccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetbccNull() { - this[this.tableMailForm.bccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsccNull() { - return this.IsNull(this.tableMailForm.ccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetccNull() { - this[this.tableMailForm.ccColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IssubjectNull() { - return this.IsNull(this.tableMailForm.subjectColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetsubjectNull() { - this[this.tableMailForm.subjectColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstailNull() { - return this.IsNull(this.tableMailForm.tailColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettailNull() { - this[this.tableMailForm.tailColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsbodyNull() { - return this.IsNull(this.tableMailForm.bodyColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetbodyNull() { - this[this.tableMailForm.bodyColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsselfToNull() { - return this.IsNull(this.tableMailForm.selfToColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetselfToNull() { - this[this.tableMailForm.selfToColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsselfCCNull() { - return this.IsNull(this.tableMailForm.selfCCColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetselfCCNull() { - this[this.tableMailForm.selfCCColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsselfBCCNull() { - return this.IsNull(this.tableMailForm.selfBCCColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetselfBCCNull() { - this[this.tableMailForm.selfBCCColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsexceptmailNull() { - return this.IsNull(this.tableMailForm.exceptmailColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetexceptmailNull() { - this[this.tableMailForm.exceptmailColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsexceptmailccNull() { - return this.IsNull(this.tableMailForm.exceptmailccColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetexceptmailccNull() { - this[this.tableMailForm.exceptmailccColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class vMailingProjectScheduleRow : global::System.Data.DataRow { - - private vMailingProjectScheduleDataTable tablevMailingProjectSchedule; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vMailingProjectScheduleRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tablevMailingProjectSchedule = ((vMailingProjectScheduleDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int idx { - get { - return ((int)(this[this.tablevMailingProjectSchedule.idxColumn])); - } - set { - this[this.tablevMailingProjectSchedule.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string pdate { - get { - if (this.IspdateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.pdateColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.pdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string name { - get { - if (this.IsnameNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.nameColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.nameColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string userManager { - get { - if (this.IsuserManagerNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.userManagerColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.userManagerColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int seq { - get { - if (this.IsseqNull()) { - return 0; - } - else { - return ((int)(this[this.tablevMailingProjectSchedule.seqColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.seqColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string title { - get { - if (this.IstitleNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.titleColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.titleColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string sw { - get { - if (this.IsswNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.swColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.swColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ew { - get { - if (this.IsewNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.ewColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.ewColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string swa { - get { - if (this.IsswaNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.swaColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.swaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int progress { - get { - if (this.IsprogressNull()) { - return 0; - } - else { - return ((int)(this[this.tablevMailingProjectSchedule.progressColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.progressColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ewa { - get { - if (this.IsewaNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.ewaColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.ewaColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int ww { - get { - if (this.IswwNull()) { - return 0; - } - else { - return ((int)(this[this.tablevMailingProjectSchedule.wwColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.wwColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string memo { - get { - if (this.IsmemoNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.memoColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.memoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int sidx { - get { - return ((int)(this[this.tablevMailingProjectSchedule.sidxColumn])); - } - set { - this[this.tablevMailingProjectSchedule.sidxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tablevMailingProjectSchedule.gcodeColumn])); - } - set { - this[this.tablevMailingProjectSchedule.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string status { - get { - if (this.IsstatusNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevMailingProjectSchedule.statusColumn])); - } - } - set { - this[this.tablevMailingProjectSchedule.statusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IspdateNull() { - return this.IsNull(this.tablevMailingProjectSchedule.pdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetpdateNull() { - this[this.tablevMailingProjectSchedule.pdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsnameNull() { - return this.IsNull(this.tablevMailingProjectSchedule.nameColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetnameNull() { - this[this.tablevMailingProjectSchedule.nameColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsuserManagerNull() { - return this.IsNull(this.tablevMailingProjectSchedule.userManagerColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetuserManagerNull() { - this[this.tablevMailingProjectSchedule.userManagerColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsseqNull() { - return this.IsNull(this.tablevMailingProjectSchedule.seqColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetseqNull() { - this[this.tablevMailingProjectSchedule.seqColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstitleNull() { - return this.IsNull(this.tablevMailingProjectSchedule.titleColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettitleNull() { - this[this.tablevMailingProjectSchedule.titleColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsswNull() { - return this.IsNull(this.tablevMailingProjectSchedule.swColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetswNull() { - this[this.tablevMailingProjectSchedule.swColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsewNull() { - return this.IsNull(this.tablevMailingProjectSchedule.ewColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetewNull() { - this[this.tablevMailingProjectSchedule.ewColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsswaNull() { - return this.IsNull(this.tablevMailingProjectSchedule.swaColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetswaNull() { - this[this.tablevMailingProjectSchedule.swaColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsprogressNull() { - return this.IsNull(this.tablevMailingProjectSchedule.progressColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetprogressNull() { - this[this.tablevMailingProjectSchedule.progressColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsewaNull() { - return this.IsNull(this.tablevMailingProjectSchedule.ewaColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetewaNull() { - this[this.tablevMailingProjectSchedule.ewaColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IswwNull() { - return this.IsNull(this.tablevMailingProjectSchedule.wwColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetwwNull() { - this[this.tablevMailingProjectSchedule.wwColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsmemoNull() { - return this.IsNull(this.tablevMailingProjectSchedule.memoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetmemoNull() { - this[this.tablevMailingProjectSchedule.memoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsstatusNull() { - return this.IsNull(this.tablevMailingProjectSchedule.statusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetstatusNull() { - this[this.tablevMailingProjectSchedule.statusColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class vJobReportForUserRow : global::System.Data.DataRow { - - private vJobReportForUserDataTable tablevJobReportForUser; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vJobReportForUserRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tablevJobReportForUser = ((vJobReportForUserDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string id { - get { - return ((string)(this[this.tablevJobReportForUser.idColumn])); - } - set { - this[this.tablevJobReportForUser.idColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string name { - get { - if (this.IsnameNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevJobReportForUser.nameColumn])); - } - } - set { - this[this.tablevJobReportForUser.nameColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsnameNull() { - return this.IsNull(this.tablevJobReportForUser.nameColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetnameNull() { - this[this.tablevJobReportForUser.nameColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class vJobReportUserListRow : global::System.Data.DataRow { - - private vJobReportUserListDataTable tablevJobReportUserList; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vJobReportUserListRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tablevJobReportUserList = ((vJobReportUserListDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tablevJobReportUserList.gcodeColumn])); - } - set { - this[this.tablevJobReportUserList.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string name { - get { - try { - return ((string)(this[this.tablevJobReportUserList.nameColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'vJobReportUserList\' 테이블의 \'name\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tablevJobReportUserList.nameColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string id { - get { - try { - return ((string)(this[this.tablevJobReportUserList.idColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'vJobReportUserList\' 테이블의 \'id\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tablevJobReportUserList.idColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string outdate { - get { - if (this.IsoutdateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevJobReportUserList.outdateColumn])); - } - } - set { - this[this.tablevJobReportUserList.outdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string email { - get { - if (this.IsemailNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevJobReportUserList.emailColumn])); - } - } - set { - this[this.tablevJobReportUserList.emailColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsnameNull() { - return this.IsNull(this.tablevJobReportUserList.nameColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetnameNull() { - this[this.tablevJobReportUserList.nameColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsidNull() { - return this.IsNull(this.tablevJobReportUserList.idColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetidNull() { - this[this.tablevJobReportUserList.idColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsoutdateNull() { - return this.IsNull(this.tablevJobReportUserList.outdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetoutdateNull() { - this[this.tablevJobReportUserList.outdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsemailNull() { - return this.IsNull(this.tablevJobReportUserList.emailColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetemailNull() { - this[this.tablevJobReportUserList.emailColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class JobReportRow : global::System.Data.DataRow { - - private JobReportDataTable tableJobReport; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal JobReportRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableJobReport = ((JobReportDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int idx { - get { - return ((int)(this[this.tableJobReport.idxColumn])); - } - set { - this[this.tableJobReport.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tableJobReport.gcodeColumn])); - } - set { - this[this.tableJobReport.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string pdate { - get { - if (this.IspdateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableJobReport.pdateColumn])); - } - } - set { - this[this.tableJobReport.pdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int pidx { - get { - try { - return ((int)(this[this.tableJobReport.pidxColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'pidx\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.pidxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string projectName { - get { - try { - return ((string)(this[this.tableJobReport.projectNameColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'projectName\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.projectNameColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string uid { - get { - try { - return ((string)(this[this.tableJobReport.uidColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'uid\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.uidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string requestpart { - get { - try { - return ((string)(this[this.tableJobReport.requestpartColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'requestpart\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.requestpartColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string package { - get { - try { - return ((string)(this[this.tableJobReport.packageColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'package\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.packageColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string status { - get { - try { - return ((string)(this[this.tableJobReport.statusColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'status\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.statusColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string type { - get { - try { - return ((string)(this[this.tableJobReport.typeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'type\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.typeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string process { - get { - try { - return ((string)(this[this.tableJobReport.processColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'process\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.processColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string description { - get { - try { - return ((string)(this[this.tableJobReport.descriptionColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'description\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.descriptionColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string remark { - get { - try { - return ((string)(this[this.tableJobReport.remarkColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'remark\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.remarkColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double hrs { - get { - try { - return ((double)(this[this.tableJobReport.hrsColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'hrs\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.hrsColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double ot { - get { - try { - return ((double)(this[this.tableJobReport.otColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'ot\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.otColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime otStart { - get { - try { - return ((global::System.DateTime)(this[this.tableJobReport.otStartColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'otStart\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.otStartColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime otEnd { - get { - try { - return ((global::System.DateTime)(this[this.tableJobReport.otEndColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'otEnd\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.otEndColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool import { - get { - try { - return ((bool)(this[this.tableJobReport.importColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'import\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.importColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string wuid { - get { - return ((string)(this[this.tableJobReport.wuidColumn])); - } - set { - this[this.tableJobReport.wuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime wdate { - get { - return ((global::System.DateTime)(this[this.tableJobReport.wdateColumn])); - } - set { - this[this.tableJobReport.wdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string description2 { - get { - try { - return ((string)(this[this.tableJobReport.description2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'description2\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.description2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string tag { - get { - try { - return ((string)(this[this.tableJobReport.tagColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'tag\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.tagColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool autoinput { - get { - try { - return ((bool)(this[this.tableJobReport.autoinputColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'autoinput\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.autoinputColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string kisullv { - get { - try { - return ((string)(this[this.tableJobReport.kisullvColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'kisullv\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.kisullvColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string kisuldiv { - get { - try { - return ((string)(this[this.tableJobReport.kisuldivColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'kisuldiv\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.kisuldivColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public decimal kisulamt { - get { - try { - return ((decimal)(this[this.tableJobReport.kisulamtColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'kisulamt\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.kisulamtColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public double ot2 { - get { - try { - return ((double)(this[this.tableJobReport.ot2Column])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'ot2\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.ot2Column] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string otReason { - get { - try { - return ((string)(this[this.tableJobReport.otReasonColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'otReason\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.otReasonColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string otwuid { - get { - try { - return ((string)(this[this.tableJobReport.otwuidColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'otwuid\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.otwuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime ottime { - get { - try { - return ((global::System.DateTime)(this[this.tableJobReport.ottimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("\'JobReport\' 테이블의 \'ottime\' 열의 값이 DBNull입니다.", e); - } - } - set { - this[this.tableJobReport.ottimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IspdateNull() { - return this.IsNull(this.tableJobReport.pdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetpdateNull() { - this[this.tableJobReport.pdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IspidxNull() { - return this.IsNull(this.tableJobReport.pidxColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetpidxNull() { - this[this.tableJobReport.pidxColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsprojectNameNull() { - return this.IsNull(this.tableJobReport.projectNameColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetprojectNameNull() { - this[this.tableJobReport.projectNameColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsuidNull() { - return this.IsNull(this.tableJobReport.uidColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetuidNull() { - this[this.tableJobReport.uidColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsrequestpartNull() { - return this.IsNull(this.tableJobReport.requestpartColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetrequestpartNull() { - this[this.tableJobReport.requestpartColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IspackageNull() { - return this.IsNull(this.tableJobReport.packageColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetpackageNull() { - this[this.tableJobReport.packageColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsstatusNull() { - return this.IsNull(this.tableJobReport.statusColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetstatusNull() { - this[this.tableJobReport.statusColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstypeNull() { - return this.IsNull(this.tableJobReport.typeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettypeNull() { - this[this.tableJobReport.typeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsprocessNull() { - return this.IsNull(this.tableJobReport.processColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetprocessNull() { - this[this.tableJobReport.processColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsdescriptionNull() { - return this.IsNull(this.tableJobReport.descriptionColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetdescriptionNull() { - this[this.tableJobReport.descriptionColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsremarkNull() { - return this.IsNull(this.tableJobReport.remarkColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetremarkNull() { - this[this.tableJobReport.remarkColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IshrsNull() { - return this.IsNull(this.tableJobReport.hrsColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SethrsNull() { - this[this.tableJobReport.hrsColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsotNull() { - return this.IsNull(this.tableJobReport.otColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetotNull() { - this[this.tableJobReport.otColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsotStartNull() { - return this.IsNull(this.tableJobReport.otStartColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetotStartNull() { - this[this.tableJobReport.otStartColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsotEndNull() { - return this.IsNull(this.tableJobReport.otEndColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetotEndNull() { - this[this.tableJobReport.otEndColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsimportNull() { - return this.IsNull(this.tableJobReport.importColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetimportNull() { - this[this.tableJobReport.importColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool Isdescription2Null() { - return this.IsNull(this.tableJobReport.description2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void Setdescription2Null() { - this[this.tableJobReport.description2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstagNull() { - return this.IsNull(this.tableJobReport.tagColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettagNull() { - this[this.tableJobReport.tagColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsautoinputNull() { - return this.IsNull(this.tableJobReport.autoinputColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetautoinputNull() { - this[this.tableJobReport.autoinputColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IskisullvNull() { - return this.IsNull(this.tableJobReport.kisullvColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetkisullvNull() { - this[this.tableJobReport.kisullvColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IskisuldivNull() { - return this.IsNull(this.tableJobReport.kisuldivColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetkisuldivNull() { - this[this.tableJobReport.kisuldivColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IskisulamtNull() { - return this.IsNull(this.tableJobReport.kisulamtColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetkisulamtNull() { - this[this.tableJobReport.kisulamtColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool Isot2Null() { - return this.IsNull(this.tableJobReport.ot2Column); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void Setot2Null() { - this[this.tableJobReport.ot2Column] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsotReasonNull() { - return this.IsNull(this.tableJobReport.otReasonColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetotReasonNull() { - this[this.tableJobReport.otReasonColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsotwuidNull() { - return this.IsNull(this.tableJobReport.otwuidColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetotwuidNull() { - this[this.tableJobReport.otwuidColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsottimeNull() { - return this.IsNull(this.tableJobReport.ottimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetottimeNull() { - this[this.tableJobReport.ottimeColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class HolidayLIstRow : global::System.Data.DataRow { - - private HolidayLIstDataTable tableHolidayLIst; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal HolidayLIstRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableHolidayLIst = ((HolidayLIstDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public int idx { - get { - return ((int)(this[this.tableHolidayLIst.idxColumn])); - } - set { - this[this.tableHolidayLIst.idxColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string pdate { - get { - if (this.IspdateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableHolidayLIst.pdateColumn])); - } - } - set { - this[this.tableHolidayLIst.pdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool free { - get { - if (this.IsfreeNull()) { - return false; - } - else { - return ((bool)(this[this.tableHolidayLIst.freeColumn])); - } - } - set { - this[this.tableHolidayLIst.freeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string memo { - get { - if (this.IsmemoNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tableHolidayLIst.memoColumn])); - } - } - set { - this[this.tableHolidayLIst.memoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string wuid { - get { - return ((string)(this[this.tableHolidayLIst.wuidColumn])); - } - set { - this[this.tableHolidayLIst.wuidColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public System.DateTime wdate { - get { - return ((global::System.DateTime)(this[this.tableHolidayLIst.wdateColumn])); - } - set { - this[this.tableHolidayLIst.wdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IspdateNull() { - return this.IsNull(this.tableHolidayLIst.pdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetpdateNull() { - this[this.tableHolidayLIst.pdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsfreeNull() { - return this.IsNull(this.tableHolidayLIst.freeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetfreeNull() { - this[this.tableHolidayLIst.freeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsmemoNull() { - return this.IsNull(this.tableHolidayLIst.memoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetmemoNull() { - this[this.tableHolidayLIst.memoColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class vGroupUserRow : global::System.Data.DataRow { - - private vGroupUserDataTable tablevGroupUser; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal vGroupUserRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tablevGroupUser = ((vGroupUserDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string gcode { - get { - return ((string)(this[this.tablevGroupUser.gcodeColumn])); - } - set { - this[this.tablevGroupUser.gcodeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string dept { - get { - if (this.IsdeptNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.deptColumn])); - } - } - set { - this[this.tablevGroupUser.deptColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public short level { - get { - if (this.IslevelNull()) { - return 0; - } - else { - return ((short)(this[this.tablevGroupUser.levelColumn])); - } - } - set { - this[this.tablevGroupUser.levelColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string name { - get { - if (this.IsnameNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.nameColumn])); - } - } - set { - this[this.tablevGroupUser.nameColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string nameE { - get { - if (this.IsnameENull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.nameEColumn])); - } - } - set { - this[this.tablevGroupUser.nameEColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string grade { - get { - if (this.IsgradeNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.gradeColumn])); - } - } - set { - this[this.tablevGroupUser.gradeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string email { - get { - if (this.IsemailNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.emailColumn])); - } - } - set { - this[this.tablevGroupUser.emailColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string tel { - get { - if (this.IstelNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.telColumn])); - } - } - set { - this[this.tablevGroupUser.telColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string indate { - get { - if (this.IsindateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.indateColumn])); - } - } - set { - this[this.tablevGroupUser.indateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string outdate { - get { - if (this.IsoutdateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.outdateColumn])); - } - } - set { - this[this.tablevGroupUser.outdateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string hp { - get { - if (this.IshpNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.hpColumn])); - } - } - set { - this[this.tablevGroupUser.hpColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string place { - get { - if (this.IsplaceNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.placeColumn])); - } - } - set { - this[this.tablevGroupUser.placeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ads_employNo { - get { - if (this.Isads_employNoNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.ads_employNoColumn])); - } - } - set { - this[this.tablevGroupUser.ads_employNoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ads_title { - get { - if (this.Isads_titleNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.ads_titleColumn])); - } - } - set { - this[this.tablevGroupUser.ads_titleColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string ads_created { - get { - if (this.Isads_createdNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.ads_createdColumn])); - } - } - set { - this[this.tablevGroupUser.ads_createdColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string memo { - get { - if (this.IsmemoNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.memoColumn])); - } - } - set { - this[this.tablevGroupUser.memoColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string processs { - get { - if (this.IsprocesssNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.processsColumn])); - } - } - set { - this[this.tablevGroupUser.processsColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string id { - get { - if (this.IsidNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.idColumn])); - } - } - set { - this[this.tablevGroupUser.idColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string state { - get { - if (this.IsstateNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.stateColumn])); - } - } - set { - this[this.tablevGroupUser.stateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool useJobReport { - get { - if (this.IsuseJobReportNull()) { - return false; - } - else { - return ((bool)(this[this.tablevGroupUser.useJobReportColumn])); - } - } - set { - this[this.tablevGroupUser.useJobReportColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool useUserState { - get { - if (this.IsuseUserStateNull()) { - return false; - } - else { - return ((bool)(this[this.tablevGroupUser.useUserStateColumn])); - } - } - set { - this[this.tablevGroupUser.useUserStateColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string password { - get { - if (this.IspasswordNull()) { - return string.Empty; - } - else { - return ((string)(this[this.tablevGroupUser.passwordColumn])); - } - } - set { - this[this.tablevGroupUser.passwordColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsdeptNull() { - return this.IsNull(this.tablevGroupUser.deptColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetdeptNull() { - this[this.tablevGroupUser.deptColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IslevelNull() { - return this.IsNull(this.tablevGroupUser.levelColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetlevelNull() { - this[this.tablevGroupUser.levelColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsnameNull() { - return this.IsNull(this.tablevGroupUser.nameColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetnameNull() { - this[this.tablevGroupUser.nameColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsnameENull() { - return this.IsNull(this.tablevGroupUser.nameEColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetnameENull() { - this[this.tablevGroupUser.nameEColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsgradeNull() { - return this.IsNull(this.tablevGroupUser.gradeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetgradeNull() { - this[this.tablevGroupUser.gradeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsemailNull() { - return this.IsNull(this.tablevGroupUser.emailColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetemailNull() { - this[this.tablevGroupUser.emailColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IstelNull() { - return this.IsNull(this.tablevGroupUser.telColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SettelNull() { - this[this.tablevGroupUser.telColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsindateNull() { - return this.IsNull(this.tablevGroupUser.indateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetindateNull() { - this[this.tablevGroupUser.indateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsoutdateNull() { - return this.IsNull(this.tablevGroupUser.outdateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetoutdateNull() { - this[this.tablevGroupUser.outdateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IshpNull() { - return this.IsNull(this.tablevGroupUser.hpColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SethpNull() { - this[this.tablevGroupUser.hpColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsplaceNull() { - return this.IsNull(this.tablevGroupUser.placeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetplaceNull() { - this[this.tablevGroupUser.placeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool Isads_employNoNull() { - return this.IsNull(this.tablevGroupUser.ads_employNoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void Setads_employNoNull() { - this[this.tablevGroupUser.ads_employNoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool Isads_titleNull() { - return this.IsNull(this.tablevGroupUser.ads_titleColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void Setads_titleNull() { - this[this.tablevGroupUser.ads_titleColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool Isads_createdNull() { - return this.IsNull(this.tablevGroupUser.ads_createdColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void Setads_createdNull() { - this[this.tablevGroupUser.ads_createdColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsmemoNull() { - return this.IsNull(this.tablevGroupUser.memoColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetmemoNull() { - this[this.tablevGroupUser.memoColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsprocesssNull() { - return this.IsNull(this.tablevGroupUser.processsColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetprocesssNull() { - this[this.tablevGroupUser.processsColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsidNull() { - return this.IsNull(this.tablevGroupUser.idColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetidNull() { - this[this.tablevGroupUser.idColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsstateNull() { - return this.IsNull(this.tablevGroupUser.stateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetstateNull() { - this[this.tablevGroupUser.stateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsuseJobReportNull() { - return this.IsNull(this.tablevGroupUser.useJobReportColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetuseJobReportNull() { - this[this.tablevGroupUser.useJobReportColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IsuseUserStateNull() { - return this.IsNull(this.tablevGroupUser.useUserStateColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetuseUserStateNull() { - this[this.tablevGroupUser.useUserStateColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public bool IspasswordNull() { - return this.IsNull(this.tablevGroupUser.passwordColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public void SetpasswordNull() { - this[this.tablevGroupUser.passwordColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class JobReportDateListRow : global::System.Data.DataRow { - - private JobReportDateListDataTable tableJobReportDateList; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - internal JobReportDateListRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableJobReportDateList = ((JobReportDateListDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public string pdate { - get { - return ((string)(this[this.tableJobReportDateList.pdateColumn])); - } - set { - this[this.tableJobReportDateList.pdateColumn] = value; - } - } - } - - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public class MailAutoRowChangeEvent : global::System.EventArgs { - - private MailAutoRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailAutoRowChangeEvent(MailAutoRow 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")] - public MailAutoRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class MailDataRowChangeEvent : global::System.EventArgs { - - private MailDataRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailDataRowChangeEvent(MailDataRow 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")] - public MailDataRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class MailFormRowChangeEvent : global::System.EventArgs { - - private MailFormRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public MailFormRowChangeEvent(MailFormRow 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")] - public MailFormRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class vMailingProjectScheduleRowChangeEvent : global::System.EventArgs { - - private vMailingProjectScheduleRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vMailingProjectScheduleRowChangeEvent(vMailingProjectScheduleRow 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")] - public vMailingProjectScheduleRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class vJobReportForUserRowChangeEvent : global::System.EventArgs { - - private vJobReportForUserRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportForUserRowChangeEvent(vJobReportForUserRow 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")] - public vJobReportForUserRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class vJobReportUserListRowChangeEvent : global::System.EventArgs { - - private vJobReportUserListRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vJobReportUserListRowChangeEvent(vJobReportUserListRow 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")] - public vJobReportUserListRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class JobReportRowChangeEvent : global::System.EventArgs { - - private JobReportRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportRowChangeEvent(JobReportRow 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")] - public JobReportRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class HolidayLIstRowChangeEvent : global::System.EventArgs { - - private HolidayLIstRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public HolidayLIstRowChangeEvent(HolidayLIstRow 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")] - public HolidayLIstRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class vGroupUserRowChangeEvent : global::System.EventArgs { - - private vGroupUserRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public vGroupUserRowChangeEvent(vGroupUserRow 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")] - public vGroupUserRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - public class JobReportDateListRowChangeEvent : global::System.EventArgs { - - private JobReportDateListRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public JobReportDateListRowChangeEvent(JobReportDateListRow 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")] - public JobReportDateListRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - } -} -namespace JobReportMailService.DataSet1TableAdapters { - - - /// - ///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 MailAutoTableAdapter : 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", "16.0.0.0")] - public MailAutoTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "MailAuto"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("enable", "enable"); - tableMapping.ColumnMappings.Add("fidx", "fidx"); - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("tolist", "tolist"); - tableMapping.ColumnMappings.Add("bcc", "bcc"); - tableMapping.ColumnMappings.Add("cc", "cc"); - tableMapping.ColumnMappings.Add("sdate", "sdate"); - tableMapping.ColumnMappings.Add("edate", "edate"); - tableMapping.ColumnMappings.Add("stime", "stime"); - tableMapping.ColumnMappings.Add("sday", "sday"); - tableMapping.ColumnMappings.Add("wuid", "wuid"); - tableMapping.ColumnMappings.Add("wdate", "wdate"); - tableMapping.ColumnMappings.Add("fromlist", "fromlist"); - tableMapping.ColumnMappings.Add("subject", "subject"); - tableMapping.ColumnMappings.Add("body", "body"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [MailAuto] WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_enable", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [MailAuto] ([enable], [fidx], [gcode], [fromlist], [tolist], [bcc], [cc], [sdate], [edate], [stime], [sday], [wuid], [wdate], [subject], [body]) VALUES (@enable, @fidx, @gcode, @fromlist, @tolist, @bcc, @cc, @sdate, @edate, @stime, @sday, @wuid, @wdate, @subject, @body); -SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", 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 [MailAuto] SET [enable] = @enable, [fidx] = @fidx, [gcode] = @gcode, [fromlist] = @fromlist, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [sdate] = @sdate, [edate] = @edate, [stime] = @stime, [sday] = @sday, [wuid] = @wuid, [wdate] = @wdate, [subject] = @subject, [body] = @body WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = @idx)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_enable", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_enable", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "enable", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_fidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_edate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_edate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_sday", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_sday", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sday", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime," + - " sday, wuid, wdate, subject, body\r\nFROM MailAuto"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "SELECT bcc, body, cc, edate, enable, fidx, fromlist, gcode, idx, sdate, sday, sti" + - "me, subject, tolist, wdate, wuid FROM MailAuto WHERE (enable = 1) AND (ISNULL(fr" + - "omlist, \'\') <> \'\') AND (ISNULL(tolist, \'\') <> \'\') AND (ISNULL(stime, \'\') <> \'\')"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.MailAutoDataTable 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.MailAutoDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DataSet1.MailAutoDataTable dataTable = new DataSet1.MailAutoDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] - public virtual int FillByAutoSend(DataSet1.MailAutoDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DataSet1.MailAutoDataTable GetByAutoSend() { - this.Adapter.SelectCommand = this.CommandCollection[1]; - DataSet1.MailAutoDataTable dataTable = new DataSet1.MailAutoDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1.MailAutoDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1 dataSet) { - return this.Adapter.Update(dataSet, "MailAuto"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_idx, global::System.Nullable Original_enable, int Original_fidx, string Original_gcode, string Original_sdate, string Original_edate, string Original_stime, byte[] Original_sday, string Original_wuid, System.DateTime Original_wdate) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_enable.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_enable.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; - } - this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_fidx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_gcode)); - } - if ((Original_sdate == null)) { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_sdate)); - } - if ((Original_edate == null)) { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_edate)); - } - if ((Original_stime == null)) { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_stime)); - } - if ((Original_sday == null)) { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[12].Value = ((byte[])(Original_sday)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_wuid)); - } - this.Adapter.DeleteCommand.Parameters[14].Value = ((System.DateTime)(Original_wdate)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(global::System.Nullable enable, int fidx, string gcode, string fromlist, string tolist, string bcc, string cc, string sdate, string edate, string stime, byte[] sday, string wuid, System.DateTime wdate, string subject, string body) { - if ((enable.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[0].Value = ((bool)(enable.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; - } - this.Adapter.InsertCommand.Parameters[1].Value = ((int)(fidx)); - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(gcode)); - } - if ((fromlist == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(fromlist)); - } - if ((tolist == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(cc)); - } - if ((sdate == null)) { - this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(sdate)); - } - if ((edate == null)) { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(edate)); - } - if ((stime == null)) { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(stime)); - } - if ((sday == null)) { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((byte[])(sday)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.InsertCommand.Parameters[11].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[12].Value = ((System.DateTime)(wdate)); - if ((subject == null)) { - this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[13].Value = ((string)(subject)); - } - if ((body == null)) { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = ((string)(body)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - global::System.Nullable enable, - int fidx, - string gcode, - string fromlist, - string tolist, - string bcc, - string cc, - string sdate, - string edate, - string stime, - byte[] sday, - string wuid, - System.DateTime wdate, - string subject, - string body, - int Original_idx, - global::System.Nullable Original_enable, - int Original_fidx, - string Original_gcode, - string Original_sdate, - string Original_edate, - string Original_stime, - byte[] Original_sday, - string Original_wuid, - System.DateTime Original_wdate, - int idx) { - if ((enable.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((bool)(enable.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(fidx)); - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(gcode)); - } - if ((fromlist == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(fromlist)); - } - if ((tolist == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(cc)); - } - if ((sdate == null)) { - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(sdate)); - } - if ((edate == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(edate)); - } - if ((stime == null)) { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(stime)); - } - if ((sday == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((byte[])(sday)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(wdate)); - if ((subject == null)) { - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(subject)); - } - if ((body == null)) { - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(body)); - } - this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx)); - if ((Original_enable.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_enable.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_fidx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_gcode)); - } - if ((Original_sdate == null)) { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_sdate)); - } - if ((Original_edate == null)) { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_edate)); - } - if ((Original_stime == null)) { - this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_stime)); - } - if ((Original_sday == null)) { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[27].Value = ((byte[])(Original_sday)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_wuid)); - } - this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_wdate)); - this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(idx)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - global::System.Nullable enable, - int fidx, - string gcode, - string fromlist, - string tolist, - string bcc, - string cc, - string sdate, - string edate, - string stime, - byte[] sday, - string wuid, - System.DateTime wdate, - string subject, - string body, - int Original_idx, - global::System.Nullable Original_enable, - int Original_fidx, - string Original_gcode, - string Original_sdate, - string Original_edate, - string Original_stime, - byte[] Original_sday, - string Original_wuid, - System.DateTime Original_wdate) { - return this.Update(enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body, Original_idx, Original_enable, Original_fidx, Original_gcode, Original_sdate, Original_edate, Original_stime, Original_sday, Original_wuid, Original_wdate, Original_idx); - } - } - - /// - ///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 MailDataTableAdapter : 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", "16.0.0.0")] - public MailDataTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "MailData"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("project", "project"); - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("cate", "cate"); - tableMapping.ColumnMappings.Add("pdate", "pdate"); - tableMapping.ColumnMappings.Add("subject", "subject"); - tableMapping.ColumnMappings.Add("tolist", "tolist"); - tableMapping.ColumnMappings.Add("bcc", "bcc"); - tableMapping.ColumnMappings.Add("cc", "cc"); - tableMapping.ColumnMappings.Add("body", "body"); - tableMapping.ColumnMappings.Add("SendOK", "SendOK"); - tableMapping.ColumnMappings.Add("SendMsg", "SendMsg"); - tableMapping.ColumnMappings.Add("aidx", "aidx"); - tableMapping.ColumnMappings.Add("atime", "atime"); - tableMapping.ColumnMappings.Add("wuid", "wuid"); - tableMapping.ColumnMappings.Add("wdate", "wdate"); - tableMapping.ColumnMappings.Add("fromlist", "fromlist"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [MailData] WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SendOK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SendMsg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_atime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [MailData] ([project], [gcode], [cate], [pdate], [subject], [tolist], [bcc], [cc], [body], [SendOK], [SendMsg], [aidx], [atime], [wuid], [wdate], [fromlist]) VALUES (@project, @gcode, @cate, @pdate, @subject, @tolist, @bcc, @cc, @body, @SendOK, @SendMsg, @aidx, @atime, @wuid, @wdate, @fromlist); -SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist FROM MailData WHERE (idx = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", 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 [MailData] SET [project] = @project, [gcode] = @gcode, [cate] = @cate, [pdate] = @pdate, [subject] = @subject, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [body] = @body, [SendOK] = @SendOK, [SendMsg] = @SendMsg, [aidx] = @aidx, [atime] = @atime, [wuid] = @wuid, [wdate] = @wdate, [fromlist] = @fromlist WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist FROM MailData WHERE (idx = @idx)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fromlist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fromlist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "project", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SendOK", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendOK", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendOK", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SendMsg", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SendMsg", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_aidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_atime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_atime", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK," + - " SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData\r\nWHERE (ISNULL(" + - "SendOK, 0) = 0)"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = "SELECT COUNT(*) AS Expr1\r\nFROM MailData\r\nWHERE (aidx = @aidx) AND (pdate = " + - "@pdate) AND (atime = @atime) AND (cate = @cate)"; - this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@aidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@atime", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK," + - " SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData\r\nWHERE gcode = " + - "@gcode and cate = @cate and pdate = @pdate"; - this._commandCollection[2].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK," + - " SendMsg, aidx, atime, wuid, wdate, fromlist\r\nFROM MailData\r\nWHERE gcode = " + - "@gcode and wuid = @uid and pdate = @pdate and cate = @cate"; - this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "SELECT COUNT(*) AS cnt\r\nFROM MailData\r\nWHERE (aidx = @aidx) AND (atime = @a" + - "time) AND (pdate = @pdate) AND (cate = @cate)"; - this._commandCollection[4].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@aidx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "aidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@atime", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "atime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[5].Connection = this.Connection; - this._commandCollection[5].CommandText = "UPDATE MailData\r\nSET SendOK = 1, SendMsg = @msg\r\nWHERE (idx = @idx)"; - this._commandCollection[5].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@msg", global::System.Data.SqlDbType.VarChar, 255, global::System.Data.ParameterDirection.Input, 0, 0, "SendMsg", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.MailDataDataTable 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.MailDataDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DataSet1.MailDataDataTable dataTable = new DataSet1.MailDataDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] - public virtual int FillByDataExistDay(DataSet1.MailDataDataTable dataTable, string gcode, string cate, string pdate) { - this.Adapter.SelectCommand = this.CommandCollection[2]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(cate)); - } - if ((pdate == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(pdate)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DataSet1.MailDataDataTable GetDataExistDay(string gcode, string cate, string pdate) { - this.Adapter.SelectCommand = this.CommandCollection[2]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(cate)); - } - if ((pdate == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(pdate)); - } - DataSet1.MailDataDataTable dataTable = new DataSet1.MailDataDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] - public virtual int FillByUserData(DataSet1.MailDataDataTable dataTable, string gcode, string uid, string pdate, string cate) { - this.Adapter.SelectCommand = this.CommandCollection[3]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((uid == null)) { - throw new global::System.ArgumentNullException("uid"); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(uid)); - } - if ((pdate == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(pdate)); - } - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = ((string)(cate)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DataSet1.MailDataDataTable GetDataByUserData(string gcode, string uid, string pdate, string cate) { - this.Adapter.SelectCommand = this.CommandCollection[3]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((uid == null)) { - throw new global::System.ArgumentNullException("uid"); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(uid)); - } - if ((pdate == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(pdate)); - } - if ((cate == null)) { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = ((string)(cate)); - } - DataSet1.MailDataDataTable dataTable = new DataSet1.MailDataDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1.MailDataDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1 dataSet) { - return this.Adapter.Update(dataSet, "MailData"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_idx, global::System.Nullable Original_project, string Original_gcode, string Original_cate, string Original_pdate, global::System.Nullable Original_SendOK, string Original_SendMsg, global::System.Nullable Original_aidx, string Original_atime, string Original_wuid, System.DateTime Original_wdate) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_project.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_project.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_gcode)); - } - if ((Original_cate == null)) { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_cate)); - } - if ((Original_pdate == null)) { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_pdate)); - } - if ((Original_SendOK.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((bool)(Original_SendOK.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((Original_SendMsg == null)) { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_SendMsg)); - } - if ((Original_aidx.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[13].Value = ((int)(Original_aidx.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((Original_atime == null)) { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_atime)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_wuid)); - } - this.Adapter.DeleteCommand.Parameters[17].Value = ((System.DateTime)(Original_wdate)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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( - global::System.Nullable project, - string gcode, - string cate, - string pdate, - string subject, - string tolist, - string bcc, - string cc, - string body, - global::System.Nullable SendOK, - string SendMsg, - global::System.Nullable aidx, - string atime, - string wuid, - System.DateTime wdate, - string fromlist) { - if ((project.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[0].Value = ((int)(project.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; - } - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(gcode)); - } - if ((cate == null)) { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(cate)); - } - if ((pdate == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(pdate)); - } - if ((subject == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(subject)); - } - if ((tolist == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(cc)); - } - if ((body == null)) { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(body)); - } - if ((SendOK.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[9].Value = ((bool)(SendOK.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((SendMsg == null)) { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(SendMsg)); - } - if ((aidx.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[11].Value = ((int)(aidx.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((atime == null)) { - this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[12].Value = ((string)(atime)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.InsertCommand.Parameters[13].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[14].Value = ((System.DateTime)(wdate)); - if ((fromlist == null)) { - this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[15].Value = ((string)(fromlist)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - global::System.Nullable project, - string gcode, - string cate, - string pdate, - string subject, - string tolist, - string bcc, - string cc, - string body, - global::System.Nullable SendOK, - string SendMsg, - global::System.Nullable aidx, - string atime, - string wuid, - System.DateTime wdate, - string fromlist, - int Original_idx, - global::System.Nullable Original_project, - string Original_gcode, - string Original_cate, - string Original_pdate, - global::System.Nullable Original_SendOK, - string Original_SendMsg, - global::System.Nullable Original_aidx, - string Original_atime, - string Original_wuid, - System.DateTime Original_wdate, - int idx) { - if ((project.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(project.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; - } - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(gcode)); - } - if ((cate == null)) { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(cate)); - } - if ((pdate == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(pdate)); - } - if ((subject == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(subject)); - } - if ((tolist == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(cc)); - } - if ((body == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(body)); - } - if ((SendOK.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[9].Value = ((bool)(SendOK.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((SendMsg == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(SendMsg)); - } - if ((aidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(aidx.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((atime == null)) { - this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(atime)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(wdate)); - if ((fromlist == null)) { - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(fromlist)); - } - this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_idx)); - if ((Original_project.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[18].Value = ((int)(Original_project.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value; - } - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_gcode)); - } - if ((Original_cate == null)) { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_cate)); - } - if ((Original_pdate == null)) { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_pdate)); - } - if ((Original_SendOK.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[25].Value = ((bool)(Original_SendOK.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((Original_SendMsg == null)) { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_SendMsg)); - } - if ((Original_aidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_aidx.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value; - } - if ((Original_atime == null)) { - this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_atime)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_wuid)); - } - this.Adapter.UpdateCommand.Parameters[33].Value = ((System.DateTime)(Original_wdate)); - this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(idx)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - global::System.Nullable project, - string gcode, - string cate, - string pdate, - string subject, - string tolist, - string bcc, - string cc, - string body, - global::System.Nullable SendOK, - string SendMsg, - global::System.Nullable aidx, - string atime, - string wuid, - System.DateTime wdate, - string fromlist, - int Original_idx, - global::System.Nullable Original_project, - string Original_gcode, - string Original_cate, - string Original_pdate, - global::System.Nullable Original_SendOK, - string Original_SendMsg, - global::System.Nullable Original_aidx, - string Original_atime, - string Original_wuid, - System.DateTime Original_wdate) { - return this.Update(project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist, Original_idx, Original_project, Original_gcode, Original_cate, Original_pdate, Original_SendOK, Original_SendMsg, Original_aidx, Original_atime, Original_wuid, Original_wdate, Original_idx); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual global::System.Nullable CheckAutoExist(global::System.Nullable aidx, string pdate, string atime, string cate) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; - if ((aidx.HasValue == true)) { - command.Parameters[0].Value = ((int)(aidx.Value)); - } - else { - command.Parameters[0].Value = global::System.DBNull.Value; - } - if ((pdate == null)) { - command.Parameters[1].Value = global::System.DBNull.Value; - } - else { - command.Parameters[1].Value = ((string)(pdate)); - } - if ((atime == null)) { - command.Parameters[2].Value = global::System.DBNull.Value; - } - else { - command.Parameters[2].Value = ((string)(atime)); - } - if ((cate == null)) { - command.Parameters[3].Value = global::System.DBNull.Value; - } - else { - command.Parameters[3].Value = ((string)(cate)); - } - 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(); - } - object returnValue; - try { - returnValue = command.ExecuteScalar(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - if (((returnValue == null) - || (returnValue.GetType() == typeof(global::System.DBNull)))) { - return new global::System.Nullable(); - } - else { - return new global::System.Nullable(((int)(returnValue))); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual global::System.Nullable FindAutoData(global::System.Nullable aidx, string atime, string pdate, string cate) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; - if ((aidx.HasValue == true)) { - command.Parameters[0].Value = ((int)(aidx.Value)); - } - else { - command.Parameters[0].Value = global::System.DBNull.Value; - } - if ((atime == null)) { - command.Parameters[1].Value = global::System.DBNull.Value; - } - else { - command.Parameters[1].Value = ((string)(atime)); - } - if ((pdate == null)) { - command.Parameters[2].Value = global::System.DBNull.Value; - } - else { - command.Parameters[2].Value = ((string)(pdate)); - } - if ((cate == null)) { - command.Parameters[3].Value = global::System.DBNull.Value; - } - else { - command.Parameters[3].Value = ((string)(cate)); - } - 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(); - } - object returnValue; - try { - returnValue = command.ExecuteScalar(); - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - command.Connection.Close(); - } - } - if (((returnValue == null) - || (returnValue.GetType() == typeof(global::System.DBNull)))) { - return new global::System.Nullable(); - } - else { - return new global::System.Nullable(((int)(returnValue))); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int UpdateSendOK(string msg, int idx) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; - if ((msg == null)) { - command.Parameters[0].Value = global::System.DBNull.Value; - } - else { - command.Parameters[0].Value = ((string)(msg)); - } - command.Parameters[1].Value = ((int)(idx)); - 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(); - } - } - return returnValue; - } - } - - /// - ///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 MailFormTableAdapter : 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", "16.0.0.0")] - public MailFormTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "MailForm"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("cate", "cate"); - tableMapping.ColumnMappings.Add("title", "title"); - tableMapping.ColumnMappings.Add("tolist", "tolist"); - tableMapping.ColumnMappings.Add("bcc", "bcc"); - tableMapping.ColumnMappings.Add("cc", "cc"); - tableMapping.ColumnMappings.Add("subject", "subject"); - tableMapping.ColumnMappings.Add("tail", "tail"); - tableMapping.ColumnMappings.Add("body", "body"); - tableMapping.ColumnMappings.Add("selfTo", "selfTo"); - tableMapping.ColumnMappings.Add("selfCC", "selfCC"); - tableMapping.ColumnMappings.Add("selfBCC", "selfBCC"); - tableMapping.ColumnMappings.Add("wuid", "wuid"); - tableMapping.ColumnMappings.Add("wdate", "wdate"); - tableMapping.ColumnMappings.Add("exceptmail", "exceptmail"); - tableMapping.ColumnMappings.Add("exceptmailcc", "exceptmailcc"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [MailForm] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfBCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [MailForm] ([gcode], [cate], [title], [tolist], [bcc], [cc], [subject], [tail], [body], [selfTo], [selfCC], [selfBCC], [wuid], [wdate], [exceptmail], [exceptmailcc]) VALUES (@gcode, @cate, @title, @tolist, @bcc, @cc, @subject, @tail, @body, @selfTo, @selfCC, @selfBCC, @wuid, @wdate, @exceptmail, @exceptmailcc); -SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate, exceptmail, exceptmailcc FROM MailForm WHERE (idx = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tail", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tail", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@exceptmail", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exceptmail", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@exceptmailcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exceptmailcc", 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 [MailForm] SET [gcode] = @gcode, [cate] = @cate, [title] = @title, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [tail] = @tail, [body] = @body, [selfTo] = @selfTo, [selfCC] = @selfCC, [selfBCC] = @selfBCC, [wuid] = @wuid, [wdate] = @wdate, [exceptmail] = @exceptmail, [exceptmailcc] = @exceptmailcc WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate, exceptmail, exceptmailcc FROM MailForm WHERE (idx = @idx)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tolist", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tolist", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@bcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "bcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@subject", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "subject", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tail", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tail", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@body", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "body", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@exceptmail", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exceptmail", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@exceptmailcc", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exceptmailcc", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_title", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfTo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfTo", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfTo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_selfBCC", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_selfBCC", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "selfBCC", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, se" + - "lfCC, selfBCC, wuid, wdate, exceptmail, exceptmailcc\r\nFROM MailForm"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.MailFormDataTable 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.MailFormDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - DataSet1.MailFormDataTable dataTable = new DataSet1.MailFormDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1.MailFormDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1 dataSet) { - return this.Adapter.Update(dataSet, "MailForm"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_idx, string Original_gcode, string Original_cate, string Original_title, global::System.Nullable Original_selfTo, global::System.Nullable Original_selfCC, global::System.Nullable Original_selfBCC, string Original_wuid, System.DateTime Original_wdate) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_gcode)); - } - if ((Original_cate == null)) { - this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_cate)); - } - if ((Original_title == null)) { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_title)); - } - if ((Original_selfTo.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[7].Value = ((bool)(Original_selfTo.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; - } - if ((Original_selfCC.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((bool)(Original_selfCC.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((Original_selfBCC.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((bool)(Original_selfBCC.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_wuid)); - } - this.Adapter.DeleteCommand.Parameters[13].Value = ((System.DateTime)(Original_wdate)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 gcode, - string cate, - string title, - string tolist, - string bcc, - string cc, - string subject, - string tail, - string body, - global::System.Nullable selfTo, - global::System.Nullable selfCC, - global::System.Nullable selfBCC, - string wuid, - System.DateTime wdate, - string exceptmail, - string exceptmailcc) { - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((cate == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(cate)); - } - if ((title == null)) { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(title)); - } - if ((tolist == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(cc)); - } - if ((subject == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(subject)); - } - if ((tail == null)) { - this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(tail)); - } - if ((body == null)) { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(body)); - } - if ((selfTo.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[9].Value = ((bool)(selfTo.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((selfCC.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[10].Value = ((bool)(selfCC.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((selfBCC.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[11].Value = ((bool)(selfBCC.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.InsertCommand.Parameters[12].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[13].Value = ((System.DateTime)(wdate)); - if ((exceptmail == null)) { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = ((string)(exceptmail)); - } - if ((exceptmailcc == null)) { - this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[15].Value = ((string)(exceptmailcc)); - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string gcode, - string cate, - string title, - string tolist, - string bcc, - string cc, - string subject, - string tail, - string body, - global::System.Nullable selfTo, - global::System.Nullable selfCC, - global::System.Nullable selfBCC, - string wuid, - System.DateTime wdate, - string exceptmail, - string exceptmailcc, - int Original_idx, - string Original_gcode, - string Original_cate, - string Original_title, - global::System.Nullable Original_selfTo, - global::System.Nullable Original_selfCC, - global::System.Nullable Original_selfBCC, - string Original_wuid, - System.DateTime Original_wdate, - int idx) { - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((cate == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(cate)); - } - if ((title == null)) { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(title)); - } - if ((tolist == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(tolist)); - } - if ((bcc == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(bcc)); - } - if ((cc == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(cc)); - } - if ((subject == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(subject)); - } - if ((tail == null)) { - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(tail)); - } - if ((body == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(body)); - } - if ((selfTo.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[9].Value = ((bool)(selfTo.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((selfCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[10].Value = ((bool)(selfCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - if ((selfBCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[11].Value = ((bool)(selfBCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(wdate)); - if ((exceptmail == null)) { - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(exceptmail)); - } - if ((exceptmailcc == null)) { - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(exceptmailcc)); - } - this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_idx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_gcode)); - } - if ((Original_cate == null)) { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_cate)); - } - if ((Original_title == null)) { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_title)); - } - if ((Original_selfTo.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[23].Value = ((bool)(Original_selfTo.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - if ((Original_selfCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[25].Value = ((bool)(Original_selfCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((Original_selfBCC.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[27].Value = ((bool)(Original_selfBCC.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_wuid)); - } - this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_wdate)); - this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(idx)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string gcode, - string cate, - string title, - string tolist, - string bcc, - string cc, - string subject, - string tail, - string body, - global::System.Nullable selfTo, - global::System.Nullable selfCC, - global::System.Nullable selfBCC, - string wuid, - System.DateTime wdate, - string exceptmail, - string exceptmailcc, - int Original_idx, - string Original_gcode, - string Original_cate, - string Original_title, - global::System.Nullable Original_selfTo, - global::System.Nullable Original_selfCC, - global::System.Nullable Original_selfBCC, - string Original_wuid, - System.DateTime Original_wdate) { - return this.Update(gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate, exceptmail, exceptmailcc, Original_idx, Original_gcode, Original_cate, Original_title, Original_selfTo, Original_selfCC, Original_selfBCC, Original_wuid, Original_wdate, Original_idx); - } - } - - /// - ///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 vMailingProjectScheduleTableAdapter : 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", "16.0.0.0")] - public vMailingProjectScheduleTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "vMailingProjectSchedule"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("pdate", "pdate"); - tableMapping.ColumnMappings.Add("name", "name"); - tableMapping.ColumnMappings.Add("userManager", "userManager"); - tableMapping.ColumnMappings.Add("seq", "seq"); - tableMapping.ColumnMappings.Add("title", "title"); - tableMapping.ColumnMappings.Add("sw", "sw"); - tableMapping.ColumnMappings.Add("ew", "ew"); - tableMapping.ColumnMappings.Add("swa", "swa"); - tableMapping.ColumnMappings.Add("progress", "progress"); - tableMapping.ColumnMappings.Add("ewa", "ewa"); - tableMapping.ColumnMappings.Add("ww", "ww"); - tableMapping.ColumnMappings.Add("memo", "memo"); - tableMapping.ColumnMappings.Add("sidx", "sidx"); - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("status", "status"); - this._adapter.TableMappings.Add(tableMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 idx, pdate, name, userManager, seq, title, sw, ew, swa, progress, ewa, ww" + - ", memo, sidx, gcode, status\r\nFROM vMailingProjectSchedule\r\nWHERE (gcode = @" + - "gcode)\r\nORDER BY pdate, idx, seq"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.vMailingProjectScheduleDataTable dataTable, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.vMailingProjectScheduleDataTable GetData(string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - DataSet1.vMailingProjectScheduleDataTable dataTable = new DataSet1.vMailingProjectScheduleDataTable(); - 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 vJobReportForUserTableAdapter : 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", "16.0.0.0")] - public vJobReportForUserTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "vJobReportForUser"; - tableMapping.ColumnMappings.Add("id", "id"); - tableMapping.ColumnMappings.Add("name", "name"); - this._adapter.TableMappings.Add(tableMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 id, MAX(name) AS name\r\nFROM vJobReportForUser\r\nWHERE (gcode = @gcode" + - ")\r\nGROUP BY id\r\nORDER BY name"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.vJobReportForUserDataTable dataTable, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.vJobReportForUserDataTable GetData(string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - DataSet1.vJobReportForUserDataTable dataTable = new DataSet1.vJobReportForUserDataTable(); - 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 vJobReportUserListTableAdapter : 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", "16.0.0.0")] - public vJobReportUserListTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "vJobReportUserList"; - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("name", "name"); - tableMapping.ColumnMappings.Add("id", "id"); - tableMapping.ColumnMappings.Add("outdate", "outdate"); - tableMapping.ColumnMappings.Add("email", "email"); - this._adapter.TableMappings.Add(tableMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 gcode, name, id, outdate, email\r\nFROM vGroupUser\r\nWHERE (ISNULL(useJ" + - "obReport, 0) = 1) AND (gcode = @gcode)"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.vJobReportUserListDataTable dataTable, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.vJobReportUserListDataTable GetData(string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - DataSet1.vJobReportUserListDataTable dataTable = new DataSet1.vJobReportUserListDataTable(); - 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 JobReportTableAdapter : 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", "16.0.0.0")] - public JobReportTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "JobReport"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("pdate", "pdate"); - tableMapping.ColumnMappings.Add("pidx", "pidx"); - tableMapping.ColumnMappings.Add("projectName", "projectName"); - tableMapping.ColumnMappings.Add("uid", "uid"); - tableMapping.ColumnMappings.Add("requestpart", "requestpart"); - tableMapping.ColumnMappings.Add("package", "package"); - tableMapping.ColumnMappings.Add("status", "status"); - tableMapping.ColumnMappings.Add("type", "type"); - tableMapping.ColumnMappings.Add("process", "process"); - tableMapping.ColumnMappings.Add("description", "description"); - tableMapping.ColumnMappings.Add("remark", "remark"); - tableMapping.ColumnMappings.Add("hrs", "hrs"); - tableMapping.ColumnMappings.Add("ot", "ot"); - tableMapping.ColumnMappings.Add("otStart", "otStart"); - tableMapping.ColumnMappings.Add("otEnd", "otEnd"); - tableMapping.ColumnMappings.Add("import", "import"); - tableMapping.ColumnMappings.Add("wuid", "wuid"); - tableMapping.ColumnMappings.Add("wdate", "wdate"); - tableMapping.ColumnMappings.Add("description2", "description2"); - tableMapping.ColumnMappings.Add("tag", "tag"); - tableMapping.ColumnMappings.Add("autoinput", "autoinput"); - tableMapping.ColumnMappings.Add("kisullv", "kisullv"); - tableMapping.ColumnMappings.Add("kisuldiv", "kisuldiv"); - tableMapping.ColumnMappings.Add("kisulamt", "kisulamt"); - tableMapping.ColumnMappings.Add("ot2", "ot2"); - tableMapping.ColumnMappings.Add("otReason", "otReason"); - tableMapping.ColumnMappings.Add("otwuid", "otwuid"); - tableMapping.ColumnMappings.Add("ottime", "ottime"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = "DELETE FROM [JobReport] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_g" + - "code) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate" + - ")) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND " + - "((@IsNull_projectName = 1 AND [projectName] IS NULL) OR ([projectName] = @Origin" + - "al_projectName)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_" + - "uid)) AND ((@IsNull_requestpart = 1 AND [requestpart] IS NULL) OR ([requestpart]" + - " = @Original_requestpart)) AND ((@IsNull_package = 1 AND [package] IS NULL) OR (" + - "[package] = @Original_package)) AND ((@IsNull_status = 1 AND [status] IS NULL) O" + - "R ([status] = @Original_status)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR (" + - "[type] = @Original_type)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([" + - "process] = @Original_process)) AND ((@IsNull_remark = 1 AND [remark] IS NULL) OR" + - " ([remark] = @Original_remark)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hr" + - "s] = @Original_hrs)) AND ((@IsNull_ot = 1 AND [ot] IS NULL) OR ([ot] = @Original" + - "_ot)) AND ((@IsNull_otStart = 1 AND [otStart] IS NULL) OR ([otStart] = @Original" + - "_otStart)) AND ((@IsNull_otEnd = 1 AND [otEnd] IS NULL) OR ([otEnd] = @Original_" + - "otEnd)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_" + - "import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@Is" + - "Null_tag = 1 AND [tag] IS NULL) OR ([tag] = @Original_tag)) AND ((@IsNull_autoin" + - "put = 1 AND [autoinput] IS NULL) OR ([autoinput] = @Original_autoinput)) AND ((@" + - "IsNull_kisullv = 1 AND [kisullv] IS NULL) OR ([kisullv] = @Original_kisullv)) AN" + - "D ((@IsNull_kisuldiv = 1 AND [kisuldiv] IS NULL) OR ([kisuldiv] = @Original_kisu" + - "ldiv)) AND ((@IsNull_kisulamt = 1 AND [kisulamt] IS NULL) OR ([kisulamt] = @Orig" + - "inal_kisulamt)) AND ((@IsNull_ot2 = 1 AND [ot2] IS NULL) OR ([ot2] = @Original_o" + - "t2)) AND ((@IsNull_otReason = 1 AND [otReason] IS NULL) OR ([otReason] = @Origin" + - "al_otReason)) AND ((@IsNull_otwuid = 1 AND [otwuid] IS NULL) OR ([otwuid] = @Ori" + - "ginal_otwuid)) AND ((@IsNull_ottime = 1 AND [ottime] IS NULL) OR ([ottime] = @Or" + - "iginal_ottime)))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_requestpart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_package", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hrs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otStart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otStart", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otStart", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otEnd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otEnd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_autoinput", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kisullv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisullv", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kisullv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisullv", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kisuldiv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisuldiv", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kisuldiv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisuldiv", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kisulamt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisulamt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kisulamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "kisulamt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ot2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ot2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otReason", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otReason", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otReason", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otReason", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otwuid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otwuid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otwuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otwuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ottime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ottime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ottime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ottime", 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 [JobReport] ([gcode], [pdate], [pidx], [projectName], [uid], [requestpart], [package], [status], [type], [process], [description], [remark], [hrs], [ot], [otStart], [otEnd], [import], [wuid], [wdate], [description2], [tag], [autoinput], [kisullv], [kisuldiv], [kisulamt], [ot2], [otReason], [otwuid], [ottime]) VALUES (@gcode, @pdate, @pidx, @projectName, @uid, @requestpart, @package, @status, @type, @process, @description, @remark, @hrs, @ot, @otStart, @otEnd, @import, @wuid, @wdate, @description2, @tag, @autoinput, @kisullv, @kisuldiv, @kisulamt, @ot2, @otReason, @otwuid, @ottime); -SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, kisuldiv, kisulamt, ot2, otReason, otwuid, ottime FROM JobReport WHERE (idx = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otStart", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kisullv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisullv", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kisuldiv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisuldiv", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kisulamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "kisulamt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ot2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otReason", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otReason", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otwuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otwuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ottime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ottime", 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 [JobReport] SET [gcode] = @gcode, [pdate] = @pdate, [pidx] = @pidx, [proje" + - "ctName] = @projectName, [uid] = @uid, [requestpart] = @requestpart, [package] = " + - "@package, [status] = @status, [type] = @type, [process] = @process, [description" + - "] = @description, [remark] = @remark, [hrs] = @hrs, [ot] = @ot, [otStart] = @otS" + - "tart, [otEnd] = @otEnd, [import] = @import, [wuid] = @wuid, [wdate] = @wdate, [d" + - "escription2] = @description2, [tag] = @tag, [autoinput] = @autoinput, [kisullv] " + - "= @kisullv, [kisuldiv] = @kisuldiv, [kisulamt] = @kisulamt, [ot2] = @ot2, [otRea" + - "son] = @otReason, [otwuid] = @otwuid, [ottime] = @ottime WHERE (([idx] = @Origin" + - "al_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS N" + - "ULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) " + - "OR ([pidx] = @Original_pidx)) AND ((@IsNull_projectName = 1 AND [projectName] IS" + - " NULL) OR ([projectName] = @Original_projectName)) AND ((@IsNull_uid = 1 AND [ui" + - "d] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_requestpart = 1 AND [reque" + - "stpart] IS NULL) OR ([requestpart] = @Original_requestpart)) AND ((@IsNull_packa" + - "ge = 1 AND [package] IS NULL) OR ([package] = @Original_package)) AND ((@IsNull_" + - "status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull" + - "_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_proces" + - "s = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_r" + - "emark = 1 AND [remark] IS NULL) OR ([remark] = @Original_remark)) AND ((@IsNull_" + - "hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ((@IsNull_ot = 1 AND " + - "[ot] IS NULL) OR ([ot] = @Original_ot)) AND ((@IsNull_otStart = 1 AND [otStart] " + - "IS NULL) OR ([otStart] = @Original_otStart)) AND ((@IsNull_otEnd = 1 AND [otEnd]" + - " IS NULL) OR ([otEnd] = @Original_otEnd)) AND ((@IsNull_import = 1 AND [import] " + - "IS NULL) OR ([import] = @Original_import)) AND ([wuid] = @Original_wuid) AND ([w" + - "date] = @Original_wdate) AND ((@IsNull_tag = 1 AND [tag] IS NULL) OR ([tag] = @O" + - "riginal_tag)) AND ((@IsNull_autoinput = 1 AND [autoinput] IS NULL) OR ([autoinpu" + - "t] = @Original_autoinput)) AND ((@IsNull_kisullv = 1 AND [kisullv] IS NULL) OR (" + - "[kisullv] = @Original_kisullv)) AND ((@IsNull_kisuldiv = 1 AND [kisuldiv] IS NUL" + - "L) OR ([kisuldiv] = @Original_kisuldiv)) AND ((@IsNull_kisulamt = 1 AND [kisulam" + - "t] IS NULL) OR ([kisulamt] = @Original_kisulamt)) AND ((@IsNull_ot2 = 1 AND [ot2" + - "] IS NULL) OR ([ot2] = @Original_ot2)) AND ((@IsNull_otReason = 1 AND [otReason]" + - " IS NULL) OR ([otReason] = @Original_otReason)) AND ((@IsNull_otwuid = 1 AND [ot" + - "wuid] IS NULL) OR ([otwuid] = @Original_otwuid)) AND ((@IsNull_ottime = 1 AND [o" + - "ttime] IS NULL) OR ([ottime] = @Original_ottime)));\r\nSELECT idx, gcode, pdate, p" + - "idx, projectName, uid, requestpart, package, status, type, process, description," + - " remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoin" + - "put, kisullv, kisuldiv, kisulamt, ot2, otReason, otwuid, ottime FROM JobReport W" + - "HERE (idx = @idx)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otStart", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otEnd", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kisullv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisullv", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kisuldiv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisuldiv", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@kisulamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "kisulamt", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ot2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot2", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otReason", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otReason", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@otwuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otwuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ottime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ottime", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pidx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pidx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_projectName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_projectName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "projectName", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_uid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_requestpart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_requestpart", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "requestpart", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_package", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_package", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "package", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_status", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_status", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "status", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_process", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_process", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "process", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_remark", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_remark", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "remark", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_hrs", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_hrs", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "hrs", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ot", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ot", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otStart", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otStart", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otStart", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otStart", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otEnd", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otEnd", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otEnd", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otEnd", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_import", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tag", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tag", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tag", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_autoinput", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_autoinput", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "autoinput", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kisullv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisullv", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kisullv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisullv", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kisuldiv", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisuldiv", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kisuldiv", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisuldiv", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_kisulamt", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "kisulamt", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_kisulamt", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 3, "kisulamt", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ot2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot2", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ot2", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ot2", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otReason", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otReason", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otReason", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otReason", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_otwuid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otwuid", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_otwuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "otwuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ottime", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ottime", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ottime", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ottime", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = @"SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, - kisuldiv, kisulamt, ot2, otReason, otwuid, ottime -FROM JobReport -WHERE (gcode = @gcode)"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[1].Connection = this.Connection; - this._commandCollection[1].CommandText = @"SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, - kisuldiv, kisulamt, ot2, otReason, otwuid, ottime -FROM JobReport -WHERE (gcode = @gcode) and uid = @uid and pdate between @sd and @ed -order by pdate "; - this._commandCollection[1].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.JobReportDataTable dataTable, string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.JobReportDataTable GetData(string gcode) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - DataSet1.JobReportDataTable dataTable = new DataSet1.JobReportDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] - public virtual int FillByUserDates(DataSet1.JobReportDataTable dataTable, string gcode, string uid, string sd, string ed) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((uid == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(uid)); - } - if ((sd == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(sd)); - } - if ((ed == null)) { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = ((string)(ed)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DataSet1.JobReportDataTable GetUserDates(string gcode, string uid, string sd, string ed) { - this.Adapter.SelectCommand = this.CommandCollection[1]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((uid == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(uid)); - } - if ((sd == null)) { - this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(sd)); - } - if ((ed == null)) { - this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[3].Value = ((string)(ed)); - } - DataSet1.JobReportDataTable dataTable = new DataSet1.JobReportDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1.JobReportDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1 dataSet) { - return this.Adapter.Update(dataSet, "JobReport"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete( - int Original_idx, - string Original_gcode, - string Original_pdate, - global::System.Nullable Original_pidx, - string Original_projectName, - string Original_uid, - string Original_requestpart, - string Original_package, - string Original_status, - string Original_type, - string Original_process, - string Original_remark, - global::System.Nullable Original_hrs, - global::System.Nullable Original_ot, - global::System.Nullable Original_otStart, - global::System.Nullable Original_otEnd, - global::System.Nullable Original_import, - string Original_wuid, - System.DateTime Original_wdate, - string Original_tag, - global::System.Nullable Original_autoinput, - string Original_kisullv, - string Original_kisuldiv, - global::System.Nullable Original_kisulamt, - global::System.Nullable Original_ot2, - string Original_otReason, - string Original_otwuid, - global::System.Nullable Original_ottime) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_gcode)); - } - if ((Original_pdate == null)) { - this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_pdate)); - } - if ((Original_pidx.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_pidx.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value; - } - if ((Original_projectName == null)) { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_projectName)); - } - if ((Original_uid == null)) { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_uid)); - } - if ((Original_requestpart == null)) { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_requestpart)); - } - if ((Original_package == null)) { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_package)); - } - if ((Original_status == null)) { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_status)); - } - if ((Original_type == null)) { - this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_type)); - } - if ((Original_process == null)) { - this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_process)); - } - if ((Original_remark == null)) { - this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[21].Value = ((string)(Original_remark)); - } - if ((Original_hrs.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[23].Value = ((double)(Original_hrs.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value; - } - if ((Original_ot.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[25].Value = ((double)(Original_ot.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((Original_otStart.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[27].Value = ((System.DateTime)(Original_otStart.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value; - } - if ((Original_otEnd.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[29].Value = ((System.DateTime)(Original_otEnd.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[29].Value = global::System.DBNull.Value; - } - if ((Original_import.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[31].Value = ((bool)(Original_import.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[31].Value = global::System.DBNull.Value; - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.DeleteCommand.Parameters[32].Value = ((string)(Original_wuid)); - } - this.Adapter.DeleteCommand.Parameters[33].Value = ((System.DateTime)(Original_wdate)); - if ((Original_tag == null)) { - this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[35].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[35].Value = ((string)(Original_tag)); - } - if ((Original_autoinput.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[37].Value = ((bool)(Original_autoinput.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[37].Value = global::System.DBNull.Value; - } - if ((Original_kisullv == null)) { - this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[39].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[39].Value = ((string)(Original_kisullv)); - } - if ((Original_kisuldiv == null)) { - this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[41].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[41].Value = ((string)(Original_kisuldiv)); - } - if ((Original_kisulamt.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[43].Value = ((decimal)(Original_kisulamt.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[43].Value = global::System.DBNull.Value; - } - if ((Original_ot2.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[45].Value = ((double)(Original_ot2.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[45].Value = global::System.DBNull.Value; - } - if ((Original_otReason == null)) { - this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[47].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[47].Value = ((string)(Original_otReason)); - } - if ((Original_otwuid == null)) { - this.Adapter.DeleteCommand.Parameters[48].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[49].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[48].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[49].Value = ((string)(Original_otwuid)); - } - if ((Original_ottime.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[51].Value = ((System.DateTime)(Original_ottime.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[50].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[51].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 gcode, - string pdate, - global::System.Nullable pidx, - string projectName, - string uid, - string requestpart, - string package, - string status, - string type, - string process, - string description, - string remark, - global::System.Nullable hrs, - global::System.Nullable ot, - global::System.Nullable otStart, - global::System.Nullable otEnd, - global::System.Nullable import, - string wuid, - System.DateTime wdate, - string description2, - string tag, - global::System.Nullable autoinput, - string kisullv, - string kisuldiv, - global::System.Nullable kisulamt, - global::System.Nullable ot2, - string otReason, - string otwuid, - global::System.Nullable ottime) { - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((pdate == null)) { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pdate)); - } - if ((pidx.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[2].Value = ((int)(pidx.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((projectName == null)) { - this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(projectName)); - } - if ((uid == null)) { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[4].Value = ((string)(uid)); - } - if ((requestpart == null)) { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[5].Value = ((string)(requestpart)); - } - if ((package == null)) { - this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[6].Value = ((string)(package)); - } - if ((status == null)) { - this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[7].Value = ((string)(status)); - } - if ((type == null)) { - this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[8].Value = ((string)(type)); - } - if ((process == null)) { - this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[9].Value = ((string)(process)); - } - if ((description == null)) { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(description)); - } - if ((remark == null)) { - this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[11].Value = ((string)(remark)); - } - if ((hrs.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[12].Value = ((double)(hrs.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((ot.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[13].Value = ((double)(ot.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((otStart.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[14].Value = ((System.DateTime)(otStart.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; - } - if ((otEnd.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[15].Value = ((System.DateTime)(otEnd.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value; - } - if ((import.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[16].Value = ((bool)(import.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value; - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.InsertCommand.Parameters[17].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[18].Value = ((System.DateTime)(wdate)); - if ((description2 == null)) { - this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[19].Value = ((string)(description2)); - } - if ((tag == null)) { - this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[20].Value = ((string)(tag)); - } - if ((autoinput.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[21].Value = ((bool)(autoinput.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value; - } - if ((kisullv == null)) { - this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[22].Value = ((string)(kisullv)); - } - if ((kisuldiv == null)) { - this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[23].Value = ((string)(kisuldiv)); - } - if ((kisulamt.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[24].Value = ((decimal)(kisulamt.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((ot2.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[25].Value = ((double)(ot2.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((otReason == null)) { - this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[26].Value = ((string)(otReason)); - } - if ((otwuid == null)) { - this.Adapter.InsertCommand.Parameters[27].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[27].Value = ((string)(otwuid)); - } - if ((ottime.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[28].Value = ((System.DateTime)(ottime.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[28].Value = global::System.DBNull.Value; - } - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string gcode, - string pdate, - global::System.Nullable pidx, - string projectName, - string uid, - string requestpart, - string package, - string status, - string type, - string process, - string description, - string remark, - global::System.Nullable hrs, - global::System.Nullable ot, - global::System.Nullable otStart, - global::System.Nullable otEnd, - global::System.Nullable import, - string wuid, - System.DateTime wdate, - string description2, - string tag, - global::System.Nullable autoinput, - string kisullv, - string kisuldiv, - global::System.Nullable kisulamt, - global::System.Nullable ot2, - string otReason, - string otwuid, - global::System.Nullable ottime, - int Original_idx, - string Original_gcode, - string Original_pdate, - global::System.Nullable Original_pidx, - string Original_projectName, - string Original_uid, - string Original_requestpart, - string Original_package, - string Original_status, - string Original_type, - string Original_process, - string Original_remark, - global::System.Nullable Original_hrs, - global::System.Nullable Original_ot, - global::System.Nullable Original_otStart, - global::System.Nullable Original_otEnd, - global::System.Nullable Original_import, - string Original_wuid, - System.DateTime Original_wdate, - string Original_tag, - global::System.Nullable Original_autoinput, - string Original_kisullv, - string Original_kisuldiv, - global::System.Nullable Original_kisulamt, - global::System.Nullable Original_ot2, - string Original_otReason, - string Original_otwuid, - global::System.Nullable Original_ottime, - int idx) { - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((pdate == null)) { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(pdate)); - } - if ((pidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(pidx.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - if ((projectName == null)) { - this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(projectName)); - } - if ((uid == null)) { - this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(uid)); - } - if ((requestpart == null)) { - this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(requestpart)); - } - if ((package == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(package)); - } - if ((status == null)) { - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(status)); - } - if ((type == null)) { - this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(type)); - } - if ((process == null)) { - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(process)); - } - if ((description == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(description)); - } - if ((remark == null)) { - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(remark)); - } - if ((hrs.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[12].Value = ((double)(hrs.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value; - } - if ((ot.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[13].Value = ((double)(ot.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value; - } - if ((otStart.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTime)(otStart.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value; - } - if ((otEnd.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(otEnd.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value; - } - if ((import.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[16].Value = ((bool)(import.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value; - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[18].Value = ((System.DateTime)(wdate)); - if ((description2 == null)) { - this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(description2)); - } - if ((tag == null)) { - this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(tag)); - } - if ((autoinput.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[21].Value = ((bool)(autoinput.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value; - } - if ((kisullv == null)) { - this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(kisullv)); - } - if ((kisuldiv == null)) { - this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(kisuldiv)); - } - if ((kisulamt.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[24].Value = ((decimal)(kisulamt.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value; - } - if ((ot2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[25].Value = ((double)(ot2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value; - } - if ((otReason == null)) { - this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(otReason)); - } - if ((otwuid == null)) { - this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(otwuid)); - } - if ((ottime.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[28].Value = ((System.DateTime)(ottime.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_idx)); - if ((Original_gcode == null)) { - throw new global::System.ArgumentNullException("Original_gcode"); - } - else { - this.Adapter.UpdateCommand.Parameters[30].Value = ((string)(Original_gcode)); - } - if ((Original_pdate == null)) { - this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[32].Value = ((string)(Original_pdate)); - } - if ((Original_pidx.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[34].Value = ((int)(Original_pidx.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value; - } - if ((Original_projectName == null)) { - this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_projectName)); - } - if ((Original_uid == null)) { - this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[38].Value = ((string)(Original_uid)); - } - if ((Original_requestpart == null)) { - this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[40].Value = ((string)(Original_requestpart)); - } - if ((Original_package == null)) { - this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_package)); - } - if ((Original_status == null)) { - this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[44].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[43].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[44].Value = ((string)(Original_status)); - } - if ((Original_type == null)) { - this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[46].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[45].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[46].Value = ((string)(Original_type)); - } - if ((Original_process == null)) { - this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[48].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[47].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[48].Value = ((string)(Original_process)); - } - if ((Original_remark == null)) { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[50].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[49].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[50].Value = ((string)(Original_remark)); - } - if ((Original_hrs.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[52].Value = ((double)(Original_hrs.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[51].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[52].Value = global::System.DBNull.Value; - } - if ((Original_ot.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[54].Value = ((double)(Original_ot.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[53].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[54].Value = global::System.DBNull.Value; - } - if ((Original_otStart.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[56].Value = ((System.DateTime)(Original_otStart.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[55].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[56].Value = global::System.DBNull.Value; - } - if ((Original_otEnd.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[58].Value = ((System.DateTime)(Original_otEnd.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[57].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[58].Value = global::System.DBNull.Value; - } - if ((Original_import.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[60].Value = ((bool)(Original_import.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[59].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[60].Value = global::System.DBNull.Value; - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_wuid)); - } - this.Adapter.UpdateCommand.Parameters[62].Value = ((System.DateTime)(Original_wdate)); - if ((Original_tag == null)) { - this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[64].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[63].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[64].Value = ((string)(Original_tag)); - } - if ((Original_autoinput.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[66].Value = ((bool)(Original_autoinput.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[65].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[66].Value = global::System.DBNull.Value; - } - if ((Original_kisullv == null)) { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[68].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[67].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[68].Value = ((string)(Original_kisullv)); - } - if ((Original_kisuldiv == null)) { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[70].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[69].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[70].Value = ((string)(Original_kisuldiv)); - } - if ((Original_kisulamt.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[72].Value = ((decimal)(Original_kisulamt.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[71].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[72].Value = global::System.DBNull.Value; - } - if ((Original_ot2.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[74].Value = ((double)(Original_ot2.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[73].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[74].Value = global::System.DBNull.Value; - } - if ((Original_otReason == null)) { - this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[76].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[75].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[76].Value = ((string)(Original_otReason)); - } - if ((Original_otwuid == null)) { - this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[78].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[77].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[78].Value = ((string)(Original_otwuid)); - } - if ((Original_ottime.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[80].Value = ((System.DateTime)(Original_ottime.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[79].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[80].Value = global::System.DBNull.Value; - } - this.Adapter.UpdateCommand.Parameters[81].Value = ((int)(idx)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update( - string gcode, - string pdate, - global::System.Nullable pidx, - string projectName, - string uid, - string requestpart, - string package, - string status, - string type, - string process, - string description, - string remark, - global::System.Nullable hrs, - global::System.Nullable ot, - global::System.Nullable otStart, - global::System.Nullable otEnd, - global::System.Nullable import, - string wuid, - System.DateTime wdate, - string description2, - string tag, - global::System.Nullable autoinput, - string kisullv, - string kisuldiv, - global::System.Nullable kisulamt, - global::System.Nullable ot2, - string otReason, - string otwuid, - global::System.Nullable ottime, - int Original_idx, - string Original_gcode, - string Original_pdate, - global::System.Nullable Original_pidx, - string Original_projectName, - string Original_uid, - string Original_requestpart, - string Original_package, - string Original_status, - string Original_type, - string Original_process, - string Original_remark, - global::System.Nullable Original_hrs, - global::System.Nullable Original_ot, - global::System.Nullable Original_otStart, - global::System.Nullable Original_otEnd, - global::System.Nullable Original_import, - string Original_wuid, - System.DateTime Original_wdate, - string Original_tag, - global::System.Nullable Original_autoinput, - string Original_kisullv, - string Original_kisuldiv, - global::System.Nullable Original_kisulamt, - global::System.Nullable Original_ot2, - string Original_otReason, - string Original_otwuid, - global::System.Nullable Original_ottime) { - return this.Update(gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, kisuldiv, kisulamt, ot2, otReason, otwuid, ottime, Original_idx, Original_gcode, Original_pdate, Original_pidx, Original_projectName, Original_uid, Original_requestpart, Original_package, Original_status, Original_type, Original_process, Original_remark, Original_hrs, Original_ot, Original_otStart, Original_otEnd, Original_import, Original_wuid, Original_wdate, Original_tag, Original_autoinput, Original_kisullv, Original_kisuldiv, Original_kisulamt, Original_ot2, Original_otReason, Original_otwuid, Original_ottime, Original_idx); - } - } - - /// - ///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 HolidayLIstTableAdapter : 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", "16.0.0.0")] - public HolidayLIstTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "HolidayLIst"; - tableMapping.ColumnMappings.Add("idx", "idx"); - tableMapping.ColumnMappings.Add("pdate", "pdate"); - tableMapping.ColumnMappings.Add("free", "free"); - tableMapping.ColumnMappings.Add("memo", "memo"); - tableMapping.ColumnMappings.Add("wuid", "wuid"); - tableMapping.ColumnMappings.Add("wdate", "wdate"); - this._adapter.TableMappings.Add(tableMapping); - this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); - this._adapter.DeleteCommand.Connection = this.Connection; - this._adapter.DeleteCommand.CommandText = @"DELETE FROM [HolidayLIst] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_free = 1 AND [free] IS NULL) OR ([free] = @Original_free)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))"; - this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_free", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "free", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_free", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "free", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [HolidayLIst] ([pdate], [free], [memo], [wuid], [wdate]) VALUES (@pda" + - "te, @free, @memo, @wuid, @wdate);\r\nSELECT idx, pdate, free, memo, wuid, wdate FR" + - "OM HolidayLIst WHERE (idx = SCOPE_IDENTITY())"; - this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@free", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "free", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [HolidayLIst] SET [pdate] = @pdate, [free] = @free, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_free = 1 AND [free] IS NULL) OR ([free] = @Original_free)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, pdate, free, memo, wuid, wdate FROM HolidayLIst WHERE (idx = @idx)"; - this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@free", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "free", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_pdate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_pdate", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_free", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "free", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_free", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "free", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_memo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, true, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_memo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "memo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); - this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 idx, pdate, free, memo, wuid, wdate\r\nFROM HolidayLIst\r\nWHERE (pdate " + - "= @pdate)"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pdate", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.HolidayLIstDataTable dataTable, string pdate) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((pdate == null)) { - this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(pdate)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.HolidayLIstDataTable GetData(string pdate) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((pdate == null)) { - this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(pdate)); - } - DataSet1.HolidayLIstDataTable dataTable = new DataSet1.HolidayLIstDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1.HolidayLIstDataTable dataTable) { - return this.Adapter.Update(dataTable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(DataSet1 dataSet) { - return this.Adapter.Update(dataSet, "HolidayLIst"); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow dataRow) { - return this.Adapter.Update(new global::System.Data.DataRow[] { - dataRow}); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int Update(global::System.Data.DataRow[] dataRows) { - return this.Adapter.Update(dataRows); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] - public virtual int Delete(int Original_idx, string Original_pdate, global::System.Nullable Original_free, string Original_memo, string Original_wuid, System.DateTime Original_wdate) { - this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx)); - if ((Original_pdate == null)) { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_pdate)); - } - if ((Original_free.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[4].Value = ((bool)(Original_free.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value; - } - if ((Original_memo == null)) { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_memo)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_wuid)); - } - this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_wdate)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; - if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.DeleteCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.DeleteCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 pdate, global::System.Nullable free, string memo, string wuid, System.DateTime wdate) { - if ((pdate == null)) { - this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[0].Value = ((string)(pdate)); - } - if ((free.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[1].Value = ((bool)(free.Value)); - } - else { - this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((memo == null)) { - this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.InsertCommand.Parameters[2].Value = ((string)(memo)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.InsertCommand.Parameters[3].Value = ((string)(wuid)); - } - this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(wdate)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; - if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.InsertCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.InsertCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string pdate, global::System.Nullable free, string memo, string wuid, System.DateTime wdate, int Original_idx, string Original_pdate, global::System.Nullable Original_free, string Original_memo, string Original_wuid, System.DateTime Original_wdate, int idx) { - if ((pdate == null)) { - this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(pdate)); - } - if ((free.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[1].Value = ((bool)(free.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value; - } - if ((memo == null)) { - this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(memo)); - } - if ((wuid == null)) { - throw new global::System.ArgumentNullException("wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(wuid)); - } - this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(wdate)); - this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_idx)); - if ((Original_pdate == null)) { - this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_pdate)); - } - if ((Original_free.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[9].Value = ((bool)(Original_free.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((Original_memo == null)) { - this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_memo)); - } - if ((Original_wuid == null)) { - throw new global::System.ArgumentNullException("Original_wuid"); - } - else { - this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_wuid)); - } - this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_wdate)); - this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(idx)); - global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; - if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) - != global::System.Data.ConnectionState.Open)) { - this.Adapter.UpdateCommand.Connection.Open(); - } - try { - int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); - return returnValue; - } - finally { - if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { - this.Adapter.UpdateCommand.Connection.Close(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] - public virtual int Update(string pdate, global::System.Nullable free, string memo, string wuid, System.DateTime wdate, int Original_idx, string Original_pdate, global::System.Nullable Original_free, string Original_memo, string Original_wuid, System.DateTime Original_wdate) { - return this.Update(pdate, free, memo, wuid, wdate, Original_idx, Original_pdate, Original_free, Original_memo, Original_wuid, Original_wdate, Original_idx); - } - } - - /// - ///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 vGroupUserTableAdapter : 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", "16.0.0.0")] - public vGroupUserTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "vGroupUser"; - tableMapping.ColumnMappings.Add("gcode", "gcode"); - tableMapping.ColumnMappings.Add("dept", "dept"); - tableMapping.ColumnMappings.Add("level", "level"); - tableMapping.ColumnMappings.Add("name", "name"); - tableMapping.ColumnMappings.Add("nameE", "nameE"); - tableMapping.ColumnMappings.Add("grade", "grade"); - tableMapping.ColumnMappings.Add("email", "email"); - tableMapping.ColumnMappings.Add("tel", "tel"); - tableMapping.ColumnMappings.Add("indate", "indate"); - tableMapping.ColumnMappings.Add("outdate", "outdate"); - tableMapping.ColumnMappings.Add("hp", "hp"); - tableMapping.ColumnMappings.Add("place", "place"); - tableMapping.ColumnMappings.Add("ads_employNo", "ads_employNo"); - tableMapping.ColumnMappings.Add("ads_title", "ads_title"); - tableMapping.ColumnMappings.Add("ads_created", "ads_created"); - tableMapping.ColumnMappings.Add("memo", "memo"); - tableMapping.ColumnMappings.Add("processs", "processs"); - tableMapping.ColumnMappings.Add("id", "id"); - tableMapping.ColumnMappings.Add("state", "state"); - tableMapping.ColumnMappings.Add("useJobReport", "useJobReport"); - tableMapping.ColumnMappings.Add("useUserState", "useUserState"); - tableMapping.ColumnMappings.Add("password", "password"); - this._adapter.TableMappings.Add(tableMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 gcode, dept, level, name, nameE, grade, email, tel, indate, outdate, hp, " + - "place, ads_employNo, ads_title, ads_created, memo, processs, id, state, useJobRe" + - "port, useUserState, password\r\nFROM vGroupUser\r\nWHERE (gcode = @gcode) AND (" + - "id = @uid)"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.vGroupUserDataTable dataTable, string gcode, string uid) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((uid == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(uid)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.vGroupUserDataTable GetData(string gcode, string uid) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((uid == null)) { - this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(uid)); - } - DataSet1.vGroupUserDataTable dataTable = new DataSet1.vGroupUserDataTable(); - 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 JobReportDateListTableAdapter : 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", "16.0.0.0")] - public JobReportDateListTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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 = "JobReportDateList"; - tableMapping.ColumnMappings.Add("pdate", "pdate"); - this._adapter.TableMappings.Add(tableMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = global::JobReportMailService.Properties.Settings.Default.gwcs; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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 pdate\r\nFROM JobReport\r\nWHERE (gcode = @gcode) AND (pdate BETWEEN @sd" + - " AND @ed)\r\nGROUP BY pdate\r\nORDER BY pdate"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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(DataSet1.JobReportDateListDataTable dataTable, string gcode, string sd, string ed) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((sd == null)) { - throw new global::System.ArgumentNullException("sd"); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(sd)); - } - if ((ed == null)) { - throw new global::System.ArgumentNullException("ed"); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); - } - 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", "16.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DataSet1.JobReportDateListDataTable GetData(string gcode, string sd, string ed) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((gcode == null)) { - throw new global::System.ArgumentNullException("gcode"); - } - else { - this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode)); - } - if ((sd == null)) { - throw new global::System.ArgumentNullException("sd"); - } - else { - this.Adapter.SelectCommand.Parameters[1].Value = ((string)(sd)); - } - if ((ed == null)) { - throw new global::System.ArgumentNullException("ed"); - } - else { - this.Adapter.SelectCommand.Parameters[2].Value = ((string)(ed)); - } - DataSet1.JobReportDateListDataTable dataTable = new DataSet1.JobReportDateListDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - } - - /// - ///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 MailAutoTableAdapter _mailAutoTableAdapter; - - private MailDataTableAdapter _mailDataTableAdapter; - - private MailFormTableAdapter _mailFormTableAdapter; - - private JobReportTableAdapter _jobReportTableAdapter; - - private HolidayLIstTableAdapter _holidayLIstTableAdapter; - - private bool _backupDataSetBeforeUpdate; - - private global::System.Data.IDbConnection _connection; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public MailAutoTableAdapter MailAutoTableAdapter { - get { - return this._mailAutoTableAdapter; - } - set { - this._mailAutoTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public MailDataTableAdapter MailDataTableAdapter { - get { - return this._mailDataTableAdapter; - } - set { - this._mailDataTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public MailFormTableAdapter MailFormTableAdapter { - get { - return this._mailFormTableAdapter; - } - set { - this._mailFormTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public JobReportTableAdapter JobReportTableAdapter { - get { - return this._jobReportTableAdapter; - } - set { - this._jobReportTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + - "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + - "a", "System.Drawing.Design.UITypeEditor")] - public HolidayLIstTableAdapter HolidayLIstTableAdapter { - get { - return this._holidayLIstTableAdapter; - } - set { - this._holidayLIstTableAdapter = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.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", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public global::System.Data.IDbConnection Connection { - get { - if ((this._connection != null)) { - return this._connection; - } - if (((this._mailAutoTableAdapter != null) - && (this._mailAutoTableAdapter.Connection != null))) { - return this._mailAutoTableAdapter.Connection; - } - if (((this._mailDataTableAdapter != null) - && (this._mailDataTableAdapter.Connection != null))) { - return this._mailDataTableAdapter.Connection; - } - if (((this._mailFormTableAdapter != null) - && (this._mailFormTableAdapter.Connection != null))) { - return this._mailFormTableAdapter.Connection; - } - if (((this._jobReportTableAdapter != null) - && (this._jobReportTableAdapter.Connection != null))) { - return this._jobReportTableAdapter.Connection; - } - if (((this._holidayLIstTableAdapter != null) - && (this._holidayLIstTableAdapter.Connection != null))) { - return this._holidayLIstTableAdapter.Connection; - } - return null; - } - set { - this._connection = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public int TableAdapterInstanceCount { - get { - int count = 0; - if ((this._mailAutoTableAdapter != null)) { - count = (count + 1); - } - if ((this._mailDataTableAdapter != null)) { - count = (count + 1); - } - if ((this._mailFormTableAdapter != null)) { - count = (count + 1); - } - if ((this._jobReportTableAdapter != null)) { - count = (count + 1); - } - if ((this._holidayLIstTableAdapter != null)) { - count = (count + 1); - } - return count; - } - } - - /// - ///Update rows in top-down order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private int UpdateUpdatedRows(DataSet1 dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { - int result = 0; - if ((this._mailAutoTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.MailAuto.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._mailAutoTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._mailDataTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._mailDataTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._mailFormTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._mailFormTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._jobReportTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._jobReportTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - if ((this._holidayLIstTableAdapter != null)) { - global::System.Data.DataRow[] updatedRows = dataSet.HolidayLIst.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); - updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); - if (((updatedRows != null) - && (0 < updatedRows.Length))) { - result = (result + this._holidayLIstTableAdapter.Update(updatedRows)); - allChangedRows.AddRange(updatedRows); - } - } - return result; - } - - /// - ///Insert rows in top-down order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private int UpdateInsertedRows(DataSet1 dataSet, global::System.Collections.Generic.List allAddedRows) { - int result = 0; - if ((this._mailAutoTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.MailAuto.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._mailAutoTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._mailDataTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._mailDataTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._mailFormTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._mailFormTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._jobReportTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._jobReportTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - if ((this._holidayLIstTableAdapter != null)) { - global::System.Data.DataRow[] addedRows = dataSet.HolidayLIst.Select(null, null, global::System.Data.DataViewRowState.Added); - if (((addedRows != null) - && (0 < addedRows.Length))) { - result = (result + this._holidayLIstTableAdapter.Update(addedRows)); - allAddedRows.AddRange(addedRows); - } - } - return result; - } - - /// - ///Delete rows in bottom-up order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] - private int UpdateDeletedRows(DataSet1 dataSet, global::System.Collections.Generic.List allChangedRows) { - int result = 0; - if ((this._holidayLIstTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.HolidayLIst.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._holidayLIstTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._jobReportTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.JobReport.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._jobReportTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._mailFormTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.MailForm.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._mailFormTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._mailDataTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.MailData.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._mailDataTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - if ((this._mailAutoTableAdapter != null)) { - global::System.Data.DataRow[] deletedRows = dataSet.MailAuto.Select(null, null, global::System.Data.DataViewRowState.Deleted); - if (((deletedRows != null) - && (0 < deletedRows.Length))) { - result = (result + this._mailAutoTableAdapter.Update(deletedRows)); - allChangedRows.AddRange(deletedRows); - } - } - 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", "16.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", "16.0.0.0")] - public virtual int UpdateAll(DataSet1 dataSet) { - if ((dataSet == null)) { - throw new global::System.ArgumentNullException("dataSet"); - } - if ((dataSet.HasChanges() == false)) { - return 0; - } - if (((this._mailAutoTableAdapter != null) - && (this.MatchTableAdapterConnection(this._mailAutoTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); - } - if (((this._mailDataTableAdapter != null) - && (this.MatchTableAdapterConnection(this._mailDataTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); - } - if (((this._mailFormTableAdapter != null) - && (this.MatchTableAdapterConnection(this._mailFormTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); - } - if (((this._jobReportTableAdapter != null) - && (this.MatchTableAdapterConnection(this._jobReportTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); - } - if (((this._holidayLIstTableAdapter != null) - && (this.MatchTableAdapterConnection(this._holidayLIstTableAdapter.Connection) == false))) { - throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다."); - } - 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 ----------- - // - if ((this._mailAutoTableAdapter != null)) { - revertConnections.Add(this._mailAutoTableAdapter, this._mailAutoTableAdapter.Connection); - this._mailAutoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._mailAutoTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._mailAutoTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._mailAutoTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._mailAutoTableAdapter.Adapter); - } - } - if ((this._mailDataTableAdapter != null)) { - revertConnections.Add(this._mailDataTableAdapter, this._mailDataTableAdapter.Connection); - this._mailDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._mailDataTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._mailDataTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._mailDataTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._mailDataTableAdapter.Adapter); - } - } - if ((this._mailFormTableAdapter != null)) { - revertConnections.Add(this._mailFormTableAdapter, this._mailFormTableAdapter.Connection); - this._mailFormTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._mailFormTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._mailFormTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._mailFormTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._mailFormTableAdapter.Adapter); - } - } - if ((this._jobReportTableAdapter != null)) { - revertConnections.Add(this._jobReportTableAdapter, this._jobReportTableAdapter.Connection); - this._jobReportTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._jobReportTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._jobReportTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._jobReportTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._jobReportTableAdapter.Adapter); - } - } - if ((this._holidayLIstTableAdapter != null)) { - revertConnections.Add(this._holidayLIstTableAdapter, this._holidayLIstTableAdapter.Connection); - this._holidayLIstTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); - this._holidayLIstTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); - if (this._holidayLIstTableAdapter.Adapter.AcceptChangesDuringUpdate) { - this._holidayLIstTableAdapter.Adapter.AcceptChangesDuringUpdate = false; - adaptersWithAcceptChangesDuringUpdate.Add(this._holidayLIstTableAdapter.Adapter); - } - } - // - //---- 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 ((this._mailAutoTableAdapter != null)) { - this._mailAutoTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailAutoTableAdapter])); - this._mailAutoTableAdapter.Transaction = null; - } - if ((this._mailDataTableAdapter != null)) { - this._mailDataTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailDataTableAdapter])); - this._mailDataTableAdapter.Transaction = null; - } - if ((this._mailFormTableAdapter != null)) { - this._mailFormTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mailFormTableAdapter])); - this._mailFormTableAdapter.Transaction = null; - } - if ((this._jobReportTableAdapter != null)) { - this._jobReportTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._jobReportTableAdapter])); - this._jobReportTableAdapter.Transaction = null; - } - if ((this._holidayLIstTableAdapter != null)) { - this._holidayLIstTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._holidayLIstTableAdapter])); - this._holidayLIstTableAdapter.Transaction = null; - } - 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", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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", "16.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/JobReportMailService/DataSet1.cs b/JobReportMailService/DataSet1.cs deleted file mode 100644 index 6becb1b..0000000 --- a/JobReportMailService/DataSet1.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace JobReportMailService -{ -} - -namespace JobReportMailService -{ -} - -namespace JobReportMailService -{ -} - -namespace JobReportMailService -{ -} - -namespace JobReportMailService -{ -} - -namespace JobReportMailService -{ -} -namespace JobReportMailService -{ - - - public partial class DataSet1 - { - } -} -namespace JobReportMailService { - - - public partial class DataSet1 { - } -} diff --git a/JobReportMailService/DataSet1.xsc b/JobReportMailService/DataSet1.xsc deleted file mode 100644 index 551fc56..0000000 --- a/JobReportMailService/DataSet1.xsc +++ /dev/null @@ -1,9 +0,0 @@ - - - - - \ No newline at end of file diff --git a/JobReportMailService/DataSet1.xsd b/JobReportMailService/DataSet1.xsd deleted file mode 100644 index 919f0b8..0000000 --- a/JobReportMailService/DataSet1.xsd +++ /dev/null @@ -1,1744 +0,0 @@ - - - - - - - - - - - - - - - DELETE FROM [MailAuto] WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) - - - - - - - - - - - - - - - - - - - - - - INSERT INTO [MailAuto] ([enable], [fidx], [gcode], [fromlist], [tolist], [bcc], [cc], [sdate], [edate], [stime], [sday], [wuid], [wdate], [subject], [body]) VALUES (@enable, @fidx, @gcode, @fromlist, @tolist, @bcc, @cc, @sdate, @edate, @stime, @sday, @wuid, @wdate, @subject, @body); -SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = SCOPE_IDENTITY()) - - - - - - - - - - - - - - - - - - - - - - SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body -FROM MailAuto - - - - - - UPDATE [MailAuto] SET [enable] = @enable, [fidx] = @fidx, [gcode] = @gcode, [fromlist] = @fromlist, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [sdate] = @sdate, [edate] = @edate, [stime] = @stime, [sday] = @sday, [wuid] = @wuid, [wdate] = @wdate, [subject] = @subject, [body] = @body WHERE (([idx] = @Original_idx) AND ((@IsNull_enable = 1 AND [enable] IS NULL) OR ([enable] = @Original_enable)) AND ([fidx] = @Original_fidx) AND ([gcode] = @Original_gcode) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_stime = 1 AND [stime] IS NULL) OR ([stime] = @Original_stime)) AND ((@IsNull_sday = 1 AND [sday] IS NULL) OR ([sday] = @Original_sday)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, enable, fidx, gcode, fromlist, tolist, bcc, cc, sdate, edate, stime, sday, wuid, wdate, subject, body FROM MailAuto WHERE (idx = @idx) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT bcc, body, cc, edate, enable, fidx, fromlist, gcode, idx, sdate, sday, stime, subject, tolist, wdate, wuid FROM MailAuto WHERE (enable = 1) AND (ISNULL(fromlist, '') <> '') AND (ISNULL(tolist, '') <> '') AND (ISNULL(stime, '') <> '') - - - - - - - - - - - - DELETE FROM [MailData] WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO [MailData] ([project], [gcode], [cate], [pdate], [subject], [tolist], [bcc], [cc], [body], [SendOK], [SendMsg], [aidx], [atime], [wuid], [wdate], [fromlist]) VALUES (@project, @gcode, @cate, @pdate, @subject, @tolist, @bcc, @cc, @body, @SendOK, @SendMsg, @aidx, @atime, @wuid, @wdate, @fromlist); -SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist FROM MailData WHERE (idx = SCOPE_IDENTITY()) - - - - - - - - - - - - - - - - - - - - - - - SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist -FROM MailData -WHERE (ISNULL(SendOK, 0) = 0) - - - - - - UPDATE [MailData] SET [project] = @project, [gcode] = @gcode, [cate] = @cate, [pdate] = @pdate, [subject] = @subject, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [body] = @body, [SendOK] = @SendOK, [SendMsg] = @SendMsg, [aidx] = @aidx, [atime] = @atime, [wuid] = @wuid, [wdate] = @wdate, [fromlist] = @fromlist WHERE (([idx] = @Original_idx) AND ((@IsNull_project = 1 AND [project] IS NULL) OR ([project] = @Original_project)) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_SendOK = 1 AND [SendOK] IS NULL) OR ([SendOK] = @Original_SendOK)) AND ((@IsNull_SendMsg = 1 AND [SendMsg] IS NULL) OR ([SendMsg] = @Original_SendMsg)) AND ((@IsNull_aidx = 1 AND [aidx] IS NULL) OR ([aidx] = @Original_aidx)) AND ((@IsNull_atime = 1 AND [atime] IS NULL) OR ([atime] = @Original_atime)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist FROM MailData WHERE (idx = @idx) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) AS Expr1 -FROM MailData -WHERE (aidx = @aidx) AND (pdate = @pdate) AND (atime = @atime) AND (cate = @cate) - - - - - - - - - - - - - SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist -FROM MailData -WHERE gcode = @gcode and cate = @cate and pdate = @pdate - - - - - - - - - - - - SELECT idx, project, gcode, cate, pdate, subject, tolist, bcc, cc, body, SendOK, SendMsg, aidx, atime, wuid, wdate, fromlist -FROM MailData -WHERE gcode = @gcode and wuid = @uid and pdate = @pdate and cate = @cate - - - - - - - - - - - - - SELECT COUNT(*) AS cnt -FROM MailData -WHERE (aidx = @aidx) AND (atime = @atime) AND (pdate = @pdate) AND (cate = @cate) - - - - - - - - - - - - - UPDATE MailData -SET SendOK = 1, SendMsg = @msg -WHERE (idx = @idx) - - - - - - - - - UPDATE [MailData] SET SendOK = 1 -WHERE (idx = @idx) - - - - - - - - - - - - - - DELETE FROM [MailForm] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) - - - - - - - - - - - - - - - - - - - - - INSERT INTO [MailForm] ([gcode], [cate], [title], [tolist], [bcc], [cc], [subject], [tail], [body], [selfTo], [selfCC], [selfBCC], [wuid], [wdate], [exceptmail], [exceptmailcc]) VALUES (@gcode, @cate, @title, @tolist, @bcc, @cc, @subject, @tail, @body, @selfTo, @selfCC, @selfBCC, @wuid, @wdate, @exceptmail, @exceptmailcc); -SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate, exceptmail, exceptmailcc FROM MailForm WHERE (idx = SCOPE_IDENTITY()) - - - - - - - - - - - - - - - - - - - - - - - SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate, exceptmail, exceptmailcc -FROM MailForm - - - - - - UPDATE [MailForm] SET [gcode] = @gcode, [cate] = @cate, [title] = @title, [tolist] = @tolist, [bcc] = @bcc, [cc] = @cc, [subject] = @subject, [tail] = @tail, [body] = @body, [selfTo] = @selfTo, [selfCC] = @selfCC, [selfBCC] = @selfBCC, [wuid] = @wuid, [wdate] = @wdate, [exceptmail] = @exceptmail, [exceptmailcc] = @exceptmailcc WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_selfTo = 1 AND [selfTo] IS NULL) OR ([selfTo] = @Original_selfTo)) AND ((@IsNull_selfCC = 1 AND [selfCC] IS NULL) OR ([selfCC] = @Original_selfCC)) AND ((@IsNull_selfBCC = 1 AND [selfBCC] IS NULL) OR ([selfBCC] = @Original_selfBCC)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, gcode, cate, title, tolist, bcc, cc, subject, tail, body, selfTo, selfCC, selfBCC, wuid, wdate, exceptmail, exceptmailcc FROM MailForm WHERE (idx = @idx) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT idx, pdate, name, userManager, seq, title, sw, ew, swa, progress, ewa, ww, memo, sidx, gcode, status -FROM vMailingProjectSchedule -WHERE (gcode = @gcode) -ORDER BY pdate, idx, seq - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT id, MAX(name) AS name -FROM vJobReportForUser -WHERE (gcode = @gcode) -GROUP BY id -ORDER BY name - - - - - - - - - - - - - - - - - - - SELECT gcode, name, id, outdate, email -FROM vGroupUser -WHERE (ISNULL(useJobReport, 0) = 1) AND (gcode = @gcode) - - - - - - - - - - - - - - - - - - - - - - DELETE FROM [JobReport] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ((@IsNull_projectName = 1 AND [projectName] IS NULL) OR ([projectName] = @Original_projectName)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_requestpart = 1 AND [requestpart] IS NULL) OR ([requestpart] = @Original_requestpart)) AND ((@IsNull_package = 1 AND [package] IS NULL) OR ([package] = @Original_package)) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_remark = 1 AND [remark] IS NULL) OR ([remark] = @Original_remark)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ((@IsNull_ot = 1 AND [ot] IS NULL) OR ([ot] = @Original_ot)) AND ((@IsNull_otStart = 1 AND [otStart] IS NULL) OR ([otStart] = @Original_otStart)) AND ((@IsNull_otEnd = 1 AND [otEnd] IS NULL) OR ([otEnd] = @Original_otEnd)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_tag = 1 AND [tag] IS NULL) OR ([tag] = @Original_tag)) AND ((@IsNull_autoinput = 1 AND [autoinput] IS NULL) OR ([autoinput] = @Original_autoinput)) AND ((@IsNull_kisullv = 1 AND [kisullv] IS NULL) OR ([kisullv] = @Original_kisullv)) AND ((@IsNull_kisuldiv = 1 AND [kisuldiv] IS NULL) OR ([kisuldiv] = @Original_kisuldiv)) AND ((@IsNull_kisulamt = 1 AND [kisulamt] IS NULL) OR ([kisulamt] = @Original_kisulamt)) AND ((@IsNull_ot2 = 1 AND [ot2] IS NULL) OR ([ot2] = @Original_ot2)) AND ((@IsNull_otReason = 1 AND [otReason] IS NULL) OR ([otReason] = @Original_otReason)) AND ((@IsNull_otwuid = 1 AND [otwuid] IS NULL) OR ([otwuid] = @Original_otwuid)) AND ((@IsNull_ottime = 1 AND [ottime] IS NULL) OR ([ottime] = @Original_ottime))) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO [JobReport] ([gcode], [pdate], [pidx], [projectName], [uid], [requestpart], [package], [status], [type], [process], [description], [remark], [hrs], [ot], [otStart], [otEnd], [import], [wuid], [wdate], [description2], [tag], [autoinput], [kisullv], [kisuldiv], [kisulamt], [ot2], [otReason], [otwuid], [ottime]) VALUES (@gcode, @pdate, @pidx, @projectName, @uid, @requestpart, @package, @status, @type, @process, @description, @remark, @hrs, @ot, @otStart, @otEnd, @import, @wuid, @wdate, @description2, @tag, @autoinput, @kisullv, @kisuldiv, @kisulamt, @ot2, @otReason, @otwuid, @ottime); -SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, kisuldiv, kisulamt, ot2, otReason, otwuid, ottime FROM JobReport WHERE (idx = SCOPE_IDENTITY()) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, - kisuldiv, kisulamt, ot2, otReason, otwuid, ottime -FROM JobReport -WHERE (gcode = @gcode) - - - - - - - - UPDATE [JobReport] SET [gcode] = @gcode, [pdate] = @pdate, [pidx] = @pidx, [projectName] = @projectName, [uid] = @uid, [requestpart] = @requestpart, [package] = @package, [status] = @status, [type] = @type, [process] = @process, [description] = @description, [remark] = @remark, [hrs] = @hrs, [ot] = @ot, [otStart] = @otStart, [otEnd] = @otEnd, [import] = @import, [wuid] = @wuid, [wdate] = @wdate, [description2] = @description2, [tag] = @tag, [autoinput] = @autoinput, [kisullv] = @kisullv, [kisuldiv] = @kisuldiv, [kisulamt] = @kisulamt, [ot2] = @ot2, [otReason] = @otReason, [otwuid] = @otwuid, [ottime] = @ottime WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_pidx = 1 AND [pidx] IS NULL) OR ([pidx] = @Original_pidx)) AND ((@IsNull_projectName = 1 AND [projectName] IS NULL) OR ([projectName] = @Original_projectName)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_requestpart = 1 AND [requestpart] IS NULL) OR ([requestpart] = @Original_requestpart)) AND ((@IsNull_package = 1 AND [package] IS NULL) OR ([package] = @Original_package)) AND ((@IsNull_status = 1 AND [status] IS NULL) OR ([status] = @Original_status)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_process = 1 AND [process] IS NULL) OR ([process] = @Original_process)) AND ((@IsNull_remark = 1 AND [remark] IS NULL) OR ([remark] = @Original_remark)) AND ((@IsNull_hrs = 1 AND [hrs] IS NULL) OR ([hrs] = @Original_hrs)) AND ((@IsNull_ot = 1 AND [ot] IS NULL) OR ([ot] = @Original_ot)) AND ((@IsNull_otStart = 1 AND [otStart] IS NULL) OR ([otStart] = @Original_otStart)) AND ((@IsNull_otEnd = 1 AND [otEnd] IS NULL) OR ([otEnd] = @Original_otEnd)) AND ((@IsNull_import = 1 AND [import] IS NULL) OR ([import] = @Original_import)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_tag = 1 AND [tag] IS NULL) OR ([tag] = @Original_tag)) AND ((@IsNull_autoinput = 1 AND [autoinput] IS NULL) OR ([autoinput] = @Original_autoinput)) AND ((@IsNull_kisullv = 1 AND [kisullv] IS NULL) OR ([kisullv] = @Original_kisullv)) AND ((@IsNull_kisuldiv = 1 AND [kisuldiv] IS NULL) OR ([kisuldiv] = @Original_kisuldiv)) AND ((@IsNull_kisulamt = 1 AND [kisulamt] IS NULL) OR ([kisulamt] = @Original_kisulamt)) AND ((@IsNull_ot2 = 1 AND [ot2] IS NULL) OR ([ot2] = @Original_ot2)) AND ((@IsNull_otReason = 1 AND [otReason] IS NULL) OR ([otReason] = @Original_otReason)) AND ((@IsNull_otwuid = 1 AND [otwuid] IS NULL) OR ([otwuid] = @Original_otwuid)) AND ((@IsNull_ottime = 1 AND [ottime] IS NULL) OR ([ottime] = @Original_ottime))); -SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, kisuldiv, kisulamt, ot2, otReason, otwuid, ottime FROM JobReport WHERE (idx = @idx) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT idx, gcode, pdate, pidx, projectName, uid, requestpart, package, status, type, process, description, remark, hrs, ot, otStart, otEnd, import, wuid, wdate, description2, tag, autoinput, kisullv, - kisuldiv, kisulamt, ot2, otReason, otwuid, ottime -FROM JobReport -WHERE (gcode = @gcode) and uid = @uid and pdate between @sd and @ed -order by pdate - - - - - - - - - - - - - - - - - DELETE FROM [HolidayLIst] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_free = 1 AND [free] IS NULL) OR ([free] = @Original_free)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)) - - - - - - - - - - - - - - - - INSERT INTO [HolidayLIst] ([pdate], [free], [memo], [wuid], [wdate]) VALUES (@pdate, @free, @memo, @wuid, @wdate); -SELECT idx, pdate, free, memo, wuid, wdate FROM HolidayLIst WHERE (idx = SCOPE_IDENTITY()) - - - - - - - - - - - - SELECT idx, pdate, free, memo, wuid, wdate -FROM HolidayLIst -WHERE (pdate = @pdate) - - - - - - - - UPDATE [HolidayLIst] SET [pdate] = @pdate, [free] = @free, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_free = 1 AND [free] IS NULL) OR ([free] = @Original_free)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); -SELECT idx, pdate, free, memo, wuid, wdate FROM HolidayLIst WHERE (idx = @idx) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT gcode, dept, level, name, nameE, grade, email, tel, indate, outdate, hp, place, ads_employNo, ads_title, ads_created, memo, processs, id, state, useJobReport, useUserState, password -FROM vGroupUser -WHERE (gcode = @gcode) AND (id = @uid) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT pdate -FROM JobReport -WHERE (gcode = @gcode) AND (pdate BETWEEN @sd AND @ed) -GROUP BY pdate -ORDER BY pdate - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/JobReportMailService/DataSet1.xss b/JobReportMailService/DataSet1.xss deleted file mode 100644 index 33e9827..0000000 --- a/JobReportMailService/DataSet1.xss +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/JobReportMailService/EETGW_ProjectToDo.cs b/JobReportMailService/EETGW_ProjectToDo.cs deleted file mode 100644 index 26c1b6c..0000000 --- a/JobReportMailService/EETGW_ProjectToDo.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class EETGW_ProjectToDo - { - public int idx { get; set; } - public int pidx { get; set; } - public Nullable pseq { get; set; } - public Nullable sw { get; set; } - public Nullable ww { get; set; } - public string sort { get; set; } - public string cate { get; set; } - public string title { get; set; } - public string pdate { get; set; } - public string edate { get; set; } - public Nullable process { get; set; } - public string remark { get; set; } - public string remark2 { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string gcode { get; set; } - public Nullable no { get; set; } - } -} diff --git a/JobReportMailService/EETGW_ProjectsSchedule.cs b/JobReportMailService/EETGW_ProjectsSchedule.cs deleted file mode 100644 index 632317a..0000000 --- a/JobReportMailService/EETGW_ProjectsSchedule.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class EETGW_ProjectsSchedule - { - public int idx { get; set; } - public string gcode { get; set; } - public Nullable project { get; set; } - public Nullable no { get; set; } - public Nullable seq { get; set; } - public string title { get; set; } - public string cate { get; set; } - public string sw { get; set; } - public string ew { get; set; } - public string swa { get; set; } - public string ewa { get; set; } - public string uid { get; set; } - public string memo { get; set; } - public Nullable appoval { get; set; } - public Nullable progress { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/JobReportMailService/HolidayLIst.cs b/JobReportMailService/HolidayLIst.cs deleted file mode 100644 index e7aa984..0000000 --- a/JobReportMailService/HolidayLIst.cs +++ /dev/null @@ -1,24 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class HolidayLIst - { - public int idx { get; set; } - public string pdate { get; set; } - public Nullable free { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/JobReportMailService/JobReport.cs b/JobReportMailService/JobReport.cs deleted file mode 100644 index f7fa889..0000000 --- a/JobReportMailService/JobReport.cs +++ /dev/null @@ -1,48 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class JobReport - { - public int idx { get; set; } - public string gcode { get; set; } - public string pdate { get; set; } - public Nullable pidx { get; set; } - public string projectName { get; set; } - public string uid { get; set; } - public string requestpart { get; set; } - public string package { get; set; } - public string status { get; set; } - public string type { get; set; } - public string process { get; set; } - public string description { get; set; } - public string remark { get; set; } - public Nullable hrs { get; set; } - public Nullable ot { get; set; } - public Nullable import { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string description2 { get; set; } - public string tag { get; set; } - public Nullable autoinput { get; set; } - public Nullable otStart { get; set; } - public Nullable otEnd { get; set; } - public string kisullv { get; set; } - public string kisuldiv { get; set; } - public Nullable kisulamt { get; set; } - public Nullable ot2 { get; set; } - public string otReason { get; set; } - public string otwuid { get; set; } - public Nullable ottime { get; set; } - } -} diff --git a/JobReportMailService/JobReportMailService.csproj b/JobReportMailService/JobReportMailService.csproj deleted file mode 100644 index 2d8a7c4..0000000 --- a/JobReportMailService/JobReportMailService.csproj +++ /dev/null @@ -1,252 +0,0 @@ - - - - - Debug - AnyCPU - {DBE5BD4A-09D3-4437-AD6C-81FE270C6458} - WinExe - JobReportMailService - JobReportMailService - v4.5 - 512 - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - ..\DLL\ArSetting.Net4.dll - - - - - ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll - - - ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll - - - - - - - - - - - - - - - - - - - DataSet1.xsd - - - True - True - DataSet1.xsd - - - Model1.tt - - - Model1.tt - - - Form - - - fChildBase.cs - - - Form - - - fNoScheduleDayWeek.cs - - - Form - - - fSendMail.cs - - - Form - - - fScheduleDayWeek.cs - - - Form - - - fScheduleDay.cs - - - Form - - - fJobReportWeek.cs - - - Form - - - fJobReportDay.cs - - - Form - - - fSetup.cs - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Form - - - MDIParent1.cs - - - True - True - Model1.Context.tt - - - True - True - Model1.tt - - - True - True - Model1.edmx - - - - - Model1.tt - - - - True - True - Settings.settings - - - - - - Model1.tt - - - Model1.tt - - - - - - EntityModelCodeGenerator - Model1.Designer.cs - - - DataSet1.xsd - - - Designer - MSDataSetGenerator - DataSet1.Designer.cs - - - DataSet1.xsd - - - Model1.edmx - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - TextTemplatingFileGenerator - Model1.Context.cs - Model1.edmx - - - TextTemplatingFileGenerator - Model1.edmx - Model1.cs - - - - - - - - fChildBase.cs - - - fNoScheduleDayWeek.cs - - - fSendMail.cs - - - fScheduleDayWeek.cs - - - fScheduleDay.cs - - - fJobReportWeek.cs - - - fJobReportDay.cs - - - fSetup.cs - - - MDIParent1.cs - - - - \ No newline at end of file diff --git a/JobReportMailService/JobReportMailService.csproj.user b/JobReportMailService/JobReportMailService.csproj.user deleted file mode 100644 index a3b3498..0000000 --- a/JobReportMailService/JobReportMailService.csproj.user +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/JobReportMailService/MDIParent1.Designer.cs b/JobReportMailService/MDIParent1.Designer.cs deleted file mode 100644 index 41268a2..0000000 --- a/JobReportMailService/MDIParent1.Designer.cs +++ /dev/null @@ -1,613 +0,0 @@ - -namespace JobReportMailService -{ - partial class MDIParent1 - { - /// - /// 필수 디자이너 변수입니다. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 사용 중인 모든 리소스를 정리합니다. - /// - /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form 디자이너에서 생성한 코드 - - /// - /// 디자이너 지원에 필요한 메서드입니다. - /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MDIParent1)); - this.menuStrip = new System.Windows.Forms.MenuStrip(); - this.fileMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); - this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.printToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.printPreviewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.printSetupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); - this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.editMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); - this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); - this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.viewMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.toolBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.statusBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolsMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.windowsMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.newWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.cascadeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.tileVerticalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.tileHorizontalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.closeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.arrangeIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.helpMenu = new System.Windows.Forms.ToolStripMenuItem(); - this.contentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.indexToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.searchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); - this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStrip = new System.Windows.Forms.ToolStrip(); - this.bt1 = new System.Windows.Forms.ToolStripButton(); - this.bt2 = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.bt3 = new System.Windows.Forms.ToolStripButton(); - this.bt4 = new System.Windows.Forms.ToolStripButton(); - this.bt5 = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.bt6 = new System.Windows.Forms.ToolStripButton(); - this.statusStrip = new System.Windows.Forms.StatusStrip(); - this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolTip = new System.Windows.Forms.ToolTip(this.components); - this.menuStrip.SuspendLayout(); - this.toolStrip.SuspendLayout(); - this.statusStrip.SuspendLayout(); - this.SuspendLayout(); - // - // menuStrip - // - this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.fileMenu, - this.editMenu, - this.viewMenu, - this.toolsMenu, - this.windowsMenu, - this.helpMenu}); - this.menuStrip.Location = new System.Drawing.Point(0, 0); - this.menuStrip.MdiWindowListItem = this.windowsMenu; - this.menuStrip.Name = "menuStrip"; - this.menuStrip.Padding = new System.Windows.Forms.Padding(7, 2, 0, 2); - this.menuStrip.Size = new System.Drawing.Size(709, 24); - this.menuStrip.TabIndex = 0; - this.menuStrip.Text = "MenuStrip"; - // - // fileMenu - // - this.fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.newToolStripMenuItem, - this.openToolStripMenuItem, - this.toolStripSeparator3, - this.saveToolStripMenuItem, - this.saveAsToolStripMenuItem, - this.toolStripSeparator4, - this.printToolStripMenuItem, - this.printPreviewToolStripMenuItem, - this.printSetupToolStripMenuItem, - this.toolStripSeparator5, - this.exitToolStripMenuItem}); - this.fileMenu.ImageTransparentColor = System.Drawing.SystemColors.ActiveBorder; - this.fileMenu.Name = "fileMenu"; - this.fileMenu.Size = new System.Drawing.Size(57, 20); - this.fileMenu.Text = "파일(&F)"; - // - // newToolStripMenuItem - // - this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image"))); - this.newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.newToolStripMenuItem.Name = "newToolStripMenuItem"; - this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); - this.newToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.newToolStripMenuItem.Text = "새로 만들기(&N)"; - this.newToolStripMenuItem.Click += new System.EventHandler(this.ShowNewForm); - // - // openToolStripMenuItem - // - this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image"))); - this.openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.openToolStripMenuItem.Name = "openToolStripMenuItem"; - this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); - this.openToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.openToolStripMenuItem.Text = "열기(&O)"; - this.openToolStripMenuItem.Click += new System.EventHandler(this.OpenFile); - // - // toolStripSeparator3 - // - this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(195, 6); - // - // saveToolStripMenuItem - // - this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); - this.saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; - this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); - this.saveToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.saveToolStripMenuItem.Text = "저장(&S)"; - // - // saveAsToolStripMenuItem - // - this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; - this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.saveAsToolStripMenuItem.Text = "다른 이름으로 저장(&A)"; - this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.SaveAsToolStripMenuItem_Click); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(195, 6); - // - // printToolStripMenuItem - // - this.printToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripMenuItem.Image"))); - this.printToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.printToolStripMenuItem.Name = "printToolStripMenuItem"; - this.printToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); - this.printToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.printToolStripMenuItem.Text = "인쇄(&P)"; - // - // printPreviewToolStripMenuItem - // - this.printPreviewToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printPreviewToolStripMenuItem.Image"))); - this.printPreviewToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.printPreviewToolStripMenuItem.Name = "printPreviewToolStripMenuItem"; - this.printPreviewToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.printPreviewToolStripMenuItem.Text = "인쇄 미리 보기(&V)"; - // - // printSetupToolStripMenuItem - // - this.printSetupToolStripMenuItem.Name = "printSetupToolStripMenuItem"; - this.printSetupToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.printSetupToolStripMenuItem.Text = "인쇄 설정"; - // - // toolStripSeparator5 - // - this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(195, 6); - // - // exitToolStripMenuItem - // - this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; - this.exitToolStripMenuItem.Size = new System.Drawing.Size(198, 22); - this.exitToolStripMenuItem.Text = "끝내기(&X)"; - this.exitToolStripMenuItem.Click += new System.EventHandler(this.ExitToolsStripMenuItem_Click); - // - // editMenu - // - this.editMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.undoToolStripMenuItem, - this.redoToolStripMenuItem, - this.toolStripSeparator6, - this.cutToolStripMenuItem, - this.copyToolStripMenuItem, - this.pasteToolStripMenuItem, - this.toolStripSeparator7, - this.selectAllToolStripMenuItem}); - this.editMenu.Name = "editMenu"; - this.editMenu.Size = new System.Drawing.Size(57, 20); - this.editMenu.Text = "편집(&E)"; - // - // undoToolStripMenuItem - // - this.undoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("undoToolStripMenuItem.Image"))); - this.undoToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; - this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); - this.undoToolStripMenuItem.Size = new System.Drawing.Size(184, 22); - this.undoToolStripMenuItem.Text = "실행 취소(&U)"; - // - // redoToolStripMenuItem - // - this.redoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("redoToolStripMenuItem.Image"))); - this.redoToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.redoToolStripMenuItem.Name = "redoToolStripMenuItem"; - this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); - this.redoToolStripMenuItem.Size = new System.Drawing.Size(184, 22); - this.redoToolStripMenuItem.Text = "다시 실행(&R)"; - // - // toolStripSeparator6 - // - this.toolStripSeparator6.Name = "toolStripSeparator6"; - this.toolStripSeparator6.Size = new System.Drawing.Size(181, 6); - // - // cutToolStripMenuItem - // - this.cutToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripMenuItem.Image"))); - this.cutToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; - this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X))); - this.cutToolStripMenuItem.Size = new System.Drawing.Size(184, 22); - this.cutToolStripMenuItem.Text = "잘라내기(&T)"; - this.cutToolStripMenuItem.Click += new System.EventHandler(this.CutToolStripMenuItem_Click); - // - // copyToolStripMenuItem - // - this.copyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripMenuItem.Image"))); - this.copyToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; - this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C))); - this.copyToolStripMenuItem.Size = new System.Drawing.Size(184, 22); - this.copyToolStripMenuItem.Text = "복사(&C)"; - this.copyToolStripMenuItem.Click += new System.EventHandler(this.CopyToolStripMenuItem_Click); - // - // pasteToolStripMenuItem - // - this.pasteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripMenuItem.Image"))); - this.pasteToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; - this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V))); - this.pasteToolStripMenuItem.Size = new System.Drawing.Size(184, 22); - this.pasteToolStripMenuItem.Text = "붙여넣기(&P)"; - this.pasteToolStripMenuItem.Click += new System.EventHandler(this.PasteToolStripMenuItem_Click); - // - // toolStripSeparator7 - // - this.toolStripSeparator7.Name = "toolStripSeparator7"; - this.toolStripSeparator7.Size = new System.Drawing.Size(181, 6); - // - // selectAllToolStripMenuItem - // - this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; - this.selectAllToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A))); - this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(184, 22); - this.selectAllToolStripMenuItem.Text = "모두 선택(&A)"; - // - // viewMenu - // - this.viewMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolBarToolStripMenuItem, - this.statusBarToolStripMenuItem}); - this.viewMenu.Name = "viewMenu"; - this.viewMenu.Size = new System.Drawing.Size(59, 20); - this.viewMenu.Text = "보기(&V)"; - // - // toolBarToolStripMenuItem - // - this.toolBarToolStripMenuItem.Checked = true; - this.toolBarToolStripMenuItem.CheckOnClick = true; - this.toolBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; - this.toolBarToolStripMenuItem.Name = "toolBarToolStripMenuItem"; - this.toolBarToolStripMenuItem.Size = new System.Drawing.Size(153, 22); - this.toolBarToolStripMenuItem.Text = "도구 모음(&T)"; - this.toolBarToolStripMenuItem.Click += new System.EventHandler(this.ToolBarToolStripMenuItem_Click); - // - // statusBarToolStripMenuItem - // - this.statusBarToolStripMenuItem.Checked = true; - this.statusBarToolStripMenuItem.CheckOnClick = true; - this.statusBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; - this.statusBarToolStripMenuItem.Name = "statusBarToolStripMenuItem"; - this.statusBarToolStripMenuItem.Size = new System.Drawing.Size(153, 22); - this.statusBarToolStripMenuItem.Text = "상태 표시줄(&S)"; - this.statusBarToolStripMenuItem.Click += new System.EventHandler(this.StatusBarToolStripMenuItem_Click); - // - // toolsMenu - // - this.toolsMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.optionsToolStripMenuItem}); - this.toolsMenu.Name = "toolsMenu"; - this.toolsMenu.Size = new System.Drawing.Size(57, 20); - this.toolsMenu.Text = "도구(&T)"; - // - // optionsToolStripMenuItem - // - this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; - this.optionsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.optionsToolStripMenuItem.Text = "옵션(&O)"; - this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click); - // - // windowsMenu - // - this.windowsMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.newWindowToolStripMenuItem, - this.cascadeToolStripMenuItem, - this.tileVerticalToolStripMenuItem, - this.tileHorizontalToolStripMenuItem, - this.closeAllToolStripMenuItem, - this.arrangeIconsToolStripMenuItem}); - this.windowsMenu.Name = "windowsMenu"; - this.windowsMenu.Size = new System.Drawing.Size(50, 20); - this.windowsMenu.Text = "창(&W)"; - // - // newWindowToolStripMenuItem - // - this.newWindowToolStripMenuItem.Name = "newWindowToolStripMenuItem"; - this.newWindowToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.newWindowToolStripMenuItem.Text = "새 창(&N)"; - this.newWindowToolStripMenuItem.Click += new System.EventHandler(this.ShowNewForm); - // - // cascadeToolStripMenuItem - // - this.cascadeToolStripMenuItem.Name = "cascadeToolStripMenuItem"; - this.cascadeToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.cascadeToolStripMenuItem.Text = "계단식 배열(&C)"; - this.cascadeToolStripMenuItem.Click += new System.EventHandler(this.CascadeToolStripMenuItem_Click); - // - // tileVerticalToolStripMenuItem - // - this.tileVerticalToolStripMenuItem.Name = "tileVerticalToolStripMenuItem"; - this.tileVerticalToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.tileVerticalToolStripMenuItem.Text = "세로 바둑판식 배열(&V)"; - this.tileVerticalToolStripMenuItem.Click += new System.EventHandler(this.TileVerticalToolStripMenuItem_Click); - // - // tileHorizontalToolStripMenuItem - // - this.tileHorizontalToolStripMenuItem.Name = "tileHorizontalToolStripMenuItem"; - this.tileHorizontalToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.tileHorizontalToolStripMenuItem.Text = "가로 바둑판식 배열(&H)"; - this.tileHorizontalToolStripMenuItem.Click += new System.EventHandler(this.TileHorizontalToolStripMenuItem_Click); - // - // closeAllToolStripMenuItem - // - this.closeAllToolStripMenuItem.Name = "closeAllToolStripMenuItem"; - this.closeAllToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.closeAllToolStripMenuItem.Text = "모두 닫기(&L)"; - this.closeAllToolStripMenuItem.Click += new System.EventHandler(this.CloseAllToolStripMenuItem_Click); - // - // arrangeIconsToolStripMenuItem - // - this.arrangeIconsToolStripMenuItem.Name = "arrangeIconsToolStripMenuItem"; - this.arrangeIconsToolStripMenuItem.Size = new System.Drawing.Size(195, 22); - this.arrangeIconsToolStripMenuItem.Text = "아이콘 정렬(&A)"; - this.arrangeIconsToolStripMenuItem.Click += new System.EventHandler(this.ArrangeIconsToolStripMenuItem_Click); - // - // helpMenu - // - this.helpMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.contentsToolStripMenuItem, - this.indexToolStripMenuItem, - this.searchToolStripMenuItem, - this.toolStripSeparator8, - this.aboutToolStripMenuItem}); - this.helpMenu.Name = "helpMenu"; - this.helpMenu.Size = new System.Drawing.Size(72, 20); - this.helpMenu.Text = "도움말(&H)"; - // - // contentsToolStripMenuItem - // - this.contentsToolStripMenuItem.Name = "contentsToolStripMenuItem"; - this.contentsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F1))); - this.contentsToolStripMenuItem.Size = new System.Drawing.Size(161, 22); - this.contentsToolStripMenuItem.Text = "목차(&C)"; - // - // indexToolStripMenuItem - // - this.indexToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("indexToolStripMenuItem.Image"))); - this.indexToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.indexToolStripMenuItem.Name = "indexToolStripMenuItem"; - this.indexToolStripMenuItem.Size = new System.Drawing.Size(161, 22); - this.indexToolStripMenuItem.Text = "색인(&I)"; - // - // searchToolStripMenuItem - // - this.searchToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("searchToolStripMenuItem.Image"))); - this.searchToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Black; - this.searchToolStripMenuItem.Name = "searchToolStripMenuItem"; - this.searchToolStripMenuItem.Size = new System.Drawing.Size(161, 22); - this.searchToolStripMenuItem.Text = "검색(&S)"; - // - // toolStripSeparator8 - // - this.toolStripSeparator8.Name = "toolStripSeparator8"; - this.toolStripSeparator8.Size = new System.Drawing.Size(158, 6); - // - // aboutToolStripMenuItem - // - this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(161, 22); - this.aboutToolStripMenuItem.Text = "정보(&A)... ..."; - // - // toolStrip - // - this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.bt1, - this.bt2, - this.toolStripSeparator1, - this.bt3, - this.bt4, - this.bt5, - this.toolStripSeparator2, - this.bt6}); - this.toolStrip.Location = new System.Drawing.Point(0, 24); - this.toolStrip.Name = "toolStrip"; - this.toolStrip.Size = new System.Drawing.Size(709, 25); - this.toolStrip.TabIndex = 1; - this.toolStrip.Text = "ToolStrip"; - // - // bt1 - // - this.bt1.Image = ((System.Drawing.Image)(resources.GetObject("bt1.Image"))); - this.bt1.ImageTransparentColor = System.Drawing.Color.Black; - this.bt1.Name = "bt1"; - this.bt1.Size = new System.Drawing.Size(95, 22); - this.bt1.Text = "업무일지(일)"; - this.bt1.Click += new System.EventHandler(this.ShowNewForm); - // - // bt2 - // - this.bt2.Image = ((System.Drawing.Image)(resources.GetObject("bt2.Image"))); - this.bt2.ImageTransparentColor = System.Drawing.Color.Black; - this.bt2.Name = "bt2"; - this.bt2.Size = new System.Drawing.Size(95, 22); - this.bt2.Text = "업무일지(주)"; - this.bt2.Click += new System.EventHandler(this.OpenFile); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); - // - // bt3 - // - this.bt3.Image = ((System.Drawing.Image)(resources.GetObject("bt3.Image"))); - this.bt3.ImageTransparentColor = System.Drawing.Color.Black; - this.bt3.Name = "bt3"; - this.bt3.Size = new System.Drawing.Size(83, 22); - this.bt3.Text = "스케쥴(일)"; - this.bt3.Click += new System.EventHandler(this.saveToolStripButton_Click); - // - // bt4 - // - this.bt4.Image = ((System.Drawing.Image)(resources.GetObject("bt4.Image"))); - this.bt4.ImageTransparentColor = System.Drawing.Color.Black; - this.bt4.Name = "bt4"; - this.bt4.Size = new System.Drawing.Size(83, 22); - this.bt4.Text = "스케쥴(주)"; - this.bt4.Click += new System.EventHandler(this.printToolStripButton_Click); - // - // bt5 - // - this.bt5.Image = ((System.Drawing.Image)(resources.GetObject("bt5.Image"))); - this.bt5.ImageTransparentColor = System.Drawing.Color.Black; - this.bt5.Name = "bt5"; - this.bt5.Size = new System.Drawing.Size(107, 22); - this.bt5.Text = "스케쥴없음(주)"; - this.bt5.Click += new System.EventHandler(this.toolStripButton2_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); - // - // bt6 - // - this.bt6.Image = ((System.Drawing.Image)(resources.GetObject("bt6.Image"))); - this.bt6.ImageTransparentColor = System.Drawing.Color.Black; - this.bt6.Name = "bt6"; - this.bt6.Size = new System.Drawing.Size(111, 22); - this.bt6.Text = "메일생성및전송"; - this.bt6.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // statusStrip - // - this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripStatusLabel}); - this.statusStrip.Location = new System.Drawing.Point(0, 536); - this.statusStrip.Name = "statusStrip"; - this.statusStrip.Padding = new System.Windows.Forms.Padding(1, 0, 16, 0); - this.statusStrip.Size = new System.Drawing.Size(709, 22); - this.statusStrip.TabIndex = 2; - this.statusStrip.Text = "StatusStrip"; - // - // toolStripStatusLabel - // - this.toolStripStatusLabel.Name = "toolStripStatusLabel"; - this.toolStripStatusLabel.Size = new System.Drawing.Size(31, 17); - this.toolStripStatusLabel.Text = "상태"; - // - // MDIParent1 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(709, 558); - this.Controls.Add(this.statusStrip); - this.Controls.Add(this.toolStrip); - this.Controls.Add(this.menuStrip); - this.IsMdiContainer = true; - this.MainMenuStrip = this.menuStrip; - this.Name = "MDIParent1"; - this.Text = "MDIParent1"; - this.Load += new System.EventHandler(this.MDIParent1_Load); - this.menuStrip.ResumeLayout(false); - this.menuStrip.PerformLayout(); - this.toolStrip.ResumeLayout(false); - this.toolStrip.PerformLayout(); - this.statusStrip.ResumeLayout(false); - this.statusStrip.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - #endregion - - - private System.Windows.Forms.MenuStrip menuStrip; - private System.Windows.Forms.ToolStrip toolStrip; - private System.Windows.Forms.StatusStrip statusStrip; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; - private System.Windows.Forms.ToolStripMenuItem printSetupToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator8; - private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel; - private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem tileHorizontalToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem fileMenu; - private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem printToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem printPreviewToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem editMenu; - private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem viewMenu; - private System.Windows.Forms.ToolStripMenuItem toolBarToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem statusBarToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem toolsMenu; - private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem windowsMenu; - private System.Windows.Forms.ToolStripMenuItem newWindowToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem cascadeToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem tileVerticalToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem closeAllToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem arrangeIconsToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem helpMenu; - private System.Windows.Forms.ToolStripMenuItem contentsToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem indexToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem searchToolStripMenuItem; - private System.Windows.Forms.ToolStripButton bt1; - private System.Windows.Forms.ToolStripButton bt2; - private System.Windows.Forms.ToolStripButton bt3; - private System.Windows.Forms.ToolStripButton bt4; - private System.Windows.Forms.ToolTip toolTip; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripButton bt6; - private System.Windows.Forms.ToolStripButton bt5; - } -} - - - diff --git a/JobReportMailService/MDIParent1.cs b/JobReportMailService/MDIParent1.cs deleted file mode 100644 index 1e04102..0000000 --- a/JobReportMailService/MDIParent1.cs +++ /dev/null @@ -1,159 +0,0 @@ -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 JobReportMailService -{ - public partial class MDIParent1 : Form - { - private int childFormNumber = 0; - - public MDIParent1() - { - InitializeComponent(); - Pub.init(); - } - - private void ShowNewForm(object sender, EventArgs e) - { - Form childForm = new fJobReportDay(); - childForm.MdiParent = this; - //childForm.Text = "창 " + childFormNumber++; - childForm.Show(); - } - - private void OpenFile(object sender, EventArgs e) - { - Form childForm = new fJobReportWeek(); - childForm.MdiParent = this; - //childForm.Text = "창 " + childFormNumber++; - childForm.Show(); - } - - private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e) - { - SaveFileDialog saveFileDialog = new SaveFileDialog(); - saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal); - saveFileDialog.Filter = "텍스트 파일 (*.txt)|*.txt|모든 파일 (*.*)|*.*"; - if (saveFileDialog.ShowDialog(this) == DialogResult.OK) - { - string FileName = saveFileDialog.FileName; - } - } - - private void ExitToolsStripMenuItem_Click(object sender, EventArgs e) - { - this.Close(); - } - - private void CutToolStripMenuItem_Click(object sender, EventArgs e) - { - } - - private void CopyToolStripMenuItem_Click(object sender, EventArgs e) - { - } - - private void PasteToolStripMenuItem_Click(object sender, EventArgs e) - { - } - - private void ToolBarToolStripMenuItem_Click(object sender, EventArgs e) - { - toolStrip.Visible = toolBarToolStripMenuItem.Checked; - } - - private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e) - { - statusStrip.Visible = statusBarToolStripMenuItem.Checked; - } - - private void CascadeToolStripMenuItem_Click(object sender, EventArgs e) - { - LayoutMdi(MdiLayout.Cascade); - } - - private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e) - { - LayoutMdi(MdiLayout.TileVertical); - } - - private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e) - { - LayoutMdi(MdiLayout.TileHorizontal); - } - - private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e) - { - LayoutMdi(MdiLayout.ArrangeIcons); - } - - private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e) - { - foreach (Form childForm in MdiChildren) - { - childForm.Close(); - } - } - - private void saveToolStripButton_Click(object sender, EventArgs e) - { - Form childForm = new fScheduleDay(); - childForm.MdiParent = this; - //childForm.Text = "창 " + childFormNumber++; - childForm.Show(); - } - - private void printToolStripButton_Click(object sender, EventArgs e) - { - Form childForm = new fScheduleDayWeek(); - childForm.MdiParent = this; - //childForm.Text = "창 " + childFormNumber++; - childForm.Show(); - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - Form childForm = new fSendMail(); - childForm.MdiParent = this; - //childForm.Text = "창 " + childFormNumber++; - childForm.Show(); - - } - - private void toolStripButton2_Click(object sender, EventArgs e) - { - Form childForm = new fNoScheduleDayWeek(); - childForm.MdiParent = this; - //childForm.Text = "창 " + childFormNumber++; - childForm.Show(); - } - - private void MDIParent1_Load(object sender, EventArgs e) - { - this.Text = "mail service " + Application.ProductVersion.ToString(); - - if(Pub.setting.autoRun) - { - bt1.PerformClick(); - bt2.PerformClick(); - bt3.PerformClick(); - bt4.PerformClick(); - bt5.PerformClick(); - bt6.PerformClick(); - } - } - - private void optionsToolStripMenuItem_Click(object sender, EventArgs e) - { - var f = new fSetup(); - f.ShowDialog(); - } - } -} diff --git a/JobReportMailService/MDIParent1.resx b/JobReportMailService/MDIParent1.resx deleted file mode 100644 index 1c74706..0000000 --- a/JobReportMailService/MDIParent1.resx +++ /dev/null @@ -1,404 +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 - - - 17, 17 - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAELSURBVDhPrZDJasJQGIXzUvoO9TX0jcQuSulCLUUECwot - KtrSAbQWRDTg0CLBCY1xqmkcYo7c8ItJYy9Z+MHhLu453+IXzkbypY6/SeRriKXLiKaKZqh6Gjb4j+v4 - M7y+AF9y/yRS3UkomkbmvcaXxLMVqjsJhh/N8SE0sXP38El1J1t9Z0oOIprYiSQLVLdjGAZUbYOhopoC - z4X/tOAm8UoTO+uNjslcgzSY8wVXsTxNjug7Awt1jb68RFOa8AWXtxmaHdFWW8jTX7R7M1RbMl/APq2w - w81+VugMF6i3FZTEgXuB9XBfnSkqjRHeyl33AuvhxO8xitU+ch+SOwF7eeEK2Keb0OQcCMIe3/X1lqrb - NIsAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJYSURBVDhPvZFbSBNQHIf30ENPFmlRCEWWhD0MA0Oqh5Ck - m6KUZoWRJpS3LhiKbVPbvE53c+pKh7lN19RptTIMK4RCkQgtdZSYmgVFpZgZKnn7GptokkEP0R9+L+ec - 7zs/zhH8l8kpMSPTWriSbyJPZ0WiNDK/9XcTnawjLF7lhC6IKsh0yFKyDUQllyCoN2tYLo218j/ekiAp - JTxRRWh8oUvQ22VkcrTOmR8jFqaHDFhNKmzm7GUlYQlqQuO0BMcWI6irVDMxUr0Env1UyrQ9ieqKfKrK - cjGUZKIvzOC6UkyxPHWptMaoYOKLcQGec8D0isEeu2x+E9wsl/P9o34BbqpXOPPAWkCDRc6dqlyshiws - ehkm3VVuaNMoU4vRKUQuWZU+l7F3Rc7aAy1SbNVqZgdkMJi9NG8da/0S6EmGV4l01kZwKSYEgUGXxbe+ - fHiv5G6NiraHStehX6u/jIL2cGZag5h8FMCbSiHnTx9wCcq1Ur6+ljHYmo7NomSuXwrdcS6wM8YBnmCm - LYTJ5v2MNe5huH4HsnhvTgZ6uN6iVJ3OcJeIW2YFHU8dTXqSHIKz0HGKuWdHmHpyiPGmvYzY/Phc40N7 - zmoig7zw2+bmEugKxHQ3Z3DbXAB9GfDCUff5MaZaghl/HMBogz9DViEfjFuxK92Rxm7Bd7vn4k8U5aVS - Z8rHfi+Bdo1gIW3KFTTLV3I/cxW1aWsxpHpy7fImIg9vxt9346JAk52CRnqOPFE0kovHnQ9zJiKQowd3 - sW+3kJ1Cb3y8PNm4wYN1a9xY7z5f/d+MQPATMS7uX9kMtOAAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIvSURBVDhPrZLdS9NRGMd//0L33QRddFtTYzgXq8GvXENZ - Ngwrwl5+kWZpukwTFSvTqPkG2QqXTlqtJuGkIl/AFCkRZSpZmrmiJQ41xSaCwdfznP3yuIouogeem8P5 - fM55XqT/Es+fhUHpa11Ci3cRD93zaGoM4a5jGnW1X2C/FcD18kmUloyjsOAt8nJHcP6cHyouSQR2dQK1 - NSv4WyyvrMKU2oVDqU95qrgkeZ8scEFlxTf16u9BcGh+GbssL6DRKLAe9AiB+8EcF5SWfFWvR8dP+GNw - ATFmHwouTeGApVkInA0zXHDR9kFFRGyEhydC2CZ7kZM9huQkpxDU3w5yQdbZERWLxK9wnz+IzQY3FGUA - ZrNDCGqqP3OBcmpARf8Md/Z/wqb4Rhw+8gqJiXVCcKNyCh3tYKMEjh1/A+vRXt5tahjVTN+mlyNwN1Ks - LyHLdiG4UjaBNh/YDgDNrh9s7t9Rfm2WN5UaRjVnZvjX4f3JrTAaK4TgcuEYPI+A+85VtjhhmNKyo9KS - bkPamaIInMTgfR4YDGVCYMsbZTBQXRXmLxNE5zE6GYPvZzA6OQsl9yr2mFo4rNvtgl5fJAS0lo47WP82 - CQg+nX8T7wJzCEwv4kKxHbEGF4ObEJtwD7r4fCHIzBhidS9xeKvRgy07ZDxu64GvvQ8d3f3ofT2IvWYr - NPoGxDF4u7YeWm1OtODkiR6+nrRhtCQ0ZxoVdZsaRjXTq5QE74zLEoJ/D0laA2xoOmtG+TV7AAAAAElF - TkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIqSURBVDhPrZL7T1JxAMVZP/b/tLa2Wm21mail1YZlRjid - k6JhTApClhGmktrDWlKjK3OBDrLAMWJaY9MZZJbo0umWQIEFXRPQMB6ne788HFpbW322s93d3fM598X5 - 7xjtUxh0vId5dOaPMY14kL18O6zgrcePrWz8TMIbWMGgbQIlZy6DW31pu4Qts0ml0gjRETjdH0iGHC4Y - LONwz/hQJVITQbZSiN7qxsfPdHYzA7u8Go1jdnEZJruLLP92XWsaB5sks+4LhgvWbc5puDxeVDaocOSs - HBrtM9zps21KFJ1PSHnENZ9fzS0HwzHML4XRa3CglC+Dsqsfj0xjKGVEpNzUpof6/hAoyxs8MDqhf/4a - tyk7rt4yQtyiBb+xA+U1ChSfluLkuevo1lkhUWlRnHuMm49fIBKLk+WtJJIprMcT5E6+0uv49CUKeTuF - OmkXcweyjEB1zwzLq3d46nCDMr/E3b5hqHsGIGvXQdTcA8HFDvAaWnBUIEfRKQnOM+cqhdew/7goI1B2 - D8AfCGU3C4msbcAbXMVOcEh2UBzwxW0oqZZi1+GajKC504DpuSUw7ywPe/wtmsCcfw1jszQpW7OCY7UK - 7KsQbgqUGgqaXhN8oTjoWBqB72ksLqcwsfADw5NR9DtXSDGXQzwxKecF9ZJWyG7oMDrpJ9/2b1IgYJGo - HqKiTokywRVwmd+0qKoJB3mNOHDiAvaWC7GnrB67ubX5YkH53+BwfgHgHTGbZU7qDAAAAABJRU5ErkJg - gg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHXSURBVDhPrZDdS1NhAIf3z4RXXkRqEd5IoCaKROWc6YVN - XMQkMFToZjcpQaatoVuiq+UkTTrFWR/OyuWmNaGoYDLtIkHUKfOjSJxuc0/7OHObx4+bHvjxvhe/33MO - r+K/IDpn2B9hzMOQ/RtW21Q8UvVgYoPD6B3+SF5J3dGSF45pqS6ny2pndNJztGT43Q+pLsfw5G18nIw0 - yeTpmy9SPUUouMX45DjGRxZu39NzR99Ffpn6YEG/6JZmCba3txBHRnjvnMDnX2V+2Y9VEFFrm6jR3pJL - zIJLmiZwTLiwO5zxeygMfwO7LK2HMZifoarVyAU9Q2PxcpJus4XFFf/eePl3iNnFIDbXDJXV1XJB98Co - NE3QaexhYWUtMd4IR8c7uGcDPHzu5mJFhVwQe+l0BNGGaHfg24h+eSnI558BXn/dpKFFR2VVFfrWpkxJ - uiASifBrbo67nQb6Bl/x0uXFJLhpaNahVF1m8H4NoulGpiRdsBMMs/4ngMfr5YHRiOa6lqt19VxRXsBw - 8xy+x0XsfqrF0tGYkiQFsfOwtLa1c60sh++6XBZMBazZlDRrylOC3PPqY1NYcglN6Sk+tJyhvjgbVelp - +YMeR+wv8k9mUXz2RHSsUPwDd10kHqNu+GEAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGmSURBVDhPvZHdS5MBFMb3p3TX6E7c1BTHUIc2xUbEqGUz - LaV5s6ViRvhuul0M9lFshFjmjV/bKLVajRAid6N3KYg3FkHDiWvNmXt3++udDiMd4nthD5ybc57nx+Ec - xbkqGM0TfCcysSgyuyQSlioSFymOT5d/QaRQnjmR4VAO+1SOlx8PASUhnkiKmZXDQSH05E2erkCGBtsK - NV0xKu9EaRz8xlisBKDQGJ7aYeKziD0k8vRtHrN3G51tGc39RdS3X9Fgfc/l9lmM7gzTkq8Y/au+sW16 - nu/zYDzHTe8e1XejVHUsSOHwgdkwFKPsxiS6h5s4pnMnAZ3+JM0jaW759hkYT6NsDqBqCx0ZL2gFND1x - dANfcYRLAK45t6jo+86VkdTBJh3eHwiTv/4FWOLohSTOUoC6wQTa3g2qLcuo2j9QZnqNsuXZkbHCPE+t - ZQmD6ye20cRJwHEdv/RFfUBaf5Pu4C4+6b3F9tlVde8T191ZjMIXeWGzfxetdZWrriytj9a5ZHghD9D0 - OCGFf9PUv0a5KSJ/dZP01vr+DdRtc/LD/0EKxR+XdBDBXAMPDQAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGVSURBVDhPzZHdK0NhHMf3p7jBknbBNpqbc+FtttrUrBim - LEJeRo0lzMsK2S6M5D3vJjXFJinhZu64WolQu9FaXjrnuf56nrOl5kTIhW99L56e7/dzfuf3yP5MO+cE - /jOCLeqlY4KJgADnioDk9ddiZebFI4KBdQGD2wLcOwJ6VimEOhn7XKw8e0hQ4nxAXt0BNLYQuNYwbD4e - 9gUB9sUEZPOCgOuMSIEbpwTm0SeoLcsobAtAVbMrWm3dRz2FNM7yaKGQJZoraAqL0yarCbk2BBR13yKz - bALGvkPxUlXjR65lC9nGeVSMvYqTNM/xUFqD0glcfga4Q4bWizSu/z2grN6GXDcJx0IcFg8P3VAcioo1 - KWCYAnQDjzTsSwFMBQmY2Ze1QzGou+4h109LAR0zUZS748ip3E0BsIVp6D8rrSEoTOtiOb14XArw7BE0 - +J5R5Lihe5hMCUgW9pnM/Zcwjb4g33byvcJHZdFtG3ojMIy8gGu/Qq33+ecgBtE7r2F08yjtjf5uEiad - K4Yq+mzJ47+WTPYGxTcHtykTmrAAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGhSURBVDhPYyAG/AcCKJMwWLlp///ZyzbBNYA033nw9H91 - 6xTiDJk8d83/nmmL/1e1zgRr+Pb9x//Vm/b8T8mpIt4Vk2av/D95zmqQ5f+fvXjzPy2/5r+YEB8J3ti4 - 73/X5IX/T5y5+P/gsXP/w+KzSTNg4aod/7unLPrfO23h//LGvv8+QdHEawaBzokL/5c09P1Pzqv7Hxqb - +d/NO4g0A0AgIa/lf1hC4f+QtLb//gktxBsQ3fHuf0Tn6/8hzQ/+e5ed+u9Tfva/X9Xl/z6lp/+7Ze/E - b1BE+6v/kT3v/gc33PlvHT3vv2lQ33+3vH3//auv/ncFaraKmY/fgLD25//D2p7+d0zbANZsGtT737vk - 1H//yqv/nTI2/TcJ7sdvQGjLo/9Bjff+O6Vu+m8c0A02IABou2/F2f8WEdP+aztk4TcguOnef/+yS//t - ktf8N/SBBJx3yfH/dkmr/mvaJP+XkdfEb4Bf5cX/9kmrgbZ3/Vc3CwcnHvuUNf+1rBP+q5tH/Df2b8dv - gHPGlv9mIZP+a1jF/jf0qsGvmDqAgQEAkYXpGFtqYpEAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHgSURBVDhPvZHdS1pxGMfPn7IKieq63Y/RKw0aFF1ssEEv - dOVFXXUVFQ3Wlg4H2dSo7A21jnUiKiPFylwttMy9GXMNNgUrzinLrGN98zxaVgu7GOwLn5vf+X0/D8/v - MP8cbuEbJFiblzDMuDDAfcQbLYfklfSRyrejn3CirnUID0tr7peYrd5kLZHY2Tm6hudgcXjxrEF5v8Qw - 66aixQew64DHL+C9fhrskgDTAg+jnUffLA/V+B7xojNwUzjAOUkg5eQ0BuEgikAoTILbaR/ZQX6tg0jW - GUZnstPHXscpFDMCWtg/aOz3Y3h+l86vp0ETArciIK9qgiCBOr6vtPdRRMQOH8F2YB9f/LvQTQWp1MHG - CM/WPl4qgsitmkROxSiyywcTAmnf46h4NVmu86Fe/RnvjNskuIxwKGLr9zEcmwfQsGuQPelJCYRwFF9/ - huD+HoDT8wu2Tz/Q2pv4vc0jYcjVQTx/68PTtg1Cw65CVtqdEuSXVP9Fo2qDBGJ8vRAvYtN/BKtLgHlx - Dx9GncgqUqUe8q7UtK+Q4PrkS7pNy8gsUKQXVDbZETk5g27cBa15DZqxVZosldWGJWQ8fp1eUCS3xF/b - SGSX6yEr0yKruAuZhcp4uQMPHr1KL/hPYZgL78LfVeQiZg4AAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJXSURBVDhPtZJdSFNhHMYPdGE3RR/UVVcF0U0UEVQXGYWt - sNlikdii5SK2SckmS9tGas0cunRzadoW+THUprMSpUnREBqOvmdsRh8SOSPXsnY2N+eyeDrn3UaujCDo - gYcD73mf3/+Dl/ovcvZr4bihQW+LCrL8fUgez6+edgPmuqX2CIL+DkT8V+EbqUGJmANDpQKXdWoYK4uJ - k9GE2FCMtiEe6kYs2AlLkwLRyTaUSHh4MaTE2VNcKEWb4Xcew6R9NWTC/b8D2HA8ZEWj9ijcrhrQ7+sx - MaLGW9dx9Jl5kAgy0VG6Ck8NFAoO/zJSd1ttAkBfh65UiHJFHtSFuThTwIdCzINcxIVUkIU62RoCyMvO - TAd0NuswQ3dhJmBCdLwKgeeF8LYtJ/a0LoO7aREeGTNImHXWto3pAItJi+lAC6bHKhB9eRKRZwdB9y+G - vtWOKlMvzl3qglJngVxjhkRlhLCoOh3Q3KDBlM+IyIgYU4+5CN/fhI+3VpBwSvHZbwiGYhibCCJXeh45 - +eqfELO+DPSrCoQfchAeXI/QwEr4WilSmVXzTSexyeqAZ9RPwneHvNjDFyUgDdUqfB4+jZBjHejbSxGw - ZWD0GkXa/jr7HV/CTOUPQXje+OEafodsgRwcJrxr7wFkbt8Bqu5CMQIPpEx4CT71LMR4+wJ4GynImJnZ - tlMdXGE6qLcMoG/QS76st25YC+pieRF5IKktpyxmFja38j3XaxK23XHDan+SDtCXnWBeGA8i/m7k7NxC - frDbZmdOVZvPBPAnHWK2zV74m5PX/1UU9QOTNfjZ1V1+MwAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKWSURBVDhPjZJbSNNRHMf3HPRcYu+9Gb32VhAJ9RASlOBb - b2aIFop5GXPeyrmp8zLNec01HbmpqJvabjbndHl3JTmGbk7zroUXKD79N5XMFPzCjwMHPp9zzu/8ROdF - 3eChpGSc7OxBsrIcHG1fLCE4VBMT69TVz6J5P4NUekHRMexyrVOumsBqW+OjOUC/eR5tiwdJtvN80Wm4 - q3sZh+MnA9YdbNYt+vvW0esXaWqeFm409K/oNNzRGcRi3qKnZ5X2jmXaBLBVN09T4xwqlQe5fIycvKFD - wWlYbwiEQYMhSIt2gcZGLzU1s5SXT6NQjJKfP8KLZDMJz42caNhmGNa2zKPTLaB556O+bo6W9gCy1k1i - S/eJke0gqQkgL58k/pkRffvgoUDbOoVc4aauwcvb6q9UlnlQlkyh1gVJ0kKVFT4vCOWHevsvHuf5aTN7 - mPP7EIklNrS6SSRSO7LiYWRFo7wpdFPb7CVRA7phWFzaJqPAxL0n6vBqcO1yJ9FNodKF6GWKEd9yAJNl - jLT0PsRiW/jPc5tWUFkI5xgeGfOH19J6J1LNEnHxJkQZWRqKlb0sbQeZXxXeV2JBmmvnYcEGhrFDQSih - W4QEtx5UUtE8StPAARHXKxC9LhoSTu4XyojZMcXGwXeszi9EiwPoTwh2fuyH4ZQcE3MrQi8se1yJzP87 - B5IcO+mZfRSX2fAGF1B1LyLv3D3CwSmcLq9x4RXgKaGZyaUeomPU/09keqaZV4Koy/KNu8njdLkP2PsN - xk9+om4XM7MIFV1rXL6pJE9pOXukM8UWUtN6aWib4UasCXGtD61jj2brLkmKGS5FKUhI/cDAaOBswXFU - 1W6KlE7inrYTcS2Xq5EZ3H9UhUxlY2gyKMAi0R+3BHAuvd7mVQAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAALGSURBVDhPldL/T01xHMfx/hczs8VmmC/zg1i7oa6pOXVL - Jbrqlm5fbrluSqV7uynpdq/qtoh7C9Ei3eu0fBnKl6yFmSRkWF93VUZ2Q/Z0P2OuxmZe2/ntvB/nfD7v - V8Dvya2UEY+hwk2+VcZY28n+Cheph86jKWzm52t/T15VBwdtMs6ubq6+7EMe7sA5VESGnIRkOklirhN1 - XuPfkQMWGZNDprX/Mg8+PGFgdpScthIsL/JJuaRkg7mcGFMP0YYGEvQn5iN68bs2N3W9VjrGHdyc6qVv - pp8Br4eWERdJdjMK+1PW2NpYW6NGyqxkR1atHxFAsVPG/rCcmiE9jrc2nMNmah87ST3TgqZukpiK1yw9 - G8Hi06GsN6YTlVblB7LL2qlzv8EkW9h7fyuZvWHoHAZymnzHOn4Rk7UBQ3kl8dYUAqsVBJaFE6Ep9wMZ - 5jbqr8xSWF+P8qyCLXI06lor1Y0urnXdZszzjrfjHpoutBOXp2VBSQjKRJMf0Bpbsbq9HGjyEG9QE1q/ - G11TMZ03uhD5Ogcfvd8YnZrD1nCeddoINscX+IG9h1rIrHmF9vhnNNYhwnO1vnUeYWTC82t4/P1XBke+ - 4Op+RkRcLMHRBj+QUnSO1NJbJB77RIJlimjjHfaXmhiemPwxPD3nG/5Mz6CXutYetkmRBEk6PyAaJkqy - q+QBqsPjKIp6kYw62jtvMDbt+/LoF+4993K5b4Y0fQFh0k6K87P9gIhoWJzeSdTBOyzNNrNMF0uyLosT - zW7augewX+ghbV8BkartNFtiabenU2XKmY+IhqnSq9mUYSVYnYpSY0ZKLkTasYtwSUVM5DZsuo2MnVLw - 7W4CjqNZfyKiYaIkYs9iVeK2xYWJM8cog0kOW8GjgpUM24OYdEWyL2nrfOBfEUBS6HKu61ezJ2QJqtBV - /weICGTdskWErF3oGw4I+A4LpgTtu1iCBgAAAABJRU5ErkJggg== - - - - 126, 17 - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAELSURBVDhPrZDJasJQGIXzUvoO9TX0jcQuSulCLUUECwot - KtrSAbQWRDTg0CLBCY1xqmkcYo7c8ItJYy9Z+MHhLu453+IXzkbypY6/SeRriKXLiKaKZqh6Gjb4j+v4 - M7y+AF9y/yRS3UkomkbmvcaXxLMVqjsJhh/N8SE0sXP38El1J1t9Z0oOIprYiSQLVLdjGAZUbYOhopoC - z4X/tOAm8UoTO+uNjslcgzSY8wVXsTxNjug7Awt1jb68RFOa8AWXtxmaHdFWW8jTX7R7M1RbMl/APq2w - w81+VugMF6i3FZTEgXuB9XBfnSkqjRHeyl33AuvhxO8xitU+ch+SOwF7eeEK2Keb0OQcCMIe3/X1lqrb - NIsAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJYSURBVDhPvZFbSBNQHIf30ENPFmlRCEWWhD0MA0Oqh5Ck - m6KUZoWRJpS3LhiKbVPbvE53c+pKh7lN19RptTIMK4RCkQgtdZSYmgVFpZgZKnn7GptokkEP0R9+L+ec - 7zs/zhH8l8kpMSPTWriSbyJPZ0WiNDK/9XcTnawjLF7lhC6IKsh0yFKyDUQllyCoN2tYLo218j/ekiAp - JTxRRWh8oUvQ22VkcrTOmR8jFqaHDFhNKmzm7GUlYQlqQuO0BMcWI6irVDMxUr0Env1UyrQ9ieqKfKrK - cjGUZKIvzOC6UkyxPHWptMaoYOKLcQGec8D0isEeu2x+E9wsl/P9o34BbqpXOPPAWkCDRc6dqlyshiws - ehkm3VVuaNMoU4vRKUQuWZU+l7F3Rc7aAy1SbNVqZgdkMJi9NG8da/0S6EmGV4l01kZwKSYEgUGXxbe+ - fHiv5G6NiraHStehX6u/jIL2cGZag5h8FMCbSiHnTx9wCcq1Ur6+ljHYmo7NomSuXwrdcS6wM8YBnmCm - LYTJ5v2MNe5huH4HsnhvTgZ6uN6iVJ3OcJeIW2YFHU8dTXqSHIKz0HGKuWdHmHpyiPGmvYzY/Phc40N7 - zmoig7zw2+bmEugKxHQ3Z3DbXAB9GfDCUff5MaZaghl/HMBogz9DViEfjFuxK92Rxm7Bd7vn4k8U5aVS - Z8rHfi+Bdo1gIW3KFTTLV3I/cxW1aWsxpHpy7fImIg9vxt9346JAk52CRnqOPFE0kovHnQ9zJiKQowd3 - sW+3kJ1Cb3y8PNm4wYN1a9xY7z5f/d+MQPATMS7uX9kMtOAAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIvSURBVDhPrZLdS9NRGMd//0L33QRddFtTYzgXq8GvXENZ - Ngwrwl5+kWZpukwTFSvTqPkG2QqXTlqtJuGkIl/AFCkRZSpZmrmiJQ41xSaCwdfznP3yuIouogeem8P5 - fM55XqT/Es+fhUHpa11Ci3cRD93zaGoM4a5jGnW1X2C/FcD18kmUloyjsOAt8nJHcP6cHyouSQR2dQK1 - NSv4WyyvrMKU2oVDqU95qrgkeZ8scEFlxTf16u9BcGh+GbssL6DRKLAe9AiB+8EcF5SWfFWvR8dP+GNw - ATFmHwouTeGApVkInA0zXHDR9kFFRGyEhydC2CZ7kZM9huQkpxDU3w5yQdbZERWLxK9wnz+IzQY3FGUA - ZrNDCGqqP3OBcmpARf8Md/Z/wqb4Rhw+8gqJiXVCcKNyCh3tYKMEjh1/A+vRXt5tahjVTN+mlyNwN1Ks - LyHLdiG4UjaBNh/YDgDNrh9s7t9Rfm2WN5UaRjVnZvjX4f3JrTAaK4TgcuEYPI+A+85VtjhhmNKyo9KS - bkPamaIInMTgfR4YDGVCYMsbZTBQXRXmLxNE5zE6GYPvZzA6OQsl9yr2mFo4rNvtgl5fJAS0lo47WP82 - CQg+nX8T7wJzCEwv4kKxHbEGF4ObEJtwD7r4fCHIzBhidS9xeKvRgy07ZDxu64GvvQ8d3f3ofT2IvWYr - NPoGxDF4u7YeWm1OtODkiR6+nrRhtCQ0ZxoVdZsaRjXTq5QE74zLEoJ/D0laA2xoOmtG+TV7AAAAAElF - TkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIqSURBVDhPrZL7T1JxAMVZP/b/tLa2Wm21mail1YZlRjid - k6JhTApClhGmktrDWlKjK3OBDrLAMWJaY9MZZJbo0umWQIEFXRPQMB6ne788HFpbW322s93d3fM598X5 - 7xjtUxh0vId5dOaPMY14kL18O6zgrcePrWz8TMIbWMGgbQIlZy6DW31pu4Qts0ml0gjRETjdH0iGHC4Y - LONwz/hQJVITQbZSiN7qxsfPdHYzA7u8Go1jdnEZJruLLP92XWsaB5sks+4LhgvWbc5puDxeVDaocOSs - HBrtM9zps21KFJ1PSHnENZ9fzS0HwzHML4XRa3CglC+Dsqsfj0xjKGVEpNzUpof6/hAoyxs8MDqhf/4a - tyk7rt4yQtyiBb+xA+U1ChSfluLkuevo1lkhUWlRnHuMm49fIBKLk+WtJJIprMcT5E6+0uv49CUKeTuF - OmkXcweyjEB1zwzLq3d46nCDMr/E3b5hqHsGIGvXQdTcA8HFDvAaWnBUIEfRKQnOM+cqhdew/7goI1B2 - D8AfCGU3C4msbcAbXMVOcEh2UBzwxW0oqZZi1+GajKC504DpuSUw7ywPe/wtmsCcfw1jszQpW7OCY7UK - 7KsQbgqUGgqaXhN8oTjoWBqB72ksLqcwsfADw5NR9DtXSDGXQzwxKecF9ZJWyG7oMDrpJ9/2b1IgYJGo - HqKiTokywRVwmd+0qKoJB3mNOHDiAvaWC7GnrB67ubX5YkH53+BwfgHgHTGbZU7qDAAAAABJRU5ErkJg - gg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIqSURBVDhPrZL7T1JxAMVZP/b/tLa2Wm21mail1YZlRjid - k6JhTApClhGmktrDWlKjK3OBDrLAMWJaY9MZZJbo0umWQIEFXRPQMB6ne788HFpbW322s93d3fM598X5 - 7xjtUxh0vId5dOaPMY14kL18O6zgrcePrWz8TMIbWMGgbQIlZy6DW31pu4Qts0ml0gjRETjdH0iGHC4Y - LONwz/hQJVITQbZSiN7qxsfPdHYzA7u8Go1jdnEZJruLLP92XWsaB5sks+4LhgvWbc5puDxeVDaocOSs - HBrtM9zps21KFJ1PSHnENZ9fzS0HwzHML4XRa3CglC+Dsqsfj0xjKGVEpNzUpof6/hAoyxs8MDqhf/4a - tyk7rt4yQtyiBb+xA+U1ChSfluLkuevo1lkhUWlRnHuMm49fIBKLk+WtJJIprMcT5E6+0uv49CUKeTuF - OmkXcweyjEB1zwzLq3d46nCDMr/E3b5hqHsGIGvXQdTcA8HFDvAaWnBUIEfRKQnOM+cqhdew/7goI1B2 - D8AfCGU3C4msbcAbXMVOcEh2UBzwxW0oqZZi1+GajKC504DpuSUw7ywPe/wtmsCcfw1jszQpW7OCY7UK - 7KsQbgqUGgqaXhN8oTjoWBqB72ksLqcwsfADw5NR9DtXSDGXQzwxKecF9ZJWyG7oMDrpJ9/2b1IgYJGo - HqKiTokywRVwmd+0qKoJB3mNOHDiAvaWC7GnrB67ubX5YkH53+BwfgHgHTGbZU7qDAAAAABJRU5ErkJg - gg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIqSURBVDhPrZL7T1JxAMVZP/b/tLa2Wm21mail1YZlRjid - k6JhTApClhGmktrDWlKjK3OBDrLAMWJaY9MZZJbo0umWQIEFXRPQMB6ne788HFpbW322s93d3fM598X5 - 7xjtUxh0vId5dOaPMY14kL18O6zgrcePrWz8TMIbWMGgbQIlZy6DW31pu4Qts0ml0gjRETjdH0iGHC4Y - LONwz/hQJVITQbZSiN7qxsfPdHYzA7u8Go1jdnEZJruLLP92XWsaB5sks+4LhgvWbc5puDxeVDaocOSs - HBrtM9zps21KFJ1PSHnENZ9fzS0HwzHML4XRa3CglC+Dsqsfj0xjKGVEpNzUpof6/hAoyxs8MDqhf/4a - tyk7rt4yQtyiBb+xA+U1ChSfluLkuevo1lkhUWlRnHuMm49fIBKLk+WtJJIprMcT5E6+0uv49CUKeTuF - OmkXcweyjEB1zwzLq3d46nCDMr/E3b5hqHsGIGvXQdTcA8HFDvAaWnBUIEfRKQnOM+cqhdew/7goI1B2 - D8AfCGU3C4msbcAbXMVOcEh2UBzwxW0oqZZi1+GajKC504DpuSUw7ywPe/wtmsCcfw1jszQpW7OCY7UK - 7KsQbgqUGgqaXhN8oTjoWBqB72ksLqcwsfADw5NR9DtXSDGXQzwxKecF9ZJWyG7oMDrpJ9/2b1IgYJGo - HqKiTokywRVwmd+0qKoJB3mNOHDiAvaWC7GnrB67ubX5YkH53+BwfgHgHTGbZU7qDAAAAABJRU5ErkJg - gg== - - - - 225, 17 - - - 335, 17 - - - 51 - - \ No newline at end of file diff --git a/JobReportMailService/MailData.cs b/JobReportMailService/MailData.cs deleted file mode 100644 index 764542a..0000000 --- a/JobReportMailService/MailData.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class MailData - { - public int idx { get; set; } - public Nullable project { get; set; } - public string gcode { get; set; } - public string cate { get; set; } - public string pdate { get; set; } - public string subject { get; set; } - public string fromlist { get; set; } - public string tolist { get; set; } - public string bcc { get; set; } - public string cc { get; set; } - public string body { get; set; } - public Nullable SendOK { get; set; } - public string SendMsg { get; set; } - public Nullable aidx { get; set; } - public string atime { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/JobReportMailService/MailForm.cs b/JobReportMailService/MailForm.cs deleted file mode 100644 index be99cbf..0000000 --- a/JobReportMailService/MailForm.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class MailForm - { - public int idx { get; set; } - public string gcode { get; set; } - public string cate { get; set; } - public string title { get; set; } - public string tolist { get; set; } - public string bcc { get; set; } - public string cc { get; set; } - public string subject { get; set; } - public string tail { get; set; } - public string body { get; set; } - public Nullable selfTo { get; set; } - public Nullable selfCC { get; set; } - public Nullable selfBCC { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string exceptmail { get; set; } - public string exceptmailcc { get; set; } - } -} diff --git a/JobReportMailService/Model1.Context.cs b/JobReportMailService/Model1.Context.cs deleted file mode 100644 index e8f97ca..0000000 --- a/JobReportMailService/Model1.Context.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - 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 JobReport { get; set; } - public virtual DbSet MailData { get; set; } - public virtual DbSet vGroupUser { get; set; } - public virtual DbSet HolidayLIst { get; set; } - public virtual DbSet MailForm { get; set; } - public virtual DbSet EETGW_ProjectToDo { get; set; } - public virtual DbSet Projects { get; set; } - public virtual DbSet EETGW_ProjectsSchedule { get; set; } - public virtual DbSet vJobReportForUser { get; set; } - } -} diff --git a/JobReportMailService/Model1.Context.tt b/JobReportMailService/Model1.Context.tt deleted file mode 100644 index ba33bb5..0000000 --- a/JobReportMailService/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/JobReportMailService/Model1.Designer.cs b/JobReportMailService/Model1.Designer.cs deleted file mode 100644 index 90b3b83..0000000 --- a/JobReportMailService/Model1.Designer.cs +++ /dev/null @@ -1,10 +0,0 @@ -// 모델 'D:\Source\##### 완료아이템\(014) GroupWare\Source\JobReportMailService\Model1.edmx'에 대해 T4 코드 생성이 사용됩니다. -// 레거시 코드 생성을 사용하려면 '코드 생성 전략' 디자이너 속성의 값을 -// 'Legacy ObjectContext'로 변경하십시오. 이 속성은 모델이 디자이너에서 열릴 때 -// 속성 창에서 사용할 수 있습니다. - -// 컨텍스트 및 엔터티 클래스가 생성되지 않은 경우 빈 모델을 만들었기 때문일 수도 있지만 -// 사용할 Entity Framework 버전을 선택하지 않았기 때문일 수도 있습니다. 모델에 맞는 컨텍스트 클래스 및 -// 엔터티 클래스를 생성하려면 디자이너에서 모델을 열고 디자이너 화면에서 마우스 오른쪽 단추를 클릭한 -// 다음 '데이터베이스에서 모델 업데이트...', '모델에서 데이터베이스 생성...' 또는 '코드 생성 항목 추가...'를 -// 선택하십시오. \ No newline at end of file diff --git a/JobReportMailService/Model1.cs b/JobReportMailService/Model1.cs deleted file mode 100644 index 7a9ab12..0000000 --- a/JobReportMailService/Model1.cs +++ /dev/null @@ -1,9 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - diff --git a/JobReportMailService/Model1.edmx b/JobReportMailService/Model1.edmx deleted file mode 100644 index b092f70..0000000 --- a/JobReportMailService/Model1.edmx +++ /dev/null @@ -1,887 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT - [vGroupUser].[gcode] AS [gcode], - [vGroupUser].[dept] AS [dept], - [vGroupUser].[level] AS [level], - [vGroupUser].[name] AS [name], - [vGroupUser].[nameE] AS [nameE], - [vGroupUser].[grade] AS [grade], - [vGroupUser].[email] AS [email], - [vGroupUser].[tel] AS [tel], - [vGroupUser].[indate] AS [indate], - [vGroupUser].[outdate] AS [outdate], - [vGroupUser].[hp] AS [hp], - [vGroupUser].[place] AS [place], - [vGroupUser].[ads_employNo] AS [ads_employNo], - [vGroupUser].[ads_title] AS [ads_title], - [vGroupUser].[ads_created] AS [ads_created], - [vGroupUser].[memo] AS [memo], - [vGroupUser].[processs] AS [processs], - [vGroupUser].[id] AS [id], - [vGroupUser].[state] AS [state], - [vGroupUser].[useJobReport] AS [useJobReport], - [vGroupUser].[useUserState] AS [useUserState], - [vGroupUser].[password] AS [password] - FROM [dbo].[vGroupUser] AS [vGroupUser] - - - SELECT - [vJobReportForUser].[idx] AS [idx], - [vJobReportForUser].[pdate] AS [pdate], - [vJobReportForUser].[gcode] AS [gcode], - [vJobReportForUser].[id] AS [id], - [vJobReportForUser].[name] AS [name], - [vJobReportForUser].[process] AS [process], - [vJobReportForUser].[type] AS [type], - [vJobReportForUser].[svalue] AS [svalue], - [vJobReportForUser].[hrs] AS [hrs], - [vJobReportForUser].[ot] AS [ot], - [vJobReportForUser].[requestpart] AS [requestpart], - [vJobReportForUser].[package] AS [package], - [vJobReportForUser].[userProcess] AS [userProcess], - [vJobReportForUser].[status] AS [status], - [vJobReportForUser].[projectName] AS [projectName], - [vJobReportForUser].[description] AS [description], - [vJobReportForUser].[ww] AS [ww], - [vJobReportForUser].[otStart] AS [otStart], - [vJobReportForUser].[otEnd] AS [otEnd], - [vJobReportForUser].[ot2] AS [ot2], - [vJobReportForUser].[otReason] AS [otReason], - [vJobReportForUser].[grade] AS [grade], - [vJobReportForUser].[indate] AS [indate], - [vJobReportForUser].[outdate] AS [outdate] - FROM [dbo].[vJobReportForUser] AS [vJobReportForUser] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/JobReportMailService/Model1.edmx.diagram b/JobReportMailService/Model1.edmx.diagram deleted file mode 100644 index 3b5c557..0000000 --- a/JobReportMailService/Model1.edmx.diagram +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/JobReportMailService/Model1.tt b/JobReportMailService/Model1.tt deleted file mode 100644 index 985966b..0000000 --- a/JobReportMailService/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/JobReportMailService/Program.cs b/JobReportMailService/Program.cs deleted file mode 100644 index ce6e463..0000000 --- a/JobReportMailService/Program.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace JobReportMailService -{ - static class Program - { - /// - /// 해당 애플리케이션의 주 진입점입니다. - /// - [STAThread] - static void Main(string[] args) - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - - if (args != null && args.Length == 1 && args[0] == "DEBUG") - Pub.debugmode = true; - else - Pub.debugmode = false; - - Application.Run(new MDIParent1()); - } - } -} diff --git a/JobReportMailService/Program_bak.cs b/JobReportMailService/Program_bak.cs deleted file mode 100644 index f19e742..0000000 --- a/JobReportMailService/Program_bak.cs +++ /dev/null @@ -1,91 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using System.Data.SqlClient; -//using System.Linq; -//using System.Text; -//using System.Threading.Tasks; - -//namespace JobReportMailService -//{ -// partial class Program_bak -// { -// static CSetting setting = new CSetting(); -// static DateTime ChkAutoDate = DateTime.Now.AddDays(-1); -// static string vGcode = "EET1P"; -// static bool cn = false; -// static DateTime LastUpdateTime = DateTime.Now.AddHours(-1); -// static DateTime ConsoleTime = DateTime.Now.AddDays(-1); - - -// static void Main(string[] args) -// { -// setting = new CSetting(); -// setting.Load(); -// if (setting.Xml.Exist() == false) -// { -// Console.WriteLine("new setting file make"); -// setting.Save(); -// } - - -// while (true) -// { -// //등록된 날짜를 확인하여, 해당 일자가 일반 평일 이라면 8시간 체크해서 메일을 보낸다. -// //등록된 날짜가 토,일은 제외한다. - -// var ts = DateTime.Now - LastUpdateTime; -// if (ts.TotalMinutes <= 15) -// { -// //15분 미만이면 동작하지 않는다 -// if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) -// { -// Console.WriteLine("15분 미만이라 동작하지 않습니다"); -// ConsoleTime = DateTime.Now; -// } -// } -// else if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday || DateTime.Now.DayOfWeek == DayOfWeek.Sunday) -// { -// //토,일요일에는 동작하지 않는다 -// if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) -// { -// Console.WriteLine("토/일에는 동작하지 않습니다"); -// ConsoleTime = DateTime.Now; -// } -// } -// else if (DateTime.Now.Hour < 9) -// { -// if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) -// { -// Console.WriteLine("9시 이전에는 동작하지 않습니다"); -// ConsoleTime = DateTime.Now; -// } -// } -// else -// { -// LastUpdateTime = DateTime.Now; -// try -// { -// WorkDay(); -// } -// catch (Exception ex) -// { -// Console.WriteLine("일간업무알림 실패: " + ex.Message); -// } - -// try -// { -// WorkWeek(); -// } -// catch (Exception ex) -// { -// Console.WriteLine("주간업무알림 실패: " + ex.Message); -// } -// } - -// System.Threading.Thread.Sleep(60000); //1분단위로 체크한다 -// } -// } - - -// } -//} diff --git a/JobReportMailService/Projects.cs b/JobReportMailService/Projects.cs deleted file mode 100644 index 01731e4..0000000 --- a/JobReportMailService/Projects.cs +++ /dev/null @@ -1,73 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class Projects - { - public int idx { get; set; } - public Nullable pidx { get; set; } - public string gcode { get; set; } - public Nullable isdel { get; set; } - public string category { get; set; } - public string status { get; set; } - public string asset { get; set; } - public Nullable level { get; set; } - public Nullable rev { get; set; } - public string process { get; set; } - public string part { get; set; } - public string pdate { get; set; } - public string name { get; set; } - public string userManager { get; set; } - public string usermain { get; set; } - public string usersub { get; set; } - public string userhw2 { get; set; } - public string reqstaff { get; set; } - public Nullable costo { get; set; } - public Nullable costn { get; set; } - public Nullable cnt { get; set; } - public string remark_req { get; set; } - public string remark_ans { get; set; } - public string sdate { get; set; } - public string ddate { get; set; } - public string edate { get; set; } - public string odate { get; set; } - public Nullable progress { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string orderno { get; set; } - public string crdue { get; set; } - public Nullable import { get; set; } - public string path { get; set; } - public string userprocess { get; set; } - public string CMP_Background { get; set; } - public string CMP_Description { get; set; } - public string CMP_Before { get; set; } - public string CMP_After { get; set; } - public Nullable bCost { get; set; } - public Nullable bFanOut { get; set; } - public string div { get; set; } - public string EB_Site { get; set; } - public string EB_Line { get; set; } - public string EB_Team { get; set; } - public string EB_Model { get; set; } - public string EB_OutSourceName { get; set; } - public Nullable EB_RepairTime { get; set; } - public Nullable EB_ConstNew { get; set; } - public string EB_BoardName { get; set; } - public string CMP_After2 { get; set; } - public string model { get; set; } - public string serial { get; set; } - public Nullable bAlert { get; set; } - } -} diff --git a/JobReportMailService/Properties/AssemblyInfo.cs b/JobReportMailService/Properties/AssemblyInfo.cs deleted file mode 100644 index 23a85e0..0000000 --- a/JobReportMailService/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 -// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 -// 이러한 특성 값을 변경하세요. -[assembly: AssemblyTitle("JobReportMailService")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("JobReportMailService")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 -// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 -// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. -[assembly: ComVisible(false)] - -// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. -[assembly: Guid("dbe5bd4a-09d3-4437-ad6c-81fe270c6458")] - -// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. -// -// 주 버전 -// 부 버전 -// 빌드 번호 -// 수정 버전 -// -// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 -// 기본값으로 할 수 있습니다. -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("22.05.30.0920")] -[assembly: AssemblyFileVersion("22.05.30.0920")] diff --git a/JobReportMailService/Properties/Settings.Designer.cs b/JobReportMailService/Properties/Settings.Designer.cs deleted file mode 100644 index 92e9a17..0000000 --- a/JobReportMailService/Properties/Settings.Designer.cs +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 도구를 사용하여 생성되었습니다. -// 런타임 버전:4.0.30319.42000 -// -// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 -// 이러한 변경 내용이 손실됩니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.ApplicationScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] - [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + - "user;Password=Amkor123!")] - public string CS { - get { - return ((string)(this["CS"])); - } - } - } -} diff --git a/JobReportMailService/Properties/Settings.settings b/JobReportMailService/Properties/Settings.settings deleted file mode 100644 index 54ae0f3..0000000 --- a/JobReportMailService/Properties/Settings.settings +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - <?xml version="1.0" encoding="utf-16"?> -<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <ConnectionString>Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!</ConnectionString> - <ProviderName>System.Data.SqlClient</ProviderName> -</SerializableConnectionString> - Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123! - - - \ No newline at end of file diff --git a/JobReportMailService/Pub.cs b/JobReportMailService/Pub.cs deleted file mode 100644 index 0dbe1f0..0000000 --- a/JobReportMailService/Pub.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace JobReportMailService -{ - public static class Pub - { - // public static string vGcode = "EET1P"; - public static CSetting setting; - public static Boolean debugmode = false; - - public static string MailSort(string addr, string except) - { - if (string.IsNullOrEmpty(except)) return addr; - var alist = addr.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList(); - var elist = except.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList(); - foreach (var item in elist) - alist.Remove(item); - if (alist.Count < 1) return string.Empty; - return string.Join(";", alist); - } - public static void init() - { - setting = new CSetting(); - setting.Load(); - } - } -} diff --git a/JobReportMailService/ReadMe.txt b/JobReportMailService/ReadMe.txt deleted file mode 100644 index 24e05dd..0000000 --- a/JobReportMailService/ReadMe.txt +++ /dev/null @@ -1 +0,0 @@ -200607 EETGW_GroupUser 에 업무일지 미사용 체크된 인원은 sendmail 에서 제외하게 변경 \ No newline at end of file diff --git a/JobReportMailService/ReportUserData.cs b/JobReportMailService/ReportUserData.cs deleted file mode 100644 index 91f0df4..0000000 --- a/JobReportMailService/ReportUserData.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace JobReportMailService -{ - public class ReportUserData - { - public DateTime date { get; set; } - public string uid { get; set; } - public string uname { get; set; } - public double hrs { get; set; } - } -} diff --git a/JobReportMailService/fChildBase.Designer.cs b/JobReportMailService/fChildBase.Designer.cs deleted file mode 100644 index e068c65..0000000 --- a/JobReportMailService/fChildBase.Designer.cs +++ /dev/null @@ -1,69 +0,0 @@ - -namespace JobReportMailService -{ - partial class fChildBase - { - /// - /// 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.components = new System.ComponentModel.Container(); - this.richTextBox1 = new System.Windows.Forms.RichTextBox(); - this.timer1 = new System.Windows.Forms.Timer(this.components); - this.SuspendLayout(); - // - // richTextBox1 - // - this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; - this.richTextBox1.Location = new System.Drawing.Point(0, 0); - this.richTextBox1.Name = "richTextBox1"; - this.richTextBox1.Size = new System.Drawing.Size(704, 491); - this.richTextBox1.TabIndex = 1; - this.richTextBox1.Text = ""; - // - // timer1 - // - this.timer1.Interval = 250; - // - // fChildBase - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(704, 491); - this.Controls.Add(this.richTextBox1); - this.Name = "fChildBase"; - this.Text = "fChildBase"; - this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.fChildBase_FormClosed); - this.Load += new System.EventHandler(this.fChildBase_Load); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.RichTextBox richTextBox1; - protected System.Windows.Forms.Timer timer1; - } -} \ No newline at end of file diff --git a/JobReportMailService/fChildBase.cs b/JobReportMailService/fChildBase.cs deleted file mode 100644 index 534ab88..0000000 --- a/JobReportMailService/fChildBase.cs +++ /dev/null @@ -1,69 +0,0 @@ -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 JobReportMailService -{ - public partial class fChildBase : Form - { - protected Boolean taskrun = true; - protected DateTime ChkMakeSchDayWeekTime; - protected DateTime ConsoleTime; - protected Task task = null; - protected int Delaytime = 60000; - protected Boolean taskwait = true; - - public fChildBase() - { - InitializeComponent(); - ChkMakeSchDayWeekTime = DateTime.Now.AddDays(-1); - ConsoleTime = ChkMakeSchDayWeekTime; - } - - private void fChildBase_Load(object sender, EventArgs e) - { - //taskwait = Pub.debugmode; - } - - protected void addmsg(string m) - { - if (this.richTextBox1.InvokeRequired) - { - this.richTextBox1.BeginInvoke(new Action(() => - { - if (this.richTextBox1.Lines.Length > 1000) this.richTextBox1.Clear(); - this.richTextBox1.AppendText(DateTime.Now.ToString("HH:mm:ss.fff") + "] " + m + "\n"); - this.richTextBox1.ScrollToCaret(); - })); - return; - } - if (this.richTextBox1.Lines.Length > 1000) this.richTextBox1.Clear(); - this.richTextBox1.AppendText(DateTime.Now.ToString("HH:mm:ss.fff") + "] " + m + "\n"); - this.richTextBox1.ScrollToCaret(); - } - - private void fChildBase_FormClosed(object sender, FormClosedEventArgs e) - { - if(this.task != null) - { - taskwait = true; - taskrun = false; - task.Wait(1000); - try - { - task.Dispose(); - } - catch (Exception ex) - { - - } - } - } - } -} diff --git a/JobReportMailService/fChildBase.resx b/JobReportMailService/fChildBase.resx deleted file mode 100644 index aac33d5..0000000 --- a/JobReportMailService/fChildBase.resx +++ /dev/null @@ -1,123 +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 - - - 17, 17 - - \ No newline at end of file diff --git a/JobReportMailService/fJobReportDay.Designer.cs b/JobReportMailService/fJobReportDay.Designer.cs deleted file mode 100644 index 66d9b87..0000000 --- a/JobReportMailService/fJobReportDay.Designer.cs +++ /dev/null @@ -1,95 +0,0 @@ - -namespace JobReportMailService -{ - partial class fJobReportDay - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fJobReportDay)); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.btRun = new System.Windows.Forms.ToolStripButton(); - this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); - this.toolStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // timer1 - // - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.btRun, - this.toolStripButton1}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(473, 25); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // btRun - // - this.btRun.Image = ((System.Drawing.Image)(resources.GetObject("btRun.Image"))); - this.btRun.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btRun.Name = "btRun"; - this.btRun.Size = new System.Drawing.Size(48, 22); - this.btRun.Text = "Run"; - this.btRun.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // 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(67, 22); - this.toolStripButton1.Text = "manual"; - this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1); - // - // fJobReportDay - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(473, 416); - this.Controls.Add(this.toolStrip1); - this.Name = "fJobReportDay"; - this.Text = "업무일지(일보고)"; - this.Load += new System.EventHandler(this.fJobReportDay_Load); - this.Controls.SetChildIndex(this.toolStrip1, 0); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton btRun; - private System.Windows.Forms.ToolStripButton toolStripButton1; - } -} \ No newline at end of file diff --git a/JobReportMailService/fJobReportDay.cs b/JobReportMailService/fJobReportDay.cs deleted file mode 100644 index 5581c5d..0000000 --- a/JobReportMailService/fJobReportDay.cs +++ /dev/null @@ -1,454 +0,0 @@ -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 JobReportMailService -{ - public partial class fJobReportDay : fChildBase - { - - public fJobReportDay() - { - InitializeComponent(); - } - - private void fJobReportDay_Load(object sender, EventArgs e) - { - - task = Task.Run(() => - { - while (taskrun) - { - if (taskwait) - { - task.Wait(1000); - continue; - } - - var ts = DateTime.Now - ChkMakeSchDayWeekTime; - if (ts.TotalMinutes <= 15) - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("15분 미만이라 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday || - DateTime.Now.DayOfWeek == DayOfWeek.Sunday || - DateTime.Now.DayOfWeek == DayOfWeek.Monday) - { - //토,일요일에는 동작하지 않는다 - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("토/일/월에는 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.Hour < 9) - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("9시 이전에는 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else - { - ChkMakeSchDayWeekTime = DateTime.Now; - try - { - RunData(); - } - catch (Exception ex) - { - - - addmsg(ex.Message); - - using(var ta = new DataSet1TableAdapters.MailDataTableAdapter()) - { - using (var dt = new DataSet1.MailDataDataTable()) - { - var newdr = dt.NewMailDataRow(); - newdr.gcode = "EET1P"; - newdr.cate = "ER"; - newdr.subject = "[ERROR] 업무일지 메일작성 실패"; - newdr.fromlist = "chikyun.kim@amkor.co.kr"; - newdr.tolist = "chikyun.kim@amkor.co.kr"; - newdr.bcc = string.Empty; - newdr.cc = string.Empty; - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = ex.Message; - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = ta.Update(dt); - } - } - - task.Wait(5000); - } - } - Task.Delay(Delaytime).Wait(); - } - - }); - timer1.Start(); - - if (Pub.setting.autoRunData) - btRun.PerformClick(); - } - - void RunData() - { - addmsg("업무일지 미 작성자 추출 작업을 시작 합니다"); - - - //var db = new EEEntities(); - - //기준일자는 오늘부터 -15일이다 - //var basedate = new DateTime(2022, 05, 20);// DateTime.Now; - var basedate = DateTime.Now; - var sd = basedate.AddDays(-15); - var ed = basedate.AddDays(-1); - var str_sd = sd.ToShortDateString(); - var str_ed = ed.ToShortDateString(); - var str_dt = basedate.ToShortDateString(); - - - var taMailForm = new DataSet1TableAdapters.MailFormTableAdapter(); - var taMailData = new DataSet1TableAdapters.MailDataTableAdapter(); - var taJobReportUserList = new DataSet1TableAdapters.vJobReportUserListTableAdapter(); - var taJobReport = new DataSet1TableAdapters.JobReportTableAdapter(); - var taHolidayList = new DataSet1TableAdapters.HolidayLIstTableAdapter(); - var taGroupUser = new DataSet1TableAdapters.vGroupUserTableAdapter(); - var taJobReportDateList = new DataSet1TableAdapters.JobReportDateListTableAdapter(); - - var dtMailForm = new DataSet1.MailFormDataTable(); - var dtMailData = new DataSet1.MailDataDataTable(); - var dtDateList = new DataSet1.JobReportDateListDataTable(); - - taMailForm.Fill(dtMailForm); - - - - - var gcodelist = dtMailForm.GroupBy(t => t.gcode).Select(t => t.Key).ToList(); - //gcodelist = new List(); - //gcodelist.Add("EETK5"); - - foreach (var gcodedata in gcodelist) - { - //메일양식이 지정되어있는지 체크 - var vGcode = gcodedata; - if (string.IsNullOrEmpty(vGcode)) continue; - - if (vGcode.Contains("K5") == false) continue; - - - var MailJD = dtMailForm.Where(t => t.gcode == vGcode & t.cate == "JD").FirstOrDefault(); - if (MailJD == null) - { - addmsg($"[{vGcode}]업무일지 미작성 메일 양식이 입력되지 않았습니다"); - continue; - } - if (MailJD.exceptmail == null) MailJD.exceptmail = string.Empty; - if (MailJD.exceptmailcc == null) MailJD.exceptmailcc = string.Empty; - - - //오늘날짜로 주간 데이터가 등록되어있느지 확인한다. - // db.MailData.Where(t => t.gcode == vGcode && t.cate == "JD" && t.pdate == str_dt).Any(); - var Existweek = taMailData.GetDataExistDay(vGcode, "JD", str_dt).Any(); - if (Existweek) - { - addmsg($"[{vGcode}] 업무일지(일간({str_dt}) 보고 메일이 이미 등록되어 있습니다"); - continue; - } - - List NoMailList = new List(); - NoMailList.Add($"그룹\t사번\t성명\t경고일"); - - //대상 사용자 목록을 추출한다; - var users = taJobReportUserList.GetData(vGcode); - //var users = db.vJobReportForUser.Where(t => t.gcode == vGcode).GroupBy(t => t.id); - - Dictionary uids = new Dictionary(); - foreach (var userinfo in users) - { - //해당 사용자의 오늘 날짜로 등록된 자동 데이터가 있다면 대상에 넣지 않는다 - //var userinfo = user.FirstOrDefault(); - if (userinfo == null || string.IsNullOrEmpty(userinfo.id) == true) continue; - - //퇴사자 확인 - var 퇴사일자 = userinfo.outdate; - if (string.IsNullOrEmpty(퇴사일자) == false) - { - //퇴사자 - if (퇴사일자.CompareTo(str_dt) < 1) continue; - } - - var Exists = taMailData.GetDataByUserData(vGcode, userinfo.id, str_dt, "JD").Any(); - // db.MailData.Where(t => t.gcode == vGcode && t.wuid == userinfo.id && t.pdate == str_dt && t.cate == "JD").Any(); - if (Exists == false) uids.Add(userinfo.id, userinfo.name); //자동생성된 자료가 없는 경우에만 처리한다 - } - - addmsg($"[{vGcode}] {uids.Count} 명의 전체 사용자가 확인 되었습니다"); - - //먼저 날짜목록을 가져온다 - dtDateList = taJobReportDateList.GetData(vGcode, str_sd, str_ed);// - //db = new EEEntities(); - //var lstDate = db.JobReport - // .Where(t => t.gcode == vGcode && t.pdate.CompareTo(str_sd) >= 0 && t.pdate.CompareTo(str_ed) < 0) - // .OrderBy(t => t.pdate) - // .GroupBy(t => t.pdate).ToList(); - - //날짜대로 루프를 돈다 - List days = new List(); - foreach (var jobdata in dtDateList) - { - // var jobdata = dateitem.FirstOrDefault(); - var dt = DateTime.Parse(jobdata.pdate); - if (dt.DayOfWeek == DayOfWeek.Sunday || dt.DayOfWeek == DayOfWeek.Saturday) continue; - - //이 날짜가 휴일인지 체크한다. - //db = new EEEntities(); - var Holyinfo = taHolidayList.GetData(jobdata.pdate).FirstOrDefault(); - // db.HolidayLIst.Where(t => t.pdate == jobdata.pdate).FirstOrDefault(); - if (Holyinfo != null && Holyinfo.free == true) continue; - - //이날짜에는 8시간을 근무 해야 한다 - days.Add(DateTime.Parse(jobdata.pdate)); - } - addmsg($"[{vGcode}] {days.Count} 건의 일자가 확인 되었습니다(기간:{str_sd}~{str_ed}"); - - //사용자 목록과 날짜 목록을 모두 수집했다 - List totWarnList = new List(); - foreach (var uid in uids) - { - if (uid.Key == "71188") - Console.WriteLine("테스트"); - - //이사용자의 날짜별 근무시간을 확인한다. - //db = new EEEntities(); - var UserDatas = taJobReport.GetUserDates(vGcode, uid.Key, str_sd, str_ed); - // db.JobReport.Where(t => t.gcode == vGcode && t.uid == uid.Key && t.pdate.CompareTo(str_sd) >= 0 && t.pdate.CompareTo(str_ed) < 0).ToList(); - - Dictionary WarnList = new Dictionary(); - foreach (var dt in days.OrderBy(t => t)) - { - var dtstr = dt.ToShortDateString(); - var userdata = UserDatas.Where(t => t.pdate == dtstr); //해당날짜의 데이터를 확인한다. - var hrs = 0.0; - if (userdata.Any()) hrs = (double)userdata.Sum(t => t.hrs); - //else continue; //동작하지 않게함. - - //자료를 입력하지 않았거나, 입력시간이 8시간 미만이면 경고한다 - if (hrs < 8.0) - { - WarnList.Add(dt, hrs); - totWarnList.Add(new ReportUserData { date = dt, hrs = hrs, uid = uid.Key, uname = uid.Value }); //전체알림시에 사용하는 목록 - } - } - - if (WarnList.Count > 0) - { - addmsg($"[{vGcode}] {uid.Value}({uid.Key}) 의 경고 일수는 {WarnList.Count} 건 입니다"); - - //db = new EEEntities(); - var userinfo = taGroupUser.GetData(vGcode, uid.Key).FirstOrDefault(); - // db.vGroupUser.Where(t => t.gcode == vGcode && t.id == uid.Key).FirstOrDefault(); - if (userinfo == null) - { - addmsg($"[{vGcode}] {uid.Value}({uid.Key}) 의 사용자 정보를 확인 할 수 없습니다"); - } - else if (string.IsNullOrEmpty(userinfo.email)) - { - NoMailList.Add($"{vGcode}\t{uid.Key}\t{uid.Value}\t{WarnList.Count}"); - addmsg($"[{vGcode}] {uid.Value}({uid.Key}) 의 메일 정보가 존재하지 않습니다"); - } - else - { - //일별경고(월요일제외) - - if (DateTime.Now.DayOfWeek != DayOfWeek.Monday && MailJD != null) - { - var mail_subject = MailJD.subject.Replace("{담당자}", userinfo.name).Replace("{사번}", userinfo.id); - var mail_to = MailJD.tolist.Replace("{담당자}", userinfo.email); - var mail_cc = string.Empty; // - if (MailJD.cc != null) mail_cc = MailJD.cc.Replace("{담당자}", userinfo.email); - var mail_bcc = string.Empty; - if (MailJD.bcc != null) mail_bcc = MailJD.bcc.Replace("{담당자}", userinfo.email); - var mail_body = MailJD.body.Replace("{담당자}", userinfo.name); - mail_body = mail_body.Replace("{사번}", userinfo.id); - - //메일본문을 생성해서 진행해야함 - var mail_content = "

일자별 정보

"; - mail_content += $"
조회기간 : {str_sd}~{str_ed}"; - mail_content += "
"; - foreach (var warnitem in WarnList) - { - mail_content += $""; - } - mail_content += "
날짜요일시간
{warnitem.Key.ToShortDateString()}{warnitem.Key.DayOfWeek.ToString()}{warnitem.Value.ToString()}
"; - - //메일데이터를 생성한다. - //mail_to = "chikyun.kim@amkor.co.kr"; - //mail_bcc = string.Empty; - //mail_cc = string.Empty; - - mail_to = Pub.MailSort(mail_to, MailJD.exceptmail); - if (string.IsNullOrEmpty(mail_to) == false) - { - //db = new EEEntities(); - using (var dt = new DataSet1.MailDataDataTable()) - { - var newdr = dt.NewMailDataRow(); - newdr.gcode = vGcode; - newdr.cate = "JD"; - newdr.subject = mail_subject; - newdr.fromlist = userinfo.email; - newdr.tolist = Pub.MailSort(mail_to, MailJD.exceptmail); - newdr.bcc = mail_bcc; - newdr.cc = Pub.MailSort(mail_cc, MailJD.exceptmailcc); - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = mail_body.Replace("{내용}", mail_content); - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = taMailData.Update(dt); - - if (cnt == 1) - { - addmsg($"[{vGcode}] {userinfo.name}({userinfo.email}) 메일 생성 완료(day)"); - System.Threading.Thread.Sleep(10000); - } - - } - - - //taMailData.Insert() - //db.MailData.Add(new MailData - //{ - // gcode = vGcode, - // cate = "JD", - // subject = mail_subject, - // fromlist = userinfo.email, - // tolist = Pub.MailSort(mail_to, MailJD.exceptmail), - // bcc = mail_bcc, - // cc = Pub.MailSort(mail_cc, MailJD.exceptmailcc), - // pdate = DateTime.Now.ToShortDateString(), - // body = mail_body.Replace("{내용}", mail_content), - // wuid = "dev", - // wdate = DateTime.Now, - //}); - //db.SaveChanges(); - - } - else - { - addmsg($"[{vGcode}] 받는사람이 소거되어 메일을 생성하지 않습니다"); - } - } - } - System.Threading.Thread.Sleep(3000); - } - else - { - addmsg($"[{vGcode}] {uid.Value}({uid.Key}) 미 작성 일자가 없습니다"); - } - - } - - - //첫줄은 제목이므로 2줄이상 있어야 한다 - if (NoMailList.Count > 1) - { - using (var dt = new DataSet1.MailDataDataTable()) - { - var newdr = dt.NewMailDataRow(); - newdr.gcode = "EET1P"; - newdr.cate = "ERR"; - newdr.subject = $"[GW] {vGcode} - 업무일지 담당자 이메일 경고"; - newdr.fromlist = "chikyun.kim@amkor.co.kr"; - newdr.tolist = "chikyun.kim@amkor.co.kr"; - newdr.bcc = string.Empty; - newdr.cc = string.Empty; - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = string.Join("
", NoMailList.ToList()); - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = taMailData.Update(dt); - if (cnt == 1) - { - addmsg($"업무일지 메일없는 대상자 생성 완료(day)"); - System.Threading.Thread.Sleep(10000); - } - } - } - - - System.Threading.Thread.Sleep(500); - } - - - - dtMailForm.Dispose(); - dtMailData.Dispose(); - dtDateList.Dispose(); - - - - - taMailForm.Dispose();// = new DataSet1TableAdapters.MailFormTableAdapter(); - taMailData.Dispose();// = new DataSet1TableAdapters.MailDataTableAdapter(); - taJobReportUserList.Dispose();// = new DataSet1TableAdapters.vJobReportUserListTableAdapter(); - taJobReport.Dispose();// = new DataSet1TableAdapters.JobReportTableAdapter(); - taHolidayList.Dispose();// = new DataSet1TableAdapters.HolidayLIstTableAdapter(); - taGroupUser.Dispose();// = new DataSet1TableAdapters.vGroupUserTableAdapter(); - taJobReportDateList.Dispose(); - - - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - taskwait = !taskwait; - if (taskwait == false) - ChkMakeSchDayWeekTime = DateTime.Now.AddHours(-1); - } - - private void timer1_Tick(object sender, EventArgs e) - { - if (task != null) - { - if (task.IsCompleted) this.btRun.Text = "완료"; - else if (task.IsCanceled) this.btRun.Text = "취소"; - else if (taskwait) this.btRun.Text = "대기상태"; - else this.btRun.Text = "가동중"; - this.btRun.Enabled = true; - } - else - { - this.btRun.Text = "사용불가"; - this.btRun.Enabled = false; - } - - } - - private void toolStripButton1_Click_1(object sender, EventArgs e) - { - RunData(); - } - } -} diff --git a/JobReportMailService/fJobReportDay.resx b/JobReportMailService/fJobReportDay.resx deleted file mode 100644 index 0f604e2..0000000 --- a/JobReportMailService/fJobReportDay.resx +++ /dev/null @@ -1,157 +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 - - - 17, 17 - - - 104, 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== - - - \ No newline at end of file diff --git a/JobReportMailService/fJobReportWeek.Designer.cs b/JobReportMailService/fJobReportWeek.Designer.cs deleted file mode 100644 index 0c372f1..0000000 --- a/JobReportMailService/fJobReportWeek.Designer.cs +++ /dev/null @@ -1,95 +0,0 @@ - -namespace JobReportMailService -{ - partial class fJobReportWeek - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fJobReportWeek)); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.btRun = new System.Windows.Forms.ToolStripButton(); - this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); - this.toolStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // timer1 - // - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.btRun, - this.toolStripButton1}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(473, 25); - this.toolStrip1.TabIndex = 3; - this.toolStrip1.Text = "toolStrip1"; - // - // btRun - // - this.btRun.Image = ((System.Drawing.Image)(resources.GetObject("btRun.Image"))); - this.btRun.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btRun.Name = "btRun"; - this.btRun.Size = new System.Drawing.Size(48, 22); - this.btRun.Text = "Run"; - this.btRun.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // 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(67, 22); - this.toolStripButton1.Text = "manual"; - this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1); - // - // fJobReportWeek - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(473, 416); - this.Controls.Add(this.toolStrip1); - this.Name = "fJobReportWeek"; - this.Text = "업무일지(주간보고)"; - this.Load += new System.EventHandler(this.fJobReportDay_Load); - this.Controls.SetChildIndex(this.toolStrip1, 0); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton btRun; - private System.Windows.Forms.ToolStripButton toolStripButton1; - } -} \ No newline at end of file diff --git a/JobReportMailService/fJobReportWeek.cs b/JobReportMailService/fJobReportWeek.cs deleted file mode 100644 index d3075af..0000000 --- a/JobReportMailService/fJobReportWeek.cs +++ /dev/null @@ -1,385 +0,0 @@ -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 JobReportMailService -{ - public partial class fJobReportWeek : fChildBase - { - - public fJobReportWeek() - { - InitializeComponent(); - } - - private void fJobReportDay_Load(object sender, EventArgs e) - { - task = Task.Run(() => - { - while (taskrun) - { - if (taskwait) - { - task.Wait(1000); - continue; - } - - var ts = DateTime.Now - ChkMakeSchDayWeekTime; - if (ts.TotalMinutes <= 15) - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("15분 미만이라 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.DayOfWeek != DayOfWeek.Monday) - { - //토,일요일에는 동작하지 않는다 - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("월요일에만 동작 함"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.Hour < 9) - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("9시 이전에는 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else - { - ChkMakeSchDayWeekTime = DateTime.Now; - try - { - RunData(); - } - catch (Exception ex) - { - addmsg(ex.Message); - - using (var ta = new DataSet1TableAdapters.MailDataTableAdapter()) - { - using (var dt = new DataSet1.MailDataDataTable()) - { - var newdr = dt.NewMailDataRow(); - newdr.gcode = "EET1P"; - newdr.cate = "ER"; - newdr.subject = "[ERROR] 업무일지(주간) 메일작성 실패"; - newdr.fromlist = "chikyun.kim@amkor.co.kr"; - newdr.tolist = "chikyun.kim@amkor.co.kr"; - newdr.bcc = string.Empty; - newdr.cc = string.Empty; - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = ex.Message; - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = ta.Update(dt); - } - } - - task.Wait(5000); - } - } - Task.Delay(Delaytime).Wait(); - } - - }); - timer1.Start(); - if (Pub.setting.autoRunData) - btRun.PerformClick(); - } - - void RunData() - { - - addmsg("업무일지 미 작성자(주간) 추출 작업을 시작 합니다"); - - var taMailForm = new DataSet1TableAdapters.MailFormTableAdapter(); - var taMailData = new DataSet1TableAdapters.MailDataTableAdapter(); - var taJobReportUserList = new DataSet1TableAdapters.vJobReportUserListTableAdapter(); - var taJobReport = new DataSet1TableAdapters.JobReportTableAdapter(); - var taHolidayList = new DataSet1TableAdapters.HolidayLIstTableAdapter(); - var taGroupUser = new DataSet1TableAdapters.vGroupUserTableAdapter(); - var taJobReportDateList = new DataSet1TableAdapters.JobReportDateListTableAdapter(); - - - var dtMailForm = new DataSet1.MailFormDataTable(); - var dtMailData = new DataSet1.MailDataDataTable(); - var dtDateList = new DataSet1.JobReportDateListDataTable(); - - taMailForm.Fill(dtMailForm); - - //기준일자는 오늘부터 -15일이다 - var sd = DateTime.Now.AddDays(-15); - var ed = DateTime.Now.AddDays(-1); - var str_sd = sd.ToShortDateString(); - var str_ed = ed.ToShortDateString(); - var str_dt = DateTime.Now.ToShortDateString(); - - var gcodelist = dtMailForm.GroupBy(t => t.gcode).Select(t => t.Key).ToList(); - foreach (var gcodedata in gcodelist) - { - //메일양식이 지정되어있는지 체크 - var vGcode = gcodedata; - if (string.IsNullOrEmpty(vGcode)) continue; - - //메일양식이 지정되어있는지 체크 - var MailJW = dtMailForm.Where(t => t.gcode == vGcode & t.cate == "JW").FirstOrDefault(); - if (MailJW == null) - { - addmsg($"[{vGcode}] 업무일지 미작성(주간) 메일 양식이 입력되지 않았습니다"); - continue; - } - if (MailJW.exceptmail == null) MailJW.exceptmail = string.Empty; - if (MailJW.exceptmailcc == null) MailJW.exceptmailcc = string.Empty; - - //오늘날짜로 주간 데이터가 등록되어있느지 확인한다. - var Existweek = taMailData.GetDataExistDay(vGcode, "JW", str_dt).Any(); - if (Existweek) - { - addmsg($"[{vGcode}] 업무일지({str_dt}) (주간)보고 메일이 이미 등록되어 있습니다"); - continue; - } - - //대상 사용자 목록을 추출한다 - var users = taJobReportUserList.GetData(vGcode); - Dictionary uids = new Dictionary(); - foreach (var userinfo in users) - { - //해당 사용자의 오늘 날짜로 등록된 자동 데이터가 있다면 대상에 넣지 않는다 - // var userinfo = user.FirstOrDefault(); - if (userinfo == null || string.IsNullOrEmpty(userinfo.id)) continue; //null인게 있네? 220110 - - //퇴사자 확인 - var 퇴사일자 = userinfo.outdate; - if (string.IsNullOrEmpty(퇴사일자) == false) - { - //퇴사자 - if (퇴사일자.CompareTo(str_dt) < 1) continue; - } - - - - //이 대상의 이메일이 받는 사람에 제외되어있다면 처리하지 않는다. - if (MailJW.exceptmail == null) MailJW.exceptmail = string.Empty; - var exxptolist = MailJW.exceptmail.ToUpper().Split(';'); - if (exxptolist.Contains(userinfo.email.ToUpper()) == false) - { - //모두대상으로 처리한다 - //if (userdata.email.ToUpper() != ("BongSeok.Jung@amkor.co.kr").ToUpper()) - uids.Add(userinfo.id, userinfo.name); - } - else addmsg($"[{vGcode}] 주간 제외대상자임 " + userinfo.email); - } - - addmsg($"[{vGcode}] {uids.Count} 명의 전체 사용자가 확인 되었습니다"); - - //먼저 날짜목록을 가져온다 - //db = new EEEntities(); - //var lstDate = db.JobReport - // .Where(t => t.gcode == vGcode && t.pdate.CompareTo(str_sd) >= 0 && t.pdate.CompareTo(str_ed) < 0) - // .OrderBy(t => t.pdate) - // .GroupBy(t => t.pdate).ToList(); - - dtDateList = taJobReportDateList.GetData(vGcode, str_sd, str_ed);// - - //날짜대로 루프를 돈다 - List days = new List(); - foreach (var jobdata in dtDateList) - { - // var jobdata = dateitem.FirstOrDefault(); - var dt = DateTime.Parse(jobdata.pdate); - if (dt.DayOfWeek == DayOfWeek.Sunday || dt.DayOfWeek == DayOfWeek.Saturday) continue; - - //이 날짜가 휴일인지 체크한다. - var Holyinfo = taHolidayList.GetData(jobdata.pdate).FirstOrDefault(); - //var Holyinfo = db.HolidayLIst.Where(t => t.pdate == jobdata.pdate).FirstOrDefault(); - if (Holyinfo != null && Holyinfo.free == true) continue; - - //이날짜에는 8시간을 근무 해야 한다 - days.Add(DateTime.Parse(jobdata.pdate)); - } - addmsg($"[{vGcode}] {days.Count} 건의 일자가 확인 되었습니다(기간:{str_sd}~{str_ed}"); - - //사용자 목록과 날짜 목록을 모두 수집했다 - List totWarnList = new List(); - foreach (var uid in uids) - { - //이사용자의 날짜별 근무시간을 확인한다. - var UserDatas = taJobReport.GetUserDates(vGcode, uid.Key, str_sd, str_ed); - - Dictionary WarnList = new Dictionary(); - foreach (var dt in days.OrderBy(t => t)) - { - var dtstr = dt.ToShortDateString(); - var userdata = UserDatas.Where(t => t.pdate == dtstr); //해당날짜의 데이터를 확인한다. - var hrs = 0.0; - if (userdata.Any()) hrs = (double)userdata.Sum(t => t.hrs); - - //자료를 입력하지 않았거나, 입력시간이 8시간 미만이면 경고한다 - if (hrs < 8.0) - { - //WarnList.Add(dt, hrs); - totWarnList.Add(new ReportUserData { date = dt, hrs = hrs, uid = uid.Key, uname = uid.Value }); //전체알림시에 사용하는 목록 - } - } - - } - - if (totWarnList.Count > 0) - { - addmsg($"[{vGcode}] 주간 경고 데이터는 {totWarnList.Count} 건 입니다"); - - //오늘잘짜로 등록된 자료가 있으면 처리하지 안흔다. - //해당 사용자의 오늘 날짜로 등록된 자동 데이터가 있다면 대상에 넣지 않는다 - //db = new EEEntities(); - - var mail_subject = MailJW.subject; - var mail_to = MailJW.tolist;//.Replace("{담당자}", userinfo.email); - var pmail_cc = new List(); // - if (MailJW.cc != null) pmail_cc = MailJW.cc.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList();//.Replace("{담당자}", userinfo.email); - var mail_bcc = string.Empty; - if (MailJW.bcc != null) mail_bcc = MailJW.bcc;//.Replace("{담당자}", userinfo.email); - var mail_body = MailJW.body;//.Replace("{담당자}", userinfo.name); - - //메일본문을 생성해서 진행해야함 - var vmail_body = "

담당자별 정보

"; - vmail_body += "
조회기간 : " + sd.ToShortDateString() + "~" + ed.ToShortDateString(); - - ////참고데이터를 추가한다 - var usergrplist = totWarnList.OrderBy(t => t.uname).GroupBy(t => t.uid).ToList(); - //foreach (var item in usergrplist) - //{ - // //var fitem = item.FirstOrDefault(); - // //db = new EEEntities(); - // var userinfo = item.FirstOrDefault();// db.vGroupUser.Where(t => t.gcode == vGcode && t.id == fitem.uid).FirstOrDefault(); - // var username = string.Empty; - // if (userinfo != null) - // { - // if (string.IsNullOrEmpty(userinfo.email) == false) - // { - // //if (pmail_cc.Contains(userinfo.email) == false) - // // pmail_cc.Add(userinfo.email); - // } - // username = userinfo.name; - // } - //} - - vmail_body += "
"; - var mail_cc = string.Join(";", pmail_cc); //모든 대상을 세미콜론으로 붙인다. - foreach (var warnitem in usergrplist) - { - var item = warnitem.FirstOrDefault(); - vmail_body += $""; - } - vmail_body += "
담당자일자별시간
{item.uname}({item.uid})"; - foreach (var ii in warnitem.OrderBy(t => t.date)) - { - vmail_body += $" {ii.date.ToString("MM/dd")}({ii.hrs}h)"; - } - vmail_body += "
"; - - //메일데이터를 생성한다. - //mail_bcc = string.Empty; - //mail_cc = string.Empty; - //mail_to = "chikyun.kim@amkor.co.kr"; - - //db = new EEEntities(); - mail_to = Pub.MailSort(mail_to, MailJW.exceptmail); - if (string.IsNullOrEmpty(mail_to) == false) - { - using (var dt = new DataSet1.MailDataDataTable()) - { - - var newdr = dt.NewMailDataRow(); - newdr.gcode = vGcode; - newdr.cate = "JW"; - newdr.subject = mail_subject; - newdr.fromlist = "EETGW@amkor.co.kr"; - newdr.tolist = Pub.MailSort(mail_to, MailJW.exceptmail); - newdr.bcc = mail_bcc; - newdr.cc = Pub.MailSort(mail_cc, MailJW.exceptmailcc); - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = mail_body.Replace("{내용}", vmail_body); - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = taMailData.Update(dt); - - if (cnt == 1) - { - addmsg($"[{vGcode}] {cnt}건) 메일 생성 완료(week)"); - System.Threading.Thread.Sleep(10000); - } - } - } - else - { - addmsg($"[{vGcode}] 받는사람이 소거되어 메일을 생성하지 않습니다"); - } - } - - - System.Threading.Thread.Sleep(500); - - } - - dtMailForm.Dispose(); - dtMailData.Dispose(); - dtDateList.Dispose(); - - - - - taMailForm.Dispose();// = new DataSet1TableAdapters.MailFormTableAdapter(); - taMailData.Dispose();// = new DataSet1TableAdapters.MailDataTableAdapter(); - taJobReportUserList.Dispose();// = new DataSet1TableAdapters.vJobReportUserListTableAdapter(); - taJobReport.Dispose();// = new DataSet1TableAdapters.JobReportTableAdapter(); - taHolidayList.Dispose();// = new DataSet1TableAdapters.HolidayLIstTableAdapter(); - taGroupUser.Dispose();// = new DataSet1TableAdapters.vGroupUserTableAdapter(); - taJobReportDateList.Dispose(); - - - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - taskwait = !taskwait; - } - - private void timer1_Tick(object sender, EventArgs e) - { - if (task != null) - { - if (task.IsCompleted) this.btRun.Text = "완료"; - else if (task.IsCanceled) this.btRun.Text = "취소"; - else if (taskwait) this.btRun.Text = "대기상태"; - else this.btRun.Text = "가동중"; - this.btRun.Enabled = true; - } - else - { - this.btRun.Text = "사용불가"; - this.btRun.Enabled = false; - } - } - - private void toolStripButton1_Click_1(object sender, EventArgs e) - { - RunData(); - } - } -} diff --git a/JobReportMailService/fJobReportWeek.resx b/JobReportMailService/fJobReportWeek.resx deleted file mode 100644 index 0f604e2..0000000 --- a/JobReportMailService/fJobReportWeek.resx +++ /dev/null @@ -1,157 +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 - - - 17, 17 - - - 104, 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== - - - \ No newline at end of file diff --git a/JobReportMailService/fNoScheduleDayWeek.Designer.cs b/JobReportMailService/fNoScheduleDayWeek.Designer.cs deleted file mode 100644 index 2344036..0000000 --- a/JobReportMailService/fNoScheduleDayWeek.Designer.cs +++ /dev/null @@ -1,83 +0,0 @@ - -namespace JobReportMailService -{ - partial class fNoScheduleDayWeek - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fNoScheduleDayWeek)); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.btRun = new System.Windows.Forms.ToolStripButton(); - this.toolStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // timer1 - // - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.btRun}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(473, 25); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // btRun - // - this.btRun.Image = ((System.Drawing.Image)(resources.GetObject("btRun.Image"))); - this.btRun.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btRun.Name = "btRun"; - this.btRun.Size = new System.Drawing.Size(48, 22); - this.btRun.Text = "Run"; - this.btRun.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // fNoScheduleDayWeek - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(473, 416); - this.Controls.Add(this.toolStrip1); - this.Name = "fNoScheduleDayWeek"; - this.Text = "스케쥴없음(주보고)"; - this.Load += new System.EventHandler(this.fJobReportDay_Load); - this.Controls.SetChildIndex(this.toolStrip1, 0); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton btRun; - } -} \ No newline at end of file diff --git a/JobReportMailService/fNoScheduleDayWeek.cs b/JobReportMailService/fNoScheduleDayWeek.cs deleted file mode 100644 index 4c0270f..0000000 --- a/JobReportMailService/fNoScheduleDayWeek.cs +++ /dev/null @@ -1,280 +0,0 @@ -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 JobReportMailService -{ - public partial class fNoScheduleDayWeek : fChildBase - { - - public fNoScheduleDayWeek() - { - InitializeComponent(); - } - - private void fJobReportDay_Load(object sender, EventArgs e) - { - task = Task.Run(() => - { - while (taskrun) - { - if (taskwait) - { - if (task != null) - task.Wait(1000); - continue; - } - - var ts = DateTime.Now - ChkMakeSchDayWeekTime; - if (ts.TotalMinutes <= 15) - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("15분 미만이라 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.DayOfWeek != DayOfWeek.Monday) - { - //토,일요일에는 동작하지 않는다 - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("월요일에만 동작 합니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.Hour < 10) //10시부터 동작한다 - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("9시 이전에는 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else - { - ChkMakeSchDayWeekTime = DateTime.Now; - try - { - RunData(); - } - catch (Exception ex) - { - addmsg(ex.Message); - - using (var ta = new DataSet1TableAdapters.MailDataTableAdapter()) - { - using (var dt = new DataSet1.MailDataDataTable()) - { - var newdr = dt.NewMailDataRow(); - newdr.gcode = "EET1P"; - newdr.cate = "ER"; - newdr.subject = "[ERROR] 스케쥴없음 메일작성 실패"; - newdr.fromlist = "chikyun.kim@amkor.co.kr"; - newdr.tolist = "chikyun.kim@amkor.co.kr"; - newdr.bcc = string.Empty; - newdr.cc = string.Empty; - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = ex.Message; - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = ta.Update(dt); - } - } - - task.Wait(5000); - } - } - Task.Delay(Delaytime).Wait(); - } - - }); - timer1.Start(); - if (Pub.setting.autoRunData) - btRun.PerformClick(); - } - - void RunData() - { - addmsg("스케쥴입력(주) 미 작성자 추출 작업을 시작 합니다"); - - var db = new EEEntities(); - - //기준일자는 오늘부터 -15일이다 - var sd = DateTime.Now.AddDays(-15); - var ed = DateTime.Now; - var str_sd = sd.ToShortDateString(); - var str_ed = ed.ToShortDateString(); - var str_dt = DateTime.Now.ToShortDateString(); - - var gcodelist = db.MailForm.GroupBy(t => t.gcode).ToList(); - foreach (var gcodedata in gcodelist) - { - //메일양식이 지정되어있는지 체크 - var vGcode = gcodedata.Key; - if (string.IsNullOrEmpty(vGcode)) continue; - - //메일양식이 지정되어있는지 체크 - var MailJD = db.MailForm.AsNoTracking().Where(t => t.gcode == vGcode & t.cate == "SN").FirstOrDefault(); - if (MailJD == null) - { - //토,일요일에는 동작하지 않는다 - addmsg($"[{vGcode}] 메일 양식(SN)이 입력되지 않았습니다"); - continue; - } - if (MailJD.exceptmail == null) MailJD.exceptmail = string.Empty; - if (MailJD.exceptmailcc == null) MailJD.exceptmailcc = string.Empty; - - //오늘날짜로 데이터가 등록되어있느지 확인한다. - db = new EEEntities(); - var Existweek = db.MailData.AsNoTracking().Where(t => t.gcode == vGcode && t.cate == "SN" && t.pdate == str_dt).Any(); - if (Existweek) - { - addmsg($"[{vGcode}] 스케쥴(day)({str_dt}) 보고 메일이 이미 등록되어 있습니다"); - continue; - } - - //대상 사용자 목록을 추출한다 - //var ta = new DataSet1TableAdapters.vMailingProjectScheduleTableAdapter(); - //var users = new DataSet1.vMailingProjectScheduleDataTable(); - //ta.Fill(users); - db = new EEEntities(); - var projects = db.Projects.AsNoTracking().Where(t => t.gcode == vGcode && t.status == "진행" && (t.isdel == null || t.isdel == false)).OrderBy(t => t.sdate).ToList(); - // db.vMailingProjectSchedule.ToList();// .vJobReportForUser.Where(t => t.gcode == Pub.vGcode).GroupBy(t => t.id); - - addmsg($"[{vGcode}] {projects.Count} 건의 데이터가 확인 되었습니다"); - - //메일데이터 생성 - var body = new System.Text.StringBuilder(); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - - //var gp = projects.GroupBy(t => t.idx); - foreach (var row in projects) - { - - //스케쥴에서 데이터를 찾는다. - var cnt = db.EETGW_ProjectsSchedule.AsNoTracking().Where(t => t.gcode == vGcode && t.project == row.idx).Any(); - if (cnt == true) continue; //등록되었다 - - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - } - body.AppendLine("
시작일상태번호Project요청Champion협업만료일수량외주금액자체금액절감액CR/CF
{row.sdate}{row.status}{row.idx}{row.name}{row.reqstaff}{row.userManager}{row.usermain}/{row.usersub}/{row.userhw2}{row.edate}{row.cnt}{row.costo}{row.costn}{row.costo - row.costn}{row.orderno}
"); - - //일별경고(월요일제외) - - if (MailJD != null) - { - var mail_subject = MailJD.subject;//.Replace("{담당자}", userinfo.name).Replace("{사번}", userinfo.id); - var mail_to = MailJD.tolist;//.Replace("{담당자}", userinfo.email); - var mail_cc = string.Empty; // - if (MailJD.cc != null) mail_cc = MailJD.cc;//.Replace("{담당자}", userinfo.email); - var mail_bcc = string.Empty; - if (MailJD.bcc != null) mail_bcc = MailJD.bcc;//.Replace("{담당자}", userinfo.email); - var mail_body = MailJD.body;//.Replace("{담당자}", userinfo.name); - //mail_body = mail_body.Replace("{사번}", userinfo.id); - - //메일본문을 생성해서 진행해야함 - var mail_content = mail_body.Replace("{data}", body.ToString()); - - //메일데이터를 생성한다. - //mail_to = "chikyun.kim@amkor.co.kr"; - //mail_bcc = string.Empty; - //mail_cc = string.Empty; - - mail_to = Pub.MailSort(mail_to, MailJD.exceptmail); - if (string.IsNullOrEmpty(mail_to) == false) - { - db = new EEEntities(); - db.MailData.Add(new MailData - { - gcode = vGcode, - cate = "SN", - subject = mail_subject, - fromlist = "EETGW@amkor.co.kr", - tolist = Pub.MailSort(mail_to, MailJD.exceptmail), - bcc = mail_bcc, - cc = Pub.MailSort(mail_cc, MailJD.exceptmailcc), - pdate = DateTime.Now.ToShortDateString(), - body = mail_content, - wuid = "DEV", - wdate = DateTime.Now, - }); - db.SaveChanges(); - addmsg($"[{vGcode}] 메일 전송 완료(no스케쥴week)"); - System.Threading.Thread.Sleep(10000); - } - else - { - addmsg($"[{vGcode}] 받는사람이 소거되어 메일을 생성하지 않습니다"); - } - } - - System.Threading.Thread.Sleep(500); - - } - - - - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - taskwait = !taskwait; - } - - private void timer1_Tick(object sender, EventArgs e) - { - if (task != null) - { - if (task.IsCompleted) this.btRun.Text = "완료"; - else if (task.IsCanceled) this.btRun.Text = "취소"; - else if (taskwait) this.btRun.Text = "대기상태"; - else this.btRun.Text = "가동중"; - this.btRun.Enabled = true; - } - else - { - this.btRun.Text = "사용불가"; - this.btRun.Enabled = false; - } - - } - } -} diff --git a/JobReportMailService/fNoScheduleDayWeek.resx b/JobReportMailService/fNoScheduleDayWeek.resx deleted file mode 100644 index df60ad6..0000000 --- a/JobReportMailService/fNoScheduleDayWeek.resx +++ /dev/null @@ -1,142 +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 - - - 17, 17 - - - 104, 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== - - - \ No newline at end of file diff --git a/JobReportMailService/fScheduleDay.Designer.cs b/JobReportMailService/fScheduleDay.Designer.cs deleted file mode 100644 index 57f74d3..0000000 --- a/JobReportMailService/fScheduleDay.Designer.cs +++ /dev/null @@ -1,83 +0,0 @@ - -namespace JobReportMailService -{ - partial class fScheduleDay - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fScheduleDay)); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.btRun = new System.Windows.Forms.ToolStripButton(); - this.toolStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // timer1 - // - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.btRun}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(473, 25); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // btRun - // - this.btRun.Image = ((System.Drawing.Image)(resources.GetObject("btRun.Image"))); - this.btRun.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btRun.Name = "btRun"; - this.btRun.Size = new System.Drawing.Size(48, 22); - this.btRun.Text = "Run"; - this.btRun.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // fScheduleDay - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(473, 416); - this.Controls.Add(this.toolStrip1); - this.Name = "fScheduleDay"; - this.Text = "프로젝트 스케쥴(일보고)"; - this.Load += new System.EventHandler(this.fJobReportDay_Load); - this.Controls.SetChildIndex(this.toolStrip1, 0); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton btRun; - } -} \ No newline at end of file diff --git a/JobReportMailService/fScheduleDay.cs b/JobReportMailService/fScheduleDay.cs deleted file mode 100644 index 3b6438d..0000000 --- a/JobReportMailService/fScheduleDay.cs +++ /dev/null @@ -1,283 +0,0 @@ -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 JobReportMailService -{ - public partial class fScheduleDay : fChildBase - { - - public fScheduleDay() - { - InitializeComponent(); - } - - private void fJobReportDay_Load(object sender, EventArgs e) - { - task = Task.Run(() => - { - while (taskrun) - { - if (taskwait) - { - if (task != null) - task.Wait(1000); - continue; - } - - var ts = DateTime.Now - ChkMakeSchDayWeekTime; - if (ts.TotalMinutes <= 15) - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("15분 미만이라 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.DayOfWeek == DayOfWeek.Saturday || - DateTime.Now.DayOfWeek == DayOfWeek.Sunday) - { - //토,일요일에는 동작하지 않는다 - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("토/일/월에는 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.Hour < 10) //10시부터 동작한다 - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("10시 이전에는 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else - { - ChkMakeSchDayWeekTime = DateTime.Now; - try - { - RunData(); - } - catch (Exception ex) - { - addmsg(ex.Message); - - using (var ta = new DataSet1TableAdapters.MailDataTableAdapter()) - { - using (var dt = new DataSet1.MailDataDataTable()) - { - var newdr = dt.NewMailDataRow(); - newdr.gcode = "EET1P"; - newdr.cate = "ER"; - newdr.subject = "[ERROR] 스케쥴(day) 메일작성 실패"; - newdr.fromlist = "chikyun.kim@amkor.co.kr"; - newdr.tolist = "chikyun.kim@amkor.co.kr"; - newdr.bcc = string.Empty; - newdr.cc = string.Empty; - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = ex.Message; - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = ta.Update(dt); - } - } - - task.Wait(5000); - } - } - Task.Delay(Delaytime).Wait(); - } - - }); - timer1.Start(); - if (Pub.setting.autoRunData) - btRun.PerformClick(); - } - - void RunData() - { - addmsg("업무일지 미 작성자 추출 작업을 시작 합니다"); - - - var db = new EEEntities(); - //기준일자는 오늘부터 -15일이다 - var sd = DateTime.Now.AddDays(-15); - var ed = DateTime.Now; - var str_sd = sd.ToShortDateString(); - var str_ed = ed.ToShortDateString(); - var str_dt = DateTime.Now.ToShortDateString(); - - var gcodelist = db.MailForm.GroupBy(t => t.gcode).ToList(); - foreach (var gcodedata in gcodelist) - { - //메일양식이 지정되어있는지 체크 - var vGcode = gcodedata.Key; - if (string.IsNullOrEmpty(vGcode)) continue; - - //메일양식이 지정되어있는지 체크 - var MailJD = db.MailForm.Where(t => t.gcode == vGcode & t.cate == "SJ").FirstOrDefault(); - - if (MailJD == null) - { - //토,일요일에는 동작하지 않는다 - addmsg($"[{vGcode}] 메일 양식(SJ)이 입력되지 않았습니다"); - continue; - } - if (MailJD.exceptmail == null) MailJD.exceptmail = string.Empty; - if (MailJD.exceptmailcc == null) MailJD.exceptmailcc = string.Empty; - - //오늘날짜로 데이터가 등록되어있느지 확인한다. - db = new EEEntities(); - var Existweek = db.MailData.Where(t => t.gcode == vGcode && t.cate == "SJ" && t.pdate == str_dt).Any(); - if (Existweek) - { - addmsg($"[{vGcode}] 스케쥴(day)({str_dt}) 보고 메일이 이미 등록되어 있습니다"); - continue; - } - - //대상 사용자 목록을 추출한다 - var ta = new DataSet1TableAdapters.vMailingProjectScheduleTableAdapter(); - var users = new DataSet1.vMailingProjectScheduleDataTable(); - ta.Fill(users,vGcode); - //var users = db.vMailingProjectSchedule.ToList();// .vJobReportForUser.Where(t => t.gcode == Pub.vGcode).GroupBy(t => t.id); - - addmsg($"[{vGcode}] {users.Count} 명의 데이터가 확인 되었습니다"); - - //메일데이터 생성 - var body = new System.Text.StringBuilder(); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - - var gp = users.GroupBy(t => t.idx); - foreach (var row in gp) - { - var prc = row.Sum(t => t.progress) / row.Count(); - var dr = row.FirstOrDefault(); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine(""); - //여기에 스케쥴이 들어가야한다 - body.AppendLine($""); - } - body.AppendLine("
진행(%)ProjectChampion등록일스케쥴
{prc}[{dr.idx}] {dr.name}{dr.userManager}{dr.pdate}"); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - var ll = row.OrderBy(t => t.seq).ToList(); - foreach (var srow in ll) - { - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - } - body.AppendLine("
NoTitlePlan(ww)Actual(ww)진행비고
시작완료시작완료% 
{srow.seq}{srow.title}{srow.sw}{srow.ew}{srow.swa}{srow.ewa}{srow.progress}{srow.memo}
"); - body.AppendLine("
"); - - //일별경고(월요일제외) - - if (MailJD != null) - { - var mail_subject = MailJD.subject;//.Replace("{담당자}", userinfo.name).Replace("{사번}", userinfo.id); - var mail_to = MailJD.tolist;//.Replace("{담당자}", userinfo.email); - var mail_cc = string.Empty; // - if (MailJD.cc != null) mail_cc = MailJD.cc;//.Replace("{담당자}", userinfo.email); - var mail_bcc = string.Empty; - if (MailJD.bcc != null) mail_bcc = MailJD.bcc;//.Replace("{담당자}", userinfo.email); - var mail_body = MailJD.body;//.Replace("{담당자}", userinfo.name); - //mail_body = mail_body.Replace("{사번}", userinfo.id); - - //메일본문을 생성해서 진행해야함 - var mail_content = mail_body.Replace("{data}", body.ToString()); - - //메일데이터를 생성한다. - //mail_to = "chikyun.kim@amkor.co.kr"; - //mail_bcc = string.Empty; - //mail_cc = string.Empty; - - mail_to = Pub.MailSort(mail_to, MailJD.exceptmail); - if (string.IsNullOrEmpty(mail_to) == false) - { - db = new EEEntities(); - db.MailData.Add(new MailData - { - gcode = vGcode, - cate = "SJ", - subject = mail_subject, - fromlist = "eetgw@amkor.co.kr", - tolist = Pub.MailSort(mail_to, MailJD.exceptmail), - bcc = mail_bcc, - cc = Pub.MailSort(mail_cc, MailJD.exceptmailcc), - pdate = DateTime.Now.ToShortDateString(), - body = mail_content, - wuid = "DEV", - wdate = DateTime.Now, - }); - db.SaveChanges(); - addmsg($"[{vGcode}] 메일 전송 완료(스케쥴day)"); - System.Threading.Thread.Sleep(10000); - } - else - { - addmsg($"[{vGcode}] 받는사람이 소거되어 메일을 생성하지 않습니다"); - } - } - System.Threading.Thread.Sleep(500); - } - - - - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - taskwait = !taskwait; - } - - private void timer1_Tick(object sender, EventArgs e) - { - if (task != null) - { - if (task.IsCompleted) this.btRun.Text = "완료"; - else if (task.IsCanceled) this.btRun.Text = "취소"; - else if (taskwait) this.btRun.Text = "대기상태"; - else this.btRun.Text = "가동중"; - this.btRun.Enabled = true; - } - else - { - this.btRun.Text = "사용불가"; - this.btRun.Enabled = false; - } - - } - } -} diff --git a/JobReportMailService/fScheduleDay.resx b/JobReportMailService/fScheduleDay.resx deleted file mode 100644 index df60ad6..0000000 --- a/JobReportMailService/fScheduleDay.resx +++ /dev/null @@ -1,142 +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 - - - 17, 17 - - - 104, 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== - - - \ No newline at end of file diff --git a/JobReportMailService/fScheduleDayWeek.Designer.cs b/JobReportMailService/fScheduleDayWeek.Designer.cs deleted file mode 100644 index 8ac2bca..0000000 --- a/JobReportMailService/fScheduleDayWeek.Designer.cs +++ /dev/null @@ -1,83 +0,0 @@ - -namespace JobReportMailService -{ - partial class fScheduleDayWeek - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fScheduleDayWeek)); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.btRun = new System.Windows.Forms.ToolStripButton(); - this.toolStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // timer1 - // - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.btRun}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(473, 25); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // btRun - // - this.btRun.Image = ((System.Drawing.Image)(resources.GetObject("btRun.Image"))); - this.btRun.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btRun.Name = "btRun"; - this.btRun.Size = new System.Drawing.Size(48, 22); - this.btRun.Text = "Run"; - this.btRun.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // fScheduleDayWeek - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(473, 416); - this.Controls.Add(this.toolStrip1); - this.Name = "fScheduleDayWeek"; - this.Text = "프로젝트 스케쥴(주보고)"; - this.Load += new System.EventHandler(this.fJobReportDay_Load); - this.Controls.SetChildIndex(this.toolStrip1, 0); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton btRun; - } -} \ No newline at end of file diff --git a/JobReportMailService/fScheduleDayWeek.cs b/JobReportMailService/fScheduleDayWeek.cs deleted file mode 100644 index e5bf677..0000000 --- a/JobReportMailService/fScheduleDayWeek.cs +++ /dev/null @@ -1,287 +0,0 @@ -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 JobReportMailService -{ - public partial class fScheduleDayWeek : fChildBase - { - - public fScheduleDayWeek() - { - InitializeComponent(); - } - - private void fJobReportDay_Load(object sender, EventArgs e) - { - task = Task.Run(() => - { - while (taskrun) - { - if (taskwait) - { - if (task != null) - task.Wait(1000); - continue; - } - - var ts = DateTime.Now - ChkMakeSchDayWeekTime; - if (ts.TotalMinutes <= 15) - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("15분 미만이라 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.DayOfWeek != DayOfWeek.Monday) - { - //토,일요일에는 동작하지 않는다 - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("월요일에만 동작 합니다"); - ConsoleTime = DateTime.Now; - } - } - else if (DateTime.Now.Hour < 10) //10시부터 동작한다 - { - if ((DateTime.Now - ConsoleTime).TotalHours >= 1.0) - { - addmsg("9시 이전에는 동작하지 않습니다"); - ConsoleTime = DateTime.Now; - } - } - else - { - ChkMakeSchDayWeekTime = DateTime.Now; - try - { - RunData(); - } - catch (Exception ex) - { - addmsg(ex.Message); - - - using (var ta = new DataSet1TableAdapters.MailDataTableAdapter()) - { - using (var dt = new DataSet1.MailDataDataTable()) - { - var newdr = dt.NewMailDataRow(); - newdr.gcode = "EET1P"; - newdr.cate = "ER"; - newdr.subject = "[ERROR] 스케쥴(주) 메일작성 실패"; - newdr.fromlist = "chikyun.kim@amkor.co.kr"; - newdr.tolist = "chikyun.kim@amkor.co.kr"; - newdr.bcc = string.Empty; - newdr.cc = string.Empty; - newdr.pdate = DateTime.Now.ToShortDateString(); - newdr.body = ex.Message; - newdr.wuid = "dev"; - newdr.wdate = DateTime.Now; - newdr.EndEdit(); - dt.AddMailDataRow(newdr); - var cnt = ta.Update(dt); - } - } - - task.Wait(5000); - } - } - Task.Delay(Delaytime).Wait(); - } - - }); - timer1.Start(); - if (Pub.setting.autoRunData) - btRun.PerformClick(); - } - - void RunData() - { - addmsg("스케쥴관리(주) 미 작성자 추출 작업을 시작 합니다"); - - - var db = new EEEntities(); - - //기준일자는 오늘부터 -15일이다 - var sd = DateTime.Now.AddDays(-15); - var ed = DateTime.Now; - var str_sd = sd.ToShortDateString(); - var str_ed = ed.ToShortDateString(); - var str_dt = DateTime.Now.ToShortDateString(); - - - var gcodelist = db.MailForm.GroupBy(t => t.gcode).ToList(); - foreach (var gcodedata in gcodelist) - { - //메일양식이 지정되어있는지 체크 - var vGcode = gcodedata.Key; - if (string.IsNullOrEmpty(vGcode)) continue; - - //메일양식이 지정되어있는지 체크 - var MailJD = db.MailForm.Where(t => t.gcode == vGcode & t.cate == "SP").FirstOrDefault(); - - if (MailJD == null) - { - //토,일요일에는 동작하지 않는다 - addmsg($"[{vGcode}] 메일 양식(SP)이 입력되지 않았습니다"); - continue; - } - if (MailJD.exceptmail == null) MailJD.exceptmail = string.Empty; - if (MailJD.exceptmailcc == null) MailJD.exceptmailcc = string.Empty; - - - //오늘날짜로 데이터가 등록되어있느지 확인한다. - db = new EEEntities(); - var Existweek = db.MailData.Where(t => t.gcode == vGcode && t.cate == "SP" && t.pdate == str_dt).Any(); - if (Existweek) - { - addmsg($"[{vGcode}] 스케쥴(day)({str_dt}) 보고 메일이 이미 등록되어 있습니다"); - continue; - } - - //대상 사용자 목록을 추출한다 - var ta = new DataSet1TableAdapters.vMailingProjectScheduleTableAdapter(); - var users = new DataSet1.vMailingProjectScheduleDataTable(); - ta.Fill(users,vGcode); - //var users = db.vMailingProjectSchedule.ToList();// .vJobReportForUser.Where(t => t.gcode == Pub.vGcode).GroupBy(t => t.id); - - addmsg($"[{vGcode}] {users.Count} 명의 데이터가 확인 되었습니다"); - - //메일데이터 생성 - var body = new System.Text.StringBuilder(); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - - var gp = users.GroupBy(t => t.idx); - foreach (var row in gp) - { - var prc = row.Sum(t => t.progress) / row.Count(); - var dr = row.FirstOrDefault(); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine(""); - //여기에 스케쥴이 들어가야한다 - body.AppendLine($""); - } - body.AppendLine("
진행(%)ProjectChampion등록일스케쥴
{prc}[{dr.idx}] {dr.name}{dr.userManager}{dr.pdate}"); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - body.AppendLine(""); - var ll = row.OrderBy(t => t.seq).ToList(); - foreach (var srow in ll) - { - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - body.AppendLine($""); - } - body.AppendLine("
NoTitlePlan(ww)Actual(ww)진행비고
시작완료시작완료% 
{srow.seq}{srow.title}{srow.sw}{srow.ew}{srow.swa}{srow.ewa}{srow.progress}{srow.memo}
"); - body.AppendLine("
"); - - //일별경고(월요일제외) - - if (MailJD != null) - { - var mail_subject = MailJD.subject;//.Replace("{담당자}", userinfo.name).Replace("{사번}", userinfo.id); - var mail_to = MailJD.tolist;//.Replace("{담당자}", userinfo.email); - var mail_cc = string.Empty; // - if (MailJD.cc != null) mail_cc = MailJD.cc;//.Replace("{담당자}", userinfo.email); - var mail_bcc = string.Empty; - if (MailJD.bcc != null) mail_bcc = MailJD.bcc;//.Replace("{담당자}", userinfo.email); - var mail_body = MailJD.body;//.Replace("{담당자}", userinfo.name); - //mail_body = mail_body.Replace("{사번}", userinfo.id); - - //메일본문을 생성해서 진행해야함 - var mail_content = mail_body.Replace("{data}", body.ToString()); - - //메일데이터를 생성한다. - //mail_to = "chikyun.kim@amkor.co.kr"; - //mail_bcc = string.Empty; - //mail_cc = string.Empty; - - mail_to = Pub.MailSort(mail_to, MailJD.exceptmail); - if (string.IsNullOrEmpty(mail_to) == false) - { - db = new EEEntities(); - db.MailData.Add(new MailData - { - gcode = vGcode, - cate = "SP", - subject = mail_subject, - fromlist = "eetgw@amkor.co.kr", - tolist = Pub.MailSort(mail_to, MailJD.exceptmail), - bcc = mail_bcc, - cc = Pub.MailSort(mail_cc, MailJD.exceptmailcc), - pdate = DateTime.Now.ToShortDateString(), - body = mail_content, - wuid = "DEV", - wdate = DateTime.Now, - }); - db.SaveChanges(); - addmsg($"[{vGcode}] 메일 전송 완료(스케쥴day)"); - System.Threading.Thread.Sleep(10000); - } - else - { - addmsg($"[{vGcode}] 받는사람이 소거되어 메일을 생성하지 않습니다"); - } - } - - System.Threading.Thread.Sleep(500); - - } - - - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - taskwait = !taskwait; - } - - private void timer1_Tick(object sender, EventArgs e) - { - if (task != null) - { - if (task.IsCompleted) this.btRun.Text = "완료"; - else if (task.IsCanceled) this.btRun.Text = "취소"; - else if (taskwait) this.btRun.Text = "대기상태"; - else this.btRun.Text = "가동중"; - this.btRun.Enabled = true; - } - else - { - this.btRun.Text = "사용불가"; - this.btRun.Enabled = false; - } - - } - } -} diff --git a/JobReportMailService/fScheduleDayWeek.resx b/JobReportMailService/fScheduleDayWeek.resx deleted file mode 100644 index df60ad6..0000000 --- a/JobReportMailService/fScheduleDayWeek.resx +++ /dev/null @@ -1,142 +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 - - - 17, 17 - - - 104, 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== - - - \ No newline at end of file diff --git a/JobReportMailService/fSendMail.Designer.cs b/JobReportMailService/fSendMail.Designer.cs deleted file mode 100644 index f7bab7b..0000000 --- a/JobReportMailService/fSendMail.Designer.cs +++ /dev/null @@ -1,83 +0,0 @@ - -namespace JobReportMailService -{ - partial class fSendMail - { - /// - /// 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() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSendMail)); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.btRun = new System.Windows.Forms.ToolStripButton(); - this.toolStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // timer1 - // - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); - // - // toolStrip1 - // - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.btRun}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(473, 25); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // btRun - // - this.btRun.Image = ((System.Drawing.Image)(resources.GetObject("btRun.Image"))); - this.btRun.ImageTransparentColor = System.Drawing.Color.Magenta; - this.btRun.Name = "btRun"; - this.btRun.Size = new System.Drawing.Size(48, 22); - this.btRun.Text = "Run"; - this.btRun.Click += new System.EventHandler(this.toolStripButton1_Click); - // - // fSendMail - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(473, 416); - this.Controls.Add(this.toolStrip1); - this.Name = "fSendMail"; - this.Text = "Send Mail"; - this.Load += new System.EventHandler(this.fJobReportDay_Load); - this.Controls.SetChildIndex(this.toolStrip1, 0); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton btRun; - } -} \ No newline at end of file diff --git a/JobReportMailService/fSendMail.cs b/JobReportMailService/fSendMail.cs deleted file mode 100644 index 417f533..0000000 --- a/JobReportMailService/fSendMail.cs +++ /dev/null @@ -1,274 +0,0 @@ -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 JobReportMailService -{ - public partial class fSendMail : fChildBase - { - - public fSendMail() - { - InitializeComponent(); - } - - private void fJobReportDay_Load(object sender, EventArgs e) - { - this.Delaytime = 3000; - task = Task.Run(() => - { - while (taskrun) - { - if (taskwait) - { - task.Wait(1000); - continue; - } - - var ts = DateTime.Now - ChkMakeSchDayWeekTime; - if (ts.TotalMilliseconds <= 1000) - { - continue; - } - else - { - ChkMakeSchDayWeekTime = DateTime.Now; - try - { - RunData(); - } - catch (Exception ex) - { - addmsg(ex.Message); - task.Wait(5000); - } - } - Task.Delay(Delaytime).Wait(); - } - - }); - timer1.Start(); - if (Pub.setting.autoRunData) - btRun.PerformClick(); - } - - void RunData() - { - SendMail(); - System.Threading.Thread.Sleep(1000); - MakeAutoMail(); - } - - void SendMail() - { - //그룹무관하게 모든 자료를 전송처리한다 - var ta = new DataSet1TableAdapters.MailDataTableAdapter(); - var sendList = ta.GetData(); //발송되지않은 메일목록 - - if (sendList.Rows.Count > 0) addmsg("Found : " + sendList.Rows.Count.ToString()); - else addmsg("전송할 메일이 없습니다"); - - foreach (DataSet1.MailDataRow dr in sendList) - { - //전자메일 검증을 한다. - var list_from = getMaillist(dr.fromlist); - var list_to = getMaillist(dr.tolist); - var list_bcc = getMaillist(dr.bcc); - var list_cc = getMaillist(dr.cc); - - - string sendMsg = ""; - if (list_from == "") - { - sendMsg = ("보내는 주소가 없습니다"); - } - else if (dr.subject.Trim() == "") - { - sendMsg = ("메일 제목이 없습니다"); - } - else if (dr.body.Trim() == "") - { - sendMsg = ("본문이 없습니다"); - } - else if (list_to == "") - { - sendMsg = ("받는 주소가 없습니다"); - } - else - { - - var body = dr.body; - body += - "

" + - "
이 메일은 EET 프로그램에서 자동 발신 되었습니다." + - "
메일이 잘못 전송 되었다면 [chikyun.kim@amkor.co.kr] 로 문의 주시기 바랍니다" + - "

"; - - //전송을 해야 함 - var mc = new System.Net.Mail.SmtpClient("10.101.10.6"); - var msg = new System.Net.Mail.MailMessage - (list_from, - list_to, - dr.subject, - body); - - if (list_bcc != "") msg.Bcc.Add(list_bcc); - if (list_cc != "") msg.CC.Add(list_cc); - msg.IsBodyHtml = true; - - try - { - mc.Send(msg); - Console.WriteLine("send mail to" + list_to + ",subject=" + dr.subject); - sendMsg = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); - } - catch (Exception eX) - { - sendMsg = eX.Message; - } - } - - Console.WriteLine(string.Format("Send Complete index={0},Msg={1}", dr.idx, sendMsg)); - ta.UpdateSendOK(sendMsg, dr.idx); - break; - } - - } - static DateTime ChkAutoDate = DateTime.Now.AddDays(-1); - void MakeAutoMail() - { - var ts = DateTime.Now - ChkAutoDate; - if (ts.TotalMinutes < 1) return; //10분마다 자동 생성 데이터를 처리한다 - Console.WriteLine("Check Auto Make Mail"); - - var taData = new DataSet1TableAdapters.MailDataTableAdapter(); - var taList = new DataSet1TableAdapters.MailAutoTableAdapter(); - var dtList = taList.GetByAutoSend(); - var dtInsert = new DataSet1.MailDataDataTable(); - - //대상 - Console.WriteLine("Make Auto Send Mail Data (" + dtList.Rows.Count.ToString() + ")"); - - foreach (DataSet1.MailAutoRow dr in dtList) - { - //시간정보가 없는 애들은 처리 하지 않음 - if (dr.stime.IndexOf(":") == -1) continue; - if (dr.sday == null || dr.sday.Length < 2) continue; - - //발신시간을 넘어야 한다 - var curTime = DateTime.Now.ToString("HH:mm"); - if (string.Compare(curTime, dr.stime) < 0) continue; //지정된 시간 이전이면 생성 안한다 - - //자동생성 구분용 카테고리 - var cate = string.Format("{0},{1}", dr.sday[0], dr.sday[1]); - - //동륵일 - var pdate = DateTime.Now.ToString("yyyy-MM-dd"); - - //같은날, 같은 atime aidx pdate 의 같이 있으면 이미 생성된것이므로 추가하지 않는다 - var existData = taData.FindAutoData(dr.idx, dr.stime, pdate, cate); - var PreMakeCount = (int)(existData); - if (PreMakeCount > 0) continue; - - //전송간격과 대상 - if (dr.sday[0] == 1) - { - //week - var bitString = Convert.ToString(dr.sday[1], 2).PadLeft(8, '0').ToArray(); - var weeknum = (int)(DateTime.Now.DayOfWeek); - if (bitString[weeknum + 1] == '0') continue; - } - else - { - //month - if (dr.sday[1] != DateTime.Now.Day) continue; - } - - - - //같은날, 같은 atime aidx pdate 의 같이 있으면 이미 생성된것이므로 추가하지 않는다 - //생성해야할 자료라면 만들어 준다 - var newdr = dtInsert.NewMailDataRow(); - newdr.pdate = pdate;// DateTime.Now.ToString("yyyy-MM-dd"); - newdr.gcode = dr.gcode; - newdr.fromlist = dr.fromlist; - newdr.tolist = dr.tolist; - newdr.bcc = dr.bcc; - newdr.cate = cate;// string.Format("{0},{1}", dr.sday[0], dr.sday[1]); //cate에 해당 자료를 기록한다. - newdr.cc = dr.cc; - newdr.subject = dr.subject; - newdr.body = dr.body; - newdr.aidx = dr.idx; - newdr.atime = dr.stime; - newdr.wuid = "DEV"; - newdr.wdate = DateTime.Now; - dtInsert.AddMailDataRow(newdr); - try - { - taData.Update(newdr); - Console.WriteLine("auto make : " + newdr.tolist + ",subject=" + newdr.subject); - } - catch (Exception eX) - { - Console.WriteLine("auto make error : " + eX.Message); - } - } - ChkAutoDate = DateTime.Now; - } - - string getMaillist(string org) - { - org = org.Replace(";", ",").Replace(":", ","); - string list_to = ""; - foreach (var item in org.Split(',')) - { - if (item.Trim() != "") - { - var atindex = item.IndexOf("@"); - if (atindex != -1) - { - var dotindex = item.IndexOf(".", atindex + 1); - if (dotindex != -1) - { - //정상이므로 추가한다. - if (list_to != "") list_to += ","; - list_to += item.Trim(); - } - } - } - } - return list_to; - } - - private void toolStripButton1_Click(object sender, EventArgs e) - { - taskwait = !taskwait; - if (taskwait == false) - ChkMakeSchDayWeekTime = DateTime.Now.AddHours(-1); - } - - private void timer1_Tick(object sender, EventArgs e) - { - if (task != null) - { - if (task.IsCompleted) this.btRun.Text = "완료"; - else if (task.IsCanceled) this.btRun.Text = "취소"; - else if (taskwait) this.btRun.Text = "대기상태"; - else this.btRun.Text = "가동중"; - this.btRun.Enabled = true; - } - else - { - this.btRun.Text = "사용불가"; - this.btRun.Enabled = false; - } - - } - } -} diff --git a/JobReportMailService/fSendMail.resx b/JobReportMailService/fSendMail.resx deleted file mode 100644 index df60ad6..0000000 --- a/JobReportMailService/fSendMail.resx +++ /dev/null @@ -1,142 +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 - - - 17, 17 - - - 104, 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== - - - \ No newline at end of file diff --git a/JobReportMailService/fSetup.Designer.cs b/JobReportMailService/fSetup.Designer.cs deleted file mode 100644 index 682c0c7..0000000 --- a/JobReportMailService/fSetup.Designer.cs +++ /dev/null @@ -1,75 +0,0 @@ - -namespace JobReportMailService -{ - partial class fSetup - { - /// - /// 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.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); - this.button1 = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // propertyGrid1 - // - this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill; - this.propertyGrid1.Location = new System.Drawing.Point(0, 0); - this.propertyGrid1.Name = "propertyGrid1"; - this.propertyGrid1.Size = new System.Drawing.Size(457, 486); - this.propertyGrid1.TabIndex = 0; - // - // button1 - // - this.button1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.button1.Location = new System.Drawing.Point(0, 486); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(457, 68); - this.button1.TabIndex = 1; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // fSetup - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(457, 554); - this.Controls.Add(this.propertyGrid1); - this.Controls.Add(this.button1); - this.Name = "fSetup"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "fSetup"; - this.Load += new System.EventHandler(this.fSetup_Load); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.PropertyGrid propertyGrid1; - private System.Windows.Forms.Button button1; - } -} \ No newline at end of file diff --git a/JobReportMailService/fSetup.cs b/JobReportMailService/fSetup.cs deleted file mode 100644 index e11d451..0000000 --- a/JobReportMailService/fSetup.cs +++ /dev/null @@ -1,33 +0,0 @@ -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 JobReportMailService -{ - public partial class fSetup : Form - { - public fSetup() - { - InitializeComponent(); - this.propertyGrid1.SelectedObject = Pub.setting; - } - - private void button1_Click(object sender, EventArgs e) - { - this.Validate(); - Pub.setting.Save(); - DialogResult = DialogResult.OK; - } - - private void fSetup_Load(object sender, EventArgs e) - { - - } - } -} diff --git a/JobReportMailService/fSetup.resx b/JobReportMailService/fSetup.resx deleted file mode 100644 index 29dcb1b..0000000 --- a/JobReportMailService/fSetup.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/JobReportMailService/mailform_schedule.html b/JobReportMailService/mailform_schedule.html deleted file mode 100644 index 94a8aa2..0000000 --- a/JobReportMailService/mailform_schedule.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - -
-fdasf - - 맑은 고딕 테스트 - - fdasf -
- fdasf - - fdasf -
- - \ No newline at end of file diff --git a/JobReportMailService/packages.config b/JobReportMailService/packages.config deleted file mode 100644 index 775cabc..0000000 --- a/JobReportMailService/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/JobReportMailService/vGroupUser.cs b/JobReportMailService/vGroupUser.cs deleted file mode 100644 index d2c7675..0000000 --- a/JobReportMailService/vGroupUser.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class vGroupUser - { - public string gcode { get; set; } - public string dept { get; set; } - public Nullable level { get; set; } - public string name { get; set; } - public string nameE { get; set; } - public string grade { get; set; } - public string email { get; set; } - public string tel { get; set; } - public string indate { get; set; } - public string outdate { get; set; } - public string hp { get; set; } - public string place { get; set; } - public string ads_employNo { get; set; } - public string ads_title { get; set; } - public string ads_created { get; set; } - public string memo { get; set; } - public string processs { get; set; } - public string id { get; set; } - public string state { get; set; } - public Nullable useJobReport { get; set; } - public Nullable useUserState { get; set; } - public string password { get; set; } - } -} diff --git a/JobReportMailService/vJobReportForUser.cs b/JobReportMailService/vJobReportForUser.cs deleted file mode 100644 index 46effcc..0000000 --- a/JobReportMailService/vJobReportForUser.cs +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace JobReportMailService -{ - using System; - using System.Collections.Generic; - - public partial class vJobReportForUser - { - public int idx { get; set; } - public string pdate { get; set; } - public string gcode { get; set; } - public string id { get; set; } - public string name { get; set; } - public string process { get; set; } - public string type { get; set; } - public string svalue { get; set; } - public Nullable hrs { get; set; } - public Nullable ot { get; set; } - public string requestpart { get; set; } - public string package { get; set; } - public string userProcess { get; set; } - public string status { get; set; } - public string projectName { get; set; } - public string description { get; set; } - public string ww { get; set; } - public Nullable otStart { get; set; } - public Nullable otEnd { get; set; } - public Nullable ot2 { get; set; } - public string otReason { get; set; } - public string grade { get; set; } - public string indate { get; set; } - public string outdate { get; set; } - } -} diff --git a/MemoryMap.cs b/MemoryMap.cs deleted file mode 100644 index 25b4a41..0000000 --- a/MemoryMap.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - -namespace AR -{ - public class MemoryMap - { - public MemoryMap() - { - - } - } -} - diff --git a/OwinProject/Class1.cs b/OwinProject/Class1.cs deleted file mode 100644 index 91e8f0e..0000000 --- a/OwinProject/Class1.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Microsoft.Owin.Hosting; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace OwinProject -{ - public static class OwinServer - { - public static void Run() - { - // Start OWIN host - WebApp.Start(url: "http://127.0.0.1:9000"); - Console.WriteLine("start webapp"); - } - } -} diff --git a/OwinProject/OWIN/Startup.cs b/OwinProject/OWIN/Startup.cs deleted file mode 100644 index 0af2f53..0000000 --- a/OwinProject/OWIN/Startup.cs +++ /dev/null @@ -1,76 +0,0 @@ -using Microsoft.Owin; -using Owin; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Web.Http; -using System.Web.Http.Routing; - -namespace OwinProject.OWIN -{ - public class Startup - { - public void Configuration(IAppBuilder appBuilder) - { - // Configure Web API for Self-Host - HttpConfiguration config = new HttpConfiguration(); - config.MapHttpAttributeRoutes(); - - //메인파일 처리 방법 - IHttpRoute defaultRoute = - config.Routes.CreateRoute("{controller}/{action}/{id}", - new { controller = "home", action = "index", id = RouteParameter.Optional }, - null); - - //기타파일들 처리 방법 - IHttpRoute cssRoute = - config.Routes.CreateRoute("{path}/{subdir}/{resource}.{ext}", - new { controller = "resource", action = "file", id = RouteParameter.Optional }, - null); - - IHttpRoute mifRoute = - config.Routes.CreateRoute("{path}/{resource}.{ext}", - new { controller = "resource", action = "file", id = RouteParameter.Optional }, - null); - - IHttpRoute icoRoute = - config.Routes.CreateRoute("{resource}.{ext}", - new { controller = "resource", action = "file", id = RouteParameter.Optional }, - null); - - config.Routes.Add("mifRoute", mifRoute); - config.Routes.Add("icoRoute", icoRoute); - config.Routes.Add("cssRoute", cssRoute); - config.Routes.Add("defaultRoute", defaultRoute); - appBuilder.UseWebApi(config); - - - //appBuilder.UseFileServer(new FileServerOptions - //{ - // RequestPath = new PathString(string.Empty), - // FileSystem = new PhysicalFileSystem("./MySubFolder"), - // EnableDirectoryBrowsing = true, - //}); - - //appBuilder.UseStageMarker(PipelineStage.MapHandler); - - - //config.Routes.MapHttpRoute( - // name: "ignore", - // routeTemplate: @".*\.(css|js|gif|jpg)(/.*)?", - // defaults: new - // { - // controller = "file", - // action = "readtext", - // id = RouteParameter.Optional - // } - // ); - - - - } - - } -} diff --git a/OwinProject/OWIN/StartupSSE.cs b/OwinProject/OWIN/StartupSSE.cs deleted file mode 100644 index df17b6f..0000000 --- a/OwinProject/OWIN/StartupSSE.cs +++ /dev/null @@ -1,101 +0,0 @@ -using Microsoft.Owin; -using Owin; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Web.Http; - -namespace OwinProject.OWIN -{ - public class StartupSSE - { - - - public void Configuration(IAppBuilder app) - { - var api = new Api(); - app.Run(context => api.Invoke(context)); - } - - public class Subscriber - { - private StreamWriter _writer; - private TaskCompletionSource _tcs; - public Subscriber(Stream body, TaskCompletionSource tcs) - { - this._writer = new StreamWriter(body); - this._tcs = tcs; - } - - public async void WriteAsync(string message) - { - try - { - _writer.Write(message); - _writer.Flush(); - } - catch (Exception e) - { - if (e.HResult == -2146232800) // non-existent connection - _tcs.SetResult(true); - else - _tcs.SetException(e); - } - } - } - - public class Api - { - System.Timers.Timer _timer = new System.Timers.Timer(500); - List _subscribers = new List(); - public Api() - { - _timer.Elapsed += _timer_Elapsed; - } - - void _timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) - { - UpdateSubscribers(); - } - - public void UpdateSubscribers() - { - Console.WriteLine("updating {0} subscribers", _subscribers.Count); - var subscribersCopy = _subscribers.ToList(); - var msg = String.Format("Hello async at {0}\n", DateTime.Now); - subscribersCopy.ForEach(w => w.WriteAsync(msg)); - _timer.Start(); - } - - - public Task Invoke(IOwinContext context) - { - SetEventHeaders(context); - System.IO.Stream responseStream = context.Environment["owin.ResponseBody"] as Stream; - var tcs = new TaskCompletionSource(); - var s = CreateSubscriber(responseStream, tcs); - tcs.Task.ContinueWith(_ => _subscribers.Remove(s)); - Console.WriteLine("Add subscriber. Now have {0}", _subscribers.Count); - s.WriteAsync("Registered\n"); - _timer.Start(); - return tcs.Task; - } - - private Subscriber CreateSubscriber(System.IO.Stream responseStream, TaskCompletionSource tcs) - { - var s = new Subscriber(responseStream, tcs); - _subscribers.Add(s); - return s; - } - - private static void SetEventHeaders(IOwinContext context) - { - context.Response.ContentType = "text/eventstream"; - context.Response.Headers["Transfer-Encoding"] = "chunked"; - context.Response.Headers["cache-control"] = "no-cache"; - } - } - } -} diff --git a/OwinProject/OwinProject.csproj b/OwinProject/OwinProject.csproj deleted file mode 100644 index 97241b7..0000000 --- a/OwinProject/OwinProject.csproj +++ /dev/null @@ -1,78 +0,0 @@ - - - - - Debug - AnyCPU - {0C3DC465-73BB-4086-BED4-5EAA100F082A} - Library - Properties - OwinProject - OwinProject - v4.5.2 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Microsoft.Owin.4.1.1\lib\net45\Microsoft.Owin.dll - - - ..\packages\Microsoft.Owin.Host.HttpListener.4.1.1\lib\net45\Microsoft.Owin.Host.HttpListener.dll - - - ..\packages\Microsoft.Owin.Hosting.2.0.2\lib\net45\Microsoft.Owin.Hosting.dll - - - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\Owin.1.0\lib\net40\Owin.dll - - - - - ..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll - - - ..\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll - - - ..\packages\Microsoft.AspNet.WebApi.Owin.5.2.7\lib\net45\System.Web.Http.Owin.dll - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OwinProject/OwinProject.csproj.user b/OwinProject/OwinProject.csproj.user deleted file mode 100644 index 1dec02f..0000000 --- a/OwinProject/OwinProject.csproj.user +++ /dev/null @@ -1,6 +0,0 @@ - - - - ProjectFiles - - \ No newline at end of file diff --git a/OwinProject/Properties/AssemblyInfo.cs b/OwinProject/Properties/AssemblyInfo.cs deleted file mode 100644 index 5966b36..0000000 --- a/OwinProject/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 -// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 -// 이러한 특성 값을 변경하세요. -[assembly: AssemblyTitle("OwinProject")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("OwinProject")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 -// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 -// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. -[assembly: ComVisible(false)] - -// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. -[assembly: Guid("0c3dc465-73bb-4086-bed4-5eaa100f082a")] - -// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. -// -// 주 버전 -// 부 버전 -// 빌드 번호 -// 수정 버전 -// -// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 -// 기본값으로 할 수 있습니다. -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/OwinProject/app.config b/OwinProject/app.config deleted file mode 100644 index 2b1d8e6..0000000 --- a/OwinProject/app.config +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OwinProject/packages.config b/OwinProject/packages.config deleted file mode 100644 index 19bdb0a..0000000 --- a/OwinProject/packages.config +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/Project/EETGW.csproj b/Project/EETGW.csproj index cd9f377..6a5b84c 100644 --- a/Project/EETGW.csproj +++ b/Project/EETGW.csproj @@ -118,6 +118,10 @@ Properties\app.manifest + + False + ..\DLL\arControl.Net4.dll + False ..\DLL\ArLog.Net4.dll @@ -743,10 +747,6 @@ {d01a7891-ad0b-489b-8c45-f598c875fe26} FPM0000 - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {b832738c-74dd-4ce2-8a29-98d0bcbb9ea4} StaffLayoutCtl diff --git a/Sub/GetSubProjectFromGit.bat b/Sub/GetSubProjectFromGit.bat deleted file mode 100644 index 8259629..0000000 --- a/Sub/GetSubProjectFromGit.bat +++ /dev/null @@ -1,9 +0,0 @@ -rmdir .\AmkorRestfulService /s /q -rmdir .\arCtl /s /q -rmdir .\arftp /s /q -rmdir .\tcpservice /s /q - -git clone file://k4fs3201n/k4bpartcenter$/Repository/Restful.git .\AmkorRestfulService -git clone https://gitlab.com/open-class/arControl.git .\arCtl -git clone https://gitlab.com/open-class/arftp.git .\arftp -git clone https://gitlab.com/free-lancer/tcpservice.git .\tcpservice \ No newline at end of file diff --git a/Sub/arCtl b/Sub/arCtl deleted file mode 160000 index a4b2a09..0000000 --- a/Sub/arCtl +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a4b2a097f8f4de828c883de35cdf5d28e0d5f3e4 diff --git a/Sub/arftp b/Sub/arftp deleted file mode 160000 index 6f5a2f0..0000000 --- a/Sub/arftp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6f5a2f0aacada026a9ad69ebc7cf2db1d8e7ff19 diff --git a/Sub/tcpservice b/Sub/tcpservice deleted file mode 160000 index 1680e26..0000000 --- a/Sub/tcpservice +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1680e266da64298180eb18de5548a7c40454ce5e diff --git a/SubProject/ChatServer/Properties/Settings.Designer.cs b/SubProject/ChatServer/Properties/Settings.Designer.cs index 567a4b9..401633b 100644 --- a/SubProject/ChatServer/Properties/Settings.Designer.cs +++ b/SubProject/ChatServer/Properties/Settings.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace ChatServer.Properties { +namespace NoticeServer.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] diff --git a/SubProject/FBS0000/FBS0000.csproj b/SubProject/FBS0000/FBS0000.csproj index 71ea575..9b6f1c5 100644 --- a/SubProject/FBS0000/FBS0000.csproj +++ b/SubProject/FBS0000/FBS0000.csproj @@ -38,6 +38,10 @@ ..\..\DLL\arCommUtil.dll + + False + ..\..\DLL\arControl.Net4.dll + ..\..\DLL\ArSetting.Net4.dll @@ -318,10 +322,6 @@ - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {26982882-c1ff-45f8-861c-d67558725ff1} FCM0000 diff --git a/SubProject/FCM0000/FCM0000.csproj b/SubProject/FCM0000/FCM0000.csproj index 73d80aa..6c268dd 100644 --- a/SubProject/FCM0000/FCM0000.csproj +++ b/SubProject/FCM0000/FCM0000.csproj @@ -50,6 +50,10 @@ false + + False + ..\..\DLL\arControl.Net4.dll + ..\..\DLL\ArSetting.Net4.dll @@ -544,10 +548,6 @@ - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {db5ee9c8-eacf-4231-877e-b9dfd7a714de} YARTE diff --git a/SubProject/FCOMMON/FCOMMON.csproj b/SubProject/FCOMMON/FCOMMON.csproj index 433295d..a0d6a31 100644 --- a/SubProject/FCOMMON/FCOMMON.csproj +++ b/SubProject/FCOMMON/FCOMMON.csproj @@ -36,6 +36,10 @@ false + + False + ..\..\DLL\arControl.Net4.dll + ..\..\DLL\ArLog.Net4.dll @@ -110,12 +114,6 @@ fFileExplorer.cs - - Form - - - fFTPExplorer.cs - Form @@ -198,9 +196,6 @@ fFileExplorer.cs - - fFTPExplorer.cs - fInputTextBox.cs @@ -252,16 +247,6 @@ - - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - - - {150859d3-1c5d-4e20-b324-f9ebe188d893} - FTPClass - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - 221, 17 - - - 17, 17 - - - 104, 17 - - \ No newline at end of file diff --git a/SubProject/FED0000/FED0000.csproj b/SubProject/FED0000/FED0000.csproj index 61a5ea4..b455940 100644 --- a/SubProject/FED0000/FED0000.csproj +++ b/SubProject/FED0000/FED0000.csproj @@ -35,6 +35,10 @@ false + + False + ..\..\DLL\arControl.Net4.dll + ..\..\DLL\ArSetting.Net4.dll @@ -140,10 +144,6 @@ - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {db5ee9c8-eacf-4231-877e-b9dfd7a714de} YARTE diff --git a/SubProject/FEQ0000/FEQ0000.csproj b/SubProject/FEQ0000/FEQ0000.csproj index 5483803..666daaa 100644 --- a/SubProject/FEQ0000/FEQ0000.csproj +++ b/SubProject/FEQ0000/FEQ0000.csproj @@ -35,6 +35,10 @@ false + + False + ..\..\DLL\arControl.Net4.dll + ..\..\DLL\ArSetting.Net4.dll @@ -555,10 +559,6 @@ - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {db5ee9c8-eacf-4231-877e-b9dfd7a714de} YARTE diff --git a/SubProject/FOW0000/App.config b/SubProject/FOW0000/App.config deleted file mode 100644 index abc0540..0000000 --- a/SubProject/FOW0000/App.config +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/SubProject/FOW0000/FOW0000.csproj b/SubProject/FOW0000/FOW0000.csproj deleted file mode 100644 index 8312093..0000000 --- a/SubProject/FOW0000/FOW0000.csproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - Debug - AnyCPU - {8D593B42-1EAE-4D5A-A2C1-0361E2C43A80} - WinExe - FOW0000 - FOW0000 - v4.6 - 512 - true - true - - - - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\..\packages\CefSharp.Common.87.1.132\lib\net452\CefSharp.dll - - - ..\..\packages\CefSharp.Common.87.1.132\lib\net452\CefSharp.Core.dll - - - ..\..\packages\CefSharp.WinForms.87.1.132\lib\net452\CefSharp.WinForms.dll - - - ..\..\packages\HtmlAgilityPack.CssSelectors.1.0.2\lib\net45\HtmlAgilityPack.dll - - - ..\..\packages\HtmlAgilityPack.CssSelectors.1.0.2\lib\net45\HtmlAgilityPack.CssSelectors.dll - - - ..\..\packages\Microsoft.Owin.4.1.1\lib\net45\Microsoft.Owin.dll - - - ..\..\packages\Microsoft.Owin.Host.HttpListener.4.1.1\lib\net45\Microsoft.Owin.Host.HttpListener.dll - - - ..\..\packages\Microsoft.Owin.Hosting.4.1.1\lib\net45\Microsoft.Owin.Hosting.dll - - - ..\..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1449.0\lib\net40\Microsoft.ReportViewer.Common.dll - - - ..\..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1449.0\lib\net40\Microsoft.ReportViewer.DataVisualization.dll - - - ..\..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1449.0\lib\net40\Microsoft.ReportViewer.Design.dll - - - ..\..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1449.0\lib\net40\Microsoft.ReportViewer.ProcessingObjectModel.dll - - - ..\..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1449.0\lib\net40\Microsoft.ReportViewer.WinForms.dll - - - ..\..\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll - - - ..\..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\..\packages\Owin.1.0\lib\net40\Owin.dll - - - - - ..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll - - - ..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll - - - ..\..\packages\Microsoft.AspNet.WebApi.Owin.5.2.7\lib\net45\System.Web.Http.Owin.dll - - - ..\..\packages\Microsoft.AspNet.WebApi.SelfHost.5.2.7\lib\net45\System.Web.Http.SelfHost.dll - - - - - - - - - - - - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - 이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. 해당 패키지를 다운로드하려면 NuGet 패키지 복원을 사용하십시오. 자세한 내용은 http://go.microsoft.com/fwlink/?LinkID=322105를 참조하십시오. 누락된 파일은 {0}입니다. - - - - - - - - \ No newline at end of file diff --git a/SubProject/FOW0000/Program.cs b/SubProject/FOW0000/Program.cs deleted file mode 100644 index c484699..0000000 --- a/SubProject/FOW0000/Program.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace FOW0000 -{ - static class Program - { - /// - /// 해당 애플리케이션의 주 진입점입니다. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new fHappyNarae()); - } - } -} diff --git a/SubProject/FOW0000/Properties/AssemblyInfo.cs b/SubProject/FOW0000/Properties/AssemblyInfo.cs deleted file mode 100644 index 81880f8..0000000 --- a/SubProject/FOW0000/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 -// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 -// 이러한 특성 값을 변경하세요. -[assembly: AssemblyTitle("FOW0000")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("FOW0000")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 -// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 -// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. -[assembly: ComVisible(false)] - -// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. -[assembly: Guid("8d593b42-1eae-4d5a-a2c1-0361e2c43a80")] - -// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. -// -// 주 버전 -// 부 버전 -// 빌드 번호 -// 수정 버전 -// -// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 -// 기본값으로 할 수 있습니다. -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SubProject/FOW0000/Properties/Resources.Designer.cs b/SubProject/FOW0000/Properties/Resources.Designer.cs deleted file mode 100644 index de988fc..0000000 --- a/SubProject/FOW0000/Properties/Resources.Designer.cs +++ /dev/null @@ -1,63 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 도구를 사용하여 생성되었습니다. -// 런타임 버전:4.0.30319.42000 -// -// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 -// 이러한 변경 내용이 손실됩니다. -// -//------------------------------------------------------------------------------ - -namespace FOW0000.Properties { - using System; - - - /// - /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. - /// - // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder - // 클래스에서 자동으로 생성되었습니다. - // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 ResGen을 - // 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FOW0000.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 - /// 재정의합니다. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - } -} diff --git a/SubProject/FOW0000/Properties/Resources.resx b/SubProject/FOW0000/Properties/Resources.resx deleted file mode 100644 index ffecec8..0000000 --- a/SubProject/FOW0000/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/SubProject/FOW0000/Properties/Settings.Designer.cs b/SubProject/FOW0000/Properties/Settings.Designer.cs deleted file mode 100644 index 17e7439..0000000 --- a/SubProject/FOW0000/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 도구를 사용하여 생성되었습니다. -// 런타임 버전:4.0.30319.42000 -// -// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 -// 이러한 변경 내용이 손실됩니다. -// -//------------------------------------------------------------------------------ - -namespace FOW0000.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - } -} diff --git a/SubProject/FOW0000/Properties/Settings.settings b/SubProject/FOW0000/Properties/Settings.settings deleted file mode 100644 index abf36c5..0000000 --- a/SubProject/FOW0000/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/SubProject/FOW0000/SqlServerTypes/Loader.cs b/SubProject/FOW0000/SqlServerTypes/Loader.cs deleted file mode 100644 index 92f9384..0000000 --- a/SubProject/FOW0000/SqlServerTypes/Loader.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.IO; -using System.Runtime.InteropServices; - -namespace SqlServerTypes -{ - /// - /// Utility methods related to CLR Types for SQL Server - /// - public class Utilities - { - [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] - private static extern IntPtr LoadLibrary(string libname); - - /// - /// Loads the required native assemblies for the current architecture (x86 or x64) - /// - /// - /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications - /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications. - /// - public static void LoadNativeAssemblies(string rootApplicationPath) - { - var nativeBinaryPath = IntPtr.Size > 4 - ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\") - : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\"); - - LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll"); - LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll"); - } - - private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName) - { - var path = Path.Combine(nativeBinaryPath, assemblyName); - var ptr = LoadLibrary(path); - if (ptr == IntPtr.Zero) - { - throw new Exception(string.Format( - "Error loading {0} (ErrorCode: {1})", - assemblyName, - Marshal.GetLastWin32Error())); - } - } - } -} \ No newline at end of file diff --git a/SubProject/FOW0000/SqlServerTypes/readme.htm b/SubProject/FOW0000/SqlServerTypes/readme.htm deleted file mode 100644 index f76d0bf..0000000 --- a/SubProject/FOW0000/SqlServerTypes/readme.htm +++ /dev/null @@ -1,61 +0,0 @@ - - - - Microsoft.SqlServer.Types - - - -
-

Action required to load native assemblies

-

- To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial140.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr120.dll is also included in case the C++ runtime is not installed. -

-

- You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture). -

-

ASP.NET Web Sites

-

- For ASP.NET Web Sites, add the following block of code to the code behind file of the Web Form where you have added Report Viewer Control: -

-    Default.aspx.cs:
-        
-    public partial class _Default : System.Web.UI.Page
-    {
-        static bool _isSqlTypesLoaded = false;
-
-        public _Default()
-        {
-            if (!_isSqlTypesLoaded)
-            {
-                SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~"));
-                _isSqlTypesLoaded = true;
-            }
-            
-        }
-    }
-
-

-

ASP.NET Web Applications

-

- For ASP.NET Web Applications, add the following line of code to the Application_Start method in Global.asax.cs: -

    SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));
-

-

Desktop Applications

-

- For desktop applications, add the following line of code to run before any spatial operations are performed: -

    SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);
-

-
- - \ No newline at end of file diff --git a/SubProject/FOW0000/SqlServerTypes/x64/SqlServerSpatial140.dll b/SubProject/FOW0000/SqlServerTypes/x64/SqlServerSpatial140.dll deleted file mode 100644 index 6e443bf..0000000 Binary files a/SubProject/FOW0000/SqlServerTypes/x64/SqlServerSpatial140.dll and /dev/null differ diff --git a/SubProject/FOW0000/SqlServerTypes/x64/msvcr120.dll b/SubProject/FOW0000/SqlServerTypes/x64/msvcr120.dll deleted file mode 100644 index 67937ce..0000000 Binary files a/SubProject/FOW0000/SqlServerTypes/x64/msvcr120.dll and /dev/null differ diff --git a/SubProject/FOW0000/SqlServerTypes/x86/SqlServerSpatial140.dll b/SubProject/FOW0000/SqlServerTypes/x86/SqlServerSpatial140.dll deleted file mode 100644 index 590a22a..0000000 Binary files a/SubProject/FOW0000/SqlServerTypes/x86/SqlServerSpatial140.dll and /dev/null differ diff --git a/SubProject/FOW0000/SqlServerTypes/x86/msvcr120.dll b/SubProject/FOW0000/SqlServerTypes/x86/msvcr120.dll deleted file mode 100644 index 23447f5..0000000 Binary files a/SubProject/FOW0000/SqlServerTypes/x86/msvcr120.dll and /dev/null differ diff --git a/SubProject/FOW0000/packages.config b/SubProject/FOW0000/packages.config deleted file mode 100644 index 3c00ecb..0000000 --- a/SubProject/FOW0000/packages.config +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/SubProject/FPJ0000/FPJ0000.csproj b/SubProject/FPJ0000/FPJ0000.csproj index 4ace6f7..6a74bc7 100644 --- a/SubProject/FPJ0000/FPJ0000.csproj +++ b/SubProject/FPJ0000/FPJ0000.csproj @@ -42,6 +42,10 @@ ..\..\DLL\arCommUtil.dll + + False + ..\..\DLL\arControl.Net4.dll + ..\..\DLL\ArSetting.Net4.dll @@ -811,10 +815,6 @@
- - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {db5ee9c8-eacf-4231-877e-b9dfd7a714de} YARTE diff --git a/SubProject/FPM0000/FPM0000.csproj b/SubProject/FPM0000/FPM0000.csproj index d8fa570..1cab9a3 100644 --- a/SubProject/FPM0000/FPM0000.csproj +++ b/SubProject/FPM0000/FPM0000.csproj @@ -35,6 +35,10 @@ false + + False + ..\..\DLL\arControl.Net4.dll + ..\..\DLL\ArSetting.Net4.dll @@ -127,10 +131,6 @@ - - {f31c242c-1b15-4518-9733-48558499fe4b} - arControl - {26982882-c1ff-45f8-861c-d67558725ff1} FCM0000 diff --git a/SubProject/WebServer/App.config b/SubProject/WebServer/App.config deleted file mode 100644 index d16044d..0000000 --- a/SubProject/WebServer/App.config +++ /dev/null @@ -1,138 +0,0 @@ - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { - "basicGoods": [ - { - "id": "1234561", - "name": "Mineral Water 550ml", - "barcode": "12421432143214321", - "price": "2.00", - "num": "1", - "amount": "2.00" - }, - { - "id": "1234562", - "name": "Herbal tea 300ml", - "barcode": "12421432143214322", - "price": "3.00", - "num": "2", - "amount": "6.00" - }, - { - "id": "1234563", - "name": "Delicious potato chips", - "barcode": "12421432143214323", - "price": "7.00", - "num": "4", - "amount": "28.00" - }, - { - "id": "1234564", - "name": "Specially delicious egg rolls", - "barcode": "12421432143214324", - "price": "8.50", - "num": "3", - "amount": "25.50" - } - ], - "basicProgress": [ - { - "key": "1", - "time": "2017-10-01 14:10", - "rate": "Contact Clients", - "status": "Processing", - "operator": "Pickup Assistant ID1234", - "cost": "5mins" - }, - { - "key": "2", - "time": "2017-10-01 14:05", - "rate": "Pickup Guy Departs", - "status": "Success", - "operator": "Pickup Assistant ID1234", - "cost": "1h" - }, - { - "key": "3", - "time": "2017-10-01 13:05", - "rate": "Pick-up person takes orders", - "status": "Success", - "operator": "Pickup Assistant ID1234", - "cost": "5mins" - }, - { - "key": "4", - "time": "2017-10-01 13:00", - "rate": "Apply For Approval", - "status": "Success", - "operator": "system", - "cost": "1h" - }, - { - "key": "5", - "time": "2017-10-01 12:00", - "rate": "Initiated a Return Request", - "status": "Success", - "operator": "user", - "cost": "5mins" - } - ] -} - - - - diff --git a/SubProject/WebServer/Auth.cs b/SubProject/WebServer/Auth.cs deleted file mode 100644 index 2a867be..0000000 --- a/SubProject/WebServer/Auth.cs +++ /dev/null @@ -1,27 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Auth - { - public int idx { get; set; } - public string user { get; set; } - public string gcode { get; set; } - public Nullable purchase { get; set; } - public Nullable holyday { get; set; } - public Nullable project { get; set; } - public Nullable jobreport { get; set; } - public Nullable savecost { get; set; } - public Nullable scheapp { get; set; } - } -} diff --git a/SubProject/WebServer/BaseController.cs b/SubProject/WebServer/BaseController.cs deleted file mode 100644 index 5470288..0000000 --- a/SubProject/WebServer/BaseController.cs +++ /dev/null @@ -1,315 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Web.Http; -using agi = HtmlAgilityPack; - - -namespace WebServer -{ - public struct MethodResult : IEquatable - { - public string Content; - public byte[] Contentb; - public string Redirecturl; - - public override bool Equals(object obj) - { - if (!(obj is MethodResult)) - return false; - - return Equals((MethodResult)obj); - } - - public override int GetHashCode() - { - if (Contentb == null) - return Content.GetHashCode() ^ Redirecturl.GetHashCode(); - else - return Content.GetHashCode() ^ Redirecturl.GetHashCode() ^ Contentb.GetHexString().GetHashCode(); - - } - - public bool Equals(MethodResult other) - { - if (Content != other.Content) - return false; - - if (Redirecturl != other.Redirecturl) - return false; - - return Contentb == other.Contentb; - } - - - public static bool operator ==(MethodResult point1, MethodResult point2) - { - return point1.Equals(point2); - } - - public static bool operator !=(MethodResult point1, MethodResult point2) - { - return !point1.Equals(point2); - } - } - - sealed class PostRequest : Attribute - { - - } - - public class BaseController : ApiController - { - public string QueryString { get; set; } - public string PostData { get; set; } - public string ParamData { get; set; } - - protected string Trig_Ctrl { get; set; } - protected string Trig_func { get; set; } - - public PageModel GetGlobalModel() - { - var config = RequestContext.Configuration; - var routeData = config.Routes.GetRouteData(Request).Values.ToList(); - var name_ctrl = routeData[0].Value.ToString(); - var name_action = routeData[1].Value.ToString(); - - - return new PageModel - { - RouteData = routeData, - urlcontrol = name_ctrl, - urlaction = name_action - }; - } - - - public MethodResult View() - { - var config = RequestContext.Configuration; - if (config != null) - { - var routeData = config.Routes.GetRouteData(Request).Values.ToList(); - var name_ctrl = routeData[0].Value.ToString(); - var name_action = routeData[1].Value.ToString(); - return View(name_ctrl, name_action); - } - else - { - return View(Trig_Ctrl + "/" + Trig_func); - } - - } - - public static void ApplyCommonValue(ref string contents) - { - //메뉴 푸터 - 개발자 정보 - - } - - public MethodResult View(string Controller, string Action, Boolean applydefaultview = true) - { - var retval = new MethodResult(); - - if (Action.IndexOf(".") == -1) - Action += ".html"; //기본값 html 을 넣는다 - - var file = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "View", Controller, Action); - - var contents = string.Empty; - - if (System.IO.File.Exists(file) == false) - { - //error 폴더의 404.html 파일을 찾는다. - var file404 = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "View", "Error", "404.html"); - if (System.IO.File.Exists(file404)) - { - contents = System.IO.File.ReadAllText(file404, System.Text.Encoding.UTF8); - contents = contents.Replace("{errorfilename}", file); - } - - else - contents = "ERROR CODE - 404 (NOT FOUND)
" + file; - - Console.WriteLine("view File not found : " + file); - } - else - { - Console.WriteLine($"View filename :{file}"); - //디폴트뷰의 내용을 가져온다 (있다면 적용한다) - if (applydefaultview) - { - //뷰파일이 있다면 그것을 적용한다 - var laytoutfile = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "View", "Layout", "default.html"); - if (System.IO.File.Exists(laytoutfile)) - contents = System.IO.File.ReadAllText(laytoutfile, System.Text.Encoding.UTF8); - - var fileContents = System.IO.File.ReadAllText(file, System.Text.Encoding.UTF8); - if (String.IsNullOrEmpty(contents)) contents = fileContents; - else contents = contents.Replace("{contents}", fileContents); - } - else - { - //해당 뷰를 가져와서 반환한다 - contents = System.IO.File.ReadAllText(file, System.Text.Encoding.UTF8); - } - } - - agi.HtmlDocument doc = new agi.HtmlDocument(); - doc.LoadHtml(contents); - - //파일참조 태그를 모두 가져옴 - var tags_include = doc.QuerySelectorAll("include"); - foreach (var item in tags_include) - { - var filename = item.InnerText; - - var load_file = String.Concat(AppDomain.CurrentDomain.BaseDirectory, "View", filename.Replace("/", "\\")); - load_file = load_file.Replace("\\\\", "\\"); - String fileContents;// = String.Empty; - - Console.WriteLine("## " + item.OuterHtml); - if (System.IO.File.Exists(load_file)) - { - fileContents = System.IO.File.ReadAllText(load_file, System.Text.Encoding.UTF8); - } - else - { - fileContents = string.Format("
#include Error:nofile:{0}
", - filename); //파일이없다면 해당 부분은 오류 처리한다. - } - contents = contents.Replace(item.OuterHtml, fileContents); - } - - //콘텐츠내의 file 을 찾아서 처리한다. ; 정규식의 처리속도가 느릴듯하여, 그냥 처리해본다 - - - //시스템변수 replace - contents = contents.Replace("{param_control}", Trig_Ctrl); - contents = contents.Replace("{param_function}", Trig_func); - - retval.Content = contents; - return retval; - } - public MethodResult View(string viewfilename, Boolean applydefaultview = true) - { - var retval = new MethodResult(); - - if (viewfilename.IndexOf(".") == -1) - viewfilename += ".html"; //기본값 html 을 넣는다 - - var file = AppDomain.CurrentDomain.BaseDirectory + "View" + viewfilename.Replace("/", "\\"); - - var contents = string.Empty; - - if (System.IO.File.Exists(file) == false) - { - //error 폴더의 404.html 파일을 찾는다. - var file404 = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "View", "Error", "404.html"); - if (System.IO.File.Exists(file404)) - { - contents = System.IO.File.ReadAllText(file404, System.Text.Encoding.UTF8); - contents = contents.Replace("{errorfilename}", file); - } - - else - contents = "ERROR CODE - 404 (NOT FOUND)
" + file; - - Console.WriteLine("view File not found : " + file); - } - else - { - //디폴트뷰의 내용을 가져온다 (있다면 적용한다) - if (applydefaultview) - { - //뷰파일이 있다면 그것을 적용한다 - var laytoutfile = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "View", "Layout", "default.html"); - if (System.IO.File.Exists(laytoutfile)) - contents = System.IO.File.ReadAllText(laytoutfile, System.Text.Encoding.UTF8); - - var fileContents = System.IO.File.ReadAllText(file, System.Text.Encoding.UTF8); - if (String.IsNullOrEmpty(contents)) contents = fileContents; - else contents = contents.Replace("{contents}", fileContents); - } - else - { - //해당 뷰를 가져와서 반환한다 - contents = System.IO.File.ReadAllText(file, System.Text.Encoding.UTF8); - } - } - - agi.HtmlDocument doc = new agi.HtmlDocument(); - doc.LoadHtml(contents); - - //파일참조 태그를 모두 가져옴 - var tags_include = doc.QuerySelectorAll("include"); - foreach (var item in tags_include) - { - var filename = item.InnerText; - - var load_file = String.Concat(AppDomain.CurrentDomain.BaseDirectory, "View", filename.Replace("/", "\\")); - load_file = load_file.Replace("\\\\", "\\"); - String fileContents;// = String.Empty; - - Console.WriteLine("## " + item.OuterHtml); - if (System.IO.File.Exists(load_file)) - { - fileContents = System.IO.File.ReadAllText(load_file, System.Text.Encoding.UTF8); - } - else - { - fileContents = string.Format("
#include Error:nofile:{0}
", - filename); //파일이없다면 해당 부분은 오류 처리한다. - } - contents = contents.Replace(item.OuterHtml, fileContents); - } - - - - //콘텐츠내의 file 을 찾아서 처리한다. ; 정규식의 처리속도가 느릴듯하여, 그냥 처리해본다 - while (true) - { - var fileindexS = contents.IndexOf("{file:"); - if (fileindexS == -1) break; - var fileindexE = contents.IndexOf("}", fileindexS); - if (fileindexE == -1) break; - if (fileindexE <= fileindexS + 5) break; - var inlinestr = contents.Substring(fileindexS, fileindexE - fileindexS + 1); - var filename = contents.Substring(fileindexS + 7, fileindexE - fileindexS - 8); - var load_file = String.Concat(AppDomain.CurrentDomain.BaseDirectory, "View", "\\", filename.Replace("/", "\\")); - load_file = load_file.Replace("\\\\", "\\"); - String fileContents;// = String.Empty; - - Console.WriteLine("file impot : " + load_file); - if (System.IO.File.Exists(load_file)) - { - fileContents = System.IO.File.ReadAllText(load_file, System.Text.Encoding.UTF8); - } - else - { - fileContents = "{FileNotFound:" + filename + "}"; //파일이없다면 해당 부분은 오류 처리한다. - } - contents = contents.Replace(inlinestr, fileContents); - } - - //시스템변수 replace - contents = contents.Replace("{param_control}", Trig_Ctrl); - contents = contents.Replace("{param_function}", Trig_func); - - retval.Content = contents; - return retval; - } - protected class Parameter - { - public string Key { get; set; } - public string Value { get; set; } - public Parameter(string key_, string value_) - { - Key = key_; - Value = value_; - } - } - - } -} diff --git a/SubProject/WebServer/Common.cs b/SubProject/WebServer/Common.cs deleted file mode 100644 index aabb606..0000000 --- a/SubProject/WebServer/Common.cs +++ /dev/null @@ -1,28 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Common - { - public int idx { get; set; } - public string gcode { get; set; } - public string grp { get; set; } - public string code { get; set; } - public string svalue { get; set; } - public Nullable ivalue { get; set; } - public Nullable fvalue { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/Controller/APIController.cs b/SubProject/WebServer/Controller/APIController.cs deleted file mode 100644 index 04a438b..0000000 --- a/SubProject/WebServer/Controller/APIController.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; -using Newtonsoft.Json; - -namespace WebServer -{ - public class APIController : BaseController - { - [HttpGet] - public HttpResponseMessage Getdata() - { - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - var sql = string.Empty; - var p_sql = getParams.Where(t => t.Key == "sql").FirstOrDefault(); - if (p_sql.Key.isEmpty() == false) sql = p_sql.Value; - else - { - var p_table = getParams.Where(t => t.Key == "table").FirstOrDefault(); - var p_gcode = getParams.Where(t => t.Key == "gcode").FirstOrDefault(); - var p_where = getParams.Where(t => t.Key == "w").FirstOrDefault(); - var p_order = getParams.Where(t => t.Key == "o").FirstOrDefault(); - sql = "select * from {0} where gcode = '{gcode}'"; - sql = string.Format(sql, p_table.Value, p_gcode.Value); - if (p_where.Key != null) sql += " and " + p_where.Value; - if (p_order.Key != null) sql += " order by " + p_order.Value; - } - - - if (FCOMMON.info.Login.gcode == null) - FCOMMON.info.Login.gcode = "EET1P"; - sql = sql.Replace("{gcode}", FCOMMON.info.Login.gcode); - Console.WriteLine($"Getdata sql={sql}"); - var cs = "Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"; - var cn = new System.Data.SqlClient.SqlConnection(cs); - var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); - var da = new System.Data.SqlClient.SqlDataAdapter(cmd); - var dt = new System.Data.DataTable(); - da.Fill(dt); - da.Dispose(); - cmd.Dispose(); - cn.Dispose(); - - var txtjson = JsonConvert.SerializeObject(dt, new JsonSerializerSettings - { - NullValueHandling = NullValueHandling.Ignore - }); - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - txtjson, - System.Text.Encoding.UTF8, - "application/json") - }; - - return resp; - - - } - - [HttpGet] - public HttpResponseMessage Gettable() - { - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - var sql = string.Empty; - var p_sql = getParams.Where(t => t.Key == "sql").FirstOrDefault(); - if (p_sql.Key.isEmpty() == false) sql = p_sql.Value; - else - { - var p_table = getParams.Where(t => t.Key == "table").FirstOrDefault(); - var p_gcode = getParams.Where(t => t.Key == "gcode").FirstOrDefault(); - var p_where = getParams.Where(t => t.Key == "w").FirstOrDefault(); - var p_order = getParams.Where(t => t.Key == "o").FirstOrDefault(); - sql = "select * from {0} where gcode = '{gcode}'"; - sql = string.Format(sql, p_table.Value, p_gcode.Value); - if (p_where.Key != null) sql += " and " + p_where.Value; - if (p_order.Key != null) sql += " order by " + p_order.Value; - } - - - if (FCOMMON.info.Login.gcode == null) - FCOMMON.info.Login.gcode = "EET1P"; - sql = sql.Replace("{gcode}", FCOMMON.info.Login.gcode); - - Console.WriteLine($"gettable sql={sql}"); - var cs = "Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"; - var cn = new System.Data.SqlClient.SqlConnection(cs); - var cmd = new System.Data.SqlClient.SqlCommand(sql, cn); - var da = new System.Data.SqlClient.SqlDataAdapter(cmd); - var dt = new System.Data.DataTable(); - da.Fill(dt); - da.Dispose(); - cmd.Dispose(); - cn.Dispose(); - - var txtjson = JsonConvert.SerializeObject(dt, new JsonSerializerSettings - { - NullValueHandling = NullValueHandling.Ignore - }); - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - txtjson, - System.Text.Encoding.UTF8, - "application/json") - }; - - return resp; - - - } - - - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var contents = result.Content; - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/CommonController.cs b/SubProject/WebServer/Controller/CommonController.cs deleted file mode 100644 index e4e46ea..0000000 --- a/SubProject/WebServer/Controller/CommonController.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class CommonController : BaseController - { - [HttpGet] - public HttpResponseMessage Index() - { - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - var db = new EEEntities(); - - var sb = new System.Text.StringBuilder(); - sb.AppendLine("List"); - sb.AppendLine("Paramter Gcode"); - sb.AppendLine("Paramter Grp"); - - //System.Web.Http.Results.JsonResult - //var json = JsonConvert.SerializeObject(liast); - return new HttpResponseMessage() - { - Content = new StringContent( - sb.ToString(), - System.Text.Encoding.UTF8, - "text/html") - }; - - - } - - [HttpGet] - public HttpResponseMessage List() - { - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - var db = new EEEntities(); - - var vGcode = "EET1P"; - var vGrp = "99"; - var liast = db.Common.Where(t => t.gcode == vGcode && t.grp == vGrp).OrderBy(t => t.code).ToArray(); - - //System.Web.Http.Results.JsonResult - var json = JsonConvert.SerializeObject(liast); - return new HttpResponseMessage() - { - Content = new StringContent( - json.ToString(), - System.Text.Encoding.UTF8, - "application/json") - }; - - - } - - - } -} diff --git a/SubProject/WebServer/Controller/CustomerController.cs b/SubProject/WebServer/Controller/CustomerController.cs deleted file mode 100644 index f8006ba..0000000 --- a/SubProject/WebServer/Controller/CustomerController.cs +++ /dev/null @@ -1,199 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer.OWIN - -{ - public class CustomerController : BaseController - { - - // PUT api/values/5 - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpGet] - public string Test() - { - return "test"; - } - - [HttpGet] - public HttpResponseMessage Find() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var rows = db.Customs.Where(t => t.gcode == FCOMMON.info.Login.gcode).OrderBy(t => t.name); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.name2}"); - tbody.AppendLine($"{item.name}"); - //tbody.AppendLine($"{item.model}"); - - //if (item.price == null) - // tbody.AppendLine($"--"); - //else - //{ - // var price = (double)item.price / 1000.0; - - // tbody.AppendLine($"{price.ToString("N0")}"); - //} - - - //tbody.AppendLine($"{item.manu}"); - //tbody.AppendLine($"{item.supply}"); - - //if (item.remark.Length > 10) - // tbody.AppendLine($"{item.remark.Substring(0, 10)}..."); - //else - // tbody.AppendLine($"{item.remark}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - //if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var sd = DateTime.Now.ToString("yyyy-MM-01"); - var rows = db.Customs.AsNoTracking().Where(t => t.gcode == FCOMMON.info.Login.gcode).OrderBy(t=>t.name); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.grp}"); - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.name2}"); - tbody.AppendLine($"{item.tel}"); - tbody.AppendLine($"{item.fax}"); - tbody.AppendLine($"{item.email}"); - tbody.AppendLine($"{item.address}"); - - - - if (string.IsNullOrEmpty( item.memo)==false && item.memo.Length > 10) tbody.AppendLine($"{item.memo.Substring(0, 10)}..."); - else tbody.AppendLine($"{item.memo}"); - - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/HomeController.cs b/SubProject/WebServer/Controller/HomeController.cs deleted file mode 100644 index 37f054a..0000000 --- a/SubProject/WebServer/Controller/HomeController.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class HomeController : BaseController - { - [HttpPost] - public void Index([FromBody] string value) - { - - } - - // PUT api/values/5 - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpGet] - public string Test() - { - return Properties.Settings.Default.json; - } - - [HttpGet] - public HttpResponseMessage Login() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var contents = result.Content; - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - var contents = string.Empty; - - //기본값을 찾아서 없애줘야한다 - Dictionary list = new Dictionary(); - list.Add("공용코드 목록", "/Common/List/?Gcode=EET1P&Grp=99"); - list.Add("사용자 목록", "/User/List/?Gcode=EET1P"); - - foreach (var item in list) - { - contents += $"{item.Key}"; - } - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/ItemController.cs b/SubProject/WebServer/Controller/ItemController.cs deleted file mode 100644 index cd0e861..0000000 --- a/SubProject/WebServer/Controller/ItemController.cs +++ /dev/null @@ -1,148 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class ItemController : BaseController - { - - - // PUT api/values/5 - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpGet] - public string Test() - { - return "test"; - } - - [HttpGet] - public HttpResponseMessage Find() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var rows = db.vFindSID.Where(t => t.sid.Contains(searchkey) || t.name.Contains(searchkey) || t.manu.Contains(searchkey) || t.model.Contains(searchkey)); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.Location}"); - tbody.AppendLine($"{item.sid}"); - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.model}"); - - if (item.price == null) - tbody.AppendLine($"--"); - else - { - var price = (double)item.price / 1000.0; - - tbody.AppendLine($"{price.ToString("N0")}"); - } - - - tbody.AppendLine($"{item.manu}"); - tbody.AppendLine($"{item.supply}"); - - if (item.remark.Length > 10) - tbody.AppendLine($"{item.remark.Substring(0, 10)}..."); - else - tbody.AppendLine($"{item.remark}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var contents = result.Content; - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/JobreportController.cs b/SubProject/WebServer/Controller/JobreportController.cs deleted file mode 100644 index 1b1d1a5..0000000 --- a/SubProject/WebServer/Controller/JobreportController.cs +++ /dev/null @@ -1,290 +0,0 @@ -using Microsoft.Owin; -using System; -using System.Linq; -using System.Net.Http; -using System.Web; -using System.Web.Http; - -namespace WebServer -{ - public class JobreportController : BaseController - { - - - // PUT api/values/5 - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpPost] - public string Add(FormCollection tbpdate) - { - var vals = Request.GetQueryNameValuePairs(); - return string.Empty; - } - - - [HttpGet] - public HttpResponseMessage Add() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View("/jobreport/add"); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - //if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var sd = DateTime.Now.ToString("yyyy-MM-01"); - var ed = DateTime.Now.ToShortDateString(); - var rows = db.vJobReportForUser.AsNoTracking().Where(t => t.gcode == FCOMMON.info.Login.gcode && t.id == FCOMMON.info.Login.no && t.pdate.CompareTo(sd) >= 0 && t.pdate.CompareTo(ed) <= 1).OrderByDescending(t => t.pdate); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - - tbody.AppendLine($"{item.pdate.Substring(5)}"); - tbody.AppendLine($"{item.ww}"); - tbody.AppendLine($"{item.name}"); - - if (item.status == "진행 중" || item.status.EndsWith("%")) - tbody.AppendLine($"{item.status}"); - else - tbody.AppendLine($"{item.status}"); - - tbody.AppendLine($"{item.type}"); - tbody.AppendLine($"{item.projectName}"); - tbody.AppendLine($"{item.hrs}"); - tbody.AppendLine($"{item.ot}"); - - tbody.AppendLine(""); - tbody.AppendLine(item.description); - tbody.AppendLine(""); - - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage Find() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var sd = DateTime.Now.ToShortDateString(); - var rows = db.vJobReportForUser.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.pdate.CompareTo(sd) == 0).OrderBy(t => t.name); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.pdate}"); - tbody.AppendLine($"{item.status}"); - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.projectName}"); - tbody.AppendLine($"{item.hrs}"); - tbody.AppendLine($"{item.ot}"); - tbody.AppendLine($"{item.description}"); - - - if (item.description.Length > 10) - tbody.AppendLine($"{item.description.Substring(0, 10)}..."); - else - tbody.AppendLine($"{item.description}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - //if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var sd = DateTime.Now.ToString("yyyy-MM-01"); - var ed = DateTime.Now.ToShortDateString(); - var rows = db.vJobReportForUser.AsNoTracking().Where(t => t.gcode == FCOMMON.info.Login.gcode && t.id == FCOMMON.info.Login.no && t.pdate.CompareTo(sd) >= 0 && t.pdate.CompareTo(ed) <= 1).OrderByDescending(t => t.pdate); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - - tbody.AppendLine($"{item.pdate.Substring(5)}"); - tbody.AppendLine($"{item.ww}"); - tbody.AppendLine($"{item.name}"); - - if (item.status == "진행 중" || item.status.EndsWith("%")) - tbody.AppendLine($"{item.status}"); - else - tbody.AppendLine($"{item.status}"); - - tbody.AppendLine($"{item.type}"); - tbody.AppendLine($"{item.projectName}"); - tbody.AppendLine($"{item.hrs}"); - tbody.AppendLine($"{item.ot}"); - - tbody.AppendLine(""); - tbody.AppendLine(item.description); - tbody.AppendLine(""); - - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/ProjectController.cs b/SubProject/WebServer/Controller/ProjectController.cs deleted file mode 100644 index 9ccc627..0000000 --- a/SubProject/WebServer/Controller/ProjectController.cs +++ /dev/null @@ -1,467 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class ProjectController : BaseController - { - - - // PUT api/values/5 - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpGet] - public string Test() - { - return "test"; - } - - [HttpGet] - public HttpResponseMessage Find() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var rows = db.Projects.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.status.Contains("완료") == false).OrderByDescending(t => t.pdate).Take(50); - - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.pdate}"); - tbody.AppendLine($"{item.name}"); - - - //if (item.description.Length > 10) - // tbody.AppendLine($"{item.description.Substring(0, 10)}..."); - //else - // tbody.AppendLine($"{item.description}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - - - [HttpGet] - public HttpResponseMessage ScheduleConfirm(int? id) - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - var project = (int)id; - - //데이터를 조회해서 표시를 해준다. - var db = new EEEntities(); - var prjinfo = db.Projects.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.idx == project).FirstOrDefault(); - var schrows = db.EETGW_ProjectsSchedule.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.project == project).OrderByDescending(t => t.project).OrderByDescending(t => t.no).OrderBy(t => t.seq); - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - System.Text.StringBuilder tinfo = new System.Text.StringBuilder(); - //프로젝트정보를 표시합니다. - tinfo.AppendLine(""); - tinfo.AppendLine(string.Format("{0}", prjinfo.idx)); - tinfo.AppendLine(string.Format("{0}", prjinfo.status)); - tinfo.AppendLine(string.Format("{0}", prjinfo.progress)); - tinfo.AppendLine(string.Format("{0}", prjinfo.name)); - tinfo.AppendLine(string.Format("{0}", prjinfo.reqstaff)); - tinfo.AppendLine(string.Format("{0}", prjinfo.userManager)); - tinfo.AppendLine(string.Format("{0}", prjinfo.orderno)); - tinfo.AppendLine(""); - - - var contents = result.Content.Replace("{search}", ""); - contents = contents.Replace("{tableinfo}", tinfo.ToString()); - - tinfo.Clear(); - foreach (var item in schrows) - { - tinfo.AppendLine(""); - tinfo.AppendLine(string.Format("{0}", item.no)); - tinfo.AppendLine(string.Format("{0}", item.seq)); - tinfo.AppendLine(string.Format("{0}", item.title)); - tinfo.AppendLine(string.Format("{0}", item.sw)); - tinfo.AppendLine(string.Format("{0}", item.ew)); - tinfo.AppendLine(string.Format("{0}", item.swa)); - tinfo.AppendLine(string.Format("{0}", item.ewa)); - tinfo.AppendLine(string.Format("{0}", item.progress)); - tinfo.AppendLine(string.Format("{0}", item.uid)); - tinfo.AppendLine(string.Format("{0}", item.memo)); - tinfo.AppendLine(""); - } - contents = contents.Replace("{scheinfo}", tinfo.ToString()); - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - //if (searchkey.isEmpty() == false) - { - - var db = new EEEntities(); - - - var rows = db.Projects.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.status.Contains("완료") == false).OrderByDescending(t => t.pdate).Take(50); - - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.idx}"); - tbody.AppendLine($"{item.status}"); - tbody.AppendLine($"{item.progress}"); - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.reqstaff}"); - tbody.AppendLine($"{item.userManager}"); - tbody.AppendLine($"{item.cnt}"); - tbody.AppendLine($"{item.costo}"); - tbody.AppendLine($"{item.costn}"); - tbody.AppendLine($"{item.costo - item.costn}"); - tbody.AppendLine($"{item.orderno}"); - if (item.memo != null) - tbody.AppendLine($"{item.memo}"); - else - tbody.AppendLine($" "); - - - - //if (item.description.Length > 10) - // tbody.AppendLine($"{item.description.Substring(0, 10)}..."); - //else - // tbody.AppendLine($"{item.description}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage detail(int id) - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - //if (searchkey.isEmpty() == false) - { - - var db = new EEEntities(); - - - var rows = db.Projects.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.status.Contains("완료") == false).OrderByDescending(t => t.pdate).Take(50); - - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.idx}"); - tbody.AppendLine($"{item.status}"); - tbody.AppendLine($"{item.progress}"); - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.reqstaff}"); - tbody.AppendLine($"{item.userManager}"); - tbody.AppendLine($"{item.cnt}"); - tbody.AppendLine($"{item.costo}"); - tbody.AppendLine($"{item.costn}"); - tbody.AppendLine($"{item.costo - item.costn}"); - tbody.AppendLine($"{item.orderno}"); - if (item.memo != null) - tbody.AppendLine($"{item.memo}"); - else - tbody.AppendLine($" "); - - - - //if (item.description.Length > 10) - // tbody.AppendLine($"{item.description.Substring(0, 10)}..."); - //else - // tbody.AppendLine($"{item.description}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - contents = contents.Replace("{pidx}", id.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage partlist(int id) - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - - var contents = result.Content.Replace("{search}", searchkey); - - - //테이블데이터생성 - var itemcnt = 0; - //if (searchkey.isEmpty() == false) - { - - var db = new EEEntities(); - - var prjinfo = db.Projects.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.idx == id).FirstOrDefault(); - System.Text.StringBuilder tinfo = new System.Text.StringBuilder(); - //프로젝트정보를 표시합니다. - tinfo.AppendLine(""); - tinfo.AppendLine(string.Format("{0}", prjinfo.idx)); - tinfo.AppendLine(string.Format("{0}", prjinfo.status)); - tinfo.AppendLine(string.Format("{0}", prjinfo.progress)); - tinfo.AppendLine(string.Format("{0}", prjinfo.name)); - tinfo.AppendLine(string.Format("{0}", prjinfo.reqstaff)); - tinfo.AppendLine(string.Format("{0}", prjinfo.userManager)); - tinfo.AppendLine(string.Format("{0}", prjinfo.orderno)); - tinfo.AppendLine(""); - - contents = contents.Replace("{tableinfo}", tinfo.ToString()); - - - var rows = db.ProjectsPart.Where(t => t.Project == id).OrderBy(t=>t.no); - - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.no}"); - tbody.AppendLine($"{item.ItemGroup}"); - tbody.AppendLine($"{item.ItemModel}"); - tbody.AppendLine($"{item.ItemUnit}"); - tbody.AppendLine($"{item.ItemName}"); - tbody.AppendLine($"{item.ItemSid}"); - tbody.AppendLine($"{item.ItemManu}"); - tbody.AppendLine($"{item.qty}"); - tbody.AppendLine($"{item.qtyn}"); - tbody.AppendLine($"{item.price}"); - tbody.AppendLine($"{item.amt}"); - tbody.AppendLine($"{item.amtn}"); - tbody.AppendLine($"{item.remark}"); - tbody.AppendLine($"{item.qtybuy}"); - tbody.AppendLine($"{item.qtyin}"); - tbody.AppendLine($"{item.bbuy}"); - tbody.AppendLine($"{item.bconfirm}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - contents = contents.Replace("{pidx}", id.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/PurchaseController.cs b/SubProject/WebServer/Controller/PurchaseController.cs deleted file mode 100644 index f9aed92..0000000 --- a/SubProject/WebServer/Controller/PurchaseController.cs +++ /dev/null @@ -1,208 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class PurchaseController : BaseController - { - - - // PUT api/values/5 - public void Put(int id, [FromBody] string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpGet] - public string Test() - { - return "test"; - } - - [HttpGet] - public HttpResponseMessage Find() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var rows = db.vFindSID.Where(t => t.sid.Contains(searchkey) || t.name.Contains(searchkey) || t.manu.Contains(searchkey) || t.model.Contains(searchkey)); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.Location}"); - tbody.AppendLine($"{item.sid}"); - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.model}"); - - if (item.price == null) - tbody.AppendLine($"--"); - else - { - var price = (double)item.price / 1000.0; - - tbody.AppendLine($"{price.ToString("N0")}"); - } - - - tbody.AppendLine($"{item.manu}"); - tbody.AppendLine($"{item.supply}"); - - if (item.remark.Length > 10) - tbody.AppendLine($"{item.remark.Substring(0, 10)}..."); - else - tbody.AppendLine($"{item.remark}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - - var gets = Request.GetQueryNameValuePairs();// GetParameters(data); - - - var key_search = gets.Where(t => t.Key == "search").FirstOrDefault(); - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var searchkey = string.Empty; - if (key_search.Key != null && key_search.Value.isEmpty() == false) searchkey = key_search.Value.Trim(); - - var tbody = new System.Text.StringBuilder(); - - //테이블데이터생성 - var itemcnt = 0; - //if (searchkey.isEmpty() == false) - { - var db = new EEEntities(); - var sd = DateTime.Now.ToString("yyyy-MM-01"); - var rows = db.vPurchase.AsNoTracking().Where(t => t.gcode == FCOMMON.info.Login.gcode && t.pdate.CompareTo(sd) >= 0).OrderByDescending(t => t.pdate); - itemcnt = rows.Count(); - foreach (var item in rows) - { - tbody.AppendLine(""); - tbody.AppendLine($"{item.pdate.Substring(5)}"); - - if (item.state == "---") tbody.AppendLine($"{item.state}"); - else if (item.state == "Received") tbody.AppendLine($"{item.state}"); - else tbody.AppendLine($"{item.state}"); - - tbody.AppendLine($"{item.name}"); - tbody.AppendLine($"{item.sid}"); - tbody.AppendLine($"{item.pumname}"); - - if (item.pumscale.Length > 10) tbody.AppendLine($"{item.pumscale.Substring(0, 10)}..."); - else tbody.AppendLine($"{item.pumscale}"); - - tbody.AppendLine($"{item.pumqty}"); - tbody.AppendLine($"{item.pumprice}"); - tbody.AppendLine($"{item.pumamt}"); - tbody.AppendLine($"{item.supply}"); - if (item.project.Length > 10) tbody.AppendLine($"{item.project.Substring(0, 10)}..."); - else tbody.AppendLine($"{item.project}"); - - if (item.bigo.Length > 10) tbody.AppendLine($"{item.bigo.Substring(0, 10)}..."); - else tbody.AppendLine($"{item.bigo}"); - tbody.AppendLine(""); - } - } - - //아잍쳄이 없는경우 - if (itemcnt == 0) - { - tbody.AppendLine(""); - tbody.AppendLine("1"); - tbody.AppendLine("자료가 없습니다"); - tbody.AppendLine(""); - } - - - var contents = result.Content.Replace("{search}", searchkey); - contents = contents.Replace("{tabledata}", tbody.ToString()); - contents = contents.Replace("{cnt}", itemcnt.ToString()); - - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/ResourceController.cs b/SubProject/WebServer/Controller/ResourceController.cs deleted file mode 100644 index a83eb51..0000000 --- a/SubProject/WebServer/Controller/ResourceController.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using System.Web.Http; -namespace WebServer -{ - public class ResourceController : BaseController - { - [HttpGet] - public HttpResponseMessage file() - { - var config = RequestContext.Configuration; - var routeData = config.Routes.GetRouteData(Request).Values.ToList(); - - var p_resource = routeData.Where(t => t.Key == "resource").FirstOrDefault(); - var p_path = routeData.Where(t => t.Key == "path").FirstOrDefault(); - var p_ext = routeData.Where(t => t.Key == "ext").FirstOrDefault(); - var p_subdir = routeData.Where(t => t.Key == "subdir").FirstOrDefault(); - - var v_resource = string.Empty; - var v_path = string.Empty; - var v_ext = string.Empty; - var v_subdir = string.Empty; - - if (p_resource.Key == "resource") v_resource = p_resource.Value.ToString(); - if (p_path.Key == "path") v_path = p_path.Value.ToString(); - if (p_ext.Key == "ext") v_ext = p_ext.Value.ToString(); - if (p_subdir.Key == "subdir") v_subdir = p_subdir.Value.ToString(); - - //var file_ext = routeData[0].Value.ToString(); - //var name_resource = routeData[1].Value.ToString() + "." + file_ext; - //var name_action = routeData[3].Value.ToString(); - - Boolean isBinary = true; - - - string content_type = "text/plain"; - - if (v_ext == "json") - { - isBinary = false; - content_type = "application/json"; - } - else if(v_ext == "vue") - { - isBinary = false; - content_type = "application/js"; - } - else if (v_ext == "js") - { - isBinary = false; - content_type = "application/js"; - } - else if (v_ext == "css") - { - isBinary = false; - content_type = "text/css"; - } - else if (v_ext == "csv") - { - isBinary = false; - content_type = "text/csv"; - } - else if (v_ext == "ico") - { - isBinary = true; - content_type = "image/x-icon"; - } - else if(v_ext == "ttf" || v_ext == "otf") - { - isBinary = true; - content_type = "application/octet-stream"; - } - - HttpContent resultContent = null; - var file = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "View", v_path, v_subdir, v_resource + "." + v_ext); - - if (isBinary) - { - - if (System.IO.File.Exists(file)) - { - var buffer = System.IO.File.ReadAllBytes(file); - resultContent = new ByteArrayContent(buffer); - Console.WriteLine(">>File(B) : " + file); - } - else Console.WriteLine("no resouoir file " + file); - - } - else - { - if (System.IO.File.Exists(file)) - { - - var buffer = System.IO.File.ReadAllText(file, System.Text.Encoding.UTF8); - resultContent = new StringContent(buffer, System.Text.Encoding.UTF8, content_type); - Console.WriteLine(">>File(S) : " + file); - } - else Console.WriteLine("no resouoir file " + file); - } - - - return new HttpResponseMessage() - { - Content = resultContent - }; - - } - } -} diff --git a/SubProject/WebServer/Controller/ResultController.cs b/SubProject/WebServer/Controller/ResultController.cs deleted file mode 100644 index 76bd9e4..0000000 --- a/SubProject/WebServer/Controller/ResultController.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class ResultController : BaseController - { - [HttpPost] - public void Index([FromBody]string value) - { - - } - - // PUT api/values/5 - public void Put(int id, [FromBody]string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpGet] - public string Test() - { - return "test"; - } - - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var contents = result.Content; - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/SettingController.cs b/SubProject/WebServer/Controller/SettingController.cs deleted file mode 100644 index ed7562b..0000000 --- a/SubProject/WebServer/Controller/SettingController.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class SettingController : BaseController - { - [HttpPost] - public void Index([FromBody]string value) - { - - } - - // PUT api/values/5 - public void Put(int id, [FromBody]string value) - { - } - - // DELETE api/values/5 - public void Delete(int id) - { - } - - [HttpGet] - public string Test() - { - return "test"; - } - - [HttpGet] - public HttpResponseMessage Index() - { - //로그인이 되어있지않다면 로그인을 가져온다 - MethodResult result; - result = View(); - - var model = GetGlobalModel(); - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - - //기본값을 찾아서 없애줘야한다 - var contents = result.Content; - - //공용값 적용 - ApplyCommonValue(ref contents); - - //최종문자 적용 - result.Content = contents; - - var resp = new HttpResponseMessage() - { - Content = new StringContent( - result.Content, - System.Text.Encoding.UTF8, - "text/html") - }; - - return resp; - } - - } -} diff --git a/SubProject/WebServer/Controller/UserController.cs b/SubProject/WebServer/Controller/UserController.cs deleted file mode 100644 index 09f249b..0000000 --- a/SubProject/WebServer/Controller/UserController.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using System; -using System.Linq; -using System.Net.Http; -using System.Web.Http; - -namespace WebServer -{ - public class UserController : BaseController - { - [HttpGet] - public HttpResponseMessage Index() - { - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - var db = new EEEntities(); - - var sb = new System.Text.StringBuilder(); - sb.AppendLine("List"); - sb.AppendLine("Gcode"); - - //System.Web.Http.Results.JsonResult - //var json = JsonConvert.SerializeObject(liast); - return new HttpResponseMessage() - { - Content = new StringContent( - sb.ToString(), - System.Text.Encoding.UTF8, - "text/html") - }; - } - - [HttpGet] - public HttpResponseMessage List() - { - var getParams = Request.GetQueryNameValuePairs();// GetParameters(data); - using (var db = new EEEntities()) - { - var vGcode = "EET1P"; - var liast = db.vGroupUser.AsNoTracking().Where(t => t.gcode == vGcode).OrderBy(t => t.id).ToArray(); - - //System.Web.Http.Results.JsonResult - var json = JsonConvert.SerializeObject(liast); - return new HttpResponseMessage() - { - Content = new StringContent( - json.ToString(), - System.Text.Encoding.UTF8, - "application/json") - }; - - } - - } - - - } -} diff --git a/SubProject/WebServer/Customs.cs b/SubProject/WebServer/Customs.cs deleted file mode 100644 index b40a248..0000000 --- a/SubProject/WebServer/Customs.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Customs - { - public int idx { get; set; } - public string gcode { get; set; } - public string grp { get; set; } - public string uptae { get; set; } - public string name { get; set; } - public string name2 { get; set; } - public string owner { get; set; } - public string ownertel { get; set; } - public string address { get; set; } - public string tel { get; set; } - public string fax { get; set; } - public string email { get; set; } - public string memo { get; set; } - public string staff { get; set; } - public string stafftel { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/EETGW_GroupUser.cs b/SubProject/WebServer/EETGW_GroupUser.cs deleted file mode 100644 index d413fa6..0000000 --- a/SubProject/WebServer/EETGW_GroupUser.cs +++ /dev/null @@ -1,28 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class EETGW_GroupUser - { - public int idx { get; set; } - public string gcode { get; set; } - public string uid { get; set; } - public Nullable level { get; set; } - public string Process { get; set; } - public string state { get; set; } - public Nullable useJobReport { get; set; } - public Nullable useUserState { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/EETGW_Project_Layout.cs b/SubProject/WebServer/EETGW_Project_Layout.cs deleted file mode 100644 index 6697359..0000000 --- a/SubProject/WebServer/EETGW_Project_Layout.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class EETGW_Project_Layout - { - public int idx { get; set; } - public string gcode { get; set; } - public int no { get; set; } - public int row { get; set; } - public int col { get; set; } - public int rowspan { get; set; } - public int colspan { get; set; } - public Nullable project { get; set; } - public string reserve { get; set; } - public string remark { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/EETGW_ProjectsSchedule.cs b/SubProject/WebServer/EETGW_ProjectsSchedule.cs deleted file mode 100644 index 30fbff8..0000000 --- a/SubProject/WebServer/EETGW_ProjectsSchedule.cs +++ /dev/null @@ -1,34 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class EETGW_ProjectsSchedule - { - public int idx { get; set; } - public string gcode { get; set; } - public Nullable project { get; set; } - public Nullable no { get; set; } - public Nullable seq { get; set; } - public string title { get; set; } - public Nullable sw { get; set; } - public Nullable ew { get; set; } - public Nullable swa { get; set; } - public Nullable ewa { get; set; } - public string uid { get; set; } - public string memo { get; set; } - public Nullable appoval { get; set; } - public Nullable progress { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/HolidayLIst.cs b/SubProject/WebServer/HolidayLIst.cs deleted file mode 100644 index 83d1a85..0000000 --- a/SubProject/WebServer/HolidayLIst.cs +++ /dev/null @@ -1,24 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class HolidayLIst - { - public int idx { get; set; } - public string pdate { get; set; } - public Nullable free { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/Holyday.cs b/SubProject/WebServer/Holyday.cs deleted file mode 100644 index f62f852..0000000 --- a/SubProject/WebServer/Holyday.cs +++ /dev/null @@ -1,38 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Holyday - { - public int idx { get; set; } - public string gcode { get; set; } - public string cate { get; set; } - public string result { get; set; } - public Nullable sdate { get; set; } - public Nullable edate { get; set; } - public Nullable term { get; set; } - public Nullable termDr { get; set; } - public Nullable DrTime { get; set; } - public Nullable CrTime { get; set; } - public string title { get; set; } - public string contents { get; set; } - public string uid { get; set; } - public string tolist { get; set; } - public Nullable mail { get; set; } - public Nullable mailsend { get; set; } - public string tag { get; set; } - public string reason { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/Items.cs b/SubProject/WebServer/Items.cs deleted file mode 100644 index d812873..0000000 --- a/SubProject/WebServer/Items.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Items - { - public int idx { get; set; } - public Nullable disable { get; set; } - public string gcode { get; set; } - public string cate { get; set; } - public string name { get; set; } - public string sid { get; set; } - public string model { get; set; } - public string manu { get; set; } - public Nullable scale { get; set; } - public string unit { get; set; } - public string supply { get; set; } - public Nullable supplyidx { get; set; } - public Nullable price { get; set; } - public string memo { get; set; } - public byte[] image { get; set; } - public Nullable bparam1 { get; set; } - public Nullable iparam1 { get; set; } - public string import { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public Nullable bEstimate { get; set; } - public Nullable bSAP { get; set; } - } -} diff --git a/SubProject/WebServer/JobReport.cs b/SubProject/WebServer/JobReport.cs deleted file mode 100644 index 6253ac7..0000000 --- a/SubProject/WebServer/JobReport.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class JobReport - { - public int idx { get; set; } - public string gcode { get; set; } - public string pdate { get; set; } - public Nullable pidx { get; set; } - public string projectName { get; set; } - public string uid { get; set; } - public string requestpart { get; set; } - public string package { get; set; } - public string status { get; set; } - public string type { get; set; } - public string process { get; set; } - public string description { get; set; } - public string remark { get; set; } - public Nullable hrs { get; set; } - public Nullable ot { get; set; } - public Nullable import { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string description2 { get; set; } - public string tag { get; set; } - public Nullable autoinput { get; set; } - } -} diff --git a/SubProject/WebServer/LineCode.cs b/SubProject/WebServer/LineCode.cs deleted file mode 100644 index dc06e24..0000000 --- a/SubProject/WebServer/LineCode.cs +++ /dev/null @@ -1,28 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class LineCode - { - public int idx { get; set; } - public string code { get; set; } - public string team { get; set; } - public string part { get; set; } - public string plant { get; set; } - public string grp2 { get; set; } - public Nullable except { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/MailData.cs b/SubProject/WebServer/MailData.cs deleted file mode 100644 index 4bea647..0000000 --- a/SubProject/WebServer/MailData.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class MailData - { - public int idx { get; set; } - public Nullable project { get; set; } - public string gcode { get; set; } - public string cate { get; set; } - public string pdate { get; set; } - public string subject { get; set; } - public string fromlist { get; set; } - public string tolist { get; set; } - public string bcc { get; set; } - public string cc { get; set; } - public string body { get; set; } - public Nullable SendOK { get; set; } - public string SendMsg { get; set; } - public Nullable aidx { get; set; } - public string atime { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - } -} diff --git a/SubProject/WebServer/MailForm.cs b/SubProject/WebServer/MailForm.cs deleted file mode 100644 index 4925f7a..0000000 --- a/SubProject/WebServer/MailForm.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class MailForm - { - public int idx { get; set; } - public string gcode { get; set; } - public string cate { get; set; } - public string title { get; set; } - public string tolist { get; set; } - public string bcc { get; set; } - public string cc { get; set; } - public string subject { get; set; } - public string tail { get; set; } - public string body { get; set; } - public Nullable selfTo { get; set; } - public Nullable selfCC { get; set; } - public Nullable selfBCC { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string exceptmail { get; set; } - public string exceptmailcc { get; set; } - } -} diff --git a/SubProject/WebServer/MethodExtentions.cs b/SubProject/WebServer/MethodExtentions.cs deleted file mode 100644 index cfb0701..0000000 --- a/SubProject/WebServer/MethodExtentions.cs +++ /dev/null @@ -1,140 +0,0 @@ -//180917 chi makefilepath,MakeFTPPath 입력 -//180705 chi GetHexStringNoSpace 다시 추가 ,UrlPathEncode 추가 -// getDateValue 추가 -//180625 chi GetHexStringNoSpace 삭제(이것은 util.cs로 이동) -//180614 chi Map 명령추가 - - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using System.Text.RegularExpressions; -using System.Threading.Tasks; - -namespace WebServer -{ - /// - /// generic method Extension - /// - public static class MethodExtensions - { - public static string MakeFilePath(this string value,params string[] param) - { - System.Text.StringBuilder sb = new System.Text.StringBuilder(); - sb.Append(value.Replace("/", "\\")); - foreach (var item in param) - { - if (sb.Length > 0 && sb.ToString().EndsWith("\\") == false) sb.Append("\\"); - sb.Append(item.Replace("/", "\\")); - } - var retval = sb.ToString().Replace("/", "\\").Replace("\\\\", "\\"); - return retval.ToString(); - } - - - public static string MakeFTPPath(this string value, params string[] param) - { - System.Text.StringBuilder sb = new System.Text.StringBuilder(); - sb.Append(value.Replace("\\", "/")); - foreach (var item in param) - { - if (sb.Length > 0 && sb.ToString().EndsWith("/") == false) sb.Append("/"); - sb.Append(item.Replace("\\", "/")); - } - var retval = sb.ToString().Replace("//", "/"); - return retval.ToString(); - } - - - public static double map(this double x, int in_min, int in_max, int out_min, int out_max) - { - return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; - } - - public static string Base64Encode(this string src) - { - string base64enc = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(src)); - return base64enc; - } - public static string Base64Decode(this string src) - { - var base64dec = Convert.FromBase64String(src); - return System.Text.Encoding.UTF8.GetString(base64dec); - } - - - /// - /// 0101이 반복되는 문자열 형태로 전환합니다. - /// - /// - /// - public static string BitString(this System.Collections.BitArray arr) - { - System.Text.StringBuilder sb = new System.Text.StringBuilder(); - for (int i = arr.Length; i > 0; i--) - sb.Append(arr[i - 1] ? "1" : "0"); - return sb.ToString(); - } - - /// - /// int 값으로 변환합니다. - /// - /// - /// - public static int ValueI(this System.Collections.BitArray arr) - { - byte[] buf = new byte[4]; - arr.CopyTo(buf, 0); - return BitConverter.ToInt32(buf, 0); - } - - /// - /// 숫자인지 검사합니다. - /// - /// - /// - public static bool IsNumeric(this string input) - { - double data; - return double.TryParse(input, out data); - //return Regex.IsMatch(input, @"^\d+$"); - } - - /// - /// isnullorempty 를 수행합니다. - /// - /// - /// - public static Boolean isEmpty(this string input) - { - return string.IsNullOrEmpty(input); - } - - /// - /// default 인코딩을 사용하여 문자열로 반환합니다. - /// - /// - /// - public static string GetString(this Byte[] input) - { - return System.Text.Encoding.Default.GetString(input); - } - - /// - /// 16진수 문자열 형태로 반환합니다. - /// - /// - /// - public static string GetHexString(this Byte[] input) - { - System.Text.StringBuilder sb = new System.Text.StringBuilder(); - foreach (byte b in input) - sb.Append(" " + b.ToString("X2")); - return sb.ToString(); - } - } - - -} diff --git a/SubProject/WebServer/Model/PageModel.cs b/SubProject/WebServer/Model/PageModel.cs deleted file mode 100644 index ecc996f..0000000 --- a/SubProject/WebServer/Model/PageModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace WebServer -{ - public class PageModel - { - public List> RouteData { get; set; } - - - public string urlcontrol { get; set; } - public string urlaction { get; set; } - - } -} diff --git a/SubProject/WebServer/Model1.Context.cs b/SubProject/WebServer/Model1.Context.cs deleted file mode 100644 index e67617e..0000000 --- a/SubProject/WebServer/Model1.Context.cs +++ /dev/null @@ -1,51 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - 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 EETGW_GroupUser { get; set; } - public virtual DbSet Items { get; set; } - public virtual DbSet JobReport { get; set; } - public virtual DbSet MailData { get; set; } - public virtual DbSet MailForm { get; set; } - public virtual DbSet Projects { get; set; } - public virtual DbSet ProjectsPart { get; set; } - public virtual DbSet Purchase { get; set; } - public virtual DbSet UserGroup { get; set; } - public virtual DbSet Users { get; set; } - public virtual DbSet vGroupUser { get; set; } - public virtual DbSet vJobReportForUser { get; set; } - public virtual DbSet vPurchase { get; set; } - public virtual DbSet Auth { get; set; } - public virtual DbSet Common { get; set; } - public virtual DbSet Customs { get; set; } - public virtual DbSet EETGW_Project_Layout { get; set; } - public virtual DbSet HolidayLIst { get; set; } - public virtual DbSet Holyday { get; set; } - public virtual DbSet LineCode { get; set; } - public virtual DbSet EETGW_ProjectsSchedule { get; set; } - public virtual DbSet vFindSID { get; set; } - } -} diff --git a/SubProject/WebServer/Model1.Context.tt b/SubProject/WebServer/Model1.Context.tt deleted file mode 100644 index ba33bb5..0000000 --- a/SubProject/WebServer/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/SubProject/WebServer/Model1.Designer.cs b/SubProject/WebServer/Model1.Designer.cs deleted file mode 100644 index 1092d13..0000000 --- a/SubProject/WebServer/Model1.Designer.cs +++ /dev/null @@ -1,10 +0,0 @@ -// 모델 'D:\Source\##### 완료아이템\(014) GroupWare\Source\SubProject\WebServer\Model1.edmx'에 대해 T4 코드 생성이 사용됩니다. -// 레거시 코드 생성을 사용하려면 '코드 생성 전략' 디자이너 속성의 값을 -// 'Legacy ObjectContext'로 변경하십시오. 이 속성은 모델이 디자이너에서 열릴 때 -// 속성 창에서 사용할 수 있습니다. - -// 컨텍스트 및 엔터티 클래스가 생성되지 않은 경우 빈 모델을 만들었기 때문일 수도 있지만 -// 사용할 Entity Framework 버전을 선택하지 않았기 때문일 수도 있습니다. 모델에 맞는 컨텍스트 클래스 및 -// 엔터티 클래스를 생성하려면 디자이너에서 모델을 열고 디자이너 화면에서 마우스 오른쪽 단추를 클릭한 -// 다음 '데이터베이스에서 모델 업데이트...', '모델에서 데이터베이스 생성...' 또는 '코드 생성 항목 추가...'를 -// 선택하십시오. \ No newline at end of file diff --git a/SubProject/WebServer/Model1.cs b/SubProject/WebServer/Model1.cs deleted file mode 100644 index 7a9ab12..0000000 --- a/SubProject/WebServer/Model1.cs +++ /dev/null @@ -1,9 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - diff --git a/SubProject/WebServer/Model1.edmx b/SubProject/WebServer/Model1.edmx deleted file mode 100644 index d71dacc..0000000 --- a/SubProject/WebServer/Model1.edmx +++ /dev/null @@ -1,1810 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT - [vFindSID].[idx] AS [idx], - [vFindSID].[Location] AS [Location], - [vFindSID].[date] AS [date], - [vFindSID].[gcode] AS [gcode], - [vFindSID].[name] AS [name], - [vFindSID].[sid] AS [sid], - [vFindSID].[model] AS [model], - [vFindSID].[manu] AS [manu], - [vFindSID].[unit] AS [unit], - [vFindSID].[supply] AS [supply], - [vFindSID].[price] AS [price], - [vFindSID].[remark] AS [remark] - FROM [dbo].[vFindSID] AS [vFindSID] - - - SELECT - [vGroupUser].[gcode] AS [gcode], - [vGroupUser].[dept] AS [dept], - [vGroupUser].[level] AS [level], - [vGroupUser].[name] AS [name], - [vGroupUser].[nameE] AS [nameE], - [vGroupUser].[grade] AS [grade], - [vGroupUser].[email] AS [email], - [vGroupUser].[tel] AS [tel], - [vGroupUser].[indate] AS [indate], - [vGroupUser].[outdate] AS [outdate], - [vGroupUser].[hp] AS [hp], - [vGroupUser].[place] AS [place], - [vGroupUser].[ads_employNo] AS [ads_employNo], - [vGroupUser].[ads_title] AS [ads_title], - [vGroupUser].[ads_created] AS [ads_created], - [vGroupUser].[memo] AS [memo], - [vGroupUser].[processs] AS [processs], - [vGroupUser].[id] AS [id], - [vGroupUser].[state] AS [state], - [vGroupUser].[useJobReport] AS [useJobReport], - [vGroupUser].[useUserState] AS [useUserState] - FROM [dbo].[vGroupUser] AS [vGroupUser] - - - SELECT - [vJobReportForUser].[idx] AS [idx], - [vJobReportForUser].[pdate] AS [pdate], - [vJobReportForUser].[gcode] AS [gcode], - [vJobReportForUser].[id] AS [id], - [vJobReportForUser].[name] AS [name], - [vJobReportForUser].[process] AS [process], - [vJobReportForUser].[type] AS [type], - [vJobReportForUser].[svalue] AS [svalue], - [vJobReportForUser].[hrs] AS [hrs], - [vJobReportForUser].[ot] AS [ot], - [vJobReportForUser].[requestpart] AS [requestpart], - [vJobReportForUser].[package] AS [package], - [vJobReportForUser].[userProcess] AS [userProcess], - [vJobReportForUser].[status] AS [status], - [vJobReportForUser].[projectName] AS [projectName], - [vJobReportForUser].[description] AS [description], - [vJobReportForUser].[ww] AS [ww] - FROM [dbo].[vJobReportForUser] AS [vJobReportForUser] - - - SELECT - [vPurchase].[name] AS [name], - [vPurchase].[idx] AS [idx], - [vPurchase].[gcode] AS [gcode], - [vPurchase].[pdate] AS [pdate], - [vPurchase].[state] AS [state], - [vPurchase].[process] AS [process], - [vPurchase].[receive] AS [receive], - [vPurchase].[sc] AS [sc], - [vPurchase].[request] AS [request], - [vPurchase].[sid] AS [sid], - [vPurchase].[pumname] AS [pumname], - [vPurchase].[pumidx] AS [pumidx], - [vPurchase].[pumscale] AS [pumscale], - [vPurchase].[pumunit] AS [pumunit], - [vPurchase].[pumqty] AS [pumqty], - [vPurchase].[pumprice] AS [pumprice], - [vPurchase].[pumamt] AS [pumamt], - [vPurchase].[supply] AS [supply], - [vPurchase].[supplyidx] AS [supplyidx], - [vPurchase].[project] AS [project], - [vPurchase].[projectidx] AS [projectidx], - [vPurchase].[asset] AS [asset], - [vPurchase].[manuproc] AS [manuproc], - [vPurchase].[edate] AS [edate], - [vPurchase].[indate] AS [indate], - [vPurchase].[po] AS [po], - [vPurchase].[dept] AS [dept], - [vPurchase].[bigo] AS [bigo], - [vPurchase].[import] AS [import], - [vPurchase].[isdel] AS [isdel], - [vPurchase].[orderno] AS [orderno], - [vPurchase].[place] AS [place], - [vPurchase].[wuid] AS [wuid], - [vPurchase].[wdate] AS [wdate], - [vPurchase].[inqty] AS [inqty] - FROM [dbo].[vPurchase] AS [vPurchase] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/SubProject/WebServer/Model1.edmx.diagram b/SubProject/WebServer/Model1.edmx.diagram deleted file mode 100644 index 1070def..0000000 --- a/SubProject/WebServer/Model1.edmx.diagram +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/SubProject/WebServer/Model1.tt b/SubProject/WebServer/Model1.tt deleted file mode 100644 index 985966b..0000000 --- a/SubProject/WebServer/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/SubProject/WebServer/OWIN/Startup.cs b/SubProject/WebServer/OWIN/Startup.cs deleted file mode 100644 index c099628..0000000 --- a/SubProject/WebServer/OWIN/Startup.cs +++ /dev/null @@ -1,79 +0,0 @@ -using Microsoft.Owin; -using Owin; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Web.Http; -using System.Web.Http.Routing; - -namespace WebServer.OWIN -{ - public class Startup - { - public void Configuration(IAppBuilder appBuilder) - { - // Configure Web API for Self-Host - HttpConfiguration config = new HttpConfiguration(); - config.MapHttpAttributeRoutes(); - - //메인파일 처리 방법 - IHttpRoute defaultRoute = - config.Routes.CreateRoute("{controller}/{action}/{id}", - new { controller = "home", action = "index", id = RouteParameter.Optional }, - null); - - //기타파일들 처리 방법 - IHttpRoute cssRoute = - config.Routes.CreateRoute("{path}/{subdir}/{resource}.{ext}", - new { controller = "resource", action = "file", id = RouteParameter.Optional }, - null); - - IHttpRoute mifRoute = - config.Routes.CreateRoute("{path}/{resource}.{ext}", - new { controller = "resource", action = "file", id = RouteParameter.Optional }, - null); - - IHttpRoute icoRoute = - config.Routes.CreateRoute("{resource}.{ext}", - new { controller = "resource", action = "file", id = RouteParameter.Optional }, - null); - - config.Routes.Add("mifRoute", mifRoute); - config.Routes.Add("icoRoute", icoRoute); - config.Routes.Add("cssRoute", cssRoute); - config.Routes.Add("defaultRoute", defaultRoute); - - appBuilder.UseStaticFiles(); - appBuilder.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll); - appBuilder.UseWebApi(config); - - - //appBuilder.UseFileServer(new FileServerOptions - //{ - // RequestPath = new PathString(string.Empty), - // FileSystem = new PhysicalFileSystem("./MySubFolder"), - // EnableDirectoryBrowsing = true, - //}); - - //appBuilder.UseStageMarker(PipelineStage.MapHandler); - - - //config.Routes.MapHttpRoute( - // name: "ignore", - // routeTemplate: @".*\.(css|js|gif|jpg)(/.*)?", - // defaults: new - // { - // controller = "file", - // action = "readtext", - // id = RouteParameter.Optional - // } - // ); - - - - } - - } -} diff --git a/SubProject/WebServer/OWIN/StartupSSE.cs b/SubProject/WebServer/OWIN/StartupSSE.cs deleted file mode 100644 index e93f2c4..0000000 --- a/SubProject/WebServer/OWIN/StartupSSE.cs +++ /dev/null @@ -1,101 +0,0 @@ -using Microsoft.Owin; -using Owin; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Web.Http; - -namespace WebServer.OWIN -{ - public class StartupSSE - { - - - public void Configuration(IAppBuilder app) - { - var api = new Api(); - app.Run(context => api.Invoke(context)); - } - - public class Subscriber - { - private StreamWriter _writer; - private TaskCompletionSource _tcs; - public Subscriber(Stream body, TaskCompletionSource tcs) - { - this._writer = new StreamWriter(body); - this._tcs = tcs; - } - - public async void WriteAsync(string message) - { - try - { - _writer.Write(message); - _writer.Flush(); - } - catch (Exception e) - { - if (e.HResult == -2146232800) // non-existent connection - _tcs.SetResult(true); - else - _tcs.SetException(e); - } - } - } - - public class Api - { - System.Timers.Timer _timer = new System.Timers.Timer(500); - List _subscribers = new List(); - public Api() - { - _timer.Elapsed += _timer_Elapsed; - } - - void _timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) - { - UpdateSubscribers(); - } - - public void UpdateSubscribers() - { - Console.WriteLine("updating {0} subscribers", _subscribers.Count); - var subscribersCopy = _subscribers.ToList(); - var msg = String.Format("Hello async at {0}\n", DateTime.Now); - subscribersCopy.ForEach(w => w.WriteAsync(msg)); - _timer.Start(); - } - - - public Task Invoke(IOwinContext context) - { - SetEventHeaders(context); - System.IO.Stream responseStream = context.Environment["owin.ResponseBody"] as Stream; - var tcs = new TaskCompletionSource(); - var s = CreateSubscriber(responseStream, tcs); - tcs.Task.ContinueWith(_ => _subscribers.Remove(s)); - Console.WriteLine("Add subscriber. Now have {0}", _subscribers.Count); - s.WriteAsync("Registered\n"); - _timer.Start(); - return tcs.Task; - } - - private Subscriber CreateSubscriber(System.IO.Stream responseStream, TaskCompletionSource tcs) - { - var s = new Subscriber(responseStream, tcs); - _subscribers.Add(s); - return s; - } - - private static void SetEventHeaders(IOwinContext context) - { - context.Response.ContentType = "text/eventstream"; - context.Response.Headers["Transfer-Encoding"] = "chunked"; - context.Response.Headers["cache-control"] = "no-cache"; - } - } - } -} diff --git a/SubProject/WebServer/Program.cs b/SubProject/WebServer/Program.cs deleted file mode 100644 index 0113ef4..0000000 --- a/SubProject/WebServer/Program.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Microsoft.Owin.Hosting; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace WebServer -{ - class Program - { - static void Main(string[] args) - { - // Start OWIN host - try - { - var url = "http://127.0.0.1:9000"; - WebApp.Start(url: url); - Console.WriteLine("start webapp"); - Console.WriteLine(url); - Console.ReadLine(); - } - catch (Exception ex) - { - Console.WriteLine(ex.Message); - } - } - } -} diff --git a/SubProject/WebServer/Projects.cs b/SubProject/WebServer/Projects.cs deleted file mode 100644 index 337a876..0000000 --- a/SubProject/WebServer/Projects.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Projects - { - public int idx { get; set; } - public Nullable pidx { get; set; } - public string gcode { get; set; } - public Nullable isdel { get; set; } - public string category { get; set; } - public string status { get; set; } - public string asset { get; set; } - public Nullable level { get; set; } - public Nullable rev { get; set; } - public string process { get; set; } - public string part { get; set; } - public string pdate { get; set; } - public string name { get; set; } - public string userManager { get; set; } - public string usermain { get; set; } - public string usersub { get; set; } - public string userhw2 { get; set; } - public string reqstaff { get; set; } - public Nullable costo { get; set; } - public Nullable costn { get; set; } - public Nullable cnt { get; set; } - public string remark_req { get; set; } - public string remark_ans { get; set; } - public string sdate { get; set; } - public string ddate { get; set; } - public string edate { get; set; } - public string odate { get; set; } - public Nullable progress { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string orderno { get; set; } - public string crdue { get; set; } - public Nullable import { get; set; } - public string path { get; set; } - public string userprocess { get; set; } - public string CMP_Background { get; set; } - public string CMP_Description { get; set; } - public string CMP_Before { get; set; } - public string CMP_After { get; set; } - public Nullable bCost { get; set; } - public Nullable bFanOut { get; set; } - public string div { get; set; } - public string EB_Site { get; set; } - public string EB_Line { get; set; } - public string EB_Team { get; set; } - public string EB_Model { get; set; } - public string EB_OutSourceName { get; set; } - public Nullable EB_RepairTime { get; set; } - public Nullable EB_ConstNew { get; set; } - public string EB_BoardName { get; set; } - public Nullable bAlert { get; set; } - } -} diff --git a/SubProject/WebServer/ProjectsPart.cs b/SubProject/WebServer/ProjectsPart.cs deleted file mode 100644 index e3e7eea..0000000 --- a/SubProject/WebServer/ProjectsPart.cs +++ /dev/null @@ -1,50 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class ProjectsPart - { - public int idx { get; set; } - public Nullable no { get; set; } - public Nullable Project { get; set; } - public string ItemGroup { get; set; } - public string ItemModel { get; set; } - public string ItemUnit { get; set; } - public string ItemName { get; set; } - public string ItemSid { get; set; } - public string ItemSupply { get; set; } - public Nullable ItemSupplyidx { get; set; } - public string ItemManu { get; set; } - public Nullable Item { get; set; } - public string option1 { get; set; } - public string option2 { get; set; } - public string option3 { get; set; } - public Nullable qty { get; set; } - public Nullable qtyn { get; set; } - public Nullable price { get; set; } - public Nullable amt { get; set; } - public Nullable amtn { get; set; } - public Nullable jago { get; set; } - public string remark { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public Nullable import { get; set; } - public string qtyjago { get; set; } - public Nullable qtybuy { get; set; } - public Nullable qtyin { get; set; } - public Nullable bbuy { get; set; } - public Nullable bconfirm { get; set; } - public Nullable bCancel { get; set; } - } -} diff --git a/SubProject/WebServer/Properties/AssemblyInfo.cs b/SubProject/WebServer/Properties/AssemblyInfo.cs deleted file mode 100644 index 172d467..0000000 --- a/SubProject/WebServer/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 -// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 -// 이러한 특성 값을 변경하세요. -[assembly: AssemblyTitle("WebServer")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("WebServer")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 -// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 -// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. -[assembly: ComVisible(false)] - -// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. -[assembly: Guid("cafe5cd0-c055-4c77-9253-8d5ee9558d43")] - -// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. -// -// 주 버전 -// 부 버전 -// 빌드 번호 -// 수정 버전 -// -// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 -// 기본값으로 할 수 있습니다. -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SubProject/WebServer/Properties/Settings.Designer.cs b/SubProject/WebServer/Properties/Settings.Designer.cs deleted file mode 100644 index d36ab7c..0000000 --- a/SubProject/WebServer/Properties/Settings.Designer.cs +++ /dev/null @@ -1,59 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 도구를 사용하여 생성되었습니다. -// 런타임 버전:4.0.30319.42000 -// -// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 -// 이러한 변경 내용이 손실됩니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("{\n \"basicGoods\": [\n {\n \"id\": \"1234561\",\n \"name\": \"Mineral Water 550" + - "ml\",\n \"barcode\": \"12421432143214321\",\n \"price\": \"2.00\",\n \"num\": \"" + - "1\",\n \"amount\": \"2.00\"\n },\n {\n \"id\": \"1234562\",\n \"name\": \"He" + - "rbal tea 300ml\",\n \"barcode\": \"12421432143214322\",\n \"price\": \"3.00\",\n " + - " \"num\": \"2\",\n \"amount\": \"6.00\"\n },\n {\n \"id\": \"1234563\",\n " + - " \"name\": \"Delicious potato chips\",\n \"barcode\": \"12421432143214323\",\n \"" + - "price\": \"7.00\",\n \"num\": \"4\",\n \"amount\": \"28.00\"\n },\n {\n \"id" + - "\": \"1234564\",\n \"name\": \"Specially delicious egg rolls\",\n \"barcode\": \"1" + - "2421432143214324\",\n \"price\": \"8.50\",\n \"num\": \"3\",\n \"amount\": \"25." + - "50\"\n }\n ],\n \"basicProgress\": [\n {\n \"key\": \"1\",\n \"time\": \"2017-" + - "10-01 14:10\",\n \"rate\": \"Contact Clients\",\n \"status\": \"Processing\",\n " + - " \"operator\": \"Pickup Assistant ID1234\",\n \"cost\": \"5mins\"\n },\n {\n " + - " \"key\": \"2\",\n \"time\": \"2017-10-01 14:05\",\n \"rate\": \"Pickup Guy Depar" + - "ts\",\n \"status\": \"Success\",\n \"operator\": \"Pickup Assistant ID1234\",\n " + - " \"cost\": \"1h\"\n },\n {\n \"key\": \"3\",\n \"time\": \"2017-10-01 13:05\"," + - "\n \"rate\": \"Pick-up person takes orders\",\n \"status\": \"Success\",\n \"" + - "operator\": \"Pickup Assistant ID1234\",\n \"cost\": \"5mins\"\n },\n {\n \"" + - "key\": \"4\",\n \"time\": \"2017-10-01 13:00\",\n \"rate\": \"Apply For Approval\"," + - "\n \"status\": \"Success\",\n \"operator\": \"system\",\n \"cost\": \"1h\"\n }" + - ",\n {\n \"key\": \"5\",\n \"time\": \"2017-10-01 12:00\",\n \"rate\": \"Initi" + - "ated a Return Request\",\n \"status\": \"Success\",\n \"operator\": \"user\",\n " + - " \"cost\": \"5mins\"\n }\n ]\n}")] - public string json { - get { - return ((string)(this["json"])); - } - set { - this["json"] = value; - } - } - } -} diff --git a/SubProject/WebServer/Properties/Settings.settings b/SubProject/WebServer/Properties/Settings.settings deleted file mode 100644 index 2b7d8b1..0000000 --- a/SubProject/WebServer/Properties/Settings.settings +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - { - "basicGoods": [ - { - "id": "1234561", - "name": "Mineral Water 550ml", - "barcode": "12421432143214321", - "price": "2.00", - "num": "1", - "amount": "2.00" - }, - { - "id": "1234562", - "name": "Herbal tea 300ml", - "barcode": "12421432143214322", - "price": "3.00", - "num": "2", - "amount": "6.00" - }, - { - "id": "1234563", - "name": "Delicious potato chips", - "barcode": "12421432143214323", - "price": "7.00", - "num": "4", - "amount": "28.00" - }, - { - "id": "1234564", - "name": "Specially delicious egg rolls", - "barcode": "12421432143214324", - "price": "8.50", - "num": "3", - "amount": "25.50" - } - ], - "basicProgress": [ - { - "key": "1", - "time": "2017-10-01 14:10", - "rate": "Contact Clients", - "status": "Processing", - "operator": "Pickup Assistant ID1234", - "cost": "5mins" - }, - { - "key": "2", - "time": "2017-10-01 14:05", - "rate": "Pickup Guy Departs", - "status": "Success", - "operator": "Pickup Assistant ID1234", - "cost": "1h" - }, - { - "key": "3", - "time": "2017-10-01 13:05", - "rate": "Pick-up person takes orders", - "status": "Success", - "operator": "Pickup Assistant ID1234", - "cost": "5mins" - }, - { - "key": "4", - "time": "2017-10-01 13:00", - "rate": "Apply For Approval", - "status": "Success", - "operator": "system", - "cost": "1h" - }, - { - "key": "5", - "time": "2017-10-01 12:00", - "rate": "Initiated a Return Request", - "status": "Success", - "operator": "user", - "cost": "5mins" - } - ] -} - - - \ No newline at end of file diff --git a/SubProject/WebServer/Purchase.cs b/SubProject/WebServer/Purchase.cs deleted file mode 100644 index d1b3ad7..0000000 --- a/SubProject/WebServer/Purchase.cs +++ /dev/null @@ -1,52 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Purchase - { - public int idx { get; set; } - public string gcode { get; set; } - public string pdate { get; set; } - public string state { get; set; } - public string process { get; set; } - public string receive { get; set; } - public string sc { get; set; } - public string request { get; set; } - public string sid { get; set; } - public string pumname { get; set; } - public Nullable pumidx { get; set; } - public string pumscale { get; set; } - public string pumunit { get; set; } - public Nullable pumqty { get; set; } - public Nullable pumprice { get; set; } - public Nullable pumamt { get; set; } - public string supply { get; set; } - public Nullable supplyidx { get; set; } - public string project { get; set; } - public Nullable projectidx { get; set; } - public string asset { get; set; } - public string manuproc { get; set; } - public string edate { get; set; } - public string indate { get; set; } - public string po { get; set; } - public string dept { get; set; } - public string bigo { get; set; } - public Nullable import { get; set; } - public Nullable isdel { get; set; } - public string orderno { get; set; } - public string place { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public Nullable inqty { get; set; } - } -} diff --git a/SubProject/WebServer/UserGroup.cs b/SubProject/WebServer/UserGroup.cs deleted file mode 100644 index 96be7c1..0000000 --- a/SubProject/WebServer/UserGroup.cs +++ /dev/null @@ -1,23 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class UserGroup - { - public string dept { get; set; } - public string gcode { get; set; } - public string path_kj { get; set; } - public Nullable advpurchase { get; set; } - public Nullable permission { get; set; } - } -} diff --git a/SubProject/WebServer/Users.cs b/SubProject/WebServer/Users.cs deleted file mode 100644 index dac7239..0000000 --- a/SubProject/WebServer/Users.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class Users - { - public string id { get; set; } - public string gcode { get; set; } - public string password { get; set; } - public string nameE { get; set; } - public string name { get; set; } - public string dept { get; set; } - public string grade { get; set; } - public string email { get; set; } - public Nullable level { get; set; } - public string indate { get; set; } - public string outdate { get; set; } - public string tel { get; set; } - public string hp { get; set; } - public string place { get; set; } - public string ads_employNo { get; set; } - public string ads_title { get; set; } - public string ads_created { get; set; } - public string memo { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public string processs { get; set; } - } -} diff --git a/SubProject/WebServer/WebServer.csproj b/SubProject/WebServer/WebServer.csproj deleted file mode 100644 index f1de963..0000000 --- a/SubProject/WebServer/WebServer.csproj +++ /dev/null @@ -1,302 +0,0 @@ - - - - - Debug - AnyCPU - {CAFE5CD0-C055-4C77-9253-8D5EE9558D43} - Exe - WebServer - WebServer - v4.8 - 512 - true - true - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll - - - ..\..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll - - - ..\..\packages\HtmlAgilityPack.CssSelectors.1.0.2\lib\net45\HtmlAgilityPack.dll - - - ..\..\packages\HtmlAgilityPack.CssSelectors.1.0.2\lib\net45\HtmlAgilityPack.CssSelectors.dll - - - ..\..\packages\Microsoft.AspNet.SignalR.Core.1.2.2\lib\net40\Microsoft.AspNet.SignalR.Core.dll - - - ..\..\packages\Microsoft.AspNet.SignalR.Owin.1.2.2\lib\net45\Microsoft.AspNet.SignalR.Owin.dll - - - ..\..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\..\packages\Microsoft.Owin.4.2.0\lib\net45\Microsoft.Owin.dll - - - ..\..\packages\Microsoft.Owin.Cors.4.2.0\lib\net45\Microsoft.Owin.Cors.dll - - - ..\..\packages\Microsoft.Owin.Diagnostics.4.2.0\lib\net45\Microsoft.Owin.Diagnostics.dll - - - ..\..\packages\Microsoft.Owin.FileSystems.4.2.0\lib\net45\Microsoft.Owin.FileSystems.dll - - - ..\..\packages\Microsoft.Owin.Host.HttpListener.4.2.0\lib\net45\Microsoft.Owin.Host.HttpListener.dll - - - ..\..\packages\Microsoft.Owin.Hosting.4.2.0\lib\net45\Microsoft.Owin.Hosting.dll - - - ..\..\packages\Microsoft.Owin.StaticFiles.4.2.0\lib\net45\Microsoft.Owin.StaticFiles.dll - - - ..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll - - - ..\..\packages\Owin.1.0\lib\net40\Owin.dll - - - - ..\..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - - - - ..\..\packages\System.IO.4.3.0\lib\net462\System.IO.dll - - - ..\..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - ..\..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll - - - ..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll - - - ..\..\packages\System.Net.Http.Json.5.0.0\lib\net461\System.Net.Http.Json.dll - - - - ..\..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll - - - ..\..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll - - - - - ..\..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll - - - ..\..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll - - - ..\..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll - - - ..\..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll - - - ..\..\packages\System.Text.Encodings.Web.5.0.1\lib\net461\System.Text.Encodings.Web.dll - - - ..\..\packages\System.Text.Json.5.0.2\lib\net461\System.Text.Json.dll - - - ..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - ..\..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll - - - ..\..\packages\Microsoft.AspNet.Cors.5.0.0\lib\net45\System.Web.Cors.dll - - - ..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll - - - ..\..\packages\Microsoft.AspNet.WebApi.Owin.5.2.7\lib\net45\System.Web.Http.Owin.dll - - - - - - - - - - Model1.tt - - - - Model1.tt - - - - - - - - - - - - - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - - True - True - Model1.Context.tt - - - True - True - Model1.tt - - - True - True - Model1.edmx - - - - - - - Model1.tt - - - Model1.tt - - - - True - True - Settings.settings - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - Model1.tt - - - - - - EntityModelCodeGenerator - Model1.Designer.cs - - - Model1.edmx - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - {304bd018-194b-47da-b4e0-f16df7b606da} - FCOMMON - - - - - TextTemplatingFileGenerator - Model1.Context.cs - Model1.edmx - - - TextTemplatingFileGenerator - Model1.edmx - Model1.cs - - - - - - - \ No newline at end of file diff --git a/SubProject/WebServer/packages.config b/SubProject/WebServer/packages.config deleted file mode 100644 index cf3d8af..0000000 --- a/SubProject/WebServer/packages.config +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/SubProject/WebServer/vFindSID.cs b/SubProject/WebServer/vFindSID.cs deleted file mode 100644 index aee4604..0000000 --- a/SubProject/WebServer/vFindSID.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class vFindSID - { - public int idx { get; set; } - public string Location { get; set; } - public string date { get; set; } - public string gcode { get; set; } - public string name { get; set; } - public string sid { get; set; } - public string model { get; set; } - public string manu { get; set; } - public string unit { get; set; } - public string supply { get; set; } - public Nullable price { get; set; } - public string remark { get; set; } - } -} diff --git a/SubProject/WebServer/vGroupUser.cs b/SubProject/WebServer/vGroupUser.cs deleted file mode 100644 index c1e8205..0000000 --- a/SubProject/WebServer/vGroupUser.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class vGroupUser - { - public string gcode { get; set; } - public string dept { get; set; } - public Nullable level { get; set; } - public string name { get; set; } - public string nameE { get; set; } - public string grade { get; set; } - public string email { get; set; } - public string tel { get; set; } - public string indate { get; set; } - public string outdate { get; set; } - public string hp { get; set; } - public string place { get; set; } - public string ads_employNo { get; set; } - public string ads_title { get; set; } - public string ads_created { get; set; } - public string memo { get; set; } - public string processs { get; set; } - public string id { get; set; } - public string state { get; set; } - public Nullable useJobReport { get; set; } - public Nullable useUserState { get; set; } - } -} diff --git a/SubProject/WebServer/vJobReportForUser.cs b/SubProject/WebServer/vJobReportForUser.cs deleted file mode 100644 index c831555..0000000 --- a/SubProject/WebServer/vJobReportForUser.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class vJobReportForUser - { - public int idx { get; set; } - public string pdate { get; set; } - public string gcode { get; set; } - public string id { get; set; } - public string name { get; set; } - public string process { get; set; } - public string type { get; set; } - public string svalue { get; set; } - public Nullable hrs { get; set; } - public Nullable ot { get; set; } - public string requestpart { get; set; } - public string package { get; set; } - public string userProcess { get; set; } - public string status { get; set; } - public string projectName { get; set; } - public string description { get; set; } - public string ww { get; set; } - } -} diff --git a/SubProject/WebServer/vPurchase.cs b/SubProject/WebServer/vPurchase.cs deleted file mode 100644 index 48f510f..0000000 --- a/SubProject/WebServer/vPurchase.cs +++ /dev/null @@ -1,53 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 이 코드는 템플릿에서 생성되었습니다. -// -// 이 파일을 수동으로 변경하면 응용 프로그램에서 예기치 않은 동작이 발생할 수 있습니다. -// 이 파일을 수동으로 변경하면 코드가 다시 생성될 때 변경 내용을 덮어씁니다. -// -//------------------------------------------------------------------------------ - -namespace WebServer -{ - using System; - using System.Collections.Generic; - - public partial class vPurchase - { - public string name { get; set; } - public int idx { get; set; } - public string gcode { get; set; } - public string pdate { get; set; } - public string state { get; set; } - public string process { get; set; } - public string receive { get; set; } - public string sc { get; set; } - public string request { get; set; } - public string sid { get; set; } - public string pumname { get; set; } - public Nullable pumidx { get; set; } - public string pumscale { get; set; } - public string pumunit { get; set; } - public Nullable pumqty { get; set; } - public Nullable pumprice { get; set; } - public Nullable pumamt { get; set; } - public string supply { get; set; } - public Nullable supplyidx { get; set; } - public string project { get; set; } - public Nullable projectidx { get; set; } - public string asset { get; set; } - public string manuproc { get; set; } - public string edate { get; set; } - public string indate { get; set; } - public string po { get; set; } - public string dept { get; set; } - public string bigo { get; set; } - public Nullable import { get; set; } - public Nullable isdel { get; set; } - public string orderno { get; set; } - public string place { get; set; } - public string wuid { get; set; } - public System.DateTime wdate { get; set; } - public Nullable inqty { get; set; } - } -} diff --git a/formSetting/fBase.xml b/formSetting/fBase.xml deleted file mode 100644 index cd573d1..0000000 --- a/formSetting/fBase.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/run_claude.bat b/run_claude.bat deleted file mode 100644 index a06cb0b..0000000 --- a/run_claude.bat +++ /dev/null @@ -1 +0,0 @@ -claude --dangerously-skip-permissions \ No newline at end of file