깃랩 재정비

This commit is contained in:
SeungHo Yang
2021-03-16 09:02:26 +09:00
commit 14655a2b4f
911 changed files with 397687 additions and 0 deletions

View 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;
}
}

View 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;
}
}
}

View 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>

View File

@@ -0,0 +1,321 @@
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();
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.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_Close = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
((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);
//
// Column1
//
this.Column1.HeaderText = "거래처명";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 150;
//
// Column2
//
this.Column2.HeaderText = "이월미수금";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
//
// Column3
//
this.Column3.HeaderText = "건수";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 50;
//
// Column4
//
this.Column4.HeaderText = "권수";
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 50;
//
// Column5
//
this.Column5.HeaderText = "매입금액";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
//
// Column6
//
this.Column6.HeaderText = "결제금액";
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
//
// Column7
//
this.Column7.HeaderText = "기간잔고";
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
//
// Column8
//
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;
//
// 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;
//
// 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;
}
}

View 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);
}
}
}

View 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>

View 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;
}
}

View File

@@ -0,0 +1,129 @@
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();
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();
}
}
}

View 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>

View 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;
}
}

View 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;
}
}
}

View 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>

View 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;
}
}

View 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;
}
}
}

View 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>

View 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;
}
}

View 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();
}
}
}
}

View 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>

View 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.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();
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();
((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 = 58;
//
// 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 = 57;
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 = 56;
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// 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 = 55;
//
// 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 = 54;
//
// 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 = 52;
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 = 51;
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 = 50;
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 = 49;
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 = 48;
//
// 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 = 43;
//
// 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 = 44;
//
// 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 = 45;
//
// 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 = 46;
//
// 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 = 47;
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 = 35;
//
// 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 = 34;
//
// 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 = 36;
//
// 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 = "등록일자";
//
// 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;
//
// 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;
}
}

View 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.No)
{
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();
}
}
}

View 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>

View File

@@ -0,0 +1,268 @@
namespace WindowsFormsApp1.Account
{
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()
{
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// dateTimePicker2
//
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker2.Location = new System.Drawing.Point(178, 24);
this.dateTimePicker2.Name = "dateTimePicker2";
this.dateTimePicker2.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker2.TabIndex = 39;
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(80, 24);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker1.TabIndex = 38;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(27, 28);
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(548, 24);
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(495, 28);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 77;
this.label3.Text = "비고내용";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(338, 24);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(145, 21);
this.textBox1.TabIndex = 76;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(273, 28);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 75;
this.label1.Text = "매출거래처";
//
// button1
//
this.button1.Location = new System.Drawing.Point(846, 23);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 79;
this.button1.Text = "조 회";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(927, 23);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 80;
this.button2.Text = "엑 셀";
this.button2.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Location = new System.Drawing.Point(1008, 23);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 81;
this.button3.Text = "전표병합";
this.button3.UseVisualStyleBackColor = true;
//
// 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.Column8,
this.Column9,
this.Column10,
this.Column11});
this.dataGridView1.Location = new System.Drawing.Point(29, 64);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1078, 150);
this.dataGridView1.TabIndex = 82;
//
// 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";
//
// Column8
//
this.Column8.HeaderText = "매입금액";
this.Column8.Name = "Column8";
//
// Column9
//
this.Column9.HeaderText = "차이";
this.Column9.Name = "Column9";
//
// Column10
//
this.Column10.HeaderText = "비 고";
this.Column10.Name = "Column10";
//
// Column11
//
this.Column11.HeaderText = "선택";
this.Column11.Name = "Column11";
this.Column11.Width = 35;
//
// Sales_Book
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1268, 491);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.dateTimePicker2);
this.Controls.Add(this.dateTimePicker1);
this.Controls.Add(this.label2);
this.Name = "Sales_Book";
this.Text = "매출장부";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DateTimePicker dateTimePicker2;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
private System.Windows.Forms.DataGridViewCheckBoxColumn Column11;
}
}

View 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_Book : Form
{
Main main;
public Sales_Book(Main _main)
{
InitializeComponent();
main = _main;
}
}
}

