diff --git a/unimarc/unimarc/UniMarc.csproj b/unimarc/unimarc/UniMarc.csproj index ee6673c..1bc996c 100644 --- a/unimarc/unimarc/UniMarc.csproj +++ b/unimarc/unimarc/UniMarc.csproj @@ -297,6 +297,7 @@ AddMarc_FillBlank.cs + Form @@ -360,6 +361,12 @@ + + Form + + + Mac_List_Add2.cs + Form @@ -1092,6 +1099,9 @@ Help_008.cs + + Mac_List_Add2.cs + Mac_List_Add.cs diff --git a/unimarc/unimarc/마크/BookGridItem.cs b/unimarc/unimarc/마크/BookGridItem.cs new file mode 100644 index 0000000..24e2054 --- /dev/null +++ b/unimarc/unimarc/마크/BookGridItem.cs @@ -0,0 +1,15 @@ +namespace UniMarc +{ + public class BookGridItem + { + public string header { get; set; } + public string num { get; set; } + public string BookName { get; set; } + public string Author { get; set; } + public string BookComp { get; set; } + public string Count { get; set; } = "1"; + public string Price { get; set; } = "0"; + public string Total { get; set; } = "0"; + public string ISBN { get; set; } + } +} diff --git a/unimarc/unimarc/마크/Mac_List.Designer.cs b/unimarc/unimarc/마크/Mac_List.Designer.cs index ca43d79..c80a224 100644 --- a/unimarc/unimarc/마크/Mac_List.Designer.cs +++ b/unimarc/unimarc/마크/Mac_List.Designer.cs @@ -29,8 +29,8 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Mac_List)); this.label1 = new System.Windows.Forms.Label(); this.tb_Search = new System.Windows.Forms.TextBox(); @@ -77,18 +77,18 @@ this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.bn1 = new System.Windows.Forms.BindingNavigator(this.components); - this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); - this.bs1 = new System.Windows.Forms.BindingSource(this.components); 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(); this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.button1 = new System.Windows.Forms.Button(); + this.bs1 = new System.Windows.Forms.BindingSource(this.components); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); - this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.btEdit = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); @@ -124,14 +124,14 @@ this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.idx, @@ -148,14 +148,14 @@ this.charge, this.dvc_cust, this.check}); - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle4; this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridView1.Location = new System.Drawing.Point(0, 0); this.dataGridView1.MultiSelect = false; @@ -404,18 +404,23 @@ // // btn_AddList // + this.btn_AddList.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.btn_AddList.Dock = System.Windows.Forms.DockStyle.Right; - this.btn_AddList.Location = new System.Drawing.Point(968, 5); + this.btn_AddList.Location = new System.Drawing.Point(954, 5); this.btn_AddList.Margin = new System.Windows.Forms.Padding(1); this.btn_AddList.Name = "btn_AddList"; - this.btn_AddList.Size = new System.Drawing.Size(74, 27); + this.btn_AddList.Size = new System.Drawing.Size(88, 27); this.btn_AddList.TabIndex = 50; - this.btn_AddList.Text = "목록생성"; - this.btn_AddList.UseVisualStyleBackColor = true; + this.btn_AddList.Text = "목록등록(구)"; + this.btn_AddList.UseVisualStyleBackColor = false; this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click); // // panel1 // + this.panel1.Controls.Add(this.panel11); + this.panel1.Controls.Add(this.btnSearchISBN); + this.panel1.Controls.Add(this.panel10); + this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.btn_Lookup); this.panel1.Controls.Add(this.panel12); this.panel1.Controls.Add(this.chkEditorTest); @@ -423,9 +428,6 @@ this.panel1.Controls.Add(this.cb_state); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.tb_Search); - this.panel1.Controls.Add(this.panel11); - this.panel1.Controls.Add(this.btnSearchISBN); - this.panel1.Controls.Add(this.panel10); this.panel1.Controls.Add(this.btn_AddList); this.panel1.Controls.Add(this.panel9); this.panel1.Controls.Add(this.btn_Merge); @@ -484,7 +486,7 @@ // panel11 // this.panel11.Dock = System.Windows.Forms.DockStyle.Right; - this.panel11.Location = new System.Drawing.Point(878, 5); + this.panel11.Location = new System.Drawing.Point(790, 5); this.panel11.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.panel11.Name = "panel11"; this.panel11.Size = new System.Drawing.Size(8, 27); @@ -493,7 +495,7 @@ // btnSearchISBN // this.btnSearchISBN.Dock = System.Windows.Forms.DockStyle.Right; - this.btnSearchISBN.Location = new System.Drawing.Point(886, 5); + this.btnSearchISBN.Location = new System.Drawing.Point(798, 5); this.btnSearchISBN.Margin = new System.Windows.Forms.Padding(1); this.btnSearchISBN.Name = "btnSearchISBN"; this.btnSearchISBN.Size = new System.Drawing.Size(74, 27); @@ -505,7 +507,7 @@ // panel10 // this.panel10.Dock = System.Windows.Forms.DockStyle.Right; - this.panel10.Location = new System.Drawing.Point(960, 5); + this.panel10.Location = new System.Drawing.Point(872, 5); this.panel10.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.panel10.Name = "panel10"; this.panel10.Size = new System.Drawing.Size(8, 27); @@ -586,10 +588,10 @@ // // bn1 // - this.bn1.AddNewItem = this.bindingNavigatorAddNewItem; + this.bn1.AddNewItem = null; this.bn1.BindingSource = this.bs1; this.bn1.CountItem = this.bindingNavigatorCountItem; - this.bn1.DeleteItem = this.bindingNavigatorDeleteItem; + this.bn1.DeleteItem = null; this.bn1.Dock = System.Windows.Forms.DockStyle.Bottom; this.bn1.ImageScalingSize = new System.Drawing.Size(20, 20); this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -602,8 +604,7 @@ this.bindingNavigatorMoveNextItem, this.bindingNavigatorMoveLastItem, this.bindingNavigatorSeparator2, - this.bindingNavigatorAddNewItem, - this.bindingNavigatorDeleteItem}); + this.btEdit}); this.bn1.Location = new System.Drawing.Point(0, 597); this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem; this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem; @@ -615,15 +616,6 @@ this.bn1.TabIndex = 49; this.bn1.Text = "bindingNavigator1"; // - // bindingNavigatorAddNewItem - // - this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - 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(24, 24); - this.bindingNavigatorAddNewItem.Text = "새로 추가"; - // // bindingNavigatorCountItem // this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; @@ -631,33 +623,6 @@ this.bindingNavigatorCountItem.Text = "/{0}"; this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; // - // bindingNavigatorDeleteItem - // - this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - 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(24, 24); - this.bindingNavigatorDeleteItem.Text = "삭제"; - // - // bindingNavigatorMoveFirstItem - // - this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); - this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; - this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; - this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24); - this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; - // - // bindingNavigatorMovePreviousItem - // - this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); - this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; - this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; - this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24); - this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; - // // bindingNavigatorSeparator // this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; @@ -678,6 +643,41 @@ this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 27); // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 27); + // + // button1 + // + this.button1.Dock = System.Windows.Forms.DockStyle.Right; + this.button1.Location = new System.Drawing.Point(880, 5); + this.button1.Margin = new System.Windows.Forms.Padding(1); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(74, 27); + this.button1.TabIndex = 64; + this.button1.Text = "목록등록"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // // bindingNavigatorMoveNextItem // this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; @@ -696,10 +696,14 @@ this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(24, 24); this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; // - // bindingNavigatorSeparator2 + // btEdit // - this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; - this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 27); + this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image"))); + this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta; + this.btEdit.Name = "btEdit"; + this.btEdit.Size = new System.Drawing.Size(79, 24); + this.btEdit.Text = "정보편집"; + this.btEdit.Click += new System.EventHandler(this.btEdit_Click); // // Mac_List // @@ -772,10 +776,8 @@ private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Panel panel13; private System.Windows.Forms.BindingNavigator bn1; - private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem; private System.Windows.Forms.BindingSource bs1; private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; - private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; @@ -784,5 +786,7 @@ private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.ToolStripButton btEdit; } } \ No newline at end of file diff --git a/unimarc/unimarc/마크/Mac_List.cs b/unimarc/unimarc/마크/Mac_List.cs index a20ad81..e3f0ba2 100644 --- a/unimarc/unimarc/마크/Mac_List.cs +++ b/unimarc/unimarc/마크/Mac_List.cs @@ -323,5 +323,17 @@ namespace UniMarc var isbn = main.OpenFormInTab(() => new Check_ISBN(main, tSearchText, tSearchIDX)); isbn.tb_list_name.Enabled = true; } + + private void button1_Click(object sender, EventArgs e) + { + var listAdd = new Mac_List_Add2(this); + + listAdd.Show(); + } + + private void btEdit_Click(object sender, EventArgs e) + { + //정보편집 다이얼로그를 표시하고 Ok 했을 대 해당 정보를 업데이트한다. + } } } diff --git a/unimarc/unimarc/마크/Mac_List.resx b/unimarc/unimarc/마크/Mac_List.resx index 8db4821..0ba83a6 100644 --- a/unimarc/unimarc/마크/Mac_List.resx +++ b/unimarc/unimarc/마크/Mac_List.resx @@ -165,38 +165,14 @@ 154, 17 - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wAAADsABataJCQAAAVdJREFUOE/Nz0tLAmEUBmB3kWRoCUVEISFUJGb1OywiKrDsIpZdkJAkDUvDQkij - UKSbVIvatKhNi9oERRAGEQXhjJdp7Hd83/eGs2jhLGQ20QtndTgP71Gp/m0KZ1XInlTjM6XG+4EG5fuK - yaTUIN8bIMUQ0gmtcuBtX/MLPMT0yoHnuA6kuA4iruI20lAZ+DiswWuyFum4Dk+7dbiP6kHEFVDBg+tQ - My4DLbjwG3DqbcORxygHXxJakGIQRFwDEf0gwjKI4AYtzIHmHaA5Oxg/CsYPIb7YIQced+qluvTLCyIs - gRYWQPNO0NwkWNYGxg+DcYNgGSu2Z0xy4C7SiJtwE66kuq049xlAs2Ng/AiS7nbszXci6jIh4jQjPGWR - A+U59hiluowbQMzVVfmgPKU/GdcPxlmx5TArB6KzJunf0gTtPcqBzeluhCYsCIz3wm/rUw78WX4AJCPY - nlwVm9EAAAAASUVORK5CYII= - - 308, 17 - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wAAADsABataJCQAAAWtJREFUOE+1kE0ow2Ecx/9X5a2UiwtKOSCTmJBMhuQlMo3IvCUHDouEXHZwIOVC - DrhIDiQl5USy07zNa2tKf2laaRf84/J8xBCetab4XL/f76fn+SnKX4DrGLqrwbHDzywkWJlHdJYjLEbY - Wg8q4eYKlma+d1hbgF4TotWIaC+FuYmAktcXCksx2HrknBOHX1KbiTDngrXhW0kMdSBM2TA5Io+/wuI0 - oiz5TcRwB7hPYazfLx3rDz7+gCsXNBb4v1SdgajTQ19TaOMP2NtFmPSIilSo0v1y7FHBnAdZMWi6aO51 - kVCTGZoEzzWYciA/Dl9bBZwfvh3XmxIJy7PBJdx5odnAQ2E87qJUfPbtzwGjVpxJEWjH+4ElPD/BYBsY - EjhKicW3sSoVb0vSUFsq0W6upUxhdxMtOxZnYhhqVz1oj3JJUZSdpCg0p0POmLKhJofjNqaDeikX3tFG - uuHsQM65cML4ABzY5fA/eQGKIwMcVjm2bAAAAABJRU5ErkJggg== - - + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wAAADsABataJCQAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+ + vgAADr4B6kKxwAAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+ +8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/ +4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/ @@ -207,7 +183,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wAAADsABataJCQAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33 + vgAADr4B6kKxwAAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33 wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE 9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII= @@ -216,7 +192,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wAAADsABataJCQAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5 + vgAADr4B6kKxwAAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5 8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+ X6Bjq5qXAAAAAElFTkSuQmCC @@ -225,12 +201,27 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wAAADsABataJCQAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe + vgAADr4B6kKxwAAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe /w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/ /tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6 3AZY5N35b1NwBUMzTC61/zXcS1iBYdZtrJpBACQX1vLyv27wPKzyYKCTdgOnJEjOr/rhfw3faTjV4AVO uVf+q3hMAGN0uYEFAL7Rv7NmXVYYAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK + YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X + /aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t + I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM + cX79DFKrHHD5d9D26hvicx4pABt2lpg10zYzU0zr7+e3xXGcrkEB2O2TNec9nJFwB3alZn5jZorfeDZh + 6Q3g8s06BeCoKF4MRURoH1+BY2oNCbeb0TIclIYxOhzf8frTOuo7FxCbbVIAzpni0iceEc8vhzEwGkJD + lx83ymxifejdKjRNk/8PWnyIyTQqAJek0jqHwfEVscu31baIu8+90sTE4nY025dQ2/5FIPpnXlzKuK8A + HBUzHot52djqQ6HZhfR7IwK4mKpHtvEDMqvfCiQ6zaAAXM8x94aIWTNrLLG4kVUzgaTSPlzLtyJOZxbb + 1wtfyg4Q+AfA3aZlButjSfxGcUJBk4g5tuP3haQKRKXcUQDOmbvNTpPOJeFFjordZmbWTNvMTHFUcpUC + nOccAdABIDXXE1nzAAAAAElFTkSuQmCC diff --git a/unimarc/unimarc/마크/Mac_List_Add.Designer.cs b/unimarc/unimarc/마크/Mac_List_Add.Designer.cs index 3c5d34f..75d8682 100644 --- a/unimarc/unimarc/마크/Mac_List_Add.Designer.cs +++ b/unimarc/unimarc/마크/Mac_List_Add.Designer.cs @@ -55,16 +55,16 @@ namespace UniMarc this.tb_divComp = new System.Windows.Forms.TextBox(); this.panel2 = new System.Windows.Forms.Panel(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.header = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.num = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.BookName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Author = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.BookComp = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Total = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); @@ -91,18 +91,16 @@ namespace UniMarc this.panel1.Controls.Add(this.tb_divComp); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1025, 73); + this.panel1.Size = new System.Drawing.Size(897, 59); this.panel1.TabIndex = 0; // // tbCustomIDX // - this.tbCustomIDX.Location = new System.Drawing.Point(200, 6); - this.tbCustomIDX.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.tbCustomIDX.Location = new System.Drawing.Point(175, 5); this.tbCustomIDX.Name = "tbCustomIDX"; this.tbCustomIDX.ReadOnly = true; - this.tbCustomIDX.Size = new System.Drawing.Size(75, 25); + this.tbCustomIDX.Size = new System.Drawing.Size(66, 21); this.tbCustomIDX.TabIndex = 15; this.tbCustomIDX.TabStop = false; this.tbCustomIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -110,9 +108,9 @@ namespace UniMarc // label5 // this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(677, 44); + this.label5.Location = new System.Drawing.Point(592, 35); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(67, 15); + this.label5.Size = new System.Drawing.Size(53, 12); this.label5.TabIndex = 14; this.label5.Text = "쉼표구분"; // @@ -120,18 +118,16 @@ namespace UniMarc // this.cb_Gubun.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cb_Gubun.FormattingEnabled = true; - this.cb_Gubun.Location = new System.Drawing.Point(739, 39); - this.cb_Gubun.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.cb_Gubun.Location = new System.Drawing.Point(647, 31); this.cb_Gubun.Name = "cb_Gubun"; - this.cb_Gubun.Size = new System.Drawing.Size(85, 23); + this.cb_Gubun.Size = new System.Drawing.Size(75, 20); this.cb_Gubun.TabIndex = 6; // // btn_DelRow // - this.btn_DelRow.Location = new System.Drawing.Point(640, 5); - this.btn_DelRow.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.btn_DelRow.Location = new System.Drawing.Point(560, 4); this.btn_DelRow.Name = "btn_DelRow"; - this.btn_DelRow.Size = new System.Drawing.Size(93, 29); + this.btn_DelRow.Size = new System.Drawing.Size(81, 23); this.btn_DelRow.TabIndex = 5; this.btn_DelRow.Text = "선택 셀 삭제"; this.btn_DelRow.UseVisualStyleBackColor = true; @@ -139,10 +135,9 @@ namespace UniMarc // // btn_Upload // - this.btn_Upload.Location = new System.Drawing.Point(832, 38); - this.btn_Upload.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.btn_Upload.Location = new System.Drawing.Point(728, 30); this.btn_Upload.Name = "btn_Upload"; - this.btn_Upload.Size = new System.Drawing.Size(86, 29); + this.btn_Upload.Size = new System.Drawing.Size(75, 23); this.btn_Upload.TabIndex = 7; this.btn_Upload.Text = "txt불러오기"; this.btn_Upload.UseVisualStyleBackColor = true; @@ -152,18 +147,16 @@ namespace UniMarc // this.cb_User.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cb_User.FormattingEnabled = true; - this.cb_User.Location = new System.Drawing.Point(517, 6); - this.cb_User.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.cb_User.Location = new System.Drawing.Point(452, 5); this.cb_User.Name = "cb_User"; - this.cb_User.Size = new System.Drawing.Size(93, 23); + this.cb_User.Size = new System.Drawing.Size(82, 20); this.cb_User.TabIndex = 2; // // btClose // - this.btClose.Location = new System.Drawing.Point(925, 5); - this.btClose.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.btClose.Location = new System.Drawing.Point(809, 4); this.btClose.Name = "btClose"; - this.btClose.Size = new System.Drawing.Size(86, 29); + this.btClose.Size = new System.Drawing.Size(75, 23); this.btClose.TabIndex = 8; this.btClose.Text = "닫 기"; this.btClose.UseVisualStyleBackColor = true; @@ -171,10 +164,9 @@ namespace UniMarc // // btn_Empty // - this.btn_Empty.Location = new System.Drawing.Point(739, 5); - this.btn_Empty.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.btn_Empty.Location = new System.Drawing.Point(647, 4); this.btn_Empty.Name = "btn_Empty"; - this.btn_Empty.Size = new System.Drawing.Size(86, 29); + this.btn_Empty.Size = new System.Drawing.Size(75, 23); this.btn_Empty.TabIndex = 4; this.btn_Empty.Text = "비 우 기"; this.btn_Empty.UseVisualStyleBackColor = true; @@ -182,10 +174,9 @@ namespace UniMarc // // btSave // - this.btSave.Location = new System.Drawing.Point(832, 5); - this.btSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.btSave.Location = new System.Drawing.Point(728, 4); this.btSave.Name = "btSave"; - this.btSave.Size = new System.Drawing.Size(86, 29); + this.btSave.Size = new System.Drawing.Size(75, 23); this.btSave.TabIndex = 3; this.btSave.Text = "저 장"; this.btSave.UseVisualStyleBackColor = true; @@ -194,37 +185,36 @@ namespace UniMarc // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(467, 11); + this.label3.Location = new System.Drawing.Point(409, 9); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(52, 15); + this.label3.Size = new System.Drawing.Size(41, 12); this.label3.TabIndex = 13; this.label3.Text = "담당자"; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(294, 11); + this.label2.Location = new System.Drawing.Point(257, 9); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(52, 15); + this.label2.Size = new System.Drawing.Size(41, 12); this.label2.TabIndex = 11; this.label2.Text = "납품명"; // // label4 // this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(31, 44); + this.label4.Location = new System.Drawing.Point(27, 35); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(102, 15); + this.label4.Size = new System.Drawing.Size(81, 12); this.label4.TabIndex = 10; this.label4.Text = "생성될 목록명"; // // btCustom // this.btCustom.AutoSize = true; - this.btCustom.Location = new System.Drawing.Point(6, 5); - this.btCustom.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.btCustom.Location = new System.Drawing.Point(5, 4); this.btCustom.Name = "btCustom"; - this.btCustom.Size = new System.Drawing.Size(71, 31); + this.btCustom.Size = new System.Drawing.Size(62, 25); this.btCustom.TabIndex = 9; this.btCustom.Text = "납품처"; this.btCustom.Click += new System.EventHandler(this.label1_Click); @@ -232,27 +222,24 @@ namespace UniMarc // tb_ExpectList // this.tb_ExpectList.Enabled = false; - this.tb_ExpectList.Location = new System.Drawing.Point(130, 39); - this.tb_ExpectList.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.tb_ExpectList.Location = new System.Drawing.Point(114, 31); this.tb_ExpectList.Name = "tb_ExpectList"; - this.tb_ExpectList.Size = new System.Drawing.Size(285, 25); + this.tb_ExpectList.Size = new System.Drawing.Size(250, 21); this.tb_ExpectList.TabIndex = 12; // // tb_divName // - this.tb_divName.Location = new System.Drawing.Point(343, 6); - this.tb_divName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.tb_divName.Location = new System.Drawing.Point(300, 5); this.tb_divName.Name = "tb_divName"; - this.tb_divName.Size = new System.Drawing.Size(114, 25); + this.tb_divName.Size = new System.Drawing.Size(100, 21); this.tb_divName.TabIndex = 1; this.tb_divName.TextChanged += new System.EventHandler(this.Delivery_TextChanged); // // tb_divComp // - this.tb_divComp.Location = new System.Drawing.Point(79, 6); - this.tb_divComp.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.tb_divComp.Location = new System.Drawing.Point(69, 5); this.tb_divComp.Name = "tb_divComp"; - this.tb_divComp.Size = new System.Drawing.Size(114, 25); + this.tb_divComp.Size = new System.Drawing.Size(100, 21); this.tb_divComp.TabIndex = 0; this.tb_divComp.TextChanged += new System.EventHandler(this.Delivery_TextChanged); this.tb_divComp.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_divComp_KeyDown); @@ -261,10 +248,9 @@ namespace UniMarc // this.panel2.Controls.Add(this.dataGridView1); this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(0, 73); - this.panel2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.panel2.Location = new System.Drawing.Point(0, 59); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1025, 777); + this.panel2.Size = new System.Drawing.Size(897, 621); this.panel2.TabIndex = 1; // // dataGridView1 @@ -286,20 +272,23 @@ namespace UniMarc this.BookName, this.Author, this.BookComp, - this.Price, this.Count, + this.Price, this.Total, this.ISBN}); this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridView1.Location = new System.Drawing.Point(0, 0); - this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.RowTemplate.Height = 23; - this.dataGridView1.Size = new System.Drawing.Size(1025, 777); + this.dataGridView1.Size = new System.Drawing.Size(897, 621); this.dataGridView1.TabIndex = 1; this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); // + // openFileDialog1 + // + this.openFileDialog1.FileName = "openFileDialog1"; + // // header // this.header.HeaderText = "머리글"; @@ -335,26 +324,26 @@ namespace UniMarc this.BookComp.Name = "BookComp"; this.BookComp.Width = 120; // - // Price + // Count // dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); dataGridViewCellStyle5.Format = "N0"; - dataGridViewCellStyle5.NullValue = "0"; - this.Price.DefaultCellStyle = dataGridViewCellStyle5; - this.Price.HeaderText = "가격"; - this.Price.Name = "Price"; - this.Price.Width = 80; - // - // Count - // - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); - dataGridViewCellStyle6.Format = "N0"; - dataGridViewCellStyle6.NullValue = "1"; - this.Count.DefaultCellStyle = dataGridViewCellStyle6; + dataGridViewCellStyle5.NullValue = "1"; + this.Count.DefaultCellStyle = dataGridViewCellStyle5; this.Count.HeaderText = "수량"; this.Count.Name = "Count"; this.Count.Width = 45; // + // Price + // + dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + dataGridViewCellStyle6.Format = "N0"; + dataGridViewCellStyle6.NullValue = "0"; + this.Price.DefaultCellStyle = dataGridViewCellStyle6; + this.Price.HeaderText = "가격"; + this.Price.Name = "Price"; + this.Price.Width = 80; + // // Total // dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); @@ -370,20 +359,15 @@ namespace UniMarc this.ISBN.HeaderText = "ISBN"; this.ISBN.Name = "ISBN"; // - // openFileDialog1 - // - this.openFileDialog1.FileName = "openFileDialog1"; - // // Mac_List_Add // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1025, 850); + this.ClientSize = new System.Drawing.Size(897, 680); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.Name = "Mac_List_Add"; - this.Text = "마크 목록 생성"; + this.Text = "마크 목록 등록"; this.Load += new System.EventHandler(this.Mac_List_Add_Load); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); @@ -409,20 +393,20 @@ namespace UniMarc private System.Windows.Forms.Label label4; private System.Windows.Forms.Button btClose; private System.Windows.Forms.Button btn_Empty; - private System.Windows.Forms.DataGridViewTextBoxColumn header; - private System.Windows.Forms.DataGridViewTextBoxColumn num; - private System.Windows.Forms.DataGridViewTextBoxColumn BookName; - private System.Windows.Forms.DataGridViewTextBoxColumn Author; - private System.Windows.Forms.DataGridViewTextBoxColumn BookComp; - private System.Windows.Forms.DataGridViewTextBoxColumn Price; - private System.Windows.Forms.DataGridViewTextBoxColumn Count; - private System.Windows.Forms.DataGridViewTextBoxColumn Total; - private System.Windows.Forms.DataGridViewTextBoxColumn ISBN; private System.Windows.Forms.Button btn_Upload; private System.Windows.Forms.ComboBox cb_Gubun; private System.Windows.Forms.Label label5; private System.Windows.Forms.OpenFileDialog openFileDialog1; private System.Windows.Forms.Button btn_DelRow; private System.Windows.Forms.TextBox tbCustomIDX; + private System.Windows.Forms.DataGridViewTextBoxColumn header; + private System.Windows.Forms.DataGridViewTextBoxColumn num; + private System.Windows.Forms.DataGridViewTextBoxColumn BookName; + private System.Windows.Forms.DataGridViewTextBoxColumn Author; + private System.Windows.Forms.DataGridViewTextBoxColumn BookComp; + private System.Windows.Forms.DataGridViewTextBoxColumn Count; + private System.Windows.Forms.DataGridViewTextBoxColumn Price; + private System.Windows.Forms.DataGridViewTextBoxColumn Total; + private System.Windows.Forms.DataGridViewTextBoxColumn ISBN; } } \ No newline at end of file diff --git a/unimarc/unimarc/마크/Mac_List_Add.resx b/unimarc/unimarc/마크/Mac_List_Add.resx index 17fe864..982c52f 100644 --- a/unimarc/unimarc/마크/Mac_List_Add.resx +++ b/unimarc/unimarc/마크/Mac_List_Add.resx @@ -132,10 +132,10 @@ True - + True - + True diff --git a/unimarc/unimarc/마크/Mac_List_Add2.Designer.cs b/unimarc/unimarc/마크/Mac_List_Add2.Designer.cs new file mode 100644 index 0000000..2759c57 --- /dev/null +++ b/unimarc/unimarc/마크/Mac_List_Add2.Designer.cs @@ -0,0 +1,421 @@ + +namespace UniMarc +{ + partial class Mac_List_Add2 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + this.panel1 = new System.Windows.Forms.Panel(); + this.tbCustomIDX = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.cb_Gubun = new System.Windows.Forms.ComboBox(); + this.btn_DelRow = new System.Windows.Forms.Button(); + this.btn_Upload = new System.Windows.Forms.Button(); + this.cb_User = new System.Windows.Forms.ComboBox(); + this.btClose = new System.Windows.Forms.Button(); + this.btn_Empty = new System.Windows.Forms.Button(); + this.btSave = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.btCustom = new System.Windows.Forms.Button(); + this.tb_ExpectList = new System.Windows.Forms.TextBox(); + this.tb_divName = new System.Windows.Forms.TextBox(); + this.tb_divComp = new System.Windows.Forms.TextBox(); + this.panel2 = new System.Windows.Forms.Panel(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.header = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.num = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.BookName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Author = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.BookComp = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Total = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel1.Controls.Add(this.tbCustomIDX); + this.panel1.Controls.Add(this.label5); + this.panel1.Controls.Add(this.cb_Gubun); + this.panel1.Controls.Add(this.btn_DelRow); + this.panel1.Controls.Add(this.btn_Upload); + this.panel1.Controls.Add(this.cb_User); + this.panel1.Controls.Add(this.btClose); + this.panel1.Controls.Add(this.btn_Empty); + this.panel1.Controls.Add(this.btSave); + this.panel1.Controls.Add(this.label3); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this.label4); + this.panel1.Controls.Add(this.btCustom); + this.panel1.Controls.Add(this.tb_ExpectList); + this.panel1.Controls.Add(this.tb_divName); + this.panel1.Controls.Add(this.tb_divComp); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(897, 59); + this.panel1.TabIndex = 0; + // + // tbCustomIDX + // + this.tbCustomIDX.Location = new System.Drawing.Point(175, 5); + this.tbCustomIDX.Name = "tbCustomIDX"; + this.tbCustomIDX.ReadOnly = true; + this.tbCustomIDX.Size = new System.Drawing.Size(66, 21); + this.tbCustomIDX.TabIndex = 15; + this.tbCustomIDX.TabStop = false; + this.tbCustomIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(592, 35); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 14; + this.label5.Text = "쉼표구분"; + // + // cb_Gubun + // + this.cb_Gubun.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_Gubun.FormattingEnabled = true; + this.cb_Gubun.Location = new System.Drawing.Point(647, 31); + this.cb_Gubun.Name = "cb_Gubun"; + this.cb_Gubun.Size = new System.Drawing.Size(75, 20); + this.cb_Gubun.TabIndex = 6; + // + // btn_DelRow + // + this.btn_DelRow.Location = new System.Drawing.Point(560, 4); + this.btn_DelRow.Name = "btn_DelRow"; + this.btn_DelRow.Size = new System.Drawing.Size(81, 23); + this.btn_DelRow.TabIndex = 5; + this.btn_DelRow.Text = "선택 셀 삭제"; + this.btn_DelRow.UseVisualStyleBackColor = true; + this.btn_DelRow.Click += new System.EventHandler(this.btn_DelRow_Click); + // + // btn_Upload + // + this.btn_Upload.Location = new System.Drawing.Point(728, 30); + this.btn_Upload.Name = "btn_Upload"; + this.btn_Upload.Size = new System.Drawing.Size(75, 23); + this.btn_Upload.TabIndex = 7; + this.btn_Upload.Text = "txt불러오기"; + this.btn_Upload.UseVisualStyleBackColor = true; + this.btn_Upload.Click += new System.EventHandler(this.btn_Upload_Click); + // + // cb_User + // + this.cb_User.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_User.FormattingEnabled = true; + this.cb_User.Location = new System.Drawing.Point(452, 5); + this.cb_User.Name = "cb_User"; + this.cb_User.Size = new System.Drawing.Size(82, 20); + this.cb_User.TabIndex = 2; + // + // btClose + // + this.btClose.Location = new System.Drawing.Point(809, 4); + this.btClose.Name = "btClose"; + this.btClose.Size = new System.Drawing.Size(75, 23); + this.btClose.TabIndex = 8; + this.btClose.Text = "닫 기"; + this.btClose.UseVisualStyleBackColor = true; + this.btClose.Click += new System.EventHandler(this.btn_Close_Click); + // + // btn_Empty + // + this.btn_Empty.Location = new System.Drawing.Point(647, 4); + this.btn_Empty.Name = "btn_Empty"; + this.btn_Empty.Size = new System.Drawing.Size(75, 23); + this.btn_Empty.TabIndex = 4; + this.btn_Empty.Text = "비 우 기"; + this.btn_Empty.UseVisualStyleBackColor = true; + this.btn_Empty.Click += new System.EventHandler(this.btn_Empty_Click); + // + // btSave + // + this.btSave.Location = new System.Drawing.Point(728, 4); + this.btSave.Name = "btSave"; + this.btSave.Size = new System.Drawing.Size(75, 23); + this.btSave.TabIndex = 3; + this.btSave.Text = "저 장"; + this.btSave.UseVisualStyleBackColor = true; + this.btSave.Click += new System.EventHandler(this.btn_AddList_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(409, 9); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(41, 12); + this.label3.TabIndex = 13; + this.label3.Text = "담당자"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(257, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(41, 12); + this.label2.TabIndex = 11; + this.label2.Text = "납품명"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(27, 35); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(81, 12); + this.label4.TabIndex = 10; + this.label4.Text = "생성될 목록명"; + // + // btCustom + // + this.btCustom.AutoSize = true; + this.btCustom.Location = new System.Drawing.Point(5, 4); + this.btCustom.Name = "btCustom"; + this.btCustom.Size = new System.Drawing.Size(62, 25); + this.btCustom.TabIndex = 9; + this.btCustom.Text = "납품처"; + this.btCustom.Click += new System.EventHandler(this.label1_Click); + // + // tb_ExpectList + // + this.tb_ExpectList.Enabled = false; + this.tb_ExpectList.Location = new System.Drawing.Point(114, 31); + this.tb_ExpectList.Name = "tb_ExpectList"; + this.tb_ExpectList.Size = new System.Drawing.Size(250, 21); + this.tb_ExpectList.TabIndex = 12; + // + // tb_divName + // + this.tb_divName.Location = new System.Drawing.Point(300, 5); + this.tb_divName.Name = "tb_divName"; + this.tb_divName.Size = new System.Drawing.Size(100, 21); + this.tb_divName.TabIndex = 1; + this.tb_divName.TextChanged += new System.EventHandler(this.Delivery_TextChanged); + // + // tb_divComp + // + this.tb_divComp.Location = new System.Drawing.Point(69, 5); + this.tb_divComp.Name = "tb_divComp"; + this.tb_divComp.Size = new System.Drawing.Size(100, 21); + this.tb_divComp.TabIndex = 0; + this.tb_divComp.TextChanged += new System.EventHandler(this.Delivery_TextChanged); + this.tb_divComp.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_divComp_KeyDown); + // + // panel2 + // + this.panel2.Controls.Add(this.dataGridView1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 59); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(897, 621); + this.panel2.TabIndex = 1; + // + // dataGridView1 + // + this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; + this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.header, + this.num, + this.BookName, + this.Author, + this.BookComp, + this.Count, + this.Price, + this.Total, + this.ISBN}); + this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView1.Location = new System.Drawing.Point(0, 0); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(897, 621); + this.dataGridView1.TabIndex = 1; + this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); + this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); + // + // openFileDialog1 + // + this.openFileDialog1.FileName = "openFileDialog1"; + // + // header + // + this.header.DataPropertyName = "header"; + this.header.HeaderText = "머리글"; + this.header.Name = "header"; + this.header.Width = 65; + // + // num + // + this.num.DataPropertyName = "num"; + this.num.HeaderText = "번호"; + this.num.Name = "num"; + this.num.Width = 45; + // + // BookName + // + this.BookName.DataPropertyName = "BookName"; + dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + this.BookName.DefaultCellStyle = dataGridViewCellStyle2; + this.BookName.HeaderText = "도서명"; + this.BookName.Name = "BookName"; + this.BookName.Width = 200; + // + // Author + // + this.Author.DataPropertyName = "Author"; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + this.Author.DefaultCellStyle = dataGridViewCellStyle3; + this.Author.HeaderText = "저자"; + this.Author.Name = "Author"; + // + // BookComp + // + this.BookComp.DataPropertyName = "BookComp"; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + this.BookComp.DefaultCellStyle = dataGridViewCellStyle4; + this.BookComp.HeaderText = "출판사"; + this.BookComp.Name = "BookComp"; + this.BookComp.Width = 120; + // + // Count + // + this.Count.DataPropertyName = "Count"; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + dataGridViewCellStyle5.Format = "N0"; + dataGridViewCellStyle5.NullValue = "1"; + this.Count.DefaultCellStyle = dataGridViewCellStyle5; + this.Count.HeaderText = "수량"; + this.Count.Name = "Count"; + this.Count.Width = 45; + // + // Price + // + this.Price.DataPropertyName = "Price"; + dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + dataGridViewCellStyle6.Format = "N0"; + dataGridViewCellStyle6.NullValue = "0"; + this.Price.DefaultCellStyle = dataGridViewCellStyle6; + this.Price.HeaderText = "가격"; + this.Price.Name = "Price"; + this.Price.Width = 80; + // + // Total + // + this.Total.DataPropertyName = "Total"; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + dataGridViewCellStyle7.Format = "N0"; + dataGridViewCellStyle7.NullValue = "0"; + this.Total.DefaultCellStyle = dataGridViewCellStyle7; + this.Total.HeaderText = "합계"; + this.Total.Name = "Total"; + this.Total.Width = 80; + // + // ISBN + // + this.ISBN.DataPropertyName = "ISBN"; + this.ISBN.HeaderText = "ISBN"; + this.ISBN.Name = "ISBN"; + // + // Mac_List_Add + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(897, 680); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel1); + this.Name = "Mac_List_Add"; + this.Text = "마크 목록 등록"; + this.Load += new System.EventHandler(this.Mac_List_Add_Load); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.Button btSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button btCustom; + private System.Windows.Forms.TextBox tb_divName; + private System.Windows.Forms.TextBox tb_divComp; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.ComboBox cb_User; + private System.Windows.Forms.TextBox tb_ExpectList; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Button btClose; + private System.Windows.Forms.Button btn_Empty; + private System.Windows.Forms.Button btn_Upload; + private System.Windows.Forms.ComboBox cb_Gubun; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.OpenFileDialog openFileDialog1; + private System.Windows.Forms.Button btn_DelRow; + private System.Windows.Forms.TextBox tbCustomIDX; + private System.Windows.Forms.DataGridViewTextBoxColumn header; + private System.Windows.Forms.DataGridViewTextBoxColumn num; + private System.Windows.Forms.DataGridViewTextBoxColumn BookName; + private System.Windows.Forms.DataGridViewTextBoxColumn Author; + private System.Windows.Forms.DataGridViewTextBoxColumn BookComp; + private System.Windows.Forms.DataGridViewTextBoxColumn Count; + private System.Windows.Forms.DataGridViewTextBoxColumn Price; + private System.Windows.Forms.DataGridViewTextBoxColumn Total; + private System.Windows.Forms.DataGridViewTextBoxColumn ISBN; + } +} \ No newline at end of file diff --git a/unimarc/unimarc/마크/Mac_List_Add2.cs b/unimarc/unimarc/마크/Mac_List_Add2.cs new file mode 100644 index 0000000..7957c26 --- /dev/null +++ b/unimarc/unimarc/마크/Mac_List_Add2.cs @@ -0,0 +1,307 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.IO; +using Microsoft.Office.Interop.Excel; +using UniMarc.ListOfValue; +using AR; + +namespace UniMarc +{ + public partial class Mac_List_Add2 : Form + { + Helper_DB db = new Helper_DB(); + Skill_Grid sg = new Skill_Grid(); + BindingSource bs1 = new BindingSource(); + BindingList bookList = new BindingList(); + Mac_List ml; + + public Mac_List_Add2(Mac_List _ml) + { + InitializeComponent(); + ml = _ml; + + bs1.DataSource = bookList; + dataGridView1.DataSource = bs1; + } + + private void Mac_List_Add_Load(object sender, EventArgs e) + { + db.DBcon(); + + string compidx = PUB.user.CompanyIdx; + string MyName = PUB.user.UserName; + + #region 콤보박스 채우기 + + // 담당자 + string CompQuery = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", compidx); + string cmd = string.Format("SELECT `name` FROM `User_Data` WHERE `affil` = ({0});", CompQuery); + string[] cmdResult = db.DB_Send_CMD_Search(cmd).Split('|'); + + foreach (string UserName in cmdResult) + { + if (UserName != "") + cb_User.Items.Add(UserName); + } + + cb_User.SelectedItem = MyName; + + // 쉼표구분 + string[] Gubun = { "tap", ",", "|" }; + cb_Gubun.Items.AddRange(Gubun); + cb_Gubun.SelectedIndex = 0; + #endregion + } + + private void Delivery_TextChanged(object sender, EventArgs e) + { + string divComp = tb_divComp.Text; + string divName = tb_divName.Text; + + string ListName = string.Format("[{0}]{1}", divComp, divName); + tb_ExpectList.Text = ListName; + } + + private void btn_Empty_Click(object sender, EventArgs e) + { + tb_divComp.Text = ""; + tb_divName.Text = ""; + bookList.Clear(); + } + + private void btn_AddList_Click(object sender, EventArgs e) + { + string compidx = PUB.user.CompanyIdx; + string Today = DateTime.Now.ToString("yyyy-MM-dd"); + string listName = tb_ExpectList.Text; + string charge = cb_User.Text; + + int custidx = -1; + if (int.TryParse(tbCustomIDX.Text, out custidx) == false) + { + UTIL.MsgE("납품처를 올바르게 선택하세요"); + tb_divComp.Focus(); + tb_divComp.SelectAll(); + return; + } + + if (!CopyCheck(compidx, listName, Today)) + { + MessageBox.Show("목록이 중복되었습니다! 다시 확인해주세요.", "Error"); + return; + } + if (listName.isEmpty()) + { + MessageBox.Show("목록명이 비어있습니다! 다시 확인해주세요.", "Error"); + return; + } + + string InBook_Area = "`compidx`, `list_name`, `date`, `header`, `num`, " + + "`book_name`, `author`, `book_comp`, `pay`, `count`, " + + "`total`, `isbn_marc`, `l_idx`"; + List InBook_List = new List(); + + int TotalCount = 0; + string InList_Idx = "㏓InList_Idx♠"; + + string[] InList_Tbl = { "comp_num", "date", "list_name", "m_charge", "state", "vol", "chk_marc", "customer" }; + string[] InList_Col = { compidx, Today, listName, charge, "진행", TotalCount.ToString(), "1", $"{custidx}" }; + + foreach (var item in bookList) + { + if (string.IsNullOrEmpty(item.BookName)) + continue; + + string header = item.header ?? ""; + string num = item.num ?? ""; + string bookname = item.BookName ?? ""; + string author = item.Author ?? ""; + string bookcomp = item.BookComp ?? ""; + string price = (item.Price ?? "0").Replace(",", ""); + string count = (item.Count ?? "1").Replace(",", ""); + string total = (item.Total ?? "0").Replace(",", ""); + string isbn = item.ISBN ?? ""; + + string tmp = string.Format( + "(\"{0}\", \"{1}\", \"{2}\", \"{3}\", \"{4}\", " + + "\"{5}\", \"{6}\", \"{7}\", \"{8}\", \"{9}\", " + + "\"{10}\", \"{11}\", \"{12}\")", + compidx, listName, Today, header, num, + bookname, author, bookcomp, price, count, + total, isbn, InList_Idx); + + int cVal = 0; + int.TryParse(count, out cVal); + TotalCount += cVal; + + InBook_List.Add(tmp); + } + + if (InBook_List.Count == 0) + { + MessageBox.Show("저장할 데이터가 없습니다."); + return; + } + + InList_Col[5] = TotalCount.ToString(); + string InList_Cmd = db.DB_INSERT("Obj_List", InList_Tbl, InList_Col); + + long listIdxLong = db.DB_Send_CMD_Insert_GetIdx(InList_Cmd); + if (listIdxLong == -1) + { + MessageBox.Show($"목록 저장에 실패했습니다."); + return; + } + string listIdx = listIdxLong.ToString(); + string InBook_Col = string.Join(", ", InBook_List).Replace(InList_Idx, listIdx); + string InBook_Cmd = string.Format("INSERT INTO `Obj_List_Book` ({0}) VALUES {1};", InBook_Area, InBook_Col); + + var rlt = Helper_DB.ExcuteNonQuery(InBook_Cmd); + if (rlt.applyCount == 0) + { + MessageBox.Show($"내역 저장에 실패했습니다.\n{rlt.errorMessage}"); + return; + } + + AR.UTIL.MsgI("저장되었습니다!"); + ml.btn_Lookup_Click(null, null); + } + + #region AddList_Sub + + /// + /// INSERT할 목록 중복체크 + /// + /// + /// + /// + /// + bool CopyCheck(string compidx, string listName, string date) + { + string cmd = string.Format( + "SELECT `list_name` " + + "FROM `Obj_List` " + + "WHERE `comp_num` = \"{0}\" " + + "AND `list_name` = \"{1}\" " + + "AND `date` = \"{2}\";", compidx, listName, date); + string cmdResult = db.DB_Send_CMD_Search(cmd); + + if (cmdResult.Length > 2) + return false; + + return true; + } + + #endregion + + private void btn_Upload_Click(object sender, EventArgs e) + { + string FilePath = ""; + openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); + + if (openFileDialog1.ShowDialog() == DialogResult.OK) + FilePath = openFileDialog1.FileName; + + if (string.IsNullOrEmpty(FilePath)) return; + + string[] textValue = File.ReadAllLines(FilePath); + + char Gubun = cb_Gubun.Text[0]; + if (cb_Gubun.SelectedIndex == 0) + { + Gubun = '\t'; + } + + if (textValue.Length == 0) + return; + + try + { + bookList.Clear(); + foreach (string Value in textValue) + { + string[] grid = Value.Split(Gubun); + var item = new BookGridItem(); + if (grid.Length > 0) item.header = grid[0]; + if (grid.Length > 1) item.num = grid[1]; + if (grid.Length > 2) item.BookName = grid[2]; + if (grid.Length > 3) item.Author = grid[3]; + if (grid.Length > 4) item.BookComp = grid[4]; + if (grid.Length > 5) item.Count = grid[5]; + if (grid.Length > 6) item.Price = grid[6]; + if (grid.Length > 7) item.Total = grid[7]; + if (grid.Length > 8) item.ISBN = grid[8]; + + bookList.Add(item); + } + } + catch (Exception ex) + { + MessageBox.Show("오류가 발생했습니다.\n" + ex.Message, "Error"); + } + } + + private void btn_DelRow_Click(object sender, EventArgs e) + { + if (bs1.Current == null) return; + + DialogResult result = MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo); + if (result == DialogResult.No) return; + + bs1.RemoveCurrent(); + } + + private void btn_Close_Click(object sender, EventArgs e) + { + this.Close(); + } + + private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + sg.Print_Grid_Num(sender, e); + } + + private void dataGridView1_KeyDown(object sender, KeyEventArgs e) + { + sg.Excel_to_DataGridView(sender, e); + } + + private void label1_Click(object sender, EventArgs e) + { + LovCustom(); + } + void LovCustom() + { + string compidx = PUB.user.CompanyIdx; + var inputsearch = tb_divComp.Text.Trim(); + var where = $"campanyidx={compidx}"; + if (inputsearch.isEmpty() == false) + { + where += $" and c_sangho like '%{inputsearch.Replace("'", "''")}%'"; + } + var dt = Helper_DB.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where); + using (var f = new fSelectDT(dt)) + if (f.ShowDialog() == DialogResult.OK) + { + var dr = f.SelectedRow; + if (dr == null) return; + tbCustomIDX.Text = dr["idx"]?.ToString() ?? string.Empty; + tb_divComp.Text = dr["c_sangho"]?.ToString() ?? string.Empty; + tb_divName.Focus(); //납품명으로 커서 이동 + } + } + + private void tb_divComp_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) LovCustom(); + } + } +} diff --git a/unimarc/unimarc/마크/Mac_List_Add2.resx b/unimarc/unimarc/마크/Mac_List_Add2.resx new file mode 100644 index 0000000..a84e047 --- /dev/null +++ b/unimarc/unimarc/마크/Mac_List_Add2.resx @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + 10, 8 + + + 151, 8 + + + 290, 8 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAExSURBVDhPY2AYNKBw1vP/TQue/8+c+Pg/uhwMhLc/wCnH + kDvz2f9VR97/x6UovvvB/+CGa1jlwCBjytP/C/d9wKoovufh/6X7///3r76AIQcHCT1P/k/b8h5DUUT7 + fbDmzFn//3uVnsBtQGTXo/+9qz+gKAptvQfW3Lru/3//zr//XfIP4DYgsPnh/7r57+CKglvu/l+09/// + jnX//2fM+fnfru7nf/uM7bgN8Ki6/z9/2hsURXbFt/+nz/n937/r23+dwnf/LRLW4zbAvvTu/+zJrzEU + 6aec/29S9OK/Stan/8aRy3AbYJF3539q/2usigySTvyXTfv6Xzd4HoYcHBhm3f4f1vISpyL91Mv/NXyn + YZUDA520G//9qh/iVaTiMQGnHINT7pX/IAV4FQ1KAADwdsCrWJS2HgAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAC7SURBVDhPY2AYMiC8/cF/dDGiQXz3g//BDdfIMyC+5+H/ + pfv///evvkC6ARHt98GaM2f9/+9VeoI0A0Jb74E1t677/9+/8+9/l/wDxBsQ3HL3/6K9//93rPv/P2PO + z/92dT//22dsJ94AELArvv0/fc7v//5d3/7rFL77b5GwnjQDQEA/5fx/k6IX/1WyPv03jlxGugEgYJB0 + 4r9s2tf/usHzyDMABPRTL//X8J1GvgEgoOIxgTIDBi8AANAUYJgsLP+3AAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACkSURBVDhPY2AYdKBw1vP/6GIkgdyZz/4ndN8j35CMKU// + z9v/+39C1x3yDEnoefJ/9r5f/zu3/v3vVnqZdEMiux79n7Lt1/+SpX//J0z/+98m9yxphgQ2P/zfuvY9 + WLNxyZf/0tHX/htHLiPeEI+q+/9L5r6Da1Z06SFeMwjYl979H9jyjDzNIGCRd+e/TcEV8jSDgGHWbfI1 + g4BO2g3yNQ9NAACgfl+gY6ualwAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAErSURBVDhPY2AYVKBw1vP/6GIwAJJrWvD8f+bExzjVMOTO + fPY/ofseVgUguVVH3v8Pb3+AVR4MMqY8/T9v/+//CV13MBSB5Bbu+/A/uOEahhwcJPQ8+T9736//nVv/ + /ncrvYyiECQ3bcv7//7VF3AbENn16P+Ubb/+lyz9+z9h+t//Nrln4YpBcr2rP/z3Kj2B24DA5of/W9e+ + B2s2LvnyXzr62n/jyGVgDSC5uvnv/rvkH8BtgEfV/f8lc9/BNSu69MAVg+Typ735b5+xHbcB9qV3/we2 + PMPQDJPLnvz6v0XCetwGWOTd+W9TcAVDM0wutf813EtYgWHWbayaQQAkF9by8r9u8Dys8mCgk3YDpyRI + zq/64X8N32k41eAFTrlX/qt4TABjdLmBBQC+0b+zZl1WGAAAAABJRU5ErkJggg== + + + + 35 + + \ No newline at end of file