* unimarc
a. 팩스전송 완료. b. 마크목록 폼 작성중 1. 엑셀반출 기능 추가중 사용 작업중 2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료) 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김. 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 진행해야함. 2-3. 현재 TODO : 저장기능 * ISBN 체크 프로그램 - ★작업완료★ a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것. TODOLIST 1. 주문관리 팩스연동 완료 2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료. 3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,10 @@ namespace WindowsFormsApp1
|
||||
public void Send_mail(string compidx, string pur, string filePath)
|
||||
{
|
||||
db.DBcon();
|
||||
|
||||
#region Setup
|
||||
String_Text st = new String_Text();
|
||||
|
||||
// 보내는 이 : 메일ID, 메일PW, smtp주소, 포트번호
|
||||
string sender_Area = "`comp_name`, `email_ID`, `email_PW`, `smtp`, `port`";
|
||||
string tmp_db = db.DB_Select_Search(sender_Area, "Comp", "idx", compidx);
|
||||
@@ -28,6 +31,22 @@ namespace WindowsFormsApp1
|
||||
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();
|
||||
@@ -36,13 +55,13 @@ namespace WindowsFormsApp1
|
||||
mail.From = new MailAddress("jhk132765@naver.com");
|
||||
|
||||
// 받는 사람 이메일
|
||||
mail.To.Add("jhk132765@gmail.com");
|
||||
mail.To.Add(sender);
|
||||
|
||||
// 메일 제목
|
||||
mail.Subject = "메일 제목"; // arr_db[0] + "주문분입니다.";
|
||||
mail.Subject = arr_db[0] + "주문분입니다.";
|
||||
|
||||
// 메일 내용
|
||||
mail.Body = "메일 내용"; // arr_db[0] + "주문분입니다.";
|
||||
mail.Body = arr_db[0] + "주문분입니다.";
|
||||
|
||||
// 첨부파일
|
||||
System.Net.Mail.Attachment attachment;
|
||||
@@ -52,11 +71,11 @@ namespace WindowsFormsApp1
|
||||
mail.Attachments.Add(attachment);
|
||||
|
||||
// SMTP 및 포트 설정
|
||||
SmtpClient smtp = new SmtpClient("smtp.naver.com", 587); // (arr_db[3], Convert.Int32(arr_db[4]);
|
||||
SmtpClient smtp = new SmtpClient(arr_db[3], Convert.ToInt32(arr_db[4]));
|
||||
smtp.EnableSsl = true;
|
||||
|
||||
// 계정 설정
|
||||
smtp.Credentials = new NetworkCredential("jhk132765@naver.com", "cjaeks3356!"); // (arr_db[1], arr_db[2]);
|
||||
smtp.Credentials = new NetworkCredential(arr_db[1], arr_db[2]);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -266,6 +266,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
Order_input_Search search = new Order_input_Search(this);
|
||||
search.Where_Open = "book_list";
|
||||
search.searchText = tb_search_book_list.Text;
|
||||
search.TopMost = true;
|
||||
search.Show();
|
||||
}
|
||||
@@ -275,6 +276,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
if (e.KeyCode == Keys.Enter) {
|
||||
Order_input_Search search = new Order_input_Search(this);
|
||||
search.Where_Open = "Order";
|
||||
search.searchText = tb_orderText.Text;
|
||||
search.TopMost = true;
|
||||
search.Show();
|
||||
}
|
||||
|
||||
@@ -91,7 +91,6 @@
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Name = "Order_input_Search";
|
||||
this.Text = "Order_input_Search";
|
||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Order_input_Search_FormClosed);
|
||||
this.Load += new System.EventHandler(this.Order_input_Search_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
@@ -19,8 +19,8 @@ namespace WindowsFormsApp1.Delivery
|
||||
Helper_DB db = new Helper_DB();
|
||||
|
||||
int grididx = 0;
|
||||
public string Where_Open = "";
|
||||
string searchText = "";
|
||||
public string Where_Open;
|
||||
public string searchText;
|
||||
string compidx;
|
||||
|
||||
public Order_input_Search(Order_input o_in)
|
||||
@@ -28,12 +28,6 @@ namespace WindowsFormsApp1.Delivery
|
||||
InitializeComponent();
|
||||
oin = o_in;
|
||||
compidx = oin.compidx;
|
||||
if (Where_Open == "book_list") {
|
||||
searchText = oin.tb_search_book_list.Text;
|
||||
}
|
||||
else if (Where_Open == "Order") {
|
||||
searchText = oin.tb_orderText.Text;
|
||||
}
|
||||
}
|
||||
public Order_input_Search(Remit_reg2 _rem2)
|
||||
{
|
||||
@@ -76,8 +70,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
string cmd = db.DB_Contains("Purchase", compidx,
|
||||
"sangho", searchText, "`sangho`, `boss`, `jongmok`");
|
||||
made_grid(cmd);
|
||||
/*
|
||||
if (searchText == "") {
|
||||
/* if (searchText == "") {
|
||||
string cmd = db.DB_Contains("Purchase", compidx,
|
||||
"", "", "`sangho`, `boss`, `jongmok`");
|
||||
made_grid(cmd);
|
||||
@@ -99,9 +92,19 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
if (a % 3 == 0) { res[0] = data[a]; }
|
||||
if (a % 3 == 1) { res[1] = data[a]; }
|
||||
if (a % 3 == 2) { res[2] = data[a]; dataGridView1.Rows.Add(res); }
|
||||
if (a % 3 == 2) { res[2] = data[a];
|
||||
if(Contain_Text(res[0]))
|
||||
dataGridView1.Rows.Add(res);
|
||||
}
|
||||
}
|
||||
}
|
||||
private bool Contain_Text(string ori)
|
||||
{
|
||||
if (ori.Contains(searchText))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
grididx = e.RowIndex;
|
||||
@@ -154,8 +157,5 @@ namespace WindowsFormsApp1.Delivery
|
||||
pb.tb_purchase.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
|
||||
pb.btn_Lookup_Click(null, null);
|
||||
}
|
||||
private void Order_input_Search_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
public partial class Purchase : Form
|
||||
{
|
||||
Helper_DB db = new Helper_DB();
|
||||
Skill_TextBox st = new Skill_TextBox();
|
||||
String_Text st = new String_Text();
|
||||
Main main;
|
||||
public string compidx;
|
||||
public int grididx;
|
||||
|
||||
@@ -179,6 +179,7 @@ namespace ExcelTest
|
||||
|
||||
result = "메모장\n008\t\t200604s20192020ulk b 000a kor ";
|
||||
|
||||
# region richTextBox1에 마크를 만드는 코드
|
||||
{
|
||||
// 020 Tag
|
||||
for (a = 0; a < data020.RowCount - 1; a++)
|
||||
@@ -537,7 +538,9 @@ namespace ExcelTest
|
||||
if (text940a.Text != "" && text940a.Text != "940a 로컬서명") {
|
||||
result += "940" + mid + Sort + "a" + text940a.Text + End;
|
||||
}
|
||||
} // richTextBox1에 마크를 만드는 코드
|
||||
}
|
||||
#endregion
|
||||
|
||||
richTextBox1.Text = result.Replace("\n▲", "");
|
||||
Color_change("▲");
|
||||
Color_change("▼");
|
||||
@@ -851,6 +854,8 @@ namespace ExcelTest
|
||||
findNchange fnc = new findNchange(this);
|
||||
fnc.Show();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1677,6 +1682,7 @@ namespace ExcelTest
|
||||
/// <param name="list"></param>
|
||||
public void ReturnToBox(string num, string sym, string list, string list2 = "")
|
||||
{
|
||||
#region 이 안에 태그있다
|
||||
{
|
||||
// 041 Tag
|
||||
if (num == "041")
|
||||
@@ -1859,7 +1865,9 @@ namespace ExcelTest
|
||||
{
|
||||
if (list[0] == 'a') { text940a.Text = list.Substring(1, list.Length - 1); }
|
||||
}
|
||||
} // 이 안에 태그있다
|
||||
}
|
||||
#endregion
|
||||
|
||||
Color_change("▲");
|
||||
Color_change("▼");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user