Compare commits

18 Commits

Author SHA1 Message Date
eee6aeb514 prev, next 기능 활성화 2026-01-21 23:55:00 +09:00
23cf444cba 마크편집화면 : 색인, 등급 업데이트 오류 수정 및 불필요 코드 정리 작업, 중복실행코드 제거 2026-01-21 23:20:16 +09:00
aa5f33eedb Marc2 화면에서 저장시 사용자 이름이 저장되도록 함
미소장 마크 코리스 창 채우기 기능 오류 수정 완료
마크정리화면에 에디터창 붙이기 작업시작(컨트롤 정리작업 중)
2026-01-20 22:13:56 +09:00
d5aa0fe59d [NewEditor] 저장기능 확인, 목록다시불러오기 기능추가
[2601152030] v- 마크편집 마크칸 채우기를 왔다갔다 하면 300 p.에 .이 없어져서 p로만 남음 (300 p. <-> 300) ,  p. 에 공백없게
[2601152030] v- 미소장마크 불러오기 할때 코리스에서 보이는 창 넓게(부차적)
[2601152030] v- D등급 저장이 필요 -> 그냥 저장할 수 있게 -> 데이터가 부족하더라도 저장이 되게
[2601152030] v- db에 저장된 isbn과 마크에 저장된 이 다를 경우 저장을 하면 저장 전에 오류표시 및 저장 가능하게
[2601152030] v- 사진 더블클릭시 미리보기 나오게, 오류창 제거요망
2026-01-15 21:28:17 +09:00
66e4392d7c 정렬필터기능복원(23:10~23:40) 2026-01-14 23:44:11 +09:00
6574a84c24 마크편집기 폼입력 화면에ㅓㅅ dpi auto scale 해제 후 크기 조정 작업 2026-01-09 22:15:46 +09:00
2bc502d7db 닫기버튼 추가 2026-01-09 20:11:23 +09:00
d75585cf26 mareditor 분리작업중 2026-01-09 00:14:59 +09:00
d48440f8bd mdiparent 추가 폼 추가 2026-01-08 22:42:54 +09:00
e14fb633fb 메인 화면의 서브폼을 탭메뉴 형태로 표시하도록 함
마크목록에서 창이 다중으로 열리게  하고, 제목줄도 내용에 맞도록 변경
전체 창 닫기 메뉴 추가
2026-01-08 22:29:00 +09:00
ChiKyun Kim
ef2f8537fb 데모기간 26년으로 변경 2026-01-08 10:31:17 +09:00
cdecb76faf 복사임시기능 추가 2026-01-07 22:57:27 +09:00
d9223c4e61 마크->마크작업->마크목록 더블클릭시 나오는 마크작성화면의 이름을 마크작성(1) 로 변경(PPT-10p)
마크->마크작업->마크작성 이름을  마크작성(2) 로 변경
마크->마크작업->마크작성(2)의 메뉴 이름을 신규마크작성 으로 변경
마크->마크작업 메뉴에 마크작성(1) 추가
마크 편집창 별도 분리 작업 진행 중 - (기존 코드와  연결관련 분석 필요 - 시간 많이 필요 할듯)
마크 편집창 내에서 복사 버튼 추가 (관련 코드 점검 필요)
2026-01-07 22:41:04 +09:00
40c2acd7de 마크생성화면 전체 컨트롤 탭순서 조정
마크목록생성시 납품처 정보가 저장되지 않는 현상 수정
2025-12-29 22:16:17 +09:00
c2e1ed7246 탭순서변경 2025-12-26 19:53:06 +09:00
e989c5aac8 복본검사시 오류발생한 항목의 수량을 -1 로 설정하도록 함 (해당 자료가 오류가 되도록)
마크생성화면에서 업체명 검색시 SQL오류 수정
2025-12-25 21:57:10 +09:00
241cf656b4 영문저자기호셋팅화면추가, 4인이상 처리시에 서명+출판사 옵션 추가, 4인이상 셋팅여부를 거래처정보에 추가 2025-11-10 21:55:02 +09:00
f516deaf69 납품처 셋팅 .. 다음에는 실제 내보내기 부분에 연결을 해야함. 2025-11-06 23:53:33 +09:00
56 changed files with 11268 additions and 2903 deletions

View File

@@ -14,7 +14,7 @@ namespace WindowsFormsApp1
/// <summary>
/// DB접속을 도와주는 클래스
/// </summary>
class Helper_DB
public class Helper_DB
{
// 접속
MySqlConnection conn;

View File

@@ -1,16 +1,18 @@
using System;
using AR;
using Microsoft.Vbe.Interop;
using MySql.Data.MySqlClient;
using OpenQA.Selenium.BiDi.Input;
using Renci.SshNet;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
using Renci.SshNet;
using UniMarc.Properties;
using System.Data;
using AR;
using UniMarc;
using UniMarc.Properties;
namespace WindowsFormsApp1
{
@@ -29,5 +31,18 @@ namespace WindowsFormsApp1
dt.AcceptChanges();
return dt;
}
public static int ExcuteNonQuery(string query)
{
Helper_DB db = new Helper_DB();
var cn = db.CreateConnection();
var cmd = new MySqlCommand(query, cn);
cn.Open();
var cnt = cmd.ExecuteNonQuery();
cmd.Dispose();
cn.Dispose();
return cnt;
}
}
}

View File

@@ -33,10 +33,8 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSelectDT));
this.dv1 = new System.Windows.Forms.DataGridView();
this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
@@ -45,13 +43,17 @@
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.btfind = new System.Windows.Forms.ToolStripButton();
this.btSelect = new System.Windows.Forms.ToolStripButton();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
this.SuspendLayout();
//
// dataGridView1
// dv1
//
this.dv1.AllowUserToAddRows = false;
this.dv1.AllowUserToDeleteRows = false;
@@ -69,7 +71,7 @@
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(0, 0);
this.dv1.MultiSelect = false;
this.dv1.Name = "dataGridView1";
this.dv1.Name = "dv1";
this.dv1.ReadOnly = true;
this.dv1.RowTemplate.Height = 23;
this.dv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@@ -78,10 +80,10 @@
//
// bn
//
this.bn.AddNewItem = this.bindingNavigatorAddNewItem;
this.bn.AddNewItem = null;
this.bn.BindingSource = this.bs;
this.bn.CountItem = this.bindingNavigatorCountItem;
this.bn.DeleteItem = this.bindingNavigatorDeleteItem;
this.bn.DeleteItem = null;
this.bn.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
@@ -93,8 +95,10 @@
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem});
this.toolStripLabel1,
this.tbFind,
this.btfind,
this.btSelect});
this.bn.Location = new System.Drawing.Point(0, 423);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
@@ -106,15 +110,6 @@
this.bn.TabIndex = 1;
this.bn.Text = "bindingNavigator1";
//
// bindingNavigatorAddNewItem
//
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorAddNewItem.Text = "새로 추가";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
@@ -122,15 +117,6 @@
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorDeleteItem
//
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorDeleteItem.Text = "삭제";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
@@ -158,6 +144,7 @@
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
@@ -191,6 +178,42 @@
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(31, 22);
this.toolStripLabel1.Text = "검색";
//
// tbFind
//
this.tbFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbFind.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.tbFind.Name = "tbFind";
this.tbFind.Size = new System.Drawing.Size(200, 25);
this.tbFind.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbFind_KeyDown);
//
// btfind
//
this.btfind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btfind.Image = ((System.Drawing.Image)(resources.GetObject("btfind.Image")));
this.btfind.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btfind.Name = "btfind";
this.btfind.Size = new System.Drawing.Size(23, 22);
this.btfind.Text = "toolStripButton1";
this.btfind.Click += new System.EventHandler(this.btfind_Click);
//
// btSelect
//
this.btSelect.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btSelect.Image = ((System.Drawing.Image)(resources.GetObject("btSelect.Image")));
this.btSelect.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSelect.Name = "btSelect";
this.btSelect.Size = new System.Drawing.Size(51, 22);
this.btSelect.Text = "선택";
this.btSelect.TextAlign = System.Drawing.ContentAlignment.TopLeft;
this.btSelect.Click += new System.EventHandler(this.btSelect_Click);
//
// fSelectDT
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -217,9 +240,7 @@
private System.Windows.Forms.DataGridView dv1;
private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
@@ -229,5 +250,9 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.BindingSource bs;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripTextBox tbFind;
private System.Windows.Forms.ToolStripButton btfind;
private System.Windows.Forms.ToolStripButton btSelect;
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,6 +13,7 @@ namespace UniMarc.ListOfValue
{
public partial class fSelectDT : Form
{
public DataRow SelectedRow = null;
public fSelectDT(DataTable dt)
{
InitializeComponent();
@@ -22,9 +24,35 @@ namespace UniMarc.ListOfValue
this.bs.DataSource = dt;
this.bn.BindingSource = this.bs;
this.dv1.DataSource = this.bs;
this.dv1.MultiSelect=false;
this.dv1.MultiSelect = false;
this.dv1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
this.dv1.EditMode = DataGridViewEditMode.EditProgrammatically;
this.dv1.CellDoubleClick += Dv1_CellDoubleClick;
this.dv1.KeyDown += Dv1_KeyDown;
}
private void Dv1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
e.Handled = true;
e.SuppressKeyPress = true;
btSelect_Click(sender, e);
}
}
private void Dv1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
var row = this.dv1.Rows[e.RowIndex];
if (row.DataBoundItem is DataRowView drv)
{
SelectedRow = drv.Row;
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}
private void fSelectDT_Load(object sender, EventArgs e)
@@ -32,7 +60,84 @@ namespace UniMarc.ListOfValue
this.Show();
Application.DoEvents();
this.dv1.AutoResizeColumns();
this.dv1.Focus();
}
private void btfind_Click(object sender, EventArgs e)
{
find();
}
void find()
{
var search = tbFind.Text.Trim();
var filter = "";
try
{
if (!search.isEmpty())
{
// 검색어에서 작은따옴표 이스케이프 처리
var escapedSearch = search.Replace("'", "''");
// DataTable의 모든 컬럼에 대해 검색 필터 생성
var dt = this.bs.DataSource as DataTable;
if (dt != null && dt.Columns.Count > 0)
{
var filters = new List<string>();
foreach (DataColumn column in dt.Columns)
{
// 문자열 컬럼만 검색 (숫자나 날짜 컬럼은 Convert 사용)
if (column.DataType == typeof(string))
{
filters.Add($"ISNULL(CONVERT([{column.ColumnName}], 'System.String'), '') LIKE '%{escapedSearch}%'");
}
else
{
filters.Add($"CONVERT([{column.ColumnName}], 'System.String') LIKE '%{escapedSearch}%'");
}
}
// OR 조건으로 연결
filter = string.Join(" OR ", filters);
}
}
this.bs.Filter = filter;
if (search.isEmpty()) tbFind.BackColor = Color.White;
else tbFind.BackColor = Color.Lime;
}
catch (Exception ex)
{
this.bs.Filter = "";
tbFind.BackColor = Color.HotPink;
}
finally
{
tbFind.SelectAll();
tbFind.Focus();
}
}
private void btSelect_Click(object sender, EventArgs e)
{
if (this.bs.Current == null)
{
MessageBox.Show("선택된 데이터가 없습니다.", "알림", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return;
}
if (this.bs.Current is DataRowView drv)
{
SelectedRow = drv.Row;
this.DialogResult = DialogResult.OK;
this.Close();
}
}
private void tbFind_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) find();
}
}
}

View File

@@ -120,38 +120,14 @@
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAVdJREFUOE/Nz0tLAmEUBmB3kWRoCUVEISFUJGb1OywiKrDsIpZdkJAkDUvDQkij
UKSbVIvatKhNi9oERRAGEQXhjJdp7Hd83/eGs2jhLGQ20QtndTgP71Gp/m0KZ1XInlTjM6XG+4EG5fuK
yaTUIN8bIMUQ0gmtcuBtX/MLPMT0yoHnuA6kuA4iruI20lAZ+DiswWuyFum4Dk+7dbiP6kHEFVDBg+tQ
My4DLbjwG3DqbcORxygHXxJakGIQRFwDEf0gwjKI4AYtzIHmHaA5Oxg/CsYPIb7YIQced+qluvTLCyIs
gRYWQPNO0NwkWNYGxg+DcYNgGSu2Z0xy4C7SiJtwE66kuq049xlAs2Ng/AiS7nbszXci6jIh4jQjPGWR
A+U59hiluowbQMzVVfmgPKU/GdcPxlmx5TArB6KzJunf0gTtPcqBzeluhCYsCIz3wm/rUw78WX4AJCPY
nlwVm9EAAAAASUVORK5CYII=
</value>
</data>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>171, 17</value>
</metadata>
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAWtJREFUOE+1kE0ow2Ecx/9X5a2UiwtKOSCTmJBMhuQlMo3IvCUHDouEXHZwIOVC
DrhIDiQl5USy07zNa2tKf2laaRf84/J8xBCetab4XL/f76fn+SnKX4DrGLqrwbHDzywkWJlHdJYjLEbY
Wg8q4eYKlma+d1hbgF4TotWIaC+FuYmAktcXCksx2HrknBOHX1KbiTDngrXhW0kMdSBM2TA5Io+/wuI0
oiz5TcRwB7hPYazfLx3rDz7+gCsXNBb4v1SdgajTQ19TaOMP2NtFmPSIilSo0v1y7FHBnAdZMWi6aO51
kVCTGZoEzzWYciA/Dl9bBZwfvh3XmxIJy7PBJdx5odnAQ2E87qJUfPbtzwGjVpxJEWjH+4ElPD/BYBsY
EjhKicW3sSoVb0vSUFsq0W6upUxhdxMtOxZnYhhqVz1oj3JJUZSdpCg0p0POmLKhJofjNqaDeikX3tFG
uuHsQM65cML4ABzY5fA/eQGKIwMcVjm2bAAAAABJRU5ErkJggg==
</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
wAAADsABataJCQAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
+8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
+4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
@@ -162,7 +138,7 @@
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wAAADsABataJCQAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
@@ -171,7 +147,7 @@
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
wAAADsABataJCQAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC
@@ -180,12 +156,41 @@
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
wAAADsABataJCQAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6
3AZY5N35b1NwBUMzTC61/zXcS1iBYdZtrJpBACQX1vLyv27wPKzyYKCTdgOnJEjOr/rhfw3faTjV4AVO
uVf+q3hMAGN0uYEFAL7Rv7NmXVYYAAAAAElFTkSuQmCC
</value>
</data>
<data name="btfind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIqSURBVDhPY2AYdKCxf9ajJRv2/G+dOPc/iD95wTowOzQ2
+Ra6WqygrLHv0bodh/+HxqaCDcgoqvnfN3vF/8b+2U/Q1aKApOyS/13Tl/yv7Zz6v23S/P8mlnZgAxzc
fP5nldT9L6hqBYtZ2bks19LS4mFgYGACa5w/fz9HYXWbR1PfbLBTC6vb/nv4h/138Qr4n1PW8D82Le9/
RE7T/9qJy/6XtEwBy3Fx8VQxMDAwgg2or9/PMmX+uoeL1u36n1veBMbVE1f9n7J81/+eJVt/NU7f8L+2
d/7/6Nzm/+HJhWAXMrOwPGBgYGAGGzBz5kxWkM3TFm/8n11a/x/k55Tc8v/RyTn/1bT0wDaCXAITj0sv
AHntHwMDAyvYgLS0NFaf4JifFrZO/70CI/4bW9j+19Y3/i+toPRUVFTUQFJGdquYhNR/BSXV/6Likv95
+fj/MzIyvoOHAQh4BUUdBgXcrsNn/q/acuB/94xl/40t7VaA5FTUdVZUtkz4v3bHIbAcKEb4+PgPwzWD
gItX4J/8imawAWkFlf/jMwr/6xqbXwXJKSiqXgXFAMiA1PyK/+mF1f85OLn+oBjg6O77H2YATJGatv5P
UEiLSUq/AwUczABQWLCysoGjGA6sHd3A8QxKQCAFoMDUNTL7L6ikxK+gqnYFZAAolmByjIyMqAaAEoiB
iSU48FQ1df4rqqj/l5ZV+C8sLCzFwy94m5OL+z8bOzso+kAaYXiQAABSzSGsYv7dkQAAAABJRU5ErkJg
gg==
</value>
</data>
<data name="btSelect.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGTSURBVDhP1c/bL4JxHMfx5w79E27c2zwZ5RCzsZRDeYaS
iiLimdksPTr8OqiGOTyXrCXn2XJYdIHZXMoh428w/wT6WLbaCi3uvC5/v+/7d6Cof6d7o41XBltJ7npB
UjF7YsDokQ5SvpHL3c+LCcv48egglh898F3PQL/bg/rZKlvu3LeYkIw3H+ux+ODGwgPBwF4vGnwiSIik
ODNkPtc1mWLqoaySoihlSMannjyfIJhLOD9vrnFVvmXHF/21xlPNC3fFQhthJjJxUMqPHGoxd+9A4N4O
3U43xESYHY+eaZuNMdWzP85hMeGCervjjQm3T3SuSRdMBxr47+zw3XLo32YgInR2nDK5z5QYjlWwXI5h
5WkWvvgMzFE92FMDvHErPLdWaLa6IHYI37/EacNRuUC9qwAbM3z+M3Bng/vGAnfcAvWmEmKnMPljnCZf
lQsUa1IYI33w3EzDeT0FVVgBkYNOSkhp/jgtdUjLUgM0Wwx61jtQba8oPE6TE1pQ561CJVf+WsaWFeXu
F4QmtODP8W99AIUYxS+0cG7HAAAAAElFTkSuQmCC
</value>
</data>
</root>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2025.10.11.1430")]
[assembly: AssemblyFileVersion("2025.10.11.1430")]
[assembly: AssemblyVersion("2026.01.21.2318")]
[assembly: AssemblyFileVersion("2026.01.21.2318")]

View File

@@ -352,6 +352,7 @@
<Compile Include="마크\Help_008.Designer.cs">
<DependentUpon>Help_008.cs</DependentUpon>
</Compile>
<Compile Include="마크\MacEditorParameter.cs" />
<Compile Include="마크\Mac_List_Add.cs">
<SubType>Form</SubType>
</Compile>
@@ -364,6 +365,18 @@
<Compile Include="마크\MarcCopySelect.Designer.cs">
<DependentUpon>MarcCopySelect.cs</DependentUpon>
</Compile>
<Compile Include="마크\MarcEditorControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="마크\MarcEditorControl.Designer.cs">
<DependentUpon>MarcEditorControl.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Marc.designer.cs">
<DependentUpon>Marc.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_FillBlank.cs">
<SubType>Form</SubType>
</Compile>
@@ -499,6 +512,12 @@
<Compile Include="마크\Marc_Plan_PrintLabel.Designer.cs">
<DependentUpon>Marc_Plan_PrintLabel.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit2.Designer.cs">
<DependentUpon>Marc_Plan_Sub_MarcEdit2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit.cs">
<SubType>Form</SubType>
</Compile>
@@ -535,11 +554,11 @@
<Compile Include="마크\Make_Document.Designer.cs">
<DependentUpon>Make_Document.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc.cs">
<Compile Include="마크\Marc2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Marc.designer.cs">
<DependentUpon>Marc.cs</DependentUpon>
<Compile Include="마크\Marc2.designer.cs">
<DependentUpon>Marc2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_memo.cs">
<SubType>Form</SubType>
@@ -1055,6 +1074,12 @@
<EmbeddedResource Include="마크\MarcCopySelect.resx">
<DependentUpon>MarcCopySelect.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc.resx">
<DependentUpon>Marc.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\MarcEditorControl.resx">
<DependentUpon>MarcEditorControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_FillBlank.resx">
<DependentUpon>Marc_FillBlank.cs</DependentUpon>
</EmbeddedResource>
@@ -1121,6 +1146,9 @@
<EmbeddedResource Include="마크\Marc_Plan_PrintLabel.resx">
<DependentUpon>Marc_Plan_PrintLabel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Plan_Sub_MarcEdit2.resx">
<DependentUpon>Marc_Plan_Sub_MarcEdit2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Plan_Sub_MarcEdit.resx">
<DependentUpon>Marc_Plan_Sub_MarcEdit.cs</DependentUpon>
</EmbeddedResource>
@@ -1139,8 +1167,8 @@
<EmbeddedResource Include="마크\Make_Document.resx">
<DependentUpon>Make_Document.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc.resx">
<DependentUpon>Marc.cs</DependentUpon>
<EmbeddedResource Include="마크\Marc2.resx">
<DependentUpon>Marc2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_memo.resx">
<DependentUpon>Marc_memo.cs</DependentUpon>

View File

@@ -583,13 +583,10 @@ namespace WindowsFormsApp1.Delivery
if (e.ColumnIndex != 2 || e.ColumnIndex != 4 || e.ColumnIndex != 5 ||
e.ColumnIndex != 6 || e.ColumnIndex != 15)
{
List_Lookup list_l = new List_Lookup(this)
var list_l = main.OpenFormInTab(() => new List_Lookup(this)
{
call_base = dataGridView1.Rows[e.RowIndex].Cells["list_name"].Value.ToString()
};
list_l.MdiParent = main;
list_l.WindowState = FormWindowState.Maximized;
list_l.Show();
});
}
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)

View File

