=====* 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 체크해볼것 - 완료)

주문관리 작업중 (DataGridView 주문처 엔터키 입력시 검색되게끔 하는 코드작성중) - 21.04.27 완료
This commit is contained in:
SeungHo Yang
2021-05-03 18:45:37 +09:00
parent 240561e61c
commit 4671d0da12
37 changed files with 850 additions and 163 deletions

View File

@@ -21,7 +21,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>8N4/Pl6ig/T8cBz+eEqT6pbz5MtRtdCsvu1zv7PWX2o=</dsig:DigestValue>
<dsig:DigestValue>KaOR9WNRzGEkEt/L6WRvYUKErNaykb0irghudtfTbMo=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@@ -3,7 +3,7 @@
<asmv1:assemblyIdentity name="ISBN_Check_test.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="ISBN_Check_test" version="1.0.7786.15808" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.7793.30895" language="neutral" processorArchitecture="msil" />
<commandLine file="ISBN_Check_test.exe" parameters="" />
</entryPoint>
<trustInfo>
@@ -43,13 +43,13 @@
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="43008">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7786.15808" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.7793.30895" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>bdOYkYERRvJUqx91y1qmQjuXv88VCmpYTIG8UBAfmGo=</dsig:DigestValue>
<dsig:DigestValue>lW399SUW4oVNHmKhonNbeZ2ufIuXhK+YJO9VqdT6bJ8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@@ -80,7 +80,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>ozAby1Nftdrpio9AQip4nUd/wUETl8WqO8llSVov95w=</dsig:DigestValue>
<dsig:DigestValue>i3swclH27Z786WNE6JwZJW8AIYuPyeXJ/oYEB+gM4FA=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

View File

@@ -21,7 +21,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>8N4/Pl6ig/T8cBz+eEqT6pbz5MtRtdCsvu1zv7PWX2o=</dsig:DigestValue>
<dsig:DigestValue>KaOR9WNRzGEkEt/L6WRvYUKErNaykb0irghudtfTbMo=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@@ -3,7 +3,7 @@
<asmv1:assemblyIdentity name="ISBN_Check_test.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="ISBN_Check_test" version="1.0.7786.15808" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.7793.30895" language="neutral" processorArchitecture="msil" />
<commandLine file="ISBN_Check_test.exe" parameters="" />
</entryPoint>
<trustInfo>
@@ -43,13 +43,13 @@
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="43008">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7786.15808" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.7793.30895" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>bdOYkYERRvJUqx91y1qmQjuXv88VCmpYTIG8UBAfmGo=</dsig:DigestValue>
<dsig:DigestValue>lW399SUW4oVNHmKhonNbeZ2ufIuXhK+YJO9VqdT6bJ8=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@@ -80,7 +80,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>ozAby1Nftdrpio9AQip4nUd/wUETl8WqO8llSVov95w=</dsig:DigestValue>
<dsig:DigestValue>i3swclH27Z786WNE6JwZJW8AIYuPyeXJ/oYEB+gM4FA=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

Binary file not shown.

View File

