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

===== 작업중 =====
주문관리 폼 재 수정작업중 - 팩스 및 이메일 기록 폼 제작해야함. - 제작완료 (현재 목록등록 -> 수정버튼 작업중)
ㄴ> 작업 완료후 검토하고, 회계로 넘어갈 것. - 회계전환
ㄴ> 회계전환. 매출입력 폼 완료. 매출장부 수정해야함. 76번줄 참고

===== 보류 =====
 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-11 18:37:18 +09:00
parent 1827aca297
commit 3b670bf26d
68 changed files with 1008 additions and 21340 deletions

View File

@@ -28,53 +28,57 @@
/// </summary>
private void InitializeComponent()
{
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.End_Date = new System.Windows.Forms.DateTimePicker();
this.Start_Date = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.tb_clt = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.btn_Lookup = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.panel1 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.out_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.clt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.content = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.total = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.in_per = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.out_per = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.in_price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.out_price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dif = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// dateTimePicker2
// End_Date
//
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker2.Location = new System.Drawing.Point(178, 24);
this.dateTimePicker2.Name = "dateTimePicker2";
this.dateTimePicker2.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker2.TabIndex = 39;
this.End_Date.CustomFormat = "yyyy-MM-dd";
this.End_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.End_Date.Location = new System.Drawing.Point(173, 9);
this.End_Date.Name = "End_Date";
this.End_Date.Size = new System.Drawing.Size(85, 21);
this.End_Date.TabIndex = 39;
//
// dateTimePicker1
// Start_Date
//
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(80, 24);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker1.TabIndex = 38;
this.Start_Date.CustomFormat = "yyyy-MM-dd";
this.Start_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.Start_Date.Location = new System.Drawing.Point(70, 9);
this.Start_Date.Name = "Start_Date";
this.Start_Date.Size = new System.Drawing.Size(85, 21);
this.Start_Date.TabIndex = 38;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(27, 28);
this.label2.Location = new System.Drawing.Point(13, 13);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 37;
@@ -82,7 +86,7 @@
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(548, 24);
this.textBox2.Location = new System.Drawing.Point(560, 9);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(280, 21);
this.textBox2.TabIndex = 78;
@@ -90,179 +94,221 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(495, 28);
this.label3.Location = new System.Drawing.Point(505, 13);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 77;
this.label3.Text = "비고내용";
//
// textBox1
// tb_clt
//
this.textBox1.Location = new System.Drawing.Point(338, 24);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(145, 21);
this.textBox1.TabIndex = 76;
this.tb_clt.Location = new System.Drawing.Point(344, 9);
this.tb_clt.Name = "tb_clt";
this.tb_clt.Size = new System.Drawing.Size(145, 21);
this.tb_clt.TabIndex = 76;
this.tb_clt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(273, 28);
this.label1.Location = new System.Drawing.Point(277, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 75;
this.label1.Text = "매출거래처";
//
// button1
// btn_Lookup
//
this.button1.Location = new System.Drawing.Point(846, 23);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 79;
this.button1.Text = "조 회";
this.button1.UseVisualStyleBackColor = true;
this.btn_Lookup.Location = new System.Drawing.Point(858, 8);
this.btn_Lookup.Name = "btn_Lookup";
this.btn_Lookup.Size = new System.Drawing.Size(75, 23);
this.btn_Lookup.TabIndex = 79;
this.btn_Lookup.Text = "조 회";
this.btn_Lookup.UseVisualStyleBackColor = true;
this.btn_Lookup.Click += new System.EventHandler(this.btn_Lookup_Click);
//
// button2
// btn_Close
//
this.button2.Location = new System.Drawing.Point(927, 23);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 80;
this.button2.Text = " ";
this.button2.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Location = new System.Drawing.Point(1008, 23);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 81;
this.button3.Text = "전표병합";
this.button3.UseVisualStyleBackColor = true;
this.btn_Close.Location = new System.Drawing.Point(945, 8);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 81;
this.btn_Close.Text = " ";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// dataGridView1
//
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
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.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3,
this.Column4,
this.Column5,
this.Column6,
this.Column7,
this.Column8,
this.Column9,
this.Column10,
this.Column11});
this.dataGridView1.Location = new System.Drawing.Point(29, 64);
this.out_date,
this.clt,
this.tel,
this.content,
this.count,
this.total,
this.in_per,
this.out_per,
this.in_price,
this.out_price,
this.dif,
this.etc});
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(12, 58);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 20;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1078, 150);
this.dataGridView1.Size = new System.Drawing.Size(1151, 421);
this.dataGridView1.TabIndex = 82;
//
// Column1
// panel1
//
this.Column1.HeaderText = "출고일자";
this.Column1.Name = "Column1";
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.Start_Date);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.End_Date);
this.panel1.Controls.Add(this.btn_Lookup);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.textBox2);
this.panel1.Controls.Add(this.tb_clt);
this.panel1.Controls.Add(this.label3);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1051, 40);
this.panel1.TabIndex = 83;
//
// Column2
// label4
//
this.Column2.HeaderText = "매출거래처";
this.Column2.Name = "Column2";
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(157, 13);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(14, 12);
this.label4.TabIndex = 37;
this.label4.Text = "~";
//
// Column3
// out_date
//
this.Column3.HeaderText = "전화번호";
this.Column3.Name = "Column3";
this.out_date.HeaderText = "출고일자";
this.out_date.Name = "out_date";
this.out_date.Width = 80;
//
// Column4
// clt
//
this.Column4.HeaderText = "내용";
this.Column4.Name = "Column4";
this.clt.HeaderText = "매출거래처";
this.clt.Name = "clt";
this.clt.Width = 150;
//
// Column5
// tel
//
this.Column5.HeaderText = "수량";
this.Column5.Name = "Column5";
this.tel.HeaderText = "전화번호";
this.tel.Name = "tel";
//
// Column6
// content
//
this.Column6.HeaderText = "출고율";
this.Column6.Name = "Column6";
this.content.HeaderText = "내용";
this.content.Name = "content";
this.content.Width = 200;
//
// Column7
// count
//
this.Column7.HeaderText = "매출금액";
this.Column7.Name = "Column7";
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Width = 40;
//
// Column8
// total
//
this.Column8.HeaderText = "매입금액";
this.Column8.Name = "Column8";
this.total.HeaderText = "액";
this.total.Name = "total";
this.total.Width = 80;
//
// Column9
// in_per
//
this.Column9.HeaderText = "차이";
this.Column9.Name = "Column9";
this.in_per.HeaderText = "입고율";
this.in_per.Name = "in_per";
this.in_per.Width = 60;
//
// Column10
// out_per
//
this.Column10.HeaderText = "비 고";
this.Column10.Name = "Column10";
this.out_per.HeaderText = "출고율";
this.out_per.Name = "out_per";
this.out_per.Width = 60;
//
// Column11
// in_price
//
this.Column11.HeaderText = "선택";
this.Column11.Name = "Column11";
this.Column11.Width = 35;
this.in_price.HeaderText = "매입금액";
this.in_price.Name = "in_price";
this.in_price.Width = 80;
//
// out_price
//
this.out_price.HeaderText = "매출금액";
this.out_price.Name = "out_price";
this.out_price.Width = 80;
//
// dif
//
this.dif.HeaderText = "차이";
this.dif.Name = "dif";
this.dif.Width = 80;
//
// etc
//
this.etc.HeaderText = "비고";
this.etc.Name = "etc";
//
// Sales_Book
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1268, 491);
this.ClientSize = new System.Drawing.Size(1176, 491);
this.Controls.Add(this.panel1);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.dateTimePicker2);
this.Controls.Add(this.dateTimePicker1);
this.Controls.Add(this.label2);
this.Name = "Sales_Book";
this.Text = "매출장부";
this.Load += new System.EventHandler(this.Sales_Book_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DateTimePicker dateTimePicker2;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.DateTimePicker End_Date;
private System.Windows.Forms.DateTimePicker Start_Date;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button btn_Lookup;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column11;
private System.Windows.Forms.Panel panel1;
public System.Windows.Forms.TextBox tb_clt;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.DataGridViewTextBoxColumn out_date;
private System.Windows.Forms.DataGridViewTextBoxColumn clt;
private System.Windows.Forms.DataGridViewTextBoxColumn tel;
private System.Windows.Forms.DataGridViewTextBoxColumn content;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
private System.Windows.Forms.DataGridViewTextBoxColumn total;
private System.Windows.Forms.DataGridViewTextBoxColumn in_per;
private System.Windows.Forms.DataGridViewTextBoxColumn out_per;
private System.Windows.Forms.DataGridViewTextBoxColumn in_price;
private System.Windows.Forms.DataGridViewTextBoxColumn out_price;
private System.Windows.Forms.DataGridViewTextBoxColumn dif;
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
}
}