@@ -2321,7 +2321,7 @@ namespace UniMarc.마크
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "AddMarc";
this.Text = "마크 작성";
this.Text = "마크 작성(2)";
this.Load += new System.EventHandler(this.AddMarc_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();

View File

@@ -123,37 +123,38 @@
iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAABGdBTUEAALGPC/xhBQAAAIFQTFRF////
AAAAlJSU4ODgU1NT6enp+Pj4w8PDxMTEkpKS/Pz81tbW5eXlRERE3NzcmZmZzMzMZGRkTU1Nb29vg4OD
urq6KioqW1tb8vLyf39/sbGxEhISPz8/i4uL0NDQZmZmIyMjoqKiNTU1tLS0GRkZp6end3d3Li4uOjo6
Dg4OJSUlLUB5vgAABwxJREFUeF7tnX97ojAMx6ceIqDi/DXndJ47vZt7/y/wFOMUSKG0SWE8+fxz9zxl
ZN8BaZq26ZMgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCELrWHnDsb8+7uNuvD+u/fHQW0GLOT34t276kb99
nn51siynu60f9eEqA7Zb+E+d9P1g9AaKcN42gR/C1dUIOl34X12E43gDMsrYxGP4IX26nZoVRtt/8Ovr
8bmtJvIssE6Fq/3n9feuxOao73wuAutTGD0nv7AJM80HmQisS6E/TaybMh3AfYq4CqxH4ULXuagp1wgC
61A4MPn88kzf4X44N4HuFQ5/gWV7dh7cE+FboGuF/S3YpSFWhQF3gY4VTqp1f+V8RnDnNA8C3Sr8C0Yp
wcLOR4EuFUYnsEnLMjd4SAl0qDAGi/SswQKQFuhMYWgewpTzF4wkZAS6Ujj8DfZ4+LzHqlmBjhROwBob
p1uomhPoRuEajJUzms3jtT+JxtHEP3bnM/3w7hrF5QU6UbgHW8V8BAsvl60I+8M/2w+4opjF+XJEoAuF
mNkMy3lhIB0uZhrf8RG3xK8wAEtKvrZ4YJJmMitO5ZzB3TW7wrIn+OLrJtJWa73XNQO3wpJvcFYtmzkY
wc9VgFnhHzCDMysY/iiYVNbIq/AdrKC8VE8OXlhUHJ+wKvTACMZJJ9WCEpb6rhScCsN8kv6bV7MU9pVe
lTwPp8IZ2MhzmMAlpmj0sTcYFard6LP9jNKktHe8wadwDBbyBHCFFStdp8qnUBlnGbuYDJo5ETaFr2Ag
y5tOiKaHnk/lUqjqCQ9DuIACrUELk8JQEUIe7H3MI8Uh0xUmhQpvTixQK7vFo1ARzLxRvqJntHpFHoU7
uHsGOieToNftsyhUuBkfmonQjGtYFOLTn8SmdAM3DoV47vAZWonQFciiEH2ExG5UWyCHQvwR2o4m0ugL
5FD4ArdO8QqNNFQQyKCwB3dOcbIZ8OaoIpBBIRryU40nEioJpFfYhxuneIFGEqoJpFeIzsKYZdVwKgqk
V4h1FTNoo6CqQHKFqJ+pnvhVUi2TeIFaITaeIXyElZ8gvUIsP0S30tpAILVCbGBI50hNBFIrPMJtHyEb
NBkJpFaIRGxLi4X2KcwEUiuEuz5CtRvAUCCxQmxwT5S6MBVIrBD5DP9BkyXGAokVIp/hHJrsMBdIrBCZ
qyAZVVSPZO6QKhzCTR+BJitsBNIqRBzNBppssHhFz5AqRBwNwVyhnUBahcjw/rLazA6rV/QMqULElVoP
nGwF0sw430AGFrYhWzjuWUKZp10dQNadETS1BGToRJm/aABId0gT0TQGJEcTQ1NLQCYsMlshfjoLkPUA
8aRo3SAKaWecagdJdxPP3NcNEpZSpvMbQPufYfu/w/b70vb3h+2Padofl7Z/bNH+8SHHGL9hcORpmgVL
rq1R8ORLmwRTzrtBcM1bNAiuuafmwDZ/2BgQV7OEppbAOI/fFEDVI+5e02D6Kwc00YFs+idbT1PGCqnw
k6rrQgLyITob52PbvOhDKt51bcVgiwYZ3h9sAa2bKrARWHuEeBdLAvP60gKQvpglTcS9RliJO8Pc67xV
YKVbdtBGC/tafRx0QyBPTMy/3wIFqzd5gjZq0D0z3H0ikm7nS9Zig0TifU850BenQ7yt+g7mton3rmVB
3xv6iO2Gi/2HaQZgIw1joOFiD+kjWMjN1VVccbIP+AH0s+DtodCHyJZYxAv3cj5CRffL1WWgHUWnQ1y+
IYubmgoJir8md2ZBURfjRP+HRQPuM+yJBcXKZXKH6inKRfHProeKuuvEEhXvSmcK7ZwoPg/aAi69/JTs
FSdZBQd1opTlsx2tj1DW+qLqNHy4Xw5X813qem00+wPUi/idzTuz1txb4aHaBYfTzuq6iW+2I42Jysdw
j9MyLMEoglXty1Dlxs64Xd+i6q4unMwdjl9wBMHB8fIWVa+YYFiDdqz+As84X7JLXkfYQxMW39Qwp05b
C7qndl4JtazeKds9qF/PO/QL388zR7jSMaXb677mOoFcNC+tAb2HS52jsQe0pK7+02Be0PHcqOkJXtAq
M9r5xM5GeOp7i0Cv8nOtC64rnW/RPSbnW7z763g+0y0WXPua+cJ+kYTa17R4BcXLCfjgSzdrEyrSbyQ0
ZDU533lPNTrRNJF6xGPD7ybtHiuOKc1wOhwsh/zsvI/GbR0jPv8w4J1aNmNYFj7r88I8+2LMwP6c1Quj
Ju9tJDhLdtT0jRy+fsCJMao5CtXC5kznn7Kw2tubvKyb+EdtpYo0z8W7sdRKBzSLcBzrfpIf8biJ3Z8O
fT8YFR/9c9gE2gmrptKP/O3zNJ+N+Zrutovop6u7s/KG48H6uI+78X6/9qOh14ChrSAIgiAIgiAIgiAI
giAIgiAIgiAIgiAIAilPT/8BzuZT5uV+S2QAAAAASUVORK5CYII=
Dg4OJSUlLUB5vgAABzdJREFUeF7tne12ojAQhosuIqBiRa212q7dult7/xe4R6wKwwRCMhMoZ56fPSnj
K8l8BeLDgyAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIQt/Y+JNZsD0ekkFyOG6D2cTfwCGNGcI/tMQoDvaP
iy8Psl687YN4BIfrs9/Dv7TAKAinL1BagZddGETw37QIvQH8k2OiWbKDehTskhn871oGXssK4/0/qKOS
z30zkQOvVYWbwydUoMHuqO98zgLbUxg/ws+uTap5IzOBbSkMFvBjN2IxhhdEuAhsR+FK17moqdf4LbAN
hWOT5Vdm8QovXOAq0L3Cya/iB7XgzYcXv3MT6FrhaF/4jLYkqjTgLtCxwnmz8FfPZwxNZOQEulX4N2eY
CiztzAt0qTA+5Q2TsS4VDwWBDhUmBbuUbIuGigKdKYzMU5h6/uYtAYGuFE5+A7u0fN5zVSjQkcI5NEvN
6ZqqlgS6UbiFVpVM02WyDebxLJ4Hx8Ey1U/vLllcWaAThQdoFOU9XPmlbkU0mvzZv8OhKCtcoAuFmFnA
elmZSEerVGMdH3FL/ApDaBLytccTkyLztLqV43ke7q7ZFaLfa46noDQ1FWy2etMVwK2wZg2mpYSkkvEU
XqAeZoV/oL0CaUX5o2DeWCOvwldoLs+TZrsFsGpYn7Aq9KG1HKdK71lFVOu7CnAqjMpN+hvPqtpVh6F+
IsCrMIXGbnzM4diG1HnoHIwK1W70Ub+pq2JeGx2v8CmcQVM3QjjUhI2uU+VTqMyzjF0MQLMnwqbwGVr6
5kUnRdNDz6dyKVRFwo8JHGmBeqXnYFIYKVLID3sfk6c6ZbrApFDhzYkFanW3eBQqkpkXyimq/h6L8Ch8
g2Yu0DmZDC2BPAoVbiaA4+zQE8ijEN/+JDalKZDabAbeO3yEw+zQFciiEL2FxG5UWyCHQvwW2lYTRfQF
cih8gjbOPMNRVjQQyKBwCE2cOdkUvCWaCGRQiKb8VPVERiOB9ApH0MKZJzjKhmYC6RWiuzBmXTWchgLp
FWKhIoWDLGgqkFwh6meaN36V6FW9eagVYvUM4S1sfAfpFWL9oWZ7E1UYCKRWiBWGdI7URCC1wiO8PmXR
ZCSQWiGSsa119wfrMBNIrRBeXvFYlgmGAokVYsU9UevCVCCxQmQZ/oNjzDAWSKwQWYZLOMYIc4HECpG9
CpKqonkmc4dU4QRe3fM8OMYEG4G0ChFHs4NjDLCYotQKEUdDsFdoJ5BWIVLen582s8NqilIrRFypdeFk
K5BiFt1BCgvblC2aDS2h7NNuPqA+bwrH/GyQ0omw+O0CSDikyWg6A9KjSeCYnw2yYQFehfjprKA+wvq+
GyAKaXecWgdpdxOVv10BSUsp2/kdoP/3sP/rEFHYM1/a/3jY/5ym/3lp/2uL/teHHDV+x+Do03QLll5b
p0ASU9JOV/sw9bw7BBIQSfYtOgTX3lN3QJxpz7IaxNWs4ZifDeJq+lYEQ3lOp2m4+FUCjrEGeemf7Hma
OjbICT+Fc11IQBaiszofe82LPqVCCijC59qqQfJ+jsQfe4CW7tnEKmJolv4tlgzm50srQGIxS5sI6dW4
KaHcGcamqYubiHhx7w0OIgFpfLto7mO5BlNOzP++BQp23uQJDiICKfT5YyLSbudr1mJFIvF7TyXQieNR
PmdSAHPbxO+uQdB5Q5+xXUG2L5h3ocbQWAZjooEFDOp3SPNgKTdXqLiA30SODOoCuix4IxR6E9kai/jB
vZy3UBF+uUIGGig8j/j4BoibMxUyFN8md2cBKxPPUZH+i0UTbp7CsIjiyWVyh+orjoviKJuKRIpz14kl
KuaKt4ADGVAsD9oDXIblLdkLjMH+joNzopTHZ3Ol3ABkD+MCVdAI4IWvuNrvUp/XRvN+gPohfpbeBYb6
JC6CM/c2eKp2hr5HqkR9buKLbaUxV/kY7joNsIbW71idfRmp3Jjz51tU4erMydzhBCofeg647MlMEVVU
zDA8g3amXoHcNRMGtltyx+AcYR9tWNzg6R9WonaoGQ3Pgh6qnVeGQzd6R5GD39A/zzsKKudndip7K6gj
8zdfS51ELl7WngF9gP/jirq7WH+u/sN4WRF4rrR0B8/UrMVvPrHfRngY+atQ7+Rn/pKwAnS3BmWaLgfH
7PctXoNtskyxfV0c8/BKQmVcJEFnKbPiVxxeTsC7fSpvTaRov5HgYgdWA2yHn4YWnWiRWF3x2PDbeSpa
QXVOaYbTcrAe8t/Oe7ctpckh/v3D0KaO5mJSlz7r80TZe6VkrJeF1THt3ATNQfBbstNWSsEGBPoJJ8a0
5SxUC5vfdG49CdXEP5hM1l3SvLnTIrHm7+JdWWu1A7pFNEt0l+R7Muti+NNhFIRTxV7uNx+7ULth1VVG
cbB/XJS7MV+Lt/0q/unq7mz8yWy8PR6SQXI4bIN44negtBUEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQSDm
P87mU+ZvyRQDAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="text505n.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View File

@@ -31,7 +31,7 @@ namespace WindowsFormsApp1.Mac
{
get
{
return (DateTime.Now <= new DateTime(2025, 12, 30));
return (DateTime.Now <= new DateTime(2026, 12, 30));
}
}
@@ -672,15 +672,15 @@ namespace WindowsFormsApp1.Mac
if (cntValue.Equals("-1") == false)
continue;
}
else if (radTargetEmpty.Checked) //빈데이터만 처리
else if (radTargetEmpty.Checked) //빈데이터만 처리 (검사된 수량이 0이라면 동작한다)
{
if (int.TryParse(cntValue, out int cntvalue) && cntvalue > 0)
continue;
}
else if (radTargetErrEmpty.Checked) //오류+빈데이터처리
{
if (cntValue.Equals("-1") == false && int.TryParse(cntValue, out int cntvalue) && cntvalue > 0)
continue;
if (cntValue.Equals("-1") == false) continue;
if (int.TryParse(cntValue, out int cntvalue) && cntvalue > 0) continue;
}
cnt_totalcnt += 1;
@@ -711,8 +711,9 @@ namespace WindowsFormsApp1.Mac
}
else
{
cnt_er += 1;
cnt_er += 1;
drow.Cells["dvc_remark"].Value = $"Error|{rlt.ErrorMessage}";
drow.Cells["Count"].Value = "-1"; //오류발생시에는 -1이 입력되도록한다
// 오류시에도 ResultHtml이 있으면 저장 (디버깅용)
if (dv1.Columns.Contains("dvc_resulthtml"))

View File

@@ -43,6 +43,8 @@
this.chk_spChar = new System.Windows.Forms.CheckBox();
this.btn_ApplyFilter = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.nudAddDelay = new System.Windows.Forms.NumericUpDown();
this.chkShowBrowser = new System.Windows.Forms.CheckBox();
this.label2 = new System.Windows.Forms.Label();
this.rBtn_ISBN = new System.Windows.Forms.RadioButton();
@@ -59,25 +61,23 @@
this.tb_SearchClient = new System.Windows.Forms.TextBox();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.lblStatus = new System.Windows.Forms.ToolStripLabel();
this.label3 = new System.Windows.Forms.Label();
this.nudAddDelay = new System.Windows.Forms.NumericUpDown();
this.btn_Close = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.panel5.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudAddDelay)).BeginInit();
this.panel2.SuspendLayout();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudAddDelay)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(8, 6);
this.label1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.label1.Location = new System.Drawing.Point(7, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(88, 31);
this.label1.Size = new System.Drawing.Size(77, 25);
this.label1.TabIndex = 0;
this.label1.Text = "납품처명";
this.label1.Click += new System.EventHandler(this.label1_Click);
@@ -91,19 +91,17 @@
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(731, 879);
this.panel1.Size = new System.Drawing.Size(640, 699);
this.panel1.TabIndex = 1;
//
// panel8
//
this.panel8.Controls.Add(this.dv1);
this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel8.Location = new System.Drawing.Point(0, 127);
this.panel8.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel8.Location = new System.Drawing.Point(0, 103);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(729, 750);
this.panel8.Size = new System.Drawing.Size(638, 594);
this.panel8.TabIndex = 5;
//
// dv1
@@ -118,11 +116,10 @@
this.dvc_Remark});
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dv1.Location = new System.Drawing.Point(0, 0);
this.dv1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.dv1.Name = "dv1";
this.dv1.RowHeadersWidth = 31;
this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(729, 750);
this.dv1.Size = new System.Drawing.Size(638, 594);
this.dv1.TabIndex = 0;
this.dv1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dv1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
@@ -165,18 +162,16 @@
this.panel5.Controls.Add(this.chk_spChar);
this.panel5.Controls.Add(this.btn_ApplyFilter);
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 84);
this.panel5.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel5.Location = new System.Drawing.Point(0, 68);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(729, 43);
this.panel5.Size = new System.Drawing.Size(638, 35);
this.panel5.TabIndex = 4;
//
// btn_ResultEmpty
//
this.btn_ResultEmpty.Location = new System.Drawing.Point(546, 5);
this.btn_ResultEmpty.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_ResultEmpty.Location = new System.Drawing.Point(478, 4);
this.btn_ResultEmpty.Name = "btn_ResultEmpty";
this.btn_ResultEmpty.Size = new System.Drawing.Size(86, 30);
this.btn_ResultEmpty.Size = new System.Drawing.Size(75, 24);
this.btn_ResultEmpty.TabIndex = 6;
this.btn_ResultEmpty.Text = "결과 비움";
this.btn_ResultEmpty.UseVisualStyleBackColor = true;
@@ -184,10 +179,9 @@
//
// btn_GridReset
//
this.btn_GridReset.Location = new System.Drawing.Point(634, 5);
this.btn_GridReset.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_GridReset.Location = new System.Drawing.Point(555, 4);
this.btn_GridReset.Name = "btn_GridReset";
this.btn_GridReset.Size = new System.Drawing.Size(86, 30);
this.btn_GridReset.Size = new System.Drawing.Size(75, 24);
this.btn_GridReset.TabIndex = 7;
this.btn_GridReset.Text = "표 비우기";
this.btn_GridReset.UseVisualStyleBackColor = true;
@@ -196,10 +190,9 @@
// chk_RemoveBrit
//
this.chk_RemoveBrit.AutoSize = true;
this.chk_RemoveBrit.Location = new System.Drawing.Point(133, 10);
this.chk_RemoveBrit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.chk_RemoveBrit.Location = new System.Drawing.Point(116, 8);
this.chk_RemoveBrit.Name = "chk_RemoveBrit";
this.chk_RemoveBrit.Size = new System.Drawing.Size(159, 19);
this.chk_RemoveBrit.Size = new System.Drawing.Size(128, 16);
this.chk_RemoveBrit.TabIndex = 3;
this.chk_RemoveBrit.Text = "괄호안의 문자 제거";
this.chk_RemoveBrit.UseVisualStyleBackColor = true;
@@ -207,10 +200,9 @@
// chk_spChar
//
this.chk_spChar.AutoSize = true;
this.chk_spChar.Location = new System.Drawing.Point(11, 10);
this.chk_spChar.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.chk_spChar.Location = new System.Drawing.Point(10, 8);
this.chk_spChar.Name = "chk_spChar";
this.chk_spChar.Size = new System.Drawing.Size(124, 19);
this.chk_spChar.Size = new System.Drawing.Size(100, 16);
this.chk_spChar.TabIndex = 4;
this.chk_spChar.Text = "특수문자 제거";
this.chk_spChar.UseVisualStyleBackColor = true;
@@ -218,10 +210,9 @@
// btn_ApplyFilter
//
this.btn_ApplyFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_ApplyFilter.Location = new System.Drawing.Point(295, 5);
this.btn_ApplyFilter.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_ApplyFilter.Location = new System.Drawing.Point(258, 4);
this.btn_ApplyFilter.Name = "btn_ApplyFilter";
this.btn_ApplyFilter.Size = new System.Drawing.Size(86, 30);
this.btn_ApplyFilter.Size = new System.Drawing.Size(75, 24);
this.btn_ApplyFilter.TabIndex = 5;
this.btn_ApplyFilter.Text = "필터적용";
this.btn_ApplyFilter.UseVisualStyleBackColor = true;
@@ -239,22 +230,37 @@
this.panel3.Controls.Add(this.btn_Search);
this.panel3.Controls.Add(this.rBtn_BookName);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 41);
this.panel3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel3.Location = new System.Drawing.Point(0, 33);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(729, 43);
this.panel3.Size = new System.Drawing.Size(638, 35);
this.panel3.TabIndex = 4;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(517, 10);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 211;
this.label3.Text = "추가지연";
//
// nudAddDelay
//
this.nudAddDelay.Location = new System.Drawing.Point(576, 6);
this.nudAddDelay.Name = "nudAddDelay";
this.nudAddDelay.Size = new System.Drawing.Size(56, 21);
this.nudAddDelay.TabIndex = 210;
this.nudAddDelay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// chkShowBrowser
//
this.chkShowBrowser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkShowBrowser.AutoSize = true;
this.chkShowBrowser.Checked = true;
this.chkShowBrowser.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkShowBrowser.Location = new System.Drawing.Point(395, 11);
this.chkShowBrowser.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.chkShowBrowser.Location = new System.Drawing.Point(354, 9);
this.chkShowBrowser.Name = "chkShowBrowser";
this.chkShowBrowser.Size = new System.Drawing.Size(119, 19);
this.chkShowBrowser.Size = new System.Drawing.Size(96, 16);
this.chkShowBrowser.TabIndex = 209;
this.chkShowBrowser.Text = "브라우저표시";
this.chkShowBrowser.UseVisualStyleBackColor = true;
@@ -262,9 +268,9 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(8, 14);
this.label2.Location = new System.Drawing.Point(7, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(67, 15);
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색조건";
//
@@ -272,10 +278,9 @@
//
this.rBtn_ISBN.AutoSize = true;
this.rBtn_ISBN.Checked = true;
this.rBtn_ISBN.Location = new System.Drawing.Point(175, 11);
this.rBtn_ISBN.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.rBtn_ISBN.Location = new System.Drawing.Point(153, 9);
this.rBtn_ISBN.Name = "rBtn_ISBN";
this.rBtn_ISBN.Size = new System.Drawing.Size(60, 19);
this.rBtn_ISBN.Size = new System.Drawing.Size(51, 16);
this.rBtn_ISBN.TabIndex = 4;
this.rBtn_ISBN.TabStop = true;
this.rBtn_ISBN.Text = "ISBN";
@@ -283,10 +288,9 @@
//
// btnStop
//
this.btnStop.Location = new System.Drawing.Point(323, 6);
this.btnStop.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btnStop.Location = new System.Drawing.Point(283, 5);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(74, 29);
this.btnStop.Size = new System.Drawing.Size(65, 23);
this.btnStop.TabIndex = 2;
this.btnStop.Text = "중 지";
this.btnStop.UseVisualStyleBackColor = true;
@@ -294,10 +298,9 @@
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(248, 6);
this.btn_Search.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_Search.Location = new System.Drawing.Point(217, 5);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(74, 29);
this.btn_Search.Size = new System.Drawing.Size(65, 23);
this.btn_Search.TabIndex = 2;
this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true;
@@ -306,10 +309,9 @@
// rBtn_BookName
//
this.rBtn_BookName.AutoSize = true;
this.rBtn_BookName.Location = new System.Drawing.Point(78, 11);
this.rBtn_BookName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.rBtn_BookName.Location = new System.Drawing.Point(68, 9);
this.rBtn_BookName.Name = "rBtn_BookName";
this.rBtn_BookName.Size = new System.Drawing.Size(73, 19);
this.rBtn_BookName.Size = new System.Drawing.Size(59, 16);
this.rBtn_BookName.TabIndex = 4;
this.rBtn_BookName.Text = "도서명";
this.rBtn_BookName.UseVisualStyleBackColor = true;
@@ -317,6 +319,7 @@
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.btn_Close);
this.panel2.Controls.Add(this.btn_SiteDenote);
this.panel2.Controls.Add(this.btn_Connect);
this.panel2.Controls.Add(this.lbl_PW);
@@ -327,18 +330,16 @@
this.panel2.Controls.Add(this.tb_SearchClient);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(729, 41);
this.panel2.Size = new System.Drawing.Size(638, 33);
this.panel2.TabIndex = 3;
//
// btn_SiteDenote
//
this.btn_SiteDenote.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_SiteDenote.Location = new System.Drawing.Point(634, 6);
this.btn_SiteDenote.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_SiteDenote.Location = new System.Drawing.Point(479, 5);
this.btn_SiteDenote.Name = "btn_SiteDenote";
this.btn_SiteDenote.Size = new System.Drawing.Size(88, 29);
this.btn_SiteDenote.Size = new System.Drawing.Size(77, 23);
this.btn_SiteDenote.TabIndex = 6;
this.btn_SiteDenote.Text = "사이트 표출";
this.btn_SiteDenote.UseVisualStyleBackColor = true;
@@ -347,10 +348,9 @@
// btn_Connect
//
this.btn_Connect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_Connect.Location = new System.Drawing.Point(547, 6);
this.btn_Connect.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_Connect.Location = new System.Drawing.Point(406, 5);
this.btn_Connect.Name = "btn_Connect";
this.btn_Connect.Size = new System.Drawing.Size(80, 29);
this.btn_Connect.Size = new System.Drawing.Size(70, 23);
this.btn_Connect.TabIndex = 5;
this.btn_Connect.Text = "접속";
this.btn_Connect.UseVisualStyleBackColor = true;
@@ -359,36 +359,36 @@
// lbl_PW
//
this.lbl_PW.AutoSize = true;
this.lbl_PW.Location = new System.Drawing.Point(339, 46);
this.lbl_PW.Location = new System.Drawing.Point(297, 37);
this.lbl_PW.Name = "lbl_PW";
this.lbl_PW.Size = new System.Drawing.Size(31, 15);
this.lbl_PW.Size = new System.Drawing.Size(23, 12);
this.lbl_PW.TabIndex = 3;
this.lbl_PW.Text = "PW";
//
// lbl_Area
//
this.lbl_Area.AutoSize = true;
this.lbl_Area.Location = new System.Drawing.Point(111, 46);
this.lbl_Area.Location = new System.Drawing.Point(97, 37);
this.lbl_Area.Name = "lbl_Area";
this.lbl_Area.Size = new System.Drawing.Size(36, 15);
this.lbl_Area.Size = new System.Drawing.Size(31, 12);
this.lbl_Area.TabIndex = 3;
this.lbl_Area.Text = "Area";
//
// lbl_ID
//
this.lbl_ID.AutoSize = true;
this.lbl_ID.Location = new System.Drawing.Point(211, 46);
this.lbl_ID.Location = new System.Drawing.Point(185, 37);
this.lbl_ID.Name = "lbl_ID";
this.lbl_ID.Size = new System.Drawing.Size(20, 15);
this.lbl_ID.Size = new System.Drawing.Size(16, 12);
this.lbl_ID.TabIndex = 3;
this.lbl_ID.Text = "ID";
//
// lbl_Client
//
this.lbl_Client.AutoSize = true;
this.lbl_Client.Location = new System.Drawing.Point(8, 46);
this.lbl_Client.Location = new System.Drawing.Point(7, 37);
this.lbl_Client.Name = "lbl_Client";
this.lbl_Client.Size = new System.Drawing.Size(43, 15);
this.lbl_Client.Size = new System.Drawing.Size(37, 12);
this.lbl_Client.TabIndex = 3;
this.lbl_Client.Text = "Client";
//
@@ -397,10 +397,9 @@
this.tb_SearchClient.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tb_SearchClient.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tb_SearchClient.Location = new System.Drawing.Point(87, 8);
this.tb_SearchClient.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tb_SearchClient.Location = new System.Drawing.Point(76, 6);
this.tb_SearchClient.Name = "tb_SearchClient";
this.tb_SearchClient.Size = new System.Drawing.Size(453, 25);
this.tb_SearchClient.Size = new System.Drawing.Size(326, 21);
this.tb_SearchClient.TabIndex = 1;
this.tb_SearchClient.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_SearchClient_KeyDown);
//
@@ -409,46 +408,36 @@
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lblStatus});
this.statusStrip1.Location = new System.Drawing.Point(0, 879);
this.statusStrip1.Location = new System.Drawing.Point(0, 699);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 16, 0);
this.statusStrip1.Size = new System.Drawing.Size(731, 22);
this.statusStrip1.Size = new System.Drawing.Size(640, 22);
this.statusStrip1.TabIndex = 3;
this.statusStrip1.Text = "statusStrip1";
//
// lblStatus
//
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(34, 20);
this.lblStatus.Size = new System.Drawing.Size(27, 20);
this.lblStatus.Text = "WD";
this.lblStatus.Click += new System.EventHandler(this.lblStatus_Click);
//
// label3
// btn_Close
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(591, 13);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(67, 15);
this.label3.TabIndex = 211;
this.label3.Text = "추가지연";
//
// nudAddDelay
//
this.nudAddDelay.Location = new System.Drawing.Point(658, 8);
this.nudAddDelay.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.nudAddDelay.Name = "nudAddDelay";
this.nudAddDelay.Size = new System.Drawing.Size(64, 25);
this.nudAddDelay.TabIndex = 210;
this.nudAddDelay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.btn_Close.Location = new System.Drawing.Point(559, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 24);
this.btn_Close.TabIndex = 7;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// DLS_Copy
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(731, 901);
this.ClientSize = new System.Drawing.Size(640, 721);
this.Controls.Add(this.panel1);
this.Controls.Add(this.statusStrip1);
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "DLS_Copy";
this.Text = "DLS 복본조사";
this.Load += new System.EventHandler(this.DLS_Copy_Load);
@@ -459,11 +448,11 @@
this.panel5.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudAddDelay)).EndInit();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudAddDelay)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -504,5 +493,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_Remark;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.NumericUpDown nudAddDelay;
private System.Windows.Forms.Button btn_Close;
}
}

View File

@@ -412,5 +412,10 @@ namespace WindowsFormsApp1.Mac
dv1.Rows[a].Cells[booknamecol].Value = st.RemoveWordInBracket(Target).Trim();
}
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -129,6 +129,18 @@
<metadata name="dvc_Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ISBN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>

View File

@@ -18,6 +18,18 @@ namespace ExcelTest
public string call = "";
Marc mac;
Marc_Plan_Sub_MarcEdit me;
Marc2 mae;
MarcEditorControl mec;
public Helper008(MarcEditorControl _mae)
{
InitializeComponent();
mec = _mae;
}
public Helper008(Marc2 _mae)
{
InitializeComponent();
mae = _mae;
}
public Helper008(Marc _mac)
{
InitializeComponent();

View File

@@ -0,0 +1,25 @@
//using Microsoft.Office.Interop.Excel;
namespace ExcelTest
{
public class MacEditorParameter
{
public string ISBN13 { get; set; }
public string URL { get; set; }
public string MarcIdx { get; set; }
public string Grade { get; set; }
public string User { get; set; }
public string SaveDate { get; set; }
public string ListIdx { get; set; }
public string BookName { get; set; }
public string Author { get; set; }
public string Publisher { get; set; }
public string Price { get; set; }
public string Remark1 { get; set; }
public string Remark2 { get; set; }
}
}

View File

@@ -33,6 +33,20 @@
this.label1 = new System.Windows.Forms.Label();
this.tb_Search = new System.Windows.Forms.TextBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.start_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.end_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_custname = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.work_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stock = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.unstock = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.state = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_cust = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.check = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cb_state = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Lookup = new System.Windows.Forms.Button();
@@ -46,21 +60,20 @@
this.btn_Delete = new System.Windows.Forms.Button();
this.btn_AddList = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.panel12 = new System.Windows.Forms.Panel();
this.chkEditorTest = new System.Windows.Forms.CheckBox();
this.panel13 = new System.Windows.Forms.Panel();
this.panel11 = new System.Windows.Forms.Panel();
this.btnSearchISBN = new System.Windows.Forms.Button();
this.panel10 = new System.Windows.Forms.Panel();
this.panel9 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.panel7 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.start_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.end_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.work_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stock = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.unstock = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.state = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.check = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_custom = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@@ -68,18 +81,21 @@
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(14, 13);
this.label1.Dock = System.Windows.Forms.DockStyle.Left;
this.label1.Location = new System.Drawing.Point(0, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(57, 12);
this.label1.Size = new System.Drawing.Size(63, 27);
this.label1.TabIndex = 5;
this.label1.Text = "목록 검색";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tb_Search
//
this.tb_Search.Location = new System.Drawing.Point(73, 9);
this.tb_Search.Dock = System.Windows.Forms.DockStyle.Left;
this.tb_Search.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tb_Search.Location = new System.Drawing.Point(63, 5);
this.tb_Search.Name = "tb_Search";
this.tb_Search.Size = new System.Drawing.Size(241, 21);
this.tb_Search.Size = new System.Drawing.Size(269, 25);
this.tb_Search.TabIndex = 6;
this.tb_Search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_Search_KeyDown);
//
@@ -103,6 +119,7 @@
this.idx,
this.start_date,
this.end_date,
this.dvc_custname,
this.list_name,
this.work_name,
this.count,
@@ -111,8 +128,8 @@
this.state,
this.etc,
this.charge,
this.check,
this.dvc_custom});
this.dvc_cust,
this.check});
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)));
@@ -128,207 +145,66 @@
this.dataGridView1.RowHeadersWidth = 40;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(1179, 623);
this.dataGridView1.Size = new System.Drawing.Size(1638, 624);
this.dataGridView1.TabIndex = 48;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// cb_state
//
this.cb_state.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_state.FormattingEnabled = true;
this.cb_state.Location = new System.Drawing.Point(354, 9);
this.cb_state.Name = "cb_state";
this.cb_state.Size = new System.Drawing.Size(74, 20);
this.cb_state.TabIndex = 49;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(323, 13);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 5;
this.label2.Text = "상태";
//
// btn_Lookup
//
this.btn_Lookup.Location = new System.Drawing.Point(484, 2);
this.btn_Lookup.Margin = new System.Windows.Forms.Padding(1);
this.btn_Lookup.Name = "btn_Lookup";
this.btn_Lookup.Size = new System.Drawing.Size(61, 32);
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_Excel
//
this.btn_Excel.Location = new System.Drawing.Point(990, 2);
this.btn_Excel.Margin = new System.Windows.Forms.Padding(1);
this.btn_Excel.Name = "btn_Excel";
this.btn_Excel.Size = new System.Drawing.Size(61, 32);
this.btn_Excel.TabIndex = 50;
this.btn_Excel.Text = "엑셀반출";
this.btn_Excel.UseVisualStyleBackColor = true;
this.btn_Excel.Click += new System.EventHandler(this.btn_Excel_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1053, 2);
this.btn_Close.Margin = new System.Windows.Forms.Padding(1);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(61, 32);
this.btn_Close.TabIndex = 50;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(927, 2);
this.btn_Save.Margin = new System.Windows.Forms.Padding(1);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(61, 32);
this.btn_Save.TabIndex = 50;
this.btn_Save.Text = "체크사항\r\n저장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Merge
//
this.btn_Merge.Location = new System.Drawing.Point(673, 2);
this.btn_Merge.Margin = new System.Windows.Forms.Padding(1);
this.btn_Merge.Name = "btn_Merge";
this.btn_Merge.Size = new System.Drawing.Size(61, 32);
this.btn_Merge.TabIndex = 51;
this.btn_Merge.Text = "목록병합";
this.btn_Merge.UseVisualStyleBackColor = true;
this.btn_Merge.Click += new System.EventHandler(this.btn_Merge_Click);
//
// btn_Progress
//
this.btn_Progress.Location = new System.Drawing.Point(738, 2);
this.btn_Progress.Margin = new System.Windows.Forms.Padding(1);
this.btn_Progress.Name = "btn_Progress";
this.btn_Progress.Size = new System.Drawing.Size(61, 32);
this.btn_Progress.TabIndex = 51;
this.btn_Progress.Text = "진행처리";
this.btn_Progress.UseVisualStyleBackColor = true;
this.btn_Progress.Click += new System.EventHandler(this.btn_Progress_Click);
//
// btn_Completion
//
this.btn_Completion.Location = new System.Drawing.Point(801, 2);
this.btn_Completion.Margin = new System.Windows.Forms.Padding(1);
this.btn_Completion.Name = "btn_Completion";
this.btn_Completion.Size = new System.Drawing.Size(61, 32);
this.btn_Completion.TabIndex = 51;
this.btn_Completion.Text = "완료처리";
this.btn_Completion.UseVisualStyleBackColor = true;
this.btn_Completion.Click += new System.EventHandler(this.btn_Completion_Click);
//
// btn_Delete
//
this.btn_Delete.Location = new System.Drawing.Point(864, 2);
this.btn_Delete.Margin = new System.Windows.Forms.Padding(1);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(61, 32);
this.btn_Delete.TabIndex = 51;
this.btn_Delete.Text = "목록삭제";
this.btn_Delete.UseVisualStyleBackColor = true;
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
//
// btn_AddList
//
this.btn_AddList.Location = new System.Drawing.Point(610, 2);
this.btn_AddList.Margin = new System.Windows.Forms.Padding(1);
this.btn_AddList.Name = "btn_AddList";
this.btn_AddList.Size = new System.Drawing.Size(61, 32);
this.btn_AddList.TabIndex = 50;
this.btn_AddList.Text = "목록생성";
this.btn_AddList.UseVisualStyleBackColor = true;
this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click);
//
// panel1
//
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.btn_Delete);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.btn_Completion);
this.panel1.Controls.Add(this.tb_Search);
this.panel1.Controls.Add(this.btn_Progress);
this.panel1.Controls.Add(this.cb_state);
this.panel1.Controls.Add(this.btn_Merge);
this.panel1.Controls.Add(this.btnSearchISBN);
this.panel1.Controls.Add(this.btn_Lookup);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.btn_AddList);
this.panel1.Controls.Add(this.btn_Excel);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1179, 38);
this.panel1.TabIndex = 52;
//
// btnSearchISBN
//
this.btnSearchISBN.Location = new System.Drawing.Point(547, 2);
this.btnSearchISBN.Margin = new System.Windows.Forms.Padding(1);
this.btnSearchISBN.Name = "btnSearchISBN";
this.btnSearchISBN.Size = new System.Drawing.Size(61, 32);
this.btnSearchISBN.TabIndex = 50;
this.btnSearchISBN.Text = "ISBN 조회";
this.btnSearchISBN.UseVisualStyleBackColor = true;
this.btnSearchISBN.Click += new System.EventHandler(this.btnSearchISBN_Click);
//
// panel2
//
this.panel2.Controls.Add(this.dataGridView1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 38);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1179, 623);
this.panel2.TabIndex = 53;
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.MinimumWidth = 6;
this.idx.Name = "idx";
this.idx.Visible = false;
this.idx.Width = 125;
//
// start_date
//
this.start_date.HeaderText = "목록일자";
this.start_date.MinimumWidth = 6;
this.start_date.Name = "start_date";
this.start_date.Width = 125;
//
// end_date
//
this.end_date.HeaderText = "완료일자";
this.end_date.MinimumWidth = 6;
this.end_date.Name = "end_date";
this.end_date.Width = 125;
//
// dvc_custname
//
this.dvc_custname.HeaderText = "납품처";
this.dvc_custname.MinimumWidth = 6;
this.dvc_custname.Name = "dvc_custname";
this.dvc_custname.Width = 125;
//
// list_name
//
this.list_name.HeaderText = "목록명";
this.list_name.MinimumWidth = 6;
this.list_name.Name = "list_name";
this.list_name.Width = 200;
//
// work_name
//
this.work_name.HeaderText = "작업명";
this.work_name.MinimumWidth = 6;
this.work_name.Name = "work_name";
this.work_name.Width = 125;
//
// count
//
this.count.HeaderText = "수량";
this.count.MinimumWidth = 6;
this.count.Name = "count";
this.count.Width = 80;
//
// stock
//
this.stock.HeaderText = "입고";
this.stock.MinimumWidth = 6;
this.stock.Name = "stock";
this.stock.Visible = false;
this.stock.Width = 70;
@@ -336,6 +212,7 @@
// unstock
//
this.unstock.HeaderText = "미입고";
this.unstock.MinimumWidth = 6;
this.unstock.Name = "unstock";
this.unstock.Visible = false;
this.unstock.Width = 70;
@@ -343,37 +220,342 @@
// state
//
this.state.HeaderText = "상태";
this.state.MinimumWidth = 6;
this.state.Name = "state";
this.state.Width = 70;
//
// etc
//
this.etc.HeaderText = "비고";
this.etc.MinimumWidth = 6;
this.etc.Name = "etc";
this.etc.Width = 280;
//
// charge
//
this.charge.HeaderText = "담당자";
this.charge.MinimumWidth = 6;
this.charge.Name = "charge";
this.charge.Width = 70;
//
// dvc_cust
//
this.dvc_cust.HeaderText = "CustomerIDX";
this.dvc_cust.MinimumWidth = 6;
this.dvc_cust.Name = "dvc_cust";
this.dvc_cust.Visible = false;
this.dvc_cust.Width = 125;
//
// check
//
this.check.HeaderText = "V";
this.check.MinimumWidth = 6;
this.check.Name = "check";
this.check.Width = 35;
//
// dvc_custom
// cb_state
//
this.dvc_custom.HeaderText = "납품처";
this.dvc_custom.Name = "dvc_custom";
this.cb_state.Dock = System.Windows.Forms.DockStyle.Left;
this.cb_state.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_state.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.cb_state.FormattingEnabled = true;
this.cb_state.Location = new System.Drawing.Point(364, 5);
this.cb_state.Name = "cb_state";
this.cb_state.Size = new System.Drawing.Size(100, 25);
this.cb_state.TabIndex = 49;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Left;
this.label2.Location = new System.Drawing.Point(332, 5);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(32, 27);
this.label2.TabIndex = 5;
this.label2.Text = "상태";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btn_Lookup
//
this.btn_Lookup.Dock = System.Windows.Forms.DockStyle.Left;
this.btn_Lookup.Location = new System.Drawing.Point(586, 5);
this.btn_Lookup.Margin = new System.Windows.Forms.Padding(1);
this.btn_Lookup.Name = "btn_Lookup";
this.btn_Lookup.Size = new System.Drawing.Size(61, 27);
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_Excel
//
this.btn_Excel.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Excel.Location = new System.Drawing.Point(1482, 5);
this.btn_Excel.Margin = new System.Windows.Forms.Padding(1);
this.btn_Excel.Name = "btn_Excel";
this.btn_Excel.Size = new System.Drawing.Size(74, 27);
this.btn_Excel.TabIndex = 50;
this.btn_Excel.Text = "엑셀반출";
this.btn_Excel.UseVisualStyleBackColor = true;
this.btn_Excel.Click += new System.EventHandler(this.btn_Excel_Click);
//
// btn_Close
//
this.btn_Close.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Close.Location = new System.Drawing.Point(1564, 5);
this.btn_Close.Margin = new System.Windows.Forms.Padding(1);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(74, 27);
this.btn_Close.TabIndex = 50;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// btn_Save
//
this.btn_Save.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Save.Location = new System.Drawing.Point(1378, 5);
this.btn_Save.Margin = new System.Windows.Forms.Padding(1);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(96, 27);
this.btn_Save.TabIndex = 50;
this.btn_Save.Text = "체크사항저장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Merge
//
this.btn_Merge.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Merge.Location = new System.Drawing.Point(1050, 5);
this.btn_Merge.Margin = new System.Windows.Forms.Padding(1);
this.btn_Merge.Name = "btn_Merge";
this.btn_Merge.Size = new System.Drawing.Size(74, 27);
this.btn_Merge.TabIndex = 51;
this.btn_Merge.Text = "목록병합";
this.btn_Merge.UseVisualStyleBackColor = true;
this.btn_Merge.Click += new System.EventHandler(this.btn_Merge_Click);
//
// btn_Progress
//
this.btn_Progress.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Progress.Location = new System.Drawing.Point(1132, 5);
this.btn_Progress.Margin = new System.Windows.Forms.Padding(1);
this.btn_Progress.Name = "btn_Progress";
this.btn_Progress.Size = new System.Drawing.Size(74, 27);
this.btn_Progress.TabIndex = 51;
this.btn_Progress.Text = "진행처리";
this.btn_Progress.UseVisualStyleBackColor = true;
this.btn_Progress.Click += new System.EventHandler(this.btn_Progress_Click);
//
// btn_Completion
//
this.btn_Completion.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Completion.Location = new System.Drawing.Point(1214, 5);
this.btn_Completion.Margin = new System.Windows.Forms.Padding(1);
this.btn_Completion.Name = "btn_Completion";
this.btn_Completion.Size = new System.Drawing.Size(74, 27);
this.btn_Completion.TabIndex = 51;
this.btn_Completion.Text = "완료처리";
this.btn_Completion.UseVisualStyleBackColor = true;
this.btn_Completion.Click += new System.EventHandler(this.btn_Completion_Click);
//
// btn_Delete
//
this.btn_Delete.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Delete.Location = new System.Drawing.Point(1296, 5);
this.btn_Delete.Margin = new System.Windows.Forms.Padding(1);
this.btn_Delete.Name = "btn_Delete";
this.btn_Delete.Size = new System.Drawing.Size(74, 27);
this.btn_Delete.TabIndex = 51;
this.btn_Delete.Text = "목록삭제";
this.btn_Delete.UseVisualStyleBackColor = true;
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
//
// btn_AddList
//
this.btn_AddList.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_AddList.Location = new System.Drawing.Point(968, 5);
this.btn_AddList.Margin = new System.Windows.Forms.Padding(1);
this.btn_AddList.Name = "btn_AddList";
this.btn_AddList.Size = new System.Drawing.Size(74, 27);
this.btn_AddList.TabIndex = 50;
this.btn_AddList.Text = "목록생성";
this.btn_AddList.UseVisualStyleBackColor = true;
this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click);
//
// panel1
//
this.panel1.Controls.Add(this.btn_Lookup);
this.panel1.Controls.Add(this.panel12);
this.panel1.Controls.Add(this.chkEditorTest);
this.panel1.Controls.Add(this.panel13);
this.panel1.Controls.Add(this.cb_state);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.tb_Search);
this.panel1.Controls.Add(this.panel11);
this.panel1.Controls.Add(this.btnSearchISBN);
this.panel1.Controls.Add(this.panel10);
this.panel1.Controls.Add(this.btn_AddList);
this.panel1.Controls.Add(this.panel9);
this.panel1.Controls.Add(this.btn_Merge);
this.panel1.Controls.Add(this.panel8);
this.panel1.Controls.Add(this.btn_Progress);
this.panel1.Controls.Add(this.panel7);
this.panel1.Controls.Add(this.btn_Completion);
this.panel1.Controls.Add(this.panel6);
this.panel1.Controls.Add(this.btn_Delete);
this.panel1.Controls.Add(this.panel5);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.panel4);
this.panel1.Controls.Add(this.btn_Excel);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(0, 5, 0, 2);
this.panel1.Size = new System.Drawing.Size(1638, 34);
this.panel1.TabIndex = 52;
//
// panel12
//
this.panel12.Dock = System.Windows.Forms.DockStyle.Left;
this.panel12.Location = new System.Drawing.Point(578, 5);
this.panel12.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel12.Name = "panel12";
this.panel12.Size = new System.Drawing.Size(8, 27);
this.panel12.TabIndex = 62;
//
// chkEditorTest
//
this.chkEditorTest.AutoSize = true;
this.chkEditorTest.BackColor = System.Drawing.SystemColors.Control;
this.chkEditorTest.Dock = System.Windows.Forms.DockStyle.Left;
this.chkEditorTest.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.chkEditorTest.ForeColor = System.Drawing.Color.Blue;
this.chkEditorTest.Location = new System.Drawing.Point(472, 5);
this.chkEditorTest.Name = "chkEditorTest";
this.chkEditorTest.Size = new System.Drawing.Size(106, 27);
this.chkEditorTest.TabIndex = 52;
this.chkEditorTest.Text = "Editor (OLD)";
this.chkEditorTest.UseVisualStyleBackColor = false;
//
// panel13
//
this.panel13.Dock = System.Windows.Forms.DockStyle.Left;
this.panel13.Location = new System.Drawing.Point(464, 5);
this.panel13.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel13.Name = "panel13";
this.panel13.Size = new System.Drawing.Size(8, 27);
this.panel13.TabIndex = 63;
//
// panel11
//
this.panel11.Dock = System.Windows.Forms.DockStyle.Right;
this.panel11.Location = new System.Drawing.Point(878, 5);
this.panel11.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel11.Name = "panel11";
this.panel11.Size = new System.Drawing.Size(8, 27);
this.panel11.TabIndex = 61;
//
// btnSearchISBN
//
this.btnSearchISBN.Dock = System.Windows.Forms.DockStyle.Right;
this.btnSearchISBN.Location = new System.Drawing.Point(886, 5);
this.btnSearchISBN.Margin = new System.Windows.Forms.Padding(1);
this.btnSearchISBN.Name = "btnSearchISBN";
this.btnSearchISBN.Size = new System.Drawing.Size(74, 27);
this.btnSearchISBN.TabIndex = 50;
this.btnSearchISBN.Text = "ISBN조회";
this.btnSearchISBN.UseVisualStyleBackColor = true;
this.btnSearchISBN.Click += new System.EventHandler(this.btnSearchISBN_Click);
//
// panel10
//
this.panel10.Dock = System.Windows.Forms.DockStyle.Right;
this.panel10.Location = new System.Drawing.Point(960, 5);
this.panel10.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel10.Name = "panel10";
this.panel10.Size = new System.Drawing.Size(8, 27);
this.panel10.TabIndex = 60;
//
// panel9
//
this.panel9.Dock = System.Windows.Forms.DockStyle.Right;
this.panel9.Location = new System.Drawing.Point(1042, 5);
this.panel9.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel9.Name = "panel9";
this.panel9.Size = new System.Drawing.Size(8, 27);
this.panel9.TabIndex = 59;
//
// panel8
//
this.panel8.Dock = System.Windows.Forms.DockStyle.Right;
this.panel8.Location = new System.Drawing.Point(1124, 5);
this.panel8.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(8, 27);
this.panel8.TabIndex = 58;
//
// panel7
//
this.panel7.Dock = System.Windows.Forms.DockStyle.Right;
this.panel7.Location = new System.Drawing.Point(1206, 5);
this.panel7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(8, 27);
this.panel7.TabIndex = 57;
//
// panel6
//
this.panel6.Dock = System.Windows.Forms.DockStyle.Right;
this.panel6.Location = new System.Drawing.Point(1288, 5);
this.panel6.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(8, 27);
this.panel6.TabIndex = 56;
//
// panel5
//
this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
this.panel5.Location = new System.Drawing.Point(1370, 5);
this.panel5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(8, 27);
this.panel5.TabIndex = 55;
//
// panel4
//
this.panel4.Dock = System.Windows.Forms.DockStyle.Right;
this.panel4.Location = new System.Drawing.Point(1474, 5);
this.panel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(8, 27);
this.panel4.TabIndex = 54;
//
// panel3
//
this.panel3.Dock = System.Windows.Forms.DockStyle.Right;
this.panel3.Location = new System.Drawing.Point(1556, 5);
this.panel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(8, 27);
this.panel3.TabIndex = 53;
//
// panel2
//
this.panel2.Controls.Add(this.dataGridView1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 34);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1638, 624);
this.panel2.TabIndex = 53;
//
// Mac_List
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1179, 661);
this.ClientSize = new System.Drawing.Size(1638, 658);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Mac_List";
@@ -411,6 +593,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn start_date;
private System.Windows.Forms.DataGridViewTextBoxColumn end_date;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_custname;
private System.Windows.Forms.DataGridViewTextBoxColumn list_name;
private System.Windows.Forms.DataGridViewTextBoxColumn work_name;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
@@ -419,7 +602,19 @@
private System.Windows.Forms.DataGridViewTextBoxColumn state;
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_cust;
private System.Windows.Forms.DataGridViewTextBoxColumn check;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_custom;
private System.Windows.Forms.CheckBox chkEditorTest;
private System.Windows.Forms.Panel panel12;
private System.Windows.Forms.Panel panel11;
private System.Windows.Forms.Panel panel10;
private System.Windows.Forms.Panel panel9;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel13;
}
}

View File

@@ -44,7 +44,8 @@ namespace WindowsFormsApp1.Mac
}
private void tb_Search_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {
if (e.KeyCode == Keys.Enter)
{
btn_Lookup_Click(null, null);
}
}
@@ -55,9 +56,8 @@ namespace WindowsFormsApp1.Mac
/* idx / 목록일자 / 완료일자 / 목록명 / 작업명
* 전체수량 / 입고 / 미입고 / 상태 / 비고
* 마크담당자 */
string Area = "`idx`, `date`, `date_res`, `list_name`, `work_name`, " +
"`vol`, `stock`, `unstock`, `state`, `m_etc`, " +
"`m_charge`,`customer`";
string Area = $"`idx`, `date`, `date_res`,GetClientName({compidx},customer) as custname, `list_name`, `work_name`, " +
"`vol`, `stock`, `unstock`, `state`, `m_etc`,`m_charge`,`customer` ";
string search = tb_Search.Text;
string state = cb_state.Text;
@@ -83,14 +83,14 @@ namespace WindowsFormsApp1.Mac
/// <param name="data"></param>
private void input_Grid(string[] data)
{
/* idx / 목록일자 / 완료일자 / 목록명 / 작업명
/* idx / 목록일자 / 완료일자 / 납품처 / 목록명 / 작업명
* 전체수량 / 입고 / 미입고 / 상태 / 비고
* 마크담당자 */
string[] grid = { "", "", "", "", "",
"", "", "", "", "",
"", "" ,"",""};
int area_count = 12;
"", "" ,"","","","","",""};
int area_count = 13;
dataGridView1.Rows.Clear();
for (int a = 0; a < data.Length; a++)
{
@@ -105,9 +105,12 @@ namespace WindowsFormsApp1.Mac
if (a % area_count == 8) { grid[8] = data[a]; }
if (a % area_count == 9) { grid[9] = data[a]; }
if (a % area_count == 10) { grid[10] = data[a]; }
if (a % area_count == 11) {
grid[11] = data[a];
dataGridView1.Rows.Add(grid);
if (a % area_count == 11) { grid[11] = data[a]; }
//if (a % area_count == 12) { grid[12] = data[a]; }
if (a % area_count == 12)
{ //cutomeridx
grid[12] = data[a];
dataGridView1.Rows.Add(grid);
}
}
}
@@ -124,18 +127,20 @@ namespace WindowsFormsApp1.Mac
{
if (MessageBox.Show("선택사항을 저장하시겠습니까?", "저장", MessageBoxButtons.YesNo) == DialogResult.No)
return;
string table = "Obj_List";
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V")
{
string[] edit_col = {
"date", "date_res", "list_name", "work_name", "vol",
"date", "date_res","custname", "list_name", "work_name", "vol",
"stock", "unstock", "state", "m_etc", "m_charge","customer"
};
string[] edit_tbl = {
dataGridView1.Rows[a].Cells["start_date"].Value.ToString(),
dataGridView1.Rows[a].Cells["end_date"].Value.ToString(),
dataGridView1.Rows[a].Cells["custname"].Value.ToString(),
dataGridView1.Rows[a].Cells["list_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["work_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["count"].Value.ToString(),
@@ -144,7 +149,8 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[a].Cells["state"].Value.ToString(),
dataGridView1.Rows[a].Cells["etc"].Value.ToString(),
dataGridView1.Rows[a].Cells["charge"].Value.ToString(),
dataGridView1.Rows[a].Cells["customer"].Value.ToString()
dataGridView1.Rows[a].Cells["customer"].Value.ToString(),
};
string[] sear_col = { "idx", "comp_num" };
string[] sear_tbl = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(), compidx };
@@ -162,9 +168,9 @@ namespace WindowsFormsApp1.Mac
{
Excel_text et = new Excel_text();
string[] Excel_title = {
"NO", "목록일자", "완료일자", "목록명", "마크담당자",
"NO", "목록일자", "완료일자", "납품처","목록명", "마크담당자",
//"작업명", "수량", "입고", "미입고", "상태", "비고" };
"작업명", "수량", "상태", "비고","납품처코드" };
"작업명", "수량", "상태", "비고" };
int rowCount = dataGridView1.RowCount;
// string[,] inputExcel = new string[rowCount, 11];
string[,] inputExcel = new string[rowCount, 9];
@@ -172,23 +178,19 @@ namespace WindowsFormsApp1.Mac
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_name"].Value.ToString();
inputExcel[a, 4] = dataGridView1.Rows[a].Cells["charge"].Value.ToString();
inputExcel[a, 5] = dataGridView1.Rows[a].Cells["work_name"].Value.ToString();
inputExcel[a, 6] = dataGridView1.Rows[a].Cells["count"].Value.ToString();
inputExcel[a, 7] = dataGridView1.Rows[a].Cells["state"].Value.ToString();
inputExcel[a, 8] = dataGridView1.Rows[a].Cells["etc"].Value.ToString();
inputExcel[a, 9] = dataGridView1.Rows[a].Cells["customer"]?.Value.ToString() ?? "";
// inputExcel[a, 7] = dataGridView1.Rows[a].Cells["stock"].Value.ToString();
// inputExcel[a, 8] = dataGridView1.Rows[a].Cells["unstock"].Value.ToString();
// inputExcel[a, 9] = dataGridView1.Rows[a].Cells["state"].Value.ToString();
// inputExcel[a, 10] =dataGridView1.Rows[a].Cells["etc"].Value.ToString();
var seq = 0;
inputExcel[a, seq++] = row_idx.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["start_date"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["end_date"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["custname"]?.Value.ToString() ?? "";
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["list_name"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["charge"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["work_name"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["count"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["state"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["etc"].Value.ToString();
inputExcel[a, seq++] = dataGridView1.Rows[a].Cells["customer"]?.Value.ToString() ?? "";
}
et.Mk_Excel(Excel_title, inputExcel);
}
@@ -203,19 +205,23 @@ namespace WindowsFormsApp1.Mac
private void btn_Progress_Click(object sender, EventArgs e)
{
for(int a = 0; a < dataGridView1.Rows.Count; a++)
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "진행") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V")
{
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "진행")
{
MessageBox.Show("체크된 목록이 현재 진행중입니다.");
return;
}
}
}
for(int a= 0; a < dataGridView1.Rows.Count; a++)
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "완료") {
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);
}
@@ -230,8 +236,10 @@ namespace WindowsFormsApp1.Mac
{
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "완료") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V")
{
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "완료")
{
MessageBox.Show("체크된 목록은 현재 완료되어있습니다.");
return;
}
@@ -239,8 +247,10 @@ namespace WindowsFormsApp1.Mac
}
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["state"].Value.ToString() == "진행") {
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);
}
@@ -273,9 +283,10 @@ namespace WindowsFormsApp1.Mac
{
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V")
{
string l_idx = dataGridView1.Rows[a].Cells["idx"].Value.ToString();
string D_cmd = db.DB_Delete("Obj_List", "comp_num", compidx,
string D_cmd = db.DB_Delete("Obj_List", "comp_num", compidx,
"idx", l_idx);
db.DB_Send_CMD_reVoid(D_cmd);
@@ -299,17 +310,29 @@ namespace WindowsFormsApp1.Mac
{
int idx_row = e.RowIndex;
int idx_col = e.ColumnIndex;
if (3 <= idx_col && idx_col <= 8) {
ExcelTest.Marc marc = new ExcelTest.Marc(this);
marc.MdiParent = main;
marc.WindowState = FormWindowState.Maximized;
marc.Show();
marc.input_list(
dataGridView1.Rows[idx_row].Cells["idx"].Value.ToString(),
dataGridView1.Rows[idx_row].Cells["list_name"].Value.ToString(), compidx);
/// marc.input_list(
/// dataGridView1.Rows[idx_row].Cells["idx"].Value.ToString(),
/// dataGridView1.Rows[idx_row].Cells["list_name"].Value.ToString());
if (3 <= idx_col && idx_col <= 8)
{
if (chkEditorTest.Checked == false)
{
var marc = this.main.OpenFormInTab(() => new ExcelTest.Marc2(this), allowMultiple: true);
marc.input_list(
dataGridView1.Rows[idx_row].Cells["idx"].Value.ToString(),
dataGridView1.Rows[idx_row].Cells["list_name"].Value.ToString(), compidx,
(dataGridView1.Rows[idx_row].Cells["dvc_cust"]?.Value.ToString() ?? string.Empty),
(dataGridView1.Rows[idx_row].Cells["dvc_custname"]?.Value.ToString() ?? string.Empty)
);
}
else
{
var marc = this.main.OpenFormInTab(() => new ExcelTest.Marc(this), allowMultiple: true);
marc.input_list(
dataGridView1.Rows[idx_row].Cells["idx"].Value.ToString(),
dataGridView1.Rows[idx_row].Cells["list_name"].Value.ToString(), compidx,
(dataGridView1.Rows[idx_row].Cells["dvc_cust"]?.Value.ToString() ?? string.Empty),
(dataGridView1.Rows[idx_row].Cells["dvc_custname"]?.Value.ToString() ?? string.Empty)
);
}
}
if (((DataGridView)sender).Columns[idx_col].Name == "check")
{
@@ -345,25 +368,15 @@ namespace WindowsFormsApp1.Mac
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
private Check_ISBN mMac_check_ISBN;
private void btnSearchISBN_Click(object sender, EventArgs e)
{
if (this.dataGridView1.RowCount < 1) return;
if (dataGridView1.SelectedRows[0].Index < 0) return;
string tSearchText = dataGridView1.SelectedRows[0].Cells["list_name"].Value.ToString();
string tSearchIDX = dataGridView1.SelectedRows[0].Cells["idx"].Value.ToString();
if (mMac_check_ISBN != null)
{
mMac_check_ISBN.Focus();
}
else
{
mMac_check_ISBN = new Check_ISBN(main, tSearchText, tSearchIDX);
mMac_check_ISBN.MdiParent = main;
mMac_check_ISBN.WindowState = FormWindowState.Maximized;
mMac_check_ISBN.FormClosed += (o, ea) => mMac_check_ISBN = null;
mMac_check_ISBN.tb_list_name.Enabled = true;
mMac_check_ISBN.Show();
}
var isbn = main.OpenFormInTab(() => new Check_ISBN(main, tSearchText, tSearchIDX));
isbn.tb_list_name.Enabled = true;
}
}
}

View File

@@ -126,6 +126,9 @@
<metadata name="end_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_custname.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="list_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -150,16 +153,16 @@
<metadata name="charge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="dvc_cust.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_custom.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>51</value>
<value>55</value>
</metadata>
</root>

View File

@@ -37,18 +37,19 @@ namespace UniMarc.마크
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.tbCustomIDX = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.cb_Gubun = new System.Windows.Forms.ComboBox();
this.btn_DelRow = new System.Windows.Forms.Button();
this.btn_Upload = new System.Windows.Forms.Button();
this.cb_User = new System.Windows.Forms.ComboBox();
this.btn_Close = new System.Windows.Forms.Button();
this.btClose = new System.Windows.Forms.Button();
this.btn_Empty = new System.Windows.Forms.Button();
this.btn_AddList = new System.Windows.Forms.Button();
this.btSave = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.btCustom = new System.Windows.Forms.Button();
this.tb_ExpectList = new System.Windows.Forms.TextBox();
this.tb_divName = new System.Windows.Forms.TextBox();
this.tb_divComp = new System.Windows.Forms.TextBox();
@@ -72,33 +73,46 @@ namespace UniMarc.마크
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.tbCustomIDX);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.cb_Gubun);
this.panel1.Controls.Add(this.btn_DelRow);
this.panel1.Controls.Add(this.btn_Upload);
this.panel1.Controls.Add(this.cb_User);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.btClose);
this.panel1.Controls.Add(this.btn_Empty);
this.panel1.Controls.Add(this.btn_AddList);
this.panel1.Controls.Add(this.btSave);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.btCustom);
this.panel1.Controls.Add(this.tb_ExpectList);
this.panel1.Controls.Add(this.tb_divName);
this.panel1.Controls.Add(this.tb_divComp);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(897, 59);
this.panel1.Size = new System.Drawing.Size(1025, 73);
this.panel1.TabIndex = 0;
//
// tbCustomIDX
//
this.tbCustomIDX.Location = new System.Drawing.Point(200, 6);
this.tbCustomIDX.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tbCustomIDX.Name = "tbCustomIDX";
this.tbCustomIDX.ReadOnly = true;
this.tbCustomIDX.Size = new System.Drawing.Size(75, 25);
this.tbCustomIDX.TabIndex = 15;
this.tbCustomIDX.TabStop = false;
this.tbCustomIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(592, 35);
this.label5.Location = new System.Drawing.Point(677, 44);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 12);
this.label5.Size = new System.Drawing.Size(67, 15);
this.label5.TabIndex = 14;
this.label5.Text = "쉼표구분";
//
@@ -106,16 +120,18 @@ namespace UniMarc.마크
//
this.cb_Gubun.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_Gubun.FormattingEnabled = true;
this.cb_Gubun.Location = new System.Drawing.Point(647, 31);
this.cb_Gubun.Location = new System.Drawing.Point(739, 39);
this.cb_Gubun.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.cb_Gubun.Name = "cb_Gubun";
this.cb_Gubun.Size = new System.Drawing.Size(75, 20);
this.cb_Gubun.Size = new System.Drawing.Size(85, 23);
this.cb_Gubun.TabIndex = 6;
//
// btn_DelRow
//
this.btn_DelRow.Location = new System.Drawing.Point(560, 4);
this.btn_DelRow.Location = new System.Drawing.Point(640, 5);
this.btn_DelRow.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_DelRow.Name = "btn_DelRow";
this.btn_DelRow.Size = new System.Drawing.Size(81, 23);
this.btn_DelRow.Size = new System.Drawing.Size(93, 29);
this.btn_DelRow.TabIndex = 5;
this.btn_DelRow.Text = "선택 셀 삭제";
this.btn_DelRow.UseVisualStyleBackColor = true;
@@ -123,9 +139,10 @@ namespace UniMarc.마크
//
// btn_Upload
//
this.btn_Upload.Location = new System.Drawing.Point(728, 30);
this.btn_Upload.Location = new System.Drawing.Point(832, 38);
this.btn_Upload.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_Upload.Name = "btn_Upload";
this.btn_Upload.Size = new System.Drawing.Size(75, 23);
this.btn_Upload.Size = new System.Drawing.Size(86, 29);
this.btn_Upload.TabIndex = 7;
this.btn_Upload.Text = "txt불러오기";
this.btn_Upload.UseVisualStyleBackColor = true;
@@ -135,109 +152,119 @@ namespace UniMarc.마크
//
this.cb_User.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_User.FormattingEnabled = true;
this.cb_User.Location = new System.Drawing.Point(373, 5);
this.cb_User.Location = new System.Drawing.Point(517, 6);
this.cb_User.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.cb_User.Name = "cb_User";
this.cb_User.Size = new System.Drawing.Size(82, 20);
this.cb_User.Size = new System.Drawing.Size(93, 23);
this.cb_User.TabIndex = 2;
//
// btn_Close
// btClose
//
this.btn_Close.Location = new System.Drawing.Point(809, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 8;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
this.btClose.Location = new System.Drawing.Point(925, 5);
this.btClose.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btClose.Name = "btClose";
this.btClose.Size = new System.Drawing.Size(86, 29);
this.btClose.TabIndex = 8;
this.btClose.Text = "닫 기";
this.btClose.UseVisualStyleBackColor = true;
this.btClose.Click += new System.EventHandler(this.btn_Close_Click);
//
// btn_Empty
//
this.btn_Empty.Location = new System.Drawing.Point(647, 4);
this.btn_Empty.Location = new System.Drawing.Point(739, 5);
this.btn_Empty.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btn_Empty.Name = "btn_Empty";
this.btn_Empty.Size = new System.Drawing.Size(75, 23);
this.btn_Empty.Size = new System.Drawing.Size(86, 29);
this.btn_Empty.TabIndex = 4;
this.btn_Empty.Text = "비 우 기";
this.btn_Empty.UseVisualStyleBackColor = true;
this.btn_Empty.Click += new System.EventHandler(this.btn_Empty_Click);
//
// btn_AddList
// btSave
//
this.btn_AddList.Location = new System.Drawing.Point(728, 4);
this.btn_AddList.Name = "btn_AddList";
this.btn_AddList.Size = new System.Drawing.Size(75, 23);
this.btn_AddList.TabIndex = 3;
this.btn_AddList.Text = "저 장";
this.btn_AddList.UseVisualStyleBackColor = true;
this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click);
this.btSave.Location = new System.Drawing.Point(832, 5);
this.btSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(86, 29);
this.btSave.TabIndex = 3;
this.btSave.Text = "저 장";
this.btSave.UseVisualStyleBackColor = true;
this.btSave.Click += new System.EventHandler(this.btn_AddList_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(330, 9);
this.label3.Location = new System.Drawing.Point(467, 11);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.Size = new System.Drawing.Size(52, 15);
this.label3.TabIndex = 13;
this.label3.Text = "담당자";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(178, 9);
this.label2.Location = new System.Drawing.Point(294, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.Size = new System.Drawing.Size(52, 15);
this.label2.TabIndex = 11;
this.label2.Text = "납품명";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(27, 35);
this.label4.Location = new System.Drawing.Point(31, 44);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(81, 12);
this.label4.Size = new System.Drawing.Size(102, 15);
this.label4.TabIndex = 10;
this.label4.Text = "생성될 목록명";
//
// label1
// btCustom
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(26, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 9;
this.label1.Text = "납품처";
this.label1.Click += new System.EventHandler(this.label1_Click);
this.btCustom.AutoSize = true;
this.btCustom.Location = new System.Drawing.Point(6, 5);
this.btCustom.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.btCustom.Name = "btCustom";
this.btCustom.Size = new System.Drawing.Size(71, 31);
this.btCustom.TabIndex = 9;
this.btCustom.Text = "납품처";
this.btCustom.Click += new System.EventHandler(this.label1_Click);
//
// tb_ExpectList
//
this.tb_ExpectList.Enabled = false;
this.tb_ExpectList.Location = new System.Drawing.Point(114, 31);
this.tb_ExpectList.Location = new System.Drawing.Point(130, 39);
this.tb_ExpectList.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tb_ExpectList.Name = "tb_ExpectList";
this.tb_ExpectList.Size = new System.Drawing.Size(250, 21);
this.tb_ExpectList.Size = new System.Drawing.Size(285, 25);
this.tb_ExpectList.TabIndex = 12;
//
// tb_divName
//
this.tb_divName.Location = new System.Drawing.Point(221, 5);
this.tb_divName.Location = new System.Drawing.Point(343, 6);
this.tb_divName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tb_divName.Name = "tb_divName";
this.tb_divName.Size = new System.Drawing.Size(100, 21);
this.tb_divName.Size = new System.Drawing.Size(114, 25);
this.tb_divName.TabIndex = 1;
this.tb_divName.TextChanged += new System.EventHandler(this.Delivery_TextChanged);
//
// tb_divComp
//
this.tb_divComp.Location = new System.Drawing.Point(69, 5);
this.tb_divComp.Location = new System.Drawing.Point(79, 6);
this.tb_divComp.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tb_divComp.Name = "tb_divComp";
this.tb_divComp.Size = new System.Drawing.Size(100, 21);
this.tb_divComp.Size = new System.Drawing.Size(114, 25);
this.tb_divComp.TabIndex = 0;
this.tb_divComp.TextChanged += new System.EventHandler(this.Delivery_TextChanged);
this.tb_divComp.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_divComp_KeyDown);
//
// panel2
//
this.panel2.Controls.Add(this.dataGridView1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 59);
this.panel2.Location = new System.Drawing.Point(0, 73);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(897, 621);
this.panel2.Size = new System.Drawing.Size(1025, 777);
this.panel2.TabIndex = 1;
//
// dataGridView1
@@ -265,9 +292,10 @@ namespace UniMarc.마크
this.ISBN});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(897, 621);
this.dataGridView1.Size = new System.Drawing.Size(1025, 777);
this.dataGridView1.TabIndex = 1;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
@@ -348,11 +376,12 @@ namespace UniMarc.마크
//
// Mac_List_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(897, 680);
this.ClientSize = new System.Drawing.Size(1025, 850);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "Mac_List_Add";
this.Text = "마크 목록 생성";
this.Load += new System.EventHandler(this.Mac_List_Add_Load);
@@ -369,16 +398,16 @@ namespace UniMarc.마크
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Button btn_AddList;
private System.Windows.Forms.Button btSave;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btCustom;
private System.Windows.Forms.TextBox tb_divName;
private System.Windows.Forms.TextBox tb_divComp;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox cb_User;
private System.Windows.Forms.TextBox tb_ExpectList;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Button btClose;
private System.Windows.Forms.Button btn_Empty;
private System.Windows.Forms.DataGridViewTextBoxColumn header;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
@@ -394,5 +423,6 @@ namespace UniMarc.마크
private System.Windows.Forms.Label label5;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Button btn_DelRow;
private System.Windows.Forms.TextBox tbCustomIDX;
}
}

View File