@@ -22,19 +22,19 @@
"Entry"
{
"MsmKey" = "8:_36AC4F62C92B6D0BCDD2C56761258591"
"OwnerKey" = "8:_6FD3A2ED6BCE4D60998CA77094F077A6"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_6FD3A2ED6BCE4D60998CA77094F077A6"
"OwnerKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_F645A90D8DD843CF9495192BFCC290BB"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_8E5B8C9896AC806B09C2BF089A2B0DA2"
"OwnerKey" = "8:_6FD3A2ED6BCE4D60998CA77094F077A6"
"OwnerKey" = "8:_F645A90D8DD843CF9495192BFCC290BB"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_F645A90D8DD843CF9495192BFCC290BB"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -46,7 +46,7 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_6FD3A2ED6BCE4D60998CA77094F077A6"
"OwnerKey" = "8:_F645A90D8DD843CF9495192BFCC290BB"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -289,7 +289,7 @@
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:ISBN조회프로그램"
"ProductCode" = "8:{A8A04035-B337-4B41-88F1-8A5982917757}"
"PackageCode" = "8:{E8137EB0-3234-42B5-B209-18D17ACB496F}"
"PackageCode" = "8:{BB929504-C489-4722-89F6-230B374B36F4}"
"UpgradeCode" = "8:{26ED5F40-94B6-454E-894F-FE448A69CB2D}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
@@ -409,7 +409,7 @@
}
"Shortcut"
{
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_6C4907FFDB874945A1B221C86CE2A522"
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_DE74ABC431374957A44C0B13428F68E5"
{
"Name" = "8:ISBN 조회"
"Arguments" = "8:"
@@ -417,7 +417,7 @@
"ShowCmd" = "3:1"
"IconIndex" = "3:0"
"Transitive" = "11:FALSE"
"Target" = "8:_6FD3A2ED6BCE4D60998CA77094F077A6"
"Target" = "8:_F645A90D8DD843CF9495192BFCC290BB"
"Folder" = "8:_A66867392A5046CAB74023B14B8C3140"
"WorkingFolder" = "8:_945325C397F845FB86F255B5AAC3663E"
"Icon" = "8:_0D6062360C5F4D6BA7D1EBF485EEFF70"
@@ -822,7 +822,7 @@
}
"ProjectOutput"
{
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_6FD3A2ED6BCE4D60998CA77094F077A6"
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_F645A90D8DD843CF9495192BFCC290BB"
{
"SourcePath" = "8:..\\ISBN_Check_test\\obj\\Debug\\ISBN_Check_test.exe"
"TargetName" = "8:"

View File

@@ -13,12 +13,11 @@ namespace WindowsFormsApp1
class Email
{
Helper_DB db = new Helper_DB();
public void Send_mail(string compidx, string pur, string filePath)
public bool Send_mail(string compidx, string pur, string filePath, string sender)
{
db.DBcon();
#region Setup
String_Text st = new String_Text();
// 보내는 이 : 메일ID, 메일PW, smtp주소, 포트번호
string sender_Area = "`comp_name`, `email_ID`, `email_PW`, `smtp`, `port`";
@@ -26,27 +25,6 @@ namespace WindowsFormsApp1
string[] arr_db = tmp_db.Split('|');
// 받는 이 : 메일
string taker_Area = "`email`";
tmp_db = db.DB_Select_Search(taker_Area, "Purchase", "sangho", pur);
string[] arr_pur = tmp_db.Split('|');
string sender = arr_pur[0];
string tmp = "안녕";
if (st.isContainHangul(tmp)==true) {
MessageBox.Show("DB내 저장된 이메일이 사양과 다릅니다. 직접 입력해주세요.");
Skill_Search_Text sst = new Skill_Search_Text();
string value = "";
if (sst.InputBox("보내실 이메일을 적어주세요.", "보내실 이메일을 적어주세요.", ref value) == DialogResult.OK) {
if (value == "") { return; }
}
else {
return;
sender = value;
}
}
#endregion
MailMessage mail = new MailMessage();
@@ -81,10 +59,12 @@ namespace WindowsFormsApp1
{
smtp.Send(mail);
MessageBox.Show("메일 전송 완료");
return true;
}
catch(SmtpException e)
{
MessageBox.Show(e.ToString());
return false;
}
}
/// <summary>

View File

@@ -90,6 +90,12 @@
<DesignTime>True</DesignTime>
<DependentUpon>Reference.svcmap</DependentUpon>
</Compile>
<Compile Include="납품관리\Order_Send_Chk.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="납품관리\Order_Send_Chk.Designer.cs">
<DependentUpon>Order_Send_Chk.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN_Sub.cs">
<SubType>Form</SubType>
</Compile>
@@ -582,6 +588,9 @@
<Compile Include="작업일지\Work_Log.Designer.cs">
<DependentUpon>Work_Log.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="납품관리\Order_Send_Chk.resx">
<DependentUpon>Order_Send_Chk.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN_Sub.resx">
<DependentUpon>Check_ISBN_Sub.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -1 +1 @@
95b5b9901765015531bb86a1c60df3f15920c313
31638290a3c75b4ec84290b2c00f026a8e6e2c75

View File

@@ -376,3 +376,4 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\bin\Debug\System
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.마크.Check_ISBN_Sub.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.마크.Search_Infor_Sub.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csprojAssemblyReference.cache
C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.납품관리.Order_Send_Chk.resources

View File

@@ -0,0 +1,353 @@

namespace WindowsFormsApp1.
{
partial class Order_Send_Chk
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.Start_DatePicker = new System.Windows.Forms.DateTimePicker();
this.label7 = new System.Windows.Forms.Label();
this.End_DatePicker = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.btn_Lookup = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.dataGrid_Fax = new System.Windows.Forms.DataGridView();
this.dataGrid_Email = new System.Windows.Forms.DataGridView();
this.FaxKey = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_state = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_page1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_page2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_filename = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.f_res = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_clt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_time = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_sender = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_taker = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_filename = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.m_sendres = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid_Fax)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataGrid_Email)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.textBox1);
this.panel1.Controls.Add(this.Start_DatePicker);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.End_DatePicker);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(538, 35);
this.panel1.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(21, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(69, 12);
this.label1.TabIndex = 0;
this.label1.Text = "발송 요청일";
//
// Start_DatePicker
//
this.Start_DatePicker.CustomFormat = "yyyy-MM-dd";
this.Start_DatePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.Start_DatePicker.Location = new System.Drawing.Point(96, 6);
this.Start_DatePicker.Name = "Start_DatePicker";
this.Start_DatePicker.Size = new System.Drawing.Size(85, 21);
this.Start_DatePicker.TabIndex = 18;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(184, 10);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(14, 12);
this.label7.TabIndex = 19;
this.label7.Text = "~";
//
// End_DatePicker
//
this.End_DatePicker.CustomFormat = "yyyy-MM-dd";
this.End_DatePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.End_DatePicker.Location = new System.Drawing.Point(200, 6);
this.End_DatePicker.Name = "End_DatePicker";
this.End_DatePicker.Size = new System.Drawing.Size(85, 21);
this.End_DatePicker.TabIndex = 20;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(322, 10);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 0;
this.label2.Text = "거래처명";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(381, 6);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(147, 21);
this.textBox1.TabIndex = 21;
//
// btn_Lookup
//
this.btn_Lookup.Location = new System.Drawing.Point(569, 15);
this.btn_Lookup.Name = "btn_Lookup";
this.btn_Lookup.Size = new System.Drawing.Size(85, 28);
this.btn_Lookup.TabIndex = 1;
this.btn_Lookup.Text = "조 회";
this.btn_Lookup.UseVisualStyleBackColor = true;
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(660, 15);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(85, 28);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
//
// dataGrid_Fax
//
this.dataGrid_Fax.AllowUserToAddRows = false;
this.dataGrid_Fax.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGrid_Fax.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGrid_Fax.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGrid_Fax.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.FaxKey,
this.f_comp,
this.f_num,
this.f_date,
this.f_state,
this.f_page1,
this.f_page2,
this.f_filename,
this.f_res});
this.dataGrid_Fax.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGrid_Fax.Location = new System.Drawing.Point(12, 53);
this.dataGrid_Fax.Name = "dataGrid_Fax";
this.dataGrid_Fax.RowHeadersWidth = 10;
this.dataGrid_Fax.RowTemplate.Height = 23;
this.dataGrid_Fax.Size = new System.Drawing.Size(890, 493);
this.dataGrid_Fax.TabIndex = 2;
//
// dataGrid_Email
//
this.dataGrid_Email.AllowUserToAddRows = false;
this.dataGrid_Email.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.dataGrid_Email.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dataGrid_Email.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGrid_Email.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.m_clt,
this.m_date,
this.m_time,
this.m_sender,
this.m_taker,
this.m_filename,
this.m_sendres});
this.dataGrid_Email.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGrid_Email.Location = new System.Drawing.Point(12, 53);
this.dataGrid_Email.Name = "dataGrid_Email";
this.dataGrid_Email.RowHeadersWidth = 10;
this.dataGrid_Email.RowTemplate.Height = 23;
this.dataGrid_Email.Size = new System.Drawing.Size(890, 493);
this.dataGrid_Email.TabIndex = 3;
//
// FaxKey
//
this.FaxKey.HeaderText = "FaxKey";
this.FaxKey.Name = "FaxKey";
this.FaxKey.Visible = false;
//
// f_comp
//
this.f_comp.HeaderText = "수신자회사명";
this.f_comp.Name = "f_comp";
this.f_comp.Width = 150;
//
// f_num
//
this.f_num.HeaderText = "수신번호";
this.f_num.Name = "f_num";
//
// f_date
//
this.f_date.HeaderText = "전송일시";
this.f_date.Name = "f_date";
//
// f_state
//
this.f_state.HeaderText = "전송상태";
this.f_state.Name = "f_state";
//
// f_page1
//
this.f_page1.HeaderText = "Page";
this.f_page1.Name = "f_page1";
this.f_page1.Width = 80;
//
// f_page2
//
this.f_page2.HeaderText = "Page";
this.f_page2.Name = "f_page2";
this.f_page2.Width = 80;
//
// f_filename
//
this.f_filename.HeaderText = "전송파일명";
this.f_filename.Name = "f_filename";
this.f_filename.Width = 150;
//
// f_res
//
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.f_res.DefaultCellStyle = dataGridViewCellStyle2;
this.f_res.HeaderText = "전송결과";
this.f_res.Name = "f_res";
//
// m_clt
//
this.m_clt.HeaderText = "거래처명";
this.m_clt.Name = "m_clt";
this.m_clt.Width = 150;
//
// m_date
//
this.m_date.HeaderText = "날짜";
this.m_date.Name = "m_date";
//
// m_time
//
this.m_time.HeaderText = "시간";
this.m_time.Name = "m_time";
//
// m_sender
//
this.m_sender.HeaderText = "보낸 메일주소";
this.m_sender.Name = "m_sender";
this.m_sender.Width = 130;
//
// m_taker
//
this.m_taker.HeaderText = "받는 메일주소";
this.m_taker.Name = "m_taker";
this.m_taker.Width = 130;
//
// m_filename
//
this.m_filename.HeaderText = "전송파일명";
this.m_filename.Name = "m_filename";
this.m_filename.Width = 150;
//
// m_sendres
//
this.m_sendres.HeaderText = "전송결과";
this.m_sendres.Name = "m_sendres";
//
// Order_Send_Chk
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(914, 558);
this.Controls.Add(this.dataGrid_Email);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Lookup);
this.Controls.Add(this.panel1);
this.Controls.Add(this.dataGrid_Fax);
this.Name = "Order_Send_Chk";
this.Text = "Order_Send_Chk";
this.Load += new System.EventHandler(this.Order_Send_Chk_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid_Fax)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dataGrid_Email)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.DateTimePicker Start_DatePicker;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.DateTimePicker End_DatePicker;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btn_Lookup;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.DataGridView dataGrid_Fax;
private System.Windows.Forms.DataGridView dataGrid_Email;
private System.Windows.Forms.DataGridViewTextBoxColumn FaxKey;
private System.Windows.Forms.DataGridViewTextBoxColumn f_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn f_num;
private System.Windows.Forms.DataGridViewTextBoxColumn f_date;
private System.Windows.Forms.DataGridViewTextBoxColumn f_state;
private System.Windows.Forms.DataGridViewTextBoxColumn f_page1;
private System.Windows.Forms.DataGridViewTextBoxColumn f_page2;
private System.Windows.Forms.DataGridViewTextBoxColumn f_filename;
private System.Windows.Forms.DataGridViewTextBoxColumn f_res;
private System.Windows.Forms.DataGridViewTextBoxColumn m_clt;
private System.Windows.Forms.DataGridViewTextBoxColumn m_date;
private System.Windows.Forms.DataGridViewTextBoxColumn m_time;
private System.Windows.Forms.DataGridViewTextBoxColumn m_sender;
private System.Windows.Forms.DataGridViewTextBoxColumn m_taker;
private System.Windows.Forms.DataGridViewTextBoxColumn m_filename;
private System.Windows.Forms.DataGridViewTextBoxColumn m_sendres;
}
}

