=====* unimarc *=====
===== 작업중 ===== 주문관리 폼 재 수정작업중 - 팩스 및 이메일 기록 폼 제작해야함. - 제작완료 (현재 목록등록 -> 수정버튼 작업중) ㄴ> 작업 완료후 검토하고, 회계로 넘어갈 것. - 회계전환 ㄴ> 회계전환. 매출상세(Sales_Detail.cs) 폼 작업중. (버튼 이벤트 작업진행중) ===== 보류 ===== 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:
		
							
								
								
									
										161
									
								
								unimarc/WindowsFormsApp1/회계/Sales_Book.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										161
									
								
								unimarc/WindowsFormsApp1/회계/Sales_Book.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -29,12 +29,12 @@ namespace WindowsFormsApp1.회계 | ||||
|         /// </summary> | ||||
|         private void InitializeComponent() | ||||
|         { | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||
|             this.panel1 = new System.Windows.Forms.Panel(); | ||||
|             this.tb_clt = new System.Windows.Forms.TextBox(); | ||||
|             this.label1 = new System.Windows.Forms.Label(); | ||||
| @@ -45,14 +45,6 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.End_Date = new System.Windows.Forms.DateTimePicker(); | ||||
|             this.btn_Lookup = new System.Windows.Forms.Button(); | ||||
|             this.dataGridView1 = new System.Windows.Forms.DataGridView(); | ||||
|             this.textBox2 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox1 = new System.Windows.Forms.TextBox(); | ||||
|             this.tb_count = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox6 = new System.Windows.Forms.TextBox(); | ||||
|             this.tb_out = new System.Windows.Forms.TextBox(); | ||||
|             this.tb_in = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox9 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox10 = new System.Windows.Forms.TextBox(); | ||||
|             this.out_date = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.content = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.count = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
| @@ -61,6 +53,14 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.in_price = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.now_money = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.textBox2 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox1 = new System.Windows.Forms.TextBox(); | ||||
|             this.tb_count = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox6 = new System.Windows.Forms.TextBox(); | ||||
|             this.tb_out = new System.Windows.Forms.TextBox(); | ||||
|             this.tb_in = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox9 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox10 = new System.Windows.Forms.TextBox(); | ||||
|             this.panel1.SuspendLayout(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); | ||||
|             this.SuspendLayout(); | ||||
| @@ -157,14 +157,14 @@ namespace WindowsFormsApp1.회계 | ||||
|             //  | ||||
|             this.dataGridView1.AllowUserToAddRows = false; | ||||
|             this.dataGridView1.AllowUserToDeleteRows = false; | ||||
|             dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||
|             dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; | ||||
|             dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||
|             dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; | ||||
|             dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||
|             dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||
|             dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||
|             this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; | ||||
|             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.out_date, | ||||
|             this.content, | ||||
| @@ -181,6 +181,65 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.dataGridView1.RowTemplate.Height = 23; | ||||
|             this.dataGridView1.Size = new System.Drawing.Size(960, 421); | ||||
|             this.dataGridView1.TabIndex = 94; | ||||
|             this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); | ||||
|             //  | ||||
|             // out_date | ||||
|             //  | ||||
|             this.out_date.HeaderText = "출고일자"; | ||||
|             this.out_date.Name = "out_date"; | ||||
|             this.out_date.Width = 80; | ||||
|             //  | ||||
|             // content | ||||
|             //  | ||||
|             this.content.HeaderText = "내용"; | ||||
|             this.content.Name = "content"; | ||||
|             this.content.Width = 300; | ||||
|             //  | ||||
|             // count | ||||
|             //  | ||||
|             dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.count.DefaultCellStyle = dataGridViewCellStyle2; | ||||
|             this.count.HeaderText = "수량"; | ||||
|             this.count.Name = "count"; | ||||
|             this.count.Width = 40; | ||||
|             //  | ||||
|             // out_per | ||||
|             //  | ||||
|             dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.out_per.DefaultCellStyle = dataGridViewCellStyle3; | ||||
|             this.out_per.HeaderText = "출고율"; | ||||
|             this.out_per.Name = "out_per"; | ||||
|             this.out_per.Width = 60; | ||||
|             //  | ||||
|             // out_price | ||||
|             //  | ||||
|             dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.out_price.DefaultCellStyle = dataGridViewCellStyle4; | ||||
|             this.out_price.HeaderText = "매출금액"; | ||||
|             this.out_price.Name = "out_price"; | ||||
|             this.out_price.Width = 80; | ||||
|             //  | ||||
|             // in_price | ||||
|             //  | ||||
|             dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.in_price.DefaultCellStyle = dataGridViewCellStyle5; | ||||
|             this.in_price.HeaderText = "입금액"; | ||||
|             this.in_price.Name = "in_price"; | ||||
|             this.in_price.Width = 80; | ||||
|             //  | ||||
|             // now_money | ||||
|             //  | ||||
|             dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.now_money.DefaultCellStyle = dataGridViewCellStyle6; | ||||
|             this.now_money.HeaderText = "현잔액"; | ||||
|             this.now_money.Name = "now_money"; | ||||
|             this.now_money.Width = 80; | ||||
|             //  | ||||
|             // etc | ||||
|             //  | ||||
|             this.etc.HeaderText = "비고"; | ||||
|             this.etc.Name = "etc"; | ||||
|             this.etc.Width = 200; | ||||
|             //  | ||||
|             // textBox2 | ||||
|             //  | ||||
| @@ -257,64 +316,6 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.textBox10.Size = new System.Drawing.Size(202, 21); | ||||
|             this.textBox10.TabIndex = 95; | ||||
|             //  | ||||
|             // out_date | ||||
|             //  | ||||
|             this.out_date.HeaderText = "출고일자"; | ||||
|             this.out_date.Name = "out_date"; | ||||
|             this.out_date.Width = 80; | ||||
|             //  | ||||
|             // content | ||||
|             //  | ||||
|             this.content.HeaderText = "내용"; | ||||
|             this.content.Name = "content"; | ||||
|             this.content.Width = 300; | ||||
|             //  | ||||
|             // count | ||||
|             //  | ||||
|             dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.count.DefaultCellStyle = dataGridViewCellStyle8; | ||||
|             this.count.HeaderText = "수량"; | ||||
|             this.count.Name = "count"; | ||||
|             this.count.Width = 40; | ||||
|             //  | ||||
|             // out_per | ||||
|             //  | ||||
|             dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.out_per.DefaultCellStyle = dataGridViewCellStyle9; | ||||
|             this.out_per.HeaderText = "출고율"; | ||||
|             this.out_per.Name = "out_per"; | ||||
|             this.out_per.Width = 60; | ||||
|             //  | ||||
|             // out_price | ||||
|             //  | ||||
|             dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.out_price.DefaultCellStyle = dataGridViewCellStyle10; | ||||
|             this.out_price.HeaderText = "매출금액"; | ||||
|             this.out_price.Name = "out_price"; | ||||
|             this.out_price.Width = 80; | ||||
|             //  | ||||
|             // in_price | ||||
|             //  | ||||
|             dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.in_price.DefaultCellStyle = dataGridViewCellStyle11; | ||||
|             this.in_price.HeaderText = "입금액"; | ||||
|             this.in_price.Name = "in_price"; | ||||
|             this.in_price.Width = 80; | ||||
|             //  | ||||
|             // now_money | ||||
|             //  | ||||
|             dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; | ||||
|             this.now_money.DefaultCellStyle = dataGridViewCellStyle12; | ||||
|             this.now_money.HeaderText = "현잔액"; | ||||
|             this.now_money.Name = "now_money"; | ||||
|             this.now_money.Width = 80; | ||||
|             //  | ||||
|             // etc | ||||
|             //  | ||||
|             this.etc.HeaderText = "비고"; | ||||
|             this.etc.Name = "etc"; | ||||
|             this.etc.Width = 200; | ||||
|             //  | ||||
|             // Sales_Book | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | ||||
|   | ||||
| @@ -13,16 +13,10 @@ namespace WindowsFormsApp1.회계 | ||||
| { | ||||
|     public partial class Sales_Book : Form | ||||
|     { | ||||
|         Main main; | ||||
|         Sales_Deposit sd; | ||||
|         Helper_DB db = new Helper_DB(); | ||||
|         public string compidx; | ||||
|         public int row = -1; | ||||
|         public Sales_Book(Main _main) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             main = _main; | ||||
|         } | ||||
|         public Sales_Book(Sales_Deposit _sd) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
| @@ -179,5 +173,27 @@ namespace WindowsFormsApp1.회계 | ||||
|             String_Text st = new String_Text(); | ||||
|             st.Int_Comma(sender, e); | ||||
|         } | ||||
|  | ||||
|         private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) | ||||
|         { | ||||
|             int row = e.RowIndex; | ||||
|             if (row < 0) { return; } | ||||
|             if (dataGridView1.Rows[row].Cells["out_date"].Value.ToString() == "이월미수금") { return; } | ||||
|             if (dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 통장" || | ||||
|                 dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 카드" || | ||||
|                 dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 현금" || | ||||
|                 dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 어음") { return; } | ||||
|  | ||||
|             Sales_Detail sde = new Sales_Detail(this); | ||||
|             string out_date = dataGridView1.Rows[e.RowIndex].Cells["out_date"].Value.ToString().Substring(0, 10).Replace("-", ""); | ||||
|             int yesr = Convert.ToInt32(out_date.Substring(0, 4)); | ||||
|             int month = Convert.ToInt32(out_date.Substring(4, 2)); | ||||
|             int day = Convert.ToInt32(out_date.Substring(6, 2)); | ||||
|             // sde.MdiParent = main; | ||||
|             sde.WindowState = FormWindowState.Maximized; | ||||
|             sde.Out_Date.Value = new DateTime(yesr, month, day); | ||||
|             sde.tb_clt.Text = tb_clt.Text; | ||||
|             sde.Show(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
							
								
								
									
										275
									
								
								unimarc/WindowsFormsApp1/회계/Sales_Detail.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										275
									
								
								unimarc/WindowsFormsApp1/회계/Sales_Detail.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -36,18 +36,6 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.label2 = new System.Windows.Forms.Label(); | ||||
|             this.label1 = new System.Windows.Forms.Label(); | ||||
|             this.dataGridView1 = new System.Windows.Forms.DataGridView(); | ||||
|             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.count = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.out_per = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.in_per = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.out_price = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.in_price = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.textBox1 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox2 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox3 = new System.Windows.Forms.TextBox(); | ||||
| @@ -61,6 +49,25 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.textBox11 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox12 = new System.Windows.Forms.TextBox(); | ||||
|             this.textBox13 = new System.Windows.Forms.TextBox(); | ||||
|             this.btn_per_change = new System.Windows.Forms.Button(); | ||||
|             this.btn_delete = new System.Windows.Forms.Button(); | ||||
|             this.btn_close = new System.Windows.Forms.Button(); | ||||
|             this.btn_save = new System.Windows.Forms.Button(); | ||||
|             this.tb_out_per = new System.Windows.Forms.TextBox(); | ||||
|             this.label3 = new System.Windows.Forms.Label(); | ||||
|             this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.price = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.count = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.out_per = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.in_per = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.out_price = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.in_price = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||
|             this.panel1.SuspendLayout(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); | ||||
|             this.SuspendLayout(); | ||||
| @@ -79,6 +86,7 @@ namespace WindowsFormsApp1.회계 | ||||
|             //  | ||||
|             // tb_clt | ||||
|             //  | ||||
|             this.tb_clt.Enabled = false; | ||||
|             this.tb_clt.Location = new System.Drawing.Point(234, 11); | ||||
|             this.tb_clt.Name = "tb_clt"; | ||||
|             this.tb_clt.Size = new System.Drawing.Size(167, 21); | ||||
| @@ -87,6 +95,7 @@ namespace WindowsFormsApp1.회계 | ||||
|             // Out_Date | ||||
|             //  | ||||
|             this.Out_Date.CustomFormat = "yyyy-MM-dd"; | ||||
|             this.Out_Date.Enabled = false; | ||||
|             this.Out_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom; | ||||
|             this.Out_Date.Location = new System.Drawing.Point(57, 11); | ||||
|             this.Out_Date.Name = "Out_Date"; | ||||
| @@ -124,6 +133,7 @@ namespace WindowsFormsApp1.회계 | ||||
|             dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||
|             this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; | ||||
|             this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||
|             this.idx, | ||||
|             this.book_name, | ||||
|             this.author, | ||||
|             this.book_comp, | ||||
| @@ -145,76 +155,6 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.dataGridView1.TabIndex = 83; | ||||
|             this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); | ||||
|             //  | ||||
|             // book_name | ||||
|             //  | ||||
|             this.book_name.HeaderText = "도서명"; | ||||
|             this.book_name.Name = "book_name"; | ||||
|             this.book_name.Width = 250; | ||||
|             //  | ||||
|             // author | ||||
|             //  | ||||
|             this.author.HeaderText = "저자"; | ||||
|             this.author.Name = "author"; | ||||
|             //  | ||||
|             // book_comp | ||||
|             //  | ||||
|             this.book_comp.HeaderText = "출판사"; | ||||
|             this.book_comp.Name = "book_comp"; | ||||
|             //  | ||||
|             // price | ||||
|             //  | ||||
|             this.price.HeaderText = "정가"; | ||||
|             this.price.Name = "price"; | ||||
|             this.price.Width = 70; | ||||
|             //  | ||||
|             // count | ||||
|             //  | ||||
|             this.count.HeaderText = "수량"; | ||||
|             this.count.Name = "count"; | ||||
|             this.count.Width = 50; | ||||
|             //  | ||||
|             // out_per | ||||
|             //  | ||||
|             this.out_per.HeaderText = "O%"; | ||||
|             this.out_per.Name = "out_per"; | ||||
|             this.out_per.Width = 40; | ||||
|             //  | ||||
|             // in_per | ||||
|             //  | ||||
|             this.in_per.HeaderText = "I%"; | ||||
|             this.in_per.Name = "in_per"; | ||||
|             this.in_per.Width = 40; | ||||
|             //  | ||||
|             // list_date | ||||
|             //  | ||||
|             this.list_date.HeaderText = "목록일자"; | ||||
|             this.list_date.Name = "list_date"; | ||||
|             this.list_date.Width = 80; | ||||
|             //  | ||||
|             // list_name | ||||
|             //  | ||||
|             this.list_name.HeaderText = "목록명"; | ||||
|             this.list_name.Name = "list_name"; | ||||
|             this.list_name.Width = 170; | ||||
|             //  | ||||
|             // out_price | ||||
|             //  | ||||
|             this.out_price.HeaderText = "출고가"; | ||||
|             this.out_price.Name = "out_price"; | ||||
|             this.out_price.Width = 80; | ||||
|             //  | ||||
|             // in_price | ||||
|             //  | ||||
|             this.in_price.HeaderText = "입고가"; | ||||
|             this.in_price.Name = "in_price"; | ||||
|             this.in_price.Width = 80; | ||||
|             //  | ||||
|             // etc | ||||
|             //  | ||||
|             this.etc.HeaderText = "비고"; | ||||
|             this.etc.Name = "etc"; | ||||
|             this.etc.Width = 130; | ||||
|             //  | ||||
|             // textBox1 | ||||
|             //  | ||||
|             this.textBox1.Enabled = false; | ||||
| @@ -319,11 +259,150 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.textBox13.Size = new System.Drawing.Size(31, 21); | ||||
|             this.textBox13.TabIndex = 84; | ||||
|             //  | ||||
|             // btn_per_change | ||||
|             //  | ||||
|             this.btn_per_change.Location = new System.Drawing.Point(572, 12); | ||||
|             this.btn_per_change.Name = "btn_per_change"; | ||||
|             this.btn_per_change.Size = new System.Drawing.Size(75, 23); | ||||
|             this.btn_per_change.TabIndex = 85; | ||||
|             this.btn_per_change.Text = "일괄변경"; | ||||
|             this.btn_per_change.UseVisualStyleBackColor = true; | ||||
|             this.btn_per_change.Click += new System.EventHandler(this.btn_per_change_Click); | ||||
|             //  | ||||
|             // btn_delete | ||||
|             //  | ||||
|             this.btn_delete.Location = new System.Drawing.Point(653, 35); | ||||
|             this.btn_delete.Name = "btn_delete"; | ||||
|             this.btn_delete.Size = new System.Drawing.Size(75, 23); | ||||
|             this.btn_delete.TabIndex = 85; | ||||
|             this.btn_delete.Text = "삭    제"; | ||||
|             this.btn_delete.UseVisualStyleBackColor = true; | ||||
|             this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click); | ||||
|             //  | ||||
|             // btn_close | ||||
|             //  | ||||
|             this.btn_close.Location = new System.Drawing.Point(734, 35); | ||||
|             this.btn_close.Name = "btn_close"; | ||||
|             this.btn_close.Size = new System.Drawing.Size(75, 23); | ||||
|             this.btn_close.TabIndex = 85; | ||||
|             this.btn_close.Text = "닫    기"; | ||||
|             this.btn_close.UseVisualStyleBackColor = true; | ||||
|             this.btn_close.Click += new System.EventHandler(this.btn_close_Click); | ||||
|             //  | ||||
|             // btn_save | ||||
|             //  | ||||
|             this.btn_save.Location = new System.Drawing.Point(572, 35); | ||||
|             this.btn_save.Name = "btn_save"; | ||||
|             this.btn_save.Size = new System.Drawing.Size(75, 23); | ||||
|             this.btn_save.TabIndex = 85; | ||||
|             this.btn_save.Text = "저    장"; | ||||
|             this.btn_save.UseVisualStyleBackColor = true; | ||||
|             this.btn_save.Click += new System.EventHandler(this.btn_save_Click); | ||||
|             //  | ||||
|             // tb_out_per | ||||
|             //  | ||||
|             this.tb_out_per.Location = new System.Drawing.Point(513, 13); | ||||
|             this.tb_out_per.Name = "tb_out_per"; | ||||
|             this.tb_out_per.Size = new System.Drawing.Size(53, 21); | ||||
|             this.tb_out_per.TabIndex = 86; | ||||
|             this.tb_out_per.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tb_out_per_KeyPress); | ||||
|             //  | ||||
|             // label3 | ||||
|             //  | ||||
|             this.label3.AutoSize = true; | ||||
|             this.label3.Location = new System.Drawing.Point(470, 17); | ||||
|             this.label3.Name = "label3"; | ||||
|             this.label3.Size = new System.Drawing.Size(41, 12); | ||||
|             this.label3.TabIndex = 0; | ||||
|             this.label3.Text = "할인율"; | ||||
|             //  | ||||
|             // idx | ||||
|             //  | ||||
|             this.idx.HeaderText = "idx"; | ||||
|             this.idx.Name = "idx"; | ||||
|             this.idx.Visible = false; | ||||
|             //  | ||||
|             // book_name | ||||
|             //  | ||||
|             this.book_name.HeaderText = "도서명"; | ||||
|             this.book_name.Name = "book_name"; | ||||
|             this.book_name.Width = 250; | ||||
|             //  | ||||
|             // author | ||||
|             //  | ||||
|             this.author.HeaderText = "저자"; | ||||
|             this.author.Name = "author"; | ||||
|             //  | ||||
|             // book_comp | ||||
|             //  | ||||
|             this.book_comp.HeaderText = "출판사"; | ||||
|             this.book_comp.Name = "book_comp"; | ||||
|             //  | ||||
|             // price | ||||
|             //  | ||||
|             this.price.HeaderText = "정가"; | ||||
|             this.price.Name = "price"; | ||||
|             this.price.Width = 70; | ||||
|             //  | ||||
|             // count | ||||
|             //  | ||||
|             this.count.HeaderText = "수량"; | ||||
|             this.count.Name = "count"; | ||||
|             this.count.Width = 50; | ||||
|             //  | ||||
|             // out_per | ||||
|             //  | ||||
|             this.out_per.HeaderText = "O%"; | ||||
|             this.out_per.Name = "out_per"; | ||||
|             this.out_per.Width = 40; | ||||
|             //  | ||||
|             // in_per | ||||
|             //  | ||||
|             this.in_per.HeaderText = "I%"; | ||||
|             this.in_per.Name = "in_per"; | ||||
|             this.in_per.Width = 40; | ||||
|             //  | ||||
|             // list_date | ||||
|             //  | ||||
|             this.list_date.HeaderText = "목록일자"; | ||||
|             this.list_date.Name = "list_date"; | ||||
|             this.list_date.Width = 80; | ||||
|             //  | ||||
|             // list_name | ||||
|             //  | ||||
|             this.list_name.HeaderText = "목록명"; | ||||
|             this.list_name.Name = "list_name"; | ||||
|             this.list_name.Width = 170; | ||||
|             //  | ||||
|             // out_price | ||||
|             //  | ||||
|             this.out_price.HeaderText = "출고가"; | ||||
|             this.out_price.Name = "out_price"; | ||||
|             this.out_price.Width = 80; | ||||
|             //  | ||||
|             // in_price | ||||
|             //  | ||||
|             this.in_price.HeaderText = "입고가"; | ||||
|             this.in_price.Name = "in_price"; | ||||
|             this.in_price.Width = 80; | ||||
|             //  | ||||
|             // etc | ||||
|             //  | ||||
|             this.etc.HeaderText = "비고"; | ||||
|             this.etc.Name = "etc"; | ||||
|             this.etc.Width = 130; | ||||
|             //  | ||||
|             // Sales_Detail | ||||
|             //  | ||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | ||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||
|             this.ClientSize = new System.Drawing.Size(1266, 518); | ||||
|             this.Controls.Add(this.tb_out_per); | ||||
|             this.Controls.Add(this.btn_save); | ||||
|             this.Controls.Add(this.label3); | ||||
|             this.Controls.Add(this.btn_close); | ||||
|             this.Controls.Add(this.btn_delete); | ||||
|             this.Controls.Add(this.btn_per_change); | ||||
|             this.Controls.Add(this.textBox12); | ||||
|             this.Controls.Add(this.textBox11); | ||||
|             this.Controls.Add(this.textBox10); | ||||
| @@ -341,6 +420,7 @@ namespace WindowsFormsApp1.회계 | ||||
|             this.Controls.Add(this.panel1); | ||||
|             this.Name = "Sales_Detail"; | ||||
|             this.Text = "매출 상세"; | ||||
|             this.Load += new System.EventHandler(this.Sales_Detail_Load); | ||||
|             this.panel1.ResumeLayout(false); | ||||
|             this.panel1.PerformLayout(); | ||||
|             ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); | ||||
| @@ -355,18 +435,6 @@ namespace WindowsFormsApp1.회계 | ||||
|         private System.Windows.Forms.Label label1; | ||||
|         private System.Windows.Forms.Label label2; | ||||
|         private System.Windows.Forms.DataGridView dataGridView1; | ||||
|         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 count; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn out_per; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn in_per; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn list_date; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn list_name; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn out_price; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn in_price; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn etc; | ||||
|         private System.Windows.Forms.TextBox textBox1; | ||||
|         private System.Windows.Forms.TextBox textBox2; | ||||
|         private System.Windows.Forms.TextBox textBox3; | ||||
| @@ -382,5 +450,24 @@ namespace WindowsFormsApp1.회계 | ||||
|         private System.Windows.Forms.TextBox textBox13; | ||||
|         public System.Windows.Forms.DateTimePicker Out_Date; | ||||
|         public System.Windows.Forms.TextBox tb_clt; | ||||
|         private System.Windows.Forms.Button btn_per_change; | ||||
|         private System.Windows.Forms.Button btn_delete; | ||||
|         private System.Windows.Forms.Button btn_close; | ||||
|         private System.Windows.Forms.Button btn_save; | ||||
|         private System.Windows.Forms.TextBox tb_out_per; | ||||
|         private System.Windows.Forms.Label label3; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn idx; | ||||
|         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 count; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn out_per; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn in_per; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn list_date; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn list_name; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn out_price; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn in_price; | ||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn etc; | ||||
|     } | ||||
| } | ||||
| @@ -7,23 +7,112 @@ using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
| using System.Windows.Forms; | ||||
| using WindowsFormsApp1.Account; | ||||
|  | ||||
| namespace WindowsFormsApp1.회계 | ||||
| { | ||||
|     public partial class Sales_Detail : Form | ||||
|     { | ||||
|         public Sales_Detail() | ||||
|         public string compidx; | ||||
|         Helper_DB db = new Helper_DB(); | ||||
|         Sales_Book sb; | ||||
|         Sales_Lookup sl; | ||||
|         public Sales_Detail(Sales_Book _sb) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             sb = _sb; | ||||
|             compidx = sb.compidx; | ||||
|         } | ||||
|         public Sales_Detail(Sales_Lookup _sl) | ||||
|         { | ||||
|             InitializeComponent(); | ||||
|             sl = _sl; | ||||
|             compidx = sl.compidx; | ||||
|         } | ||||
|         private void Sales_Detail_Load(object sender, EventArgs e) | ||||
|         { | ||||
|             db.DBcon(); | ||||
|  | ||||
|             string area = "`idx`, `book_name`, `author`, `book_comp`, `price`, " + | ||||
|                           "`count`, `out_per`, `in_per`, `list_date`, `list_name`, " + | ||||
|                           "`out_price`, `in_price`, `etc`"; | ||||
|  | ||||
|             string[] search_col = { "compidx", "date", "client" }; | ||||
|             string[] search_data = { compidx, Out_Date.Value.ToString().Substring(0, 10), tb_clt.Text }; | ||||
|             string db_data = db.More_DB_Search("Sales", search_col, search_data, area); | ||||
|             string[] ary = db_data.Split('|'); | ||||
|             input_grid(ary); | ||||
|         } | ||||
|         void input_grid(string[] db_data) | ||||
|         { | ||||
|             string[] grid = { "", "", "", "", "",  | ||||
|                               "", "", "", "", "",  | ||||
|                               "", "", "" }; | ||||
|             int cnt = 13; | ||||
|             for (int a = 0; a < db_data.Length; a++) | ||||
|             { | ||||
|                 if (a % cnt == 0) { grid[0] = db_data[a]; } | ||||
|                 if (a % cnt == 1) { grid[1] = db_data[a]; } | ||||
|                 if (a % cnt == 2) { grid[2] = db_data[a]; } | ||||
|                 if (a % cnt == 3) { grid[3] = db_data[a]; } | ||||
|                 if (a % cnt == 4) { grid[4] = db_data[a]; } | ||||
|                 if (a % cnt == 5) { grid[5] = db_data[a]; } | ||||
|                 if (a % cnt == 6) { grid[6] = db_data[a]; } | ||||
|                 if (a % cnt == 7) { grid[7] = db_data[a]; } | ||||
|                 if (a % cnt == 8) { grid[8] = db_data[a]; } | ||||
|                 if (a % cnt == 9) { grid[9] = db_data[a]; } | ||||
|                 if (a % cnt == 10) { grid[10] = db_data[a]; } | ||||
|                 if (a % cnt == 11) { grid[11] = db_data[a]; } | ||||
|                 if (a % cnt == 12) { grid[12] = db_data[a]; | ||||
|                     dataGridView1.Rows.Add(grid); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         private void btn_per_change_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             string per = tb_out_per.Text; | ||||
|  | ||||
|             if (dataGridView1.Rows.Count < 0) { return; } | ||||
|             for (int a = 0; a < dataGridView1.Rows.Count; a++) | ||||
|             { | ||||
|                 dataGridView1.Rows[a].Cells["out_per"].Value = per; | ||||
|                 cal_total(a); | ||||
|             } | ||||
|         } | ||||
|         void cal_total(int row) | ||||
|         { | ||||
|             int price = Convert.ToInt32(dataGridView1.Rows[row].Cells["price"].Value.ToString()); | ||||
|             int count = Convert.ToInt32(dataGridView1.Rows[row].Cells["count"].Value.ToString()); | ||||
|             int o_per = Convert.ToInt32(dataGridView1.Rows[row].Cells["out_per"].Value.ToString()); | ||||
|  | ||||
|             double res_do = price * count * o_per / 100; | ||||
|             int res = Convert.ToInt32(res_do); | ||||
|             dataGridView1.Rows[row].Cells["out_price"].Value = res.ToString(); | ||||
|         } | ||||
|         private void btn_save_Click(object sender, EventArgs e) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|         private void btn_delete_Click(object sender, EventArgs e) | ||||
|         { | ||||
|  | ||||
|         } | ||||
|         private void btn_close_Click(object sender, EventArgs e) | ||||
|         { | ||||
|             this.Close(); | ||||
|         } | ||||
|         private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) | ||||
|         { | ||||
|             Skill_Grid sg = new Skill_Grid(); | ||||
|             sg.Print_Grid_Num(sender, e); | ||||
|         } | ||||
|         private void tb_out_per_KeyPress(object sender, KeyPressEventArgs e) | ||||
|         { | ||||
|             String_Text st = new String_Text(); | ||||
|             st.Only_Int(sender, e); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| #region 비고란 기본 설정 정할것. | ||||
| // 목록일자 + " " + 납품처 | ||||
| //  | ||||
| // 2021-04-29 전남도립(희)4-3 | ||||
| @@ -63,5 +152,4 @@ namespace WindowsFormsApp1.회계 | ||||
| // 2021-04-16일자 운남고m납품목록 | ||||
| // 2021-05-11일자 죽곡유치원추가납품목록 | ||||
| // 2021-05-06일자 조선이공대2차k납품목록 | ||||
| // 2021-04-27일자 서구공립6개관납품목록 | ||||
| #endregion | ||||
| // 2021-04-27일자 서구공립6개관납품목록 | ||||
| @@ -117,6 +117,9 @@ | ||||
|   <resheader name="writer"> | ||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||
|   </resheader> | ||||
|   <metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   <metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||
|     <value>True</value> | ||||
|   </metadata> | ||||
|   | ||||
| @@ -10,6 +10,7 @@ using System.Windows.Forms; | ||||
|  | ||||
| // 추가된 참조 | ||||
| using WindowsFormsApp1.Delivery; | ||||
| using WindowsFormsApp1.회계; | ||||
|  | ||||
| namespace WindowsFormsApp1.Account | ||||
| { | ||||
| @@ -164,7 +165,16 @@ namespace WindowsFormsApp1.Account | ||||
|         } | ||||
|         private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) | ||||
|         { | ||||
|  | ||||
|             Sales_Detail sd = new Sales_Detail(this); | ||||
|             string out_date = dataGridView1.Rows[e.RowIndex].Cells["out_date"].Value.ToString().Substring(0, 10).Replace("-", ""); | ||||
|             int yesr = Convert.ToInt32(out_date.Substring(0, 4)); | ||||
|             int month = Convert.ToInt32(out_date.Substring(4, 2)); | ||||
|             int day = Convert.ToInt32(out_date.Substring(6, 2)); | ||||
|             sd.MdiParent = main; | ||||
|             sd.WindowState = FormWindowState.Maximized; | ||||
|             sd.Out_Date.Value = new DateTime(yesr, month, day); | ||||
|             sd.tb_clt.Text = dataGridView1.Rows[e.RowIndex].Cells["clt"].Value.ToString(); | ||||
|             sd.Show(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SeungHo Yang
					SeungHo Yang