=====* UniMarc [0.0115] 버전관리 시작 *=====

1. 소장자료검색에서 더블클릭시 마크편집폼으로 전환

2. 마크편집에서 [저장시각, 작성자, 비고, 등급] 추가로 표시

3. 복본조사 - 특수문자, 괄호안의 문자 제거기능 추가

4. 저자기호 일괄전환 추가

5. 마크목록생성 - 수량분리기능 추가.

6. 마크편집폼에 비고란 추가.
This commit is contained in:
SeungHo Yang
2022-02-07 17:47:10 +09:00
parent ed81f7d1d3
commit 35f0155bb8
41 changed files with 2047 additions and 1310 deletions

Binary file not shown.

View File

@@ -230,6 +230,12 @@
<Compile Include="마크\Marc_Plan_Sub_SelectList_Edit.Designer.cs">
<DependentUpon>Marc_Plan_Sub_SelectList_Edit.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_SelectList_Morge.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_SelectList_Morge.Designer.cs">
<DependentUpon>Marc_Plan_Sub_SelectList_Morge.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_Preview.cs">
<SubType>Form</SubType>
</Compile>
@@ -771,6 +777,9 @@
<EmbeddedResource Include="마크\Marc_Plan_Sub_SelectList_Edit.resx">
<DependentUpon>Marc_Plan_Sub_SelectList_Edit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Plan_Sub_SelectList_Morge.resx">
<DependentUpon>Marc_Plan_Sub_SelectList_Morge.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Preview.resx">
<DependentUpon>Marc_Preview.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -1 +1 @@
7e389acb7eef955ad255f844c6635f1ef64cd635
b7eebfc1802ee64e77975fa6be9507e86387e8be

View File

@@ -130,3 +130,4 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\Interop.SHDocVw.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.DLS_Manage.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.Marc_FillBlank.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_Sub_SelectList_Morge.resources

View File

@@ -71,7 +71,7 @@ namespace WindowsFormsApp1.Delivery
string[] marc_data = { date, New_Name.Text, New_User.Text };
U_cmd = DB.More_Update("Obj_List_Marc", marc_col, marc_data, marc_search_col, marc_search_data);
DB.DB_Send_CMD_reVoid(U_cmd);
//DB.DB_Send_CMD_reVoid(U_cmd);
/////////////////////////////////////////

View File

@@ -28,22 +28,10 @@
/// </summary>
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();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -65,6 +53,19 @@
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.image = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
@@ -73,13 +74,13 @@
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
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;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
@@ -106,17 +107,17 @@
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;
this.dataGridView1.Location = new System.Drawing.Point(12, 35);
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView1.RowHeadersWidth = 20;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle6;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1608, 547);
this.dataGridView1.TabIndex = 0;
@@ -124,116 +125,6 @@
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(706, 7);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(516, 8);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(59, 8);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(213, 21);
this.tb_list_name.TabIndex = 4;
this.tb_list_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_list_name_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(457, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(815, 7);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1033, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(278, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(337, 8);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(93, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1166, 7);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(12, 589);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1608, 123);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(924, 7);
this.btn_yes24.Name = "btn_yes24";
this.btn_yes24.Size = new System.Drawing.Size(99, 23);
this.btn_yes24.TabIndex = 1;
this.btn_yes24.Text = "예스 양식 반출";
this.btn_yes24.UseVisualStyleBackColor = true;
this.btn_yes24.Click += new System.EventHandler(this.btn_yes24_Click);
//
// idx
//
this.idx.HeaderText = "idx";
@@ -350,11 +241,132 @@
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(706, 7);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(516, 8);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(59, 8);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(213, 21);
this.tb_list_name.TabIndex = 4;
this.tb_list_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_list_name_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(457, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(815, 6);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1033, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(278, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(337, 8);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(93, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1166, 7);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(12, 589);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1608, 123);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(924, 7);
this.btn_yes24.Name = "btn_yes24";
this.btn_yes24.Size = new System.Drawing.Size(99, 23);
this.btn_yes24.TabIndex = 1;
this.btn_yes24.Text = "예스 양식 반출";
this.btn_yes24.UseVisualStyleBackColor = true;
this.btn_yes24.Click += new System.EventHandler(this.btn_yes24_Click);
//
// Check_Marc
//
this.Check_Marc.AutoSize = true;
this.Check_Marc.Location = new System.Drawing.Point(1422, 10);
this.Check_Marc.Name = "Check_Marc";
this.Check_Marc.Size = new System.Drawing.Size(132, 16);
this.Check_Marc.TabIndex = 9;
this.Check_Marc.Text = "마크ISBN 동시 저장";
this.Check_Marc.UseVisualStyleBackColor = true;
//
// Check_ISBN
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1632, 724);
this.Controls.Add(this.Check_Marc);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.cb_api);
@@ -413,5 +425,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn image;
private System.Windows.Forms.DataGridViewTextBoxColumn api_data;
private System.Windows.Forms.CheckBox Check_Marc;
}
}

View File

@@ -238,6 +238,9 @@ namespace WindowsFormsApp1.Mac
// else if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.LightGray)
// gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
if (gridview.Rows[a].Cells["isbn"].Value == null)
gridview.Rows[a].Cells["isbn"].Value = "";
string isbn = gridview.Rows[a].Cells["isbn"].Value.ToString();
if (cb_filter.SelectedIndex == 3) {
if (!CheckData(isbn))
@@ -294,7 +297,12 @@ namespace WindowsFormsApp1.Mac
// continue;
// else if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.LightGray)
// gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
if (gridview.Rows[a].Cells["isbn"].Value == null)
gridview.Rows[a].Cells["isbn"].Value = "";
string isbn = gridview.Rows[a].Cells["isbn"].Value.ToString();
if (CheckData(isbn))
continue;
else
@@ -368,6 +376,10 @@ namespace WindowsFormsApp1.Mac
for(int a = 0; a < gridview.Rows.Count; a++)
{
progressBar1.PerformStep();
if (gridview.Rows[a].Cells["isbn"].Value == null)
gridview.Rows[a].Cells["isbn"].Value = "";
string isbn = gridview.Rows[a].Cells["isbn"].Value.ToString();
// if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.Yellow)
@@ -648,6 +660,8 @@ namespace WindowsFormsApp1.Mac
private void btn_Save_Click(object sender, EventArgs e)
{
string[] Edit_tbl = { "isbn", "price", "pubDate", "category", "image_url" };
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["isbn"].Value == null) continue;
@@ -658,11 +672,14 @@ namespace WindowsFormsApp1.Mac
else
Edit_tbl[0] = "isbn";
string[] Edit_Col = { dataGridView1.Rows[a].Cells["isbn"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(),
dataGridView1.Rows[a].Cells["pubDate"].Value.ToString(),
dataGridView1.Rows[a].Cells["category"].Value.ToString(),
dataGridView1.Rows[a].Cells["image"].Value.ToString() };
string[] Edit_Col = {
dataGridView1.Rows[a].Cells["isbn"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(),
dataGridView1.Rows[a].Cells["pubDate"].Value.ToString(),
dataGridView1.Rows[a].Cells["category"].Value.ToString(),
dataGridView1.Rows[a].Cells["image"].Value.ToString()
};
string[] Search_tbl = { "idx", "list_name", "compidx" };
string[] Search_col = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(),
list_name, compidx };
@@ -672,6 +689,12 @@ namespace WindowsFormsApp1.Mac
string U_cmd = db.More_Update("Obj_List_Book", Edit_tbl, Edit_Col, Search_tbl, Search_col, 1);
db.DB_Send_CMD_reVoid(U_cmd);
if (Check_Marc.Checked) {
string CMcmd = string.Format("UPDATE `Obj_List_Book` SET `isbn_marc` = \"{0}\" WHERE `idx` = \"{1}\"",
Edit_Col[0], Search_col[0]);
db.DB_Send_CMD_reVoid(CMcmd);
}
}
MessageBox.Show("저장되었습니다!");
save = true;

View File

@@ -28,37 +28,37 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_SearchList = new System.Windows.Forms.Button();
this.btn_Start = new System.Windows.Forms.Button();
this.btn_Stop = new System.Windows.Forms.Button();
this.SearchCount = new System.Windows.Forms.NumericUpDown();
this.btn_Close = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.tb_SearchTarget = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.btn_SearchList = new System.Windows.Forms.Button();
this.btn_Stop = new System.Windows.Forms.Button();
this.btn_Start = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.btn_ApplyFilter = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel();
this.chk_spChar = new System.Windows.Forms.CheckBox();
this.panel4 = new System.Windows.Forms.Panel();
this.chk_RemoveBrit = new System.Windows.Forms.CheckBox();
this.chk_spChar = new System.Windows.Forms.CheckBox();
this.panel5 = new System.Windows.Forms.Panel();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.SearchCount)).BeginInit();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel3.SuspendLayout();
this.panel6.SuspendLayout();
this.panel4.SuspendLayout();
this.panel5.SuspendLayout();
this.panel6.SuspendLayout();
this.SuspendLayout();
//
// panel1
@@ -73,6 +73,35 @@
this.panel1.Size = new System.Drawing.Size(635, 34);
this.panel1.TabIndex = 0;
//
// btn_SearchList
//
this.btn_SearchList.Location = new System.Drawing.Point(4, 4);
this.btn_SearchList.Name = "btn_SearchList";
this.btn_SearchList.Size = new System.Drawing.Size(356, 24);
this.btn_SearchList.TabIndex = 3;
this.btn_SearchList.Text = "목록 검색";
this.btn_SearchList.UseVisualStyleBackColor = true;
this.btn_SearchList.Click += new System.EventHandler(this.btn_SearchList_Click);
//
// btn_Start
//
this.btn_Start.Location = new System.Drawing.Point(473, 4);
this.btn_Start.Name = "btn_Start";
this.btn_Start.Size = new System.Drawing.Size(75, 24);
this.btn_Start.TabIndex = 2;
this.btn_Start.Text = "검색시작";
this.btn_Start.UseVisualStyleBackColor = true;
this.btn_Start.Click += new System.EventHandler(this.btn_Start_Click);
//
// btn_Stop
//
this.btn_Stop.Location = new System.Drawing.Point(554, 4);
this.btn_Stop.Name = "btn_Stop";
this.btn_Stop.Size = new System.Drawing.Size(75, 24);
this.btn_Stop.TabIndex = 2;
this.btn_Stop.Text = "검색중지";
this.btn_Stop.UseVisualStyleBackColor = true;
//
// SearchCount
//
this.SearchCount.Location = new System.Drawing.Point(429, 6);
@@ -136,46 +165,17 @@
this.panel2.Size = new System.Drawing.Size(635, 34);
this.panel2.TabIndex = 0;
//
// btn_SearchList
//
this.btn_SearchList.Location = new System.Drawing.Point(4, 4);
this.btn_SearchList.Name = "btn_SearchList";
this.btn_SearchList.Size = new System.Drawing.Size(356, 24);
this.btn_SearchList.TabIndex = 3;
this.btn_SearchList.Text = "목록 검색";
this.btn_SearchList.UseVisualStyleBackColor = true;
this.btn_SearchList.Click += new System.EventHandler(this.btn_SearchList_Click);
//
// btn_Stop
//
this.btn_Stop.Location = new System.Drawing.Point(554, 4);
this.btn_Stop.Name = "btn_Stop";
this.btn_Stop.Size = new System.Drawing.Size(75, 24);
this.btn_Stop.TabIndex = 2;
this.btn_Stop.Text = "검색중지";
this.btn_Stop.UseVisualStyleBackColor = true;
//
// btn_Start
//
this.btn_Start.Location = new System.Drawing.Point(473, 4);
this.btn_Start.Name = "btn_Start";
this.btn_Start.Size = new System.Drawing.Size(75, 24);
this.btn_Start.TabIndex = 2;
this.btn_Start.Text = "검색시작";
this.btn_Start.UseVisualStyleBackColor = true;
this.btn_Start.Click += new System.EventHandler(this.btn_Start_Click);
//
// dataGridView1
//
this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
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.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.book_name,
@@ -190,24 +190,6 @@
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 350;
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
this.book_comp.Width = 150;
//
// Count
//
this.Count.HeaderText = "검색 수";
this.Count.Name = "Count";
this.Count.Width = 70;
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -240,6 +222,15 @@
this.panel3.Size = new System.Drawing.Size(635, 732);
this.panel3.TabIndex = 3;
//
// panel6
//
this.panel6.Controls.Add(this.dataGridView1);
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel6.Location = new System.Drawing.Point(0, 102);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(635, 630);
this.panel6.TabIndex = 3;
//
// panel4
//
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -252,23 +243,15 @@
this.panel4.Size = new System.Drawing.Size(635, 34);
this.panel4.TabIndex = 2;
//
// panel5
// chk_RemoveBrit
//
this.panel5.Controls.Add(this.webBrowser1);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(635, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(717, 732);
this.panel5.TabIndex = 4;
//
// panel6
//
this.panel6.Controls.Add(this.dataGridView1);
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel6.Location = new System.Drawing.Point(0, 102);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(635, 630);
this.panel6.TabIndex = 3;
this.chk_RemoveBrit.AutoSize = true;
this.chk_RemoveBrit.Location = new System.Drawing.Point(131, 8);
this.chk_RemoveBrit.Name = "chk_RemoveBrit";
this.chk_RemoveBrit.Size = new System.Drawing.Size(128, 16);
this.chk_RemoveBrit.TabIndex = 0;
this.chk_RemoveBrit.Text = "괄호안의 문자 제거";
this.chk_RemoveBrit.UseVisualStyleBackColor = true;
//
// chk_spChar
//
@@ -280,15 +263,32 @@
this.chk_spChar.Text = "특수문자 제거";
this.chk_spChar.UseVisualStyleBackColor = true;
//
// chk_RemoveBrit
// panel5
//
this.chk_RemoveBrit.AutoSize = true;
this.chk_RemoveBrit.Location = new System.Drawing.Point(131, 8);
this.chk_RemoveBrit.Name = "chk_RemoveBrit";
this.chk_RemoveBrit.Size = new System.Drawing.Size(128, 16);
this.chk_RemoveBrit.TabIndex = 0;
this.chk_RemoveBrit.Text = "괄호안의 문자 제거";
this.chk_RemoveBrit.UseVisualStyleBackColor = true;
this.panel5.Controls.Add(this.webBrowser1);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(635, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(717, 732);
this.panel5.TabIndex = 4;
//
// book_name
//
this.book_name.HeaderText = "도서명(총서명)";
this.book_name.Name = "book_name";
this.book_name.Width = 350;
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
this.book_comp.Width = 150;
//
// Count
//
this.Count.HeaderText = "검색 수";
this.Count.Name = "Count";
this.Count.Width = 70;
//
// Check_copy
//
@@ -305,10 +305,10 @@
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel3.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -324,9 +324,6 @@
private System.Windows.Forms.Button btn_Stop;
private System.Windows.Forms.Button btn_Start;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn Count;
public System.Windows.Forms.TextBox tb_SearchTarget;
public System.Windows.Forms.DataGridView dataGridView1;
public System.Windows.Forms.Button btn_SearchList;
@@ -337,5 +334,8 @@
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.CheckBox chk_spChar;
private System.Windows.Forms.CheckBox chk_RemoveBrit;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn Count;
}
}