View File

@@ -0,0 +1,153 @@
<?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>
<metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -0,0 +1,308 @@
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()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.textBox3 = new System.Windows.Forms.TextBox();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
this.dateTimePicker3 = new System.Windows.Forms.DateTimePicker();
this.button5 = 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();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(354, 36);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(145, 21);
this.textBox1.TabIndex = 70;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(283, 40);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 12);
this.label2.TabIndex = 69;
this.label2.Text = "매출거래처";
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(91, 36);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker1.TabIndex = 67;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(32, 40);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 66;
this.label1.Text = "입금일자";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(32, 67);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(49, 12);
this.label3.TabIndex = 69;
this.label3.Text = "입 금 액";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(91, 63);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(145, 21);
this.textBox2.TabIndex = 70;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(295, 67);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 69;
this.label4.Text = "입금구분";
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(354, 63);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 20);
this.comboBox1.TabIndex = 71;
//
// button1
//
this.button1.Location = new System.Drawing.Point(535, 61);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(78, 23);
this.button1.TabIndex = 72;
this.button1.Text = "계산서 입력";
this.button1.UseVisualStyleBackColor = true;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(32, 94);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(49, 12);
this.label5.TabIndex = 69;
this.label5.Text = "비 고";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(91, 90);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(408, 21);
this.textBox3.TabIndex = 70;
//
// button2
//
this.button2.Location = new System.Drawing.Point(34, 126);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(78, 23);
this.button2.TabIndex = 72;
this.button2.Text = "추 가";
this.button2.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Location = new System.Drawing.Point(118, 126);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(78, 23);
this.button3.TabIndex = 72;
this.button3.Text = "저 장";
this.button3.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Location = new System.Drawing.Point(202, 126);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(78, 23);
this.button4.TabIndex = 72;
this.button4.Text = "삭 제";
this.button4.UseVisualStyleBackColor = true;
//
// dateTimePicker2
//
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker2.Location = new System.Drawing.Point(297, 127);
this.dateTimePicker2.Name = "dateTimePicker2";
this.dateTimePicker2.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker2.TabIndex = 67;
//
// dateTimePicker3
//
this.dateTimePicker3.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker3.Location = new System.Drawing.Point(388, 127);
this.dateTimePicker3.Name = "dateTimePicker3";
this.dateTimePicker3.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker3.TabIndex = 67;
//
// button5
//
this.button5.Location = new System.Drawing.Point(479, 126);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(78, 23);
this.button5.TabIndex = 72;
this.button5.Text = "조 회";
this.button5.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(34, 155);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(654, 150);
this.dataGridView1.TabIndex = 73;
//
// 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";
//
// Sales_Deposit
//
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.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.textBox3);
this.Controls.Add(this.label5);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label4);
this.Controls.Add(this.label2);
this.Controls.Add(this.dateTimePicker3);
this.Controls.Add(this.dateTimePicker2);
this.Controls.Add(this.dateTimePicker1);
this.Controls.Add(this.label1);
this.Name = "Sales_Deposit";
this.Text = "매출입금";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.DateTimePicker dateTimePicker2;
private System.Windows.Forms.DateTimePicker dateTimePicker3;
private System.Windows.Forms.Button button5;
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;
}
}

View 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_Deposit : Form
{
Main main;
public Sales_Deposit(Main _main)
{
InitializeComponent();
main = _main;
}
}
}

View 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="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>

View File

