no message

This commit is contained in:
SeungHo Yang
2021-08-25 17:08:21 +09:00
parent 6d1c7d8fe3
commit a3402bdc39
46 changed files with 2711 additions and 279 deletions

4
.gitignore vendored
View File

@@ -15,4 +15,6 @@ Skill.cs
## 폴더 무시
unimarc/Factory_Client/
ISBN_Client/
Test_Project/
Test_Project/
Test_HTML/
AuthorSymbol/

View File

@@ -1 +1 @@
6aefef5cdcf843f26c61154cb636b4f360be5390
c233669835bb4757d27d7338d497d11ec470b347

View File

@@ -8,3 +8,4 @@ C:\Users\Administrator\Desktop\unimarc\Test_Project\obj\Debug\Test_Project.cspro
C:\Users\Administrator\Desktop\unimarc\Test_Project\obj\Debug\Test_Project.exe
C:\Users\Administrator\Desktop\unimarc\Test_Project\obj\Debug\Test_Project.pdb
C:\Users\Administrator\Desktop\unimarc\Test_Project\obj\Debug\Test_Project.Form1.resources
C:\Users\Administrator\Desktop\unimarc\Test_Project\obj\Debug\Test_Project.Form2.resources

Binary file not shown.

View File

@@ -398,7 +398,7 @@
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "설정ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "설정";
//
// 단축키설정ToolStripMenuItem
@@ -437,7 +437,7 @@
this.ToolStripMenuItem,
this.iSBN조회ToolStripMenuItem});
this.ToolStripMenuItem.Name = "마크작업ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "마크 작업";
//
// 마크목록ToolStripMenuItem
@@ -474,7 +474,7 @@
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "반입및반출ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "반입 및 반출";
//
// 반입ToolStripMenuItem
@@ -497,7 +497,7 @@
this.ToolStripMenuItem1,
this.dLS복본조사ToolStripMenuItem});
this.ToolStripMenuItem.Name = "복본조사ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "복본 조사";
//
// 복본조사ToolStripMenuItem1
@@ -522,34 +522,34 @@
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "부가기능ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "부가기능";
//
// 마크수집ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "마크수집ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "마크수집";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 전집관리ToolStripMenuItem1
//
this.ToolStripMenuItem1.Name = "전집관리ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem1.Text = "전집관리";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
//
// 검수ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "검수ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "검수";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 저자기호ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "저자기호ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "저자기호";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
@@ -559,20 +559,20 @@
this.dLS조회ToolStripMenuItem,
this.dLS입력ToolStripMenuItem});
this.dLSToolStripMenuItem.Name = "dLSToolStripMenuItem";
this.dLSToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.dLSToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.dLSToolStripMenuItem.Text = "DLS";
//
// dLS조회ToolStripMenuItem
//
this.dLS조회ToolStripMenuItem.Name = "dLS조회ToolStripMenuItem";
this.dLS조회ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
this.dLS조회ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.dLS조회ToolStripMenuItem.Text = "DLS 조회";
this.dLS조회ToolStripMenuItem.Click += new System.EventHandler(this.dLS조회ToolStripMenuItem_Click);
//
// dLS입력ToolStripMenuItem
//
this.dLS입력ToolStripMenuItem.Name = "dLS입력ToolStripMenuItem";
this.dLS입력ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
this.dLS입력ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.dLS입력ToolStripMenuItem.Text = "DLS 입력";
this.dLS입력ToolStripMenuItem.Click += new System.EventHandler(this.dLS입력ToolStripMenuItem_Click_1);
//
@@ -583,27 +583,27 @@
this.ToolStripMenuItem,
this.ToolStripMenuItem1});
this.ToolStripMenuItem.Name = "기타ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(142, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "기타";
//
// 서류작성ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "서류작성ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "서류작성";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 마크통계ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "마크통계ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "마크통계";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 장비관리ToolStripMenuItem1
//
this.ToolStripMenuItem1.Name = "장비관리ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem1.Text = "장비관리";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
//

View File

@@ -108,6 +108,12 @@
<Compile Include="납품관리\Order_Send_Chk.Designer.cs">
<DependentUpon>Order_Send_Chk.cs</DependentUpon>
</Compile>
<Compile Include="마크\All_Book_manage_Add.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\All_Book_manage_Add.Designer.cs">
<DependentUpon>All_Book_manage_Add.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN_Sub.cs">
<SubType>Form</SubType>
</Compile>
@@ -630,6 +636,9 @@
<EmbeddedResource Include="납품관리\Order_Send_Chk.resx">
<DependentUpon>Order_Send_Chk.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\All_Book_manage_Add.resx">
<DependentUpon>All_Book_manage_Add.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN_Sub.resx">
<DependentUpon>Check_ISBN_Sub.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -1 +1 @@
d2731517ce60a3dc8b8c6b18b3ba868b48ad75db
633b9d395fc7540535e6b0184ba54303a9134e29

View File

@@ -116,3 +116,4 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Check_ISBN_Yes24.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.회계.Part_time.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.All_Book_manage_Add.resources

View File

@@ -28,8 +28,8 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_idx = new System.Windows.Forms.Label();
this.tb_isbn = new System.Windows.Forms.TextBox();
@@ -460,6 +460,7 @@
this.btn_printLine.Text = "띠지출력";
this.btn_printLine.UseVisualStyleBackColor = true;
this.btn_printLine.Visible = false;
this.btn_printLine.Click += new System.EventHandler(this.btn_printLine_Click);
//
// panel2
//
@@ -519,14 +520,14 @@
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
this.dataGridView1.AllowUserToResizeRows = false;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
@@ -534,14 +535,14 @@
this.Column4,
this.Column5,
this.Column6});
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle12.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle6;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(9, 311);
this.dataGridView1.Name = "dataGridView1";

View File

@@ -4,6 +4,7 @@ using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Printing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -85,6 +86,7 @@ namespace WindowsFormsApp1.Delivery
if (db_data[5] != "") {
add_grid[0] = db_data[5];
add_grid[1] = "입고";
btn_printLine.Visible = true;
dataGridView1.Rows.Add(add_grid);
}
if (db_data[6] != "") {
@@ -244,5 +246,63 @@ namespace WindowsFormsApp1.Delivery
{
tb_order_date.Text = DateTime.Now.ToString("G").Substring(0, 10);
}
private void btn_printLine_Click(object sender, EventArgs e)
{
PrintDocument pd = new PrintDocument();
pd.DocumentName = "띠지 출력";
pd.DefaultPageSettings.Landscape = true;
pd.PrintPage += new PrintPageEventHandler(this.pd_Print_Page);
pd.Print();
}
#region PrintLine_Sub
private void pd_Print_Page(object sender, PrintPageEventArgs e)
{
string list_name = tb_List_name.Text.Replace("[", "");
list_name = list_name.Replace("]", "-");
string book_name = tb_book_name.Text;
string price = tb_pay.Text.Replace(",", "");
price = string.Format("{0:#,###}", Convert.ToInt32(price));
tb_pay.Text = price;
string[] text = { tb_num.Text, tb_count.Text, list_name, book_name, price, tb_book_comp.Text, tb_isbn.Text };
Graphics g = e.Graphics;
int xPos = 0;
int yPos = 0;
int MaxX = 133;
Pen p = new Pen(Color.Black);
Font title = new Font("굴림", 22, FontStyle.Bold);
Font count = new Font("굴림", 16, FontStyle.Bold);
Font list = new Font("굴림", 14, FontStyle.Regular);
Font book = new Font("굴림", 18, FontStyle.Regular);
Font price_f = new Font("굴림", 14, FontStyle.Regular);
RectangleF title_Area = new RectangleF(xPos, yPos, MaxX, 35);
yPos += 30;
RectangleF count_Area = new RectangleF(xPos, yPos, MaxX, 35);
yPos += 25;
RectangleF list_Area = new RectangleF(xPos, yPos, MaxX, 70);
yPos += 65;
RectangleF book_Area1 = new RectangleF(xPos, yPos, MaxX, 120);
yPos += 115;
RectangleF price_Area = new RectangleF(xPos, yPos, MaxX, 70);
//g.DrawLine(p, MaxX, 0, MaxX, yPos);
using (SolidBrush drawBrush = new SolidBrush(Color.Black))
{
g.DrawString(text[0], title, drawBrush, title_Area);
g.DrawString(text[1], count, drawBrush, count_Area);
g.DrawString(text[2], list, drawBrush, list_Area);
g.DrawString(text[3], book, drawBrush, book_Area1);
g.DrawString(text[4], price_f, drawBrush, price_Area);
}
}
#endregion
}
}

View File

@@ -28,7 +28,7 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(List_aggregation));
this.btn_lookup = new System.Windows.Forms.Button();
this.btn_save = new System.Windows.Forms.Button();
@@ -105,7 +105,6 @@
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.panel4 = new System.Windows.Forms.Panel();
this.lbl_total = new System.Windows.Forms.Label();
this.lbl_pay = new System.Windows.Forms.Label();
this.lbl_count = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
@@ -194,14 +193,14 @@
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
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.list_name,
this.list_date,
@@ -806,7 +805,6 @@
//
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.lbl_total);
this.panel4.Controls.Add(this.lbl_pay);
this.panel4.Controls.Add(this.lbl_count);
this.panel4.Controls.Add(this.label16);
this.panel4.Location = new System.Drawing.Point(12, 613);
@@ -824,21 +822,11 @@
this.lbl_total.TabIndex = 0;
this.lbl_total.Text = "합계 : ";
//
// lbl_pay
//
this.lbl_pay.AutoSize = true;
this.lbl_pay.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_pay.Location = new System.Drawing.Point(469, 5);
this.lbl_pay.Name = "lbl_pay";
this.lbl_pay.Size = new System.Drawing.Size(50, 13);
this.lbl_pay.TabIndex = 0;
this.lbl_pay.Text = "단가 : ";
//
// lbl_count
//
this.lbl_count.AutoSize = true;
this.lbl_count.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_count.Location = new System.Drawing.Point(248, 5);
this.lbl_count.Location = new System.Drawing.Point(357, 5);
this.lbl_count.Name = "lbl_count";
this.lbl_count.Size = new System.Drawing.Size(50, 13);
this.lbl_count.TabIndex = 0;
@@ -970,7 +958,6 @@
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Label lbl_total;
private System.Windows.Forms.Label lbl_pay;
private System.Windows.Forms.Label lbl_count;
private System.Windows.Forms.Label label16;
}

View File

@@ -86,10 +86,26 @@ namespace WindowsFormsApp1.Delivery
string db_tmp = db.More_DB_Search("Obj_List", searchdb1, searchdb2, searchdb);
Made_Grid(db_tmp);
Print_lbl_Total();
dataGridView1.Focus();
}
#region Lookup_Click_Sub
/// <summary>
/// 라벨에 총 합계 출력
/// </summary>
private void Print_lbl_Total()
{
int count = 0;
int total = 0;
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
count += Convert.ToInt32(dataGridView1.Rows[a].Cells["count"].Value.ToString());
total += Convert.ToInt32(dataGridView1.Rows[a].Cells["total"].Value.ToString());
}
lbl_count.Text = string.Format("수량 : {0:#,###}", count);
lbl_total.Text = string.Format("합계 : {0:#,###}", total);
}
/// <summary>
/// 표에 값을 채우는 함수.
/// </summary>
/// <param name="tmp">분할을 하지않은 데이터베이스 값</param>
@@ -100,7 +116,7 @@ namespace WindowsFormsApp1.Delivery
string[] grid = {
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "" };
int count = 15;
for (int a = 0; a < db_data.Length; a++)
@@ -133,7 +149,7 @@ namespace WindowsFormsApp1.Delivery
if (a % count == 12) { grid[14] = db_data[a]; }
if (a % count == 13) { grid[15] = db_data[a]; }
if (a % count == 14) {
grid[16] = db_data[a];
grid[16] = db_data[a];
if (Grid_filter(grid))
{
dataGridView1.Rows.Add(grid);
@@ -227,7 +243,7 @@ namespace WindowsFormsApp1.Delivery
value = Regex.Replace(value, @"[^0-9]", "");
if(value == "") return;
if (value == "") return;
string[] Edit_col = { "state" };
string[] Edit_data = { "완료" };
@@ -255,8 +271,8 @@ namespace WindowsFormsApp1.Delivery
{
string[] tmp = book_list.Split('|');
List<string> l_book = new List<string>();
string[] book = { "", "", "", "", "", "", "" };
for(int a= 0; a < tmp.Length; a++)
for (int a = 0; a < tmp.Length; a++)
{
if (a % 8 == 0) { l_book.Add(tmp[a]); } // isbn
if (a % 8 == 1) { l_book.Add(tmp[a]); } // isbn_import
@@ -266,7 +282,7 @@ namespace WindowsFormsApp1.Delivery
if (a % 8 == 5) { l_book.Add(tmp[a]); } // price
if (a % 8 == 6) { l_book.Add(tmp[a]); } // input_count
if (a % 8 == 7) { l_book.Add(tmp[a]); // persent
book = db_data_filter(l_book, book);
string[] book = db_data_filter(l_book);
input_sales(book, out_per);
}
}
@@ -288,8 +304,8 @@ namespace WindowsFormsApp1.Delivery
"count", "out_per", "total", "in_price", "out_price", "in_per", "etc" };
string[] insert_data = { compidx, date, dataGridView1.Rows[row].Cells["list_date"].Value.ToString(),
dataGridView1.Rows[row].Cells["list_name"].Value.ToString(), clt,
book[0], book[1], book[2], book[3], book[4],
book[5], out_per, total[0], total[1], total[2], book[6], etc };
book[0], book[1], book[2], book[3], book[4],
book[5], out_per, total[0], total[1], total[2], book[6], etc };
db.DB_INSERT("Sales", col_name, insert_data);
}
@@ -309,7 +325,7 @@ namespace WindowsFormsApp1.Delivery
string[] result = { total.ToString(), in_price.ToString(), out_price.ToString() };
return result;
}
private string[] db_data_filter(List<string> l_book, string[] book)
private string[] db_data_filter(List<string> l_book)
{
if (l_book[0] == "") {
l_book.RemoveAt(0);
@@ -317,7 +333,7 @@ namespace WindowsFormsApp1.Delivery
else if(l_book[0] != l_book[1]){
l_book.RemoveAt(1);
}
book = l_book.ToArray();
string[] book = l_book.ToArray();
return book;
}
int cnt = 0; int pageNo = 1;

View File

@@ -4,7 +4,9 @@ using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -49,6 +51,9 @@ namespace WindowsFormsApp1.납품관리
private void btn_Lookup_Click(object sender, EventArgs e)
{
dataGrid_Email.Rows.Clear();
dataGrid_Fax.Rows.Clear();
set_date[0] = Start_DatePicker.Value.ToString().Substring(0, 10);
set_date[1] = End_DatePicker.Value.ToString().Substring(0, 10);
@@ -105,7 +110,6 @@ namespace WindowsFormsApp1.납품관리
// 수신자회사명, 수신번호, 전송일시, 전송상태, 전송페이지수, 성공페이지수, 전송파일명, 전송결과
string[] data = fax.Send_chk_BaroFax(db_data[a]);
MessageBox.Show(db_data[a]);
grid[0] = db_data[a];
grid[1] = data[0];
grid[2] = data[1];
@@ -169,9 +173,46 @@ namespace WindowsFormsApp1.납품관리
}
try
{
Process.Start(Application.StartupPath + "\\Excel\\" + filename + ".xlsx");
string localPath = Application.StartupPath + "\\Excel\\";
// filename += ".xlsx";
string strFile = localPath + filename;
FileInfo fileInfo = new FileInfo(strFile);
if (fileInfo.Exists) // 로컬 경로에 파일이 존재 할 경우
Process.Start(strFile);
else {
// 존재하지 않을 경우 FTP에 접속하여 로컬경로로 파일을 다운로드 함.
FTP_Down(filename);
Process.Start(strFile);
}
}
catch { }
}
#region Sub
private void FTP_Down(string file_name)
{
string ip = "1.215.250.130";
string id = "ftpgloria";
string pw = "admin@!@#$";
WebClient clnt = new WebClient();
clnt.Credentials = new NetworkCredential(id, pw);
Uri uri = new Uri(string.Format("FTP://{0}@{1}/Excel/{2}", id, ip, file_name));
clnt.DownloadFileAsync(uri, Application.StartupPath + "\\Excel\\" + file_name);
clnt.DownloadFileCompleted += new AsyncCompletedEventHandler(DownloadFileCallBack);
}
private static void DownloadFileCallBack(object sender, AsyncCompletedEventArgs e)
{
if (e.Cancelled)
MessageBox.Show("File Download Cancelled");
if (e.Error != null)
MessageBox.Show(e.Error.ToString());
}
#endregion
}
}

