=====* unimarc *=====

------------------------

=====* ISBN 체크 프로그램  *===== ★작업완료★
 a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것.

------------------------

===== 작업중 =====
 b. 마크목록 폼 작성중
  1. 엑셀반출 기능 추가중 사용 작업대기중

 c. 마크 반입 폼 수정중
  1. 불러오기는 되나 저장 기능이 필요함.

===== 완료 =====
1. 주문관리 팩스연동 완료
2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료.
3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
4. 데이터베이스 내 이미지URL을 가져오는작업 완료

ISBN 체크 프로그램 => 본프로그램에 이식중.
ㄴ> 코드는 다 옮겼으나 기존 사용하던 방식과 조금 달라서 버그발생 가능성 있음.
ㄴ> 버그 체크 계속 해볼것. 21-04-15
ㄴ> 21_04_20 버그 없음.

2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료)
 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김.
 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료.
 2-3. 저장기능 완료. (04.14 체크해볼것)
This commit is contained in:
SeungHo Yang
2021-04-23 18:51:20 +09:00
parent e0eff9e225
commit a7ba860345
20 changed files with 6671 additions and 32 deletions

View File

@@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp1", "WindowsFormsApp1\WindowsFormsApp1.csproj", "{4FCAFD58-3A8E-4E08-85E2-05329866193A}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "unimarc", "unimarc\unimarc.vdproj", "{3825B1CD-A501-46F5-A3F9-103ACBB2FBD5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,8 @@ Global
{4FCAFD58-3A8E-4E08-85E2-05329866193A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4FCAFD58-3A8E-4E08-85E2-05329866193A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4FCAFD58-3A8E-4E08-85E2-05329866193A}.Release|Any CPU.Build.0 = Release|Any CPU
{3825B1CD-A501-46F5-A3F9-103ACBB2FBD5}.Debug|Any CPU.ActiveCfg = Debug
{3825B1CD-A501-46F5-A3F9-103ACBB2FBD5}.Release|Any CPU.ActiveCfg = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
@@ -10,15 +10,9 @@
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://testws.baroservice.com/FAX.asmx" binding="basicHttpBinding" bindingConfiguration="BaroService_FAXSoap" contract="BaroService_API.BaroService_FAXSoap" name="BaroService_FAXSoap" />
<endpoint address="http://testws.baroservice.com/FAX.asmx" binding="basicHttpBinding"
bindingConfiguration="BaroService_FAXSoap" contract="BaroService_API.BaroService_FAXSoap"
name="BaroService_FAXSoap" />
</client>
</system.serviceModel>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@@ -284,7 +284,6 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\bin\Debug\System
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\bin\Debug\System.Runtime.CompilerServices.Unsafe.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\bin\Debug\MySql.Data.xml
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\bin\Debug\Newtonsoft.Json.xml
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csprojAssemblyReference.cache
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.ResolveComReference.cache
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\ExcelTest.findNchange.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\ExcelTest.Helper008.resources

View File