View File

@@ -0,0 +1,119 @@
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.Delivery;
namespace WindowsFormsApp1.
{
public partial class Order_Send_Chk : Form
{
string[] set_date = { "", "" };
string compidx;
Helper_DB db = new Helper_DB();
Order_input oi;
public Order_Send_Chk(Order_input _oi)
{
InitializeComponent();
oi = _oi;
compidx = oi.compidx;
}
private void Order_Send_Chk_Load(object sender, EventArgs e)
{
db.DBcon();
#region
int Year = DateTime.Now.Year;
int Month = DateTime.Now.Month;
int Day = DateTime.Now.Day - 1;
Start_DatePicker.Value = new DateTime(Year, Month, Day);
set_date[0] = Start_DatePicker.Value.ToString().Substring(0, 10);
set_date[1] = End_DatePicker.Value.ToString().Substring(0, 10);
#endregion
#region Grid설정
string Area = "`구분`, `팩스전송키`, `거래처명`, `날짜`, `시간`, `보낸이`, `받는이`, `전송파일명`, `전송결과`";
string Fax_Key_tmp = db.Search_Date("Send_Order", Area, "날짜", set_date[0], set_date[1], compidx);
string[] Fax_Key = Fax_Key_tmp.Split('|');
input_Grid(Fax_Key);
#endregion
}
private void input_Grid(string[] data)
{
switch(oi.cb_ordersend.SelectedIndex)
{
case 0:
dataGrid_Email.Enabled = false;
dataGrid_Email.Visible = false;
Fax_Grid(data);
break;
case 1:
dataGrid_Fax.Enabled = false;
dataGrid_Fax.Visible = false;
Email_Grid(data);
break;
default:
break;
}
}
private void Fax_Grid(string[] data)
{
string[] grid = { "", "", "", "", "",
"", "", "" };
int len = 9;
for(int a = 0; a < data.Length; a++)
{
if (a % len == 0) {
if (data[a] != "팩스") return;
}
if (a % len == 1) {
dataGrid_Fax.Rows.Add(Plus_Fax(data[a], grid));
}
}
}
private void Email_Grid(string[] data)
{
string[] grid = { "", "", "", "", "",
"" };
int len = 9;
for(int a= 0; a < data.Length; a++)
{
if (a % len == 0) {
if (data[a] != "메일") return;
}
if (a % len == 2) { grid[0] = data[a]; }
if (a % len == 3) { grid[1] = data[a]; }
if (a % len == 4) { grid[2] = data[a]; }
if (a % len == 5) { grid[3] = data[a]; }
if (a % len == 6) { grid[4] = data[a]; }
if (a % len == 7) { grid[5] = data[a]; dataGrid_Email.Rows.Add(grid); }
}
}
private string[] Plus_Fax(string faxkey, string[] grid)
{
Barobill_FAX fax = new Barobill_FAX();
// 수신자회사명, 수신번호, 전송일시, 전송결과, 전송페이지수, 성공페이지수, 전송파일명
string[] data = fax.Send_chk_BaroFax(faxkey);
MessageBox.Show(faxkey);
grid[0] = faxkey;
grid[1] = data[0];
grid[2] = data[1];
grid[3] = data[2];
grid[4] = data[3];
grid[5] = data[4];
grid[6] = data[5];
grid[7] = data[6];
return grid;
}
}
}

