=====* unimarc *=====
기능 작업 완료 테스트 작업 진행중 홈 탭 완료 목록집계 진행중 (인쇄)
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||
|
||||
@@ -127,6 +127,18 @@
|
||||
<Compile Include="마크\All_Book_manage_Edit.Designer.cs">
|
||||
<DependentUpon>All_Book_manage_Edit.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_Copy_Sub_List.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_Copy_Sub_List.Designer.cs">
|
||||
<DependentUpon>Check_Copy_Sub_List.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_Copy_Sub_Search.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_Copy_Sub_Search.Designer.cs">
|
||||
<DependentUpon>Check_Copy_Sub_Search.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_ISBN_Split.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -145,6 +157,12 @@
|
||||
<Compile Include="마크\Check_ISBN_Yes24.Designer.cs">
|
||||
<DependentUpon>Check_ISBN_Yes24.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\DLS_Manage.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\DLS_Manage.Designer.cs">
|
||||
<DependentUpon>DLS_Manage.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\findNchange.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -236,6 +254,7 @@
|
||||
<Compile Include="마크\Search_Infor_Sub.Designer.cs">
|
||||
<DependentUpon>Search_Infor_Sub.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\SHDocVw.cs" />
|
||||
<Compile Include="마크\Symbol_Sub.cs" />
|
||||
<Compile Include="마크\Zoom_Picture.cs">
|
||||
<SubType>Form</SubType>
|
||||
@@ -695,6 +714,12 @@
|
||||
<EmbeddedResource Include="마크\All_Book_manage_Edit.resx">
|
||||
<DependentUpon>All_Book_manage_Edit.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\Check_Copy_Sub_List.resx">
|
||||
<DependentUpon>Check_Copy_Sub_List.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\Check_Copy_Sub_Search.resx">
|
||||
<DependentUpon>Check_Copy_Sub_Search.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\Check_ISBN_Split.resx">
|
||||
<DependentUpon>Check_ISBN_Split.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -704,6 +729,9 @@
|
||||
<EmbeddedResource Include="마크\Check_ISBN_Yes24.resx">
|
||||
<DependentUpon>Check_ISBN_Yes24.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\DLS_Manage.resx">
|
||||
<DependentUpon>DLS_Manage.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\findNchange.resx">
|
||||
<DependentUpon>findNchange.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -1169,6 +1197,15 @@
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="SHDocVw">
|
||||
<Guid>{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}</Guid>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>1</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>tlbimp</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="VBIDE">
|
||||
<Guid>{0002E157-0000-0000-C000-000000000046}</Guid>
|
||||
<VersionMajor>5</VersionMajor>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
unimarc/unimarc/obj/Debug/Interop.SHDocVw.dll
Normal file
BIN
unimarc/unimarc/obj/Debug/Interop.SHDocVw.dll
Normal file
Binary file not shown.
@@ -1 +1 @@
|
||||
dd0005ff570f47ea40ad656026054da24dc4d556
|
||||
01f4ac01b639d352c1b8aaaec11c6204688f1d5e
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.DLS_Manage.resources
Normal file
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.DLS_Manage.resources
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,13 +28,13 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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++)
|
||||
|
||||
568
unimarc/unimarc/납품관리/Purchase.Designer.cs
generated
568
unimarc/unimarc/납품관리/Purchase.Designer.cs
generated
@@ -28,14 +28,14 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -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(),
|
||||
|
||||
@@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="idx1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@@ -156,6 +159,9 @@
|
||||
<metadata name="order_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="idx2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="num2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
176
unimarc/unimarc/마크/Check_Copy_Sub_List.Designer.cs
generated
Normal file
176
unimarc/unimarc/마크/Check_Copy_Sub_List.Designer.cs
generated
Normal file
@@ -0,0 +1,176 @@
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
partial class Check_Copy_Sub_List
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
145
unimarc/unimarc/마크/Check_Copy_Sub_List.cs
Normal file
145
unimarc/unimarc/마크/Check_Copy_Sub_List.cs
Normal file
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
126
unimarc/unimarc/마크/Check_Copy_Sub_List.resx
Normal file
126
unimarc/unimarc/마크/Check_Copy_Sub_List.resx
Normal file
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="list_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="list_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
129
unimarc/unimarc/마크/Check_Copy_Sub_Search.Designer.cs
generated
Normal file
129
unimarc/unimarc/마크/Check_Copy_Sub_Search.Designer.cs
generated
Normal file
@@ -0,0 +1,129 @@
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
partial class Check_Copy_Sub_Search
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
81
unimarc/unimarc/마크/Check_Copy_Sub_Search.cs
Normal file
81
unimarc/unimarc/마크/Check_Copy_Sub_Search.cs
Normal file
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
135
unimarc/unimarc/마크/Check_Copy_Sub_Search.resx
Normal file
135
unimarc/unimarc/마크/Check_Copy_Sub_Search.resx
Normal file
@@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="Province.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Area.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="lib_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="URL.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
199
unimarc/unimarc/마크/Check_copy.Designer.cs
generated
199
unimarc/unimarc/마크/Check_copy.Designer.cs
generated
@@ -28,33 +28,216 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
/// <summary>
|
||||
/// 지연시키는 함수
|
||||
/// </summary>
|
||||
/// <param name="ms">1000 = 1초</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,4 +117,13 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
123
unimarc/unimarc/마크/DLS_Manage.Designer.cs
generated
Normal file
123
unimarc/unimarc/마크/DLS_Manage.Designer.cs
generated
Normal file
@@ -0,0 +1,123 @@
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
partial class DLS_Manage
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.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;
|
||||
}
|
||||
}
|
||||
45
unimarc/unimarc/마크/DLS_Manage.cs
Normal file
45
unimarc/unimarc/마크/DLS_Manage.cs
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
120
unimarc/unimarc/마크/DLS_Manage.resx
Normal file
120
unimarc/unimarc/마크/DLS_Manage.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
123
unimarc/unimarc/마크/Input_DLS.Designer.cs
generated
123
unimarc/unimarc/마크/Input_DLS.Designer.cs
generated
@@ -28,19 +28,140 @@
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 지연시키는 함수
|
||||
/// </summary>
|
||||
/// <param name="ms">1000 = 1초</param>
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
82
unimarc/unimarc/마크/SHDocVw.cs
Normal file
82
unimarc/unimarc/마크/SHDocVw.cs
Normal file
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
1527
unimarc/unimarc/홈/Home_User_manage.Designer.cs
generated
1527
unimarc/unimarc/홈/Home_User_manage.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -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();
|
||||
}
|
||||
/// <summary>
|
||||
/// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 권한 설정 0일경우 체크없음, 1일경우 활성화만, 2일경우 활성화와 수정체크
|
||||
/// </summary>
|
||||
@@ -68,26 +113,59 @@ namespace WindowsFormsApp1.Home
|
||||
/// <param name="e"></param>
|
||||
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<string> tmp_Update_data = new List<string>();
|
||||
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 체크박스 관련
|
||||
/// <summary>
|
||||
/// 체크박스로 권한(right)값 구하기
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
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;
|
||||
}
|
||||
/// <summary>
|
||||
/// 권한 나눈거 적용하는 함수
|
||||
/// </summary>
|
||||
/// <param name="real"></param>
|
||||
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; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 체크박스 초기화
|
||||
/// </summary>
|
||||
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; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 일괄체크
|
||||
/// </summary>
|
||||
/// <param name="sender">이벤트 sender 그대로 가져와야함</param>
|
||||
/// <param name="chk">true or false</param>
|
||||
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();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = { "미지급", "지급", "전체" };
|
||||
|
||||
Reference in New Issue
Block a user