View File

@@ -8,15 +8,135 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
// 추가된 참조
using WindowsFormsApp1.Delivery;
namespace WindowsFormsApp1.Account
{
public partial class Sales_Book : Form
{
public string compidx;
Main main;
Helper_DB db = new Helper_DB();
public Sales_Book(Main _main)
{
InitializeComponent();
main = _main;
compidx = main.com_idx;
}
private void Sales_Book_Load(object sender, EventArgs e)
{
db.DBcon();
}
private void btn_Lookup_Click(object sender, EventArgs e)
{
string table = "`date`, `client`, `tel`, `book_name`, `in_per`, `out_per`, `total`, `etc`";
string start = Start_Date.Text.Substring(0, 10);
string end = End_Date.Text.Substring(0, 10);
string data_base = db.Search_Date("Sales", table, "date", start, end, compidx);
input_Grid(data_base);
}
private void input_Grid(string value)
{
/* 조회기간, 매출거래처, 전화번호, 내용, 수량, 총액
* 입고율, 출고율, 매입금액, 매출금액, 차이, 비고 */
string[] grid = { "", "", "", "", "", "",
"", "", "", "", "", "" };
string[] data = { "", "", "", "", "",
"", "", "" };
string[] ary = value.Split('|');
int cot = 8;
for(int a = 0; a < ary.Length; a++)
{
if (a % cot == 0) { data[0] = ary[a]; }
if (a % cot == 1) { data[1] = ary[a]; }
if (a % cot == 2) { data[2] = ary[a]; }
if (a % cot == 3) { data[3] = ary[a]; }
if (a % cot == 4) { data[4] = ary[a]; }
if (a % cot == 5) { data[5] = ary[a]; }
if (a % cot == 6) { data[6] = ary[a]; }
if (a % cot == 7) { data[7] = ary[a];
grid_data_check(grid, data);
}
}
}
private void grid_data_check(string[] grid, string[] data)
{
/* data: 0.출고일자 / 1.거래처 / 2.전화번호 / 3.내용 / 4.입고율 /
* 5.출고율 / 6.합계 / 7.비고
*
* grid: 0.조회기간 / 1.거래처 / 2.전화번호 / 3.내용 / 4.수량 /
* 5.총합계 / 6.입고율 / 7.출고율 / 8.매입금액 / 9.매출금액 / 10.차이 / 11.비고
*/
// TODO: 진행해야함 0511
if (dataGridView1.Rows.Count <= 0)
{
int in_per = Convert.ToInt32(data[4]);
int out_per = Convert.ToInt32(data[5]);
int total = Convert.ToInt32(data[6]);
grid[0] = data[0];
grid[1] = data[1];
grid[2] = data[2];
grid[3] = data[4];
grid[4] = "1";
grid[5] = total.ToString();
grid[6] = data[4];
grid[7] = data[5];
grid[8] = persent(in_per, total).ToString();
grid[9] = persent(out_per, total).ToString();
int dif = Convert.ToInt32(grid[8]) - Convert.ToInt32(grid[9]);
grid[10] = dif.ToString();
grid[11] = data[7];
dataGridView1.Rows.Add(grid);
return;
}
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["out_date"].Value.ToString() == data[0] &&
dataGridView1.Rows[a].Cells["clt"].Value.ToString() == data[1] &&
dataGridView1.Rows[a].Cells["tel"].Value.ToString() == data[2]) {
int count = Convert.ToInt32(dataGridView1.Rows[a].Cells["count"].Value.ToString());
int total = Convert.ToInt32(dataGridView1.Rows[a].Cells["total"].Value.ToString());
int in_per = Convert.ToInt32(dataGridView1.Rows[a].Cells["in_per"].Value.ToString());
int out_per = Convert.ToInt32(dataGridView1.Rows[a].Cells["out_per"].Value.ToString());
count++;
total = total + Convert.ToInt32(data[6]);
dataGridView1.Rows[a].Cells["content"].Value = data[4];
dataGridView1.Rows[a].Cells["count"].Value = count.ToString();
dataGridView1.Rows[a].Cells["total"].Value = total.ToString();
}
}
}
private int persent(int per, int total)
{
return per * total / 100;
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {
Commodity_Search cs = new Commodity_Search(this);
cs.Clinet_name = tb_clt.Text;
cs.Show();
}
}
}
}