View File

@@ -6,6 +6,7 @@ using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@@ -430,9 +431,11 @@ namespace WindowsFormsApp1.Delivery
// 엑셀파일 생성
string filename = Excel_sub();
string filePath = Application.StartupPath + "\\Excel";
string filePath = Application.StartupPath + "\\Excel\\";
switch (emchk)
Upload_File(filename, filePath);
switch (emchk)
{
case "0":
Send_FAX(pur, filename, filePath);
@@ -443,6 +446,33 @@ namespace WindowsFormsApp1.Delivery
}
}
#region Order_Send_Sub
private void Upload_File(string file_name, string path)
{
FTP ftp = new FTP();
bool result = ftp.ConnectToServer("1.215.250.130", "21", "ftpgloria", "admin@!@#$");
DirectoryInfo dirInfo = new DirectoryInfo(path);
FileInfo[] infos = dirInfo.GetFiles();
if (result)
{
foreach (FileInfo info in dirInfo.GetFiles())
{
if (Path.GetFileName(info.Name) == file_name)
{
path = path.Replace(Application.StartupPath, "");
if (!ftp.UpLoad(path, info.FullName))
MessageBox.Show("FTP Upload 실패");
else
MessageBox.Show("FTP Upload 성공");
}
}
}
else
MessageBox.Show("FTP 접속 실패");
}
/// <summary>
/// 보낼 경로가 메일인지 팩스인지 확인
/// </summary>
@@ -461,7 +491,6 @@ namespace WindowsFormsApp1.Delivery
/// <param name="FilePath">파일경로 (파일명 포함)</param>
private void Send_FAX(string pur, string filename, string FilePath)
{
List<string> data_list = new List<string>();
string Area = "`fax`";
@@ -508,22 +537,22 @@ namespace WindowsFormsApp1.Delivery
FTP ftp = new FTP();
bool result = ftp.ConnectToServer();
bool result = ftp.ConnectToServer("testftp.barobill.co.kr", "9031", "gloriabook", "gloria7300");
string path = @"";
DirectoryInfo dirInfo = new DirectoryInfo(FilePath);
FileInfo[] infos = dirInfo.GetFiles();
if (result == true)
if (result)
{
foreach (FileInfo info in dirInfo.GetFiles())
{
if (Path.GetFileName(info.Name) == filename)
{
if (ftp.UpLoad(path, info.FullName) == false)
MessageBox.Show("FTP Upload 실패");
MessageBox.Show("팩스 FTP Upload 실패");
else
MessageBox.Show("FTP Upload 성공");
MessageBox.Show("팩스 FTP Upload 성공");
}
}
@@ -604,7 +633,6 @@ namespace WindowsFormsApp1.Delivery
{
Order_Send_Chk orc = new Order_Send_Chk(this);
orc.Show();
}
private void btn_order_list_change_Click(object sender, EventArgs e)
{

View File

@@ -376,14 +376,14 @@ namespace WindowsFormsApp1.Delivery
* btn취소 isbn 입고시간 */
string[] grid2 = {"", "", "", "", "",
"", "", "", "", "",
"취소", "", System.DateTime.Now.ToString("g")};
"취소", "", DateTime.Now.ToString("g")};
/* 번호 수량 도서명 출판사 저자
* 정가 매입율 합계 비고 구분
* 주문처 날짜 isbn */
string[] grid3 = {"", "", "", "", "",
"0", "", "", "", "",
"", System.DateTime.Now.ToString("g"), ""};
"", DateTime.Now.ToString("g"), ""};
if(row < 0 || col < 0) {
return;
@@ -446,6 +446,23 @@ namespace WindowsFormsApp1.Delivery
dataGridView1.Rows.RemoveAt(row);
}
private bool stock_chk(string isbn)
{
string Area = "`isbn`";
string[] table = { "compidx" };
string[] colum = { compidx };
string tmp = db.More_DB_Search("Inven", table, colum, Area);
string[] inven_isbn = tmp.Split('|');
for (int a = 0; a < inven_isbn.Length - 1; a++)
{
inven_isbn[a] = inven_isbn[a].Replace("\r", string.Empty);
}
for (int a = 0; a < inven_isbn.Length - 1; a++)
{
if (isbn == inven_isbn[a]) { return true; }
}
return false;
}
private int stock_count_chk(string isbn)
{
string Area = "`count`";
@@ -560,61 +577,6 @@ namespace WindowsFormsApp1.Delivery
}
Grid3_Book_Count();
}
private void input_Inven(int data, int row_count)
{
string Search_Table = "`compidx`, `list_name`, `header`, `num`, `book_name`, " +
"`author`, `book_comp`, `count`, `pay`, " + //`persent`, " +
"`total`, `etc`, `isbn`, `order`, `order_stat`, " +
"`order_date`, `send_date`, `stat`, `chk_date`, `import`, " +
"`import_date`, `export`, `export_date`";
string[] Where_Table = { "compidx", "book_name", "author", "book_comp", "list_name" };
string[] Search_Data = { compidx,
dataGridView2.Rows[row_count].Cells["Book_name2"].Value.ToString(),
dataGridView2.Rows[row_count].Cells["author2"].Value.ToString(),
dataGridView2.Rows[row_count].Cells["Book_comp2"].Value.ToString(),
dataGridView2.Rows[row_count].Cells["list_name2"].Value.ToString() };
string db_tmp_data = db.More_DB_Search("Obj_List_Book", Where_Table, Search_Data, Search_Table);
string[] db_data = db_tmp_data.Split('|');
string[] input_data = { "", "", "", "", "",
"", "", "", "", //"",
"", "", "", "", "",
"", "", "", "", "",
"", "", "" };
string[] input_col = { "compidx", "list_name", "header", "num", "book_name",
"author", "book_comp", "count", "pay", //"persent",
"total", "etc", "isbn", "order", "order_stat",
"order_date", "send_date", "stat", "chk_date", "import",
"import_date", "export", "export_date" };
// 마지막 공란 제거 for문
for(int a= 0; a < db_data.Length-1; a++)
{
input_data[a] = db_data[a];
if (a == 7) input_data[a] = data.ToString();
}
// Inven테이블내 데이터중복체크
string[] chk_Table = { "compidx", "isbn" };
string[] chk_Data = { compidx, db_data[12] };
string chk = db.More_DB_Search("Inven", chk_Table, chk_Data);
// 중복데이터가 검색되지않음.
if (chk.Length < 3) {
db.DB_INSERT("Inven", input_col, input_data);
MessageBox.Show("DB 새로 추가");
return;
}
else {
string count_tmp = db.More_DB_Search("Inven", chk_Table, chk_Data, "`count`, `idx`");
string[] cout = count_tmp.Split('|');
int count = Convert.ToInt32(cout[0]);
count += data;
MessageBox.Show("DB 수정");
db.DB_Update("Inven", "count", count.ToString(), "idx", cout[0]);
}
}
private void press_Grid2_Btn(DataGridViewCellEventArgs e)
{
string number = dataGridView2.Rows[e.RowIndex].Cells["num2"].Value.ToString();
@@ -629,17 +591,17 @@ namespace WindowsFormsApp1.Delivery
string db_data = db.More_DB_Search("Obj_List_Book", Table, Data, Area);
Insert_Grid(db_data);
for(int a = 0; a < dataGridView3.Rows.Count-1; a++)
for (int a = 0; a < dataGridView3.Rows.Count - 1; a++)
{
if (dataGridView3.Rows[a].Cells["book_name3"].Value.ToString() == Data[0] &&
if (dataGridView3.Rows[a].Cells["book_name3"].Value.ToString() == Data[0] &&
dataGridView3.Rows[a].Cells["book_comp3"].Value.ToString() == Data[1] &&
dataGridView3.Rows[a].Cells["author3"].Value.ToString() == Data[2]) {
int count = Convert.ToInt32(dataGridView3.Rows[a].Cells["count3"].Value.ToString());
count--;
if(count == 0) {
if (count == 0) {
dataGridView3.Rows.RemoveAt(a);
}
else if(count > 0) {
else if (count > 0) {
dataGridView3.Rows[a].Cells["count3"].Value = count.ToString();
}
}
@@ -658,25 +620,163 @@ namespace WindowsFormsApp1.Delivery
{
for(int a = 0; a < dataGridView2.Rows.Count; a++) {
string[] search_Col = { "book_name", "book_comp", "author", "list_name" };
string[] search_Data = { dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString(),
dataGridView2.Rows[a].Cells["Book_comp2"].Value.ToString(),
dataGridView2.Rows[a].Cells["author2"].Value.ToString(),
dataGridView2.Rows[a].Cells["list_name2"].Value.ToString() };
string[] search_Data = {
dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString(),
dataGridView2.Rows[a].Cells["Book_comp2"].Value.ToString(),
dataGridView2.Rows[a].Cells["author2"].Value.ToString(),
dataGridView2.Rows[a].Cells["list_name2"].Value.ToString()
};
string[] edit_Col = { "import", "import_date", "isbn_import" };
string[] edit_Data = { "입고", dataGridView2.Rows[a].Cells["Date"].Value.ToString(),
dataGridView2.Rows[a].Cells["isbn2"].Value.ToString() };
db.More_Update("Obj_List_Book", edit_Col, edit_Data, search_Col, search_Data);
}
// 입고작업을 하려는 책이 재고에 있을 경우, 재고 -1이 되어야함.
/* 만약 재고수보다 입고수가 더 많을경우는?
/* 입고작업을 하려는 책이 재고에 있을 경우, 재고 -1이 되어야함.
* 만약 재고수보다 입고수가 더 많을경우는?
* 1. 재고수량이 0이 되며, 나머지값을 매입원장에 기입.
* (재고1, 입고필요수량3 일 경우 재고는 사라지고, 매입원장에 2권분량의 값이 들어가야함.) */
save_grid2();
//save_grid3();
input_ledger();
}
#region Save_Sub
/// <summary>
/// 목록도서DB 안의 입고수량 수정하는 함수
/// </summary>
private void save_grid2()
{
for (int a = 0; a < dataGridView2.Rows.Count; a++)
{
string[] grid2 = {
dataGridView2.Rows[a].Cells["num2"].Value.ToString(), // 번호
dataGridView2.Rows[a].Cells["count2"].Value.ToString(), // 수량
dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString(), // 도서명
dataGridView2.Rows[a].Cells["Book_comp2"].Value.ToString(), // 출판사
dataGridView2.Rows[a].Cells["author2"].Value.ToString(), // 저자
dataGridView2.Rows[a].Cells["pay2"].Value.ToString(), // 단가
dataGridView2.Rows[a].Cells["total2"].Value.ToString(), // 합계
dataGridView2.Rows[a].Cells["list_name2"].Value.ToString(), // 구분
dataGridView2.Rows[a].Cells["edasd"].Value.ToString(), // 비고
dataGridView2.Rows[a].Cells["order2"].Value.ToString(), // 주문처명
dataGridView2.Rows[a].Cells["Date"].Value.ToString() // 입고시간
};
string[] Search_col = { "compidx", "book_name", "book_comp", "author", "list_name" };
string[] Search_data = { compidx, grid2[2], grid2[3], grid2[4], grid2[7] };
string tmp_db = db.More_DB_Search("Obj_List_Book", Search_col, Search_data, "`count`");
string[] db_data = tmp_db.Split('|');
string[] Edit_col = { "input_count" };
string[] Edit_data = { Inven_count(db_data[0], dataGridView2.Rows[a].Cells["count2"].Value.ToString(), a) };
db.More_Update("Obj_List_Book", Edit_col, Edit_data, Search_col, Search_data);
}
}
/// <summary>
/// 재고에 들어갈 카운트를 재는거
/// </summary>
/// <param name="ori">목록DB내 수량</param>
/// <param name="change">입고된 수량</param>
/// <returns></returns>
private string Inven_count(string ori, string change, int count)
{
string result = change;
int i_ori = Convert.ToInt32(ori);
int i_change = Convert.ToInt32(change);
if (i_ori < i_change)
{
int i_result = i_change - i_ori;
Input_Inven(i_result, count);
return ori;
}
else if (i_ori > i_change)
{
// 비고로 부족한 수량이 들어가야함
int i_result = i_change - i_ori;
Etc_Count(i_result, count);
}
return result;
}
private void Etc_Count(int res, int row)
{
string[] Edit_Col = { "etc", "import" };
string[] Edit_Data = { res.ToString(), "미입고" };
string[] Search_Name = { "compidx", "book_name", "author", "book_comp", "list_name" };
string[] Search_Data = { compidx,
dataGridView2.Rows[row].Cells["Book_name2"].Value.ToString(),
dataGridView2.Rows[row].Cells["author2"].Value.ToString(),
dataGridView2.Rows[row].Cells["Book_comp2"].Value.ToString(),
dataGridView2.Rows[row].Cells["list_name2"].Value.ToString()
};
db.More_Update("Obj_List_Book", Edit_Col, Edit_Data, Search_Name, Search_Data);
dataGridView2.Rows[row].Cells["edasd"].Value = res.ToString();
}
/// <summary>
/// 입고 추가수량이 재고로 들어가는 함수
/// </summary>
/// <param name="data"></param>
/// <param name="row_count"></param>
private void Input_Inven(int data, int row_count)
{
string Search_Table = "`compidx`, `list_name`, `header`, `num`, `book_name`, " +
"`author`, `book_comp`, `count`, `pay`, " + //`persent`, " +
"`total`, `etc`, `isbn`, `order`, `order_stat`, " +
"`order_date`, `send_date`, `stat`, `chk_date`, `import`, " +
"`import_date`, `export`, `export_date`";
string[] Where_Table = { "compidx", "book_name", "author", "book_comp", "list_name" };
string[] Search_Data = { compidx,
dataGridView2.Rows[row_count].Cells["Book_name2"].Value.ToString(),
dataGridView2.Rows[row_count].Cells["author2"].Value.ToString(),
dataGridView2.Rows[row_count].Cells["Book_comp2"].Value.ToString(),
dataGridView2.Rows[row_count].Cells["list_name2"].Value.ToString() };
string db_tmp_data = db.More_DB_Search("Obj_List_Book", Where_Table, Search_Data, Search_Table);
string[] db_data = db_tmp_data.Split('|');
string[] input_data = { "", "", "", "", "",
"", "", "", "", // "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "" };
string[] input_col = { "compidx", "list_name", "header", "num", "book_name",
"author", "book_comp", "count", "pay", //"persent",
"total", "etc", "isbn", "order", "order_stat",
"order_date", "send_date", "stat", "chk_date", "import",
"import_date", "export", "export_date" };
// 마지막 공란 제거 for문
for (int a = 0; a < db_data.Length - 1; a++)
{
input_data[a] = db_data[a];
if (a == 7) input_data[a] = data.ToString();
}
// Inven테이블내 데이터중복체크
string[] chk_Table = { "compidx", "isbn" };
string[] chk_Data = { compidx, db_data[12] };
string chk = db.More_DB_Search("Inven", chk_Table, chk_Data);
// 중복데이터가 검색되지않음.
if (chk.Length < 3)
{
db.DB_INSERT("Inven", input_col, input_data);
MessageBox.Show("DB 새로 추가");
return;
}
else
{
string count_tmp = db.More_DB_Search("Inven", chk_Table, chk_Data, "`count`, `idx`");
string[] cout = count_tmp.Split('|');
int count = Convert.ToInt32(cout[0]);
count += data;
MessageBox.Show("DB 수정");
db.DB_Update("Inven", "count", count.ToString(), "idx", cout[0]);
}
}
/// <summary>
/// 매입원장에 추가하는 함수
/// </summary>
@@ -703,23 +803,6 @@ namespace WindowsFormsApp1.Delivery
db.DB_INSERT("Buy_ledger", Area, tata);
}
}
private bool stock_chk(string isbn)
{
string Area = "`isbn`";
string[] table = { "compidx" };
string[] colum = { compidx };
string tmp = db.More_DB_Search("Inven", table, colum, Area);
string[] inven_isbn = tmp.Split('|');
for (int a= 0; a < inven_isbn.Length - 1; a++)
{
inven_isbn[a] = inven_isbn[a].Replace("\r", string.Empty);
}
for(int a = 0; a < inven_isbn.Length - 1; a++)
{
if (isbn == inven_isbn[a]) { return true; }
}
return false;
}
/// <summary>
/// input_ledger를 도와주는 함수
/// </summary>
@@ -732,14 +815,17 @@ namespace WindowsFormsApp1.Delivery
{
string[] result = { "", "", "", "", "0",
"0", "0", "0", "0", "" };
if (book_name == "" || book_comp == "" || author == "") {
if (book_name == "" || book_comp == "" || author == "")
{
for (int a = count; a > 0; a--)
{
if (dataGridView2.Rows[a].Cells["order2"].Value.ToString() != "") {
if (dataGridView2.Rows[a].Cells["order2"].Value.ToString() != "")
{
result[0] = compidx;
result[1] = dataGridView3.Rows[count].Cells["Order3"].Value.ToString();
result[7] = dataGridView3.Rows[count].Cells["total3"].Value.ToString();
if (Convert.ToInt32(result[7]) < 0) {
if (Convert.ToInt32(result[7]) < 0)
{
int tmp7 = Convert.ToInt32(result[7]) * -1;
result[7] = tmp7.ToString();
}
@@ -766,56 +852,7 @@ namespace WindowsFormsApp1.Delivery
}
return result;
}
/// <summary>
/// 목록도서DB 안의 입고수량 수정하는 함수
/// </summary>
private void save_grid2()
{
for(int a= 0; a < dataGridView2.Rows.Count; a++)
{
string[] grid2 = { dataGridView2.Rows[a].Cells["num2"].Value.ToString(), // 번호
dataGridView2.Rows[a].Cells["count2"].Value.ToString(), // 수량
dataGridView2.Rows[a].Cells["Book_name2"].Value.ToString(), // 도서명
dataGridView2.Rows[a].Cells["Book_comp2"].Value.ToString(), // 출판사
dataGridView2.Rows[a].Cells["author2"].Value.ToString(), // 저자
dataGridView2.Rows[a].Cells["pay2"].Value.ToString(), // 단가
dataGridView2.Rows[a].Cells["total2"].Value.ToString(), // 합계
dataGridView2.Rows[a].Cells["list_name2"].Value.ToString(), // 구분
dataGridView2.Rows[a].Cells["edasd"].Value.ToString(), // 비고
dataGridView2.Rows[a].Cells["order2"].Value.ToString(), // 주문처명
dataGridView2.Rows[a].Cells["Date"].Value.ToString() }; // 입고시간
string[] Search_col = { "compidx", "book_name", "book_comp", "author", "list_name" };
string[] Search_data = { compidx, grid2[2], grid2[3], grid2[4], grid2[7] };
string tmp_db = db.More_DB_Search("Obj_List_Book", Search_col, Search_data, "`count`");
string[] db_data = tmp_db.Split('|');
string[] Edit_col = { "input_count" };
string[] Edit_data = { Inven_count(db_data[0],dataGridView2.Rows[a].Cells["count2"].Value.ToString(), a) };
db.More_Update("Obj_List_Book", Edit_col, Edit_data, Search_col, Search_data);
}
}
/// <summary>
/// 재고에 들어갈 카운트를 재는거
/// </summary>
/// <param name="ori">목록DB내 수량</param>
/// <param name="change">입고된 수량</param>
/// <returns></returns>
private string Inven_count(string ori, string change, int count)
{
string result = change;
int i_ori = Convert.ToInt32(ori);
int i_change = Convert.ToInt32(change);
if (i_ori < i_change) {
int i_result = i_change - i_ori;
input_Inven(i_result, count);
return ori;
}
else if (i_ori > i_change) {
// 비고로 부족한 수량이 들어가야함
}
return result;
}
#endregion
private void dataGridView3_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
if (dataGridView3.CurrentCell != null)

View File

@@ -28,26 +28,158 @@
/// </summary>
private void InitializeComponent()
{
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.set_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.set_isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.set_count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.set_price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btn_Search = new System.Windows.Forms.Button();
this.btn_Add = new System.Windows.Forms.Button();
this.btn_Edit = new System.Windows.Forms.Button();
this.btn_Delete = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.set_name,
this.set_isbn,
this.set_count,
this.set_price,
this.author,
this.book_comp});
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(12, 40);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(792, 318);
this.dataGridView1.TabIndex = 6;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// set_name
//
this.set_name.HeaderText = "세트명";
this.set_name.Name = "set_name";
this.set_name.Width = 250;
//
// set_isbn
//
this.set_isbn.HeaderText = "세트 ISBN";
this.set_isbn.Name = "set_isbn";
//
// set_count
//
this.set_count.HeaderText = "총 수량";
this.set_count.Name = "set_count";
this.set_count.Width = 80;
//
// set_price
//
this.set_price.HeaderText = "세트 정가";
this.set_price.Name = "set_price";
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(59, 12);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(271, 21);
this.textBox1.TabIndex = 7;
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(371, 219);
this.label1.Location = new System.Drawing.Point(12, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(107, 12);
this.label1.TabIndex = 5;
this.label1.Text = "마크관리_전집관리";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 8;
this.label1.Text = "검색어";
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(336, 11);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(75, 23);
this.btn_Search.TabIndex = 9;
this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true;
this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
//
// btn_Add
//
this.btn_Add.Location = new System.Drawing.Point(417, 11);
this.btn_Add.Name = "btn_Add";
this.btn_Add.Size = new System.Drawing.Size(75, 23);
this.btn_Add.TabIndex = 9;
this.btn_Add.Text = "추 가";
this.btn_Add.UseVisualStyleBackColor = true;
this.btn_Add.Click += new System.EventHandler(this.btn_Add_Click);
//
// btn_Edit
//
this.btn_Edit.Location = new System.Drawing.Point(498, 11);
this.btn_Edit.Name = "btn_Edit";
this.btn_Edit.Size = new System.Drawing.Size(75, 23);
this.btn_Edit.TabIndex = 9;
this.btn_Edit.Text = "수 정";
this.btn_Edit.UseVisualStyleBackColor = true;
this.btn_Edit.Click += new System.EventHandler(this.btn_Edit_Click);
//
// btn_Delete
//
this.btn_Delete.Location = new System.Drawing.Point(579, 11);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(75, 23);
this.btn_Delete.TabIndex = 9;
this.btn_Delete.Text = "삭 제";
this.btn_Delete.UseVisualStyleBackColor = true;
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(660, 11);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 9;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// All_Book_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.ClientSize = new System.Drawing.Size(816, 450);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Delete);
this.Controls.Add(this.btn_Edit);
this.Controls.Add(this.btn_Add);
this.Controls.Add(this.btn_Search);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.dataGridView1);
this.Name = "All_Book_manage";
this.Text = "All_Book_manage";
this.Text = "전집 관리";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -55,6 +187,19 @@
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn set_name;
private System.Windows.Forms.DataGridViewTextBoxColumn set_isbn;
private System.Windows.Forms.DataGridViewTextBoxColumn set_count;
private System.Windows.Forms.DataGridViewTextBoxColumn set_price;
private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_Add;
private System.Windows.Forms.Button btn_Edit;
private System.Windows.Forms.Button btn_Delete;
private System.Windows.Forms.Button btn_Close;
public System.Windows.Forms.Button btn_Search;
}
}

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UniMarc.;
namespace WindowsFormsApp1.Mac
{
@@ -18,5 +19,48 @@ namespace WindowsFormsApp1.Mac
InitializeComponent();
main = _main;
}
public void btn_Search_Click(object sender, EventArgs e)
{
string text = textBox1.Text;
}
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
btn_Search_Click(null, null);
}
}
private void btn_Add_Click(object sender, EventArgs e)
{
// 새로운 폼 작업이 필요함.
All_Book_manage_Add add = new All_Book_manage_Add(this);
add.Show();
}
private void btn_Edit_Click(object sender, EventArgs e)
{
// 새로운 폼 작업이 필요함.
}
private void btn_Delete_Click(object sender, EventArgs e)
{
}
private void btn_Close_Click(object sender, EventArgs e)
{
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
}
}

View File

@@ -117,4 +117,22 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="set_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="set_isbn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="set_count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="set_price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -0,0 +1,253 @@

namespace UniMarc.
{
partial class All_Book_manage_Add
{
/// <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.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tb_setName = new System.Windows.Forms.TextBox();
this.tb_setCount = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.tb_setYear = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.tb_setISBN = new System.Windows.Forms.TextBox();
this.tb_setPrice = new System.Windows.Forms.TextBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN = 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(13, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(55, 12);
this.label1.TabIndex = 0;
this.label1.Text = "* 세트 명";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 43);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 0;
this.label2.Text = "구성 수량";
//
// tb_setName
//
this.tb_setName.Location = new System.Drawing.Point(74, 12);
this.tb_setName.Name = "tb_setName";
this.tb_setName.Size = new System.Drawing.Size(583, 21);
this.tb_setName.TabIndex = 1;
//
// tb_setCount
//
this.tb_setCount.Location = new System.Drawing.Point(74, 39);
this.tb_setCount.Name = "tb_setCount";
this.tb_setCount.Size = new System.Drawing.Size(232, 21);
this.tb_setCount.TabIndex = 1;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(362, 43);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 0;
this.label3.Text = "출간 연도";
//
// tb_setYear
//
this.tb_setYear.Location = new System.Drawing.Point(425, 39);
this.tb_setYear.Name = "tb_setYear";
this.tb_setYear.Size = new System.Drawing.Size(232, 21);
this.tb_setYear.TabIndex = 1;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(13, 70);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(61, 12);
this.label4.TabIndex = 0;
this.label4.Text = "세트 ISBN";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(362, 70);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(57, 12);
this.label5.TabIndex = 0;
this.label5.Text = "세트 정가";
//
// tb_setISBN
//
this.tb_setISBN.Location = new System.Drawing.Point(74, 66);
this.tb_setISBN.Name = "tb_setISBN";
this.tb_setISBN.Size = new System.Drawing.Size(232, 21);
this.tb_setISBN.TabIndex = 1;
//
// tb_setPrice
//
this.tb_setPrice.Location = new System.Drawing.Point(425, 66);
this.tb_setPrice.Name = "tb_setPrice";
this.tb_setPrice.Size = new System.Drawing.Size(232, 21);
this.tb_setPrice.TabIndex = 1;
//
// dataGridView1
//
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.book_name,
this.author,
this.book_comp,
this.price,
this.ISBN});
this.dataGridView1.Location = new System.Drawing.Point(12, 93);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(665, 222);
this.dataGridView1.TabIndex = 2;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(160, 321);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(100, 30);
this.btn_Save.TabIndex = 3;
this.btn_Save.Text = "저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(425, 321);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(100, 30);
this.btn_Close.TabIndex = 3;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// book_name
//
this.book_name.HeaderText = "* 도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 150;
//
// author
//
this.author.HeaderText = "* 저자";
this.author.Name = "author";
//
// book_comp
//
this.book_comp.HeaderText = "* 출판사";
this.book_comp.Name = "book_comp";
this.book_comp.Width = 150;
//
// price
//
this.price.HeaderText = "* 정가";
this.price.Name = "price";
//
// ISBN
//
this.ISBN.HeaderText = "ISBN";
this.ISBN.Name = "ISBN";
//
// All_Book_manage_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(689, 358);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Save);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.tb_setPrice);
this.Controls.Add(this.tb_setYear);
this.Controls.Add(this.tb_setISBN);
this.Controls.Add(this.label5);
this.Controls.Add(this.tb_setCount);
this.Controls.Add(this.label3);
this.Controls.Add(this.label4);
this.Controls.Add(this.tb_setName);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "All_Book_manage_Add";
this.Text = "전집 목록 생성";
((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.TextBox tb_setName;
private System.Windows.Forms.TextBox tb_setCount;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox tb_setYear;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tb_setISBN;
private System.Windows.Forms.TextBox tb_setPrice;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn price;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
}
}

View File

@@ -0,0 +1,77 @@
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;
using WindowsFormsApp1.Mac;
namespace UniMarc.
{
public partial class All_Book_manage_Add : Form
{
All_Book_manage manage;
public All_Book_manage_Add(All_Book_manage _manage)
{
InitializeComponent();
manage = _manage;
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
private void btn_Save_Click(object sender, EventArgs e)
{
bool grid_chk = true;
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["book_name"].Value == null ||
dataGridView1.Rows[a].Cells["author"].Value == null ||
dataGridView1.Rows[a].Cells["book_comp"].Value == null ||
dataGridView1.Rows[a].Cells["price"].Value == null) {
grid_chk = false;
break;
}
else if (dataGridView1.Rows[a].Cells["book_name"].Value.ToString() == "" ||
dataGridView1.Rows[a].Cells["author"].Value.ToString() == "" ||
dataGridView1.Rows[a].Cells["book_comp"].Value.ToString() == "" ||
dataGridView1.Rows[a].Cells["price"].Value.ToString() == "") {
grid_chk = false;
break;
}
else if (tb_setName.Text == "") {
grid_chk = false;
break;
}
}
if (!grid_chk) {
MessageBox.Show("필수 입력사항이 비어있습니다!\n*이 붙은 곳을 확인해주세요.");
return;
}
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
if ((e.Shift && e.KeyCode == Keys.Insert) || (e.Control && e.KeyCode == Keys.V))
{
sg.Excel_to_DataGridView(sender, e);
}
}
}
}

View File

@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ISBN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -116,12 +116,13 @@
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.Location = new System.Drawing.Point(12, 39);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 10;
this.dataGridView1.RowHeadersWidth = 40;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1127, 598);
this.dataGridView1.Size = new System.Drawing.Size(1156, 598);
this.dataGridView1.TabIndex = 48;
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// idx
//
@@ -306,7 +307,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1154, 655);
this.ClientSize = new System.Drawing.Size(1183, 651);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Delete);
this.Controls.Add(this.btn_Progress);