View File

@@ -0,0 +1,168 @@
<?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="FaxKey.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_state.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_page1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_page2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_filename.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="f_res.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="m_clt.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="m_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="m_time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="m_sender.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="m_taker.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="m_filename.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="m_sendres.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -378,7 +378,7 @@
//
// tb_orderText
//
this.tb_orderText.Location = new System.Drawing.Point(993, 85);
this.tb_orderText.Location = new System.Drawing.Point(987, 85);
this.tb_orderText.Name = "tb_orderText";
this.tb_orderText.Size = new System.Drawing.Size(129, 21);
this.tb_orderText.TabIndex = 44;
@@ -387,7 +387,7 @@
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(940, 89);
this.label12.Location = new System.Drawing.Point(934, 89);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(53, 12);
this.label12.TabIndex = 43;
@@ -395,7 +395,7 @@
//
// btn_order_list_change
//
this.btn_order_list_change.Location = new System.Drawing.Point(1126, 84);
this.btn_order_list_change.Location = new System.Drawing.Point(1120, 84);
this.btn_order_list_change.Name = "btn_order_list_change";
this.btn_order_list_change.Size = new System.Drawing.Size(129, 23);
this.btn_order_list_change.TabIndex = 45;
@@ -405,7 +405,7 @@
//
// btn_order_chk
//
this.btn_order_chk.Location = new System.Drawing.Point(1126, 111);
this.btn_order_chk.Location = new System.Drawing.Point(1120, 111);
this.btn_order_chk.Name = "btn_order_chk";
this.btn_order_chk.Size = new System.Drawing.Size(129, 23);
this.btn_order_chk.TabIndex = 46;
@@ -463,7 +463,7 @@
this.dataGridView1.RowHeadersWidth = 10;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dataGridView1.Size = new System.Drawing.Size(1246, 566);
this.dataGridView1.Size = new System.Drawing.Size(1240, 566);
this.dataGridView1.TabIndex = 47;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
@@ -649,7 +649,7 @@
//
// btn_order_empty
//
this.btn_order_empty.Location = new System.Drawing.Point(993, 111);
this.btn_order_empty.Location = new System.Drawing.Point(987, 111);
this.btn_order_empty.Name = "btn_order_empty";
this.btn_order_empty.Size = new System.Drawing.Size(129, 23);
this.btn_order_empty.TabIndex = 46;
@@ -681,7 +681,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1268, 722);
this.ClientSize = new System.Drawing.Size(1261, 722);
this.Controls.Add(this.btn_Excel);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.panel2);
@@ -745,7 +745,6 @@
private System.Windows.Forms.Button btn_All_unchk;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.ComboBox cb_ordersend;
private System.Windows.Forms.Button btn_order_send;
private System.Windows.Forms.Button btn_send_chk;
private System.Windows.Forms.Label label12;
@@ -780,5 +779,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn order_date;
private System.Windows.Forms.DataGridViewTextBoxColumn send_date;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
public System.Windows.Forms.ComboBox cb_ordersend;
}
}

View File

@@ -9,6 +9,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1.;
namespace WindowsFormsApp1.Delivery
{
@@ -367,6 +368,9 @@ namespace WindowsFormsApp1.Delivery
}
}
*/
string Date = DateTime.Now.ToString("yyyy-MM-dd");
string Time = DateTime.Now.ToString("HH-mm-ss");
String_Text st = new String_Text();
string pur = "dasd";
string FilePath = string.Empty;
string filename = string.Empty;
@@ -452,18 +456,57 @@ namespace WindowsFormsApp1.Delivery
// 바로빌 FAX API연동
db.DB_Update("Comp", "fax_Key", fax.Send_BaroFax(filename, fax_param), "idx", compidx);
string Fax_Key = fax.Send_BaroFax(filename, fax_param);
string[] col_Name = { "compidx", "구분", "팩스전송키", "날짜", "시간" };
string[] set_Data = { compidx, "팩스", Fax_Key, Date, Time };
db.DB_INSERT("Send_Order", col_Name, set_Data);
}
if (cb_ordersend.SelectedItem.ToString() == "메일") {
// 보내는 이 : 메일ID
string sender_Area = "`email_ID`";
string tmp_db = db.DB_Select_Search(sender_Area, "Comp", "idx", compidx);
string[] arr_db = tmp_db.Split('|');
// 받는 이 : 메일
string taker_Area = "`email`";
tmp_db = db.DB_Select_Search(taker_Area, "Purchase", "sangho", pur);
string[] arr_pur = tmp_db.Split('|');
string m_send = arr_pur[0];
if (st.isContainHangul(m_send) == true)
{
MessageBox.Show("DB내 저장된 이메일이 사양과 다릅니다. 직접 입력해주세요.");
Skill_Search_Text sst = new Skill_Search_Text();
string value = "";
if (sst.InputBox("보내실 이메일을 적어주세요.", "보내실 이메일을 적어주세요.", ref value) == DialogResult.OK) {
if (value == "") { return; }
}
else {
m_send = value;
}
}
Email email = new Email();
email.Send_mail(compidx, pur, Odig.FileName);
if (email.Send_mail(compidx, pur, Odig.FileName, m_send)) {
string[] col_Name = { "compidx", "구분", "거래처명", "날짜", "시간", "보낸이", "받는이", "전송파일명", "전송결과" };
string[] set_Data = { compidx, "메일", pur, Date, Time, arr_db[0], m_send, filename, "성공" };
db.DB_INSERT("Send_Order", col_Name, set_Data);
MessageBox.Show("전송 성공!");
}
else { MessageBox.Show("전송 실패!"); }
}
}
private void btn_send_chk_Click(object sender, EventArgs e)
{
string db_tmp = db.DB_Select_Search("`fax_Key`", "Comp", "idx", compidx);
string[] fax_key = db_tmp.Split('|');
Order_Send_Chk orc = new Order_Send_Chk(this);
orc.Show();
fax.Send_chk_BaroFax(fax_key[0]);
}
private void btn_order_list_change_Click(object sender, EventArgs e)
{

View File

@@ -32,16 +32,6 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -62,6 +52,17 @@
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.image = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
@@ -120,97 +121,6 @@
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(709, 7);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(516, 8);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(59, 8);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(199, 21);
this.tb_list_name.TabIndex = 4;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(457, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(819, 7);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(929, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(278, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(337, 8);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(93, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1060, 7);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// num
//
this.num.HeaderText = "번호";
@@ -319,11 +229,111 @@
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(709, 7);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(516, 8);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(59, 8);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(199, 21);
this.tb_list_name.TabIndex = 4;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(457, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(819, 7);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(929, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(278, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(337, 8);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(93, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1060, 7);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(12, 589);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1615, 123);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// Check_ISBN
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1639, 594);
this.ClientSize = new System.Drawing.Size(1639, 724);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.cb_api);
this.Controls.Add(this.label3);
@@ -377,5 +387,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn image;
private System.Windows.Forms.DataGridViewTextBoxColumn api_data;
private System.Windows.Forms.RichTextBox richTextBox1;
}
}

View File

@@ -115,7 +115,7 @@ namespace WindowsFormsApp1.Mac
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
string[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
"pubDate", "categoryName", "stockStatus" };
"pubDate", "categoryName", "stockStatus", "cover" };
API api = new API();
switch (cb_filter.SelectedIndex)
@@ -582,6 +582,7 @@ namespace WindowsFormsApp1.Mac
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
rowidx = e.RowIndex;
richTextBox1.Text = dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString();
}
private void Check_ISBN_FormClosing(object sender, FormClosingEventArgs e)
{

View File

@@ -70,8 +70,10 @@ namespace WindowsFormsApp1.마크
}
private string change_Date_type(string date)
{
if (Call_API == "알라딘")
if (Call_API == "알라딘") {
MessageBox.Show(date);
return String.Format("{0:yyyy/MM/dd}", DateTime.Parse(date.Remove(date.IndexOf(" G"))));
}
else if (Call_API == "네이버")
return DateTime.ParseExact(date, "yyyyMMdd", null).ToString("yyyy-MM-dd");
else

Binary file not shown.