View File

@@ -68,8 +68,15 @@ namespace WindowsFormsApp1.Mac
{
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["book_name"].Value == null)
continue;
if (dataGridView1.Rows[a].Cells["book_name"].Value.ToString() == "")
continue;
dataGridView1.Rows[a].Cells["Count"].Value =
CopyCount(dataGridView1.Rows[a].Cells["book_name"].Value.ToString());
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
}
}

View File

@@ -28,7 +28,6 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(School_Lookup));
this.btn_Back = new System.Windows.Forms.Button();
this.tb_URL = new System.Windows.Forms.TextBox();
this.panel7 = new System.Windows.Forms.Panel();
@@ -40,15 +39,10 @@
this.lbl_ID = new System.Windows.Forms.Label();
this.lbl_Client = new System.Windows.Forms.Label();
this.tb_SearchClient = new System.Windows.Forms.TextBox();
this.btn_Reflesh008 = new System.Windows.Forms.Button();
this.rBtn_ISBN = new System.Windows.Forms.RadioButton();
this.rBtn_BookName = new System.Windows.Forms.RadioButton();
this.lbl_PW = new System.Windows.Forms.Label();
this.lbl_Area = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.btn_Connect = new System.Windows.Forms.Button();
this.panel5 = new System.Windows.Forms.Panel();
this.btn_Search = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.Check = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -60,7 +54,6 @@
this.panel7.SuspendLayout();
this.panel6.SuspendLayout();
this.panel4.SuspendLayout();
this.panel5.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel3.SuspendLayout();
@@ -175,41 +168,6 @@
this.tb_SearchClient.TabIndex = 1;
this.tb_SearchClient.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_SearchClient_KeyDown);
//
// btn_Reflesh008
//
this.btn_Reflesh008.BackColor = System.Drawing.SystemColors.WindowText;
this.btn_Reflesh008.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_Reflesh008.BackgroundImage")));
this.btn_Reflesh008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btn_Reflesh008.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Reflesh008.Location = new System.Drawing.Point(329, 0);
this.btn_Reflesh008.Name = "btn_Reflesh008";
this.btn_Reflesh008.Size = new System.Drawing.Size(29, 29);
this.btn_Reflesh008.TabIndex = 208;
this.btn_Reflesh008.UseVisualStyleBackColor = false;
this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click);
//
// rBtn_ISBN
//
this.rBtn_ISBN.AutoSize = true;
this.rBtn_ISBN.Checked = true;
this.rBtn_ISBN.Location = new System.Drawing.Point(185, 7);
this.rBtn_ISBN.Name = "rBtn_ISBN";
this.rBtn_ISBN.Size = new System.Drawing.Size(51, 16);
this.rBtn_ISBN.TabIndex = 4;
this.rBtn_ISBN.TabStop = true;
this.rBtn_ISBN.Text = "ISBN";
this.rBtn_ISBN.UseVisualStyleBackColor = true;
//
// rBtn_BookName
//
this.rBtn_BookName.AutoSize = true;
this.rBtn_BookName.Location = new System.Drawing.Point(98, 7);
this.rBtn_BookName.Name = "rBtn_BookName";
this.rBtn_BookName.Size = new System.Drawing.Size(59, 16);
this.rBtn_BookName.TabIndex = 4;
this.rBtn_BookName.Text = "도서명";
this.rBtn_BookName.UseVisualStyleBackColor = true;
//
// lbl_PW
//
this.lbl_PW.AutoSize = true;
@@ -228,15 +186,6 @@
this.lbl_Area.TabIndex = 3;
this.lbl_Area.Text = "Area";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색조건";
//
// btn_Connect
//
this.btn_Connect.Location = new System.Drawing.Point(278, 8);
@@ -250,32 +199,16 @@
// panel5
//
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel5.Controls.Add(this.btn_Reflesh008);
this.panel5.Controls.Add(this.rBtn_ISBN);
this.panel5.Controls.Add(this.rBtn_BookName);
this.panel5.Controls.Add(this.label2);
this.panel5.Controls.Add(this.btn_Search);
this.panel5.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel5.Location = new System.Drawing.Point(0, 37);
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 38);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(360, 31);
this.panel5.Size = new System.Drawing.Size(362, 38);
this.panel5.TabIndex = 4;
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(242, 4);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(75, 23);
this.btn_Search.TabIndex = 2;
this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true;
this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.btn_Connect);
this.panel2.Controls.Add(this.panel5);
this.panel2.Controls.Add(this.lbl_PW);
this.panel2.Controls.Add(this.lbl_Area);
this.panel2.Controls.Add(this.lbl_ID);
@@ -285,7 +218,7 @@
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(362, 70);
this.panel2.Size = new System.Drawing.Size(362, 38);
this.panel2.TabIndex = 3;
//
// label1
@@ -326,7 +259,7 @@
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 31;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(360, 642);
this.dataGridView1.Size = new System.Drawing.Size(301, 287);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
@@ -335,16 +268,16 @@
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 70);
this.panel3.Location = new System.Drawing.Point(34, 382);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(362, 644);
this.panel3.Size = new System.Drawing.Size(303, 289);
this.panel3.TabIndex = 4;
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.panel5);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
@@ -366,8 +299,6 @@
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
@@ -390,15 +321,10 @@
public System.Windows.Forms.Label lbl_ID;
public System.Windows.Forms.Label lbl_Client;
public System.Windows.Forms.TextBox tb_SearchClient;
private System.Windows.Forms.Button btn_Reflesh008;
private System.Windows.Forms.RadioButton rBtn_ISBN;
private System.Windows.Forms.RadioButton rBtn_BookName;
public System.Windows.Forms.Label lbl_PW;
public System.Windows.Forms.Label lbl_Area;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btn_Connect;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Button btn_Search;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DataGridViewTextBoxColumn Check;

View File

@@ -160,136 +160,6 @@ namespace WindowsFormsApp1.DLS
}
#endregion
private void btn_Search_Click(object sender, EventArgs e)
{
if (dataGridView1.Rows[0].Cells["ISBN"].Value == null && rBtn_ISBN.Checked)
{
MessageBox.Show("ISBN이 입력되지않았습니다!");
return;
}
if (dataGridView1.Rows[0].Cells["Book_name"].Value == null && rBtn_BookName.Checked)
{
MessageBox.Show("도서명이 입력되지않았습니다!");
return;
}
bool isISBN = rBtn_ISBN.Checked;
if (!SearchCopy(isISBN))
return;
MessageBox.Show("완료되었습니다.");
}
#region SearchClick_Sub
private bool SearchCopy(bool isISBN)
{
if (!webBrowser1.Url.AbsoluteUri.Contains("collectionFormMA"))
{
MessageBox.Show("자료관리 창이 아닙니다!");
return false;
}
int count = dataGridView1.Rows.Count;
for (int a = 0; a < count; a++)
{
string Check = "";
if (isISBN)
{
string Target = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
Check = SearchISBN(Target);
}
else
{
string Target = dataGridView1.Rows[a].Cells["Book_name"].Value.ToString();
Check = SearchName(Target);
}
dataGridView1.Rows[a].Cells["Check"].Value = Check;
}
return true;
}
/// <summary>
/// 도서명 필터로 DLS복본 검색
/// </summary>
/// <param name="Target">도서명</param>
/// <param name="row">행 번호</param>
private string SearchName(string Target)
{
HtmlElementCollection search = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement Search in search)
{
if (Search.Id == "bib1")
Search.SetAttribute("value", Target);
if (Search.GetAttribute("className") == "button_search")
Search.InvokeMember("click");
}
Delay(5000);
string InnerText = "";
HtmlElementCollection paging_nav = webBrowser1.Document.GetElementsByTagName("div");
foreach (HtmlElement div in paging_nav)
{
if (div.GetAttribute("className") == "paging_nav")
{
HtmlElementCollection span = div.GetElementsByTagName("span");
foreach (HtmlElement count in span)
{
InnerText = count.InnerText;
break;
}
}
}
return InnerText;
}
/// <summary>
/// ISBN 필터로 DLS복본 검색
/// </summary>
/// <param name="Target">ISBN</param>
/// <param name="row">행 번호</param>
private string SearchISBN(string Target)
{
HtmlElementCollection combo = webBrowser1.Document.GetElementsByTagName("select");
foreach (HtmlElement Search in combo)
{
if (Search.Id == "bibKind2")
Search.SetAttribute("selectedIndex", "2");
}
HtmlElementCollection search = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement Search in search)
{
if (Search.Id == "bib2")
Search.SetAttribute("value", Target);
if (Search.GetAttribute("className") == "button_search")
Search.InvokeMember("click");
}
Delay(5000);
string InnerText = "";
HtmlElementCollection paging_nav = webBrowser1.Document.GetElementsByTagName("div");
foreach (HtmlElement div in paging_nav)
{
if (div.GetAttribute("className") == "paging_nav")
{
HtmlElementCollection span = div.GetElementsByTagName("span");
foreach (HtmlElement count in span)
{
InnerText = count.InnerText;
break;
}
}
}
return InnerText;
}
#endregion
/// <summary>
/// DLS지역 코드 변환
/// </summary>
@@ -368,13 +238,5 @@ namespace WindowsFormsApp1.DLS
webBrowser1.Navigate(url);
}
}
private void btn_Reflesh008_Click(object sender, EventArgs e)
{
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
dataGridView1.Rows[a].Cells["Check"].Value = "";
}
}
}
}

View File

@@ -117,45 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="btn_Reflesh008.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAABGdBTUEAALGPC/xhBQAAAIFQTFRF////
AAAAlJSU4ODgU1NT6enp+Pj4w8PDxMTEkpKS/Pz81tbW5eXlRERE3NzcmZmZzMzMZGRkTU1Nb29vg4OD
urq6KioqW1tb8vLyf39/sbGxEhISPz8/i4uL0NDQZmZmIyMjoqKiNTU1tLS0GRkZp6end3d3Li4uOjo6
Dg4OJSUlLUB5vgAABwxJREFUeF7tnX97ojAMx6ceIqDi/DXndJ47vZt7/y/wFOMUSKG0SWE8+fxz9zxl
ZN8BaZq26ZMgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCELrWHnDsb8+7uNuvD+u/fHQW0GLOT34t276kb99
nn51siynu60f9eEqA7Zb+E+d9P1g9AaKcN42gR/C1dUIOl34X12E43gDMsrYxGP4IX26nZoVRtt/8Ovr
8bmtJvIssE6Fq/3n9feuxOao73wuAutTGD0nv7AJM80HmQisS6E/TaybMh3AfYq4CqxH4ULXuagp1wgC
61A4MPn88kzf4X44N4HuFQ5/gWV7dh7cE+FboGuF/S3YpSFWhQF3gY4VTqp1f+V8RnDnNA8C3Sr8C0Yp
wcLOR4EuFUYnsEnLMjd4SAl0qDAGi/SswQKQFuhMYWgewpTzF4wkZAS6Ujj8DfZ4+LzHqlmBjhROwBob
p1uomhPoRuEajJUzms3jtT+JxtHEP3bnM/3w7hrF5QU6UbgHW8V8BAsvl60I+8M/2w+4opjF+XJEoAuF
mNkMy3lhIB0uZhrf8RG3xK8wAEtKvrZ4YJJmMitO5ZzB3TW7wrIn+OLrJtJWa73XNQO3wpJvcFYtmzkY
wc9VgFnhHzCDMysY/iiYVNbIq/AdrKC8VE8OXlhUHJ+wKvTACMZJJ9WCEpb6rhScCsN8kv6bV7MU9pVe
lTwPp8IZ2MhzmMAlpmj0sTcYFard6LP9jNKktHe8wadwDBbyBHCFFStdp8qnUBlnGbuYDJo5ETaFr2Ag
y5tOiKaHnk/lUqjqCQ9DuIACrUELk8JQEUIe7H3MI8Uh0xUmhQpvTixQK7vFo1ARzLxRvqJntHpFHoU7
uHsGOieToNftsyhUuBkfmonQjGtYFOLTn8SmdAM3DoV47vAZWonQFciiEH2ExG5UWyCHQvwR2o4m0ugL
5FD4ArdO8QqNNFQQyKCwB3dOcbIZ8OaoIpBBIRryU40nEioJpFfYhxuneIFGEqoJpFeIzsKYZdVwKgqk
V4h1FTNoo6CqQHKFqJ+pnvhVUi2TeIFaITaeIXyElZ8gvUIsP0S30tpAILVCbGBI50hNBFIrPMJtHyEb
NBkJpFaIRGxLi4X2KcwEUiuEuz5CtRvAUCCxQmxwT5S6MBVIrBD5DP9BkyXGAokVIp/hHJrsMBdIrBCZ
qyAZVVSPZO6QKhzCTR+BJitsBNIqRBzNBppssHhFz5AqRBwNwVyhnUBahcjw/rLazA6rV/QMqULElVoP
nGwF0sw430AGFrYhWzjuWUKZp10dQNadETS1BGToRJm/aABId0gT0TQGJEcTQ1NLQCYsMlshfjoLkPUA
8aRo3SAKaWecagdJdxPP3NcNEpZSpvMbQPufYfu/w/b70vb3h+2Padofl7Z/bNH+8SHHGL9hcORpmgVL
rq1R8ORLmwRTzrtBcM1bNAiuuafmwDZ/2BgQV7OEppbAOI/fFEDVI+5e02D6Kwc00YFs+idbT1PGCqnw
k6rrQgLyITob52PbvOhDKt51bcVgiwYZ3h9sAa2bKrARWHuEeBdLAvP60gKQvpglTcS9RliJO8Pc67xV
YKVbdtBGC/tafRx0QyBPTMy/3wIFqzd5gjZq0D0z3H0ikm7nS9Zig0TifU850BenQ7yt+g7mton3rmVB
3xv6iO2Gi/2HaQZgIw1joOFiD+kjWMjN1VVccbIP+AH0s+DtodCHyJZYxAv3cj5CRffL1WWgHUWnQ1y+
IYubmgoJir8md2ZBURfjRP+HRQPuM+yJBcXKZXKH6inKRfHProeKuuvEEhXvSmcK7ZwoPg/aAi69/JTs
FSdZBQd1opTlsx2tj1DW+qLqNHy4Xw5X813qem00+wPUi/idzTuz1txb4aHaBYfTzuq6iW+2I42Jysdw
j9MyLMEoglXty1Dlxs64Xd+i6q4unMwdjl9wBMHB8fIWVa+YYFiDdqz+As84X7JLXkfYQxMW39Qwp05b
C7qndl4JtazeKds9qF/PO/QL388zR7jSMaXb677mOoFcNC+tAb2HS52jsQe0pK7+02Be0PHcqOkJXtAq
M9r5xM5GeOp7i0Cv8nOtC64rnW/RPSbnW7z763g+0y0WXPua+cJ+kYTa17R4BcXLCfjgSzdrEyrSbyQ0
ZDU533lPNTrRNJF6xGPD7ybtHiuOKc1wOhwsh/zsvI/GbR0jPv8w4J1aNmNYFj7r88I8+2LMwP6c1Quj
Ju9tJDhLdtT0jRy+fsCJMao5CtXC5kznn7Kw2tubvKyb+EdtpYo0z8W7sdRKBzSLcBzrfpIf8biJ3Z8O
fT8YFR/9c9gE2gmrptKP/O3zNJ+N+Zrutovop6u7s/KG48H6uI+78X6/9qOh14ChrSAIgiAIgiAIgiAI
giAIgiAIgiAIgiAIAilPT/8BzuZT5uV+S2QAAAAASUVORK5CYII=
</value>
</data>
<metadata name="Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@@ -28,33 +28,279 @@
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.panel1 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.dataGridView2 = new System.Windows.Forms.DataGridView();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.dataGridView3 = new System.Windows.Forms.DataGridView();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.dataGridView4 = new System.Windows.Forms.DataGridView();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.r_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel4.SuspendLayout();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView3)).BeginInit();
this.tabPage3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView4)).BeginInit();
this.SuspendLayout();
//
// label1
// dataGridView1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(276, 259);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(57, 12);
this.label1.TabIndex = 0;
this.label1.Text = "마크 검수";
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
this.num,
this.r_num,
this.count,
this.book_name,
this.author,
this.book_comp});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 21;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(462, 597);
this.dataGridView1.TabIndex = 0;
//
// panel1
//
this.panel1.Controls.Add(this.panel4);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(462, 734);
this.panel1.TabIndex = 1;
//
// panel4
//
this.panel4.Controls.Add(this.dataGridView1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(0, 137);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(462, 597);
this.panel4.TabIndex = 3;
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.richTextBox1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 40);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(462, 97);
this.panel3.TabIndex = 2;
//
// richTextBox1
//
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(460, 95);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.button1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(462, 40);
this.panel2.TabIndex = 1;
//
// button1
//
this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
this.button1.Location = new System.Drawing.Point(0, 0);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(460, 38);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Location = new System.Drawing.Point(468, 40);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(634, 682);
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.dataGridView2);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(626, 656);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "검 수";
this.tabPage1.UseVisualStyleBackColor = true;
//
// dataGridView2
//
this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView2.Location = new System.Drawing.Point(79, 74);
this.dataGridView2.Name = "dataGridView2";
this.dataGridView2.RowTemplate.Height = 23;
this.dataGridView2.Size = new System.Drawing.Size(240, 150);
this.dataGridView2.TabIndex = 0;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.dataGridView3);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(626, 656);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "입고 확인";
this.tabPage2.UseVisualStyleBackColor = true;
//
// dataGridView3
//
this.dataGridView3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView3.Location = new System.Drawing.Point(116, 246);
this.dataGridView3.Name = "dataGridView3";
this.dataGridView3.RowTemplate.Height = 23;
this.dataGridView3.Size = new System.Drawing.Size(240, 150);
this.dataGridView3.TabIndex = 0;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.dataGridView4);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(626, 656);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "데이터 저장";
this.tabPage3.UseVisualStyleBackColor = true;
//
// dataGridView4
//
this.dataGridView4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView4.Location = new System.Drawing.Point(112, 326);
this.dataGridView4.Name = "dataGridView4";
this.dataGridView4.RowTemplate.Height = 23;
this.dataGridView4.Size = new System.Drawing.Size(240, 150);
this.dataGridView4.TabIndex = 0;
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
//
// num
//
this.num.HeaderText = "연번";
this.num.Name = "num";
this.num.Width = 40;
//
// r_num
//
this.r_num.HeaderText = "등록번호";
this.r_num.Name = "r_num";
this.r_num.Width = 70;
//
// count
//
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Width = 40;
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
this.author.Width = 80;
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
this.book_comp.Width = 80;
//
// Mac_Chack_Up
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.label1);
this.ClientSize = new System.Drawing.Size(1314, 734);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.panel1);
this.Name = "Mac_Chack_Up";
this.Text = "마크 검수";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
this.tabPage2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView3)).EndInit();
this.tabPage3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView4)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.DataGridView dataGridView2;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.DataGridView dataGridView3;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.DataGridView dataGridView4;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
private System.Windows.Forms.DataGridViewTextBoxColumn r_num;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
}
}

View File

@@ -117,4 +117,25 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="r_num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -36,14 +36,12 @@
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.start_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.end_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.KDC = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.total = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.flatter = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.unflatter = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.work_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stock = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.unstock = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.state = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.check = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -51,10 +49,6 @@
this.label2 = new System.Windows.Forms.Label();
this.btn_Lookup = new System.Windows.Forms.Button();
this.btn_Excel = new System.Windows.Forms.Button();
this.btn_Merge = new System.Windows.Forms.Button();
this.btn_Progress = new System.Windows.Forms.Button();
this.btn_Completion = new System.Windows.Forms.Button();
this.btn_Delete = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.btn_Save = new System.Windows.Forms.Button();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
@@ -95,14 +89,12 @@
this.idx,
this.start_date,
this.end_date,
this.list_marc,
this.list_name,
this.KDC,
this.total,
this.flatter,
this.unflatter,
this.work_name,
this.count,
this.stock,
this.unstock,
this.state,
this.grade,
this.etc,
this.charge,
this.check});
@@ -118,7 +110,7 @@
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 40;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1156, 598);
this.dataGridView1.Size = new System.Drawing.Size(1094, 610);
this.dataGridView1.TabIndex = 48;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
@@ -131,49 +123,42 @@
//
// start_date
//
this.start_date.HeaderText = "록일";
this.start_date.HeaderText = "록일";
this.start_date.Name = "start_date";
//
// end_date
//
this.end_date.HeaderText = "마감일";
this.end_date.HeaderText = "완료일자";
this.end_date.Name = "end_date";
//
// list_marc
//
this.list_marc.HeaderText = "작업목록명";
this.list_marc.Name = "list_marc";
this.list_marc.Width = 170;
//
// list_name
//
this.list_name.HeaderText = "연동목록명";
this.list_name.HeaderText = "목록명";
this.list_name.Name = "list_name";
this.list_name.Visible = false;
this.list_name.Width = 170;
//
// KDC
// work_name
//
this.KDC.HeaderText = "분류";
this.KDC.Name = "KDC";
this.KDC.Width = 80;
this.work_name.HeaderText = "작업명";
this.work_name.Name = "work_name";
//
// total
// count
//
this.total.HeaderText = "전체";
this.total.Name = "total";
this.total.Width = 70;
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Width = 80;
//
// flatter
// stock
//
this.flatter.HeaderText = "편목";
this.flatter.Name = "flatter";
this.flatter.Width = 70;
this.stock.HeaderText = "입고";
this.stock.Name = "stock";
this.stock.Width = 70;
//
// unflatter
// unstock
//
this.unflatter.HeaderText = "미편목";
this.unflatter.Name = "unflatter";
this.unflatter.Width = 70;
this.unstock.HeaderText = "미입고";
this.unstock.Name = "unstock";
this.unstock.Width = 70;
//
// state
//
@@ -181,12 +166,6 @@
this.state.Name = "state";
this.state.Width = 70;
//
// grade
//
this.grade.HeaderText = "등급";
this.grade.Name = "grade";
this.grade.Width = 60;
//
// etc
//
this.etc.HeaderText = "비고";
@@ -197,6 +176,7 @@
//
this.charge.HeaderText = "담당자";
this.charge.Name = "charge";
this.charge.Width = 70;
//
// check
//
@@ -224,7 +204,7 @@
//
// btn_Lookup
//
this.btn_Lookup.Location = new System.Drawing.Point(489, 4);
this.btn_Lookup.Location = new System.Drawing.Point(452, 4);
this.btn_Lookup.Name = "btn_Lookup";
this.btn_Lookup.Size = new System.Drawing.Size(75, 32);
this.btn_Lookup.TabIndex = 50;
@@ -234,7 +214,7 @@
//
// btn_Excel
//
this.btn_Excel.Location = new System.Drawing.Point(651, 4);
this.btn_Excel.Location = new System.Drawing.Point(950, 4);
this.btn_Excel.Name = "btn_Excel";
this.btn_Excel.Size = new System.Drawing.Size(75, 32);
this.btn_Excel.TabIndex = 50;
@@ -242,49 +222,9 @@
this.btn_Excel.UseVisualStyleBackColor = true;
this.btn_Excel.Click += new System.EventHandler(this.btn_Excel_Click);
//
// btn_Merge
//
this.btn_Merge.Location = new System.Drawing.Point(732, 4);
this.btn_Merge.Name = "btn_Merge";
this.btn_Merge.Size = new System.Drawing.Size(75, 32);
this.btn_Merge.TabIndex = 50;
this.btn_Merge.Text = "목록병합";
this.btn_Merge.UseVisualStyleBackColor = true;
this.btn_Merge.Click += new System.EventHandler(this.btn_Merge_Click);
//
// btn_Progress
//
this.btn_Progress.Location = new System.Drawing.Point(813, 4);
this.btn_Progress.Name = "btn_Progress";
this.btn_Progress.Size = new System.Drawing.Size(75, 32);
this.btn_Progress.TabIndex = 50;
this.btn_Progress.Text = "목록진행";
this.btn_Progress.UseVisualStyleBackColor = true;
this.btn_Progress.Click += new System.EventHandler(this.btn_Progress_Click);
//
// btn_Completion
//
this.btn_Completion.Location = new System.Drawing.Point(894, 4);
this.btn_Completion.Name = "btn_Completion";
this.btn_Completion.Size = new System.Drawing.Size(75, 32);
this.btn_Completion.TabIndex = 50;
this.btn_Completion.Text = "목록완료";
this.btn_Completion.UseVisualStyleBackColor = true;
this.btn_Completion.Click += new System.EventHandler(this.btn_Completion_Click);
//
// btn_Delete
//
this.btn_Delete.Location = new System.Drawing.Point(975, 4);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(75, 32);
this.btn_Delete.TabIndex = 50;
this.btn_Delete.Text = "목록삭제";
this.btn_Delete.UseVisualStyleBackColor = true;
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1056, 4);
this.btn_Close.Location = new System.Drawing.Point(1031, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 32);
this.btn_Close.TabIndex = 50;
@@ -294,7 +234,7 @@
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(570, 4);
this.btn_Save.Location = new System.Drawing.Point(869, 4);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(75, 32);
this.btn_Save.TabIndex = 50;
@@ -306,13 +246,9 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1183, 651);
this.ClientSize = new System.Drawing.Size(1122, 661);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Delete);
this.Controls.Add(this.btn_Progress);
this.Controls.Add(this.btn_Excel);
this.Controls.Add(this.btn_Completion);
this.Controls.Add(this.btn_Merge);
this.Controls.Add(this.btn_Save);
this.Controls.Add(this.btn_Lookup);
this.Controls.Add(this.cb_state);
@@ -337,27 +273,21 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btn_Lookup;
private System.Windows.Forms.Button btn_Excel;
private System.Windows.Forms.Button btn_Merge;
private System.Windows.Forms.Button btn_Progress;
private System.Windows.Forms.Button btn_Completion;
private System.Windows.Forms.Button btn_Delete;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Button btn_Save;
public System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn start_date;
private System.Windows.Forms.DataGridViewTextBoxColumn end_date;
private System.Windows.Forms.DataGridViewTextBoxColumn list_marc;
private System.Windows.Forms.DataGridViewTextBoxColumn list_name;
private System.Windows.Forms.DataGridViewTextBoxColumn KDC;
private System.Windows.Forms.DataGridViewTextBoxColumn total;
private System.Windows.Forms.DataGridViewTextBoxColumn flatter;
private System.Windows.Forms.DataGridViewTextBoxColumn unflatter;
private System.Windows.Forms.DataGridViewTextBoxColumn work_name;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
private System.Windows.Forms.DataGridViewTextBoxColumn stock;
private System.Windows.Forms.DataGridViewTextBoxColumn unstock;
private System.Windows.Forms.DataGridViewTextBoxColumn state;
private System.Windows.Forms.DataGridViewTextBoxColumn grade;
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
private System.Windows.Forms.DataGridViewTextBoxColumn check;
public System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
}
}

View File