@@ -28,33 +28,194 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.btn_FileOpen = new System.Windows.Forms.Button();
this.tb_filePath = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.tb_filePath);
this.panel1.Controls.Add(this.btn_FileOpen);
this.panel1.Controls.Add(this.comboBox1);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(13, 13);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1273, 40);
this.panel1.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(371, 219);
this.label1.Location = new System.Drawing.Point(11, 14);
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(29, 12);
this.label1.TabIndex = 1;
this.label1.Text = "구분";
//
// Mac_Carry
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(45, 10);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 20);
this.comboBox1.TabIndex = 2;
//
// btn_FileOpen
//
this.btn_FileOpen.Location = new System.Drawing.Point(172, 9);
this.btn_FileOpen.Name = "btn_FileOpen";
this.btn_FileOpen.Size = new System.Drawing.Size(75, 23);
this.btn_FileOpen.TabIndex = 3;
this.btn_FileOpen.Text = "열 기";
this.btn_FileOpen.UseVisualStyleBackColor = true;
this.btn_FileOpen.Click += new System.EventHandler(this.btn_FileOpen_Click);
//
// tb_filePath
//
this.tb_filePath.Location = new System.Drawing.Point(277, 9);
this.tb_filePath.Name = "tb_filePath";
this.tb_filePath.Size = new System.Drawing.Size(371, 21);
this.tb_filePath.TabIndex = 1;
//
// button1
//
this.button1.Location = new System.Drawing.Point(689, 8);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(89, 23);
this.button1.TabIndex = 4;
this.button1.Text = "파일로 저장";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(784, 8);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(89, 23);
this.button2.TabIndex = 4;
this.button2.Text = "DB 저장";
this.button2.UseVisualStyleBackColor = true;
//
// 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.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.isbn,
this.book_name,
this.author,
this.book_comp,
this.price,
this.Marc});
this.dataGridView1.Location = new System.Drawing.Point(13, 59);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1273, 600);
this.dataGridView1.TabIndex = 1;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// openFileDialog1
//
this.openFileDialog1.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*";
this.openFileDialog1.InitialDirectory = "C:";
this.openFileDialog1.Title = "열기";
//
// isbn
//
this.isbn.HeaderText = "isbn";
this.isbn.Name = "isbn";
this.isbn.Width = 90;
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 300;
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
this.book_comp.Width = 150;
//
// price
//
this.price.HeaderText = "정가";
this.price.Name = "price";
this.price.Width = 70;
//
// Marc
//
this.Marc.HeaderText = "Marc";
this.Marc.Name = "Marc";
this.Marc.Width = 500;
//
// Mac_Input
//
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.Name = "Mac_Carry";
this.ClientSize = new System.Drawing.Size(1298, 671);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel1);
this.Name = "Mac_Input";
this.Text = "Mac_Carry";
this.Load += new System.EventHandler(this.Mac_Input_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((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.ComboBox comboBox1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox tb_filePath;
private System.Windows.Forms.Button btn_FileOpen;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.DataGridViewTextBoxColumn isbn;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn price;
private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
}
}

View File

@@ -3,8 +3,10 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -18,5 +20,94 @@ namespace WindowsFormsApp1.Mac
InitializeComponent();
main = _main;
}
private void Mac_Input_Load(object sender, EventArgs e)
{
string[] com_list = { "표준Marc", "라인Marc" };
comboBox1.Items.AddRange(com_list);
comboBox1.SelectedIndex = 0;
}
private void btn_FileOpen_Click(object sender, EventArgs e)
{
string file_path = string.Empty;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
file_path = openFileDialog1.FileName;
try
{
StreamReader r = new StreamReader(file_path, Encoding.Default);
input_Grid(r.ReadToEnd());
r.Close();
}
catch(Exception ex)
{
// 
MessageBox.Show(ex.ToString());
}
}
tb_filePath.Text = file_path;
}
void input_Grid(string text)
{
string[] grid = text.Split('');
for (int a = 0; a < grid.Length - 1; a++)
{
string[] data = Split_Marc(grid[a]);
data[5] = grid[a] + "";
dataGridView1.Rows.Add(data);
}
}
string[] Split_Marc(string text)
{
string tmp_string = text.Remove(0, 24);
string[] Marc = tmp_string.Split('');
string[] dir = made_Directory(Marc[0]);
string[] data = { "", "", "", "", "", "" }; // isbn, 도서명, 저자, 출판사, 정가
String_Text st = new String_Text();
for(int a = 0; a < dir.Length; a++)
{
if (dir[a] == "020")
{
data[0] = st.GetMiddelString(Marc[a + 1], "a", ""); // isbn
data[4] = st.GetMiddelString(Marc[a + 1], "c", ""); // 정가
}
if (dir[a] == "245")
{
data[1] = st.GetMiddelString(Marc[a + 1], "a", ""); // 도서명
data[2] = st.GetMiddelString(Marc[a + 1], "d", ""); // 저자
}
if (dir[a] == "260")
{
data[3] = st.GetMiddelString(Marc[a + 1], "b", ""); // 출판사
}
if (dir[a] == "950")
{
data[4] = st.GetMiddelString(Marc[a + 1], "b", "");
}
}
return data;
}
string[] made_Directory(string value)
{
int length = value.Length;
int start = 0;
List<string> L_dir = new List<string>();
while (true)
{
if (start + 12 > length) { break; }
L_dir.Add(value.Substring(start, 3));
start += 12;
}
string[] result = L_dir.ToArray();
return result;
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
}
}

View File

@@ -117,4 +117,28 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="isbn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="price.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>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>4, 2</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>27</value>
</metadata>
</root>

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff