=====* unimarc *=====
===== 작업중 ===== 주문관리 폼 재 수정작업중 - 팩스 및 이메일 기록 폼 제작해야함. - 제작완료 (현재 목록등록 -> 수정버튼 작업중) ㄴ> 작업 완료후 검토하고, 회계로 넘어갈 것. - 회계전환 회계전환. 매출상세(Sales_Detail.cs) 폼 작업완료. (버튼 이벤트 작업진행중) ㄴ> 매출집계에서 상세까지 가는 도중 MDI 부모로 적용되지않는 버그 수정작업완료. 기타 추가적인 버그 잡을것. / 바로빌 세금계산서알아볼것. / 셋업 자동 업데이트 알아볼 것. ===== 보류 ===== b. 마크목록 폼 작성중 1. 엑셀반출 기능 추가중 사용 작업대기중 c. 마크 반입 폼 수정중 1. 불러오기는 되나 저장 기능이 필요함. ===== 완료 ===== 21.06.08 자동업데이트 기능 완료 - 프로젝트가 새로 바뀜. 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:
60
unimarc/unimarc/회계/Bill_manage.Designer.cs
generated
Normal file
60
unimarc/unimarc/회계/Bill_manage.Designer.cs
generated
Normal file
@@ -0,0 +1,60 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Bill_manage
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(383, 219);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(95, 12);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "회계_계산서관리";
|
||||
//
|
||||
// Bill_manage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "Bill_manage";
|
||||
this.Text = "Bill_manage";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
}
|
||||
}
|
||||
22
unimarc/unimarc/회계/Bill_manage.cs
Normal file
22
unimarc/unimarc/회계/Bill_manage.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Bill_manage : Form
|
||||
{
|
||||
Main main;
|
||||
public Bill_manage(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
}
|
||||
}
|
||||
}
|
||||
120
unimarc/unimarc/회계/Bill_manage.resx
Normal file
120
unimarc/unimarc/회계/Bill_manage.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
349
unimarc/unimarc/회계/Purchase_Aggregation.Designer.cs
generated
Normal file
349
unimarc/unimarc/회계/Purchase_Aggregation.Designer.cs
generated
Normal file
@@ -0,0 +1,349 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Purchase_Aggregation
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle 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();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = 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.radioButton1 = new System.Windows.Forms.RadioButton();
|
||||
this.radioButton2 = new System.Windows.Forms.RadioButton();
|
||||
this.radioButton3 = new System.Windows.Forms.RadioButton();
|
||||
this.radioButton4 = new System.Windows.Forms.RadioButton();
|
||||
this.btn_Excel = new System.Windows.Forms.Button();
|
||||
this.btn_Print = new System.Windows.Forms.Button();
|
||||
this.btn_Lookup = new System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
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();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// end_date
|
||||
//
|
||||
this.end_date.CustomFormat = "yyyy-MM-dd";
|
||||
this.end_date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.end_date.Location = new System.Drawing.Point(154, 4);
|
||||
this.end_date.Name = "end_date";
|
||||
this.end_date.Size = new System.Drawing.Size(85, 21);
|
||||
this.end_date.TabIndex = 36;
|
||||
//
|
||||
// start_date
|
||||
//
|
||||
this.start_date.CustomFormat = "yyyy-MM-dd";
|
||||
this.start_date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.start_date.Location = new System.Drawing.Point(56, 4);
|
||||
this.start_date.Name = "start_date";
|
||||
this.start_date.Size = new System.Drawing.Size(85, 21);
|
||||
this.start_date.TabIndex = 35;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(3, 8);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 34;
|
||||
this.label2.Text = "조회기간";
|
||||
//
|
||||
// radioButton1
|
||||
//
|
||||
this.radioButton1.AutoSize = true;
|
||||
this.radioButton1.Location = new System.Drawing.Point(254, 7);
|
||||
this.radioButton1.Name = "radioButton1";
|
||||
this.radioButton1.Size = new System.Drawing.Size(59, 16);
|
||||
this.radioButton1.TabIndex = 37;
|
||||
this.radioButton1.TabStop = true;
|
||||
this.radioButton1.Text = "일자별";
|
||||
this.radioButton1.UseVisualStyleBackColor = true;
|
||||
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
|
||||
//
|
||||
// radioButton2
|
||||
//
|
||||
this.radioButton2.AutoSize = true;
|
||||
this.radioButton2.Location = new System.Drawing.Point(317, 7);
|
||||
this.radioButton2.Name = "radioButton2";
|
||||
this.radioButton2.Size = new System.Drawing.Size(47, 16);
|
||||
this.radioButton2.TabIndex = 37;
|
||||
this.radioButton2.TabStop = true;
|
||||
this.radioButton2.Text = "출판";
|
||||
this.radioButton2.UseVisualStyleBackColor = true;
|
||||
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
|
||||
//
|
||||
// radioButton3
|
||||
//
|
||||
this.radioButton3.AutoSize = true;
|
||||
this.radioButton3.Location = new System.Drawing.Point(369, 7);
|
||||
this.radioButton3.Name = "radioButton3";
|
||||
this.radioButton3.Size = new System.Drawing.Size(82, 16);
|
||||
this.radioButton3.TabIndex = 37;
|
||||
this.radioButton3.TabStop = true;
|
||||
this.radioButton3.Text = "도매 · 기타";
|
||||
this.radioButton3.UseVisualStyleBackColor = true;
|
||||
this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
|
||||
//
|
||||
// radioButton4
|
||||
//
|
||||
this.radioButton4.AutoSize = true;
|
||||
this.radioButton4.Location = new System.Drawing.Point(454, 7);
|
||||
this.radioButton4.Name = "radioButton4";
|
||||
this.radioButton4.Size = new System.Drawing.Size(47, 16);
|
||||
this.radioButton4.TabIndex = 37;
|
||||
this.radioButton4.TabStop = true;
|
||||
this.radioButton4.Text = "전체";
|
||||
this.radioButton4.UseVisualStyleBackColor = true;
|
||||
this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
|
||||
//
|
||||
// btn_Excel
|
||||
//
|
||||
this.btn_Excel.Location = new System.Drawing.Point(673, 3);
|
||||
this.btn_Excel.Name = "btn_Excel";
|
||||
this.btn_Excel.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_Excel.TabIndex = 38;
|
||||
this.btn_Excel.Text = "엑 셀";
|
||||
this.btn_Excel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_Print
|
||||
//
|
||||
this.btn_Print.Location = new System.Drawing.Point(590, 3);
|
||||
this.btn_Print.Name = "btn_Print";
|
||||
this.btn_Print.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_Print.TabIndex = 39;
|
||||
this.btn_Print.Text = "인 쇄";
|
||||
this.btn_Print.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(507, 3);
|
||||
this.btn_Lookup.Name = "btn_Lookup";
|
||||
this.btn_Lookup.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_Lookup.TabIndex = 40;
|
||||
this.btn_Lookup.Text = "조 회";
|
||||
this.btn_Lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_Lookup.Click += new System.EventHandler(this.btn_Lookup_Click);
|
||||
//
|
||||
// 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.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.dataGridView1.Location = new System.Drawing.Point(29, 46);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersWidth = 21;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(793, 286);
|
||||
this.dataGridView1.TabIndex = 41;
|
||||
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(756, 3);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_Close.TabIndex = 40;
|
||||
this.btn_Close.Text = "닫 기";
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.label2);
|
||||
this.panel1.Controls.Add(this.start_date);
|
||||
this.panel1.Controls.Add(this.btn_Excel);
|
||||
this.panel1.Controls.Add(this.end_date);
|
||||
this.panel1.Controls.Add(this.btn_Print);
|
||||
this.panel1.Controls.Add(this.radioButton1);
|
||||
this.panel1.Controls.Add(this.btn_Close);
|
||||
this.panel1.Controls.Add(this.radioButton2);
|
||||
this.panel1.Controls.Add(this.btn_Lookup);
|
||||
this.panel1.Controls.Add(this.radioButton3);
|
||||
this.panel1.Controls.Add(this.radioButton4);
|
||||
this.panel1.Location = new System.Drawing.Point(7, 8);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(839, 32);
|
||||
this.panel1.TabIndex = 43;
|
||||
//
|
||||
// Column1
|
||||
//
|
||||
this.Column1.HeaderText = "거래처명";
|
||||
this.Column1.Name = "Column1";
|
||||
this.Column1.ReadOnly = true;
|
||||
this.Column1.Width = 150;
|
||||
//
|
||||
// Column2
|
||||
//
|
||||
dataGridViewCellStyle2.Format = "C0";
|
||||
dataGridViewCellStyle2.NullValue = null;
|
||||
this.Column2.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.Column2.HeaderText = "이월미수금";
|
||||
this.Column2.Name = "Column2";
|
||||
this.Column2.ReadOnly = true;
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
dataGridViewCellStyle3.Format = "C0";
|
||||
dataGridViewCellStyle3.NullValue = null;
|
||||
this.Column3.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.Column3.HeaderText = "건수";
|
||||
this.Column3.Name = "Column3";
|
||||
this.Column3.ReadOnly = true;
|
||||
this.Column3.Width = 50;
|
||||
//
|
||||
// Column4
|
||||
//
|
||||
dataGridViewCellStyle4.Format = "C0";
|
||||
dataGridViewCellStyle4.NullValue = null;
|
||||
this.Column4.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.Column4.HeaderText = "권수";
|
||||
this.Column4.Name = "Column4";
|
||||
this.Column4.ReadOnly = true;
|
||||
this.Column4.Width = 50;
|
||||
//
|
||||
// Column5
|
||||
//
|
||||
dataGridViewCellStyle5.Format = "C0";
|
||||
dataGridViewCellStyle5.NullValue = null;
|
||||
this.Column5.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.Column5.HeaderText = "매입금액";
|
||||
this.Column5.Name = "Column5";
|
||||
this.Column5.ReadOnly = true;
|
||||
//
|
||||
// Column6
|
||||
//
|
||||
dataGridViewCellStyle6.Format = "C0";
|
||||
dataGridViewCellStyle6.NullValue = null;
|
||||
this.Column6.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.Column6.HeaderText = "결제금액";
|
||||
this.Column6.Name = "Column6";
|
||||
this.Column6.ReadOnly = true;
|
||||
//
|
||||
// Column7
|
||||
//
|
||||
dataGridViewCellStyle7.Format = "C0";
|
||||
dataGridViewCellStyle7.NullValue = null;
|
||||
this.Column7.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.Column7.HeaderText = "기간잔고";
|
||||
this.Column7.Name = "Column7";
|
||||
this.Column7.ReadOnly = true;
|
||||
//
|
||||
// Column8
|
||||
//
|
||||
dataGridViewCellStyle8.Format = "C0";
|
||||
dataGridViewCellStyle8.NullValue = null;
|
||||
this.Column8.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.Column8.HeaderText = "최종잔고";
|
||||
this.Column8.Name = "Column8";
|
||||
this.Column8.ReadOnly = true;
|
||||
//
|
||||
// Column9
|
||||
//
|
||||
this.Column9.HeaderText = "Column9";
|
||||
this.Column9.Name = "Column9";
|
||||
this.Column9.ReadOnly = true;
|
||||
this.Column9.Visible = false;
|
||||
//
|
||||
// Purchase_Aggregation
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(904, 428);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Name = "Purchase_Aggregation";
|
||||
this.Text = "매입집계";
|
||||
this.Load += new System.EventHandler(this.Purchase_Aggregation_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.DateTimePicker end_date;
|
||||
private System.Windows.Forms.DateTimePicker start_date;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.RadioButton radioButton1;
|
||||
private System.Windows.Forms.RadioButton radioButton2;
|
||||
private System.Windows.Forms.RadioButton radioButton3;
|
||||
private System.Windows.Forms.RadioButton radioButton4;
|
||||
private System.Windows.Forms.Button btn_Excel;
|
||||
private System.Windows.Forms.Button btn_Print;
|
||||
private System.Windows.Forms.Button btn_Lookup;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
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;
|
||||
}
|
||||
}
|
||||
286
unimarc/unimarc/회계/Purchase_Aggregation.cs
Normal file
286
unimarc/unimarc/회계/Purchase_Aggregation.cs
Normal file
@@ -0,0 +1,286 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Purchase_Aggregation : Form
|
||||
{
|
||||
Main main;
|
||||
Helper_DB db = new Helper_DB();
|
||||
public string compidx;
|
||||
|
||||
public Purchase_Aggregation(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Purchase_Aggregation_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
radioButton2.Checked = true;
|
||||
start_date.Value = new DateTime(int.Parse(DateTime.Now.ToString("yyyy")),
|
||||
int.Parse(DateTime.Now.ToString("MM")), 1);
|
||||
}
|
||||
private void radioButton1_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Column1.HeaderText = "매입일자";
|
||||
Column2.HeaderText = "";
|
||||
Column7.HeaderText = "합계금액";
|
||||
Column8.HeaderText = "";
|
||||
}
|
||||
private void radioButton2_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Column1.HeaderText = "거래처명";
|
||||
Column2.HeaderText = "이월미수금";
|
||||
Column7.HeaderText = "기간잔고";
|
||||
Column8.HeaderText = "최종잔고";
|
||||
}
|
||||
private void btn_Lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
// 매입일자 / 거래처 / 권수 / 매입금액 / 결제금액
|
||||
string Select_Area = "`buy_date`, `purchase`, `count`, `buy_money`, `payment`";
|
||||
dataGridView1.Rows.Clear();
|
||||
string[] Search_col = { "compidx" };
|
||||
string[] Search_data = { compidx };
|
||||
|
||||
string db_tmp = db.More_DB_Search("Buy_ledger", Search_col, Search_data, Select_Area);
|
||||
string[] db_data = db_tmp.Split('|');
|
||||
input_Grid(db_data);
|
||||
}
|
||||
private void input_Grid(string[] db_data)
|
||||
{
|
||||
// 매입일자 / . / 건수 / 권수 / 매입금액 / 결제금액 / 합계금액 / . /
|
||||
// 거래처명 / 이월미수금 / 건수 / 권수 / 매입금액 / 결제금액 / 기간잔고 / 최종잔고
|
||||
string[] grid = { "", "", "0", "0", "0", "0", "0", "", "" };
|
||||
int cases = 0;
|
||||
if (radioButton1.Checked == true) {
|
||||
for (int a = 0; a < db_data.Length - 1; a++)
|
||||
{
|
||||
if (a % 5 == 0) { grid[0] = db_data[a].Substring(0, 10); } // 매입일자
|
||||
if (a % 5 == 2) { grid[3] = db_data[a]; } // 권수
|
||||
if (a % 5 == 3) { grid[4] = db_data[a]; } // 매입금액
|
||||
if (a % 5 == 4) { grid[5] = db_data[a]; date_grid_sub(grid, cases); } // 결제금액
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (int a = 0; a < db_data.Length - 1; a++)
|
||||
{
|
||||
if (a % 5 == 0) { grid[8] = db_data[a].Substring(0, 10); } // 매입일자(H)
|
||||
if (a % 5 == 1) { grid[0] = db_data[a]; } // 거래처명
|
||||
if (a % 5 == 2) { grid[3] = db_data[a]; } // 권수
|
||||
if (a % 5 == 3) { grid[4] = db_data[a]; } // 매입금액
|
||||
if (a % 5 == 4) { grid[5] = db_data[a]; date_grid_sub(grid, cases); } // 결제금액
|
||||
}
|
||||
}
|
||||
}
|
||||
private void date_grid_sub(string[] grid, int cases)
|
||||
{
|
||||
string str_end = end_date.Value.ToString().Substring(0, 10);
|
||||
string str_start = start_date.Value.ToString().Substring(0, 10);
|
||||
|
||||
if (radioButton1.Checked == true) {
|
||||
bool chk_grid = false;
|
||||
if (DateTime.Parse(str_start) <= DateTime.Parse(grid[0]) &&
|
||||
DateTime.Parse(str_end) >= DateTime.Parse(grid[0])) {
|
||||
cases += 1;
|
||||
chk_grid = true;
|
||||
}
|
||||
grid[2] = cases.ToString();
|
||||
|
||||
int buy = 0, pay = 0;
|
||||
buy += Convert.ToInt32(grid[4]);
|
||||
pay += Convert.ToInt32(grid[5]);
|
||||
int total = buy - pay;
|
||||
grid[6] = total.ToString();
|
||||
|
||||
if(chk_grid == true) {
|
||||
if (dataGridView1.Rows.Count > 0) {
|
||||
if (case_up(grid) == false) {
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
else if (dataGridView1.Rows.Count == 0) {
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 0.거래처명 1.이월미수금 2.건수 3.권수 4.매입금액 5.결제금액 6.기간잔고 7.최종잔고 8.매입일자(H)
|
||||
else if (radioButton2.Checked == true || radioButton3.Checked == true || radioButton4.Checked == true) {
|
||||
string msg = "";
|
||||
int chk_idx = over_chk(grid);
|
||||
if (chk_idx >= 0) {
|
||||
mk_grid(grid, str_start, str_end, chk_idx);
|
||||
}
|
||||
if (DateTime.Parse(str_start) > DateTime.Parse(grid[8]) &&
|
||||
DateTime.Parse(str_end) < DateTime.Parse(grid[8])) {
|
||||
grid[3] = "0"; grid[4] = "0"; grid[5] = "0";
|
||||
}
|
||||
// Grid내에 자료가 없을경우 DB에서 불러온 자료 일단 추가
|
||||
if (chk_idx == -1) {
|
||||
if (DateTime.Parse(str_start) > DateTime.Parse(grid[8])) {
|
||||
grid = ex_handling(grid);
|
||||
}
|
||||
else {
|
||||
grid[1] = "0";
|
||||
grid[7] = chk_final(grid).ToString();
|
||||
}
|
||||
for(int a = 0; a < grid.Length; a++)
|
||||
{
|
||||
msg += grid[a] + " | ";
|
||||
}
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
}
|
||||
private int chk_final(string[] grid)
|
||||
{
|
||||
if (grid[4] != "0") {
|
||||
return Convert.ToInt32(grid[4]);
|
||||
}
|
||||
if (grid[5] != "0") {
|
||||
return Convert.ToInt32(grid[5]) * -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
private string[] ex_handling(string[] grid)
|
||||
{
|
||||
int buy = Convert.ToInt32(grid[4]);
|
||||
int pay = Convert.ToInt32(grid[5]);
|
||||
int remain = buy - pay;
|
||||
grid[1] = remain.ToString();
|
||||
grid[3] = "0";
|
||||
grid[4] = "0";
|
||||
grid[5] = "0";
|
||||
grid[7] = remain.ToString();
|
||||
|
||||
return grid;
|
||||
}
|
||||
private void mk_grid(string[] grid, string start, string end, int idx)
|
||||
{
|
||||
int cases = Convert.ToInt32(dataGridView1.Rows[idx].Cells[2].Value.ToString());
|
||||
int book_count = Convert.ToInt32(dataGridView1.Rows[idx].Cells[3].Value.ToString());
|
||||
int buy = 0;
|
||||
if (dataGridView1.Rows[idx].Cells[4].Value.ToString() != "0") {
|
||||
buy = Convert.ToInt32(dataGridView1.Rows[idx].Cells[4].Value.ToString());
|
||||
}
|
||||
int pay = 0;
|
||||
if (dataGridView1.Rows[idx].Cells[5].Value.ToString() != "0") {
|
||||
pay = Convert.ToInt32(dataGridView1.Rows[idx].Cells[5].Value.ToString());
|
||||
}
|
||||
|
||||
int book_count_plus = Convert.ToInt32(grid[3]);
|
||||
int buy_plus = Convert.ToInt32(grid[4]);
|
||||
int pay_plus = Convert.ToInt32(grid[5]);
|
||||
if (DateTime.Parse(start) > DateTime.Parse(grid[8])) { // 지정된 날짜 이전
|
||||
|
||||
int remain = 0;
|
||||
if (dataGridView1.Rows[idx].Cells[1].Value.ToString() != "") {
|
||||
remain = Convert.ToInt32(dataGridView1.Rows[idx].Cells[1].Value.ToString());
|
||||
}
|
||||
remain += buy_plus - pay_plus;
|
||||
dataGridView1.Rows[idx].Cells[1].Value = remain.ToString();
|
||||
}
|
||||
if (DateTime.Parse(start) <= DateTime.Parse(grid[8]) &&
|
||||
DateTime.Parse(end) >= DateTime.Parse(grid[8])) { // 지정된 날짜 포함
|
||||
|
||||
cases += 1;
|
||||
book_count += book_count_plus;
|
||||
pay += pay_plus;
|
||||
buy += buy_plus;
|
||||
int total_plus = 0;
|
||||
total_plus += buy - pay;
|
||||
dataGridView1.Rows[idx].Cells[2].Value = cases.ToString();
|
||||
dataGridView1.Rows[idx].Cells[3].Value = book_count.ToString();
|
||||
dataGridView1.Rows[idx].Cells[4].Value = buy.ToString();
|
||||
dataGridView1.Rows[idx].Cells[5].Value = pay.ToString();
|
||||
dataGridView1.Rows[idx].Cells[6].Value = total_plus.ToString();
|
||||
}
|
||||
int final = 0;
|
||||
if (dataGridView1.Rows[idx].Cells[7].Value.ToString() != "") {
|
||||
final = Convert.ToInt32(dataGridView1.Rows[idx].Cells[7].Value.ToString());
|
||||
}
|
||||
final += buy_plus - pay_plus;
|
||||
dataGridView1.Rows[idx].Cells[7].Value = final.ToString();
|
||||
}
|
||||
private int over_chk(string[] grid)
|
||||
{
|
||||
int grididx = dataGridView1.Rows.Count;
|
||||
for(int a = 0; a < grididx; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells[0].Value.ToString() == grid[0]) {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
/// <summary>
|
||||
/// 일자별 정렬로 체크되었을 경우 Grid에 나타내는 함수
|
||||
/// </summary>
|
||||
/// <param name="grid"></param>
|
||||
/// <returns>True일 경우, Grid내 값만 변경 / False일 경우, Grid추가</returns>
|
||||
private bool case_up(string[] grid)
|
||||
{
|
||||
int grididx = dataGridView1.Rows.Count;
|
||||
if (grid[0] == dataGridView1.Rows[grididx - 1].Cells[0].Value.ToString()) {
|
||||
int cases = Convert.ToInt32(dataGridView1.Rows[grididx - 1].Cells[2].Value.ToString());
|
||||
int book_count = Convert.ToInt32(dataGridView1.Rows[grididx - 1].Cells[3].Value.ToString());
|
||||
int buy = 0;
|
||||
if (dataGridView1.Rows[grididx - 1].Cells[4].Value.ToString() != "") {
|
||||
buy = Convert.ToInt32(dataGridView1.Rows[grididx - 1].Cells[4].Value.ToString().Replace(",", ""));
|
||||
}
|
||||
int pay = 0;
|
||||
if (dataGridView1.Rows[grididx - 1].Cells[5].Value.ToString() != "") {
|
||||
pay = Convert.ToInt32(dataGridView1.Rows[grididx - 1].Cells[5].Value.ToString().Replace(",", ""));
|
||||
}
|
||||
|
||||
int book_count_plus = Convert.ToInt32(grid[3]);
|
||||
int buy_plus = Convert.ToInt32(grid[4]);
|
||||
int pay_plus = Convert.ToInt32(grid[5]);
|
||||
|
||||
cases += 1;
|
||||
book_count += book_count_plus;
|
||||
buy += buy_plus;
|
||||
pay += pay_plus;
|
||||
int total_plus = 0;
|
||||
total_plus += buy - pay;
|
||||
|
||||
dataGridView1.Rows[grididx - 1].Cells[2].Value = cases.ToString();
|
||||
dataGridView1.Rows[grididx - 1].Cells[3].Value = book_count.ToString();
|
||||
dataGridView1.Rows[grididx - 1].Cells[4].Value = buy.ToString();
|
||||
dataGridView1.Rows[grididx - 1].Cells[5].Value = pay.ToString();
|
||||
dataGridView1.Rows[grididx - 1].Cells[6].Value = total_plus.ToString();
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
// 일자별이나 전체에선 더블클릭 이벤트 활성화 되지않음.
|
||||
if(radioButton1.Checked == true || radioButton4.Checked == true) { return; }
|
||||
|
||||
Purchase_Book pb = new Purchase_Book(this);
|
||||
pb.MdiParent = main;
|
||||
pb.WindowState = FormWindowState.Maximized;
|
||||
pb.tb_purchase.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
|
||||
pb.start_Date.Value = DateTime.Parse(start_date.Value.ToString());
|
||||
pb.end_Date.Value = DateTime.Parse(end_date.Value.ToString());
|
||||
pb.Show();
|
||||
pb.btn_Lookup_Click(null, null);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
147
unimarc/unimarc/회계/Purchase_Aggregation.resx
Normal file
147
unimarc/unimarc/회계/Purchase_Aggregation.resx
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="Column1.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column3.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column5.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column7.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
267
unimarc/unimarc/회계/Purchase_Book.Designer.cs
generated
Normal file
267
unimarc/unimarc/회계/Purchase_Book.Designer.cs
generated
Normal file
@@ -0,0 +1,267 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Purchase_Book
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.start_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.end_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.tb_purchase = new System.Windows.Forms.TextBox();
|
||||
this.btn_Lookup = new System.Windows.Forms.Button();
|
||||
this.btn_Print = new System.Windows.Forms.Button();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.btn_fax = 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();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(14, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "조회기간";
|
||||
//
|
||||
// start_Date
|
||||
//
|
||||
this.start_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.start_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.start_Date.Location = new System.Drawing.Point(67, 11);
|
||||
this.start_Date.Name = "start_Date";
|
||||
this.start_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.start_Date.TabIndex = 32;
|
||||
//
|
||||
// end_Date
|
||||
//
|
||||
this.end_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.end_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.end_Date.Location = new System.Drawing.Point(165, 11);
|
||||
this.end_Date.Name = "end_Date";
|
||||
this.end_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.end_Date.TabIndex = 33;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(268, 15);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 34;
|
||||
this.label2.Text = "매입거래처";
|
||||
//
|
||||
// tb_purchase
|
||||
//
|
||||
this.tb_purchase.Location = new System.Drawing.Point(332, 11);
|
||||
this.tb_purchase.Name = "tb_purchase";
|
||||
this.tb_purchase.Size = new System.Drawing.Size(129, 21);
|
||||
this.tb_purchase.TabIndex = 35;
|
||||
this.tb_purchase.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_purchase_KeyDown);
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(504, 10);
|
||||
this.btn_Lookup.Name = "btn_Lookup";
|
||||
this.btn_Lookup.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_Lookup.TabIndex = 36;
|
||||
this.btn_Lookup.Text = "조 회";
|
||||
this.btn_Lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_Lookup.Click += new System.EventHandler(this.btn_Lookup_Click);
|
||||
//
|
||||
// btn_Print
|
||||
//
|
||||
this.btn_Print.Location = new System.Drawing.Point(600, 10);
|
||||
this.btn_Print.Name = "btn_Print";
|
||||
this.btn_Print.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_Print.TabIndex = 36;
|
||||
this.btn_Print.Text = "인 쇄";
|
||||
this.btn_Print.UseVisualStyleBackColor = true;
|
||||
this.btn_Print.Visible = false;
|
||||
this.btn_Print.Click += new System.EventHandler(this.btn_Print_Click);
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(792, 10);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_Close.TabIndex = 36;
|
||||
this.btn_Close.Text = "닫 기";
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
|
||||
//
|
||||
// btn_fax
|
||||
//
|
||||
this.btn_fax.Location = new System.Drawing.Point(696, 10);
|
||||
this.btn_fax.Name = "btn_fax";
|
||||
this.btn_fax.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_fax.TabIndex = 36;
|
||||
this.btn_fax.Text = "팩스 보내기";
|
||||
this.btn_fax.UseVisualStyleBackColor = true;
|
||||
this.btn_fax.Visible = false;
|
||||
//
|
||||
// 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;
|
||||
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.Column8});
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(12, 39);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 19;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(861, 419);
|
||||
this.dataGridView1.TabIndex = 37;
|
||||
//
|
||||
// Column1
|
||||
//
|
||||
this.Column1.HeaderText = "매입일자";
|
||||
this.Column1.Name = "Column1";
|
||||
//
|
||||
// Column2
|
||||
//
|
||||
this.Column2.HeaderText = "내용";
|
||||
this.Column2.Name = "Column2";
|
||||
this.Column2.Width = 300;
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
this.Column3.HeaderText = "수량";
|
||||
this.Column3.Name = "Column3";
|
||||
this.Column3.Width = 50;
|
||||
//
|
||||
// Column4
|
||||
//
|
||||
this.Column4.HeaderText = "입고율";
|
||||
this.Column4.Name = "Column4";
|
||||
this.Column4.Width = 60;
|
||||
//
|
||||
// Column5
|
||||
//
|
||||
this.Column5.HeaderText = "매입금액";
|
||||
this.Column5.Name = "Column5";
|
||||
this.Column5.Width = 70;
|
||||
//
|
||||
// Column6
|
||||
//
|
||||
this.Column6.HeaderText = "결제금액";
|
||||
this.Column6.Name = "Column6";
|
||||
this.Column6.Width = 70;
|
||||
//
|
||||
// Column7
|
||||
//
|
||||
this.Column7.HeaderText = "현잔액";
|
||||
this.Column7.Name = "Column7";
|
||||
this.Column7.Width = 70;
|
||||
//
|
||||
// Column8
|
||||
//
|
||||
this.Column8.HeaderText = "비고";
|
||||
this.Column8.Name = "Column8";
|
||||
//
|
||||
// Purchase_Book
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(885, 471);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.btn_fax);
|
||||
this.Controls.Add(this.btn_Close);
|
||||
this.Controls.Add(this.btn_Print);
|
||||
this.Controls.Add(this.btn_Lookup);
|
||||
this.Controls.Add(this.tb_purchase);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.end_Date);
|
||||
this.Controls.Add(this.start_Date);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "Purchase_Book";
|
||||
this.Text = "매입장부";
|
||||
this.Load += new System.EventHandler(this.Purchase_Book_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btn_Print;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
private System.Windows.Forms.Button btn_fax;
|
||||
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;
|
||||
public System.Windows.Forms.TextBox tb_purchase;
|
||||
public System.Windows.Forms.Button btn_Lookup;
|
||||
public System.Windows.Forms.DateTimePicker start_Date;
|
||||
public System.Windows.Forms.DateTimePicker end_Date;
|
||||
}
|
||||
}
|
||||
131
unimarc/unimarc/회계/Purchase_Book.cs
Normal file
131
unimarc/unimarc/회계/Purchase_Book.cs
Normal file
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WindowsFormsApp1.Delivery;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Purchase_Book : Form
|
||||
{
|
||||
Main main;
|
||||
Purchase_Aggregation pa;
|
||||
Helper_DB db = new Helper_DB();
|
||||
public bool call = false;
|
||||
public string compidx;
|
||||
bool chk_ac = false;
|
||||
public Purchase_Book(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
public Purchase_Book(Purchase_Aggregation _pa)
|
||||
{
|
||||
InitializeComponent();
|
||||
pa = _pa;
|
||||
compidx = pa.compidx;
|
||||
call = true;
|
||||
}
|
||||
private void Purchase_Book_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
if (pa == null) {
|
||||
start_Date.Value = new DateTime(int.Parse(DateTime.Now.ToString("yyyy")),
|
||||
int.Parse(DateTime.Now.ToString("MM")), 1);
|
||||
}
|
||||
}
|
||||
public void btn_Lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(call != false) { db.DBcon(); }
|
||||
dataGridView1.Rows.Clear();
|
||||
if (tb_purchase.Text == "") { return; }
|
||||
string Select_Area = "`buy_date`, `book_name`, `count`, `persent`, `buy_money`, `payment`, `etc`";
|
||||
string[] Search_col = { "compidx", "purchase" };
|
||||
string[] Search_data = { compidx, tb_purchase.Text };
|
||||
|
||||
string db_tmp = db.More_DB_Search("Buy_ledger", Search_col, Search_data, Select_Area);
|
||||
string[] db_data = db_tmp.Split('|');
|
||||
input_Grid(db_data);
|
||||
}
|
||||
private void input_Grid(string[] db_data)
|
||||
{
|
||||
/* 매입일자 내용 수량 입고율 매입금액
|
||||
* 결제금액 현잔액 비고 */
|
||||
string[] grid = { "", "", "", "", "0",
|
||||
"0", "0", "" };
|
||||
|
||||
for (int a = 0; a < db_data.Length - 1; a++)
|
||||
{
|
||||
if (a % 7 == 0) { grid[0] = db_data[a].Substring(0, 10); } // 매입일자
|
||||
if (a % 7 == 1) { grid[1] = db_data[a]; } // 내용
|
||||
if (a % 7 == 2) { grid[2] = db_data[a]; } // 수량
|
||||
if (a % 7 == 3) { grid[3] = db_data[a]; } // 입고율
|
||||
if (a % 7 == 4) { grid[4] = db_data[a]; } // 매입금액
|
||||
if (a % 7 == 5) { grid[5] = db_data[a]; } // 결제금액
|
||||
if (a % 7 == 6) { grid[7] = db_data[a]; Grid_Sub(grid); } // 비고
|
||||
}
|
||||
}
|
||||
/* Grid 1행에 매입일자 쪽에 "이월미수금" 단어가 표출되며,
|
||||
* 현 잔액에 이전에 있었던 거래 금액들이 계산되어 표출된다.
|
||||
*/
|
||||
private void Grid_Sub(string[] grid)
|
||||
{
|
||||
string str_start = start_Date.Value.ToString().Substring(0, 10);
|
||||
string str_end = end_Date.Value.ToString().Substring(0, 10);
|
||||
|
||||
bool chk_grid = false;
|
||||
|
||||
if (DateTime.Parse(str_start) <= DateTime.Parse(grid[0]) &&
|
||||
DateTime.Parse(str_end) >= DateTime.Parse(grid[0])) {
|
||||
string[] account = { "이월미수금", "", "", "", "",
|
||||
"", grid[6], "" };
|
||||
if (dataGridView1.Rows.Count == 0) {
|
||||
account[6] = String.Format("{0:#,###}", Convert.ToInt32(account[6]));
|
||||
dataGridView1.Rows.Add(account);
|
||||
chk_ac = true;
|
||||
}
|
||||
chk_grid = true;
|
||||
}
|
||||
// 현잔액 = 매입금액 - 결제금액
|
||||
int buy = Convert.ToInt32(grid[4]);
|
||||
int pay = Convert.ToInt32(grid[5]);
|
||||
int remain = Convert.ToInt32(grid[6].Replace(",", ""));
|
||||
remain += buy - pay;
|
||||
grid[6] = remain.ToString();
|
||||
|
||||
if (chk_grid == true) {
|
||||
grid[2] = String.Format("{0:#,###}", Convert.ToInt32(grid[2]));
|
||||
grid[4] = String.Format("{0:#,###}", Convert.ToInt32(grid[4]));
|
||||
grid[5] = String.Format("{0:#,###}", Convert.ToInt32(grid[5]));
|
||||
grid[6] = String.Format("{0:#,###}", Convert.ToInt32(grid[6]));
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
private void btn_Print_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
private void tb_purchase_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
/* TODO: 완성시 주석 해제
|
||||
Order_input_Search search = new Order_input_Search(this);
|
||||
search.Where_Open = "Order";
|
||||
search.TopMost = true;
|
||||
search.Show(); */
|
||||
btn_Lookup_Click(null, null);
|
||||
}
|
||||
}
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
144
unimarc/unimarc/회계/Purchase_Book.resx
Normal file
144
unimarc/unimarc/회계/Purchase_Book.resx
Normal file
@@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="Column1.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column3.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column5.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column7.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
462
unimarc/unimarc/회계/Purchase_Input.Designer.cs
generated
Normal file
462
unimarc/unimarc/회계/Purchase_Input.Designer.cs
generated
Normal file
@@ -0,0 +1,462 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Purchase_Input
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
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.label9 = new System.Windows.Forms.Label();
|
||||
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.textBox3 = 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.label8 = new System.Windows.Forms.Label();
|
||||
this.textBox10 = new System.Windows.Forms.TextBox();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.textBox9 = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.label6 = 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.label2 = new System.Windows.Forms.Label();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
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(21, 178);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(758, 150);
|
||||
this.dataGridView1.TabIndex = 60;
|
||||
//
|
||||
// Column1
|
||||
//
|
||||
this.Column1.HeaderText = "도 서 명";
|
||||
this.Column1.Name = "Column1";
|
||||
//
|
||||
// Column2
|
||||
//
|
||||
this.Column2.HeaderText = "저자";
|
||||
this.Column2.Name = "Column2";
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
this.Column3.HeaderText = "출판사";
|
||||
this.Column3.Name = "Column3";
|
||||
//
|
||||
// Column4
|
||||
//
|
||||
this.Column4.HeaderText = "정가";
|
||||
this.Column4.Name = "Column4";
|
||||
//
|
||||
// Column5
|
||||
//
|
||||
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(869, 128);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
this.checkBox3.Size = new System.Drawing.Size(72, 28);
|
||||
this.checkBox3.TabIndex = 59;
|
||||
this.checkBox3.Text = "칸수일괄\n입력";
|
||||
this.checkBox3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(944, 131);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(75, 23);
|
||||
this.button5.TabIndex = 58;
|
||||
this.button5.Text = "합계계산";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(784, 131);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 57;
|
||||
this.button3.Text = "Clear";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(704, 131);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(75, 23);
|
||||
this.button4.TabIndex = 56;
|
||||
this.button4.Text = "입 력";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox8
|
||||
//
|
||||
this.textBox8.Location = new System.Drawing.Point(432, 132);
|
||||
this.textBox8.Name = "textBox8";
|
||||
this.textBox8.Size = new System.Drawing.Size(43, 21);
|
||||
this.textBox8.TabIndex = 55;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(404, 136);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(29, 12);
|
||||
this.label9.TabIndex = 54;
|
||||
this.label9.Text = "부수";
|
||||
//
|
||||
// checkBox2
|
||||
//
|
||||
this.checkBox2.AutoSize = true;
|
||||
this.checkBox2.Location = new System.Drawing.Point(344, 128);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.Size = new System.Drawing.Size(60, 28);
|
||||
this.checkBox2.TabIndex = 53;
|
||||
this.checkBox2.Text = "입고율\n고정";
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Location = new System.Drawing.Point(304, 78);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(388, 21);
|
||||
this.textBox4.TabIndex = 52;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(253, 82);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(49, 12);
|
||||
this.label5.TabIndex = 51;
|
||||
this.label5.Text = "도 서 명";
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(78, 78);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(163, 21);
|
||||
this.textBox3.TabIndex = 50;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(29, 82);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(33, 12);
|
||||
this.label4.TabIndex = 49;
|
||||
this.label4.Text = "ISBN";
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(617, 39);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 48;
|
||||
this.button2.Text = "저 장";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(527, 39);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 47;
|
||||
this.button1.Text = "추 가";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox7
|
||||
//
|
||||
this.textBox7.Location = new System.Drawing.Point(295, 132);
|
||||
this.textBox7.Name = "textBox7";
|
||||
this.textBox7.Size = new System.Drawing.Size(43, 21);
|
||||
this.textBox7.TabIndex = 42;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(253, 136);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(41, 12);
|
||||
this.label8.TabIndex = 40;
|
||||
this.label8.Text = "입고율";
|
||||
//
|
||||
// textBox10
|
||||
//
|
||||
this.textBox10.Location = new System.Drawing.Point(529, 132);
|
||||
this.textBox10.Name = "textBox10";
|
||||
this.textBox10.Size = new System.Drawing.Size(163, 21);
|
||||
this.textBox10.TabIndex = 44;
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(479, 136);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(53, 12);
|
||||
this.label11.TabIndex = 39;
|
||||
this.label11.Text = "합계금액";
|
||||
//
|
||||
// textBox9
|
||||
//
|
||||
this.textBox9.Location = new System.Drawing.Point(529, 105);
|
||||
this.textBox9.Name = "textBox9";
|
||||
this.textBox9.Size = new System.Drawing.Size(163, 21);
|
||||
this.textBox9.TabIndex = 46;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(483, 109);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(41, 12);
|
||||
this.label10.TabIndex = 38;
|
||||
this.label10.Text = "출판사";
|
||||
//
|
||||
// textBox6
|
||||
//
|
||||
this.textBox6.Location = new System.Drawing.Point(78, 132);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(163, 21);
|
||||
this.textBox6.TabIndex = 41;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(19, 136);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(45, 12);
|
||||
this.label7.TabIndex = 37;
|
||||
this.label7.Text = "정 가";
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Location = new System.Drawing.Point(78, 105);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(280, 21);
|
||||
this.textBox5.TabIndex = 45;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(19, 109);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(45, 12);
|
||||
this.label6.TabIndex = 36;
|
||||
this.label6.Text = "저 자";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(78, 40);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(431, 21);
|
||||
this.textBox2.TabIndex = 43;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(19, 44);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(45, 12);
|
||||
this.label3.TabIndex = 35;
|
||||
this.label3.Text = "비 고";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(364, 14);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(145, 21);
|
||||
this.textBox1.TabIndex = 34;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(293, 18);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 33;
|
||||
this.label2.Text = "매입거래처";
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(169, 16);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(48, 16);
|
||||
this.checkBox1.TabIndex = 32;
|
||||
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(78, 14);
|
||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
||||
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
|
||||
this.dateTimePicker1.TabIndex = 31;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(19, 18);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 30;
|
||||
this.label1.Text = "입고일자";
|
||||
//
|
||||
// Purchase_Input
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1080, 535);
|
||||
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.checkBox2);
|
||||
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 = "Purchase_Input";
|
||||
this.Text = "매입입력";
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
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.Label label9;
|
||||
private System.Windows.Forms.CheckBox checkBox2;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
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.Label label8;
|
||||
private System.Windows.Forms.TextBox textBox10;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.TextBox textBox9;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox textBox6;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
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.Label label1;
|
||||
}
|
||||
}
|
||||
22
unimarc/unimarc/회계/Purchase_Input.cs
Normal file
22
unimarc/unimarc/회계/Purchase_Input.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Purchase_Input : Form
|
||||
{
|
||||
Main main;
|
||||
public Purchase_Input(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
}
|
||||
}
|
||||
}
|
||||
141
unimarc/unimarc/회계/Purchase_Input.resx
Normal file
141
unimarc/unimarc/회계/Purchase_Input.resx
Normal file
@@ -0,0 +1,141 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="Column1.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column3.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column5.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
357
unimarc/unimarc/회계/Purchase_not_pay.Designer.cs
generated
Normal file
357
unimarc/unimarc/회계/Purchase_not_pay.Designer.cs
generated
Normal file
@@ -0,0 +1,357 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Purchase_not_pay
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
|
||||
this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.button6 = 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();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dateTimePicker1
|
||||
//
|
||||
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
|
||||
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker1.Location = new System.Drawing.Point(74, 22);
|
||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
||||
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
|
||||
this.dateTimePicker1.TabIndex = 37;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(21, 26);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 36;
|
||||
this.label2.Text = "결제일자";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(208, 26);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(65, 12);
|
||||
this.label1.TabIndex = 36;
|
||||
this.label1.Text = "매입거래처";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(272, 22);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(147, 21);
|
||||
this.textBox1.TabIndex = 38;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(475, 26);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 36;
|
||||
this.label3.Text = "현잔액";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.ForeColor = System.Drawing.Color.Red;
|
||||
this.label4.Location = new System.Drawing.Point(661, 26);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(11, 12);
|
||||
this.label4.TabIndex = 36;
|
||||
this.label4.Text = "0";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(21, 53);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(53, 12);
|
||||
this.label5.TabIndex = 36;
|
||||
this.label5.Text = "결제금액";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(74, 49);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(114, 21);
|
||||
this.textBox2.TabIndex = 38;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(220, 53);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(53, 12);
|
||||
this.label6.TabIndex = 36;
|
||||
this.label6.Text = "결제금액";
|
||||
//
|
||||
// comboBox1
|
||||
//
|
||||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Location = new System.Drawing.Point(272, 49);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(110, 20);
|
||||
this.comboBox1.TabIndex = 39;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(21, 80);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(53, 12);
|
||||
this.label7.TabIndex = 36;
|
||||
this.label7.Text = "비 고";
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(74, 76);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(416, 21);
|
||||
this.textBox3.TabIndex = 38;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(527, 75);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(78, 23);
|
||||
this.button1.TabIndex = 40;
|
||||
this.button1.Text = "계산서 입력";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(23, 117);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(72, 23);
|
||||
this.button2.TabIndex = 40;
|
||||
this.button2.Text = "추 가";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(107, 117);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(72, 23);
|
||||
this.button3.TabIndex = 40;
|
||||
this.button3.Text = "저 장";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(191, 117);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(72, 23);
|
||||
this.button4.TabIndex = 40;
|
||||
this.button4.Text = "삭 제";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(281, 122);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(53, 12);
|
||||
this.label8.TabIndex = 36;
|
||||
this.label8.Text = "결제일자";
|
||||
//
|
||||
// dateTimePicker2
|
||||
//
|
||||
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd";
|
||||
this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker2.Location = new System.Drawing.Point(334, 118);
|
||||
this.dateTimePicker2.Name = "dateTimePicker2";
|
||||
this.dateTimePicker2.Size = new System.Drawing.Size(85, 21);
|
||||
this.dateTimePicker2.TabIndex = 37;
|
||||
//
|
||||
// dateTimePicker3
|
||||
//
|
||||
this.dateTimePicker3.CustomFormat = "yyyy-MM-dd";
|
||||
this.dateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dateTimePicker3.Location = new System.Drawing.Point(425, 118);
|
||||
this.dateTimePicker3.Name = "dateTimePicker3";
|
||||
this.dateTimePicker3.Size = new System.Drawing.Size(85, 21);
|
||||
this.dateTimePicker3.TabIndex = 37;
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(516, 117);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(72, 23);
|
||||
this.button5.TabIndex = 40;
|
||||
this.button5.Text = "조 회";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.Location = new System.Drawing.Point(600, 117);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(72, 23);
|
||||
this.button6.TabIndex = 40;
|
||||
this.button6.Text = "엑 셀";
|
||||
this.button6.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
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.dataGridView1.Location = new System.Drawing.Point(23, 160);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(649, 150);
|
||||
this.dataGridView1.TabIndex = 41;
|
||||
//
|
||||
// Column1
|
||||
//
|
||||
this.Column1.HeaderText = "결제일자";
|
||||
this.Column1.Name = "Column1";
|
||||
//
|
||||
// Column2
|
||||
//
|
||||
this.Column2.HeaderText = "거래처";
|
||||
this.Column2.Name = "Column2";
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
this.Column3.HeaderText = "금액";
|
||||
this.Column3.Name = "Column3";
|
||||
//
|
||||
// Column4
|
||||
//
|
||||
this.Column4.HeaderText = "결제구분";
|
||||
this.Column4.Name = "Column4";
|
||||
//
|
||||
// Column5
|
||||
//
|
||||
this.Column5.HeaderText = "비고";
|
||||
this.Column5.Name = "Column5";
|
||||
//
|
||||
// Column6
|
||||
//
|
||||
this.Column6.HeaderText = "발행유무";
|
||||
this.Column6.Name = "Column6";
|
||||
//
|
||||
// Purchase_not_pay
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.button6);
|
||||
this.Controls.Add(this.button5);
|
||||
this.Controls.Add(this.button4);
|
||||
this.Controls.Add(this.button3);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.comboBox1);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.textBox3);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.dateTimePicker3);
|
||||
this.Controls.Add(this.dateTimePicker2);
|
||||
this.Controls.Add(this.dateTimePicker1);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Name = "Purchase_not_pay";
|
||||
this.Text = "매입미결제";
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.DateTimePicker dateTimePicker1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.ComboBox comboBox1;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.DateTimePicker dateTimePicker2;
|
||||
private System.Windows.Forms.DateTimePicker dateTimePicker3;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Button button6;
|
||||
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;
|
||||
}
|
||||
}
|
||||
22
unimarc/unimarc/회계/Purchase_not_pay.cs
Normal file
22
unimarc/unimarc/회계/Purchase_not_pay.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Purchase_not_pay : Form
|
||||
{
|
||||
Main main;
|
||||
public Purchase_not_pay(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
}
|
||||
}
|
||||
}
|
||||
156
unimarc/unimarc/회계/Purchase_not_pay.resx
Normal file
156
unimarc/unimarc/회계/Purchase_not_pay.resx
Normal file
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="Column1.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column3.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column5.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column1.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column3.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column5.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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
525
unimarc/unimarc/회계/Remit_reg.Designer.cs
generated
Normal file
525
unimarc/unimarc/회계/Remit_reg.Designer.cs
generated
Normal file
@@ -0,0 +1,525 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Remit_reg
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.start_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.end_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.cb_remunerate = new System.Windows.Forms.ComboBox();
|
||||
this.btn_lookup = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.btn_Excel = new System.Windows.Forms.Button();
|
||||
this.btn_Print = new System.Windows.Forms.Button();
|
||||
this.btn_complete = new System.Windows.Forms.Button();
|
||||
this.tb_list_date = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tb_date_pay = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.tb_purchase = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.tb_bank_comp = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.tb_bank_code = new System.Windows.Forms.TextBox();
|
||||
this.tb_bank_num = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.tb_bank_name = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.tb_send_money = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.tb_charge = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.tb_etc = new System.Windows.Forms.RichTextBox();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.chkbox = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.date_pay = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.purchase = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.send_money = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
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.False;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
this.chkbox,
|
||||
this.list_date,
|
||||
this.date_pay,
|
||||
this.purchase,
|
||||
this.bank_comp,
|
||||
this.bank_code,
|
||||
this.bank_num,
|
||||
this.bank_name,
|
||||
this.send_money,
|
||||
this.charge,
|
||||
this.etc});
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(12, 38);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 21;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1023, 332);
|
||||
this.dataGridView1.TabIndex = 29;
|
||||
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
|
||||
this.dataGridView1.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.dataGridView1_CellPainting);
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(16, 14);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(53, 12);
|
||||
this.label9.TabIndex = 0;
|
||||
this.label9.Text = "등록일자";
|
||||
//
|
||||
// start_Date
|
||||
//
|
||||
this.start_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.start_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.start_Date.Location = new System.Drawing.Point(77, 10);
|
||||
this.start_Date.Name = "start_Date";
|
||||
this.start_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.start_Date.TabIndex = 11;
|
||||
//
|
||||
// end_Date
|
||||
//
|
||||
this.end_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.end_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.end_Date.Location = new System.Drawing.Point(168, 10);
|
||||
this.end_Date.Name = "end_Date";
|
||||
this.end_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.end_Date.TabIndex = 11;
|
||||
//
|
||||
// cb_remunerate
|
||||
//
|
||||
this.cb_remunerate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_remunerate.FormattingEnabled = true;
|
||||
this.cb_remunerate.Location = new System.Drawing.Point(259, 10);
|
||||
this.cb_remunerate.Name = "cb_remunerate";
|
||||
this.cb_remunerate.Size = new System.Drawing.Size(71, 20);
|
||||
this.cb_remunerate.TabIndex = 31;
|
||||
//
|
||||
// btn_lookup
|
||||
//
|
||||
this.btn_lookup.Location = new System.Drawing.Point(336, 9);
|
||||
this.btn_lookup.Name = "btn_lookup";
|
||||
this.btn_lookup.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_lookup.TabIndex = 17;
|
||||
this.btn_lookup.Text = "조 회";
|
||||
this.btn_lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Enabled = false;
|
||||
this.button5.Location = new System.Drawing.Point(417, 9);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(77, 23);
|
||||
this.button5.TabIndex = 18;
|
||||
this.button5.Text = "은행용 엑셀";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_Excel
|
||||
//
|
||||
this.btn_Excel.Location = new System.Drawing.Point(498, 9);
|
||||
this.btn_Excel.Name = "btn_Excel";
|
||||
this.btn_Excel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Excel.TabIndex = 18;
|
||||
this.btn_Excel.Text = "엑 셀";
|
||||
this.btn_Excel.UseVisualStyleBackColor = true;
|
||||
this.btn_Excel.Click += new System.EventHandler(this.btn_Excel_Click);
|
||||
//
|
||||
// btn_Print
|
||||
//
|
||||
this.btn_Print.Location = new System.Drawing.Point(579, 9);
|
||||
this.btn_Print.Name = "btn_Print";
|
||||
this.btn_Print.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Print.TabIndex = 18;
|
||||
this.btn_Print.Text = "인 쇄";
|
||||
this.btn_Print.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_complete
|
||||
//
|
||||
this.btn_complete.Location = new System.Drawing.Point(660, 9);
|
||||
this.btn_complete.Name = "btn_complete";
|
||||
this.btn_complete.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_complete.TabIndex = 18;
|
||||
this.btn_complete.Text = "송금 완료";
|
||||
this.btn_complete.UseVisualStyleBackColor = true;
|
||||
this.btn_complete.Click += new System.EventHandler(this.btn_complete_Click);
|
||||
//
|
||||
// tb_list_date
|
||||
//
|
||||
this.tb_list_date.Location = new System.Drawing.Point(1052, 35);
|
||||
this.tb_list_date.Name = "tb_list_date";
|
||||
this.tb_list_date.Size = new System.Drawing.Size(128, 21);
|
||||
this.tb_list_date.TabIndex = 32;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label1.Location = new System.Drawing.Point(1052, 19);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(57, 12);
|
||||
this.label1.TabIndex = 33;
|
||||
this.label1.Text = "등록일자";
|
||||
//
|
||||
// tb_date_pay
|
||||
//
|
||||
this.tb_date_pay.Location = new System.Drawing.Point(1192, 35);
|
||||
this.tb_date_pay.Name = "tb_date_pay";
|
||||
this.tb_date_pay.Size = new System.Drawing.Size(128, 21);
|
||||
this.tb_date_pay.TabIndex = 32;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label2.Location = new System.Drawing.Point(1192, 19);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(57, 12);
|
||||
this.label2.TabIndex = 33;
|
||||
this.label2.Text = "결제일자";
|
||||
//
|
||||
// tb_purchase
|
||||
//
|
||||
this.tb_purchase.Location = new System.Drawing.Point(1052, 82);
|
||||
this.tb_purchase.Name = "tb_purchase";
|
||||
this.tb_purchase.Size = new System.Drawing.Size(128, 21);
|
||||
this.tb_purchase.TabIndex = 32;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label3.Location = new System.Drawing.Point(1052, 66);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(44, 12);
|
||||
this.label3.TabIndex = 33;
|
||||
this.label3.Text = "거래처";
|
||||
//
|
||||
// tb_bank_comp
|
||||
//
|
||||
this.tb_bank_comp.Location = new System.Drawing.Point(1192, 82);
|
||||
this.tb_bank_comp.Name = "tb_bank_comp";
|
||||
this.tb_bank_comp.Size = new System.Drawing.Size(80, 21);
|
||||
this.tb_bank_comp.TabIndex = 32;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label4.Location = new System.Drawing.Point(1192, 66);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(87, 12);
|
||||
this.label4.TabIndex = 33;
|
||||
this.label4.Text = "은행명 / 코드";
|
||||
//
|
||||
// tb_bank_code
|
||||
//
|
||||
this.tb_bank_code.Location = new System.Drawing.Point(1278, 82);
|
||||
this.tb_bank_code.Name = "tb_bank_code";
|
||||
this.tb_bank_code.Size = new System.Drawing.Size(42, 21);
|
||||
this.tb_bank_code.TabIndex = 32;
|
||||
//
|
||||
// tb_bank_num
|
||||
//
|
||||
this.tb_bank_num.Location = new System.Drawing.Point(1052, 129);
|
||||
this.tb_bank_num.Name = "tb_bank_num";
|
||||
this.tb_bank_num.Size = new System.Drawing.Size(128, 21);
|
||||
this.tb_bank_num.TabIndex = 32;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label5.Location = new System.Drawing.Point(1052, 113);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(57, 12);
|
||||
this.label5.TabIndex = 33;
|
||||
this.label5.Text = "계좌번호";
|
||||
//
|
||||
// tb_bank_name
|
||||
//
|
||||
this.tb_bank_name.Location = new System.Drawing.Point(1192, 129);
|
||||
this.tb_bank_name.Name = "tb_bank_name";
|
||||
this.tb_bank_name.Size = new System.Drawing.Size(128, 21);
|
||||
this.tb_bank_name.TabIndex = 32;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label6.Location = new System.Drawing.Point(1192, 113);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(44, 12);
|
||||
this.label6.TabIndex = 33;
|
||||
this.label6.Text = "예금주";
|
||||
//
|
||||
// tb_send_money
|
||||
//
|
||||
this.tb_send_money.Location = new System.Drawing.Point(1052, 177);
|
||||
this.tb_send_money.Name = "tb_send_money";
|
||||
this.tb_send_money.Size = new System.Drawing.Size(128, 21);
|
||||
this.tb_send_money.TabIndex = 32;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label7.Location = new System.Drawing.Point(1052, 161);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(57, 12);
|
||||
this.label7.TabIndex = 33;
|
||||
this.label7.Text = "송금금액";
|
||||
//
|
||||
// tb_charge
|
||||
//
|
||||
this.tb_charge.Location = new System.Drawing.Point(1192, 177);
|
||||
this.tb_charge.Name = "tb_charge";
|
||||
this.tb_charge.Size = new System.Drawing.Size(128, 21);
|
||||
this.tb_charge.TabIndex = 32;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label8.Location = new System.Drawing.Point(1192, 161);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(44, 12);
|
||||
this.label8.TabIndex = 33;
|
||||
this.label8.Text = "등록자";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label10.Location = new System.Drawing.Point(1052, 209);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(31, 12);
|
||||
this.label10.TabIndex = 33;
|
||||
this.label10.Text = "비고";
|
||||
//
|
||||
// tb_etc
|
||||
//
|
||||
this.tb_etc.Location = new System.Drawing.Point(1052, 225);
|
||||
this.tb_etc.Name = "tb_etc";
|
||||
this.tb_etc.Size = new System.Drawing.Size(268, 145);
|
||||
this.tb_etc.TabIndex = 34;
|
||||
this.tb_etc.Text = "";
|
||||
//
|
||||
// idx
|
||||
//
|
||||
this.idx.HeaderText = "idx";
|
||||
this.idx.Name = "idx";
|
||||
this.idx.Visible = false;
|
||||
this.idx.Width = 50;
|
||||
//
|
||||
// chkbox
|
||||
//
|
||||
this.chkbox.HeaderText = "";
|
||||
this.chkbox.Name = "chkbox";
|
||||
this.chkbox.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.chkbox.Width = 40;
|
||||
//
|
||||
// list_date
|
||||
//
|
||||
this.list_date.HeaderText = "등록일자";
|
||||
this.list_date.Name = "list_date";
|
||||
this.list_date.Width = 85;
|
||||
//
|
||||
// date_pay
|
||||
//
|
||||
this.date_pay.HeaderText = "결제일자";
|
||||
this.date_pay.Name = "date_pay";
|
||||
this.date_pay.Width = 85;
|
||||
//
|
||||
// purchase
|
||||
//
|
||||
this.purchase.HeaderText = "거래처";
|
||||
this.purchase.Name = "purchase";
|
||||
//
|
||||
// bank_comp
|
||||
//
|
||||
this.bank_comp.HeaderText = "은행명";
|
||||
this.bank_comp.Name = "bank_comp";
|
||||
//
|
||||
// bank_code
|
||||
//
|
||||
this.bank_code.HeaderText = "코드";
|
||||
this.bank_code.Name = "bank_code";
|
||||
this.bank_code.Width = 40;
|
||||
//
|
||||
// bank_num
|
||||
//
|
||||
this.bank_num.HeaderText = "계좌번호";
|
||||
this.bank_num.Name = "bank_num";
|
||||
this.bank_num.Width = 140;
|
||||
//
|
||||
// bank_name
|
||||
//
|
||||
this.bank_name.HeaderText = "예금주";
|
||||
this.bank_name.Name = "bank_name";
|
||||
this.bank_name.Width = 70;
|
||||
//
|
||||
// send_money
|
||||
//
|
||||
this.send_money.HeaderText = "송금금액";
|
||||
this.send_money.Name = "send_money";
|
||||
//
|
||||
// charge
|
||||
//
|
||||
this.charge.HeaderText = "등록자";
|
||||
this.charge.Name = "charge";
|
||||
this.charge.Width = 70;
|
||||
//
|
||||
// etc
|
||||
//
|
||||
this.etc.HeaderText = "비고";
|
||||
this.etc.Name = "etc";
|
||||
this.etc.Width = 150;
|
||||
//
|
||||
// Remit_reg
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1342, 430);
|
||||
this.Controls.Add(this.tb_etc);
|
||||
this.Controls.Add(this.label10);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.tb_bank_code);
|
||||
this.Controls.Add(this.tb_charge);
|
||||
this.Controls.Add(this.tb_send_money);
|
||||
this.Controls.Add(this.tb_bank_name);
|
||||
this.Controls.Add(this.tb_bank_num);
|
||||
this.Controls.Add(this.tb_bank_comp);
|
||||
this.Controls.Add(this.tb_purchase);
|
||||
this.Controls.Add(this.tb_date_pay);
|
||||
this.Controls.Add(this.tb_list_date);
|
||||
this.Controls.Add(this.cb_remunerate);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.btn_complete);
|
||||
this.Controls.Add(this.btn_Print);
|
||||
this.Controls.Add(this.btn_Excel);
|
||||
this.Controls.Add(this.button5);
|
||||
this.Controls.Add(this.btn_lookup);
|
||||
this.Controls.Add(this.end_Date);
|
||||
this.Controls.Add(this.start_Date);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Name = "Remit_reg";
|
||||
this.Text = "송금내역조회";
|
||||
this.Load += new System.EventHandler(this.Remit_reg_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.DateTimePicker start_Date;
|
||||
private System.Windows.Forms.DateTimePicker end_Date;
|
||||
private System.Windows.Forms.ComboBox cb_remunerate;
|
||||
private System.Windows.Forms.Button btn_lookup;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Button btn_Excel;
|
||||
private System.Windows.Forms.Button btn_Print;
|
||||
private System.Windows.Forms.Button btn_complete;
|
||||
private System.Windows.Forms.TextBox tb_list_date;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox tb_date_pay;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox tb_purchase;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox tb_bank_comp;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox tb_bank_code;
|
||||
private System.Windows.Forms.TextBox tb_bank_num;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox tb_bank_name;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox tb_send_money;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox tb_charge;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.RichTextBox tb_etc;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn chkbox;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn list_date;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn date_pay;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn purchase;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_code;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_num;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_name;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn send_money;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
|
||||
}
|
||||
}
|
||||
167
unimarc/unimarc/회계/Remit_reg.cs
Normal file
167
unimarc/unimarc/회계/Remit_reg.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Remit_reg : Form
|
||||
{
|
||||
Main main;
|
||||
Helper_DB db = new Helper_DB();
|
||||
string compidx;
|
||||
public Remit_reg(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Remit_reg_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
start_Date.Value = new DateTime(int.Parse(DateTime.Now.ToString("yyyy")),
|
||||
int.Parse(DateTime.Now.ToString("MM")), 1);
|
||||
|
||||
string[] combo_list = { "미지급", "지급", "전체" };
|
||||
cb_remunerate.Items.AddRange(combo_list);
|
||||
cb_remunerate.SelectedIndex = 0;
|
||||
|
||||
}
|
||||
private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
|
||||
{
|
||||
Add_Row_CheckBox(sender, e, 1);
|
||||
}
|
||||
private void btn_lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
string Area = "`idx`, `date_reg`, `date_pay`, `purchase`, `bank_comp`, " +
|
||||
"`bank_code`, `bank_num`, `bank_name`, `send_money`, `reg_man`, " +
|
||||
"`etc`";
|
||||
List<string> list_tbl = new List<string>();
|
||||
List<string> list_col = new List<string>();
|
||||
list_tbl.Add("compidx");
|
||||
list_col.Add(compidx);
|
||||
if (cb_remunerate.SelectedIndex == 0|| cb_remunerate.SelectedIndex == 1) {
|
||||
list_tbl.Add("payment");
|
||||
if (cb_remunerate.SelectedIndex == 0) { list_col.Add("False"); }
|
||||
if (cb_remunerate.SelectedIndex == 1) { list_col.Add("True"); }
|
||||
}
|
||||
string[] Search_tbl = list_tbl.ToArray();
|
||||
string[] Search_col = list_col.ToArray();
|
||||
string db_tmp = db.More_DB_Search("Remit_reg", Search_tbl, Search_col, Area);
|
||||
string[] db_data = db_tmp.Split('|');
|
||||
lookup_grid(db_data);
|
||||
|
||||
}
|
||||
void lookup_grid(string[] data)
|
||||
{// 0 1 2 3 4 5 6 7 8 9 10 11
|
||||
string[] test = { "", null, "", "", "", "", "", "", "", "", "", "" };
|
||||
for(int a = 0; a < data.Length; a++)
|
||||
{
|
||||
if (a % 11 == 0) { test[0] = data[a]; }
|
||||
if (a % 11 == 1) { test[2] = data[a]; }
|
||||
if (a % 11 == 2) { test[3] = data[a]; }
|
||||
if (a % 11 == 3) { test[4] = data[a]; }
|
||||
if (a % 11 == 4) { test[5] = data[a]; }
|
||||
if (a % 11 == 5) { test[6] = data[a]; }
|
||||
if (a % 11 == 6) { test[7] = data[a]; }
|
||||
if (a % 11 == 7) { test[8] = data[a]; }
|
||||
if (a % 11 == 8) { test[9] = data[a]; }
|
||||
if (a % 11 == 9) { test[10] = data[a]; }
|
||||
if (a % 11 == 10) { test[11] = data[a]; dataGridView1.Rows.Add(test); }
|
||||
}
|
||||
}
|
||||
private void btn_complete_Click(object sender, EventArgs e)
|
||||
{
|
||||
int[] row_count = grid_chk();
|
||||
string update_tbl = "payment";
|
||||
string update_col = "True";
|
||||
string where_tbl = "idx";
|
||||
for(int a = 0; a < row_count.Length; a++)
|
||||
{
|
||||
string where_col = dataGridView1.Rows[row_count[a]].Cells[0].Value.ToString();
|
||||
db.DB_Update("Remit_reg", update_tbl, update_col, where_tbl, where_col);
|
||||
MessageBox.Show(where_col);
|
||||
}
|
||||
}
|
||||
int[] grid_chk()
|
||||
{
|
||||
List<int> result_list = new List<int>();
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
bool chk = Convert.ToBoolean(dataGridView1.Rows[a].Cells[1].Value);
|
||||
if (chk) { result_list.Add(a); }
|
||||
}
|
||||
int[] result = result_list.ToArray();
|
||||
|
||||
return result;
|
||||
}
|
||||
public void Add_Row_CheckBox(object sender, DataGridViewCellPaintingEventArgs e, int colCount)
|
||||
{
|
||||
if (e.ColumnIndex == colCount && e.RowIndex == -1)
|
||||
{
|
||||
e.PaintBackground(e.ClipBounds, false);
|
||||
|
||||
Point pt = e.CellBounds.Location;
|
||||
|
||||
int nChkBoxWidth = 15;
|
||||
int nChkBoxHeight = 15;
|
||||
int offsetX = (e.CellBounds.Width - nChkBoxWidth) / 2;
|
||||
int offsetY = (e.CellBounds.Height - nChkBoxHeight) / 2;
|
||||
|
||||
pt.X += offsetX;
|
||||
pt.Y += offsetY;
|
||||
|
||||
CheckBox cb = new CheckBox();
|
||||
cb.Size = new Size(nChkBoxWidth, nChkBoxHeight);
|
||||
cb.Location = pt;
|
||||
cb.CheckedChanged += new EventHandler(datagridview_checkBox_Click);
|
||||
((DataGridView)sender).Controls.Add(cb);
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
private void datagridview_checkBox_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (DataGridViewRow r in dataGridView1.Rows)
|
||||
{
|
||||
r.Cells["chkbox"].Value = ((CheckBox)sender).Checked;
|
||||
}
|
||||
}
|
||||
private void btn_Excel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Skill_Grid sg = new Skill_Grid();
|
||||
sg.ExportToExcel(dataGridView1);
|
||||
}
|
||||
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int row = e.RowIndex;
|
||||
int col = e.ColumnIndex;
|
||||
|
||||
if (col == 1) {
|
||||
if (Convert.ToBoolean(dataGridView1.Rows[row].Cells[1].Value)) {
|
||||
dataGridView1.Rows[row].Cells[col].Value = false;
|
||||
}
|
||||
else { dataGridView1.Rows[row].Cells[col].Value = true; }
|
||||
}
|
||||
else {
|
||||
// 우측 텍스트박스에 데이터 삽입
|
||||
tb_list_date.Text = dataGridView1.Rows[row].Cells["list_date"].Value.ToString();
|
||||
tb_date_pay.Text = dataGridView1.Rows[row].Cells["date_pay"].Value.ToString();
|
||||
tb_purchase.Text = dataGridView1.Rows[row].Cells["purchase"].Value.ToString();
|
||||
tb_bank_comp.Text = dataGridView1.Rows[row].Cells["bank_comp"].Value.ToString();
|
||||
tb_bank_code.Text = dataGridView1.Rows[row].Cells["bank_code"].Value.ToString();
|
||||
tb_bank_num.Text = dataGridView1.Rows[row].Cells["bank_num"].Value.ToString();
|
||||
tb_bank_name.Text = dataGridView1.Rows[row].Cells["bank_name"].Value.ToString();
|
||||
tb_send_money.Text = dataGridView1.Rows[row].Cells["send_money"].Value.ToString();
|
||||
tb_charge.Text = dataGridView1.Rows[row].Cells["charge"].Value.ToString();
|
||||
tb_etc.Text = dataGridView1.Rows[row].Cells["etc"].Value.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
156
unimarc/unimarc/회계/Remit_reg.resx
Normal file
156
unimarc/unimarc/회계/Remit_reg.resx
Normal file
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="chkbox.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="list_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="date_pay.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="purchase.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="send_money.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="charge.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>
|
||||
469
unimarc/unimarc/회계/Remit_reg2.Designer.cs
generated
Normal file
469
unimarc/unimarc/회계/Remit_reg2.Designer.cs
generated
Normal file
@@ -0,0 +1,469 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Remit_reg2
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.cb_remunerate = new System.Windows.Forms.ComboBox();
|
||||
this.btn_delete = new System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.date_res = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.purchase = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.bank_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.send_money = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.date_pay = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.tb_bank_code = new System.Windows.Forms.TextBox();
|
||||
this.tb_bank = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.btn_excel = new System.Windows.Forms.Button();
|
||||
this.btn_save = new System.Windows.Forms.Button();
|
||||
this.btn_lookup = new System.Windows.Forms.Button();
|
||||
this.btn_Add = new System.Windows.Forms.Button();
|
||||
this.tb_send_money = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.tb_etc = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.tb_bank_boss = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.tb_bank_num = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.tb_now_money = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.tb_purchase = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.end_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.start_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.list_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// cb_remunerate
|
||||
//
|
||||
this.cb_remunerate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_remunerate.FormattingEnabled = true;
|
||||
this.cb_remunerate.Location = new System.Drawing.Point(515, 224);
|
||||
this.cb_remunerate.Name = "cb_remunerate";
|
||||
this.cb_remunerate.Size = new System.Drawing.Size(71, 20);
|
||||
this.cb_remunerate.TabIndex = 14;
|
||||
//
|
||||
// btn_delete
|
||||
//
|
||||
this.btn_delete.Location = new System.Drawing.Point(185, 223);
|
||||
this.btn_delete.Name = "btn_delete";
|
||||
this.btn_delete.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_delete.TabIndex = 11;
|
||||
this.btn_delete.Text = "삭 제";
|
||||
this.btn_delete.UseVisualStyleBackColor = true;
|
||||
this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);
|
||||
//
|
||||
// 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.date_res,
|
||||
this.purchase,
|
||||
this.bank_comp,
|
||||
this.bank_code,
|
||||
this.bank_num,
|
||||
this.bank_name,
|
||||
this.send_money,
|
||||
this.date_pay,
|
||||
this.etc});
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(23, 252);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 21;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(860, 150);
|
||||
this.dataGridView1.TabIndex = 17;
|
||||
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
//
|
||||
// date_res
|
||||
//
|
||||
this.date_res.HeaderText = "등록일자";
|
||||
this.date_res.Name = "date_res";
|
||||
this.date_res.Width = 85;
|
||||
//
|
||||
// purchase
|
||||
//
|
||||
this.purchase.HeaderText = "거래처";
|
||||
this.purchase.Name = "purchase";
|
||||
//
|
||||
// bank_comp
|
||||
//
|
||||
this.bank_comp.HeaderText = "은행명";
|
||||
this.bank_comp.Name = "bank_comp";
|
||||
//
|
||||
// bank_code
|
||||
//
|
||||
this.bank_code.HeaderText = "은행코드";
|
||||
this.bank_code.Name = "bank_code";
|
||||
this.bank_code.Visible = false;
|
||||
//
|
||||
// bank_num
|
||||
//
|
||||
this.bank_num.HeaderText = "계좌번호";
|
||||
this.bank_num.Name = "bank_num";
|
||||
this.bank_num.Width = 130;
|
||||
//
|
||||
// bank_name
|
||||
//
|
||||
this.bank_name.HeaderText = "예금주";
|
||||
this.bank_name.Name = "bank_name";
|
||||
//
|
||||
// send_money
|
||||
//
|
||||
this.send_money.HeaderText = "송금금액";
|
||||
this.send_money.Name = "send_money";
|
||||
//
|
||||
// date_pay
|
||||
//
|
||||
this.date_pay.HeaderText = "결제일자";
|
||||
this.date_pay.Name = "date_pay";
|
||||
this.date_pay.Width = 85;
|
||||
//
|
||||
// etc
|
||||
//
|
||||
this.etc.HeaderText = "비고";
|
||||
this.etc.Name = "etc";
|
||||
this.etc.Width = 120;
|
||||
//
|
||||
// tb_bank_code
|
||||
//
|
||||
this.tb_bank_code.Location = new System.Drawing.Point(254, 77);
|
||||
this.tb_bank_code.Name = "tb_bank_code";
|
||||
this.tb_bank_code.Size = new System.Drawing.Size(108, 21);
|
||||
this.tb_bank_code.TabIndex = 4;
|
||||
//
|
||||
// tb_bank
|
||||
//
|
||||
this.tb_bank.Location = new System.Drawing.Point(85, 77);
|
||||
this.tb_bank.Name = "tb_bank";
|
||||
this.tb_bank.Size = new System.Drawing.Size(163, 21);
|
||||
this.tb_bank.TabIndex = 3;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(36, 81);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(41, 12);
|
||||
this.label4.TabIndex = 53;
|
||||
this.label4.Text = "은행명";
|
||||
//
|
||||
// btn_excel
|
||||
//
|
||||
this.btn_excel.Location = new System.Drawing.Point(673, 223);
|
||||
this.btn_excel.Name = "btn_excel";
|
||||
this.btn_excel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_excel.TabIndex = 16;
|
||||
this.btn_excel.Text = "엑 셀";
|
||||
this.btn_excel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_save
|
||||
//
|
||||
this.btn_save.Location = new System.Drawing.Point(104, 223);
|
||||
this.btn_save.Name = "btn_save";
|
||||
this.btn_save.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_save.TabIndex = 9;
|
||||
this.btn_save.Text = "저 장";
|
||||
this.btn_save.UseVisualStyleBackColor = true;
|
||||
this.btn_save.Click += new System.EventHandler(this.btn_save_Click);
|
||||
//
|
||||
// btn_lookup
|
||||
//
|
||||
this.btn_lookup.Location = new System.Drawing.Point(592, 223);
|
||||
this.btn_lookup.Name = "btn_lookup";
|
||||
this.btn_lookup.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_lookup.TabIndex = 15;
|
||||
this.btn_lookup.Text = "조 회";
|
||||
this.btn_lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
|
||||
//
|
||||
// btn_Add
|
||||
//
|
||||
this.btn_Add.Location = new System.Drawing.Point(23, 223);
|
||||
this.btn_Add.Name = "btn_Add";
|
||||
this.btn_Add.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Add.TabIndex = 10;
|
||||
this.btn_Add.Text = "추 가";
|
||||
this.btn_Add.UseVisualStyleBackColor = true;
|
||||
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
|
||||
//
|
||||
// tb_send_money
|
||||
//
|
||||
this.tb_send_money.Location = new System.Drawing.Point(85, 133);
|
||||
this.tb_send_money.Name = "tb_send_money";
|
||||
this.tb_send_money.Size = new System.Drawing.Size(163, 21);
|
||||
this.tb_send_money.TabIndex = 7;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(24, 137);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(53, 12);
|
||||
this.label8.TabIndex = 41;
|
||||
this.label8.Text = "송금금액";
|
||||
//
|
||||
// tb_etc
|
||||
//
|
||||
this.tb_etc.Location = new System.Drawing.Point(85, 161);
|
||||
this.tb_etc.Multiline = true;
|
||||
this.tb_etc.Name = "tb_etc";
|
||||
this.tb_etc.Size = new System.Drawing.Size(663, 56);
|
||||
this.tb_etc.TabIndex = 8;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(32, 165);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(45, 12);
|
||||
this.label7.TabIndex = 42;
|
||||
this.label7.Text = "비 고";
|
||||
//
|
||||
// tb_bank_boss
|
||||
//
|
||||
this.tb_bank_boss.Location = new System.Drawing.Point(436, 105);
|
||||
this.tb_bank_boss.Name = "tb_bank_boss";
|
||||
this.tb_bank_boss.Size = new System.Drawing.Size(280, 21);
|
||||
this.tb_bank_boss.TabIndex = 6;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(389, 109);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(41, 12);
|
||||
this.label5.TabIndex = 40;
|
||||
this.label5.Text = "예금주";
|
||||
//
|
||||
// tb_bank_num
|
||||
//
|
||||
this.tb_bank_num.Location = new System.Drawing.Point(85, 105);
|
||||
this.tb_bank_num.Name = "tb_bank_num";
|
||||
this.tb_bank_num.Size = new System.Drawing.Size(280, 21);
|
||||
this.tb_bank_num.TabIndex = 5;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(24, 109);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(53, 12);
|
||||
this.label6.TabIndex = 39;
|
||||
this.label6.Text = "계좌번호";
|
||||
//
|
||||
// tb_now_money
|
||||
//
|
||||
this.tb_now_money.BackColor = System.Drawing.SystemColors.Info;
|
||||
this.tb_now_money.Location = new System.Drawing.Point(436, 49);
|
||||
this.tb_now_money.Name = "tb_now_money";
|
||||
this.tb_now_money.Size = new System.Drawing.Size(150, 21);
|
||||
this.tb_now_money.TabIndex = 2;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(385, 53);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(45, 12);
|
||||
this.label2.TabIndex = 38;
|
||||
this.label2.Text = "현 잔액";
|
||||
//
|
||||
// tb_purchase
|
||||
//
|
||||
this.tb_purchase.Location = new System.Drawing.Point(85, 49);
|
||||
this.tb_purchase.Name = "tb_purchase";
|
||||
this.tb_purchase.Size = new System.Drawing.Size(277, 21);
|
||||
this.tb_purchase.TabIndex = 1;
|
||||
this.tb_purchase.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_purchase_KeyDown);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 53);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(65, 12);
|
||||
this.label3.TabIndex = 37;
|
||||
this.label3.Text = "매입거래처";
|
||||
//
|
||||
// end_Date
|
||||
//
|
||||
this.end_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.end_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.end_Date.Location = new System.Drawing.Point(424, 224);
|
||||
this.end_Date.Name = "end_Date";
|
||||
this.end_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.end_Date.TabIndex = 13;
|
||||
//
|
||||
// start_Date
|
||||
//
|
||||
this.start_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.start_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.start_Date.Location = new System.Drawing.Point(333, 224);
|
||||
this.start_Date.Name = "start_Date";
|
||||
this.start_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.start_Date.TabIndex = 12;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(272, 228);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(53, 12);
|
||||
this.label9.TabIndex = 33;
|
||||
this.label9.Text = "등록일자";
|
||||
//
|
||||
// list_Date
|
||||
//
|
||||
this.list_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.list_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.list_Date.Location = new System.Drawing.Point(85, 21);
|
||||
this.list_Date.Name = "list_Date";
|
||||
this.list_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.list_Date.TabIndex = 0;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(24, 25);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 32;
|
||||
this.label1.Text = "등록일자";
|
||||
//
|
||||
// Remit_reg2
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(895, 423);
|
||||
this.Controls.Add(this.cb_remunerate);
|
||||
this.Controls.Add(this.btn_delete);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.tb_bank_code);
|
||||
this.Controls.Add(this.tb_bank);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.btn_excel);
|
||||
this.Controls.Add(this.btn_save);
|
||||
this.Controls.Add(this.btn_lookup);
|
||||
this.Controls.Add(this.btn_Add);
|
||||
this.Controls.Add(this.tb_send_money);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.tb_etc);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.tb_bank_boss);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.tb_bank_num);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.tb_now_money);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.tb_purchase);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.end_Date);
|
||||
this.Controls.Add(this.start_Date);
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.list_Date);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "Remit_reg2";
|
||||
this.Text = "송금등록";
|
||||
this.Load += new System.EventHandler(this.Remit_reg2_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ComboBox cb_remunerate;
|
||||
private System.Windows.Forms.Button btn_delete;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.TextBox tb_bank_code;
|
||||
private System.Windows.Forms.TextBox tb_bank;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Button btn_excel;
|
||||
private System.Windows.Forms.Button btn_save;
|
||||
private System.Windows.Forms.Button btn_lookup;
|
||||
private System.Windows.Forms.Button btn_Add;
|
||||
private System.Windows.Forms.TextBox tb_send_money;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.TextBox tb_etc;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox tb_bank_boss;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox tb_bank_num;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox tb_now_money;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.DateTimePicker end_Date;
|
||||
private System.Windows.Forms.DateTimePicker start_Date;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.DateTimePicker list_Date;
|
||||
private System.Windows.Forms.Label label1;
|
||||
public System.Windows.Forms.TextBox tb_purchase;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn date_res;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn purchase;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_code;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_num;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn bank_name;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn send_money;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn date_pay;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
|
||||
}
|
||||
}
|
||||
196
unimarc/unimarc/회계/Remit_reg2.cs
Normal file
196
unimarc/unimarc/회계/Remit_reg2.cs
Normal file
@@ -0,0 +1,196 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Text.RegularExpressions;
|
||||
using WindowsFormsApp1.Delivery;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
// 송금 등록
|
||||
public partial class Remit_reg2 : Form
|
||||
{
|
||||
Main main;
|
||||
Helper_DB db = new Helper_DB();
|
||||
public string compidx = "";
|
||||
public Remit_reg2(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Remit_reg2_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
|
||||
start_Date.Value = new DateTime(int.Parse(DateTime.Now.ToString("yyyy")),
|
||||
int.Parse(DateTime.Now.ToString("MM")), 1);
|
||||
|
||||
string[] remunerate = { "미지급", "지급", "전체" };
|
||||
cb_remunerate.Items.AddRange(remunerate);
|
||||
cb_remunerate.SelectedIndex = 0;
|
||||
|
||||
btn_lookup_Click(null, null);
|
||||
}
|
||||
private void btn_Add_Click(object sender, EventArgs e)
|
||||
{
|
||||
list_Date.Value = new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day);
|
||||
tb_purchase.Text = "";
|
||||
tb_now_money.Text = "";
|
||||
|
||||
tb_bank.Text = "";
|
||||
tb_bank_code.Text = "";
|
||||
tb_bank_num.Text = "";
|
||||
tb_bank_boss.Text = "";
|
||||
tb_send_money.Text = "";
|
||||
tb_etc.Text = "";
|
||||
}
|
||||
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
Skill_Grid _Grid = new Skill_Grid();
|
||||
_Grid.Print_Grid_Num(sender, e);
|
||||
}
|
||||
private void tb_purchase_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
Order_input_Search search = new Order_input_Search(this);
|
||||
search.Where_Open = "Order";
|
||||
search.TopMost = true;
|
||||
search.Show();
|
||||
}
|
||||
}
|
||||
public void mk_base(string purchase)
|
||||
{
|
||||
if (purchase == "") { return; }
|
||||
string[] sear_tbl = { "comparyidx", "sangho" };
|
||||
string[] sear_col = { compidx, purchase };
|
||||
string Area = "`bank_comp`, `bank_code`, `bank_no`, `bank_name`";
|
||||
string db_tmp = db.More_DB_Search("Purchase", sear_tbl, sear_col, Area);
|
||||
string[] db_data = db_tmp.Split('|');
|
||||
|
||||
tb_bank.Text = db_data[0];
|
||||
tb_bank_code.Text = db_data[1];
|
||||
tb_bank_num.Text = db_data[2];
|
||||
tb_bank_boss.Text = db_data[3];
|
||||
}
|
||||
private void btn_save_Click(object sender, EventArgs e)
|
||||
{
|
||||
string date = list_Date.Value.ToString().Substring(0, 10);
|
||||
// 회사idx 등록일자 매입거래처 은행명 은행코드
|
||||
// 계좌번호 예금주 송금금액 비고
|
||||
string[] input_table = {"compidx", "date_reg", "purchase", "bank_comp", "bank_code",
|
||||
"bank_num", "bank_name", "send_money", "etc", "payment",
|
||||
"reg_man" };
|
||||
string[] input_data = { compidx, date, tb_purchase.Text, tb_bank.Text, tb_bank_code.Text,
|
||||
tb_bank_num.Text, tb_bank_boss.Text, tb_send_money.Text, tb_etc.Text, "False",
|
||||
main.User };
|
||||
db.DB_INSERT("Remit_reg", input_table, input_data);
|
||||
|
||||
MessageBox.Show("성공적으로 저장되었습니다.");
|
||||
Add_Grid();
|
||||
}
|
||||
void Add_Grid()
|
||||
{
|
||||
string date = list_Date.Value.ToString().Substring(0, 10);
|
||||
string[] grid_data = { date, tb_purchase.Text, tb_bank.Text, tb_bank_num.Text, tb_bank_boss.Text,
|
||||
tb_send_money.Text, "", tb_etc.Text };
|
||||
dataGridView1.Rows.Add(grid_data);
|
||||
}
|
||||
private void btn_delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
string date = list_Date.Value.ToString().Substring(0, 10);
|
||||
string target_idx = "compidx";
|
||||
string[] target_table = {"date_reg", "purchase", "bank_comp", "bank_code",
|
||||
"bank_num", "bank_name", "send_money", "etc" };
|
||||
string[] target_data = { date, tb_purchase.Text, tb_bank.Text, tb_bank_code.Text,
|
||||
tb_bank_num.Text, tb_bank_boss.Text, tb_send_money.Text, tb_etc.Text };
|
||||
|
||||
if (MessageBox.Show("정말 삭제하시겠습니까?", "경고", MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
db.DB_Delete_More_term("Remit_reg", target_idx, compidx, target_table, target_data);
|
||||
MessageBox.Show("삭제되었습니다.");
|
||||
}
|
||||
}
|
||||
private void btn_lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
string Area = "`date_reg`, `purchase`, `bank_comp`, `bank_code`, `bank_num`, " +
|
||||
"`bank_name`, `send_money`, `date_pay`, `etc`";
|
||||
List<string> list_tbl = new List<string>();
|
||||
List<string> list_col = new List<string>();
|
||||
list_tbl.Add("compidx");
|
||||
list_col.Add(compidx);
|
||||
if (cb_remunerate.SelectedIndex == 0 || cb_remunerate.SelectedIndex == 1)
|
||||
{
|
||||
list_tbl.Add("payment");
|
||||
if (cb_remunerate.SelectedIndex == 0) { list_col.Add("False"); }
|
||||
if (cb_remunerate.SelectedIndex == 1) { list_col.Add("True"); }
|
||||
}
|
||||
string[] Search_tbl = list_tbl.ToArray();
|
||||
string[] Search_col = list_col.ToArray();
|
||||
string db_tmp = db.More_DB_Search("Remit_reg", Search_tbl, Search_col, Area);
|
||||
string[] db_data = db_tmp.Split('|');
|
||||
lookup_grid(db_data);
|
||||
}
|
||||
void lookup_grid(string[] data)
|
||||
{
|
||||
string[] grid = { "", "", "", "", "", "", "", "", "" };
|
||||
for (int a = 0; a < data.Length; a++)
|
||||
{
|
||||
if (a % 9 == 0) { grid[0] = data[a]; }
|
||||
if (a % 9 == 1) { grid[1] = data[a]; }
|
||||
if (a % 9 == 2) { grid[2] = data[a]; }
|
||||
if (a % 9 == 3) { grid[3] = data[a]; }
|
||||
if (a % 9 == 4) { grid[4] = data[a]; }
|
||||
if (a % 9 == 5) { grid[5] = data[a]; }
|
||||
if (a % 9 == 6) { grid[6] = data[a]; }
|
||||
if (a % 9 == 7) { grid[7] = data[a]; }
|
||||
if (a % 9 == 8)
|
||||
{
|
||||
grid[8] = data[a];
|
||||
if (filter_date(grid[0]) == true) { dataGridView1.Rows.Add(grid); }
|
||||
}
|
||||
}
|
||||
}
|
||||
bool filter_date(string date)
|
||||
{
|
||||
string str_start = start_Date.Value.ToString().Substring(0, 10);
|
||||
string str_end = end_Date.Value.ToString().Substring(0, 10);
|
||||
string target = date.Substring(0, 10);
|
||||
|
||||
if (DateTime.Parse(str_start) <= DateTime.Parse(target) &&
|
||||
DateTime.Parse(target) <= DateTime.Parse(str_end))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int row = e.RowIndex;
|
||||
|
||||
string date = dataGridView1.Rows[row].Cells["date_res"].Value.ToString();
|
||||
date = Regex.Replace(date, @"\D", "");
|
||||
|
||||
int date_year = Convert.ToInt32(date.Substring(0, 4));
|
||||
int date_month = Convert.ToInt32(date.Substring(4, 2));
|
||||
int date_day = Convert.ToInt32(date.Substring(6, 2));
|
||||
|
||||
list_Date.Value = new DateTime(date_year, date_month, date_day);
|
||||
tb_purchase.Text = dataGridView1.Rows[row].Cells["purchase"].Value.ToString();
|
||||
tb_bank.Text = dataGridView1.Rows[row].Cells["bank_comp"].Value.ToString();
|
||||
tb_bank_code.Text = dataGridView1.Rows[row].Cells["bank_code"].Value.ToString();
|
||||
tb_bank_num.Text = dataGridView1.Rows[row].Cells["bank_num"].Value.ToString();
|
||||
tb_bank_boss.Text = dataGridView1.Rows[row].Cells["bank_name"].Value.ToString();
|
||||
tb_send_money.Text = dataGridView1.Rows[row].Cells["send_money"].Value.ToString();
|
||||
tb_etc.Text = dataGridView1.Rows[row].Cells["etc"].Value.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
147
unimarc/unimarc/회계/Remit_reg2.resx
Normal file
147
unimarc/unimarc/회계/Remit_reg2.resx
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="date_res.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="purchase.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bank_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="send_money.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="date_pay.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>
|
||||
373
unimarc/unimarc/회계/Sales_Book.Designer.cs
generated
Normal file
373
unimarc/unimarc/회계/Sales_Book.Designer.cs
generated
Normal file
@@ -0,0 +1,373 @@
|
||||
|
||||
namespace WindowsFormsApp1.회계
|
||||
{
|
||||
partial class Sales_Book
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle 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();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.tb_clt = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.Start_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.End_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.btn_Lookup = new System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.out_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.content = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.out_per = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.out_price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
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();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.tb_clt);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
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.Location = new System.Drawing.Point(12, 12);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(778, 40);
|
||||
this.panel1.TabIndex = 93;
|
||||
//
|
||||
// tb_clt
|
||||
//
|
||||
this.tb_clt.Location = new System.Drawing.Point(359, 9);
|
||||
this.tb_clt.Name = "tb_clt";
|
||||
this.tb_clt.Size = new System.Drawing.Size(208, 21);
|
||||
this.tb_clt.TabIndex = 83;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(292, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(65, 12);
|
||||
this.label1.TabIndex = 82;
|
||||
this.label1.Text = "매출거래처";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(161, 13);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(14, 12);
|
||||
this.label4.TabIndex = 37;
|
||||
this.label4.Text = "~";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
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;
|
||||
this.label2.Text = "조회기간";
|
||||
//
|
||||
// Start_Date
|
||||
//
|
||||
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;
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(684, 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);
|
||||
//
|
||||
// End_Date
|
||||
//
|
||||
this.End_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.End_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.End_Date.Location = new System.Drawing.Point(181, 9);
|
||||
this.End_Date.Name = "End_Date";
|
||||
this.End_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.End_Date.TabIndex = 39;
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(593, 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);
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
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;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.out_date,
|
||||
this.content,
|
||||
this.count,
|
||||
this.out_per,
|
||||
this.out_price,
|
||||
this.in_price,
|
||||
this.now_money,
|
||||
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(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
|
||||
//
|
||||
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;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Enabled = false;
|
||||
this.textBox2.Location = new System.Drawing.Point(32, 488);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(81, 21);
|
||||
this.textBox2.TabIndex = 95;
|
||||
this.textBox2.Text = "합계";
|
||||
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new System.Drawing.Point(112, 488);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(301, 21);
|
||||
this.textBox1.TabIndex = 95;
|
||||
//
|
||||
// tb_count
|
||||
//
|
||||
this.tb_count.Enabled = false;
|
||||
this.tb_count.Location = new System.Drawing.Point(412, 488);
|
||||
this.tb_count.Name = "tb_count";
|
||||
this.tb_count.Size = new System.Drawing.Size(41, 21);
|
||||
this.tb_count.TabIndex = 95;
|
||||
this.tb_count.Text = "0";
|
||||
this.tb_count.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_count.TextChanged += new System.EventHandler(this.tb_count_TextChanged);
|
||||
//
|
||||
// textBox6
|
||||
//
|
||||
this.textBox6.Enabled = false;
|
||||
this.textBox6.Location = new System.Drawing.Point(452, 488);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(61, 21);
|
||||
this.textBox6.TabIndex = 95;
|
||||
//
|
||||
// tb_out
|
||||
//
|
||||
this.tb_out.Enabled = false;
|
||||
this.tb_out.Location = new System.Drawing.Point(512, 488);
|
||||
this.tb_out.Name = "tb_out";
|
||||
this.tb_out.Size = new System.Drawing.Size(81, 21);
|
||||
this.tb_out.TabIndex = 95;
|
||||
this.tb_out.Text = "0";
|
||||
this.tb_out.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_out.TextChanged += new System.EventHandler(this.tb_count_TextChanged);
|
||||
//
|
||||
// tb_in
|
||||
//
|
||||
this.tb_in.Enabled = false;
|
||||
this.tb_in.Location = new System.Drawing.Point(592, 488);
|
||||
this.tb_in.Name = "tb_in";
|
||||
this.tb_in.Size = new System.Drawing.Size(81, 21);
|
||||
this.tb_in.TabIndex = 95;
|
||||
this.tb_in.Text = "0";
|
||||
this.tb_in.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_in.TextChanged += new System.EventHandler(this.tb_count_TextChanged);
|
||||
//
|
||||
// textBox9
|
||||
//
|
||||
this.textBox9.Enabled = false;
|
||||
this.textBox9.Location = new System.Drawing.Point(672, 488);
|
||||
this.textBox9.Name = "textBox9";
|
||||
this.textBox9.Size = new System.Drawing.Size(81, 21);
|
||||
this.textBox9.TabIndex = 95;
|
||||
//
|
||||
// textBox10
|
||||
//
|
||||
this.textBox10.Enabled = false;
|
||||
this.textBox10.Location = new System.Drawing.Point(752, 488);
|
||||
this.textBox10.Name = "textBox10";
|
||||
this.textBox10.Size = new System.Drawing.Size(202, 21);
|
||||
this.textBox10.TabIndex = 95;
|
||||
//
|
||||
// Sales_Book
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(984, 517);
|
||||
this.Controls.Add(this.textBox10);
|
||||
this.Controls.Add(this.textBox9);
|
||||
this.Controls.Add(this.tb_in);
|
||||
this.Controls.Add(this.tb_out);
|
||||
this.Controls.Add(this.textBox6);
|
||||
this.Controls.Add(this.tb_count);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "Sales_Book";
|
||||
this.Text = "매출 장부";
|
||||
this.Load += new System.EventHandler(this.Sales_Book_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
public System.Windows.Forms.Button btn_Lookup;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox tb_count;
|
||||
private System.Windows.Forms.TextBox textBox6;
|
||||
private System.Windows.Forms.TextBox tb_out;
|
||||
private System.Windows.Forms.TextBox tb_in;
|
||||
private System.Windows.Forms.TextBox textBox9;
|
||||
private System.Windows.Forms.TextBox textBox10;
|
||||
public System.Windows.Forms.DateTimePicker Start_Date;
|
||||
public System.Windows.Forms.DateTimePicker End_Date;
|
||||
public System.Windows.Forms.TextBox tb_clt;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn out_date;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn content;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn count;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn out_per;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn out_price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn in_price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn now_money;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
|
||||
}
|
||||
}
|
||||
214
unimarc/unimarc/회계/Sales_Book.cs
Normal file
214
unimarc/unimarc/회계/Sales_Book.cs
Normal file
@@ -0,0 +1,214 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WindowsFormsApp1.Account;
|
||||
|
||||
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(Sales_Deposit _sd)
|
||||
{
|
||||
InitializeComponent();
|
||||
sd = _sd;
|
||||
compidx = sd.compidx;
|
||||
}
|
||||
public Sales_Book(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Sales_Book_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
}
|
||||
public void btn_Lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
// grid
|
||||
// [0]매출일자 / [1]내용 / [2]수량 / [3]출고율 / [4]매출금액 / [5]입금액 / [6]현잔액 / [7]비고
|
||||
string[] grid = { "", "", "", "", "", "", "0", "" };
|
||||
// db
|
||||
// [0]매출일자 / [1]책이름 / [2]수량 / [3]출고율 / [4]매출금액 / [5]입금액 / [6]비고 / [7]입금구분
|
||||
string Area = "`date`, `book_name`, `count`, `out_per`, `out_price`, `deposit`, `etc`, `gu`";
|
||||
string[] sear_col = { "compidx", "client" };
|
||||
string[] sear_data = { compidx, tb_clt.Text };
|
||||
string db_tmp = db.More_DB_Search("Sales", sear_col, sear_data, Area);
|
||||
string[] ary = db_tmp.Split('|');
|
||||
input_grid(grid, ary);
|
||||
}
|
||||
#region btn_Lookup_Click_Sub
|
||||
private void input_grid(string[] grid, string[] db)
|
||||
{
|
||||
int count = 8;
|
||||
for(int a = 0; a < db.Length; a++)
|
||||
{
|
||||
if (a % count == 0) { grid[0] = db[a]; }
|
||||
if (a % count == 1) { grid[1] = db[a]; }
|
||||
if (a % count == 2) { grid[2] = db[a]; }
|
||||
if (a % count == 3) { grid[3] = db[a]; }
|
||||
if (a % count == 4) { grid[4] = db[a]; }
|
||||
if (a % count == 5) { grid[5] = db[a]; }
|
||||
if (a % count == 6) { grid[7] = db[a]; }
|
||||
if (a % count == 7) {
|
||||
if (db[a] != "") {
|
||||
grid[1] = "입금 " + db[a];
|
||||
}
|
||||
set_grid(grid);
|
||||
}
|
||||
}
|
||||
set_now_money(dataGridView1.Rows.Count);
|
||||
}
|
||||
private void set_grid(string[] grid)
|
||||
{
|
||||
DateTime start = Start_Date.Value;
|
||||
DateTime end = End_Date.Value;
|
||||
DateTime sear = Convert.ToDateTime(grid[0]);
|
||||
|
||||
bool date_chk = false;
|
||||
|
||||
if (sear >= start && sear < end) { date_chk = true; }
|
||||
if (sear > end) { return; }
|
||||
|
||||
int row = accord_grid(grid);
|
||||
if (date_chk)
|
||||
{
|
||||
int out_price = Convert.ToInt32(grid[4]);
|
||||
int in_price = Convert.ToInt32(grid[5]);
|
||||
if (row > 0) {
|
||||
int ori_out_price = Convert.ToInt32(dataGridView1.Rows[row].Cells["out_price"].Value.ToString());
|
||||
int ori_in_price = Convert.ToInt32(dataGridView1.Rows[row].Cells["in_price"].Value.ToString());
|
||||
|
||||
out_price += ori_out_price;
|
||||
in_price += ori_in_price;
|
||||
|
||||
dataGridView1.Rows[row].Cells["out_price"].Value = out_price.ToString();
|
||||
dataGridView1.Rows[row].Cells["in_price"].Value = in_price.ToString();
|
||||
}
|
||||
if (row <= 0) {
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
else if (!date_chk)
|
||||
{
|
||||
set_remain(grid, row);
|
||||
}
|
||||
}
|
||||
private void set_remain(string[] grid, int row)
|
||||
{
|
||||
if (dataGridView1.Rows.Count <= 0) {
|
||||
string[] grid_base = { "이월미수금", "", "", "", "", "", "0", "" };
|
||||
dataGridView1.Rows.Add(grid_base);
|
||||
}
|
||||
int out_price = Convert.ToInt32(grid[4]);
|
||||
int in_price = Convert.ToInt32(grid[5]);
|
||||
int result = Convert.ToInt32(dataGridView1.Rows[row].Cells["now_money"].Value.ToString());
|
||||
result += out_price - in_price;
|
||||
dataGridView1.Rows[0].Cells["now_money"].Value = result.ToString();
|
||||
}
|
||||
private void set_now_money(int count)
|
||||
{
|
||||
for(int a = 0; a < count; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[0].Cells["out_date"].Value.ToString() != "이월미수금") {
|
||||
string[] grid_base = { "이월미수금", "", "", "", "", "", "0", "" };
|
||||
dataGridView1.Rows.Insert(0, grid_base);
|
||||
count++;
|
||||
}
|
||||
|
||||
int money_idx = a - 1;
|
||||
if (a - 1 < 1) { money_idx = 0; }
|
||||
if (a < 1) { continue; }
|
||||
|
||||
int cout = Convert.ToInt32(dataGridView1.Rows[a].Cells["count"].Value.ToString());
|
||||
int out_price = Convert.ToInt32(dataGridView1.Rows[a].Cells["out_price"].Value.ToString());
|
||||
int in_price = Convert.ToInt32(dataGridView1.Rows[a].Cells["in_price"].Value.ToString());
|
||||
int money = Convert.ToInt32(dataGridView1.Rows[money_idx].Cells["now_money"].Value.ToString());
|
||||
|
||||
set_total(cout, out_price, in_price);
|
||||
|
||||
money += out_price - in_price;
|
||||
|
||||
dataGridView1.Rows[a].Cells["now_money"].Value = money.ToString();
|
||||
}
|
||||
}
|
||||
private void set_total(int count, int out_price, int in_price)
|
||||
{
|
||||
int text_count = Convert.ToInt32(tb_count.Text.Replace(",", ""));
|
||||
int text_out = Convert.ToInt32(tb_out.Text.Replace(",", ""));
|
||||
int text_in = Convert.ToInt32(tb_in.Text.Replace(",", ""));
|
||||
|
||||
text_count += count;
|
||||
text_out += out_price;
|
||||
text_in += in_price;
|
||||
|
||||
tb_count.Text = text_count.ToString();
|
||||
tb_out.Text = text_out.ToString();
|
||||
tb_in.Text = text_in.ToString();
|
||||
}
|
||||
private int accord_grid(string[] grid)
|
||||
{
|
||||
int result = 0;
|
||||
bool[] check_list = { false, false, false };
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["out_date"].Value.ToString() == grid[0]) {
|
||||
check_list[0] = true;
|
||||
}
|
||||
if (dataGridView1.Rows[a].Cells["out_per"].Value.ToString() == grid[3]) {
|
||||
check_list[1] = true;
|
||||
}
|
||||
if (dataGridView1.Rows[a].Cells["etc"].Value.ToString() == grid[7]) {
|
||||
check_list[2] = true;
|
||||
}
|
||||
if (check_list[0] && check_list[1] && check_list[2]) {
|
||||
result = a;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
private void tb_count_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
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 = this.MdiParent;
|
||||
sde.WindowState = FormWindowState.Maximized;
|
||||
sde.Out_Date.Value = new DateTime(yesr, month, day);
|
||||
sde.tb_clt.Text = tb_clt.Text;
|
||||
sde.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
144
unimarc/unimarc/회계/Sales_Book.resx
Normal file
144
unimarc/unimarc/회계/Sales_Book.resx
Normal file
@@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="out_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="content.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="out_per.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="out_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="in_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="now_money.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>
|
||||
382
unimarc/unimarc/회계/Sales_Deposit.Designer.cs
generated
Normal file
382
unimarc/unimarc/회계/Sales_Deposit.Designer.cs
generated
Normal file
@@ -0,0 +1,382 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Sales_Deposit
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.rb_clt = new System.Windows.Forms.RadioButton();
|
||||
this.rb_Date = new System.Windows.Forms.RadioButton();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.Start_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.End_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.btn_Lookup = new System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.Grid0 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Grid1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Grid2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Grid3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Grid4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Grid5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Grid6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Grid7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.tb_grid1 = new System.Windows.Forms.TextBox();
|
||||
this.tb_grid2 = new System.Windows.Forms.TextBox();
|
||||
this.tb_grid3 = new System.Windows.Forms.TextBox();
|
||||
this.tb_grid4 = new System.Windows.Forms.TextBox();
|
||||
this.tb_grid5 = new System.Windows.Forms.TextBox();
|
||||
this.tb_grid6 = new System.Windows.Forms.TextBox();
|
||||
this.tb_grid7 = new System.Windows.Forms.TextBox();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.rb_clt);
|
||||
this.panel1.Controls.Add(this.rb_Date);
|
||||
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.Location = new System.Drawing.Point(12, 12);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(691, 40);
|
||||
this.panel1.TabIndex = 84;
|
||||
//
|
||||
// rb_clt
|
||||
//
|
||||
this.rb_clt.AutoSize = true;
|
||||
this.rb_clt.Location = new System.Drawing.Point(377, 12);
|
||||
this.rb_clt.Name = "rb_clt";
|
||||
this.rb_clt.Size = new System.Drawing.Size(71, 16);
|
||||
this.rb_clt.TabIndex = 82;
|
||||
this.rb_clt.TabStop = true;
|
||||
this.rb_clt.Text = "거래처별";
|
||||
this.rb_clt.UseVisualStyleBackColor = true;
|
||||
this.rb_clt.CheckedChanged += new System.EventHandler(this.radio_Button_CheckedChanged);
|
||||
//
|
||||
// rb_Date
|
||||
//
|
||||
this.rb_Date.AutoSize = true;
|
||||
this.rb_Date.Location = new System.Drawing.Point(309, 12);
|
||||
this.rb_Date.Name = "rb_Date";
|
||||
this.rb_Date.Size = new System.Drawing.Size(59, 16);
|
||||
this.rb_Date.TabIndex = 82;
|
||||
this.rb_Date.TabStop = true;
|
||||
this.rb_Date.Text = "일자별";
|
||||
this.rb_Date.UseVisualStyleBackColor = true;
|
||||
this.rb_Date.CheckedChanged += new System.EventHandler(this.radio_Button_CheckedChanged);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(161, 13);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(14, 12);
|
||||
this.label4.TabIndex = 37;
|
||||
this.label4.Text = "~";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
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;
|
||||
this.label2.Text = "조회기간";
|
||||
//
|
||||
// Start_Date
|
||||
//
|
||||
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;
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(598, 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);
|
||||
//
|
||||
// End_Date
|
||||
//
|
||||
this.End_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.End_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.End_Date.Location = new System.Drawing.Point(181, 9);
|
||||
this.End_Date.Name = "End_Date";
|
||||
this.End_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.End_Date.TabIndex = 39;
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(507, 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);
|
||||
//
|
||||
// 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.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.Grid0,
|
||||
this.Grid1,
|
||||
this.Grid2,
|
||||
this.Grid3,
|
||||
this.Grid4,
|
||||
this.Grid5,
|
||||
this.Grid6,
|
||||
this.Grid7});
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(12, 58);
|
||||
this.dataGridView1.MultiSelect = false;
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 20;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(691, 492);
|
||||
this.dataGridView1.TabIndex = 85;
|
||||
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
|
||||
//
|
||||
// Grid0
|
||||
//
|
||||
this.Grid0.HeaderText = "거래처명";
|
||||
this.Grid0.Name = "Grid0";
|
||||
//
|
||||
// Grid1
|
||||
//
|
||||
this.Grid1.HeaderText = "이월미수금";
|
||||
this.Grid1.Name = "Grid1";
|
||||
this.Grid1.Width = 90;
|
||||
//
|
||||
// Grid2
|
||||
//
|
||||
this.Grid2.HeaderText = "건수";
|
||||
this.Grid2.Name = "Grid2";
|
||||
this.Grid2.Width = 50;
|
||||
//
|
||||
// Grid3
|
||||
//
|
||||
this.Grid3.HeaderText = "권수";
|
||||
this.Grid3.Name = "Grid3";
|
||||
this.Grid3.Width = 50;
|
||||
//
|
||||
// Grid4
|
||||
//
|
||||
this.Grid4.HeaderText = "매출금액";
|
||||
this.Grid4.Name = "Grid4";
|
||||
this.Grid4.Width = 90;
|
||||
//
|
||||
// Grid5
|
||||
//
|
||||
this.Grid5.HeaderText = "입금액";
|
||||
this.Grid5.Name = "Grid5";
|
||||
this.Grid5.Width = 90;
|
||||
//
|
||||
// Grid6
|
||||
//
|
||||
this.Grid6.HeaderText = "기간잔고";
|
||||
this.Grid6.Name = "Grid6";
|
||||
this.Grid6.Width = 90;
|
||||
//
|
||||
// Grid7
|
||||
//
|
||||
this.Grid7.HeaderText = "최종잔고";
|
||||
this.Grid7.Name = "Grid7";
|
||||
this.Grid7.Width = 90;
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new System.Drawing.Point(13, 556);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(20, 21);
|
||||
this.textBox1.TabIndex = 86;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Enabled = false;
|
||||
this.textBox2.Location = new System.Drawing.Point(33, 556);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(100, 21);
|
||||
this.textBox2.TabIndex = 86;
|
||||
this.textBox2.Text = "합계";
|
||||
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// tb_grid1
|
||||
//
|
||||
this.tb_grid1.Enabled = false;
|
||||
this.tb_grid1.Location = new System.Drawing.Point(133, 556);
|
||||
this.tb_grid1.Name = "tb_grid1";
|
||||
this.tb_grid1.Size = new System.Drawing.Size(90, 21);
|
||||
this.tb_grid1.TabIndex = 86;
|
||||
this.tb_grid1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_grid1.TextChanged += new System.EventHandler(this.tb_grid7_TextChanged);
|
||||
//
|
||||
// tb_grid2
|
||||
//
|
||||
this.tb_grid2.Enabled = false;
|
||||
this.tb_grid2.Location = new System.Drawing.Point(223, 556);
|
||||
this.tb_grid2.Name = "tb_grid2";
|
||||
this.tb_grid2.Size = new System.Drawing.Size(50, 21);
|
||||
this.tb_grid2.TabIndex = 86;
|
||||
this.tb_grid2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_grid2.TextChanged += new System.EventHandler(this.tb_grid7_TextChanged);
|
||||
//
|
||||
// tb_grid3
|
||||
//
|
||||
this.tb_grid3.Enabled = false;
|
||||
this.tb_grid3.Location = new System.Drawing.Point(273, 556);
|
||||
this.tb_grid3.Name = "tb_grid3";
|
||||
this.tb_grid3.Size = new System.Drawing.Size(50, 21);
|
||||
this.tb_grid3.TabIndex = 86;
|
||||
this.tb_grid3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_grid3.TextChanged += new System.EventHandler(this.tb_grid7_TextChanged);
|
||||
//
|
||||
// tb_grid4
|
||||
//
|
||||
this.tb_grid4.Enabled = false;
|
||||
this.tb_grid4.Location = new System.Drawing.Point(323, 556);
|
||||
this.tb_grid4.Name = "tb_grid4";
|
||||
this.tb_grid4.Size = new System.Drawing.Size(90, 21);
|
||||
this.tb_grid4.TabIndex = 86;
|
||||
this.tb_grid4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_grid4.TextChanged += new System.EventHandler(this.tb_grid7_TextChanged);
|
||||
//
|
||||
// tb_grid5
|
||||
//
|
||||
this.tb_grid5.Enabled = false;
|
||||
this.tb_grid5.Location = new System.Drawing.Point(413, 556);
|
||||
this.tb_grid5.Name = "tb_grid5";
|
||||
this.tb_grid5.Size = new System.Drawing.Size(90, 21);
|
||||
this.tb_grid5.TabIndex = 86;
|
||||
this.tb_grid5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_grid5.TextChanged += new System.EventHandler(this.tb_grid7_TextChanged);
|
||||
//
|
||||
// tb_grid6
|
||||
//
|
||||
this.tb_grid6.Enabled = false;
|
||||
this.tb_grid6.Location = new System.Drawing.Point(503, 556);
|
||||
this.tb_grid6.Name = "tb_grid6";
|
||||
this.tb_grid6.Size = new System.Drawing.Size(90, 21);
|
||||
this.tb_grid6.TabIndex = 86;
|
||||
this.tb_grid6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_grid6.TextChanged += new System.EventHandler(this.tb_grid7_TextChanged);
|
||||
//
|
||||
// tb_grid7
|
||||
//
|
||||
this.tb_grid7.Enabled = false;
|
||||
this.tb_grid7.Location = new System.Drawing.Point(593, 556);
|
||||
this.tb_grid7.Name = "tb_grid7";
|
||||
this.tb_grid7.Size = new System.Drawing.Size(90, 21);
|
||||
this.tb_grid7.TabIndex = 86;
|
||||
this.tb_grid7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
this.tb_grid7.TextChanged += new System.EventHandler(this.tb_grid7_TextChanged);
|
||||
//
|
||||
// Sales_Deposit
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(715, 583);
|
||||
this.Controls.Add(this.tb_grid7);
|
||||
this.Controls.Add(this.tb_grid6);
|
||||
this.Controls.Add(this.tb_grid5);
|
||||
this.Controls.Add(this.tb_grid4);
|
||||
this.Controls.Add(this.tb_grid3);
|
||||
this.Controls.Add(this.tb_grid2);
|
||||
this.Controls.Add(this.tb_grid1);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "Sales_Deposit";
|
||||
this.Text = "매출집계";
|
||||
this.Load += new System.EventHandler(this.Sales_Deposit_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.RadioButton rb_clt;
|
||||
private System.Windows.Forms.RadioButton rb_Date;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
public System.Windows.Forms.Button btn_Lookup;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid0;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid4;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid5;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid6;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Grid7;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.TextBox tb_grid1;
|
||||
private System.Windows.Forms.TextBox tb_grid2;
|
||||
private System.Windows.Forms.TextBox tb_grid3;
|
||||
private System.Windows.Forms.TextBox tb_grid4;
|
||||
private System.Windows.Forms.TextBox tb_grid5;
|
||||
private System.Windows.Forms.TextBox tb_grid6;
|
||||
private System.Windows.Forms.TextBox tb_grid7;
|
||||
public System.Windows.Forms.DateTimePicker Start_Date;
|
||||
public System.Windows.Forms.DateTimePicker End_Date;
|
||||
}
|
||||
}
|
||||
300
unimarc/unimarc/회계/Sales_Deposit.cs
Normal file
300
unimarc/unimarc/회계/Sales_Deposit.cs
Normal file
@@ -0,0 +1,300 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WindowsFormsApp1.회계;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Sales_Deposit : Form
|
||||
{
|
||||
public string compidx;
|
||||
Main main;
|
||||
Helper_DB db = new Helper_DB();
|
||||
public Sales_Deposit(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Sales_Deposit_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
Start_Date.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
|
||||
rb_clt.Checked = true;
|
||||
}
|
||||
private void btn_Lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
string[] grid = { "", "0", "0", "0", "0", "0", "0", "0" };
|
||||
string start = Start_Date.Text.Substring(0, 10);
|
||||
string end = End_Date.Text.Substring(0, 10);
|
||||
if (rb_Date.Checked) {
|
||||
string Area = "`date`, `count`, `out_price`, `deposit`";
|
||||
string data_base = db.Search_Date("Sales", Area, "date", start, end, compidx);
|
||||
|
||||
input_Grid_Date(grid, data_base);
|
||||
}
|
||||
else if (rb_clt.Checked) {
|
||||
string Area = "`client`, `count`, `out_price`, `deposit`, `date`";
|
||||
string data_base = db.DB_Select_Search(Area, "Sales", "compidx", compidx);
|
||||
input_Grid_Clt(grid, data_base);
|
||||
}
|
||||
Print_Total();
|
||||
}
|
||||
#region btn_Lookup_Click_Sub
|
||||
private void Print_Total()
|
||||
{
|
||||
int[] grid = { 0, 0, 0, 0, 0, 0, 0, 0 }; // [0]번은 버림.
|
||||
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (rb_clt.Checked) { // 1,7 계산
|
||||
grid[1] += Convert.ToInt32(dataGridView1.Rows[a].Cells["grid1"].Value.ToString());
|
||||
grid[7] += Convert.ToInt32(dataGridView1.Rows[a].Cells["grid7"].Value.ToString());
|
||||
}
|
||||
grid[2] += Convert.ToInt32(dataGridView1.Rows[a].Cells["grid2"].Value.ToString());
|
||||
grid[3] += Convert.ToInt32(dataGridView1.Rows[a].Cells["grid3"].Value.ToString());
|
||||
grid[4] += Convert.ToInt32(dataGridView1.Rows[a].Cells["grid4"].Value.ToString());
|
||||
grid[5] += Convert.ToInt32(dataGridView1.Rows[a].Cells["grid5"].Value.ToString());
|
||||
grid[6] += Convert.ToInt32(dataGridView1.Rows[a].Cells["grid6"].Value.ToString());
|
||||
}
|
||||
tb_grid1.Text = grid[1].ToString();
|
||||
tb_grid2.Text = grid[2].ToString();
|
||||
tb_grid3.Text = grid[3].ToString();
|
||||
tb_grid4.Text = grid[4].ToString();
|
||||
tb_grid5.Text = grid[5].ToString();
|
||||
tb_grid6.Text = grid[6].ToString();
|
||||
tb_grid7.Text = grid[7].ToString();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 라디오버튼 "일자별" 활성화
|
||||
private void input_Grid_Date(string[] grid, string value)
|
||||
{
|
||||
// grid
|
||||
// [0]매출일자 / [1] / [2]건수 / [3]권수 / [4]매출금액 / [5]입금액 / [6]합계금액 / [7] /
|
||||
//
|
||||
// db
|
||||
// [0]매출일자 / [1]권수 / [2]매출금액 / [3]입금액
|
||||
|
||||
string[] ary = value.Split('|');
|
||||
string[] db = { "", "", "", "" };
|
||||
int cot = 4;
|
||||
for (int a = 0; a < ary.Length; a++)
|
||||
{
|
||||
if (a % cot == 0) { db[0] = ary[a]; }
|
||||
if (a % cot == 1) { db[1] = ary[a]; }
|
||||
if (a % cot == 2) { db[2] = ary[a]; }
|
||||
if (a % cot == 3) { db[3] = ary[a];
|
||||
setting_grid_date(grid, db);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void setting_grid_date(string[] grid, string[] db)
|
||||
{
|
||||
if (dataGridView1.Rows.Count <= 0) {
|
||||
base_grid_date(grid, db);
|
||||
return;
|
||||
}
|
||||
bool lap = false;
|
||||
int row = 0;
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["grid0"].Value.ToString() == db[0]) {
|
||||
lap = true;
|
||||
row = a;
|
||||
}
|
||||
}
|
||||
if (lap) {
|
||||
|
||||
int count = Convert.ToInt32(dataGridView1.Rows[row].Cells["grid2"].Value.ToString());
|
||||
int EA = Convert.ToInt32(dataGridView1.Rows[row].Cells["grid3"].Value.ToString());
|
||||
int sales = Convert.ToInt32(dataGridView1.Rows[row].Cells["grid4"].Value.ToString());
|
||||
int dep = Convert.ToInt32(dataGridView1.Rows[row].Cells["grid5"].Value.ToString());
|
||||
|
||||
count++;
|
||||
EA += Convert.ToInt32(db[1]);
|
||||
sales += Convert.ToInt32(db[2]);
|
||||
dep += Convert.ToInt32(db[3]);
|
||||
|
||||
int total = sales - dep;
|
||||
|
||||
dataGridView1.Rows[row].Cells["grid2"].Value = count.ToString();
|
||||
dataGridView1.Rows[row].Cells["grid3"].Value = EA.ToString();
|
||||
dataGridView1.Rows[row].Cells["grid4"].Value = sales.ToString();
|
||||
dataGridView1.Rows[row].Cells["grid5"].Value = dep.ToString();
|
||||
dataGridView1.Rows[row].Cells["grid6"].Value = total.ToString();
|
||||
}
|
||||
else {
|
||||
base_grid_date(grid, db);
|
||||
}
|
||||
}
|
||||
private void base_grid_date(string[] grid, string[] db)
|
||||
{
|
||||
int total = Convert.ToInt32(db[2]) - Convert.ToInt32(db[3]);
|
||||
|
||||
grid[0] = db[0];
|
||||
grid[2] = "1";
|
||||
grid[3] = db[1];
|
||||
grid[4] = db[2];
|
||||
grid[5] = db[3];
|
||||
grid[6] = total.ToString();
|
||||
dataGridView1.Rows.Add(grid);
|
||||
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 라디오버튼 "거래처별" 활성화
|
||||
private void input_Grid_Clt(string[] grid, string value)
|
||||
{
|
||||
// grid
|
||||
// [0]거래처명 / [1]이월미수금 / [2]건수 / [3]권수 / [4]매출금액 / [5]입금액 / [6]기간잔고 / [7]최종잔고 /
|
||||
//
|
||||
// db
|
||||
// [0]거래처명 / [1]권수 / [2]매출금액 / [3]입금액 / [4] 매출일자
|
||||
string[] ary = value.Split('|');
|
||||
string[] db = { "", "", "", "", "" };
|
||||
|
||||
for(int a= 0; a < ary.Length; a++)
|
||||
{
|
||||
if (a % 5 == 0) { db[0] = ary[a]; }
|
||||
if (a % 5 == 1) { db[1] = ary[a]; }
|
||||
if (a % 5 == 2) { db[2] = ary[a]; }
|
||||
if (a % 5 == 3) { db[3] = ary[a]; }
|
||||
if (a % 5 == 4) { db[4] = ary[a];
|
||||
setting_grid_Clt(grid, db);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void setting_grid_Clt(string[] grid, string[] db)
|
||||
{
|
||||
DateTime start = Start_Date.Value;
|
||||
DateTime end = End_Date.Value;
|
||||
DateTime sear = Convert.ToDateTime(db[4]);
|
||||
|
||||
bool date_chk = false;
|
||||
bool chk = false;
|
||||
|
||||
if (sear >= start && sear < end) { date_chk = true; }
|
||||
if (sear > end) { return; }
|
||||
|
||||
if (dataGridView1.Rows.Count == 0) {
|
||||
grid[0] = db[0];
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["grid0"].Value.ToString() == db[0])
|
||||
{
|
||||
if (!date_chk)
|
||||
{
|
||||
int sales = Convert.ToInt32(db[2]);
|
||||
int dep = Convert.ToInt32(db[3]);
|
||||
int remain = sales - dep;
|
||||
|
||||
int _remain = Convert.ToInt32(dataGridView1.Rows[a].Cells["grid1"].Value.ToString());
|
||||
_remain += remain;
|
||||
dataGridView1.Rows[a].Cells["grid1"].Value = _remain.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
int count = Convert.ToInt32(dataGridView1.Rows[a].Cells["grid2"].Value.ToString());
|
||||
int EA = Convert.ToInt32(dataGridView1.Rows[a].Cells["grid3"].Value.ToString());
|
||||
int sales = Convert.ToInt32(dataGridView1.Rows[a].Cells["grid4"].Value.ToString());
|
||||
int dep = Convert.ToInt32(dataGridView1.Rows[a].Cells["grid5"].Value.ToString());
|
||||
|
||||
count++;
|
||||
EA += Convert.ToInt32(db[1]);
|
||||
sales += Convert.ToInt32(db[2]);
|
||||
dep += Convert.ToInt32(db[3]);
|
||||
|
||||
int mid = sales - dep;
|
||||
int fin = Convert.ToInt32(dataGridView1.Rows[a].Cells["grid1"].Value.ToString()) + mid;
|
||||
|
||||
dataGridView1.Rows[a].Cells["grid2"].Value = count.ToString();
|
||||
dataGridView1.Rows[a].Cells["grid3"].Value = EA.ToString();
|
||||
dataGridView1.Rows[a].Cells["grid4"].Value = sales.ToString();
|
||||
dataGridView1.Rows[a].Cells["grid5"].Value = dep.ToString();
|
||||
dataGridView1.Rows[a].Cells["grid6"].Value = mid.ToString();
|
||||
dataGridView1.Rows[a].Cells["grid7"].Value = fin.ToString();
|
||||
}
|
||||
chk = false;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
chk = true;
|
||||
}
|
||||
}
|
||||
if (chk)
|
||||
{
|
||||
grid[0] = db[0];
|
||||
grid[3] = db[1];
|
||||
grid[4] = db[2];
|
||||
grid[5] = db[3];
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
private void radio_Button_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
string text = ((RadioButton)sender).Text;
|
||||
bool chk = ((RadioButton)sender).Checked;
|
||||
|
||||
if (text == "일자별" && chk) {
|
||||
dataGridView1.Columns[0].HeaderText = "매출일자";
|
||||
dataGridView1.Columns[1].HeaderText = "";
|
||||
dataGridView1.Columns[2].HeaderText = "건수";
|
||||
dataGridView1.Columns[3].HeaderText = "권수";
|
||||
dataGridView1.Columns[4].HeaderText = "매출금액";
|
||||
dataGridView1.Columns[5].HeaderText = "입금액";
|
||||
dataGridView1.Columns[6].HeaderText = "합계금액";
|
||||
dataGridView1.Columns[7].HeaderText = "";
|
||||
}
|
||||
else if (text == "거래처별" && chk)
|
||||
{
|
||||
dataGridView1.Columns[0].HeaderText = "거래처명";
|
||||
dataGridView1.Columns[1].HeaderText = "이월미수금";
|
||||
dataGridView1.Columns[2].HeaderText = "건수";
|
||||
dataGridView1.Columns[3].HeaderText = "권수";
|
||||
dataGridView1.Columns[4].HeaderText = "매출금액";
|
||||
dataGridView1.Columns[5].HeaderText = "입금액";
|
||||
dataGridView1.Columns[6].HeaderText = "기간잔고";
|
||||
dataGridView1.Columns[7].HeaderText = "최종잔고";
|
||||
}
|
||||
btn_Lookup_Click(null, null);
|
||||
}
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void tb_grid7_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
st.Int_Comma(sender, e);
|
||||
}
|
||||
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (rb_Date.Checked) return;
|
||||
if (e.RowIndex < 0) { return; }
|
||||
Sales_Book sb = new Sales_Book(this);
|
||||
sb.row = e.RowIndex;
|
||||
sb.MdiParent = main;
|
||||
sb.WindowState = FormWindowState.Maximized;
|
||||
sb.tb_clt.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
|
||||
sb.Start_Date.Value = DateTime.Parse(Start_Date.Value.ToString());
|
||||
sb.End_Date.Value = DateTime.Parse(End_Date.Value.ToString());
|
||||
sb.Show();
|
||||
sb.btn_Lookup_Click(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
144
unimarc/unimarc/회계/Sales_Deposit.resx
Normal file
144
unimarc/unimarc/회계/Sales_Deposit.resx
Normal file
@@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="Grid0.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Grid1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Grid2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Grid3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Grid4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Grid5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Grid6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Grid7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
487
unimarc/unimarc/회계/Sales_Detail.Designer.cs
generated
Normal file
487
unimarc/unimarc/회계/Sales_Detail.Designer.cs
generated
Normal file
@@ -0,0 +1,487 @@
|
||||
|
||||
namespace WindowsFormsApp1.회계
|
||||
{
|
||||
partial class Sales_Detail
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.tb_clt = new System.Windows.Forms.TextBox();
|
||||
this.Out_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
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.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||
this.textBox7 = new System.Windows.Forms.TextBox();
|
||||
this.textBox8 = new System.Windows.Forms.TextBox();
|
||||
this.textBox9 = new System.Windows.Forms.TextBox();
|
||||
this.textBox10 = new System.Windows.Forms.TextBox();
|
||||
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.btn_lookup = new System.Windows.Forms.Button();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.tb_clt);
|
||||
this.panel1.Controls.Add(this.Out_Date);
|
||||
this.panel1.Controls.Add(this.label2);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Location = new System.Drawing.Point(13, 13);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(416, 45);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// 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);
|
||||
this.tb_clt.TabIndex = 40;
|
||||
//
|
||||
// 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";
|
||||
this.Out_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.Out_Date.TabIndex = 39;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(175, 15);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "거래처명";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(10, 15);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "매출일";
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
this.book_name,
|
||||
this.author,
|
||||
this.book_comp,
|
||||
this.price,
|
||||
this.count,
|
||||
this.out_per,
|
||||
this.in_per,
|
||||
this.list_date,
|
||||
this.list_name,
|
||||
this.out_price,
|
||||
this.in_price,
|
||||
this.etc});
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(13, 64);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 30;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1241, 421);
|
||||
this.dataGridView1.TabIndex = 83;
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Enabled = false;
|
||||
this.textBox1.Location = new System.Drawing.Point(43, 491);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(251, 21);
|
||||
this.textBox1.TabIndex = 84;
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Enabled = false;
|
||||
this.textBox2.Location = new System.Drawing.Point(293, 491);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(101, 21);
|
||||
this.textBox2.TabIndex = 84;
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Enabled = false;
|
||||
this.textBox3.Location = new System.Drawing.Point(393, 491);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(101, 21);
|
||||
this.textBox3.TabIndex = 84;
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Enabled = false;
|
||||
this.textBox4.Location = new System.Drawing.Point(493, 491);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(71, 21);
|
||||
this.textBox4.TabIndex = 84;
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Enabled = false;
|
||||
this.textBox5.Location = new System.Drawing.Point(563, 491);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(51, 21);
|
||||
this.textBox5.TabIndex = 84;
|
||||
//
|
||||
// textBox6
|
||||
//
|
||||
this.textBox6.Enabled = false;
|
||||
this.textBox6.Location = new System.Drawing.Point(613, 491);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(41, 21);
|
||||
this.textBox6.TabIndex = 84;
|
||||
//
|
||||
// textBox7
|
||||
//
|
||||
this.textBox7.Enabled = false;
|
||||
this.textBox7.Location = new System.Drawing.Point(653, 491);
|
||||
this.textBox7.Name = "textBox7";
|
||||
this.textBox7.Size = new System.Drawing.Size(41, 21);
|
||||
this.textBox7.TabIndex = 84;
|
||||
//
|
||||
// textBox8
|
||||
//
|
||||
this.textBox8.Enabled = false;
|
||||
this.textBox8.Location = new System.Drawing.Point(693, 491);
|
||||
this.textBox8.Name = "textBox8";
|
||||
this.textBox8.Size = new System.Drawing.Size(81, 21);
|
||||
this.textBox8.TabIndex = 84;
|
||||
//
|
||||
// textBox9
|
||||
//
|
||||
this.textBox9.Enabled = false;
|
||||
this.textBox9.Location = new System.Drawing.Point(773, 491);
|
||||
this.textBox9.Name = "textBox9";
|
||||
this.textBox9.Size = new System.Drawing.Size(171, 21);
|
||||
this.textBox9.TabIndex = 84;
|
||||
//
|
||||
// textBox10
|
||||
//
|
||||
this.textBox10.Enabled = false;
|
||||
this.textBox10.Location = new System.Drawing.Point(943, 491);
|
||||
this.textBox10.Name = "textBox10";
|
||||
this.textBox10.Size = new System.Drawing.Size(81, 21);
|
||||
this.textBox10.TabIndex = 84;
|
||||
//
|
||||
// textBox11
|
||||
//
|
||||
this.textBox11.Enabled = false;
|
||||
this.textBox11.Location = new System.Drawing.Point(1023, 491);
|
||||
this.textBox11.Name = "textBox11";
|
||||
this.textBox11.Size = new System.Drawing.Size(81, 21);
|
||||
this.textBox11.TabIndex = 84;
|
||||
//
|
||||
// textBox12
|
||||
//
|
||||
this.textBox12.Enabled = false;
|
||||
this.textBox12.Location = new System.Drawing.Point(1103, 491);
|
||||
this.textBox12.Name = "textBox12";
|
||||
this.textBox12.Size = new System.Drawing.Size(131, 21);
|
||||
this.textBox12.TabIndex = 84;
|
||||
//
|
||||
// textBox13
|
||||
//
|
||||
this.textBox13.Enabled = false;
|
||||
this.textBox13.Location = new System.Drawing.Point(13, 491);
|
||||
this.textBox13.Name = "textBox13";
|
||||
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.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_out_per_KeyDown);
|
||||
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 = "할인율";
|
||||
//
|
||||
// btn_lookup
|
||||
//
|
||||
this.btn_lookup.Location = new System.Drawing.Point(493, 35);
|
||||
this.btn_lookup.Name = "btn_lookup";
|
||||
this.btn_lookup.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_lookup.TabIndex = 85;
|
||||
this.btn_lookup.Text = "조 회";
|
||||
this.btn_lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
|
||||
//
|
||||
// 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_lookup);
|
||||
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);
|
||||
this.Controls.Add(this.textBox9);
|
||||
this.Controls.Add(this.textBox8);
|
||||
this.Controls.Add(this.textBox7);
|
||||
this.Controls.Add(this.textBox6);
|
||||
this.Controls.Add(this.textBox5);
|
||||
this.Controls.Add(this.textBox4);
|
||||
this.Controls.Add(this.textBox3);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.textBox13);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
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();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.TextBox textBox6;
|
||||
private System.Windows.Forms.TextBox textBox7;
|
||||
private System.Windows.Forms.TextBox textBox8;
|
||||
private System.Windows.Forms.TextBox textBox9;
|
||||
private System.Windows.Forms.TextBox textBox10;
|
||||
private System.Windows.Forms.TextBox textBox11;
|
||||
private System.Windows.Forms.TextBox textBox12;
|
||||
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;
|
||||
private System.Windows.Forms.Button btn_lookup;
|
||||
}
|
||||
}
|
||||
190
unimarc/unimarc/회계/Sales_Detail.cs
Normal file
190
unimarc/unimarc/회계/Sales_Detail.cs
Normal file
@@ -0,0 +1,190 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WindowsFormsApp1.Account;
|
||||
|
||||
namespace WindowsFormsApp1.회계
|
||||
{
|
||||
public partial class Sales_Detail : Form
|
||||
{
|
||||
public string compidx;
|
||||
Helper_DB db = new Helper_DB();
|
||||
Main main;
|
||||
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();
|
||||
|
||||
btn_lookup_Click(null, null);
|
||||
}
|
||||
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_lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
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_save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(MessageBox.Show("저장하시겠습니까?", "저장", MessageBoxButtons.YesNo) == DialogResult.No) {
|
||||
return;
|
||||
}
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
string[] search_col = { "idx", "compidx" };
|
||||
string[] search_data = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(), compidx };
|
||||
string[] edit_col = { "out_per", "out_price" };
|
||||
string[] edit_data = { dataGridView1.Rows[a].Cells["out_per"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["out_price"].Value.ToString() };
|
||||
|
||||
db.More_Update("Sales", edit_col, edit_data, search_col, search_data);
|
||||
}
|
||||
MessageBox.Show("저장되었습니다.", "저장", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
private void btn_delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo) == DialogResult.No) {
|
||||
return;
|
||||
}
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
db.DB_Delete("Sales", "compidx", compidx, "idx", dataGridView1.Rows[a].Cells["idx"].Value.ToString());
|
||||
}
|
||||
MessageBox.Show("삭제되었습니다.", "삭제", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
private void tb_out_per_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter) {
|
||||
btn_per_change_Click(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 목록일자 + " " + 납품처
|
||||
//
|
||||
// 2021-04-29 전남도립(희)4-3
|
||||
// 2021-04-29 주은금호작은m
|
||||
// 2021-05-11 대동고
|
||||
// 2021-04-28 화정남초
|
||||
// 2021-04-22 큰별초
|
||||
// 2021-04-28 금구초
|
||||
// 2021-04-27 정원유치원추가
|
||||
// 2021-04-28 여수신기초m
|
||||
// 2021-04-22 송원여상
|
||||
// 2021-05-10 송원고국어
|
||||
// 2021-05-18 원주대(급)
|
||||
// 2021-04-27 장성고m
|
||||
// 2021-05-03 여수진남초m
|
||||
// 2021-04-16 운남고m
|
||||
// 2021-05-11 죽곡유치원추가
|
||||
// 2021-05-06 조선이공대2차k
|
||||
// 2021-04-27 서구공립6개관
|
||||
//
|
||||
//
|
||||
// 목록일자 + "일자 " + 납품처 + "납품목록"
|
||||
//
|
||||
// 2021-04-29일자 전남도립(희)4-3납품목록
|
||||
// 2021-04-29일자 주은금호작은m납품목록
|
||||
// 2021-05-11일자 대동고납품목록
|
||||
// 2021-04-28일자 화정남초납품목록
|
||||
// 2021-04-22일자 큰별초납품목록
|
||||
// 2021-04-28일자 금구초납품목록
|
||||
// 2021-04-27일자 정원유치원추가납품목록
|
||||
// 2021-04-28일자 여수신기초m납품목록
|
||||
// 2021-04-22일자 송원여상납품목록
|
||||
// 2021-05-10일자 송원고국어납품목록
|
||||
// 2021-05-18일자 원주대(급)납품목록
|
||||
// 2021-04-27일자 장성고m납품목록
|
||||
// 2021-05-03일자 여수진남초m납품목록
|
||||
// 2021-04-16일자 운남고m납품목록
|
||||
// 2021-05-11일자 죽곡유치원추가납품목록
|
||||
// 2021-05-06일자 조선이공대2차k납품목록
|
||||
// 2021-04-27일자 서구공립6개관납품목록
|
||||
159
unimarc/unimarc/회계/Sales_Detail.resx
Normal file
159
unimarc/unimarc/회계/Sales_Detail.resx
Normal file
@@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="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>
|
||||
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="out_per.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="in_per.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="list_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="list_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="out_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="in_price.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>
|
||||
392
unimarc/unimarc/회계/Sales_In_Pay.Designer.cs
generated
Normal file
392
unimarc/unimarc/회계/Sales_In_Pay.Designer.cs
generated
Normal file
@@ -0,0 +1,392 @@
|
||||
|
||||
namespace WindowsFormsApp1.회계
|
||||
{
|
||||
partial class Sales_In_Pay
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.cb_gubun = new System.Windows.Forms.ComboBox();
|
||||
this.tb_etc = new System.Windows.Forms.TextBox();
|
||||
this.tb_price = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.tb_clt = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.Pay_In_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btn_Add = new System.Windows.Forms.Button();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.btn_Delete = new System.Windows.Forms.Button();
|
||||
this.btn_Lookup = new System.Windows.Forms.Button();
|
||||
this.btn_Save = new System.Windows.Forms.Button();
|
||||
this.End_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.Start_Date = new System.Windows.Forms.DateTimePicker();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.clt = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.gu = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.lbl_total = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.cb_gubun);
|
||||
this.panel1.Controls.Add(this.tb_etc);
|
||||
this.panel1.Controls.Add(this.tb_price);
|
||||
this.panel1.Controls.Add(this.label5);
|
||||
this.panel1.Controls.Add(this.tb_clt);
|
||||
this.panel1.Controls.Add(this.label3);
|
||||
this.panel1.Controls.Add(this.Pay_In_Date);
|
||||
this.panel1.Controls.Add(this.label4);
|
||||
this.panel1.Controls.Add(this.label2);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Location = new System.Drawing.Point(12, 12);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(550, 93);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// cb_gubun
|
||||
//
|
||||
this.cb_gubun.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_gubun.FormattingEnabled = true;
|
||||
this.cb_gubun.Location = new System.Drawing.Point(328, 35);
|
||||
this.cb_gubun.Name = "cb_gubun";
|
||||
this.cb_gubun.Size = new System.Drawing.Size(121, 20);
|
||||
this.cb_gubun.TabIndex = 65;
|
||||
//
|
||||
// tb_etc
|
||||
//
|
||||
this.tb_etc.Location = new System.Drawing.Point(65, 62);
|
||||
this.tb_etc.Name = "tb_etc";
|
||||
this.tb_etc.Size = new System.Drawing.Size(475, 21);
|
||||
this.tb_etc.TabIndex = 64;
|
||||
//
|
||||
// tb_price
|
||||
//
|
||||
this.tb_price.Location = new System.Drawing.Point(65, 35);
|
||||
this.tb_price.Name = "tb_price";
|
||||
this.tb_price.Size = new System.Drawing.Size(147, 21);
|
||||
this.tb_price.TabIndex = 64;
|
||||
this.tb_price.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tb_price_KeyPress);
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(34, 65);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(29, 12);
|
||||
this.label5.TabIndex = 0;
|
||||
this.label5.Text = "비고";
|
||||
//
|
||||
// tb_clt
|
||||
//
|
||||
this.tb_clt.Location = new System.Drawing.Point(328, 9);
|
||||
this.tb_clt.Name = "tb_clt";
|
||||
this.tb_clt.Size = new System.Drawing.Size(212, 21);
|
||||
this.tb_clt.TabIndex = 64;
|
||||
this.tb_clt.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_clt_KeyDown);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(22, 38);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 0;
|
||||
this.label3.Text = "입금액";
|
||||
//
|
||||
// Pay_In_Date
|
||||
//
|
||||
this.Pay_In_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.Pay_In_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.Pay_In_Date.Location = new System.Drawing.Point(65, 8);
|
||||
this.Pay_In_Date.Name = "Pay_In_Date";
|
||||
this.Pay_In_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.Pay_In_Date.TabIndex = 63;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(267, 39);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(53, 12);
|
||||
this.label4.TabIndex = 0;
|
||||
this.label4.Text = "입금구분";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(261, 12);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "매출거래처";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(10, 12);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "입금일자";
|
||||
//
|
||||
// btn_Add
|
||||
//
|
||||
this.btn_Add.Location = new System.Drawing.Point(5, 5);
|
||||
this.btn_Add.Name = "btn_Add";
|
||||
this.btn_Add.Size = new System.Drawing.Size(63, 23);
|
||||
this.btn_Add.TabIndex = 66;
|
||||
this.btn_Add.Text = "추 가";
|
||||
this.btn_Add.UseVisualStyleBackColor = true;
|
||||
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel2.Controls.Add(this.btn_Close);
|
||||
this.panel2.Controls.Add(this.btn_Delete);
|
||||
this.panel2.Controls.Add(this.btn_Lookup);
|
||||
this.panel2.Controls.Add(this.btn_Save);
|
||||
this.panel2.Controls.Add(this.btn_Add);
|
||||
this.panel2.Controls.Add(this.End_Date);
|
||||
this.panel2.Controls.Add(this.Start_Date);
|
||||
this.panel2.Location = new System.Drawing.Point(12, 111);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(550, 35);
|
||||
this.panel2.TabIndex = 0;
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(477, 5);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(63, 23);
|
||||
this.btn_Close.TabIndex = 66;
|
||||
this.btn_Close.Text = "닫 기";
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
|
||||
//
|
||||
// btn_Delete
|
||||
//
|
||||
this.btn_Delete.Location = new System.Drawing.Point(143, 5);
|
||||
this.btn_Delete.Name = "btn_Delete";
|
||||
this.btn_Delete.Size = new System.Drawing.Size(63, 23);
|
||||
this.btn_Delete.TabIndex = 66;
|
||||
this.btn_Delete.Text = "삭 제";
|
||||
this.btn_Delete.UseVisualStyleBackColor = true;
|
||||
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(408, 5);
|
||||
this.btn_Lookup.Name = "btn_Lookup";
|
||||
this.btn_Lookup.Size = new System.Drawing.Size(63, 23);
|
||||
this.btn_Lookup.TabIndex = 66;
|
||||
this.btn_Lookup.Text = "조 회";
|
||||
this.btn_Lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_Lookup.Click += new System.EventHandler(this.btn_Lookup_Click);
|
||||
//
|
||||
// btn_Save
|
||||
//
|
||||
this.btn_Save.Location = new System.Drawing.Point(74, 5);
|
||||
this.btn_Save.Name = "btn_Save";
|
||||
this.btn_Save.Size = new System.Drawing.Size(63, 23);
|
||||
this.btn_Save.TabIndex = 66;
|
||||
this.btn_Save.Text = "저 장";
|
||||
this.btn_Save.UseVisualStyleBackColor = true;
|
||||
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
|
||||
//
|
||||
// End_Date
|
||||
//
|
||||
this.End_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.End_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.End_Date.Location = new System.Drawing.Point(317, 6);
|
||||
this.End_Date.Name = "End_Date";
|
||||
this.End_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.End_Date.TabIndex = 63;
|
||||
//
|
||||
// Start_Date
|
||||
//
|
||||
this.Start_Date.CustomFormat = "yyyy-MM-dd";
|
||||
this.Start_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.Start_Date.Location = new System.Drawing.Point(226, 6);
|
||||
this.Start_Date.Name = "Start_Date";
|
||||
this.Start_Date.Size = new System.Drawing.Size(85, 21);
|
||||
this.Start_Date.TabIndex = 63;
|
||||
//
|
||||
// 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.idx,
|
||||
this.date,
|
||||
this.clt,
|
||||
this.price,
|
||||
this.gu,
|
||||
this.etc});
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(12, 153);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 20;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(550, 217);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
|
||||
//
|
||||
// idx
|
||||
//
|
||||
this.idx.HeaderText = "idx";
|
||||
this.idx.Name = "idx";
|
||||
this.idx.Visible = false;
|
||||
//
|
||||
// date
|
||||
//
|
||||
this.date.HeaderText = "입금일자";
|
||||
this.date.Name = "date";
|
||||
this.date.Width = 80;
|
||||
//
|
||||
// clt
|
||||
//
|
||||
this.clt.HeaderText = "거래처";
|
||||
this.clt.Name = "clt";
|
||||
this.clt.Width = 150;
|
||||
//
|
||||
// price
|
||||
//
|
||||
this.price.HeaderText = "금액";
|
||||
this.price.Name = "price";
|
||||
this.price.Width = 80;
|
||||
//
|
||||
// gu
|
||||
//
|
||||
this.gu.HeaderText = "구분";
|
||||
this.gu.Name = "gu";
|
||||
this.gu.Width = 70;
|
||||
//
|
||||
// etc
|
||||
//
|
||||
this.etc.HeaderText = "비고";
|
||||
this.etc.Name = "etc";
|
||||
this.etc.Width = 130;
|
||||
//
|
||||
// lbl_total
|
||||
//
|
||||
this.lbl_total.AutoSize = true;
|
||||
this.lbl_total.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.lbl_total.Location = new System.Drawing.Point(277, 378);
|
||||
this.lbl_total.Name = "lbl_total";
|
||||
this.lbl_total.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.lbl_total.Size = new System.Drawing.Size(12, 12);
|
||||
this.lbl_total.TabIndex = 0;
|
||||
this.lbl_total.Text = "0";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label7.Location = new System.Drawing.Point(53, 378);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(31, 12);
|
||||
this.label7.TabIndex = 0;
|
||||
this.label7.Text = "합계";
|
||||
//
|
||||
// Sales_In_Pay
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(573, 397);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.lbl_total);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Name = "Sales_In_Pay";
|
||||
this.Text = "매출 입금";
|
||||
this.Load += new System.EventHandler(this.Sales_In_Pay_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.ComboBox cb_gubun;
|
||||
private System.Windows.Forms.TextBox tb_etc;
|
||||
private System.Windows.Forms.TextBox tb_price;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.DateTimePicker Pay_In_Date;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btn_Add;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
private System.Windows.Forms.Button btn_Delete;
|
||||
private System.Windows.Forms.Button btn_Lookup;
|
||||
private System.Windows.Forms.Button btn_Save;
|
||||
private System.Windows.Forms.DateTimePicker End_Date;
|
||||
private System.Windows.Forms.DateTimePicker Start_Date;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.Label lbl_total;
|
||||
private System.Windows.Forms.Label label7;
|
||||
public System.Windows.Forms.TextBox tb_clt;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn date;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn clt;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn gu;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
|
||||
}
|
||||
}
|
||||
180
unimarc/unimarc/회계/Sales_In_Pay.cs
Normal file
180
unimarc/unimarc/회계/Sales_In_Pay.cs
Normal file
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
// 추가된 참조
|
||||
using WindowsFormsApp1.Delivery;
|
||||
|
||||
namespace WindowsFormsApp1.회계
|
||||
{
|
||||
public partial class Sales_In_Pay : Form
|
||||
{
|
||||
Main main;
|
||||
Helper_DB db = new Helper_DB();
|
||||
public string compidx;
|
||||
bool add_chk = false;
|
||||
private int row = -1;
|
||||
public Sales_In_Pay(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Sales_In_Pay_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
string[] combo = { "현금", "통장", "카드", "어음" };
|
||||
cb_gubun.Items.AddRange(combo);
|
||||
Start_Date.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
|
||||
}
|
||||
private void btn_Add_Click(object sender, EventArgs e)
|
||||
{
|
||||
Pay_In_Date.Value = End_Date.Value;
|
||||
tb_clt.Text = "";
|
||||
tb_price.Text = "";
|
||||
tb_etc.Text = "";
|
||||
cb_gubun.SelectedIndex = -1;
|
||||
|
||||
add_chk = true;
|
||||
}
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tb_clt.Text == "") { MessageBox.Show("거래처를 입력해주세요."); return; }
|
||||
if (tb_price.Text == "") { MessageBox.Show("금액을 입력해주세요."); return; }
|
||||
if (cb_gubun.SelectedIndex < 0) { MessageBox.Show("구분을 선택해주세요."); return; }
|
||||
|
||||
string date = Pay_In_Date.Text.Substring(0, 10);
|
||||
if (row < 0 || !add_chk) {
|
||||
string[] Area = { "compidx", "date", "client", "deposit", "gu", "etc" };
|
||||
string[] Data = { compidx, date, tb_clt.Text, tb_price.Text, cb_gubun.Text, tb_etc.Text };
|
||||
|
||||
db.DB_INSERT("Sales", Area, Data);
|
||||
insert_data(date);
|
||||
}
|
||||
else {
|
||||
string[] edit_col = { "date", "client", "deposit", "gu", "etc" };
|
||||
string[] edit_data = { date, tb_clt.Text, tb_price.Text, cb_gubun.Text, tb_etc.Text };
|
||||
string[] sear_col = { "idx" };
|
||||
string[] sear_data = { dataGridView1.Rows[row].Cells["idx"].Value.ToString() };
|
||||
|
||||
db.More_Update("Sales", edit_col, edit_data, sear_col, sear_data);
|
||||
update_data(date);
|
||||
}
|
||||
add_chk = false;
|
||||
btn_Lookup_Click(null, e);
|
||||
}
|
||||
#region Btn_Save_Click_Sub
|
||||
private void insert_data(string date)
|
||||
{
|
||||
string[] grid = { "", date, tb_clt.Text, tb_price.Text, cb_gubun.Text, tb_etc.Text };
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
private void update_data(string date)
|
||||
{
|
||||
dataGridView1.Rows[row].Cells["date"].Value = date;
|
||||
dataGridView1.Rows[row].Cells["client"].Value = tb_clt.Text;
|
||||
dataGridView1.Rows[row].Cells["deposit"].Value = tb_price.Text;
|
||||
dataGridView1.Rows[row].Cells["gu"].Value = cb_gubun.SelectedItem;
|
||||
dataGridView1.Rows[row].Cells["etc"].Value = tb_etc.Text;
|
||||
}
|
||||
#endregion
|
||||
private void btn_Delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo) == DialogResult.No) { return; }
|
||||
|
||||
db.DB_Delete("Sales", "compidx", compidx, "idx", dataGridView1.Rows[row].Cells["idx"].Value.ToString());
|
||||
dataGridView1.Rows.Remove(dataGridView1.Rows[row]);
|
||||
|
||||
add_chk = false;
|
||||
}
|
||||
private void btn_Lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
string table = "`idx`, `date`, `client`, `deposit`, `gu`, `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);
|
||||
made_grid(data_base);
|
||||
add_chk = false;
|
||||
Print_Total();
|
||||
}
|
||||
#region Btn_Lookup_Click_Sub
|
||||
private void made_grid(string value)
|
||||
{
|
||||
string[] grid = { "", "", "", "", "", "" };
|
||||
string[] ary = value.Split('|');
|
||||
|
||||
int cot = 6;
|
||||
for (int a = 0; a < ary.Length; a++)
|
||||
{
|
||||
if (a % cot == 0) { grid[0] = ary[a]; }
|
||||
if (a % cot == 1) { grid[1] = ary[a]; }
|
||||
if (a % cot == 2) { grid[2] = ary[a]; }
|
||||
if (a % cot == 3) { grid[3] = ary[a]; }
|
||||
if (a % cot == 4) { grid[4] = ary[a]; }
|
||||
if (a % cot == 5) { grid[5] = ary[a];
|
||||
if (grid[4] != "") {
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
private void Print_Total()
|
||||
{
|
||||
if (dataGridView1.Rows.Count <= 0) { return; }
|
||||
int total = 0;
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
total += Convert.ToInt32(dataGridView1.Rows[a].Cells["price"].Value.ToString());
|
||||
}
|
||||
lbl_total.Text = total.ToString();
|
||||
}
|
||||
#endregion
|
||||
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
row = e.RowIndex;
|
||||
if(e.RowIndex < 0) { return; }
|
||||
input_Text();
|
||||
}
|
||||
#region Grid_CellClick_Sub
|
||||
private void input_Text()
|
||||
{
|
||||
string date = dataGridView1.Rows[row].Cells["date"].Value.ToString().Replace("-", "");
|
||||
int year = Convert.ToInt32(date.Substring(0, 4));
|
||||
int month = Convert.ToInt32(date.Substring(4, 2));
|
||||
int day = Convert.ToInt32(date.Substring(6, 2));
|
||||
|
||||
Pay_In_Date.Value = new DateTime(year, month, day);
|
||||
tb_clt.Text = dataGridView1.Rows[row].Cells["clt"].Value.ToString();
|
||||
tb_price.Text = dataGridView1.Rows[row].Cells["price"].Value.ToString();
|
||||
cb_gubun.SelectedItem = dataGridView1.Rows[row].Cells["gu"].Value.ToString();
|
||||
tb_etc.Text = dataGridView1.Rows[row].Cells["etc"].Value.ToString();
|
||||
}
|
||||
#endregion
|
||||
private void tb_clt_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 tb_price_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
st.Only_Int(sender, e);
|
||||
}
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
138
unimarc/unimarc/회계/Sales_In_Pay.resx
Normal file
138
unimarc/unimarc/회계/Sales_In_Pay.resx
Normal file
@@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="clt.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="gu.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>
|
||||
525
unimarc/unimarc/회계/Sales_Input.Designer.cs
generated
Normal file
525
unimarc/unimarc/회계/Sales_Input.Designer.cs
generated
Normal file
@@ -0,0 +1,525 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Sales_Input
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
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.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.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.tb_book_name = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.tb_isbn = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
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.tb_total = new System.Windows.Forms.TextBox();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.tb_book_comp = new System.Windows.Forms.TextBox();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.tb_price = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.tb_author = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.tb_etc = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.tb_clt = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.out_date = new System.Windows.Forms.DateTimePicker();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.lbl_tel = new System.Windows.Forms.Label();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
((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.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, 170);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 20;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1020, 370);
|
||||
this.dataGridView1.TabIndex = 91;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// chk_Add5000
|
||||
//
|
||||
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);
|
||||
//
|
||||
// btn_Total
|
||||
//
|
||||
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);
|
||||
//
|
||||
// btn_Clear
|
||||
//
|
||||
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);
|
||||
//
|
||||
// btn_Input
|
||||
//
|
||||
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);
|
||||
//
|
||||
// tb_count
|
||||
//
|
||||
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(356, 66);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(29, 12);
|
||||
this.label9.TabIndex = 85;
|
||||
this.label9.Text = "부수";
|
||||
//
|
||||
// tb_book_name
|
||||
//
|
||||
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(242, 12);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(49, 12);
|
||||
this.label5.TabIndex = 82;
|
||||
this.label5.Text = "도 서 명";
|
||||
//
|
||||
// tb_isbn
|
||||
//
|
||||
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(14, 12);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(33, 12);
|
||||
this.label4.TabIndex = 80;
|
||||
this.label4.Text = "ISBN";
|
||||
//
|
||||
// btn_Save
|
||||
//
|
||||
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);
|
||||
//
|
||||
// btn_Add
|
||||
//
|
||||
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);
|
||||
//
|
||||
// tb_persent
|
||||
//
|
||||
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(255, 66);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(41, 12);
|
||||
this.label8.TabIndex = 71;
|
||||
this.label8.Text = "출고율";
|
||||
//
|
||||
// tb_total
|
||||
//
|
||||
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(463, 66);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(53, 12);
|
||||
this.label11.TabIndex = 70;
|
||||
this.label11.Text = "합계금액";
|
||||
//
|
||||
// tb_book_comp
|
||||
//
|
||||
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(300, 39);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(41, 12);
|
||||
this.label10.TabIndex = 69;
|
||||
this.label10.Text = "출판사";
|
||||
//
|
||||
// tb_price
|
||||
//
|
||||
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(8, 66);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(45, 12);
|
||||
this.label7.TabIndex = 68;
|
||||
this.label7.Text = "정 가";
|
||||
//
|
||||
// tb_author
|
||||
//
|
||||
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(8, 39);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(45, 12);
|
||||
this.label6.TabIndex = 67;
|
||||
this.label6.Text = "저 자";
|
||||
//
|
||||
// tb_etc
|
||||
//
|
||||
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(8, 37);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(45, 12);
|
||||
this.label3.TabIndex = 66;
|
||||
this.label3.Text = "비 고";
|
||||
//
|
||||
// tb_clt
|
||||
//
|
||||
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(282, 11);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(65, 12);
|
||||
this.label2.TabIndex = 64;
|
||||
this.label2.Text = "매출거래처";
|
||||
//
|
||||
// out_date
|
||||
//
|
||||
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(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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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);
|
||||
//
|
||||
// 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, 72);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1020, 92);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// Sales_Input
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1044, 552);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Name = "Sales_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);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
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 tb_book_name;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox tb_isbn;
|
||||
private System.Windows.Forms.Label label4;
|
||||
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.Label label11;
|
||||
private System.Windows.Forms.TextBox tb_book_comp;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox tb_price;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox tb_author;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox tb_etc;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label2;
|
||||
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;
|
||||
}
|
||||
}
|
||||
148
unimarc/unimarc/회계/Sales_Input.cs
Normal file
148
unimarc/unimarc/회계/Sales_Input.cs
Normal file
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
// 참조 추가
|
||||
using WindowsFormsApp1.Delivery;
|
||||
|
||||
namespace WindowsFormsApp1.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", "out_price" };
|
||||
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,
|
||||
out_price(a)
|
||||
};
|
||||
db.DB_INSERT("Sales", col_name, set_data);
|
||||
}
|
||||
}
|
||||
private string out_price(int idx)
|
||||
{
|
||||
int total = Convert.ToInt32(dataGridView1.Rows[idx].Cells["total"].Value.ToString());
|
||||
int per = Convert.ToInt32(dataGridView1.Rows[idx].Cells["persent"].Value.ToString());
|
||||
|
||||
double tmp = total * per * 0.01;
|
||||
return Convert.ToInt32(tmp).ToString();
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
144
unimarc/unimarc/회계/Sales_Input.resx
Normal file
144
unimarc/unimarc/회계/Sales_Input.resx
Normal file
@@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="persent.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<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>
|
||||
315
unimarc/unimarc/회계/Sales_Lookup.Designer.cs
generated
Normal file
315
unimarc/unimarc/회계/Sales_Lookup.Designer.cs
generated
Normal file
@@ -0,0 +1,315 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Sales_Lookup
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
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.tb_clt = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btn_Lookup = new System.Windows.Forms.Button();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
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();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// End_Date
|
||||
//
|
||||
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;
|
||||
//
|
||||
// Start_Date
|
||||
//
|
||||
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(13, 13);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 37;
|
||||
this.label2.Text = "조회기간";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
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;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
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 = "비고내용";
|
||||
//
|
||||
// tb_clt
|
||||
//
|
||||
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(277, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(65, 12);
|
||||
this.label1.TabIndex = 75;
|
||||
this.label1.Text = "매출거래처";
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
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);
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
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.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.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(1151, 421);
|
||||
this.dataGridView1.TabIndex = 82;
|
||||
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;
|
||||
//
|
||||
// clt
|
||||
//
|
||||
this.clt.HeaderText = "매출거래처";
|
||||
this.clt.Name = "clt";
|
||||
this.clt.Width = 150;
|
||||
//
|
||||
// tel
|
||||
//
|
||||
this.tel.HeaderText = "전화번호";
|
||||
this.tel.Name = "tel";
|
||||
//
|
||||
// content
|
||||
//
|
||||
this.content.HeaderText = "내용";
|
||||
this.content.Name = "content";
|
||||
this.content.Width = 200;
|
||||
//
|
||||
// count
|
||||
//
|
||||
this.count.HeaderText = "수량";
|
||||
this.count.Name = "count";
|
||||
this.count.Width = 40;
|
||||
//
|
||||
// total
|
||||
//
|
||||
this.total.HeaderText = "총액";
|
||||
this.total.Name = "total";
|
||||
this.total.Width = 80;
|
||||
//
|
||||
// in_per
|
||||
//
|
||||
this.in_per.HeaderText = "입고율";
|
||||
this.in_per.Name = "in_per";
|
||||
this.in_per.Width = 60;
|
||||
//
|
||||
// out_per
|
||||
//
|
||||
this.out_per.HeaderText = "출고율";
|
||||
this.out_per.Name = "out_per";
|
||||
this.out_per.Width = 60;
|
||||
//
|
||||
// in_price
|
||||
//
|
||||
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";
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
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;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
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 = "~";
|
||||
//
|
||||
// Sales_Lookup
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1176, 491);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Name = "Sales_Lookup";
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
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.Label label1;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
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;
|
||||
public System.Windows.Forms.Button btn_Lookup;
|
||||
}
|
||||
}
|
||||
180
unimarc/unimarc/회계/Sales_Lookup.cs
Normal file
180
unimarc/unimarc/회계/Sales_Lookup.cs
Normal file
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
// 추가된 참조
|
||||
using WindowsFormsApp1.Delivery;
|
||||
using WindowsFormsApp1.회계;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Sales_Lookup : Form
|
||||
{
|
||||
public string compidx;
|
||||
Main main;
|
||||
Helper_DB db = new Helper_DB();
|
||||
public Sales_Lookup(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Sales_Book_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
Start_Date.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
|
||||
}
|
||||
public void btn_Lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
string table = "`date`, `client`, `tel`, `book_name`, `in_per`, " +
|
||||
"`out_per`, `in_price`, `out_price`, `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 = 10;
|
||||
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]; }
|
||||
if (a % cot == 8) { data[8] = ary[a]; }
|
||||
if (a % cot == 9) { data[9] = ary[a];
|
||||
if (tb_clt.Text != "")
|
||||
{
|
||||
if (data[1] != tb_clt.Text) { continue; }
|
||||
}
|
||||
grid_data_check(grid, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void grid_data_check(string[] grid, string[] data)
|
||||
{
|
||||
/* data: 0.출고일자 / 1.거래처 / 2.전화번호 / 3.내용 / 4.입고율 /
|
||||
* 5.출고율 / 6.입고금액 / 7.출고금액 / 8.합계 / 9.비고
|
||||
*
|
||||
*
|
||||
* grid: 0.조회기간 / 1.거래처 / 2.전화번호 / 3.내용 / 4.수량 /
|
||||
* 5.총합계 / 6.입고율 / 7.출고율 / 8.매입금액 / 9.매출금액 / 10.차이 / 11.비고
|
||||
*
|
||||
* out_date / clt / tel / content / count /
|
||||
* total / in_per / out_per / in_price / out_price / dif / etc
|
||||
*/
|
||||
if (data[3] == "" && data[5] == "0") { return; }
|
||||
|
||||
if (dataGridView1.Rows.Count <= 0)
|
||||
{
|
||||
base_Setting(grid, data);
|
||||
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[8]);
|
||||
in_per = (in_per + Convert.ToInt32(data[4])) / count;
|
||||
out_per = (out_per + Convert.ToInt32(data[5])) / count;
|
||||
int in_price = persent(in_per, total);
|
||||
int out_price = persent(out_per, total);
|
||||
int dif = out_price - in_price;
|
||||
|
||||
dataGridView1.Rows[a].Cells["content"].Value = data[3];
|
||||
dataGridView1.Rows[a].Cells["count"].Value = count.ToString();
|
||||
dataGridView1.Rows[a].Cells["total"].Value = total.ToString();
|
||||
dataGridView1.Rows[a].Cells["in_per"].Value = in_per.ToString();
|
||||
dataGridView1.Rows[a].Cells["out_per"].Value = out_per.ToString();
|
||||
dataGridView1.Rows[a].Cells["in_price"].Value = in_price.ToString();
|
||||
dataGridView1.Rows[a].Cells["out_price"].Value = out_price.ToString();
|
||||
dataGridView1.Rows[a].Cells["dif"].Value = dif.ToString();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
base_Setting(grid, data);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void base_Setting(string[] grid, string[] data)
|
||||
{
|
||||
grid[0] = data[0];
|
||||
grid[1] = data[1];
|
||||
grid[2] = data[2];
|
||||
grid[3] = data[3];
|
||||
grid[4] = "1";
|
||||
grid[5] = data[8];
|
||||
grid[6] = data[4];
|
||||
grid[7] = data[5];
|
||||
grid[8] = data[6];
|
||||
grid[9] = data[7];
|
||||
int dif = Convert.ToInt32(grid[9]) - Convert.ToInt32(grid[8]);
|
||||
grid[10] = dif.ToString();
|
||||
grid[11] = data[9];
|
||||
|
||||
dataGridView1.Rows.Add(grid);
|
||||
return;
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
156
unimarc/unimarc/회계/Sales_Lookup.resx
Normal file
156
unimarc/unimarc/회계/Sales_Lookup.resx
Normal file
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="out_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="clt.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="tel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="content.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="total.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="in_per.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="out_per.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="in_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="out_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<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>
|
||||
60
unimarc/unimarc/회계/Sales_Not_Pay.Designer.cs
generated
Normal file
60
unimarc/unimarc/회계/Sales_Not_Pay.Designer.cs
generated
Normal file
@@ -0,0 +1,60 @@
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
partial class Sales_Not_Pay
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(320, 144);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(181, 12);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "정해진 틀이 없어 상의가 필요함.";
|
||||
//
|
||||
// Sales_Not_Pay
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Name = "Sales_Not_Pay";
|
||||
this.Text = "매출미수금";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
}
|
||||
}
|
||||
22
unimarc/unimarc/회계/Sales_Not_Pay.cs
Normal file
22
unimarc/unimarc/회계/Sales_Not_Pay.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp1.Account
|
||||
{
|
||||
public partial class Sales_Not_Pay : Form
|
||||
{
|
||||
Main main;
|
||||
public Sales_Not_Pay(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
}
|
||||
}
|
||||
}
|
||||
120
unimarc/unimarc/회계/Sales_Not_Pay.resx
Normal file
120
unimarc/unimarc/회계/Sales_Not_Pay.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user