@@ -33,12 +33,11 @@ namespace WindowsFormsApp1.Mac
cb_state.SelectedIndex = 0;
// 마감일 등급 비고 제외한 나머지 수정불가.
for(int a= 0; a < dataGridView1.Columns.Count; a++)
for (int a = 0; a < dataGridView1.Columns.Count; a++)
{
dataGridView1.Columns[a].ReadOnly = true;
}
dataGridView1.Columns["end_date"].ReadOnly = false;
dataGridView1.Columns["grade"].ReadOnly = false;
dataGridView1.Columns["etc"].ReadOnly = false;
dataGridView1.Columns["charge"].ReadOnly = false;
}
@@ -50,17 +49,24 @@ namespace WindowsFormsApp1.Mac
}
private void btn_Lookup_Click(object sender, EventArgs e)
{
string table = "Obj_List_Marc";
/* 목록일자 / 완료일자 / 마크목록명 / Obj_List목록명 / KDC분류
* 전체 / 편목 / 미편목 / 상태 / 등급
* 비고 / 마크담당자 */
string Area = "`idx`, `date`, `date_res`, `list_name`, `connect_data`, " +
"`KDC`, `total`, `flatter`, `unflatter`, `state`, " +
"`grade`, `etc`, `m_charge`";
string table = "Obj_List";
/* idx / 목록일자 / 완료일자 / 목록명 / 작업명
* 전체수량 / 입고 / 미입고 / 상태 / 비고
* 마크담당자 */
string Area = "`idx`, `date`, `date_res`, `list_name`, `work_name`, " +
"`vol`, `stock`, `unstock`, `state`, `m_etc`, " +
"`m_charge`";
string search = tb_Search.Text;
string state = cb_state.Text;
string cmd = db.DB_Contains(table, compidx, "list_name", search, Area, "state", state);
string cmd = string.Format(
"SELECT {0} " +
"FROM `{1}` " +
"WHERE `comp_num` = {2} " +
"AND `list_name` LIKE \"%{3}%\" " +
"AND `state` = \"{4}\" " +
"AND `chk_marc` > 0;",
Area, table, compidx, search, state);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] data = db_res.Split('|');
@@ -72,13 +78,14 @@ namespace WindowsFormsApp1.Mac
/// <param name="data"></param>
private void input_Grid(string[] data)
{
/* 등록일 / 마감일 / 작업목록명 / 연동목록명(H) / 분류
* 전체 / 편목 / 미편목 / 상태 / 등급
* 비고 / 담당자 / V */
/* idx / 목록일자 / 완료일자 / 목록명 / 작업명
* 전체수량 / 입고 / 미입고 / 상태 / 비고
* 마크담당자 */
string[] grid = { "", "", "", "", "",
"", "", "", "", "",
"", "", "", "" };
int area_count = 13;
"", "", "" };
int area_count = 11;
dataGridView1.Rows.Clear();
for (int a = 0; a < data.Length; a++)
{
@@ -92,8 +99,7 @@ namespace WindowsFormsApp1.Mac
if (a % area_count == 7) { grid[7] = data[a]; }
if (a % area_count == 8) { grid[8] = data[a]; }
if (a % area_count == 9) { grid[9] = data[a]; }
if (a % area_count == 10) { grid[10] = data[a]; }
if (a % area_count == 11) { grid[11] = data[a];
if (a % area_count == 10) { grid[10] = data[a];
dataGridView1.Rows.Add(grid);
}
}
@@ -107,22 +113,22 @@ namespace WindowsFormsApp1.Mac
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
string[] edit_col = { "date", "date_res", "list_name", "KDC", "total",
"flatter", "unflatter", "state", "grade", "etc",
"m_charge" };
string[] edit_tbl = { dataGridView1.Rows[a].Cells["start_date"].Value.ToString(),
dataGridView1.Rows[a].Cells["end_date"].Value.ToString(),
dataGridView1.Rows[a].Cells["list_marc"].Value.ToString(),
dataGridView1.Rows[a].Cells["KDC"].Value.ToString(),
dataGridView1.Rows[a].Cells["total"].Value.ToString(),
dataGridView1.Rows[a].Cells["flatter"].Value.ToString(),
dataGridView1.Rows[a].Cells["unflatter"].Value.ToString(),
dataGridView1.Rows[a].Cells["state"].Value.ToString(),
dataGridView1.Rows[a].Cells["grade"].Value.ToString(),
dataGridView1.Rows[a].Cells["etc"].Value.ToString(),
dataGridView1.Rows[a].Cells["charge"].Value.ToString() };
string[] edit_col = {
"date", "date_res", "list_name", "work_name", "vol",
"stock", "unstock", "state", "m_etc", "m_charge"
};
string[] edit_tbl = {
dataGridView1.Rows[a].Cells["start_date"].Value.ToString(),
dataGridView1.Rows[a].Cells["end_date"].Value.ToString(),
dataGridView1.Rows[a].Cells["list_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["work_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["count"].Value.ToString(),
dataGridView1.Rows[a].Cells["stock"].Value.ToString(),
dataGridView1.Rows[a].Cells["unstock"].Value.ToString(),
dataGridView1.Rows[a].Cells["state"].Value.ToString(),
dataGridView1.Rows[a].Cells["etc"].Value.ToString(),
dataGridView1.Rows[a].Cells["charge"].Value.ToString()
};
string[] sear_col = { "idx", "compidx" };
string[] sear_tbl = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(), compidx };
@@ -135,7 +141,9 @@ namespace WindowsFormsApp1.Mac
private void btn_Excel_Click(object sender, EventArgs e)
{
Excel_text et = new Excel_text();
string[] Excel_title = { "NO", "등록일", "마감일", "작업처", "분류", "전체", "편목", "미편목", "상태", "등급", "비고", "담당자" };
string[] Excel_title = {
"NO", "목록일자", "완료일자", "목록명", "마크담당자",
"작업명", "수량", "입고", "미입고", "상태", "비고" };
int rowCount = dataGridView1.RowCount;
string[,] inputExcel = new string[rowCount, 11];
for (int a = 0; a < rowCount; a++)
@@ -144,14 +152,14 @@ namespace WindowsFormsApp1.Mac
inputExcel[a, 0] = row_idx.ToString();
inputExcel[a, 1] = dataGridView1.Rows[a].Cells["start_date"].Value.ToString();
inputExcel[a, 2] = dataGridView1.Rows[a].Cells["end_date"].Value.ToString();
inputExcel[a, 3] = dataGridView1.Rows[a].Cells["list_marc"].Value.ToString();
inputExcel[a, 4] = dataGridView1.Rows[a].Cells["KDC"].Value.ToString();
inputExcel[a, 5] = dataGridView1.Rows[a].Cells["total"].Value.ToString();
inputExcel[a, 6] = dataGridView1.Rows[a].Cells["flatter"].Value.ToString();
inputExcel[a, 7] = dataGridView1.Rows[a].Cells["unflatter"].Value.ToString();
inputExcel[a, 8] = dataGridView1.Rows[a].Cells["state"].Value.ToString();
inputExcel[a, 9] = dataGridView1.Rows[a].Cells["grade"].Value.ToString();
inputExcel[a, 10] = dataGridView1.Rows[a].Cells["etc"].Value.ToString();
inputExcel[a, 3] = dataGridView1.Rows[a].Cells["list_name"].Value.ToString();
inputExcel[a, 4] = dataGridView1.Rows[a].Cells["charge"].Value.ToString();
inputExcel[a, 5] = dataGridView1.Rows[a].Cells["work_name"].Value.ToString();
inputExcel[a, 6] = dataGridView1.Rows[a].Cells["count"].Value.ToString();
inputExcel[a, 7] = dataGridView1.Rows[a].Cells["stock"].Value.ToString();
inputExcel[a, 8] = dataGridView1.Rows[a].Cells["unstock"].Value.ToString();
inputExcel[a, 9] = dataGridView1.Rows[a].Cells["state"].Value.ToString();
inputExcel[a, 10] =dataGridView1.Rows[a].Cells["etc"].Value.ToString();
}
et.Mk_Excel(Excel_title, inputExcel);
}
@@ -242,8 +250,8 @@ namespace WindowsFormsApp1.Mac
marc.MdiParent = main;
marc.WindowState = FormWindowState.Maximized;
marc.Show();
marc.input_list(dataGridView1.Rows[idx_row].Cells[1].Value.ToString(),
dataGridView1.Rows[idx_row].Cells[4].Value.ToString());
marc.input_list(dataGridView1.Rows[idx_row].Cells["start_date"].Value.ToString(),
dataGridView1.Rows[idx_row].Cells["list_name"].Value.ToString());
}
if (((DataGridView)sender).Columns[idx_col].Name == "check")
{

View File

@@ -126,30 +126,24 @@
<metadata name="end_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="list_marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="list_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="KDC.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="work_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="total.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="flatter.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="stock.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="unflatter.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="unstock.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="state.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="grade.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="etc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@@ -183,9 +183,34 @@ namespace ExcelTest
text008.Text = db_data[3];
List_Book.Rows[a].Cells["user"].Value = db_data[4];
List_Book.Rows[a].Cells["SaveDate"].Value = db_data[5];
SaveDateCheck(db_data[5], a);
}
}
}
/// <summary>
/// 마지막 저장시각 14일이전일 경우 배경 색 변경
/// </summary>
/// <param name="Date">마지막 저장시각</param>
/// <param name="row">해당 행</param>
private void SaveDateCheck(string Date, int row)
{
DateTime SaveDate = DateTime.ParseExact(Date, "yyyy-MM-dd HH:mm:ss",
System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None);
DateTime TargetDate = DateTime.Today.AddDays(-14);
int result = DateTime.Compare(SaveDate, TargetDate);
if (result >= 0) // SaveDate가 같거나 큼
List_Book.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
else // TargetDate가 큼
List_Book.Rows[row].DefaultCellStyle.BackColor = Color.White;
}
// TODO: Alt+x 입력 시 "▼78"이 출력됨. 아스키코드의 문제로 보여지나 정확한 원인은 확인불가. + 색상이 파란색으로 고정됨.
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{
@@ -417,7 +442,44 @@ namespace ExcelTest
break;
}
}
if (e.KeyCode == Keys.F9)
SaveGrade(Keys.F9);
else if (e.KeyCode == Keys.F10)
SaveGrade(Keys.F10);
else if (e.KeyCode == Keys.F11)
SaveGrade(Keys.F11);
else if (e.KeyCode == Keys.F12)
SaveGrade(Keys.F12);
}
/// <summary>
/// F9~F12로 등급별 세이브 저장
/// </summary>
/// <param name="key">F9~F12</param>
private void SaveGrade(Keys key)
{
switch (key)
{
case Keys.F9:
cb_grade.SelectedItem = "A";
Btn_Save_Click(null, null);
break;
case Keys.F10:
cb_grade.SelectedItem = "B";
Btn_Save_Click(null, null);
break;
case Keys.F11:
cb_grade.SelectedItem = "C";
Btn_Save_Click(null, null);
break;
case Keys.F12:
cb_grade.SelectedItem = "D";
Btn_Save_Click(null, null);
break;
}
}
private void etc_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F8)
@@ -670,7 +732,6 @@ namespace ExcelTest
}
#endregion
private void List_Book_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex == -1) { return; }
@@ -711,8 +772,8 @@ namespace ExcelTest
}
void ReadRemark(int row)
{
string[] sear_tbl = { "ISBN" };
string[] sear_col = { List_Book.Rows[row].Cells["ISBN13"].Value.ToString() };
string[] sear_tbl = { "idx" };
string[] sear_col = { List_Book.Rows[row].Cells["marc_idx"].Value.ToString() };
string cmd = db.More_DB_Search("Marc", sear_tbl, sear_col, "`비고1`, `비고2`");
string res = db.DB_Send_CMD_Search(cmd);
@@ -1180,7 +1241,6 @@ namespace ExcelTest
private void btn_Search_Click(object sender, EventArgs e)
{
if (List_Book.RowCount < 0) return;
Search_ReSet();
@@ -1190,10 +1250,10 @@ namespace ExcelTest
if (isSort) {
if (combo == 0) {
List_Book.Sort(List_Book.Columns["grade"], System.ComponentModel.ListSortDirection.Ascending);
List_Book.Sort(grade, System.ComponentModel.ListSortDirection.Ascending);
}
else {
List_Book.Sort(List_Book.Columns["ISBN13"], System.ComponentModel.ListSortDirection.Ascending);
List_Book.Sort(ISBN13, System.ComponentModel.ListSortDirection.Ascending);
}
}
else {
@@ -1221,6 +1281,14 @@ namespace ExcelTest
{
int count = List_Book.Rows.Count;
DataGridViewBand band;
if (text == "0") {
for (int a = 0; a < count; a++)
{
band = List_Book.Rows[a];
band.Visible = true;
}
return;
}
for (int a = 0; a < count; a++)
{
if (List_Book.Rows[a].Cells[target].Value.ToString() != text) {
@@ -1238,7 +1306,7 @@ namespace ExcelTest
ComboBox cb = sender as ComboBox;
if (cb.SelectedIndex == 0) {
comboBox9.Enabled = true;
string[] grade = { "A", "B", "C", "D" };
string[] grade = { "전체", "A", "B", "C", "D" };
comboBox9.Items.AddRange(grade);
comboBox9.SelectedIndex = 0;
}
@@ -1246,7 +1314,7 @@ namespace ExcelTest
comboBox9.Enabled = false;
}
private void rb_Sort_CheckedChanged(object sender, EventArgs e)
private void Radio_Sort_CheckedChanged(object sender, EventArgs e)
{
RadioButton rb = sender as RadioButton;
string text = rb.Text;
@@ -1257,6 +1325,7 @@ namespace ExcelTest
comboBox9.Enabled = true;
}
private void btn_mk_marcList_Click(object sender, EventArgs e)
{
// 회색배경과 V를 체크한 후
@@ -2028,31 +2097,30 @@ namespace ExcelTest
string[] aryText = text.Split('\n');
int count = 0;
foreach (string Data in aryText)
{
string[] grid = { "", "", "" };
string[] grid = { count.ToString(), "", "", "" };
string[] dataAry = Data.Split('\t');
if (dataAry.Length < 2) continue;
int AryCount = 0;
int AryCount = 1;
foreach (string tt in dataAry)
{
if (grid.Length <= AryCount) break;
grid[AryCount] = tt;
AryCount++;
}
dataGridView1.Rows.Add(grid);
count++;
}
richTextBox1.Text = "";
dataGridView1.Sort(dataGridView1.Columns["tag"], System.ComponentModel.ListSortDirection.Ascending);
// dataGridView1.Sort(dataGridView1.Columns["tag"], System.ComponentModel.ListSortDirection.Ascending);
Sort_text();
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
@@ -2064,6 +2132,12 @@ namespace ExcelTest
}
}
private void Sort_text()
{
dataGridView1.Sort(new DGVComparer());
dataGridView1.Columns[0].HeaderCell.SortGlyphDirection = SortOrder.Ascending;
dataGridView1.Columns[1].HeaderCell.SortGlyphDirection = SortOrder.Ascending;
}
private List<string> MakeMarcLine()
{
@@ -3062,7 +3136,7 @@ namespace ExcelTest
}
try
{
if (invertCheck.Checked == true)
if (invertCheck.Checked)
{
for (int a = 0; a < invert.Length; a++)
{
@@ -3080,7 +3154,7 @@ namespace ExcelTest
}
}
}
else if (invertCheck.Checked == false)
else if (!invertCheck.Checked)
{
for (int a = invert.Length - 1; a >= 0; a--)
{
@@ -3107,7 +3181,7 @@ namespace ExcelTest
basicHeadBox.Text = basicHeadBox.Text.Substring(0, basicHeadBox.Text.Length - 1);
}
}
catch (Exception ex)
catch
{
MessageBox.Show("데이터가 올바르지않습니다.\n245d를 확인해주세요.");
}
@@ -3125,11 +3199,28 @@ namespace ExcelTest
string result = strValue + ",";
string[] Role = { "글", "그림", "지음", "글·그림", "편", "엮음", "저", "씀" };
string[] gl = { "글.그림", "글그림", "그림글", "그림.글" };
for (int a = 0; a < gl.Length; a++) { result = result.Replace(gl[a], "글·그림"); }
for (int a = 0; a < Role.Length; a++) { result = result.Replace(" " + Role[a] + ",", ""); }
return result;
}
#endregion
private void GridView_KeyDown(object sender, KeyEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Excel_to_DataGridView(sender, e);
}
private void btn_FilterReturn_Click(object sender, EventArgs e)
{
rb_Filter.Checked = false;
rb_Sort.Checked = false;
comboBox8.SelectedIndex = 0;
comboBox9.SelectedIndex = 0;
List_Book.Sort(list_idx, System.ComponentModel.ListSortDirection.Ascending);
}
}
}

View File

@@ -97,6 +97,7 @@
this.comboBox8 = new System.Windows.Forms.ComboBox();
this.comboBox9 = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_FilterReturn = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.btn_mk_marcList = new System.Windows.Forms.Button();
this.btn_Search = new System.Windows.Forms.Button();
@@ -244,6 +245,7 @@
this.text507a = new System.Windows.Forms.TextBox();
this.text250a = new System.Windows.Forms.TextBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.turnNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tag = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.jisi = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MarcValue = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -695,12 +697,14 @@
this.user.HeaderText = "작업자";
this.user.Name = "user";
this.user.ReadOnly = true;
this.user.Visible = false;
//
// SaveDate
//
this.SaveDate.HeaderText = "저장시각";
this.SaveDate.Name = "SaveDate";
this.SaveDate.ReadOnly = true;
this.SaveDate.Visible = false;
//
// btn_Save
//
@@ -829,32 +833,32 @@
// rb_Sort
//
this.rb_Sort.AutoSize = true;
this.rb_Sort.Location = new System.Drawing.Point(10, 8);
this.rb_Sort.Location = new System.Drawing.Point(76, 8);
this.rb_Sort.Name = "rb_Sort";
this.rb_Sort.Size = new System.Drawing.Size(47, 16);
this.rb_Sort.TabIndex = 224;
this.rb_Sort.TabStop = true;
this.rb_Sort.Text = "정렬";
this.rb_Sort.UseVisualStyleBackColor = true;
this.rb_Sort.CheckedChanged += new System.EventHandler(this.rb_Sort_CheckedChanged);
this.rb_Sort.CheckedChanged += new System.EventHandler(this.Radio_Sort_CheckedChanged);
//
// rb_Filter
//
this.rb_Filter.AutoSize = true;
this.rb_Filter.Location = new System.Drawing.Point(57, 8);
this.rb_Filter.Location = new System.Drawing.Point(123, 8);
this.rb_Filter.Name = "rb_Filter";
this.rb_Filter.Size = new System.Drawing.Size(47, 16);
this.rb_Filter.TabIndex = 224;
this.rb_Filter.TabStop = true;
this.rb_Filter.Text = "필터";
this.rb_Filter.UseVisualStyleBackColor = true;
this.rb_Filter.CheckedChanged += new System.EventHandler(this.rb_Sort_CheckedChanged);
this.rb_Filter.CheckedChanged += new System.EventHandler(this.Radio_Sort_CheckedChanged);
//
// comboBox8
//
this.comboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox8.FormattingEnabled = true;
this.comboBox8.Location = new System.Drawing.Point(115, 6);
this.comboBox8.Location = new System.Drawing.Point(176, 6);
this.comboBox8.Name = "comboBox8";
this.comboBox8.Size = new System.Drawing.Size(79, 20);
this.comboBox8.TabIndex = 225;
@@ -864,15 +868,16 @@
//
this.comboBox9.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox9.FormattingEnabled = true;
this.comboBox9.Location = new System.Drawing.Point(200, 6);
this.comboBox9.Location = new System.Drawing.Point(257, 6);
this.comboBox9.Name = "comboBox9";
this.comboBox9.Size = new System.Drawing.Size(79, 20);
this.comboBox9.Size = new System.Drawing.Size(52, 20);
this.comboBox9.TabIndex = 225;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Silver;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.btn_FilterReturn);
this.panel1.Controls.Add(this.panel2);
this.panel1.Controls.Add(this.btn_Search);
this.panel1.Controls.Add(this.rb_Sort);
@@ -881,14 +886,24 @@
this.panel1.Controls.Add(this.comboBox8);
this.panel1.Location = new System.Drawing.Point(12, 37);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(476, 35);
this.panel1.Size = new System.Drawing.Size(502, 35);
this.panel1.TabIndex = 226;
//
// btn_FilterReturn
//
this.btn_FilterReturn.Location = new System.Drawing.Point(8, 5);
this.btn_FilterReturn.Name = "btn_FilterReturn";
this.btn_FilterReturn.Size = new System.Drawing.Size(63, 23);
this.btn_FilterReturn.TabIndex = 229;
this.btn_FilterReturn.Text = "원래대로";
this.btn_FilterReturn.UseVisualStyleBackColor = true;
this.btn_FilterReturn.Click += new System.EventHandler(this.btn_FilterReturn_Click);
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.btn_mk_marcList);
this.panel2.Location = new System.Drawing.Point(377, -1);
this.panel2.Location = new System.Drawing.Point(404, -1);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(98, 35);
this.panel2.TabIndex = 228;
@@ -905,7 +920,7 @@
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(293, 5);
this.btn_Search.Location = new System.Drawing.Point(319, 5);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(79, 23);
this.btn_Search.TabIndex = 227;
@@ -919,7 +934,7 @@
this.checkBox3.BackColor = System.Drawing.Color.White;
this.checkBox3.Checked = true;
this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox3.Location = new System.Drawing.Point(475, 83);
this.checkBox3.Location = new System.Drawing.Point(474, 83);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(15, 14);
this.checkBox3.TabIndex = 227;
@@ -1065,6 +1080,7 @@
this.GridView020.RowTemplate.Height = 23;
this.GridView020.Size = new System.Drawing.Size(408, 80);
this.GridView020.TabIndex = 244;
this.GridView020.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GridView_KeyDown);
//
// CheckSet
//
@@ -1132,6 +1148,7 @@
this.GridView505.RowTemplate.Height = 23;
this.GridView505.Size = new System.Drawing.Size(401, 71);
this.GridView505.TabIndex = 246;
this.GridView505.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GridView_KeyDown);
//
// text505n
//
@@ -1283,6 +1300,7 @@
this.GridView246.RowTemplate.Height = 23;
this.GridView246.Size = new System.Drawing.Size(493, 138);
this.GridView246.TabIndex = 250;
this.GridView246.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GridView_KeyDown);
//
// Text246Jisi
//
@@ -1451,6 +1469,7 @@
this.GridView440.RowTemplate.Height = 23;
this.GridView440.Size = new System.Drawing.Size(597, 71);
this.GridView440.TabIndex = 245;
this.GridView440.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GridView_KeyDown);
//
// text440a
//
@@ -1564,6 +1583,7 @@
this.GridView490.RowTemplate.Height = 23;
this.GridView490.Size = new System.Drawing.Size(321, 71);
this.GridView490.TabIndex = 247;
this.GridView490.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GridView_KeyDown);
//
// text490a
//
@@ -2421,6 +2441,7 @@
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.turnNum,
this.tag,
this.jisi,
this.MarcValue});
@@ -2428,9 +2449,15 @@
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(287, 79);
this.dataGridView1.Size = new System.Drawing.Size(287, 168);
this.dataGridView1.TabIndex = 317;
//
// turnNum
//
this.turnNum.HeaderText = "순서";
this.turnNum.Name = "turnNum";
this.turnNum.Width = 60;
//
// tag
//
this.tag.HeaderText = "tag";
@@ -2485,7 +2512,7 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Gray;
this.ClientSize = new System.Drawing.Size(1759, 929);
this.ClientSize = new System.Drawing.Size(1759, 914);
this.Controls.Add(this.lbl_BookList);
this.Controls.Add(this.lbl_ISBN);
this.Controls.Add(this.lbl_SaveData);
@@ -2769,6 +2796,9 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Text020g;
private System.Windows.Forms.DataGridViewTextBoxColumn Text020c;
private System.Windows.Forms.Label lbl_SaveData;
private System.Windows.Forms.Button Btn_interlock;
private System.Windows.Forms.Label lbl_ISBN;
private System.Windows.Forms.Label lbl_BookList;
private System.Windows.Forms.DataGridViewTextBoxColumn list_idx;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN13;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
@@ -2784,9 +2814,8 @@
private System.Windows.Forms.DataGridViewTextBoxColumn colCheck;
private System.Windows.Forms.DataGridViewTextBoxColumn user;
private System.Windows.Forms.DataGridViewTextBoxColumn SaveDate;
private System.Windows.Forms.Button Btn_interlock;
private System.Windows.Forms.Label lbl_ISBN;
private System.Windows.Forms.Label lbl_BookList;
private System.Windows.Forms.Button btn_FilterReturn;
private System.Windows.Forms.DataGridViewTextBoxColumn turnNum;
private System.Windows.Forms.DataGridViewTextBoxColumn tag;
private System.Windows.Forms.DataGridViewTextBoxColumn jisi;
private System.Windows.Forms.DataGridViewTextBoxColumn MarcValue;

