diff --git a/Project/EETGW.csproj b/Project/EETGW.csproj
index 3c9ef67..4ae751a 100644
--- a/Project/EETGW.csproj
+++ b/Project/EETGW.csproj
@@ -223,12 +223,6 @@
fMain.cs
-
- Form
-
-
- Form1.cs
-
Form
@@ -318,9 +312,6 @@
fMain.cs
-
- Form1.cs
-
fSetting.cs
diff --git a/Project/History.txt b/Project/History.txt
index 405b059..e55a5fb 100644
--- a/Project/History.txt
+++ b/Project/History.txt
@@ -1,4 +1,28 @@
-181031 chi 구매 - 프로젝트 검색시 유사 검색 기능이 되도록 수정
+181207 chi 업체정보화면 에 담당자 목록 추가
+ 업체대표 및 담당자 테이블 데이터 추가
+ 품목에 이미지 확인 사항 추가
+ 품목 검색창에서 이미지 확인 및 추가 가능
+181205 chi 메뉴한글과
+ 업체정보 업데이트 (양진원)
+ 업체정보 열너비 저장 가능
+181203 chi 구매 - 상태검색 기능 활성
+ 일반 - 시작화면 선택 기능
+ 프로그램설정 - 처음 실행 화면 설정가능
+구매목록 - 상태 검색 기능 사용 가능
+구매목록 - 데이터 복사시 추가정보 및 상태 초기화
+구매목록 - 본인외 및 SC자료 삭제 불가
+구매추가 - 본인 자료 만 편집 가능
+구매추가 - 입고예정일을 좌측 그룹으로 이동
+구매추가 - 입력자 못 고침
+구매추가 - 상태창 값이 맞지 않는 현상 수정
+구매추가 - 공정 자동 불러오도록 함
+구매추가 - 합계에 천단위 구분기호(콤마) 표시
+구매추가 - 화면 한글 화
+구매추가 - SC 값이 있으면 일반 사용자는 편집 불가
+구매추가 - 견적서 폴더 열기 기능 추가(공유폴더연결)
+
+
+181031 chi 구매 - 프로젝트 검색시 유사 검색 기능이 되도록 수정
181030 chi 구매시 - 서플라이 검색 기능 추가됨, 날짜 입력 편하게 됨
indate 가 자동 활성화되는 현상 수정
181023 chi getAuth_Purchase, 추가
diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs
index 1c50cce..e7238da 100644
--- a/Project/Properties/AssemblyInfo.cs
+++ b/Project/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("18.11.19.1300")]
-[assembly: AssemblyFileVersion("18.11.19.1300")]
+[assembly: AssemblyVersion("18.12.07.1200")]
+[assembly: AssemblyFileVersion("18.12.07.1200")]
diff --git a/Project/Setting.cs b/Project/Setting.cs
index cb1847a..5312882 100644
--- a/Project/Setting.cs
+++ b/Project/Setting.cs
@@ -6,6 +6,11 @@ using System.ComponentModel;
namespace Project
{
+ public enum eFormList
+ {
+ 없음=0,
+ NR구매관리,
+ }
public class Setting : arUtil.Setting
{
#region "log"
@@ -14,6 +19,12 @@ namespace Project
public Boolean Log_IO { get; set; }
#endregion
+
+ [Description("시작 화면")]
+ public eFormList startForm { get; set; }
+
+ [Description("중복으로 창을 열수 있습니다")]
+ public Boolean DupWindow { get; set; }
[Description("Password for Setting")]
[Browsable(false)]
@@ -54,6 +65,21 @@ namespace Project
if (Language.isEmpty()) Language = "Kor";
if (Password_Setup.isEmpty()) Password_Setup = "0000";
if (Password_User.isEmpty()) Password_User = "9999";
+
+ //시작폼가져오기
+ var 시작품 = Xml.get_Data("startForm");
+ var list = Enum.GetNames(typeof(eFormList));
+ int idx = -1;
+ for(int i = 0 ;i
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIcSURBVDhPY0iaU3o9aWbN/7Ty3ovplX3WDFAwrd5VbGad
- +65pVS4WcH61y64pFW4qYAUwkDS/8lLi3KqLqZW9UUkVfXcYGP4zTq10sZ9S4f5204TgX9PL3d9PrnRz
- nV7n9GrnhJg/cxpcHs8pteKFakcFqdWtf1JmFL0p6c3+M3Nlyf9du+v/r1qQ96+n3u/f2VWF/76ea/2/
- f3bqz9m1HkdXhYYyQ7UhQHxj1+eWtbP+zzq59H/f/ln/m7dO+F++pvV/+sLK//Fzyv/nLa7+37Cq9n/t
- 3IJfRRNTjsXNLo+BaoWAtJbOK7Xzp//f9WAvBt5+d/f/VVc2/p97etn/CQfn/i/Z2PM3Zl7FW6hWCEhq
- bl6c1tv/G6apZ99MrDQIzzm17H/ygqoLUK0QkNTamppe3/IHpihuThlWGoRBroifV74aqhUCUjo6ZNKq
- +v5vv7eboAH12yf/iJtT2gLVigCxxb1/Fx5fB1aEzwvFa9o/xs4pS4VqQ4DE+u53XevmwxViw5tubf8f
- Pa/yR8LMClOoNgRIau44FdXV8jdpWsF3GI6eX/Ejen4lHCdOy/+ZvKCmH6oFFaRV9GWkVvZthXJJB6ll
- vbpp5e3vU6r6DaBCpIOM2omHM6o7/mXWTPqfVtmPgjNqJv6PL5r4O6duCnYvgEB8VcePOesO/U8v6v8O
- FYIDfHJwkAk0Pb5wwu/s2sk9UCE4QJVjYAAANRyjD7U4Ir0AAAAASUVORK5CYII=
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIbSURBVDhPY0iaU3o9aWbN/7Ty3ovplX3WDFAwrd5VbGad
+ +65pVS4WcH61y64pFW4qYAUwkDS/8lLi3KqLqZW9UUkVfXcYGP4zTq10sZ9S4f52U4//r+nl7u8nV7q5
+ Tq9zerWzJ+bPnAaXx3NKrXih2lFBanXjn5QZRW9KOrP/zFxZ8n/X7vr/y+bk/euo9/t3clnhv6/nWv/v
+ n576c3atx9FVoaHMUG0IEN/Y9bll7az/s04u/d+3f9b/5q0T/pevaf2fvrDyf/yc8v95i6v/N6yq/V87
+ t+BX0cSUY3Gzy2OgWiEgraXzSu386f93PdiLgbff3f1/1ZWN/+eeXvZ/wsG5/ws29vyNmVfxFqoVApKa
+ mxcn9fb/hmnq2TcTKw3Cc04t+5+8oOoCVCsEJLW2pqbXN/yBKYqbU4aVBmGQK+Lnla+GaoWAlI4OmbSq
+ vv/b7+0maED99sk/4uaUtkC1IkBkfu/fhcfXgRXh80LxmvaPsXPKUqHaECCxvvtd17r5cIXY8KZb2/9H
+ z6v8kTCzwhSqDQGSmjtOhXW1/E2alP8dhqPnV/yInl8Jx4lTsn8mL6jph2pBBWkVfRmplX1boVzSQWpZ
+ r25aefv7lKp+A6gQ6SCjduLhjOqWf5k1k/6nVfaj4Iyaif/j8yb+zqmbgt0LIBBd1fJjzrpD/9Pz+79D
+ heAAnxwcZAJNj8+d8Du7dnIPVAgOUOUYGAA7lKKQuxE4AgAAAABJRU5ErkJggg==
diff --git a/Project/fSetting.cs b/Project/fSetting.cs
index 95b7bc6..e13346f 100644
--- a/Project/fSetting.cs
+++ b/Project/fSetting.cs
@@ -53,14 +53,14 @@ namespace Project
this.bsModel.EndEdit();
this.Invalidate();
- var f = new Dialog.fPassword();
- if (f.ShowDialog() != DialogResult.OK) return;
- var pass = f.tbInput.Text;
- if (pass != Pub.setting.Password_Setup)
- {
- Util.MsgE("Password incorrect");
- return;
- }
+ //var f = new Dialog.fPassword();
+ //if (f.ShowDialog() != DialogResult.OK) return;
+ //var pass = f.tbInput.Text;
+ //if (pass != Pub.setting.Password_Setup)
+ //{
+ // Util.MsgE("Password incorrect");
+ // return;
+ //}
if(this.dataSet1.HasChanges())
{
diff --git a/SubProject/FBS0000/Holiday/fHolyday.Designer.cs b/SubProject/FBS0000/Holiday/fHolyday.Designer.cs
index 5c8f8d1..95a6ecb 100644
--- a/SubProject/FBS0000/Holiday/fHolyday.Designer.cs
+++ b/SubProject/FBS0000/Holiday/fHolyday.Designer.cs
@@ -37,8 +37,6 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
- this.bs = new System.Windows.Forms.BindingSource(this.components);
- this.dsMSSQL = new FBS0000.dsMSSQL();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -52,13 +50,6 @@
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.boardBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.dv1 = new System.Windows.Forms.DataGridView();
- this.dvc_user = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.dvc_cate = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.sdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.edateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.termDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dvc_result = new System.Windows.Forms.DataGridViewComboBoxColumn();
- this.contents = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.sendToMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
@@ -71,15 +62,32 @@
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.cmbUser = new System.Windows.Forms.ToolStripComboBox();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
+ this.bs = new System.Windows.Forms.BindingSource(this.components);
+ this.dsMSSQL = new FBS0000.dsMSSQL();
this.tam = new FBS0000.dsMSSQLTableAdapters.TableAdapterManager();
this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter();
+ this.dvc_user = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.dvc_cate = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.sdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.edateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.termDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.termDr = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dvc_result = new System.Windows.Forms.DataGridViewComboBoxColumn();
+ this.contents = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
+ this.sbGen = new System.Windows.Forms.ToolStripLabel();
+ this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
+ this.sbUse = new System.Windows.Forms.ToolStripLabel();
+ this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel();
+ this.toolStripLabel8 = new System.Windows.Forms.ToolStripLabel();
+ this.sbJan = new System.Windows.Forms.ToolStripLabel();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.SuspendLayout();
//
// bn
@@ -89,6 +97,7 @@
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = this.bindingNavigatorDeleteItem;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.bn.ImageScalingSize = new System.Drawing.Size(24, 24);
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
@@ -101,32 +110,29 @@
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
- this.boardBindingNavigatorSaveItem});
- this.bn.Location = new System.Drawing.Point(0, 469);
+ this.boardBindingNavigatorSaveItem,
+ this.toolStripSeparator1,
+ this.toolStripLabel7,
+ this.sbUse,
+ this.toolStripLabel5,
+ this.sbGen,
+ this.toolStripLabel8,
+ this.sbJan});
+ this.bn.Location = new System.Drawing.Point(0, 507);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(735, 25);
+ this.bn.Size = new System.Drawing.Size(849, 31);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
- // bs
- //
- this.bs.DataMember = "Holyday";
- this.bs.DataSource = this.dsMSSQL;
- //
- // dsMSSQL
- //
- this.dsMSSQL.DataSetName = "dsMSSQL";
- this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- //
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
- this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
+ this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
@@ -135,8 +141,8 @@
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(78, 22);
- this.bindingNavigatorDeleteItem.Text = "Delete(&D)";
+ this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(76, 28);
+ this.bindingNavigatorDeleteItem.Text = "삭제(&D)";
//
// bindingNavigatorMoveFirstItem
//
@@ -144,7 +150,7 @@
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
@@ -153,13 +159,13 @@
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
- this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
+ this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorPositionItem
//
@@ -173,7 +179,7 @@
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
- this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
+ this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorMoveNextItem
//
@@ -181,7 +187,7 @@
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
@@ -190,29 +196,29 @@
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
- this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
+ this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31);
//
// bindingNavigatorAddNewItem
//
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(65, 22);
- this.bindingNavigatorAddNewItem.Text = "Add(&A)";
+ this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(75, 28);
+ this.bindingNavigatorAddNewItem.Text = "추가(&A)";
this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
//
// boardBindingNavigatorSaveItem
//
this.boardBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("boardBindingNavigatorSaveItem.Image")));
this.boardBindingNavigatorSaveItem.Name = "boardBindingNavigatorSaveItem";
- this.boardBindingNavigatorSaveItem.Size = new System.Drawing.Size(67, 22);
- this.boardBindingNavigatorSaveItem.Text = "Save(&S)";
+ this.boardBindingNavigatorSaveItem.Size = new System.Drawing.Size(74, 28);
+ this.boardBindingNavigatorSaveItem.Text = "저장(&S)";
this.boardBindingNavigatorSaveItem.Click += new System.EventHandler(this.boardBindingNavigatorSaveItem_Click);
//
// dv1
@@ -228,89 +234,22 @@
this.sdateDataGridViewTextBoxColumn,
this.edateDataGridViewTextBoxColumn,
this.termDataGridViewTextBoxColumn,
+ this.termDr,
this.dvc_result,
this.contents});
this.dv1.ContextMenuStrip = this.cm1;
this.dv1.DataSource = this.bs;
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dv1.Location = new System.Drawing.Point(0, 25);
+ this.dv1.Location = new System.Drawing.Point(0, 31);
this.dv1.Name = "dv1";
this.dv1.ReadOnly = true;
this.dv1.RowTemplate.Height = 23;
this.dv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dv1.Size = new System.Drawing.Size(735, 444);
+ this.dv1.Size = new System.Drawing.Size(849, 476);
this.dv1.TabIndex = 2;
this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv1_DataError);
this.dv1.DoubleClick += new System.EventHandler(this.dv1_DoubleClick);
//
- // dvc_user
- //
- this.dvc_user.DataPropertyName = "uid";
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.dvc_user.DefaultCellStyle = dataGridViewCellStyle1;
- this.dvc_user.HeaderText = "User";
- this.dvc_user.Name = "dvc_user";
- this.dvc_user.ReadOnly = true;
- this.dvc_user.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dvc_user.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // dvc_cate
- //
- this.dvc_cate.DataPropertyName = "cate";
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.dvc_cate.DefaultCellStyle = dataGridViewCellStyle2;
- this.dvc_cate.HeaderText = "Type";
- this.dvc_cate.Name = "dvc_cate";
- this.dvc_cate.ReadOnly = true;
- this.dvc_cate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dvc_cate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // sdateDataGridViewTextBoxColumn
- //
- this.sdateDataGridViewTextBoxColumn.DataPropertyName = "sdate";
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.sdateDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
- this.sdateDataGridViewTextBoxColumn.HeaderText = "Start";
- this.sdateDataGridViewTextBoxColumn.Name = "sdateDataGridViewTextBoxColumn";
- this.sdateDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // edateDataGridViewTextBoxColumn
- //
- this.edateDataGridViewTextBoxColumn.DataPropertyName = "edate";
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.edateDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
- this.edateDataGridViewTextBoxColumn.HeaderText = "End";
- this.edateDataGridViewTextBoxColumn.Name = "edateDataGridViewTextBoxColumn";
- this.edateDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // termDataGridViewTextBoxColumn
- //
- this.termDataGridViewTextBoxColumn.DataPropertyName = "term";
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.termDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
- this.termDataGridViewTextBoxColumn.HeaderText = "Term";
- this.termDataGridViewTextBoxColumn.Name = "termDataGridViewTextBoxColumn";
- this.termDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // dvc_result
- //
- this.dvc_result.DataPropertyName = "result";
- dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.dvc_result.DefaultCellStyle = dataGridViewCellStyle6;
- this.dvc_result.HeaderText = "result";
- this.dvc_result.Name = "dvc_result";
- this.dvc_result.ReadOnly = true;
- this.dvc_result.Resizable = System.Windows.Forms.DataGridViewTriState.True;
- this.dvc_result.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
- //
- // contents
- //
- this.contents.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
- this.contents.DataPropertyName = "contents";
- this.contents.HeaderText = "Remark";
- this.contents.Name = "contents";
- this.contents.ReadOnly = true;
- //
// cm1
//
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -318,7 +257,7 @@
this.toolStripMenuItem1,
this.autoResizeComlumnsToolStripMenuItem});
this.cm1.Name = "contextMenuStrip1";
- this.cm1.Size = new System.Drawing.Size(201, 76);
+ this.cm1.Size = new System.Drawing.Size(201, 54);
//
// sendToMailToolStripMenuItem
//
@@ -341,6 +280,7 @@
//
// toolStrip1
//
+ this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.tbSD,
@@ -351,59 +291,69 @@
this.toolStripButton1});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
- this.toolStrip1.Size = new System.Drawing.Size(735, 25);
+ this.toolStrip1.Size = new System.Drawing.Size(849, 31);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
- this.toolStripLabel1.Size = new System.Drawing.Size(34, 22);
+ this.toolStripLabel1.Size = new System.Drawing.Size(34, 28);
this.toolStripLabel1.Text = "Term";
//
// tbSD
//
this.tbSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbSD.Name = "tbSD";
- this.tbSD.Size = new System.Drawing.Size(100, 25);
+ this.tbSD.Size = new System.Drawing.Size(100, 31);
this.tbSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbSD.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbSD_KeyDown);
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
- this.toolStripLabel2.Size = new System.Drawing.Size(15, 22);
+ this.toolStripLabel2.Size = new System.Drawing.Size(15, 28);
this.toolStripLabel2.Text = "~";
//
// tbED
//
this.tbED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbED.Name = "tbED";
- this.tbED.Size = new System.Drawing.Size(100, 25);
+ this.tbED.Size = new System.Drawing.Size(100, 31);
this.tbED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbED.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbSD_KeyDown);
//
// toolStripLabel3
//
this.toolStripLabel3.Name = "toolStripLabel3";
- this.toolStripLabel3.Size = new System.Drawing.Size(30, 22);
+ this.toolStripLabel3.Size = new System.Drawing.Size(30, 28);
this.toolStripLabel3.Text = "User";
//
// cmbUser
//
this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbUser.Name = "cmbUser";
- this.cmbUser.Size = new System.Drawing.Size(150, 25);
+ this.cmbUser.Size = new System.Drawing.Size(150, 31);
//
// toolStripButton1
//
this.toolStripButton1.Image = global::FBS0000.Properties.Resources.action_refresh;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
- this.toolStripButton1.Size = new System.Drawing.Size(78, 22);
+ this.toolStripButton1.Size = new System.Drawing.Size(86, 28);
this.toolStripButton1.Text = "Search(&R)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
+ // bs
+ //
+ this.bs.DataMember = "Holyday";
+ this.bs.DataSource = this.dsMSSQL;
+ //
+ // dsMSSQL
+ //
+ this.dsMSSQL.DataSetName = "dsMSSQL";
+ this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+ //
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
@@ -416,11 +366,131 @@
//
this.ta.ClearBeforeFill = true;
//
+ // dvc_user
+ //
+ this.dvc_user.DataPropertyName = "uid";
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.dvc_user.DefaultCellStyle = dataGridViewCellStyle1;
+ this.dvc_user.HeaderText = "사용자";
+ this.dvc_user.Name = "dvc_user";
+ this.dvc_user.ReadOnly = true;
+ this.dvc_user.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dvc_user.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // dvc_cate
+ //
+ this.dvc_cate.DataPropertyName = "cate";
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.dvc_cate.DefaultCellStyle = dataGridViewCellStyle2;
+ this.dvc_cate.HeaderText = "구분";
+ this.dvc_cate.Name = "dvc_cate";
+ this.dvc_cate.ReadOnly = true;
+ this.dvc_cate.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dvc_cate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // sdateDataGridViewTextBoxColumn
+ //
+ this.sdateDataGridViewTextBoxColumn.DataPropertyName = "sdate";
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.sdateDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
+ this.sdateDataGridViewTextBoxColumn.HeaderText = "시작일";
+ this.sdateDataGridViewTextBoxColumn.Name = "sdateDataGridViewTextBoxColumn";
+ this.sdateDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // edateDataGridViewTextBoxColumn
+ //
+ this.edateDataGridViewTextBoxColumn.DataPropertyName = "edate";
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.edateDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
+ this.edateDataGridViewTextBoxColumn.HeaderText = "종료일";
+ this.edateDataGridViewTextBoxColumn.Name = "edateDataGridViewTextBoxColumn";
+ this.edateDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // termDataGridViewTextBoxColumn
+ //
+ this.termDataGridViewTextBoxColumn.DataPropertyName = "term";
+ dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.termDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
+ this.termDataGridViewTextBoxColumn.HeaderText = "사용";
+ this.termDataGridViewTextBoxColumn.Name = "termDataGridViewTextBoxColumn";
+ this.termDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // termDr
+ //
+ this.termDr.DataPropertyName = "termDr";
+ this.termDr.HeaderText = "발생";
+ this.termDr.Name = "termDr";
+ this.termDr.ReadOnly = true;
+ //
+ // dvc_result
+ //
+ this.dvc_result.DataPropertyName = "result";
+ dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.dvc_result.DefaultCellStyle = dataGridViewCellStyle6;
+ this.dvc_result.HeaderText = "결과";
+ this.dvc_result.Name = "dvc_result";
+ this.dvc_result.ReadOnly = true;
+ this.dvc_result.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+ this.dvc_result.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+ //
+ // contents
+ //
+ this.contents.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+ this.contents.DataPropertyName = "contents";
+ this.contents.HeaderText = "비고";
+ this.contents.Name = "contents";
+ this.contents.ReadOnly = true;
+ //
+ // toolStripSeparator1
+ //
+ this.toolStripSeparator1.Name = "toolStripSeparator1";
+ this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
+ //
+ // sbGen
+ //
+ this.sbGen.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.sbGen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
+ this.sbGen.Name = "sbGen";
+ this.sbGen.Size = new System.Drawing.Size(19, 28);
+ this.sbGen.Text = "0";
+ //
+ // toolStripLabel5
+ //
+ this.toolStripLabel5.Name = "toolStripLabel5";
+ this.toolStripLabel5.Size = new System.Drawing.Size(31, 28);
+ this.toolStripLabel5.Text = "발생";
+ //
+ // sbUse
+ //
+ this.sbUse.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.sbUse.Name = "sbUse";
+ this.sbUse.Size = new System.Drawing.Size(19, 28);
+ this.sbUse.Text = "0";
+ //
+ // toolStripLabel7
+ //
+ this.toolStripLabel7.Name = "toolStripLabel7";
+ this.toolStripLabel7.Size = new System.Drawing.Size(31, 28);
+ this.toolStripLabel7.Text = "사용";
+ //
+ // toolStripLabel8
+ //
+ this.toolStripLabel8.Name = "toolStripLabel8";
+ this.toolStripLabel8.Size = new System.Drawing.Size(31, 28);
+ this.toolStripLabel8.Text = "잔량";
+ //
+ // sbJan
+ //
+ this.sbJan.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.sbJan.Name = "sbJan";
+ this.sbJan.Size = new System.Drawing.Size(19, 28);
+ this.sbJan.Text = "0";
+ //
// fHolyday
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(735, 494);
+ this.ClientSize = new System.Drawing.Size(849, 538);
this.Controls.Add(this.dv1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
@@ -430,12 +500,12 @@
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.cm1.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -471,14 +541,22 @@
private System.Windows.Forms.ToolStripComboBox cmbUser;
private System.Windows.Forms.ContextMenuStrip cm1;
private System.Windows.Forms.ToolStripMenuItem autoResizeComlumnsToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem sendToMailToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.DataGridViewComboBoxColumn dvc_user;
private System.Windows.Forms.DataGridViewComboBoxColumn dvc_cate;
private System.Windows.Forms.DataGridViewTextBoxColumn sdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn edateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn termDataGridViewTextBoxColumn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn termDr;
private System.Windows.Forms.DataGridViewComboBoxColumn dvc_result;
private System.Windows.Forms.DataGridViewTextBoxColumn contents;
- private System.Windows.Forms.ToolStripMenuItem sendToMailToolStripMenuItem;
- private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
+ private System.Windows.Forms.ToolStripLabel toolStripLabel7;
+ private System.Windows.Forms.ToolStripLabel sbUse;
+ private System.Windows.Forms.ToolStripLabel toolStripLabel5;
+ private System.Windows.Forms.ToolStripLabel sbGen;
+ private System.Windows.Forms.ToolStripLabel toolStripLabel8;
+ private System.Windows.Forms.ToolStripLabel sbJan;
}
}
\ No newline at end of file
diff --git a/SubProject/FBS0000/Holiday/fHolyday.cs b/SubProject/FBS0000/Holiday/fHolyday.cs
index db405df..4eb5090 100644
--- a/SubProject/FBS0000/Holiday/fHolyday.cs
+++ b/SubProject/FBS0000/Holiday/fHolyday.cs
@@ -44,9 +44,25 @@ namespace FBS0000
var userList = FCOMMON.DBM.getUserList();
this.cmbUser.Items.Clear();
this.cmbUser.Items.Add("-- ALL --");
+ int curuserindex = -1;
foreach (var user in userList)
- this.cmbUser.Items.Add(string.Format("[{0}] {1}",user.Key,user.Value));
- this.cmbUser.SelectedIndex = 0;
+ {
+ this.cmbUser.Items.Add(string.Format("[{0}] {1}", user.Key, user.Value));
+ if (user.Key == FCOMMON.info.Login.no) curuserindex = cmbUser.Items.Count - 1;
+ }
+ this.cmbUser.SelectedIndex = curuserindex;
+
+ //일반사용자의경우에는 상태를 변경하지 못한다.
+ int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.holyday));
+ if (curLevel >= 5)
+ {
+ //권한이 잇으므로 모든 사용자로 한다.
+ }
+ else
+ {
+ this.cmbUser.Enabled = false; //사용자를 고칠수 없게 한다.
+ }
+
RefreshData();
}
@@ -69,9 +85,26 @@ namespace FBS0000
string uid = "%";
if (cmbUser.SelectedIndex > 0)
{
- uid = cmbUser.Text.Split('|')[0];
+ uid = cmbUser.Text.Substring(1, cmbUser.Text.IndexOf(']') - 1);
}
this.ta.Fill(this.dsMSSQL.Holyday, tbSD.Text, tbED.Text, uid);
+
+ //잔량계산
+ double sumdr = 0;
+ double sumcr = 0;
+ double jan = 0;
+ foreach( dsMSSQL.HolydayRow dr in this.dsMSSQL.Holyday.Rows)
+ {
+ if (dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached) continue;
+ sumdr += dr.termDr;
+ sumcr += dr.term;
+ }
+ jan = sumdr - sumcr;
+ sbGen.Text = sumdr.ToString("N0");
+ sbUse.Text = sumcr.ToString("N0");
+ sbJan.Text = jan.ToString("N0");
+ if (jan < 0) sbJan.ForeColor = Color.Red;
+ else sbJan.ForeColor = Color.Blue;
}
private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
diff --git a/SubProject/FBS0000/Holiday/fHolyday.resx b/SubProject/FBS0000/Holiday/fHolyday.resx
index 321d540..3f8d1d5 100644
--- a/SubProject/FBS0000/Holiday/fHolyday.resx
+++ b/SubProject/FBS0000/Holiday/fHolyday.resx
@@ -198,6 +198,9 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
+
+ True
+
True
diff --git a/SubProject/FBS0000/Holiday/fHolyday_Add.Designer.cs b/SubProject/FBS0000/Holiday/fHolyday_Add.Designer.cs
index 57fc80e..e6f5c95 100644
--- a/SubProject/FBS0000/Holiday/fHolyday_Add.Designer.cs
+++ b/SubProject/FBS0000/Holiday/fHolyday_Add.Designer.cs
@@ -46,11 +46,12 @@
this.reasonTextBox = new System.Windows.Forms.TextBox();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
- this.label1 = new System.Windows.Forms.Label();
this.cmbCate = new System.Windows.Forms.ComboBox();
this.cmbUser = new System.Windows.Forms.ComboBox();
this.cmbRlt = new System.Windows.Forms.ComboBox();
this.btOK = new System.Windows.Forms.Button();
+ this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
+ this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
cateLabel = new System.Windows.Forms.Label();
resutLabel = new System.Windows.Forms.Label();
sdateLabel = new System.Windows.Forms.Label();
@@ -60,6 +61,8 @@
tolistLabel = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
this.SuspendLayout();
//
// cateLabel
@@ -162,7 +165,7 @@
this.contentsTextBox.Multiline = true;
this.contentsTextBox.Name = "contentsTextBox";
this.contentsTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
- this.contentsTextBox.Size = new System.Drawing.Size(277, 145);
+ this.contentsTextBox.Size = new System.Drawing.Size(301, 145);
this.contentsTextBox.TabIndex = 17;
//
// tolistTextBox
@@ -171,7 +174,7 @@
this.tolistTextBox.Location = new System.Drawing.Point(91, 360);
this.tolistTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tolistTextBox.Name = "tolistTextBox";
- this.tolistTextBox.Size = new System.Drawing.Size(256, 27);
+ this.tolistTextBox.Size = new System.Drawing.Size(301, 27);
this.tolistTextBox.TabIndex = 21;
//
// mailCheckBox
@@ -188,12 +191,12 @@
// reasonTextBox
//
this.reasonTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "reason", true));
- this.reasonTextBox.Location = new System.Drawing.Point(375, 69);
+ this.reasonTextBox.Location = new System.Drawing.Point(408, 121);
this.reasonTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.reasonTextBox.Multiline = true;
this.reasonTextBox.Name = "reasonTextBox";
this.reasonTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
- this.reasonTextBox.Size = new System.Drawing.Size(279, 318);
+ this.reasonTextBox.Size = new System.Drawing.Size(279, 266);
this.reasonTextBox.TabIndex = 27;
//
// dateTimePicker1
@@ -201,7 +204,7 @@
this.dateTimePicker1.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "sdate", true));
this.dateTimePicker1.Location = new System.Drawing.Point(91, 102);
this.dateTimePicker1.Name = "dateTimePicker1";
- this.dateTimePicker1.Size = new System.Drawing.Size(222, 27);
+ this.dateTimePicker1.Size = new System.Drawing.Size(301, 27);
this.dateTimePicker1.TabIndex = 28;
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
//
@@ -210,21 +213,10 @@
this.dateTimePicker2.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "edate", true));
this.dateTimePicker2.Location = new System.Drawing.Point(91, 135);
this.dateTimePicker2.Name = "dateTimePicker2";
- this.dateTimePicker2.Size = new System.Drawing.Size(222, 27);
+ this.dateTimePicker2.Size = new System.Drawing.Size(301, 27);
this.dateTimePicker2.TabIndex = 29;
this.dateTimePicker2.ValueChanged += new System.EventHandler(this.dateTimePicker2_ValueChanged);
//
- // label1
- //
- this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "term", true));
- this.label1.Location = new System.Drawing.Point(319, 102);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(49, 60);
- this.label1.TabIndex = 30;
- this.label1.Text = "0";
- this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// cmbCate
//
this.cmbCate.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "cate", true));
@@ -232,7 +224,7 @@
this.cmbCate.FormattingEnabled = true;
this.cmbCate.Location = new System.Drawing.Point(91, 69);
this.cmbCate.Name = "cmbCate";
- this.cmbCate.Size = new System.Drawing.Size(277, 27);
+ this.cmbCate.Size = new System.Drawing.Size(301, 27);
this.cmbCate.TabIndex = 32;
//
// cmbUser
@@ -242,7 +234,7 @@
this.cmbUser.FormattingEnabled = true;
this.cmbUser.Location = new System.Drawing.Point(91, 37);
this.cmbUser.Name = "cmbUser";
- this.cmbUser.Size = new System.Drawing.Size(277, 27);
+ this.cmbUser.Size = new System.Drawing.Size(301, 27);
this.cmbUser.TabIndex = 33;
//
// cmbRlt
@@ -250,7 +242,7 @@
this.cmbRlt.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "result", true));
this.cmbRlt.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbRlt.FormattingEnabled = true;
- this.cmbRlt.Location = new System.Drawing.Point(376, 37);
+ this.cmbRlt.Location = new System.Drawing.Point(409, 89);
this.cmbRlt.Name = "cmbRlt";
this.cmbRlt.Size = new System.Drawing.Size(278, 27);
this.cmbRlt.TabIndex = 34;
@@ -259,22 +251,55 @@
//
this.btOK.Location = new System.Drawing.Point(91, 399);
this.btOK.Name = "btOK";
- this.btOK.Size = new System.Drawing.Size(563, 38);
+ this.btOK.Size = new System.Drawing.Size(596, 38);
this.btOK.TabIndex = 35;
this.btOK.Text = "OK";
this.btOK.UseVisualStyleBackColor = true;
this.btOK.Click += new System.EventHandler(this.btOK_Click);
//
+ // numericUpDown1
+ //
+ this.numericUpDown1.BackColor = System.Drawing.Color.HotPink;
+ this.numericUpDown1.DecimalPlaces = 1;
+ this.numericUpDown1.Font = new System.Drawing.Font("Tahoma", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.numericUpDown1.Location = new System.Drawing.Point(409, 37);
+ this.numericUpDown1.Maximum = new decimal(new int[] {
+ 99999,
+ 0,
+ 0,
+ 0});
+ this.numericUpDown1.Name = "numericUpDown1";
+ this.numericUpDown1.Size = new System.Drawing.Size(94, 46);
+ this.numericUpDown1.TabIndex = 36;
+ this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
+ // numericUpDown2
+ //
+ this.numericUpDown2.BackColor = System.Drawing.Color.Lime;
+ this.numericUpDown2.DecimalPlaces = 1;
+ this.numericUpDown2.Font = new System.Drawing.Font("Tahoma", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.numericUpDown2.Location = new System.Drawing.Point(509, 37);
+ this.numericUpDown2.Maximum = new decimal(new int[] {
+ 99999,
+ 0,
+ 0,
+ 0});
+ this.numericUpDown2.Name = "numericUpDown2";
+ this.numericUpDown2.Size = new System.Drawing.Size(94, 46);
+ this.numericUpDown2.TabIndex = 37;
+ this.numericUpDown2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+ //
// fHolyday_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(668, 449);
+ this.ClientSize = new System.Drawing.Size(704, 449);
+ this.Controls.Add(this.numericUpDown2);
+ this.Controls.Add(this.numericUpDown1);
this.Controls.Add(this.btOK);
this.Controls.Add(this.cmbRlt);
this.Controls.Add(this.cmbUser);
this.Controls.Add(this.cmbCate);
- this.Controls.Add(this.label1);
this.Controls.Add(this.dateTimePicker2);
this.Controls.Add(this.dateTimePicker1);
this.Controls.Add(cateLabel);
@@ -298,6 +323,8 @@
this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -315,10 +342,11 @@
private System.Windows.Forms.TextBox reasonTextBox;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.DateTimePicker dateTimePicker2;
- private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cmbCate;
private System.Windows.Forms.ComboBox cmbUser;
private System.Windows.Forms.ComboBox cmbRlt;
private System.Windows.Forms.Button btOK;
+ private System.Windows.Forms.NumericUpDown numericUpDown1;
+ private System.Windows.Forms.NumericUpDown numericUpDown2;
}
}
\ No newline at end of file
diff --git a/SubProject/FBS0000/Holiday/fHolyday_Add.cs b/SubProject/FBS0000/Holiday/fHolyday_Add.cs
index 7b97965..83270a2 100644
--- a/SubProject/FBS0000/Holiday/fHolyday_Add.cs
+++ b/SubProject/FBS0000/Holiday/fHolyday_Add.cs
@@ -64,7 +64,7 @@ namespace FBS0000
{
var ts = dateTimePicker2.Value - dateTimePicker1.Value;
var days = Math.Ceiling(ts.TotalDays) + 1;
- this.label1.Text = days.ToString();
+ this.numericUpDown1.Value = (decimal)days;
this.dr.term = days;
}
private void dateTimePicker2_ValueChanged(object sender, EventArgs e)
diff --git a/SubProject/FBS0000/dsMSSQL.Designer.cs b/SubProject/FBS0000/dsMSSQL.Designer.cs
index 44779bb..b0d0154 100644
--- a/SubProject/FBS0000/dsMSSQL.Designer.cs
+++ b/SubProject/FBS0000/dsMSSQL.Designer.cs
@@ -1200,6 +1200,8 @@ namespace FBS0000 {
private global::System.Data.DataColumn columnwdate;
+ private global::System.Data.DataColumn columntermDr;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public HolydayDataTable() {
@@ -1353,6 +1355,14 @@ namespace FBS0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn termDrColumn {
+ get {
+ return this.columntermDr;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1390,7 +1400,7 @@ namespace FBS0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public HolydayRow AddHolydayRow(string cate, string result, System.DateTime sdate, System.DateTime edate, double term, string title, string contents, string uid, string tolist, bool mail, bool mailsend, string reason, string wuid, System.DateTime wdate) {
+ public HolydayRow AddHolydayRow(string cate, string result, System.DateTime sdate, System.DateTime edate, double term, string title, string contents, string uid, string tolist, bool mail, bool mailsend, string reason, string wuid, System.DateTime wdate, double termDr) {
HolydayRow rowHolydayRow = ((HolydayRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1407,7 +1417,8 @@ namespace FBS0000 {
mailsend,
reason,
wuid,
- wdate};
+ wdate,
+ termDr};
rowHolydayRow.ItemArray = columnValuesArray;
this.Rows.Add(rowHolydayRow);
return rowHolydayRow;
@@ -1452,6 +1463,7 @@ namespace FBS0000 {
this.columnreason = base.Columns["reason"];
this.columnwuid = base.Columns["wuid"];
this.columnwdate = base.Columns["wdate"];
+ this.columntermDr = base.Columns["termDr"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1487,6 +1499,8 @@ namespace FBS0000 {
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.columntermDr = new global::System.Data.DataColumn("termDr", typeof(double), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columntermDr);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -2348,11 +2362,11 @@ namespace FBS0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool mail {
get {
- try {
- return ((bool)(this[this.tableHolyday.mailColumn]));
+ if (this.IsmailNull()) {
+ return false;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Holyday\' 테이블의 \'mail\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((bool)(this[this.tableHolyday.mailColumn]));
}
}
set {
@@ -2364,11 +2378,11 @@ namespace FBS0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool mailsend {
get {
- try {
- return ((bool)(this[this.tableHolyday.mailsendColumn]));
+ if (this.IsmailsendNull()) {
+ return false;
}
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("\'Holyday\' 테이블의 \'mailsend\' 열의 값이 DBNull입니다.", e);
+ else {
+ return ((bool)(this[this.tableHolyday.mailsendColumn]));
}
}
set {
@@ -2414,6 +2428,22 @@ namespace FBS0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public double termDr {
+ get {
+ if (this.IstermDrNull()) {
+ return 0D;
+ }
+ else {
+ return ((double)(this[this.tableHolyday.termDrColumn]));
+ }
+ }
+ set {
+ this[this.tableHolyday.termDrColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IscateNull() {
@@ -2557,6 +2587,18 @@ namespace FBS0000 {
public void SetreasonNull() {
this[this.tableHolyday.reasonColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IstermDrNull() {
+ return this.IsNull(this.tableHolyday.termDrColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SettermDrNull() {
+ this[this.tableHolyday.termDrColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -4077,10 +4119,11 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
tableMapping.ColumnMappings.Add("reason", "reason");
tableMapping.ColumnMappings.Add("wuid", "wuid");
tableMapping.ColumnMappings.Add("wdate", "wdate");
+ tableMapping.ColumnMappings.Add("termDr", "termDr");
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 [Holyday] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Holyday] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_termDr = 1 AND [termDr] IS NULL) OR ([termDr] = @Original_termDr)))";
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_cate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -4103,10 +4146,12 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_mailsend", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailsend", 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.DateTime, 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_termDr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "termDr", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_termDr", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "termDr", 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 [Holyday] ([cate], [result], [sdate], [edate], [term], [title], [contents], [uid], [tolist], [mail], [mailsend], [reason], [wuid], [wdate]) VALUES (@cate, @result, @sdate, @edate, @term, @title, @contents, @uid, @tolist, @mail, @mailsend, @reason, @wuid, @wdate);
-SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate FROM Holyday WHERE (idx = SCOPE_IDENTITY()) ORDER BY sdate, edate";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [Holyday] ([cate], [result], [sdate], [edate], [term], [title], [contents], [uid], [tolist], [mail], [mailsend], [reason], [wuid], [wdate], [termDr]) VALUES (@cate, @result, @sdate, @edate, @term, @title, @contents, @uid, @tolist, @mail, @mailsend, @reason, @wuid, @wdate, @termDr);
+SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr FROM Holyday WHERE (idx = SCOPE_IDENTITY()) ORDER BY sdate, edate";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
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("@result", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "result", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4122,10 +4167,11 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@reason", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reason", 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.DateTime, 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("@termDr", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "termDr", 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 [Holyday] SET [cate] = @cate, [result] = @result, [sdate] = @sdate, [edate] = @edate, [term] = @term, [title] = @title, [contents] = @contents, [uid] = @uid, [tolist] = @tolist, [mail] = @mail, [mailsend] = @mailsend, [reason] = @reason, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
-SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate FROM Holyday WHERE (idx = @idx) ORDER BY sdate, edate";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [Holyday] SET [cate] = @cate, [result] = @result, [sdate] = @sdate, [edate] = @edate, [term] = @term, [title] = @title, [contents] = @contents, [uid] = @uid, [tolist] = @tolist, [mail] = @mail, [mailsend] = @mailsend, [reason] = @reason, [wuid] = @wuid, [wdate] = @wdate, [termDr] = @termDr WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_termDr = 1 AND [termDr] IS NULL) OR ([termDr] = @Original_termDr)));
+SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr FROM Holyday WHERE (idx = @idx) ORDER BY sdate, edate";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
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("@result", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "result", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4141,6 +4187,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@reason", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "reason", 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.DateTime, 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("@termDr", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "termDr", 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_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, "", "", ""));
@@ -4162,6 +4209,8 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_mailsend", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "mailsend", 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.DateTime, 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_termDr", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "termDr", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_termDr", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "termDr", 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, "", "", ""));
}
@@ -4179,8 +4228,8 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail" +
- ", mailsend, reason, wuid, wdate\r\nFROM Holyday\r\nWHERE (sdate >= @sd) AND (ed" +
- "ate <= @ed) AND (wuid LIKE @uid)\r\nORDER BY sdate, edate";
+ ", mailsend, reason, wuid, wdate, termDr\r\nFROM Holyday\r\nWHERE (sdate >= @sd)" +
+ " AND (edate <= @ed) AND (wuid LIKE @uid)\r\nORDER BY sdate, edate";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 0, 0, "sdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.Date, 3, global::System.Data.ParameterDirection.Input, 0, 0, "edate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -4280,7 +4329,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_cate, string Original_result, global::System.Nullable Original_sdate, global::System.Nullable Original_edate, global::System.Nullable Original_term, string Original_title, string Original_uid, global::System.Nullable Original_mail, global::System.Nullable Original_mailsend, string Original_wuid, System.DateTime Original_wdate) {
+ public virtual int Delete(int Original_idx, string Original_cate, string Original_result, global::System.Nullable Original_sdate, global::System.Nullable Original_edate, global::System.Nullable Original_term, string Original_title, string Original_uid, global::System.Nullable Original_mail, global::System.Nullable Original_mailsend, string Original_wuid, System.DateTime Original_wdate, global::System.Nullable Original_termDr) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_cate == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
@@ -4361,6 +4410,14 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_wuid));
}
this.Adapter.DeleteCommand.Parameters[20].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_termDr.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((double)(Original_termDr.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[22].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)) {
@@ -4381,7 +4438,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 cate, string result, global::System.Nullable sdate, global::System.Nullable edate, global::System.Nullable term, string title, string contents, string uid, string tolist, global::System.Nullable mail, global::System.Nullable mailsend, string reason, string wuid, System.DateTime wdate) {
+ public virtual int Insert(string cate, string result, global::System.Nullable sdate, global::System.Nullable edate, global::System.Nullable term, string title, string contents, string uid, string tolist, global::System.Nullable mail, global::System.Nullable mailsend, string reason, string wuid, System.DateTime wdate, global::System.Nullable termDr) {
if ((cate == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -4461,6 +4518,12 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
this.Adapter.InsertCommand.Parameters[12].Value = ((string)(wuid));
}
this.Adapter.InsertCommand.Parameters[13].Value = ((System.DateTime)(wdate));
+ if ((termDr.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[14].Value = ((double)(termDr.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[14].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)) {
@@ -4496,6 +4559,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
string reason,
string wuid,
System.DateTime wdate,
+ global::System.Nullable termDr,
int Original_idx,
string Original_cate,
string Original_result,
@@ -4508,6 +4572,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
global::System.Nullable Original_mailsend,
string Original_wuid,
System.DateTime Original_wdate,
+ global::System.Nullable Original_termDr,
int idx) {
if ((cate == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -4588,87 +4653,101 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(wuid));
}
this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(wdate));
- this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_idx));
- if ((Original_cate == null)) {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ if ((termDr.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((double)(termDr.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_cate));
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx));
+ if ((Original_cate == null)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_cate));
}
if ((Original_result == null)) {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_result));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_result));
}
if ((Original_sdate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[20].Value = ((System.DateTime)(Original_sdate.Value));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((System.DateTime)(Original_sdate.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
}
if ((Original_edate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[22].Value = ((System.DateTime)(Original_edate.Value));
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((System.DateTime)(Original_edate.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
}
if ((Original_term.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[24].Value = ((double)(Original_term.Value));
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((double)(Original_term.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
if ((Original_title == null)) {
- this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[26].Value = ((string)(Original_title));
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_title));
}
if ((Original_uid == null)) {
- this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_uid));
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_uid));
}
if ((Original_mail.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[30].Value = ((bool)(Original_mail.Value));
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((bool)(Original_mail.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
if ((Original_mailsend.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[32].Value = ((bool)(Original_mailsend.Value));
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((bool)(Original_mailsend.Value));
}
else {
- this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_wuid));
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_wuid));
}
- this.Adapter.UpdateCommand.Parameters[34].Value = ((System.DateTime)(Original_wdate));
- this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(idx));
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_termDr.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((double)(Original_termDr.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
+ }
+ this.Adapter.UpdateCommand.Parameters[38].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)) {
@@ -4704,6 +4783,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
string reason,
string wuid,
System.DateTime wdate,
+ global::System.Nullable termDr,
int Original_idx,
string Original_cate,
string Original_result,
@@ -4715,8 +4795,9 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
global::System.Nullable Original_mail,
global::System.Nullable Original_mailsend,
string Original_wuid,
- System.DateTime Original_wdate) {
- return this.Update(cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, Original_idx, Original_cate, Original_result, Original_sdate, Original_edate, Original_term, Original_title, Original_uid, Original_mail, Original_mailsend, Original_wuid, Original_wdate, Original_idx);
+ System.DateTime Original_wdate,
+ global::System.Nullable Original_termDr) {
+ return this.Update(cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, Original_idx, Original_cate, Original_result, Original_sdate, Original_edate, Original_term, Original_title, Original_uid, Original_mail, Original_mailsend, Original_wuid, Original_wdate, Original_termDr, Original_idx);
}
}
diff --git a/SubProject/FBS0000/dsMSSQL.xsd b/SubProject/FBS0000/dsMSSQL.xsd
index 7c955dc..41f3ef5 100644
--- a/SubProject/FBS0000/dsMSSQL.xsd
+++ b/SubProject/FBS0000/dsMSSQL.xsd
@@ -234,7 +234,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
- DELETE FROM [Holyday] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))
+ DELETE FROM [Holyday] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_termDr = 1 AND [termDr] IS NULL) OR ([termDr] = @Original_termDr)))
@@ -257,13 +257,15 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
+
+
- INSERT INTO [Holyday] ([cate], [result], [sdate], [edate], [term], [title], [contents], [uid], [tolist], [mail], [mailsend], [reason], [wuid], [wdate]) VALUES (@cate, @result, @sdate, @edate, @term, @title, @contents, @uid, @tolist, @mail, @mailsend, @reason, @wuid, @wdate);
-SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate FROM Holyday WHERE (idx = SCOPE_IDENTITY()) ORDER BY sdate, edate
+ INSERT INTO [Holyday] ([cate], [result], [sdate], [edate], [term], [title], [contents], [uid], [tolist], [mail], [mailsend], [reason], [wuid], [wdate], [termDr]) VALUES (@cate, @result, @sdate, @edate, @term, @title, @contents, @uid, @tolist, @mail, @mailsend, @reason, @wuid, @wdate, @termDr);
+SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr FROM Holyday WHERE (idx = SCOPE_IDENTITY()) ORDER BY sdate, edate
@@ -279,12 +281,13 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
+
-
- SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate
+
+ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr
FROM Holyday
WHERE (sdate >= @sd) AND (edate <= @ed) AND (wuid LIKE @uid)
ORDER BY sdate, edate
@@ -297,8 +300,8 @@ ORDER BY sdate, edate
- UPDATE [Holyday] SET [cate] = @cate, [result] = @result, [sdate] = @sdate, [edate] = @edate, [term] = @term, [title] = @title, [contents] = @contents, [uid] = @uid, [tolist] = @tolist, [mail] = @mail, [mailsend] = @mailsend, [reason] = @reason, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
-SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate FROM Holyday WHERE (idx = @idx) ORDER BY sdate, edate
+ UPDATE [Holyday] SET [cate] = @cate, [result] = @result, [sdate] = @sdate, [edate] = @edate, [term] = @term, [title] = @title, [contents] = @contents, [uid] = @uid, [tolist] = @tolist, [mail] = @mail, [mailsend] = @mailsend, [reason] = @reason, [wuid] = @wuid, [wdate] = @wdate, [termDr] = @termDr WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) 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_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_termDr = 1 AND [termDr] IS NULL) OR ([termDr] = @Original_termDr)));
+SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr FROM Holyday WHERE (idx = @idx) ORDER BY sdate, edate
@@ -314,6 +317,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
+
@@ -335,6 +339,8 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
+
+
@@ -357,6 +363,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
+
@@ -529,8 +536,8 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
-
-
+
+
@@ -546,6 +553,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
+
diff --git a/SubProject/FCM0000/Board/fRequestItem.Designer.cs b/SubProject/FCM0000/Board/fRequestItem.Designer.cs
index aebf803..59a5c71 100644
--- a/SubProject/FCM0000/Board/fRequestItem.Designer.cs
+++ b/SubProject/FCM0000/Board/fRequestItem.Designer.cs
@@ -31,6 +31,8 @@
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fRequestItem));
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
+ this.bs = new System.Windows.Forms.BindingSource(this.components);
+ this.dsMSSQL = new FCM0000.dsMSSQL();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -44,6 +46,14 @@
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.boardBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.dv1 = new System.Windows.Forms.DataGridView();
+ this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.titleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.model = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.qtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.project = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.bMail = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+ this.memo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cm = new System.Windows.Forms.ContextMenuStrip(this.components);
this.autoResizeColumnsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
@@ -64,26 +74,16 @@
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
- this.bs = new System.Windows.Forms.BindingSource(this.components);
- this.dsMSSQL = new FCM0000.dsMSSQL();
this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
this.ta = new FCM0000.dsMSSQLTableAdapters.RequestItemTableAdapter();
- this.pdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.titleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.model = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.sidDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.qtyDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.project = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.bMail = new System.Windows.Forms.DataGridViewCheckBoxColumn();
- this.memo = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.cm.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.panel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.SuspendLayout();
//
// bn
@@ -106,17 +106,27 @@
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
this.boardBindingNavigatorSaveItem});
- this.bn.Location = new System.Drawing.Point(0, 474);
+ this.bn.Location = new System.Drawing.Point(0, 550);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(784, 25);
+ this.bn.Size = new System.Drawing.Size(1046, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
+ // bs
+ //
+ this.bs.DataMember = "RequestItem";
+ this.bs.DataSource = this.dsMSSQL;
+ //
+ // dsMSSQL
+ //
+ this.dsMSSQL.DataSetName = "dsMSSQL";
+ this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+ //
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
@@ -234,11 +244,67 @@
this.dv1.ReadOnly = true;
this.dv1.RowTemplate.Height = 23;
this.dv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dv1.Size = new System.Drawing.Size(612, 429);
+ this.dv1.Size = new System.Drawing.Size(874, 505);
this.dv1.TabIndex = 2;
this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv1_DataError);
this.dv1.DoubleClick += new System.EventHandler(this.boardDataGridView_DoubleClick);
//
+ // pdateDataGridViewTextBoxColumn
+ //
+ this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
+ this.pdateDataGridViewTextBoxColumn.HeaderText = "Pdate";
+ this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
+ this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // titleDataGridViewTextBoxColumn
+ //
+ this.titleDataGridViewTextBoxColumn.DataPropertyName = "title";
+ this.titleDataGridViewTextBoxColumn.HeaderText = "Item";
+ this.titleDataGridViewTextBoxColumn.Name = "titleDataGridViewTextBoxColumn";
+ this.titleDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // model
+ //
+ this.model.DataPropertyName = "model";
+ this.model.HeaderText = "Model";
+ this.model.Name = "model";
+ this.model.ReadOnly = true;
+ //
+ // sidDataGridViewTextBoxColumn
+ //
+ this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
+ this.sidDataGridViewTextBoxColumn.HeaderText = "sid";
+ this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
+ this.sidDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // qtyDataGridViewTextBoxColumn
+ //
+ this.qtyDataGridViewTextBoxColumn.DataPropertyName = "qty";
+ this.qtyDataGridViewTextBoxColumn.HeaderText = "qty";
+ this.qtyDataGridViewTextBoxColumn.Name = "qtyDataGridViewTextBoxColumn";
+ this.qtyDataGridViewTextBoxColumn.ReadOnly = true;
+ //
+ // project
+ //
+ this.project.DataPropertyName = "projectName";
+ this.project.HeaderText = "project";
+ this.project.Name = "project";
+ this.project.ReadOnly = true;
+ //
+ // bMail
+ //
+ this.bMail.DataPropertyName = "bMail";
+ this.bMail.HeaderText = "Mail";
+ this.bMail.Name = "bMail";
+ this.bMail.ReadOnly = true;
+ //
+ // memo
+ //
+ this.memo.DataPropertyName = "memo";
+ this.memo.HeaderText = "memo";
+ this.memo.Name = "memo";
+ this.memo.ReadOnly = true;
+ //
// cm
//
this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -286,7 +352,7 @@
this.btSearch});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
- this.toolStrip1.Size = new System.Drawing.Size(784, 25);
+ this.toolStrip1.Size = new System.Drawing.Size(1046, 25);
this.toolStrip1.TabIndex = 4;
this.toolStrip1.Text = "toolStrip1";
//
@@ -335,9 +401,9 @@
this.label1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "url", true));
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.ForeColor = System.Drawing.Color.White;
- this.label1.Location = new System.Drawing.Point(0, 454);
+ this.label1.Location = new System.Drawing.Point(0, 530);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(784, 20);
+ this.label1.Size = new System.Drawing.Size(1046, 20);
this.label1.TabIndex = 5;
this.label1.Text = "-- URL --";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -352,9 +418,9 @@
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
- this.panel1.Location = new System.Drawing.Point(612, 25);
+ this.panel1.Location = new System.Drawing.Point(874, 25);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(172, 429);
+ this.panel1.Size = new System.Drawing.Size(172, 505);
this.panel1.TabIndex = 7;
//
// label7
@@ -363,7 +429,7 @@
this.label7.Dock = System.Windows.Forms.DockStyle.Fill;
this.label7.Location = new System.Drawing.Point(0, 300);
this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(172, 129);
+ this.label7.Size = new System.Drawing.Size(172, 205);
this.label7.TabIndex = 5;
this.label7.Text = "--";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -429,21 +495,12 @@
this.label2.Text = "TO List";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
- // bs
- //
- this.bs.DataMember = "RequestItem";
- this.bs.DataSource = this.dsMSSQL;
- //
- // dsMSSQL
- //
- this.dsMSSQL.DataSetName = "dsMSSQL";
- this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
- //
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
this.tam.BoardTableAdapter = null;
this.tam.CommonTableAdapter = null;
+ this.tam.CustomsTableAdapter = null;
this.tam.InventoryTableAdapter = null;
this.tam.ItemsTableAdapter = null;
this.tam.MailDataTableAdapter = null;
@@ -456,67 +513,11 @@
//
this.ta.ClearBeforeFill = true;
//
- // pdateDataGridViewTextBoxColumn
- //
- this.pdateDataGridViewTextBoxColumn.DataPropertyName = "pdate";
- this.pdateDataGridViewTextBoxColumn.HeaderText = "Pdate";
- this.pdateDataGridViewTextBoxColumn.Name = "pdateDataGridViewTextBoxColumn";
- this.pdateDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // titleDataGridViewTextBoxColumn
- //
- this.titleDataGridViewTextBoxColumn.DataPropertyName = "title";
- this.titleDataGridViewTextBoxColumn.HeaderText = "Item";
- this.titleDataGridViewTextBoxColumn.Name = "titleDataGridViewTextBoxColumn";
- this.titleDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // model
- //
- this.model.DataPropertyName = "model";
- this.model.HeaderText = "Model";
- this.model.Name = "model";
- this.model.ReadOnly = true;
- //
- // sidDataGridViewTextBoxColumn
- //
- this.sidDataGridViewTextBoxColumn.DataPropertyName = "sid";
- this.sidDataGridViewTextBoxColumn.HeaderText = "sid";
- this.sidDataGridViewTextBoxColumn.Name = "sidDataGridViewTextBoxColumn";
- this.sidDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // qtyDataGridViewTextBoxColumn
- //
- this.qtyDataGridViewTextBoxColumn.DataPropertyName = "qty";
- this.qtyDataGridViewTextBoxColumn.HeaderText = "qty";
- this.qtyDataGridViewTextBoxColumn.Name = "qtyDataGridViewTextBoxColumn";
- this.qtyDataGridViewTextBoxColumn.ReadOnly = true;
- //
- // project
- //
- this.project.DataPropertyName = "projectName";
- this.project.HeaderText = "project";
- this.project.Name = "project";
- this.project.ReadOnly = true;
- //
- // bMail
- //
- this.bMail.DataPropertyName = "bMail";
- this.bMail.HeaderText = "Mail";
- this.bMail.Name = "bMail";
- this.bMail.ReadOnly = true;
- //
- // memo
- //
- this.memo.DataPropertyName = "memo";
- this.memo.HeaderText = "memo";
- this.memo.Name = "memo";
- this.memo.ReadOnly = true;
- //
// fRequestItem
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(784, 499);
+ this.ClientSize = new System.Drawing.Size(1046, 575);
this.Controls.Add(this.dv1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label1);
@@ -528,13 +529,13 @@
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.cm.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.panel1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/SubProject/FCM0000/Board/fRequestItem.resx b/SubProject/FCM0000/Board/fRequestItem.resx
index 37ec148..48f2e30 100644
--- a/SubProject/FCM0000/Board/fRequestItem.resx
+++ b/SubProject/FCM0000/Board/fRequestItem.resx
@@ -198,6 +198,9 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
+
+ 17, 17
+
True
@@ -227,9 +230,6 @@
dBo6zn/3OB7XHovRyuhQ6+hhYKA9DpL+A1keRebNAhkaJH0OHOcP031C4EjYr6wAAAAASUVORK5CYII=
-
- 17, 17
-
186, 17
diff --git a/SubProject/FCM0000/FCM0000.csproj b/SubProject/FCM0000/FCM0000.csproj
index cb292ca..dcce3cf 100644
--- a/SubProject/FCM0000/FCM0000.csproj
+++ b/SubProject/FCM0000/FCM0000.csproj
@@ -35,42 +35,18 @@
..\..\DLL\ArSetting.Net4.dll
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
+
+
+
+
+
+
+
+
+
+
+
+
..\..\DLL\libxl.net.dll
@@ -193,6 +169,12 @@
fMailform.cs
+
+ Form
+
+
+ Customer_Import.cs
+
Form
@@ -244,6 +226,9 @@
fMailform.cs
+
+ Customer_Import.cs
+
fSelectDate.cs
diff --git a/SubProject/FCM0000/dsMSSQL.Designer.cs b/SubProject/FCM0000/dsMSSQL.Designer.cs
index 242e86a..4b1df04 100644
--- a/SubProject/FCM0000/dsMSSQL.Designer.cs
+++ b/SubProject/FCM0000/dsMSSQL.Designer.cs
@@ -42,6 +42,8 @@ namespace FCM0000 {
private CustomsDataTable tableCustoms;
+ private StaffDataTable tableStaff;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -97,6 +99,9 @@ namespace FCM0000 {
if ((ds.Tables["Customs"] != null)) {
base.Tables.Add(new CustomsDataTable(ds.Tables["Customs"]));
}
+ if ((ds.Tables["Staff"] != null)) {
+ base.Tables.Add(new StaffDataTable(ds.Tables["Staff"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -205,6 +210,16 @@ namespace FCM0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public StaffDataTable Staff {
+ get {
+ return this.tableStaff;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -299,6 +314,9 @@ namespace FCM0000 {
if ((ds.Tables["Customs"] != null)) {
base.Tables.Add(new CustomsDataTable(ds.Tables["Customs"]));
}
+ if ((ds.Tables["Staff"] != null)) {
+ base.Tables.Add(new StaffDataTable(ds.Tables["Staff"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -386,6 +404,12 @@ namespace FCM0000 {
this.tableCustoms.InitVars();
}
}
+ this.tableStaff = ((StaffDataTable)(base.Tables["Staff"]));
+ if ((initTable == true)) {
+ if ((this.tableStaff != null)) {
+ this.tableStaff.InitVars();
+ }
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -414,6 +438,8 @@ namespace FCM0000 {
base.Tables.Add(this.tableRequestItem);
this.tableCustoms = new CustomsDataTable();
base.Tables.Add(this.tableCustoms);
+ this.tableStaff = new StaffDataTable();
+ base.Tables.Add(this.tableStaff);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -470,6 +496,12 @@ namespace FCM0000 {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializeStaff() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -552,6 +584,9 @@ namespace FCM0000 {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void CustomsRowChangeEventHandler(object sender, CustomsRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void StaffRowChangeEventHandler(object sender, StaffRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -4075,6 +4110,20 @@ namespace FCM0000 {
private global::System.Data.DataColumn columnwdate;
+ private global::System.Data.DataColumn columnowner;
+
+ private global::System.Data.DataColumn columnownertel;
+
+ private global::System.Data.DataColumn columnaddress;
+
+ private global::System.Data.DataColumn columnuptae;
+
+ private global::System.Data.DataColumn columnstaff;
+
+ private global::System.Data.DataColumn columnstafftel;
+
+ private global::System.Data.DataColumn columnname2;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public CustomsDataTable() {
@@ -4180,6 +4229,62 @@ namespace FCM0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ownerColumn {
+ get {
+ return this.columnowner;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn ownertelColumn {
+ get {
+ return this.columnownertel;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn addressColumn {
+ get {
+ return this.columnaddress;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn uptaeColumn {
+ get {
+ return this.columnuptae;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn staffColumn {
+ get {
+ return this.columnstaff;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn stafftelColumn {
+ get {
+ return this.columnstafftel;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn name2Column {
+ get {
+ return this.columnname2;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -4217,7 +4322,7 @@ namespace FCM0000 {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public CustomsRow AddCustomsRow(string grp, string name, string tel, string fax, string email, string memo, string wuid, System.DateTime wdate) {
+ public CustomsRow AddCustomsRow(string grp, string name, string tel, string fax, string email, string memo, string wuid, System.DateTime wdate, string owner, string ownertel, string address, string uptae, string staff, string stafftel, string name2) {
CustomsRow rowCustomsRow = ((CustomsRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -4228,7 +4333,14 @@ namespace FCM0000 {
email,
memo,
wuid,
- wdate};
+ wdate,
+ owner,
+ ownertel,
+ address,
+ uptae,
+ staff,
+ stafftel,
+ name2};
rowCustomsRow.ItemArray = columnValuesArray;
this.Rows.Add(rowCustomsRow);
return rowCustomsRow;
@@ -4267,6 +4379,13 @@ namespace FCM0000 {
this.columnmemo = base.Columns["memo"];
this.columnwuid = base.Columns["wuid"];
this.columnwdate = base.Columns["wdate"];
+ this.columnowner = base.Columns["owner"];
+ this.columnownertel = base.Columns["ownertel"];
+ this.columnaddress = base.Columns["address"];
+ this.columnuptae = base.Columns["uptae"];
+ this.columnstaff = base.Columns["staff"];
+ this.columnstafftel = base.Columns["stafftel"];
+ this.columnname2 = base.Columns["name2"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4290,6 +4409,20 @@ namespace FCM0000 {
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.columnowner = new global::System.Data.DataColumn("owner", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnowner);
+ this.columnownertel = new global::System.Data.DataColumn("ownertel", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnownertel);
+ this.columnaddress = new global::System.Data.DataColumn("address", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnaddress);
+ this.columnuptae = new global::System.Data.DataColumn("uptae", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnuptae);
+ this.columnstaff = new global::System.Data.DataColumn("staff", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnstaff);
+ this.columnstafftel = new global::System.Data.DataColumn("stafftel", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnstafftel);
+ this.columnname2 = new global::System.Data.DataColumn("name2", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnname2);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -4300,13 +4433,20 @@ namespace FCM0000 {
this.columnidx.Unique = true;
this.columngrp.MaxLength = 20;
this.columnname.MaxLength = 50;
- this.columntel.MaxLength = 20;
- this.columnfax.MaxLength = 20;
- this.columnemail.MaxLength = 40;
+ this.columntel.MaxLength = 150;
+ this.columnfax.MaxLength = 100;
+ this.columnemail.MaxLength = 100;
this.columnmemo.MaxLength = 255;
this.columnwuid.AllowDBNull = false;
this.columnwuid.MaxLength = 20;
this.columnwdate.AllowDBNull = false;
+ this.columnowner.MaxLength = 50;
+ this.columnownertel.MaxLength = 20;
+ this.columnaddress.MaxLength = 255;
+ this.columnuptae.MaxLength = 100;
+ this.columnstaff.MaxLength = 250;
+ this.columnstafftel.MaxLength = 150;
+ this.columnname2.MaxLength = 100;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4433,6 +4573,403 @@ namespace FCM0000 {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class StaffDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidx;
+
+ private global::System.Data.DataColumn columncid;
+
+ private global::System.Data.DataColumn columnname;
+
+ private global::System.Data.DataColumn columngrade;
+
+ private global::System.Data.DataColumn columndept;
+
+ private global::System.Data.DataColumn columntel;
+
+ private global::System.Data.DataColumn columnemail;
+
+ 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", "4.0.0.0")]
+ public StaffDataTable() {
+ this.TableName = "Staff";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal StaffDataTable(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", "4.0.0.0")]
+ protected StaffDataTable(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", "4.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", "4.0.0.0")]
+ public global::System.Data.DataColumn cidColumn {
+ get {
+ return this.columncid;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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", "4.0.0.0")]
+ public StaffRow this[int index] {
+ get {
+ return ((StaffRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StaffRowChangeEventHandler StaffRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StaffRowChangeEventHandler StaffRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StaffRowChangeEventHandler StaffRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event StaffRowChangeEventHandler StaffRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddStaffRow(StaffRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StaffRow AddStaffRow(int cid, string name, string grade, string dept, string tel, string email, string memo, string wuid, System.DateTime wdate) {
+ StaffRow rowStaffRow = ((StaffRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ cid,
+ name,
+ grade,
+ dept,
+ tel,
+ email,
+ memo,
+ wuid,
+ wdate};
+ rowStaffRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowStaffRow);
+ return rowStaffRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StaffRow FindByidx(int idx) {
+ return ((StaffRow)(this.Rows.Find(new object[] {
+ idx})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ StaffDataTable cln = ((StaffDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new StaffDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnidx = base.Columns["idx"];
+ this.columncid = base.Columns["cid"];
+ this.columnname = base.Columns["name"];
+ this.columngrade = base.Columns["grade"];
+ this.columndept = base.Columns["dept"];
+ this.columntel = base.Columns["tel"];
+ this.columnemail = base.Columns["email"];
+ 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", "4.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.columncid = new global::System.Data.DataColumn("cid", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columncid);
+ this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnname);
+ this.columngrade = new global::System.Data.DataColumn("grade", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columngrade);
+ this.columndept = new global::System.Data.DataColumn("dept", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columndept);
+ this.columntel = new global::System.Data.DataColumn("tel", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columntel);
+ this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnemail);
+ 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.columnname.MaxLength = 100;
+ this.columngrade.MaxLength = 20;
+ this.columndept.MaxLength = 50;
+ this.columntel.MaxLength = 100;
+ this.columnemail.MaxLength = 100;
+ 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", "4.0.0.0")]
+ public StaffRow NewStaffRow() {
+ return ((StaffRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new StaffRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(StaffRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.StaffRowChanged != null)) {
+ this.StaffRowChanged(this, new StaffRowChangeEvent(((StaffRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.StaffRowChanging != null)) {
+ this.StaffRowChanging(this, new StaffRowChangeEvent(((StaffRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.StaffRowDeleted != null)) {
+ this.StaffRowDeleted(this, new StaffRowChangeEvent(((StaffRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.StaffRowDeleting != null)) {
+ this.StaffRowDeleting(this, new StaffRowChangeEvent(((StaffRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemoveStaffRow(StaffRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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();
+ dsMSSQL ds = new dsMSSQL();
+ 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 = "StaffDataTable";
+ 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.
///
@@ -7116,6 +7653,118 @@ namespace FCM0000 {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string owner {
+ get {
+ if (this.IsownerNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableCustoms.ownerColumn]));
+ }
+ }
+ set {
+ this[this.tableCustoms.ownerColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string ownertel {
+ get {
+ if (this.IsownertelNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableCustoms.ownertelColumn]));
+ }
+ }
+ set {
+ this[this.tableCustoms.ownertelColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string address {
+ get {
+ if (this.IsaddressNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableCustoms.addressColumn]));
+ }
+ }
+ set {
+ this[this.tableCustoms.addressColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string uptae {
+ get {
+ if (this.IsuptaeNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableCustoms.uptaeColumn]));
+ }
+ }
+ set {
+ this[this.tableCustoms.uptaeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string staff {
+ get {
+ if (this.IsstaffNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableCustoms.staffColumn]));
+ }
+ }
+ set {
+ this[this.tableCustoms.staffColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string stafftel {
+ get {
+ if (this.IsstafftelNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableCustoms.stafftelColumn]));
+ }
+ }
+ set {
+ this[this.tableCustoms.stafftelColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string name2 {
+ get {
+ if (this.Isname2Null()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableCustoms.name2Column]));
+ }
+ }
+ set {
+ this[this.tableCustoms.name2Column] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsgrpNull() {
@@ -7187,6 +7836,334 @@ namespace FCM0000 {
public void SetmemoNull() {
this[this.tableCustoms.memoColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsownerNull() {
+ return this.IsNull(this.tableCustoms.ownerColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetownerNull() {
+ this[this.tableCustoms.ownerColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsownertelNull() {
+ return this.IsNull(this.tableCustoms.ownertelColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetownertelNull() {
+ this[this.tableCustoms.ownertelColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsaddressNull() {
+ return this.IsNull(this.tableCustoms.addressColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetaddressNull() {
+ this[this.tableCustoms.addressColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsuptaeNull() {
+ return this.IsNull(this.tableCustoms.uptaeColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetuptaeNull() {
+ this[this.tableCustoms.uptaeColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsstaffNull() {
+ return this.IsNull(this.tableCustoms.staffColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetstaffNull() {
+ this[this.tableCustoms.staffColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsstafftelNull() {
+ return this.IsNull(this.tableCustoms.stafftelColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetstafftelNull() {
+ this[this.tableCustoms.stafftelColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool Isname2Null() {
+ return this.IsNull(this.tableCustoms.name2Column);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void Setname2Null() {
+ this[this.tableCustoms.name2Column] = global::System.Convert.DBNull;
+ }
+ }
+
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class StaffRow : global::System.Data.DataRow {
+
+ private StaffDataTable tableStaff;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal StaffRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableStaff = ((StaffDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int idx {
+ get {
+ return ((int)(this[this.tableStaff.idxColumn]));
+ }
+ set {
+ this[this.tableStaff.idxColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int cid {
+ get {
+ try {
+ return ((int)(this[this.tableStaff.cidColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'Staff\' 테이블의 \'cid\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableStaff.cidColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string name {
+ get {
+ if (this.IsnameNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableStaff.nameColumn]));
+ }
+ }
+ set {
+ this[this.tableStaff.nameColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string grade {
+ get {
+ if (this.IsgradeNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableStaff.gradeColumn]));
+ }
+ }
+ set {
+ this[this.tableStaff.gradeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string dept {
+ get {
+ if (this.IsdeptNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableStaff.deptColumn]));
+ }
+ }
+ set {
+ this[this.tableStaff.deptColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string tel {
+ get {
+ if (this.IstelNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableStaff.telColumn]));
+ }
+ }
+ set {
+ this[this.tableStaff.telColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string email {
+ get {
+ if (this.IsemailNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableStaff.emailColumn]));
+ }
+ }
+ set {
+ this[this.tableStaff.emailColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string memo {
+ get {
+ if (this.IsmemoNull()) {
+ return string.Empty;
+ }
+ else {
+ return ((string)(this[this.tableStaff.memoColumn]));
+ }
+ }
+ set {
+ this[this.tableStaff.memoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string wuid {
+ get {
+ return ((string)(this[this.tableStaff.wuidColumn]));
+ }
+ set {
+ this[this.tableStaff.wuidColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public System.DateTime wdate {
+ get {
+ return ((global::System.DateTime)(this[this.tableStaff.wdateColumn]));
+ }
+ set {
+ this[this.tableStaff.wdateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IscidNull() {
+ return this.IsNull(this.tableStaff.cidColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetcidNull() {
+ this[this.tableStaff.cidColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsnameNull() {
+ return this.IsNull(this.tableStaff.nameColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetnameNull() {
+ this[this.tableStaff.nameColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsgradeNull() {
+ return this.IsNull(this.tableStaff.gradeColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetgradeNull() {
+ this[this.tableStaff.gradeColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsdeptNull() {
+ return this.IsNull(this.tableStaff.deptColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetdeptNull() {
+ this[this.tableStaff.deptColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IstelNull() {
+ return this.IsNull(this.tableStaff.telColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SettelNull() {
+ this[this.tableStaff.telColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsemailNull() {
+ return this.IsNull(this.tableStaff.emailColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetemailNull() {
+ this[this.tableStaff.emailColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsmemoNull() {
+ return this.IsNull(this.tableStaff.memoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetmemoNull() {
+ this[this.tableStaff.memoColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -7494,6 +8471,40 @@ namespace FCM0000 {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class StaffRowChangeEvent : global::System.EventArgs {
+
+ private StaffRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public StaffRowChangeEvent(StaffRow 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", "4.0.0.0")]
+ public StaffRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace FCM0000.dsMSSQLTableAdapters {
@@ -13410,16 +14421,29 @@ SELECT idx, tolist, cclist, bcclist, title, sid, url, qty, remark, wuid, wdate,
tableMapping.ColumnMappings.Add("memo", "memo");
tableMapping.ColumnMappings.Add("wuid", "wuid");
tableMapping.ColumnMappings.Add("wdate", "wdate");
+ tableMapping.ColumnMappings.Add("owner", "owner");
+ tableMapping.ColumnMappings.Add("ownertel", "ownertel");
+ tableMapping.ColumnMappings.Add("address", "address");
+ tableMapping.ColumnMappings.Add("uptae", "uptae");
+ tableMapping.ColumnMappings.Add("staff", "staff");
+ tableMapping.ColumnMappings.Add("stafftel", "stafftel");
+ tableMapping.ColumnMappings.Add("name2", "name2");
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 [Customs] WHERE (([idx] = @Original_idx) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = 1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Customs] WHERE (([idx] = @Original_idx) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_owner = 1 AND [owner] IS NULL) OR ([owner] = @Original_owner)) AND ((@IsNull_ownertel = 1 AND [ownertel] IS NULL) OR ([ownertel] = @Original_ownertel)) AND ((@IsNull_address = 1 AND [address] IS NULL) OR ([address] = @Original_address)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = 1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uptae = 1 AND [uptae] IS NULL) OR ([uptae] = @Original_uptae)) AND ((@IsNull_staff = 1 AND [staff] IS NULL) OR ([staff] = @Original_staff)) AND ((@IsNull_stafftel = 1 AND [stafftel] IS NULL) OR ([stafftel] = @Original_stafftel)) AND ((@IsNull_name2 = 1 AND [name2] IS NULL) OR ([name2] = @Original_name2)))";
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_grp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_owner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "owner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_owner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "owner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ownertel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ownertel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ownertel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ownertel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_fax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -13430,39 +14454,83 @@ SELECT idx, tolist, cclist, bcclist, title, sid, url, qty, remark, wuid, wdate,
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.DateTime, 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_uptae", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uptae", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uptae", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uptae", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_staff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "staff", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_staff", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "staff", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stafftel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stafftel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stafftel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stafftel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name2", 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 [Customs] ([grp], [name], [tel], [fax], [email], [memo], [wuid], [wda" +
- "te]) VALUES (@grp, @name, @tel, @fax, @email, @memo, @wuid, @wdate);\r\nSELECT idx" +
- ", grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (idx = SCOPE_" +
- "IDENTITY())";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [Customs] ([grp], [name], [owner], [ownertel], [address], [tel], [fax], [email], [memo], [wuid], [wdate], [uptae], [staff], [stafftel], [name2]) VALUES (@grp, @name, @owner, @ownertel, @address, @tel, @fax, @email, @memo, @wuid, @wdate, @uptae, @staff, @stafftel, @name2);
+SELECT idx, grp, name, owner, ownertel, address, tel, fax, email, memo, wuid, wdate, uptae, staff, stafftel, name2 FROM Customs WHERE (idx = SCOPE_IDENTITY()) ORDER BY name";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@owner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "owner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ownertel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ownertel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fax", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", 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.DateTime, 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("@uptae", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uptae", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@staff", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "staff", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stafftel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stafftel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name2", 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 [Customs] SET [grp] = @grp, [name] = @name, [tel] = @tel, [fax] = @fax, [email] = @email, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = 1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
-SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (idx = @idx)";
+ this._adapter.UpdateCommand.CommandText = "UPDATE [Customs] SET [grp] = @grp, [name] = @name, [owner] = @owner, [ownertel] =" +
+ " @ownertel, [address] = @address, [tel] = @tel, [fax] = @fax, [email] = @email, " +
+ "[memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [uptae] = @uptae, [staff] = @s" +
+ "taff, [stafftel] = @stafftel, [name2] = @name2 WHERE (([idx] = @Original_idx) AN" +
+ "D ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull" +
+ "_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_owner " +
+ "= 1 AND [owner] IS NULL) OR ([owner] = @Original_owner)) AND ((@IsNull_ownertel " +
+ "= 1 AND [ownertel] IS NULL) OR ([ownertel] = @Original_ownertel)) AND ((@IsNull_" +
+ "address = 1 AND [address] IS NULL) OR ([address] = @Original_address)) AND ((@Is" +
+ "Null_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = " +
+ "1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [em" +
+ "ail] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] " +
+ "IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate" +
+ "] = @Original_wdate) AND ((@IsNull_uptae = 1 AND [uptae] IS NULL) OR ([uptae] = " +
+ "@Original_uptae)) AND ((@IsNull_staff = 1 AND [staff] IS NULL) OR ([staff] = @Or" +
+ "iginal_staff)) AND ((@IsNull_stafftel = 1 AND [stafftel] IS NULL) OR ([stafftel]" +
+ " = @Original_stafftel)) AND ((@IsNull_name2 = 1 AND [name2] IS NULL) OR ([name2]" +
+ " = @Original_name2)));\r\nSELECT idx, grp, name, owner, ownertel, address, tel, fa" +
+ "x, email, memo, wuid, wdate, uptae, staff, stafftel, name2 FROM Customs WHERE (i" +
+ "dx = @idx) ORDER BY name";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@owner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "owner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ownertel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ownertel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fax", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", 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.DateTime, 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("@uptae", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uptae", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@staff", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "staff", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@stafftel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stafftel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name2", 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_grp", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_owner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "owner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_owner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "owner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ownertel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ownertel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ownertel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ownertel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_address", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_address", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_fax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -13473,6 +14541,14 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
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.DateTime, 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_uptae", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uptae", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uptae", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uptae", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_staff", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "staff", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_staff", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "staff", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_stafftel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stafftel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_stafftel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "stafftel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name2", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name2", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name2", 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, "", "", ""));
}
@@ -13486,22 +14562,29 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT Customs.*\r\nFROM Customs";
+ this._commandCollection[0].CommandText = "SELECT idx, grp, name, owner, ownertel, address, tel, fax, email, memo, wuid, wd" +
+ "ate, uptae, staff, stafftel, name2\r\nFROM Customs\r\nORDER BY name";
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 Customs.*\r\nFROM Customs\r\nwhere Grp = @grp";
+ this._commandCollection[1].CommandText = "SELECT ISNULL(COUNT(*), 0) AS Expr1\r\nFROM Customs\r\nWHERE (ISNULL(name, N\'\')" +
+ " LIKE @name) OR\r\n (ISNULL(name2, N\'\') LIKE @name)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "grp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", 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 Customs.*\r\nFROM Customs\r\nwhere name like @search or tel like @search " +
- "or email like @search or memo like @search";
+ this._commandCollection[2].CommandText = "SELECT address, email, fax, grp, idx, memo, name, name2, owner, ownertel, staff, " +
+ "stafftel, tel, uptae, wdate, wuid FROM Customs WHERE (grp = @grp)";
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grp", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "grp", 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 address, email, fax, grp, idx, memo, name, name2, owner, ownertel, staff, stafftel, tel, uptae, wdate, wuid FROM Customs WHERE (ISNULL(name, N'') LIKE @search) OR (ISNULL(tel, N'') LIKE @search) OR (ISNULL(email, N'') LIKE @search) OR (ISNULL(name2, N'') LIKE @search) OR (memo LIKE @search)";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -13533,7 +14616,7 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillbyGrp(dsMSSQL.CustomsDataTable dataTable, string grp) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
+ this.Adapter.SelectCommand = this.CommandCollection[2];
if ((grp == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -13552,7 +14635,7 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.CustomsDataTable GetbyGrp(string grp) {
- this.Adapter.SelectCommand = this.CommandCollection[1];
+ this.Adapter.SelectCommand = this.CommandCollection[2];
if ((grp == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -13569,9 +14652,9 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillSearch(dsMSSQL.CustomsDataTable dataTable, string search) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
+ this.Adapter.SelectCommand = this.CommandCollection[3];
if ((search == null)) {
- this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ throw new global::System.ArgumentNullException("search");
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(search));
@@ -13588,9 +14671,9 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.CustomsDataTable GetSearch(string search) {
- this.Adapter.SelectCommand = this.CommandCollection[2];
+ this.Adapter.SelectCommand = this.CommandCollection[3];
if ((search == null)) {
- this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
+ throw new global::System.ArgumentNullException("search");
}
else {
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(search));
@@ -13633,7 +14716,23 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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_grp, string Original_name, string Original_tel, string Original_fax, string Original_email, string Original_memo, string Original_wuid, System.DateTime Original_wdate) {
+ public virtual int Delete(
+ int Original_idx,
+ string Original_grp,
+ string Original_name,
+ string Original_owner,
+ string Original_ownertel,
+ string Original_address,
+ string Original_tel,
+ string Original_fax,
+ string Original_email,
+ string Original_memo,
+ string Original_wuid,
+ System.DateTime Original_wdate,
+ string Original_uptae,
+ string Original_staff,
+ string Original_stafftel,
+ string Original_name2) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
if ((Original_grp == null)) {
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
@@ -13651,45 +14750,101 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_name));
}
- if ((Original_tel == null)) {
+ if ((Original_owner == 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_tel));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_owner));
}
- if ((Original_fax == null)) {
+ if ((Original_ownertel == 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_fax));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_ownertel));
}
- if ((Original_email == null)) {
+ if ((Original_address == 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_email));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_address));
}
- if ((Original_memo == null)) {
+ if ((Original_tel == 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 = ((string)(Original_memo));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_tel));
+ }
+ if ((Original_fax == null)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_fax));
+ }
+ if ((Original_email == null)) {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_email));
+ }
+ if ((Original_memo == null)) {
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((string)(Original_memo));
}
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[19].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_uptae == null)) {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_uptae));
+ }
+ if ((Original_staff == null)) {
+ this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[24].Value = ((string)(Original_staff));
+ }
+ if ((Original_stafftel == null)) {
+ this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[26].Value = ((string)(Original_stafftel));
+ }
+ if ((Original_name2 == null)) {
+ this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_name2));
}
- 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)) {
@@ -13710,7 +14865,7 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 grp, string name, string tel, string fax, string email, string memo, string wuid, System.DateTime wdate) {
+ public virtual int Insert(string grp, string name, string owner, string ownertel, string address, string tel, string fax, string email, string memo, string wuid, System.DateTime wdate, string uptae, string staff, string stafftel, string name2) {
if ((grp == null)) {
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
}
@@ -13723,37 +14878,79 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
}
- if ((tel == null)) {
+ if ((owner == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[2].Value = ((string)(tel));
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(owner));
}
- if ((fax == null)) {
+ if ((ownertel == null)) {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[3].Value = ((string)(fax));
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ownertel));
}
- if ((email == null)) {
+ if ((address == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[4].Value = ((string)(email));
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(address));
}
- if ((memo == null)) {
+ if ((tel == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.InsertCommand.Parameters[5].Value = ((string)(memo));
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(tel));
+ }
+ if ((fax == null)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(fax));
+ }
+ if ((email == null)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(email));
+ }
+ if ((memo == null)) {
+ this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((string)(memo));
}
if ((wuid == null)) {
throw new global::System.ArgumentNullException("wuid");
}
else {
- this.Adapter.InsertCommand.Parameters[6].Value = ((string)(wuid));
+ this.Adapter.InsertCommand.Parameters[9].Value = ((string)(wuid));
+ }
+ this.Adapter.InsertCommand.Parameters[10].Value = ((System.DateTime)(wdate));
+ if ((uptae == null)) {
+ this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[11].Value = ((string)(uptae));
+ }
+ if ((staff == null)) {
+ this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[12].Value = ((string)(staff));
+ }
+ if ((stafftel == null)) {
+ this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[13].Value = ((string)(stafftel));
+ }
+ if ((name2 == null)) {
+ this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[14].Value = ((string)(name2));
}
- this.Adapter.InsertCommand.Parameters[7].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)) {
@@ -13777,21 +14974,35 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
public virtual int Update(
string grp,
string name,
+ string owner,
+ string ownertel,
+ string address,
string tel,
string fax,
string email,
string memo,
string wuid,
System.DateTime wdate,
+ string uptae,
+ string staff,
+ string stafftel,
+ string name2,
int Original_idx,
string Original_grp,
string Original_name,
+ string Original_owner,
+ string Original_ownertel,
+ string Original_address,
string Original_tel,
string Original_fax,
string Original_email,
string Original_memo,
string Original_wuid,
System.DateTime Original_wdate,
+ string Original_uptae,
+ string Original_staff,
+ string Original_stafftel,
+ string Original_name2,
int idx) {
if ((grp == null)) {
this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
@@ -13805,94 +15016,192 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(name));
}
- if ((tel == null)) {
+ if ((owner == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(tel));
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(owner));
}
- if ((fax == null)) {
+ if ((ownertel == null)) {
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(fax));
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ownertel));
}
- if ((email == null)) {
+ if ((address == null)) {
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(email));
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(address));
}
- if ((memo == null)) {
+ if ((tel == null)) {
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(memo));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(tel));
+ }
+ if ((fax == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(fax));
+ }
+ if ((email == null)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(email));
+ }
+ if ((memo == null)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(memo));
}
if ((wuid == null)) {
throw new global::System.ArgumentNullException("wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(wuid));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(wuid));
}
- this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(wdate));
- this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idx));
- if ((Original_grp == null)) {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((System.DateTime)(wdate));
+ if ((uptae == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_grp));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(uptae));
}
- if ((Original_name == null)) {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
+ if ((staff == null)) {
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_name));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(staff));
}
- if ((Original_tel == null)) {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
+ if ((stafftel == null)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(stafftel));
+ }
+ if ((name2 == null)) {
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_tel));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(name2));
+ }
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_idx));
+ if ((Original_grp == null)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_grp));
+ }
+ if ((Original_name == 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_name));
+ }
+ if ((Original_owner == 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_owner));
+ }
+ if ((Original_ownertel == 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_ownertel));
+ }
+ if ((Original_address == 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_address));
+ }
+ if ((Original_tel == 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_tel));
}
if ((Original_fax == null)) {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_fax));
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_fax));
}
if ((Original_email == null)) {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_email));
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((string)(Original_email));
}
if ((Original_memo == null)) {
- this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_memo));
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_memo));
}
if ((Original_wuid == null)) {
throw new global::System.ArgumentNullException("Original_wuid");
}
else {
- this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_wuid));
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_wuid));
}
- this.Adapter.UpdateCommand.Parameters[22].Value = ((System.DateTime)(Original_wdate));
- this.Adapter.UpdateCommand.Parameters[23].Value = ((int)(idx));
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((System.DateTime)(Original_wdate));
+ if ((Original_uptae == null)) {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_uptae));
+ }
+ if ((Original_staff == null)) {
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_staff));
+ }
+ if ((Original_stafftel == null)) {
+ this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_stafftel));
+ }
+ if ((Original_name2 == null)) {
+ this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_name2));
+ }
+ this.Adapter.UpdateCommand.Parameters[44].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)) {
@@ -13916,22 +15225,750 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
public virtual int Update(
string grp,
string name,
+ string owner,
+ string ownertel,
+ string address,
string tel,
string fax,
string email,
string memo,
string wuid,
System.DateTime wdate,
+ string uptae,
+ string staff,
+ string stafftel,
+ string name2,
int Original_idx,
string Original_grp,
string Original_name,
+ string Original_owner,
+ string Original_ownertel,
+ string Original_address,
string Original_tel,
string Original_fax,
string Original_email,
string Original_memo,
string Original_wuid,
+ System.DateTime Original_wdate,
+ string Original_uptae,
+ string Original_staff,
+ string Original_stafftel,
+ string Original_name2) {
+ return this.Update(grp, name, owner, ownertel, address, tel, fax, email, memo, wuid, wdate, uptae, staff, stafftel, name2, Original_idx, Original_grp, Original_name, Original_owner, Original_ownertel, Original_address, Original_tel, Original_fax, Original_email, Original_memo, Original_wuid, Original_wdate, Original_uptae, Original_staff, Original_stafftel, Original_name2, Original_idx);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual global::System.Nullable ExistName(string name) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((name == null)) {
+ throw new global::System.ArgumentNullException("name");
+ }
+ else {
+ command.Parameters[0].Value = ((string)(name));
+ }
+ 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)));
+ }
+ }
+ }
+
+ ///
+ ///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 StaffTableAdapter : 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", "4.0.0.0")]
+ public StaffTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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", "4.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", "4.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", "4.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 = "Staff";
+ tableMapping.ColumnMappings.Add("idx", "idx");
+ tableMapping.ColumnMappings.Add("cid", "cid");
+ tableMapping.ColumnMappings.Add("name", "name");
+ tableMapping.ColumnMappings.Add("grade", "grade");
+ tableMapping.ColumnMappings.Add("dept", "dept");
+ tableMapping.ColumnMappings.Add("tel", "tel");
+ tableMapping.ColumnMappings.Add("email", "email");
+ 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 [Staff] WHERE (([idx] = @Original_idx) AND ((@IsNull_cid = 1 AND [cid] IS NULL) OR ([cid] = @Original_cid)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) 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_cid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grade", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grade", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dept", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", 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.DateTime, 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 [Staff] ([cid], [name], [grade], [dept], [tel], [email], [memo], [wuid], [wdate]) VALUES (@cid, @name, @grade, @dept, @tel, @email, @memo, @wuid, @wdate);
+SELECT idx, cid, name, grade, dept, tel, email, memo, wuid, wdate FROM Staff WHERE (idx = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grade", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", 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.DateTime, 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 [Staff] SET [cid] = @cid, [name] = @name, [grade] = @grade, [dept] = @dept, [tel] = @tel, [email] = @email, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cid = 1 AND [cid] IS NULL) OR ([cid] = @Original_cid)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
+SELECT idx, cid, name, grade, dept, tel, email, memo, wuid, wdate FROM Staff WHERE (idx = @idx)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grade", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", 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.DateTime, 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_cid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cid", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cid", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grade", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grade", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grade", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dept", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tel", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tel", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", 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.DateTime, 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", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::FCM0000.Properties.Settings.Default.gwcs;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 Staff.*\r\nFROM Staff";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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(dsMSSQL.StaffDataTable 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", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual dsMSSQL.StaffDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ dsMSSQL.StaffDataTable dataTable = new dsMSSQL.StaffDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsMSSQL.StaffDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsMSSQL dataSet) {
+ return this.Adapter.Update(dataSet, "Staff");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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", "4.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", "4.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_cid, string Original_name, string Original_grade, string Original_dept, string Original_tel, string Original_email, string Original_memo, string Original_wuid, System.DateTime Original_wdate) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
+ if ((Original_cid.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_cid.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((Original_name == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_name));
+ }
+ if ((Original_grade == 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_grade));
+ }
+ if ((Original_dept == 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_dept));
+ }
+ if ((Original_tel == 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_tel));
+ }
+ if ((Original_email == 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 = ((string)(Original_email));
+ }
+ if ((Original_memo == null)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_memo));
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.DeleteCommand.Parameters[16].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", "4.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 cid, string name, string grade, string dept, string tel, string email, string memo, string wuid, System.DateTime wdate) {
+ if ((cid.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(cid.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ if ((name == null)) {
+ this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
+ }
+ if ((grade == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(grade));
+ }
+ if ((dept == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(dept));
+ }
+ if ((tel == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(tel));
+ }
+ if ((email == null)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(email));
+ }
+ if ((memo == null)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(memo));
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(wuid));
+ }
+ this.Adapter.InsertCommand.Parameters[8].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", "4.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 cid,
+ string name,
+ string grade,
+ string dept,
+ string tel,
+ string email,
+ string memo,
+ string wuid,
+ System.DateTime wdate,
+ int Original_idx,
+ global::System.Nullable Original_cid,
+ string Original_name,
+ string Original_grade,
+ string Original_dept,
+ string Original_tel,
+ string Original_email,
+ string Original_memo,
+ string Original_wuid,
+ System.DateTime Original_wdate,
+ int idx) {
+ if ((cid.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(cid.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ if ((name == null)) {
+ this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(name));
+ }
+ if ((grade == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(grade));
+ }
+ if ((dept == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(dept));
+ }
+ if ((tel == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(tel));
+ }
+ if ((email == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(email));
+ }
+ if ((memo == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(memo));
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(wdate));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_idx));
+ if ((Original_cid.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_cid.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ if ((Original_name == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_name));
+ }
+ if ((Original_grade == null)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_grade));
+ }
+ if ((Original_dept == null)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_dept));
+ }
+ if ((Original_tel == 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_tel));
+ }
+ if ((Original_email == 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_email));
+ }
+ if ((Original_memo == 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_memo));
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((System.DateTime)(Original_wdate));
+ this.Adapter.UpdateCommand.Parameters[26].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", "4.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 cid,
+ string name,
+ string grade,
+ string dept,
+ string tel,
+ string email,
+ string memo,
+ string wuid,
+ System.DateTime wdate,
+ int Original_idx,
+ global::System.Nullable Original_cid,
+ string Original_name,
+ string Original_grade,
+ string Original_dept,
+ string Original_tel,
+ string Original_email,
+ string Original_memo,
+ string Original_wuid,
System.DateTime Original_wdate) {
- return this.Update(grp, name, tel, fax, email, memo, wuid, wdate, Original_idx, Original_grp, Original_name, Original_tel, Original_fax, Original_email, Original_memo, Original_wuid, Original_wdate, Original_idx);
+ return this.Update(cid, name, grade, dept, tel, email, memo, wuid, wdate, Original_idx, Original_cid, Original_name, Original_grade, Original_dept, Original_tel, Original_email, 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 QueriesTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.IDbCommand[] _commandCollection;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.IDbCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.IDbCommand[1];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::FCM0000.Properties.Settings.Default.gwcs);
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "SELECT ISNULL(SUM(cnt), 0) AS Expr1\r\nFROM vSupplyUsage\r\nWHERE (supplyidx = " +
+ "@idx)";
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.Text;
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "supplyidx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual global::System.Nullable CheckSupplyUsage(global::System.Nullable idx) {
+ global::System.Data.SqlClient.SqlCommand command = ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[0]));
+ if ((idx.HasValue == true)) {
+ command.Parameters[0].Value = ((int)(idx.Value));
+ }
+ else {
+ command.Parameters[0].Value = global::System.DBNull.Value;
+ }
+ 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)));
+ }
}
}
@@ -13965,6 +16002,8 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
private CustomsTableAdapter _customsTableAdapter;
+ private StaffTableAdapter _staffTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -14106,6 +16145,20 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.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 StaffTableAdapter StaffTableAdapter {
+ get {
+ return this._staffTableAdapter;
+ }
+ set {
+ this._staffTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -14161,6 +16214,10 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
&& (this._customsTableAdapter.Connection != null))) {
return this._customsTableAdapter.Connection;
}
+ if (((this._staffTableAdapter != null)
+ && (this._staffTableAdapter.Connection != null))) {
+ return this._staffTableAdapter.Connection;
+ }
return null;
}
set {
@@ -14201,6 +16258,9 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
if ((this._customsTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._staffTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -14293,6 +16353,15 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._staffTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Staff.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._staffTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -14375,6 +16444,14 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._staffTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Staff.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._staffTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -14385,6 +16462,14 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(dsMSSQL dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._staffTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Staff.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._staffTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._customsTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Customs.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -14532,6 +16617,10 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
&& (this.MatchTableAdapterConnection(this._customsTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
}
+ if (((this._staffTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._staffTableAdapter.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" +
@@ -14644,6 +16733,15 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
adaptersWithAcceptChangesDuringUpdate.Add(this._customsTableAdapter.Adapter);
}
}
+ if ((this._staffTableAdapter != null)) {
+ revertConnections.Add(this._staffTableAdapter, this._staffTableAdapter.Connection);
+ this._staffTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._staffTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._staffTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._staffTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._staffTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -14738,6 +16836,10 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
this._customsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._customsTableAdapter]));
this._customsTableAdapter.Transaction = null;
}
+ if ((this._staffTableAdapter != null)) {
+ this._staffTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._staffTableAdapter]));
+ this._staffTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/SubProject/FCM0000/dsMSSQL.xsd b/SubProject/FCM0000/dsMSSQL.xsd
index 35fb42e..5e0fbe1 100644
--- a/SubProject/FCM0000/dsMSSQL.xsd
+++ b/SubProject/FCM0000/dsMSSQL.xsd
@@ -2,7 +2,7 @@
-
+
@@ -1040,13 +1040,19 @@ WHERE (idx = @idx)
- DELETE FROM [Customs] WHERE (([idx] = @Original_idx) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = 1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))
+ DELETE FROM [Customs] WHERE (([idx] = @Original_idx) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_owner = 1 AND [owner] IS NULL) OR ([owner] = @Original_owner)) AND ((@IsNull_ownertel = 1 AND [ownertel] IS NULL) OR ([ownertel] = @Original_ownertel)) AND ((@IsNull_address = 1 AND [address] IS NULL) OR ([address] = @Original_address)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = 1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uptae = 1 AND [uptae] IS NULL) OR ([uptae] = @Original_uptae)) AND ((@IsNull_staff = 1 AND [staff] IS NULL) OR ([staff] = @Original_staff)) AND ((@IsNull_stafftel = 1 AND [stafftel] IS NULL) OR ([stafftel] = @Original_stafftel)) AND ((@IsNull_name2 = 1 AND [name2] IS NULL) OR ([name2] = @Original_name2)))
+
+
+
+
+
+
@@ -1057,50 +1063,79 @@ WHERE (idx = @idx)
+
+
+
+
+
+
+
+
- INSERT INTO [Customs] ([grp], [name], [tel], [fax], [email], [memo], [wuid], [wdate]) VALUES (@grp, @name, @tel, @fax, @email, @memo, @wuid, @wdate);
-SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (idx = SCOPE_IDENTITY())
+ INSERT INTO [Customs] ([grp], [name], [owner], [ownertel], [address], [tel], [fax], [email], [memo], [wuid], [wdate], [uptae], [staff], [stafftel], [name2]) VALUES (@grp, @name, @owner, @ownertel, @address, @tel, @fax, @email, @memo, @wuid, @wdate, @uptae, @staff, @stafftel, @name2);
+SELECT idx, grp, name, owner, ownertel, address, tel, fax, email, memo, wuid, wdate, uptae, staff, stafftel, name2 FROM Customs WHERE (idx = SCOPE_IDENTITY()) ORDER BY name
+
+
+
+
+
+
+
-
- SELECT Customs.*
-FROM Customs
+
+ SELECT idx, grp, name, owner, ownertel, address, tel, fax, email, memo, wuid, wdate, uptae, staff, stafftel, name2
+FROM Customs
+ORDER BY name
- UPDATE [Customs] SET [grp] = @grp, [name] = @name, [tel] = @tel, [fax] = @fax, [email] = @email, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = 1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
-SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (idx = @idx)
+ UPDATE [Customs] SET [grp] = @grp, [name] = @name, [owner] = @owner, [ownertel] = @ownertel, [address] = @address, [tel] = @tel, [fax] = @fax, [email] = @email, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [uptae] = @uptae, [staff] = @staff, [stafftel] = @stafftel, [name2] = @name2 WHERE (([idx] = @Original_idx) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_owner = 1 AND [owner] IS NULL) OR ([owner] = @Original_owner)) AND ((@IsNull_ownertel = 1 AND [ownertel] IS NULL) OR ([ownertel] = @Original_ownertel)) AND ((@IsNull_address = 1 AND [address] IS NULL) OR ([address] = @Original_address)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_fax = 1 AND [fax] IS NULL) OR ([fax] = @Original_fax)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_uptae = 1 AND [uptae] IS NULL) OR ([uptae] = @Original_uptae)) AND ((@IsNull_staff = 1 AND [staff] IS NULL) OR ([staff] = @Original_staff)) AND ((@IsNull_stafftel = 1 AND [stafftel] IS NULL) OR ([stafftel] = @Original_stafftel)) AND ((@IsNull_name2 = 1 AND [name2] IS NULL) OR ([name2] = @Original_name2)));
+SELECT idx, grp, name, owner, ownertel, address, tel, fax, email, memo, wuid, wdate, uptae, staff, stafftel, name2 FROM Customs WHERE (idx = @idx) ORDER BY name
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1111,6 +1146,14 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
+
+
+
+
+
+
+
+
@@ -1127,14 +1170,32 @@ SELECT idx, grp, name, tel, fax, email, memo, wuid, wdate FROM Customs WHERE (id
+
+
+
+
+
+
+
+
+
+
+ SELECT ISNULL(COUNT(*), 0) AS Expr1
+FROM Customs
+WHERE (ISNULL(name, N'') LIKE @name) OR
+ (ISNULL(name2, N'') LIKE @name)
+
+
+
+
+
+
- SELECT Customs.*
-FROM Customs
-where Grp = @grp
+ SELECT address, email, fax, grp, idx, memo, name, name2, owner, ownertel, staff, stafftel, tel, uptae, wdate, wuid FROM Customs WHERE (grp = @grp)
@@ -1144,19 +1205,132 @@ where Grp = @grp
- SELECT Customs.*
-FROM Customs
-where name like @search or tel like @search or email like @search or memo like @search
+ SELECT address, email, fax, grp, idx, memo, name, name2, owner, ownertel, staff, stafftel, tel, uptae, wdate, wuid FROM Customs WHERE (ISNULL(name, N'') LIKE @search) OR (ISNULL(tel, N'') LIKE @search) OR (ISNULL(email, N'') LIKE @search) OR (ISNULL(name2, N'') LIKE @search) OR (memo LIKE @search)
-
+
+
+
+
+
+
+ DELETE FROM [Staff] WHERE (([idx] = @Original_idx) AND ((@IsNull_cid = 1 AND [cid] IS NULL) OR ([cid] = @Original_cid)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [Staff] ([cid], [name], [grade], [dept], [tel], [email], [memo], [wuid], [wdate]) VALUES (@cid, @name, @grade, @dept, @tel, @email, @memo, @wuid, @wdate);
+SELECT idx, cid, name, grade, dept, tel, email, memo, wuid, wdate FROM Staff WHERE (idx = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT Staff.*
+FROM Staff
+
+
+
+
+
+ UPDATE [Staff] SET [cid] = @cid, [name] = @name, [grade] = @grade, [dept] = @dept, [tel] = @tel, [email] = @email, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_cid = 1 AND [cid] IS NULL) OR ([cid] = @Original_cid)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
+SELECT idx, cid, name, grade, dept, tel, email, memo, wuid, wdate FROM Staff WHERE (idx = @idx)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+ SELECT ISNULL(SUM(cnt), 0) AS Expr1
+FROM vSupplyUsage
+WHERE (supplyidx = @idx)
+
+
+
+
+
+
+
@@ -1723,21 +1897,21 @@ where name like @search or tel like @search or email like @search or memo like @
-
+
-
+
-
+
@@ -1756,6 +1930,113 @@ where name like @search or tel like @search or email like @search or memo like @
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1797,5 +2078,9 @@ where name like @search or tel like @search or email like @search or memo like @
+
+
+
+
\ No newline at end of file
diff --git a/SubProject/FCM0000/dsMSSQL.xss b/SubProject/FCM0000/dsMSSQL.xss
index 4a444c9..a29c0e9 100644
--- a/SubProject/FCM0000/dsMSSQL.xss
+++ b/SubProject/FCM0000/dsMSSQL.xss
@@ -6,15 +6,16 @@
-->
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SubProject/FCM0000/fCustoms.Designer.cs b/SubProject/FCM0000/fCustoms.Designer.cs
index 6b75d1b..f211084 100644
--- a/SubProject/FCM0000/fCustoms.Designer.cs
+++ b/SubProject/FCM0000/fCustoms.Designer.cs
@@ -30,15 +30,29 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fCustoms));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
this.dsMSSQL = new FCM0000.dsMSSQL();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FCM0000.dsMSSQLTableAdapters.CustomsTableAdapter();
this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
+ this.taStaff = new FCM0000.dsMSSQLTableAdapters.StaffTableAdapter();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
- this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
@@ -47,24 +61,59 @@
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
+ this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.customsBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
- this.dv1 = new System.Windows.Forms.DataGridView();
+ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
+ this.tbFind = new System.Windows.Forms.ToolStripTextBox();
+ this.btFind = new System.Windows.Forms.ToolStripButton();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.autoResizeColummsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.fpSpread2 = new FarPoint.Win.Spread.FpSpread();
+ this.cm2 = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem();
+ this.fpSpread2_Sheet1 = new FarPoint.Win.Spread.SheetView();
+ this.bsStaff = new System.Windows.Forms.BindingSource(this.components);
+ this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
+ this.bindingNavigatorAddNewItem1 = new System.Windows.Forms.ToolStripButton();
+ this.bindingNavigatorCountItem1 = new System.Windows.Forms.ToolStripLabel();
+ this.bindingNavigatorDeleteItem1 = new System.Windows.Forms.ToolStripButton();
+ this.bindingNavigatorMoveFirstItem1 = new System.Windows.Forms.ToolStripButton();
+ this.bindingNavigatorMovePreviousItem1 = new System.Windows.Forms.ToolStripButton();
+ this.bindingNavigatorSeparator3 = new System.Windows.Forms.ToolStripSeparator();
+ this.bindingNavigatorPositionItem1 = new System.Windows.Forms.ToolStripTextBox();
+ this.bindingNavigatorSeparator4 = new System.Windows.Forms.ToolStripSeparator();
+ this.bindingNavigatorMoveNextItem1 = new System.Windows.Forms.ToolStripButton();
+ this.bindingNavigatorMoveLastItem1 = new System.Windows.Forms.ToolStripButton();
+ this.bindingNavigatorSeparator5 = new System.Windows.Forms.ToolStripSeparator();
+ this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
+ this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.cm1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
+ this.groupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread2)).BeginInit();
+ this.cm2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread2_Sheet1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.bsStaff)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit();
+ this.bindingNavigator1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout();
//
// dsMSSQL
@@ -76,6 +125,7 @@
//
this.bs.DataMember = "Customs";
this.bs.DataSource = this.dsMSSQL;
+ this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged);
//
// ta
//
@@ -93,14 +143,19 @@
this.tam.MailFormTableAdapter = null;
this.tam.ProjectsTableAdapter = null;
this.tam.RequestItemTableAdapter = null;
+ this.tam.StaffTableAdapter = this.taStaff;
this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
+ // taStaff
+ //
+ this.taStaff.ClearBeforeFill = true;
+ //
// bn
//
this.bn.AddNewItem = this.bindingNavigatorAddNewItem;
this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem;
- this.bn.DeleteItem = this.bindingNavigatorDeleteItem;
+ this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
@@ -115,15 +170,19 @@
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem,
this.customsBindingNavigatorSaveItem,
- this.toolStripButton1});
- this.bn.Location = new System.Drawing.Point(0, 433);
+ this.toolStripButton1,
+ this.toolStripSeparator1,
+ this.toolStripLabel2,
+ this.tbFind,
+ this.btFind});
+ this.bn.Location = new System.Drawing.Point(0, 449);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(738, 25);
+ this.bn.Size = new System.Drawing.Size(1134, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -132,8 +191,9 @@
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(65, 22);
- this.bindingNavigatorAddNewItem.Text = "Add(&A)";
+ this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(95, 22);
+ this.bindingNavigatorAddNewItem.Text = "업체 추가(&A)";
+ this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
//
// bindingNavigatorCountItem
//
@@ -142,14 +202,6 @@
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
- // bindingNavigatorDeleteItem
- //
- this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
- this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
- this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
- this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(78, 22);
- this.bindingNavigatorDeleteItem.Text = "Delete(&D)";
- //
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
@@ -210,12 +262,21 @@
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
//
+ // bindingNavigatorDeleteItem
+ //
+ this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
+ this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
+ this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
+ this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(96, 22);
+ this.bindingNavigatorDeleteItem.Text = "업체 삭제(&D)";
+ this.bindingNavigatorDeleteItem.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click);
+ //
// customsBindingNavigatorSaveItem
//
this.customsBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("customsBindingNavigatorSaveItem.Image")));
this.customsBindingNavigatorSaveItem.Name = "customsBindingNavigatorSaveItem";
- this.customsBindingNavigatorSaveItem.Size = new System.Drawing.Size(67, 22);
- this.customsBindingNavigatorSaveItem.Text = "Save(&S)";
+ this.customsBindingNavigatorSaveItem.Size = new System.Drawing.Size(94, 22);
+ this.customsBindingNavigatorSaveItem.Text = "업체 저장(&S)";
this.customsBindingNavigatorSaveItem.Click += new System.EventHandler(this.customsBindingNavigatorSaveItem_Click);
//
// toolStripButton1
@@ -223,111 +284,461 @@
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton1.Image = global::FCM0000.Properties.Resources.action_refresh;
this.toolStripButton1.Name = "toolStripButton1";
- this.toolStripButton1.Size = new System.Drawing.Size(66, 22);
- this.toolStripButton1.Text = "Refresh";
+ this.toolStripButton1.Size = new System.Drawing.Size(114, 22);
+ this.toolStripButton1.Text = "업체새로고침(&R)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
- // dv1
+ // toolStripSeparator1
//
- this.dv1.AllowUserToAddRows = false;
- this.dv1.AutoGenerateColumns = false;
- this.dv1.ColumnHeadersHeight = 30;
- this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
- this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.dataGridViewTextBoxColumn1,
- this.dataGridViewTextBoxColumn2,
- this.dataGridViewTextBoxColumn3,
- this.dataGridViewTextBoxColumn4,
- this.dataGridViewTextBoxColumn5,
- this.dataGridViewTextBoxColumn6,
- this.dataGridViewTextBoxColumn7});
- this.dv1.ContextMenuStrip = this.cm1;
- this.dv1.DataSource = this.bs;
- this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.dv1.Location = new System.Drawing.Point(0, 0);
- this.dv1.Name = "dv1";
- this.dv1.RowTemplate.Height = 23;
- this.dv1.Size = new System.Drawing.Size(738, 433);
- this.dv1.TabIndex = 1;
+ this.toolStripSeparator1.Name = "toolStripSeparator1";
+ this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
+ //
+ // toolStripLabel2
+ //
+ this.toolStripLabel2.Name = "toolStripLabel2";
+ this.toolStripLabel2.Size = new System.Drawing.Size(31, 22);
+ this.toolStripLabel2.Text = "검색";
+ //
+ // tbFind
+ //
+ this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.tbFind.Name = "tbFind";
+ this.tbFind.Size = new System.Drawing.Size(100, 25);
+ this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
+ //
+ // btFind
+ //
+ this.btFind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ this.btFind.Image = ((System.Drawing.Image)(resources.GetObject("btFind.Image")));
+ this.btFind.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.btFind.Name = "btFind";
+ this.btFind.Size = new System.Drawing.Size(23, 22);
+ this.btFind.Text = "toolStripButton2";
+ this.btFind.Click += new System.EventHandler(this.btFind_Click);
//
// cm1
//
+ this.cm1.Font = new System.Drawing.Font("맑은 고딕", 20F);
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.autoResizeColummsToolStripMenuItem});
+ this.columnSizeToolStripMenuItem});
this.cm1.Name = "cm1";
- this.cm1.Size = new System.Drawing.Size(186, 26);
+ this.cm1.Size = new System.Drawing.Size(248, 46);
//
- // autoResizeColummsToolStripMenuItem
+ // columnSizeToolStripMenuItem
//
- this.autoResizeColummsToolStripMenuItem.Name = "autoResizeColummsToolStripMenuItem";
- this.autoResizeColummsToolStripMenuItem.Size = new System.Drawing.Size(185, 22);
- this.autoResizeColummsToolStripMenuItem.Text = "AutoResizeColumms";
- this.autoResizeColummsToolStripMenuItem.Click += new System.EventHandler(this.autoResizeColummsToolStripMenuItem_Click);
+ this.columnSizeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.autoToolStripMenuItem,
+ this.resetToolStripMenuItem,
+ this.saveToolStripMenuItem,
+ this.loadToolStripMenuItem});
+ this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
+ this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(247, 42);
+ this.columnSizeToolStripMenuItem.Text = "Column Size";
//
- // dataGridViewTextBoxColumn1
+ // autoToolStripMenuItem
//
- this.dataGridViewTextBoxColumn1.DataPropertyName = "idx";
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
- this.dataGridViewTextBoxColumn1.HeaderText = "idx";
- this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
- this.dataGridViewTextBoxColumn1.ReadOnly = true;
- this.dataGridViewTextBoxColumn1.Width = 50;
+ this.autoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("autoToolStripMenuItem.Image")));
+ this.autoToolStripMenuItem.Name = "autoToolStripMenuItem";
+ this.autoToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.autoToolStripMenuItem.Text = "Auto";
+ this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click);
//
- // dataGridViewTextBoxColumn2
+ // resetToolStripMenuItem
//
- this.dataGridViewTextBoxColumn2.DataPropertyName = "grp";
- this.dataGridViewTextBoxColumn2.HeaderText = "grp";
- this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ this.resetToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("resetToolStripMenuItem.Image")));
+ this.resetToolStripMenuItem.Name = "resetToolStripMenuItem";
+ this.resetToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.resetToolStripMenuItem.Text = "Reset";
+ this.resetToolStripMenuItem.Click += new System.EventHandler(this.resetToolStripMenuItem_Click);
//
- // dataGridViewTextBoxColumn3
+ // saveToolStripMenuItem
//
- this.dataGridViewTextBoxColumn3.DataPropertyName = "name";
- this.dataGridViewTextBoxColumn3.HeaderText = "name";
- this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+ this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
+ this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
+ this.saveToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.saveToolStripMenuItem.Text = "Save";
+ this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
//
- // dataGridViewTextBoxColumn4
+ // loadToolStripMenuItem
//
- this.dataGridViewTextBoxColumn4.DataPropertyName = "tel";
- this.dataGridViewTextBoxColumn4.HeaderText = "tel";
- this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ this.loadToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("loadToolStripMenuItem.Image")));
+ this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
+ this.loadToolStripMenuItem.Size = new System.Drawing.Size(159, 42);
+ this.loadToolStripMenuItem.Text = "Load";
+ this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
//
- // dataGridViewTextBoxColumn5
+ // fpSpread1
//
- this.dataGridViewTextBoxColumn5.DataPropertyName = "fax";
- this.dataGridViewTextBoxColumn5.HeaderText = "fax";
- this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+ this.fpSpread1.AccessibleDescription = "";
+ this.fpSpread1.ContextMenuStrip = this.cm1;
+ this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fpSpread1.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ this.fpSpread1.Location = new System.Drawing.Point(0, 0);
+ this.fpSpread1.Name = "fpSpread1";
+ this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
+ this.fpSpread1_Sheet1});
+ this.fpSpread1.Size = new System.Drawing.Size(1134, 449);
+ this.fpSpread1.TabIndex = 2;
//
- // dataGridViewTextBoxColumn6
+ // groupBox1
//
- this.dataGridViewTextBoxColumn6.DataPropertyName = "email";
- this.dataGridViewTextBoxColumn6.HeaderText = "email";
- this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+ this.groupBox1.Controls.Add(this.fpSpread2);
+ this.groupBox1.Controls.Add(this.bindingNavigator1);
+ this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.groupBox1.Location = new System.Drawing.Point(0, 474);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Padding = new System.Windows.Forms.Padding(10, 3, 10, 10);
+ this.groupBox1.Size = new System.Drawing.Size(1134, 195);
+ this.groupBox1.TabIndex = 3;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "업체 담당자 목록";
//
- // dataGridViewTextBoxColumn7
+ // fpSpread2
//
- this.dataGridViewTextBoxColumn7.DataPropertyName = "memo";
- this.dataGridViewTextBoxColumn7.HeaderText = "memo";
- this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
+ this.fpSpread2.AccessibleDescription = "";
+ this.fpSpread2.ContextMenuStrip = this.cm2;
+ this.fpSpread2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fpSpread2.Font = new System.Drawing.Font("맑은 고딕", 9.75F);
+ this.fpSpread2.Location = new System.Drawing.Point(10, 17);
+ this.fpSpread2.Name = "fpSpread2";
+ this.fpSpread2.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
+ this.fpSpread2_Sheet1});
+ this.fpSpread2.Size = new System.Drawing.Size(1114, 143);
+ this.fpSpread2.TabIndex = 0;
+ //
+ // cm2
+ //
+ this.cm2.Font = new System.Drawing.Font("맑은 고딕", 20F);
+ this.cm2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripMenuItem1});
+ this.cm2.Name = "cm1";
+ this.cm2.Size = new System.Drawing.Size(248, 46);
+ //
+ // toolStripMenuItem1
+ //
+ this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripMenuItem2,
+ this.toolStripMenuItem3,
+ this.toolStripMenuItem4,
+ this.toolStripMenuItem5});
+ this.toolStripMenuItem1.Name = "toolStripMenuItem1";
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(247, 42);
+ this.toolStripMenuItem1.Text = "Column Size";
+ //
+ // toolStripMenuItem2
+ //
+ this.toolStripMenuItem2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem2.Image")));
+ this.toolStripMenuItem2.Name = "toolStripMenuItem2";
+ this.toolStripMenuItem2.Size = new System.Drawing.Size(159, 42);
+ this.toolStripMenuItem2.Text = "Auto";
+ this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
+ //
+ // toolStripMenuItem3
+ //
+ this.toolStripMenuItem3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem3.Image")));
+ this.toolStripMenuItem3.Name = "toolStripMenuItem3";
+ this.toolStripMenuItem3.Size = new System.Drawing.Size(159, 42);
+ this.toolStripMenuItem3.Text = "Reset";
+ this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click);
+ //
+ // toolStripMenuItem4
+ //
+ this.toolStripMenuItem4.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem4.Image")));
+ this.toolStripMenuItem4.Name = "toolStripMenuItem4";
+ this.toolStripMenuItem4.Size = new System.Drawing.Size(159, 42);
+ this.toolStripMenuItem4.Text = "Save";
+ this.toolStripMenuItem4.Click += new System.EventHandler(this.toolStripMenuItem4_Click);
+ //
+ // toolStripMenuItem5
+ //
+ this.toolStripMenuItem5.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem5.Image")));
+ this.toolStripMenuItem5.Name = "toolStripMenuItem5";
+ this.toolStripMenuItem5.Size = new System.Drawing.Size(159, 42);
+ this.toolStripMenuItem5.Text = "Load";
+ this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click);
+ //
+ // fpSpread2_Sheet1
+ //
+ this.fpSpread2_Sheet1.Reset();
+ this.fpSpread2_Sheet1.SheetName = "Sheet1";
+ // Formulas and custom names must be loaded with R1C1 reference style
+ this.fpSpread2_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
+ this.fpSpread2_Sheet1.ColumnCount = 6;
+ this.fpSpread2_Sheet1.ActiveColumnIndex = -1;
+ this.fpSpread2_Sheet1.ActiveRowIndex = -1;
+ this.fpSpread2_Sheet1.AutoGenerateColumns = false;
+ this.fpSpread2_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "성명";
+ this.fpSpread2_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "직급";
+ this.fpSpread2_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "부서";
+ this.fpSpread2_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "전화";
+ this.fpSpread2_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "이메일";
+ this.fpSpread2_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "비고";
+ this.fpSpread2_Sheet1.Columns.Get(0).CellType = textCellType9;
+ this.fpSpread2_Sheet1.Columns.Get(0).DataField = "name";
+ this.fpSpread2_Sheet1.Columns.Get(0).Label = "성명";
+ this.fpSpread2_Sheet1.Columns.Get(1).CellType = textCellType10;
+ this.fpSpread2_Sheet1.Columns.Get(1).DataField = "grade";
+ this.fpSpread2_Sheet1.Columns.Get(1).Label = "직급";
+ this.fpSpread2_Sheet1.Columns.Get(2).CellType = textCellType11;
+ this.fpSpread2_Sheet1.Columns.Get(2).DataField = "dept";
+ this.fpSpread2_Sheet1.Columns.Get(2).Label = "부서";
+ this.fpSpread2_Sheet1.Columns.Get(3).CellType = textCellType12;
+ this.fpSpread2_Sheet1.Columns.Get(3).DataField = "tel";
+ this.fpSpread2_Sheet1.Columns.Get(3).Label = "전화";
+ this.fpSpread2_Sheet1.Columns.Get(4).CellType = textCellType13;
+ this.fpSpread2_Sheet1.Columns.Get(4).DataField = "email";
+ this.fpSpread2_Sheet1.Columns.Get(4).Label = "이메일";
+ this.fpSpread2_Sheet1.Columns.Get(5).CellType = textCellType14;
+ this.fpSpread2_Sheet1.Columns.Get(5).DataField = "memo";
+ this.fpSpread2_Sheet1.Columns.Get(5).Label = "비고";
+ this.fpSpread2_Sheet1.DataAutoHeadings = false;
+ this.fpSpread2_Sheet1.DataSource = this.bsStaff;
+ this.fpSpread2_Sheet1.RowHeader.Columns.Default.Resizable = false;
+ this.fpSpread2_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
+ //
+ // bsStaff
+ //
+ this.bsStaff.DataMember = "Staff";
+ this.bsStaff.DataSource = this.dsMSSQL;
+ //
+ // bindingNavigator1
+ //
+ this.bindingNavigator1.AddNewItem = this.bindingNavigatorAddNewItem1;
+ this.bindingNavigator1.BindingSource = this.bsStaff;
+ this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem1;
+ this.bindingNavigator1.DeleteItem = this.bindingNavigatorDeleteItem1;
+ this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.bindingNavigatorMoveFirstItem1,
+ this.bindingNavigatorMovePreviousItem1,
+ this.bindingNavigatorSeparator3,
+ this.bindingNavigatorPositionItem1,
+ this.bindingNavigatorCountItem1,
+ this.bindingNavigatorSeparator4,
+ this.bindingNavigatorMoveNextItem1,
+ this.bindingNavigatorMoveLastItem1,
+ this.bindingNavigatorSeparator5,
+ this.bindingNavigatorAddNewItem1,
+ this.bindingNavigatorDeleteItem1,
+ this.toolStripButton2,
+ this.toolStripButton3});
+ this.bindingNavigator1.Location = new System.Drawing.Point(10, 160);
+ this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem1;
+ this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem1;
+ this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem1;
+ this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem1;
+ this.bindingNavigator1.Name = "bindingNavigator1";
+ this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem1;
+ this.bindingNavigator1.Size = new System.Drawing.Size(1114, 25);
+ this.bindingNavigator1.TabIndex = 1;
+ this.bindingNavigator1.Text = "bindingNavigator1";
+ //
+ // bindingNavigatorAddNewItem1
+ //
+ this.bindingNavigatorAddNewItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem1.Image")));
+ this.bindingNavigatorAddNewItem1.Name = "bindingNavigatorAddNewItem1";
+ this.bindingNavigatorAddNewItem1.RightToLeftAutoMirrorImage = true;
+ this.bindingNavigatorAddNewItem1.Size = new System.Drawing.Size(102, 22);
+ this.bindingNavigatorAddNewItem1.Text = "담당자 추가(&I)";
+ //
+ // bindingNavigatorCountItem1
+ //
+ this.bindingNavigatorCountItem1.Name = "bindingNavigatorCountItem1";
+ this.bindingNavigatorCountItem1.Size = new System.Drawing.Size(27, 22);
+ this.bindingNavigatorCountItem1.Text = "/{0}";
+ this.bindingNavigatorCountItem1.ToolTipText = "전체 항목 수";
+ //
+ // bindingNavigatorDeleteItem1
+ //
+ this.bindingNavigatorDeleteItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem1.Image")));
+ this.bindingNavigatorDeleteItem1.Name = "bindingNavigatorDeleteItem1";
+ this.bindingNavigatorDeleteItem1.RightToLeftAutoMirrorImage = true;
+ this.bindingNavigatorDeleteItem1.Size = new System.Drawing.Size(91, 22);
+ this.bindingNavigatorDeleteItem1.Text = "담당자 삭제";
+ //
+ // bindingNavigatorMoveFirstItem1
+ //
+ this.bindingNavigatorMoveFirstItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ this.bindingNavigatorMoveFirstItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem1.Image")));
+ this.bindingNavigatorMoveFirstItem1.Name = "bindingNavigatorMoveFirstItem1";
+ this.bindingNavigatorMoveFirstItem1.RightToLeftAutoMirrorImage = true;
+ this.bindingNavigatorMoveFirstItem1.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMoveFirstItem1.Text = "처음으로 이동";
+ //
+ // bindingNavigatorMovePreviousItem1
+ //
+ this.bindingNavigatorMovePreviousItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ this.bindingNavigatorMovePreviousItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem1.Image")));
+ this.bindingNavigatorMovePreviousItem1.Name = "bindingNavigatorMovePreviousItem1";
+ this.bindingNavigatorMovePreviousItem1.RightToLeftAutoMirrorImage = true;
+ this.bindingNavigatorMovePreviousItem1.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMovePreviousItem1.Text = "이전으로 이동";
+ //
+ // bindingNavigatorSeparator3
+ //
+ this.bindingNavigatorSeparator3.Name = "bindingNavigatorSeparator3";
+ this.bindingNavigatorSeparator3.Size = new System.Drawing.Size(6, 25);
+ //
+ // bindingNavigatorPositionItem1
+ //
+ this.bindingNavigatorPositionItem1.AccessibleName = "위치";
+ this.bindingNavigatorPositionItem1.AutoSize = false;
+ this.bindingNavigatorPositionItem1.Name = "bindingNavigatorPositionItem1";
+ this.bindingNavigatorPositionItem1.Size = new System.Drawing.Size(50, 23);
+ this.bindingNavigatorPositionItem1.Text = "0";
+ this.bindingNavigatorPositionItem1.ToolTipText = "현재 위치";
+ //
+ // bindingNavigatorSeparator4
+ //
+ this.bindingNavigatorSeparator4.Name = "bindingNavigatorSeparator4";
+ this.bindingNavigatorSeparator4.Size = new System.Drawing.Size(6, 25);
+ //
+ // bindingNavigatorMoveNextItem1
+ //
+ this.bindingNavigatorMoveNextItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ this.bindingNavigatorMoveNextItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem1.Image")));
+ this.bindingNavigatorMoveNextItem1.Name = "bindingNavigatorMoveNextItem1";
+ this.bindingNavigatorMoveNextItem1.RightToLeftAutoMirrorImage = true;
+ this.bindingNavigatorMoveNextItem1.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMoveNextItem1.Text = "다음으로 이동";
+ //
+ // bindingNavigatorMoveLastItem1
+ //
+ this.bindingNavigatorMoveLastItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
+ this.bindingNavigatorMoveLastItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem1.Image")));
+ this.bindingNavigatorMoveLastItem1.Name = "bindingNavigatorMoveLastItem1";
+ this.bindingNavigatorMoveLastItem1.RightToLeftAutoMirrorImage = true;
+ this.bindingNavigatorMoveLastItem1.Size = new System.Drawing.Size(23, 22);
+ this.bindingNavigatorMoveLastItem1.Text = "마지막으로 이동";
+ //
+ // bindingNavigatorSeparator5
+ //
+ this.bindingNavigatorSeparator5.Name = "bindingNavigatorSeparator5";
+ this.bindingNavigatorSeparator5.Size = new System.Drawing.Size(6, 25);
+ //
+ // toolStripButton2
+ //
+ this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+ this.toolStripButton2.Image = global::FCM0000.Properties.Resources.action_refresh;
+ this.toolStripButton2.Name = "toolStripButton2";
+ this.toolStripButton2.Size = new System.Drawing.Size(111, 22);
+ this.toolStripButton2.Text = "담당자새로고침";
+ this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
+ //
+ // toolStripButton3
+ //
+ this.toolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton3.Image")));
+ this.toolStripButton3.Name = "toolStripButton3";
+ this.toolStripButton3.Size = new System.Drawing.Size(91, 22);
+ this.toolStripButton3.Text = "담당자 저장";
+ this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
+ //
+ // fpSpread1_Sheet1
+ //
+ this.fpSpread1_Sheet1.Reset();
+ this.fpSpread1_Sheet1.SheetName = "Sheet1";
+ // Formulas and custom names must be loaded with R1C1 reference style
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
+ this.fpSpread1_Sheet1.ColumnCount = 9;
+ this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
+ this.fpSpread1_Sheet1.ActiveRowIndex = -1;
+ this.fpSpread1_Sheet1.AutoGenerateColumns = false;
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "그룹";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "업체명";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "보조명칭";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "전화";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "팩스";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "이메일";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "주소";
+ this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "비고";
+ this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 34F;
+ this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ numberCellType1.DecimalPlaces = 0;
+ numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType1.MaximumValue = 2147483647D;
+ numberCellType1.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1;
+ this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
+ this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(0).Width = 88F;
+ this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
+ this.fpSpread1_Sheet1.Columns.Get(1).DataField = "grp";
+ this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).Label = "그룹";
+ this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(1).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
+ this.fpSpread1_Sheet1.Columns.Get(2).DataField = "name";
+ this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(2).Label = "업체명";
+ this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(2).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
+ this.fpSpread1_Sheet1.Columns.Get(3).DataField = "name2";
+ this.fpSpread1_Sheet1.Columns.Get(3).Label = "보조명칭";
+ this.fpSpread1_Sheet1.Columns.Get(3).Width = 77F;
+ this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
+ this.fpSpread1_Sheet1.Columns.Get(4).DataField = "tel";
+ this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(4).Label = "전화";
+ this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType5;
+ this.fpSpread1_Sheet1.Columns.Get(5).DataField = "fax";
+ this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(5).Label = "팩스";
+ this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(5).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType6;
+ this.fpSpread1_Sheet1.Columns.Get(6).DataField = "email";
+ this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(6).Label = "이메일";
+ this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(6).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType7;
+ this.fpSpread1_Sheet1.Columns.Get(7).DataField = "address";
+ this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
+ this.fpSpread1_Sheet1.Columns.Get(7).Label = "주소";
+ this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
+ this.fpSpread1_Sheet1.Columns.Get(7).Width = 113F;
+ this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType8;
+ this.fpSpread1_Sheet1.Columns.Get(8).DataField = "memo";
+ this.fpSpread1_Sheet1.Columns.Get(8).Label = "비고";
+ this.fpSpread1_Sheet1.Columns.Get(8).Width = 113F;
+ this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
+ this.fpSpread1_Sheet1.DataSource = this.bs;
+ this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
+ this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// fCustoms
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(738, 458);
- this.Controls.Add(this.dv1);
+ this.ClientSize = new System.Drawing.Size(1134, 669);
+ this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.bn);
+ this.Controls.Add(this.groupBox1);
this.Name = "fCustoms";
- this.Text = "fCustoms";
+ this.Text = "업체 및 담당자 정보";
this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false);
this.bn.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.cm1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
+ this.groupBox1.ResumeLayout(false);
+ this.groupBox1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread2)).EndInit();
+ this.cm2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread2_Sheet1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.bsStaff)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit();
+ this.bindingNavigator1.ResumeLayout(false);
+ this.bindingNavigator1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -352,16 +763,43 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton customsBindingNavigatorSaveItem;
- private System.Windows.Forms.DataGridView dv1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ContextMenuStrip cm1;
- private System.Windows.Forms.ToolStripMenuItem autoResizeColummsToolStripMenuItem;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
+ private FarPoint.Win.Spread.FpSpread fpSpread1;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
+ private System.Windows.Forms.ToolStripLabel toolStripLabel2;
+ private System.Windows.Forms.ToolStripTextBox tbFind;
+ private System.Windows.Forms.ToolStripButton btFind;
+ private System.Windows.Forms.ToolStripMenuItem columnSizeToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem resetToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
+ private System.Windows.Forms.GroupBox groupBox1;
+ private FarPoint.Win.Spread.FpSpread fpSpread2;
+ private System.Windows.Forms.BindingSource bsStaff;
+ private dsMSSQLTableAdapters.StaffTableAdapter taStaff;
+ private System.Windows.Forms.BindingNavigator bindingNavigator1;
+ private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem1;
+ private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem1;
+ private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem1;
+ private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem1;
+ private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem1;
+ private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator3;
+ private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem1;
+ private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator4;
+ private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem1;
+ private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem1;
+ private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator5;
+ private FarPoint.Win.Spread.SheetView fpSpread2_Sheet1;
+ private System.Windows.Forms.ContextMenuStrip cm2;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
+ private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5;
+ private System.Windows.Forms.ToolStripButton toolStripButton2;
+ private System.Windows.Forms.ToolStripButton toolStripButton3;
+ private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
}
}
\ No newline at end of file
diff --git a/SubProject/FCM0000/fCustoms.cs b/SubProject/FCM0000/fCustoms.cs
index 114d74d..418f591 100644
--- a/SubProject/FCM0000/fCustoms.cs
+++ b/SubProject/FCM0000/fCustoms.cs
@@ -11,27 +11,75 @@ namespace FCM0000
{
public partial class fCustoms : FCOMMON.fBase
{
+ string fn_fpcolsize1 = "";
+ string fn_fpcolsize2 = "";
public fCustoms()
{
InitializeComponent();
+
+ fn_fpcolsize1 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp1_" + this.Name + ".ini");
+ fn_fpcolsize2 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp2_" + this.Name + ".ini");
}
private void __Load(object sender, EventArgs e)
{
+ // TODO: 이 코드는 데이터를 'dsMSSQL.Staff' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
+
refreshData();
+ refreshDataS();
+ FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
+ FPUtil.ColSizeLoad(ref this.fpSpread2, fn_fpcolsize2);
+ this.dsMSSQL.Customs.TableNewRow += Customs_TableNewRow;
+ this.dsMSSQL.Staff.TableNewRow += Staff_TableNewRow;
+ }
+ void Staff_TableNewRow(object sender, DataTableNewRowEventArgs e)
+ {
+ e.Row["wuid"] = FCOMMON.info.Login.no;
+ e.Row["wdate"] = DateTime.Now;
+ e.Row["cid"] = selcectIDX;
+ }
+
+ void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
+ {
+ e.Row["wuid"] = FCOMMON.info.Login.no;
+ e.Row["wdate"] = DateTime.Now;
+ e.Row["grp"] = "Supply";
}
void refreshData()
{
- // TODO: 이 코드는 데이터를 'dsMSSQL.Customs' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
- this.ta.Fill(this.dsMSSQL.Customs);
+ try
+ {
+ this.ta.Fill(this.dsMSSQL.Customs);
+ // this.taStaff.Fill(this.dsMSSQL.Staff);
+ }catch (Exception ex)
+ {
+ FCOMMON.Util.MsgE(ex.Message);
+ }
+ }
+ void refreshDataS()
+ {
+ try
+ {
+ // this.ta.Fill(this.dsMSSQL.Customs);
+ this.taStaff.Fill(this.dsMSSQL.Staff);
+ }
+ catch (Exception ex)
+ {
+ FCOMMON.Util.MsgE(ex.Message);
+ }
}
private void customsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
- this.tam.UpdateAll(this.dsMSSQL);
+ int cnt = this.ta.Update(this.dsMSSQL.Customs);
+ if (cnt < 1)
+ {
+ FCOMMON.Util.MsgI("변경된 내역이 없습니다.");
+ }
+ else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.",cnt));
}
@@ -42,7 +90,155 @@ namespace FCM0000
private void autoResizeColummsToolStripMenuItem_Click(object sender, EventArgs e)
{
- this.dv1.AutoResizeColumns();
+ this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
+
+ for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
+ this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
+ }
+
+ private void btFind_Click(object sender, EventArgs e)
+ {
+ var search = tbFind.Text.Trim();
+ search = search.Replace("*", "x");
+ if (tbFind.Text != search) tbFind.Text = search;
+ try
+ {
+ if (search.isEmpty())
+ {
+ this.bs.Filter = "";
+ tbFind.BackColor = Color.White;
+ }
+ else
+ {
+ search = search.Replace("'", "''");
+ string filter = "stafftel like ? or grp like ? or name2 like ? or name like ? or owner like ? or address like ? or tel like ? or email like ? or memo like ? or staff like ?";
+ filter = filter.Replace("?", "'%" + search + "%'");
+ this.bs.Filter = filter;
+ tbFind.BackColor = Color.Lime;
+ }
+ tbFind.SelectAll();
+ tbFind.Focus();
+ }
+ catch (Exception ex)
+ {
+ this.tbFind.BackColor = Color.Tomato;
+ FCOMMON.Util.MsgE(ex.Message);
+ }
+ }
+
+ private void tbFind_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.KeyCode == Keys.Enter) btFind.PerformClick();
+ }
+
+ private void autoToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
+
+ for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
+ this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
+ }
+
+ private void resetToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
+ {
+ col.Width = 100;
+ }
+ }
+
+ private void saveToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize1);
+ }
+
+ private void loadToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
+ }
+
+ private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
+ {
+ var drv = this.bs.Current as DataRowView;
+ if (drv == null) return;
+ var dr = drv.Row as dsMSSQL.CustomsRow;
+ if (dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) this.bs.RemoveCurrent();
+
+ dsMSSQLTableAdapters.QueriesTableAdapter taq = new dsMSSQLTableAdapters.QueriesTableAdapter();
+ var cnt = (int)taq.CheckSupplyUsage(dr.idx);
+ if(cnt > 0)
+ {
+ FCOMMON.Util.MsgE("해당 거래처가 연결된 자료가 있어 삭제할 수 없습니다.\n\n" +
+ "개발자에 문의 하세요");
+ return;
+ }
+ var dlg =FCOMMON.Util.MsgQ("다음 거래처를 삭제하시겠습니까?\n"+
+ dr.name + "\n" + dr.staff);
+ if(dlg == System.Windows.Forms.DialogResult.Yes)
+ {
+ this.bs.RemoveCurrent();
+ }
+ }
+
+ private int selcectIDX = -1;
+ private void bs_CurrentChanged(object sender, EventArgs e)
+ {
+ //선택되면 staff 를 연결해준다.
+ var drv = this.bs.Current as DataRowView;
+ if(drv == null)
+ {
+ selcectIDX = -1;
+ this.bsStaff.Filter = "cid=-1";
+ bindingNavigator1.Enabled = false;
+ }
+ else
+ {
+ selcectIDX = int.Parse(drv["idx"].ToString());
+ this.bsStaff.Filter = "cid=" + selcectIDX;
+ bindingNavigator1.Enabled = true;
+ }
+ }
+
+ private void toolStripMenuItem2_Click(object sender, EventArgs e)
+ {
+ FCOMMON.Util.FPColSizeAuto(this.fpSpread2);
+ }
+
+ private void toolStripMenuItem3_Click(object sender, EventArgs e)
+ {
+ FCOMMON.Util.FPCollSizeReset(this.fpSpread2);
+ }
+
+ private void toolStripMenuItem4_Click(object sender, EventArgs e)
+ {
+ FCOMMON.Util.FPColsizeSave(this.fpSpread2, fn_fpcolsize2);
+ }
+
+ private void toolStripMenuItem5_Click(object sender, EventArgs e)
+ {
+ FCOMMON.Util.FPColsizeSave(this.fpSpread2, fn_fpcolsize2);
+ }
+
+ private void toolStripButton2_Click(object sender, EventArgs e)
+ {
+ refreshDataS();
+ }
+
+ private void toolStripButton3_Click(object sender, EventArgs e)
+ {
+ this.Validate();
+ this.bsStaff.EndEdit();
+ int cnt = this.taStaff.Update(this.dsMSSQL.Staff);
+ if (cnt < 1)
+ {
+ FCOMMON.Util.MsgI("변경된 내역이 없습니다.");
+ }
+ else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.", cnt));
}
}
}
diff --git a/SubProject/FCM0000/fCustoms.resx b/SubProject/FCM0000/fCustoms.resx
index a336614..6d084a3 100644
--- a/SubProject/FCM0000/fCustoms.resx
+++ b/SubProject/FCM0000/fCustoms.resx
@@ -129,6 +129,9 @@
248, 17
+
+ 703, 17
+
321, 17
@@ -143,18 +146,6 @@
zpX/v6RC8f/fWzFAjeH/p+Zp/J+QpfW/O0P3f3uq/v/mREPCYTIb6E+Qc//dCPjfk6FDWAM6APnz3w1/
IPb735qsT7oB3em6YP+CcH2cEekGtCQZ/G+IN/xfE2v8vzLahHQD6AQYGAAkI9iedfyIaQAAAABJRU5E
rkJggg==
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
- DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
- rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
- i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
- 86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
- QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
- bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
@@ -195,6 +186,18 @@
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
+ DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
+ rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
+ i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
+ 86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
+ QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
+ bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
@@ -202,9 +205,184 @@
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+ YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1
+ qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO
+ b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY
+ hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1
+ 9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon
+ GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
387, 17
+
+
+ R0lGODlhEAAQAIQfAJXG2JXa+ZLO5ChrlkCy4TZ1kiVvpCN0trvo9SN5xTd4lrfh7iR9zo3S+EGz7JDJ
+ 4TaCromrvC9ymyV+0Dd3mTl1koe72YvN7LTj+9ne6N3g6v7+/0Cw2Stoh////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAInwA/CBzooaAHgQUHKvRQoUABCgUlHFT4IYMCBAsQIIBg
+ wcBEgh0WCBDAgcAFDAc+fvDQIUKHDgMeEHDQIIFKlgoMGgjQoAGDmwUOehhg4EACBhM+GlzKVOkEBgkO
+ GBggNOhCBhgCBPBYUEGHmwkCOCDwYMCAll8XHghwgQCHkQDSLjRgAcKDBwAAKNCwgaIHiR4oOKygkuDE
+ pRQTK6YYEAA7
+
+
+
+
+ R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R
+ PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg
+ oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
+ dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
+
+
+
+
+ R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh
+ e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw
+ QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK
+ HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC
+ un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs=
+
+
+
+
+ R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7
+ 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ
+ IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj
+ SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG
+ vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
+
+
+
+ 1173, 17
+
+
+ 1098, 17
+
+
+
+ R0lGODlhEAAQAIQfAJXG2JXa+ZLO5ChrlkCy4TZ1kiVvpCN0trvo9SN5xTd4lrfh7iR9zo3S+EGz7JDJ
+ 4TaCromrvC9ymyV+0Dd3mTl1koe72YvN7LTj+9ne6N3g6v7+/0Cw2Stoh////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAInwA/CBzooaAHgQUHKvRQoUABCgUlHFT4IYMCBAsQIIBg
+ wcBEgh0WCBDAgcAFDAc+fvDQIUKHDgMeEHDQIIFKlgoMGgjQoAGDmwUOehhg4EACBhM+GlzKVOkEBgkO
+ GBggNOhCBhgCBPBYUEGHmwkCOCDwYMCAll8XHghwgQCHkQDSLjRgAcKDBwAAKNCwgaIHiR4oOKygkuDE
+ pRQTK6YYEAA7
+
+
+
+
+ R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R
+ PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg
+ oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
+ dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
+
+
+
+
+ R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh
+ e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw
+ QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK
+ HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC
+ un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs=
+
+
+
+
+ R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7
+ 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF
+ Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ
+ IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj
+ SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG
+ vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
+
+
+
+ 946, 17
+
+
+ 614, 17
+
+
+ 790, 17
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
+ pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
+ Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
+ /5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
+ zpX/v6RC8f/fWzFAjeH/p+Zp/J+QpfW/O0P3f3uq/v/mREPCYTIb6E+Qc//dCPjfk6FDWAM6APnz3w1/
+ IPb735qsT7oB3em6YP+CcH2cEekGtCQZ/G+IN/xfE2v8vzLahHQD6AQYGAAkI9iedfyIaQAAAABJRU5E
+ rkJggg==
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
+ DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
+ rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
+ i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
+ 86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
+ QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
+ bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
+ wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
+ v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
+ UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
+ Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
+ lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
+ 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
+ Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
+ 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
+ n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
+ N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
+ oAc0QjgAAAAASUVORK5CYII=
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
+ h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
+ twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
+ kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
+ WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
+ 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
+ dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
+
+
\ No newline at end of file
diff --git a/SubProject/FCM0000/fItems.Designer.cs b/SubProject/FCM0000/fItems.Designer.cs
index 2013bf9..cd071f0 100644
--- a/SubProject/FCM0000/fItems.Designer.cs
+++ b/SubProject/FCM0000/fItems.Designer.cs
@@ -30,16 +30,16 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fItems));
- FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
- FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
+ FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs = new System.Windows.Forms.BindingSource(this.components);
@@ -65,6 +65,8 @@
this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
+ this.viewPurchaseListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
@@ -74,10 +76,14 @@
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.cmbMode = new System.Windows.Forms.ToolStripComboBox();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
+ this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
+ this.chkImg = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
- this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
- this.viewPurchaseListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.button1 = new System.Windows.Forms.Button();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
@@ -86,6 +92,8 @@
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
+ this.groupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// bn
@@ -112,14 +120,14 @@
this.toolStripLabel3,
this.tbFind,
this.btFind});
- this.bn.Location = new System.Drawing.Point(0, 441);
+ this.bn.Location = new System.Drawing.Point(0, 566);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(758, 25);
+ this.bn.Size = new System.Drawing.Size(682, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -136,6 +144,7 @@
this.bs.DataMember = "Items";
this.bs.DataSource = this.dsMSSQL;
this.bs.Sort = "sid,name";
+ this.bs.CurrentChanged += new System.EventHandler(this.bs_CurrentChanged);
//
// dsMSSQL
//
@@ -262,7 +271,7 @@
this.toolStripMenuItem1,
this.viewPurchaseListToolStripMenuItem});
this.cm1.Name = "cm1";
- this.cm1.Size = new System.Drawing.Size(318, 116);
+ this.cm1.Size = new System.Drawing.Size(318, 94);
//
// columnSizeToolStripMenuItem
//
@@ -272,7 +281,7 @@
this.saveToolStripMenuItem,
this.loadToolStripMenuItem});
this.columnSizeToolStripMenuItem.Name = "columnSizeToolStripMenuItem";
- this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(247, 42);
+ this.columnSizeToolStripMenuItem.Size = new System.Drawing.Size(317, 42);
this.columnSizeToolStripMenuItem.Text = "Column Size";
//
// autoToolStripMenuItem
@@ -307,6 +316,18 @@
this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
//
+ // toolStripMenuItem1
+ //
+ this.toolStripMenuItem1.Name = "toolStripMenuItem1";
+ this.toolStripMenuItem1.Size = new System.Drawing.Size(314, 6);
+ //
+ // viewPurchaseListToolStripMenuItem
+ //
+ this.viewPurchaseListToolStripMenuItem.Enabled = false;
+ this.viewPurchaseListToolStripMenuItem.Name = "viewPurchaseListToolStripMenuItem";
+ this.viewPurchaseListToolStripMenuItem.Size = new System.Drawing.Size(317, 42);
+ this.viewPurchaseListToolStripMenuItem.Text = "view Purchase List";
+ //
// ta
//
this.ta.ClearBeforeFill = true;
@@ -323,6 +344,7 @@
this.tam.MailFormTableAdapter = null;
this.tam.ProjectsTableAdapter = null;
this.tam.RequestItemTableAdapter = null;
+ this.tam.StaffTableAdapter = null;
this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// toolStrip1
@@ -333,10 +355,12 @@
this.toolStripSeparator1,
this.toolStripLabel1,
this.cmbMode,
- this.toolStripButton2});
+ this.toolStripButton2,
+ this.toolStripSeparator3,
+ this.chkImg});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
- this.toolStrip1.Size = new System.Drawing.Size(758, 25);
+ this.toolStrip1.Size = new System.Drawing.Size(977, 25);
this.toolStrip1.TabIndex = 2;
this.toolStrip1.Text = "toolStrip1";
//
@@ -384,6 +408,23 @@
this.toolStripButton2.Text = "Refresh";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
+ // toolStripSeparator3
+ //
+ this.toolStripSeparator3.Name = "toolStripSeparator3";
+ this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
+ //
+ // chkImg
+ //
+ this.chkImg.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+ this.chkImg.Checked = true;
+ this.chkImg.CheckOnClick = true;
+ this.chkImg.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.chkImg.Image = ((System.Drawing.Image)(resources.GetObject("chkImg.Image")));
+ this.chkImg.ImageTransparentColor = System.Drawing.Color.Magenta;
+ this.chkImg.Name = "chkImg";
+ this.chkImg.Size = new System.Drawing.Size(87, 22);
+ this.chkImg.Text = "이미지보기";
+ //
// fpSpread1
//
this.fpSpread1.AccessibleDescription = "";
@@ -394,7 +435,7 @@
this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1});
- this.fpSpread1.Size = new System.Drawing.Size(758, 416);
+ this.fpSpread1.Size = new System.Drawing.Size(682, 541);
this.fpSpread1.TabIndex = 3;
//
// fpSpread1_Sheet1
@@ -409,61 +450,61 @@
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F;
this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- numberCellType7.DecimalPlaces = 0;
- numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
- numberCellType7.MaximumValue = 2147483647D;
- numberCellType7.MinimumValue = -2147483648D;
- this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType7;
+ numberCellType1.DecimalPlaces = 0;
+ numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
+ numberCellType1.MaximumValue = 2147483647D;
+ numberCellType1.MinimumValue = -2147483648D;
+ this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 88F;
this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
- this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType15;
+ this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "cate";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 113F;
- this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType16;
+ this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "name";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 113F;
- this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType17;
+ this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 113F;
- this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType18;
+ this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "model";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F;
- this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType19;
+ this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "unit";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 113F;
- numberCellType8.MaximumValue = 999999999999999D;
- numberCellType8.MinimumValue = -999999999999999D;
- this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType8;
+ numberCellType2.MaximumValue = 999999999999999D;
+ numberCellType2.MinimumValue = -999999999999999D;
+ this.fpSpread1_Sheet1.Columns.Get(6).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "price";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 84F;
- this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType20;
+ this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "manu";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 113F;
- this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType21;
+ this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "memo";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 113F;
- numberCellType9.MaximumValue = 999999999999999D;
- numberCellType9.MinimumValue = -999999999999999D;
- this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType9;
+ numberCellType3.MaximumValue = 999999999999999D;
+ numberCellType3.MinimumValue = -999999999999999D;
+ this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "scale";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
@@ -473,26 +514,57 @@
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
- // toolStripMenuItem1
+ // panel1
//
- this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- this.toolStripMenuItem1.Size = new System.Drawing.Size(314, 6);
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.panel1.Location = new System.Drawing.Point(682, 25);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(13, 566);
+ this.panel1.TabIndex = 4;
//
- // viewPurchaseListToolStripMenuItem
+ // groupBox1
//
- this.viewPurchaseListToolStripMenuItem.Enabled = false;
- this.viewPurchaseListToolStripMenuItem.Name = "viewPurchaseListToolStripMenuItem";
- this.viewPurchaseListToolStripMenuItem.Size = new System.Drawing.Size(317, 42);
- this.viewPurchaseListToolStripMenuItem.Text = "view Purchase List";
+ this.groupBox1.Controls.Add(this.button1);
+ this.groupBox1.Controls.Add(this.pictureBox1);
+ this.groupBox1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.groupBox1.Location = new System.Drawing.Point(695, 25);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(282, 566);
+ this.groupBox1.TabIndex = 5;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "기타 정보";
+ //
+ // button1
+ //
+ this.button1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.button1.Location = new System.Drawing.Point(3, 216);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(276, 28);
+ this.button1.TabIndex = 1;
+ this.button1.Text = "이미지선택(640*480)";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.pictureBox1.Location = new System.Drawing.Point(3, 17);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(276, 199);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+ this.pictureBox1.TabIndex = 0;
+ this.pictureBox1.TabStop = false;
//
// fItems
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(758, 466);
+ this.ClientSize = new System.Drawing.Size(977, 591);
this.Controls.Add(this.fpSpread1);
- this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn);
+ this.Controls.Add(this.panel1);
+ this.Controls.Add(this.groupBox1);
+ this.Controls.Add(this.toolStrip1);
this.Name = "fItems";
this.Text = "fItems";
this.Load += new System.EventHandler(this.fItems_Load);
@@ -506,6 +578,8 @@
this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
+ this.groupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -551,5 +625,11 @@
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem viewPurchaseListToolStripMenuItem;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.GroupBox groupBox1;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
+ private System.Windows.Forms.ToolStripButton chkImg;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.Button button1;
}
}
\ No newline at end of file
diff --git a/SubProject/FCM0000/fItems.cs b/SubProject/FCM0000/fItems.cs
index 91f8d5d..ecb58d5 100644
--- a/SubProject/FCM0000/fItems.cs
+++ b/SubProject/FCM0000/fItems.cs
@@ -174,6 +174,50 @@ namespace FCM0000
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
}
+ private void bs_CurrentChanged(object sender, EventArgs e)
+ {
+ var drv = this.bs.Current as DataRowView;
+ var img = this.pictureBox1.Image;
+ if(drv == null)
+ {
+ this.pictureBox1.Image = null;
+ }
+ else
+ {
+ try {
+ var dr = drv.Row as dsMSSQL.ItemsRow;
+ var img1 = FCOMMON.DBM.GetImageData("Items", "image", dr.idx);
+ if (img1 != null) this.pictureBox1.Image = img1;
+ else this.pictureBox1.Image = null;
+ } catch (Exception ex)
+ {
+ this.pictureBox1.Image = null;
+ }
+
+ }
+ if (img != null) img.Dispose();
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ var drv = this.bs.Current as DataRowView;
+ if (drv == null) return;
+ var dr = drv.Row as dsMSSQL.ItemsRow;
+ if(dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached ||
+ dr.RowState == DataRowState.Added)
+ {
+ FCOMMON.Util.MsgE("이미지는 등록 완료된 아이템만 가능합니다. 먼저 저장한 후 다시 시도하세요.");
+ return;
+ }
+ OpenFileDialog od = new OpenFileDialog();
+ if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
+ var image = Image.FromFile(od.FileName);
+ if(!FCOMMON.DBM.setImageData(image, "Items", "image", dr.idx))
+ {
+ FCOMMON.Util.MsgE("등록 실패");
+ }
+ }
+
}
}
diff --git a/SubProject/FCM0000/fItems.resx b/SubProject/FCM0000/fItems.resx
index f24586f..378a239 100644
--- a/SubProject/FCM0000/fItems.resx
+++ b/SubProject/FCM0000/fItems.resx
@@ -209,9 +209,6 @@
GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
-
- 17, 17
-
385, 12
@@ -263,6 +260,21 @@
462, 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==
+
+
568, 17
diff --git a/SubProject/FCM0000/fLovItem.Designer.cs b/SubProject/FCM0000/fLovItem.Designer.cs
index c4faace..6907af8 100644
--- a/SubProject/FCM0000/fLovItem.Designer.cs
+++ b/SubProject/FCM0000/fLovItem.Designer.cs
@@ -36,9 +36,9 @@
System.Windows.Forms.Label label1;
System.Windows.Forms.Label label2;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fLovItem));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FCM0000.dsMSSQL();
@@ -67,6 +67,8 @@
this.priceTextBox = new System.Windows.Forms.TextBox();
this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
this.tam = new FCM0000.dsMSSQLTableAdapters.TableAdapterManager();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.linkLabel1 = new System.Windows.Forms.LinkLabel();
manuLabel = new System.Windows.Forms.Label();
supplyLabel = new System.Windows.Forms.Label();
memoLabel = new System.Windows.Forms.Label();
@@ -79,6 +81,7 @@
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dv)).BeginInit();
this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// manuLabel
@@ -112,7 +115,7 @@
//
priceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
priceLabel.AutoSize = true;
- priceLabel.Location = new System.Drawing.Point(25, 426);
+ priceLabel.Location = new System.Drawing.Point(25, 435);
priceLabel.Name = "priceLabel";
priceLabel.Size = new System.Drawing.Size(43, 18);
priceLabel.TabIndex = 18;
@@ -122,7 +125,7 @@
//
label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
label1.AutoSize = true;
- label1.Location = new System.Drawing.Point(32, 457);
+ label1.Location = new System.Drawing.Point(32, 466);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(36, 18);
label1.TabIndex = 20;
@@ -132,7 +135,7 @@
//
label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
label2.AutoSize = true;
- label2.Location = new System.Drawing.Point(27, 395);
+ label2.Location = new System.Drawing.Point(27, 404);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(41, 18);
label2.TabIndex = 22;
@@ -156,14 +159,14 @@
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.btOK});
- this.bn.Location = new System.Drawing.Point(0, 493);
+ this.bn.Location = new System.Drawing.Point(0, 502);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem;
- this.bn.Size = new System.Drawing.Size(984, 25);
+ this.bn.Size = new System.Drawing.Size(985, 25);
this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1";
//
@@ -268,15 +271,15 @@
this.model,
this.dataGridViewTextBoxColumn3});
this.dv.DataSource = this.bs;
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle3.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle3.Padding = new System.Windows.Forms.Padding(1, 3, 1, 3);
- dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dv.DefaultCellStyle = dataGridViewCellStyle3;
+ dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle12.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle12.Padding = new System.Windows.Forms.Padding(1, 3, 1, 3);
+ dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dv.DefaultCellStyle = dataGridViewCellStyle12;
this.dv.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv.Location = new System.Drawing.Point(0, 0);
this.dv.Name = "dv";
@@ -284,7 +287,7 @@
this.dv.RowHeadersVisible = false;
this.dv.RowTemplate.Height = 23;
this.dv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.dv.Size = new System.Drawing.Size(694, 493);
+ this.dv.Size = new System.Drawing.Size(695, 502);
this.dv.TabIndex = 1;
this.dv.DoubleClick += new System.EventHandler(this.dv_DoubleClick);
this.dv.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dv_KeyDown);
@@ -292,9 +295,9 @@
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "idx";
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle10;
this.dataGridViewTextBoxColumn1.HeaderText = "IDX";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
@@ -311,8 +314,8 @@
// model
//
this.model.DataPropertyName = "model";
- dataGridViewCellStyle2.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.model.DefaultCellStyle = dataGridViewCellStyle2;
+ dataGridViewCellStyle11.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.model.DefaultCellStyle = dataGridViewCellStyle11;
this.model.HeaderText = "model";
this.model.Name = "model";
this.model.ReadOnly = true;
@@ -328,6 +331,8 @@
//
// panel1
//
+ this.panel1.Controls.Add(this.linkLabel1);
+ this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.textBox3);
this.panel1.Controls.Add(label2);
this.panel1.Controls.Add(this.textBox2);
@@ -342,16 +347,16 @@
this.panel1.Controls.Add(priceLabel);
this.panel1.Controls.Add(this.priceTextBox);
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
- this.panel1.Location = new System.Drawing.Point(694, 0);
+ this.panel1.Location = new System.Drawing.Point(695, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(290, 493);
+ this.panel1.Size = new System.Drawing.Size(290, 502);
this.panel1.TabIndex = 2;
//
// textBox3
//
this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "unit", true));
- this.textBox3.Location = new System.Drawing.Point(237, 392);
+ this.textBox3.Location = new System.Drawing.Point(237, 401);
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(38, 25);
@@ -361,7 +366,7 @@
//
this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "scale", true));
- this.textBox2.Location = new System.Drawing.Point(75, 392);
+ this.textBox2.Location = new System.Drawing.Point(75, 401);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(156, 25);
@@ -371,7 +376,7 @@
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "cate", true));
- this.textBox1.Location = new System.Drawing.Point(75, 455);
+ this.textBox1.Location = new System.Drawing.Point(75, 464);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(200, 25);
@@ -405,14 +410,14 @@
this.memoTextBox.Multiline = true;
this.memoTextBox.Name = "memoTextBox";
this.memoTextBox.ReadOnly = true;
- this.memoTextBox.Size = new System.Drawing.Size(200, 306);
+ this.memoTextBox.Size = new System.Drawing.Size(200, 158);
this.memoTextBox.TabIndex = 13;
//
// priceTextBox
//
this.priceTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.priceTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "price", true));
- this.priceTextBox.Location = new System.Drawing.Point(75, 424);
+ this.priceTextBox.Location = new System.Drawing.Point(75, 433);
this.priceTextBox.Name = "priceTextBox";
this.priceTextBox.ReadOnly = true;
this.priceTextBox.Size = new System.Drawing.Size(200, 25);
@@ -434,12 +439,37 @@
this.tam.MailFormTableAdapter = null;
this.tam.ProjectsTableAdapter = null;
this.tam.RequestItemTableAdapter = null;
+ this.tam.StaffTableAdapter = null;
this.tam.UpdateOrder = FCM0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
+ // pictureBox1
+ //
+ this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox1.BackColor = System.Drawing.Color.Black;
+ this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pictureBox1.Location = new System.Drawing.Point(74, 248);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(202, 146);
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+ this.pictureBox1.TabIndex = 26;
+ this.pictureBox1.TabStop = false;
+ //
+ // linkLabel1
+ //
+ this.linkLabel1.AutoSize = true;
+ this.linkLabel1.Location = new System.Drawing.Point(13, 249);
+ this.linkLabel1.Name = "linkLabel1";
+ this.linkLabel1.Size = new System.Drawing.Size(51, 18);
+ this.linkLabel1.TabIndex = 27;
+ this.linkLabel1.TabStop = true;
+ this.linkLabel1.Text = "Image";
+ this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
+ //
// fLovItem
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
- this.ClientSize = new System.Drawing.Size(984, 518);
+ this.ClientSize = new System.Drawing.Size(985, 527);
this.Controls.Add(this.dv);
this.Controls.Add(this.panel1);
this.Controls.Add(this.bn);
@@ -455,6 +485,7 @@
((System.ComponentModel.ISupportInitialize)(this.dv)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -490,6 +521,8 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn model;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.LinkLabel linkLabel1;
}
}
\ No newline at end of file
diff --git a/SubProject/FCM0000/fLovItem.cs b/SubProject/FCM0000/fLovItem.cs
index c9340a6..4c907fc 100644
--- a/SubProject/FCM0000/fLovItem.cs
+++ b/SubProject/FCM0000/fLovItem.cs
@@ -73,10 +73,29 @@ namespace FCM0000
else DialogResult = System.Windows.Forms.DialogResult.OK;
}
-
private void bs_CurrentChanged(object sender, EventArgs e)
{
-
+ var drv = this.bs.Current as DataRowView;
+ var img = this.pictureBox1.Image;
+ if (drv == null)
+ {
+ this.pictureBox1.Image = null;
+ }
+ else
+ {
+ try
+ {
+ var dr = drv.Row as dsMSSQL.ItemsRow;
+ var img1 = FCOMMON.DBM.GetImageData("Items", "image", dr.idx);
+ if (img1 != null) this.pictureBox1.Image = img1;
+ else this.pictureBox1.Image = null;
+ }catch (Exception ex)
+ {
+ this.pictureBox1.Image = null;
+ }
+
+ }
+ if (img != null) img.Dispose();
}
private void dv_KeyDown(object sender, KeyEventArgs e)
@@ -93,5 +112,29 @@ namespace FCM0000
{
btOK.PerformClick();
}
+
+ private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ {
+ var drv = this.bs.Current as DataRowView;
+ if (drv == null) return;
+ var dr = drv.Row as dsMSSQL.ItemsRow;
+ if (dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached ||
+ dr.RowState == DataRowState.Added)
+ {
+ FCOMMON.Util.MsgE("이미지는 등록 완료된 아이템만 가능합니다. 먼저 저장한 후 다시 시도하세요.");
+ return;
+ }
+ OpenFileDialog od = new OpenFileDialog();
+ if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
+ var image = Image.FromFile(od.FileName);
+ if (!FCOMMON.DBM.setImageData(image, "Items", "image", dr.idx))
+ {
+ FCOMMON.Util.MsgE("등록 실패");
+ }
+ else
+ {
+ this.pictureBox1.Image = Image.FromFile(od.FileName);
+ }
+ }
}
}
diff --git a/SubProject/FCM0000/fLovItem.resx b/SubProject/FCM0000/fLovItem.resx
index 020763c..e41c56f 100644
--- a/SubProject/FCM0000/fLovItem.resx
+++ b/SubProject/FCM0000/fLovItem.resx
@@ -192,6 +192,9 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
+
+ 216, 17
+
True
diff --git a/SubProject/FCM0000/fLovSupply.Designer.cs b/SubProject/FCM0000/fLovSupply.Designer.cs
index 9cb50a2..708393d 100644
--- a/SubProject/FCM0000/fLovSupply.Designer.cs
+++ b/SubProject/FCM0000/fLovSupply.Designer.cs
@@ -30,8 +30,8 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fLovSupply));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.dsMSSQL = new FCM0000.dsMSSQL();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
@@ -46,9 +46,13 @@
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.btOK = new System.Windows.Forms.ToolStripButton();
this.dv = new System.Windows.Forms.DataGridView();
+ this.ta = new FCM0000.dsMSSQLTableAdapters.CustomsTableAdapter();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.ta = new FCM0000.dsMSSQLTableAdapters.CustomsTableAdapter();
+ this.name2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.fax = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.owner = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -182,17 +186,21 @@
this.dv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
- this.dataGridViewTextBoxColumn2});
+ this.dataGridViewTextBoxColumn2,
+ this.name2,
+ this.tel,
+ this.fax,
+ this.owner});
this.dv.DataSource = this.bs;
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle4.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle4.Padding = new System.Windows.Forms.Padding(1, 3, 1, 3);
- dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dv.DefaultCellStyle = dataGridViewCellStyle4;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle2.Padding = new System.Windows.Forms.Padding(1, 3, 1, 3);
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.dv.DefaultCellStyle = dataGridViewCellStyle2;
this.dv.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv.Location = new System.Drawing.Point(0, 0);
this.dv.Name = "dv";
@@ -205,28 +213,60 @@
this.dv.DoubleClick += new System.EventHandler(this.dv_DoubleClick);
this.dv.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dv_KeyDown);
//
+ // ta
+ //
+ this.ta.ClearBeforeFill = true;
+ //
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "idx";
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
- this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle3;
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+ this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
this.dataGridViewTextBoxColumn1.HeaderText = "IDX";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
- this.dataGridViewTextBoxColumn1.Width = 66;
+ this.dataGridViewTextBoxColumn1.Width = 60;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.dataGridViewTextBoxColumn2.DataPropertyName = "name";
- this.dataGridViewTextBoxColumn2.HeaderText = "Name";
+ this.dataGridViewTextBoxColumn2.HeaderText = "업체명";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
//
- // ta
+ // name2
//
- this.ta.ClearBeforeFill = true;
+ this.name2.DataPropertyName = "name2";
+ this.name2.HeaderText = "--";
+ this.name2.Name = "name2";
+ this.name2.ReadOnly = true;
+ this.name2.Width = 48;
+ //
+ // tel
+ //
+ this.tel.DataPropertyName = "tel";
+ this.tel.HeaderText = "전화";
+ this.tel.Name = "tel";
+ this.tel.ReadOnly = true;
+ this.tel.Width = 66;
+ //
+ // fax
+ //
+ this.fax.DataPropertyName = "fax";
+ this.fax.HeaderText = "팩스";
+ this.fax.Name = "fax";
+ this.fax.ReadOnly = true;
+ this.fax.Width = 66;
+ //
+ // owner
+ //
+ this.owner.DataPropertyName = "owner";
+ this.owner.HeaderText = "대표자";
+ this.owner.Name = "owner";
+ this.owner.ReadOnly = true;
+ this.owner.Width = 81;
//
// fLovSupply
//
@@ -234,7 +274,7 @@
this.ClientSize = new System.Drawing.Size(771, 433);
this.Controls.Add(this.dv);
this.Controls.Add(this.bn);
- this.Font = new System.Drawing.Font("Tahoma", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Name = "fLovSupply";
this.Text = "Select Supply";
this.Load += new System.EventHandler(this.fLovItem_Load);
@@ -265,9 +305,13 @@
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton btOK;
private System.Windows.Forms.DataGridView dv;
+ private dsMSSQLTableAdapters.CustomsTableAdapter ta;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
- private dsMSSQLTableAdapters.CustomsTableAdapter ta;
+ private System.Windows.Forms.DataGridViewTextBoxColumn name2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn tel;
+ private System.Windows.Forms.DataGridViewTextBoxColumn fax;
+ private System.Windows.Forms.DataGridViewTextBoxColumn owner;
}
}
\ No newline at end of file
diff --git a/SubProject/FCM0000/fLovSupply.resx b/SubProject/FCM0000/fLovSupply.resx
index 9373a4b..fd5efbd 100644
--- a/SubProject/FCM0000/fLovSupply.resx
+++ b/SubProject/FCM0000/fLovSupply.resx
@@ -174,6 +174,18 @@
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
252, 17
diff --git a/SubProject/FCOMMON/Auth.cs b/SubProject/FCOMMON/Auth.cs
index 7ccd8b9..ccd68df 100644
--- a/SubProject/FCOMMON/Auth.cs
+++ b/SubProject/FCOMMON/Auth.cs
@@ -9,15 +9,22 @@ namespace FCOMMON
public static partial class DBM
{
- public static int getAuth_Purchase(string uid)
+ public enum eAutoType
{
- return getAuth("purchase", uid);
+ purchase,
+ holyday
}
- public static int getAuth_Purchase()
+ public static int getAuth(eAutoType type, string uid)
{
- return getAuth("purchase", info.Login.no);
+ return getAuth(type.ToString(), uid);
}
- public static int getAuth(string field,string uid)
+ public static int getAuth(eAutoType type)
+ {
+ return getAuth(type.ToString(), info.Login.no);
+ }
+
+
+ private static int getAuth(string field,string uid)
{
var cn = getCn();
cn.Open();
diff --git a/SubProject/FCOMMON/DataBaseManager.cs b/SubProject/FCOMMON/DataBaseManager.cs
index 7c6ce83..db834b4 100644
--- a/SubProject/FCOMMON/DataBaseManager.cs
+++ b/SubProject/FCOMMON/DataBaseManager.cs
@@ -31,6 +31,58 @@ namespace FCOMMON
public int qty;
}
+ public static Boolean setImageData(System.Drawing.Image img, string table, string field, int idx)
+ {
+ var cn = getCn();
+ cn.Open();
+
+ Boolean retval = false;
+ string sql = "update " + table + " set " + field + " = @data" + " where idx = @idx";
+ var cmd = new SqlCommand(sql, cn);
+
+ System.IO.MemoryStream sm = new System.IO.MemoryStream();
+ img.Save(sm, System.Drawing.Imaging.ImageFormat.Jpeg);
+ var buffer = sm.GetBuffer();
+ sm.Dispose();
+
+ cmd.Parameters.Add(new SqlParameter("idx", idx));
+ cmd.Parameters.Add(new SqlParameter("data", buffer));
+ try
+ {
+ cmd.ExecuteNonQuery();
+ retval = true;
+ }catch (Exception ex)
+ {
+
+ }
+
+
+ cn.Close();
+ cn.Dispose();
+ return retval;
+ }
+ public static System.Drawing.Image GetImageData(string table,string field,int idx)
+ {
+ var cn = getCn();
+ cn.Open();
+
+
+ string sql = "select " + field + " from "+table+" where idx = " + idx.ToString();
+ var cmd = new SqlCommand(sql, cn);
+ var data = cmd.ExecuteScalar() as byte[];
+ System.Drawing.Bitmap bmp = null;
+ if(data != null)
+ {
+ System.IO.MemoryStream ms = new System.IO.MemoryStream(data);
+ bmp = new System.Drawing.Bitmap(ms, true);
+ ms.Dispose();
+ }
+
+ cn.Close();
+ cn.Dispose();
+ return bmp;
+ }
+
public static sItemInfo getLastPurchaseInfo(int idx)
{
var cn = getCn();
diff --git a/SubProject/FCOMMON/FCOMMON.csproj b/SubProject/FCOMMON/FCOMMON.csproj
index 085569a..8562e72 100644
--- a/SubProject/FCOMMON/FCOMMON.csproj
+++ b/SubProject/FCOMMON/FCOMMON.csproj
@@ -34,7 +34,20 @@
..\..\DLL\ArSetting.Net4.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -43,6 +56,7 @@
+
@@ -64,6 +78,7 @@
+
@@ -72,6 +87,7 @@
fLovDateList.cs
+