diff --git a/.gitignore b/.gitignore index c0cb9e6..0c49cf3 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,5 @@ Test_Update/ Barum_TestProject/ MacroTest/ AlarmTest/ -Output_Excel/ \ No newline at end of file +Output_Excel/ +Test_DLS/ \ No newline at end of file diff --git a/Test_Project/.vs/Test_Project/v16/.suo b/Test_Project/.vs/Test_Project/v16/.suo index d2b80bd..f6379b2 100644 Binary files a/Test_Project/.vs/Test_Project/v16/.suo and b/Test_Project/.vs/Test_Project/v16/.suo differ diff --git a/unimarc/.vs/unimarc/v16/.suo b/unimarc/.vs/unimarc/v16/.suo index 7cfbd21..73bcd53 100644 Binary files a/unimarc/.vs/unimarc/v16/.suo and b/unimarc/.vs/unimarc/v16/.suo differ diff --git a/unimarc/unimarc/Main.cs b/unimarc/unimarc/Main.cs index aafb76c..9378ced 100644 --- a/unimarc/unimarc/Main.cs +++ b/unimarc/unimarc/Main.cs @@ -62,7 +62,7 @@ namespace WindowsFormsApp1 if (result[3] == null) { } else { - toolStripLabel2.Text = result[5]; + toolStripLabel2.Text = result[4]; toolStripLabel1.Text = result[3]; User = result[3]; } @@ -74,7 +74,7 @@ namespace WindowsFormsApp1 Settings.Default.compidx = com_idx; Settings.Default.User = toolStripLabel1.Text; - this.Text = "[ '" + com_idx + "' : " + result[5] + " - " + result[3] + "]"; + this.Text = "[ '" + com_idx + "' : " + result[4] + " - " + result[3] + "]"; } catch { } } @@ -92,9 +92,8 @@ namespace WindowsFormsApp1 private void 사용자정보ToolStripMenuItem_Click(object sender, EventArgs e) { if (User_Infor != null) - { User_Infor.Focus(); - } + else { User_Infor = new User_Infor(this); diff --git a/unimarc/unimarc/UniMarc.csproj b/unimarc/unimarc/UniMarc.csproj index 0b7ccfc..da7f836 100644 --- a/unimarc/unimarc/UniMarc.csproj +++ b/unimarc/unimarc/UniMarc.csproj @@ -127,6 +127,18 @@ All_Book_manage_Edit.cs + + Form + + + Check_Copy_Sub_List.cs + + + Form + + + Check_Copy_Sub_Search.cs + Form @@ -145,6 +157,12 @@ Check_ISBN_Yes24.cs + + Form + + + DLS_Manage.cs + Form @@ -236,6 +254,7 @@ Search_Infor_Sub.cs + Form @@ -695,6 +714,12 @@ All_Book_manage_Edit.cs + + Check_Copy_Sub_List.cs + + + Check_Copy_Sub_Search.cs + Check_ISBN_Split.cs @@ -704,6 +729,9 @@ Check_ISBN_Yes24.cs + + DLS_Manage.cs + findNchange.cs @@ -1169,6 +1197,15 @@ False True + + {EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B} + 1 + 1 + 0 + tlbimp + False + True + {0002E157-0000-0000-C000-000000000046} 5 diff --git a/unimarc/unimarc/bin/Debug/UniMarc.exe b/unimarc/unimarc/bin/Debug/UniMarc.exe index bdaaab1..79c03d0 100644 Binary files a/unimarc/unimarc/bin/Debug/UniMarc.exe and b/unimarc/unimarc/bin/Debug/UniMarc.exe differ diff --git a/unimarc/unimarc/bin/Debug/UniMarc.pdb b/unimarc/unimarc/bin/Debug/UniMarc.pdb index c6132f1..6f810c8 100644 Binary files a/unimarc/unimarc/bin/Debug/UniMarc.pdb and b/unimarc/unimarc/bin/Debug/UniMarc.pdb differ diff --git a/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll b/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll index 1ecd591..d3d8688 100644 Binary files a/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll and b/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll differ diff --git a/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 84660dd..9a21dab 100644 Binary files a/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 1ed5731..e38ba92 100644 Binary files a/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/unimarc/unimarc/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/unimarc/unimarc/obj/Debug/Interop.SHDocVw.dll b/unimarc/unimarc/obj/Debug/Interop.SHDocVw.dll new file mode 100644 index 0000000..b6f07a8 Binary files /dev/null and b/unimarc/unimarc/obj/Debug/Interop.SHDocVw.dll differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.csproj.CoreCompileInputs.cache b/unimarc/unimarc/obj/Debug/UniMarc.csproj.CoreCompileInputs.cache index 5a6429f..94ec0aa 100644 --- a/unimarc/unimarc/obj/Debug/UniMarc.csproj.CoreCompileInputs.cache +++ b/unimarc/unimarc/obj/Debug/UniMarc.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -dd0005ff570f47ea40ad656026054da24dc4d556 +01f4ac01b639d352c1b8aaaec11c6204688f1d5e diff --git a/unimarc/unimarc/obj/Debug/UniMarc.csproj.FileListAbsolute.txt b/unimarc/unimarc/obj/Debug/UniMarc.csproj.FileListAbsolute.txt index 7c28694..b1091bd 100644 --- a/unimarc/unimarc/obj/Debug/UniMarc.csproj.FileListAbsolute.txt +++ b/unimarc/unimarc/obj/Debug/UniMarc.csproj.FileListAbsolute.txt @@ -125,3 +125,7 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크. C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_mkList.resources C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_Sub_SelectList_Edit.resources C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_Sub_MarcEdit.resources +C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Check_Copy_Sub_Search.resources +C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Check_Copy_Sub_List.resources +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 diff --git a/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache b/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache index 0dcd9cb..4368017 100644 Binary files a/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache and b/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.csproj.ResolveComReference.cache b/unimarc/unimarc/obj/Debug/UniMarc.csproj.ResolveComReference.cache index 41ada55..8f17535 100644 Binary files a/unimarc/unimarc/obj/Debug/UniMarc.csproj.ResolveComReference.cache and b/unimarc/unimarc/obj/Debug/UniMarc.csproj.ResolveComReference.cache differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.exe b/unimarc/unimarc/obj/Debug/UniMarc.exe index bdaaab1..79c03d0 100644 Binary files a/unimarc/unimarc/obj/Debug/UniMarc.exe and b/unimarc/unimarc/obj/Debug/UniMarc.exe differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.pdb b/unimarc/unimarc/obj/Debug/UniMarc.pdb index c6132f1..6f810c8 100644 Binary files a/unimarc/unimarc/obj/Debug/UniMarc.pdb and b/unimarc/unimarc/obj/Debug/UniMarc.pdb differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.마크.Check_Copy_Sub_List.resources b/unimarc/unimarc/obj/Debug/UniMarc.마크.Check_Copy_Sub_List.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/unimarc/unimarc/obj/Debug/UniMarc.마크.Check_Copy_Sub_List.resources differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.마크.Check_Copy_Sub_Search.resources b/unimarc/unimarc/obj/Debug/UniMarc.마크.Check_Copy_Sub_Search.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/unimarc/unimarc/obj/Debug/UniMarc.마크.Check_Copy_Sub_Search.resources differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.마크.DLS_Manage.resources b/unimarc/unimarc/obj/Debug/UniMarc.마크.DLS_Manage.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/unimarc/unimarc/obj/Debug/UniMarc.마크.DLS_Manage.resources differ diff --git a/unimarc/unimarc/obj/Debug/WindowsFormsApp1.Home.Home_User_manage.resources b/unimarc/unimarc/obj/Debug/WindowsFormsApp1.Home.Home_User_manage.resources index 46288c8..fe02ecc 100644 Binary files a/unimarc/unimarc/obj/Debug/WindowsFormsApp1.Home.Home_User_manage.resources and b/unimarc/unimarc/obj/Debug/WindowsFormsApp1.Home.Home_User_manage.resources differ diff --git a/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll b/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll index 1ecd591..d3d8688 100644 Binary files a/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll and b/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll differ diff --git a/unimarc/unimarc/납품관리/Commodity_registration.Designer.cs b/unimarc/unimarc/납품관리/Commodity_registration.Designer.cs index 4a1c7eb..01e5269 100644 --- a/unimarc/unimarc/납품관리/Commodity_registration.Designer.cs +++ b/unimarc/unimarc/납품관리/Commodity_registration.Designer.cs @@ -28,13 +28,13 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); this.label1 = new System.Windows.Forms.Label(); this.tb_FilePath = new System.Windows.Forms.TextBox(); this.btn_FileOpen = new System.Windows.Forms.Button(); @@ -104,6 +104,7 @@ this.rbtn_all = new System.Windows.Forms.RadioButton(); this.panel2 = new System.Windows.Forms.Panel(); this.label14 = new System.Windows.Forms.Label(); + this.btn_total = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); this.panel2.SuspendLayout(); @@ -293,14 +294,14 @@ // dataGridView1 // this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle22.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; + 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.DisableResizing; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.header, @@ -357,27 +358,27 @@ // // count // - dataGridViewCellStyle23.Format = "C0"; - dataGridViewCellStyle23.NullValue = null; - this.count.DefaultCellStyle = dataGridViewCellStyle23; + dataGridViewCellStyle2.Format = "C0"; + dataGridViewCellStyle2.NullValue = null; + this.count.DefaultCellStyle = dataGridViewCellStyle2; this.count.HeaderText = "수량"; this.count.Name = "count"; this.count.Width = 35; // // unit // - dataGridViewCellStyle24.Format = "N0"; - dataGridViewCellStyle24.NullValue = null; - this.unit.DefaultCellStyle = dataGridViewCellStyle24; + dataGridViewCellStyle3.Format = "N0"; + dataGridViewCellStyle3.NullValue = null; + this.unit.DefaultCellStyle = dataGridViewCellStyle3; this.unit.HeaderText = "단가"; this.unit.Name = "unit"; this.unit.Width = 70; // // total // - dataGridViewCellStyle25.Format = "N0"; - dataGridViewCellStyle25.NullValue = null; - this.total.DefaultCellStyle = dataGridViewCellStyle25; + dataGridViewCellStyle4.Format = "N0"; + dataGridViewCellStyle4.NullValue = null; + this.total.DefaultCellStyle = dataGridViewCellStyle4; this.total.HeaderText = "합계"; this.total.Name = "total"; this.total.Width = 80; @@ -435,14 +436,14 @@ this.dataGridView2.AllowUserToAddRows = false; this.dataGridView2.AllowUserToDeleteRows = false; this.dataGridView2.BackgroundColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle26.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26; + 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.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.list_date, this.pur, @@ -497,8 +498,8 @@ // // cout // - dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; - this.cout.DefaultCellStyle = dataGridViewCellStyle27; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; + this.cout.DefaultCellStyle = dataGridViewCellStyle6; this.cout.HeaderText = "수량"; this.cout.Name = "cout"; this.cout.Resizable = System.Windows.Forms.DataGridViewTriState.True; @@ -506,10 +507,10 @@ // // tol // - dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; - dataGridViewCellStyle28.Format = "N0"; - dataGridViewCellStyle28.NullValue = null; - this.tol.DefaultCellStyle = dataGridViewCellStyle28; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; + dataGridViewCellStyle7.Format = "N0"; + dataGridViewCellStyle7.NullValue = null; + this.tol.DefaultCellStyle = dataGridViewCellStyle7; this.tol.HeaderText = "합계"; this.tol.Name = "tol"; this.tol.Width = 80; @@ -673,7 +674,7 @@ // // button2 // - this.button2.Location = new System.Drawing.Point(1036, 12); + this.button2.Location = new System.Drawing.Point(983, 12); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(103, 23); this.button2.TabIndex = 15; @@ -734,6 +735,16 @@ this.label14.TabIndex = 22; this.label14.Text = "작업\n대상"; // + // btn_total + // + this.btn_total.Location = new System.Drawing.Point(1089, 12); + this.btn_total.Name = "btn_total"; + this.btn_total.Size = new System.Drawing.Size(72, 23); + this.btn_total.TabIndex = 28; + this.btn_total.Text = "합계 계산"; + this.btn_total.UseVisualStyleBackColor = true; + this.btn_total.Click += new System.EventHandler(this.btn_Total_Click); + // // Commodity_registration // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -747,6 +758,7 @@ this.Controls.Add(this.btn_Edit); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.btn_Del); + this.Controls.Add(this.btn_total); this.Controls.Add(this.btn_Save); this.Controls.Add(this.btn_Complet); this.Controls.Add(this.btn_Exit); @@ -863,5 +875,6 @@ private System.Windows.Forms.DataGridViewButtonColumn Grid_btn_ISBN; private System.Windows.Forms.DataGridViewTextBoxColumn chk_marc; private System.Windows.Forms.DataGridViewCheckBoxColumn Grid_Check; + private System.Windows.Forms.Button btn_total; } } \ No newline at end of file diff --git a/unimarc/unimarc/납품관리/Commodity_registration.cs b/unimarc/unimarc/납품관리/Commodity_registration.cs index 924db97..2582d41 100644 --- a/unimarc/unimarc/납품관리/Commodity_registration.cs +++ b/unimarc/unimarc/납품관리/Commodity_registration.cs @@ -38,7 +38,7 @@ namespace WindowsFormsApp1.Delivery } dataGridView1.CurrentCell = null; db.DBcon(); - dataGridView1.Rows.Add(10000); + // dataGridView1.Rows.Add(10000); string[] combo = { "진행", "완료" }; comboBox1.Items.AddRange(combo); comboBox1.SelectedIndex = 0; @@ -93,11 +93,13 @@ namespace WindowsFormsApp1.Delivery string[] Cell_result = file_con.Split('\n'); for(int a = 0; a < Cell_result.Length; a++) { + Cell_result[a] = Cell_result[a].Replace("\r", ""); string[] collumn_result = Cell_result[a].Split('\t'); for(int b = 0; b < collumn_result.Length; b++) { - dataGridView1.Rows[a].Cells[b].Value = collumn_result[b]; + // dataGridView1.Rows[a].Cells[b].Value = collumn_result[b]; } + dataGridView1.Rows.Add(collumn_result); } } } @@ -134,12 +136,10 @@ namespace WindowsFormsApp1.Delivery cmd = db.DB_Search("Obj_List", "list_name", "[" + tb_dvy1.Text + "]" + tb_clt1.Text, "comp_num", comp_idx); if (db.DB_Send_CMD_Search(cmd) != "") { MessageBox.Show("DB의 납품목록과 중복됩니다."); return; } + bool MsgOk = false; int Marc_ton = chk_Save_DB(); - int vol, price, total, resVol=0, resTotal=0; // 5, 6, 7 - string Strvol = ""; - string Strprice = ""; - string Strtotal = ""; + int vol, price, total, resVol = 0, resTotal = 0; // 5, 6, 7 string Strmsg = ""; string[] data = { "", "", "", "", "", "", "", "", "", "", "", "ISBN조회", "" }; // 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ,10 , 11 , 12 @@ -151,9 +151,16 @@ namespace WindowsFormsApp1.Delivery for (int a = 0; a < dataGridView1.Rows.Count; a++) { if (dataGridView1.Rows[a].Cells["count"].Value == null || - dataGridView1.Rows[a].Cells["count"].Value.ToString() == "") { break; } - Strvol = dataGridView1.Rows[a].Cells["count"].Value.ToString(); - Strprice = dataGridView1.Rows[a].Cells["unit"].Value.ToString().Replace(",", ""); + dataGridView1.Rows[a].Cells["count"].Value.ToString() == "") { + dataGridView1.Rows[a].Cells["count"].Value = "0"; + } + if (dataGridView1.Rows[a].Cells["unit"].Value == null || + dataGridView1.Rows[a].Cells["unit"].Value.ToString() == "") { + dataGridView1.Rows[a].Cells["unit"].Value = "0"; + } + string Strvol = dataGridView1.Rows[a].Cells["count"].Value.ToString(); + string Strprice = dataGridView1.Rows[a].Cells["unit"].Value.ToString().Replace(",", ""); + string Strtotal; if (dataGridView1.Rows[a].Cells["total"].Value == null || dataGridView1.Rows[a].Cells["total"].Value.ToString() == "") { @@ -548,5 +555,32 @@ namespace WindowsFormsApp1.Delivery Skill_Grid sg = new Skill_Grid(); sg.Print_Grid_Num(sender, e); } + + private void btn_Total_Click(object sender, EventArgs e) + { + for (int a = 0; a < dataGridView1.Rows.Count; a++) + { + if (dataGridView1.Rows[a].Cells["book_name"].Value == null || + dataGridView1.Rows[a].Cells["book_name"].Value.ToString() == "") { + break; + } + if (dataGridView1.Rows[a].Cells["unit"].Value == null || + dataGridView1.Rows[a].Cells["unit"].Value.ToString() == "") { + dataGridView1.Rows[a].Cells["unit"].Value = "0"; + } + + string StrCount = Regex.Replace(dataGridView1.Rows[a].Cells["count"].Value.ToString(), @"[^0-9]", ""); + string StrPrice = Regex.Replace(dataGridView1.Rows[a].Cells["unit"].Value.ToString(), @"[^0-9]", ""); + + if (!StrPrice.All(char.IsDigit)) + StrPrice = "0"; + + int Count = Convert.ToInt32(StrCount); + int Price = Convert.ToInt32(StrPrice); + + int Total = Count * Price; + dataGridView1.Rows[a].Cells["total"].Value = Total.ToString(); + } + } } } \ No newline at end of file diff --git a/unimarc/unimarc/납품관리/List_Lookup.cs b/unimarc/unimarc/납품관리/List_Lookup.cs index 3bed7ba..961b770 100644 --- a/unimarc/unimarc/납품관리/List_Lookup.cs +++ b/unimarc/unimarc/납품관리/List_Lookup.cs @@ -142,7 +142,7 @@ namespace WindowsFormsApp1.Delivery width = 0; width1 = dataGridView1.Columns[a].Width + 15; } - else if (a >= 1 && a <= dataGridView1.ColumnCount - 2) { + else if (a >= 1 && a < dataGridView1.ColumnCount - 1) { width = dataGridView1.Columns[a - 1].Width + 15; width1 = dataGridView1.Columns[a].Width + 15; } diff --git a/unimarc/unimarc/납품관리/List_aggregation.cs b/unimarc/unimarc/납품관리/List_aggregation.cs index 879d703..af07edc 100644 --- a/unimarc/unimarc/납품관리/List_aggregation.cs +++ b/unimarc/unimarc/납품관리/List_aggregation.cs @@ -52,8 +52,7 @@ namespace WindowsFormsApp1.Delivery combo_year.Visible = false; combo_user.Items.Add("전체"); - string[] user_tmp = main.DB_User_Data.Split('|'); - string cmd = db.self_Made_Cmd("SELECT `name` FROM `User_Data` WHERE `affil` = '" + user_tmp[5] + "';"); + string cmd = db.self_Made_Cmd("SELECT `name` FROM `User_Data` WHERE `affil` = '" + main.toolStripLabel2.Text + "';"); string[] user_name = cmd.Split('|'); for(int a = 0; a < user_name.Length; a++) { @@ -345,13 +344,8 @@ namespace WindowsFormsApp1.Delivery int cnt = 0; int pageNo = 1; private void btn_print_Click(object sender, EventArgs e) // 인쇄 { - // TODO: 별도의 인쇄폼이 만들어져야함. (미리보기 구현 수정해야함) - // 08.18 TODO: 인쇄 보류. - //MessageBox.Show("보류"); - //return; - printPreviewDialog1.Document = printDocument1; - printDocument1.DefaultPageSettings.Landscape = false; + printDocument1.DefaultPageSettings.Landscape = true; if (printPreviewDialog1.ShowDialog() == DialogResult.Cancel) { cnt = 0; @@ -371,7 +365,7 @@ namespace WindowsFormsApp1.Delivery int temp = 0; e.Graphics.DrawString("제목", new Font("Arial", 20, FontStyle.Bold), Brushes.Black, dialogWidth / 2, 40); - e.Graphics.DrawString("인쇄일 : " + DateTime.Now.ToString("yyyy/MM/dd"), new Font("Arial",13), Brushes.Black, dialogWidth-20,80); + e.Graphics.DrawString("인쇄일 : " + DateTime.Now.ToString("yyyy/MM/dd"), new Font("Arial", 13), Brushes.Black, dialogWidth - 20, 80); e.Graphics.DrawString("페이지번호 : " + pageNo, new Font("Arial",13), Brushes.Black,dialogWidth-20, 100); for (int i = 0; i < dataGridView1.ColumnCount; i++) diff --git a/unimarc/unimarc/납품관리/Purchase.Designer.cs b/unimarc/unimarc/납품관리/Purchase.Designer.cs index 3398a67..70ecfae 100644 --- a/unimarc/unimarc/납품관리/Purchase.Designer.cs +++ b/unimarc/unimarc/납품관리/Purchase.Designer.cs @@ -28,14 +28,14 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); this.label1 = new System.Windows.Forms.Label(); this.tb_clt = new System.Windows.Forms.TextBox(); this.tb_dly = new System.Windows.Forms.TextBox(); @@ -51,19 +51,6 @@ this.label7 = new System.Windows.Forms.Label(); this.tb_book_comp = new System.Windows.Forms.TextBox(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); - this.num = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.count = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.pay = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.total = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.order = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.import = new System.Windows.Forms.DataGridViewButtonColumn(); - this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.order_date = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.label8 = new System.Windows.Forms.Label(); this.tb_persent = new System.Windows.Forms.TextBox(); this.btn_save = new System.Windows.Forms.Button(); @@ -89,19 +76,6 @@ this.lbl_grid2 = new System.Windows.Forms.Label(); this.lbl_count2 = new System.Windows.Forms.Label(); this.dataGridView2 = new System.Windows.Forms.DataGridView(); - this.num2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.count2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Book_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Book_comp2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.author2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.pay2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.total2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.list_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.edasd = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.order2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column13 = new System.Windows.Forms.DataGridViewButtonColumn(); - this.isbn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Date = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridView3 = new System.Windows.Forms.DataGridView(); this.isbn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.count3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -124,6 +98,34 @@ this.lbl_inven_count = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.idx1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.num = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.count = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pay = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.total = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.order = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.import = new System.Windows.Forms.DataGridViewButtonColumn(); + this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.order_date = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.idx2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.num2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.count2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Book_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Book_comp2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.author2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pay2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.total2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.list_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.edasd = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.order2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Column13 = new System.Windows.Forms.DataGridViewButtonColumn(); + this.isbn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Date = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); @@ -263,15 +265,16 @@ this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle25.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle25.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle25.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle25.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle25; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.idx1, this.num, this.count, this.book_name, @@ -285,25 +288,25 @@ this.import, this.isbn, this.order_date}); - dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle26.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle26; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2; this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.dataGridView1.Location = new System.Drawing.Point(9, 82); this.dataGridView1.Name = "dataGridView1"; - dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle27.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle27; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; this.dataGridView1.RowHeadersWidth = 21; this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.Size = new System.Drawing.Size(1192, 218); @@ -312,83 +315,6 @@ this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); this.dataGridView1.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dataGridView1_CellFormatting); // - // num - // - this.num.HeaderText = "번호"; - this.num.Name = "num"; - this.num.Width = 50; - // - // count - // - this.count.HeaderText = "수량"; - this.count.Name = "count"; - this.count.Width = 40; - // - // book_name - // - this.book_name.HeaderText = "도서명"; - this.book_name.Name = "book_name"; - this.book_name.Width = 250; - // - // book_comp - // - this.book_comp.HeaderText = "출판사"; - this.book_comp.Name = "book_comp"; - // - // author - // - this.author.HeaderText = "저자"; - this.author.Name = "author"; - // - // pay - // - this.pay.HeaderText = "단가"; - this.pay.Name = "pay"; - this.pay.Width = 80; - // - // total - // - this.total.HeaderText = "합계"; - this.total.Name = "total"; - this.total.Width = 80; - // - // list_name - // - this.list_name.HeaderText = "구분"; - this.list_name.Name = "list_name"; - this.list_name.Width = 120; - // - // etc - // - this.etc.HeaderText = "비고"; - this.etc.Name = "etc"; - // - // order - // - this.order.HeaderText = "주문처명"; - this.order.Name = "order"; - this.order.Width = 90; - // - // import - // - this.import.HeaderText = "입고"; - this.import.Name = "import"; - this.import.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.import.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.import.Width = 60; - // - // isbn - // - this.isbn.HeaderText = "isbn"; - this.isbn.Name = "isbn"; - this.isbn.Visible = false; - // - // order_date - // - this.order_date.HeaderText = "주문일자"; - this.order_date.Name = "order_date"; - this.order_date.Width = 80; - // // label8 // this.label8.AutoSize = true; @@ -638,15 +564,16 @@ this.dataGridView2.AllowUserToAddRows = false; this.dataGridView2.AllowUserToDeleteRows = false; this.dataGridView2.BackgroundColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle28.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle28; + 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; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.idx2, this.num2, this.count2, this.Book_name2, @@ -660,26 +587,26 @@ this.Column13, this.isbn2, this.Date}); - dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle29.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView2.DefaultCellStyle = dataGridViewCellStyle29; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView2.DefaultCellStyle = dataGridViewCellStyle5; this.dataGridView2.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.dataGridView2.Location = new System.Drawing.Point(9, 332); this.dataGridView2.MultiSelect = false; this.dataGridView2.Name = "dataGridView2"; - dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle30.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle30.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView2.RowHeadersDefaultCellStyle = dataGridViewCellStyle30; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView2.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; this.dataGridView2.RowHeadersWidth = 21; this.dataGridView2.RowTemplate.Height = 23; this.dataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -687,91 +614,17 @@ this.dataGridView2.TabIndex = 2; this.dataGridView2.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); // - // num2 - // - this.num2.HeaderText = "번호"; - this.num2.Name = "num2"; - this.num2.Width = 60; - // - // count2 - // - this.count2.HeaderText = "수량"; - this.count2.Name = "count2"; - this.count2.Width = 40; - // - // Book_name2 - // - this.Book_name2.HeaderText = "도서명"; - this.Book_name2.Name = "Book_name2"; - this.Book_name2.Width = 250; - // - // Book_comp2 - // - this.Book_comp2.HeaderText = "출판사"; - this.Book_comp2.Name = "Book_comp2"; - // - // author2 - // - this.author2.HeaderText = "저자"; - this.author2.Name = "author2"; - // - // pay2 - // - this.pay2.HeaderText = "단가"; - this.pay2.Name = "pay2"; - this.pay2.Width = 80; - // - // total2 - // - this.total2.HeaderText = "합계"; - this.total2.Name = "total2"; - this.total2.Width = 80; - // - // list_name2 - // - this.list_name2.HeaderText = "구분"; - this.list_name2.Name = "list_name2"; - // - // edasd - // - this.edasd.HeaderText = "비고"; - this.edasd.Name = "edasd"; - // - // order2 - // - this.order2.HeaderText = "주문처명"; - this.order2.Name = "order2"; - this.order2.Width = 90; - // - // Column13 - // - this.Column13.HeaderText = "취소"; - this.Column13.Name = "Column13"; - this.Column13.Width = 45; - // - // isbn2 - // - this.isbn2.HeaderText = "isbn"; - this.isbn2.Name = "isbn2"; - this.isbn2.Visible = false; - // - // Date - // - this.Date.HeaderText = "입고시간"; - this.Date.Name = "Date"; - this.Date.Visible = false; - // // dataGridView3 // this.dataGridView3.BackgroundColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle31.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle31; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; this.dataGridView3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.isbn3, this.count3, @@ -789,14 +642,14 @@ this.dataGridView3.Location = new System.Drawing.Point(9, 455); this.dataGridView3.MultiSelect = false; this.dataGridView3.Name = "dataGridView3"; - dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle32.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle32.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView3.RowHeadersDefaultCellStyle = dataGridViewCellStyle32; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView3.RowHeadersDefaultCellStyle = dataGridViewCellStyle8; this.dataGridView3.RowHeadersWidth = 21; this.dataGridView3.RowTemplate.Height = 23; this.dataGridView3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; @@ -965,6 +818,169 @@ this.pictureBox1.TabIndex = 35; this.pictureBox1.TabStop = false; // + // idx1 + // + this.idx1.HeaderText = "idx1"; + this.idx1.Name = "idx1"; + this.idx1.Width = 30; + // + // num + // + this.num.HeaderText = "번호"; + this.num.Name = "num"; + this.num.Width = 50; + // + // count + // + this.count.HeaderText = "수량"; + this.count.Name = "count"; + this.count.Width = 40; + // + // book_name + // + this.book_name.HeaderText = "도서명"; + this.book_name.Name = "book_name"; + this.book_name.Width = 250; + // + // book_comp + // + this.book_comp.HeaderText = "출판사"; + this.book_comp.Name = "book_comp"; + // + // author + // + this.author.HeaderText = "저자"; + this.author.Name = "author"; + // + // pay + // + this.pay.HeaderText = "단가"; + this.pay.Name = "pay"; + this.pay.Width = 80; + // + // total + // + this.total.HeaderText = "합계"; + this.total.Name = "total"; + this.total.Width = 80; + // + // list_name + // + this.list_name.HeaderText = "구분"; + this.list_name.Name = "list_name"; + this.list_name.Width = 120; + // + // etc + // + this.etc.HeaderText = "비고"; + this.etc.Name = "etc"; + // + // order + // + this.order.HeaderText = "주문처명"; + this.order.Name = "order"; + this.order.Width = 90; + // + // import + // + this.import.HeaderText = "입고"; + this.import.Name = "import"; + this.import.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.import.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.import.Width = 60; + // + // isbn + // + this.isbn.HeaderText = "isbn"; + this.isbn.Name = "isbn"; + this.isbn.Visible = false; + // + // order_date + // + this.order_date.HeaderText = "주문일자"; + this.order_date.Name = "order_date"; + this.order_date.Width = 80; + // + // idx2 + // + this.idx2.HeaderText = "idx2"; + this.idx2.Name = "idx2"; + this.idx2.Width = 30; + // + // num2 + // + this.num2.HeaderText = "번호"; + this.num2.Name = "num2"; + this.num2.Width = 60; + // + // count2 + // + this.count2.HeaderText = "수량"; + this.count2.Name = "count2"; + this.count2.Width = 40; + // + // Book_name2 + // + this.Book_name2.HeaderText = "도서명"; + this.Book_name2.Name = "Book_name2"; + this.Book_name2.Width = 250; + // + // Book_comp2 + // + this.Book_comp2.HeaderText = "출판사"; + this.Book_comp2.Name = "Book_comp2"; + // + // author2 + // + this.author2.HeaderText = "저자"; + this.author2.Name = "author2"; + // + // pay2 + // + this.pay2.HeaderText = "단가"; + this.pay2.Name = "pay2"; + this.pay2.Width = 80; + // + // total2 + // + this.total2.HeaderText = "합계"; + this.total2.Name = "total2"; + this.total2.Width = 80; + // + // list_name2 + // + this.list_name2.HeaderText = "구분"; + this.list_name2.Name = "list_name2"; + // + // edasd + // + this.edasd.HeaderText = "비고"; + this.edasd.Name = "edasd"; + // + // order2 + // + this.order2.HeaderText = "주문처명"; + this.order2.Name = "order2"; + this.order2.Width = 90; + // + // Column13 + // + this.Column13.HeaderText = "취소"; + this.Column13.Name = "Column13"; + this.Column13.Width = 45; + // + // isbn2 + // + this.isbn2.HeaderText = "isbn"; + this.isbn2.Name = "isbn2"; + this.isbn2.Visible = false; + // + // Date + // + this.Date.HeaderText = "입고시간"; + this.Date.Name = "Date"; + this.Date.Visible = false; + // // Purchase // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -1061,33 +1077,7 @@ private System.Windows.Forms.Label lbl_grid3; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label lbl_pay; - private System.Windows.Forms.DataGridViewTextBoxColumn num2; - private System.Windows.Forms.DataGridViewTextBoxColumn count2; - private System.Windows.Forms.DataGridViewTextBoxColumn Book_name2; - private System.Windows.Forms.DataGridViewTextBoxColumn Book_comp2; - private System.Windows.Forms.DataGridViewTextBoxColumn author2; - private System.Windows.Forms.DataGridViewTextBoxColumn pay2; - private System.Windows.Forms.DataGridViewTextBoxColumn total2; - private System.Windows.Forms.DataGridViewTextBoxColumn list_name2; - private System.Windows.Forms.DataGridViewTextBoxColumn edasd; - private System.Windows.Forms.DataGridViewTextBoxColumn order2; - private System.Windows.Forms.DataGridViewButtonColumn Column13; - private System.Windows.Forms.DataGridViewTextBoxColumn isbn2; - private System.Windows.Forms.DataGridViewTextBoxColumn Date; private System.Windows.Forms.Label lbl_inven_count; - private System.Windows.Forms.DataGridViewTextBoxColumn num; - private System.Windows.Forms.DataGridViewTextBoxColumn count; - private System.Windows.Forms.DataGridViewTextBoxColumn book_name; - private System.Windows.Forms.DataGridViewTextBoxColumn book_comp; - private System.Windows.Forms.DataGridViewTextBoxColumn author; - private System.Windows.Forms.DataGridViewTextBoxColumn pay; - private System.Windows.Forms.DataGridViewTextBoxColumn total; - private System.Windows.Forms.DataGridViewTextBoxColumn list_name; - private System.Windows.Forms.DataGridViewTextBoxColumn etc; - private System.Windows.Forms.DataGridViewTextBoxColumn order; - private System.Windows.Forms.DataGridViewButtonColumn import; - private System.Windows.Forms.DataGridViewTextBoxColumn isbn; - private System.Windows.Forms.DataGridViewTextBoxColumn order_date; private System.Windows.Forms.Label label14; private System.Windows.Forms.Button load_tmplist; private System.Windows.Forms.DataGridViewTextBoxColumn isbn3; @@ -1104,5 +1094,33 @@ private System.Windows.Forms.DataGridViewTextBoxColumn Date3; private System.Windows.Forms.DataGridViewTextBoxColumn num3; private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.DataGridViewTextBoxColumn idx1; + private System.Windows.Forms.DataGridViewTextBoxColumn num; + private System.Windows.Forms.DataGridViewTextBoxColumn count; + private System.Windows.Forms.DataGridViewTextBoxColumn book_name; + private System.Windows.Forms.DataGridViewTextBoxColumn book_comp; + private System.Windows.Forms.DataGridViewTextBoxColumn author; + private System.Windows.Forms.DataGridViewTextBoxColumn pay; + private System.Windows.Forms.DataGridViewTextBoxColumn total; + private System.Windows.Forms.DataGridViewTextBoxColumn list_name; + private System.Windows.Forms.DataGridViewTextBoxColumn etc; + private System.Windows.Forms.DataGridViewTextBoxColumn order; + private System.Windows.Forms.DataGridViewButtonColumn import; + private System.Windows.Forms.DataGridViewTextBoxColumn isbn; + private System.Windows.Forms.DataGridViewTextBoxColumn order_date; + private System.Windows.Forms.DataGridViewTextBoxColumn idx2; + private System.Windows.Forms.DataGridViewTextBoxColumn num2; + private System.Windows.Forms.DataGridViewTextBoxColumn count2; + private System.Windows.Forms.DataGridViewTextBoxColumn Book_name2; + private System.Windows.Forms.DataGridViewTextBoxColumn Book_comp2; + private System.Windows.Forms.DataGridViewTextBoxColumn author2; + private System.Windows.Forms.DataGridViewTextBoxColumn pay2; + private System.Windows.Forms.DataGridViewTextBoxColumn total2; + private System.Windows.Forms.DataGridViewTextBoxColumn list_name2; + private System.Windows.Forms.DataGridViewTextBoxColumn edasd; + private System.Windows.Forms.DataGridViewTextBoxColumn order2; + private System.Windows.Forms.DataGridViewButtonColumn Column13; + private System.Windows.Forms.DataGridViewTextBoxColumn isbn2; + private System.Windows.Forms.DataGridViewTextBoxColumn Date; } } \ No newline at end of file diff --git a/unimarc/unimarc/납품관리/Purchase.cs b/unimarc/unimarc/납품관리/Purchase.cs index 235a05e..537a8cc 100644 --- a/unimarc/unimarc/납품관리/Purchase.cs +++ b/unimarc/unimarc/납품관리/Purchase.cs @@ -64,7 +64,7 @@ namespace WindowsFormsApp1.Delivery { dataGridView1.Rows.Clear(); string cmd, db_res; - string Area = "`header`, `num`, `count`, `book_name`, `book_comp`, " + + string Area = "`idx`, `header`, `num`, `count`, `book_name`, `book_comp`, " + "`author`, `pay`, `total`, `list_name`, `etc`, " + "`order`, `isbn`, `order_date`"; if (Name == "tb_clt" || Name == "tb_dly") { @@ -128,27 +128,28 @@ namespace WindowsFormsApp1.Delivery private void Insert_Grid(string db_data) { string[] data = db_data.Split('|'); - string[] add_data = {"", "", "", "", "", - "", "", "", "", "", - "입고", "", "" }; - /* 0 1 2 3 4 - * 5 6 7 8 9 - * 10 11 12 */ + string[] add_data = { "", "", "", "", "", + "", "", "", "", "", + "", "입고", "", "" }; + /* 0 1 2 3 4 + * 5 6 7 8 9 + * 10 11 12 13 */ for (int a = 0; a < data.Length; a++) { - if (a % 13 == 01) { add_data[00] = data[a - 1] + " " + data[a]; } - if (a % 13 == 02) { add_data[01] = data[a]; } - if (a % 13 == 03) { add_data[02] = data[a]; } - if (a % 13 == 04) { add_data[03] = data[a]; } - if (a % 13 == 05) { add_data[04] = data[a]; } - if (a % 13 == 06) { add_data[05] = data[a]; } - if (a % 13 == 07) { add_data[06] = data[a]; } - if (a % 13 == 08) { add_data[07] = data[a]; } - if (a % 13 == 09) { add_data[08] = data[a]; } - if (a % 13 == 10) { add_data[09] = data[a]; } - if (a % 13 == 11) { add_data[11] = data[a].Replace("\r", string.Empty); } - if (a % 13 == 12) { - add_data[12] = data[a]; + if (a % 14 == 00) { add_data[00] = data[a]; } + if (a % 14 == 02) { add_data[01] = data[a - 1] + " " + data[a]; } + if (a % 14 == 03) { add_data[02] = data[a]; } + if (a % 14 == 04) { add_data[03] = data[a]; } + if (a % 14 == 05) { add_data[04] = data[a]; } + if (a % 14 == 06) { add_data[05] = data[a]; } + if (a % 14 == 07) { add_data[06] = data[a]; } + if (a % 14 == 08) { add_data[07] = data[a]; } + if (a % 14 == 09) { add_data[08] = data[a]; } + if (a % 14 == 10) { add_data[09] = data[a]; } + if (a % 14 == 11) { add_data[10] = data[a].Replace("\r", string.Empty); } + if (a % 14 == 12) { add_data[12] = data[a]; } + if (a % 14 == 13) { + add_data[13] = data[a]; if (chk_order_book.Checked == true && data[a] != "") { dataGridView1.Rows.Add(add_data); } @@ -163,6 +164,7 @@ namespace WindowsFormsApp1.Delivery private string Book_Count() { int result = 0; + if (dataGridView1.Rows.Count < 0) { return "0"; } for (int a = 0; a < dataGridView1.Rows.Count; a++) { result += Convert.ToInt32(dataGridView1.Rows[a].Cells["count"].Value.ToString()); @@ -216,7 +218,7 @@ namespace WindowsFormsApp1.Delivery col = e.ColumnIndex; name = ((DataGridView)sender).Name; } - if (name == "dataGridView1" && col == 10) { + if (name == "dataGridView1" && col == 11) { if(tb_persent.Text == "") { MessageBox.Show("매입율을 작성해주세요."); tb_persent.Focus(); @@ -225,7 +227,7 @@ namespace WindowsFormsApp1.Delivery press_Grid1_Btn(row, col); } } - else if (name == "dataGridView2" && col == 10) { + else if (name == "dataGridView2" && col == 11) { press_Grid2_Btn(e); } else { @@ -384,12 +386,12 @@ namespace WindowsFormsApp1.Delivery } private void press_Grid1_Btn(int row, int col) { - /* 번호 수량 도서명 출판사 저자 - * 단가 합계 구분 비고 주문처명 - * btn취소 isbn 입고시간 */ + /* idx 번호 수량 도서명 출판사 + * 저자 단가 합계 구분 비고 + * 주문처명 btn취소 isbn 입고시간 */ string[] grid2 = {"", "", "", "", "", - "", "", "", "", "", - "취소", "", DateTime.Now.ToString("g")}; + "", "", "", "", "", + "", "취소", "", DateTime.Now.ToString("g")}; /* 번호 수량 도서명 출판사 저자 * 정가 매입율 합계 비고 구분 @@ -401,17 +403,17 @@ namespace WindowsFormsApp1.Delivery if(row < 0 || col < 0) { return; } - for(int a = 0; a < 10; a++) + for(int a = 0; a < 11; a++) { if(dataGridView1.Rows.Count <= 0) { return; } grid2[a] = dataGridView1.Rows[row].Cells[a].Value.ToString(); - if (a == 1) { + if (a == 2) { grid2[a] = "1"; } } - grid2[11] = dataGridView1.Rows[row].Cells[11].Value.ToString(); + grid2[12] = dataGridView1.Rows[row].Cells[12].Value.ToString(); Grid2Count(grid2, row, col); // 책 중복시 Grid3_Pay_Count(grid2[9]); @@ -533,21 +535,21 @@ namespace WindowsFormsApp1.Delivery } for (int a = 0; a < rowCount; a++) { - // 2: 도서명 / 3: 출판사 / 4: 저자 / 7: 구분 - if (mkgrid[2] == dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString() && - mkgrid[3] == dataGridView2.Rows[a].Cells["Book_comp2"].Value.ToString() && - mkgrid[4] == dataGridView2.Rows[a].Cells["author2"].Value.ToString() && - mkgrid[7] == dataGridView2.Rows[a].Cells["list_name2"].Value.ToString()) { + // 3: 도서명 / 4: 출판사 / 5: 저자 / 8: 구분 + if (mkgrid[3] == dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString() && + mkgrid[4] == dataGridView2.Rows[a].Cells["Book_comp2"].Value.ToString() && + mkgrid[5] == dataGridView2.Rows[a].Cells["author2"].Value.ToString() && + mkgrid[8] == dataGridView2.Rows[a].Cells["list_name2"].Value.ToString()) { string invenCount_tmp = dataGridView2.Rows[a].Cells[1].Value.ToString(); int invenCount = Convert.ToInt32(invenCount_tmp); invenCount++; chk = true; - int money = Convert.ToInt32(mkgrid[5]); + int money = Convert.ToInt32(mkgrid[6]); int totaltmp = invenCount * money; - mkgrid[6] = totaltmp.ToString(); + mkgrid[7] = totaltmp.ToString(); dataGridView2.Rows[a].Cells["count2"].Value = invenCount.ToString(); - dataGridView2.Rows[a].Cells["total2"].Value = mkgrid[6]; + dataGridView2.Rows[a].Cells["total2"].Value = mkgrid[7]; break; } } @@ -596,11 +598,12 @@ namespace WindowsFormsApp1.Delivery private void press_Grid2_Btn(DataGridViewCellEventArgs e) { string number = dataGridView2.Rows[e.RowIndex].Cells["num2"].Value.ToString(); - string Area = "`header`, `num`, `count`, `book_name`, `book_comp`, " + + string Area = "`idx`, `header`, `num`, `count`, `book_name`, `book_comp`, " + "`author`, `pay`, `total`, `list_name`, `etc`, " + - "`order`, `order_date`"; - string[] Table = { "book_name", "book_comp", "author", "list_name" }; - string[] Data = { dataGridView2.Rows[e.RowIndex].Cells["book_name2"].Value.ToString(), + "`order`, `isbn`, `order_date`"; + string[] Table = { "idx", "book_name", "book_comp", "author", "list_name" }; + string[] Data = { dataGridView2.Rows[e.RowIndex].Cells["idx2"].Value.ToString(), + dataGridView2.Rows[e.RowIndex].Cells["book_name2"].Value.ToString(), dataGridView2.Rows[e.RowIndex].Cells["book_comp2"].Value.ToString(), dataGridView2.Rows[e.RowIndex].Cells["author2"].Value.ToString(), dataGridView2.Rows[e.RowIndex].Cells["list_name2"].Value.ToString() }; @@ -636,8 +639,9 @@ namespace WindowsFormsApp1.Delivery private void btn_save_Click(object sender, EventArgs e) { for(int a = 0; a < dataGridView2.Rows.Count; a++) { - string[] search_Col = { "book_name", "book_comp", "author", "list_name" }; + string[] search_Col = { "idx", "book_name", "book_comp", "author", "list_name" }; string[] search_Data = { + dataGridView2.Rows[a].Cells["idx2"].Value.ToString(), dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString(), dataGridView2.Rows[a].Cells["Book_comp2"].Value.ToString(), dataGridView2.Rows[a].Cells["author2"].Value.ToString(), @@ -667,6 +671,7 @@ namespace WindowsFormsApp1.Delivery for (int a = 0; a < dataGridView2.Rows.Count; a++) { string[] grid2 = { + dataGridView2.Rows[a].Cells["idx2"].Value.ToString(), // 인덱스 dataGridView2.Rows[a].Cells["num2"].Value.ToString(), // 번호 dataGridView2.Rows[a].Cells["count2"].Value.ToString(), // 수량 dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString(), // 도서명 @@ -680,8 +685,8 @@ namespace WindowsFormsApp1.Delivery dataGridView2.Rows[a].Cells["Date"].Value.ToString() // 입고시간 }; - string[] Search_col = { "compidx", "book_name", "book_comp", "author", "list_name" }; - string[] Search_data = { compidx, grid2[2], grid2[3], grid2[4], grid2[7] }; + string[] Search_col = { "compidx", "idx", "book_name", "book_comp", "author", "list_name" }; + string[] Search_data = { compidx, grid2[0], grid2[2], grid2[3], grid2[4], grid2[7] }; string cmd = db.More_DB_Search("Obj_List_Book", Search_col, Search_data, "`count`"); string db_res = db.DB_Send_CMD_Search(cmd); @@ -723,8 +728,9 @@ namespace WindowsFormsApp1.Delivery string[] Edit_Col = { "etc", "import" }; string[] Edit_Data = { res.ToString(), "미입고" }; - string[] Search_Name = { "compidx", "book_name", "author", "book_comp", "list_name" }; + string[] Search_Name = { "compidx", "idx", "book_name", "author", "book_comp", "list_name" }; string[] Search_Data = { compidx, + dataGridView2.Rows[row].Cells["idx2"].Value.ToString(), dataGridView2.Rows[row].Cells["Book_name2"].Value.ToString(), dataGridView2.Rows[row].Cells["author2"].Value.ToString(), dataGridView2.Rows[row].Cells["Book_comp2"].Value.ToString(), diff --git a/unimarc/unimarc/납품관리/Purchase.resx b/unimarc/unimarc/납품관리/Purchase.resx index f59655f..91b9b10 100644 --- a/unimarc/unimarc/납품관리/Purchase.resx +++ b/unimarc/unimarc/납품관리/Purchase.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + True @@ -156,6 +159,9 @@ True + + True + True diff --git a/unimarc/unimarc/마크/Check_Copy_Sub_List.Designer.cs b/unimarc/unimarc/마크/Check_Copy_Sub_List.Designer.cs new file mode 100644 index 0000000..b2bbe34 --- /dev/null +++ b/unimarc/unimarc/마크/Check_Copy_Sub_List.Designer.cs @@ -0,0 +1,176 @@ + +namespace UniMarc.마크 +{ + partial class Check_Copy_Sub_List + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.cb_Stat = new System.Windows.Forms.ComboBox(); + this.cb_Years = new System.Windows.Forms.ComboBox(); + this.btn_Select = new System.Windows.Forms.Button(); + this.btn_Close = new System.Windows.Forms.Button(); + this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); + this.SuspendLayout(); + // + // dataGridView1 + // + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = false; + 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.list_name, + this.list_date}); + this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView1.Location = new System.Drawing.Point(0, 0); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.ReadOnly = true; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(436, 186); + this.dataGridView1.TabIndex = 1; + this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); + this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); + // + // panel1 + // + this.panel1.Controls.Add(this.btn_Close); + this.panel1.Controls.Add(this.btn_Select); + this.panel1.Controls.Add(this.cb_Years); + this.panel1.Controls.Add(this.cb_Stat); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(436, 32); + this.panel1.TabIndex = 2; + // + // panel2 + // + this.panel2.Controls.Add(this.dataGridView1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 32); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(436, 186); + this.panel2.TabIndex = 3; + // + // cb_Stat + // + this.cb_Stat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_Stat.FormattingEnabled = true; + this.cb_Stat.Location = new System.Drawing.Point(6, 6); + this.cb_Stat.Name = "cb_Stat"; + this.cb_Stat.Size = new System.Drawing.Size(64, 20); + this.cb_Stat.TabIndex = 0; + this.cb_Stat.SelectedIndexChanged += new System.EventHandler(this.cb_Stat_SelectedIndexChanged); + // + // cb_Years + // + this.cb_Years.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_Years.FormattingEnabled = true; + this.cb_Years.Location = new System.Drawing.Point(76, 6); + this.cb_Years.Name = "cb_Years"; + this.cb_Years.Size = new System.Drawing.Size(99, 20); + this.cb_Years.TabIndex = 0; + // + // btn_Select + // + this.btn_Select.Location = new System.Drawing.Point(253, 5); + this.btn_Select.Name = "btn_Select"; + this.btn_Select.Size = new System.Drawing.Size(75, 23); + this.btn_Select.TabIndex = 1; + this.btn_Select.Text = "선 택"; + this.btn_Select.UseVisualStyleBackColor = true; + this.btn_Select.Click += new System.EventHandler(this.btn_Select_Click); + // + // btn_Close + // + this.btn_Close.Location = new System.Drawing.Point(331, 5); + this.btn_Close.Name = "btn_Close"; + this.btn_Close.Size = new System.Drawing.Size(75, 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); + // + // list_name + // + this.list_name.HeaderText = "목록명"; + this.list_name.Name = "list_name"; + this.list_name.ReadOnly = true; + this.list_name.Width = 250; + // + // list_date + // + this.list_date.HeaderText = "목록일자"; + this.list_date.Name = "list_date"; + this.list_date.ReadOnly = true; + this.list_date.Width = 120; + // + // Check_Copy_Sub_List + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(436, 218); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel1); + this.Name = "Check_Copy_Sub_List"; + this.Text = "목록 검색"; + this.Load += new System.EventHandler(this.Check_Copy_Sub_List_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.panel1.ResumeLayout(false); + this.panel2.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.ComboBox cb_Years; + private System.Windows.Forms.ComboBox cb_Stat; + private System.Windows.Forms.Button btn_Close; + private System.Windows.Forms.Button btn_Select; + private System.Windows.Forms.DataGridViewTextBoxColumn list_name; + private System.Windows.Forms.DataGridViewTextBoxColumn list_date; + } +} \ No newline at end of file diff --git a/unimarc/unimarc/마크/Check_Copy_Sub_List.cs b/unimarc/unimarc/마크/Check_Copy_Sub_List.cs new file mode 100644 index 0000000..693598d --- /dev/null +++ b/unimarc/unimarc/마크/Check_Copy_Sub_List.cs @@ -0,0 +1,145 @@ +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; +using WindowsFormsApp1.Mac; + +namespace UniMarc.마크 +{ + public partial class Check_Copy_Sub_List : Form + { + Helper_DB db = new Helper_DB(); + Check_copy cc; + public Check_Copy_Sub_List(Check_copy _cc) + { + InitializeComponent(); + cc = _cc; + } + + private void Check_Copy_Sub_List_Load(object sender, EventArgs e) + { + Init(); + } + + void Init() + { + db.DBcon(); + cb_Stat.Items.Add("진행"); + cb_Stat.Items.Add("완료"); + cb_Stat.SelectedItem = "진행"; + + int basic = 2020; + int Iyears = DateTime.Now.Year; + + while (basic <= Iyears) + { + cb_Years.Items.Add(basic); + basic++; + } + cb_Years.SelectedItem = Iyears.ToString(); + } + + private void cb_Stat_SelectedIndexChanged(object sender, EventArgs e) + { + if (cb_Stat.SelectedItem.ToString() == "완료") + cb_Years.Visible = true; + else + cb_Years.Visible = false; + + TakeData(); + } + + void TakeData() + { + dataGridView1.Rows.Clear(); + + string Area = "`work_list`, `date`"; + string compidx = Properties.Settings.Default.compidx; + string stat = cb_Stat.Text; + string cmd = ""; + + if (cb_Years.Visible) + cmd = String.Format("SELECT {0} FROM `Specs_List` WHERE `compidx` = '{1}' AND `state` = '{2}';", + Area, compidx, stat); + else + cmd = String.Format("SELECT {0} FROM `Specs_List` WHERE `compidx` = '{1}' AND `state` = '{2}' AND `date` LIKE '{3}%';", + Area, compidx, stat, cb_Years.Text); + + MakeGrid(db.self_Made_Cmd(cmd)); + } + + void MakeGrid(string Qurey) + { + string[] ary = Qurey.Split('|'); + + string[] grid = { "", "" }; + + for (int a = 0; a < ary.Length; a++) + { + if (a % 2 == 0) { grid[0] = ary[a]; } + if (a % 2 == 1) { grid[1] = ary[a];dataGridView1.Rows.Add(grid); } + } + + } + + private void btn_Select_Click(object sender, EventArgs e) + { + int row = dataGridView1.CurrentRow.Index; + list_Select(row); + } + + private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int row = e.RowIndex; + list_Select(row); + } + + private void dataGridView1_KeyDown(object sender, KeyEventArgs e) + { + if(e.KeyCode == Keys.Enter) { + int row = dataGridView1.CurrentRow.Index; + list_Select(row); + } + } + + void list_Select(int row) + { + string compidx = Properties.Settings.Default.compidx; + string list_name = dataGridView1.Rows[row].Cells["list_name"].Value.ToString(); + string list_date = dataGridView1.Rows[row].Cells["list_date"].Value.ToString(); + + string area = "`book_name`, `book_comp`"; + string[] search_col = { "compidx", "work_list", "date" }; + string[] search_data = { compidx, list_name, list_date }; + + string cmd = db.More_DB_Search("Specs_Marc", search_col, search_data, area); + Result(db.DB_Send_CMD_Search(cmd)); + cc.btn_SearchList.Text = list_name; + this.Close(); + } + + void Result(string query) + { + string[] ary = query.Split('|'); + + string[] grid = { "", "", "" }; + for(int a= 0; a < ary.Length; a++) + { + if (a % 2 == 0) { grid[0] = ary[a]; } + if (a % 2 == 1) { grid[1] = ary[a]; cc.dataGridView1.Rows.Add(grid); } + } + } + + private void btn_Close_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/unimarc/unimarc/마크/Check_Copy_Sub_List.resx b/unimarc/unimarc/마크/Check_Copy_Sub_List.resx new file mode 100644 index 0000000..1413116 --- /dev/null +++ b/unimarc/unimarc/마크/Check_Copy_Sub_List.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + \ No newline at end of file diff --git a/unimarc/unimarc/마크/Check_Copy_Sub_Search.Designer.cs b/unimarc/unimarc/마크/Check_Copy_Sub_Search.Designer.cs new file mode 100644 index 0000000..72db2c5 --- /dev/null +++ b/unimarc/unimarc/마크/Check_Copy_Sub_Search.Designer.cs @@ -0,0 +1,129 @@ + +namespace UniMarc.마크 +{ + partial class Check_Copy_Sub_Search + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.Province = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Area = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.lib_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Code = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.URL = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // dataGridView1 + // + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = false; + 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.Province, + this.Area, + this.lib_name, + this.Code, + this.URL}); + this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView1.Location = new System.Drawing.Point(0, 0); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.ReadOnly = true; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(411, 213); + this.dataGridView1.TabIndex = 0; + this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); + this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); + this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); + // + // Province + // + this.Province.HeaderText = "Province"; + this.Province.Name = "Province"; + this.Province.ReadOnly = true; + this.Province.Visible = false; + // + // Area + // + this.Area.HeaderText = "Area"; + this.Area.Name = "Area"; + this.Area.ReadOnly = true; + this.Area.Visible = false; + // + // lib_name + // + this.lib_name.HeaderText = "도서관명"; + this.lib_name.Name = "lib_name"; + this.lib_name.ReadOnly = true; + this.lib_name.Width = 350; + // + // Code + // + this.Code.HeaderText = "Code"; + this.Code.Name = "Code"; + this.Code.ReadOnly = true; + this.Code.Visible = false; + // + // URL + // + this.URL.HeaderText = "URL"; + this.URL.Name = "URL"; + this.URL.ReadOnly = true; + this.URL.Visible = false; + // + // Check_Copy_Sub_Search + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(411, 213); + this.Controls.Add(this.dataGridView1); + this.Name = "Check_Copy_Sub_Search"; + this.Text = "도서관 검색"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.DataGridViewTextBoxColumn Province; + private System.Windows.Forms.DataGridViewTextBoxColumn Area; + private System.Windows.Forms.DataGridViewTextBoxColumn lib_name; + private System.Windows.Forms.DataGridViewTextBoxColumn Code; + private System.Windows.Forms.DataGridViewTextBoxColumn URL; + } +} \ No newline at end of file diff --git a/unimarc/unimarc/마크/Check_Copy_Sub_Search.cs b/unimarc/unimarc/마크/Check_Copy_Sub_Search.cs new file mode 100644 index 0000000..f0db5aa --- /dev/null +++ b/unimarc/unimarc/마크/Check_Copy_Sub_Search.cs @@ -0,0 +1,81 @@ +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; +using WindowsFormsApp1.Mac; + +namespace UniMarc.마크 +{ + public partial class Check_Copy_Sub_Search : Form + { + Check_copy cc; + public Check_Copy_Sub_Search(Check_copy _cc) + { + InitializeComponent(); + cc = _cc; + } + + public void Init(string[] ary, string SearchText) + { + this.Text = string.Format("검색어 : [{0}]", SearchText); + + // Province, Area, lib_name, Code + string[] grid = { "", "", "", "", "" }; + for (int a = 0; a < ary.Length; a++) + { + if (a % 5 == 0) grid[0] = ary[a]; + if (a % 5 == 1) grid[1] = ary[a]; + if (a % 5 == 2) grid[2] = string.Format("{0}_{1}_{2}", grid[0], grid[1], ary[a]); + if (a % 5 == 3) grid[3] = ary[a]; + if (a % 5 == 4) { + grid[4] = ary[a]; + dataGridView1.Rows.Add(grid); + } + } + } + + private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + Skill_Grid sg = new Skill_Grid(); + sg.Print_Grid_Num(sender, e); + } + + private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int row = e.RowIndex; + SetCode(row); + this.Close(); + } + + private void dataGridView1_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + int row = dataGridView1.CurrentRow.Index; + SetCode(row); + this.Close(); + } + } + + void SetCode(int row) + { + string Province = dataGridView1.Rows[row].Cells["Province"].Value.ToString(); + string Area = dataGridView1.Rows[row].Cells["Area"].Value.ToString(); + string Code = dataGridView1.Rows[row].Cells["Code"].Value.ToString(); + string URL = dataGridView1.Rows[row].Cells["URL"].Value.ToString(); + + string lib_Category = string.Format("{0}_{1}", Province, Area); + + cc.lib_Category = lib_Category; + cc.Code = Code; + cc.URL = URL; + cc.tb_SearchTarget.Text = dataGridView1.Rows[row].Cells["lib_name"].Value.ToString(); + } + } +} diff --git a/unimarc/unimarc/마크/Check_Copy_Sub_Search.resx b/unimarc/unimarc/마크/Check_Copy_Sub_Search.resx new file mode 100644 index 0000000..95816b3 --- /dev/null +++ b/unimarc/unimarc/마크/Check_Copy_Sub_Search.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/unimarc/unimarc/마크/Check_copy.Designer.cs b/unimarc/unimarc/마크/Check_copy.Designer.cs index 1e6a6c7..5e00660 100644 --- a/unimarc/unimarc/마크/Check_copy.Designer.cs +++ b/unimarc/unimarc/마크/Check_copy.Designer.cs @@ -28,33 +28,216 @@ /// private void InitializeComponent() { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + this.panel1 = new System.Windows.Forms.Panel(); + 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.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.SearchCount)).BeginInit(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // + // panel1 + // + this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel1.Controls.Add(this.SearchCount); + this.panel1.Controls.Add(this.btn_Close); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this.tb_SearchTarget); + this.panel1.Controls.Add(this.label1); + this.panel1.Location = new System.Drawing.Point(12, 12); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(642, 34); + this.panel1.TabIndex = 0; + // + // SearchCount + // + this.SearchCount.Location = new System.Drawing.Point(436, 6); + this.SearchCount.Maximum = new decimal(new int[] { + 500, + 0, + 0, + 0}); + this.SearchCount.Name = "SearchCount"; + this.SearchCount.Size = new System.Drawing.Size(67, 21); + this.SearchCount.TabIndex = 2; + this.SearchCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // btn_Close + // + this.btn_Close.Location = new System.Drawing.Point(561, 4); + this.btn_Close.Name = "btn_Close"; + this.btn_Close.Size = new System.Drawing.Size(75, 24); + this.btn_Close.TabIndex = 2; + this.btn_Close.Text = "닫 기"; + this.btn_Close.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(384, 10); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(45, 12); + this.label2.TabIndex = 0; + this.label2.Text = "검색 수"; + // + // tb_SearchTarget + // + this.tb_SearchTarget.Location = new System.Drawing.Point(73, 6); + this.tb_SearchTarget.Name = "tb_SearchTarget"; + this.tb_SearchTarget.Size = new System.Drawing.Size(294, 21); + this.tb_SearchTarget.TabIndex = 1; + this.tb_SearchTarget.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_SearchTarget_KeyDown); + // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(371, 219); + this.label1.Location = new System.Drawing.Point(15, 10); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(107, 12); - this.label1.TabIndex = 5; - this.label1.Text = "마크관리_복본조사"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "검색대상"; + // + // panel2 + // + this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel2.Controls.Add(this.btn_SearchList); + this.panel2.Controls.Add(this.btn_Stop); + this.panel2.Controls.Add(this.btn_Start); + this.panel2.Location = new System.Drawing.Point(12, 52); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(642, 34); + this.panel2.TabIndex = 0; + // + // btn_SearchList + // + this.btn_SearchList.Location = new System.Drawing.Point(11, 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(561, 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(480, 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; + 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, + this.book_comp, + this.Count}); + this.dataGridView1.Location = new System.Drawing.Point(13, 93); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(641, 627); + this.dataGridView1.TabIndex = 1; + this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); + this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); + // + // 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.Location = new System.Drawing.Point(661, 12); + this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); + this.webBrowser1.Name = "webBrowser1"; + this.webBrowser1.ScriptErrorsSuppressed = true; + this.webBrowser1.Size = new System.Drawing.Size(679, 708); + this.webBrowser1.TabIndex = 2; // // Check_copy // 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(1352, 732); + this.Controls.Add(this.webBrowser1); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel1); this.Name = "Check_copy"; - this.Text = "Check_copy"; + this.Text = "복본조사"; + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.SearchCount)).EndInit(); + this.panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); this.ResumeLayout(false); - this.PerformLayout(); } #endregion + private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.NumericUpDown SearchCount; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btn_Close; + 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; } } \ No newline at end of file diff --git a/unimarc/unimarc/마크/Check_copy.cs b/unimarc/unimarc/마크/Check_copy.cs index 7144696..bbe7ff0 100644 --- a/unimarc/unimarc/마크/Check_copy.cs +++ b/unimarc/unimarc/마크/Check_copy.cs @@ -5,18 +5,556 @@ using System.Data; using System.Drawing; using System.Linq; using System.Text; +using System.Text.RegularExpressions; using System.Threading.Tasks; +using System.Web; using System.Windows.Forms; +using UniMarc.마크; namespace WindowsFormsApp1.Mac { public partial class Check_copy : Form { + Helper_DB db = new Helper_DB(); + string compidx; + public string URL; + public string lib_Category; + public string Code; Main main; public Check_copy(Main _main) { InitializeComponent(); main = _main; + compidx = main.com_idx; + db.DBcon(); + } + + private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + Skill_Grid sg = new Skill_Grid(); + sg.Print_Grid_Num(sender, e); + } + + private void tb_SearchTarget_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + string Target = tb_SearchTarget.Text; + if (Target == "") { MessageBox.Show("도서관명이 비어있습니다."); return; } + + string area = "`Province`, `Area`, `LibName`, `Code`, `URL`"; + string cmd = string.Format("SELECT {0} FROM `lib_CopyCheck` WHERE `LibName` LIKE '%{1}%';", area, Target); + string data = db.self_Made_Cmd(cmd); + string[] ary = data.Split('|'); + Check_Copy_Sub_Search ccs = new Check_Copy_Sub_Search(this); + ccs.Init(ary, Target); + ccs.Show(); + } + } + + private void btn_SearchList_Click(object sender, EventArgs e) + { + Check_Copy_Sub_List cl = new Check_Copy_Sub_List(this); + cl.Show(); + } + + private void dataGridView1_KeyDown(object sender, KeyEventArgs e) + { + Skill_Grid sg = new Skill_Grid(); + sg.Excel_to_DataGridView(sender, e); + } + + private void btn_Start_Click(object sender, EventArgs e) + { + for (int a = 0; a < dataGridView1.Rows.Count - 1; a++) + { + dataGridView1.Rows[a].Cells["Count"].Value = + CopyCount(dataGridView1.Rows[a].Cells["book_name"].Value.ToString()); + } + } + + public string CopyCount(string Text) + { + string result = ""; + + string[] Detail = lib_Category.Split('_'); + switch (Detail[0]) + { + case "광주": + result = 광주(Detail[1], Text); + break; + case "전남": + result = 전남(Detail[1], Text); + break; + default: + break; + } + return result; + } + + #region 광주 + string 광주(string detail, string Text) + { + string result = ""; + switch (detail) + { + case "시립": + result = 광주시립(Text); + break; + case "교육청": + result = 광주교육청(Text); + break; + case "동구": + break; + case "서구": + break; + case "남구": + result = 광주남구(Text); + break; + case "북구": + result = 광주북구(Text); + break; + case "광산구": + result = 광주광산구(Text); + break; + default: + break; + } + return result; + } + + string 광주시립(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + + Delay(3000); + webBrowser1.Document.GetElementById("searchKeyword").SetAttribute("value", text); + + webBrowser1.Document.GetElementById("libCode").SetAttribute("value", Code); + + HtmlElementCollection button = webBrowser1.Document.GetElementsByTagName("button"); + foreach (HtmlElement SearchButton in button) + { + if (SearchButton.InnerText == "검색") + SearchButton.InvokeMember("click"); + } + Delay(1500); + + HtmlElementCollection hecDiv = webBrowser1.Document.GetElementsByTagName("div"); + foreach (HtmlElement heDiv in hecDiv) + { + if (heDiv.GetAttribute("className").IndexOf("srch_info") > -1) + { + HtmlElementCollection hecLi = heDiv.GetElementsByTagName("span"); + foreach (HtmlElement heLi in hecLi) + { + if (heLi.GetAttribute("className").IndexOf("heighlight") > -1) + { + result = heLi.InnerText; + break; + } + } + } + } + return result; + } + + private string 광주교육청(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(3000); + + webBrowser1.Document.GetElementById("manage_code").SetAttribute("value", Code); + + webBrowser1.Document.GetElementById("search_txt").SetAttribute("value", text); + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("input")) + { + if (Btn.GetAttribute("id").IndexOf("search_txt") > -1) + Btn.SetAttribute("value", text); + if (Btn.GetAttribute("className").IndexOf("btn-search") > -1) + Btn.InvokeMember("click"); + } + Delay(5000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("span"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.InnerText.IndexOf("전체") > -1) + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + } + } + + return result; + } + + private string 광주남구(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(13000); + + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) + { + if (he.GetAttribute("id").IndexOf(Code) > -1) + { + he.InvokeMember("click"); + } + } + + webBrowser1.Document.GetElementById("searchWord").SetAttribute("value", text); + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("input")) + { + if (Btn.GetAttribute("className").IndexOf("btn btn-search") > -1) + Btn.InvokeMember("click"); + } + Delay(5000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("strong"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.GetAttribute("className").IndexOf("cyan") > -1) + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + } + } + + return result; + } + + private string 광주북구(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(3000); + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) + { + if (he.Name.IndexOf("libCode") > -1) + { + if (!he.Id.Contains(Code)) + { + he.InvokeMember("click"); + } + } + } + webBrowser1.Document.GetElementById("searchSimple").SetAttribute("value", text); + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("button")) + { + if (Btn.GetAttribute("className").IndexOf("btn btn-lg") > -1) + Btn.InvokeMember("click"); + } + Delay(5000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("p"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.GetAttribute("className").IndexOf("totalCount") > -1) + { + if (heTd.TagName == "P") + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + } + } + } + + return result; + } + + private string 광주광산구(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(3000); + + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) + { + if (he.Name.IndexOf(Code) > -1) + { + he.InvokeMember("click"); + } + } + webBrowser1.Document.GetElementById("searchWord").SetAttribute("value", text); + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("input")) + { + if (Btn.GetAttribute("className").IndexOf("btn btn-search") > -1) + Btn.InvokeMember("click"); + } + Delay(5000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("strong"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.GetAttribute("className").IndexOf("cyan") > -1) + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + } + } + + return result; + } + #endregion + + #region 전남 + string 전남(string detail, string Text) + { + string result = ""; + switch (detail) + { + case "도립": + result = 전남도립(Text); + break; + case "교육청": + result = 전남교육청(Text); + break; + case "여수": + result = 전남여수(Text); + break; + case "고흥": + result = 전남고흥(Text); + break; + case "완도": + result = 전남완도(Text); + break; + case "진도": + result = 전남진도(Text); + break; + default: + break; + } + return result; + } + + private string 전남도립(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + + Delay(5000); + + webBrowser1.Document.GetElementById("value1").SetAttribute("value", text); + + HtmlElementCollection hBtn = webBrowser1.Document.GetElementsByTagName("button"); + foreach (HtmlElement Btn in hBtn) + { + if (Btn.InnerText == "검색") + Btn.InvokeMember("click"); + } + Delay(1500); + + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("font")) + { + result = Regex.Replace(he.InnerText, @"\D", ""); + } + return result; + } + + private string 전남교육청(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(5000); + + string msg = ""; + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) + { + if (he.Id != null && he.Id.IndexOf(Code) > -1) + { + he.InvokeMember("click"); + } + if (he.Name.IndexOf("searchWordText") > -1) + { + he.SetAttribute("value", text); + } + } + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("input")) + { + if (Btn.GetAttribute("value") == "소장자료 검색") + Btn.InvokeMember("click"); + } + Delay(5000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("span"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.GetAttribute("className").IndexOf("txt_bold") > -1) + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + break; + } + } + + return result; + } + + private string 전남여수(string text) + { + string result = ""; + + text = HttpUtility.UrlEncode(text); + + string url = string.Format("https://yslib.yeosu.go.kr/dls_kapi/index.php?" + + "mod=wdDataSearch" + + "&act=searchResultList" + + "&facetManageCode={1}" + + "&searchWord={0}" + + "&dataSort=rk+desc", text, Code); + + webBrowser1.Navigate(url); + + Delay(8000); + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("strong")) + { + if (he.GetAttribute("className").IndexOf("cyan") > -1) + { + result = Regex.Replace(he.InnerText, @"\D", ""); + } + } + return result; + } + + private string 전남고흥(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(3000); + + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) + { + if (he.GetAttribute("id").IndexOf(Code) > -1) + { + he.InvokeMember("click"); + } + } + + webBrowser1.Document.GetElementById("query").SetAttribute("value", text); + + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("button")) + { + if (Btn.InnerText == "검색") + Btn.InvokeMember("click"); + } + Delay(3000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("p"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.GetAttribute("className").IndexOf("totalCount") > -1) + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + } + } + + return result; + } + + private string 전남완도(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(3000); + + webBrowser1.Document.GetElementById("value2").SetAttribute("value", text); + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("select")) + { + if (Btn.GetAttribute("name").IndexOf("local") > -1) + Btn.SetAttribute("value", Code); + } + + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("input")) + { + if (Btn.GetAttribute("type") == "image") + Btn.InvokeMember("click"); + } + + Delay(3000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("td"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.GetAttribute("alrign").IndexOf("left") > -1) + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + } + } + + return result; + } + + private string 전남진도(string text) + { + string result = ""; + + webBrowser1.Navigate(URL); + Delay(3000); + + string msg = ""; + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) + { + if (he.GetAttribute("value").IndexOf(Code) > -1) + { + he.InvokeMember("click"); + } + if (he.Name.IndexOf("query") > -1) + { + he.SetAttribute("value", text); + } + } + + foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("button")) + { + if (Btn.GetAttribute("className").IndexOf("btn btn-lg") > -1) + Btn.InvokeMember("click"); + } + Delay(5000); + + HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("p"); + foreach (HtmlElement heTd in hecTd) + { + if (heTd.GetAttribute("className").IndexOf("totalCount") > -1) + { + result = Regex.Replace(heTd.InnerText, @"\D", ""); + } + } + + return result; + } + + + #endregion + + /// + /// 지연시키는 함수 + /// + /// 1000 = 1초 + void Delay(int ms) + { + DateTime dateTimeNow = DateTime.Now; + TimeSpan duration = new TimeSpan(0, 0, 0, 0, ms); + DateTime dateTimeAdd = dateTimeNow.Add(duration); + while (dateTimeAdd >= dateTimeNow) + { + Application.DoEvents(); + dateTimeNow = DateTime.Now; + } + return; } } } diff --git a/unimarc/unimarc/마크/Check_copy.resx b/unimarc/unimarc/마크/Check_copy.resx index 1af7de1..e5d7bca 100644 --- a/unimarc/unimarc/마크/Check_copy.resx +++ b/unimarc/unimarc/마크/Check_copy.resx @@ -117,4 +117,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + + + True + + + True + \ No newline at end of file diff --git a/unimarc/unimarc/마크/DLS_Manage.Designer.cs b/unimarc/unimarc/마크/DLS_Manage.Designer.cs new file mode 100644 index 0000000..3cfd001 --- /dev/null +++ b/unimarc/unimarc/마크/DLS_Manage.Designer.cs @@ -0,0 +1,123 @@ + +namespace UniMarc.마크 +{ + partial class DLS_Manage + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_ImageDown = new System.Windows.Forms.Button(); + this.panel1 = new System.Windows.Forms.Panel(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.webBrowser1 = new System.Windows.Forms.WebBrowser(); + this.panel2 = new System.Windows.Forms.Panel(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel3.SuspendLayout(); + this.SuspendLayout(); + // + // btn_ImageDown + // + this.btn_ImageDown.Location = new System.Drawing.Point(854, 8); + this.btn_ImageDown.Name = "btn_ImageDown"; + this.btn_ImageDown.Size = new System.Drawing.Size(103, 27); + this.btn_ImageDown.TabIndex = 1; + this.btn_ImageDown.Text = "이미지다운"; + this.btn_ImageDown.UseVisualStyleBackColor = true; + this.btn_ImageDown.Click += new System.EventHandler(this.btn_ImageDown_Click); + // + // panel1 + // + this.panel1.Controls.Add(this.textBox1); + this.panel1.Controls.Add(this.btn_ImageDown); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(968, 42); + this.panel1.TabIndex = 4; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(450, 11); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(366, 21); + this.textBox1.TabIndex = 2; + // + // webBrowser1 + // + this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill; + this.webBrowser1.Location = new System.Drawing.Point(0, 0); + this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); + this.webBrowser1.Name = "webBrowser1"; + this.webBrowser1.Size = new System.Drawing.Size(968, 623); + this.webBrowser1.TabIndex = 0; + this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted); + // + // panel2 + // + this.panel2.Controls.Add(this.panel3); + this.panel2.Controls.Add(this.panel1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(968, 665); + this.panel2.TabIndex = 5; + // + // panel3 + // + this.panel3.Controls.Add(this.webBrowser1); + this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel3.Location = new System.Drawing.Point(0, 42); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(968, 623); + this.panel3.TabIndex = 5; + // + // DLS_Manage + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(968, 665); + this.Controls.Add(this.panel2); + this.Name = "DLS_Manage"; + this.Text = "DLS_Manage"; + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel3.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.Button btn_ImageDown; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.TextBox textBox1; + public System.Windows.Forms.WebBrowser webBrowser1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel panel3; + } +} \ No newline at end of file diff --git a/unimarc/unimarc/마크/DLS_Manage.cs b/unimarc/unimarc/마크/DLS_Manage.cs new file mode 100644 index 0000000..1a12ad3 --- /dev/null +++ b/unimarc/unimarc/마크/DLS_Manage.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace UniMarc.마크 +{ + public partial class DLS_Manage : Form + { + public DLS_Manage() + { + InitializeComponent(); + } + public WebBrowser Browser + { + get { return webBrowser1; } + } + + private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) + { + this.Text = webBrowser1.Url.ToString(); + if (webBrowser1.Url.ToString() == "about:blank") + this.Close(); + } + + private void btn_ImageDown_Click(object sender, EventArgs e) + { + string isbn = ""; + foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) + { + if (he.Id == "isbn_issn") + isbn = he.GetAttribute("value"); + } + if (isbn == "") return; + string isbn3 = isbn.Substring(10); + string url = string.Format("http://image.kyobobook.co.kr/images/book/xlarge/{0}/x{1}.jpg", isbn3, isbn); + textBox1.Text = url; + } + } +} diff --git a/unimarc/unimarc/마크/DLS_Manage.resx b/unimarc/unimarc/마크/DLS_Manage.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/unimarc/unimarc/마크/DLS_Manage.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/unimarc/unimarc/마크/Input_DLS.Designer.cs b/unimarc/unimarc/마크/Input_DLS.Designer.cs index 56af44e..d28d297 100644 --- a/unimarc/unimarc/마크/Input_DLS.Designer.cs +++ b/unimarc/unimarc/마크/Input_DLS.Designer.cs @@ -28,19 +28,140 @@ /// private void InitializeComponent() { + this.panel2 = new System.Windows.Forms.Panel(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.webBrowser1 = new System.Windows.Forms.WebBrowser(); + this.panel1 = new System.Windows.Forms.Panel(); + this.btn_Close = new System.Windows.Forms.Button(); + this.btn_Go = new System.Windows.Forms.Button(); + this.tb_URL = new System.Windows.Forms.TextBox(); + this.btn_Forward = new System.Windows.Forms.Button(); + this.btn_Back = new System.Windows.Forms.Button(); + this.panel2.SuspendLayout(); + this.panel1.SuspendLayout(); this.SuspendLayout(); // + // panel2 + // + this.panel2.Controls.Add(this.richTextBox1); + this.panel2.Controls.Add(this.webBrowser1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 36); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1152, 612); + this.panel2.TabIndex = 5; + // + // richTextBox1 + // + this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.richTextBox1.Location = new System.Drawing.Point(0, 580); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(1152, 32); + this.richTextBox1.TabIndex = 1; + this.richTextBox1.Text = ""; + // + // webBrowser1 + // + this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill; + this.webBrowser1.Location = new System.Drawing.Point(0, 0); + this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); + this.webBrowser1.Name = "webBrowser1"; + this.webBrowser1.ScriptErrorsSuppressed = true; + this.webBrowser1.Size = new System.Drawing.Size(1152, 612); + this.webBrowser1.TabIndex = 0; + this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted); + this.webBrowser1.NewWindow += new System.ComponentModel.CancelEventHandler(this.webBrowser1_NewWindow); + // + // panel1 + // + this.panel1.Controls.Add(this.btn_Close); + this.panel1.Controls.Add(this.btn_Go); + this.panel1.Controls.Add(this.tb_URL); + this.panel1.Controls.Add(this.btn_Forward); + this.panel1.Controls.Add(this.btn_Back); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1152, 36); + this.panel1.TabIndex = 4; + // + // btn_Close + // + this.btn_Close.Location = new System.Drawing.Point(1065, 7); + this.btn_Close.Name = "btn_Close"; + this.btn_Close.Size = new System.Drawing.Size(75, 23); + this.btn_Close.TabIndex = 2; + this.btn_Close.Text = "닫기"; + this.btn_Close.UseVisualStyleBackColor = true; + this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click); + // + // btn_Go + // + this.btn_Go.Location = new System.Drawing.Point(981, 7); + this.btn_Go.Name = "btn_Go"; + this.btn_Go.Size = new System.Drawing.Size(75, 23); + this.btn_Go.TabIndex = 2; + this.btn_Go.Text = "이동"; + this.btn_Go.UseVisualStyleBackColor = true; + this.btn_Go.Click += new System.EventHandler(this.btn_Go_Click); + // + // tb_URL + // + this.tb_URL.Location = new System.Drawing.Point(124, 8); + this.tb_URL.Name = "tb_URL"; + this.tb_URL.Size = new System.Drawing.Size(851, 21); + this.tb_URL.TabIndex = 1; + this.tb_URL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_URL_KeyDown); + // + // btn_Forward + // + this.btn_Forward.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.btn_Forward.Location = new System.Drawing.Point(72, 6); + this.btn_Forward.Name = "btn_Forward"; + this.btn_Forward.Size = new System.Drawing.Size(46, 25); + this.btn_Forward.TabIndex = 0; + this.btn_Forward.Text = ">"; + this.btn_Forward.UseVisualStyleBackColor = true; + this.btn_Forward.Click += new System.EventHandler(this.btn_Forward_Click); + // + // btn_Back + // + this.btn_Back.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.btn_Back.Location = new System.Drawing.Point(12, 6); + this.btn_Back.Name = "btn_Back"; + this.btn_Back.Size = new System.Drawing.Size(46, 25); + this.btn_Back.TabIndex = 0; + this.btn_Back.Text = "<"; + this.btn_Back.UseVisualStyleBackColor = true; + this.btn_Back.Click += new System.EventHandler(this.btn_Back_Click); + // // Input_DLS // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); + this.ClientSize = new System.Drawing.Size(1152, 648); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel1); this.Name = "Input_DLS"; this.Text = "DLS_DLS입력"; + this.Load += new System.EventHandler(this.Input_DLS_Load); + this.panel2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); this.ResumeLayout(false); } #endregion + + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.WebBrowser webBrowser1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Button btn_Close; + private System.Windows.Forms.Button btn_Go; + private System.Windows.Forms.TextBox tb_URL; + private System.Windows.Forms.Button btn_Forward; + private System.Windows.Forms.Button btn_Back; } } \ No newline at end of file diff --git a/unimarc/unimarc/마크/Input_DLS.cs b/unimarc/unimarc/마크/Input_DLS.cs index b76bd54..2135eea 100644 --- a/unimarc/unimarc/마크/Input_DLS.cs +++ b/unimarc/unimarc/마크/Input_DLS.cs @@ -7,6 +7,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using UniMarc.마크; namespace WindowsFormsApp1.DLS { @@ -18,5 +19,111 @@ namespace WindowsFormsApp1.DLS InitializeComponent(); main = _main; } + + #region SHDocVw + SHDocVw.WebBrowser nativeBrowser; + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + nativeBrowser = (SHDocVw.WebBrowser)webBrowser1.ActiveXInstance; + nativeBrowser.NewWindow2 += nativeBrowser_NewWindow2; + } + + protected override void OnFormClosing(FormClosingEventArgs e) + { + nativeBrowser.NewWindow2 -= nativeBrowser_NewWindow2; + base.OnFormClosing(e); + } + + void nativeBrowser_NewWindow2(ref object ppDisp, ref bool Cancel) + { + var popup = new DLS_Manage(); + popup.Show(this); + ppDisp = popup.Browser.ActiveXInstance; + } + #endregion + + private void Input_DLS_Load(object sender, EventArgs e) + { + webBrowser1.Navigate("https://reading.jnei.go.kr/r/newReading/member/loginForm.jsp"); + Load_Search(); + } + + private void Load_Search() + { + string ID = "wolpyeong"; + string PW = "wp3906705*"; + Text = ID; + + Delay(1000); + + webBrowser1.Document.GetElementById("s_id").SetAttribute("value", ID); + webBrowser1.Document.GetElementById("s_pwd").SetAttribute("value", PW); + + HtmlElementCollection button = webBrowser1.Document.GetElementsByTagName("button"); + foreach (HtmlElement SearchButton in button) + { + if (SearchButton.Id == "s_login") + SearchButton.InvokeMember("click"); + } + + Delay(4000); + webBrowser1.Navigate("https://reading.jnei.go.kr/r/dls_new/loan/loan.jsp"); + } + + private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) + { + tb_URL.Text = webBrowser1.Url.AbsoluteUri; + this.Text = webBrowser1.DocumentText; + } + + private void btn_Back_Click(object sender, EventArgs e) + { + webBrowser1.GoBack(); + } + + private void btn_Forward_Click(object sender, EventArgs e) + { + webBrowser1.GoForward(); + } + + private void btn_Go_Click(object sender, EventArgs e) + { + string url = tb_URL.Text; + webBrowser1.Navigate(url); + } + + private void tb_URL_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + btn_Go_Click(null, null); + } + + private void btn_Close_Click(object sender, EventArgs e) + { + this.Close(); + } + + /// + /// 지연시키는 함수 + /// + /// 1000 = 1초 + void Delay(int ms) + { + DateTime dateTimeNow = DateTime.Now; + TimeSpan duration = new TimeSpan(0, 0, 0, 0, ms); + DateTime dateTimeAdd = dateTimeNow.Add(duration); + while (dateTimeAdd >= dateTimeNow) + { + Application.DoEvents(); + dateTimeNow = DateTime.Now; + } + return; + } + + private void webBrowser1_NewWindow(object sender, CancelEventArgs e) + { + + } } } diff --git a/unimarc/unimarc/마크/SHDocVw.cs b/unimarc/unimarc/마크/SHDocVw.cs new file mode 100644 index 0000000..f9d16eb --- /dev/null +++ b/unimarc/unimarc/마크/SHDocVw.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +// 추가 +using System.Security.Permissions; +using System.Runtime.InteropServices; +using System.Windows.Forms; + +namespace UniMarc.마크 +{ + public delegate void WebBrowserNewWindow2EventHandler(object sender, WebBrowserNewWindow2EventArgs e); + + public class WebBrowserNewWindow2EventArgs : EventArgs + { + public WebBrowserNewWindow2EventArgs(object ppDisp, bool cancel) + { + PpDisp = ppDisp; + Cancel = cancel; + } + public object PpDisp { get; set; } + public bool Cancel { get; set; } + } + + public class WebBrowserNewWindow2 : WebBrowser + { + private AxHost.ConnectionPointCookie _cookie; + private WebBrowser2EventHelper _helper; + + [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")] + protected override void CreateSink() + { + base.CreateSink(); + + _helper = new WebBrowser2EventHelper(this); + _cookie = new AxHost.ConnectionPointCookie(this.ActiveXInstance, _helper, typeof(DWebBrowserEvent2)); + } + + [PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")] + protected override void DetachSink() + { + if (_cookie != null) + { + _cookie.Disconnect(); + _cookie = null; + } + base.DetachSink(); + } + + public event WebBrowserNewWindow2EventHandler NewWindow2; + + private class WebBrowser2EventHelper : StandardOleMarshalObject, DWebBrowserEvent2 + { + private readonly WebBrowserNewWindow2 _parent; + + public WebBrowser2EventHelper(WebBrowserNewWindow2 parent) + { + _parent = parent; + } + public void NewWindow2(ref object pDisp, ref bool cancel) + { + WebBrowserNewWindow2EventArgs arg = new WebBrowserNewWindow2EventArgs(pDisp, cancel); + _parent.NewWindow2(this, arg); + if (pDisp != arg.PpDisp) + pDisp = arg.PpDisp; + if (cancel != arg.Cancel) + cancel = arg.Cancel; + } + } + [ComImport, Guid("34A715A0-6587-11D0-924A-0020AFC7AC4D"), + InterfaceType(ComInterfaceType.InterfaceIsIDispatch), + TypeLibType(TypeLibTypeFlags.FHidden)] + public interface DWebBrowserEvent2 + { + [DispId(0xfb)] + void NewWindow2( + [In, Out, MarshalAs(UnmanagedType.IDispatch)] ref object ppDisp, + [In, Out] ref bool cancel ); + } + } +} diff --git a/unimarc/unimarc/홈/Home_User_manage.Designer.cs b/unimarc/unimarc/홈/Home_User_manage.Designer.cs index d9a9e13..e43d33c 100644 --- a/unimarc/unimarc/홈/Home_User_manage.Designer.cs +++ b/unimarc/unimarc/홈/Home_User_manage.Designer.cs @@ -30,95 +30,6 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Home_User_manage)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel12 = new System.Windows.Forms.Panel(); - this.check20_2 = new System.Windows.Forms.CheckBox(); - this.check20_1 = new System.Windows.Forms.CheckBox(); - this.label37 = new System.Windows.Forms.Label(); - this.ALL_check2 = new System.Windows.Forms.CheckBox(); - this.ALL_check1 = new System.Windows.Forms.CheckBox(); - this.panel11 = new System.Windows.Forms.Panel(); - this.check10_2 = new System.Windows.Forms.CheckBox(); - this.check10_1 = new System.Windows.Forms.CheckBox(); - this.label36 = new System.Windows.Forms.Label(); - this.panel13 = new System.Windows.Forms.Panel(); - this.check19_2 = new System.Windows.Forms.CheckBox(); - this.check19_1 = new System.Windows.Forms.CheckBox(); - this.label38 = new System.Windows.Forms.Label(); - this.panel10 = new System.Windows.Forms.Panel(); - this.check9_2 = new System.Windows.Forms.CheckBox(); - this.check9_1 = new System.Windows.Forms.CheckBox(); - this.label35 = new System.Windows.Forms.Label(); - this.panel14 = new System.Windows.Forms.Panel(); - this.check18_2 = new System.Windows.Forms.CheckBox(); - this.check18_1 = new System.Windows.Forms.CheckBox(); - this.label39 = new System.Windows.Forms.Label(); - this.panel9 = new System.Windows.Forms.Panel(); - this.check8_2 = new System.Windows.Forms.CheckBox(); - this.check8_1 = new System.Windows.Forms.CheckBox(); - this.label34 = new System.Windows.Forms.Label(); - this.label27 = new System.Windows.Forms.Label(); - this.panel15 = new System.Windows.Forms.Panel(); - this.check17_2 = new System.Windows.Forms.CheckBox(); - this.check17_1 = new System.Windows.Forms.CheckBox(); - this.label40 = new System.Windows.Forms.Label(); - this.panel8 = new System.Windows.Forms.Panel(); - this.check7_2 = new System.Windows.Forms.CheckBox(); - this.check7_1 = new System.Windows.Forms.CheckBox(); - this.label33 = new System.Windows.Forms.Label(); - this.panel16 = new System.Windows.Forms.Panel(); - this.check16_2 = new System.Windows.Forms.CheckBox(); - this.check16_1 = new System.Windows.Forms.CheckBox(); - this.label41 = new System.Windows.Forms.Label(); - this.panel7 = new System.Windows.Forms.Panel(); - this.check6_2 = new System.Windows.Forms.CheckBox(); - this.check6_1 = new System.Windows.Forms.CheckBox(); - this.label32 = new System.Windows.Forms.Label(); - this.panel17 = new System.Windows.Forms.Panel(); - this.check15_2 = new System.Windows.Forms.CheckBox(); - this.check15_1 = new System.Windows.Forms.CheckBox(); - this.label42 = new System.Windows.Forms.Label(); - this.panel6 = new System.Windows.Forms.Panel(); - this.check5_2 = new System.Windows.Forms.CheckBox(); - this.check5_1 = new System.Windows.Forms.CheckBox(); - this.label31 = new System.Windows.Forms.Label(); - this.label26 = new System.Windows.Forms.Label(); - this.panel18 = new System.Windows.Forms.Panel(); - this.check14_2 = new System.Windows.Forms.CheckBox(); - this.check14_1 = new System.Windows.Forms.CheckBox(); - this.label43 = new System.Windows.Forms.Label(); - this.panel5 = new System.Windows.Forms.Panel(); - this.check4_2 = new System.Windows.Forms.CheckBox(); - this.check4_1 = new System.Windows.Forms.CheckBox(); - this.label30 = new System.Windows.Forms.Label(); - this.panel19 = new System.Windows.Forms.Panel(); - this.check13_2 = new System.Windows.Forms.CheckBox(); - this.check13_1 = new System.Windows.Forms.CheckBox(); - this.label44 = new System.Windows.Forms.Label(); - this.panel4 = new System.Windows.Forms.Panel(); - this.check3_2 = new System.Windows.Forms.CheckBox(); - this.check3_1 = new System.Windows.Forms.CheckBox(); - this.label29 = new System.Windows.Forms.Label(); - this.panel20 = new System.Windows.Forms.Panel(); - this.check12_2 = new System.Windows.Forms.CheckBox(); - this.check12_1 = new System.Windows.Forms.CheckBox(); - this.label45 = new System.Windows.Forms.Label(); - this.panel3 = new System.Windows.Forms.Panel(); - this.check2_2 = new System.Windows.Forms.CheckBox(); - this.check2_1 = new System.Windows.Forms.CheckBox(); - this.label28 = new System.Windows.Forms.Label(); - this.panel21 = new System.Windows.Forms.Panel(); - this.check11_2 = new System.Windows.Forms.CheckBox(); - this.check11_1 = new System.Windows.Forms.CheckBox(); - this.label46 = new System.Windows.Forms.Label(); - this.panel2 = new System.Windows.Forms.Panel(); - this.check1_2 = new System.Windows.Forms.CheckBox(); - this.check1_1 = new System.Windows.Forms.CheckBox(); - this.label6 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.btn_Save = new System.Windows.Forms.Button(); this.btn_IDOverlap = new System.Windows.Forms.Button(); this.label11 = new System.Windows.Forms.Label(); @@ -128,7 +39,7 @@ this.label7 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.btn_Del = new System.Windows.Forms.Button(); - this.btn_Add = new System.Windows.Forms.Button(); + this.btn_Empty = new System.Windows.Forms.Button(); this.tb_Affil = new System.Windows.Forms.TextBox(); this.tb_Phone = new System.Windows.Forms.TextBox(); this.tb_PW = new System.Windows.Forms.TextBox(); @@ -136,677 +47,88 @@ this.tb_position = new System.Windows.Forms.TextBox(); this.tb_Name = new System.Windows.Forms.TextBox(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.btn_lookup = new System.Windows.Forms.Button(); + this.btn_close = new System.Windows.Forms.Button(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel(); + this.label29 = new System.Windows.Forms.Label(); + this.label28 = new System.Windows.Forms.Label(); + this.label27 = new System.Windows.Forms.Label(); + this.chk_Manage_Book = new System.Windows.Forms.CheckBox(); + this.chk_Manage_Purchase = new System.Windows.Forms.CheckBox(); + this.chk_Manage_Client = new System.Windows.Forms.CheckBox(); + this.chk_Manage_User = new System.Windows.Forms.CheckBox(); + this.label26 = new System.Windows.Forms.Label(); + this.chk_Manage = new System.Windows.Forms.CheckBox(); + this.label32 = new System.Windows.Forms.Label(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); + this.label25 = new System.Windows.Forms.Label(); + this.label24 = new System.Windows.Forms.Label(); + this.label23 = new System.Windows.Forms.Label(); + this.label22 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.chk_Marc_CopyCheck = new System.Windows.Forms.CheckBox(); + this.chk_Marc_Input = new System.Windows.Forms.CheckBox(); + this.chk_Marc = new System.Windows.Forms.CheckBox(); + this.label33 = new System.Windows.Forms.Label(); + this.chk_Marc_Work = new System.Windows.Forms.CheckBox(); + this.chk_Marc_Setup = new System.Windows.Forms.CheckBox(); + this.chk_Marc_Option = new System.Windows.Forms.CheckBox(); + this.chk_Marc_DLS = new System.Windows.Forms.CheckBox(); + this.chk_Marc_ETC = new System.Windows.Forms.CheckBox(); + this.label19 = new System.Windows.Forms.Label(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); + this.label18 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.chk_Acc_Sales = new System.Windows.Forms.CheckBox(); + this.chk_Acc_Buy = new System.Windows.Forms.CheckBox(); + this.chk_Acc_SendMoneyInput = new System.Windows.Forms.CheckBox(); + this.chk_Acc_SendMoneyList = new System.Windows.Forms.CheckBox(); + this.chk_Acc_PartTime = new System.Windows.Forms.CheckBox(); + this.label15 = new System.Windows.Forms.Label(); + this.chk_Acc = new System.Windows.Forms.CheckBox(); + this.label31 = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.chk_Div_OrderInput = new System.Windows.Forms.CheckBox(); + this.chk_Div_ListTotal = new System.Windows.Forms.CheckBox(); + this.chk_Div_ListLookup = new System.Windows.Forms.CheckBox(); + this.chk_Div_ListInput = new System.Windows.Forms.CheckBox(); + this.chk_Div_Stock = new System.Windows.Forms.CheckBox(); + this.chk_Div_Inven = new System.Windows.Forms.CheckBox(); + this.chk_Div_Return = new System.Windows.Forms.CheckBox(); + this.label1 = new System.Windows.Forms.Label(); + this.chk_Div = new System.Windows.Forms.CheckBox(); + this.label30 = new System.Windows.Forms.Label(); this.Per_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Rank = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Phone = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.PW = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.right = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.btn_lookup = new System.Windows.Forms.Button(); - this.btn_close = new System.Windows.Forms.Button(); - this.panel1.SuspendLayout(); - this.panel12.SuspendLayout(); - this.panel11.SuspendLayout(); - this.panel13.SuspendLayout(); - this.panel10.SuspendLayout(); - this.panel14.SuspendLayout(); - this.panel9.SuspendLayout(); - this.panel15.SuspendLayout(); - this.panel8.SuspendLayout(); - this.panel16.SuspendLayout(); - this.panel7.SuspendLayout(); - this.panel17.SuspendLayout(); - this.panel6.SuspendLayout(); - this.panel18.SuspendLayout(); - this.panel5.SuspendLayout(); - this.panel19.SuspendLayout(); - this.panel4.SuspendLayout(); - this.panel20.SuspendLayout(); - this.panel3.SuspendLayout(); - this.panel21.SuspendLayout(); - this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.tableLayoutPanel1.SuspendLayout(); + this.groupBox4.SuspendLayout(); + this.tableLayoutPanel5.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.tableLayoutPanel4.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.tableLayoutPanel3.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); this.SuspendLayout(); // - // panel1 - // - this.panel1.BackColor = System.Drawing.Color.Silver; - this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel1.Controls.Add(this.panel12); - this.panel1.Controls.Add(this.ALL_check2); - this.panel1.Controls.Add(this.ALL_check1); - this.panel1.Controls.Add(this.panel11); - this.panel1.Controls.Add(this.panel13); - this.panel1.Controls.Add(this.panel10); - this.panel1.Controls.Add(this.panel14); - this.panel1.Controls.Add(this.panel9); - this.panel1.Controls.Add(this.panel15); - this.panel1.Controls.Add(this.panel8); - this.panel1.Controls.Add(this.panel16); - this.panel1.Controls.Add(this.panel7); - this.panel1.Controls.Add(this.panel17); - this.panel1.Controls.Add(this.panel6); - this.panel1.Controls.Add(this.panel18); - this.panel1.Controls.Add(this.panel5); - this.panel1.Controls.Add(this.panel19); - this.panel1.Controls.Add(this.panel4); - this.panel1.Controls.Add(this.panel20); - this.panel1.Controls.Add(this.panel3); - this.panel1.Controls.Add(this.panel21); - this.panel1.Controls.Add(this.panel2); - this.panel1.Controls.Add(this.label5); - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - resources.ApplyResources(this.panel1, "panel1"); - this.panel1.Name = "panel1"; - // - // panel12 - // - this.panel12.BackColor = System.Drawing.Color.LightGray; - this.panel12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel12.Controls.Add(this.check20_2); - this.panel12.Controls.Add(this.check20_1); - this.panel12.Controls.Add(this.label37); - resources.ApplyResources(this.panel12, "panel12"); - this.panel12.Name = "panel12"; - // - // check20_2 - // - resources.ApplyResources(this.check20_2, "check20_2"); - this.check20_2.Name = "check20_2"; - this.check20_2.UseVisualStyleBackColor = true; - // - // check20_1 - // - resources.ApplyResources(this.check20_1, "check20_1"); - this.check20_1.Name = "check20_1"; - this.check20_1.UseVisualStyleBackColor = true; - this.check20_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label37 - // - resources.ApplyResources(this.label37, "label37"); - this.label37.Name = "label37"; - // - // ALL_check2 - // - resources.ApplyResources(this.ALL_check2, "ALL_check2"); - this.ALL_check2.Name = "ALL_check2"; - this.ALL_check2.UseVisualStyleBackColor = true; - this.ALL_check2.Click += new System.EventHandler(this.All_Check); - // - // ALL_check1 - // - resources.ApplyResources(this.ALL_check1, "ALL_check1"); - this.ALL_check1.Name = "ALL_check1"; - this.ALL_check1.UseVisualStyleBackColor = true; - this.ALL_check1.Click += new System.EventHandler(this.All_Check); - // - // panel11 - // - this.panel11.BackColor = System.Drawing.Color.LightGray; - this.panel11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel11.Controls.Add(this.check10_2); - this.panel11.Controls.Add(this.check10_1); - this.panel11.Controls.Add(this.label36); - resources.ApplyResources(this.panel11, "panel11"); - this.panel11.Name = "panel11"; - // - // check10_2 - // - resources.ApplyResources(this.check10_2, "check10_2"); - this.check10_2.Name = "check10_2"; - this.check10_2.UseVisualStyleBackColor = true; - // - // check10_1 - // - resources.ApplyResources(this.check10_1, "check10_1"); - this.check10_1.Name = "check10_1"; - this.check10_1.UseVisualStyleBackColor = true; - this.check10_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label36 - // - resources.ApplyResources(this.label36, "label36"); - this.label36.Name = "label36"; - // - // panel13 - // - this.panel13.BackColor = System.Drawing.Color.Gainsboro; - this.panel13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel13.Controls.Add(this.check19_2); - this.panel13.Controls.Add(this.check19_1); - this.panel13.Controls.Add(this.label38); - resources.ApplyResources(this.panel13, "panel13"); - this.panel13.Name = "panel13"; - // - // check19_2 - // - resources.ApplyResources(this.check19_2, "check19_2"); - this.check19_2.Name = "check19_2"; - this.check19_2.UseVisualStyleBackColor = true; - // - // check19_1 - // - resources.ApplyResources(this.check19_1, "check19_1"); - this.check19_1.Name = "check19_1"; - this.check19_1.UseVisualStyleBackColor = true; - this.check19_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label38 - // - resources.ApplyResources(this.label38, "label38"); - this.label38.Name = "label38"; - // - // panel10 - // - this.panel10.BackColor = System.Drawing.Color.Gainsboro; - this.panel10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel10.Controls.Add(this.check9_2); - this.panel10.Controls.Add(this.check9_1); - this.panel10.Controls.Add(this.label35); - resources.ApplyResources(this.panel10, "panel10"); - this.panel10.Name = "panel10"; - // - // check9_2 - // - resources.ApplyResources(this.check9_2, "check9_2"); - this.check9_2.Name = "check9_2"; - this.check9_2.UseVisualStyleBackColor = true; - // - // check9_1 - // - resources.ApplyResources(this.check9_1, "check9_1"); - this.check9_1.Name = "check9_1"; - this.check9_1.UseVisualStyleBackColor = true; - this.check9_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label35 - // - resources.ApplyResources(this.label35, "label35"); - this.label35.Name = "label35"; - // - // panel14 - // - this.panel14.BackColor = System.Drawing.Color.LightGray; - this.panel14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel14.Controls.Add(this.check18_2); - this.panel14.Controls.Add(this.check18_1); - this.panel14.Controls.Add(this.label39); - resources.ApplyResources(this.panel14, "panel14"); - this.panel14.Name = "panel14"; - // - // check18_2 - // - resources.ApplyResources(this.check18_2, "check18_2"); - this.check18_2.Name = "check18_2"; - this.check18_2.UseVisualStyleBackColor = true; - // - // check18_1 - // - resources.ApplyResources(this.check18_1, "check18_1"); - this.check18_1.Name = "check18_1"; - this.check18_1.UseVisualStyleBackColor = true; - this.check18_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label39 - // - resources.ApplyResources(this.label39, "label39"); - this.label39.Name = "label39"; - // - // panel9 - // - this.panel9.BackColor = System.Drawing.Color.LightGray; - this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel9.Controls.Add(this.check8_2); - this.panel9.Controls.Add(this.check8_1); - this.panel9.Controls.Add(this.label34); - this.panel9.Controls.Add(this.label27); - resources.ApplyResources(this.panel9, "panel9"); - this.panel9.Name = "panel9"; - // - // check8_2 - // - resources.ApplyResources(this.check8_2, "check8_2"); - this.check8_2.Name = "check8_2"; - this.check8_2.UseVisualStyleBackColor = true; - // - // check8_1 - // - resources.ApplyResources(this.check8_1, "check8_1"); - this.check8_1.Name = "check8_1"; - this.check8_1.UseVisualStyleBackColor = true; - this.check8_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label34 - // - resources.ApplyResources(this.label34, "label34"); - this.label34.Name = "label34"; - // - // label27 - // - resources.ApplyResources(this.label27, "label27"); - this.label27.Name = "label27"; - // - // panel15 - // - this.panel15.BackColor = System.Drawing.Color.Gainsboro; - this.panel15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel15.Controls.Add(this.check17_2); - this.panel15.Controls.Add(this.check17_1); - this.panel15.Controls.Add(this.label40); - resources.ApplyResources(this.panel15, "panel15"); - this.panel15.Name = "panel15"; - // - // check17_2 - // - resources.ApplyResources(this.check17_2, "check17_2"); - this.check17_2.Name = "check17_2"; - this.check17_2.UseVisualStyleBackColor = true; - // - // check17_1 - // - resources.ApplyResources(this.check17_1, "check17_1"); - this.check17_1.Name = "check17_1"; - this.check17_1.UseVisualStyleBackColor = true; - this.check17_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label40 - // - resources.ApplyResources(this.label40, "label40"); - this.label40.Name = "label40"; - // - // panel8 - // - this.panel8.BackColor = System.Drawing.Color.Gainsboro; - this.panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel8.Controls.Add(this.check7_2); - this.panel8.Controls.Add(this.check7_1); - this.panel8.Controls.Add(this.label33); - resources.ApplyResources(this.panel8, "panel8"); - this.panel8.Name = "panel8"; - // - // check7_2 - // - resources.ApplyResources(this.check7_2, "check7_2"); - this.check7_2.Name = "check7_2"; - this.check7_2.UseVisualStyleBackColor = true; - // - // check7_1 - // - resources.ApplyResources(this.check7_1, "check7_1"); - this.check7_1.Name = "check7_1"; - this.check7_1.UseVisualStyleBackColor = true; - this.check7_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label33 - // - resources.ApplyResources(this.label33, "label33"); - this.label33.Name = "label33"; - // - // panel16 - // - this.panel16.BackColor = System.Drawing.Color.LightGray; - this.panel16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel16.Controls.Add(this.check16_2); - this.panel16.Controls.Add(this.check16_1); - this.panel16.Controls.Add(this.label41); - resources.ApplyResources(this.panel16, "panel16"); - this.panel16.Name = "panel16"; - // - // check16_2 - // - resources.ApplyResources(this.check16_2, "check16_2"); - this.check16_2.Name = "check16_2"; - this.check16_2.UseVisualStyleBackColor = true; - // - // check16_1 - // - resources.ApplyResources(this.check16_1, "check16_1"); - this.check16_1.Name = "check16_1"; - this.check16_1.UseVisualStyleBackColor = true; - this.check16_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label41 - // - resources.ApplyResources(this.label41, "label41"); - this.label41.Name = "label41"; - // - // panel7 - // - this.panel7.BackColor = System.Drawing.Color.LightGray; - this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel7.Controls.Add(this.check6_2); - this.panel7.Controls.Add(this.check6_1); - this.panel7.Controls.Add(this.label32); - resources.ApplyResources(this.panel7, "panel7"); - this.panel7.Name = "panel7"; - // - // check6_2 - // - resources.ApplyResources(this.check6_2, "check6_2"); - this.check6_2.Name = "check6_2"; - this.check6_2.UseVisualStyleBackColor = true; - // - // check6_1 - // - resources.ApplyResources(this.check6_1, "check6_1"); - this.check6_1.Name = "check6_1"; - this.check6_1.UseVisualStyleBackColor = true; - this.check6_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label32 - // - resources.ApplyResources(this.label32, "label32"); - this.label32.Name = "label32"; - // - // panel17 - // - this.panel17.BackColor = System.Drawing.Color.Gainsboro; - this.panel17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel17.Controls.Add(this.check15_2); - this.panel17.Controls.Add(this.check15_1); - this.panel17.Controls.Add(this.label42); - resources.ApplyResources(this.panel17, "panel17"); - this.panel17.Name = "panel17"; - // - // check15_2 - // - resources.ApplyResources(this.check15_2, "check15_2"); - this.check15_2.Name = "check15_2"; - this.check15_2.UseVisualStyleBackColor = true; - // - // check15_1 - // - resources.ApplyResources(this.check15_1, "check15_1"); - this.check15_1.Name = "check15_1"; - this.check15_1.UseVisualStyleBackColor = true; - this.check15_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label42 - // - resources.ApplyResources(this.label42, "label42"); - this.label42.Name = "label42"; - // - // panel6 - // - this.panel6.BackColor = System.Drawing.Color.Gainsboro; - this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel6.Controls.Add(this.check5_2); - this.panel6.Controls.Add(this.check5_1); - this.panel6.Controls.Add(this.label31); - this.panel6.Controls.Add(this.label26); - resources.ApplyResources(this.panel6, "panel6"); - this.panel6.Name = "panel6"; - // - // check5_2 - // - resources.ApplyResources(this.check5_2, "check5_2"); - this.check5_2.Name = "check5_2"; - this.check5_2.UseVisualStyleBackColor = true; - // - // check5_1 - // - resources.ApplyResources(this.check5_1, "check5_1"); - this.check5_1.Name = "check5_1"; - this.check5_1.UseVisualStyleBackColor = true; - this.check5_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label31 - // - resources.ApplyResources(this.label31, "label31"); - this.label31.Name = "label31"; - // - // label26 - // - resources.ApplyResources(this.label26, "label26"); - this.label26.Name = "label26"; - // - // panel18 - // - this.panel18.BackColor = System.Drawing.Color.LightGray; - this.panel18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel18.Controls.Add(this.check14_2); - this.panel18.Controls.Add(this.check14_1); - this.panel18.Controls.Add(this.label43); - resources.ApplyResources(this.panel18, "panel18"); - this.panel18.Name = "panel18"; - // - // check14_2 - // - resources.ApplyResources(this.check14_2, "check14_2"); - this.check14_2.Name = "check14_2"; - this.check14_2.UseVisualStyleBackColor = true; - // - // check14_1 - // - resources.ApplyResources(this.check14_1, "check14_1"); - this.check14_1.Name = "check14_1"; - this.check14_1.UseVisualStyleBackColor = true; - this.check14_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label43 - // - resources.ApplyResources(this.label43, "label43"); - this.label43.Name = "label43"; - // - // panel5 - // - this.panel5.BackColor = System.Drawing.Color.LightGray; - this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel5.Controls.Add(this.check4_2); - this.panel5.Controls.Add(this.check4_1); - this.panel5.Controls.Add(this.label30); - resources.ApplyResources(this.panel5, "panel5"); - this.panel5.Name = "panel5"; - // - // check4_2 - // - resources.ApplyResources(this.check4_2, "check4_2"); - this.check4_2.Name = "check4_2"; - this.check4_2.UseVisualStyleBackColor = true; - // - // check4_1 - // - resources.ApplyResources(this.check4_1, "check4_1"); - this.check4_1.Name = "check4_1"; - this.check4_1.UseVisualStyleBackColor = true; - this.check4_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label30 - // - resources.ApplyResources(this.label30, "label30"); - this.label30.Name = "label30"; - // - // panel19 - // - this.panel19.BackColor = System.Drawing.Color.Gainsboro; - this.panel19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel19.Controls.Add(this.check13_2); - this.panel19.Controls.Add(this.check13_1); - this.panel19.Controls.Add(this.label44); - resources.ApplyResources(this.panel19, "panel19"); - this.panel19.Name = "panel19"; - // - // check13_2 - // - resources.ApplyResources(this.check13_2, "check13_2"); - this.check13_2.Name = "check13_2"; - this.check13_2.UseVisualStyleBackColor = true; - // - // check13_1 - // - resources.ApplyResources(this.check13_1, "check13_1"); - this.check13_1.Name = "check13_1"; - this.check13_1.UseVisualStyleBackColor = true; - this.check13_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label44 - // - resources.ApplyResources(this.label44, "label44"); - this.label44.Name = "label44"; - // - // panel4 - // - this.panel4.BackColor = System.Drawing.Color.Gainsboro; - this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel4.Controls.Add(this.check3_2); - this.panel4.Controls.Add(this.check3_1); - this.panel4.Controls.Add(this.label29); - resources.ApplyResources(this.panel4, "panel4"); - this.panel4.Name = "panel4"; - // - // check3_2 - // - resources.ApplyResources(this.check3_2, "check3_2"); - this.check3_2.Name = "check3_2"; - this.check3_2.UseVisualStyleBackColor = true; - // - // check3_1 - // - resources.ApplyResources(this.check3_1, "check3_1"); - this.check3_1.Name = "check3_1"; - this.check3_1.UseVisualStyleBackColor = true; - this.check3_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label29 - // - resources.ApplyResources(this.label29, "label29"); - this.label29.Name = "label29"; - // - // panel20 - // - this.panel20.BackColor = System.Drawing.Color.LightGray; - this.panel20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel20.Controls.Add(this.check12_2); - this.panel20.Controls.Add(this.check12_1); - this.panel20.Controls.Add(this.label45); - resources.ApplyResources(this.panel20, "panel20"); - this.panel20.Name = "panel20"; - // - // check12_2 - // - resources.ApplyResources(this.check12_2, "check12_2"); - this.check12_2.Name = "check12_2"; - this.check12_2.UseVisualStyleBackColor = true; - // - // check12_1 - // - resources.ApplyResources(this.check12_1, "check12_1"); - this.check12_1.Name = "check12_1"; - this.check12_1.UseVisualStyleBackColor = true; - this.check12_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label45 - // - resources.ApplyResources(this.label45, "label45"); - this.label45.Name = "label45"; - // - // panel3 - // - this.panel3.BackColor = System.Drawing.Color.LightGray; - this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel3.Controls.Add(this.check2_2); - this.panel3.Controls.Add(this.check2_1); - this.panel3.Controls.Add(this.label28); - resources.ApplyResources(this.panel3, "panel3"); - this.panel3.Name = "panel3"; - // - // check2_2 - // - resources.ApplyResources(this.check2_2, "check2_2"); - this.check2_2.Name = "check2_2"; - this.check2_2.UseVisualStyleBackColor = true; - // - // check2_1 - // - resources.ApplyResources(this.check2_1, "check2_1"); - this.check2_1.Name = "check2_1"; - this.check2_1.UseVisualStyleBackColor = true; - this.check2_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label28 - // - resources.ApplyResources(this.label28, "label28"); - this.label28.Name = "label28"; - // - // panel21 - // - this.panel21.BackColor = System.Drawing.Color.Gainsboro; - this.panel21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel21.Controls.Add(this.check11_2); - this.panel21.Controls.Add(this.check11_1); - this.panel21.Controls.Add(this.label46); - resources.ApplyResources(this.panel21, "panel21"); - this.panel21.Name = "panel21"; - // - // check11_2 - // - resources.ApplyResources(this.check11_2, "check11_2"); - this.check11_2.Name = "check11_2"; - this.check11_2.UseVisualStyleBackColor = true; - // - // check11_1 - // - resources.ApplyResources(this.check11_1, "check11_1"); - this.check11_1.Name = "check11_1"; - this.check11_1.UseVisualStyleBackColor = true; - this.check11_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label46 - // - resources.ApplyResources(this.label46, "label46"); - this.label46.Name = "label46"; - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.Gainsboro; - this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel2.Controls.Add(this.check1_2); - this.panel2.Controls.Add(this.check1_1); - this.panel2.Controls.Add(this.label6); - resources.ApplyResources(this.panel2, "panel2"); - this.panel2.Name = "panel2"; - // - // check1_2 - // - resources.ApplyResources(this.check1_2, "check1_2"); - this.check1_2.Name = "check1_2"; - this.check1_2.UseVisualStyleBackColor = true; - // - // check1_1 - // - resources.ApplyResources(this.check1_1, "check1_1"); - this.check1_1.Name = "check1_1"; - this.check1_1.UseVisualStyleBackColor = true; - this.check1_1.Click += new System.EventHandler(this.check1_1_Click); - // - // label6 - // - resources.ApplyResources(this.label6, "label6"); - this.label6.Name = "label6"; - // - // label5 - // - resources.ApplyResources(this.label5, "label5"); - this.label5.Name = "label5"; - // - // label3 - // - resources.ApplyResources(this.label3, "label3"); - this.label3.Name = "label3"; - // - // label2 - // - resources.ApplyResources(this.label2, "label2"); - this.label2.Name = "label2"; - // - // label1 - // - resources.ApplyResources(this.label1, "label1"); - this.label1.Name = "label1"; - // // btn_Save // resources.ApplyResources(this.btn_Save, "btn_Save"); @@ -858,12 +180,12 @@ this.btn_Del.UseVisualStyleBackColor = true; this.btn_Del.Click += new System.EventHandler(this.btn_Del_Click); // - // btn_Add + // btn_Empty // - resources.ApplyResources(this.btn_Add, "btn_Add"); - this.btn_Add.Name = "btn_Add"; - this.btn_Add.UseVisualStyleBackColor = true; - this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click); + resources.ApplyResources(this.btn_Empty, "btn_Empty"); + this.btn_Empty.Name = "btn_Empty"; + this.btn_Empty.UseVisualStyleBackColor = true; + this.btn_Empty.Click += new System.EventHandler(this.btn_Empty_Click); // // tb_Affil // @@ -913,8 +235,7 @@ this.Rank, this.Phone, this.ID, - this.PW, - this.right}); + this.PW}); this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; resources.ApplyResources(this.dataGridView1, "dataGridView1"); this.dataGridView1.Name = "dataGridView1"; @@ -922,6 +243,459 @@ this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); // + // btn_lookup + // + resources.ApplyResources(this.btn_lookup, "btn_lookup"); + this.btn_lookup.Name = "btn_lookup"; + this.btn_lookup.UseVisualStyleBackColor = true; + this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click); + // + // btn_close + // + resources.ApplyResources(this.btn_close, "btn_close"); + this.btn_close.Name = "btn_close"; + this.btn_close.UseVisualStyleBackColor = true; + this.btn_close.Click += new System.EventHandler(this.btn_close_Click); + // + // tableLayoutPanel1 + // + resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1"); + this.tableLayoutPanel1.Controls.Add(this.groupBox4, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.groupBox3, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.groupBox2, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.groupBox1, 0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + // + // groupBox4 + // + this.groupBox4.Controls.Add(this.tableLayoutPanel5); + resources.ApplyResources(this.groupBox4, "groupBox4"); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.TabStop = false; + // + // tableLayoutPanel5 + // + resources.ApplyResources(this.tableLayoutPanel5, "tableLayoutPanel5"); + this.tableLayoutPanel5.Controls.Add(this.label29, 0, 4); + this.tableLayoutPanel5.Controls.Add(this.label28, 0, 3); + this.tableLayoutPanel5.Controls.Add(this.label27, 0, 2); + this.tableLayoutPanel5.Controls.Add(this.chk_Manage_Book, 1, 4); + this.tableLayoutPanel5.Controls.Add(this.chk_Manage_Purchase, 1, 3); + this.tableLayoutPanel5.Controls.Add(this.chk_Manage_Client, 1, 2); + this.tableLayoutPanel5.Controls.Add(this.chk_Manage_User, 1, 1); + this.tableLayoutPanel5.Controls.Add(this.label26, 0, 1); + this.tableLayoutPanel5.Controls.Add(this.chk_Manage, 1, 0); + this.tableLayoutPanel5.Controls.Add(this.label32, 0, 0); + this.tableLayoutPanel5.Name = "tableLayoutPanel5"; + // + // label29 + // + resources.ApplyResources(this.label29, "label29"); + this.label29.Name = "label29"; + // + // label28 + // + resources.ApplyResources(this.label28, "label28"); + this.label28.Name = "label28"; + // + // label27 + // + resources.ApplyResources(this.label27, "label27"); + this.label27.Name = "label27"; + // + // chk_Manage_Book + // + resources.ApplyResources(this.chk_Manage_Book, "chk_Manage_Book"); + this.chk_Manage_Book.Name = "chk_Manage_Book"; + this.chk_Manage_Book.UseVisualStyleBackColor = true; + this.chk_Manage_Book.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Manage_Purchase + // + resources.ApplyResources(this.chk_Manage_Purchase, "chk_Manage_Purchase"); + this.chk_Manage_Purchase.Name = "chk_Manage_Purchase"; + this.chk_Manage_Purchase.UseVisualStyleBackColor = true; + this.chk_Manage_Purchase.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Manage_Client + // + resources.ApplyResources(this.chk_Manage_Client, "chk_Manage_Client"); + this.chk_Manage_Client.Name = "chk_Manage_Client"; + this.chk_Manage_Client.UseVisualStyleBackColor = true; + this.chk_Manage_Client.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Manage_User + // + resources.ApplyResources(this.chk_Manage_User, "chk_Manage_User"); + this.chk_Manage_User.Name = "chk_Manage_User"; + this.chk_Manage_User.UseVisualStyleBackColor = true; + this.chk_Manage_User.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // label26 + // + resources.ApplyResources(this.label26, "label26"); + this.label26.Name = "label26"; + // + // chk_Manage + // + resources.ApplyResources(this.chk_Manage, "chk_Manage"); + this.chk_Manage.Name = "chk_Manage"; + this.chk_Manage.UseVisualStyleBackColor = true; + this.chk_Manage.Click += new System.EventHandler(this.chk_Enabled); + // + // label32 + // + resources.ApplyResources(this.label32, "label32"); + this.label32.ForeColor = System.Drawing.SystemColors.Highlight; + this.label32.Name = "label32"; + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.tableLayoutPanel4); + resources.ApplyResources(this.groupBox3, "groupBox3"); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.TabStop = false; + // + // tableLayoutPanel4 + // + resources.ApplyResources(this.tableLayoutPanel4, "tableLayoutPanel4"); + this.tableLayoutPanel4.Controls.Add(this.label25, 0, 7); + this.tableLayoutPanel4.Controls.Add(this.label24, 0, 6); + this.tableLayoutPanel4.Controls.Add(this.label23, 0, 5); + this.tableLayoutPanel4.Controls.Add(this.label22, 0, 4); + this.tableLayoutPanel4.Controls.Add(this.label21, 0, 3); + this.tableLayoutPanel4.Controls.Add(this.label20, 0, 2); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc_CopyCheck, 1, 4); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc_Input, 1, 3); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc, 1, 0); + this.tableLayoutPanel4.Controls.Add(this.label33, 0, 0); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc_Work, 1, 2); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc_Setup, 1, 1); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc_Option, 1, 5); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc_DLS, 1, 6); + this.tableLayoutPanel4.Controls.Add(this.chk_Marc_ETC, 1, 7); + this.tableLayoutPanel4.Controls.Add(this.label19, 0, 1); + this.tableLayoutPanel4.Name = "tableLayoutPanel4"; + // + // label25 + // + resources.ApplyResources(this.label25, "label25"); + this.label25.Name = "label25"; + // + // label24 + // + resources.ApplyResources(this.label24, "label24"); + this.label24.Name = "label24"; + // + // label23 + // + resources.ApplyResources(this.label23, "label23"); + this.label23.Name = "label23"; + // + // label22 + // + resources.ApplyResources(this.label22, "label22"); + this.label22.Name = "label22"; + // + // label21 + // + resources.ApplyResources(this.label21, "label21"); + this.label21.Name = "label21"; + // + // label20 + // + resources.ApplyResources(this.label20, "label20"); + this.label20.Name = "label20"; + // + // chk_Marc_CopyCheck + // + resources.ApplyResources(this.chk_Marc_CopyCheck, "chk_Marc_CopyCheck"); + this.chk_Marc_CopyCheck.Name = "chk_Marc_CopyCheck"; + this.chk_Marc_CopyCheck.UseVisualStyleBackColor = true; + this.chk_Marc_CopyCheck.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Marc_Input + // + resources.ApplyResources(this.chk_Marc_Input, "chk_Marc_Input"); + this.chk_Marc_Input.Name = "chk_Marc_Input"; + this.chk_Marc_Input.UseVisualStyleBackColor = true; + this.chk_Marc_Input.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Marc + // + resources.ApplyResources(this.chk_Marc, "chk_Marc"); + this.chk_Marc.Name = "chk_Marc"; + this.chk_Marc.UseVisualStyleBackColor = true; + this.chk_Marc.Click += new System.EventHandler(this.chk_Enabled); + // + // label33 + // + resources.ApplyResources(this.label33, "label33"); + this.label33.ForeColor = System.Drawing.SystemColors.Highlight; + this.label33.Name = "label33"; + // + // chk_Marc_Work + // + resources.ApplyResources(this.chk_Marc_Work, "chk_Marc_Work"); + this.chk_Marc_Work.Name = "chk_Marc_Work"; + this.chk_Marc_Work.UseVisualStyleBackColor = true; + this.chk_Marc_Work.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Marc_Setup + // + resources.ApplyResources(this.chk_Marc_Setup, "chk_Marc_Setup"); + this.chk_Marc_Setup.Name = "chk_Marc_Setup"; + this.chk_Marc_Setup.UseVisualStyleBackColor = true; + this.chk_Marc_Setup.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Marc_Option + // + resources.ApplyResources(this.chk_Marc_Option, "chk_Marc_Option"); + this.chk_Marc_Option.Name = "chk_Marc_Option"; + this.chk_Marc_Option.UseVisualStyleBackColor = true; + this.chk_Marc_Option.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Marc_DLS + // + resources.ApplyResources(this.chk_Marc_DLS, "chk_Marc_DLS"); + this.chk_Marc_DLS.Name = "chk_Marc_DLS"; + this.chk_Marc_DLS.UseVisualStyleBackColor = true; + this.chk_Marc_DLS.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Marc_ETC + // + resources.ApplyResources(this.chk_Marc_ETC, "chk_Marc_ETC"); + this.chk_Marc_ETC.Name = "chk_Marc_ETC"; + this.chk_Marc_ETC.UseVisualStyleBackColor = true; + this.chk_Marc_ETC.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // label19 + // + resources.ApplyResources(this.label19, "label19"); + this.label19.Name = "label19"; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.tableLayoutPanel3); + resources.ApplyResources(this.groupBox2, "groupBox2"); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.TabStop = false; + // + // tableLayoutPanel3 + // + resources.ApplyResources(this.tableLayoutPanel3, "tableLayoutPanel3"); + this.tableLayoutPanel3.Controls.Add(this.label18, 0, 4); + this.tableLayoutPanel3.Controls.Add(this.label17, 0, 3); + this.tableLayoutPanel3.Controls.Add(this.label16, 0, 2); + this.tableLayoutPanel3.Controls.Add(this.label14, 0, 5); + this.tableLayoutPanel3.Controls.Add(this.chk_Acc_Sales, 1, 4); + this.tableLayoutPanel3.Controls.Add(this.chk_Acc_Buy, 1, 3); + this.tableLayoutPanel3.Controls.Add(this.chk_Acc_SendMoneyInput, 1, 2); + this.tableLayoutPanel3.Controls.Add(this.chk_Acc_SendMoneyList, 1, 1); + this.tableLayoutPanel3.Controls.Add(this.chk_Acc_PartTime, 1, 5); + this.tableLayoutPanel3.Controls.Add(this.label15, 0, 1); + this.tableLayoutPanel3.Controls.Add(this.chk_Acc, 1, 0); + this.tableLayoutPanel3.Controls.Add(this.label31, 0, 0); + this.tableLayoutPanel3.Name = "tableLayoutPanel3"; + // + // label18 + // + resources.ApplyResources(this.label18, "label18"); + this.label18.Name = "label18"; + // + // label17 + // + resources.ApplyResources(this.label17, "label17"); + this.label17.Name = "label17"; + // + // label16 + // + resources.ApplyResources(this.label16, "label16"); + this.label16.Name = "label16"; + // + // label14 + // + resources.ApplyResources(this.label14, "label14"); + this.label14.Name = "label14"; + // + // chk_Acc_Sales + // + resources.ApplyResources(this.chk_Acc_Sales, "chk_Acc_Sales"); + this.chk_Acc_Sales.Name = "chk_Acc_Sales"; + this.chk_Acc_Sales.UseVisualStyleBackColor = true; + this.chk_Acc_Sales.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Acc_Buy + // + resources.ApplyResources(this.chk_Acc_Buy, "chk_Acc_Buy"); + this.chk_Acc_Buy.Name = "chk_Acc_Buy"; + this.chk_Acc_Buy.UseVisualStyleBackColor = true; + this.chk_Acc_Buy.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Acc_SendMoneyInput + // + resources.ApplyResources(this.chk_Acc_SendMoneyInput, "chk_Acc_SendMoneyInput"); + this.chk_Acc_SendMoneyInput.Name = "chk_Acc_SendMoneyInput"; + this.chk_Acc_SendMoneyInput.UseVisualStyleBackColor = true; + this.chk_Acc_SendMoneyInput.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Acc_SendMoneyList + // + resources.ApplyResources(this.chk_Acc_SendMoneyList, "chk_Acc_SendMoneyList"); + this.chk_Acc_SendMoneyList.Name = "chk_Acc_SendMoneyList"; + this.chk_Acc_SendMoneyList.UseVisualStyleBackColor = true; + this.chk_Acc_SendMoneyList.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Acc_PartTime + // + resources.ApplyResources(this.chk_Acc_PartTime, "chk_Acc_PartTime"); + this.chk_Acc_PartTime.Name = "chk_Acc_PartTime"; + this.chk_Acc_PartTime.UseVisualStyleBackColor = true; + this.chk_Acc_PartTime.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // label15 + // + resources.ApplyResources(this.label15, "label15"); + this.label15.Name = "label15"; + // + // chk_Acc + // + resources.ApplyResources(this.chk_Acc, "chk_Acc"); + this.chk_Acc.Name = "chk_Acc"; + this.chk_Acc.UseVisualStyleBackColor = true; + this.chk_Acc.Click += new System.EventHandler(this.chk_Enabled); + // + // label31 + // + resources.ApplyResources(this.label31, "label31"); + this.label31.ForeColor = System.Drawing.SystemColors.Highlight; + this.label31.Name = "label31"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.tableLayoutPanel2); + resources.ApplyResources(this.groupBox1, "groupBox1"); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.TabStop = false; + // + // tableLayoutPanel2 + // + resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2"); + this.tableLayoutPanel2.Controls.Add(this.label13, 0, 7); + this.tableLayoutPanel2.Controls.Add(this.label12, 0, 6); + this.tableLayoutPanel2.Controls.Add(this.label6, 0, 5); + this.tableLayoutPanel2.Controls.Add(this.label5, 0, 4); + this.tableLayoutPanel2.Controls.Add(this.label3, 0, 3); + this.tableLayoutPanel2.Controls.Add(this.label2, 0, 2); + this.tableLayoutPanel2.Controls.Add(this.chk_Div_OrderInput, 1, 4); + this.tableLayoutPanel2.Controls.Add(this.chk_Div_ListTotal, 1, 3); + this.tableLayoutPanel2.Controls.Add(this.chk_Div_ListLookup, 1, 2); + this.tableLayoutPanel2.Controls.Add(this.chk_Div_ListInput, 1, 1); + this.tableLayoutPanel2.Controls.Add(this.chk_Div_Stock, 1, 5); + this.tableLayoutPanel2.Controls.Add(this.chk_Div_Inven, 1, 6); + this.tableLayoutPanel2.Controls.Add(this.chk_Div_Return, 1, 7); + this.tableLayoutPanel2.Controls.Add(this.label1, 0, 1); + this.tableLayoutPanel2.Controls.Add(this.chk_Div, 1, 0); + this.tableLayoutPanel2.Controls.Add(this.label30, 0, 0); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + // + // label13 + // + resources.ApplyResources(this.label13, "label13"); + this.label13.Name = "label13"; + // + // label12 + // + resources.ApplyResources(this.label12, "label12"); + this.label12.Name = "label12"; + // + // label6 + // + resources.ApplyResources(this.label6, "label6"); + this.label6.Name = "label6"; + // + // label5 + // + resources.ApplyResources(this.label5, "label5"); + this.label5.Name = "label5"; + // + // label3 + // + resources.ApplyResources(this.label3, "label3"); + this.label3.Name = "label3"; + // + // label2 + // + resources.ApplyResources(this.label2, "label2"); + this.label2.Name = "label2"; + // + // chk_Div_OrderInput + // + resources.ApplyResources(this.chk_Div_OrderInput, "chk_Div_OrderInput"); + this.chk_Div_OrderInput.Name = "chk_Div_OrderInput"; + this.chk_Div_OrderInput.UseVisualStyleBackColor = true; + this.chk_Div_OrderInput.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Div_ListTotal + // + resources.ApplyResources(this.chk_Div_ListTotal, "chk_Div_ListTotal"); + this.chk_Div_ListTotal.Name = "chk_Div_ListTotal"; + this.chk_Div_ListTotal.UseVisualStyleBackColor = true; + this.chk_Div_ListTotal.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Div_ListLookup + // + resources.ApplyResources(this.chk_Div_ListLookup, "chk_Div_ListLookup"); + this.chk_Div_ListLookup.Name = "chk_Div_ListLookup"; + this.chk_Div_ListLookup.UseVisualStyleBackColor = true; + this.chk_Div_ListLookup.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Div_ListInput + // + resources.ApplyResources(this.chk_Div_ListInput, "chk_Div_ListInput"); + this.chk_Div_ListInput.Name = "chk_Div_ListInput"; + this.chk_Div_ListInput.UseVisualStyleBackColor = true; + this.chk_Div_ListInput.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Div_Stock + // + resources.ApplyResources(this.chk_Div_Stock, "chk_Div_Stock"); + this.chk_Div_Stock.Name = "chk_Div_Stock"; + this.chk_Div_Stock.UseVisualStyleBackColor = true; + this.chk_Div_Stock.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Div_Inven + // + resources.ApplyResources(this.chk_Div_Inven, "chk_Div_Inven"); + this.chk_Div_Inven.Name = "chk_Div_Inven"; + this.chk_Div_Inven.UseVisualStyleBackColor = true; + this.chk_Div_Inven.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // chk_Div_Return + // + resources.ApplyResources(this.chk_Div_Return, "chk_Div_Return"); + this.chk_Div_Return.Name = "chk_Div_Return"; + this.chk_Div_Return.UseVisualStyleBackColor = true; + this.chk_Div_Return.Click += new System.EventHandler(this.chk_Div_ListInput_Click); + // + // label1 + // + resources.ApplyResources(this.label1, "label1"); + this.label1.Name = "label1"; + // + // chk_Div + // + resources.ApplyResources(this.chk_Div, "chk_Div"); + this.chk_Div.Name = "chk_Div"; + this.chk_Div.UseVisualStyleBackColor = true; + this.chk_Div.Click += new System.EventHandler(this.chk_Enabled); + // + // label30 + // + resources.ApplyResources(this.label30, "label30"); + this.label30.ForeColor = System.Drawing.SystemColors.Highlight; + this.label30.Name = "label30"; + // // Per_name // resources.ApplyResources(this.Per_name, "Per_name"); @@ -951,32 +725,13 @@ resources.ApplyResources(this.PW, "PW"); this.PW.Name = "PW"; // - // right - // - resources.ApplyResources(this.right, "right"); - this.right.Name = "right"; - // - // btn_lookup - // - resources.ApplyResources(this.btn_lookup, "btn_lookup"); - this.btn_lookup.Name = "btn_lookup"; - this.btn_lookup.UseVisualStyleBackColor = true; - this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click); - // - // btn_close - // - resources.ApplyResources(this.btn_close, "btn_close"); - this.btn_close.Name = "btn_close"; - this.btn_close.UseVisualStyleBackColor = true; - this.btn_close.Click += new System.EventHandler(this.btn_close_Click); - // // Home_User_manage // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.btn_close); this.Controls.Add(this.btn_lookup); - this.Controls.Add(this.panel1); this.Controls.Add(this.btn_IDOverlap); this.Controls.Add(this.dataGridView1); this.Controls.Add(this.label11); @@ -993,147 +748,31 @@ this.Controls.Add(this.label4); this.Controls.Add(this.tb_Affil); this.Controls.Add(this.btn_Del); - this.Controls.Add(this.btn_Add); + this.Controls.Add(this.btn_Empty); this.Name = "Home_User_manage"; this.Load += new System.EventHandler(this.Form1_Load); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.panel12.ResumeLayout(false); - this.panel12.PerformLayout(); - this.panel11.ResumeLayout(false); - this.panel11.PerformLayout(); - this.panel13.ResumeLayout(false); - this.panel13.PerformLayout(); - this.panel10.ResumeLayout(false); - this.panel10.PerformLayout(); - this.panel14.ResumeLayout(false); - this.panel14.PerformLayout(); - this.panel9.ResumeLayout(false); - this.panel9.PerformLayout(); - this.panel15.ResumeLayout(false); - this.panel15.PerformLayout(); - this.panel8.ResumeLayout(false); - this.panel8.PerformLayout(); - this.panel16.ResumeLayout(false); - this.panel16.PerformLayout(); - this.panel7.ResumeLayout(false); - this.panel7.PerformLayout(); - this.panel17.ResumeLayout(false); - this.panel17.PerformLayout(); - this.panel6.ResumeLayout(false); - this.panel6.PerformLayout(); - this.panel18.ResumeLayout(false); - this.panel18.PerformLayout(); - this.panel5.ResumeLayout(false); - this.panel5.PerformLayout(); - this.panel19.ResumeLayout(false); - this.panel19.PerformLayout(); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - this.panel20.ResumeLayout(false); - this.panel20.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.panel21.ResumeLayout(false); - this.panel21.PerformLayout(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.tableLayoutPanel1.ResumeLayout(false); + this.groupBox4.ResumeLayout(false); + this.tableLayoutPanel5.ResumeLayout(false); + this.tableLayoutPanel5.PerformLayout(); + this.groupBox3.ResumeLayout(false); + this.tableLayoutPanel4.ResumeLayout(false); + this.tableLayoutPanel4.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.tableLayoutPanel3.ResumeLayout(false); + this.tableLayoutPanel3.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + this.tableLayoutPanel2.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion - private System.Windows.Forms.Button btn_Add; + private System.Windows.Forms.Button btn_Empty; private System.Windows.Forms.DataGridView dataGridView1; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel12; - private System.Windows.Forms.Label label37; - private System.Windows.Forms.Panel panel11; - private System.Windows.Forms.Label label36; - private System.Windows.Forms.Panel panel13; - private System.Windows.Forms.Label label38; - private System.Windows.Forms.Panel panel10; - private System.Windows.Forms.Label label35; - private System.Windows.Forms.Panel panel14; - private System.Windows.Forms.Label label39; - private System.Windows.Forms.Panel panel9; - private System.Windows.Forms.Label label34; - private System.Windows.Forms.Label label27; - private System.Windows.Forms.Panel panel15; - private System.Windows.Forms.Label label40; - private System.Windows.Forms.Panel panel8; - private System.Windows.Forms.Label label33; - private System.Windows.Forms.Panel panel16; - private System.Windows.Forms.Label label41; - private System.Windows.Forms.Panel panel7; - private System.Windows.Forms.Label label32; - private System.Windows.Forms.Panel panel17; - private System.Windows.Forms.Label label42; - private System.Windows.Forms.Panel panel6; - private System.Windows.Forms.Label label31; - private System.Windows.Forms.Label label26; - private System.Windows.Forms.Panel panel18; - private System.Windows.Forms.Label label43; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label30; - private System.Windows.Forms.Panel panel19; - private System.Windows.Forms.Label label44; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Label label29; - private System.Windows.Forms.Panel panel20; - private System.Windows.Forms.Label label45; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Label label28; - private System.Windows.Forms.Panel panel21; - private System.Windows.Forms.Label label46; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.CheckBox check20_1; - private System.Windows.Forms.CheckBox check10_1; - private System.Windows.Forms.CheckBox check19_1; - private System.Windows.Forms.CheckBox check9_1; - private System.Windows.Forms.CheckBox check18_1; - private System.Windows.Forms.CheckBox check8_1; - private System.Windows.Forms.CheckBox check17_1; - private System.Windows.Forms.CheckBox check7_1; - private System.Windows.Forms.CheckBox check16_1; - private System.Windows.Forms.CheckBox check6_1; - private System.Windows.Forms.CheckBox check15_1; - private System.Windows.Forms.CheckBox check5_1; - private System.Windows.Forms.CheckBox check14_1; - private System.Windows.Forms.CheckBox check4_1; - private System.Windows.Forms.CheckBox check13_1; - private System.Windows.Forms.CheckBox check3_1; - private System.Windows.Forms.CheckBox check12_1; - private System.Windows.Forms.CheckBox check2_2; - private System.Windows.Forms.CheckBox check2_1; - private System.Windows.Forms.CheckBox check11_1; - private System.Windows.Forms.CheckBox check1_2; - private System.Windows.Forms.CheckBox check1_1; - private System.Windows.Forms.CheckBox check3_2; - private System.Windows.Forms.CheckBox check5_2; - private System.Windows.Forms.CheckBox check4_2; - private System.Windows.Forms.CheckBox check20_2; - private System.Windows.Forms.CheckBox check10_2; - private System.Windows.Forms.CheckBox check19_2; - private System.Windows.Forms.CheckBox check9_2; - private System.Windows.Forms.CheckBox check18_2; - private System.Windows.Forms.CheckBox check8_2; - private System.Windows.Forms.CheckBox check17_2; - private System.Windows.Forms.CheckBox check7_2; - private System.Windows.Forms.CheckBox check16_2; - private System.Windows.Forms.CheckBox check6_2; - private System.Windows.Forms.CheckBox check15_2; - private System.Windows.Forms.CheckBox check14_2; - private System.Windows.Forms.CheckBox check13_2; - private System.Windows.Forms.CheckBox check12_2; - private System.Windows.Forms.CheckBox check11_2; private System.Windows.Forms.Button btn_IDOverlap; private System.Windows.Forms.Button btn_Del; private System.Windows.Forms.Button btn_Save; @@ -1149,16 +788,76 @@ private System.Windows.Forms.TextBox tb_position; private System.Windows.Forms.Label label11; private System.Windows.Forms.TextBox tb_Affil; - private System.Windows.Forms.CheckBox ALL_check2; - private System.Windows.Forms.CheckBox ALL_check1; private System.Windows.Forms.Button btn_lookup; private System.Windows.Forms.Button btn_close; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.CheckBox chk_Div_ListInput; + private System.Windows.Forms.CheckBox chk_Div_OrderInput; + private System.Windows.Forms.CheckBox chk_Div_ListTotal; + private System.Windows.Forms.CheckBox chk_Div_ListLookup; + private System.Windows.Forms.CheckBox chk_Div_Stock; + private System.Windows.Forms.CheckBox chk_Div_Inven; + private System.Windows.Forms.CheckBox chk_Div_Return; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4; + private System.Windows.Forms.CheckBox chk_Marc_CopyCheck; + private System.Windows.Forms.CheckBox chk_Marc_Input; + private System.Windows.Forms.CheckBox chk_Marc_Work; + private System.Windows.Forms.CheckBox chk_Marc_Setup; + private System.Windows.Forms.CheckBox chk_Marc_Option; + private System.Windows.Forms.CheckBox chk_Marc_DLS; + private System.Windows.Forms.CheckBox chk_Marc_ETC; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; + private System.Windows.Forms.CheckBox chk_Acc_Sales; + private System.Windows.Forms.CheckBox chk_Acc_Buy; + private System.Windows.Forms.CheckBox chk_Acc_SendMoneyInput; + private System.Windows.Forms.CheckBox chk_Acc_SendMoneyList; + private System.Windows.Forms.CheckBox chk_Acc_PartTime; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5; + private System.Windows.Forms.CheckBox chk_Manage_Book; + private System.Windows.Forms.CheckBox chk_Manage_Purchase; + private System.Windows.Forms.CheckBox chk_Manage_Client; + private System.Windows.Forms.CheckBox chk_Manage_User; + private System.Windows.Forms.Label label29; + private System.Windows.Forms.Label label28; + private System.Windows.Forms.Label label27; + private System.Windows.Forms.Label label26; + private System.Windows.Forms.Label label25; + private System.Windows.Forms.Label label24; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.CheckBox chk_Manage; + private System.Windows.Forms.Label label32; + private System.Windows.Forms.CheckBox chk_Marc; + private System.Windows.Forms.Label label33; + private System.Windows.Forms.CheckBox chk_Acc; + private System.Windows.Forms.Label label31; + private System.Windows.Forms.CheckBox chk_Div; + private System.Windows.Forms.Label label30; private System.Windows.Forms.DataGridViewTextBoxColumn Per_name; private System.Windows.Forms.DataGridViewTextBoxColumn Rank; private System.Windows.Forms.DataGridViewTextBoxColumn Phone; private System.Windows.Forms.DataGridViewTextBoxColumn ID; private System.Windows.Forms.DataGridViewTextBoxColumn PW; - private System.Windows.Forms.DataGridViewTextBoxColumn right; } } diff --git a/unimarc/unimarc/홈/Home_User_manage.cs b/unimarc/unimarc/홈/Home_User_manage.cs index a2cfcd6..843b117 100644 --- a/unimarc/unimarc/홈/Home_User_manage.cs +++ b/unimarc/unimarc/홈/Home_User_manage.cs @@ -16,12 +16,10 @@ namespace WindowsFormsApp1.Home { public string User_Name { get; internal set; } bool overlap = false; - string[] tempData; Helper_DB _DB = new Helper_DB(); Main main; string comp_name = string.Empty; string Table_User = "User_Data"; - int gridIndex; public Home_User_manage(Main _main) { @@ -34,7 +32,6 @@ namespace WindowsFormsApp1.Home _DB.DBcon(); tb_Affil.Enabled = false; btn_lookup_Click(null, null); - init_check(); } /// /// DB에 저장된 사용자 데이터를 dataGridView1로 입력하는 함수. @@ -44,23 +41,71 @@ namespace WindowsFormsApp1.Home private void btn_lookup_Click(object sender, EventArgs e) { dataGridView1.Rows.Clear(); - string Area = "`name`, `position`, `Phone`, `ID`, `PW`, `right`"; + string Area = "`name`, `position`, `Phone`, `ID`, `PW`"; string cmd = _DB.DB_Select_Search(Area, "User_Data", "affil", comp_name); string db_res = _DB.DB_Send_CMD_Search(cmd); string[] data = db_res.Split('|'); string[] grid = { "", "", "", "", "", "" }; for (int a = 0; a < data.Length; a++) { - if (a % 6 == 0) { grid[0] = data[a]; } - if (a % 6 == 1) { grid[1] = data[a]; } - if (a % 6 == 2) { grid[2] = data[a]; } - if (a % 6 == 3) { grid[3] = data[a]; } - if (a % 6 == 4) { grid[4] = data[a]; } - if (a % 6 == 5) { grid[5] = data[a]; + if (a % 5 == 0) { grid[0] = data[a]; } + if (a % 5 == 1) { grid[1] = data[a]; } + if (a % 5 == 2) { grid[2] = data[a]; } + if (a % 5 == 3) { grid[3] = data[a]; } + if (a % 5 == 4) { grid[4] = data[a]; dataGridView1.Rows.Add(grid); } } } + + private void chk_Div_ListInput_Click(object sender, EventArgs e) + { + + } + + private void chk_Enabled(object sender, EventArgs e) + { + CheckBox Target = sender as CheckBox; + + bool IsCheck = Target.Checked; + + CheckBox[] Enabled = { chk_Div, chk_Acc, chk_Marc, chk_Manage }; + + CheckBox[] Div = { + chk_Div_ListInput, chk_Div_ListLookup, chk_Div_ListTotal, chk_Div_OrderInput, chk_Div_Inven, + chk_Div_Stock, chk_Div_Return + }; + CheckBox[] Acc = { + chk_Acc_SendMoneyList, chk_Acc_SendMoneyInput, chk_Acc_Buy, chk_Acc_Sales, chk_Acc_PartTime + }; + CheckBox[] Marc = { + chk_Marc_Setup, chk_Marc_Work, chk_Marc_Input, chk_Marc_CopyCheck, chk_Marc_Option, + chk_Marc_DLS, chk_Marc_ETC + }; + CheckBox[] Manage = { + chk_Manage_User, chk_Manage_Client, chk_Manage_Purchase, chk_Manage_Book + }; + + for(int a= 0; a < Enabled.Length; a++) + { + if (Target == Enabled[a]) + { + if (a % 4 == 0) { Enable_Sub(Div, IsCheck); } + if (a % 4 == 1) { Enable_Sub(Acc, IsCheck); } + if (a % 4 == 2) { Enable_Sub(Marc, IsCheck); } + if (a % 4 == 3) { Enable_Sub(Manage, IsCheck); } + } + } + } + + private void Enable_Sub(CheckBox[] Target, bool IsCheck) + { + for (int a = 0; a < Target.Length; a++) + { + Target[a].Checked = IsCheck; + } + } + /// /// 권한 설정 0일경우 체크없음, 1일경우 활성화만, 2일경우 활성화와 수정체크 /// @@ -68,26 +113,59 @@ namespace WindowsFormsApp1.Home /// private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { - if(e == null) { gridIndex = 0; } - else { gridIndex = e.RowIndex; } - string value = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); - string cmd = _DB.DB_Search(Table_User, "id", value); - string db_res = _DB.DB_Send_CMD_Search(cmd); - tempData = db_res.Split('|'); - tb_ID.Text = dataGridView1.Rows[e.RowIndex].Cells["ID"].Value.ToString(); - tb_PW.Text = dataGridView1.Rows[e.RowIndex].Cells["PW"].Value.ToString(); - tb_Name.Text = dataGridView1.Rows[e.RowIndex].Cells["Per_Name"].Value.ToString(); + int row = e.RowIndex; + + if (row < 0) return; + + tb_ID.Text = dataGridView1.Rows[row].Cells["ID"].Value.ToString(); + tb_PW.Text = dataGridView1.Rows[row].Cells["PW"].Value.ToString(); + tb_Name.Text = dataGridView1.Rows[row].Cells["Per_Name"].Value.ToString(); tb_Affil.Text = comp_name; - tb_position.Text = dataGridView1.Rows[e.RowIndex].Cells["Rank"].Value.ToString(); - tb_Phone.Text = dataGridView1.Rows[e.RowIndex].Cells["Phone"].Value.ToString(); - string[] real = dataGridView1.Rows[e.RowIndex].Cells["right"].Value.ToString().Split(','); - right_chk(real); - init_check(); + tb_position.Text = dataGridView1.Rows[row].Cells["Rank"].Value.ToString(); + tb_Phone.Text = dataGridView1.Rows[row].Cells["Phone"].Value.ToString(); + + User_Access_Set(); } - private void check1_1_Click(object sender, EventArgs e) + #region CellClick_Sub + private void User_Access_Set() { - init_check(); + CheckBox[] chkBox = { + chk_Div_ListInput, chk_Div_ListLookup, chk_Div_ListTotal, chk_Div_OrderInput, chk_Div_Inven, + chk_Div_Stock, chk_Div_Return, + + chk_Acc_SendMoneyList, chk_Acc_SendMoneyInput, chk_Acc_Buy, chk_Acc_Sales, chk_Acc_PartTime, + + chk_Marc_Setup, chk_Marc_Work, chk_Marc_Input, chk_Marc_CopyCheck, chk_Marc_Option, + chk_Marc_DLS, chk_Marc_ETC, + + chk_Manage_User, chk_Manage_Client, chk_Manage_Purchase, chk_Manage_Book + }; + + + string Area = + "`Div_ListInput`, `Div_ListLookup`, `Div_ListTotal`, `Div_OrderInput`, `Div_Inven`," + + "`Div_Stock`, `Div_Return`," + + + "`Acc_SendMoneyList`, `Acc_SendMoneyInput`, `Acc_Buy`, `Acc_Sales`, `Acc_PartTime`," + + + "`Marc_Setup`, `Marc_Work`, `Marc_Input`, `Marc_CopyCheck`, `Marc_Option`," + + "`Marc_DLS`, `Marc_ETC`," + + + "`Manage_User`, `Manage_Client`, `Manage_Purchase`, `Manage_Book`"; + string cmd = _DB.DB_Select_Search(Area, "User_Access", "id", tb_ID.Text); + string res = _DB.DB_Send_CMD_Search(cmd); + string[] IsCheck = res.Split('|'); + + for (int a = 0; a < chkBox.Length; a++) + { + if (IsCheck[a] == "1") + chkBox[a].Checked = true; + else + chkBox[a].Checked = false; + } } + #endregion + private void btn_IDOverlap_Click(object sender, EventArgs e) { string cmd = _DB.DB_Search(Table_User, "id", tb_ID.Text); @@ -95,384 +173,101 @@ namespace WindowsFormsApp1.Home if (db_res == "") { MessageBox.Show("사용가능한 아이디입니다. [" + tb_ID.Text + "]"); overlap = true; } else { MessageBox.Show("중복된 아이디입니다. [" + tb_ID.Text + "]"); overlap = false; } } - private void All_Check(object sender, EventArgs e) - { - bool yesorno = false; - if (((CheckBox)sender).Checked == true) { yesorno = true; } - else if (((CheckBox)sender).Checked == false) { yesorno = false; } - ALL_Check(sender, yesorno); - } private void btn_Save_Click(object sender, EventArgs e) { - string right = Return_right(); - btn_lookup_Click(null, null); - string U_cmd = _DB.DB_Update(Table_User, "right", right, "ID", tempData[1]); //(Table_User, "right", right, tempData[1]); - _DB.DB_Send_CMD_reVoid(U_cmd); - } - private void btn_Add_Click(object sender, EventArgs e) - { - if (tb_ID.Text == "" || tb_PW.Text == "" || tb_Name.Text == "") - { + if (tb_ID.Text == "" || tb_PW.Text == "" || tb_Name.Text == "") { MessageBox.Show("성명 / 아이디 / 비밀번호 를 채워주세요."); + return; } - else if (overlap == true) + + bool IsUpdate = true; + string cmd = _DB.DB_Search(Table_User, "id", tb_ID.Text); + string db_res = _DB.DB_Send_CMD_Search(cmd); + if (db_res == "") IsUpdate = false; + + CheckBox[] chkBox = { + chk_Div_ListInput, chk_Div_ListLookup, chk_Div_ListTotal, chk_Div_OrderInput, chk_Div_Inven, + chk_Div_Stock, chk_Div_Return, + + chk_Acc_SendMoneyList, chk_Acc_SendMoneyInput, chk_Acc_Buy, chk_Acc_Sales, chk_Acc_PartTime, + + chk_Marc_Setup, chk_Marc_Work, chk_Marc_Input, chk_Marc_CopyCheck, chk_Marc_Option, + chk_Marc_DLS, chk_Marc_ETC, + + chk_Manage_User, chk_Manage_Client, chk_Manage_Purchase, chk_Manage_Book + }; + + string[] Update_Col = { + "id", "Div_ListInput", "Div_ListLookup", "Div_ListTotal", "Div_OrderInput", "Div_Inven", + "Div_Stock", "Div_Return", + + "Acc_SendMoneyList", "Acc_SendMoneyInput", "Acc_Buy", "Acc_Sales", "Acc_PartTime", + + "Marc_Setup", "Marc_Work", "Marc_Input", "Marc_CopyCheck", "Marc_Option", + "Marc_DLS", "Marc_ETC", + + "Manage_User", "Manage_Client", "Manage_Purchase", "Manage_Book" + }; + + List tmp_Update_data = new List(); + tmp_Update_data.Add(tb_ID.Text); + for (int a = 0; a < chkBox.Length; a++) { - string right = Return_right(); - string create_DB = "INSERT INTO User_Data" + - "(`ID`, `PW`, `name`, `right`, `affil`, `position`, `Phone`, `grade`)" + - "values('" + tb_ID.Text + "', '" + tb_PW.Text + "', '" + tb_Name.Text + "', '" + right + "',"; - if (_DB.chk_comp(tb_Affil.Text) == true) { - MessageBox.Show("DB에 등록되지 않은 업체입니다.\n관리자에게 연락바랍니다.", "Error"); - return; - } - if (tb_Affil.Text == "") { create_DB += "null,"; } - else { create_DB += "'" + tb_Affil.Text + "',"; } - if (tb_position.Text == "") { create_DB += "null,"; } - else { create_DB += "'" + tb_position.Text + "',"; } - if (tb_Phone.Text == "") { create_DB += "null,"; } - else { create_DB += "'" + tb_Phone.Text + "',"; } - _DB.self_Made_Cmd(create_DB); - overlap = false; - btn_lookup_Click(null, null); + bool IsCheck = chkBox[a].Checked; + string tmp_data = "0"; + if (IsCheck) + tmp_data = "1"; + + tmp_Update_data.Add(tmp_data); } - else { MessageBox.Show("아이디 중복확인을 해주세요"); } + + string[] Update_Data = tmp_Update_data.ToArray(); + + if (!IsUpdate) + { + string[] Insert_Col = { "ID", "PW", "name", "affil", "position", "Phone" }; + string[] Insert_Data = { tb_ID.Text, tb_PW.Text, tb_Name.Text, tb_Affil.Text, tb_position.Text, tb_Phone.Text }; + + cmd = _DB.DB_INSERT("User_Data", Insert_Col, Insert_Data); + _DB.DB_Send_CMD_reVoid(cmd); + cmd = _DB.DB_INSERT("User_Access", Update_Col, Update_Data); + _DB.DB_Send_CMD_reVoid(cmd); + } + else + { + string[] Search_Col = { "ID" }; + string[] Search_Data = { tb_ID.Text }; + string[] Update1_Col = { "ID", "PW", "name", "affil", "position", "Phone" }; + string[] Update1_Data = { tb_ID.Text, tb_PW.Text, tb_Name.Text, tb_Affil.Text, tb_position.Text, tb_Phone.Text }; + + cmd = _DB.More_Update("User_Data", Update1_Col, Update1_Data, Search_Col, Search_Data); + _DB.DB_Send_CMD_reVoid(cmd); + cmd = _DB.More_Update("User_Access", Update_Col, Update_Data, Search_Col, Search_Data); + _DB.DB_Send_CMD_reVoid(cmd); + } + + MessageBox.Show("저장되었습니다!"); + btn_lookup_Click(null, null); } + + private void btn_Empty_Click(object sender, EventArgs e) + { + tb_ID.Text = ""; + tb_PW.Text = ""; + tb_Name.Text = ""; + tb_Affil.Text = comp_name; + tb_position.Text = ""; + tb_Phone.Text = ""; + } + private void btn_Del_Click(object sender, EventArgs e) { - string D_cmd = _DB.DB_Delete(Table_User, "id", tempData[0], "PW", tempData[1]); + int row = dataGridView1.CurrentRow.Index; + string D_cmd = _DB.DB_Delete(Table_User, "ID", tb_ID.Text, "PW", tb_PW.Text); _DB.DB_Send_CMD_reVoid(D_cmd); - dataGridView1.Rows.Remove(dataGridView1.Rows[gridIndex]); + dataGridView1.Rows.Remove(dataGridView1.Rows[row]); } - #region 체크박스 관련 - /// - /// 체크박스로 권한(right)값 구하기 - /// - /// - private string Return_right() - { - string right = ""; - { - if (check1_1.Checked == false) { right += "0,"; } - else if (check1_1.Checked == true && check1_2.Checked == false) { right += "1,"; } - else if (check1_1.Checked == true && check1_2.Checked == true) { right += "2,"; } - - if (check2_1.Checked == false) { right += "0,"; } - else if (check2_1.Checked == true && check2_2.Checked == false) { right += "1,"; } - else if (check2_1.Checked == true && check2_2.Checked == true) { right += "2,"; } - - if (check3_1.Checked == false) { right += "0,"; } - else if (check3_1.Checked == true && check3_2.Checked == false) { right += "1,"; } - else if (check3_1.Checked == true && check3_2.Checked == true) { right += "2,"; } - - if (check4_1.Checked == false) { right += "0,"; } - else if (check4_1.Checked == true && check4_2.Checked == false) { right += "1,"; } - else if (check4_1.Checked == true && check4_2.Checked == true) { right += "2,"; } - - if (check5_1.Checked == false) { right += "0,"; } - else if (check5_1.Checked == true && check5_2.Checked == false) { right += "1,"; } - else if (check5_1.Checked == true && check5_2.Checked == true) { right += "2,"; } - - if (check6_1.Checked == false) { right += "0,"; } - else if (check6_1.Checked == true && check6_2.Checked == false) { right += "1,"; } - else if (check6_1.Checked == true && check6_2.Checked == true) { right += "2,"; } - - if (check7_1.Checked == false) { right += "0,"; } - else if (check7_1.Checked == true && check7_2.Checked == false) { right += "1,"; } - else if (check7_1.Checked == true && check7_2.Checked == true) { right += "2,"; } - - if (check8_1.Checked == false) { right += "0,"; } - else if (check8_1.Checked == true && check8_2.Checked == false) { right += "1,"; } - else if (check8_1.Checked == true && check8_2.Checked == true) { right += "2,"; } - - if (check9_1.Checked == false) { right += "0,"; } - else if (check9_1.Checked == true && check9_2.Checked == false) { right += "1,"; } - else if (check9_1.Checked == true && check9_2.Checked == true) { right += "2,"; } - - if (check10_1.Checked == false) { right += "0,"; } - else if (check10_1.Checked == true && check10_2.Checked == false) { right += "1,"; } - else if (check10_1.Checked == true && check10_2.Checked == true) { right += "2,"; } - - if (check11_1.Checked == false) { right += "0,"; } - else if (check11_1.Checked == true && check11_2.Checked == false) { right += "1,"; } - else if (check11_1.Checked == true && check11_2.Checked == true) { right += "2,"; } - - if (check12_1.Checked == false) { right += "0,"; } - else if (check12_1.Checked == true && check12_2.Checked == false) { right += "1,"; } - else if (check12_1.Checked == true && check12_2.Checked == true) { right += "2,"; } - - if (check13_1.Checked == false) { right += "0,"; } - else if (check13_1.Checked == true && check13_2.Checked == false) { right += "1,"; } - else if (check13_1.Checked == true && check13_2.Checked == true) { right += "2,"; } - - if (check14_1.Checked == false) { right += "0,"; } - else if (check14_1.Checked == true && check14_2.Checked == false) { right += "1,"; } - else if (check14_1.Checked == true && check14_2.Checked == true) { right += "2,"; } - - if (check15_1.Checked == false) { right += "0,"; } - else if (check15_1.Checked == true && check15_2.Checked == false) { right += "1,"; } - else if (check15_1.Checked == true && check15_2.Checked == true) { right += "2,"; } - - if (check16_1.Checked == false) { right += "0,"; } - else if (check16_1.Checked == true && check16_2.Checked == false) { right += "1,"; } - else if (check16_1.Checked == true && check16_2.Checked == true) { right += "2,"; } - - if (check17_1.Checked == false) { right += "0,"; } - else if (check17_1.Checked == true && check17_2.Checked == false) { right += "1,"; } - else if (check17_1.Checked == true && check17_2.Checked == true) { right += "2,"; } - - if (check18_1.Checked == false) { right += "0,"; } - else if (check18_1.Checked == true && check18_2.Checked == false) { right += "1,"; } - else if (check18_1.Checked == true && check18_2.Checked == true) { right += "2,"; } - - if (check19_1.Checked == false) { right += "0,"; } - else if (check19_1.Checked == true && check19_2.Checked == false) { right += "1,"; } - else if (check19_1.Checked == true && check19_2.Checked == true) { right += "2,"; } - - if (check20_1.Checked == false) { right += "0"; } - else if (check20_1.Checked == true && check20_2.Checked == false) { right += "1"; } - else if (check20_1.Checked == true && check20_2.Checked == true) { right += "2"; } - } // 체크박스로 권한값구하기 - return right; - } - /// - /// 권한 나눈거 적용하는 함수 - /// - /// - private void right_chk(string[] real) - { - if (real[0] == "0") { check1_1.Checked = false; check1_2.Checked = false; } - else if (real[0] == "1") { check1_1.Checked = true; check1_2.Checked = false; } - else if (real[0] == "2") { check1_1.Checked = true; check1_2.Checked = true; } - - if (real[1] == "0") { check2_1.Checked = false; check2_2.Checked = false; } - else if (real[1] == "1") { check2_1.Checked = true; check2_2.Checked = false; } - else if (real[1] == "2") { check2_1.Checked = true; check2_2.Checked = true; } - - if (real[2] == "0") { check3_1.Checked = false; check3_2.Checked = false; } - else if (real[2] == "1") { check3_1.Checked = true; check3_2.Checked = false; } - else if (real[2] == "2") { check3_1.Checked = true; check3_2.Checked = true; } - - if (real[3] == "0") { check4_1.Checked = false; check4_2.Checked = false; } - else if (real[3] == "1") { check4_1.Checked = true; check4_2.Checked = false; } - else if (real[3] == "2") { check4_1.Checked = true; check4_2.Checked = true; } - - if (real[4] == "0") { check5_1.Checked = false; check5_2.Checked = false; } - else if (real[4] == "1") { check5_1.Checked = true; check5_2.Checked = false; } - else if (real[4] == "2") { check5_1.Checked = true; check5_2.Checked = true; } - - if (real[5] == "0") { check6_1.Checked = false; check6_2.Checked = false; } - else if (real[5] == "1") { check6_1.Checked = true; check6_2.Checked = false; } - else if (real[5] == "2") { check6_1.Checked = true; check6_2.Checked = true; } - - if (real[6] == "0") { check7_1.Checked = false; check7_2.Checked = false; } - else if (real[6] == "1") { check7_1.Checked = true; check7_2.Checked = false; } - else if (real[6] == "2") { check7_1.Checked = true; check7_2.Checked = true; } - - if (real[7] == "0") { check8_1.Checked = false; check8_2.Checked = false; } - else if (real[7] == "1") { check8_1.Checked = true; check8_2.Checked = false; } - else if (real[7] == "2") { check8_1.Checked = true; check8_2.Checked = true; } - - if (real[8] == "0") { check9_1.Checked = false; check9_2.Checked = false; } - else if (real[8] == "1") { check9_1.Checked = true; check9_2.Checked = false; } - else if (real[8] == "2") { check9_1.Checked = true; check9_2.Checked = true; } - - if (real[9] == "0") { check10_1.Checked = false; check10_2.Checked = false; } - else if (real[9] == "1") { check10_1.Checked = true; check10_2.Checked = false; } - else if (real[9] == "2") { check10_1.Checked = true; check10_2.Checked = true; } - - if (real[10] == "0") { check11_1.Checked = false; check11_2.Checked = false; } - else if (real[10] == "1") { check11_1.Checked = true; check11_2.Checked = false; } - else if (real[10] == "2") { check11_1.Checked = true; check11_2.Checked = true; } - - if (real[11] == "0") { check12_1.Checked = false; check12_2.Checked = false; } - else if (real[11] == "1") { check12_1.Checked = true; check12_2.Checked = false; } - else if (real[11] == "2") { check12_1.Checked = true; check12_2.Checked = true; } - - if (real[12] == "0") { check13_1.Checked = false; check13_2.Checked = false; } - else if (real[12] == "1") { check13_1.Checked = true; check13_2.Checked = false; } - else if (real[12] == "2") { check13_1.Checked = true; check13_2.Checked = true; } - - if (real[13] == "0") { check14_1.Checked = false; check14_2.Checked = false; } - else if (real[13] == "1") { check14_1.Checked = true; check14_2.Checked = false; } - else if (real[13] == "2") { check14_1.Checked = true; check14_2.Checked = true; } - - if (real[14] == "0") { check15_1.Checked = false; check15_2.Checked = false; } - else if (real[14] == "1") { check15_1.Checked = true; check15_2.Checked = false; } - else if (real[14] == "2") { check15_1.Checked = true; check15_2.Checked = true; } - - if (real[15] == "0") { check16_1.Checked = false; check16_2.Checked = false; } - else if (real[15] == "1") { check16_1.Checked = true; check16_2.Checked = false; } - else if (real[15] == "2") { check16_1.Checked = true; check16_2.Checked = true; } - - if (real[16] == "0") { check17_1.Checked = false; check17_2.Checked = false; } - else if (real[16] == "1") { check17_1.Checked = true; check17_2.Checked = false; } - else if (real[16] == "2") { check17_1.Checked = true; check17_2.Checked = true; } - - if (real[17] == "0") { check18_1.Checked = false; check18_2.Checked = false; } - else if (real[17] == "1") { check18_1.Checked = true; check18_2.Checked = false; } - else if (real[17] == "2") { check18_1.Checked = true; check18_2.Checked = true; } - - if (real[18] == "0") { check19_1.Checked = false; check19_2.Checked = false; } - else if (real[18] == "1") { check19_1.Checked = true; check19_2.Checked = false; } - else if (real[18] == "2") { check19_1.Checked = true; check19_2.Checked = true; } - - if (real[19] == "0") { check20_1.Checked = false; check20_2.Checked = false; } - else if (real[19] == "1") { check20_1.Checked = true; check20_2.Checked = false; } - else if (real[19] == "2") { check20_1.Checked = true; check20_2.Checked = true; } - } - /// - /// 체크박스 초기화 - /// - private void init_check() - { - if (check1_1.Checked == false) { check1_2.Enabled = false; } - else if (check1_1.Checked == true) { check1_2.Enabled = true; } - if (check2_1.Checked == false) { check2_2.Enabled = false; } - else if (check2_1.Checked == true) { check2_2.Enabled = true; } - if (check3_1.Checked == false) { check3_2.Enabled = false; } - else if (check3_1.Checked == true) { check3_2.Enabled = true; } - if (check4_1.Checked == false) { check4_2.Enabled = false; } - else if (check4_1.Checked == true) { check4_2.Enabled = true; } - if (check5_1.Checked == false) { check5_2.Enabled = false; } - else if (check5_1.Checked == true) { check5_2.Enabled = true; } - if (check6_1.Checked == false) { check6_2.Enabled = false; } - else if (check6_1.Checked == true) { check6_2.Enabled = true; } - if (check7_1.Checked == false) { check7_2.Enabled = false; } - else if (check7_1.Checked == true) { check7_2.Enabled = true; } - if (check8_1.Checked == false) { check8_2.Enabled = false; } - else if (check8_1.Checked == true) { check8_2.Enabled = true; } - if (check9_1.Checked == false) { check9_2.Enabled = false; } - else if (check9_1.Checked == true) { check9_2.Enabled = true; } - if (check10_1.Checked == false) { check10_2.Enabled = false; } - else if (check10_1.Checked == true) { check10_2.Enabled = true; } - if (check11_1.Checked == false) { check11_2.Enabled = false; } - else if (check11_1.Checked == true) { check11_2.Enabled = true; } - if (check12_1.Checked == false) { check12_2.Enabled = false; } - else if (check12_1.Checked == true) { check12_2.Enabled = true; } - if (check13_1.Checked == false) { check13_2.Enabled = false; } - else if (check13_1.Checked == true) { check13_2.Enabled = true; } - if (check14_1.Checked == false) { check14_2.Enabled = false; } - else if (check14_1.Checked == true) { check14_2.Enabled = true; } - if (check15_1.Checked == false) { check15_2.Enabled = false; } - else if (check15_1.Checked == true) { check15_2.Enabled = true; } - if (check16_1.Checked == false) { check16_2.Enabled = false; } - else if (check16_1.Checked == true) { check16_2.Enabled = true; } - if (check17_1.Checked == false) { check17_2.Enabled = false; } - else if (check17_1.Checked == true) { check17_2.Enabled = true; } - if (check18_1.Checked == false) { check18_2.Enabled = false; } - else if (check18_1.Checked == true) { check18_2.Enabled = true; } - if (check19_1.Checked == false) { check19_2.Enabled = false; } - else if (check19_1.Checked == true) { check19_2.Enabled = true; } - if (check20_1.Checked == false) { check20_2.Enabled = false; } - else if (check20_1.Checked == true) { check20_2.Enabled = true; } - } - /// - /// 일괄체크 - /// - /// 이벤트 sender 그대로 가져와야함 - /// true or false - private void ALL_Check(object sender, bool chk) - { - string target = ((CheckBox)sender).Name; - { - if (target == "ALL_check1" && chk == true) - { - check1_1.Checked = true; - check2_1.Checked = true; - check3_1.Checked = true; - check4_1.Checked = true; - check5_1.Checked = true; - check6_1.Checked = true; - check7_1.Checked = true; - check8_1.Checked = true; - check9_1.Checked = true; - check10_1.Checked = true; - check11_1.Checked = true; - check12_1.Checked = true; - check13_1.Checked = true; - check14_1.Checked = true; - check15_1.Checked = true; - check16_1.Checked = true; - check17_1.Checked = true; - check18_1.Checked = true; - check19_1.Checked = true; - check20_1.Checked = true; - } - else if (target == "ALL_check1" && chk == false) - { - check1_1.Checked = false; - check2_1.Checked = false; - check3_1.Checked = false; - check4_1.Checked = false; - check5_1.Checked = false; - check6_1.Checked = false; - check7_1.Checked = false; - check8_1.Checked = false; - check9_1.Checked = false; - check10_1.Checked = false; - check11_1.Checked = false; - check12_1.Checked = false; - check13_1.Checked = false; - check14_1.Checked = false; - check15_1.Checked = false; - check16_1.Checked = false; - check17_1.Checked = false; - check18_1.Checked = false; - check19_1.Checked = false; - check20_1.Checked = false; - } - else if (target == "ALL_check2" && chk == true) - { - check1_2.Checked = true; - check2_2.Checked = true; - check3_2.Checked = true; - check4_2.Checked = true; - check5_2.Checked = true; - check6_2.Checked = true; - check7_2.Checked = true; - check8_2.Checked = true; - check9_2.Checked = true; - check10_2.Checked = true; - check11_2.Checked = true; - check12_2.Checked = true; - check13_2.Checked = true; - check14_2.Checked = true; - check15_2.Checked = true; - check16_2.Checked = true; - check17_2.Checked = true; - check18_2.Checked = true; - check19_2.Checked = true; - check20_2.Checked = true; - } - else if (target == "ALL_check2" && chk == false) - { - check1_2.Checked = false; - check2_2.Checked = false; - check3_2.Checked = false; - check4_2.Checked = false; - check5_2.Checked = false; - check6_2.Checked = false; - check7_2.Checked = false; - check8_2.Checked = false; - check9_2.Checked = false; - check10_2.Checked = false; - check11_2.Checked = false; - check12_2.Checked = false; - check13_2.Checked = false; - check14_2.Checked = false; - check15_2.Checked = false; - check16_2.Checked = false; - check17_2.Checked = false; - check18_2.Checked = false; - check19_2.Checked = false; - check20_2.Checked = false; - } - } - init_check(); - } - #endregion - private void btn_close_Click(object sender, EventArgs e) { this.Close(); diff --git a/unimarc/unimarc/홈/Home_User_manage.resx b/unimarc/unimarc/홈/Home_User_manage.resx index 248df90..645ccdb 100644 --- a/unimarc/unimarc/홈/Home_User_manage.resx +++ b/unimarc/unimarc/홈/Home_User_manage.resx @@ -117,2183 +117,14 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check20_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel12 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check20_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel12 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 주문 입력 - - - label37 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel12 - - - 2 - - - -1, 511 - - - 818, 24 - - - 5 - - - panel12 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 0 - - - True - - - 707, 14 - - - 76, 16 - - - 5 - - - 일괄 체크 - - - ALL_check2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 1 - - - True - - - 561, 14 - - - 76, 16 - - - 5 - - - 일괄 체크 - - - ALL_check1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 2 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check10_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel11 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check10_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel11 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 목록 등록 - - - label36 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel11 - - - 2 - - - -1, 281 - - - 818, 24 - - - 4 - - - panel11 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 3 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check19_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel13 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check19_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel13 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 예가 조회 - - - label38 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel13 - - - 2 - - - -1, 488 - - - 818, 24 - - - 6 - - - panel13 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 4 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check9_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel10 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check9_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel10 - - - 1 - - - True - - - 54, 5 - - - 69, 12 - - - 0 - - - 거래처 관리 - - - label35 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel10 - - - 2 - - - -1, 258 - - - 818, 24 - - - 4 - - - panel10 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 5 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check18_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel14 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check18_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel14 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 송금 내역 - - - label39 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel14 - - - 2 - - - -1, 465 - - - 818, 24 - - - 7 - - - panel14 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 6 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check8_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel9 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check8_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel9 - - - 1 - - - True - - - 54, 5 - - - 69, 12 - - - 0 - - - 주문처 관리 - - - label34 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel9 - - - 2 - - - True - - - 308, 5 - - - 69, 12 - - - 0 - - - 주문처 설명 - - - label27 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel9 - - - 3 - - - -1, 235 - - - 818, 24 - - - 4 - - - panel9 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 7 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check17_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel15 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check17_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel15 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 송금 관리 - - - label40 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel15 - - - 2 - - - -1, 442 - - - 818, 24 - - - 8 - - - panel15 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 8 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check7_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel8 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check7_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel8 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 직원 관리 - - - label33 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel8 - - - 2 - - - -1, 212 - - - 818, 24 - - - 4 - - - panel8 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 9 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check16_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel16 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check16_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel16 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 주문 관리 - - - label41 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel16 - - - 2 - - - -1, 419 - - - 818, 24 - - - 9 - - - panel16 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 10 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check6_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel7 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check6_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel7 - - - 1 - - - True - - - 44, 5 - - - 89, 12 - - - 0 - - - 주문원수량표시 - - - label32 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel7 - - - 2 - - - -1, 189 - - - 818, 24 - - - 4 - - - panel7 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 11 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check15_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel17 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check15_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel17 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 목록 집계 - - - label42 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel17 - - - 2 - - - -1, 396 - - - 818, 24 - - - 10 - - - panel17 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 12 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check5_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel6 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check5_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel6 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 전표 수정 - - - label31 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel6 - - - 2 - - - True - - - 286, 5 - - - 113, 12 - - - 0 - - - 매출, 매입전표 수정 - - - label26 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel6 - - - 3 - - - -1, 166 - - - 818, 24 - - - 4 - - - panel6 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 13 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check14_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel18 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check14_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel18 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 목록 조회 - - - label43 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel18 - - - 2 - - - -1, 373 - - - 818, 24 - - - 11 - - - panel18 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 14 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check4_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel5 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check4_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel5 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 재고 관리 - - - label30 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel5 - - - 2 - - - -1, 143 - - - 818, 24 - - - 4 - - - panel5 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 15 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check13_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel19 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check13_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel19 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 입고 조회 - - - label44 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel19 - - - 2 - - - -1, 350 - - - 818, 24 - - - 12 - - - panel19 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 16 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check3_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel4 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check3_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel4 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 입고 관리 - - - label29 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel4 - - - 2 - - - -1, 120 - - - 818, 24 - - - 4 - - - panel4 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 17 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check12_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel20 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check12_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel20 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 입고 확인 - - - label45 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel20 - - - 2 - - - -1, 327 - - - 818, 24 - - - 13 - - - panel20 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 18 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check2_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel3 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check2_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel3 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 매출 관리 - - - label28 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel3 - - - 2 - - - -1, 97 - - - 818, 24 - - - 4 - - - panel3 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 19 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check11_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel21 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check11_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel21 - - - 1 - - - True - - - 60, 5 - - - 57, 12 - - - 0 - - - 입고 작업 - - - label46 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel21 - - - 2 - - - -1, 304 - - - 818, 24 - - - 14 - - - panel21 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 20 - - - True - - - 738, 4 - - - 15, 14 - - - 5 - - - check1_2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel2 - - - 0 - - - True - - - 591, 4 - - - 15, 14 - - - 5 - - - check1_1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel2 - - - 1 - - - True - - - 54, 5 - - - 69, 12 - - - 0 - - - 계산서 관리 - - - label6 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel2 - - - 2 - - - -1, 74 - - - 818, 24 - - - 4 - - - panel2 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 21 - - - True - - - 굴림, 12pt, style=Bold - - - 693, 46 - - - 105, 16 - - - 0 - - - 저장 및 삭제 - - - label5 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 22 - - - True - - - 굴림, 12pt, style=Bold - - - 570, 46 - - - 59, 16 - - - 0 - - - 활성화 - - - label3 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 23 - - - True - - - 굴림, 12pt, style=Bold - - - 301, 46 - - - 82, 16 - - - 0 - - - 업무 설명 - - - label2 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 24 - - - True - - - 굴림, 12pt, style=Bold - - - 47, 46 - - - 82, 16 - - - 0 - - - 업무 이름 - - - label1 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - panel1 - - - 25 - - - 416, 12 - - - 818, 536 - - - 4 - - - panel1 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 2 - 173, 103 75, 23 + 3 @@ -2522,28 +353,28 @@ 18 - + 92, 103 - + 75, 23 - + 3 - - 추 가 + + 칸 비우기 - - btn_Add + + btn_Empty - + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + $this - + 19 @@ -2705,15 +536,6 @@ False - - True - - - 권한 - - - False - 12, 132 @@ -2760,7 +582,7 @@ $this - 1 + 2 @@ -2788,8 +610,2162 @@ $this + 1 + + + InsetDouble + + + 2 + + + Single + + + 2 + + + True + + + Fill + + + NoControl + + + 4, 185 + + + 341, 46 + + + 14 + + + 도서정보 관리 + + + MiddleCenter + + + label29 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + 0 + + True + + + Fill + + + NoControl + + + 4, 139 + + + 341, 45 + + + 13 + + + 주문처 관리 + + + MiddleCenter + + + label28 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 1 + + + True + + + Fill + + + NoControl + + + 4, 93 + + + 341, 45 + + + 12 + + + 납품 / 거래처 관리 + + + MiddleCenter + + + label27 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 2 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 188 + + + 37, 40 + + + 7 + + + chk_Manage_Book + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 3 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 142 + + + 37, 39 + + + 5 + + + chk_Manage_Purchase + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 4 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 96 + + + 37, 39 + + + 3 + + + chk_Manage_Client + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 5 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 50 + + + 37, 39 + + + 0 + + + chk_Manage_User + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 6 + + + True + + + Fill + + + NoControl + + + 4, 47 + + + 341, 45 + + + 11 + + + 사용자 관리 + + + MiddleCenter + + + label26 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 7 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 4 + + + 37, 39 + + + 18 + + + chk_Manage + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 8 + + + True + + + Fill + + + 굴림, 12pt, style=Bold + + + NoControl + + + 4, 1 + + + 341, 45 + + + 19 + + + 전체 체크 + + + MiddleCenter + + + label32 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 9 + + + Fill + + + 3, 22 + + + 5 + + + 393, 232 + + + 2 + + + tableLayoutPanel5 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBox4 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="label29" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label28" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label27" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Manage_Book" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Manage_Purchase" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Manage_Client" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Manage_User" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label26" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Manage" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label32" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,100,Absolute,43" /><Rows Styles="Percent,20,Percent,20,Percent,20,Percent,20,Percent,20" /></TableLayoutSettings> + + + Fill + + + 굴림, 12pt, style=Bold + + + 413, 271 + + + 399, 257 + + + 2 + + + 관리 + + + groupBox4 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 0 + + + Single + + + 2 + + + True + + + Fill + + + NoControl + + + 4, 197 + + + 340, 34 + + + 17 + + + 기타 + + + MiddleCenter + + + label25 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 0 + + + True + + + Fill + + + NoControl + + + 4, 169 + + + 340, 27 + + + 16 + + + DLS + + + MiddleCenter + + + label24 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 1 + + + True + + + Fill + + + NoControl + + + 4, 141 + + + 340, 27 + + + 15 + + + 부가기능 + + + MiddleCenter + + + label23 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 2 + + + True + + + Fill + + + NoControl + + + 4, 113 + + + 340, 27 + + + 14 + + + 복본조사 + + + MiddleCenter + + + label22 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 3 + + + True + + + Fill + + + NoControl + + + 4, 85 + + + 340, 27 + + + 13 + + + 반입 및 반출 + + + MiddleCenter + + + label21 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 4 + + + True + + + Fill + + + NoControl + + + 4, 57 + + + 340, 27 + + + 12 + + + 마크 작업 + + + MiddleCenter + + + label20 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 5 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 116 + + + 37, 21 + + + 7 + + + chk_Marc_CopyCheck + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 6 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 88 + + + 37, 21 + + + 5 + + + chk_Marc_Input + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 7 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 4 + + + 37, 21 + + + 18 + + + chk_Marc + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 8 + + + True + + + Fill + + + 굴림, 12pt, style=Bold + + + NoControl + + + 4, 1 + + + 340, 27 + + + 19 + + + 전체 체크 + + + MiddleCenter + + + label33 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 9 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 60 + + + 37, 21 + + + 3 + + + chk_Marc_Work + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 10 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 32 + + + 37, 21 + + + 0 + + + chk_Marc_Setup + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 11 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 144 + + + 37, 21 + + + 8 + + + chk_Marc_Option + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 12 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 172 + + + 37, 21 + + + 9 + + + chk_Marc_DLS + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 13 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 200 + + + 37, 28 + + + 10 + + + chk_Marc_ETC + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 14 + + + True + + + Fill + + + 4, 29 + + + 340, 27 + + + 11 + + + 설정 + + + MiddleCenter + + + label19 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 15 + + + Fill + + + 3, 22 + + + 8 + + + 392, 232 + + + 1 + + + tableLayoutPanel4 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBox3 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="label25" Row="7" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label24" Row="6" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label23" Row="5" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label22" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label21" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label20" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Marc_CopyCheck" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Marc_Input" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Marc" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label33" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Marc_Work" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Marc_Setup" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Marc_Option" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Marc_DLS" Row="6" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Marc_ETC" Row="7" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label19" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,100,Absolute,43" /><Rows Styles="Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5" /></TableLayoutSettings> + + + Fill + + + 굴림, 12pt, style=Bold + + + 6, 271 + + + 398, 257 + + + 2 + + + 마크 + + + groupBox3 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 1 + + + Single + + + 2 + + + True + + + Fill + + + NoControl + + + 4, 153 + + + 341, 37 + + + 16 + + + 매출 + + + MiddleCenter + + + label18 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 0 + + + True + + + Fill + + + NoControl + + + 4, 115 + + + 341, 37 + + + 15 + + + 매입 + + + MiddleCenter + + + label17 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 1 + + + True + + + Fill + + + NoControl + + + 4, 77 + + + 341, 37 + + + 14 + + + 송금등록 + + + MiddleCenter + + + label16 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 2 + + + True + + + Fill + + + NoControl + + + 4, 191 + + + 341, 39 + + + 12 + + + 파트타임관리 + + + MiddleCenter + + + label14 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 3 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 156 + + + 37, 31 + + + 7 + + + chk_Acc_Sales + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 4 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 118 + + + 37, 31 + + + 5 + + + chk_Acc_Buy + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 5 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 80 + + + 37, 31 + + + 3 + + + chk_Acc_SendMoneyInput + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 6 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 42 + + + 37, 31 + + + 0 + + + chk_Acc_SendMoneyList + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 7 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 194 + + + 37, 33 + + + 8 + + + chk_Acc_PartTime + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 8 + + + True + + + Fill + + + 4, 39 + + + 341, 37 + + + 13 + + + 송금내역조회 + + + MiddleCenter + + + label15 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 9 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 352, 4 + + + 37, 31 + + + 18 + + + chk_Acc + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 10 + + + True + + + Fill + + + 굴림, 12pt, style=Bold + + + NoControl + + + 4, 1 + + + 341, 37 + + + 19 + + + 전체 체크 + + + MiddleCenter + + + label31 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 11 + + + Fill + + + 3, 22 + + + 6 + + + 393, 231 + + + 1 + + + tableLayoutPanel3 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBox2 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="label18" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label17" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label16" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label14" Row="5" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Acc_Sales" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Acc_Buy" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Acc_SendMoneyInput" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Acc_SendMoneyList" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Acc_PartTime" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label15" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Acc" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label31" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,100,Absolute,43" /><Rows Styles="Percent,16.66667,Percent,16.66667,Percent,16.66667,Percent,16.66667,Percent,16.66667,Percent,16.66667" /></TableLayoutSettings> + + + Fill + + + 굴림, 12pt, style=Bold + + + 413, 6 + + + 399, 256 + + + 1 + + + 회계 + + + groupBox2 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 2 + + + Single + + + 2 + + + True + + + Fill + + + NoControl + + + 4, 197 + + + 340, 33 + + + 17 + + + 반품처리 + + + MiddleCenter + + + label13 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 0 + + + True + + + Fill + + + NoControl + + + 4, 169 + + + 340, 27 + + + 16 + + + 재고조회 + + + MiddleCenter + + + label12 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 1 + + + True + + + Fill + + + NoControl + + + 4, 141 + + + 340, 27 + + + 15 + + + 입고작업 + + + MiddleCenter + + + label6 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 2 + + + True + + + Fill + + + NoControl + + + 4, 113 + + + 340, 27 + + + 14 + + + 주문입력 + + + MiddleCenter + + + label5 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 3 + + + True + + + Fill + + + NoControl + + + 4, 85 + + + 340, 27 + + + 13 + + + 목록집계 + + + MiddleCenter + + + label3 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 4 + + + True + + + Fill + + + NoControl + + + 4, 57 + + + 340, 27 + + + 12 + + + 목록조회 + + + MiddleCenter + + + label2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 5 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 116 + + + 37, 21 + + + 7 + + + chk_Div_OrderInput + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 6 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 88 + + + 37, 21 + + + 5 + + + chk_Div_ListTotal + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 7 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 60 + + + 37, 21 + + + 3 + + + chk_Div_ListLookup + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 8 + + + True + + + MiddleCenter + + + Fill + + + 351, 32 + + + 37, 21 + + + 0 + + + chk_Div_ListInput + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 9 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 144 + + + 37, 21 + + + 8 + + + chk_Div_Stock + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 10 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 172 + + + 37, 21 + + + 9 + + + chk_Div_Inven + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 11 + + + True + + + MiddleCenter + + + Fill + + + NoControl + + + 351, 200 + + + 37, 27 + + + 10 + + + chk_Div_Return + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 12 + + + True + + + Fill + + + 4, 29 + + + 340, 27 + + + 11 + + + 목록등록 + + + MiddleCenter + + + label1 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 13 + + + True + + + MiddleCenter + + + Fill + + + 351, 4 + + + 37, 21 + + + 18 + + + chk_Div + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 14 + + + True + + + Fill + + + 굴림, 12pt, style=Bold + + + 4, 1 + + + 340, 27 + + + 19 + + + 전체 체크 + + + MiddleCenter + + + label30 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 15 + + + Fill + + + 3, 22 + + + 8 + + + 392, 231 + + + 0 + + + tableLayoutPanel2 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + groupBox1 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="label13" Row="7" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label12" Row="6" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label6" Row="5" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label5" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label2" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Div_OrderInput" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Div_ListTotal" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Div_ListLookup" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Div_ListInput" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Div_Stock" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Div_Inven" Row="6" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="chk_Div_Return" Row="7" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="chk_Div" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label30" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,100,Absolute,43" /><Rows Styles="Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Percent,12.5,Absolute,20" /></TableLayoutSettings> + + + Fill + + + 굴림, 12pt, style=Bold + + + 6, 6 + + + 398, 256 + + + 0 + + + 납품 + + + groupBox1 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 3 + + + 416, 12 + + + 2 + + + 818, 534 + + + 7 + + + tableLayoutPanel1 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="groupBox4" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="groupBox3" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="groupBox2" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="groupBox1" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,50,Percent,50" /><Rows Styles="Percent,50,Percent,50" /></TableLayoutSettings> + True @@ -2832,12 +2808,6 @@ System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - right - - - System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Home_User_manage diff --git a/unimarc/unimarc/홈/Order_manage.cs b/unimarc/unimarc/홈/Order_manage.cs index dabc59f..229c0e4 100644 --- a/unimarc/unimarc/홈/Order_manage.cs +++ b/unimarc/unimarc/홈/Order_manage.cs @@ -47,13 +47,13 @@ namespace WindowsFormsApp1.Home } else if (tb_search.Text != "") { - string[] Search_col = { "", "" }; - if (cb_search_filter.SelectedIndex == 0) { Search_col[0] = "sangho"; Search_col[1] = "comparyidx"; } - if (cb_search_filter.SelectedIndex == 1) { Search_col[0] = "boss"; Search_col[1] = "comparyidx"; } - if (cb_search_filter.SelectedIndex == 2) { Search_col[0] = "tel"; Search_col[1] = "comparyidx"; } - if (cb_search_filter.SelectedIndex == 4) { Search_col[0] = "fax"; Search_col[1] = "comparyidx"; } - if (cb_search_filter.SelectedIndex == 3) { Search_col[0] = "bubin"; Search_col[1] = "comparyidx"; } - string cmd = db.DB_Contains("Purchase", main.com_idx, Search_col[0], tb_search.Text, Search_Table, Search_col[1], main.com_idx); + string[] Search_col = { "" }; + if (cb_search_filter.SelectedIndex == 0) Search_col[0] = "sangho"; + if (cb_search_filter.SelectedIndex == 1) Search_col[0] = "boss"; + if (cb_search_filter.SelectedIndex == 2) Search_col[0] = "tel"; + if (cb_search_filter.SelectedIndex == 4) Search_col[0] = "fax"; + if (cb_search_filter.SelectedIndex == 3) Search_col[0] = "bubin"; + string cmd = db.DB_Contains("Purchase", main.com_idx, Search_col[0], tb_search.Text, Search_Table); string db_res = db.DB_Send_CMD_Search(cmd); Made_Grid(db_res); } @@ -192,9 +192,9 @@ namespace WindowsFormsApp1.Home string[] Search_Table = { "comparyidx", "bubin" }; string[] Search_Data = { main.com_idx, tb_bubin.Text }; - bool insert = false; + bool Isinsert = false; string cmd = db.More_DB_Search(Table, Search_Table, Search_Data); - if (db.DB_Send_CMD_Search(cmd).Length < 30) { insert = true; } + if (db.DB_Send_CMD_Search(cmd).Length < 30) { Isinsert = true; } string send_chk = "0"; string emchk = "0"; @@ -213,7 +213,7 @@ namespace WindowsFormsApp1.Home tb_jongmok.Text, tb_zip.Text, tb_addr.Text, tb_tel.Text, tb_fax.Text, tb_bank_no.Text, tb_bank_comp.Text, tb_bank_name.Text, gu, tb_barea.Text, rtb_etc.Text, tb_email.Text, tb_id.Text, tb_pw.Text, tb_site.Text, emchk }; - if (insert) + if (Isinsert) { string Incmd = db.DB_INSERT("Purchase", Insert_Table, Insert_Data); db.DB_Send_CMD_reVoid(Incmd); diff --git a/unimarc/unimarc/홈/Transaction_manage.cs b/unimarc/unimarc/홈/Transaction_manage.cs index b936885..e779901 100644 --- a/unimarc/unimarc/홈/Transaction_manage.cs +++ b/unimarc/unimarc/홈/Transaction_manage.cs @@ -185,7 +185,9 @@ namespace WindowsFormsApp1.Home } } else if(e != null) { grididx = e.RowIndex; } + if (e.RowIndex < 0) { return; } + string[] tmp_man = dataGridView1.Rows[grididx].Cells["man"].Value.ToString().Split('|'); tb_boss.Text = dataGridView1.Rows[grididx].Cells["boss"].Value.ToString(); tb_bubin.Text = dataGridView1.Rows[grididx].Cells["bubin"].Value.ToString(); @@ -275,16 +277,16 @@ namespace WindowsFormsApp1.Home "", "" }; for (int a = 0; a < dbtext1.Length; a++) { - if (a % 21 == 0) { result[0] = dbtext1[a]; } // idx - if (a % 21 == 1) { result[1] = dbtext1[a]; } // 거래처명 - if (a % 21 == 2) { result[2] = dbtext1[a]; } // 구분 - if (a % 21 == 3) { result[3] = dbtext1[a]; } // 대표자명 - if (a % 21 == 4) { result[4] = dbtext1[a]; } // 등록번호 - if (a % 21 == 5) { result[5] = dbtext1[a]; } // 업태 - if (a % 21 == 6) { result[6] = dbtext1[a]; } // 종목 - if (a % 21 == 7) { result[7] = dbtext1[a]; } // 전화번호 - if (a % 21 == 8) { result[8] = dbtext1[a]; } // 팩스 - if (a % 21 == 9) { result[9] = dbtext1[a]; } // 메일 + if (a % 21 == 00) { result[00] = dbtext1[a]; } // idx + if (a % 21 == 01) { result[01] = dbtext1[a]; } // 거래처명 + if (a % 21 == 02) { result[02] = dbtext1[a]; } // 구분 + if (a % 21 == 03) { result[03] = dbtext1[a]; } // 대표자명 + if (a % 21 == 04) { result[04] = dbtext1[a]; } // 등록번호 + if (a % 21 == 05) { result[05] = dbtext1[a]; } // 업태 + if (a % 21 == 06) { result[06] = dbtext1[a]; } // 종목 + if (a % 21 == 07) { result[07] = dbtext1[a]; } // 전화번호 + if (a % 21 == 08) { result[08] = dbtext1[a]; } // 팩스 + if (a % 21 == 09) { result[09] = dbtext1[a]; } // 메일 if (a % 21 == 10) { result[10] = dbtext1[a]; } // 담당자정보1 if (a % 21 == 11) { result[11] = dbtext1[a]; } // 담당자정보2 if (a % 21 == 12) { result[12] = dbtext1[a]; } // 담당직원 @@ -299,10 +301,6 @@ namespace WindowsFormsApp1.Home } dataGridView1.Focus(); } - private void btn_close_Click(object sender, EventArgs e) - { - Close(); - } private void cb_gubun1_SelectedIndexChanged(object sender, EventArgs e) { if (cb_gubun1.SelectedIndex == 1) @@ -507,5 +505,9 @@ namespace WindowsFormsApp1.Home gridView.Rows[e.RowIndex].Cells[2].Value = charge; } } + private void btn_close_Click(object sender, EventArgs e) + { + Close(); + } } } diff --git a/unimarc/unimarc/회계/Remit_reg.cs b/unimarc/unimarc/회계/Remit_reg.cs index c2c1b8f..7f413d7 100644 --- a/unimarc/unimarc/회계/Remit_reg.cs +++ b/unimarc/unimarc/회계/Remit_reg.cs @@ -24,7 +24,7 @@ namespace WindowsFormsApp1.Account private void Remit_reg_Load(object sender, EventArgs e) { db.DBcon(); - start_Date.Value = new DateTime(int.Parse(DateTime.Now.ToString("yyyy")), + start_Date.Value = new DateTime(int.Parse(DateTime.Now.ToString("yyyy")), int.Parse(DateTime.Now.ToString("MM")), 1); string[] combo_list = { "미지급", "지급", "전체" };