View File

@@ -117,37 +117,40 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="out_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="clt.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="tel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="content.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="total.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="in_per.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="out_per.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="in_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="out_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="dif.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="etc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -28,422 +28,498 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.button5 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.textBox8 = new System.Windows.Forms.TextBox();
this.chk_Add5000 = new System.Windows.Forms.CheckBox();
this.btn_Total = new System.Windows.Forms.Button();
this.btn_Clear = new System.Windows.Forms.Button();
this.btn_Input = new System.Windows.Forms.Button();
this.tb_count = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.tb_book_name = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.tb_isbn = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.textBox7 = new System.Windows.Forms.TextBox();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Add = new System.Windows.Forms.Button();
this.tb_persent = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.textBox10 = new System.Windows.Forms.TextBox();
this.tb_total = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.textBox9 = new System.Windows.Forms.TextBox();
this.tb_book_comp = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.textBox6 = new System.Windows.Forms.TextBox();
this.tb_price = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.tb_author = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.tb_etc = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.tb_clt = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.out_date = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.btn_Close = new System.Windows.Forms.Button();
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.persent = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.total = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.lbl_tel = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// 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.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3,
this.Column4,
this.Column5,
this.Column6,
this.Column7});
this.dataGridView1.Location = new System.Drawing.Point(32, 189);
this.book_name,
this.author,
this.book_comp,
this.price,
this.persent,
this.count,
this.total,
this.ISBN});
this.dataGridView1.Location = new System.Drawing.Point(12, 177);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 20;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(758, 150);
this.dataGridView1.Size = new System.Drawing.Size(1020, 370);
this.dataGridView1.TabIndex = 91;
//
// Column1
// chk_Add5000
//
this.Column1.HeaderText = "도 서 명";
this.Column1.Name = "Column1";
this.chk_Add5000.AutoSize = true;
this.chk_Add5000.Location = new System.Drawing.Point(858, 60);
this.chk_Add5000.Name = "chk_Add5000";
this.chk_Add5000.Size = new System.Drawing.Size(72, 28);
this.chk_Add5000.TabIndex = 90;
this.chk_Add5000.Text = "칸수일괄\n입력";
this.chk_Add5000.UseVisualStyleBackColor = true;
this.chk_Add5000.CheckedChanged += new System.EventHandler(this.chk_Add5000_CheckedChanged);
//
// Column2
// btn_Total
//
this.Column2.HeaderText = "저자";
this.Column2.Name = "Column2";
this.btn_Total.Location = new System.Drawing.Point(933, 61);
this.btn_Total.Name = "btn_Total";
this.btn_Total.Size = new System.Drawing.Size(75, 23);
this.btn_Total.TabIndex = 9;
this.btn_Total.Text = "합계계산";
this.btn_Total.UseVisualStyleBackColor = true;
this.btn_Total.Click += new System.EventHandler(this.btn_Total_Click);
//
// Column3
// btn_Clear
//
this.Column3.HeaderText = "출판사";
this.Column3.Name = "Column3";
this.btn_Clear.Location = new System.Drawing.Point(773, 61);
this.btn_Clear.Name = "btn_Clear";
this.btn_Clear.Size = new System.Drawing.Size(75, 23);
this.btn_Clear.TabIndex = 8;
this.btn_Clear.Text = "칸비우기";
this.btn_Clear.UseVisualStyleBackColor = true;
this.btn_Clear.Click += new System.EventHandler(this.btn_Clear_Click);
//
// Column4
// btn_Input
//
this.Column4.HeaderText = "정가";
this.Column4.Name = "Column4";
this.btn_Input.Location = new System.Drawing.Point(693, 61);
this.btn_Input.Name = "btn_Input";
this.btn_Input.Size = new System.Drawing.Size(75, 23);
this.btn_Input.TabIndex = 7;
this.btn_Input.Text = "입 력";
this.btn_Input.UseVisualStyleBackColor = true;
this.btn_Input.Click += new System.EventHandler(this.btn_Input_Click);
//
// Column5
// tb_count
//
this.Column5.HeaderText = "입고율";
this.Column5.Name = "Column5";
//
// Column6
//
this.Column6.HeaderText = "부수";
this.Column6.Name = "Column6";
//
// Column7
//
this.Column7.HeaderText = "금액";
this.Column7.Name = "Column7";
//
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(880, 139);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(72, 28);
this.checkBox3.TabIndex = 90;
this.checkBox3.Text = "칸수일괄\n입력";
this.checkBox3.UseVisualStyleBackColor = true;
//
// button5
//
this.button5.Location = new System.Drawing.Point(955, 142);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(75, 23);
this.button5.TabIndex = 89;
this.button5.Text = "합계계산";
this.button5.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Location = new System.Drawing.Point(795, 142);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 88;
this.button3.Text = "Clear";
this.button3.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Location = new System.Drawing.Point(715, 142);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 87;
this.button4.Text = "입 력";
this.button4.UseVisualStyleBackColor = true;
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(429, 143);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(43, 21);
this.textBox8.TabIndex = 86;
this.tb_count.Location = new System.Drawing.Point(387, 62);
this.tb_count.Name = "tb_count";
this.tb_count.Size = new System.Drawing.Size(43, 21);
this.tb_count.TabIndex = 6;
this.tb_count.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tb_price_KeyPress);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(401, 147);
this.label9.Location = new System.Drawing.Point(356, 66);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(29, 12);
this.label9.TabIndex = 85;
this.label9.Text = "부수";
//
// textBox4
// tb_book_name
//
this.textBox4.Location = new System.Drawing.Point(315, 89);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(388, 21);
this.textBox4.TabIndex = 83;
this.tb_book_name.Location = new System.Drawing.Point(293, 8);
this.tb_book_name.Name = "tb_book_name";
this.tb_book_name.Size = new System.Drawing.Size(388, 21);
this.tb_book_name.TabIndex = 1;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(264, 93);
this.label5.Location = new System.Drawing.Point(242, 12);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(49, 12);
this.label5.TabIndex = 82;
this.label5.Text = "도 서 명";
//
// textBox3
// tb_isbn
//
this.textBox3.Location = new System.Drawing.Point(89, 89);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(163, 21);
this.textBox3.TabIndex = 81;
this.tb_isbn.Location = new System.Drawing.Point(67, 8);
this.tb_isbn.Name = "tb_isbn";
this.tb_isbn.Size = new System.Drawing.Size(163, 21);
this.tb_isbn.TabIndex = 0;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(40, 93);
this.label4.Location = new System.Drawing.Point(14, 12);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(33, 12);
this.label4.TabIndex = 80;
this.label4.Text = "ISBN";
//
// button2
// btn_Save
//
this.button2.Location = new System.Drawing.Point(628, 50);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 79;
this.button2.Text = "저 장";
this.button2.UseVisualStyleBackColor = true;
this.btn_Save.Location = new System.Drawing.Point(606, 32);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(75, 23);
this.btn_Save.TabIndex = 79;
this.btn_Save.Text = "저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// button1
// btn_Add
//
this.button1.Location = new System.Drawing.Point(538, 50);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 78;
this.button1.Text = "추 가";
this.button1.UseVisualStyleBackColor = true;
this.btn_Add.Location = new System.Drawing.Point(521, 32);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new System.Drawing.Size(75, 23);
this.btn_Add.TabIndex = 78;
this.btn_Add.Text = "추 가";
this.btn_Add.UseVisualStyleBackColor = true;
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
//
// textBox7
// tb_persent
//
this.textBox7.Location = new System.Drawing.Point(306, 143);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(43, 21);
this.textBox7.TabIndex = 73;
this.tb_persent.Location = new System.Drawing.Point(298, 62);
this.tb_persent.Name = "tb_persent";
this.tb_persent.Size = new System.Drawing.Size(43, 21);
this.tb_persent.TabIndex = 5;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(264, 147);
this.label8.Location = new System.Drawing.Point(255, 66);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(41, 12);
this.label8.TabIndex = 71;
this.label8.Text = "출고율";
//
// textBox10
// tb_total
//
this.textBox10.Location = new System.Drawing.Point(540, 143);
this.textBox10.Name = "textBox10";
this.textBox10.Size = new System.Drawing.Size(163, 21);
this.textBox10.TabIndex = 75;
this.tb_total.Location = new System.Drawing.Point(518, 62);
this.tb_total.Name = "tb_total";
this.tb_total.ReadOnly = true;
this.tb_total.Size = new System.Drawing.Size(163, 21);
this.tb_total.TabIndex = 75;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(490, 147);
this.label11.Location = new System.Drawing.Point(463, 66);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(53, 12);
this.label11.TabIndex = 70;
this.label11.Text = "합계금액";
//
// textBox9
// tb_book_comp
//
this.textBox9.Location = new System.Drawing.Point(540, 116);
this.textBox9.Name = "textBox9";
this.textBox9.Size = new System.Drawing.Size(163, 21);
this.textBox9.TabIndex = 77;
this.tb_book_comp.Location = new System.Drawing.Point(343, 35);
this.tb_book_comp.Name = "tb_book_comp";
this.tb_book_comp.Size = new System.Drawing.Size(338, 21);
this.tb_book_comp.TabIndex = 3;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(494, 120);
this.label10.Location = new System.Drawing.Point(300, 39);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(41, 12);
this.label10.TabIndex = 69;
this.label10.Text = "출판사";
//
// textBox6
// tb_price
//
this.textBox6.Location = new System.Drawing.Point(89, 143);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(163, 21);
this.textBox6.TabIndex = 72;
this.tb_price.Location = new System.Drawing.Point(67, 62);
this.tb_price.Name = "tb_price";
this.tb_price.Size = new System.Drawing.Size(163, 21);
this.tb_price.TabIndex = 4;
this.tb_price.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tb_price_KeyPress);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(30, 147);
this.label7.Location = new System.Drawing.Point(8, 66);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(45, 12);
this.label7.TabIndex = 68;
this.label7.Text = "정 가";
//
// textBox5
// tb_author
//
this.textBox5.Location = new System.Drawing.Point(89, 116);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(280, 21);
this.textBox5.TabIndex = 76;
this.tb_author.Location = new System.Drawing.Point(67, 35);
this.tb_author.Name = "tb_author";
this.tb_author.Size = new System.Drawing.Size(213, 21);
this.tb_author.TabIndex = 2;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(30, 120);
this.label6.Location = new System.Drawing.Point(8, 39);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(45, 12);
this.label6.TabIndex = 67;
this.label6.Text = "저 자";
//
// textBox2
// tb_etc
//
this.textBox2.Location = new System.Drawing.Point(89, 51);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(431, 21);
this.textBox2.TabIndex = 74;
this.tb_etc.Location = new System.Drawing.Point(67, 33);
this.tb_etc.Name = "tb_etc";
this.tb_etc.Size = new System.Drawing.Size(449, 21);
this.tb_etc.TabIndex = 1;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(30, 55);
this.label3.Location = new System.Drawing.Point(8, 37);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(45, 12);
this.label3.TabIndex = 66;
this.label3.Text = "비 고";
//
// textBox1
// tb_clt
//
this.textBox1.Location = new System.Drawing.Point(375, 25);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(145, 21);
this.textBox1.TabIndex = 65;
this.tb_clt.Location = new System.Drawing.Point(353, 7);
this.tb_clt.Name = "tb_clt";
this.tb_clt.Size = new System.Drawing.Size(163, 21);
this.tb_clt.TabIndex = 0;
this.tb_clt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_pur_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(304, 29);
this.label2.Location = new System.Drawing.Point(282, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 12);
this.label2.TabIndex = 64;
this.label2.Text = "매출거래처";
//
// checkBox1
// out_date
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(180, 27);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(48, 16);
this.checkBox1.TabIndex = 63;
this.checkBox1.Text = "반품";
this.checkBox1.UseVisualStyleBackColor = true;
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(89, 25);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker1.TabIndex = 62;
this.out_date.CustomFormat = "yyyy-MM-dd";
this.out_date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.out_date.Location = new System.Drawing.Point(67, 7);
this.out_date.Name = "out_date";
this.out_date.Size = new System.Drawing.Size(85, 21);
this.out_date.TabIndex = 62;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(30, 29);
this.label1.Location = new System.Drawing.Point(8, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 61;
this.label1.Text = "매출일자";
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.lbl_tel);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.out_date);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.tb_clt);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.tb_etc);
this.panel1.Controls.Add(this.btn_Add);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1020, 61);
this.panel1.TabIndex = 0;
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.label4);
this.panel2.Controls.Add(this.label6);
this.panel2.Controls.Add(this.tb_author);
this.panel2.Controls.Add(this.chk_Add5000);
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.btn_Total);
this.panel2.Controls.Add(this.tb_price);
this.panel2.Controls.Add(this.btn_Clear);
this.panel2.Controls.Add(this.label10);
this.panel2.Controls.Add(this.btn_Input);
this.panel2.Controls.Add(this.tb_book_comp);
this.panel2.Controls.Add(this.tb_count);
this.panel2.Controls.Add(this.label11);
this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.tb_total);
this.panel2.Controls.Add(this.tb_book_name);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.label5);
this.panel2.Controls.Add(this.tb_persent);
this.panel2.Controls.Add(this.tb_isbn);
this.panel2.Location = new System.Drawing.Point(12, 79);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1020, 92);
this.panel2.TabIndex = 1;
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(691, 32);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 79;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 390;
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
this.book_comp.Width = 200;
//
// price
//
this.price.HeaderText = "정가";
this.price.Name = "price";
this.price.Width = 80;
//
// persent
//
this.persent.HeaderText = "출고율";
this.persent.Name = "persent";
this.persent.Width = 70;
//
// count
//
this.count.HeaderText = "부수";
this.count.Name = "count";
this.count.Width = 60;
//
// total
//
this.total.HeaderText = "합계금액";
this.total.Name = "total";
this.total.Width = 80;
//
// ISBN
//
this.ISBN.HeaderText = "ISBN";
this.ISBN.Name = "ISBN";
this.ISBN.Visible = false;
//
// lbl_tel
//
this.lbl_tel.AutoSize = true;
this.lbl_tel.Location = new System.Drawing.Point(522, 11);
this.lbl_tel.Name = "lbl_tel";
this.lbl_tel.Size = new System.Drawing.Size(0, 12);
this.lbl_tel.TabIndex = 80;
//
// Sales_Input
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1148, 592);
this.ClientSize = new System.Drawing.Size(1044, 558);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.button5);
this.Controls.Add(this.button3);
this.Controls.Add(this.button4);
this.Controls.Add(this.textBox8);
this.Controls.Add(this.label9);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.label5);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.label4);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox7);
this.Controls.Add(this.label8);
this.Controls.Add(this.textBox10);
this.Controls.Add(this.label11);
this.Controls.Add(this.textBox9);
this.Controls.Add(this.label10);
this.Controls.Add(this.textBox6);
this.Controls.Add(this.label7);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.label6);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.dateTimePicker1);
this.Controls.Add(this.label1);
this.Name = "Sales_Input";
this.Text = "Purchase_Input";
this.Text = "매출입력";
this.Load += new System.EventHandler(this.Sales_Input_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.CheckBox chk_Add5000;
private System.Windows.Forms.Button btn_Total;
private System.Windows.Forms.Button btn_Clear;
private System.Windows.Forms.Button btn_Input;
private System.Windows.Forms.TextBox tb_count;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox tb_book_name;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox tb_isbn;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button btn_Add;
private System.Windows.Forms.TextBox tb_persent;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox textBox10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox textBox9;
private System.Windows.Forms.TextBox tb_book_comp;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.TextBox tb_price;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.TextBox tb_author;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox tb_etc;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.DateTimePicker out_date;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox tb_total;
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 persent;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
private System.Windows.Forms.DataGridViewTextBoxColumn total;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
public System.Windows.Forms.TextBox tb_clt;
public System.Windows.Forms.Label lbl_tel;
}
}