@@ -13,6 +13,7 @@ using WindowsFormsApp1.Mac;
using System.IO;
using Microsoft.Office.Interop.Excel;
using UniMarc.ListOfValue;
using AR;
namespace UniMarc.
{
@@ -80,11 +81,22 @@ namespace UniMarc.마크
string listName = tb_ExpectList.Text;
string charge = cb_User.Text;
if (!CopyCheck(compidx, listName, Today)) {
int custidx = -1;
if (int.TryParse(tbCustomIDX.Text, out custidx) == false)
{
UTIL.MsgE("납품처를 올바르게 선택하세요");
tb_divComp.Focus();
tb_divComp.SelectAll();
return;
}
if (!CopyCheck(compidx, listName, Today))
{
MessageBox.Show("목록이 중복되었습니다! 다시 확인해주세요.", "Error");
return;
}
if (tb_ExpectList.Text == "") {
if (listName.isEmpty())
{
MessageBox.Show("목록명이 비어있습니다! 다시 확인해주세요.", "Error");
return;
}
@@ -97,8 +109,8 @@ namespace UniMarc.마크
int TotalCount = 0;
string InList_Idx = "㏓InList_Idx♠";
string[] InList_Tbl = { "comp_num", "date", "list_name", "m_charge", "state", "vol", "chk_marc" };
string[] InList_Col = { compidx, Today, listName, charge, "진행", TotalCount.ToString(), "1" };
string[] InList_Tbl = { "comp_num", "date", "list_name", "m_charge", "state", "vol", "chk_marc", "customer" };
string[] InList_Col = { compidx, Today, listName, charge, "진행", TotalCount.ToString(), "1", $"{custidx}" };
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
@@ -107,15 +119,15 @@ namespace UniMarc.마크
if (dataGridView1.Rows[a].Cells["BookName"].Value.ToString() == "")
break;
string header = dataGridView1.Rows[a].Cells["header"].Value.ToString();
string num = dataGridView1.Rows[a].Cells["num"].Value.ToString();
string header = dataGridView1.Rows[a].Cells["header"].Value.ToString();
string num = dataGridView1.Rows[a].Cells["num"].Value.ToString();
string bookname = dataGridView1.Rows[a].Cells["BookName"].Value.ToString();
string author = dataGridView1.Rows[a].Cells["Author"].Value.ToString();
string author = dataGridView1.Rows[a].Cells["Author"].Value.ToString();
string bookcomp = dataGridView1.Rows[a].Cells["BookComp"].Value.ToString();
string price = dataGridView1.Rows[a].Cells["Price"].Value.ToString().Replace(",", "");
string count = dataGridView1.Rows[a].Cells["Count"].Value.ToString().Replace(",", "");
string total = dataGridView1.Rows[a].Cells["Total"].Value.ToString().Replace(",", "");
string isbn = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
string price = dataGridView1.Rows[a].Cells["Price"].Value.ToString().Replace(",", "");
string count = dataGridView1.Rows[a].Cells["Count"].Value.ToString().Replace(",", "");
string total = dataGridView1.Rows[a].Cells["Total"].Value.ToString().Replace(",", "");
string isbn = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
string tmp = string.Format(
"(\"{0}\", \"{1}\", \"{2}\", \"{3}\", \"{4}\", " +
@@ -178,12 +190,14 @@ namespace UniMarc.마크
{
for (int a = 0; a < dataGridView1.Columns.Count; a++)
{
if (a == 5 || a == 7) {
if (a == 5 || a == 7)
{
if (dataGridView1.Rows[row].Cells[a].Value == null)
dataGridView1.Rows[row].Cells[a].Value = "0";
}
else if (a == 6) {
else if (a == 6)
{
if (dataGridView1.Rows[row].Cells[a].Value == null)
dataGridView1.Rows[row].Cells[a].Value = "1";
}
@@ -210,7 +224,7 @@ namespace UniMarc.마크
{
Gubun = '\t';
}
if (textValue.Length < 0)
return;
try
@@ -257,9 +271,32 @@ namespace UniMarc.마크
private void label1_Click(object sender, EventArgs e)
{
var dt = DB2.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho");
using(var f = new fSelectDT(dt))
f.ShowDialog();
LovCustom();
}
void LovCustom()
{
string compidx = Properties.Settings.Default.compidx;
var inputsearch = tb_divComp.Text.Trim();
var where = $"campanyidx={compidx}";
if (inputsearch.isEmpty() == false)
{
where += $" and c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = DB2.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{
var dr = f.SelectedRow;
if (dr == null) return;
tbCustomIDX.Text = dr["idx"]?.ToString() ?? string.Empty;
tb_divComp.Text = dr["c_sangho"]?.ToString() ?? string.Empty;
tb_divName.Focus(); //납품명으로 커서 이동
}
}
private void tb_divComp_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) LovCustom();
}
}
}

View File

@@ -1,4 +1,6 @@
//using Microsoft.Office.Interop.Excel;
using AR;
using OpenQA.Selenium.DevTools.V136.Animation;
using System;
using System.Collections.Generic;
using System.Drawing;
@@ -11,6 +13,7 @@ using System.Text.RegularExpressions;
using System.Web.UI;
using System.Windows.Forms;
using UniMarc;
using UniMarc.ListOfValue;
using UniMarc.;
using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
@@ -27,6 +30,7 @@ namespace ExcelTest
int SaveRowIdx = -1;
public string mUserName;
string mCompidx = UniMarc.Properties.Settings.Default.compidx;
string mListIdx = "";
public string find;
public string change;
public string call = "";
@@ -44,6 +48,8 @@ namespace ExcelTest
public Marc()
{
InitializeComponent();
this.ml = null;
mUserName = string.Empty;
}
public Marc(Mac_List _ml)
{
@@ -52,6 +58,8 @@ namespace ExcelTest
mUserName = ml.user_name;
}
string l_idx = string.Empty;
string c_idx = string.Empty;
private void Marc_Load(object sender, EventArgs e)
{
#region ComboBox Item Setting
@@ -90,94 +98,6 @@ namespace ExcelTest
#endregion
}
//public void input_list(string l_idx, string value)
//{
// db.DBcon();
// lbl_BookList.Text = value;
// string Area =
// // 0 1 2 3
// "olb.idx, olb.isbn_marc, olb.header, olb.num, " +
// // 4 5 6 7 8 9
// "olb.book_name, olb.author, olb.book_comp, olb.`count`, olb.price, olb.image_url, " +
// // 10 11 12 13 14 15 16
// "mac.idx, mac.marc, mac.marc_chk, mac.marc1, mac.marc_chk1, mac.marc2, mac.marc_chk2, " +
// // 17 18 19 20
// "mac.grade, mac.compidx, mac.`user`, mac.date";
// string CMD = string.Format("" +
// "SELECT {0} " +
// "FROM Obj_List_Book AS olb " +
// "LEFT JOIN Marc AS mac " +
// // "ON if (olb.m_idx = 0, mac.ISBN = olb.isbn_marc, mac.idx = olb.m_idx) " +
// "ON mac.ISBN = olb.isbn_marc " +
// "WHERE olb.l_idx = {1} " +
// "GROUP BY olb.book_name " +
// "ORDER BY olb.idx ASC;", Area, l_idx);
// string db_res = db.DB_Send_CMD_Search(CMD);
// string[] db_data = db_res.Split('|');
// string[] grid = {
// "", "", "", "", "",
// "", "", "", "", "",
// "", "", "V", "", "" };
// string[] MarcData = { "", "", "", "", "", "" };
// for (int a = 0; a < db_data.Length; a++)
// {
// if (a % 21 == 00) grid[0] = db_data[a];
// if (a % 21 == 01) grid[1] = db_data[a];
// if (a % 21 == 02) grid[2] = db_data[a];
// if (a % 21 == 03) grid[2] += db_data[a];
// if (a % 21 == 04) grid[3] = db_data[a];
// if (a % 21 == 05) grid[4] = db_data[a];
// if (a % 21 == 06) grid[5] = db_data[a];
// if (a % 21 == 07) grid[6] = db_data[a];
// if (a % 21 == 08) grid[7] = db_data[a];
// if (a % 21 == 09) grid[8] = db_data[a];
// if (a % 21 == 10) grid[9] = db_data[a];
// if (a % 21 == 11) MarcData[0] = db_data[a];
// if (a % 21 == 12) MarcData[1] = db_data[a];
// if (a % 21 == 13) MarcData[2] = db_data[a];
// if (a % 21 == 14) MarcData[3] = db_data[a];
// if (a % 21 == 15) MarcData[4] = db_data[a];
// if (a % 21 == 16) MarcData[5] = db_data[a];
// if (a % 21 == 17)
// {
// grid[10] = RealMarc(MarcData);
// if (grid[10] == "") grid[11] = "3";
// else grid[11] = db_data[a];
// }
// if (a % 21 == 18) {
// if (db_data[a] == "") grid[13] = "";
// else if (mCompidx != db_data[a]) {
// string FindCompCmd = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", db_data[a]);
// grid[13] = db.DB_Send_CMD_Search(FindCompCmd).Replace("|", "");
// }
// }
// if (a % 21 == 19) {
// if (grid[13] == "")
// grid[13] = db_data[a];
// }
// if (a % 21 == 20)
// {
// grid[14] = db_data[a];
// List_Book.Rows.Add(grid);
// }
// }
// for (int a = 0; a < List_Book.Rows.Count; a++)
// {
// string Grade = List_Book.Rows[a].Cells["grade"].Value.ToString();
// string SaveDate = List_Book.Rows[a].Cells["SaveDate"].Value.ToString();
// List_Book.Rows[a].DefaultCellStyle.ForeColor = SetGradeColor(Grade);
// SaveDateCheck(SaveDate, a);
// }
//}
private string RealMarc(string[] MarcData)
{
string result = "";
@@ -198,14 +118,26 @@ namespace ExcelTest
/// </summary>
/// <param name="date">목록일자</param>
/// <param name="value">목록명</param>
public void input_list(string l_idx, string value, string C_idx)
public void input_list(string l_idx, string value, string C_idx, string custidx, string custname)
{
db.DBcon();
if (value.isEmpty() == false)
{
if (value.IndexOf("]") != -1)
this.Text = $"마크 작성(1)-{value.Substring(value.IndexOf("]")+1)}";
else
this.Text = $"마크 작성(1){value}";
}
this.l_idx = l_idx;
this.c_idx = C_idx;
string Area = "`idx`, `isbn_marc`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `image_url`, `m_idx`";
string[] sear_tbl = { "l_idx", "compidx" };
string[] sear_col = { l_idx, C_idx };
lbl_BookList.Text = value;
tbCustName.Text = custname;
lbCustIDX.Text = custidx;
string cmd =
string.Format("SELECT {0} " +
@@ -222,7 +154,7 @@ namespace ExcelTest
mLoadCompleted = false;
for (int a = 0; a < db_data.Length-1; a += 11)
for (int a = 0; a < db_data.Length - 1; a += 11)
{
grid[0] = db_data[a]; // 0: idx
@@ -256,7 +188,8 @@ namespace ExcelTest
mLoadCompleted = true;
List_Book.ClearSelection();
List_Book.Rows[0].Selected = true;
if (this.List_Book.RowCount > 0)
List_Book.Rows[0].Selected = true;
}
/// <summary>
@@ -291,18 +224,19 @@ namespace ExcelTest
string[] Chk_Arr = Chk_Res.Split('|');
bool isMyData = true;
if (Chk_Arr.Length < 2) {
if (Chk_Arr.Length < 2)
{
List_Book.Rows[a].Cells["grade"].Value = "3";
List_Book.Rows[a].DefaultCellStyle.ForeColor = Color.Red;
continue;
}
if (Chk_Arr[1] != mCompidx)
if (Chk_Arr[1] != mCompidx)
isMyData = false;
string[] MarcData = { Chk_Arr[2], Chk_Arr[4], Chk_Arr[6] };
string[] CheckData = { Chk_Arr[3], Chk_Arr[5], Chk_Arr[7] };
List_Book.Rows[a].DefaultCellStyle.ForeColor = SetGradeColor(Chk_Arr[8], isMyData);
List_Book.Rows[a].Cells["marc_idx"].Value = Chk_Arr[0];
List_Book.Rows[a].Cells["db_marc"].Value = MarcData[0];//NewestMarc(MarcData, CheckData);
@@ -310,11 +244,12 @@ namespace ExcelTest
text008.Text = Chk_Arr[9];
List_Book.Rows[a].Cells["user"].Value = Chk_Arr[10];
List_Book.Rows[a].Cells["SaveDate"].Value = Chk_Arr[11];
if (isMyData)
SaveDateCheck(Chk_Arr[11], a);
else {
else
{
string FindCompCmd = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", Chk_Arr[1]);
List_Book.Rows[a].Cells["user"].Value = db.DB_Send_CMD_Search(FindCompCmd).Replace("|", "");
List_Book.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
@@ -322,7 +257,7 @@ namespace ExcelTest
}
}
private string NewestMarc(string[] marc, string[] marc_chk )
private string NewestMarc(string[] marc, string[] marc_chk)
{
string result = "";
int count = 0;
@@ -345,13 +280,13 @@ namespace ExcelTest
{
case "0": // A
return Color.Blue;
case "1": // B
return Color.Black;
case "2": // C
return Color.Gray;
case "3": // D
return Color.Red;
@@ -372,7 +307,7 @@ namespace ExcelTest
DateTime TargetDate = DateTime.Today.AddDays(-14);
int result = DateTime.Compare(SaveDate, TargetDate);
if (result >= 0) // SaveDate가 같거나 큼
List_Book.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
@@ -386,7 +321,8 @@ namespace ExcelTest
call = ((RichTextBox)sender).Name;
richTextBox1.LanguageOption = 0;
if (e.Control) {
if (e.Control)
{
switch (e.KeyValue)
{
case 70: // f
@@ -487,7 +423,8 @@ namespace ExcelTest
}
private void Btn_Save_Click(object sender, EventArgs e)
{
if (SaveRowIdx < 0) {
if (SaveRowIdx < 0)
{
MessageBox.Show("마크가 선택되지않았습니다.");
return;
}
@@ -498,10 +435,11 @@ namespace ExcelTest
MessageBox.Show("[칸채우기]가 아닌 [마크 편집] 탭에서 저장해주세요!");
return;
}
if (grade == 3) {
MessageBox.Show("등급을 설정해주세요. (C 이상)");
return;
}
//if (grade == 3)
//{
// MessageBox.Show("등급을 설정해주세요. (C 이상)");
// return;
//}
string table_name = "Marc";
string BaseText = richTextBox1.Text;
string lblisbn = lbl_ISBN.Text.Replace("[", "").Replace("]", "");
@@ -509,15 +447,19 @@ namespace ExcelTest
if (!BaseText.EndsWith("\n"))
BaseText += "\n";
if (!isPass(BaseText)) {
if (!isPass(BaseText))
{
MessageBox.Show("입력된 마크의 상태를 확인해주세요.");
return;
}
if (BaseText.IndexOf(lblisbn) < 0) {
MessageBox.Show("ISBN 상태를 확인해주세요.");
if (BaseText.IndexOf(lblisbn) < 0)
{
UTIL.MsgE("저장된 ISBN이 마크데이터에 없습니다.\nISBN값이 변경되었습니다");
//if (dlg != DialogResult.Yes) return;
return;
}
string tag056 = Tag056();
string[] grid_data = {
List_Book.Rows[SaveRowIdx].Cells["ISBN13"].Value.ToString(),
@@ -529,6 +471,7 @@ namespace ExcelTest
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = st.made_Ori_marc(richTextBox1).Replace(@"\", "₩");
string Midx = List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value.ToString();
// 필수태그 확인
if (!isMustTag(orimarc))
{
@@ -545,24 +488,11 @@ namespace ExcelTest
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
TimeSpan sp = spspsp(SaveDate, date);
IsCoverDate = IsCoverData(sp.Days, SaveUser);
// if (IsCoverDate) {
// etc2.Text = etc2.Text.Replace(SaveDate, date);
// }
// else {
// etc2.Text += string.Format("{0}\t{1}\n", date, mUserName);
// }
}
//else
//{
// etc2.Text += string.Format("{0}\t{1}\n", date, mUserName);
//}
// true일 경우 INSERT, false일 경우 UPDATE
bool isNewData = true;
// true일 경우 INSERT, false일 경우 UPDATE
bool isNewData = Midx != "" ? false : true;
if (Midx != "")
isNewData = false;
if (List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor == Color.Orange ||
List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor == Color.Red)
@@ -579,7 +509,7 @@ namespace ExcelTest
date, mCompidx };
string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col);
PUB.log.Add("INSERT", string.Format( "{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, Incmd));
PUB.log.Add("INSERT", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, Incmd));
db.DB_Send_CMD_reVoid(Incmd);
isNewData = true;
}
@@ -600,38 +530,9 @@ namespace ExcelTest
MessageBox.Show("ISBN 데이터가 없습니다.");
return;
}
//if (grid_data[0] != null && grid_data[0] != "")
//{
// int marcChk = Sub_marc_chk(grid_data[0]);
// if (IsCoverDate)
// marcChk--;
// switch (marcChk)
// {
// case 0:
// Edit_tbl[1] = "marc1";
// Edit_tbl[2] = "marc_chk1";
// Edit_tbl[3] = "marc_chk";
// break;
// case 1:
// Edit_tbl[1] = "marc2";
// Edit_tbl[2] = "marc_chk2";
// Edit_tbl[3] = "marc_chk1";
// break;
// case 2:
// Edit_tbl[1] = "marc";
// Edit_tbl[2] = "marc_chk";
// Edit_tbl[3] = "marc_chk2";
// break;
// default:
// Edit_tbl[1] = "marc";
// Edit_tbl[2] = "marc_chk";
// Edit_tbl[3] = "marc_chk2";
// break;
// }
//}
string U_cmd = db.More_Update(table_name, Edit_tbl, Edit_col, Sear_tbl, Sear_col);
PUB.log.Add("Update", string.Format( "{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor , U_cmd.Replace("\r", " ").Replace("\n", " ")));
PUB.log.Add("Update", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, U_cmd.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(U_cmd);
isNewData = false;
}
@@ -643,16 +544,17 @@ namespace ExcelTest
List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor = SetGradeColor(grade.ToString());
if (isNewData) {
if (isNewData)
{
string MidxQuery = string.Format("SELECT `idx` FROM Marc WHERE isbn = {0} AND `compidx` = {1};", grid_data[0], mCompidx);
PUB.log.Add("MarcInsert", string.Format( "{0}({1}) : {2}", mUserName, mCompidx, MidxQuery));
PUB.log.Add("MarcInsert", string.Format("{0}({1}) : {2}", mUserName, mCompidx, MidxQuery));
Midx = db.DB_Send_CMD_Search(MidxQuery).Replace("|", "");
List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value = Midx;
}
string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND 'compidx' ={2};",
Midx, List_Book.Rows[SaveRowIdx].Cells["list_idx"].Value.ToString(), mCompidx);
PUB.log.Add("MarcUpdate", string.Format( "{0}({1}) : {2}", mUserName, mCompidx, UpdateListIndex));
PUB.log.Add("MarcUpdate", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpdateListIndex));
db.DB_Send_CMD_reVoid(UpdateListIndex);
MessageBox.Show("저장되었습니다!");
}
@@ -835,7 +737,8 @@ namespace ExcelTest
for (int a = 0; a < chk_ary.Length; a++)
{
if (chk_ary[a] == "1") {
if (chk_ary[a] == "1")
{
return a;
}
}
@@ -894,7 +797,7 @@ namespace ExcelTest
Create_008();
st.Color_change("▼", richTextBox1);
st.Color_change("▲", richTextBox1);
int grade = 2;
if (List_Book.Rows[row_idx].Cells["grade"].Value != null || List_Book.Rows[row_idx].Cells["grade"].Value.ToString() != "")
{
@@ -903,60 +806,7 @@ namespace ExcelTest
cb_grade.SelectedIndex = grade;
OnSaveData(row_idx);
}
//private void List_Book_CellClick(object sender, DataGridViewCellEventArgs e)
//{
// //if (e.RowIndex == -1) { return; }
// //int row_idx = e.RowIndex;
// //SaveRowIdx = row_idx;
// //int col_idx = e.ColumnIndex;
// //string isbn = List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString();
// //if (isbn != "") {
// // string CountQuery = string.Format("SELECT Count(isbn) FROM Marc WHERE isbn = {0} GROUP BY isbn;", isbn);
// // string CountResult = db.self_Made_Cmd(CountQuery).Replace("|", "");
// // if (CountResult == "")
// // btn_CopySelect.Text = "0";
// // if (CountResult == "0") {
// // btn_CopySelect.Enabled = false;
// // btn_CopySelect.BackColor = Color.Silver;
// // }
// // else {
// // btn_CopySelect.Enabled = true;
// // btn_CopySelect.BackColor = Color.Khaki;
// // }
// // btn_CopySelect.Text = CountResult;
// //}
// //tabControl1.SelectedIndex = 0;
// //if (check_V(row_idx, col_idx))
// // return;
// //Save_data(row_idx);
// //richTextBox1.Text = "";
// //bool check_Marc = click_Marc(row_idx);
// //if (!check_Marc)
// // richTextBox1.Text = Make_Empty();
// //else
// // ReadRemark(row_idx);
// //input_picture(row_idx);
// //Create_008();
// //st.Color_change("▼", richTextBox1);
// //st.Color_change("▲", richTextBox1);
// //int grade = 2;
// //if (List_Book.Rows[row_idx].Cells["grade"].Value != null || List_Book.Rows[row_idx].Cells["grade"].Value.ToString() != "") {
// // grade = Convert.ToInt32(List_Book.Rows[row_idx].Cells["grade"].Value.ToString());
// //}
// //cb_grade.SelectedIndex = grade;
// //OnSaveData(row_idx);
//}
#region CellClick_Sub
void OnSaveData(int row)
@@ -965,7 +815,9 @@ namespace ExcelTest
string Date = List_Book.Rows[row].Cells["SaveDate"].Value.ToString();
lbl_SaveData.Text = string.Format("[{0}] [{1}]", User, Date);
lbl_ISBN.Text = "[" + List_Book.Rows[row].Cells["ISBN13"].Value.ToString() + "]";
var isbn13 = List_Book.Rows[row].Cells["ISBN13"]?.Value.ToString() ?? string.Empty;
lbl_ISBN.Text = $"[{isbn13}]";
}
void ReadRemark(int row)
{
@@ -975,7 +827,8 @@ namespace ExcelTest
string res = db.DB_Send_CMD_Search(cmd);
string[] ary = res.Split('|');
if (res.Length < 1) {
if (res.Length < 1)
{
etc1.Text = res;
etc2.Text = "";
return;
@@ -1027,7 +880,7 @@ namespace ExcelTest
string[] data = Marc_data.Substring(24).Split('▲'); // 리더부를 제외한 디렉터리, 가변길이필드 저장
// List에 필요한 데이터 집어넣는 작업.
for (int a = 1; a < data.Length - 1&& data[0].Length> startidx ; a++)
for (int a = 1; a < data.Length - 1 && data[0].Length > startidx; a++)
{
TagNum.Add(data[0].Substring(startidx, 3));
startidx += 12;
@@ -1068,8 +921,8 @@ namespace ExcelTest
data_book[0] = List_Book.Rows[row].Cells["ISBN13"].Value.ToString();
data_book[1] = List_Book.Rows[row].Cells["book_name"].Value.ToString();
data_book[2] = List_Book.Rows[row].Cells["author"].Value.ToString();
data_book[3] = List_Book.Rows[row].Cells["book_comp"].Value.ToString();
data_book[4] = List_Book.Rows[row].Cells["pay"].Value.ToString();
data_book[3] = List_Book.Rows[row].Cells["book_comp"].Value.ToString(); //publichser
data_book[4] = List_Book.Rows[row].Cells["pay"].Value.ToString(); //price
}
void input_picture(int row)
{
@@ -1198,7 +1051,7 @@ namespace ExcelTest
private void btn_Reflesh008_Click(object sender, EventArgs e)
{
string data =text008.Text;
string data = text008.Text;
//data =data.PadRight(40,' ');
string oriMarc = st.made_Ori_marc(richTextBox1).Replace("\\", "₩");
@@ -1255,11 +1108,11 @@ namespace ExcelTest
Publication(checkBox2.Checked, 30);// 기념논문집 (30) c
Publication(checkBox4.Checked, 31);// 색인 (31)
textArray = text008.Text.ToCharArray() ;
textArray = text008.Text.ToCharArray();
textArray[26] = col008res.Text[0]; //대학코드
textArray[27] = col008res.Text[1];
textArray[38] = gov008res.Text[0];// 정부코드
textArray[39] = gov008res.Text[1];
@@ -1281,7 +1134,8 @@ namespace ExcelTest
string pubDate = Regex.Replace(ContentTag, @"[^0-9]", "");
if (pubDate.Length < 3) {
if (pubDate.Length < 3)
{
MessageBox.Show("260c가 인식되지않습니다.");
return "false";
}
@@ -1309,7 +1163,8 @@ namespace ExcelTest
"SELECT `Code` FROM `Tag008_Country` WHERE `Area` <= \"{0}\" ORDER BY `Area` DESC LIMIT 1;", ContentTag);
string res = db.DB_Send_CMD_Search(cmd).Replace("|", "");
if (res == "") {
if (res == "")
{
MessageBox.Show("260a가 인식되지않습니다.");
return "false";
}
@@ -1374,47 +1229,48 @@ namespace ExcelTest
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
string name = ((CheckBox)sender).Name;
if (((CheckBox)sender).Checked == true)
var chk = sender as CheckBox;
string name = chk.Name;
if (chk.Checked == true)
{
switch (name)
{
case "checkBox1":
((CheckBox)sender).InvokeText("회의간행물o");
chk.InvokeText("회의간행물o");
break;
case "checkBox2":
((CheckBox)sender).InvokeText("기념논문집o");
chk.InvokeText("기념논문집o");
break;
case "checkBox4":
((CheckBox)sender).InvokeText("색인o");
chk.InvokeText("색인o");
break;
}
}
else if (((CheckBox)sender).Checked == false)
else if (chk.Checked == false)
{
switch (name)
{
case "checkBox1":
((CheckBox)sender).InvokeText("회의간행물x");
chk.InvokeText("회의간행물x");
break;
case "checkBox2":
((CheckBox)sender).InvokeText("기념논문집x");
chk.InvokeText("기념논문집x");
break;
case "checkBox4":
((CheckBox)sender).InvokeText("색인x");
chk.InvokeText("색인x");
break;
}
}
switch (name)
{
case "checkBox1":
Publication(checkBox1.Checked, 29);
case "checkBox1": //회의간행물
Publication(chk.Checked, 29);
break;
case "checkBox2":
Publication(checkBox2.Checked, 30);
case "checkBox2": //기념논문집
Publication(chk.Checked, 30);
break;
case "checkBox4":
Publication(checkBox4.Checked, 31);
case "checkBox4": //색인
Publication(chk.Checked, 31);
break;
}
}
@@ -1464,21 +1320,27 @@ namespace ExcelTest
bool isSort = rb_Sort.Checked;
int combo = comboBox8.SelectedIndex; // 0: 등급 / 1: 복본
if (isSort) {
if (combo == 0) {
if (isSort)
{
if (combo == 0)
{
List_Book.Sort(List_Book.Columns["grade"], System.ComponentModel.ListSortDirection.Ascending);
}
else {
else
{
List_Book.Sort(List_Book.Columns["ISBN13"], System.ComponentModel.ListSortDirection.Ascending);
}
}
else {
else
{
int comboIdx;
if (combo == 0) {
if (combo == 0)
{
comboIdx = comboBox9.SelectedIndex;
Search_Filter("grade", comboIdx);
}
else { // 수정필요
else
{ // 수정필요
}
}
@@ -1498,7 +1360,8 @@ namespace ExcelTest
{
int count = List_Book.Rows.Count;
DataGridViewBand band;
if (comboIdx == 0) {
if (comboIdx == 0)
{
for (int a = 0; a < count; a++)
{
band = List_Book.Rows[a];
@@ -1510,7 +1373,8 @@ namespace ExcelTest
comboIdx--;
for (int a = 0; a < count; a++)
{
if (List_Book.Rows[a].Cells[target].Value.ToString() != comboIdx.ToString()) {
if (List_Book.Rows[a].Cells[target].Value.ToString() != comboIdx.ToString())
{
band = List_Book.Rows[a];
band.Visible = false;
}
@@ -1544,10 +1408,10 @@ namespace ExcelTest
text008.Text = GridData[5];
List_Book.Rows[row].Cells["db_marc"].Value = GridData[6];
mOldMarc = GridData[6];
List_Book.Rows[row].DefaultCellStyle.ForeColor= SetGradeColor(GridData[4]);
List_Book.Rows[row].DefaultCellStyle.ForeColor = SetGradeColor(GridData[4]);
List_Book.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
bool checkMarc = click_Marc(row);
if (checkMarc)
{
@@ -1563,7 +1427,8 @@ namespace ExcelTest
comboBox9.Items.Clear();
ComboBox cb = sender as ComboBox;
if (cb.SelectedIndex == 0) {
if (cb.SelectedIndex == 0)
{
comboBox9.Enabled = true;
string[] grade = { "전체", "A", "B", "C", "D" };
comboBox9.Items.AddRange(grade);
@@ -1588,6 +1453,7 @@ namespace ExcelTest
private void btn_mk_marcList_Click(object sender, EventArgs e)
{
Marc_mkList mkList = new Marc_mkList(this);
mkList.StartPosition = FormStartPosition.CenterScreen;
mkList.Show();
}
#region _Sub
@@ -1663,7 +1529,7 @@ namespace ExcelTest
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
}
#region DataGridView
@@ -1858,10 +1724,11 @@ namespace ExcelTest
for (int count = 0; count < GridView020.Rows.Count; count++)
{
if (GridView020.Rows[count].Cells["CheckSet"].Value == null &&
if (GridView020.Rows[count].Cells["CheckSet"].Value == null &&
GridView020.Rows[count].Cells["Text020a"].Value == null &&
GridView020.Rows[count].Cells["Text020g"].Value == null &&
GridView020.Rows[count].Cells["Text020c"].Value == null) {
GridView020.Rows[count].Cells["Text020c"].Value == null)
{
GridView020.Rows[count].Cells["CheckSet"].Value = Grid[0];
GridView020.Rows[count].Cells["Text020a"].Value = Grid[1];
@@ -1935,7 +1802,7 @@ namespace ExcelTest
GridView440.Rows[count].Cells["text440vTxt"].Value == null &&
GridView440.Rows[count].Cells["text440x"].Value == null)
{
GridView440.Rows[count].Cells["text440a"].Value = Grid[0];
GridView440.Rows[count].Cells["text440n"].Value = Grid[1];
GridView440.Rows[count].Cells["text440p"].Value = Grid[2];
@@ -2027,7 +1894,8 @@ namespace ExcelTest
Before = After;
for (int a = 0; a < Symbol.Length; a++)
{
if (Tag[0] == Symbol[a]) {
if (Tag[0] == Symbol[a])
{
After = a;
break;
}
@@ -2163,7 +2031,7 @@ namespace ExcelTest
text245d, text245e
};
string a = GetMiddelString(SplitTag, "▼a", "▼","245a");
string a = GetMiddelString(SplitTag, "▼a", "▼", "245a");
string b = GetMiddelString(SplitTag, "▼b", "▼");
string x = GetMiddelString(SplitTag, "▼x", "▼");
string n = GetMiddelString(SplitTag, "▼n", "▼");
@@ -2263,20 +2131,30 @@ namespace ExcelTest
/// <param name="Marc">텍스트박스에 들어갈 값 배열</param>
private void InputMoreTextBox(TextBox[] box, string[] Marc)
{
int count = 0;
//int count = 0;
foreach (string marc in Marc)
for (int i = 0; i < box.Length; i++)
{
if (box[count].Text == "")
box[count].InvokeText(marc);
//box[count].Text = marc;
if (i >= Marc.Length) continue;
var marc = Marc[i];
if (box[i].Text == "")
box[i].InvokeText(marc);
else
box[count].InvokeADDText("▽" + marc);
//box[count].Text += "▽" + marc;
count++;
box[i].InvokeADDText("▽" + marc);
}
//foreach (string marc in Marc)
//{
// if (box[count].Text == "")
// box[count].InvokeText(marc);
// //box[count].Text = marc;
// else
// box[count].InvokeADDText("▽" + marc);
// //box[count].Text += "▽" + marc;
// count++;
//}
}
/// <summary>
@@ -2345,33 +2223,34 @@ namespace ExcelTest
string TrimEndGubun(string str, string TagNum)
{
char[] gu = { '.', ',', ':', ';', '/', ' ' };
if (TagNum == "300"||TagNum == "300a")
if (TagNum == "300" || TagNum == "300a")
{
str = str.Trim();
if (TagNum == "300a")
{
gu = new char[] { '.', ',', '=', ':', ';', '/','+', ' ' };
//gu = new char[] { ',', '=', ':', ';', '/', '+', ' ' };
gu = new char[] { '.', ',', '=', ':', ';', '/', '+', ' ' };
for (int i = 0; i < gu.Length; i++)
{
str = str.TrimEnd(gu[i]);
}
}
}
if (str.Contains("ill."))
return str;
if (str.Contains("p."))
return str;
}
if (TagNum == "710" || TagNum == "910" )
if (TagNum == "710" || TagNum == "910")
return str;
if (TagNum == "245") gu = new char[] { '.',':', ';', '/', ' ' };
if (TagNum == "245") gu = new char[] { '.', ':', ';', '/', ' ' };
if (TagNum == "245a") gu = new char[] { '.', ',', '=', ':', ';', '/', ' ' };
for (int i = 0; i < gu.Length; i++)
{
str=str.TrimEnd(gu[i]);
str = str.TrimEnd(gu[i]);
}
//foreach (char gubun in gu)
//{
@@ -2405,7 +2284,7 @@ namespace ExcelTest
"653", "700", "710", "900", "910",
"940"
};
List<string> RemainTag = new List<string>(); // 메모장으로 출력되는 최종 리스트
List<string> BlankTag = MakeMarcLine(); // 칸채우기의 값들이 여기로 저장이 되어 들어옴
@@ -2415,15 +2294,15 @@ namespace ExcelTest
AllTag.AddRange(TextTag);
AllTag.Sort();
AllTag.RemoveAll(x => x.Length < 3 || x =="");
for(int i=0; i<AllTag.Count;i++)
AllTag.RemoveAll(x => x.Length < 3 || x == "");
for (int i = 0; i < AllTag.Count; i++)
{
string tTagNum = AllTag[i].Substring(0, 3);
bool isCopy = false;
List<string> tTag = Tag.ToList();
List<string> tFindTag =tTag.FindAll(x => x == tTagNum);
List<string> tFindTag = tTag.FindAll(x => x == tTagNum);
if (tFindTag.Count > 0) isCopy = true;
if (isCopy)
{
string AddText = "";
@@ -2464,7 +2343,7 @@ namespace ExcelTest
if (tEndIDX == -1) tEndIDX = AllTag[i].IndexOf("▲", tStartIDX - 1);
if (tEndIDX == -1) tEndIDX = AllTag[i].Length;
AllTag[i]=AllTag[i].Remove(tStartIDX, tEndIDX - tStartIDX);
AllTag[i] = AllTag[i].Remove(tStartIDX, tEndIDX - tStartIDX);
string tNewText = string.Format("{0}{1}", AllTag[i], tTagText020);
tNewText.TrimEnd('\n');
RemainTag.Add(tNewText + "▲");
@@ -2741,7 +2620,7 @@ namespace ExcelTest
{
if (dgv.Rows[a].Cells[0].Value == null)
break;
for (int b = 0; b < dgv.ColumnCount; b++)
{
if (dgv.Rows[a].Cells[b].Value == null)
@@ -3021,7 +2900,8 @@ namespace ExcelTest
if (boxText[0] != "") result += "▼a" + boxText[0];
if (boxText[1] != "") result += "▼n" + boxText[1];
if (boxText[3] != "") {
if (boxText[3] != "")
{
string[] splitText245b = boxText[3].Split('▽');
foreach (string text in splitText245b)
result += "▼b" + text;
@@ -3089,7 +2969,8 @@ namespace ExcelTest
if (boxText[0] != "") result += "▼a" + Tag300a_Sub(boxText[0]);
if (boxText[1] != "") result += "▼b" + boxText[1];
if (boxText[2] != "") {
if (boxText[2] != "")
{
result += "▼c" + boxText[2];
if (boxText[3] == "") result += "cm";
}
@@ -3119,9 +3000,9 @@ namespace ExcelTest
else if (Regex.IsMatch(GetMiddelString(result, "[", "]"), @"^[0-9]+$"))
{
string tTest = GetMiddelString(result, "[", "]");
return result.Replace("p","").Trim()+ " p."; ;
return result.Replace("p", "").Trim() + " p."; ;
}
return result;
}
@@ -3521,15 +3402,18 @@ namespace ExcelTest
a041 = a041.Replace("▽", ", ");
// k로 번역된 h 원작을 a로 중역
if (a041 != "" && k041 != "" && h041 != "") {
if (a041 != "" && k041 != "" && h041 != "")
{
result = string.Format("{0}로 번역된 {1} 원작을 {2}로 중역", k041, h041, a041);
}
// h 원작을 a로 번역
else if (a041 != "" && k041 == "" && h041 != "") {
else if (a041 != "" && k041 == "" && h041 != "")
{
result = string.Format("{0} 원작을 {1}로 번역", h041, a041);
}
// 본문은 a1, a2 혼합수록됨.
else if (a041.IndexOf(",") > 0) {
else if (a041.IndexOf(",") > 0)
{
result = string.Format("본문은 {0} 혼합수록 됨.", a041);
}
@@ -3651,6 +3535,79 @@ namespace ExcelTest
sg.Print_Grid_Num(sender, e);
}
private void lbl_BookList_Click(object sender, EventArgs e)
{
LovCustom();
}
void LovCustom()
{
var inputsearch = "";// tbCustName.Text.Trim();
var where = "";
if (inputsearch.isEmpty() == false)
{
where = $"c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = DB2.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{
var dr = f.SelectedRow;
if (dr == null) return;
lbCustIDX.Text = dr["idx"]?.ToString() ?? string.Empty;
tbCustName.Text = dr["c_sangho"]?.ToString() ?? string.Empty;
if (int.TryParse(lbCustIDX.Text, out int custidx) && custidx >= 0)
{
var sql = $"update Obj_List set customer={custidx} where idx = {l_idx} and comp_num={c_idx}";
var cnt = DB2.ExcuteNonQuery(sql);
if (cnt != 1)
UTIL.MsgE($"데이터 저장시 오류가 발생했습니다. 영향을 받은 행 수 = {cnt}");
}
}
}
private void Marc_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
if (UTIL.MsgQ("현재 화면을 닫을까요?") != DialogResult.Yes) return;
this.Close();
}
}
private void button1_Click(object sender, EventArgs e)
{
// 현재 데이터를 한줄 복사하고 ISBN 값을 삭제한다
// 생성된 자료는 좌측 목록에 추가되어야하고, 그 목록이 선택되도록 한다.
if (List_Book.SelectedRows.Count == 0)
return;
DataGridViewRow selectedRow = List_Book.SelectedRows[0];
int nRow = List_Book.Rows.Add();
DataGridViewRow newRow = List_Book.Rows[nRow];
for (int i = 0; i < selectedRow.Cells.Count; i++)
{
newRow.Cells[i].Value = selectedRow.Cells[i].Value;
}
newRow.Cells["ISBN13"].Value = "";
newRow.Cells["marc_idx"].Value = "";
newRow.Cells["list_idx"].Value = "";
//newRow.Cells["grade"].Value = "3"; // 등급 초기화 (D)
newRow.DefaultCellStyle.ForeColor = Color.Red; // 색상 초기화 (D급 색상)
List_Book.ClearSelection();
newRow.Selected = true;
List_Book.FirstDisplayedScrollingRowIndex = nRow;
}
private void button1_Click_1(object sender, EventArgs e)
{
this.Close();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -117,6 +117,36 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="label31.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label30.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label33.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label32.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label29.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label28.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label24.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label25.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label26.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label27.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="list_idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -168,37 +198,38 @@
iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAABGdBTUEAALGPC/xhBQAAAIFQTFRF////
AAAAlJSU4ODgU1NT6enp+Pj4w8PDxMTEkpKS/Pz81tbW5eXlRERE3NzcmZmZzMzMZGRkTU1Nb29vg4OD
urq6KioqW1tb8vLyf39/sbGxEhISPz8/i4uL0NDQZmZmIyMjoqKiNTU1tLS0GRkZp6end3d3Li4uOjo6
Dg4OJSUlLUB5vgAABwxJREFUeF7tnX97ojAMx6ceIqDi/DXndJ47vZt7/y/wFOMUSKG0SWE8+fxz9zxl
ZN8BaZq26ZMgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCELrWHnDsb8+7uNuvD+u/fHQW0GLOT34t276kb99
nn51siynu60f9eEqA7Zb+E+d9P1g9AaKcN42gR/C1dUIOl34X12E43gDMsrYxGP4IX26nZoVRtt/8Ovr
8bmtJvIssE6Fq/3n9feuxOao73wuAutTGD0nv7AJM80HmQisS6E/TaybMh3AfYq4CqxH4ULXuagp1wgC
61A4MPn88kzf4X44N4HuFQ5/gWV7dh7cE+FboGuF/S3YpSFWhQF3gY4VTqp1f+V8RnDnNA8C3Sr8C0Yp
wcLOR4EuFUYnsEnLMjd4SAl0qDAGi/SswQKQFuhMYWgewpTzF4wkZAS6Ujj8DfZ4+LzHqlmBjhROwBob
p1uomhPoRuEajJUzms3jtT+JxtHEP3bnM/3w7hrF5QU6UbgHW8V8BAsvl60I+8M/2w+4opjF+XJEoAuF
mNkMy3lhIB0uZhrf8RG3xK8wAEtKvrZ4YJJmMitO5ZzB3TW7wrIn+OLrJtJWa73XNQO3wpJvcFYtmzkY
wc9VgFnhHzCDMysY/iiYVNbIq/AdrKC8VE8OXlhUHJ+wKvTACMZJJ9WCEpb6rhScCsN8kv6bV7MU9pVe
lTwPp8IZ2MhzmMAlpmj0sTcYFard6LP9jNKktHe8wadwDBbyBHCFFStdp8qnUBlnGbuYDJo5ETaFr2Ag
y5tOiKaHnk/lUqjqCQ9DuIACrUELk8JQEUIe7H3MI8Uh0xUmhQpvTixQK7vFo1ARzLxRvqJntHpFHoU7
uHsGOieToNftsyhUuBkfmonQjGtYFOLTn8SmdAM3DoV47vAZWonQFciiEH2ExG5UWyCHQvwR2o4m0ugL
5FD4ArdO8QqNNFQQyKCwB3dOcbIZ8OaoIpBBIRryU40nEioJpFfYhxuneIFGEqoJpFeIzsKYZdVwKgqk
V4h1FTNoo6CqQHKFqJ+pnvhVUi2TeIFaITaeIXyElZ8gvUIsP0S30tpAILVCbGBI50hNBFIrPMJtHyEb
NBkJpFaIRGxLi4X2KcwEUiuEuz5CtRvAUCCxQmxwT5S6MBVIrBD5DP9BkyXGAokVIp/hHJrsMBdIrBCZ
qyAZVVSPZO6QKhzCTR+BJitsBNIqRBzNBppssHhFz5AqRBwNwVyhnUBahcjw/rLazA6rV/QMqULElVoP
nGwF0sw430AGFrYhWzjuWUKZp10dQNadETS1BGToRJm/aABId0gT0TQGJEcTQ1NLQCYsMlshfjoLkPUA
8aRo3SAKaWecagdJdxPP3NcNEpZSpvMbQPufYfu/w/b70vb3h+2Padofl7Z/bNH+8SHHGL9hcORpmgVL
rq1R8ORLmwRTzrtBcM1bNAiuuafmwDZ/2BgQV7OEppbAOI/fFEDVI+5e02D6Kwc00YFs+idbT1PGCqnw
k6rrQgLyITob52PbvOhDKt51bcVgiwYZ3h9sAa2bKrARWHuEeBdLAvP60gKQvpglTcS9RliJO8Pc67xV
YKVbdtBGC/tafRx0QyBPTMy/3wIFqzd5gjZq0D0z3H0ikm7nS9Zig0TifU850BenQ7yt+g7mton3rmVB
3xv6iO2Gi/2HaQZgIw1joOFiD+kjWMjN1VVccbIP+AH0s+DtodCHyJZYxAv3cj5CRffL1WWgHUWnQ1y+
IYubmgoJir8md2ZBURfjRP+HRQPuM+yJBcXKZXKH6inKRfHProeKuuvEEhXvSmcK7ZwoPg/aAi69/JTs
FSdZBQd1opTlsx2tj1DW+qLqNHy4Xw5X813qem00+wPUi/idzTuz1txb4aHaBYfTzuq6iW+2I42Jysdw
j9MyLMEoglXty1Dlxs64Xd+i6q4unMwdjl9wBMHB8fIWVa+YYFiDdqz+As84X7JLXkfYQxMW39Qwp05b
C7qndl4JtazeKds9qF/PO/QL388zR7jSMaXb677mOoFcNC+tAb2HS52jsQe0pK7+02Be0PHcqOkJXtAq
M9r5xM5GeOp7i0Cv8nOtC64rnW/RPSbnW7z763g+0y0WXPua+cJ+kYTa17R4BcXLCfjgSzdrEyrSbyQ0
ZDU533lPNTrRNJF6xGPD7ybtHiuOKc1wOhwsh/zsvI/GbR0jPv8w4J1aNmNYFj7r88I8+2LMwP6c1Quj
Ju9tJDhLdtT0jRy+fsCJMao5CtXC5kznn7Kw2tubvKyb+EdtpYo0z8W7sdRKBzSLcBzrfpIf8biJ3Z8O
fT8YFR/9c9gE2gmrptKP/O3zNJ+N+Zrutovop6u7s/KG48H6uI+78X6/9qOh14ChrSAIgiAIgiAIgiAI
giAIgiAIgiAIgiAIAilPT/8BzuZT5uV+S2QAAAAASUVORK5CYII=
Dg4OJSUlLUB5vgAABzdJREFUeF7tne12ojAQhosuIqBiRa212q7dult7/xe4R6wKwwRCMhMoZ56fPSnj
K8l8BeLDgyAIgiAIgiAIgiAIgiAIgiAIgiAIgiAIQt/Y+JNZsD0ekkFyOG6D2cTfwCGNGcI/tMQoDvaP
iy8Psl687YN4BIfrs9/Dv7TAKAinL1BagZddGETw37QIvQH8k2OiWbKDehTskhn871oGXssK4/0/qKOS
z30zkQOvVYWbwydUoMHuqO98zgLbUxg/ws+uTap5IzOBbSkMFvBjN2IxhhdEuAhsR+FK17moqdf4LbAN
hWOT5Vdm8QovXOAq0L3Cya/iB7XgzYcXv3MT6FrhaF/4jLYkqjTgLtCxwnmz8FfPZwxNZOQEulX4N2eY
CiztzAt0qTA+5Q2TsS4VDwWBDhUmBbuUbIuGigKdKYzMU5h6/uYtAYGuFE5+A7u0fN5zVSjQkcI5NEvN
6ZqqlgS6UbiFVpVM02WyDebxLJ4Hx8Ey1U/vLllcWaAThQdoFOU9XPmlbkU0mvzZv8OhKCtcoAuFmFnA
elmZSEerVGMdH3FL/ApDaBLytccTkyLztLqV43ke7q7ZFaLfa46noDQ1FWy2etMVwK2wZg2mpYSkkvEU
XqAeZoV/oL0CaUX5o2DeWCOvwldoLs+TZrsFsGpYn7Aq9KG1HKdK71lFVOu7CnAqjMpN+hvPqtpVh6F+
IsCrMIXGbnzM4diG1HnoHIwK1W70Ub+pq2JeGx2v8CmcQVM3QjjUhI2uU+VTqMyzjF0MQLMnwqbwGVr6
5kUnRdNDz6dyKVRFwo8JHGmBeqXnYFIYKVLID3sfk6c6ZbrApFDhzYkFanW3eBQqkpkXyimq/h6L8Ch8
g2Yu0DmZDC2BPAoVbiaA4+zQE8ijEN/+JDalKZDabAbeO3yEw+zQFciiEL2FxG5UWyCHQvwW2lYTRfQF
cih8gjbOPMNRVjQQyKBwCE2cOdkUvCWaCGRQiKb8VPVERiOB9ApH0MKZJzjKhmYC6RWiuzBmXTWchgLp
FWKhIoWDLGgqkFwh6meaN36V6FW9eagVYvUM4S1sfAfpFWL9oWZ7E1UYCKRWiBWGdI7URCC1wiO8PmXR
ZCSQWiGSsa119wfrMBNIrRBeXvFYlgmGAokVYsU9UevCVCCxQmQZ/oNjzDAWSKwQWYZLOMYIc4HECpG9
CpKqonkmc4dU4QRe3fM8OMYEG4G0ChFHs4NjDLCYotQKEUdDsFdoJ5BWIVLen582s8NqilIrRFypdeFk
K5BiFt1BCgvblC2aDS2h7NNuPqA+bwrH/GyQ0omw+O0CSDikyWg6A9KjSeCYnw2yYQFehfjprKA+wvq+
GyAKaXecWgdpdxOVv10BSUsp2/kdoP/3sP/rEFHYM1/a/3jY/5ym/3lp/2uL/teHHDV+x+Do03QLll5b
p0ASU9JOV/sw9bw7BBIQSfYtOgTX3lN3QJxpz7IaxNWs4ZifDeJq+lYEQ3lOp2m4+FUCjrEGeemf7Hma
OjbICT+Fc11IQBaiszofe82LPqVCCijC59qqQfJ+jsQfe4CW7tnEKmJolv4tlgzm50srQGIxS5sI6dW4
KaHcGcamqYubiHhx7w0OIgFpfLto7mO5BlNOzP++BQp23uQJDiICKfT5YyLSbudr1mJFIvF7TyXQieNR
PmdSAHPbxO+uQdB5Q5+xXUG2L5h3ocbQWAZjooEFDOp3SPNgKTdXqLiA30SODOoCuix4IxR6E9kai/jB
vZy3UBF+uUIGGig8j/j4BoibMxUyFN8md2cBKxPPUZH+i0UTbp7CsIjiyWVyh+orjoviKJuKRIpz14kl
KuaKt4ADGVAsD9oDXIblLdkLjMH+joNzopTHZ3Ol3ABkD+MCVdAI4IWvuNrvUp/XRvN+gPohfpbeBYb6
JC6CM/c2eKp2hr5HqkR9buKLbaUxV/kY7joNsIbW71idfRmp3Jjz51tU4erMydzhBCofeg647MlMEVVU
zDA8g3amXoHcNRMGtltyx+AcYR9tWNzg6R9WonaoGQ3Pgh6qnVeGQzd6R5GD39A/zzsKKudndip7K6gj
8zdfS51ELl7WngF9gP/jirq7WH+u/sN4WRF4rrR0B8/UrMVvPrHfRngY+atQ7+Rn/pKwAnS3BmWaLgfH
7PctXoNtskyxfV0c8/BKQmVcJEFnKbPiVxxeTsC7fSpvTaRov5HgYgdWA2yHn4YWnWiRWF3x2PDbeSpa
QXVOaYbTcrAe8t/Oe7ctpckh/v3D0KaO5mJSlz7r80TZe6VkrJeF1THt3ATNQfBbstNWSsEGBPoJJ8a0
5SxUC5vfdG49CdXEP5hM1l3SvLnTIrHm7+JdWWu1A7pFNEt0l+R7Muti+NNhFIRTxV7uNx+7ULth1VVG
cbB/XJS7MV+Lt/0q/unq7mz8yWy8PR6SQXI4bIN44negtBUEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQSDm
P87mU+ZvyRQDAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="CheckSet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
@@ -267,4 +298,7 @@
<metadata name="text490v.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -0,0 +1,996 @@
//using Microsoft.Office.Interop.Excel;
using AR;
using OpenQA.Selenium.DevTools.V136.Animation;
using Org.BouncyCastle.Asn1.CryptoPro;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Web.UI;
using System.Windows.Forms;
using UniMarc;
using UniMarc.ListOfValue;
using UniMarc.;
using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
namespace ExcelTest
{
public partial class Marc2 : Form
{
/// <summary>
/// isbn / 도서명 / 저자 / 출판사 / 가격
/// </summary>
string[] data_book = { "", "", "", "", "" };
int SaveRowIdx = -1;
public string mUserName;
string mCompidx = UniMarc.Properties.Settings.Default.compidx;
string mListIdx = "";
public string find;
public string change;
public string call = "";
private string data008 = string.Empty;
private bool mLoadCompleted = false;
string tbName = "";
public int checkCout = 0;
public bool gridViewChk = false; // True / False
Helper_DB db = new Helper_DB();
Help008Tag tag008 = new Help008Tag();
Skill_Search_Text search_Text = new Skill_Search_Text();
String_Text st = new String_Text();
Mac_List ml;
//목록다시불러오기를 위해서 임시로 추가
string p_lidx = "";
string p_value = "";
string p_cidx = "";
string p_cust = "";
string p_name = "";
public Marc2()
{
InitializeComponent();
this.ml = null;
mUserName = string.Empty;
marcEditorControl1.db = this.db;
marcEditorControl1.BookSaved += MarcEditorControl_BookSaved;
marcEditorControl1.FillBlankClicked += MarcEditorControl_FillBlankClicked;
marcEditorControl1.PrevButton += MarcEditorControl1_PrevButton;
marcEditorControl1.NextButton += MarcEditorControl1_NextButton;
}
private void MarcEditorControl1_NextButton(object sender, EventArgs e)
{
int row_idx = List_Book.CurrentCell.RowIndex;
int col_idx = List_Book.CurrentCell.ColumnIndex;
if (row_idx == -1 || col_idx == -1) { return; }
//다음데이터가 존재한다
if(row_idx < List_Book.RowCount-1)
{
List_Book.CurrentCell = List_Book.Rows[row_idx + 1].Cells[col_idx];
}
}
private void MarcEditorControl1_PrevButton(object sender, EventArgs e)
{
int row_idx = List_Book.CurrentCell.RowIndex;
int col_idx = List_Book.CurrentCell.ColumnIndex;
if (row_idx == -1 || col_idx == -1) { return; }
if (row_idx > 0)
{
List_Book.CurrentCell = List_Book.Rows[row_idx - 1].Cells[col_idx];
}
}
public Marc2(Mac_List _ml)
{
InitializeComponent();
ml = _ml;
mUserName = ml.user_name;
marcEditorControl1.db = this.db;
marcEditorControl1.BookSaved += MarcEditorControl_BookSaved;
marcEditorControl1.FillBlankClicked += MarcEditorControl_FillBlankClicked;
marcEditorControl1.PrevButton += MarcEditorControl1_PrevButton;
marcEditorControl1.NextButton += MarcEditorControl1_NextButton;
}
string l_idx = string.Empty;
string c_idx = string.Empty;
private void Marc_Load(object sender, EventArgs e)
{
// 콤보박스 정렬및 필터
string[] combo8 = { "등급", "복본" };
comboBox8.Items.AddRange(combo8);
comboBox8.SelectedIndex = 0;
}
public void input_list()
{
var dlg = UTIL.MsgQ("데이터베이스 내용을 다시 불러옵니다\n저장되지 않은 사항은 손실됩니다.다시 불러올까요?");
if (dlg != DialogResult.Yes) return;
input_list(p_lidx, p_value, p_cidx, p_cust, p_name);
}
(string remark1, string remark2) ReadRemark(int row)
{
string[] sear_tbl = { "idx" };
string[] sear_col = { List_Book.Rows[row].Cells["marc_idx"].Value.ToString() };
string cmd = db.More_DB_Search("Marc", sear_tbl, sear_col, "`비고1`, `비고2`");
string res = db.DB_Send_CMD_Search(cmd);
string[] ary = res.Split('|');
if (res.Length < 1)
{
//etc1.Text = res;
//etc2.Text = "";
return (res, "");
}
//etc1.Text = ary[0];
//etc2.Text = ary[1];
return (ary[0], ary[1]);
}
/// <summary>
/// 가져온 목록을 책목록과 연동하여 Grid에 집어넣음.
/// </summary>
/// <param name="date">목록일자</param>
/// <param name="value">목록명</param>
public void input_list(string l_idx, string value, string C_idx, string custidx, string custname)
{
p_lidx = l_idx;
p_value = value;
p_cidx = C_idx;
p_cust = custidx;
p_name = custname;
db.DBcon();
this.List_Book.Rows.Clear();
if (value.isEmpty() == false)
{
if (value.IndexOf("]") != -1)
this.Text = $"마크 작성(1)-{value.Substring(value.IndexOf("]") + 1)}";
else
this.Text = $"마크 작성(1){value}";
}
this.l_idx = l_idx;
this.c_idx = C_idx;
string Area = "`idx`, `isbn_marc`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `image_url`, `m_idx`";
string[] sear_tbl = { "l_idx", "compidx" };
string[] sear_col = { l_idx, C_idx };
lbl_BookList.Text = value;
tbCustName.Text = custname;
lbCustIDX.Text = custidx;
string cmd =
string.Format("SELECT {0} " +
"FROM {1} " +
"WHERE `{2}` = \"{4}\" AND `{3}` = \"{5}\"" +
"ORDER BY `idx` ASC;", Area, "Obj_List_Book", sear_tbl[0], sear_tbl[1], sear_col[0], sear_col[1]);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] db_data = db_res.Split('|');
string[] grid = {
"", "", "", "", "",
"", "", "", "", "",
"", "", "V", "", "" };
mLoadCompleted = false;
for (int a = 0; a < db_data.Length - 1; a += 11)
{
grid[0] = db_data[a]; // 0: idx
grid[1] = db_data[a + 1]; // 1: isbn
grid[2] = db_data[a + 2]; // 2: header
grid[2] += db_data[a + 3]; // 2: num
grid[3] = db_data[a + 4]; // 3: book_num
grid[4] = db_data[a + 5]; // 4: author
grid[5] = db_data[a + 6]; // 5: book_comp
grid[6] = db_data[a + 7]; // 6: count
grid[7] = db_data[a + 8]; // 7: pay
grid[8] = db_data[a + 9]; // 8: image_url
grid[9] = db_data[a + 10]; // 9: m_idx
List_Book.Rows.Add(grid);
//if (a % 11 == 0) { grid[0] = db_data[a]; } // 0: idx
//if (a % 11 == 1) { grid[1] = db_data[a+1]; } // 1: isbn
//if (a % 11 == 2) { grid[2] = db_data[a+2]; } // 2: header
//if (a % 11 == 3) { grid[2] += db_data[a+3]; } // 2: num
//if (a % 11 == 4) { grid[3] = db_data[a+4]; } // 3: book_num
//if (a % 11 == 5) { grid[4] = db_data[a+5]; } // 4: author
//if (a % 11 == 6) { grid[5] = db_data[a+6]; } // 5: book_comp
//if (a % 11 == 7) { grid[6] = db_data[a+7]; } // 6: count
//if (a % 11 == 8) { grid[7] = db_data[a+8]; } // 7: pay
//if (a % 11 == 9) { grid[8] = db_data[a+9]; } // 8: image_url
//if (a % 11 == 10) { grid[9] = db_data[a+10]; // 9: m_idx
// List_Book.Rows.Add(grid);
//}
}
chk_Marc();
List_Book.ClearSelection();
mLoadCompleted = true;
if (this.List_Book.RowCount > 0)
List_Book.Rows[0].Selected = true;
}
/// <summary>
/// 마크 유무 확인하는 함수
/// </summary>
void chk_Marc()
{
for (int a = 0; a < List_Book.Rows.Count; a++)
{
string Area =
// 0 1
"`idx`, `compidx`, " +
// 2 3 4 5 6 7
"`marc`, `marc_chk`, `marc1`, `marc_chk1`, `marc2`, `marc_chk2`, " +
// 8 9 10 11
"`grade`, `008tag`, `user`, `date`";
string Table = "Marc";
string[] sear_tbl = { "ISBN" };
string[] sear_col = { List_Book.Rows[a].Cells["ISBN13"].Value.ToString() };
//if (List_Book.Rows[a].Cells["marc_idx"].Value.ToString() != "0") {//여기 조건이 이상함.. 여기 조건때문에 순서가 잘 못 뜨는 경우 발생..
// sear_tbl[0] = "idx";
// sear_col[0] = List_Book.Rows[a].Cells["marc_idx"].Value.ToString();
//}
string Chk_Cmd = string.Format("SELECT {0} FROM {1} WHERE `{2}` = \"{3}\" ORDER BY FIELD(`compidx`, {4}) DESC;",
Area, Table, sear_tbl[0], sear_col[0], mCompidx);
string Chk_Res = db.DB_Send_CMD_Search(Chk_Cmd);
string[] Chk_Arr = Chk_Res.Split('|');
bool isMyData = true;
if (Chk_Arr.Length < 2)
{
List_Book.Rows[a].Cells["grade"].Value = "3";
List_Book.Rows[a].DefaultCellStyle.ForeColor = Color.Red;
continue;
}
if (Chk_Arr[1] != mCompidx)
isMyData = false;
string[] MarcData = { Chk_Arr[2], Chk_Arr[4], Chk_Arr[6] };
string[] CheckData = { Chk_Arr[3], Chk_Arr[5], Chk_Arr[7] };
List_Book.Rows[a].DefaultCellStyle.ForeColor = SetGradeColor(Chk_Arr[8], isMyData);
List_Book.Rows[a].Cells["marc_idx"].Value = Chk_Arr[0];
List_Book.Rows[a].Cells["db_marc"].Value = MarcData[0];//NewestMarc(MarcData, CheckData);
List_Book.Rows[a].Cells["grade"].Value = Chk_Arr[8];
// text008.Text = Chk_Arr[9];
List_Book.Rows[a].Cells["user"].Value = Chk_Arr[10];
List_Book.Rows[a].Cells["SaveDate"].Value = Chk_Arr[11];
if (isMyData)
SaveDateCheck(Chk_Arr[11], a);
else
{
string FindCompCmd = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", Chk_Arr[1]);
List_Book.Rows[a].Cells["user"].Value = db.DB_Send_CMD_Search(FindCompCmd).Replace("|", "");
List_Book.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
}
}
}
private string NewestMarc(string[] marc, string[] marc_chk)
{
string result = "";
int count = 0;
foreach (string chk in marc_chk)
{
if (chk == "1")
result = marc[count];
count++;
}
return result;
}
private Color SetGradeColor(string Grade, bool isMyData = true)
{
if (!isMyData)
return Color.Orange;
switch (Grade)
{
case "0": // A
return Color.Blue;
case "1": // B
return Color.Black;
case "2": // C
return Color.Gray;
case "3": // D
return Color.Red;
default:
return Color.Black;
}
}
/// <summary>
/// 마지막 저장시각 14일이전일 경우 배경 색 변경
/// </summary>
/// <param name="Date">마지막 저장시각</param>
/// <param name="row">해당 행</param>
private void SaveDateCheck(string Date, int row)
{
DateTime SaveDate = DateTime.ParseExact(Date, "yyyy-MM-dd HH:mm:ss",
System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None);
DateTime TargetDate = DateTime.Today.AddDays(-14);
int result = DateTime.Compare(SaveDate, TargetDate);
if (result >= 0) // SaveDate가 같거나 큼
List_Book.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
else // TargetDate가 큼
List_Book.Rows[row].DefaultCellStyle.BackColor = Color.White;
}
private string mOldMarc = string.Empty;
private void List_Book_SelectionChanged(object sender, EventArgs e)
{
if (!mLoadCompleted) return;
if (List_Book.CurrentCell == null) return;
int row_idx = List_Book.CurrentCell.RowIndex;
int col_idx = List_Book.CurrentCell.ColumnIndex;
if (List_Book.SelectedCells.Count > 0)
{
row_idx = List_Book.SelectedCells[0].RowIndex;
col_idx = List_Book.SelectedCells[0].ColumnIndex;
}
if (row_idx == -1 || col_idx == -1) { return; }
SaveRowIdx = row_idx;
mOldMarc = List_Book.Rows[row_idx].Cells["db_marc"].Value.ToString();
string isbn = List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString();
if (isbn != "")
{
string CountQuery = string.Format("SELECT Count(isbn) FROM Marc WHERE isbn = {0} GROUP BY isbn;", isbn);
string CountResult = db.self_Made_Cmd(CountQuery).Replace("|", "");
if (CountResult == "")
btn_CopySelect.Text = "0";
if (CountResult == "0")
{
btn_CopySelect.Enabled = false;
btn_CopySelect.BackColor = Color.Silver;
}
else
{
btn_CopySelect.Enabled = true;
btn_CopySelect.BackColor = Color.Khaki;
}
btn_CopySelect.Text = CountResult;
}
if (check_V(row_idx, col_idx))
return;
string isbn13 = List_Book.Rows[row_idx].Cells["ISBN13"].Value?.ToString() ?? "";
string bookName = List_Book.Rows[row_idx].Cells["book_name"].Value?.ToString() ?? "";
string author = List_Book.Rows[row_idx].Cells["author"].Value?.ToString() ?? "";
string publisher = List_Book.Rows[row_idx].Cells["book_comp"].Value?.ToString() ?? "";
string price = List_Book.Rows[row_idx].Cells["pay"].Value?.ToString() ?? "";
string url = List_Book.Rows[row_idx].Cells["url"].Value?.ToString() ?? ""; // or image_url?
string marcIdx = List_Book.Rows[row_idx].Cells["marc_idx"].Value?.ToString() ?? "";
string dbMarc = List_Book.Rows[row_idx].Cells["db_marc"].Value?.ToString() ?? "";
string grade = List_Book.Rows[row_idx].Cells["grade"].Value?.ToString() ?? "";
string user = List_Book.Rows[row_idx].Cells["user"].Value?.ToString() ?? "";
string saveDate = List_Book.Rows[row_idx].Cells["SaveDate"].Value?.ToString() ?? "";
string listIdx = List_Book.Rows[row_idx].Cells["list_idx"].Value?.ToString() ?? ""; // verify this column name in input_list
var remark = ReadRemark(row_idx);
var p = new MacEditorParameter
{
ISBN13 = isbn13,
URL = url,
Grade = grade,
ListIdx = listIdx,
MarcIdx = marcIdx,
SaveDate = saveDate,
User = user,
BookName = bookName,
Author = author,
Publisher = publisher,
Price = price,
Remark1 = remark.remark1,
Remark2 = remark.remark2
};
marcEditorControl1.LoadBookData(dbMarc, p);
}
bool check_V(int row, int col)
{
string name = List_Book.Columns[col].Name;
if (name == "colCheck")
{
if (List_Book.Rows[row].Cells[col].Value.ToString() == "V")
List_Book.Rows[row].Cells[col].Value = "";
else
List_Book.Rows[row].Cells["colCheck"].Value = "V";
return true;
}
else
return false;
}
private void btn_Search_Click(object sender, EventArgs e)
{
if (List_Book.RowCount < 0) return;
Search_ReSet();
bool isSort = rb_Sort.Checked;
int combo = comboBox8.SelectedIndex; // 0: 등급 / 1: 복본
if (isSort)
{
if (combo == 0)
{
List_Book.Sort(List_Book.Columns["grade"], System.ComponentModel.ListSortDirection.Ascending);
}
else
{
List_Book.Sort(List_Book.Columns["ISBN13"], System.ComponentModel.ListSortDirection.Ascending);
}
}
else
{
int comboIdx;
if (combo == 0)
{
comboIdx = comboBox9.SelectedIndex;
Search_Filter("grade", comboIdx);
}
else
{ // 수정필요
}
}
}
#region Search_Click_Sub
private void Search_ReSet()
{
DataGridViewBand reSet;
for (int a = 0; a < List_Book.RowCount; a++)
{
reSet = List_Book.Rows[a];
reSet.Visible = true;
}
}
private void Search_Filter(string target, int comboIdx)
{
int count = List_Book.Rows.Count;
DataGridViewBand band;
if (comboIdx == 0)
{
for (int a = 0; a < count; a++)
{
band = List_Book.Rows[a];
band.Visible = true;
}
return;
}
comboIdx--;
for (int a = 0; a < count; a++)
{
if (List_Book.Rows[a].Cells[target].Value.ToString() != comboIdx.ToString())
{
band = List_Book.Rows[a];
band.Visible = false;
}
}
}
#endregion
private void btn_CopySelect_Click(object sender, EventArgs e)
{
//TODO: 마크 물리는쪽
int row = List_Book.CurrentCell.RowIndex;
string isbn = List_Book.Rows[row].Cells["ISBN13"].Value.ToString();
MarcCopySelect copySelect = new MarcCopySelect(this);
copySelect.MarcFormRowIndex = row;
copySelect.Init("isbn", isbn);
copySelect.Show();
}
/// <summary>
/// 선택된 마크에 대한 정보를 그리드뷰에 저장.
/// </summary>
/// <param name="row"></param>
/// <param name="GridData">[0] idx, [1] compidx, [2] user, [3] date, [4] grade, [5] tag008, [6] marc </param>
public void SelectMarc_Sub(int row, string[] GridData)
{
List_Book.Rows[row].Cells["marc_idx"].Value = GridData[0];
List_Book.Rows[row].Cells["user"].Value = GridData[2];
List_Book.Rows[row].Cells["SaveDate"].Value = GridData[4];
List_Book.Rows[row].Cells["grade"].Value = GridData[3];
// text008.Text = GridData[5];
List_Book.Rows[row].Cells["db_marc"].Value = GridData[6];
mOldMarc = GridData[6];
List_Book.Rows[row].DefaultCellStyle.ForeColor = SetGradeColor(GridData[4]);
List_Book.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
if (List_Book.CurrentRow != null && List_Book.CurrentRow.Index == row)
{
List_Book_SelectionChanged(null, null);
}
}
private void MarcEditorControl_BookSaved(object sender, ExcelTest.MarcEditorControl.BookSavedEventArgs e)
{
string table_name = "Marc";
//string[] grid_data = {
// e.griddata[0],// List_Book.Rows[SaveRowIdx].Cells["ISBN13"].Value.ToString(),
// e.griddata[1],//List_Book.Rows[SaveRowIdx].Cells["book_name"].Value.ToString(),
// e.griddata[2],//List_Book.Rows[SaveRowIdx].Cells["author"].Value.ToString(),
// e.griddata[3],//List_Book.Rows[SaveRowIdx].Cells["book_comp"].Value.ToString(),
// e.griddata[4],//List_Book.Rows[SaveRowIdx].Cells["pay"].Value.ToString(),
// e.griddata[5]//List_Book.Rows[SaveRowIdx].Cells["url"].Value.ToString()
//};
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = e.DBMarc;// st.made_Ori_marc(richTextBox1).Replace(@"\", "₩");
string Midx = List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value.ToString();
string SaveDate = List_Book.Rows[SaveRowIdx].Cells["SaveDate"].Value.ToString();
string SaveUser = List_Book.Rows[SaveRowIdx].Cells["user"].Value.ToString();
bool IsCoverDate = false;
if (SaveDate != "")
{
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
TimeSpan sp = spspsp(SaveDate, date);
IsCoverDate = IsCoverData(sp.Days, SaveUser);
}
// true일 경우 INSERT, false일 경우 UPDATE
bool isNewData = Midx != "" ? false : true;
if (List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor == Color.Orange ||
List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor == Color.Red)
{
string[] Insert_tbl = {
"ISBN", "서명", "저자", "출판사",
"가격", "marc", "비고1", "비고2", "url",
"grade", "marc_chk", "user", "division", "008tag",
"date", "compidx" };
string[] Insert_col = {
e.griddata.ISBN13, e.griddata.BookName, e.griddata.Author, e.griddata.Publisher,
e.griddata.Price, orimarc, e.griddata.Remark1, e.griddata.Remark2, e.griddata.URL,
e.griddata.Grade, "1", mUserName, e.tag056, e.text008,
date, mCompidx };
string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col);
PUB.log.Add("INSERT", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, Incmd));
db.DB_Send_CMD_reVoid(Incmd);
isNewData = true;
}
else
{
string[] Edit_tbl = {
"compidx", "marc", "marc_chk", "marc1", "marc_chk1", "비고1",
"비고2", "url", "division", "008tag", "date",
"user", "grade" };
string[] Edit_col = {
mCompidx, orimarc, "1", mOldMarc , "0", e.griddata.Remark1,
e.griddata.Remark2, e.griddata.URL, e.tag056,e.text008, date,
mUserName, e.griddata.Grade };
string[] Sear_tbl = { "idx", "compidx" };
string[] Sear_col = { Midx, mCompidx };
if (e.griddata.ISBN13 == null || e.griddata.ISBN13 == "")
{
MessageBox.Show("ISBN 데이터가 없습니다.");
return;
}
string U_cmd = db.More_Update(table_name, Edit_tbl, Edit_col, Sear_tbl, Sear_col);
PUB.log.Add("Update", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, U_cmd.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(U_cmd);
isNewData = false;
}
List_Book.Rows[SaveRowIdx].Cells["grade"].Value = e.griddata.Grade;
List_Book.Rows[SaveRowIdx].Cells["SaveDate"].Value = e.SaveDate;
List_Book.Rows[SaveRowIdx].Cells["user"].Value = mUserName;
List_Book.Rows[SaveRowIdx].Cells["db_marc"].Value = e.DBMarc;
List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor = SetGradeColor(grade.ToString());
if (isNewData)
{
string MidxQuery = string.Format("SELECT `idx` FROM Marc WHERE isbn = {0} AND `compidx` = {1};", e.griddata.ISBN13, mCompidx);
PUB.log.Add("MarcInsert", string.Format("{0}({1}) : {2}", mUserName, mCompidx, MidxQuery));
Midx = db.DB_Send_CMD_Search(MidxQuery).Replace("|", "");
List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value = Midx;
}
string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND 'compidx' ={2};",
Midx, List_Book.Rows[SaveRowIdx].Cells["list_idx"].Value.ToString(), mCompidx);
PUB.log.Add("MarcUpdate", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpdateListIndex));
db.DB_Send_CMD_reVoid(UpdateListIndex);
MessageBox.Show("저장되었습니다!");
}
#region Save_Click_Sub
/// <summary>
/// 마크 저장시 사용하며, 마지막 수정일과 수정자를 가져와 덮어씌울지 백업데이터를 만들지 구분
/// </summary>
/// <param name="TimeSpanDaysValue">저장할 마크의 마지막 수정일</param>
/// <param name="user">저장할 마크의 마지막 수정자</param>
/// <returns>마지막 수정일로부터 2일이 지나지않고, 마지막 수정자와 해당 유저가 동일 할 경우 true 반환</returns>
private bool IsCoverData(int TimeSpanDaysValue, string user)
{
if (TimeSpanDaysValue < -1)
return false;
if (user != mUserName)
return false;
return true;
}
private TimeSpan spspsp(string LastDate, string SaveDate)
{
DateTime date1 = Convert.ToDateTime(LastDate);
DateTime date2 = Convert.ToDateTime(SaveDate);
TimeSpan result = date1 - date2;
return result;
}
#endregion
private void MarcEditorControl_FillBlankClicked(object sender, EventArgs e)
{
if (List_Book.CurrentRow == null) return;
int row = List_Book.CurrentRow.Index;
string ISBN = List_Book.Rows[row].Cells["ISBN13"].Value?.ToString();
if (string.IsNullOrEmpty(ISBN))
{
MessageBox.Show("ISBN이 존재하지않습니다!");
return;
}
var fb = new UniMarc.Marc_FillBlank(this);
for (int a = 0; a < List_Book.Rows.Count; a++)
{
if (List_Book.Rows[a].DefaultCellStyle.ForeColor == Color.Red)
{
string[] GridData =
{
a.ToString(),
List_Book.Rows[a].Cells["ISBN13"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["book_name"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["author"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["book_comp"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["pay"].Value?.ToString() ?? "",
""
};
fb.InitFillBlank(GridData);
}
}
fb.ISBN = ISBN;
fb.Show();
}
private void btn_mk_marcList_Click(object sender, EventArgs e)
{
Marc_mkList mkList = new Marc_mkList(this);
mkList.StartPosition = FormStartPosition.CenterScreen;
mkList.Show();
}
#region _Sub
public bool Check_BackColor(int row)
{
if (List_Book.Rows[row].DefaultCellStyle.ForeColor != Color.Red)
return true;
return false;
}
public bool Check_List_V(int row)
{
if (List_Book.Rows[row].Cells["colCheck"].Value.ToString() == "V")
return true;
return false;
}
#endregion
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
bool isCheck = checkBox3.Checked;
if (isCheck)
{
for (int a = 0; a < List_Book.Rows.Count; a++)
{
List_Book.Rows[a].Cells["colCheck"].Value = "V";
}
}
else
{
for (int a = 0; a < List_Book.Rows.Count; a++)
{
List_Book.Rows[a].Cells["colCheck"].Value = "";
}
}
}
private void List_Book_KeyDown(object sender, KeyEventArgs e)
{
int row = List_Book.CurrentCell.RowIndex;
if (e.KeyCode == Keys.Space)
{
if (List_Book.Rows[row].Cells["colCheck"].Value.ToString() == "V")
List_Book.Rows[row].Cells["colCheck"].Value = "";
else
List_Book.Rows[row].Cells["colCheck"].Value = "V";
}
}
private void FillTextBox_KeyDown(object sender, KeyEventArgs e)
{
TextBox tb = sender as TextBox;
//if (e.KeyCode == Keys.F3)
//{
// int line = tb.SelectionStart;
// tb.Text = tb.Text.Insert(line, "▽");
// tb.SelectionStart = line + 1;
//}
if (e.KeyCode == Keys.F3)
{
tb.InvokeInsertText("▽");
//tb.Select(tb.Text.Length, 0);
}
else if (e.KeyCode == Keys.F4)
{
tb.InvokeInsertText("△");
//tb.Select(tb.Text.Length, 0);
}
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
}
#region DataGridView
Skill_Grid sg = new Skill_Grid();
private void List_Book_MouseMove(object sender, MouseEventArgs e)
{
sg.MouseMove(sender, e);
}
private void List_Book_MouseDown(object sender, MouseEventArgs e)
{
sg.MouseDown(sender, e);
}
private void List_Book_DragOver(object sender, DragEventArgs e)
{
sg.DragOver(sender, e);
}
private void List_Book_DragDrop(object sender, DragEventArgs e)
{
sg.DragDrop(sender, e);
}
#endregion
private bool isEmpty(string boxText)
{
if (boxText == "")
return false;
return true;
}
private bool isEmpty(string[] boxText)
{
bool[] isText = new bool[boxText.Length];
int count = 0;
int chkCount = 0;
foreach (string Check in boxText)
{
if (Check == "")
isText[count] = false;
else
{
isText[count] = true;
chkCount++;
}
count++;
}
if (chkCount == 0)
return false;
return true;
}
private void btn_FilterReturn_Click(object sender, EventArgs e)
{
rb_Filter.Checked = false;
rb_Sort.Checked = false;
comboBox8.SelectedIndex = 0;
comboBox9.SelectedIndex = 0;
List_Book.Sort(list_idx, System.ComponentModel.ListSortDirection.Ascending);
}
private void List_Book_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
private void lbl_BookList_Click(object sender, EventArgs e)
{
LovCustom();
}
void LovCustom()
{
var inputsearch = "";// tbCustName.Text.Trim();
var where = "";
if (inputsearch.isEmpty() == false)
{
where = $"c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = DB2.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{
var dr = f.SelectedRow;
if (dr == null) return;
lbCustIDX.Text = dr["idx"]?.ToString() ?? string.Empty;
tbCustName.Text = dr["c_sangho"]?.ToString() ?? string.Empty;
if (int.TryParse(lbCustIDX.Text, out int custidx) && custidx >= 0)
{
var sql = $"update Obj_List set customer={custidx} where idx = {l_idx} and comp_num={c_idx}";
var cnt = DB2.ExcuteNonQuery(sql);
if (cnt != 1)
UTIL.MsgE($"데이터 저장시 오류가 발생했습니다. 영향을 받은 행 수 = {cnt}");
}
}
}
private void Marc_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
if (UTIL.MsgQ("현재 화면을 닫을까요?") != DialogResult.Yes) return;
this.Close();
}
}
private void button1_Click(object sender, EventArgs e)
{
// 현재 데이터를 한줄 복사하고 ISBN 값을 삭제한다
// 생성된 자료는 좌측 목록에 추가되어야하고, 그 목록이 선택되도록 한다.
if (List_Book.SelectedRows.Count == 0)
return;
DataGridViewRow selectedRow = List_Book.SelectedRows[0];
int nRow = List_Book.Rows.Add();
DataGridViewRow newRow = List_Book.Rows[nRow];
for (int i = 0; i < selectedRow.Cells.Count; i++)
{
newRow.Cells[i].Value = selectedRow.Cells[i].Value;
}
newRow.Cells["ISBN13"].Value = "";
newRow.Cells["marc_idx"].Value = "";
newRow.Cells["list_idx"].Value = "";
//newRow.Cells["grade"].Value = "3"; // 등급 초기화 (D)
newRow.DefaultCellStyle.ForeColor = Color.Red; // 색상 초기화 (D급 색상)
List_Book.ClearSelection();
newRow.Selected = true;
List_Book.FirstDisplayedScrollingRowIndex = nRow;
}
private void btClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void Marc2_SizeChanged(object sender, EventArgs e)
{
// this.toolStripStatusLabel1.Text = $"{this.Size}";
}
private void rb_Sort_CheckedChanged(object sender, EventArgs e)
{
RadioButton rb = sender as RadioButton;
string text = rb.Text;
if (text == "정렬")
comboBox9.Enabled = false;
else
comboBox9.Enabled = true;
}
private void comboBox8_SelectedIndexChanged_1(object sender, EventArgs e)
{
comboBox9.Items.Clear();
ComboBox cb = sender as ComboBox;
if (cb.SelectedIndex == 0)
{
comboBox9.Enabled = true;
string[] grade = { "전체", "A", "B", "C", "D" };
comboBox9.Items.AddRange(grade);
comboBox9.SelectedIndex = 0;
}
else
comboBox9.Enabled = false;
}
private void marcEditorControl1_Load(object sender, EventArgs e)
{
}
private void button1_Click_1(object sender, EventArgs e)
{
//re load data
input_list();
}
}
}

658
unimarc/unimarc/마크/Marc2.designer.cs generated Normal file
View File

@@ -0,0 +1,658 @@
namespace ExcelTest
{
partial class Marc2
{
/// <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.Label label31;
System.Windows.Forms.Label label30;
System.Windows.Forms.Label label33;
System.Windows.Forms.Label label32;
System.Windows.Forms.Label label29;
System.Windows.Forms.Label label28;
System.Windows.Forms.Label label24;
System.Windows.Forms.Label label25;
System.Windows.Forms.Label label26;
System.Windows.Forms.Label label27;
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.List_Book = new System.Windows.Forms.DataGridView();
this.list_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pay = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.url = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.marc_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.db_marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCheck = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.user = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SaveDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.rb_Sort = new System.Windows.Forms.RadioButton();
this.rb_Filter = new System.Windows.Forms.RadioButton();
this.comboBox8 = new System.Windows.Forms.ComboBox();
this.comboBox9 = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_mk_marcList = new System.Windows.Forms.Button();
this.btn_CopySelect = new System.Windows.Forms.Button();
this.btn_FilterReturn = new System.Windows.Forms.Button();
this.btn_Search = new System.Windows.Forms.Button();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.tbCustName = new System.Windows.Forms.Button();
this.lbCustIDX = new System.Windows.Forms.Label();
this.btCopy = new System.Windows.Forms.Button();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.lbl_BookList = new System.Windows.Forms.ToolStripStatusLabel();
this.btClose = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.marcEditorControl1 = new ExcelTest.MarcEditorControl();
this.panel3 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
label31 = new System.Windows.Forms.Label();
label30 = new System.Windows.Forms.Label();
label33 = new System.Windows.Forms.Label();
label32 = new System.Windows.Forms.Label();
label29 = new System.Windows.Forms.Label();
label28 = new System.Windows.Forms.Label();
label24 = new System.Windows.Forms.Label();
label25 = new System.Windows.Forms.Label();
label26 = new System.Windows.Forms.Label();
label27 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.List_Book)).BeginInit();
this.panel1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// label31
//
label31.Location = new System.Drawing.Point(0, 0);
label31.Name = "label31";
label31.Size = new System.Drawing.Size(100, 23);
label31.TabIndex = 0;
//
// label30
//
label30.Location = new System.Drawing.Point(0, 0);
label30.Name = "label30";
label30.Size = new System.Drawing.Size(100, 23);
label30.TabIndex = 0;
//
// label33
//
label33.Location = new System.Drawing.Point(0, 0);
label33.Name = "label33";
label33.Size = new System.Drawing.Size(100, 23);
label33.TabIndex = 0;
//
// label32
//
label32.Location = new System.Drawing.Point(0, 0);
label32.Name = "label32";
label32.Size = new System.Drawing.Size(100, 23);
label32.TabIndex = 0;
//
// label29
//
label29.Location = new System.Drawing.Point(0, 0);
label29.Name = "label29";
label29.Size = new System.Drawing.Size(100, 23);
label29.TabIndex = 0;
//
// label28
//
label28.Location = new System.Drawing.Point(0, 0);
label28.Name = "label28";
label28.Size = new System.Drawing.Size(100, 23);
label28.TabIndex = 0;
//
// label24
//
label24.Location = new System.Drawing.Point(0, 0);
label24.Name = "label24";
label24.Size = new System.Drawing.Size(100, 23);
label24.TabIndex = 0;
//
// label25
//
label25.Location = new System.Drawing.Point(0, 0);
label25.Name = "label25";
label25.Size = new System.Drawing.Size(100, 23);
label25.TabIndex = 0;
//
// label26
//
label26.Location = new System.Drawing.Point(0, 0);
label26.Name = "label26";
label26.Size = new System.Drawing.Size(100, 23);
label26.TabIndex = 0;
//
// label27
//
label27.Location = new System.Drawing.Point(0, 0);
label27.Name = "label27";
label27.Size = new System.Drawing.Size(100, 23);
label27.TabIndex = 0;
//
// List_Book
//
this.List_Book.AllowDrop = true;
this.List_Book.AllowUserToAddRows = false;
this.List_Book.AllowUserToDeleteRows = false;
this.List_Book.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.List_Book.BackgroundColor = System.Drawing.Color.SkyBlue;
this.List_Book.BorderStyle = System.Windows.Forms.BorderStyle.None;
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.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.List_Book.ColumnHeadersHeight = 29;
this.List_Book.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.list_idx,
this.ISBN13,
this.num,
this.book_name,
this.author,
this.book_comp,
this.count,
this.pay,
this.url,
this.marc_idx,
this.db_marc,
this.grade,
this.colCheck,
this.user,
this.SaveDate});
this.List_Book.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.List_Book.Location = new System.Drawing.Point(5, 73);
this.List_Book.MultiSelect = false;
this.List_Book.Name = "List_Book";
this.List_Book.ReadOnly = true;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ControlDark;
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.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.List_Book.RowHeadersWidth = 51;
this.List_Book.RowTemplate.Height = 23;
this.List_Book.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.List_Book.Size = new System.Drawing.Size(543, 556);
this.List_Book.TabIndex = 217;
this.List_Book.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.List_Book_RowPostPaint);
this.List_Book.SelectionChanged += new System.EventHandler(this.List_Book_SelectionChanged);
this.List_Book.DragDrop += new System.Windows.Forms.DragEventHandler(this.List_Book_DragDrop);
this.List_Book.DragOver += new System.Windows.Forms.DragEventHandler(this.List_Book_DragOver);
this.List_Book.KeyDown += new System.Windows.Forms.KeyEventHandler(this.List_Book_KeyDown);
this.List_Book.MouseDown += new System.Windows.Forms.MouseEventHandler(this.List_Book_MouseDown);
this.List_Book.MouseMove += new System.Windows.Forms.MouseEventHandler(this.List_Book_MouseMove);
//
// list_idx
//
this.list_idx.HeaderText = "list_idx";
this.list_idx.MinimumWidth = 6;
this.list_idx.Name = "list_idx";
this.list_idx.ReadOnly = true;
this.list_idx.Visible = false;
this.list_idx.Width = 30;
//
// ISBN13
//
this.ISBN13.FillWeight = 136.2398F;
this.ISBN13.HeaderText = "ISBN13";
this.ISBN13.MinimumWidth = 6;
this.ISBN13.Name = "ISBN13";
this.ISBN13.ReadOnly = true;
this.ISBN13.Visible = false;
this.ISBN13.Width = 125;
//
// num
//
this.num.HeaderText = "연번";
this.num.MinimumWidth = 6;
this.num.Name = "num";
this.num.ReadOnly = true;
this.num.Width = 50;
//
// book_name
//
this.book_name.FillWeight = 135.5107F;
this.book_name.HeaderText = "도서명";
this.book_name.MinimumWidth = 6;
this.book_name.Name = "book_name";
this.book_name.ReadOnly = true;
this.book_name.Width = 150;
//
// author
//
this.author.FillWeight = 67.49011F;
this.author.HeaderText = "저자";
this.author.MinimumWidth = 6;
this.author.Name = "author";
this.author.ReadOnly = true;
this.author.Width = 80;
//
// book_comp
//
this.book_comp.FillWeight = 76.49199F;
this.book_comp.HeaderText = "출판사";
this.book_comp.MinimumWidth = 6;
this.book_comp.Name = "book_comp";
this.book_comp.ReadOnly = true;
this.book_comp.Width = 80;
//
// count
//
this.count.HeaderText = "C";
this.count.MinimumWidth = 6;
this.count.Name = "count";
this.count.ReadOnly = true;
this.count.Width = 30;
//
// pay
//
this.pay.FillWeight = 84.26746F;
this.pay.HeaderText = "정가";
this.pay.MinimumWidth = 6;
this.pay.Name = "pay";
this.pay.ReadOnly = true;
this.pay.Width = 62;
//
// url
//
this.url.HeaderText = "url";
this.url.MinimumWidth = 6;
this.url.Name = "url";
this.url.ReadOnly = true;
this.url.Visible = false;
this.url.Width = 125;
//
// marc_idx
//
this.marc_idx.HeaderText = "marc_idx";
this.marc_idx.MinimumWidth = 6;
this.marc_idx.Name = "marc_idx";
this.marc_idx.ReadOnly = true;
this.marc_idx.Visible = false;
this.marc_idx.Width = 30;
//
// db_marc
//
this.db_marc.HeaderText = "marc";
this.db_marc.MinimumWidth = 6;
this.db_marc.Name = "db_marc";
this.db_marc.ReadOnly = true;
this.db_marc.Visible = false;
this.db_marc.Width = 125;
//
// grade
//
dataGridViewCellStyle2.Format = "N0";
dataGridViewCellStyle2.NullValue = null;
this.grade.DefaultCellStyle = dataGridViewCellStyle2;
this.grade.HeaderText = "등급";
this.grade.MinimumWidth = 6;
this.grade.Name = "grade";
this.grade.ReadOnly = true;
this.grade.Visible = false;
this.grade.Width = 50;
//
// colCheck
//
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle3;
this.colCheck.HeaderText = "V";
this.colCheck.MinimumWidth = 6;
this.colCheck.Name = "colCheck";
this.colCheck.ReadOnly = true;
this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colCheck.Width = 30;
//
// user
//
this.user.HeaderText = "작업자";
this.user.MinimumWidth = 6;
this.user.Name = "user";
this.user.ReadOnly = true;
this.user.Visible = false;
this.user.Width = 125;
//
// SaveDate
//
this.SaveDate.HeaderText = "저장시각";
this.SaveDate.MinimumWidth = 6;
this.SaveDate.Name = "SaveDate";
this.SaveDate.ReadOnly = true;
this.SaveDate.Visible = false;
this.SaveDate.Width = 125;
//
// rb_Sort
//
this.rb_Sort.Location = new System.Drawing.Point(68, 4);
this.rb_Sort.Name = "rb_Sort";
this.rb_Sort.Size = new System.Drawing.Size(48, 24);
this.rb_Sort.TabIndex = 320;
this.rb_Sort.Text = "정렬";
this.rb_Sort.CheckedChanged += new System.EventHandler(this.rb_Sort_CheckedChanged);
//
// rb_Filter
//
this.rb_Filter.Location = new System.Drawing.Point(122, 4);
this.rb_Filter.Name = "rb_Filter";
this.rb_Filter.Size = new System.Drawing.Size(48, 24);
this.rb_Filter.TabIndex = 322;
this.rb_Filter.Text = "필터";
this.rb_Filter.CheckedChanged += new System.EventHandler(this.rb_Sort_CheckedChanged);
//
// comboBox8
//
this.comboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox8.Location = new System.Drawing.Point(176, 6);
this.comboBox8.Name = "comboBox8";
this.comboBox8.Size = new System.Drawing.Size(107, 20);
this.comboBox8.TabIndex = 323;
this.comboBox8.SelectedIndexChanged += new System.EventHandler(this.comboBox8_SelectedIndexChanged_1);
//
// comboBox9
//
this.comboBox9.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox9.Location = new System.Drawing.Point(286, 6);
this.comboBox9.Name = "comboBox9";
this.comboBox9.Size = new System.Drawing.Size(52, 20);
this.comboBox9.TabIndex = 321;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Silver;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.btn_mk_marcList);
this.panel1.Controls.Add(this.btn_CopySelect);
this.panel1.Controls.Add(this.btn_FilterReturn);
this.panel1.Controls.Add(this.btn_Search);
this.panel1.Controls.Add(this.rb_Sort);
this.panel1.Controls.Add(this.comboBox9);
this.panel1.Controls.Add(this.rb_Filter);
this.panel1.Controls.Add(this.comboBox8);
this.panel1.Location = new System.Drawing.Point(5, 34);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(544, 35);
this.panel1.TabIndex = 226;
//
// btn_mk_marcList
//
this.btn_mk_marcList.Location = new System.Drawing.Point(433, 5);
this.btn_mk_marcList.Name = "btn_mk_marcList";
this.btn_mk_marcList.Size = new System.Drawing.Size(106, 23);
this.btn_mk_marcList.TabIndex = 227;
this.btn_mk_marcList.Text = "마크목록생성";
this.btn_mk_marcList.UseVisualStyleBackColor = true;
this.btn_mk_marcList.Click += new System.EventHandler(this.btn_mk_marcList_Click);
//
// btn_CopySelect
//
this.btn_CopySelect.BackColor = System.Drawing.Color.Khaki;
this.btn_CopySelect.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_CopySelect.Location = new System.Drawing.Point(400, 5);
this.btn_CopySelect.Name = "btn_CopySelect";
this.btn_CopySelect.Size = new System.Drawing.Size(30, 23);
this.btn_CopySelect.TabIndex = 319;
this.btn_CopySelect.Text = "0";
this.btn_CopySelect.UseVisualStyleBackColor = false;
this.btn_CopySelect.Click += new System.EventHandler(this.btn_CopySelect_Click);
//
// btn_FilterReturn
//
this.btn_FilterReturn.Location = new System.Drawing.Point(3, 4);
this.btn_FilterReturn.Name = "btn_FilterReturn";
this.btn_FilterReturn.Size = new System.Drawing.Size(63, 23);
this.btn_FilterReturn.TabIndex = 229;
this.btn_FilterReturn.Text = "원래대로";
this.btn_FilterReturn.UseVisualStyleBackColor = true;
this.btn_FilterReturn.Click += new System.EventHandler(this.btn_FilterReturn_Click);
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(339, 5);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(57, 23);
this.btn_Search.TabIndex = 227;
this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true;
this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
//
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.BackColor = System.Drawing.Color.White;
this.checkBox3.Checked = true;
this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox3.Location = new System.Drawing.Point(507, 78);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(15, 14);
this.checkBox3.TabIndex = 227;
this.checkBox3.UseVisualStyleBackColor = false;
this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
//
// tbCustName
//
this.tbCustName.BackColor = System.Drawing.Color.LightGray;
this.tbCustName.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.tbCustName.Location = new System.Drawing.Point(115, 6);
this.tbCustName.Name = "tbCustName";
this.tbCustName.Size = new System.Drawing.Size(275, 26);
this.tbCustName.TabIndex = 33;
this.tbCustName.Text = " ";
this.tbCustName.UseVisualStyleBackColor = false;
this.tbCustName.Click += new System.EventHandler(this.lbl_BookList_Click);
//
// lbCustIDX
//
this.lbCustIDX.BackColor = System.Drawing.Color.LightGray;
this.lbCustIDX.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbCustIDX.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.lbCustIDX.Location = new System.Drawing.Point(396, 6);
this.lbCustIDX.Name = "lbCustIDX";
this.lbCustIDX.Size = new System.Drawing.Size(60, 26);
this.lbCustIDX.TabIndex = 319;
this.lbCustIDX.Text = " ";
this.lbCustIDX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btCopy
//
this.btCopy.ForeColor = System.Drawing.Color.Red;
this.btCopy.Location = new System.Drawing.Point(1512, 255);
this.btCopy.Name = "btCopy";
this.btCopy.Size = new System.Drawing.Size(77, 23);
this.btCopy.TabIndex = 321;
this.btCopy.Text = "복 사";
this.btCopy.UseVisualStyleBackColor = true;
this.btCopy.Click += new System.EventHandler(this.button1_Click);
//
// statusStrip1
//
this.statusStrip1.BackColor = System.Drawing.SystemColors.Control;
this.statusStrip1.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lbl_BookList});
this.statusStrip1.Location = new System.Drawing.Point(0, 634);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 12, 0);
this.statusStrip1.Size = new System.Drawing.Size(1638, 24);
this.statusStrip1.TabIndex = 322;
this.statusStrip1.Text = "statusStrip1";
//
// lbl_BookList
//
this.lbl_BookList.Name = "lbl_BookList";
this.lbl_BookList.Size = new System.Drawing.Size(119, 19);
this.lbl_BookList.Text = "{booklist}";
//
// btClose
//
this.btClose.Location = new System.Drawing.Point(460, 6);
this.btClose.Name = "btClose";
this.btClose.Size = new System.Drawing.Size(88, 26);
this.btClose.TabIndex = 324;
this.btClose.Text = "닫 기";
this.btClose.UseVisualStyleBackColor = true;
this.btClose.Click += new System.EventHandler(this.btClose_Click);
//
// panel2
//
this.panel2.Controls.Add(this.marcEditorControl1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(555, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1083, 634);
this.panel2.TabIndex = 325;
//
// marcEditorControl1
//
this.marcEditorControl1.BackColor = System.Drawing.Color.Gray;
this.marcEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(0, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(1083, 634);
this.marcEditorControl1.TabIndex = 0;
this.marcEditorControl1.Load += new System.EventHandler(this.marcEditorControl1_Load);
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.Controls.Add(this.button1);
this.panel3.Controls.Add(this.checkBox3);
this.panel3.Controls.Add(this.tbCustName);
this.panel3.Controls.Add(this.panel1);
this.panel3.Controls.Add(this.btClose);
this.panel3.Controls.Add(this.List_Book);
this.panel3.Controls.Add(this.lbCustIDX);
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(555, 634);
this.panel3.TabIndex = 325;
//
// button1
//
this.button1.Location = new System.Drawing.Point(9, 7);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(100, 23);
this.button1.TabIndex = 324;
this.button1.Text = "다시불러오기";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// Marc2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.SkyBlue;
this.ClientSize = new System.Drawing.Size(1638, 658);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel3);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.btCopy);
this.KeyPreview = true;
this.Name = "Marc2";
this.Text = "마크 작성(1)";
this.Load += new System.EventHandler(this.Marc_Load);
this.SizeChanged += new System.EventHandler(this.Marc2_SizeChanged);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Marc_KeyDown);
((System.ComponentModel.ISupportInitialize)(this.List_Book)).EndInit();
this.panel1.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RadioButton rb_Sort;
private System.Windows.Forms.RadioButton rb_Filter;
private System.Windows.Forms.ComboBox comboBox8;
private System.Windows.Forms.ComboBox comboBox9;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btn_Search;
private System.Windows.Forms.Button btn_mk_marcList;
public System.Windows.Forms.DataGridView List_Book;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button btn_FilterReturn;
private System.Windows.Forms.DataGridViewTextBoxColumn list_idx;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN13;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
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 count;
private System.Windows.Forms.DataGridViewTextBoxColumn pay;
private System.Windows.Forms.DataGridViewTextBoxColumn url;
private System.Windows.Forms.DataGridViewTextBoxColumn marc_idx;
private System.Windows.Forms.DataGridViewTextBoxColumn db_marc;
private System.Windows.Forms.DataGridViewTextBoxColumn grade;
private System.Windows.Forms.DataGridViewTextBoxColumn colCheck;
private System.Windows.Forms.DataGridViewTextBoxColumn user;
private System.Windows.Forms.DataGridViewTextBoxColumn SaveDate;
private System.Windows.Forms.Button btn_CopySelect;
public System.Windows.Forms.Button tbCustName;
public System.Windows.Forms.Label lbCustIDX;
private System.Windows.Forms.Button btCopy;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel lbl_BookList;
private System.Windows.Forms.Button btClose;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button button1;
public MarcEditorControl marcEditorControl1;
}
}

View File

@@ -0,0 +1,198 @@
<?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="label31.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label30.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label33.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label32.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label29.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label28.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label24.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label25.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label26.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label27.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="list_idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ISBN13.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pay.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="url.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="marc_idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="db_marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="grade.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="user.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SaveDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -17,6 +17,7 @@ namespace UniMarc.마크
{
Helper_DB db = new Helper_DB();
Marc m;
Marc2 m2;
AddMarc am;
CD_LP cp;
public int MarcFormRowIndex;
@@ -31,6 +32,12 @@ namespace UniMarc.마크
cp = cD;
db.DBcon();
}
public MarcCopySelect(Marc2 _m)
{
InitializeComponent();
m2 = _m;
db.DBcon();
}
public MarcCopySelect(Marc _m)
{

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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

@@ -301,6 +301,7 @@ namespace UniMarc
this.Controls.Add(this.panel2);
this.Name = "Marc_FillBlank";
this.Text = "칸채우기";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.Marc_FillBlank_Load);
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();

View File

@@ -1,4 +1,6 @@
using System;
using ExcelTest;
using Org.BouncyCastle.Pkcs;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -17,6 +19,12 @@ namespace UniMarc
bool isAll;
bool isBreak;
ExcelTest.Marc marc;
Marc2 mae;
public Marc_FillBlank(Marc2 _mae)
{
InitializeComponent();
mae = _mae;
}
public Marc_FillBlank(ExcelTest.Marc _marc)
{
@@ -62,7 +70,7 @@ namespace UniMarc
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
tb_URL.Text = webBrowser1.Url.AbsoluteUri;
if (isAll)
{
if (tb_URL.Text.Contains("searchResultAllList"))
@@ -174,7 +182,7 @@ namespace UniMarc
}
}
if(!isAll)
if (!isAll)
richTextBox1.Text = SplitText(Text);
else
{
@@ -236,16 +244,22 @@ namespace UniMarc
private void btn_Move_Click(object sender, EventArgs e)
{
isAll = false;
marc.richTextBox1.Text = "";
if (!tb_URL.Text.Contains("searchResultMarc")) {
if (!tb_URL.Text.Contains("searchResultMarc"))
{
MessageBox.Show("코리스 마크가 있는곳으로 이동해주세요!");
return;
}
SearchResultMarc();
string Text = richTextBox1.Text;
marc.richTextBox1.Text = MakeMarc(Text);
if (marc != null)
{
marc.richTextBox1.Text = MakeMarc(Text);
}
else if (mae != null)
{
mae.marcEditorControl1.SetMarcString(MakeMarc(Text));
}
}
private void btn_AllMove_Click(object sender, EventArgs e)
@@ -265,7 +279,8 @@ namespace UniMarc
int idx = Convert.ToInt32(dataGridView1.Rows[a].Cells["List_idx"].Value.ToString());
string isbn = dataGridView1.Rows[a].Cells["ISBN13"].Value.ToString();
if (isbn == "") {
if (isbn == "")
{
dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Red;
progressBar1.Value += 1;
continue;
@@ -286,7 +301,11 @@ namespace UniMarc
else
{
dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Blue;
this.marc.List_Book.Rows[idx].Cells["db_marc"].Value = st.made_Ori_marc(MakeMarc(marc));
if (this.marc != null)
this.marc.List_Book.Rows[idx].Cells["db_marc"].Value = st.made_Ori_marc(MakeMarc(marc));
else if (this.mae != null)
this.mae.List_Book.Rows[idx].Cells["db_marc"].Value = st.made_Ori_marc(MakeMarc(marc));
}
progressBar1.Value += 1;
@@ -313,7 +332,7 @@ namespace UniMarc
return result;
}
/// <summary>
/// 지연시키는 함수

View File

@@ -53,7 +53,8 @@
this.btn_Select_List = new System.Windows.Forms.Button();
this.chkBox_AllowDrop = new System.Windows.Forms.CheckBox();
this.panel3 = new System.Windows.Forms.Panel();
this.cb_authorType = new System.Windows.Forms.ComboBox();
this.cb_authorTypeE = new System.Windows.Forms.ComboBox();
this.cb_authorTypeK = new System.Windows.Forms.ComboBox();
this.cb_divType = new System.Windows.Forms.ComboBox();
this.cb_divNum = new System.Windows.Forms.ComboBox();
this.cb_FirstBook = new System.Windows.Forms.ComboBox();
@@ -140,9 +141,10 @@
this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.search_tag2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.chkEditorTest = new System.Windows.Forms.CheckBox();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.panel1.SuspendLayout();
this.panel4.SuspendLayout();
@@ -319,7 +321,8 @@
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.cb_authorType);
this.panel3.Controls.Add(this.cb_authorTypeE);
this.panel3.Controls.Add(this.cb_authorTypeK);
this.panel3.Controls.Add(this.cb_divType);
this.panel3.Controls.Add(this.cb_divNum);
this.panel3.Controls.Add(this.cb_FirstBook);
@@ -328,18 +331,28 @@
this.panel3.Controls.Add(this.label4);
this.panel3.Location = new System.Drawing.Point(10, 3);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(566, 29);
this.panel3.Size = new System.Drawing.Size(566, 49);
this.panel3.TabIndex = 7;
//
// cb_authorType
// cb_authorTypeE
//
this.cb_authorType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorType.Enabled = false;
this.cb_authorType.FormattingEnabled = true;
this.cb_authorType.Location = new System.Drawing.Point(125, 3);
this.cb_authorType.Name = "cb_authorType";
this.cb_authorType.Size = new System.Drawing.Size(171, 20);
this.cb_authorType.TabIndex = 1;
this.cb_authorTypeE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeE.Enabled = false;
this.cb_authorTypeE.FormattingEnabled = true;
this.cb_authorTypeE.Location = new System.Drawing.Point(125, 26);
this.cb_authorTypeE.Name = "cb_authorTypeE";
this.cb_authorTypeE.Size = new System.Drawing.Size(171, 20);
this.cb_authorTypeE.TabIndex = 2;
//
// cb_authorTypeK
//
this.cb_authorTypeK.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeK.Enabled = false;
this.cb_authorTypeK.FormattingEnabled = true;
this.cb_authorTypeK.Location = new System.Drawing.Point(125, 3);
this.cb_authorTypeK.Name = "cb_authorTypeK";
this.cb_authorTypeK.Size = new System.Drawing.Size(171, 20);
this.cb_authorTypeK.TabIndex = 1;
//
// cb_divType
//
@@ -494,6 +507,7 @@
//
// panel5
//
this.panel5.Controls.Add(this.chkEditorTest);
this.panel5.Controls.Add(this.cbTag008_32);
this.panel5.Controls.Add(this.btnTag008);
this.panel5.Controls.Add(this.btnTag040);
@@ -505,7 +519,7 @@
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 35);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(1730, 35);
this.panel5.Size = new System.Drawing.Size(1730, 55);
this.panel5.TabIndex = 9;
//
// cbTag008_32
@@ -1001,9 +1015,9 @@
this.panel7.Controls.Add(this.toolStrip1);
this.panel7.Controls.Add(this.checkBox1);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(0, 70);
this.panel7.Location = new System.Drawing.Point(0, 90);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(1730, 783);
this.panel7.Size = new System.Drawing.Size(1730, 763);
this.panel7.TabIndex = 11;
//
// dataGridView1
@@ -1051,7 +1065,7 @@
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1730, 758);
this.dataGridView1.Size = new System.Drawing.Size(1730, 738);
this.dataGridView1.TabIndex = 1;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
@@ -1233,6 +1247,17 @@
this.colCheck.TrueValue = "T";
this.colCheck.Width = 27;
//
// toolStrip1
//
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1});
this.toolStrip1.Location = new System.Drawing.Point(0, 738);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1730, 25);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
//
// printDocument1
//
this.printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument1_BeginPrint);
@@ -1248,16 +1273,19 @@
this.printPreviewDialog1.Name = "printPreviewDialog1";
this.printPreviewDialog1.Visible = false;
//
// toolStrip1
// chkEditorTest
//
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButton1});
this.toolStrip1.Location = new System.Drawing.Point(0, 758);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1730, 25);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
this.chkEditorTest.BackColor = System.Drawing.SystemColors.Control;
this.chkEditorTest.Checked = true;
this.chkEditorTest.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkEditorTest.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.chkEditorTest.ForeColor = System.Drawing.Color.Blue;
this.chkEditorTest.Location = new System.Drawing.Point(596, 32);
this.chkEditorTest.Name = "chkEditorTest";
this.chkEditorTest.Size = new System.Drawing.Size(106, 27);
this.chkEditorTest.TabIndex = 53;
this.chkEditorTest.Text = "Editor (OLD)";
this.chkEditorTest.UseVisualStyleBackColor = false;
//
// toolStripButton1
//
@@ -1312,7 +1340,7 @@
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_ChangeTag;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ComboBox cb_authorType;
private System.Windows.Forms.ComboBox cb_authorTypeK;
private System.Windows.Forms.ComboBox cb_divType;
private System.Windows.Forms.ComboBox cb_divNum;
private System.Windows.Forms.ComboBox cb_FirstBook;
@@ -1411,5 +1439,7 @@
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ComboBox cb_authorTypeE;
private System.Windows.Forms.CheckBox chkEditorTest;
}
}

View File

@@ -38,7 +38,8 @@ namespace WindowsFormsApp1.Mac
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
cb_FirstAuthor.Items.AddRange(sb.authorBook);
cb_authorType.Items.AddRange(sb.authorType);
cb_authorTypeK.Items.AddRange(sb.authorType);
cb_authorTypeE.Items.AddRange(sb.authorType);
cb_FirstBook.Items.AddRange(sb.authorFirst);
string[] divType = { "KDC", "DDC" };
@@ -169,7 +170,7 @@ namespace WindowsFormsApp1.Mac
public void mk_Panel(string idx, string ListName, string date)
{
string Table = "Specs_List";
string Area = "`first_Author`, `symbol_Author`, `book_Author`, `divType`, `divNum`";
string Area = "`first_Author`, `symbol_Author`,`symbol_AuthorE`, `book_Author`, `divType`, `divNum`";
string[] Search_col = { "idx", "work_list", "date" };
string[] Search_data = { idx, ListName, date };
@@ -179,10 +180,11 @@ namespace WindowsFormsApp1.Mac
string[] ary = res.Split('|');
cb_FirstAuthor.SelectedItem = ary[0];
cb_authorType.SelectedItem = ary[1];
cb_FirstBook.SelectedItem = ary[2];
cb_divType.SelectedItem = ary[3];
cb_divNum.SelectedItem = ary[4];
cb_authorTypeK.SelectedItem = ary[1];
cb_authorTypeE.SelectedItem = ary[2];
cb_FirstBook.SelectedItem = ary[3];
cb_divType.SelectedItem = ary[4];
cb_divNum.SelectedItem = ary[5];
}
#endregion
@@ -220,16 +222,26 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[row].Cells["ISBN"].Value.ToString()
};
string[] symbol_Type = {
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text,
cb_FirstAuthor.Text, cb_authorTypeK.Text, cb_authorTypeE.Text, cb_FirstBook.Text,
cb_divType.Text, cb_divNum.Text
};
Marc_Plan_Sub_MarcEdit me = new Marc_Plan_Sub_MarcEdit(this);
me.row = row;
me.UserName = main.botUserLabel.Text;
me.Init(Marc);
me.SetSymbolType(symbol_Type);
me.Show();
if (chkEditorTest.Checked)
{
Marc_Plan_Sub_MarcEdit me = new Marc_Plan_Sub_MarcEdit(this);
me.row = row;
me.UserName = main.botUserLabel.Text;
me.Init(Marc);
me.SetSymbolType(symbol_Type);
me.Show();
}
else
{
UTIL.MsgE("test version");
var f = new Marc_Plan_Sub_MarcEdit2("","");
f.Show();
}
}
}
@@ -557,7 +569,7 @@ namespace WindowsFormsApp1.Mac
}
if (totalerrmsg.isEmpty() == false)
UTIL.MsgI("경고 발생\n"+totalerrmsg);
UTIL.MsgI("경고 발생\n" + totalerrmsg);
string FileName;
SaveFileDialog saveFileDialog = new SaveFileDialog();
@@ -592,7 +604,7 @@ namespace WindowsFormsApp1.Mac
Set_Macro sm = new Set_Macro(this, dataGridView1);
sm.ViewMarcArray = Make_MarcArray(out string errmessage);
sm.Show();
if(errmessage.isEmpty() == false)
if (errmessage.isEmpty() == false)
UTIL.MsgI("경고 발생\n" + errmessage);
}
private void btnTag040_Click(object sender, EventArgs e)

View File

@@ -68,7 +68,7 @@ namespace UniMarc.마크
this.label6 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.cb_authorType = new System.Windows.Forms.ComboBox();
this.cb_authorTypeK = new System.Windows.Forms.ComboBox();
this.cb_divType = new System.Windows.Forms.ComboBox();
this.cb_divNum = new System.Windows.Forms.ComboBox();
this.cb_FirstBook = new System.Windows.Forms.ComboBox();
@@ -91,6 +91,7 @@ namespace UniMarc.마크
this.etcBox1 = new System.Windows.Forms.RichTextBox();
this.etcBox2 = new System.Windows.Forms.RichTextBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.cb_authorTypeE = new System.Windows.Forms.ComboBox();
this.panel1.SuspendLayout();
this.panel5.SuspendLayout();
this.panel6.SuspendLayout();
@@ -119,7 +120,7 @@ namespace UniMarc.마크
this.panel1.Controls.Add(this.btn_Back);
this.panel1.Location = new System.Drawing.Point(13, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1087, 212);
this.panel1.Size = new System.Drawing.Size(1087, 248);
this.panel1.TabIndex = 0;
//
// label12
@@ -151,7 +152,7 @@ namespace UniMarc.마크
this.lbl_SaveData.AutoSize = true;
this.lbl_SaveData.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_SaveData.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_SaveData.Location = new System.Drawing.Point(188, 156);
this.lbl_SaveData.Location = new System.Drawing.Point(188, 189);
this.lbl_SaveData.Name = "lbl_SaveData";
this.lbl_SaveData.Size = new System.Drawing.Size(64, 19);
this.lbl_SaveData.TabIndex = 319;
@@ -163,7 +164,7 @@ namespace UniMarc.마크
this.lbl_ClassSymbol.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.lbl_ClassSymbol.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_ClassSymbol.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_ClassSymbol.Location = new System.Drawing.Point(354, 191);
this.lbl_ClassSymbol.Location = new System.Drawing.Point(354, 224);
this.lbl_ClassSymbol.Name = "lbl_ClassSymbol";
this.lbl_ClassSymbol.Size = new System.Drawing.Size(12, 13);
this.lbl_ClassSymbol.TabIndex = 5;
@@ -175,7 +176,7 @@ namespace UniMarc.마크
this.lbl_AuthorSymbol.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.lbl_AuthorSymbol.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_AuthorSymbol.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_AuthorSymbol.Location = new System.Drawing.Point(188, 191);
this.lbl_AuthorSymbol.Location = new System.Drawing.Point(188, 224);
this.lbl_AuthorSymbol.Name = "lbl_AuthorSymbol";
this.lbl_AuthorSymbol.Size = new System.Drawing.Size(12, 13);
this.lbl_AuthorSymbol.TabIndex = 5;
@@ -218,7 +219,7 @@ namespace UniMarc.마크
this.panel5.Controls.Add(this.label100);
this.panel5.Controls.Add(this.label101);
this.panel5.Controls.Add(this.comboBox1);
this.panel5.Location = new System.Drawing.Point(179, 34);
this.panel5.Location = new System.Drawing.Point(179, 67);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(660, 84);
this.panel5.TabIndex = 3;
@@ -464,7 +465,7 @@ namespace UniMarc.마크
this.panel6.Controls.Add(this.tb_Mcode);
this.panel6.Controls.Add(this.label6);
this.panel6.Controls.Add(this.label8);
this.panel6.Location = new System.Drawing.Point(179, 120);
this.panel6.Location = new System.Drawing.Point(179, 153);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(660, 30);
this.panel6.TabIndex = 3;
@@ -516,7 +517,8 @@ namespace UniMarc.마크
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.cb_authorType);
this.panel3.Controls.Add(this.cb_authorTypeE);
this.panel3.Controls.Add(this.cb_authorTypeK);
this.panel3.Controls.Add(this.cb_divType);
this.panel3.Controls.Add(this.cb_divNum);
this.panel3.Controls.Add(this.cb_FirstBook);
@@ -525,17 +527,17 @@ namespace UniMarc.마크
this.panel3.Controls.Add(this.label1);
this.panel3.Location = new System.Drawing.Point(179, 2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(660, 30);
this.panel3.Size = new System.Drawing.Size(660, 59);
this.panel3.TabIndex = 3;
//
// cb_authorType
// cb_authorTypeK
//
this.cb_authorType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorType.FormattingEnabled = true;
this.cb_authorType.Location = new System.Drawing.Point(125, 4);
this.cb_authorType.Name = "cb_authorType";
this.cb_authorType.Size = new System.Drawing.Size(171, 20);
this.cb_authorType.TabIndex = 1;
this.cb_authorTypeK.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeK.FormattingEnabled = true;
this.cb_authorTypeK.Location = new System.Drawing.Point(125, 4);
this.cb_authorTypeK.Name = "cb_authorTypeK";
this.cb_authorTypeK.Size = new System.Drawing.Size(171, 20);
this.cb_authorTypeK.TabIndex = 1;
//
// cb_divType
//
@@ -597,7 +599,7 @@ namespace UniMarc.마크
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Location = new System.Drawing.Point(2, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(175, 206);
this.pictureBox1.Size = new System.Drawing.Size(175, 235);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
@@ -641,7 +643,7 @@ namespace UniMarc.마크
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Location = new System.Drawing.Point(13, 266);
this.panel2.Location = new System.Drawing.Point(13, 302);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(840, 458);
this.panel2.TabIndex = 2;
@@ -657,7 +659,7 @@ namespace UniMarc.마크
this.panel4.Controls.Add(this.label9);
this.panel4.Controls.Add(this.label11);
this.panel4.Controls.Add(this.label4);
this.panel4.Location = new System.Drawing.Point(13, 230);
this.panel4.Location = new System.Drawing.Point(13, 266);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1087, 30);
this.panel4.TabIndex = 246;
@@ -754,7 +756,7 @@ namespace UniMarc.마크
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.etcBox2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.etcBox1, 0, 0);
this.tableLayoutPanel1.Location = new System.Drawing.Point(859, 266);
this.tableLayoutPanel1.Location = new System.Drawing.Point(859, 303);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
@@ -762,11 +764,20 @@ namespace UniMarc.마크
this.tableLayoutPanel1.Size = new System.Drawing.Size(241, 458);
this.tableLayoutPanel1.TabIndex = 0;
//
// cb_authorTypeE
//
this.cb_authorTypeE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeE.FormattingEnabled = true;
this.cb_authorTypeE.Location = new System.Drawing.Point(125, 30);
this.cb_authorTypeE.Name = "cb_authorTypeE";
this.cb_authorTypeE.Size = new System.Drawing.Size(171, 20);
this.cb_authorTypeE.TabIndex = 2;
//
// Marc_Plan_Sub_MarcEdit
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1111, 736);
this.ClientSize = new System.Drawing.Size(1111, 768);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel2);
@@ -798,7 +809,7 @@ namespace UniMarc.마크
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ComboBox cb_authorType;
private System.Windows.Forms.ComboBox cb_authorTypeK;
private System.Windows.Forms.ComboBox cb_divType;
private System.Windows.Forms.ComboBox cb_divNum;
private System.Windows.Forms.ComboBox cb_FirstBook;
@@ -855,5 +866,6 @@ namespace UniMarc.마크
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.ComboBox cb_grade;
private System.Windows.Forms.ComboBox cb_authorTypeE;
}
}

View File

@@ -129,12 +129,14 @@ namespace UniMarc.마크
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
cb_FirstAuthor.Items.AddRange(sb.authorBook);
cb_authorType.Items.AddRange(sb.authorType);
cb_authorTypeK.Items.AddRange(sb.authorType);
cb_authorTypeE.Items.AddRange(sb.authorType);
cb_FirstBook.Items.AddRange(sb.authorFirst);
cb_FirstAuthor.SelectedItem = Symbol_Type[0];
cb_authorType.SelectedItem = Symbol_Type[1];
cb_FirstBook.SelectedItem = Symbol_Type[2];
cb_authorTypeK.SelectedItem = Symbol_Type[1];
cb_authorTypeE.SelectedItem = Symbol_Type[2];
cb_FirstBook.SelectedItem = Symbol_Type[3];
#endregion
#region
@@ -426,9 +428,9 @@ namespace UniMarc.마크
mp.dataGridView1.Rows[row].Cells["idx"].Value.ToString(),
mp.dataGridView1.Rows[row].Cells["ISBN"].Value.ToString()
};
string[] Symbol_Type = {
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
};
//string[] Symbol_Type = {
// cb_FirstAuthor.Text, cb_authorTypeK.Text, cb_authorTypeE.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
//};
Init(marc);
}
@@ -441,9 +443,9 @@ namespace UniMarc.마크
"",
si.dataGridView1.Rows[row].Cells["ISBN"].Value.ToString()
};
string[] Symbol_Type = {
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
};
//string[] Symbol_Type = {
// cb_FirstAuthor.Text, cb_authorTypeK.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
//};
Init(marc);
}
@@ -671,7 +673,7 @@ namespace UniMarc.마크
mp.dataGridView1.Rows[row].Cells["ISBN"].Value.ToString()
};
string[] Symbol_Type = {
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
cb_FirstAuthor.Text, cb_authorTypeK.Text, cb_authorTypeE.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
};
Init(marc);
@@ -745,7 +747,8 @@ namespace UniMarc.마크
if (cb_FirstBook.SelectedIndex == 0)
isType[1] = true;
string authorType = cb_authorType.SelectedItem.ToString();
string authorTypeK = cb_authorTypeK.SelectedItem.ToString();
string authorTypeE = cb_authorTypeE.SelectedItem.ToString();
string ClassSymbol = string.Empty;
string Author = string.Empty;
@@ -811,7 +814,7 @@ namespace UniMarc.마크
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
string AuthorSymbol = sb.SymbolAuthor(Author, BookName, authorType, isType);
string AuthorSymbol = sb.SymbolAuthor(Author, BookName, authorTypeK, authorTypeE, isType);
lbl_AuthorSymbol.Text = AuthorSymbol;
lbl_ClassSymbol.Text = ClassSymbol;

View File

@@ -0,0 +1,61 @@
namespace UniMarc.
{
partial class Marc_Plan_Sub_MarcEdit2
{
/// <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.marcEditorControl1 = new ExcelTest.MarcEditorControl();
this.SuspendLayout();
//
// marcEditorControl1
//
this.marcEditorControl1.BackColor = System.Drawing.Color.Gray;
this.marcEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(0, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(1337, 768);
this.marcEditorControl1.TabIndex = 1;
//
// Marc_Plan_Sub_MarcEdit2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1337, 768);
this.Controls.Add(this.marcEditorControl1);
this.Name = "Marc_Plan_Sub_MarcEdit2";
this.Text = "마크편집";
this.ResumeLayout(false);
}
#endregion
public ExcelTest.MarcEditorControl marcEditorControl1;
}
}

View File

@@ -0,0 +1,34 @@
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;
using ExcelTest;
using System.Drawing.Drawing2D;
namespace UniMarc.
{
public partial class Marc_Plan_Sub_MarcEdit2 : Form
{
string idx;
public int row;
public string UserName = "";
Marc_Plan mp;
Helper_DB db = new Helper_DB();
String_Text st = new String_Text();
Search_Infor si;
Help008Tag tag008 = new Help008Tag();
public Marc_Plan_Sub_MarcEdit2(string isbn,string marcstring)
{
InitializeComponent();
db.DBcon();
}
}
}

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

@@ -15,6 +15,19 @@ namespace UniMarc.마크
{
Marc marc;
AddMarc am;
Marc2 mae;
MarcEditorControl mae2;
public Marc_memo(MarcEditorControl _mae)
{
InitializeComponent();
mae2 = _mae;
}
public Marc_memo(Marc2 _mae)
{
InitializeComponent();
mae = _mae;
}
public Marc_memo(Marc _marc)
{
InitializeComponent();

View File

@@ -38,7 +38,8 @@ namespace UniMarc.마크
this.btn_mkList = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.cb_authorType = new System.Windows.Forms.ComboBox();
this.chk_CompSymbol = new System.Windows.Forms.CheckBox();
this.cb_authorTypeK = new System.Windows.Forms.ComboBox();
this.cb_divType = new System.Windows.Forms.ComboBox();
this.cb_divNum = new System.Windows.Forms.ComboBox();
this.cb_FirstBook = new System.Windows.Forms.ComboBox();
@@ -53,7 +54,11 @@ namespace UniMarc.마크
this.rtb_etc = new System.Windows.Forms.RichTextBox();
this.tb_outnum = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.chk_CompSymbol = new System.Windows.Forms.CheckBox();
this.chkPijunja = new System.Windows.Forms.CheckBox();
this.cb_authorTypeE = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.cmb_author_four = new System.Windows.Forms.ComboBox();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
@@ -145,8 +150,13 @@ namespace UniMarc.마크
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.cmb_author_four);
this.panel3.Controls.Add(this.label6);
this.panel3.Controls.Add(this.label5);
this.panel3.Controls.Add(this.cb_authorTypeE);
this.panel3.Controls.Add(this.chkPijunja);
this.panel3.Controls.Add(this.chk_CompSymbol);
this.panel3.Controls.Add(this.cb_authorType);
this.panel3.Controls.Add(this.cb_authorTypeK);
this.panel3.Controls.Add(this.cb_divType);
this.panel3.Controls.Add(this.cb_divNum);
this.panel3.Controls.Add(this.cb_FirstBook);
@@ -154,23 +164,35 @@ namespace UniMarc.마크
this.panel3.Controls.Add(this.label1);
this.panel3.Location = new System.Drawing.Point(12, 42);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(569, 60);
this.panel3.Size = new System.Drawing.Size(569, 91);
this.panel3.TabIndex = 2;
//
// cb_authorType
// chk_CompSymbol
//
this.cb_authorType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorType.FormattingEnabled = true;
this.cb_authorType.Location = new System.Drawing.Point(136, 4);
this.cb_authorType.Name = "cb_authorType";
this.cb_authorType.Size = new System.Drawing.Size(171, 20);
this.cb_authorType.TabIndex = 1;
this.chk_CompSymbol.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chk_CompSymbol.AutoSize = true;
this.chk_CompSymbol.Location = new System.Drawing.Point(11, 65);
this.chk_CompSymbol.Name = "chk_CompSymbol";
this.chk_CompSymbol.Size = new System.Drawing.Size(242, 16);
this.chk_CompSymbol.TabIndex = 2;
this.chk_CompSymbol.Text = "4인 이상 저자시 출판사로 저자기호 생성";
this.chk_CompSymbol.UseVisualStyleBackColor = true;
this.chk_CompSymbol.CheckedChanged += new System.EventHandler(this.chk_CompSymbol_CheckedChanged);
//
// cb_authorTypeK
//
this.cb_authorTypeK.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeK.FormattingEnabled = true;
this.cb_authorTypeK.Location = new System.Drawing.Point(136, 4);
this.cb_authorTypeK.Name = "cb_authorTypeK";
this.cb_authorTypeK.Size = new System.Drawing.Size(171, 20);
this.cb_authorTypeK.TabIndex = 1;
//
// cb_divType
//
this.cb_divType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_divType.FormattingEnabled = true;
this.cb_divType.Location = new System.Drawing.Point(409, 4);
this.cb_divType.Location = new System.Drawing.Point(464, 4);
this.cb_divType.Name = "cb_divType";
this.cb_divType.Size = new System.Drawing.Size(88, 20);
this.cb_divType.TabIndex = 1;
@@ -180,16 +202,16 @@ namespace UniMarc.마크
//
this.cb_divNum.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_divNum.FormattingEnabled = true;
this.cb_divNum.Location = new System.Drawing.Point(503, 4);
this.cb_divNum.Location = new System.Drawing.Point(464, 30);
this.cb_divNum.Name = "cb_divNum";
this.cb_divNum.Size = new System.Drawing.Size(61, 20);
this.cb_divNum.Size = new System.Drawing.Size(88, 20);
this.cb_divNum.TabIndex = 1;
//
// cb_FirstBook
//
this.cb_FirstBook.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_FirstBook.FormattingEnabled = true;
this.cb_FirstBook.Location = new System.Drawing.Point(313, 4);
this.cb_FirstBook.Location = new System.Drawing.Point(336, 4);
this.cb_FirstBook.Name = "cb_FirstBook";
this.cb_FirstBook.Size = new System.Drawing.Size(61, 20);
this.cb_FirstBook.TabIndex = 1;
@@ -217,7 +239,7 @@ namespace UniMarc.마크
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.tb_listName);
this.panel4.Controls.Add(this.label3);
this.panel4.Location = new System.Drawing.Point(12, 108);
this.panel4.Location = new System.Drawing.Point(12, 139);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(569, 30);
this.panel4.TabIndex = 2;
@@ -242,7 +264,7 @@ namespace UniMarc.마크
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label2.Location = new System.Drawing.Point(124, 148);
this.label2.Location = new System.Drawing.Point(134, 189);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(345, 13);
this.label2.TabIndex = 1;
@@ -250,9 +272,10 @@ namespace UniMarc.마크
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(12, 323);
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.progressBar1.Location = new System.Drawing.Point(10, 411);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(569, 23);
this.progressBar1.Size = new System.Drawing.Size(570, 23);
this.progressBar1.Step = 1;
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
this.progressBar1.TabIndex = 3;
@@ -260,9 +283,10 @@ namespace UniMarc.마크
// groupBox1
//
this.groupBox1.Controls.Add(this.rtb_etc);
this.groupBox1.Location = new System.Drawing.Point(15, 164);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.groupBox1.Location = new System.Drawing.Point(10, 224);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(566, 153);
this.groupBox1.Size = new System.Drawing.Size(570, 187);
this.groupBox1.TabIndex = 4;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "비 고 란";
@@ -273,7 +297,7 @@ namespace UniMarc.마크
this.rtb_etc.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtb_etc.Location = new System.Drawing.Point(3, 17);
this.rtb_etc.Name = "rtb_etc";
this.rtb_etc.Size = new System.Drawing.Size(560, 133);
this.rtb_etc.Size = new System.Drawing.Size(564, 167);
this.rtb_etc.TabIndex = 0;
this.rtb_etc.Text = "";
//
@@ -295,21 +319,59 @@ namespace UniMarc.마크
this.label4.TabIndex = 3;
this.label4.Text = "차";
//
// chk_CompSymbol
// chkPijunja
//
this.chk_CompSymbol.AutoSize = true;
this.chk_CompSymbol.Location = new System.Drawing.Point(11, 34);
this.chk_CompSymbol.Name = "chk_CompSymbol";
this.chk_CompSymbol.Size = new System.Drawing.Size(242, 16);
this.chk_CompSymbol.TabIndex = 2;
this.chk_CompSymbol.Text = "4인 이상 저자시 출판사로 저자기호 생성";
this.chk_CompSymbol.UseVisualStyleBackColor = true;
this.chkPijunja.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chkPijunja.AutoSize = true;
this.chkPijunja.Enabled = false;
this.chkPijunja.Location = new System.Drawing.Point(468, 65);
this.chkPijunja.Name = "chkPijunja";
this.chkPijunja.Size = new System.Drawing.Size(84, 16);
this.chkPijunja.TabIndex = 3;
this.chkPijunja.Text = "피전자적용";
this.chkPijunja.UseVisualStyleBackColor = true;
//
// cb_authorTypeE
//
this.cb_authorTypeE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeE.FormattingEnabled = true;
this.cb_authorTypeE.Location = new System.Drawing.Point(136, 30);
this.cb_authorTypeE.Name = "cb_authorTypeE";
this.cb_authorTypeE.Size = new System.Drawing.Size(171, 20);
this.cb_authorTypeE.TabIndex = 4;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(313, 8);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(17, 12);
this.label5.TabIndex = 6;
this.label5.Text = "한";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(313, 33);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(17, 12);
this.label6.TabIndex = 7;
this.label6.Text = "영";
//
// cmb_author_four
//
this.cmb_author_four.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmb_author_four.FormattingEnabled = true;
this.cmb_author_four.Location = new System.Drawing.Point(259, 63);
this.cmb_author_four.Name = "cmb_author_four";
this.cmb_author_four.Size = new System.Drawing.Size(138, 20);
this.cmb_author_four.TabIndex = 8;
//
// Marc_mkList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(592, 357);
this.ClientSize = new System.Drawing.Size(590, 444);
this.Controls.Add(this.label4);
this.Controls.Add(this.tb_outnum);
this.Controls.Add(this.groupBox1);
@@ -322,6 +384,7 @@ namespace UniMarc.마크
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Marc_mkList";
this.Padding = new System.Windows.Forms.Padding(10);
this.Text = "마크목록생성";
this.Load += new System.EventHandler(this.Marc_mkList_Load);
this.panel1.ResumeLayout(false);
@@ -349,7 +412,7 @@ namespace UniMarc.마크
private System.Windows.Forms.Button btn_mkList;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ComboBox cb_authorType;
private System.Windows.Forms.ComboBox cb_authorTypeK;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cb_FirstBook;
private System.Windows.Forms.ComboBox cb_FirstAuthor;
@@ -365,5 +428,10 @@ namespace UniMarc.마크
private System.Windows.Forms.TextBox tb_outnum;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.CheckBox chk_CompSymbol;
private System.Windows.Forms.CheckBox chkPijunja;
private System.Windows.Forms.ComboBox cb_authorTypeE;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ComboBox cmb_author_four;
}
}

View File

@@ -1,4 +1,5 @@
using ExcelTest;
using AR;
using ExcelTest;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -20,7 +21,13 @@ namespace UniMarc.마크
Marc marc;
CD_LP cp;
Helper_DB db = new Helper_DB();
Marc2 mae;
string compidx = Settings.Default.compidx;
public Marc_mkList(Marc2 _mae)
{
InitializeComponent();
mae = _mae;
}
public Marc_mkList(Marc _marc)
{
@@ -41,7 +48,7 @@ namespace UniMarc.마크
#region panel1 set
rb_basicNum.Checked = true;
rb_autoNum.Enabled = false;
string[] type = { "정리" };
cb_listType.Items.AddRange(type);
@@ -58,8 +65,11 @@ namespace UniMarc.마크
cb_FirstAuthor.SelectedIndex = 0;
string[] authorType = symbol.authorType;
cb_authorType.Items.AddRange(authorType);
cb_authorType.SelectedIndex = 0;
cb_authorTypeK.Items.AddRange(authorType);
cb_authorTypeK.SelectedIndex = 0;
cb_authorTypeE.Items.AddRange(authorType);
cb_authorTypeE.SelectedIndex = 0;
string[] Book = symbol.authorBook;
cb_FirstBook.Items.AddRange(Book);
@@ -69,17 +79,112 @@ namespace UniMarc.마크
string[] divType = { "KDC", "DDC" };
cb_divType.Items.AddRange(divType);
cb_divType.SelectedIndex = 0;
//4인이상저장
string[] author_four = { "출판사+서명", "서명+출판사" };
cmb_author_four.Items.AddRange(author_four);
cb_divType.SelectedIndex = 0;
#endregion
if (marc != null)
{
//customer idx 값이 있다면 그것을 사용한다.
if (int.TryParse(marc.lbCustIDX.Text, out int custidx) == true && custidx > 0)
{
string mCompidx = UniMarc.Properties.Settings.Default.compidx;
var dt = DB2.GetDT("Client", "c_sangho,c_author_first,c_author_typeK,c_author_typeE,c_author_firstbook,c_author_divtype,c_author_divnum,c_author_four,c_pijunja,c_author_four_use", $"campanyidx = {mCompidx} AND idx = {custidx}");
if (dt != null && dt.Rows.Count > 0)
{
var row = dt.Rows[0];
// 저자기호 첫글자 설정 (c_author_first)
if (!string.IsNullOrEmpty(row["c_author_first"].ToString()))
{
int idx = cb_FirstAuthor.FindStringExact(row["c_author_first"].ToString());
if (idx >= 0) cb_FirstAuthor.SelectedIndex = idx;
}
// 저자기호 타입 설정 (c_author_typeK 또는 c_author_typeE)
if (!string.IsNullOrEmpty(row["c_author_typeK"].ToString()))
{
int idx = cb_authorTypeK.FindStringExact(row["c_author_typeK"].ToString());
if (idx >= 0) cb_authorTypeK.SelectedIndex = idx;
}
// 저자기호 타입 설정 (c_author_typeE 또는 c_author_typeE)
if (!string.IsNullOrEmpty(row["c_author_typeE"].ToString()))
{
int idx = cb_authorTypeE.FindStringExact(row["c_author_typeE"].ToString());
if (idx >= 0) cb_authorTypeE.SelectedIndex = idx;
}
// 도서기호 첫글자 설정 (c_author_firstbook)
if (!string.IsNullOrEmpty(row["c_author_firstbook"].ToString()))
{
int idx = cb_FirstBook.FindStringExact(row["c_author_firstbook"].ToString());
if (idx >= 0) cb_FirstBook.SelectedIndex = idx;
}
// 분류기호 타입 설정 (c_author_divtype)
if (!string.IsNullOrEmpty(row["c_author_divtype"].ToString()))
{
int idx = cb_divType.FindStringExact(row["c_author_divtype"].ToString());
if (idx >= 0) cb_divType.SelectedIndex = idx;
}
// 분류기호 자릿수 설정 (c_author_divnum)
if (!string.IsNullOrEmpty(row["c_author_divnum"].ToString()))
{
int idx = cb_divNum.FindStringExact(row["c_author_divnum"].ToString());
if (idx >= 0) cb_divNum.SelectedIndex = idx;
}
// 4인이상 저장(c_author_four)
if (!string.IsNullOrEmpty(row["c_author_four"].ToString()))
{
int idx = cmb_author_four.FindStringExact(row["c_author_four"].ToString());
if (idx >= 0) cmb_author_four.SelectedIndex = idx;
}
// 피전자적용
if (!string.IsNullOrEmpty(row["c_pijunja"].ToString()))
{
string chkvalue = row["c_pijunja"].ToString().Trim();
chkPijunja.Checked = (chkvalue == "1" || chkvalue.ToUpper() == "Y" || chkvalue.ToUpper() == "TRUE");
}
else
{
chkPijunja.Checked = false;
}
// 4인이상저자(사용여부)
if (!string.IsNullOrEmpty(row["c_author_four_use"].ToString()))
{
string chkvalue = row["c_author_four_use"].ToString().Trim();
chk_CompSymbol.Checked = (chkvalue == "1" || chkvalue.ToUpper() == "Y" || chkvalue.ToUpper() == "TRUE");
}
else
{
chk_CompSymbol.Checked = false;
}
}
}
}
}
private void cb_divType_SelectedIndexChanged(object sender, EventArgs e)
{
cb_divNum.Items.Clear();
if (((ComboBox)sender).SelectedIndex == 0) {
if (((ComboBox)sender).SelectedIndex == 0)
{
string[] divNum = { "4", "5", "6" };
cb_divNum.Items.AddRange(divNum);
}
else {
else
{
string[] divNum = { "21", "22", "23" };
cb_divNum.Items.AddRange(divNum);
}
@@ -89,12 +194,19 @@ namespace UniMarc.마크
private void btn_mkList_Click(object sender, EventArgs e)
{
String_Text st = new String_Text();
if (tb_listName.Text == "") {
MessageBox.Show("목록명을 입력해주세요!");
if (tb_listName.Text == "")
{
UTIL.MsgE("목록명을 입력해주세요!");
return;
}
if (tb_outnum.Text == "") {
MessageBox.Show("차수가 비어있습니다.");
if (tb_outnum.Text == "")
{
UTIL.MsgE("차수가 비어있습니다.");
return;
}
if((this.marc.List_Book?.RowCount ?? 0) <1 )
{
UTIL.MsgE("마크데이터 목록이 존재하지 않습니다");
return;
}
@@ -110,16 +222,16 @@ namespace UniMarc.마크
if (cb_FirstBook.SelectedIndex == 0)
isBook = true;
bool[] isType = { isAuthor, isBook };
// 시방서 목록 DB에 들어갈 것들.
string[] insert_list_col = {
string[] insert_list_col = {
"compidx", "work_list", "date", "state", "gu",
"first_Author", "symbol_Author", "book_Author", "divType", "divNum",
"first_Author", "symbol_Author","symbol_AuthorE", "book_Author", "divType", "divNum",
"etc", "user"
};
string[] insert_list_data = {
compidx, listName, Time, "진행", cb_listType.Text,
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text,
cb_FirstAuthor.Text, cb_authorTypeK.Text, cb_authorTypeE.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text,
rtb_etc.Text, user
};
string cmdByList = db.DB_INSERT("Specs_List", insert_list_col, insert_list_data);
@@ -172,7 +284,7 @@ namespace UniMarc.마크
insert_marc_data[18] = outnum;
insert_marc_data[19] = marc.List_Book.Rows[row[a]].Cells["marc_idx"].Value.ToString();
insert_marc_data[20] = marc.List_Book.Rows[row[a]].Cells["SaveDate"].Value.ToString();
insert_marc_data[21] = marc.List_Book.Rows[row[a]].Cells["user"].Value.ToString();
insert_marc_data[21] = marc.List_Book.Rows[row[a]].Cells["user"].Value.ToString();
string[] Marc = st.Take_Tag(insert_marc_data[14], Search);
string[] Author = { "", Marc[1] }; // 저자, 도서명
@@ -185,11 +297,11 @@ namespace UniMarc.마크
if (Author_res[1].Length > 1) Author[0] = Author_res[1];
if (Author_res[2].Length > 1) Author[0] = Author_res[2];
if(chk_CompSymbol.Checked)
if (chk_CompSymbol.Checked)
if (Author_res[3].IndexOf("[외]") > -1)
Author[0] = Marc[5];
string tmp_ViewMarc = st.ConvertMarcType(insert_marc_data[14],out string errmessage);
string tmp_ViewMarc = st.ConvertMarcType(insert_marc_data[14], out string errmessage);
// 마크에서 추출한 데이터 DB에 적용하기 위한 반복문
for (int b = 0; b < Marc.Length; b++)
@@ -197,7 +309,8 @@ namespace UniMarc.마크
insert_marc_data[b + 3] = Marc[b];
// 분류기호 설정값적용대로 가져오기.
if (b == 9) {
if (b == 9)
{
string class_symbol = st.TakeTag_ConditionContent(tmp_ViewMarc, "056a", "056" + cb_divNum.Text);
if (class_symbol != "")
insert_marc_data[b + 3] = class_symbol;
@@ -212,7 +325,8 @@ namespace UniMarc.마크
tmp_ViewMarc = st.AddTagInMarc(string.Format("056\t \t▼a{0}▼2{1}▲", insert_marc_data[12], cb_divNum.Text), tmp_ViewMarc);
insert_marc_data[14] = st.made_Ori_marc(tmp_ViewMarc);
if (Author[0].Length < 1) {
if (Author[0].Length < 1)
{
MessageBox.Show(row[a] + "번째의 저자를 확인해주세요. \n (100a, 110a, 111a 중 1개 필수)");
return;
}
@@ -222,19 +336,27 @@ namespace UniMarc.마크
Author[1] = Regex.Replace(Author[1], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline);
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
string authorType = cb_authorType.SelectedItem.ToString();
string res_Author = sb.SymbolAuthor(Author[0], Author[1], authorType, isType);
string authorTypeK = cb_authorTypeK.SelectedItem.ToString();
string authorTypeE = cb_authorTypeE.SelectedItem.ToString();
string res_Author = "";
if (chk_CompSymbol.Checked == false || cmb_author_four.Text == "출판사+서명")
res_Author = sb.SymbolAuthor(Author[0], Author[1], authorTypeK, authorTypeE, isType);
else //서명+출판사는 뒤집어서 입력한다 251110
res_Author = sb.SymbolAuthor(Author[1], Author[0], authorTypeK, authorTypeE, isType);
insert_marc_data[13] = res_Author;
cmdByMarc += db.DB_INSERT_SUB("value", insert_marc_data) + ",";
if (CountSplit && listCount > addCount) {
if (CountSplit && listCount > addCount)
{
a--;
addCount++;
continue;
}
else {
else
{
addCount = 1;
progressBar1.PerformStep();
}
@@ -247,7 +369,8 @@ namespace UniMarc.마크
db.DB_Send_CMD_reVoid(cmdByMarc);
progressBar1.PerformStep();
if (progressBar1.Value == progressBar1.Maximum) {
if (progressBar1.Value == progressBar1.Maximum)
{
label2.Text = "완료되었습니다!";
}
}
@@ -275,5 +398,9 @@ namespace UniMarc.마크
this.Close();
}
private void chk_CompSymbol_CheckedChanged(object sender, EventArgs e)
{
cmb_author_four.Enabled = chk_CompSymbol.Checked;
}
}
}

View File

@@ -30,7 +30,7 @@
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.label1 = new System.Windows.Forms.Label();
this.cb_symbol = new System.Windows.Forms.ComboBox();
this.cb_symbolK = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.tb_result = new System.Windows.Forms.TextBox();
@@ -61,6 +61,9 @@
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.AuthorSymbol = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_GridTrans = new System.Windows.Forms.Button();
this.cb_symbolE = new System.Windows.Forms.ComboBox();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel8.SuspendLayout();
this.panel7.SuspendLayout();
@@ -81,15 +84,15 @@
this.label1.TabIndex = 5;
this.label1.Text = "저자기호표";
//
// cb_symbol
// cb_symbolK
//
this.cb_symbol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_symbol.FormattingEnabled = true;
this.cb_symbol.Location = new System.Drawing.Point(191, 8);
this.cb_symbol.Name = "cb_symbol";
this.cb_symbol.Size = new System.Drawing.Size(366, 20);
this.cb_symbol.TabIndex = 0;
this.cb_symbol.SelectedIndexChanged += new System.EventHandler(this.cb_symbol_SelectedIndexChanged);
this.cb_symbolK.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_symbolK.FormattingEnabled = true;
this.cb_symbolK.Location = new System.Drawing.Point(191, 8);
this.cb_symbolK.Name = "cb_symbolK";
this.cb_symbolK.Size = new System.Drawing.Size(366, 20);
this.cb_symbolK.TabIndex = 0;
this.cb_symbolK.SelectedIndexChanged += new System.EventHandler(this.cb_symbol_SelectedIndexChanged);
//
// panel1
//
@@ -112,7 +115,7 @@
this.panel8.Controls.Add(this.tb_result);
this.panel8.Controls.Add(this.label7);
this.panel8.Dock = System.Windows.Forms.DockStyle.Top;
this.panel8.Location = new System.Drawing.Point(0, 222);
this.panel8.Location = new System.Drawing.Point(0, 250);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(576, 37);
this.panel8.TabIndex = 6;
@@ -140,7 +143,7 @@
this.panel7.Controls.Add(this.label6);
this.panel7.Controls.Add(this.rb_moum2);
this.panel7.Dock = System.Windows.Forms.DockStyle.Top;
this.panel7.Location = new System.Drawing.Point(0, 185);
this.panel7.Location = new System.Drawing.Point(0, 213);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(576, 37);
this.panel7.TabIndex = 5;
@@ -185,7 +188,7 @@
this.panel6.Controls.Add(this.label5);
this.panel6.Controls.Add(this.rb_book2);
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Location = new System.Drawing.Point(0, 148);
this.panel6.Location = new System.Drawing.Point(0, 176);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(576, 37);
this.panel6.TabIndex = 4;
@@ -230,7 +233,7 @@
this.panel5.Controls.Add(this.label4);
this.panel5.Controls.Add(this.rb_author2);
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 111);
this.panel5.Location = new System.Drawing.Point(0, 139);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(576, 37);
this.panel5.TabIndex = 3;
@@ -274,7 +277,7 @@
this.panel3.Controls.Add(this.tb_book);
this.panel3.Controls.Add(this.label3);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 74);
this.panel3.Location = new System.Drawing.Point(0, 102);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(576, 37);
this.panel3.TabIndex = 2;
@@ -301,7 +304,7 @@
this.panel4.Controls.Add(this.tb_author);
this.panel4.Controls.Add(this.label2);
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 37);
this.panel4.Location = new System.Drawing.Point(0, 65);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(576, 37);
this.panel4.TabIndex = 1;
@@ -325,12 +328,15 @@
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.cb_symbol);
this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.cb_symbolE);
this.panel2.Controls.Add(this.cb_symbolK);
this.panel2.Controls.Add(this.label1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(576, 37);
this.panel2.Size = new System.Drawing.Size(576, 65);
this.panel2.TabIndex = 0;
//
// btn_close
@@ -405,6 +411,33 @@
this.btn_GridTrans.UseVisualStyleBackColor = true;
this.btn_GridTrans.Click += new System.EventHandler(this.btn_GridTrans_Click);
//
// cb_symbolE
//
this.cb_symbolE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_symbolE.FormattingEnabled = true;
this.cb_symbolE.Location = new System.Drawing.Point(191, 34);
this.cb_symbolE.Name = "cb_symbolE";
this.cb_symbolE.Size = new System.Drawing.Size(366, 20);
this.cb_symbolE.TabIndex = 6;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(168, 12);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(17, 12);
this.label8.TabIndex = 7;
this.label8.Text = "한";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(168, 37);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(17, 12);
this.label9.TabIndex = 8;
this.label9.Text = "영";
//
// Symbol_Add
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -441,7 +474,7 @@
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cb_symbol;
private System.Windows.Forms.ComboBox cb_symbolK;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
@@ -472,5 +505,8 @@
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn AuthorSymbol;
private System.Windows.Forms.Button btn_GridTrans;
private System.Windows.Forms.ComboBox cb_symbolE;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
}
}

View File

@@ -31,7 +31,8 @@ namespace WindowsFormsApp1.Mac
{
rb[a].Checked = true;
}
cb_symbol.Items.AddRange(com_list);
cb_symbolK.Items.AddRange(com_list);
cb_symbolE.Items.AddRange(com_list);
}
private void button2_Click(object sender, EventArgs e)
@@ -44,7 +45,7 @@ namespace WindowsFormsApp1.Mac
MessageBox.Show("대표 저자를 입력해주세요!");
return;
}
if (cb_symbol.Text == "커터 샌본 저자기호표")
if (cb_symbolK.Text == "커터 샌본 저자기호표")
{
if (!CheckEng(res))
{
@@ -52,7 +53,7 @@ namespace WindowsFormsApp1.Mac
return;
}
}
else if (cb_symbol.Text == "동서양 저자기호법 (국중)") { }
else if (cb_symbolK.Text == "동서양 저자기호법 (국중)") { }
else
{
if (!CheckKor(res))
@@ -67,8 +68,11 @@ namespace WindowsFormsApp1.Mac
bool[] isType = { AuthorLookUp, BookLookUp };
string result = "";
if (cb_symbol.SelectedIndex >= 0)
result = sb.SymbolAuthor(res, book, cb_symbol.SelectedItem.ToString(), isType);
if (cb_symbolK.SelectedIndex >= 0)
{
result = sb.SymbolAuthor(res, book, cb_symbolK.SelectedItem.ToString(), cb_symbolE.SelectedItem.ToString(), isType);
}
tb_result.Text = result;
}
@@ -143,12 +147,12 @@ namespace WindowsFormsApp1.Mac
private void cb_symbol_SelectedIndexChanged(object sender, EventArgs e)
{
if (cb_symbol.Text == "장일세 저자기호표" || cb_symbol.Text == "동서양 저자기호법 (국중)")
if (cb_symbolK.Text == "장일세 저자기호표" || cb_symbolK.Text == "동서양 저자기호법 (국중)")
{
rb_moum1.Enabled = false;
rb_moum2.Checked = true;
}
else if (cb_symbol.Text == "커터 샌본 저자기호표")
else if (cb_symbolK.Text == "커터 샌본 저자기호표")
{
rb_author1.Checked = true;
rb_author2.Enabled = false;
@@ -157,7 +161,7 @@ namespace WindowsFormsApp1.Mac
rb_moum1.Enabled = false;
rb_moum2.Checked = true;
}
else if (cb_symbol.Text == "엘러드 저자기호법")
else if (cb_symbolK.Text == "엘러드 저자기호법")
{
rb_author1.Enabled = false;
rb_author2.Enabled = false;

View File

@@ -19,7 +19,7 @@ namespace AuthorSymbol
/// </summary>
public string[] authorFirst = { "첫음", "초성" };
public string[] authorFour = { "서명+출판사","출판사+서명" };
public string[] authorFour = { "출판사+서명","서명+출판사" };
/// <summary>
/// 저자기호표
/// </summary>
@@ -1447,10 +1447,11 @@ namespace AuthorSymbol
/// </summary>
/// <param name="author">저자</param>
/// <param name="book">도서명</param>
/// <param name="Type">저자기호 타입</param>
/// <param name="TypeK">저자기호 타입(한)</param>
/// <param name="TypeE">저자기호 타입(영)</param>
/// <param name="rb">저자첫음 / 서명첫음</param>
/// <returns></returns>
public string SymbolAuthor(string author, string book, string type, bool[] isType)
public string SymbolAuthor(string author, string book, string typeK,string typeE, bool[] isType)
{
string resAuthor = Author_Fillter(author[0], isType[0]);
string resBook = Book_Fillter(book, isType[1]);
@@ -1461,6 +1462,10 @@ namespace AuthorSymbol
else
aut = author[1];
//aut가 영문이면 typeE 를 쓰고 아닐경우 typeK를 쓴다.
bool isEnglish = (aut >= 'A' && aut <= 'Z') || (aut >= 'a' && aut <= 'z');
string type = isEnglish ? typeE : typeK;
#region
string authorType = string.Empty;
if (type == this.authorType[0])

View File

@@ -28,6 +28,7 @@ namespace UniMarc.마크
string.Format("http://preview.kyobobook.co.kr/preview.jsp?siteGb=INK&ejkGb=KOR&barcode={0}&loginYn=N&orderClick=JAW",
ISBN);
webBrowser1.ScriptErrorsSuppressed = true;
webBrowser1.Navigate(PreViewURL);
}

View File

@@ -23,7 +23,20 @@ namespace ExcelTest
AddMarc am;
Marc mac;
Marc_memo mmm;
Marc2 mae;
MarcEditorControl mec;
public findNchange(MarcEditorControl _mac)
{
InitializeComponent();
mec = _mac;
}
public findNchange(Marc2 _mae)
{
InitializeComponent();
mae = _mae;
}
public findNchange(AddMarc _am)
{
InitializeComponent();

View File

@@ -111,6 +111,10 @@
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel9 = new System.Windows.Forms.Panel();
this.chk_pijunja = new System.Windows.Forms.CheckBox();
this.cb_author_four = new System.Windows.Forms.ComboBox();
this.chk_authorFour = new System.Windows.Forms.CheckBox();
this.cb_authorTypeE = new System.Windows.Forms.ComboBox();
this.cb_authorTypeK = new System.Windows.Forms.ComboBox();
this.cb_divType = new System.Windows.Forms.ComboBox();
this.cb_divNum = new System.Windows.Forms.ComboBox();
@@ -143,10 +147,6 @@
this.panel7 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.cb_authorTypeE = new System.Windows.Forms.ComboBox();
this.label22 = new System.Windows.Forms.Label();
this.cb_author_four = new System.Windows.Forms.ComboBox();
this.chk_pijunja = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.contextMenuStrip1.SuspendLayout();
this.panel1.SuspendLayout();
@@ -895,7 +895,7 @@
this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel9.Controls.Add(this.chk_pijunja);
this.panel9.Controls.Add(this.cb_author_four);
this.panel9.Controls.Add(this.label22);
this.panel9.Controls.Add(this.chk_authorFour);
this.panel9.Controls.Add(this.cb_authorTypeE);
this.panel9.Controls.Add(this.cb_authorTypeK);
this.panel9.Controls.Add(this.cb_divType);
@@ -909,6 +909,43 @@
this.panel9.Size = new System.Drawing.Size(118, 269);
this.panel9.TabIndex = 45;
//
// chk_pijunja
//
this.chk_pijunja.AutoSize = true;
this.chk_pijunja.Location = new System.Drawing.Point(7, 245);
this.chk_pijunja.Name = "chk_pijunja";
this.chk_pijunja.Size = new System.Drawing.Size(88, 16);
this.chk_pijunja.TabIndex = 5;
this.chk_pijunja.Text = "피전자 적용";
this.chk_pijunja.UseVisualStyleBackColor = true;
//
// cb_author_four
//
this.cb_author_four.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_author_four.FormattingEnabled = true;
this.cb_author_four.Location = new System.Drawing.Point(4, 217);
this.cb_author_four.Name = "cb_author_four";
this.cb_author_four.Size = new System.Drawing.Size(104, 20);
this.cb_author_four.TabIndex = 4;
//
// chkauthorFour
//
this.chk_authorFour.AutoSize = true;
this.chk_authorFour.Location = new System.Drawing.Point(5, 198);
this.chk_authorFour.Name = "chkauthorFour";
this.chk_authorFour.Size = new System.Drawing.Size(98, 16);
this.chk_authorFour.TabIndex = 3;
this.chk_authorFour.Text = "4인 이상 저자";
//
// cb_authorTypeE
//
this.cb_authorTypeE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeE.FormattingEnabled = true;
this.cb_authorTypeE.Location = new System.Drawing.Point(4, 74);
this.cb_authorTypeE.Name = "cb_authorTypeE";
this.cb_authorTypeE.Size = new System.Drawing.Size(104, 20);
this.cb_authorTypeE.TabIndex = 2;
//
// cb_authorTypeK
//
this.cb_authorTypeK.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
@@ -1275,43 +1312,6 @@
this.panel5.Size = new System.Drawing.Size(830, 35);
this.panel5.TabIndex = 51;
//
// cb_authorTypeE
//
this.cb_authorTypeE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorTypeE.FormattingEnabled = true;
this.cb_authorTypeE.Location = new System.Drawing.Point(4, 74);
this.cb_authorTypeE.Name = "cb_authorTypeE";
this.cb_authorTypeE.Size = new System.Drawing.Size(104, 20);
this.cb_authorTypeE.TabIndex = 2;
//
// label22
//
this.label22.AutoSize = true;
this.label22.Location = new System.Drawing.Point(5, 198);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(79, 12);
this.label22.TabIndex = 3;
this.label22.Text = "4인 이상 저자";
//
// cb_author_four
//
this.cb_author_four.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_author_four.FormattingEnabled = true;
this.cb_author_four.Location = new System.Drawing.Point(4, 213);
this.cb_author_four.Name = "cb_author_four";
this.cb_author_four.Size = new System.Drawing.Size(104, 20);
this.cb_author_four.TabIndex = 4;
//
// chk_pijunja
//
this.chk_pijunja.AutoSize = true;
this.chk_pijunja.Location = new System.Drawing.Point(7, 241);
this.chk_pijunja.Name = "chk_pijunja";
this.chk_pijunja.Size = new System.Drawing.Size(88, 16);
this.chk_pijunja.TabIndex = 5;
this.chk_pijunja.Text = "피전자 적용";
this.chk_pijunja.UseVisualStyleBackColor = true;
//
// Transaction_manage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1454,7 +1454,7 @@
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.ComboBox cb_authorTypeE;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.CheckBox chk_authorFour;
private System.Windows.Forms.ComboBox cb_author_four;
private System.Windows.Forms.CheckBox chk_pijunja;
}

View File

@@ -64,6 +64,7 @@ namespace WindowsFormsApp1.Home
dv1.Columns.Add(new DataGridViewTextBoxColumn() { Name = "dvc_author_divnum", HeaderText = "dvc_author_divnum", Visible = false });
dv1.Columns.Add(new DataGridViewTextBoxColumn() { Name = "dvc_author_four", HeaderText = "dvc_author_four", Visible = false });
dv1.Columns.Add(new DataGridViewTextBoxColumn() { Name = "dvc_pijunja", HeaderText = "dvc_pijunja", Visible = false });
dv1.Columns.Add(new DataGridViewTextBoxColumn() { Name = "dvc_author_four_use", HeaderText = "dvc_author_four_use", Visible = false });
}
@@ -140,6 +141,7 @@ namespace WindowsFormsApp1.Home
cb_divType.SelectedIndex = -1;
cb_author_four.SelectedIndex = -1;
chk_pijunja.Checked = false;
chk_authorFour.Checked = false;
}
private bool Check_Data(string pText)
{
@@ -198,14 +200,15 @@ namespace WindowsFormsApp1.Home
"c_dlsPW", "c_division", "c_label", "c_program", "c_etc",
"campanyidx", "c_dlsArea" ,
"c_author_first", "c_author_typeK","c_author_typeE", "c_author_firstbook",
"c_author_divtype", "c_author_divnum","c_author_four","c_pijunja"};
"c_author_divtype", "c_author_divnum","c_author_four","c_pijunja","c_author_four_use"};
string[] tmpdb1 = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
tb_man1.Text, tb_user.Text, tb_zip.Text, tb_addr.Text, tb_id.Text,
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
compidx, cb_dlsArea.Text, cb_FirstAuthor.Text, cb_authorTypeK.Text,
cb_authorTypeE.Text,cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text ,cb_author_four.Text,(chk_pijunja.Checked ? "1":"0") };
cb_authorTypeE.Text,cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text ,cb_author_four.Text,
(chk_pijunja.Checked ? "1":"0"),(chk_authorFour.Checked ? "1":"0") };
string[] tOldData = {
};
string Incmd = db.DB_INSERT("Client", tmpdb, tmpdb1);
@@ -260,7 +263,7 @@ namespace WindowsFormsApp1.Home
"c_dlsPW", "c_division", "c_label", "c_program", "c_etc",
"c_dlsArea" ,
"c_author_first", "c_author_typeK", "c_author_typeE","c_author_firstbook",
"c_author_divtype", "c_author_divnum","c_author_four","c_pijunja"};
"c_author_divtype", "c_author_divnum","c_author_four","c_pijunja","c_author_four_use"};
string[] editname = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
@@ -268,7 +271,7 @@ namespace WindowsFormsApp1.Home
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
cb_dlsArea.Text,
cb_FirstAuthor.Text, cb_authorTypeK.Text,cb_authorTypeE.Text, cb_FirstBook.Text,
cb_divType.Text, cb_divNum.Text ,cb_author_four.Text,(chk_pijunja.Checked ? "1":"0") };
cb_divType.Text, cb_divNum.Text ,cb_author_four.Text,(chk_pijunja.Checked ? "1":"0") ,(chk_authorFour.Checked ? "1":"0") };
string[] searchcol = { "idx", "campanyidx" };
string[] searchname = { lbl_idx.Text, compidx };
@@ -368,6 +371,8 @@ namespace WindowsFormsApp1.Home
var author_divnum = dv1.Rows[RowIndex].Cells["dvc_author_divnum"].Value?.ToString() ?? string.Empty;
var author_four = dv1.Rows[RowIndex].Cells["dvc_author_four"].Value?.ToString() ?? string.Empty;
var pijunja = dv1.Rows[RowIndex].Cells["dvc_pijunja"].Value?.ToString() ?? "0";
var author_four_use = dv1.Rows[RowIndex].Cells["dvc_author_four_use"].Value?.ToString() ?? "0";
if (author_typeK.isEmpty() == false) cb_authorTypeK.Text = author_typeK;
else cb_authorTypeK.SelectedIndex = -1;
@@ -385,6 +390,7 @@ namespace WindowsFormsApp1.Home
else cb_author_four.SelectedIndex = -1;
chk_pijunja.Checked = pijunja == "1";
chk_authorFour.Checked = author_four_use == "1";
Select_Gubun(RowIndex);
}
private void Select_Gubun(int pRowIndex)
@@ -457,7 +463,7 @@ namespace WindowsFormsApp1.Home
"`c_dlsArea`, `c_dlsID`, `c_dlsPW`, `c_division`, `c_label`," +
"`c_program`, `c_etc`," +
"`c_author_first`, `c_author_typeK`, `c_author_typeE`,`c_author_firstbook`, " +
"`c_author_divtype`, `c_author_divnum`, `c_author_four`, `c_pijunja`";
"`c_author_divtype`, `c_author_divnum`, `c_author_four`, `c_pijunja`, `c_author_four_use`";
string cmd = db.DB_Contains("Client", compidx, "c_sangho", tbSearch.Text, search);
db.DB_Send_CMD_Search_ApplyGrid(cmd, dv1);

