Files
Unimarc/unimarc/WindowsFormsApp1//User_Infor.cs
SeungHo Yang ec7742f1d7 =====* unimarc *=====
===== 작업중 =====
주문관리 폼 재 수정작업중 - 팩스 및 이메일 기록 폼 제작해야함. - 제작완료 (현재 목록등록 -> 수정버튼 작업중)
ㄴ> 작업 완료후 검토하고, 회계로 넘어갈 것. - 회계전환
회계전환. 매출상세(Sales_Detail.cs) 폼 작업완료. (버튼 이벤트 작업진행중)
ㄴ> 매출집계에서 상세까지 가는 도중 MDI 부모로 적용되지않는 버그 수정작업완료.

기타 추가적인 버그 잡을것. / 바로빌 세금계산서알아볼것.

===== 보류 =====
 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 완료
2021-05-25 18:33:59 +09:00

114 lines
4.4 KiB
C#

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 WindowsFormsApp1.Home
{
public partial class User_Infor : Form
{
Helper_DB db = new Helper_DB();
Main main;
public User_Infor(Main _main)
{
InitializeComponent();
main = _main;
}
private void User_Infor_Load(object sender, EventArgs e)
{
db.DBcon();
string[] print = { "일반띠지출력", "입고수량만큼 띠지출력", "입고시 한부씩 입고처리" };
cb_print.Items.AddRange(print);
cb_print.SelectedIndex = 0;
string[] statement = { "세로", "가로" };
cb_statement.Items.AddRange(statement);
cb_statement.SelectedIndex = 0;
string[] kind = { "일반 방식", "정가위 출력", "폰트작게" };
cb_kind.Items.AddRange(kind);
cb_kind.SelectedIndex = 0;
string Area =
"`comp_name`, `boss`, `bubin`, `cobin`, `uptae`, " +
"`jongmok`, `zip`, `addr`, `tel`, `fax`, " +
"`bank_comp`, `bank_no`, `email`, `barea`, `smtp`, " +
"`port`, `email_ID`, `email_PW`, `print`, `statement`, `kind`";
string dbtmp = db.DB_Select_Search(Area, "Comp", "idx", main.com_idx);
string[] data = dbtmp.Split('|');
made_Form(data);
}
private void made_Form(string[] strValue)
{
tb_sangho.Text = strValue[0];
tb_boss.Text = strValue[1];
tb_bubin.Text = strValue[2];
tb_cobin.Text = strValue[3];
tb_uptae.Text = strValue[4];
tb_jongmok.Text = strValue[5];
tb_zip.Text = strValue[6];
tb_addr.Text = strValue[7];
tb_tel.Text = strValue[8];
tb_fax.Text = strValue[9];
tb_bank_comp.Text = strValue[10];
tb_bank_no.Text = strValue[11];
tb_email.Text = strValue[12];
tb_barea.Text = strValue[13];
tb_smtp.Text = strValue[14];
tb_port.Text = strValue[15];
tb_email_id.Text = strValue[16];
tb_email_pw.Text = strValue[17];
cb_print.SelectedIndex = Convert.ToInt32(strValue[18]);
cb_statement.SelectedIndex = Convert.ToInt32(strValue[19]);
cb_kind.SelectedIndex = Convert.ToInt32(strValue[20]);
}
private void btn_close_Click(object sender, EventArgs e)
{
Close();
}
private void btn_save_Click(object sender, EventArgs e)
{
string[] temp = {
tb_boss.Text, tb_bubin.Text, tb_cobin.Text, tb_uptae.Text, tb_jongmok.Text,
tb_zip.Text, tb_addr.Text, tb_tel.Text, tb_fax.Text, tb_bank_comp.Text,
tb_bank_no.Text, tb_email.Text, tb_barea.Text, tb_smtp.Text, tb_port.Text,
tb_email_id.Text, tb_email_pw.Text,
cb_print.SelectedIndex.ToString(),
cb_statement.SelectedIndex.ToString(),
cb_kind.SelectedIndex.ToString()};
string[] Area ={
"boss", "bubin", "cobin", "uptae", "jongmok",
"zip", "addr", "tel", "fax", "bank_comp",
"bank_no", "email", "barea", "smtp", "port",
"email_ID", "email_PW", "print", "statement", "kind"};
string[] search_col = { "idx", "comp_name" };
string[] search_name = { main.com_idx, tb_sangho.Text };
db.More_Update("Comp", Area, temp, search_col, search_name);
MessageBox.Show("저장되었습니다.");
}
private void tb_port_KeyPress(object sender, KeyPressEventArgs e)
{
if(!(char.IsDigit(e.KeyChar) || e.KeyChar == Convert.ToChar(Keys.Back))) {
e.Handled = true;
}
}
private void btn_mailtest_Click(object sender, EventArgs e)
{
Email mail = new Email();
mail.Send_Test_mail("글로리아북", tb_email.Text, "테스트 메일입니다", "테스트 메일입니다");
}
private void tb_sangho_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape) {
btn_close_Click(null, null);
}
}
}
}