View File

@@ -267,6 +267,9 @@
<metadata name="text490v.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="turnNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tag.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@@ -30,6 +30,7 @@ namespace UniMarc.마크
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_SaveData = new System.Windows.Forms.Label();
this.lbl_ClassSymbol = new System.Windows.Forms.Label();
this.lbl_AuthorSymbol = new System.Windows.Forms.Label();
this.btn_Close = new System.Windows.Forms.Button();
@@ -85,7 +86,9 @@ namespace UniMarc.마크
this.label9 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.lbl_SaveData = new System.Windows.Forms.Label();
this.etcBox1 = new System.Windows.Forms.RichTextBox();
this.etcBox2 = new System.Windows.Forms.RichTextBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel1.SuspendLayout();
this.panel5.SuspendLayout();
this.panel6.SuspendLayout();
@@ -93,6 +96,7 @@ namespace UniMarc.마크
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel2.SuspendLayout();
this.panel4.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
@@ -111,9 +115,20 @@ namespace UniMarc.마크
this.panel1.Controls.Add(this.btn_Back);
this.panel1.Location = new System.Drawing.Point(13, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1040, 212);
this.panel1.Size = new System.Drawing.Size(1087, 212);
this.panel1.TabIndex = 0;
//
// lbl_SaveData
//
this.lbl_SaveData.AutoSize = true;
this.lbl_SaveData.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_SaveData.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_SaveData.Location = new System.Drawing.Point(188, 156);
this.lbl_SaveData.Name = "lbl_SaveData";
this.lbl_SaveData.Size = new System.Drawing.Size(64, 19);
this.lbl_SaveData.TabIndex = 319;
this.lbl_SaveData.Text = "[] []";
//
// lbl_ClassSymbol
//
this.lbl_ClassSymbol.AutoSize = true;
@@ -141,7 +156,7 @@ namespace UniMarc.마크
// btn_Close
//
this.btn_Close.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Close.Location = new System.Drawing.Point(920, 155);
this.btn_Close.Location = new System.Drawing.Point(966, 60);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(115, 51);
this.btn_Close.TabIndex = 4;
@@ -405,7 +420,7 @@ namespace UniMarc.마크
// btn_Save
//
this.btn_Save.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Save.Location = new System.Drawing.Point(799, 156);
this.btn_Save.Location = new System.Drawing.Point(845, 60);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(115, 51);
this.btn_Save.TabIndex = 4;
@@ -562,7 +577,7 @@ namespace UniMarc.마크
// btn_Front
//
this.btn_Front.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Front.Location = new System.Drawing.Point(920, 58);
this.btn_Front.Location = new System.Drawing.Point(966, 3);
this.btn_Front.Name = "btn_Front";
this.btn_Front.Size = new System.Drawing.Size(115, 51);
this.btn_Front.TabIndex = 4;
@@ -573,7 +588,7 @@ namespace UniMarc.마크
// btn_Back
//
this.btn_Back.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Back.Location = new System.Drawing.Point(920, 2);
this.btn_Back.Location = new System.Drawing.Point(845, 3);
this.btn_Back.Name = "btn_Back";
this.btn_Back.Size = new System.Drawing.Size(115, 51);
this.btn_Back.TabIndex = 4;
@@ -589,7 +604,7 @@ namespace UniMarc.마크
this.richTextBox1.Font = new System.Drawing.Font("굴림체", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1038, 456);
this.richTextBox1.Size = new System.Drawing.Size(838, 456);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
@@ -600,7 +615,7 @@ namespace UniMarc.마크
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Location = new System.Drawing.Point(13, 266);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1040, 458);
this.panel2.Size = new System.Drawing.Size(840, 458);
this.panel2.TabIndex = 2;
//
// panel4
@@ -616,7 +631,7 @@ namespace UniMarc.마크
this.panel4.Controls.Add(this.label4);
this.panel4.Location = new System.Drawing.Point(13, 230);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1040, 30);
this.panel4.Size = new System.Drawing.Size(1087, 30);
this.panel4.TabIndex = 246;
//
// text008
@@ -684,22 +699,47 @@ namespace UniMarc.마크
this.label4.TabIndex = 206;
this.label4.Text = "008";
//
// lbl_SaveData
// etcBox1
//
this.lbl_SaveData.AutoSize = true;
this.lbl_SaveData.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_SaveData.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_SaveData.Location = new System.Drawing.Point(188, 156);
this.lbl_SaveData.Name = "lbl_SaveData";
this.lbl_SaveData.Size = new System.Drawing.Size(64, 19);
this.lbl_SaveData.TabIndex = 319;
this.lbl_SaveData.Text = "[] []";
this.etcBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.etcBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.etcBox1.Location = new System.Drawing.Point(4, 4);
this.etcBox1.Name = "etcBox1";
this.etcBox1.Size = new System.Drawing.Size(228, 218);
this.etcBox1.TabIndex = 0;
this.etcBox1.Text = "";
//
// etcBox2
//
this.etcBox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.etcBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.etcBox2.Location = new System.Drawing.Point(4, 229);
this.etcBox2.Name = "etcBox2";
this.etcBox2.Size = new System.Drawing.Size(228, 223);
this.etcBox2.TabIndex = 0;
this.etcBox2.Text = "";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.etcBox2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.etcBox1, 0, 0);
this.tableLayoutPanel1.Location = new System.Drawing.Point(859, 267);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 229F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(236, 456);
this.tableLayoutPanel1.TabIndex = 0;
//
// Marc_Plan_Sub_MarcEdit
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1065, 736);
this.ClientSize = new System.Drawing.Size(1109, 736);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
@@ -718,6 +758,7 @@ namespace UniMarc.마크
this.panel2.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -781,5 +822,8 @@ namespace UniMarc.마크
private System.Windows.Forms.Label lbl_AuthorSymbol;
public System.Windows.Forms.Button btn_EditNum;
private System.Windows.Forms.Label lbl_SaveData;
private System.Windows.Forms.RichTextBox etcBox2;
private System.Windows.Forms.RichTextBox etcBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
}
}