View File

@@ -173,7 +173,8 @@ namespace WindowsFormsApp1.Account
buy = Convert.ToInt32(dataGridView1.Rows[idx].Cells[4].Value.ToString());
}
int pay = 0;
if (dataGridView1.Rows[idx].Cells[5].Value.ToString() != "0") {
if (dataGridView1.Rows[idx].Cells[5].Value.ToString() != "0")
{
pay = Convert.ToInt32(dataGridView1.Rows[idx].Cells[5].Value.ToString());
}
@@ -273,13 +274,10 @@ namespace WindowsFormsApp1.Account
// 일자별이나 전체에선 더블클릭 이벤트 활성화 되지않음.
if(radioButton1.Checked == true || radioButton4.Checked == true) { return; }
Purchase_Book pb = new Purchase_Book(this);
pb.MdiParent = main;
pb.WindowState = FormWindowState.Maximized;
var pb = main.OpenFormInTab(() => new Purchase_Book(this));
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

@@ -18,11 +18,12 @@ namespace WindowsFormsApp1.회계
Helper_DB db = new Helper_DB();
public string compidx;
public int row = -1;
public Sales_Book(Sales_Deposit _sd)
public Sales_Book(Sales_Deposit _sd, Main _main)
{
InitializeComponent();
sd = _sd;
compidx = sd.compidx;
main = _main;
}
public Sales_Book(Main _main)
{
@@ -200,16 +201,13 @@ namespace WindowsFormsApp1.회계
dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 카드" ||
dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 현금" ||
dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 어음") { return; }
Sales_Detail sde = new Sales_Detail(this);
var sde = main.OpenFormInTab(() => new Sales_Detail(this));
string out_date = dataGridView1.Rows[e.RowIndex].Cells["out_date"].Value.ToString().Substring(0, 10).Replace("-", "");
int yesr = Convert.ToInt32(out_date.Substring(0, 4));
int month = Convert.ToInt32(out_date.Substring(4, 2));
int day = Convert.ToInt32(out_date.Substring(6, 2));
sde.MdiParent = this.MdiParent;
sde.WindowState = FormWindowState.Maximized;
sde.Out_Date.Value = new DateTime(yesr, month, day);
sde.tb_clt.Text = tb_clt.Text;
sde.Show();
}
}
}

