=====* UniMarc [0.0158] 버전 업데이트 내용 *=====
** ERP 작업 전면 중단 (마크우선) ** 1. DVD/CD/LP ㄴ> CD/LP 작업 완료. ㄴ> DVD 교보쪽 작업 완료. ㄴ> DVD 알라딘 작업 완료. 2. Skill ㄴ> 컴퓨터에 설치된 폰트 가져오는 함수 추가 완료. 3. Main ㄴ> DVD/CD/LP 목록 폼 추가 완료. 4. DVD/CD/LP 목록 ㄴ> HanaDVD 참고하여 제작 완료. 기타 버튼 기능 추가 완료됨. 5. 마크 추가 ㄴ> 코리스에서 마크 가져오는 폼 새로 추가 (AddMarcFillBlank.cs) 6. 코리스 마크 가져오는 폼 추가하면서 기존에 있던 버그 수정완료.
This commit is contained in:
@@ -976,6 +976,7 @@ namespace WindowsFormsApp1
|
||||
#region DVD / CD / LP (TODO: 개발중)
|
||||
|
||||
CD_LP cl;
|
||||
CD_LP_List cll;
|
||||
|
||||
private void 편목ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -995,6 +996,18 @@ namespace WindowsFormsApp1
|
||||
|
||||
private void 목록_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (cll != null)
|
||||
{
|
||||
cll.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
cll = new CD_LP_List(this);
|
||||
cll.MdiParent = this;
|
||||
cll.WindowState = FormWindowState.Maximized;
|
||||
cll.FormClosed += (o, ea) => cll = null;
|
||||
cll.Show();
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -18,6 +18,9 @@ using UniMarc.BaroService_API;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Drawing.Printing;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing.Text;
|
||||
using System.Globalization;
|
||||
using System.Threading;
|
||||
|
||||
namespace WindowsFormsApp1
|
||||
{
|
||||
@@ -1460,6 +1463,29 @@ namespace WindowsFormsApp1
|
||||
/// </summary>
|
||||
class String_Text
|
||||
{
|
||||
/// <summary>
|
||||
/// 컴퓨터에 설치된 폰트를 불러옴.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string[] callMyFont()
|
||||
{
|
||||
List<string> resultList = new List<string>();
|
||||
CultureInfo oldCulture = Thread.CurrentThread.CurrentCulture;
|
||||
try
|
||||
{
|
||||
Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.GetCultureInfoByIetfLanguageTag("en-US");
|
||||
InstalledFontCollection installedFontCollection = new InstalledFontCollection();
|
||||
|
||||
foreach (FontFamily font in installedFontCollection.Families)
|
||||
resultList.Add(font.Name);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Thread.CurrentThread.CurrentCulture = oldCulture;
|
||||
}
|
||||
return resultList.ToArray();
|
||||
}
|
||||
|
||||
public string made_Ori_marc(RichTextBox rich)
|
||||
{
|
||||
string text = rich.Text;
|
||||
|
||||
@@ -112,12 +112,24 @@
|
||||
<Compile Include="마크\AddMarc.Designer.cs">
|
||||
<DependentUpon>AddMarc.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\AddMarc_FillBlank.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\AddMarc_FillBlank.Designer.cs">
|
||||
<DependentUpon>AddMarc_FillBlank.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\CD_LP.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\CD_LP.Designer.cs">
|
||||
<DependentUpon>CD_LP.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\CD_LP_List.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\CD_LP_List.Designer.cs">
|
||||
<DependentUpon>CD_LP_List.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\CD_LP_SelectList.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -790,9 +802,15 @@
|
||||
<EmbeddedResource Include="마크\AddMarc.resx">
|
||||
<DependentUpon>AddMarc.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\AddMarc_FillBlank.resx">
|
||||
<DependentUpon>AddMarc_FillBlank.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\CD_LP.resx">
|
||||
<DependentUpon>CD_LP.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\CD_LP_List.resx">
|
||||
<DependentUpon>CD_LP_List.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\CD_LP_SelectList.resx">
|
||||
<DependentUpon>CD_LP_SelectList.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
5042501d8763deb97cf9eba5be5f7e17b9e1a333
|
||||
74d5fec563e4aeeff90499a7c76911ecef0f8c28
|
||||
|
||||
@@ -142,3 +142,5 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.CD_LP_SelectList.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Help_007.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Help_008.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.CD_LP_List.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.AddMarc_FillBlank.resources
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.AddMarc_FillBlank.resources
Normal file
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.AddMarc_FillBlank.resources
Normal file
Binary file not shown.
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.CD_LP_List.resources
Normal file
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.CD_LP_List.resources
Normal file
Binary file not shown.
Binary file not shown.
13
unimarc/unimarc/마크/AddMarc.Designer.cs
generated
13
unimarc/unimarc/마크/AddMarc.Designer.cs
generated
@@ -224,6 +224,7 @@ namespace UniMarc.마크
|
||||
this.btn_Empty = new System.Windows.Forms.Button();
|
||||
this.lbl_Midx = new System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.Btn_SearchKolis = new System.Windows.Forms.Button();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
@@ -2164,6 +2165,7 @@ namespace UniMarc.마크
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.Btn_SearchKolis);
|
||||
this.panel2.Controls.Add(this.btn_Empty);
|
||||
this.panel2.Controls.Add(this.lbl_Midx);
|
||||
this.panel2.Controls.Add(this.lbl_SaveData);
|
||||
@@ -2238,6 +2240,16 @@ namespace UniMarc.마크
|
||||
this.pictureBox1.TabIndex = 387;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// Btn_SearchKolis
|
||||
//
|
||||
this.Btn_SearchKolis.Location = new System.Drawing.Point(959, 233);
|
||||
this.Btn_SearchKolis.Name = "Btn_SearchKolis";
|
||||
this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23);
|
||||
this.Btn_SearchKolis.TabIndex = 397;
|
||||
this.Btn_SearchKolis.Text = "코리스 검색";
|
||||
this.Btn_SearchKolis.UseVisualStyleBackColor = true;
|
||||
this.Btn_SearchKolis.Click += new System.EventHandler(this.Btn_SearchKolis_Click);
|
||||
//
|
||||
// AddMarc
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -2477,5 +2489,6 @@ namespace UniMarc.마크
|
||||
private System.Windows.Forms.Label lbl_Midx;
|
||||
private System.Windows.Forms.ComboBox cb_SearchCol;
|
||||
private System.Windows.Forms.Button btn_Empty;
|
||||
private System.Windows.Forms.Button Btn_SearchKolis;
|
||||
}
|
||||
}
|
||||
@@ -2666,5 +2666,11 @@ namespace UniMarc.마크
|
||||
if (e.KeyCode == Keys.F3)
|
||||
tb.Text += "▽";
|
||||
}
|
||||
|
||||
private void Btn_SearchKolis_Click(object sender, EventArgs e)
|
||||
{
|
||||
AddMarc_FillBlank af = new AddMarc_FillBlank(this);
|
||||
af.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
167
unimarc/unimarc/마크/AddMarc_FillBlank.Designer.cs
generated
Normal file
167
unimarc/unimarc/마크/AddMarc_FillBlank.Designer.cs
generated
Normal file
@@ -0,0 +1,167 @@
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
partial class AddMarc_FillBlank
|
||||
{
|
||||
/// <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.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
|
||||
this.Btn_Apply = new System.Windows.Forms.Button();
|
||||
this.Btn_Close = new System.Windows.Forms.Button();
|
||||
this.tb_URL = new System.Windows.Forms.TextBox();
|
||||
this.Btn_Back = new System.Windows.Forms.Button();
|
||||
this.Btn_Forward = new System.Windows.Forms.Button();
|
||||
this.Btn_Refresh = new System.Windows.Forms.Button();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.Btn_Forward);
|
||||
this.panel1.Controls.Add(this.Btn_Back);
|
||||
this.panel1.Controls.Add(this.tb_URL);
|
||||
this.panel1.Controls.Add(this.Btn_Close);
|
||||
this.panel1.Controls.Add(this.Btn_Refresh);
|
||||
this.panel1.Controls.Add(this.Btn_Apply);
|
||||
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(1203, 34);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.webBrowser1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 34);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1203, 656);
|
||||
this.panel2.TabIndex = 0;
|
||||
//
|
||||
// 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(1203, 656);
|
||||
this.webBrowser1.TabIndex = 0;
|
||||
this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
|
||||
//
|
||||
// Btn_Apply
|
||||
//
|
||||
this.Btn_Apply.Location = new System.Drawing.Point(816, 5);
|
||||
this.Btn_Apply.Name = "Btn_Apply";
|
||||
this.Btn_Apply.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_Apply.TabIndex = 0;
|
||||
this.Btn_Apply.Text = "적 용";
|
||||
this.Btn_Apply.UseVisualStyleBackColor = true;
|
||||
this.Btn_Apply.Click += new System.EventHandler(this.Btn_Apply_Click);
|
||||
//
|
||||
// Btn_Close
|
||||
//
|
||||
this.Btn_Close.Location = new System.Drawing.Point(897, 5);
|
||||
this.Btn_Close.Name = "Btn_Close";
|
||||
this.Btn_Close.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_Close.TabIndex = 0;
|
||||
this.Btn_Close.Text = "닫 기";
|
||||
this.Btn_Close.UseVisualStyleBackColor = true;
|
||||
this.Btn_Close.Click += new System.EventHandler(this.Btn_Close_Click);
|
||||
//
|
||||
// tb_URL
|
||||
//
|
||||
this.tb_URL.Location = new System.Drawing.Point(117, 6);
|
||||
this.tb_URL.Name = "tb_URL";
|
||||
this.tb_URL.ReadOnly = true;
|
||||
this.tb_URL.Size = new System.Drawing.Size(505, 21);
|
||||
this.tb_URL.TabIndex = 1;
|
||||
this.tb_URL.TextChanged += new System.EventHandler(this.tb_URL_TextChanged);
|
||||
//
|
||||
// Btn_Back
|
||||
//
|
||||
this.Btn_Back.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.Btn_Back.Location = new System.Drawing.Point(13, 5);
|
||||
this.Btn_Back.Name = "Btn_Back";
|
||||
this.Btn_Back.Size = new System.Drawing.Size(46, 23);
|
||||
this.Btn_Back.TabIndex = 2;
|
||||
this.Btn_Back.Text = "<<";
|
||||
this.Btn_Back.UseVisualStyleBackColor = true;
|
||||
this.Btn_Back.Click += new System.EventHandler(this.Btn_Back_Click);
|
||||
//
|
||||
// Btn_Forward
|
||||
//
|
||||
this.Btn_Forward.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.Btn_Forward.Location = new System.Drawing.Point(65, 5);
|
||||
this.Btn_Forward.Name = "Btn_Forward";
|
||||
this.Btn_Forward.Size = new System.Drawing.Size(46, 23);
|
||||
this.Btn_Forward.TabIndex = 2;
|
||||
this.Btn_Forward.Text = ">>";
|
||||
this.Btn_Forward.UseVisualStyleBackColor = true;
|
||||
this.Btn_Forward.Click += new System.EventHandler(this.Btn_Forward_Click);
|
||||
//
|
||||
// Btn_Refresh
|
||||
//
|
||||
this.Btn_Refresh.Location = new System.Drawing.Point(637, 5);
|
||||
this.Btn_Refresh.Name = "Btn_Refresh";
|
||||
this.Btn_Refresh.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_Refresh.TabIndex = 0;
|
||||
this.Btn_Refresh.Text = "새로고침";
|
||||
this.Btn_Refresh.UseVisualStyleBackColor = true;
|
||||
this.Btn_Refresh.Click += new System.EventHandler(this.Btn_Refresh_Click);
|
||||
//
|
||||
// AddMarc_FillBlank
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1203, 690);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "AddMarc_FillBlank";
|
||||
this.Text = "AddMarc_FillBlank";
|
||||
this.Load += new System.EventHandler(this.AddMarc_FillBlank_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.WebBrowser webBrowser1;
|
||||
private System.Windows.Forms.Button Btn_Close;
|
||||
private System.Windows.Forms.Button Btn_Apply;
|
||||
private System.Windows.Forms.Button Btn_Forward;
|
||||
private System.Windows.Forms.Button Btn_Back;
|
||||
private System.Windows.Forms.TextBox tb_URL;
|
||||
private System.Windows.Forms.Button Btn_Refresh;
|
||||
}
|
||||
}
|
||||
109
unimarc/unimarc/마크/AddMarc_FillBlank.cs
Normal file
109
unimarc/unimarc/마크/AddMarc_FillBlank.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
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 AddMarc_FillBlank : Form
|
||||
{
|
||||
AddMarc am;
|
||||
public AddMarc_FillBlank(AddMarc _am)
|
||||
{
|
||||
InitializeComponent();
|
||||
am = _am;
|
||||
}
|
||||
|
||||
private void AddMarc_FillBlank_Load(object sender, EventArgs e)
|
||||
{
|
||||
webBrowser1.Navigate("https://nl.go.kr/kolisnet/search/searchResultAllList.do?");
|
||||
}
|
||||
|
||||
#region 웹브라우저 관련 버튼들
|
||||
/// <summary>
|
||||
/// 뒤로 가기
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void Btn_Back_Click(object sender, EventArgs e)
|
||||
{
|
||||
webBrowser1.GoBack();
|
||||
}
|
||||
/// <summary>
|
||||
/// 앞으로 가기
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void Btn_Forward_Click(object sender, EventArgs e)
|
||||
{
|
||||
webBrowser1.GoForward();
|
||||
}
|
||||
/// <summary>
|
||||
/// 새로고침
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void Btn_Refresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
webBrowser1.Refresh();
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
|
||||
{
|
||||
tb_URL.Text = webBrowser1.Url.AbsoluteUri;
|
||||
}
|
||||
|
||||
private void tb_URL_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (tb_URL.Text.Contains("searchResultMarc"))
|
||||
{
|
||||
Btn_Apply.Enabled = true;
|
||||
Btn_Apply.ForeColor = Color.Blue;
|
||||
}
|
||||
else
|
||||
{
|
||||
Btn_Apply.Enabled = false;
|
||||
Btn_Apply.ForeColor = Color.Red;
|
||||
}
|
||||
}
|
||||
|
||||
private void Btn_Apply_Click(object sender, EventArgs e)
|
||||
{
|
||||
string Text = "";
|
||||
|
||||
HtmlElementCollection TableName = webBrowser1.Document.GetElementsByTagName("table");
|
||||
foreach (HtmlElement SearchTable in TableName)
|
||||
{
|
||||
if (SearchTable.GetAttribute("className") == "tbl")
|
||||
{
|
||||
HtmlElementCollection tdName = SearchTable.GetElementsByTagName("td");
|
||||
foreach (HtmlElement SearchTd in tdName)
|
||||
{
|
||||
string Td = SearchTd.InnerText;
|
||||
|
||||
if (Td is null)
|
||||
Td = "";
|
||||
|
||||
if (Td.Contains("▲"))
|
||||
Text += SearchTd.InnerText + "\n";
|
||||
else
|
||||
Text += SearchTd.InnerText + "\t";
|
||||
}
|
||||
}
|
||||
}
|
||||
am.richTextBox1.Text = Text;
|
||||
|
||||
}
|
||||
|
||||
private void Btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
unimarc/unimarc/마크/AddMarc_FillBlank.resx
Normal file
120
unimarc/unimarc/마크/AddMarc_FillBlank.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>
|
||||
89
unimarc/unimarc/마크/CD_LP.Designer.cs
generated
89
unimarc/unimarc/마크/CD_LP.Designer.cs
generated
@@ -29,7 +29,7 @@ namespace UniMarc.마크
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@@ -62,11 +62,8 @@ namespace UniMarc.마크
|
||||
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.lbl_date = new System.Windows.Forms.Label();
|
||||
this.lbl_ListTitle = new System.Windows.Forms.Label();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.Btn_SaveList = new System.Windows.Forms.Button();
|
||||
this.lbl_date = new System.Windows.Forms.Label();
|
||||
this.Btn_SelectList = new System.Windows.Forms.Button();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.panel3.SuspendLayout();
|
||||
@@ -99,6 +96,7 @@ namespace UniMarc.마크
|
||||
this.richTextBox1.TabIndex = 0;
|
||||
this.richTextBox1.Text = "";
|
||||
this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
|
||||
this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
@@ -289,23 +287,23 @@ namespace UniMarc.마크
|
||||
//
|
||||
this.panel7.Controls.Add(this.dataGridView1);
|
||||
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel7.Location = new System.Drawing.Point(0, 68);
|
||||
this.panel7.Location = new System.Drawing.Point(0, 33);
|
||||
this.panel7.Name = "panel7";
|
||||
this.panel7.Size = new System.Drawing.Size(332, 666);
|
||||
this.panel7.Size = new System.Drawing.Size(332, 701);
|
||||
this.panel7.TabIndex = 0;
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
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.idx,
|
||||
@@ -321,7 +319,7 @@ namespace UniMarc.마크
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(332, 666);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(332, 701);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
|
||||
//
|
||||
@@ -379,65 +377,33 @@ namespace UniMarc.마크
|
||||
// panel6
|
||||
//
|
||||
this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel6.Controls.Add(this.lbl_date);
|
||||
this.panel6.Controls.Add(this.lbl_ListTitle);
|
||||
this.panel6.Controls.Add(this.button4);
|
||||
this.panel6.Controls.Add(this.button3);
|
||||
this.panel6.Controls.Add(this.Btn_SaveList);
|
||||
this.panel6.Controls.Add(this.lbl_date);
|
||||
this.panel6.Controls.Add(this.Btn_SelectList);
|
||||
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel6.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel6.Name = "panel6";
|
||||
this.panel6.Size = new System.Drawing.Size(332, 68);
|
||||
this.panel6.Size = new System.Drawing.Size(332, 33);
|
||||
this.panel6.TabIndex = 0;
|
||||
//
|
||||
// lbl_date
|
||||
//
|
||||
this.lbl_date.AutoSize = true;
|
||||
this.lbl_date.Location = new System.Drawing.Point(13, 55);
|
||||
this.lbl_date.Name = "lbl_date";
|
||||
this.lbl_date.Size = new System.Drawing.Size(111, 12);
|
||||
this.lbl_date.TabIndex = 2;
|
||||
this.lbl_date.Text = "목록일자(가려놓음)";
|
||||
this.lbl_date.Visible = false;
|
||||
//
|
||||
// lbl_ListTitle
|
||||
//
|
||||
this.lbl_ListTitle.AutoSize = true;
|
||||
this.lbl_ListTitle.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lbl_ListTitle.Location = new System.Drawing.Point(10, 43);
|
||||
this.lbl_ListTitle.Location = new System.Drawing.Point(87, 9);
|
||||
this.lbl_ListTitle.Name = "lbl_ListTitle";
|
||||
this.lbl_ListTitle.Size = new System.Drawing.Size(222, 13);
|
||||
this.lbl_ListTitle.Size = new System.Drawing.Size(0, 13);
|
||||
this.lbl_ListTitle.TabIndex = 1;
|
||||
this.lbl_ListTitle.Text = "이야아아아아이것이 목록명이다아";
|
||||
//
|
||||
// button4
|
||||
// lbl_date
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(249, 4);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(75, 23);
|
||||
this.button4.TabIndex = 0;
|
||||
this.button4.Text = "button1";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(168, 4);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 0;
|
||||
this.button3.Text = "button1";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Btn_SaveList
|
||||
//
|
||||
this.Btn_SaveList.Location = new System.Drawing.Point(87, 4);
|
||||
this.Btn_SaveList.Name = "Btn_SaveList";
|
||||
this.Btn_SaveList.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_SaveList.TabIndex = 0;
|
||||
this.Btn_SaveList.Text = "목록 저장";
|
||||
this.Btn_SaveList.UseVisualStyleBackColor = true;
|
||||
this.Btn_SaveList.Click += new System.EventHandler(this.Btn_SaveList_Click);
|
||||
this.lbl_date.AutoSize = true;
|
||||
this.lbl_date.Location = new System.Drawing.Point(87, 15);
|
||||
this.lbl_date.Name = "lbl_date";
|
||||
this.lbl_date.Size = new System.Drawing.Size(111, 12);
|
||||
this.lbl_date.TabIndex = 2;
|
||||
this.lbl_date.Text = "목록일자(가려놓음)";
|
||||
this.lbl_date.Visible = false;
|
||||
//
|
||||
// Btn_SelectList
|
||||
//
|
||||
@@ -503,9 +469,7 @@ namespace UniMarc.마크
|
||||
private System.Windows.Forms.Panel panel7;
|
||||
private System.Windows.Forms.Panel panel6;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.Button Btn_SaveList;
|
||||
private System.Windows.Forms.Button Btn_SelectList;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn num;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn code;
|
||||
@@ -516,7 +480,6 @@ namespace UniMarc.마크
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn marc;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button Btn_SaveMarc;
|
||||
private System.Windows.Forms.Button button4;
|
||||
public System.Windows.Forms.Label lbl_ListTitle;
|
||||
private System.Windows.Forms.ComboBox cb_Type;
|
||||
public System.Windows.Forms.Label lbl_date;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace UniMarc.마크
|
||||
cb_SiteCon.Items.AddRange(Site);
|
||||
cb_SiteCon.SelectedIndex = 0;
|
||||
|
||||
string[] Type = { "음반", "DVD(미구현)" };
|
||||
string[] Type = { "음반", "DVD" };
|
||||
cb_Type.Items.AddRange(Type);
|
||||
cb_Type.SelectedIndex = 0;
|
||||
}
|
||||
@@ -63,6 +63,7 @@ namespace UniMarc.마크
|
||||
CD_LP_SelectList selectList = new CD_LP_SelectList(this);
|
||||
selectList.Show();
|
||||
selectList.LoadList(compidx);
|
||||
dataGridView1.Rows.Clear();
|
||||
}
|
||||
|
||||
public void MakeList(string ListName, string date)
|
||||
@@ -97,37 +98,11 @@ namespace UniMarc.마크
|
||||
}
|
||||
}
|
||||
|
||||
private void Btn_SaveList_Click(object sender, EventArgs e)
|
||||
{
|
||||
int count = dataGridView1.RowCount;
|
||||
for (int a = 0; a < count; a++)
|
||||
{
|
||||
bool isInsert = false;
|
||||
if (dataGridView1.Rows[a].Cells["idx"].Value.ToString() == "" ||
|
||||
dataGridView1.Rows[a].Cells["idx"].Value == null)
|
||||
{
|
||||
isInsert= true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void Btn_SaveMarc_Click(object sender, EventArgs e)
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
bool isAdd = false;
|
||||
string Type = "";
|
||||
|
||||
// DVD미구현으로 인한 DVD 마크 저장 거부
|
||||
if (cb_Type.SelectedIndex == 1)
|
||||
{
|
||||
MessageBox.Show("미구현상태입니다.");
|
||||
return;
|
||||
}
|
||||
else
|
||||
Type = cb_Type.SelectedText;
|
||||
string Type = cb_Type.SelectedText;
|
||||
|
||||
string num = tb_Num.Text;
|
||||
string listtitle = lbl_ListTitle.Text;
|
||||
@@ -310,5 +285,15 @@ namespace UniMarc.마크
|
||||
MessageBox.Show("DVD 미구현");
|
||||
}
|
||||
}
|
||||
|
||||
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.F3)
|
||||
richTextBox1.SelectedText = "▼";
|
||||
else if (e.KeyCode == Keys.F4)
|
||||
richTextBox1.SelectedText = "▲";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
415
unimarc/unimarc/마크/CD_LP_List.Designer.cs
generated
Normal file
415
unimarc/unimarc/마크/CD_LP_List.Designer.cs
generated
Normal file
@@ -0,0 +1,415 @@
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
partial class CD_LP_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 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 dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.Btn_SelectList = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.lbl_ListTitle = new System.Windows.Forms.Label();
|
||||
this.lbl_date = new System.Windows.Forms.Label();
|
||||
this.Btn_OutPut = new System.Windows.Forms.Button();
|
||||
this.Btn_Excel = new System.Windows.Forms.Button();
|
||||
this.Btn_CheckTrue = new System.Windows.Forms.Button();
|
||||
this.Btn_Close = new System.Windows.Forms.Button();
|
||||
this.Btn_ViewMarc = new System.Windows.Forms.Button();
|
||||
this.Btn_CheckFalse = new System.Windows.Forms.Button();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.RegNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ClassNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.AuthorSymbol = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Vol = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Copy = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Fix = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Title = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Artist = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Type = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.cb_EncodingType = new System.Windows.Forms.ComboBox();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel3.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// Btn_SelectList
|
||||
//
|
||||
this.Btn_SelectList.Location = new System.Drawing.Point(7, 6);
|
||||
this.Btn_SelectList.Name = "Btn_SelectList";
|
||||
this.Btn_SelectList.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_SelectList.TabIndex = 0;
|
||||
this.Btn_SelectList.Text = "목록 선택";
|
||||
this.Btn_SelectList.UseVisualStyleBackColor = true;
|
||||
this.Btn_SelectList.Click += new System.EventHandler(this.Btn_SelectList_Click);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.cb_EncodingType);
|
||||
this.panel1.Controls.Add(this.lbl_ListTitle);
|
||||
this.panel1.Controls.Add(this.lbl_date);
|
||||
this.panel1.Controls.Add(this.Btn_OutPut);
|
||||
this.panel1.Controls.Add(this.Btn_Excel);
|
||||
this.panel1.Controls.Add(this.Btn_CheckTrue);
|
||||
this.panel1.Controls.Add(this.Btn_Close);
|
||||
this.panel1.Controls.Add(this.Btn_ViewMarc);
|
||||
this.panel1.Controls.Add(this.Btn_CheckFalse);
|
||||
this.panel1.Controls.Add(this.Btn_SelectList);
|
||||
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(1199, 36);
|
||||
this.panel1.TabIndex = 1;
|
||||
//
|
||||
// lbl_ListTitle
|
||||
//
|
||||
this.lbl_ListTitle.AutoSize = true;
|
||||
this.lbl_ListTitle.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lbl_ListTitle.Location = new System.Drawing.Point(88, 11);
|
||||
this.lbl_ListTitle.Name = "lbl_ListTitle";
|
||||
this.lbl_ListTitle.Size = new System.Drawing.Size(0, 13);
|
||||
this.lbl_ListTitle.TabIndex = 2;
|
||||
//
|
||||
// lbl_date
|
||||
//
|
||||
this.lbl_date.AutoSize = true;
|
||||
this.lbl_date.Location = new System.Drawing.Point(88, 17);
|
||||
this.lbl_date.Name = "lbl_date";
|
||||
this.lbl_date.Size = new System.Drawing.Size(111, 12);
|
||||
this.lbl_date.TabIndex = 3;
|
||||
this.lbl_date.Text = "목록일자(가려놓음)";
|
||||
this.lbl_date.Visible = false;
|
||||
//
|
||||
// Btn_OutPut
|
||||
//
|
||||
this.Btn_OutPut.Location = new System.Drawing.Point(760, 6);
|
||||
this.Btn_OutPut.Name = "Btn_OutPut";
|
||||
this.Btn_OutPut.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_OutPut.TabIndex = 0;
|
||||
this.Btn_OutPut.Text = "반 출";
|
||||
this.Btn_OutPut.UseVisualStyleBackColor = true;
|
||||
this.Btn_OutPut.Click += new System.EventHandler(this.Btn_OutPut_Click);
|
||||
//
|
||||
// Btn_Excel
|
||||
//
|
||||
this.Btn_Excel.Location = new System.Drawing.Point(522, 6);
|
||||
this.Btn_Excel.Name = "Btn_Excel";
|
||||
this.Btn_Excel.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_Excel.TabIndex = 0;
|
||||
this.Btn_Excel.Text = "엑 셀";
|
||||
this.Btn_Excel.UseVisualStyleBackColor = true;
|
||||
this.Btn_Excel.Click += new System.EventHandler(this.Btn_Excel_Click);
|
||||
//
|
||||
// Btn_CheckTrue
|
||||
//
|
||||
this.Btn_CheckTrue.Location = new System.Drawing.Point(341, 6);
|
||||
this.Btn_CheckTrue.Name = "Btn_CheckTrue";
|
||||
this.Btn_CheckTrue.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_CheckTrue.TabIndex = 0;
|
||||
this.Btn_CheckTrue.Text = "전체선택";
|
||||
this.Btn_CheckTrue.UseVisualStyleBackColor = true;
|
||||
this.Btn_CheckTrue.Click += new System.EventHandler(this.Btn_SelectGrid);
|
||||
//
|
||||
// Btn_Close
|
||||
//
|
||||
this.Btn_Close.Location = new System.Drawing.Point(844, 6);
|
||||
this.Btn_Close.Name = "Btn_Close";
|
||||
this.Btn_Close.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_Close.TabIndex = 0;
|
||||
this.Btn_Close.Text = "닫 기";
|
||||
this.Btn_Close.UseVisualStyleBackColor = true;
|
||||
this.Btn_Close.Click += new System.EventHandler(this.Btn_Close_Click);
|
||||
//
|
||||
// Btn_ViewMarc
|
||||
//
|
||||
this.Btn_ViewMarc.Location = new System.Drawing.Point(603, 6);
|
||||
this.Btn_ViewMarc.Name = "Btn_ViewMarc";
|
||||
this.Btn_ViewMarc.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_ViewMarc.TabIndex = 0;
|
||||
this.Btn_ViewMarc.Text = "마크보이기";
|
||||
this.Btn_ViewMarc.UseVisualStyleBackColor = true;
|
||||
this.Btn_ViewMarc.Click += new System.EventHandler(this.Btn_ViewMarc_Click);
|
||||
//
|
||||
// Btn_CheckFalse
|
||||
//
|
||||
this.Btn_CheckFalse.Location = new System.Drawing.Point(419, 6);
|
||||
this.Btn_CheckFalse.Name = "Btn_CheckFalse";
|
||||
this.Btn_CheckFalse.Size = new System.Drawing.Size(75, 23);
|
||||
this.Btn_CheckFalse.TabIndex = 0;
|
||||
this.Btn_CheckFalse.Text = "전체해제";
|
||||
this.Btn_CheckFalse.UseVisualStyleBackColor = true;
|
||||
this.Btn_CheckFalse.Click += new System.EventHandler(this.Btn_SelectGrid);
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.richTextBox1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 713);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1199, 1);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// richTextBox1
|
||||
//
|
||||
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.Size = new System.Drawing.Size(1199, 1);
|
||||
this.richTextBox1.TabIndex = 0;
|
||||
this.richTextBox1.Text = "";
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle29.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle29;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.Check,
|
||||
this.idx,
|
||||
this.Num,
|
||||
this.RegNum,
|
||||
this.ClassNum,
|
||||
this.AuthorSymbol,
|
||||
this.Vol,
|
||||
this.Copy,
|
||||
this.Fix,
|
||||
this.Title,
|
||||
this.Artist,
|
||||
this.Comp,
|
||||
this.Price,
|
||||
this.Type,
|
||||
this.Marc});
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1199, 677);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.dataGridView1);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 36);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(1199, 677);
|
||||
this.panel3.TabIndex = 2;
|
||||
//
|
||||
// Check
|
||||
//
|
||||
this.Check.FalseValue = "F";
|
||||
this.Check.HeaderText = "선택";
|
||||
this.Check.Name = "Check";
|
||||
this.Check.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Check.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.Check.TrueValue = "T";
|
||||
this.Check.Width = 50;
|
||||
//
|
||||
// idx
|
||||
//
|
||||
this.idx.HeaderText = "idx";
|
||||
this.idx.Name = "idx";
|
||||
this.idx.Visible = false;
|
||||
//
|
||||
// Num
|
||||
//
|
||||
this.Num.HeaderText = "연번";
|
||||
this.Num.Name = "Num";
|
||||
this.Num.Width = 50;
|
||||
//
|
||||
// RegNum
|
||||
//
|
||||
dataGridViewCellStyle30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.RegNum.DefaultCellStyle = dataGridViewCellStyle30;
|
||||
this.RegNum.HeaderText = "등록번호";
|
||||
this.RegNum.Name = "RegNum";
|
||||
this.RegNum.Width = 120;
|
||||
//
|
||||
// ClassNum
|
||||
//
|
||||
dataGridViewCellStyle31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.ClassNum.DefaultCellStyle = dataGridViewCellStyle31;
|
||||
this.ClassNum.HeaderText = "분류기호";
|
||||
this.ClassNum.Name = "ClassNum";
|
||||
this.ClassNum.Width = 80;
|
||||
//
|
||||
// AuthorSymbol
|
||||
//
|
||||
dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.AuthorSymbol.DefaultCellStyle = dataGridViewCellStyle32;
|
||||
this.AuthorSymbol.HeaderText = "저자기호";
|
||||
this.AuthorSymbol.Name = "AuthorSymbol";
|
||||
this.AuthorSymbol.Width = 80;
|
||||
//
|
||||
// Vol
|
||||
//
|
||||
dataGridViewCellStyle33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.Vol.DefaultCellStyle = dataGridViewCellStyle33;
|
||||
this.Vol.HeaderText = "볼륨";
|
||||
this.Vol.Name = "Vol";
|
||||
this.Vol.Width = 60;
|
||||
//
|
||||
// Copy
|
||||
//
|
||||
dataGridViewCellStyle34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.Copy.DefaultCellStyle = dataGridViewCellStyle34;
|
||||
this.Copy.HeaderText = "복본";
|
||||
this.Copy.Name = "Copy";
|
||||
this.Copy.Width = 50;
|
||||
//
|
||||
// Fix
|
||||
//
|
||||
dataGridViewCellStyle35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.Fix.DefaultCellStyle = dataGridViewCellStyle35;
|
||||
this.Fix.HeaderText = "별치";
|
||||
this.Fix.Name = "Fix";
|
||||
this.Fix.Width = 60;
|
||||
//
|
||||
// Title
|
||||
//
|
||||
this.Title.HeaderText = "작품명";
|
||||
this.Title.Name = "Title";
|
||||
this.Title.Width = 500;
|
||||
//
|
||||
// Artist
|
||||
//
|
||||
this.Artist.HeaderText = "감독/뮤지션";
|
||||
this.Artist.Name = "Artist";
|
||||
//
|
||||
// Comp
|
||||
//
|
||||
this.Comp.HeaderText = "제작";
|
||||
this.Comp.Name = "Comp";
|
||||
//
|
||||
// Price
|
||||
//
|
||||
this.Price.HeaderText = "정가";
|
||||
this.Price.Name = "Price";
|
||||
//
|
||||
// Type
|
||||
//
|
||||
this.Type.HeaderText = "유형";
|
||||
this.Type.Name = "Type";
|
||||
//
|
||||
// Marc
|
||||
//
|
||||
this.Marc.HeaderText = "마크";
|
||||
this.Marc.Name = "Marc";
|
||||
this.Marc.Visible = false;
|
||||
//
|
||||
// cb_EncodingType
|
||||
//
|
||||
this.cb_EncodingType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_EncodingType.FormattingEnabled = true;
|
||||
this.cb_EncodingType.Items.AddRange(new object[] {
|
||||
"ANSI",
|
||||
"UTF-8",
|
||||
"UniCode"});
|
||||
this.cb_EncodingType.Location = new System.Drawing.Point(684, 7);
|
||||
this.cb_EncodingType.Name = "cb_EncodingType";
|
||||
this.cb_EncodingType.Size = new System.Drawing.Size(75, 20);
|
||||
this.cb_EncodingType.TabIndex = 4;
|
||||
//
|
||||
// CD_LP_List
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1199, 714);
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "CD_LP_List";
|
||||
this.Text = "CD_LP_List";
|
||||
this.Load += new System.EventHandler(this.CD_LP_List_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button Btn_SelectList;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
public System.Windows.Forms.Label lbl_ListTitle;
|
||||
private System.Windows.Forms.Button Btn_OutPut;
|
||||
private System.Windows.Forms.Button Btn_Excel;
|
||||
private System.Windows.Forms.Button Btn_CheckTrue;
|
||||
private System.Windows.Forms.Button Btn_Close;
|
||||
private System.Windows.Forms.Button Btn_ViewMarc;
|
||||
private System.Windows.Forms.Button Btn_CheckFalse;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
public System.Windows.Forms.Label lbl_date;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.RichTextBox richTextBox1;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn Check;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Num;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn RegNum;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ClassNum;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn AuthorSymbol;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Vol;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Copy;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Fix;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Title;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Artist;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Type;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
|
||||
private System.Windows.Forms.ComboBox cb_EncodingType;
|
||||
}
|
||||
}
|
||||
355
unimarc/unimarc/마크/CD_LP_List.cs
Normal file
355
unimarc/unimarc/마크/CD_LP_List.cs
Normal file
@@ -0,0 +1,355 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WindowsFormsApp1;
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
public partial class CD_LP_List : Form
|
||||
{
|
||||
string compidx;
|
||||
Helper_DB db = new Helper_DB();
|
||||
Main main;
|
||||
public CD_LP_List(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
}
|
||||
|
||||
private void CD_LP_List_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
compidx = Properties.Settings.Default.compidx;
|
||||
}
|
||||
|
||||
private void Btn_SelectList_Click(object sender, EventArgs e)
|
||||
{
|
||||
CD_LP_SelectList selectList = new CD_LP_SelectList(this);
|
||||
selectList.Show();
|
||||
selectList.LoadList(compidx);
|
||||
dataGridView1.Rows.Clear();
|
||||
dataGridView1.CellValueChanged += new DataGridViewCellEventHandler(dataGridView1_CellValueChanged);
|
||||
}
|
||||
|
||||
public void MakeList(string ListName, string date)
|
||||
{
|
||||
lbl_ListTitle.Text = ListName;
|
||||
lbl_date.Text = date;
|
||||
|
||||
string Table = "DVD_List_Product";
|
||||
string Area = "`idx`, `num`, `title`, `artist`, `comp`, `price`, `type`, `marc`";
|
||||
string[] Search_Table = { "compidx", "listname", "date" };
|
||||
string[] Search_Column = { compidx, ListName, date };
|
||||
|
||||
string cmd = db.More_DB_Search(Table, Search_Table, Search_Column, Area);
|
||||
string res = db.DB_Send_CMD_Search(cmd);
|
||||
string[] ary_res = res.Split('|');
|
||||
|
||||
/// [0]idx [1]num [2]title [3]artist [4]comp [5]price [6]type [7]marc
|
||||
|
||||
/// 선택 idx 연번 등록번호 분류
|
||||
/// 저자기호 볼륨 복본 별치 서명
|
||||
/// 감독 제작 정가 유형 마크
|
||||
string[] grid = {
|
||||
"T", "", "", "", "",
|
||||
"", "", "", "", "",
|
||||
"", "", "", "", ""
|
||||
};
|
||||
for (int a = 0; a < ary_res.Length; a++)
|
||||
{
|
||||
if (a % 8 == 0) grid[1] = ary_res[a]; // idx
|
||||
if (a % 8 == 1) grid[2] = ary_res[a]; // num
|
||||
if (a % 8 == 2) grid[9] = ary_res[a]; // title
|
||||
if (a % 8 == 3) grid[10] = ary_res[a]; // artist
|
||||
if (a % 8 == 4) grid[11] = ary_res[a]; // comp
|
||||
if (a % 8 == 5) grid[12] = ary_res[a]; // price
|
||||
if (a % 8 == 6) grid[13] = ary_res[a]; // type
|
||||
if (a % 8 == 7) { grid[14] = ary_res[a]; // marc
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int row = e.RowIndex;
|
||||
if (row < 0) return;
|
||||
int col = dataGridView1.CurrentCell.ColumnIndex;
|
||||
|
||||
if (col == 2 || col == 3 || col == 4 || col == 5 || col == 6 || col == 7)
|
||||
{
|
||||
if (dataGridView1.Rows[row].Cells["Marc"].Value.ToString() == "" &&
|
||||
dataGridView1.Rows[row].Cells["Marc"].Value == null)
|
||||
{
|
||||
MessageBox.Show("저장된 마크가 없습니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
string Marc = dataGridView1.Rows[row].Cells["Marc"].Value.ToString();
|
||||
|
||||
string AddTag = "";
|
||||
if (col == 2 || col == 5 || col == 6 || col == 7)
|
||||
{
|
||||
string L = dataGridView1.Rows[row].Cells[2].Value.ToString();
|
||||
string V = dataGridView1.Rows[row].Cells[5].Value.ToString();
|
||||
string C = dataGridView1.Rows[row].Cells[6].Value.ToString();
|
||||
string F = dataGridView1.Rows[row].Cells[7].Value.ToString();
|
||||
|
||||
if (L != "")
|
||||
L = string.Format("▼l{0}", L);
|
||||
|
||||
if (V != "")
|
||||
V = string.Format("▼v{0}", V);
|
||||
|
||||
if (C != "")
|
||||
C = string.Format("▼c{0}", C);
|
||||
|
||||
if (F != "")
|
||||
F = string.Format("▼f{0}", F);
|
||||
|
||||
AddTag = string.Format("049\t \t{0}{1}{2}{3}▲", L, V, C, F);
|
||||
}
|
||||
if (col == 3 || col == 4 || col == 5)
|
||||
{
|
||||
string A = dataGridView1.Rows[row].Cells[3].Value.ToString();
|
||||
string B = dataGridView1.Rows[row].Cells[4].Value.ToString();
|
||||
string C = dataGridView1.Rows[row].Cells[5].Value.ToString();
|
||||
|
||||
if (A != "")
|
||||
A = string.Format("▼a{0}", A);
|
||||
|
||||
if (B != "")
|
||||
B = string.Format("▼b{0}", B);
|
||||
|
||||
if (C != "")
|
||||
C = string.Format("▼c{0}", C);
|
||||
|
||||
AddTag = string.Format("090\t \t{0}{1}{2}▲", A, B, C);
|
||||
}
|
||||
string TypeView = ConvertMarcType(Marc);
|
||||
string AddMarc = AddTagInMarc(AddTag, TypeView);
|
||||
|
||||
String_Text st = new String_Text();
|
||||
dataGridView1.Rows[row].Cells["Marc"].Value = st.made_Ori_marc(AddMarc);
|
||||
}
|
||||
}
|
||||
|
||||
#region CellValueChanged_Sub
|
||||
|
||||
/// <summary>
|
||||
/// 한줄짜리 마크를 보기 쉬운 형태로 변환
|
||||
/// </summary>
|
||||
/// <param name="Marc">한줄짜리 마크</param>
|
||||
/// <returns></returns>
|
||||
string ConvertMarcType(string Marc)
|
||||
{
|
||||
if (Marc.Length < 3) return "";
|
||||
|
||||
string result = "";
|
||||
|
||||
List<string> TagNum = new List<string>(); // 태그번호 저장용
|
||||
List<string> Field = new List<string>(); // 가변길이필드 저장용
|
||||
|
||||
// 특수기호 육안으로 확인하기 쉽게 변환
|
||||
Marc = Marc.Replace("", "▼");
|
||||
Marc = Marc.Replace("", "▲");
|
||||
Marc = Marc.Replace("₩", "\\");
|
||||
|
||||
int StartIdx = 0;
|
||||
|
||||
// 리더부를 제외한 디렉토리, 가변길이필드 저장
|
||||
string[] data = Marc.Substring(24).Split('▲');
|
||||
for (int a = 1; a < data.Length - 1; a++)
|
||||
{
|
||||
TagNum.Add(data[0].Substring(StartIdx, 3));
|
||||
StartIdx += 12;
|
||||
Field.Add(data[a] + "▲");
|
||||
}
|
||||
|
||||
// List에 들어간 데이터를 메모장에 출력
|
||||
for (int a = 0; a < TagNum.Count; a++)
|
||||
{
|
||||
string res = TagNum[a];
|
||||
if (Field[a].IndexOf("▼") == -1)
|
||||
{
|
||||
res += "\t \t" + Field[a];
|
||||
}
|
||||
else
|
||||
{
|
||||
string temp = Field[a].Insert(2, "\t");
|
||||
res += "\t" + temp;
|
||||
}
|
||||
result += res + "\n";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
string AddTagInMarc(string Tag, string TypeView)
|
||||
{
|
||||
if (Tag.Length < 3) return "";
|
||||
|
||||
int TargetTagNum = Convert.ToInt32(Tag.Substring(0, 3));
|
||||
|
||||
string[] SplitView = TypeView.Split('\n');
|
||||
List<string> View = new List<string>(SplitView);
|
||||
|
||||
int ViewCount = 0;
|
||||
foreach (string LineMarc in View)
|
||||
{
|
||||
string LineTag = LineMarc.Substring(0, 3);
|
||||
int TagNum = Convert.ToInt32(LineTag);
|
||||
|
||||
if (TargetTagNum == TagNum)
|
||||
{
|
||||
View[ViewCount] = Tag;
|
||||
break;
|
||||
}
|
||||
else if (TargetTagNum < TagNum)
|
||||
{
|
||||
View.Insert(ViewCount, Tag);
|
||||
break;
|
||||
}
|
||||
ViewCount++;
|
||||
}
|
||||
return string.Join("\n", View);
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
Skill_Grid sg = new Skill_Grid();
|
||||
sg.Print_Grid_Num(sender, e);
|
||||
}
|
||||
|
||||
private void Btn_SelectGrid(object sender, EventArgs e)
|
||||
{
|
||||
string t = ((Button)sender).Name;
|
||||
|
||||
if (t.Contains("True"))
|
||||
GridCheckAllChange(true);
|
||||
else
|
||||
GridCheckAllChange(false);
|
||||
}
|
||||
|
||||
void GridCheckAllChange(bool TF)
|
||||
{
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
dataGridView1.Rows[a].Cells["Check"].Value = TF;
|
||||
}
|
||||
}
|
||||
|
||||
private void Btn_ViewMarc_Click(object sender, EventArgs e)
|
||||
{
|
||||
string t = (((Button)sender).Text);
|
||||
if (t.Contains("보이기"))
|
||||
{
|
||||
panel2.Height = 250;
|
||||
((Button)sender).Text = "마크감추기";
|
||||
}
|
||||
else
|
||||
{
|
||||
panel2.Height = 1;
|
||||
((Button)sender).Text = "마크보이기";
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
|
||||
int row;
|
||||
|
||||
if (e.RowIndex > -1)
|
||||
row = e.RowIndex;
|
||||
else
|
||||
return;
|
||||
|
||||
richTextBox1.Text = st.ConvertMarcType(dataGridView1.Rows[row].Cells["Marc"].Value.ToString());
|
||||
}
|
||||
|
||||
private void Btn_Excel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Excel_text et = new Excel_text();
|
||||
int rowCount = dataGridView1.RowCount;
|
||||
|
||||
string[] title = { "NO", "등록번호", "분류", "저자", "볼륨", "복본", "별치", "서명", "감독/뮤지션", "제작", "정가" };
|
||||
string[,] Content = new string[rowCount, 11];
|
||||
|
||||
for (int a = 0; a < rowCount; a++)
|
||||
{
|
||||
if (!(bool)dataGridView1.Rows[a].Cells["Check"].Value) continue;
|
||||
Content[a, 0] = dataGridView1.Rows[a].Cells["Num"].Value.ToString();
|
||||
Content[a, 1] = dataGridView1.Rows[a].Cells["RegNum"].Value.ToString();
|
||||
Content[a, 2] = dataGridView1.Rows[a].Cells["ClassNum"].Value.ToString();
|
||||
Content[a, 3] = dataGridView1.Rows[a].Cells["AuthorSymbol"].Value.ToString();
|
||||
Content[a, 4] = dataGridView1.Rows[a].Cells["Vol"].Value.ToString();
|
||||
Content[a, 5] = dataGridView1.Rows[a].Cells["Copy"].Value.ToString();
|
||||
Content[a, 6] = dataGridView1.Rows[a].Cells["Fix"].Value.ToString();
|
||||
Content[a, 7] = dataGridView1.Rows[a].Cells["Title"].Value.ToString();
|
||||
Content[a, 8] = dataGridView1.Rows[a].Cells["Artist"].Value.ToString();
|
||||
Content[a, 9] = dataGridView1.Rows[a].Cells["Comp"].Value.ToString();
|
||||
Content[a, 10] = dataGridView1.Rows[a].Cells["Price"].Value.ToString();
|
||||
}
|
||||
et.Mk_Excel(title, Content);
|
||||
}
|
||||
|
||||
private void Btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void Btn_OutPut_Click(object sender, EventArgs e)
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
string Marc_data = string.Empty;
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (!(bool)dataGridView1.Rows[a].Cells["Check"].Value) continue;
|
||||
|
||||
if (dataGridView1.Rows[a].Cells["Marc"].Value.ToString() == "" &&
|
||||
dataGridView1.Rows[a].Cells["Marc"].Value == null)
|
||||
continue;
|
||||
|
||||
string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString();
|
||||
|
||||
marc = st.ConvertMarcType(marc);
|
||||
marc = st.ApplyMark(marc);
|
||||
marc = st.made_Ori_marc(marc);
|
||||
|
||||
Marc_data += marc.Replace("₩", "\\");
|
||||
}
|
||||
|
||||
string FileName;
|
||||
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
||||
saveFileDialog.Title = "저장 경로를 지정하세요.";
|
||||
saveFileDialog.OverwritePrompt = true;
|
||||
saveFileDialog.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*";
|
||||
|
||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (cb_EncodingType.SelectedIndex == 0)
|
||||
{
|
||||
FileName = saveFileDialog.FileName;
|
||||
System.IO.File.WriteAllText(FileName, Marc_data, Encoding.Default);
|
||||
}
|
||||
else if (cb_EncodingType.SelectedIndex == 1)
|
||||
{
|
||||
FileName = saveFileDialog.FileName;
|
||||
System.IO.File.WriteAllText(FileName, Marc_data, Encoding.UTF8);
|
||||
}
|
||||
else if (cb_EncodingType.SelectedIndex == 2)
|
||||
{
|
||||
FileName = saveFileDialog.FileName;
|
||||
System.IO.File.WriteAllText(FileName, Marc_data, Encoding.Unicode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
165
unimarc/unimarc/마크/CD_LP_List.resx
Normal file
165
unimarc/unimarc/마크/CD_LP_List.resx
Normal file
@@ -0,0 +1,165 @@
|
||||
<?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="Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="RegNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ClassNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="AuthorSymbol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Vol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Copy.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Fix.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Title.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Artist.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Type.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -15,12 +15,21 @@ namespace UniMarc.마크
|
||||
{
|
||||
Helper_DB db = new Helper_DB();
|
||||
CD_LP cp;
|
||||
CD_LP_List cpl;
|
||||
|
||||
public CD_LP_SelectList(CD_LP _cp)
|
||||
{
|
||||
InitializeComponent();
|
||||
cp = _cp;
|
||||
}
|
||||
public CD_LP_SelectList(CD_LP_List _cp)
|
||||
{
|
||||
InitializeComponent();
|
||||
Btn_Delete.Visible = false;
|
||||
Btn_Insert.Visible = false;
|
||||
Btn_Close.Visible = false;
|
||||
cpl = _cp;
|
||||
}
|
||||
|
||||
private void CD_LP_SelectList_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -39,12 +48,13 @@ namespace UniMarc.마크
|
||||
string res = db.DB_Send_CMD_Search(cmd);
|
||||
string[] ary_res = res.Split('|');
|
||||
|
||||
string[] grid = { "", "", "" };
|
||||
string[] grid = { "", "", "", "" };
|
||||
for (int a = 0; a < ary_res.Length; a++)
|
||||
{
|
||||
if (a % 3 == 0) grid[0] = ary_res[a];
|
||||
if (a % 3 == 1) grid[1] = ary_res[a];
|
||||
if (a % 3 == 2) { grid[2] = ary_res[a]; dataGridView1.Rows.Add(grid); }
|
||||
if (a % 4 == 0) grid[0] = ary_res[a];
|
||||
if (a % 4 == 1) grid[1] = ary_res[a];
|
||||
if (a % 4 == 2) grid[2] = ary_res[a];
|
||||
if (a % 4 == 3) { grid[3] = ary_res[a]; dataGridView1.Rows.Add(grid); }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +149,10 @@ namespace UniMarc.마크
|
||||
string ListName = dataGridView1.Rows[row].Cells["ListTitle"].Value.ToString();
|
||||
string Date = dataGridView1.Rows[row].Cells["Date"].Value.ToString();
|
||||
|
||||
cp.MakeList(ListName, Date);
|
||||
if (cp != null)
|
||||
cp.MakeList(ListName, Date);
|
||||
else if (cpl != null)
|
||||
cpl.MakeList(ListName, Date);
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace UniMarc.마크
|
||||
else
|
||||
{
|
||||
if (Aladin_trDVD_flCD())
|
||||
AladinInfor_DVD();
|
||||
result = MakeMarcAladin_DVD(AladinInfor_DVD());
|
||||
|
||||
else
|
||||
result = MakeMarcAladin_Music(AladinInfor_Music());
|
||||
@@ -596,18 +596,18 @@ namespace UniMarc.마크
|
||||
/// </summary>
|
||||
/// <param name="SubArtist">메인 아티스트를 제외한 서브 아티스트들</param>
|
||||
/// <returns></returns>
|
||||
string MakeSubArtist(string SubArtist)
|
||||
string MakeSubArtist(string SubArtist, char VarChar = '|')
|
||||
{
|
||||
if (SubArtist == "")
|
||||
return "";
|
||||
string[] ary = SubArtist.Split('|');
|
||||
string[] ary = SubArtist.Split(VarChar);
|
||||
|
||||
string result = "";
|
||||
foreach (string t in ary)
|
||||
{
|
||||
if (t == "")
|
||||
continue;
|
||||
result += "▼e" + t;
|
||||
result += "▼e" + t.Trim();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -615,7 +615,7 @@ namespace UniMarc.마크
|
||||
|
||||
#region DVD
|
||||
|
||||
void AladinInfor_DVD()
|
||||
string[] AladinInfor_DVD()
|
||||
{
|
||||
// 작품명, 제작사
|
||||
string title = "";
|
||||
@@ -628,11 +628,8 @@ namespace UniMarc.마크
|
||||
if (a.GetAttribute("href").IndexOf("Publisher") > -1)
|
||||
comp = a.InnerText;
|
||||
}
|
||||
// 감독명
|
||||
// 출연진
|
||||
// 제작사
|
||||
// 제작년도
|
||||
// 작품원제
|
||||
|
||||
// 감독명, 출연진, 제작년도, 작품원제
|
||||
string tmp = "";
|
||||
foreach (HtmlElement li in webBrowser1.Document.GetElementsByTagName("li"))
|
||||
{
|
||||
@@ -648,7 +645,7 @@ namespace UniMarc.마크
|
||||
end = tmp.IndexOf("(출연)") - start;
|
||||
string Actor = Substring_Sub(tmp, start, end);
|
||||
|
||||
start = tmp.IndexOf(comp) + comp.Length;
|
||||
start = tmp.IndexOf("(출연)") + comp.Length - 1;
|
||||
end = 4;
|
||||
string Years = Substring_Sub(tmp, start, end);
|
||||
|
||||
@@ -656,14 +653,61 @@ namespace UniMarc.마크
|
||||
end = tmp.Length - start;
|
||||
string oriTitle = Substring_Sub(tmp, start, end);
|
||||
|
||||
|
||||
MessageBox.Show(string.Format("title\n{0}\nArtist\n{1}\nActor\n{2}\ncomp\n{3}\nYears\n{4}\noriTitle\n{5}",
|
||||
title, Artist, Actor, comp, Years, oriTitle));
|
||||
|
||||
// DVD 갯수
|
||||
string count = "";
|
||||
foreach (HtmlElement li in webBrowser1.Document.GetElementsByTagName("li"))
|
||||
{
|
||||
if (li.InnerText!=null && li.InnerText.IndexOf("Disc : ") > -1)
|
||||
count = Regex.Replace(li.InnerText, @"\D", "");
|
||||
}
|
||||
|
||||
// 정가
|
||||
string price = "";
|
||||
foreach (HtmlElement div in webBrowser1.Document.GetElementsByTagName("div"))
|
||||
{
|
||||
if (div.GetAttribute("className").IndexOf("Ritem") > -1)
|
||||
{
|
||||
price = Regex.Replace(div.InnerText, @"\D", "");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
MessageBox.Show(string.Format("title\n{0}\nArtist\n{1}\nActor\n{2}\ncomp\n{3}\nprice\n{4}\nyears\n{5}\ncount\n{6}\noriTitle\n{7}",
|
||||
title, Artist, Actor, comp, price, Years, count, oriTitle));
|
||||
/// [0]title, [1]artist, [2]subArtist, [3]comp, [4]price, [5]PubYear, [6]count, [7]oriTitle
|
||||
string[] Result = { title, Artist, Actor, comp, price, Years, count, oriTitle };
|
||||
return Result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 종합하여 마크를 만드는 함수
|
||||
/// </summary>
|
||||
/// <param name="Data">[0]title, [1]artist, [2]subArtist, [3]comp, [4]price, [5]PubYear, [6]count, [7]oriTitle</param>
|
||||
/// <returns></returns>
|
||||
string MakeMarcAladin_DVD(string[] Data)
|
||||
{
|
||||
string Marc = "056\t \t▼a▼25▲\n";
|
||||
Marc += "100\t1 \t▼a" + Data[1] + "▲\n";
|
||||
Marc += "245\t10\t▼a" + Data[0] + "▼h[비디오 녹음자료]/▼d" + Data[1] + MakeSubArtist(Data[2], ',') + "▲\n";
|
||||
Marc += "260\t \t▼a서울:▼b" + Data[3] + "제작▼c" + Data[5] + "▲\n";
|
||||
Marc += "300\t \t▼aDVD" + Data[6] + " 매▼b유성, 천연색▼c12cm▲\n";
|
||||
if (Data[7]!= "")
|
||||
Marc += "507\t10\t▼t" + Data[7] + "▲\n";
|
||||
Marc += "508\t \t▼a제작진 : " + Data[1] + "▲\n";
|
||||
Marc += "511\t8 \t▼a" + Data[2] + "▲\n";
|
||||
Marc += "521\t \t▼a전체이용가▲\n";
|
||||
Marc += "538\t \t▼aDVD 전용 플레이어▲\n";
|
||||
Marc += "653\t \t▼a" + Data[0].Replace(" ", "▼a") + "▲\n";
|
||||
foreach (string s in Data[2].Split(','))
|
||||
{
|
||||
Marc += "700\t1 \t▼a" + s.Trim() + "▲\n";
|
||||
}
|
||||
Marc += "950\t0 \t▼b\\" + Data[4] + "▲\n";
|
||||
|
||||
return Marc;
|
||||
}
|
||||
|
||||
|
||||
string Substring_Sub(string Value, int start, int end)
|
||||
{
|
||||
if (start < 0 || end < 1)
|
||||
@@ -671,16 +715,9 @@ namespace UniMarc.마크
|
||||
|
||||
return Value.Substring(start, end);
|
||||
}
|
||||
/*
|
||||
주세페 토르나토레 (감독),살바토레 카치오,필립 느와레,마르코 레오나르디 (출연)그린나래미디어2015-01-20원제 : Cinema Paradiso, 1988 (Blu-ray/Nuovo Director's Cut)
|
||||
*/
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
string MakeMarcAladin_DVD()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
private void Btn_Close_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace UniMarc
|
||||
{
|
||||
if (SearchTable.GetAttribute("className") == "tbl")
|
||||
{
|
||||
HtmlElementCollection tdName = webBrowser1.Document.GetElementsByTagName("td");
|
||||
HtmlElementCollection tdName = SearchTable.GetElementsByTagName("td");
|
||||
foreach (HtmlElement SearchTd in tdName)
|
||||
{
|
||||
string Td = SearchTd.InnerText;
|
||||
|
||||
@@ -43,8 +43,10 @@ namespace WindowsFormsApp1.Mac
|
||||
cb_EncodingType.Items.AddRange(Encoding);
|
||||
cb_EncodingType.SelectedIndex = 0;
|
||||
|
||||
string[] Font = { "굴림", "굴림체", "돋움", "바탕체", "맑은 고딕", "HY강B", "HY강M" };
|
||||
cb_TextFont.Items.AddRange(Font);
|
||||
// string[] Font = { "굴림", "굴림체", "돋움", "바탕체", "맑은 고딕", "HY강B", "HY강M" };
|
||||
// cb_TextFont.Items.AddRange(Font);
|
||||
String_Text st = new String_Text();
|
||||
cb_TextFont.Items.AddRange(st.callMyFont());
|
||||
}
|
||||
|
||||
private void btn_Select_List_Click(object sender, EventArgs e)
|
||||
@@ -759,7 +761,7 @@ namespace WindowsFormsApp1.Mac
|
||||
if (GridCount >= startCount - 1)
|
||||
{
|
||||
e.Graphics.DrawString(GridData[Cnt], F, Brushes.Black, UxPos + mmToInch(6), yPos + mmToInch(2), format);
|
||||
|
||||
|
||||
if (!chk_Num.Checked)
|
||||
e.Graphics.DrawString(
|
||||
dataGridView1.Rows[Cnt].Cells["reg_num"].Value.ToString(),
|
||||
|
||||
@@ -26,8 +26,10 @@ namespace UniMarc.마크
|
||||
{
|
||||
db.DBcon();
|
||||
|
||||
string[] Font = { "굴림", "굴림체", "돋움", "바탕체", "맑은 고딕", "HY강B", "HY강M" };
|
||||
cb_TextFont.Items.AddRange(Font);
|
||||
String_Text st = new String_Text();
|
||||
// string[] Font = { "굴림", "굴림체", "돋움", "바탕체", "맑은 고딕", "HY강B", "HY강M" };
|
||||
// cb_TextFont.Items.AddRange(Font);
|
||||
cb_TextFont.Items.AddRange(st.callMyFont());
|
||||
|
||||
SearchList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user