View File

@@ -72,28 +72,38 @@ namespace UniMarc.마크
input_picture(Marc[4]);
SetEditData();
SetHistory();
}
public void SetEditData()
/// <summary>
/// 작성자, 작성시각 표출해주는 함수.
/// (22.02.07 추가) 비고1, 비고2 추가로 표출
/// </summary>
public void SetHistory()
{
if (mp != null)
{
string cmd = string.Format("SELECT `user`, `editDate` FROM `Specs_Marc` WHERE `idx` = \"{0}\"", idx);
string cmd = string.Format("SELECT `user`, `editDate`, `etc1`, `etc2` FROM `Specs_Marc` WHERE `idx` = \"{0}\"", idx);
string res = db.DB_Send_CMD_Search(cmd);
string[] aryResultData = res.Split('|');
if (aryResultData.Length > 1)
if (aryResultData.Length > 1) {
lbl_SaveData.Text = string.Format("[{0}] [{1}]", aryResultData[0], aryResultData[1]);
etcBox1.Text = aryResultData[2];
etcBox2.Text = aryResultData[3];
}
}
else if (si != null)
{
string cmd = string.Format("SELECT `user`, `date` FROM `Marc` WHERE `idx` = \"{0}\"", tb_Mcode.Text);
string cmd = string.Format("SELECT `user`, `date`, `비고1`, `비고2` FROM `Marc` WHERE `idx` = \"{0}\"", tb_Mcode.Text);
string res = db.DB_Send_CMD_Search(cmd);
string[] aryResultData = res.Split('|');
if (aryResultData.Length > 1)
if (aryResultData.Length > 1) {
lbl_SaveData.Text = string.Format("[{0}] [{1}]", aryResultData[0], aryResultData[1]);
etcBox1.Text = aryResultData[2];
etcBox2.Text = aryResultData[3];
}
}
}

View File

@@ -42,12 +42,18 @@ namespace UniMarc.마크
this.btn_Delete = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_Morge = new System.Windows.Forms.Button();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.user = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// panel1
@@ -58,7 +64,7 @@ namespace UniMarc.마크
this.panel1.Controls.Add(this.cb_gu);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(3, 2);
this.panel1.Location = new System.Drawing.Point(2, 2);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(353, 27);
this.panel1.TabIndex = 0;
@@ -102,7 +108,7 @@ namespace UniMarc.마크
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(359, 2);
this.btn_Search.Location = new System.Drawing.Point(358, 2);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(61, 27);
this.btn_Search.TabIndex = 1;
@@ -112,7 +118,7 @@ namespace UniMarc.마크
//
// btn_Complite
//
this.btn_Complite.Location = new System.Drawing.Point(422, 2);
this.btn_Complite.Location = new System.Drawing.Point(421, 2);
this.btn_Complite.Name = "btn_Complite";
this.btn_Complite.Size = new System.Drawing.Size(61, 27);
this.btn_Complite.TabIndex = 1;
@@ -122,7 +128,7 @@ namespace UniMarc.마크
//
// btn_Progress
//
this.btn_Progress.Location = new System.Drawing.Point(483, 2);
this.btn_Progress.Location = new System.Drawing.Point(482, 2);
this.btn_Progress.Name = "btn_Progress";
this.btn_Progress.Size = new System.Drawing.Size(61, 27);
this.btn_Progress.TabIndex = 1;
@@ -132,7 +138,7 @@ namespace UniMarc.마크
//
// btn_Edit
//
this.btn_Edit.Location = new System.Drawing.Point(546, 2);
this.btn_Edit.Location = new System.Drawing.Point(543, 2);
this.btn_Edit.Name = "btn_Edit";
this.btn_Edit.Size = new System.Drawing.Size(61, 27);
this.btn_Edit.TabIndex = 1;
@@ -142,7 +148,7 @@ namespace UniMarc.마크
//
// btn_Delete
//
this.btn_Delete.Location = new System.Drawing.Point(607, 2);
this.btn_Delete.Location = new System.Drawing.Point(665, 2);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(61, 27);
this.btn_Delete.TabIndex = 1;
@@ -152,7 +158,7 @@ namespace UniMarc.마크
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(670, 2);
this.btn_Close.Location = new System.Drawing.Point(726, 2);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(61, 27);
this.btn_Close.TabIndex = 1;
@@ -178,16 +184,55 @@ namespace UniMarc.마크
this.idx,
this.list_name,
this.date,
this.user,
this.colCheck});
this.dataGridView1.Location = new System.Drawing.Point(3, 34);
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(728, 305);
this.dataGridView1.Size = new System.Drawing.Size(806, 324);
this.dataGridView1.TabIndex = 2;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.panel1);
this.panel2.Controls.Add(this.btn_Search);
this.panel2.Controls.Add(this.btn_Morge);
this.panel2.Controls.Add(this.btn_Close);
this.panel2.Controls.Add(this.btn_Complite);
this.panel2.Controls.Add(this.btn_Delete);
this.panel2.Controls.Add(this.btn_Progress);
this.panel2.Controls.Add(this.btn_Edit);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(806, 33);
this.panel2.TabIndex = 3;
//
// panel3
//
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 33);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(806, 324);
this.panel3.TabIndex = 4;
//
// btn_Morge
//
this.btn_Morge.Location = new System.Drawing.Point(604, 2);
this.btn_Morge.Name = "btn_Morge";
this.btn_Morge.Size = new System.Drawing.Size(61, 27);
this.btn_Morge.TabIndex = 1;
this.btn_Morge.Text = "병 합";
this.btn_Morge.UseVisualStyleBackColor = true;
this.btn_Morge.Click += new System.EventHandler(this.btn_Morge_Click);
//
// idx
//
this.idx.HeaderText = "idx";
@@ -206,6 +251,12 @@ namespace UniMarc.마크
this.date.Name = "date";
this.date.Width = 130;
//
// user
//
this.user.HeaderText = "등록자";
this.user.Name = "user";
this.user.Width = 80;
//
// colCheck
//
this.colCheck.FalseValue = "F";
@@ -221,21 +272,17 @@ namespace UniMarc.마크
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(733, 341);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Delete);
this.Controls.Add(this.btn_Edit);
this.Controls.Add(this.btn_Progress);
this.Controls.Add(this.btn_Complite);
this.Controls.Add(this.btn_Search);
this.Controls.Add(this.panel1);
this.ClientSize = new System.Drawing.Size(806, 357);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Name = "Marc_Plan_Sub_SelectList";
this.Text = "마크정리_목록선택";
this.Load += new System.EventHandler(this.Marc_Plan_Sub_SelectList_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -253,10 +300,14 @@ namespace UniMarc.마크
private System.Windows.Forms.Button btn_Delete;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.DataGridView dataGridView1;
public System.Windows.Forms.Button btn_Search;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_Morge;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn list_name;
private System.Windows.Forms.DataGridViewTextBoxColumn date;
private System.Windows.Forms.DataGridViewTextBoxColumn user;
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
public System.Windows.Forms.Button btn_Search;
}
}

View File