View File

@@ -288,14 +288,11 @@ namespace WindowsFormsApp1.Account
{
if (rb_Date.Checked) return;
if (e.RowIndex < 0) { return; }
Sales_Book sb = new Sales_Book(this);
var sb = main.OpenFormInTab(() => new Sales_Book(this, main));
sb.row = e.RowIndex;
sb.MdiParent = main;
sb.WindowState = FormWindowState.Maximized;
sb.tb_clt.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
sb.Start_Date.Value = DateTime.Parse(Start_Date.Value.ToString());
sb.End_Date.Value = DateTime.Parse(End_Date.Value.ToString());
sb.Show();
sb.btn_Lookup_Click(null, null);
}
}

View File

@@ -166,16 +166,15 @@ namespace WindowsFormsApp1.Account
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
Sales_Detail sd = new Sales_Detail(this);
string out_date = dataGridView1.Rows[e.RowIndex].Cells["out_date"].Value.ToString().Substring(0, 10).Replace("-", "");
int yesr = Convert.ToInt32(out_date.Substring(0, 4));
int month = Convert.ToInt32(out_date.Substring(4, 2));
int day = Convert.ToInt32(out_date.Substring(6, 2));
sd.MdiParent = main;
sd.WindowState = FormWindowState.Maximized;
var sd = main.OpenFormInTab(() => new Sales_Detail(this));
sd.Out_Date.Value = new DateTime(yesr, month, day);
sd.tb_clt.Text = dataGridView1.Rows[e.RowIndex].Cells["clt"].Value.ToString();
sd.Show();
}
}
}