@@ -0,0 +1,449 @@
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()
{
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.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(32, 189);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(758, 150);
this.dataGridView1.TabIndex = 91;
//
// 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(880, 139);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(72, 28);
this.checkBox3.TabIndex = 90;
this.checkBox3.Text = "칸수일괄\n입력";
this.checkBox3.UseVisualStyleBackColor = true;
//
// button5
//
this.button5.Location = new System.Drawing.Point(955, 142);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(75, 23);
this.button5.TabIndex = 89;
this.button5.Text = "합계계산";
this.button5.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Location = new System.Drawing.Point(795, 142);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 88;
this.button3.Text = "Clear";
this.button3.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Location = new System.Drawing.Point(715, 142);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 87;
this.button4.Text = "입 력";
this.button4.UseVisualStyleBackColor = true;
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(429, 143);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(43, 21);
this.textBox8.TabIndex = 86;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(401, 147);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(29, 12);
this.label9.TabIndex = 85;
this.label9.Text = "부수";
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(315, 89);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(388, 21);
this.textBox4.TabIndex = 83;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(264, 93);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(49, 12);
this.label5.TabIndex = 82;
this.label5.Text = "도 서 명";
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(89, 89);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(163, 21);
this.textBox3.TabIndex = 81;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(40, 93);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(33, 12);
this.label4.TabIndex = 80;
this.label4.Text = "ISBN";
//
// button2
//
this.button2.Location = new System.Drawing.Point(628, 50);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 79;
this.button2.Text = "저 장";
this.button2.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Location = new System.Drawing.Point(538, 50);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 78;
this.button1.Text = "추 가";
this.button1.UseVisualStyleBackColor = true;
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(306, 143);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(43, 21);
this.textBox7.TabIndex = 73;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(264, 147);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(41, 12);
this.label8.TabIndex = 71;
this.label8.Text = "출고율";
//
// textBox10
//
this.textBox10.Location = new System.Drawing.Point(540, 143);
this.textBox10.Name = "textBox10";
this.textBox10.Size = new System.Drawing.Size(163, 21);
this.textBox10.TabIndex = 75;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(490, 147);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(53, 12);
this.label11.TabIndex = 70;
this.label11.Text = "합계금액";
//
// textBox9
//
this.textBox9.Location = new System.Drawing.Point(540, 116);
this.textBox9.Name = "textBox9";
this.textBox9.Size = new System.Drawing.Size(163, 21);
this.textBox9.TabIndex = 77;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(494, 120);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(41, 12);
this.label10.TabIndex = 69;
this.label10.Text = "출판사";
//
// textBox6
//
this.textBox6.Location = new System.Drawing.Point(89, 143);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(163, 21);
this.textBox6.TabIndex = 72;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(30, 147);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(45, 12);
this.label7.TabIndex = 68;
this.label7.Text = "정 가";
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(89, 116);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(280, 21);
this.textBox5.TabIndex = 76;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(30, 120);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(45, 12);
this.label6.TabIndex = 67;
this.label6.Text = "저 자";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(89, 51);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(431, 21);
this.textBox2.TabIndex = 74;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(30, 55);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(45, 12);
this.label3.TabIndex = 66;
this.label3.Text = "비 고";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(375, 25);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(145, 21);
this.textBox1.TabIndex = 65;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(304, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 12);
this.label2.TabIndex = 64;
this.label2.Text = "매출거래처";
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(180, 27);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(48, 16);
this.checkBox1.TabIndex = 63;
this.checkBox1.Text = "반품";
this.checkBox1.UseVisualStyleBackColor = true;
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(89, 25);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker1.TabIndex = 62;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(30, 29);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 61;
this.label1.Text = "매출일자";
//
// Sales_Input
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1148, 592);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.button5);
this.Controls.Add(this.button3);
this.Controls.Add(this.button4);
this.Controls.Add(this.textBox8);
this.Controls.Add(this.label9);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.label5);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.label4);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox7);
this.Controls.Add(this.label8);
this.Controls.Add(this.textBox10);
this.Controls.Add(this.label11);
this.Controls.Add(this.textBox9);
this.Controls.Add(this.label10);
this.Controls.Add(this.textBox6);
this.Controls.Add(this.label7);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.label6);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.dateTimePicker1);
this.Controls.Add(this.label1);
this.Name = "Sales_Input";
this.Text = "Purchase_Input";
((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.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;
}
}

View 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_Input : Form
{
Main main;
public Sales_Input(Main _main)
{
InitializeComponent();
main = _main;
}
}
}

View 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>

View 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;
}
}

View 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;
}
}
}

View 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>