View File

@@ -8,15 +8,132 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
// 참조 추가
using WindowsFormsApp1.Delivery;
namespace WindowsFormsApp1.Account
{
public partial class Sales_Input : Form
{
Main main;
public string compidx;
Helper_DB db = new Helper_DB();
public Sales_Input(Main _main)
{
InitializeComponent();
main = _main;
}
private void Sales_Input_Load(object sender, EventArgs e)
{
db.DBcon();
compidx = main.com_idx;
}
private void btn_Add_Click(object sender, EventArgs e)
{
if (sender != null) {
// 위 패널
tb_clt.Text = "";
tb_etc.Text = "";
}
// 아래 패널
tb_isbn.Text = "";
tb_book_name.Text = "";
tb_author.Text = "";
tb_book_comp.Text = "";
tb_price.Text = "";
tb_persent.Text = "";
tb_count.Text = "";
tb_total.Text = "";
}
private void btn_Clear_Click(object sender, EventArgs e)
{
btn_Add_Click(null, null);
}
private void btn_Total_Click(object sender, EventArgs e)
{
if (tb_price.Text != "" && tb_count.Text != "")
{
int price = Convert.ToInt32(tb_price.Text);
int count = Convert.ToInt32(tb_count.Text);
int total = price * count;
tb_total.Text = total.ToString();
}
}
private void btn_Input_Click(object sender, EventArgs e)
{
btn_Total_Click(null, null);
if (tb_book_name.Text == "") { MessageBox.Show("도서명이 입력해주세요."); return; }
// 도서명/저자/출판사/정가/출고율/부수/합계금액/ISBN
string[] grid = {
tb_book_name.Text,
tb_author.Text,
tb_book_comp.Text,
tb_price.Text,
tb_persent.Text,
tb_count.Text,
tb_total.Text,
tb_isbn.Text
};
dataGridView1.Rows.Add(grid);
btn_Clear_Click(null, null);
}
private void btn_Save_Click(object sender, EventArgs e)
{
if (tb_clt.Text == "") { MessageBox.Show("거래처를 입력해주세요."); return; }
if (dataGridView1.Rows.Count <= 0) { MessageBox.Show("저장할 내용이 없습니다."); return; }
string date = out_date.Text.Substring(0, 10);
string[] col_name = { "compidx", "date", "client", "isbn", "book_name",
"author", "book_comp", "price", "count", "total",
"out_per", "etc", "tel" };
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
string[] set_data = { compidx, date, tb_clt.Text,
dataGridView1.Rows[a].Cells["ISBN"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["author"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_comp"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(),
dataGridView1.Rows[a].Cells["count"].Value.ToString(),
dataGridView1.Rows[a].Cells["total"].Value.ToString(),
dataGridView1.Rows[a].Cells["persent"].Value.ToString(),
tb_etc.Text,
lbl_tel.Text
};
db.DB_INSERT("Sales", col_name, set_data);
}
}
private void chk_Add5000_CheckedChanged(object sender, EventArgs e)
{
if (chk_Add5000.Checked) { dataGridView1.Rows.Add(5000); }
else {
dataGridView1.Rows.Clear();
dataGridView1.Refresh();
}
}
private void tb_price_KeyPress(object sender, KeyPressEventArgs e)
{
String_Text st = new String_Text();
st.Only_Int(sender, e);
}
private void tb_pur_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
Commodity_Search cs = new Commodity_Search(this);
cs.Clinet_name = tb_clt.Text;
cs.Show();
}
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -117,25 +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="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="persent.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="total.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ISBN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>