@@ -34,6 +34,7 @@ namespace UniMarc.마크
dataGridView1.Columns["list_name"].ReadOnly = true;
dataGridView1.Columns["date"].ReadOnly = true;
dataGridView1.Columns["user"].ReadOnly = true;
// btn_Search_Click(null, e);
}
@@ -60,7 +61,7 @@ namespace UniMarc.마크
string gu = cb_gu.Text; // 검색 필터
string text = tb_Search.Text; // 검색어 DB LIKE 검색
string Area = "`idx`, `work_list`, `date`";
string Area = "`idx`, `work_list`, `date`, `user`";
string cmd = string.Format("SELECT {0} FROM `Specs_List` WHERE `compidx` = {1} AND `state` = \"{2}\" AND `work_list` LIKE \"%{3}%\"",
Area, compidx, gu, text);
@@ -72,13 +73,14 @@ namespace UniMarc.마크
#region Search_Sub
private void Input_Grid(string[] ary)
{
string[] grid = { "", "", "", "F" };
string[] grid = { "", "", "", "", "F" };
for(int a = 0; a < ary.Length; a++)
{
if (a % 3 == 0) grid[0] = ary[a];
if (a % 3 == 1) grid[1] = ary[a];
if (a % 3 == 2) {
grid[2] = ary[a];
if (a % 4 == 0) grid[0] = ary[a];
if (a % 4 == 1) grid[1] = ary[a];
if (a % 4 == 2) grid[2] = ary[a];
if (a % 4 == 3) {
grid[3] = ary[a];
dataGridView1.Rows.Add(grid);
}
}
@@ -88,10 +90,17 @@ namespace UniMarc.마크
private void Change_State(object sender, EventArgs e) // 완료, 진행처리
{
string name = ((Button)sender).Text;
int row = dataGridView1.CurrentRow.Index;
int[] CheckRow = CheckIndex();
string msg = string.Format("【{0}】을(를) 완료처리 하시겠습니까?", dataGridView1.Rows[row].Cells["list_name"].Value.ToString());
if (MessageBox.Show(msg, "완료처리", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
if (CheckRow.Length != 1) {
MessageBox.Show("처리할 목록 [1]개 선택하여 주세요.");
return;
}
int row = CheckRow[0];
string msg = string.Format("【{0}】을(를) {1} 하시겠습니까?", dataGridView1.Rows[row].Cells["list_name"].Value.ToString(), name);
if (MessageBox.Show(msg, name, MessageBoxButtons.OKCancel) == DialogResult.Cancel)
return;
string[] search_col = { "idx", "work_list", "date" };
@@ -115,7 +124,14 @@ namespace UniMarc.마크
private void btn_Edit_Click(object sender, EventArgs e) // 편집 (V 확인필요)
{
int row = dataGridView1.CurrentRow.Index;
int[] CheckRow = CheckIndex();
if (CheckRow.Length != 1) {
MessageBox.Show("수정할 목록 [1]개 선택하여 주세요.");
return;
}
int row = CheckRow[0];
Marc_Plan_Sub_SelectList_Edit edit = new Marc_Plan_Sub_SelectList_Edit(this);
edit.TopMost = true;
@@ -124,10 +140,44 @@ namespace UniMarc.마크
edit.TextBoxSetting(dataGridView1.Rows[row].Cells["list_name"].Value.ToString());
}
private void btn_Morge_Click(object sender, EventArgs e) // 병합 (V 확인필요)
{
int[] CheckRow = CheckIndex();
if (CheckRow.Length < 2) {
MessageBox.Show("병합할 목록 [2]개이상 선택하여 주세요.");
return;
}
List<string> ListIndex = new List<string>();
List<string> ListName = new List<string>();
List<string> ListDate = new List<string>();
List<string> ListUser = new List<string>();
foreach (int row in CheckRow)
{
ListIndex.Add(dataGridView1.Rows[row].Cells["idx"].Value.ToString());
ListName.Add(dataGridView1.Rows[row].Cells["list_name"].Value.ToString());
ListDate.Add(dataGridView1.Rows[row].Cells["date"].Value.ToString());
ListUser.Add(dataGridView1.Rows[row].Cells["user"].Value.ToString());
}
Marc_Plan_Sub_SelectList_Morge morge = new Marc_Plan_Sub_SelectList_Morge();
morge.Init(ListIndex, ListName, ListDate, ListUser);
morge.TopMost = true;
morge.Show();
}
private void btn_Delete_Click(object sender, EventArgs e) // 삭제 (V 확인필요)
{
int row = dataGridView1.CurrentRow.Index;
int[] CheckRow = CheckIndex();
if (CheckRow.Length != 1) {
MessageBox.Show("삭제할 목록 [1]개 선택하여 주세요.");
return;
}
int row = CheckRow[0];
string msg = string.Format("【{0}】을(를) 삭제하시겠습니까?", dataGridView1.Rows[row].Cells["list_name"].Value.ToString());
if (MessageBox.Show(msg, "삭제하시겠습니까?", MessageBoxButtons.YesNo) == DialogResult.No)
@@ -147,6 +197,27 @@ namespace UniMarc.마크
db.DB_Send_CMD_reVoid(cmd);
}
#region ButtonSub
/// <summary>
/// colCheck에 체크가 된 RowIndex값을 가져옴
/// </summary>
/// <returns></returns>
private int[] CheckIndex()
{
List<int> CheckRow = new List<int>();
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["colCheck"].Value == null)
continue;
if (dataGridView1.Rows[a].Cells["colCheck"].Value.ToString().IndexOf("T") > -1)
CheckRow.Add(a);
}
return CheckRow.ToArray();
}
#endregion
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
@@ -168,12 +239,19 @@ namespace UniMarc.마크
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
int row = dataGridView1.CurrentRow.Index;
int col = e.ColumnIndex;
int row = e.RowIndex;
if (dataGridView1.Columns[col].Name == "colCheck")
return;
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
string list_name = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
string date = dataGridView1.Rows[row].Cells["date"].Value.ToString();
mp.mk_Grid(list_name, date);
mp.mk_Panel(idx, list_name, date);
this.Close();
}
}

View File

@@ -126,6 +126,9 @@
<metadata name="date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="user.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@@ -0,0 +1,156 @@

namespace UniMarc.
{
partial class Marc_Plan_Sub_SelectList_Morge
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.tb_ListName = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btn_Morge = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ListName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ListDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ListUser = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
this.ListName,
this.ListDate,
this.ListUser});
this.dataGridView1.Location = new System.Drawing.Point(12, 12);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowHeadersWidth = 31;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(550, 150);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// tb_ListName
//
this.tb_ListName.Location = new System.Drawing.Point(95, 165);
this.tb_ListName.Name = "tb_ListName";
this.tb_ListName.Size = new System.Drawing.Size(294, 21);
this.tb_ListName.TabIndex = 1;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 169);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(81, 12);
this.label1.TabIndex = 2;
this.label1.Text = "변경할 목록명";
//
// btn_Morge
//
this.btn_Morge.Location = new System.Drawing.Point(406, 164);
this.btn_Morge.Name = "btn_Morge";
this.btn_Morge.Size = new System.Drawing.Size(75, 23);
this.btn_Morge.TabIndex = 3;
this.btn_Morge.Text = "병 합";
this.btn_Morge.UseVisualStyleBackColor = true;
this.btn_Morge.Click += new System.EventHandler(this.btn_Morge_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(487, 164);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 3;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.ReadOnly = true;
this.idx.Visible = false;
//
// ListName
//
this.ListName.HeaderText = "목록명";
this.ListName.Name = "ListName";
this.ListName.ReadOnly = true;
this.ListName.Width = 250;
//
// ListDate
//
this.ListDate.HeaderText = "목록일자";
this.ListDate.Name = "ListDate";
this.ListDate.ReadOnly = true;
this.ListDate.Width = 150;
//
// ListUser
//
this.ListUser.HeaderText = "등록자";
this.ListUser.Name = "ListUser";
this.ListUser.ReadOnly = true;
//
// Marc_Plan_Sub_SelectList_Morge
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(576, 194);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Morge);
this.Controls.Add(this.label1);
this.Controls.Add(this.tb_ListName);
this.Controls.Add(this.dataGridView1);
this.Name = "Marc_Plan_Sub_SelectList_Morge";
this.Text = "마크 목록 병합";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.TextBox tb_ListName;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_Morge;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn ListName;
private System.Windows.Forms.DataGridViewTextBoxColumn ListDate;
private System.Windows.Forms.DataGridViewTextBoxColumn ListUser;
}
}

View File

@@ -0,0 +1,105 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc.
{
public partial class Marc_Plan_Sub_SelectList_Morge : Form
{
Helper_DB db = new Helper_DB();
public Marc_Plan_Sub_SelectList_Morge()
{
InitializeComponent();
}
public void Init(List<string> ListIdx, List<string> ListName, List<string>ListDate, List<string> ListUser)
{
string[] idx = ListIdx.ToArray();
string[] Name = ListName.ToArray();
string[] Date = ListDate.ToArray();
string[] User = ListUser.ToArray();
Init(idx, Name, Date, User);
}
private void Init(string[] Aryidx, string[] AryName, string[] AryDate, string[] AryUser)
{
db.DBcon();
int idxLength = Aryidx.Length;
int NameLength = AryName.Length;
int DateLength = AryDate.Length;
int UserLength = AryUser.Length;
// 받은 배열의 길이가 맞지않을경우 리턴
if (NameLength != DateLength || NameLength != UserLength || DateLength != UserLength)
return;
for (int a = 0; a < NameLength; a++)
{
string[] Grid = { Aryidx[a], AryName[a], AryDate[a], AryUser[a] };
dataGridView1.Rows.Add(Grid);
}
}
private void btn_Morge_Click(object sender, EventArgs e)
{
if (tb_ListName.Text == "") {
MessageBox.Show("저장될 목록명이 비어있습니다.", "Error");
return;
}
string MorgeUser = Properties.Settings.Default.User;
string Compidx = Properties.Settings.Default.compidx;
string NowDate = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss");
string[] Search_Col = { "idx" };
string[] Search_Data = { dataGridView1.Rows[0].Cells["idx"].Value.ToString() };
string[] Update_Col = { "work_list", "date", "user" };
string[] Update_Data = { tb_ListName.Text, NowDate, MorgeUser };
string U_cmd = db.More_Update("Specs_List", Update_Col, Update_Data, Search_Col, Search_Data);
db.DB_Send_CMD_reVoid(U_cmd);
// 마크 수정
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
string[] Col = {
"work_list", "date"
};
string[] Data = {
dataGridView1.Rows[a].Cells["ListName"].Value.ToString(),
dataGridView1.Rows[a].Cells["ListDate"].Value.ToString()
};
string cmd = db.More_Update("Specs_Marc", Update_Col, Update_Data, Col, Data);
db.DB_Send_CMD_reVoid(cmd);
if (a != 0) {
string listIdx = dataGridView1.Rows[a].Cells["idx"].Value.ToString();
string listDate = dataGridView1.Rows[a].Cells["ListDate"].Value.ToString();
string D_cmd = db.DB_Delete("Specs_List", "idx", listIdx, "date", listDate);
db.DB_Send_CMD_reVoid(D_cmd);
}
}
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
}
}

View File

@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ListName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ListDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ListUser.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

File diff suppressed because it is too large Load Diff

View File

@@ -270,7 +270,7 @@ namespace WindowsFormsApp1.Home
cb_gubun2.Items.AddRange(gubun2);
cb_gubun2.SelectedIndex = 2;
}
lookup(marc_lookup);
lookup(panel4.Visible);
}
private void tb_sangho_KeyDown(object sender, KeyEventArgs e)
{
@@ -395,25 +395,18 @@ namespace WindowsFormsApp1.Home
if (grididx < 0)
return;
if(marc_lookup == false)
if (!panel4.Visible)
{
btn_marc_expand.Text = "마크 확장 >>";
marc_lookup = true;
panel4.Visible = true;
}
else
{
btn_marc_expand.Text = "마크 확장 <<";
marc_lookup = false;
panel4.Visible = false;
}
marcLabel.Visible = marc_lookup;
gearLabel.Visible = marc_lookup;
marcGrid.Visible = marc_lookup;
gearGrid.Visible = marc_lookup;
tb_marcEmpty.Visible = marc_lookup;
tb_marcSave.Visible = marc_lookup;
tb_gearEmpty.Visible = marc_lookup;
lookup(marc_lookup);
lookup(panel4.Visible);
}
private void lookup(bool chk)