View File

@@ -105,7 +105,7 @@ namespace WindowsFormsApp1.Mac
string table = "Obj_List_Marc";
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
string[] edit_col = { "date", "date_res", "list_name", "KDC", "total",
"flatter", "unflatter", "state", "grade", "etc",
"m_charge" };
@@ -132,12 +132,26 @@ namespace WindowsFormsApp1.Mac
}
private void btn_Excel_Click(object sender, EventArgs e)
{
// TODO: 현재 권한 설정때문에 테스트불가.
/*
Skill_Grid sg = new Skill_Grid();
sg.ExcelCreate(dataGridView1, saveFileDialog1);
MessageBox.Show("엑셀로 저장되었습니다!");
*/
Excel_text et = new Excel_text();
string[] Excel_title = { "NO", "등록일", "마감일", "작업처", "분류", "전체", "편목", "미편목", "상태", "등급", "비고", "담당자" };
int rowCount = dataGridView1.RowCount;
string[,] inputExcel = new string[rowCount, 11];
for (int a = 0; a < rowCount; a++)
{
int row_idx = dataGridView1.Rows[a].HeaderCell.RowIndex + 1;
inputExcel[a, 0] = row_idx.ToString();
inputExcel[a, 1] = dataGridView1.Rows[a].Cells["start_date"].Value.ToString();
inputExcel[a, 2] = dataGridView1.Rows[a].Cells["end_date"].Value.ToString();
inputExcel[a, 3] = dataGridView1.Rows[a].Cells["list_marc"].Value.ToString();
inputExcel[a, 4] = dataGridView1.Rows[a].Cells["KDC"].Value.ToString();
inputExcel[a, 5] = dataGridView1.Rows[a].Cells["total"].Value.ToString();
inputExcel[a, 6] = dataGridView1.Rows[a].Cells["flatter"].Value.ToString();
inputExcel[a, 7] = dataGridView1.Rows[a].Cells["unflatter"].Value.ToString();
inputExcel[a, 8] = dataGridView1.Rows[a].Cells["state"].Value.ToString();
inputExcel[a, 9] = dataGridView1.Rows[a].Cells["grade"].Value.ToString();
inputExcel[a, 10] = dataGridView1.Rows[a].Cells["etc"].Value.ToString();
}
et.Mk_Excel(Excel_title, inputExcel);
}
private void btn_Merge_Click(object sender, EventArgs e)
{
@@ -148,7 +162,7 @@ namespace WindowsFormsApp1.Mac
{
for(int a = 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "진행") {
MessageBox.Show("체크된 목록이 현재 진행중입니다.");
return;
@@ -157,7 +171,7 @@ namespace WindowsFormsApp1.Mac
}
for(int a= 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "완료") {
dataGridView1.Rows[a].Cells["state"].Value = "진행";
state_Save(a);
@@ -183,16 +197,16 @@ namespace WindowsFormsApp1.Mac
{
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "완료") {
MessageBox.Show("체크된 목록은 현재 완료되습니다.");
MessageBox.Show("체크된 목록은 현재 완료되어있습니다.");
return;
}
}
}
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "진행") {
dataGridView1.Rows[a].Cells["state"].Value = "완료";
state_Save(a);
@@ -205,7 +219,7 @@ namespace WindowsFormsApp1.Mac
{
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
{
if (dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
db.DB_Delete("Obj_List_Marc", "compidx", compidx,
"idx", dataGridView1.Rows[a].Cells["idx"].Value.ToString());
}
@@ -215,19 +229,6 @@ namespace WindowsFormsApp1.Mac
{
this.Close();
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
int idx_col = e.ColumnIndex;
if(idx_col == 13)
{
if (((DataGridView)sender).SelectedCells[idx_col].Value.ToString() == "V") {
((DataGridView)sender).SelectedCells[idx_col].Value = "";
}
else {
((DataGridView)sender).SelectedCells[idx_col].Value = "V";
}
}
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
int idx_row = e.RowIndex;
@@ -238,8 +239,29 @@ namespace WindowsFormsApp1.Mac
marc.Show();
marc.input_list(dataGridView1.Rows[idx_row].Cells[1].Value.ToString(),
dataGridView1.Rows[idx_row].Cells[4].Value.ToString());
}
if (((DataGridView)sender).Columns[idx_col].Name == "check")
{
if (((DataGridView)sender).Rows[idx_row].Cells[idx_col].Value.ToString() == "V")
{
((DataGridView)sender).Rows[idx_row].Cells[idx_col].Value = "";
}
else
{
((DataGridView)sender).Rows[idx_row].Cells[idx_col].Value = "V";
}
}
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
}
}

View File

@@ -39,14 +39,14 @@ namespace WindowsFormsApp1.마크
int count = ml.dataGridView1.Rows.Count;
for(int a = 0; a < count; a++)
{
if (ml.dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V") {
input_data[0] = dataGridView1.Rows[a].Cells["idx"].Value.ToString();
input_data[1] = dataGridView1.Rows[a].Cells["list_marc"].Value.ToString();
input_data[2] = dataGridView1.Rows[a].Cells["total"].Value.ToString();
input_data[3] = dataGridView1.Rows[a].Cells["flatter"].Value.ToString();
input_data[4] = dataGridView1.Rows[a].Cells["unflatter"].Value.ToString();
lbl_charge.Text = dataGridView1.Rows[a].Cells["charge"].Value.ToString();
lbl_state.Text = dataGridView1.Rows[a].Cells["state"].Value.ToString();
if (ml.dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
input_data[0] = ml.dataGridView1.Rows[a].Cells["idx"].Value.ToString();
input_data[1] = ml.dataGridView1.Rows[a].Cells["list_marc"].Value.ToString();
input_data[2] = ml.dataGridView1.Rows[a].Cells["total"].Value.ToString();
input_data[3] = ml.dataGridView1.Rows[a].Cells["flatter"].Value.ToString();
input_data[4] = ml.dataGridView1.Rows[a].Cells["unflatter"].Value.ToString();
lbl_charge.Text = ml.dataGridView1.Rows[a].Cells["charge"].Value.ToString();
lbl_state.Text = ml.dataGridView1.Rows[a].Cells["state"].Value.ToString();
dataGridView1.Rows.Add(input_data);
}
}

View File

@@ -348,7 +348,7 @@
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(71, 23);
this.button1.TabIndex = 5;
this.button1.Text = "추 가 (A)";
this.button1.Text = "추 가 (&A)";
this.button1.UseVisualStyleBackColor = true;
//
// button2
@@ -357,7 +357,7 @@
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(71, 23);
this.button2.TabIndex = 5;
this.button2.Text = "저 장 (S)";
this.button2.Text = "저 장 (&S)";
this.button2.UseVisualStyleBackColor = true;
//
// button3
@@ -366,7 +366,7 @@
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(71, 23);
this.button3.TabIndex = 5;
this.button3.Text = "삭 제 (D)";
this.button3.Text = "삭 제 (&D)";
this.button3.UseVisualStyleBackColor = true;
//
// comboBox4
@@ -390,7 +390,7 @@
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(71, 23);
this.button4.TabIndex = 5;
this.button4.Text = "조 회 (H)";
this.button4.Text = "조 회 (&H)";
this.button4.UseVisualStyleBackColor = true;
//
// button5
@@ -399,7 +399,7 @@
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(99, 23);
this.button5.TabIndex = 5;
this.button5.Text = "바코드 출력 (B)";
this.button5.Text = "바코드 출력 (&B)";
this.button5.UseVisualStyleBackColor = true;
//
// button6
@@ -408,7 +408,7 @@
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(84, 23);
this.button6.TabIndex = 5;
this.button6.Text = "복본조사 (O)";
this.button6.Text = "복본조사 (&O)";
this.button6.UseVisualStyleBackColor = true;
//
// button7
@@ -417,7 +417,7 @@
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(71, 23);
this.button7.TabIndex = 5;
this.button7.Text = "DLS (L)";
this.button7.Text = "DLS (&L)";
this.button7.UseVisualStyleBackColor = true;
//
// School_Lookup

View File

@@ -29,32 +29,353 @@
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.cb_symbol = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.tb_result = new System.Windows.Forms.TextBox();
this.panel7 = new System.Windows.Forms.Panel();
this.label7 = new System.Windows.Forms.Label();
this.panel6 = new System.Windows.Forms.Panel();
this.tb_author = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.panel5 = new System.Windows.Forms.Panel();
this.tb_book = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.rb_author1 = new System.Windows.Forms.RadioButton();
this.label4 = new System.Windows.Forms.Label();
this.rb_author2 = new System.Windows.Forms.RadioButton();
this.panel4 = new System.Windows.Forms.Panel();
this.rb_moum1 = new System.Windows.Forms.RadioButton();
this.label6 = new System.Windows.Forms.Label();
this.rb_moum2 = new System.Windows.Forms.RadioButton();
this.panel2 = new System.Windows.Forms.Panel();
this.rb_book1 = new System.Windows.Forms.RadioButton();
this.label5 = new System.Windows.Forms.Label();
this.rb_book2 = new System.Windows.Forms.RadioButton();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel7.SuspendLayout();
this.panel6.SuspendLayout();
this.panel5.SuspendLayout();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(371, 219);
this.label1.Location = new System.Drawing.Point(16, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(135, 12);
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 5;
this.label1.Text = "마크관리_저자기호 생성";
this.label1.Text = "저자기호";
//
// cb_symbol
//
this.cb_symbol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_symbol.FormattingEnabled = true;
this.cb_symbol.Location = new System.Drawing.Point(129, 7);
this.cb_symbol.Name = "cb_symbol";
this.cb_symbol.Size = new System.Drawing.Size(254, 20);
this.cb_symbol.TabIndex = 6;
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.tb_result);
this.panel1.Controls.Add(this.panel7);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.panel6);
this.panel1.Controls.Add(this.panel5);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.panel4);
this.panel1.Controls.Add(this.panel2);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(400, 253);
this.panel1.TabIndex = 7;
//
// tb_result
//
this.tb_result.Location = new System.Drawing.Point(129, 223);
this.tb_result.Name = "tb_result";
this.tb_result.Size = new System.Drawing.Size(254, 21);
this.tb_result.TabIndex = 7;
//
// panel7
//
this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel7.Controls.Add(this.cb_symbol);
this.panel7.Controls.Add(this.label1);
this.panel7.Location = new System.Drawing.Point(-1, -1);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(400, 37);
this.panel7.TabIndex = 9;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(16, 227);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(77, 12);
this.label7.TabIndex = 5;
this.label7.Text = "저자기호변환";
//
// panel6
//
this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel6.Controls.Add(this.tb_author);
this.panel6.Controls.Add(this.label2);
this.panel6.Location = new System.Drawing.Point(-1, 35);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(400, 37);
this.panel6.TabIndex = 9;
//
// tb_author
//
this.tb_author.Location = new System.Drawing.Point(129, 7);
this.tb_author.Name = "tb_author";
this.tb_author.Size = new System.Drawing.Size(254, 21);
this.tb_author.TabIndex = 7;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(16, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(63, 12);
this.label2.TabIndex = 5;
this.label2.Text = "대표저자 *";
//
// panel5
//
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel5.Controls.Add(this.tb_book);
this.panel5.Controls.Add(this.label3);
this.panel5.Location = new System.Drawing.Point(-1, 71);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(400, 37);
this.panel5.TabIndex = 9;
//
// tb_book
//
this.tb_book.Location = new System.Drawing.Point(129, 7);
this.tb_book.Name = "tb_book";
this.tb_book.Size = new System.Drawing.Size(254, 21);
this.tb_book.TabIndex = 7;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(16, 11);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(29, 12);
this.label3.TabIndex = 5;
this.label3.Text = "서명";
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.rb_author1);
this.panel3.Controls.Add(this.label4);
this.panel3.Controls.Add(this.rb_author2);
this.panel3.Location = new System.Drawing.Point(-1, 107);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(400, 37);
this.panel3.TabIndex = 9;
//
// rb_author1
//
this.rb_author1.AutoSize = true;
this.rb_author1.Location = new System.Drawing.Point(133, 9);
this.rb_author1.Name = "rb_author1";
this.rb_author1.Size = new System.Drawing.Size(95, 16);
this.rb_author1.TabIndex = 8;
this.rb_author1.TabStop = true;
this.rb_author1.Text = "저자음절표시";
this.rb_author1.UseVisualStyleBackColor = true;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(16, 11);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(107, 12);
this.label4.TabIndex = 5;
this.label4.Text = "저자초성/음절적용";
//
// rb_author2
//
this.rb_author2.AutoSize = true;
this.rb_author2.Location = new System.Drawing.Point(272, 9);
this.rb_author2.Name = "rb_author2";
this.rb_author2.Size = new System.Drawing.Size(95, 16);
this.rb_author2.TabIndex = 8;
this.rb_author2.TabStop = true;
this.rb_author2.Text = "저자초성표시";
this.rb_author2.UseVisualStyleBackColor = true;
//
// panel4
//
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.rb_moum1);
this.panel4.Controls.Add(this.label6);
this.panel4.Controls.Add(this.rb_moum2);
this.panel4.Location = new System.Drawing.Point(-1, 179);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(400, 37);
this.panel4.TabIndex = 9;
//
// rb_moum1
//
this.rb_moum1.AutoSize = true;
this.rb_moum1.Location = new System.Drawing.Point(133, 9);
this.rb_moum1.Name = "rb_moum1";
this.rb_moum1.Size = new System.Drawing.Size(129, 16);
this.rb_moum1.TabIndex = 8;
this.rb_moum1.TabStop = true;
this.rb_moum1.Text = "모음기호보류(원칙)";
this.rb_moum1.UseVisualStyleBackColor = true;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(16, 11);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(95, 12);
this.label6.TabIndex = 5;
this.label6.Text = "자음표2자리일때";
//
// rb_moum2
//
this.rb_moum2.AutoSize = true;
this.rb_moum2.Location = new System.Drawing.Point(272, 9);
this.rb_moum2.Name = "rb_moum2";
this.rb_moum2.Size = new System.Drawing.Size(95, 16);
this.rb_moum2.TabIndex = 8;
this.rb_moum2.TabStop = true;
this.rb_moum2.Text = "모음기호표시";
this.rb_moum2.UseVisualStyleBackColor = true;
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.rb_book1);
this.panel2.Controls.Add(this.label5);
this.panel2.Controls.Add(this.rb_book2);
this.panel2.Location = new System.Drawing.Point(-1, 143);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(400, 37);
this.panel2.TabIndex = 9;
//
// rb_book1
//
this.rb_book1.AutoSize = true;
this.rb_book1.Location = new System.Drawing.Point(133, 9);
this.rb_book1.Name = "rb_book1";
this.rb_book1.Size = new System.Drawing.Size(95, 16);
this.rb_book1.TabIndex = 8;
this.rb_book1.TabStop = true;
this.rb_book1.Text = "서명음절표시";
this.rb_book1.UseVisualStyleBackColor = true;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(16, 11);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(107, 12);
this.label5.TabIndex = 5;
this.label5.Text = "서명초성/음절적용";
//
// rb_book2
//
this.rb_book2.AutoSize = true;
this.rb_book2.Location = new System.Drawing.Point(272, 3);
this.rb_book2.Name = "rb_book2";
this.rb_book2.Size = new System.Drawing.Size(129, 28);
this.rb_book2.TabIndex = 8;
this.rb_book2.TabStop = true;
this.rb_book2.Text = "서명초성표시\r\n(한글이 아닐경우X)";
this.rb_book2.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Location = new System.Drawing.Point(285, 271);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 11;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(84, 271);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 11;
this.button2.Text = "button1";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Symbol_Add
//
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.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.panel1);
this.Name = "Symbol_Add";
this.Text = "Symbol_Add";
this.Text = "저자기호 생성";
this.Load += new System.EventHandler(this.Symbol_Add_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel7.ResumeLayout(false);
this.panel7.PerformLayout();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cb_symbol;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox tb_book;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.TextBox tb_author;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.RadioButton rb_author1;
private System.Windows.Forms.RadioButton rb_author2;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.RadioButton rb_moum1;
private System.Windows.Forms.RadioButton rb_moum2;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.RadioButton rb_book1;
private System.Windows.Forms.RadioButton rb_book2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tb_result;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -124,6 +124,7 @@ namespace WindowsFormsApp1.Convenience
if (day < 1)
{
months--;
if (months < 1) { year--; months = 12; }
day = DateTime.DaysInMonth(year, months);
ago = true;
}

View File

@@ -136,7 +136,7 @@ namespace WindowsFormsApp1.Account
private void btn_Excel_Click(object sender, EventArgs e)
{
Excel_text et = new Excel_text();
// 은행코드 계좌번호 빈칸 금액 예금주
string[] Excel_title = { "은행코드", "계좌번호", "", "금액", "예금주" };
string[,] inputExcel = new string[dataGridView1.RowCount, 5];
for (int a = 0; a < dataGridView1.RowCount; a++)
{
@@ -145,7 +145,7 @@ namespace WindowsFormsApp1.Account
inputExcel[a, 3] = dataGridView1.Rows[a].Cells["send_money"].Value.ToString();
inputExcel[a, 4] = dataGridView1.Rows[a].Cells["bank_name"].Value.ToString();
}
et.Mk_Excel(inputExcel);
et.Mk_Excel(Excel_title, inputExcel);
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{

View File

@@ -197,7 +197,7 @@ namespace WindowsFormsApp1.Account
private void btn_excel_Click(object sender, EventArgs e)
{
Excel_text et = new Excel_text();
// 은행코드 계좌번호 빈칸 금액 예금주
string[] Excel_title = { "은행코드", "계좌번호", "", "금액", "예금주" };
string[,] inputExcel = new string[dataGridView1.RowCount, 5];
for (int a = 0; a < dataGridView1.RowCount; a++)
{
@@ -206,7 +206,7 @@ namespace WindowsFormsApp1.Account
inputExcel[a, 3] = dataGridView1.Rows[a].Cells["send_money"].Value.ToString();
inputExcel[a, 4] = dataGridView1.Rows[a].Cells["bank_name"].Value.ToString();
}
et.Mk_Excel(inputExcel);
et.Mk_Excel(Excel_title, inputExcel);
}
private void btn_close_Click(object sender, EventArgs e)