Compare commits

28 Commits

Author SHA1 Message Date
c2c9122c55 편집기 통합작업 중, 등급 미적용 데이터 수정 2026-02-22 01:04:35 +09:00
ad866c1384 마크편집기를 공용으로 분리작업(90%) 2026-02-21 23:22:03 +09:00
86dbda1d21 ¸¶ũ º¹Á¦ ±â´É ±¸Çö ¹× Dµî±Þ »ö»ó ¼öÁ¤ (Grade E Ã߰¡ Ãë¼Ò) 2026-02-21 11:21:52 +09:00
82aa5a21d9 미소장 전체가져오기 기능 정상화 2026-02-20 16:17:17 +09:00
ed60319978 마크목록등록 ctrl+v 기능 오류 수정
목록창에서 isbn 조회 창으로 바로 진입할 수 있는 버튼이 필요(ppt15)
마크편집창 저장시 ISBN중복여부 확인
마크편집창 서브필드 정렬수정(245,440)- PPT21
2026-02-20 14:39:19 +09:00
35792b0a72 마크목록(new), 정렬,필터 기능 업데이트 2026-02-19 18:42:25 +09:00
77ef720197 .. 2026-02-19 18:28:22 +09:00
c0782ea5c1 마크편집창에서 isbn 을 복사할 수있도록 텍스트박스로 변경 2026-02-14 22:49:17 +09:00
6e25a3d4e9 일부 폼. .신규파일이름 2로 추가 2026-02-14 22:10:32 +09:00
f6dcd5630a 목록 생성 이후 수정 할 수 있는 기능이 필요
Ex) 목록일, 완료일, 목록명, 납품처, 담당자 등
2026-02-14 21:58:29 +09:00
9108993612 현재 마크목록 -> 목록생성(추후 목록 등록으로 수정요망) 버튼을 누르면
마크 목록 생성(추후 목록 등록으로 수정요망) 창이 뜨는 데 항목 순서 변경이 필요기존 가격 수량 합계 순서를 수량 가격 합계 순서로 변경요망
(북엔피에 적용된 순서와 동일하게 하려고 함)
2026-02-14 21:38:57 +09:00
f9d29c7629 marc2에서 마크목록생성시 색상불일치로 데이터 생성갯수가 달라진 부분 수정, 연결된 폼들때문에 addmarc2 도 수정하고 marcopyselect2 생성, marc_mklist2 생성 2026-02-04 22:31:27 +09:00
ad0be3fef5 마크목록생성 화면에서 오류 발생 가능성 분석 및 예상 코드 업데이트
트(null object ->  convert.tostring)
2026-02-03 22:45:26 +09:00
cfe68509f6 단축키 입력 관련 오류 수정 및 요청사항 수정
반출 오류 수정 (에디터 분리 건으로 인함)
2026-01-30 23:52:14 +09:00
87dbe17ec9 마크정리 목록오류 수정(compidx 전체 적용항목 수정, suername 도 전체 login정보로 수정), 매크로목록안나오는거(이상없음 -1번항목오류엿을수있음) , 문학형식 만환관련 오류 수정 2026-01-28 22:14:49 +09:00
92f36e78a5 DB 연결 관리 개선 및 연결 해제(Dispose) 오류 해결: Helper_DB의 연결 생성 및 해제 로직을 안전하게 리팩토링하고 Search_Infor에서 지역 변수를 사용하도록 수정 2026-01-25 13:56:18 +09:00
e3d5674b0a DB_Send_CMD_reVoid 를 ExecuteNoneQuery 로 대체 2026-01-25 13:21:54 +09:00
6c66cdb54a 마크편집창 alt+(a~z), alt+enter 단축키 추가
D등급자료의 색상을 Red -> Darkviolet 변경, red는 데이터가 신규로 저장된다.
신규로 저장되는 자료의 인덱스를 저장하면서 바로 수집하도록 한다
2026-01-25 11:19:12 +09:00
b7a2474ec2 메인화면의 compidx 와 username 을 . 전역 변수 PUB.user 로 이동 2026-01-24 16:30:24 +09:00
6e4e2eb982 마크목록 데이터바인딩 적용 2026-01-24 15:16:33 +09:00
47c443e9a3 네임스페이스 통일 UniMarc 2026-01-24 14:55:53 +09:00
568868602f 편집창 100 700 900 에서 쩜(.) 이 제거되지 않도록 함 2026-01-24 11:47:13 +09:00
c44f40a651 addmar2 작업중 2026-01-24 00:35:09 +09:00
4ffbb2fa2e 마크정리 에디터컨트롤 통합 작업 1차완료 2026-01-23 22:40:36 +09:00
ed9afeab80 미소장 화면이 폼에 직접 연결되지 않도록 수정 중 2026-01-22 23:11:25 +09:00
0f0f745964 마크정리화면에서 에디터통합 작업 중 일단 화면 open 성공 2026-01-22 23:00:08 +09:00
d40ffda4fd 마크정리에서 목록선택하면 나오는 목록창 바인딩소스 연결 2026-01-22 21:38:11 +09:00
409317c099 marc2 목록을 바인딩소스에 연결 2026-01-22 21:32:27 +09:00
334 changed files with 17272 additions and 3321 deletions

View File

@@ -56,12 +56,6 @@
</runtime> </runtime>
<userSettings> <userSettings>
<UniMarc.Properties.Settings> <UniMarc.Properties.Settings>
<setting name="compidx" serializeAs="String">
<value />
</setting>
<setting name="User" serializeAs="String">
<value />
</setting>
<setting name="IP" serializeAs="String"> <setting name="IP" serializeAs="String">
<value>1.11010111.11111010.10000010</value> <value>1.11010111.11111010.10000010</value>
</setting> </setting>

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace ExcelTest namespace UniMarc
{ {
public static class CExt public static class CExt
{ {
@@ -121,5 +121,4 @@ namespace ExcelTest
catch { } catch { }
} }
} }
} }

View File

@@ -0,0 +1,19 @@
namespace UniMarc
{
public static class DB_Utils
{
public static bool ExistISBN(string value)
{
Helper_DB db = new Helper_DB();
// ISBN 중복체크
string checkSql = string.Format("SELECT COUNT(*) FROM Marc WHERE isbn = '{0}' AND compidx = '{1}'", value, PUB.user.CompanyIdx);
string dupeCount = db.self_Made_Cmd(checkSql).Replace("|", "");
if (dupeCount != "0" && !string.IsNullOrEmpty(dupeCount))
{
return true;
}
return false;
}
}
}

View File

@@ -9,7 +9,7 @@ using System.Threading.Tasks;
using System.Web.Mail; using System.Web.Mail;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1 namespace UniMarc
{ {
class Email class Email
{ {

View File

@@ -1,20 +1,143 @@
using System; using AR;
using MySql.Data.MySqlClient;
using Renci.SshNet;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data;
using System.IO.Ports; using System.IO.Ports;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using MySql.Data.MySqlClient; using UniMarc.BaroService_TI;
using Renci.SshNet;
using UniMarc.Properties; using UniMarc.Properties;
namespace WindowsFormsApp1 namespace UniMarc
{ {
public partial class Helper_DB
{
//static string cs = "";
public enum eDbType
{
unimarc,
cl_marc
}
public static MySqlConnection CreateConnection(eDbType dbtype)
{
var dbname = dbtype.ToString();
string strConnection = string.Format(
"Server={0};" +
"Port={1};" +
$"Database={dbname};" +
"uid={2};" +
"pwd={3};", ServerData[0], DBData[0], DBData[1], DBData[2]);
return new MySqlConnection(strConnection);
}
public static DataTable ExecuteQueryData(string query, MySqlConnection cn = null)
{
var bLocalCN = cn == null;
DataTable dt = new DataTable();
try
{
if (cn == null) cn = CreateConnection(eDbType.unimarc);// new MySqlConnection(cs);
var cmd = new MySqlCommand(query, cn);
cn.Open();
using (MySqlDataAdapter adapter = new MySqlDataAdapter(cmd))
{
adapter.Fill(dt);
}
cmd.Dispose();
cn.Close();
if (bLocalCN) cn.Dispose();
return dt;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "ExecuteQueryData Error");
return null;
}
}
/// <summary>
/// 오류발생시 null을 반환합니다
/// </summary>
/// <param name="tableName"></param>
/// <param name="columns"></param>
/// <param name="wheres"></param>
/// <param name="orders"></param>
/// <returns></returns>
public static DataTable GetDT(string tableName, string columns = "*", string wheres = "", string orders = "", MySqlConnection cn = null)
{
var sql = $"select {columns} from {tableName}";
if (wheres.isEmpty() == false) sql += " where " + wheres;
if (orders.isEmpty() == false) sql += " order by " + orders;
return ExecuteQueryData(sql, cn);
}
/// <summary>
/// 오류발생시 -1을 반환합니다
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public static (int applyCount, string errorMessage) ExcuteNonQuery(string query, MySqlConnection cn = null)
{
try
{
var bLocalCN = cn == null;
if (cn == null) cn = CreateConnection(eDbType.unimarc);//new MySqlConnection(cs);
var cmd = new MySqlCommand(query, cn);
cn.Open();
var cnt = cmd.ExecuteNonQuery();
cmd.Dispose();
if (bLocalCN) cn.Dispose();
return (cnt, string.Empty);
}
catch (Exception ex)
{
return (-1, ex.Message);
}
}
/// <summary>
/// Insert 명령을 수행한 후 자동 생성된 index값을 반환합니다.
/// 오류발생시에는 -1을 반환합니다
/// </summary>
/// <param name="cmd"></param>
/// <param name="cn"></param>
/// <returns></returns>
public long DB_Send_CMD_Insert_GetIdx(string cmd, MySqlConnection cn = null)
{
long lastId = -1;
var bLocalCN = cn == null;
try
{
if (cn == null) cn = CreateConnection(eDbType.unimarc);//new MySqlConnection(cs);
using (var sqlcmd = new MySqlCommand(cmd, cn))
{
cn.Open();
sqlcmd.ExecuteNonQuery();
lastId = sqlcmd.LastInsertedId;
}
if (bLocalCN) cn.Dispose();
}
catch (Exception ex)
{
UTIL.MsgE($"데이터베이스 실행오류\n{ex.Message}");
}
return lastId;
}
}
/// <summary> /// <summary>
/// DB접속을 도와주는 클래스 /// DB접속을 도와주는 클래스
/// </summary> /// </summary>
public class Helper_DB public partial class Helper_DB
{ {
// 접속 // 접속
MySqlConnection conn; MySqlConnection conn;
@@ -22,14 +145,14 @@ namespace WindowsFormsApp1
/// <summary> /// <summary>
/// IP / Port / Uid / pwd /// IP / Port / Uid / pwd
/// </summary> /// </summary>
string[] ServerData = { static string[] ServerData = {
Settings.Default.IP, Settings.Default.IP,
Settings.Default.Uid, Settings.Default.Uid,
Settings.Default.pwd Settings.Default.pwd
}; };
int port = Settings.Default.Port; int port = Settings.Default.Port;
string[] DBData = { static string[] DBData = {
Settings.Default.dbPort, Settings.Default.dbPort,
Settings.Default.dbUid, Settings.Default.dbUid,
Settings.Default.dbPwd Settings.Default.dbPwd
@@ -39,47 +162,12 @@ namespace WindowsFormsApp1
MySqlCommand sqlcmd = new MySqlCommand(); MySqlCommand sqlcmd = new MySqlCommand();
MySqlDataReader sd; MySqlDataReader sd;
public string comp_idx { get; internal set; } public MySqlConnection CreateConnection()
/// <summary>
/// DB를 사용하고 싶을 때 미리 저장된 DB의 기본 접속정보를 이용하여 DB에 접근한다.
/// </summary>
public void DBcon() // DB접속 함수
{
//"Server=1.215.250.130;Port=3306;Database=unimarc;uid=root;pwd=Admin21234;"
PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo(ServerData[0], port, ServerData[1], ServerData[2]);
connectionInfo.Timeout = TimeSpan.FromSeconds(30);
using (var client = new SshClient(connectionInfo))
{
if (conn != null) {
conn.Close();
conn.Dispose();
}
client.Connect();
if (client.IsConnected)
{
string strConnection = string.Format(
"Server={0};" +
"Port={1};" +
"Database=unimarc;" +
"uid={2};" +
"pwd={3};", ServerData[0], DBData[0], DBData[1], DBData[2]);
conn = new MySqlConnection(strConnection);
}
}
}
public MySql.Data.MySqlClient.MySqlConnection CreateConnection()
{ {
PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo(ServerData[0], port, ServerData[1], ServerData[2]); PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo(ServerData[0], port, ServerData[1], ServerData[2]);
connectionInfo.Timeout = TimeSpan.FromSeconds(30); connectionInfo.Timeout = TimeSpan.FromSeconds(30);
using (var client = new SshClient(connectionInfo)) using (var client = new SshClient(connectionInfo))
{ {
if (conn != null)
{
conn.Close();
conn.Dispose();
}
client.Connect(); client.Connect();
if (client.IsConnected) if (client.IsConnected)
{ {
@@ -96,6 +184,37 @@ namespace WindowsFormsApp1
return null; return null;
} }
/// <summary>
/// DB를 사용하고 싶을 때 미리 저장된 DB의 기본 접속정보를 이용하여 DB에 접근한다.
/// </summary>
public void DBcon() // DB접속 함수
{
//"Server=1.215.250.130;Port=3306;Database=unimarc;uid=root;pwd=Admin21234;"
PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo(ServerData[0], port, ServerData[1], ServerData[2]);
connectionInfo.Timeout = TimeSpan.FromSeconds(30);
using (var client = new SshClient(connectionInfo))
{
if (conn != null)
{
conn.Close();
conn.Dispose();
}
client.Connect();
if (client.IsConnected)
{
var cs = string.Format(
"Server={0};" +
"Port={1};" +
"Database=unimarc;" +
"uid={2};" +
"pwd={3};", ServerData[0], DBData[0], DBData[1], DBData[2]);
conn = new MySqlConnection(cs);
}
}
}
/// <summary> /// <summary>
/// 국중DB를 사용하고 싶을 때 미리 저장된 DB의 기본 접속정보를 이용하여 DB에 접근한다. /// 국중DB를 사용하고 싶을 때 미리 저장된 DB의 기본 접속정보를 이용하여 DB에 접근한다.
/// </summary> /// </summary>
@@ -123,8 +242,11 @@ namespace WindowsFormsApp1
} }
} }
} }
public string DB_Send_CMD_Search(string cmd) public string DB_Send_CMD_Search(string cmd)
{ {
// DB 연결 // DB 연결
conn.Open(); conn.Open();
// 쿼리 맵핑 // 쿼리 맵핑
@@ -147,6 +269,32 @@ namespace WindowsFormsApp1
conn.Close(); conn.Close();
return result; return result;
} }
public DataTable DB_Send_CMD_Search_DataTable(string cmd)
{
DataTable dt = new DataTable();
try
{
if (conn.State == ConnectionState.Closed)
conn.Open();
using (MySqlDataAdapter adapter = new MySqlDataAdapter(cmd, conn))
{
adapter.Fill(dt);
}
}
catch (Exception ex)
{
UTIL.MsgE($"데이터베이스 실행오류\n{ex.Message}");
return null;
}
finally
{
if (conn.State == ConnectionState.Open)
conn.Close();
}
return dt;
}
public void DB_Send_CMD_Search_ApplyGrid(string cmd, DataGridView dgv) public void DB_Send_CMD_Search_ApplyGrid(string cmd, DataGridView dgv)
{ {
// DB 연결 // DB 연결
@@ -220,34 +368,8 @@ namespace WindowsFormsApp1
} }
conn.Close(); conn.Close();
} }
public void DB_Send_CMD_reVoid(string cmd)
{
//using (conn)
{
conn.Open();
MySqlTransaction tran = conn.BeginTransaction();
sqlcmd.Connection = conn;
sqlcmd.Transaction = tran;
try
{
sqlcmd.CommandText = cmd;
sqlcmd.ExecuteNonQuery();
tran.Commit();
}
catch (Exception ex)
{
tran.Rollback();
MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
finally
{
if (conn != null && conn.State != System.Data.ConnectionState.Closed)
conn.Close();
}
}
}
/// <summary> /// <summary>
/// DBcon이 선진행되어야함. /// DBcon이 선진행되어야함.
/// SELECT * FROM [DB_Table_Name] WHERE [DB_Where_Table] LIKE \"%DB_Search_Data%\" /// SELECT * FROM [DB_Table_Name] WHERE [DB_Where_Table] LIKE \"%DB_Search_Data%\"

View File

@@ -1,48 +0,0 @@
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 UniMarc;
using UniMarc.Properties;
namespace WindowsFormsApp1
{
public static class DB2
{
public static DataTable GetDT(string tableName, string columns="*" , string wheres="", string orders="")
{
var sql = $"select {columns} from {tableName}";
if (wheres.isEmpty() == false) sql += " where " + wheres;
if (orders.isEmpty() == false) sql += " order by " + orders;
Helper_DB db = new Helper_DB();
var cn = db.CreateConnection();
var da = new MySql.Data.MySqlClient.MySqlDataAdapter(sql, cn);
var dt = new DataTable();
da.Fill(dt);
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

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1 namespace UniMarc
{ {
partial class login partial class login
{ {

View File

@@ -12,7 +12,7 @@ using System.Net;
using System.Net.Sockets; using System.Net.Sockets;
using Application = System.Windows.Forms.Application; using Application = System.Windows.Forms.Application;
namespace WindowsFormsApp1 namespace UniMarc
{ {
public partial class login : Form public partial class login : Form
{ {
@@ -25,7 +25,7 @@ namespace WindowsFormsApp1
private void login_Load(object sender, EventArgs e) private void login_Load(object sender, EventArgs e)
{ {
lbl_IP.Text = String.Format("{0}", ip.GetIP); lbl_IP.Text = String.Format("{0}", ip.GetIP());
lbl_Version.Text = string.Format("Ver.{0}", ip.VersionInfo()); lbl_Version.Text = string.Format("Ver.{0}", ip.VersionInfo());
this.ActiveControl = ID_text; this.ActiveControl = ID_text;
@@ -79,7 +79,7 @@ namespace WindowsFormsApp1
return; return;
} }
((Main)(this.Owner)).IPText.Text = string.Format("접속 아이피 : {0}", lbl_IP.Text); ((Main)(this.Owner)).IPText.Text = string.Format("접속 아이피 : {0}", lbl_IP.Text);
db.DB_Send_CMD_reVoid( Helper_DB.ExcuteNonQuery(
string.Format("UPDATE `User_Data` SET `lastIP` = \"{0}\", `lastDate` = \"{2}\" WHERE `ID` = \"{1}\"", string.Format("UPDATE `User_Data` SET `lastIP` = \"{0}\", `lastDate` = \"{2}\" WHERE `ID` = \"{1}\"",
lbl_IP.Text, ID_text.Text, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")) lbl_IP.Text, ID_text.Text, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"))
); );

File diff suppressed because it is too large Load Diff

View File

@@ -12,32 +12,16 @@ using System.Runtime.CompilerServices;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using UniMarc;
using UniMarc.Properties; using UniMarc.Properties;
using UniMarc.;
using UniMarc.;
using UniMarc.;
using WindowsFormsApp1.Account;
using WindowsFormsApp1.Convenience;
using WindowsFormsApp1.Delivery;
using WindowsFormsApp1.DLS;
using WindowsFormsApp1.Home;
using WindowsFormsApp1.Mac;
using WindowsFormsApp1.Work_log;
using WindowsFormsApp1.;
using WindowsFormsApp1.;
using WindowsFormsApp1.;
namespace UniMarc
namespace WindowsFormsApp1
{ {
public partial class Main : Form public partial class Main : Form
{ {
Helper_DB _DB = new Helper_DB(); Helper_DB _DB = new Helper_DB();
IP ip = new IP(); IP ip = new IP();
public string DB_User_Data; public string DB_User_Data;
public string User;
public string com_idx;
public Main() public Main()
{ {
@@ -82,28 +66,33 @@ namespace WindowsFormsApp1
{ {
string[] result = DB_User_Data.Split('|'); string[] result = DB_User_Data.Split('|');
if (result[3] == null) { } if (result[3] == null) {
PUB.user.UserName = "";
PUB.user.CompanyName = string.Empty;
}
else else
{ {
toolStripLabel2.Text = result[4]; PUB.user.CompanyName = result[4];
botUserLabel.Text = result[3]; PUB.user.UserName = result[3];
User = result[3];
} }
cmd = _DB.DB_Select_Search("`idx`", "Comp", "comp_name", result[4]); cmd = _DB.DB_Select_Search("`idx`", "Comp", "comp_name", result[4]);
com_idx = _DB.DB_Send_CMD_Search(cmd).Replace("|", ""); PUB.user.CompanyIdx = _DB.DB_Send_CMD_Search(cmd).Replace("|", "");
if (com_idx != "1") if (PUB.user.CompanyIdx != "1")
{ {
ToolStripMenuItem.Visible = false; ToolStripMenuItem.Visible = false;
ToolStripMenuItem.Visible = false; ToolStripMenuItem.Visible = false;
} }
if (result[5] != "관리자") { ToolStripMenuItem.Visible = false; } if (result[5] != "관리자") { ToolStripMenuItem.Visible = false; }
Settings.Default.compidx = com_idx; lbCompanyName.Text = PUB.user.CompanyName;
Settings.Default.User = botUserLabel.Text; botUserLabel.Text = PUB.user.UserName;
this.Text = "[ '" + com_idx + "' : " + result[4] + " - " + result[3] + "]";
this.Text = "[ '" + PUB.user.CompanyIdx + "' : " + result[4] + " - " + result[3] + "]";
isAccess(); isAccess();
SetBtnName(); SetBtnName();
@@ -668,7 +657,7 @@ namespace WindowsFormsApp1
private void dLS조회ToolStripMenuItem_Click(object sender, EventArgs e) private void dLS조회ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
OpenFormInTab(() => new School_Lookup(this)); OpenFormInTab(() => new DLS_Lookup(this));
} }
private void dLS복본조사ToolStripMenuItem_Click(object sender, EventArgs e) private void dLS복본조사ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
@@ -889,5 +878,15 @@ namespace WindowsFormsApp1
} }
} }
} }
private void NewToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFormInTab<AddMarc2>(() => new AddMarc2(this));
}
private void NewToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFormInTab(() => new Search_Infor2(this));
}
} }
} }

View File

@@ -1,18 +1,26 @@
using System; using AR;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web.UI.WebControls.WebParts;
using System.Windows.Forms; using System.Windows.Forms;
using UniMarc.Properties; using UniMarc.Properties;
namespace UniMarc namespace UniMarc
{ {
public class LoginInfo
{
public string UserName { get; set; }
public string CompanyIdx { get; set; }
public string CompanyName { get; set; }
}
public static class PUB public static class PUB
{ {
public static arUtil.Log log; public static arUtil.Log log;
public static UserSetting setting; public static UserSetting setting;
public static LoginInfo user;
public static void Init() public static void Init()
{ {
#region "Log setting" #region "Log setting"
@@ -25,7 +33,39 @@ namespace UniMarc
setting = new UserSetting(); setting = new UserSetting();
setting.Load(); setting.Load();
user = new LoginInfo();
} }
/// <summary>
/// 빈 MARC String 을 생성한다
/// </summary>
/// <param name="ISBN13"></param>
/// <param name="BookName"></param>
/// <param name="Author"></param>
/// <param name="Publisher"></param>
/// <param name="Price"></param>
/// <returns></returns>
public static string MakeEmptyMarc(string ISBN13, string BookName, string Author, string Publisher, string Price)
{
string yyMMdd = DateTime.Now.ToString("yyMMdd");
string yyyy = DateTime.Now.ToString("yyyy");
string Empty_008 = yyMMdd + "s" + yyyy + " 000 kor ▲";
var tag_008 = Empty_008.Replace("▲", "");
string Empty_text = string.Format(
"020\t \t▼a{1}▼c\\{5}▲\n" +
"056\t \t▼a▼25▲\n" +
"100\t \t▼a▲\n" +
"245\t \t▼a{2}▼d{3}▲\n" +
"260\t \t▼b{4}▲\n" +
"300\t \t▼a▼c▲\n" +
"653\t \t▼a▲\n" +
"700\t \t▼a▲\n" +
"950\t \t▼b\\{5}▲\n",
Empty_008, ISBN13, BookName, Author, Publisher, Price);
return Empty_text;
} }
} }
}

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1 namespace UniMarc
{ {
static class Program static class Program
{ {

View File

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

View File

@@ -12,7 +12,7 @@ namespace UniMarc.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")]
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -23,30 +23,6 @@ namespace UniMarc.Properties {
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string compidx {
get {
return ((string)(this["compidx"]));
}
set {
this["compidx"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string User {
get {
return ((string)(this["User"]));
}
set {
this["User"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("1.11010111.11111010.10000010")] [global::System.Configuration.DefaultSettingValueAttribute("1.11010111.11111010.10000010")]

View File

@@ -2,12 +2,6 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="UniMarc.Properties" GeneratedClassName="Settings"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="UniMarc.Properties" GeneratedClassName="Settings">
<Profiles /> <Profiles />
<Settings> <Settings>
<Setting Name="compidx" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="User" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="IP" Type="System.String" Scope="User"> <Setting Name="IP" Type="System.String" Scope="User">
<Value Profile="(Default)">1.11010111.11111010.10000010</Value> <Value Profile="(Default)">1.11010111.11111010.10000010</Value>
</Setting> </Setting>

View File

@@ -17,7 +17,6 @@ using System.Threading.Tasks;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
using System.Xml.Linq; using System.Xml.Linq;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using UniMarc.;
using WebDriverManager; using WebDriverManager;
using WebDriverManager.DriverConfigs.Impl; using WebDriverManager.DriverConfigs.Impl;

View File

@@ -12,7 +12,6 @@ using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using UniMarc.;
using WebDriverManager; using WebDriverManager;
using WebDriverManager.DriverConfigs.Impl; using WebDriverManager.DriverConfigs.Impl;

View File

@@ -12,7 +12,6 @@ using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using UniMarc.;
using WebDriverManager; using WebDriverManager;
using WebDriverManager.DriverConfigs.Impl; using WebDriverManager.DriverConfigs.Impl;

View File

@@ -12,7 +12,6 @@ using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using UniMarc.;
using WebDriverManager; using WebDriverManager;
using WebDriverManager.DriverConfigs.Impl; using WebDriverManager.DriverConfigs.Impl;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -15,7 +15,6 @@ using System.Threading.Tasks;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
using System.Xml.Linq; using System.Xml.Linq;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using UniMarc.;
using WebDriverManager; using WebDriverManager;
using WebDriverManager.DriverConfigs.Impl; using WebDriverManager.DriverConfigs.Impl;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -9,7 +9,6 @@ using WebDriverManager.DriverConfigs.Impl;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using UniMarc.;
using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Chromium;
using UniMarc.SearchModel; using UniMarc.SearchModel;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

View File

@@ -25,7 +25,7 @@ using System.Threading;
using System.Data.SqlTypes; using System.Data.SqlTypes;
using AR; using AR;
namespace WindowsFormsApp1 namespace UniMarc
{ {
/// <summary> /// <summary>
/// 여러 기능들이 추가될 예정. /// 여러 기능들이 추가될 예정.
@@ -3005,21 +3005,49 @@ namespace WindowsFormsApp1
public class IP public class IP
{ {
/// <summary>
/// 현 PC의 외부아이피를 가져옴
/// 프로그램에서 가져올 방법이 딱히 없어 꼼수로 웹사이트 크롤링을 통해 가져옴
/// </summary>
public string GetIP
{
get
{
string externalIp = new WebClient().DownloadString("http://ipinfo.io/ip").Trim(); // http://icanhazip.com
if (string.IsNullOrWhiteSpace(externalIp)) public string GetIP()
externalIp = GetIP; {
return externalIp; // 최신 사이트 접속을 위한 TLS 1.2 활성화 (강제 지정)
// Windows 7 / .NET 4.0에서는 이 설정이 없으면 HTTPS 접속이 실패할 수 있습니다.
try { ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; } catch { }
string[] urls = {
"http://checkip.amazonaws.com",
"http://ipinfo.io/ip",
"https://api.ipify.org"
};
foreach (var url in urls)
{
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Timeout = 2000;
// 브라우저처럼 보이게 하기 위해 User-Agent 추가 (많은 사이트가 이를 요구함)
request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36";
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
using (Stream stream = response.GetResponseStream())
using (StreamReader reader = new StreamReader(stream))
{
string ip = reader.ReadToEnd().Trim();
// IP 형식인지 검증
IPAddress address;
if (IPAddress.TryParse(ip, out address))
{
// IPv4인 경우에만 반환 (필요시 IPv6 허용 가능)
if (address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
return ip;
} }
} }
}
catch { continue; } // 다음 URL 시도
}
return "IP 확인 실패";
}
public string VersionInfo() public string VersionInfo()
{ {
string version = "0"; string version = "0";

View File

@@ -0,0 +1,169 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
namespace UniMarc
{
public class SortableBindingList<T> : BindingList<T>, IBindingListView
{
private bool _isSorted;
private ListSortDirection _sortDirection;
private PropertyDescriptor _sortProperty;
private string _filter;
private readonly List<T> _originalItems = new List<T>();
public SortableBindingList() : base() { }
public SortableBindingList(IList<T> list) : base(list)
{
foreach (var item in list)
_originalItems.Add(item);
}
protected override void OnListChanged(ListChangedEventArgs e)
{
if (e.ListChangedType == ListChangedType.ItemAdded)
{
_originalItems.Insert(e.NewIndex, this[e.NewIndex]);
}
else if (e.ListChangedType == ListChangedType.ItemDeleted)
{
// This is slightly tricky if filtered, but we assume basic usage for now
// Ideally we'd track IDs
}
base.OnListChanged(e);
}
#region Sorting
protected override bool SupportsSortingCore => true;
protected override bool IsSortedCore => _isSorted;
protected override ListSortDirection SortDirectionCore => _sortDirection;
protected override PropertyDescriptor SortPropertyCore => _sortProperty;
protected override void ApplySortCore(PropertyDescriptor prop, ListSortDirection direction)
{
var items = this.Items as List<T>;
if (items != null)
{
PropertyComparer<T> pc = new PropertyComparer<T>(prop, direction);
items.Sort(pc);
_isSorted = true;
_sortDirection = direction;
_sortProperty = prop;
}
else
{
_isSorted = false;
}
OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
}
protected override void RemoveSortCore()
{
_isSorted = false;
_sortProperty = null;
OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
}
#endregion
#region Filtering (IBindingListView)
public string Filter
{
get => _filter;
set
{
_filter = value;
if (string.IsNullOrEmpty(_filter))
RemoveFilter();
else
ApplyFilter(_filter);
}
}
public bool SupportsFiltering => true;
public void ApplyFilter(string filter)
{
_filter = filter;
if (_originalItems.Count == 0 && this.Count > 0)
{
foreach (var item in this) _originalItems.Add(item);
}
// Simple parser for "Property=Value" or "Property='Value'"
var parts = filter.Split('=');
if (parts.Length != 2) return;
string propName = parts[0].Trim();
string valStr = parts[1].Trim().Trim('\'');
var prop = TypeDescriptor.GetProperties(typeof(T))[propName];
if (prop == null) return;
this.RaiseListChangedEvents = false;
this.Clear();
foreach (var item in _originalItems)
{
var val = prop.GetValue(item);
if (val != null && val.ToString().Equals(valStr, StringComparison.OrdinalIgnoreCase))
{
this.Add(item);
}
}
this.RaiseListChangedEvents = true;
OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
}
public void RemoveFilter()
{
_filter = null;
if (_originalItems.Count > 0)
{
this.RaiseListChangedEvents = false;
this.Clear();
foreach (var item in _originalItems) this.Add(item);
this.RaiseListChangedEvents = true;
OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, -1));
}
}
public ListSortDescriptionCollection SortDescriptions => null;
public bool SupportsAdvancedSorting => false;
public void ApplySort(ListSortDescriptionCollection sorts) => throw new NotSupportedException();
#endregion
private class PropertyComparer<TItem> : IComparer<TItem>
{
private readonly PropertyDescriptor _prop;
private readonly ListSortDirection _direction;
public PropertyComparer(PropertyDescriptor prop, ListSortDirection direction)
{
_prop = prop;
_direction = direction;
}
public int Compare(TItem x, TItem y)
{
object xVal = _prop.GetValue(x);
object yVal = _prop.GetValue(y);
int result;
if (xVal == null && yVal == null) result = 0;
else if (xVal == null) result = -1;
else if (yVal == null) result = 1;
else if (xVal is IComparable comparable)
result = comparable.CompareTo(yVal);
else if (xVal.Equals(yVal))
result = 0;
else
result = xVal.ToString().CompareTo(yVal.ToString());
return _direction == ListSortDirection.Ascending ? result : -result;
}
}
}
}

View File

@@ -224,7 +224,7 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Reference.svcmap</DependentUpon> <DependentUpon>Reference.svcmap</DependentUpon>
</Compile> </Compile>
<Compile Include="Helper_DB2.cs" /> <Compile Include="DB_Utils.cs" />
<Compile Include="Helper_LibraryDelaySettings.cs" /> <Compile Include="Helper_LibraryDelaySettings.cs" />
<Compile Include="ListOfValue\fSelectDT.cs"> <Compile Include="ListOfValue\fSelectDT.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
@@ -268,18 +268,37 @@
<Compile Include="SearchModel\JunnamEduSearcher.cs" /> <Compile Include="SearchModel\JunnamEduSearcher.cs" />
<Compile Include="SearchModel\NamguLibrarySearcher.cs" /> <Compile Include="SearchModel\NamguLibrarySearcher.cs" />
<Compile Include="SearchModel\SeleniumHelper.cs" /> <Compile Include="SearchModel\SeleniumHelper.cs" />
<Compile Include="SortableBindingList.cs" />
<Compile Include="개발자용\fDevDB.cs"> <Compile Include="개발자용\fDevDB.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="개발자용\fDevDB.Designer.cs"> <Compile Include="개발자용\fDevDB.Designer.cs">
<DependentUpon>fDevDB.cs</DependentUpon> <DependentUpon>fDevDB.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="납품관리\Book_Lookup2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="납품관리\Book_Lookup2.Designer.cs">
<DependentUpon>Book_Lookup2.cs</DependentUpon>
</Compile>
<Compile Include="납품관리\Order_input_Search2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="납품관리\Order_input_Search2.Designer.cs">
<DependentUpon>Order_input_Search2.cs</DependentUpon>
</Compile>
<Compile Include="마스터\From_User_manage_List.cs"> <Compile Include="마스터\From_User_manage_List.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="마스터\From_User_manage_List.Designer.cs"> <Compile Include="마스터\From_User_manage_List.Designer.cs">
<DependentUpon>From_User_manage_List.cs</DependentUpon> <DependentUpon>From_User_manage_List.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\AddMarc2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\AddMarc2.Designer.cs">
<DependentUpon>AddMarc2.cs</DependentUpon>
</Compile>
<Compile Include="마크\AddMarc.cs"> <Compile Include="마크\AddMarc.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -292,6 +311,7 @@
<Compile Include="마크\AddMarc_FillBlank.Designer.cs"> <Compile Include="마크\AddMarc_FillBlank.Designer.cs">
<DependentUpon>AddMarc_FillBlank.cs</DependentUpon> <DependentUpon>AddMarc_FillBlank.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\BookGridItem.cs" />
<Compile Include="마크\CD_LP.cs"> <Compile Include="마크\CD_LP.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -340,6 +360,31 @@
<Compile Include="마크\Check_Copy_Sub_Selector.Designer.cs"> <Compile Include="마크\Check_Copy_Sub_Selector.Designer.cs">
<DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon> <DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\Check_ISBN2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Check_ISBN2.Designer.cs">
<DependentUpon>Check_ISBN2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN_ItemEdit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Check_ISBN_ItemEdit.Designer.cs">
<DependentUpon>Check_ISBN_ItemEdit.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN_Sub2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Check_ISBN_Sub2.Designer.cs">
<DependentUpon>Check_ISBN_Sub2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN_Yes242.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Check_ISBN_Yes242.Designer.cs">
<DependentUpon>Check_ISBN_Yes242.cs</DependentUpon>
</Compile>
<Compile Include="마크\FillBlankItem.cs" />
<Compile Include="마크\Help_007.cs"> <Compile Include="마크\Help_007.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -352,13 +397,34 @@
<Compile Include="마크\Help_008.Designer.cs"> <Compile Include="마크\Help_008.Designer.cs">
<DependentUpon>Help_008.cs</DependentUpon> <DependentUpon>Help_008.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\IsbnGridItem.cs" />
<Compile Include="마크\MacEditorParameter.cs" /> <Compile Include="마크\MacEditorParameter.cs" />
<Compile Include="마크\MacListItem.cs" />
<Compile Include="마크\Mac_List_Add2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Mac_List_Add2.Designer.cs">
<DependentUpon>Mac_List_Add2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Mac_List_Add.cs"> <Compile Include="마크\Mac_List_Add.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="마크\Mac_List_Add.Designer.cs"> <Compile Include="마크\Mac_List_Add.Designer.cs">
<DependentUpon>Mac_List_Add.cs</DependentUpon> <DependentUpon>Mac_List_Add.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\Mac_List_Edit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Mac_List_Edit.Designer.cs">
<DependentUpon>Mac_List_Edit.cs</DependentUpon>
</Compile>
<Compile Include="마크\MarcBookItem.cs" />
<Compile Include="마크\MarcCopySelect2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\MarcCopySelect2.Designer.cs">
<DependentUpon>MarcCopySelect2.cs</DependentUpon>
</Compile>
<Compile Include="마크\MarcCopySelect.cs"> <Compile Include="마크\MarcCopySelect.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -377,6 +443,10 @@
<Compile Include="마크\Marc.designer.cs"> <Compile Include="마크\Marc.designer.cs">
<DependentUpon>Marc.cs</DependentUpon> <DependentUpon>Marc.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\MarcPlanItem.cs" />
<Compile Include="마크\Marc_CopyForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Marc_FillBlank.cs"> <Compile Include="마크\Marc_FillBlank.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -488,6 +558,12 @@
<DependentUpon>Mac_Stat_Stat.cs</DependentUpon> <DependentUpon>Mac_Stat_Stat.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\Marc_Macro_Sub.cs" /> <Compile Include="마크\Marc_Macro_Sub.cs" />
<Compile Include="마크\Marc_mkList2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Marc_mkList2.Designer.cs">
<DependentUpon>Marc_mkList2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_mkList.cs"> <Compile Include="마크\Marc_mkList.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -512,11 +588,11 @@
<Compile Include="마크\Marc_Plan_PrintLabel.Designer.cs"> <Compile Include="마크\Marc_Plan_PrintLabel.Designer.cs">
<DependentUpon>Marc_Plan_PrintLabel.cs</DependentUpon> <DependentUpon>Marc_Plan_PrintLabel.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit2.cs"> <Compile Include="마크\fMarc_Editor.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit2.Designer.cs"> <Compile Include="마크\fMarc_Editor.Designer.cs">
<DependentUpon>Marc_Plan_Sub_MarcEdit2.cs</DependentUpon> <DependentUpon>fMarc_Editor.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit.cs"> <Compile Include="마크\Marc_Plan_Sub_MarcEdit.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
@@ -566,11 +642,12 @@
<Compile Include="마크\Marc_memo.Designer.cs"> <Compile Include="마크\Marc_memo.Designer.cs">
<DependentUpon>Marc_memo.cs</DependentUpon> <DependentUpon>Marc_memo.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\Search_Infor_Sub.cs"> <Compile Include="마크\SearchInforItem.cs" />
<Compile Include="마크\Search_Infor2.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="마크\Search_Infor_Sub.Designer.cs"> <Compile Include="마크\Search_Infor2.Designer.cs">
<DependentUpon>Search_Infor_Sub.cs</DependentUpon> <DependentUpon>Search_Infor2.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\SHDocVw.cs" /> <Compile Include="마크\SHDocVw.cs" />
<Compile Include="마크\ShowDeleteMarc.cs"> <Compile Include="마크\ShowDeleteMarc.cs">
@@ -1029,9 +1106,18 @@
<EmbeddedResource Include="개발자용\fDevDB.resx"> <EmbeddedResource Include="개발자용\fDevDB.resx">
<DependentUpon>fDevDB.cs</DependentUpon> <DependentUpon>fDevDB.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="납품관리\Book_Lookup2.resx">
<DependentUpon>Book_Lookup2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="납품관리\Order_input_Search2.resx">
<DependentUpon>Order_input_Search2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마스터\From_User_manage_List.resx"> <EmbeddedResource Include="마스터\From_User_manage_List.resx">
<DependentUpon>From_User_manage_List.cs</DependentUpon> <DependentUpon>From_User_manage_List.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\AddMarc2.resx">
<DependentUpon>AddMarc2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\AddMarc.resx"> <EmbeddedResource Include="마크\AddMarc.resx">
<DependentUpon>AddMarc.cs</DependentUpon> <DependentUpon>AddMarc.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -1062,15 +1148,36 @@
<EmbeddedResource Include="마크\Check_Copy_Sub_Selector.resx"> <EmbeddedResource Include="마크\Check_Copy_Sub_Selector.resx">
<DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon> <DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN2.resx">
<DependentUpon>Check_ISBN2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN_ItemEdit.resx">
<DependentUpon>Check_ISBN_ItemEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN_Sub2.resx">
<DependentUpon>Check_ISBN_Sub2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN_Yes242.resx">
<DependentUpon>Check_ISBN_Yes242.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Help_007.resx"> <EmbeddedResource Include="마크\Help_007.resx">
<DependentUpon>Help_007.cs</DependentUpon> <DependentUpon>Help_007.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Help_008.resx"> <EmbeddedResource Include="마크\Help_008.resx">
<DependentUpon>Help_008.cs</DependentUpon> <DependentUpon>Help_008.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Mac_List_Add2.resx">
<DependentUpon>Mac_List_Add2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Mac_List_Add.resx"> <EmbeddedResource Include="마크\Mac_List_Add.resx">
<DependentUpon>Mac_List_Add.cs</DependentUpon> <DependentUpon>Mac_List_Add.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Mac_List_Edit.resx">
<DependentUpon>Mac_List_Edit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\MarcCopySelect2.resx">
<DependentUpon>MarcCopySelect2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\MarcCopySelect.resx"> <EmbeddedResource Include="마크\MarcCopySelect.resx">
<DependentUpon>MarcCopySelect.cs</DependentUpon> <DependentUpon>MarcCopySelect.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -1080,6 +1187,9 @@
<EmbeddedResource Include="마크\MarcEditorControl.resx"> <EmbeddedResource Include="마크\MarcEditorControl.resx">
<DependentUpon>MarcEditorControl.cs</DependentUpon> <DependentUpon>MarcEditorControl.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Marc_CopyForm.resx">
<DependentUpon>Marc_CopyForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_FillBlank.resx"> <EmbeddedResource Include="마크\Marc_FillBlank.resx">
<DependentUpon>Marc_FillBlank.cs</DependentUpon> <DependentUpon>Marc_FillBlank.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -1134,6 +1244,9 @@
<EmbeddedResource Include="마크\Mac_Stat_Stat.resx"> <EmbeddedResource Include="마크\Mac_Stat_Stat.resx">
<DependentUpon>Mac_Stat_Stat.cs</DependentUpon> <DependentUpon>Mac_Stat_Stat.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Marc_mkList2.resx">
<DependentUpon>Marc_mkList2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_mkList.resx"> <EmbeddedResource Include="마크\Marc_mkList.resx">
<DependentUpon>Marc_mkList.cs</DependentUpon> <DependentUpon>Marc_mkList.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -1146,8 +1259,8 @@
<EmbeddedResource Include="마크\Marc_Plan_PrintLabel.resx"> <EmbeddedResource Include="마크\Marc_Plan_PrintLabel.resx">
<DependentUpon>Marc_Plan_PrintLabel.cs</DependentUpon> <DependentUpon>Marc_Plan_PrintLabel.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Plan_Sub_MarcEdit2.resx"> <EmbeddedResource Include="마크\fMarc_Editor.resx">
<DependentUpon>Marc_Plan_Sub_MarcEdit2.cs</DependentUpon> <DependentUpon>fMarc_Editor.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Plan_Sub_MarcEdit.resx"> <EmbeddedResource Include="마크\Marc_Plan_Sub_MarcEdit.resx">
<DependentUpon>Marc_Plan_Sub_MarcEdit.cs</DependentUpon> <DependentUpon>Marc_Plan_Sub_MarcEdit.cs</DependentUpon>
@@ -1173,8 +1286,8 @@
<EmbeddedResource Include="마크\Marc_memo.resx"> <EmbeddedResource Include="마크\Marc_memo.resx">
<DependentUpon>Marc_memo.cs</DependentUpon> <DependentUpon>Marc_memo.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\Search_Infor_Sub.resx"> <EmbeddedResource Include="마크\Search_Infor2.resx">
<DependentUpon>Search_Infor_Sub.cs</DependentUpon> <DependentUpon>Search_Infor2.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\ShowDeleteMarc.resx"> <EmbeddedResource Include="마크\ShowDeleteMarc.resx">
<DependentUpon>ShowDeleteMarc.cs</DependentUpon> <DependentUpon>ShowDeleteMarc.cs</DependentUpon>

View File

@@ -1,4 +1,4 @@
namespace UniMarc. namespace UniMarc
{ {
partial class fDevDB partial class fDevDB
{ {

View File

@@ -8,9 +8,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc. namespace UniMarc
{ {
public partial class fDevDB : Form public partial class fDevDB : Form
{ {

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Book_Lookup partial class Book_Lookup
{ {

View File

@@ -9,10 +9,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Mac;
using WindowsFormsApp1.;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Book_Lookup : Form public partial class Book_Lookup : Form
{ {
@@ -22,7 +20,6 @@ namespace WindowsFormsApp1.Delivery
List_Lookup ll; List_Lookup ll;
Bring_Back bb; Bring_Back bb;
Check_ISBN cisbn; Check_ISBN cisbn;
string compidx;
string list_name; string list_name;
int idx; int idx;
public Book_Lookup(Order_input _oin) public Book_Lookup(Order_input _oin)
@@ -30,35 +27,30 @@ namespace WindowsFormsApp1.Delivery
InitializeComponent(); InitializeComponent();
oin = _oin; oin = _oin;
idx = oin.grididx; idx = oin.grididx;
compidx = oin.compidx;
} }
public Book_Lookup(Purchase _pur) public Book_Lookup(Purchase _pur)
{ {
InitializeComponent(); InitializeComponent();
pur = _pur; pur = _pur;
idx = pur.grididx; idx = pur.grididx;
compidx = pur.compidx;
} }
public Book_Lookup(List_Lookup _ll) public Book_Lookup(List_Lookup _ll)
{ {
InitializeComponent(); InitializeComponent();
ll = _ll; ll = _ll;
idx = ll.grididx; idx = ll.grididx;
compidx = ll.compidx;
} }
public Book_Lookup(Bring_Back _bb) public Book_Lookup(Bring_Back _bb)
{ {
InitializeComponent(); InitializeComponent();
bb = _bb; bb = _bb;
idx = bb.grididx; idx = bb.grididx;
compidx = bb.compidx;
} }
public Book_Lookup(Check_ISBN _isbn) public Book_Lookup(Check_ISBN _isbn)
{ {
InitializeComponent(); InitializeComponent();
cisbn = _isbn; cisbn = _isbn;
idx = cisbn.rowidx; idx = cisbn.rowidx;
compidx = cisbn.compidx;
} }
private void Book_Lookup_Load(object sender, EventArgs e) private void Book_Lookup_Load(object sender, EventArgs e)
{ {
@@ -72,7 +64,7 @@ namespace WindowsFormsApp1.Delivery
* idx 도서명 저자 출판사 isbn * idx 도서명 저자 출판사 isbn
* 정가 수량 입고수 합계금액 비고 * 정가 수량 입고수 합계금액 비고
* 주문처 주문일자 */ * 주문처 주문일자 */
string[] List_book = { compidx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text, string[] List_book = { PUB.user.CompanyIdx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text, tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text,
tb_order1.Text, tb_order_date.Text, tb_List_name.Text }; tb_order1.Text, tb_order_date.Text, tb_List_name.Text };
} }
@@ -81,7 +73,7 @@ namespace WindowsFormsApp1.Delivery
string Area = "`order`, `pay`, `count`, `persent`, " + // 0-3 string Area = "`order`, `pay`, `count`, `persent`, " + // 0-3
"`order_date`, `import_date`, `chk_date`, `export_date`"; // 4-7 "`order_date`, `import_date`, `chk_date`, `export_date`"; // 4-7
string[] Search_col = { "compidx", "list_name", "book_name", "author", "book_comp" }; string[] Search_col = { "compidx", "list_name", "book_name", "author", "book_comp" };
string[] Search_data = { compidx, tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text }; string[] Search_data = { PUB.user.CompanyIdx, tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
string cmd = db.More_DB_Search("Obj_List_Book", Search_col, Search_data, Area); string cmd = db.More_DB_Search("Obj_List_Book", Search_col, Search_data, Area);
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
string[] db_data = db_res.Split('|'); string[] db_data = db_res.Split('|');
@@ -125,7 +117,7 @@ namespace WindowsFormsApp1.Delivery
"`total`, `header`, `num`, `order`, `etc`, " + "`total`, `header`, `num`, `order`, `etc`, " +
"`input_count`, `order_date`, `list_name`, `idx`"; "`input_count`, `order_date`, `list_name`, `idx`";
string[] data = { compidx, book_name, author, book_comp, list_name }; string[] data = { PUB.user.CompanyIdx, book_name, author, book_comp, list_name };
string[] table = { "compidx", "book_name", "author", "book_comp", "list_name" }; string[] table = { "compidx", "book_name", "author", "book_comp", "list_name" };
string cmd = db.More_DB_Search("Obj_List_Book", table, data, search); string cmd = db.More_DB_Search("Obj_List_Book", table, data, search);
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
@@ -138,7 +130,7 @@ namespace WindowsFormsApp1.Delivery
"`total`, `header`, `num`, `order`, `etc`, " + "`total`, `header`, `num`, `order`, `etc`, " +
"`input_count`, `order_date`, `list_name`, `idx`"; "`input_count`, `order_date`, `list_name`, `idx`";
string[] data = { compidx, idx }; string[] data = { PUB.user.CompanyIdx, idx };
string[] table = { "compidx", "idx" }; string[] table = { "compidx", "idx" };
string cmd = db.More_DB_Search("Obj_List_Book", table, data, search); string cmd = db.More_DB_Search("Obj_List_Book", table, data, search);
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
@@ -169,7 +161,7 @@ namespace WindowsFormsApp1.Delivery
private void list_db() private void list_db()
{ {
string[] where_table = { "comp_num", "list_name" }; string[] where_table = { "comp_num", "list_name" };
string[] search_data = { compidx, list_name }; string[] search_data = { PUB.user.CompanyIdx, list_name };
string cmd = db.More_DB_Search("Obj_List", where_table, search_data, string cmd = db.More_DB_Search("Obj_List", where_table, search_data,
"`clt`, `dly`, `charge`, `date`, `date_res`"); "`clt`, `dly`, `charge`, `date`, `date_res`");
cmd = db.DB_Send_CMD_Search(cmd); cmd = db.DB_Send_CMD_Search(cmd);
@@ -186,7 +178,7 @@ namespace WindowsFormsApp1.Delivery
private string isbn() private string isbn()
{ {
string[] where_table = { "compidx", "list_name", "book_name", "author", "book_comp" }; string[] where_table = { "compidx", "list_name", "book_name", "author", "book_comp" };
string[] search_data = { compidx, string[] search_data = { PUB.user.CompanyIdx,
list_name, tb_book_name.Text, tb_author.Text, tb_book_comp.Text }; list_name, tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
string cmd = db.More_DB_Search("Obj_List_Book", where_table, search_data, "`isbn`"); string cmd = db.More_DB_Search("Obj_List_Book", where_table, search_data, "`isbn`");
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
@@ -211,14 +203,14 @@ namespace WindowsFormsApp1.Delivery
"pay", "count", "input_count", "total", "etc", "pay", "count", "input_count", "total", "etc",
"order", "order_date", "list_name" }; "order", "order_date", "list_name" };
string[] List_book = { string[] List_book = {
compidx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text, PUB.user.CompanyIdx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text, tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text,
tb_order1.Text, tb_order_date.Text, tb_List_name.Text }; tb_order1.Text, tb_order_date.Text, tb_List_name.Text };
string[] idx_table = { "idx" }; string[] idx_table = { "idx" };
string[] idx_col = { lbl_idx.Text }; string[] idx_col = { lbl_idx.Text };
string U_cmd = db.More_Update("Obj_List_Book", Table, List_book, idx_table, idx_col); string U_cmd = db.More_Update("Obj_List_Book", Table, List_book, idx_table, idx_col);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("저장되었습니다."); MessageBox.Show("저장되었습니다.");
} }
private void btn_close_Click(object sender, EventArgs e) private void btn_close_Click(object sender, EventArgs e)
@@ -232,10 +224,10 @@ namespace WindowsFormsApp1.Delivery
string[] edit_tbl = { "input_count", "import", "import_date" }; string[] edit_tbl = { "input_count", "import", "import_date" };
string[] edit_col = { tb_stock.Text, "입고", DateTime.Today.ToString("yyyy-MM-dd") }; string[] edit_col = { tb_stock.Text, "입고", DateTime.Today.ToString("yyyy-MM-dd") };
string[] search_tbl = { "compidx", "list_name", "book_name", "author", "book_comp", "isbn" }; string[] search_tbl = { "compidx", "list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_col = { compidx, string[] search_col = { PUB.user.CompanyIdx,
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text }; tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col); string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 입고처리되었습니다."); MessageBox.Show(tb_book_name.Text + "가 입고처리되었습니다.");
mk_Grid(); mk_Grid();
} }
@@ -248,10 +240,10 @@ namespace WindowsFormsApp1.Delivery
string[] edit_col = { tb_stock.Text, "미입고", "" }; string[] edit_col = { tb_stock.Text, "미입고", "" };
string[] search_tbl = { "compidx", string[] search_tbl = { "compidx",
"list_name", "book_name", "author", "book_comp", "isbn" }; "list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_col = { compidx, string[] search_col = { PUB.user.CompanyIdx,
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text }; tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col); string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 미입고처리되었습니다."); MessageBox.Show(tb_book_name.Text + "가 미입고처리되었습니다.");
mk_Grid(); mk_Grid();

View File

@@ -0,0 +1,679 @@
namespace UniMarc
{
partial class Book_Lookup2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_idx = new System.Windows.Forms.Label();
this.tb_isbn = new System.Windows.Forms.TextBox();
this.tb_order_idx = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.tb_etc = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.tb_num = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.tb_order1 = new System.Windows.Forms.TextBox();
this.tb_charge = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.tb_total = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.tb_pay = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.tb_stock = new System.Windows.Forms.TextBox();
this.tb_count = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.tb_order_date = new System.Windows.Forms.TextBox();
this.tb_book_comp = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.tb_author = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.tb_book_name = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_date = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.btn_stock = new System.Windows.Forms.Button();
this.btn_order_ccl = new System.Windows.Forms.Button();
this.btn_order = new System.Windows.Forms.Button();
this.btn_close = new System.Windows.Forms.Button();
this.btn_save = new System.Windows.Forms.Button();
this.btn_printLine = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.tb_List_name = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.tb_date_res = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_unstock = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.lbl_idx);
this.panel1.Controls.Add(this.tb_isbn);
this.panel1.Controls.Add(this.tb_order_idx);
this.panel1.Controls.Add(this.label9);
this.panel1.Controls.Add(this.tb_etc);
this.panel1.Controls.Add(this.label10);
this.panel1.Controls.Add(this.tb_num);
this.panel1.Controls.Add(this.label17);
this.panel1.Controls.Add(this.label20);
this.panel1.Controls.Add(this.tb_order1);
this.panel1.Controls.Add(this.tb_charge);
this.panel1.Controls.Add(this.label12);
this.panel1.Controls.Add(this.tb_total);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.tb_pay);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.tb_stock);
this.panel1.Controls.Add(this.tb_count);
this.panel1.Controls.Add(this.label13);
this.panel1.Controls.Add(this.label22);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.tb_order_date);
this.panel1.Controls.Add(this.tb_book_comp);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.tb_author);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.tb_book_name);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(9, 106);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(648, 199);
this.panel1.TabIndex = 0;
//
// lbl_idx
//
this.lbl_idx.AutoSize = true;
this.lbl_idx.Location = new System.Drawing.Point(212, 10);
this.lbl_idx.Name = "lbl_idx";
this.lbl_idx.Size = new System.Drawing.Size(62, 12);
this.lbl_idx.TabIndex = 2;
this.lbl_idx.Text = "idx 들어감";
//
// tb_isbn
//
this.tb_isbn.Location = new System.Drawing.Point(414, 7);
this.tb_isbn.Name = "tb_isbn";
this.tb_isbn.Size = new System.Drawing.Size(215, 21);
this.tb_isbn.TabIndex = 1;
this.tb_isbn.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_order_idx
//
this.tb_order_idx.BackColor = System.Drawing.SystemColors.Control;
this.tb_order_idx.Enabled = false;
this.tb_order_idx.Location = new System.Drawing.Point(214, 168);
this.tb_order_idx.Name = "tb_order_idx";
this.tb_order_idx.Size = new System.Drawing.Size(43, 21);
this.tb_order_idx.TabIndex = 1;
this.tb_order_idx.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label9
//
this.label9.AutoSize = true;
this.label9.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label9.Location = new System.Drawing.Point(374, 11);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(33, 12);
this.label9.TabIndex = 0;
this.label9.Text = "ISBN";
//
// tb_etc
//
this.tb_etc.Location = new System.Drawing.Point(69, 141);
this.tb_etc.Name = "tb_etc";
this.tb_etc.Size = new System.Drawing.Size(560, 21);
this.tb_etc.TabIndex = 1;
this.tb_etc.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label10
//
this.label10.AutoSize = true;
this.label10.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label10.Location = new System.Drawing.Point(22, 10);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(29, 12);
this.label10.TabIndex = 0;
this.label10.Text = "번호";
//
// tb_num
//
this.tb_num.BackColor = System.Drawing.SystemColors.Control;
this.tb_num.Enabled = false;
this.tb_num.Location = new System.Drawing.Point(69, 6);
this.tb_num.Name = "tb_num";
this.tb_num.Size = new System.Drawing.Size(124, 21);
this.tb_num.TabIndex = 1;
this.tb_num.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label17
//
this.label17.AutoSize = true;
this.label17.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label17.Location = new System.Drawing.Point(22, 145);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(29, 12);
this.label17.TabIndex = 0;
this.label17.Text = "비고";
//
// label20
//
this.label20.AutoSize = true;
this.label20.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label20.Location = new System.Drawing.Point(14, 172);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(41, 12);
this.label20.TabIndex = 0;
this.label20.Text = "주문처";
//
// tb_order1
//
this.tb_order1.Location = new System.Drawing.Point(69, 168);
this.tb_order1.Name = "tb_order1";
this.tb_order1.Size = new System.Drawing.Size(139, 21);
this.tb_order1.TabIndex = 1;
this.tb_order1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_charge
//
this.tb_charge.BackColor = System.Drawing.SystemColors.Control;
this.tb_charge.Enabled = false;
this.tb_charge.Location = new System.Drawing.Point(487, 87);
this.tb_charge.Name = "tb_charge";
this.tb_charge.Size = new System.Drawing.Size(142, 21);
this.tb_charge.TabIndex = 1;
this.tb_charge.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label12
//
this.label12.AutoSize = true;
this.label12.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label12.Location = new System.Drawing.Point(430, 91);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(41, 12);
this.label12.TabIndex = 0;
this.label12.Text = "담당자";
//
// tb_total
//
this.tb_total.Location = new System.Drawing.Point(487, 114);
this.tb_total.Name = "tb_total";
this.tb_total.Size = new System.Drawing.Size(142, 21);
this.tb_total.TabIndex = 1;
this.tb_total.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label6
//
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label6.Location = new System.Drawing.Point(424, 118);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(53, 12);
this.label6.TabIndex = 0;
this.label6.Text = "합계금액";
//
// tb_pay
//
this.tb_pay.Location = new System.Drawing.Point(69, 114);
this.tb_pay.Name = "tb_pay";
this.tb_pay.Size = new System.Drawing.Size(124, 21);
this.tb_pay.TabIndex = 1;
this.tb_pay.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label5
//
this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label5.Location = new System.Drawing.Point(22, 118);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(29, 12);
this.label5.TabIndex = 0;
this.label5.Text = "정가";
//
// tb_stock
//
this.tb_stock.Location = new System.Drawing.Point(357, 114);
this.tb_stock.Name = "tb_stock";
this.tb_stock.Size = new System.Drawing.Size(57, 21);
this.tb_stock.TabIndex = 1;
this.tb_stock.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_count
//
this.tb_count.Location = new System.Drawing.Point(242, 114);
this.tb_count.Name = "tb_count";
this.tb_count.Size = new System.Drawing.Size(57, 21);
this.tb_count.TabIndex = 1;
this.tb_count.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label13
//
this.label13.AutoSize = true;
this.label13.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label13.Location = new System.Drawing.Point(314, 118);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(41, 12);
this.label13.TabIndex = 0;
this.label13.Text = "입고수";
//
// label22
//
this.label22.AutoSize = true;
this.label22.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label22.Location = new System.Drawing.Point(349, 172);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(53, 12);
this.label22.TabIndex = 0;
this.label22.Text = "주문일자";
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label4.Location = new System.Drawing.Point(211, 118);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 12);
this.label4.TabIndex = 0;
this.label4.Text = "수량";
//
// tb_order_date
//
this.tb_order_date.BackColor = System.Drawing.SystemColors.Control;
this.tb_order_date.Enabled = false;
this.tb_order_date.Location = new System.Drawing.Point(409, 168);
this.tb_order_date.Name = "tb_order_date";
this.tb_order_date.Size = new System.Drawing.Size(220, 21);
this.tb_order_date.TabIndex = 1;
this.tb_order_date.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_book_comp
//
this.tb_book_comp.Location = new System.Drawing.Point(69, 87);
this.tb_book_comp.Name = "tb_book_comp";
this.tb_book_comp.Size = new System.Drawing.Size(345, 21);
this.tb_book_comp.TabIndex = 1;
this.tb_book_comp.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label3.Location = new System.Drawing.Point(16, 91);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.TabIndex = 0;
this.label3.Text = "출판사";
//
// tb_author
//
this.tb_author.Location = new System.Drawing.Point(69, 60);
this.tb_author.Name = "tb_author";
this.tb_author.Size = new System.Drawing.Size(345, 21);
this.tb_author.TabIndex = 1;
this.tb_author.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label2.Location = new System.Drawing.Point(22, 64);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 0;
this.label2.Text = "저자";
//
// tb_book_name
//
this.tb_book_name.Location = new System.Drawing.Point(69, 33);
this.tb_book_name.Name = "tb_book_name";
this.tb_book_name.Size = new System.Drawing.Size(560, 21);
this.tb_book_name.TabIndex = 1;
this.tb_book_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label1.Location = new System.Drawing.Point(16, 37);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 0;
this.label1.Text = "도서명";
//
// tb_date
//
this.tb_date.Enabled = false;
this.tb_date.Location = new System.Drawing.Point(69, 34);
this.tb_date.Name = "tb_date";
this.tb_date.Size = new System.Drawing.Size(230, 21);
this.tb_date.TabIndex = 1;
this.tb_date.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label7
//
this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label7.Location = new System.Drawing.Point(10, 38);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(53, 12);
this.label7.TabIndex = 0;
this.label7.Text = "목록일자";
//
// btn_stock
//
this.btn_stock.Location = new System.Drawing.Point(90, 6);
this.btn_stock.Name = "btn_stock";
this.btn_stock.Size = new System.Drawing.Size(75, 23);
this.btn_stock.TabIndex = 3;
this.btn_stock.Text = "입고처리";
this.btn_stock.UseVisualStyleBackColor = true;
this.btn_stock.Click += new System.EventHandler(this.btn_stock_Click);
//
// btn_order_ccl
//
this.btn_order_ccl.Location = new System.Drawing.Point(171, 6);
this.btn_order_ccl.Name = "btn_order_ccl";
this.btn_order_ccl.Size = new System.Drawing.Size(75, 23);
this.btn_order_ccl.TabIndex = 3;
this.btn_order_ccl.Text = "주문취소";
this.btn_order_ccl.UseVisualStyleBackColor = true;
this.btn_order_ccl.Click += new System.EventHandler(this.btn_order_ccl_Click);
//
// btn_order
//
this.btn_order.Location = new System.Drawing.Point(252, 6);
this.btn_order.Name = "btn_order";
this.btn_order.Size = new System.Drawing.Size(75, 23);
this.btn_order.TabIndex = 3;
this.btn_order.Text = "주문처리";
this.btn_order.UseVisualStyleBackColor = true;
this.btn_order.Click += new System.EventHandler(this.btn_order_Click);
//
// btn_close
//
this.btn_close.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_close.Location = new System.Drawing.Point(564, 6);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 3;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// btn_save
//
this.btn_save.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_save.Location = new System.Drawing.Point(483, 6);
this.btn_save.Name = "btn_save";
this.btn_save.Size = new System.Drawing.Size(75, 23);
this.btn_save.TabIndex = 3;
this.btn_save.Text = "저 장";
this.btn_save.UseVisualStyleBackColor = true;
this.btn_save.Click += new System.EventHandler(this.btn_save_Click);
//
// btn_printLine
//
this.btn_printLine.Location = new System.Drawing.Point(333, 6);
this.btn_printLine.Name = "btn_printLine";
this.btn_printLine.Size = new System.Drawing.Size(75, 23);
this.btn_printLine.TabIndex = 3;
this.btn_printLine.Text = "띠지출력";
this.btn_printLine.UseVisualStyleBackColor = true;
this.btn_printLine.Visible = false;
this.btn_printLine.Click += new System.EventHandler(this.btn_printLine_Click);
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.tb_List_name);
this.panel2.Controls.Add(this.label11);
this.panel2.Controls.Add(this.tb_date_res);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.tb_date);
this.panel2.Controls.Add(this.label7);
this.panel2.Location = new System.Drawing.Point(9, 36);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(648, 64);
this.panel2.TabIndex = 4;
//
// tb_List_name
//
this.tb_List_name.Enabled = false;
this.tb_List_name.Location = new System.Drawing.Point(69, 7);
this.tb_List_name.Name = "tb_List_name";
this.tb_List_name.Size = new System.Drawing.Size(560, 21);
this.tb_List_name.TabIndex = 1;
this.tb_List_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label11
//
this.label11.AutoSize = true;
this.label11.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label11.Location = new System.Drawing.Point(16, 11);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(41, 12);
this.label11.TabIndex = 0;
this.label11.Text = "목록명";
//
// tb_date_res
//
this.tb_date_res.Enabled = false;
this.tb_date_res.Location = new System.Drawing.Point(399, 34);
this.tb_date_res.Name = "tb_date_res";
this.tb_date_res.Size = new System.Drawing.Size(230, 21);
this.tb_date_res.TabIndex = 1;
this.tb_date_res.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label8
//
this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label8.Location = new System.Drawing.Point(340, 38);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(53, 12);
this.label8.TabIndex = 0;
this.label8.Text = "완료일자";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
this.dataGridView1.AllowUserToResizeRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3,
this.Column4,
this.Column5,
this.Column6});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(9, 311);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 15;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(648, 190);
this.dataGridView1.TabIndex = 5;
//
// Column1
//
this.Column1.HeaderText = "처리일자";
this.Column1.Name = "Column1";
//
// Column2
//
this.Column2.HeaderText = "구분";
this.Column2.Name = "Column2";
//
// Column3
//
this.Column3.HeaderText = "거래처명";
this.Column3.Name = "Column3";
this.Column3.Width = 250;
//
// Column4
//
this.Column4.HeaderText = "단가";
this.Column4.Name = "Column4";
this.Column4.Width = 80;
//
// Column5
//
this.Column5.HeaderText = "수량";
this.Column5.Name = "Column5";
this.Column5.Width = 40;
//
// Column6
//
this.Column6.HeaderText = "%";
this.Column6.Name = "Column6";
this.Column6.Width = 40;
//
// btn_unstock
//
this.btn_unstock.Location = new System.Drawing.Point(9, 6);
this.btn_unstock.Name = "btn_unstock";
this.btn_unstock.Size = new System.Drawing.Size(75, 23);
this.btn_unstock.TabIndex = 6;
this.btn_unstock.Text = "미입고처리";
this.btn_unstock.UseVisualStyleBackColor = true;
this.btn_unstock.Click += new System.EventHandler(this.btn_unstock_Click);
//
// Book_Lookup
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(667, 510);
this.Controls.Add(this.btn_unstock);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.btn_save);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.btn_printLine);
this.Controls.Add(this.btn_order);
this.Controls.Add(this.btn_order_ccl);
this.Controls.Add(this.btn_stock);
this.Controls.Add(this.panel1);
this.Name = "Book_Lookup";
this.Text = "도서 정보";
this.Load += new System.EventHandler(this.Book_Lookup_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox tb_isbn;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox tb_etc;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.TextBox tb_charge;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox tb_num;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox tb_date;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox tb_total;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox tb_pay;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tb_count;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox tb_book_comp;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox tb_author;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox tb_book_name;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox tb_order_idx;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.TextBox tb_order1;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.TextBox tb_order_date;
private System.Windows.Forms.Button btn_stock;
private System.Windows.Forms.Button btn_order_ccl;
private System.Windows.Forms.Button btn_order;
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.Button btn_save;
private System.Windows.Forms.Button btn_printLine;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox tb_date_res;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox tb_List_name;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.TextBox tb_stock;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label lbl_idx;
private System.Windows.Forms.Button btn_unstock;
}
}

View File

@@ -0,0 +1,320 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Printing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public partial class Book_Lookup2 : Form
{
Helper_DB db = new Helper_DB();
Order_input oin;
Purchase pur;
List_Lookup ll;
Bring_Back bb;
Check_ISBN2 cisbn;
string list_name;
int idx;
public Book_Lookup2(Order_input _oin)
{
InitializeComponent();
oin = _oin;
idx = oin.grididx;
}
public Book_Lookup2(Purchase _pur)
{
InitializeComponent();
pur = _pur;
idx = pur.grididx;
}
public Book_Lookup2(List_Lookup _ll)
{
InitializeComponent();
ll = _ll;
idx = ll.grididx;
}
public Book_Lookup2(Bring_Back _bb)
{
InitializeComponent();
bb = _bb;
idx = bb.grididx;
}
public Book_Lookup2(Check_ISBN2 _isbn)
{
InitializeComponent();
cisbn = _isbn;
idx = cisbn.rowidx;
}
private void Book_Lookup_Load(object sender, EventArgs e)
{
db.DBcon();
tb_isbn.Text = isbn();
list_db();
this.Text = "도서 정보 - 『" + tb_book_name.Text + "』";
mk_Grid();
/* Obj_List_Book
* idx 도서명 저자 출판사 isbn
* 정가 수량 입고수 합계금액 비고
* 주문처 주문일자 */
string[] List_book = { PUB.user.CompanyIdx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text,
tb_order1.Text, tb_order_date.Text, tb_List_name.Text };
}
private void mk_Grid()
{
string Area = "`order`, `pay`, `count`, `persent`, " + // 0-3
"`order_date`, `import_date`, `chk_date`, `export_date`"; // 4-7
string[] Search_col = { "compidx", "list_name", "book_name", "author", "book_comp" };
string[] Search_data = { PUB.user.CompanyIdx, tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
string cmd = db.More_DB_Search("Obj_List_Book", Search_col, Search_data, Area);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] db_data = db_res.Split('|');
string[] add_grid = { "", "", db_data[0], db_data[1], db_data[2], db_data[3] };
// 처리일자 구분 거래처명 단가 수량 %
if (db_data[4] != "") {
add_grid[0] = db_data[4];
add_grid[1] = "주문";
dataGridView1.Rows.Add(add_grid);
}
if (db_data[5] != "") {
add_grid[0] = db_data[5];
add_grid[1] = "입고";
btn_printLine.Visible = true;
dataGridView1.Rows.Add(add_grid);
}
if (db_data[6] != "") {
add_grid[0] = db_data[6];
add_grid[1] = "검수";
dataGridView1.Rows.Add(add_grid);
}
if (db_data[7] != "") {
add_grid[0] = db_data[7];
add_grid[1] = "출고";
dataGridView1.Rows.Add(add_grid);
}
}
/// <summary>
/// 폼에 들어갈 데이터를 사전에 준비하여야함.
/// </summary>
/// <param name="book_name"></param>
/// <param name="author"></param>
/// <param name="book_comp"></param>
/// <param name="list_name"></param>
public void Lookup_Load(string book_name, string author, string book_comp, string list_name)
{
this.list_name = list_name;
db.DBcon();
string search = "`book_name`, `author`, `book_comp`, `count`, `pay`, " +
"`total`, `header`, `num`, `order`, `etc`, " +
"`input_count`, `order_date`, `list_name`, `idx`";
string[] data = { PUB.user.CompanyIdx, book_name, author, book_comp, list_name };
string[] table = { "compidx", "book_name", "author", "book_comp", "list_name" };
string cmd = db.More_DB_Search("Obj_List_Book", table, data, search);
string db_res = db.DB_Send_CMD_Search(cmd);
mk_Lookup(db_res);
}
public void Lookup_Load_tmp(string idx)
{
db.DBcon();
string search = "`book_name`, `author`, `book_comp`, `count`, `pay`, " +
"`total`, `header`, `num`, `order`, `etc`, " +
"`input_count`, `order_date`, `list_name`, `idx`";
string[] data = { PUB.user.CompanyIdx, idx };
string[] table = { "compidx", "idx" };
string cmd = db.More_DB_Search("Obj_List_Book", table, data, search);
string db_res = db.DB_Send_CMD_Search(cmd);
mk_Lookup(db_res);
}
private void mk_Lookup(string values)
{
string[] data = values.Split('|');
tb_book_name.Text = data[0];
tb_author.Text = data[1];
tb_book_comp.Text = data[2];
tb_count.Text = data[3];
tb_pay.Text = data[4];
tb_total.Text = data[5];
tb_num.Text = data[6] + " " + data[7];
tb_order1.Text = data[8];
tb_etc.Text = data[9];
tb_stock.Text = data[10];
if (data[11].Length < 3) { tb_order_date.Text = ""; }
else { tb_order_date.Text = data[11].Substring(0, 10); }
this.list_name = data[12];
lbl_idx.Text = data[13];
}
/// <summary>
/// 목록db에서 불러온 값을 적용시키는 함수
/// </summary>
private void list_db()
{
string[] where_table = { "comp_num", "list_name" };
string[] search_data = { PUB.user.CompanyIdx, list_name };
string cmd = db.More_DB_Search("Obj_List", where_table, search_data,
"`clt`, `dly`, `charge`, `date`, `date_res`");
cmd = db.DB_Send_CMD_Search(cmd);
string[] data = cmd.Split('|');
tb_List_name.Text = list_name;
tb_charge.Text = data[2];
tb_date.Text = data[3];
tb_date_res.Text = data[4];
}
/// <summary>
/// 목록도서DB에 저장된 isbn값을 가져오는 함수.
/// </summary>
/// <returns></returns>
private string isbn()
{
string[] where_table = { "compidx", "list_name", "book_name", "author", "book_comp" };
string[] search_data = { PUB.user.CompanyIdx,
list_name, tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
string cmd = db.More_DB_Search("Obj_List_Book", where_table, search_data, "`isbn`");
string db_res = db.DB_Send_CMD_Search(cmd);
db_res = db_res.Replace("|", "");
return db_res;
}
private void Book_Lookup_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
btn_close_Click(null, null);
}
}
private void btn_save_Click(object sender, EventArgs e)
{
/* Obj_List_Book
* idx 도서명 저자 출판사 isbn
* 정가 수량 입고수 합계금액 비고
* 주문처 주문일자 */
string[] Table = {
"compidx", "book_name", "author", "book_comp", "isbn",
"pay", "count", "input_count", "total", "etc",
"order", "order_date", "list_name" };
string[] List_book = {
PUB.user.CompanyIdx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text,
tb_order1.Text, tb_order_date.Text, tb_List_name.Text };
string[] idx_table = { "idx" };
string[] idx_col = { lbl_idx.Text };
string U_cmd = db.More_Update("Obj_List_Book", Table, List_book, idx_table, idx_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("저장되었습니다.");
}
private void btn_close_Click(object sender, EventArgs e)
{
Close();
}
private void btn_stock_Click(object sender, EventArgs e)
{
tb_stock.Text = tb_count.Text;
string[] edit_tbl = { "input_count", "import", "import_date" };
string[] edit_col = { tb_stock.Text, "입고", DateTime.Today.ToString("yyyy-MM-dd") };
string[] search_tbl = { "compidx", "list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_col = { PUB.user.CompanyIdx,
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 입고처리되었습니다.");
mk_Grid();
}
private void btn_unstock_Click(object sender, EventArgs e)
{
tb_stock.Text = "0";
string[] edit_tbl = { "input_count", "import", "import_date" };
string[] edit_col = { tb_stock.Text, "미입고", "" };
string[] search_tbl = { "compidx",
"list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_col = { PUB.user.CompanyIdx,
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 미입고처리되었습니다.");
mk_Grid();
}
private void btn_order_ccl_Click(object sender, EventArgs e)
{
tb_order1.Text = "";
tb_order_date.Text = "";
tb_order_idx.Text = "";
}
private void btn_order_Click(object sender, EventArgs e)
{
tb_order_date.Text = DateTime.Now.ToString("G").Substring(0, 10);
}
private void btn_printLine_Click(object sender, EventArgs e)
{
PrintDocument pd = new PrintDocument();
pd.DocumentName = "띠지 출력";
pd.DefaultPageSettings.Landscape = true;
pd.PrintPage += new PrintPageEventHandler(this.pd_Print_Page);
pd.Print();
}
#region PrintLine_Sub
private void pd_Print_Page(object sender, PrintPageEventArgs e)
{
string list_name = tb_List_name.Text.Replace("[", "");
list_name = list_name.Replace("]", "-");
string book_name = tb_book_name.Text;
string price = tb_pay.Text.Replace(",", "");
price = string.Format("{0:#,###}", Convert.ToInt32(price));
tb_pay.Text = price;
string[] text = { tb_num.Text, tb_count.Text, list_name, book_name, price, tb_book_comp.Text, tb_isbn.Text };
Graphics g = e.Graphics;
int xPos = 0;
int yPos = 0;
int MaxX = 133;
Pen p = new Pen(Color.Black);
Font title = new Font("굴림", 22, FontStyle.Bold);
Font count = new Font("굴림", 16, FontStyle.Bold);
Font list = new Font("굴림", 14, FontStyle.Regular);
Font book = new Font("굴림", 18, FontStyle.Regular);
Font price_f = new Font("굴림", 14, FontStyle.Regular);
RectangleF title_Area = new RectangleF(xPos, yPos, MaxX, 35);
yPos += 30;
RectangleF count_Area = new RectangleF(xPos, yPos, MaxX, 35);
yPos += 25;
RectangleF list_Area = new RectangleF(xPos, yPos, MaxX, 70);
yPos += 65;
RectangleF book_Area1 = new RectangleF(xPos, yPos, MaxX, 120);
yPos += 115;
RectangleF price_Area = new RectangleF(xPos, yPos, MaxX, 70);
//g.DrawLine(p, MaxX, 0, MaxX, yPos);
using (SolidBrush drawBrush = new SolidBrush(Color.Black))
{
g.DrawString(text[0], title, drawBrush, title_Area);
g.DrawString(text[1], count, drawBrush, count_Area);
g.DrawString(text[2], list, drawBrush, list_Area);
g.DrawString(text[3], book, drawBrush, book_Area1);
g.DrawString(text[4], price_f, drawBrush, price_Area);
}
}
#endregion
}
}

View File

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

View File

@@ -1,5 +1,5 @@
namespace WindowsFormsApp1. namespace UniMarc
{ {
partial class Bring_Back partial class Bring_Back
{ {

View File

@@ -7,13 +7,11 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Delivery;
namespace WindowsFormsApp1. namespace UniMarc
{ {
public partial class Bring_Back : Form public partial class Bring_Back : Form
{ {
public string compidx;
public int grididx; public int grididx;
Main main; Main main;
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
@@ -21,14 +19,13 @@ namespace WindowsFormsApp1.납품관리
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
compidx = main.com_idx;
} }
private void Bring_Back_Load(object sender, EventArgs e) private void Bring_Back_Load(object sender, EventArgs e)
{ {
db.DBcon(); db.DBcon();
string Area = "`list_name`"; string Area = "`list_name`";
string[] sear_col = { "comp_num", "state" }; string[] sear_col = { "comp_num", "state" };
string[] sear_data = { compidx, "진행" }; string[] sear_data = { PUB.user.CompanyIdx, "진행" };
string cmd = db.More_DB_Search("Obj_List", sear_col, sear_data, Area); string cmd = db.More_DB_Search("Obj_List", sear_col, sear_data, Area);
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
string[] arr_data = db_res.Split('|'); string[] arr_data = db_res.Split('|');
@@ -44,7 +41,7 @@ namespace WindowsFormsApp1.납품관리
string Area = "`idx`, `num`, `book_name`, `author`, `book_comp`, " + string Area = "`idx`, `num`, `book_name`, `author`, `book_comp`, " +
"`isbn`, `price`, `count`, `total`, `list_name`, `etc`"; "`isbn`, `price`, `count`, `total`, `list_name`, `etc`";
string[] sear_col = { "compidx", "list_name" }; string[] sear_col = { "compidx", "list_name" };
string[] sear_data = { compidx, cb_list_name.Text }; string[] sear_data = { PUB.user.CompanyIdx, cb_list_name.Text };
string cmd = db.More_DB_Search("Obj_List_Book", sear_col, sear_data, Area); string cmd = db.More_DB_Search("Obj_List_Book", sear_col, sear_data, Area);
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
string[] arr_data = db_res.Split('|'); string[] arr_data = db_res.Split('|');
@@ -92,11 +89,11 @@ namespace WindowsFormsApp1.납품관리
private void Return(int a) private void Return(int a)
{ {
string[] sear_col = { "idx", "compidx" }; string[] sear_col = { "idx", "compidx" };
string[] sear_data = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(), compidx }; string[] sear_data = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(), PUB.user.CompanyIdx };
string[] edit_col = { "import", "etc" }; string[] edit_col = { "import", "etc" };
string[] edit_data = { "미입고", "반품처리 " + dataGridView1.Rows[a].Cells["etc"].Value.ToString() }; string[] edit_data = { "미입고", "반품처리 " + dataGridView1.Rows[a].Cells["etc"].Value.ToString() };
string U_cmd = db.More_Update("Obj_List_Book", edit_col, edit_data, sear_col, sear_data); string U_cmd = db.More_Update("Obj_List_Book", edit_col, edit_data, sear_col, sear_data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
#endregion #endregion
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Commodity_Edit partial class Commodity_Edit
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Commodity_Edit : Form public partial class Commodity_Edit : Form
{ {
@@ -60,7 +60,7 @@ namespace WindowsFormsApp1.Delivery
string[] book_data = { date, New_Name.Text }; string[] book_data = { date, New_Name.Text };
string U_cmd = DB.More_Update("Obj_List_Book", book_col, book_data, book_search_col, book_search_data); string U_cmd = DB.More_Update("Obj_List_Book", book_col, book_data, book_search_col, book_search_data);
DB.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
//////////////////////////////////////// ////////////////////////////////////////
@@ -71,7 +71,7 @@ namespace WindowsFormsApp1.Delivery
string[] list_data = { date, New_Clit.Text, New_Dlv.Text, New_User.Text, New_Name.Text }; string[] list_data = { date, New_Clit.Text, New_Dlv.Text, New_User.Text, New_Name.Text };
U_cmd = DB.More_Update("Obj_List", list_col, list_data, list_search_col, list_search_data); U_cmd = DB.More_Update("Obj_List", list_col, list_data, list_search_col, list_search_data);
DB.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
Close(); Close();
} }

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Commodity_Morge partial class Commodity_Morge
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Commodity_Morge : Form public partial class Commodity_Morge : Form
{ {
@@ -99,7 +99,7 @@ namespace WindowsFormsApp1.Delivery
string cmd = ""; string cmd = "";
cmd = DB.More_Update("Obj_List_Book", up_col, up_data1, up_col, up_data2); cmd = DB.More_Update("Obj_List_Book", up_col, up_data1, up_col, up_data2);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
int cout1 = Convert.ToInt32(list1[7]); int cout1 = Convert.ToInt32(list1[7]);
int cout2 = Convert.ToInt32(list2[7]); int cout2 = Convert.ToInt32(list2[7]);
int cout = cout1 + cout2; int cout = cout1 + cout2;
@@ -111,17 +111,17 @@ namespace WindowsFormsApp1.Delivery
string[] edit_col = { "total", "compidx" }; string[] edit_col = { "total", "compidx" };
string[] edit_data = { tol.ToString(), com.comp_idx }; string[] edit_data = { tol.ToString(), com.comp_idx };
cmd = DB.More_Update("Obj_List_Marc", edit_col, edit_data, up_col, up_data1); cmd = DB.More_Update("Obj_List_Marc", edit_col, edit_data, up_col, up_data1);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
cmd = DB.DB_Delete_More_term("Obj_List_Marc", "compidx", com.comp_idx, up_col, up_data2); cmd = DB.DB_Delete_More_term("Obj_List_Marc", "compidx", com.comp_idx, up_col, up_data2);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
edit_col[1] = "vol"; edit_col[1] = "vol";
edit_data[1] = cout.ToString(); edit_data[1] = cout.ToString();
up_col[0] = "comp_num"; up_col[0] = "comp_num";
cmd = DB.More_Update("Obj_List", edit_col, edit_data, up_col, up_data1); cmd = DB.More_Update("Obj_List", edit_col, edit_data, up_col, up_data1);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
cmd = DB.DB_Delete_More_term("Obj_List", "comp_num", com.comp_idx, up_col, up_data2); cmd = DB.DB_Delete_More_term("Obj_List", "comp_num", com.comp_idx, up_col, up_data2);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
} }
/// <summary> /// <summary>
/// data1가 data2으로 적용됨. 1 => 2로 /// data1가 data2으로 적용됨. 1 => 2로
@@ -133,7 +133,7 @@ namespace WindowsFormsApp1.Delivery
string[] up_data2 = tmp2.ToArray(); string[] up_data2 = tmp2.ToArray();
string cmd = ""; string cmd = "";
cmd = DB.More_Update("Obj_List_Book", up_col, up_data2, up_col, up_data1); cmd = DB.More_Update("Obj_List_Book", up_col, up_data2, up_col, up_data1);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
int cout1 = Convert.ToInt32(list1[7]); int cout1 = Convert.ToInt32(list1[7]);
int cout2 = Convert.ToInt32(list2[7]); int cout2 = Convert.ToInt32(list2[7]);
int cout = cout1 + cout2; int cout = cout1 + cout2;
@@ -145,17 +145,17 @@ namespace WindowsFormsApp1.Delivery
string[] edit_col = { "total", "compidx" }; string[] edit_col = { "total", "compidx" };
string[] edit_data = { tol.ToString(), com.comp_idx }; string[] edit_data = { tol.ToString(), com.comp_idx };
cmd = DB.More_Update("Obj_List_Marc", edit_col, edit_data, up_col, up_data2); cmd = DB.More_Update("Obj_List_Marc", edit_col, edit_data, up_col, up_data2);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
cmd = DB.DB_Delete_More_term("Obj_List_Marc", "compidx", com.comp_idx, up_col, up_data1); cmd = DB.DB_Delete_More_term("Obj_List_Marc", "compidx", com.comp_idx, up_col, up_data1);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
edit_col[1] = "vol"; edit_col[1] = "vol";
edit_data[1] = cout.ToString(); edit_data[1] = cout.ToString();
up_col[0] = "comp_num"; up_col[0] = "comp_num";
cmd = DB.More_Update("Obj_List", edit_col, edit_data, up_col, up_data2); cmd = DB.More_Update("Obj_List", edit_col, edit_data, up_col, up_data2);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
cmd = DB.DB_Delete_More_term("Obj_List", "comp_num", com.comp_idx, up_col, up_data1); cmd = DB.DB_Delete_More_term("Obj_List", "comp_num", com.comp_idx, up_col, up_data1);
DB.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
} }
} }
} }

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Commodity_Search partial class Commodity_Search
{ {

View File

@@ -7,12 +7,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Account;
using WindowsFormsApp1.DLS;
using WindowsFormsApp1.Home;
using WindowsFormsApp1.;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Commodity_Search : Form public partial class Commodity_Search : Form
{ {
@@ -25,8 +21,8 @@ namespace WindowsFormsApp1.Delivery
Sales_Lookup sb; Sales_Lookup sb;
Sales_In_Pay sip; Sales_In_Pay sip;
List_Lookup ll; List_Lookup ll;
Mac.DLS_Copy dc; DLS_Copy dc;
School_Lookup sl; DLS_Lookup sl;
public Commodity_Search(Purchase _pur) public Commodity_Search(Purchase _pur)
{ {
@@ -68,12 +64,12 @@ namespace WindowsFormsApp1.Delivery
InitializeComponent(); InitializeComponent();
ll = _ll; ll = _ll;
} }
public Commodity_Search(Mac.DLS_Copy _dc) public Commodity_Search(DLS_Copy _dc)
{ {
InitializeComponent(); InitializeComponent();
dc = _dc; dc = _dc;
} }
public Commodity_Search(School_Lookup _sl) public Commodity_Search(DLS_Lookup _sl)
{ {
InitializeComponent(); InitializeComponent();
sl = _sl; sl = _sl;

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Commodity_registration partial class Commodity_registration
{ {

View File

@@ -9,9 +9,8 @@ using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Mac;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Commodity_registration : Form public partial class Commodity_registration : Form
{ {
@@ -53,7 +52,7 @@ namespace WindowsFormsApp1.Delivery
} }
User_Data_temp = main.DB_User_Data; User_Data_temp = main.DB_User_Data;
string[] User_Data = User_Data_temp.Split('|'); string[] User_Data = User_Data_temp.Split('|');
comp_idx = main.com_idx; comp_idx = PUB.user.CompanyIdx;
tb_UserName.Text = User_Data[3]; tb_UserName.Text = User_Data[3];
Add_Grid("진행"); Add_Grid("진행");
@@ -218,10 +217,10 @@ namespace WindowsFormsApp1.Delivery
"chk_marc", "comp_num", "unstock" }; "chk_marc", "comp_num", "unstock" };
string[] setData = { data[0], data[1], data[2], data[3], data[4], string[] setData = { data[0], data[1], data[2], data[3], data[4],
data[5], data[6], data[7], data[8], data[9], data[5], data[6], data[7], data[8], data[9],
data[12], main.com_idx, data[7] }; data[12], PUB.user.CompanyIdx, data[7] };
string Incmd = db.DB_INSERT("Obj_List", col_name, setData); string Incmd = db.DB_INSERT("Obj_List", col_name, setData);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
Grid1_total(); Grid1_total();
dataGridView2.Rows.Add(add_grid_data); dataGridView2.Rows.Add(add_grid_data);
@@ -288,10 +287,10 @@ namespace WindowsFormsApp1.Delivery
dataGridView2.Rows[delcout].Cells["list_name"].Value.ToString() }; dataGridView2.Rows[delcout].Cells["list_name"].Value.ToString() };
string[] del_table = { "date", "list_name" }; string[] del_table = { "date", "list_name" };
string cmd = db.DB_Delete_More_term("Obj_List", "comp_num", main.com_idx, del_table, del_target); string cmd = db.DB_Delete_More_term("Obj_List", "comp_num", PUB.user.CompanyIdx, del_table, del_target);
db.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
cmd = db.DB_Delete_No_Limit("Obj_List_Book", "compidx", comp_idx, del_table, del_target); cmd = db.DB_Delete_No_Limit("Obj_List_Book", "compidx", comp_idx, del_table, del_target);
db.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
dataGridView2.Rows.Remove(dataGridView2.Rows[delcout]); dataGridView2.Rows.Remove(dataGridView2.Rows[delcout]);
} }
@@ -326,7 +325,7 @@ namespace WindowsFormsApp1.Delivery
string getdata = "`date`, `clt`, `dly`, `charge`, `list_name`, " + string getdata = "`date`, `clt`, `dly`, `charge`, `list_name`, " +
"`vol`, `total`, `state`, `chk_marc`"; "`vol`, `total`, `state`, `chk_marc`";
string[] othertable = { "comp_num", "state" }; string[] othertable = { "comp_num", "state" };
string[] othercol = { main.com_idx, code }; string[] othercol = { PUB.user.CompanyIdx, code };
string cmd = db.More_DB_Search("Obj_List", othertable, othercol, getdata); string cmd = db.More_DB_Search("Obj_List", othertable, othercol, getdata);
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
@@ -393,7 +392,7 @@ namespace WindowsFormsApp1.Delivery
} }
} }
string Incmd = db.DB_INSERT("Obj_List_Book", DB_col_name, setData); string Incmd = db.DB_INSERT("Obj_List_Book", DB_col_name, setData);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
} }
} }
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e) private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
@@ -447,7 +446,7 @@ namespace WindowsFormsApp1.Delivery
string[] sear_name = { dataGridView2.Rows[a].Cells["list_date"].Value.ToString(), string[] sear_name = { dataGridView2.Rows[a].Cells["list_date"].Value.ToString(),
dataGridView2.Rows[a].Cells["list_name"].Value.ToString() }; dataGridView2.Rows[a].Cells["list_name"].Value.ToString() };
string U_cmd = db.More_Update("Obj_List", edit_col, edit_name, seer_col, sear_name); string U_cmd = db.More_Update("Obj_List", edit_col, edit_name, seer_col, sear_name);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
dataGridView2.Rows[a].Cells["stat2"].Value = "진행"; dataGridView2.Rows[a].Cells["stat2"].Value = "진행";
} }
} }
@@ -469,7 +468,7 @@ namespace WindowsFormsApp1.Delivery
string[] sear_name = { dataGridView2.Rows[a].Cells["list_date"].Value.ToString(), string[] sear_name = { dataGridView2.Rows[a].Cells["list_date"].Value.ToString(),
dataGridView2.Rows[a].Cells["list_name"].Value.ToString() }; dataGridView2.Rows[a].Cells["list_name"].Value.ToString() };
string U_cmd = db.More_Update("Obj_List", edit_col, edit_name, seer_col, sear_name); string U_cmd = db.More_Update("Obj_List", edit_col, edit_name, seer_col, sear_name);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
dataGridView2.Rows[a].Cells["stat2"].Value = "완료"; dataGridView2.Rows[a].Cells["stat2"].Value = "완료";
} }
} }

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Input_Lookup_Stock partial class Input_Lookup_Stock
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Input_Lookup_Stock : Form public partial class Input_Lookup_Stock : Form
{ {
@@ -21,7 +21,7 @@ namespace WindowsFormsApp1.Delivery
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
compidx = main.com_idx; compidx = PUB.user.CompanyIdx;
} }
private void Input_Lookup_Stock_Load(object sender, EventArgs e) private void Input_Lookup_Stock_Load(object sender, EventArgs e)
{ {
@@ -85,7 +85,7 @@ namespace WindowsFormsApp1.Delivery
string[] where = { "book_name", "isbn", "book_comp", "author", "pay", string[] where = { "book_name", "isbn", "book_comp", "author", "pay",
"order", "count", "import_date", "compidx" }; "order", "count", "import_date", "compidx" };
string Incmd = db.DB_INSERT(table_name, where, input); string Incmd = db.DB_INSERT(table_name, where, input);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
MessageBox.Show("저장되었습니다!"); MessageBox.Show("저장되었습니다!");
} }
private bool grid_text_savechk() private bool grid_text_savechk()
@@ -181,7 +181,7 @@ namespace WindowsFormsApp1.Delivery
string[] edit_where = { "book_name", "isbn", "book_comp", "author", "pay", string[] edit_where = { "book_name", "isbn", "book_comp", "author", "pay",
"order", "count" }; "order", "count" };
string U_cmd = db.More_Update(table_name, edit_where, edit_data, ser_where, ser_data); string U_cmd = db.More_Update(table_name, edit_where, edit_data, ser_where, ser_data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
dataGridView1.Rows[rowidx].Cells["book_name"].Value = tb_book_name.Text; dataGridView1.Rows[rowidx].Cells["book_name"].Value = tb_book_name.Text;
dataGridView1.Rows[rowidx].Cells["isbn"].Value = tb_isbn.Text; dataGridView1.Rows[rowidx].Cells["isbn"].Value = tb_isbn.Text;

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class List_Chk_Work partial class List_Chk_Work
{ {

View File

@@ -11,7 +11,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class List_Chk_Work : Form public partial class List_Chk_Work : Form
{ {
@@ -105,7 +105,7 @@ namespace WindowsFormsApp1.Delivery
dataGridView1.Rows[a].Cells["book_name"].Value.ToString() }; dataGridView1.Rows[a].Cells["book_name"].Value.ToString() };
string U_cmd = db.More_Update("Obj_List_Book", edit_col, edit_data, search_col, search_data); string U_cmd = db.More_Update("Obj_List_Book", edit_col, edit_data, search_col, search_data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
} }
/// <summary> /// <summary>

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class List_Lookup partial class List_Lookup
{ {

View File

@@ -10,7 +10,7 @@ using System.Windows.Forms;
using System.Drawing.Printing; using System.Drawing.Printing;
using System.IO; using System.IO;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class List_Lookup : Form public partial class List_Lookup : Form
{ {
@@ -35,7 +35,7 @@ namespace WindowsFormsApp1.Delivery
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
compidx = main.com_idx; compidx = PUB.user.CompanyIdx;
} }
private void List_Lookup_Load(object sender, EventArgs e) private void List_Lookup_Load(object sender, EventArgs e)
{ {

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class List_aggregation partial class List_aggregation
{ {

View File

@@ -9,9 +9,8 @@ using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Mac;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class List_aggregation : Form public partial class List_aggregation : Form
{ {
@@ -24,7 +23,7 @@ namespace WindowsFormsApp1.Delivery
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
compidx = main.com_idx; compidx = PUB.user.CompanyIdx;
} }
/////// TODO: /////// TODO:
// 새로운 폼 작업 필요. // 새로운 폼 작업 필요.
@@ -62,7 +61,7 @@ namespace WindowsFormsApp1.Delivery
#endregion #endregion
combo_user.Items.Add("전체"); combo_user.Items.Add("전체");
string cmd = db.self_Made_Cmd("SELECT `name` FROM `User_Data` WHERE `affil` = '" + main.toolStripLabel2.Text + "';"); string cmd = db.self_Made_Cmd("SELECT `name` FROM `User_Data` WHERE `affil` = '" + main.lbCompanyName.Text + "';");
string[] user_name = cmd.Split('|'); string[] user_name = cmd.Split('|');
for(int a = 0; a < user_name.Length; a++) for(int a = 0; a < user_name.Length; a++)
{ {
@@ -245,7 +244,7 @@ namespace WindowsFormsApp1.Delivery
dataGridView1.Rows[a].Cells["idx"].Value.ToString() dataGridView1.Rows[a].Cells["idx"].Value.ToString()
}; };
string U_cmd = db.More_Update(table, Edit_col, Edit_Data, Search_col, Search_Data); string U_cmd = db.More_Update(table, Edit_col, Edit_Data, Search_col, Search_Data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
MessageBox.Show("저장되었습니다."); MessageBox.Show("저장되었습니다.");
} }
@@ -273,10 +272,10 @@ namespace WindowsFormsApp1.Delivery
Sales(db_res, value); Sales(db_res, value);
string U_cmd = db.More_Update("Obj_List_Marc", Edit_col, Edit_data, Search_col, Search_data); string U_cmd = db.More_Update("Obj_List_Marc", Edit_col, Edit_data, Search_col, Search_data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
Search_col[0] = "comp_num"; Search_col[0] = "comp_num";
U_cmd = db.More_Update("Obj_List", Edit_col, Edit_data, Search_col, Search_data); U_cmd = db.More_Update("Obj_List", Edit_col, Edit_data, Search_col, Search_data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("정상적으로 완료처리 되었습니다."); MessageBox.Show("정상적으로 완료처리 되었습니다.");
} }
@@ -324,7 +323,7 @@ namespace WindowsFormsApp1.Delivery
book[5], out_per, total[0], total[1], total[2], book[6], etc }; book[5], out_per, total[0], total[1], total[2], book[6], etc };
string Incmd = db.DB_INSERT("Sales", col_name, insert_data); string Incmd = db.DB_INSERT("Sales", col_name, insert_data);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
} }
private string[] Cal_out_price(string price_st, string count_st, string out_per_st, string in_per_st) private string[] Cal_out_price(string price_st, string count_st, string out_per_st, string in_per_st)
{ {

View File

@@ -1,5 +1,5 @@
namespace WindowsFormsApp1. namespace UniMarc
{ {
partial class Order_Send_Chk partial class Order_Send_Chk
{ {

View File

@@ -10,9 +10,8 @@ using System.Net;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Delivery;
namespace WindowsFormsApp1. namespace UniMarc
{ {
public partial class Order_Send_Chk : Form public partial class Order_Send_Chk : Form
{ {

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Order_input partial class Order_input
{ {

View File

@@ -10,9 +10,8 @@ using System.Net;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Order_input : Form public partial class Order_input : Form
{ {
@@ -31,7 +30,7 @@ namespace WindowsFormsApp1.Delivery
private void Order_input_Load(object sender, EventArgs e) private void Order_input_Load(object sender, EventArgs e)
{ {
db.DBcon(); db.DBcon();
compidx = main.com_idx; compidx = PUB.user.CompanyIdx;
dataGridView1.Columns["book_name"].DefaultCellStyle.Font = new Font("굴림", 8, FontStyle.Regular); dataGridView1.Columns["book_name"].DefaultCellStyle.Font = new Font("굴림", 8, FontStyle.Regular);
dataGridView1.Columns["author"].DefaultCellStyle.Font = new Font("굴림", 8, FontStyle.Regular); dataGridView1.Columns["author"].DefaultCellStyle.Font = new Font("굴림", 8, FontStyle.Regular);
@@ -47,7 +46,7 @@ namespace WindowsFormsApp1.Delivery
// 사용자 구분 // 사용자 구분
cb_user.Items.Add("전체"); cb_user.Items.Add("전체");
string compName = main.toolStripLabel2.Text; string compName = main.lbCompanyName.Text;
string cmd = db.self_Made_Cmd("SELECT `name` FROM `User_Data` WHERE `affil` = '" + compName + "';"); string cmd = db.self_Made_Cmd("SELECT `name` FROM `User_Data` WHERE `affil` = '" + compName + "';");
string[] user_name = cmd.Split('|'); string[] user_name = cmd.Split('|');
for (int a = 0; a < user_name.Length; a++) for (int a = 0; a < user_name.Length; a++)
@@ -280,7 +279,7 @@ namespace WindowsFormsApp1.Delivery
if (edit_data[1] == "") { edit_data[1] = "0"; } if (edit_data[1] == "") { edit_data[1] = "0"; }
else if (edit_data[1] == "V") { edit_data[1] = "1"; } else if (edit_data[1] == "V") { edit_data[1] = "1"; }
string U_cmd = db.More_Update("Obj_List_Book", edit_col, edit_data, sear_col, sear_data); string U_cmd = db.More_Update("Obj_List_Book", edit_col, edit_data, sear_col, sear_data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
MessageBox.Show("저장되었습니다!"); MessageBox.Show("저장되었습니다!");
} }
@@ -639,12 +638,12 @@ namespace WindowsFormsApp1.Delivery
string Fax_Key = fax.Send_BaroFax(filename, fax_param); string Fax_Key = fax.Send_BaroFax(filename, fax_param);
string U_cmd = db.DB_Update("Comp", "fax_Key", Fax_Key, "idx", compidx); string U_cmd = db.DB_Update("Comp", "fax_Key", Fax_Key, "idx", compidx);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
string[] col_Name = { "compidx", "구분", "팩스전송키", "날짜", "시간", "전송파일명" }; string[] col_Name = { "compidx", "구분", "팩스전송키", "날짜", "시간", "전송파일명" };
string[] set_Data = { compidx, "팩스", Fax_Key, Date, Time, filename }; string[] set_Data = { compidx, "팩스", Fax_Key, Date, Time, filename };
string Incmd = db.DB_INSERT("Send_Order", col_Name, set_Data); string Incmd = db.DB_INSERT("Send_Order", col_Name, set_Data);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
return true; return true;
} }
@@ -702,7 +701,7 @@ namespace WindowsFormsApp1.Delivery
string[] col_Name = { "compidx", "구분", "거래처명", "날짜", "시간", "보낸이", "받는이", "전송파일명", "전송결과" }; string[] col_Name = { "compidx", "구분", "거래처명", "날짜", "시간", "보낸이", "받는이", "전송파일명", "전송결과" };
string[] set_Data = { compidx, "메일", pur, Date, Time, arr_db[0], m_send, filename, "성공" }; string[] set_Data = { compidx, "메일", pur, Date, Time, arr_db[0], m_send, filename, "성공" };
string Incmd = db.DB_INSERT("Send_Order", col_Name, set_Data); string Incmd = db.DB_INSERT("Send_Order", col_Name, set_Data);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
lbl_OrderStat.Text = "메일 전송 성공!"; lbl_OrderStat.Text = "메일 전송 성공!";
return true; return true;
} }

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Order_input_Search partial class Order_input_Search
{ {

View File

@@ -7,10 +7,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Account;
using WindowsFormsApp1.Mac;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Order_input_Search : Form public partial class Order_input_Search : Form
{ {

View File

@@ -0,0 +1,123 @@
namespace UniMarc
{
partial class Order_input_Search2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.date_res = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.Disable;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
this.list_name,
this.charge,
this.date,
this.date_res});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 21;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(641, 215);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
//
// list_name
//
this.list_name.HeaderText = "목록";
this.list_name.Name = "list_name";
this.list_name.Width = 300;
//
// charge
//
this.charge.HeaderText = "담당자";
this.charge.Name = "charge";
//
// date
//
this.date.HeaderText = "목록일자";
this.date.Name = "date";
//
// date_res
//
this.date_res.HeaderText = "완료일자";
this.date_res.Name = "date_res";
//
// Order_input_Search
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(641, 215);
this.Controls.Add(this.dataGridView1);
this.Name = "Order_input_Search";
this.Text = "Order_input_Search";
this.Load += new System.EventHandler(this.Order_input_Search_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn list_name;
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
private System.Windows.Forms.DataGridViewTextBoxColumn date;
private System.Windows.Forms.DataGridViewTextBoxColumn date_res;
}
}

View File

@@ -0,0 +1,202 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public partial class Order_input_Search2 : Form
{
Order_input oin;
Purchase_Book pb;
Remit_reg2 rem2;
Check_ISBN2 isbn;
Helper_DB db = new Helper_DB();
public int[] oin_grid_idx = { 0, 0 };
public string Where_Open;
public string searchText;
public bool OnlyMarc = false;
string compidx;
public Order_input_Search2(Order_input o_in)
{
InitializeComponent();
oin = o_in;
compidx = oin.compidx;
}
public Order_input_Search2(Remit_reg2 _rem2)
{
InitializeComponent();
rem2 = _rem2;
compidx = rem2.compidx;
searchText = rem2.tb_purchase.Text;
}
public Order_input_Search2(Purchase_Book _pb)
{
InitializeComponent();
pb = _pb;
compidx = pb.compidx;
searchText = pb.tb_purchase.Text;
}
public Order_input_Search2(Check_ISBN2 _isbn)
{
InitializeComponent();
isbn = _isbn;
compidx = isbn.compidx;
searchText = isbn.tb_list_name.Text;
}
public Order_input_Search2()
{
InitializeComponent();
}
private void Order_input_Search_Load(object sender, EventArgs e)
{
string cmd, db_res;
db.DBcon();
if (Where_Open == "book_list")
{
string table = "Obj_List";
string Area = "`idx`, `list_name`, `charge`, `date`, `date_res`";
cmd = string.Format("SELECT {0} FROM {1} WHERE `comp_num` = {2} AND `state` = \"진행\"", Area, table, compidx);
if (searchText != "")
{
cmd += " AND `list_name` like \"%" + searchText + "%\"";
// cmd = db.DB_Contains("Obj_List", compidx,
// "", "", "`list_name`, `charge`, `date`, `date_res`");
}
if (OnlyMarc)
{
cmd += " AND `chk_marc` > 0";
// cmd = db.DB_Contains("Obj_List", compidx,
// "list_name", searchText, "`list_name`, `charge`, `date`, `date_res`");
}
cmd += ";";
db_res = db.DB_Send_CMD_Search(cmd);
made_grid(db_res);
this.Text = "목록 검색";
}
else if (Where_Open.Contains("Order"))
{
list_name.HeaderText = "주문처";
charge.HeaderText = "대표자";
date.HeaderText = "종목";
date_res.HeaderText = "업태";
cmd = db.DB_Contains("Purchase", compidx,
"sangho", searchText, "`idx`, `sangho`, `boss`, `jongmok`, `uptae`");
db_res = db.DB_Send_CMD_Search(cmd);
made_grid(db_res);
this.Text = "주문처 검색";
}
}
private void made_grid(string strValue)
{
string[] data = strValue.Split('|');
dataGridView1.Rows.Clear();
string[] res = { "", "", "", "", "" };
for (int a = 0; a < data.Length; a++)
{
if (a % 5 == 0) { res[0] = data[a]; }
if (a % 5 == 1) { res[1] = data[a]; }
if (a % 5 == 2) { res[2] = data[a]; }
if (a % 5 == 3) { res[3] = data[a]; }
if (a % 5 == 4) { res[4] = data[a];
if (res[1].Contains(searchText))
dataGridView1.Rows.Add(res);
}
}
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {
if (dataGridView1.Rows.Count == 0)
return;
dataGridView1_CellDoubleClick(null, null);
}
if (e.KeyCode == Keys.Escape) { Close(); }
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
int row = 0;
if (Where_Open == "") { row = 0; }
else row = dataGridView1.CurrentCell.RowIndex;
if (e != null) { row = e.RowIndex; }
else row = dataGridView1.CurrentCell.RowIndex;
if (oin != null) {
oin_result(row);
}
else if (pb != null) {
pb_result(row);
}
else if (rem2 != null) {
rem2.tb_purchase.Text = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
rem2.mk_base(rem2.tb_purchase.Text);
}
else if (isbn != null) {
string listName = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
string l_idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
isbn.tb_list_name.Text = listName;
isbn.DataLoad(listName, l_idx);
}
Close();
}
private void oin_result(int grididx)
{
if (Where_Open == "book_list")
{
string ListName = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
string DBdate = dataGridView1.Rows[grididx].Cells["date"].Value.ToString();
string[] tmp_col = { "compidx", "list_name", "date" };
string[] tmp_data = { compidx, ListName, DBdate };
string takedata = "`order`, `order_stat`, `isbn`, `book_name`, `author`, " +
"`book_comp`, `order_count`, `count`, `pay`, `total`, " +
"`etc`, `list_name`, `order_date`, `send_date`, `header`, " +
"`num`, `idx`";
string cmd = db.More_DB_Search("Obj_List_Book", tmp_col, tmp_data, takedata);
string db_res = db.DB_Send_CMD_Search(cmd);
oin.made_grid(db_res, false);
oin.tb_search_book_list.Text = ListName;
DateTime setDate = DateTime.ParseExact(DBdate, "yyyy-MM-dd", null);
oin.dtp_listBegin.Checked = true;
oin.dtp_listEnd.Checked = true;
oin.dtp_listBegin.Value = setDate;
oin.dtp_listEnd.Value = setDate;
}
else if (Where_Open.Contains("Order"))
{
if (Where_Open == "Order_Grid") {
oin.dataGridView1.Rows[oin_grid_idx[0]].Cells[oin_grid_idx[1]].Value =
dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
}
else
{
try
{
oin.tb_orderText.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
}
catch { }
}
}
}
private void pb_result(int grididx)
{
pb.tb_purchase.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
pb.btn_Lookup_Click(null, null);
}
}
}

View File

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

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
partial class Purchase partial class Purchase
{ {

View File

@@ -9,9 +9,8 @@ using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.IO; using System.IO;
using System.Windows.Forms.VisualStyles; using System.Windows.Forms.VisualStyles;
using WindowsFormsApp1.Home;
namespace WindowsFormsApp1.Delivery namespace UniMarc
{ {
public partial class Purchase : Form public partial class Purchase : Form
{ {
@@ -25,7 +24,7 @@ namespace WindowsFormsApp1.Delivery
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
compidx = main.com_idx; compidx = PUB.user.CompanyIdx;
} }
private void Purchase_Load(object sender, EventArgs e) private void Purchase_Load(object sender, EventArgs e)
{ {
@@ -652,7 +651,7 @@ namespace WindowsFormsApp1.Delivery
string[] edit_Data = { "입고", dataGridView2.Rows[a].Cells["Date"].Value.ToString(), string[] edit_Data = { "입고", dataGridView2.Rows[a].Cells["Date"].Value.ToString(),
dataGridView2.Rows[a].Cells["isbn2"].Value.ToString() }; dataGridView2.Rows[a].Cells["isbn2"].Value.ToString() };
string U_cmd = db.More_Update("Obj_List_Book", edit_Col, edit_Data, search_Col, search_Data); string U_cmd = db.More_Update("Obj_List_Book", edit_Col, edit_Data, search_Col, search_Data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
/* 입고작업을 하려는 책이 재고에 있을 경우, 재고 -1이 되어야함. /* 입고작업을 하려는 책이 재고에 있을 경우, 재고 -1이 되어야함.
* 만약 재고수보다 입고수가 더 많을경우는? * 만약 재고수보다 입고수가 더 많을경우는?
@@ -695,7 +694,7 @@ namespace WindowsFormsApp1.Delivery
string[] Edit_col = { "input_count" }; string[] Edit_col = { "input_count" };
string[] Edit_data = { Inven_count(db_data[0], dataGridView2.Rows[a].Cells["count2"].Value.ToString(), a) }; string[] Edit_data = { Inven_count(db_data[0], dataGridView2.Rows[a].Cells["count2"].Value.ToString(), a) };
string U_cmd = db.More_Update("Obj_List_Book", Edit_col, Edit_data, Search_col, Search_data); string U_cmd = db.More_Update("Obj_List_Book", Edit_col, Edit_data, Search_col, Search_data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
} }
/// <summary> /// <summary>
@@ -737,7 +736,7 @@ namespace WindowsFormsApp1.Delivery
dataGridView2.Rows[row].Cells["list_name2"].Value.ToString() dataGridView2.Rows[row].Cells["list_name2"].Value.ToString()
}; };
string U_cmd = db.More_Update("Obj_List_Book", Edit_Col, Edit_Data, Search_Name, Search_Data); string U_cmd = db.More_Update("Obj_List_Book", Edit_Col, Edit_Data, Search_Name, Search_Data);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
dataGridView2.Rows[row].Cells["edasd"].Value = res.ToString(); dataGridView2.Rows[row].Cells["edasd"].Value = res.ToString();
} }
@@ -792,7 +791,7 @@ namespace WindowsFormsApp1.Delivery
if (db_res.Length < 3) if (db_res.Length < 3)
{ {
string Incmd = db.DB_INSERT("Inven", input_col, input_data); string Incmd = db.DB_INSERT("Inven", input_col, input_data);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
MessageBox.Show("DB 새로 추가"); MessageBox.Show("DB 새로 추가");
return; return;
} }
@@ -805,7 +804,7 @@ namespace WindowsFormsApp1.Delivery
count += data; count += data;
MessageBox.Show("DB 수정"); MessageBox.Show("DB 수정");
string U_cmd = db.DB_Update("Inven", "count", count.ToString(), "idx", cout[0]); string U_cmd = db.DB_Update("Inven", "count", count.ToString(), "idx", cout[0]);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
} }
@@ -834,7 +833,7 @@ namespace WindowsFormsApp1.Delivery
tata[9] = "재고가감"; tata[9] = "재고가감";
} }
string Incmd = db.DB_INSERT("Buy_ledger", Area, tata); string Incmd = db.DB_INSERT("Buy_ledger", Area, tata);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
} }
} }
/// <summary> /// <summary>

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Home namespace UniMarc
{ {
partial class Batch_processing partial class Batch_processing
{ {

View File

@@ -9,7 +9,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1.Home namespace UniMarc
{ {
public partial class Batch_processing : Form public partial class Batch_processing : Form
{ {

View File

@@ -1,5 +1,4 @@
using AR; using AR;
using ExcelTest;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@@ -10,7 +9,6 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc namespace UniMarc
{ {
@@ -72,13 +70,13 @@ namespace UniMarc
,nudCompIDX.Value.ToString(),tbIP.Text ,nudCompIDX.Value.ToString(),tbIP.Text
}; // 15 }; // 15
tCmd = mDb.DB_INSERT("Comp", tInsertCol, tInsertData); tCmd = mDb.DB_INSERT("Comp", tInsertCol, tInsertData);
mDb.DB_Send_CMD_reVoid(tCmd); Helper_DB.ExcuteNonQuery(tCmd);
//// IP 적용 //// IP 적용
//string[] IP_Col = { "compidx", "comp", "IP" }; //string[] IP_Col = { "compidx", "comp", "IP" };
//string[] IP_Data = { mDb.chk_comp(tb_sangho.Text), tb_sangho.Text, tbIP.Text };//cb_IPList.Text //string[] IP_Data = { mDb.chk_comp(tb_sangho.Text), tb_sangho.Text, tbIP.Text };//cb_IPList.Text
//tCmd = mDb.DB_INSERT("Comp_IP", IP_Col, IP_Data); //tCmd = mDb.DB_INSERT("Comp_IP", IP_Col, IP_Data);
//mDb.DB_Send_CMD_reVoid(tCmd); //Helper_DB.ExcuteNonQuery(tCmd);
RefreshList(); RefreshList();
@@ -108,7 +106,7 @@ namespace UniMarc
string[] tSearch_col = { dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString() }; string[] tSearch_col = { dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString() };
string U_cmd = mDb.More_Update("Comp", tEdit_tbl, tEdit_col, tSearch_tbl, tSearch_col); string U_cmd = mDb.More_Update("Comp", tEdit_tbl, tEdit_col, tSearch_tbl, tSearch_col);
mDb.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
} }
RefreshList(); RefreshList();
} }
@@ -125,7 +123,7 @@ namespace UniMarc
if (UTIL.MsgQ(tText) == DialogResult.Yes) if (UTIL.MsgQ(tText) == DialogResult.Yes)
{ {
string tD_cmd = mDb.DB_Delete("Comp", "idx", dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString(), "comp_name", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString()); string tD_cmd = mDb.DB_Delete("Comp", "idx", dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString(), "comp_name", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
mDb.DB_Send_CMD_reVoid(tD_cmd); Helper_DB.ExcuteNonQuery(tD_cmd);
TextClear(); TextClear();
} }
RefreshList(); RefreshList();

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1 namespace UniMarc
{ {
partial class Mac_Setting partial class Mac_Setting
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1 namespace UniMarc
{ {
public partial class Mac_Setting : Form public partial class Mac_Setting : Form
{ {

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1 namespace UniMarc
{ {
partial class Notice_Send partial class Notice_Send
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1 namespace UniMarc
{ {
public partial class Notice_Send : Form public partial class Notice_Send : Form
{ {

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1 namespace UniMarc
{ {
partial class Sales_Details partial class Sales_Details
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1 namespace UniMarc
{ {
public partial class Sales_Details : Form public partial class Sales_Details : Form
{ {

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1 namespace UniMarc
{ {
partial class User_account_inquiry partial class User_account_inquiry
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1 namespace UniMarc
{ {
public partial class User_account_inquiry : Form public partial class User_account_inquiry : Form
{ {

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1 namespace UniMarc
{ {
partial class User_manage partial class User_manage
{ {

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace WindowsFormsApp1 namespace UniMarc
{ {
public partial class User_manage : Form public partial class User_manage : Form
{ {
@@ -28,7 +28,7 @@ namespace WindowsFormsApp1
button1.ForeColor = Color.Red; button1.ForeColor = Color.Red;
IP ip = new IP(); IP ip = new IP();
string[] IPList = { "ALL", ip.GetIP }; string[] IPList = { "ALL", ip.GetIP() };
cb_IPList.Items.AddRange(IPList); cb_IPList.Items.AddRange(IPList);
cb_IPList.SelectedIndex = 0; cb_IPList.SelectedIndex = 0;
} }
@@ -106,13 +106,13 @@ namespace WindowsFormsApp1
tb_bank_comp.Text, tb_bank_no.Text, tb_email.Text, tb_barea.Text, "외부업체" tb_bank_comp.Text, tb_bank_no.Text, tb_email.Text, tb_barea.Text, "외부업체"
}; // 15 }; // 15
db.DB_Send_CMD_reVoid(db.DB_INSERT("Comp", InsertCol, InsertData)); Helper_DB.ExcuteNonQuery(db.DB_INSERT("Comp", InsertCol, InsertData));
// IP 적용 // IP 적용
string[] IP_Col = { "compidx","comp", "IP" }; string[] IP_Col = { "compidx","comp", "IP" };
string[] IP_Data = { db.chk_comp(tb_sangho.Text), tb_sangho.Text,tbIP.Text };//cb_IPList.Text string[] IP_Data = { db.chk_comp(tb_sangho.Text), tb_sangho.Text,tbIP.Text };//cb_IPList.Text
db.DB_Send_CMD_reVoid(db.DB_INSERT("Comp_IP", IP_Col, IP_Data)); Helper_DB.ExcuteNonQuery(db.DB_INSERT("Comp_IP", IP_Col, IP_Data));
InsertAccount(tb_sangho.Text); InsertAccount(tb_sangho.Text);
} }
@@ -129,11 +129,11 @@ namespace WindowsFormsApp1
string[] InsertUserSubData = { ID }; string[] InsertUserSubData = { ID };
string[] InsertUserSubCol = { "id" }; string[] InsertUserSubCol = { "id" };
db.DB_Send_CMD_reVoid(db.DB_INSERT("User_Data", InsertCol, InsertData)); Helper_DB.ExcuteNonQuery(db.DB_INSERT("User_Data", InsertCol, InsertData));
// User_ShortCut, User_Access 추가. // User_ShortCut, User_Access 추가.
db.DB_Send_CMD_reVoid(db.DB_INSERT("User_ShortCut", InsertUserSubCol, InsertUserSubData)); Helper_DB.ExcuteNonQuery(db.DB_INSERT("User_ShortCut", InsertUserSubCol, InsertUserSubData));
db.DB_Send_CMD_reVoid(db.DB_INSERT("User_Access", InsertUserSubCol, InsertUserSubData)); Helper_DB.ExcuteNonQuery(db.DB_INSERT("User_Access", InsertUserSubCol, InsertUserSubData));
} }
private void btn_close_Click(object sender, EventArgs e) private void btn_close_Click(object sender, EventArgs e)

View File

@@ -1,5 +1,5 @@
namespace UniMarc. namespace UniMarc
{ {
partial class AddMarc partial class AddMarc
{ {

View File

@@ -1,5 +1,4 @@
using ExcelTest; using SHDocVw;
using SHDocVw;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@@ -10,29 +9,29 @@ using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc. namespace UniMarc
{ {
public partial class AddMarc : Form public partial class AddMarc : Form
{ {
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
String_Text st = new String_Text(); String_Text st = new String_Text();
Help008Tag tag008 = new Help008Tag(); Help008Tag tag008 = new Help008Tag();
public string mUserName;
public string mCompidx;
private string mOldMarc = string.Empty; private string mOldMarc = string.Empty;
Main m; Main m;
public AddMarc(Main _m) public AddMarc(Main _m)
{ {
InitializeComponent(); InitializeComponent();
m = _m; m = _m;
mUserName = m.User;
mCompidx = m.com_idx;
} }
public AddMarc()
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{ {
InitializeComponent(); if (keyData == Keys.Alt || keyData == (Keys.Alt | Keys.Menu))
{
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
} }
private void AddMarc_Load(object sender, EventArgs e) private void AddMarc_Load(object sender, EventArgs e)
@@ -102,10 +101,13 @@ namespace UniMarc.마크
private void Btn_Memo_Click(object sender, EventArgs e) private void Btn_Memo_Click(object sender, EventArgs e)
{ {
Marc_memo memo = new Marc_memo(this); Marc_memo memo = new Marc_memo();
memo.StartPosition = FormStartPosition.Manual; memo.StartPosition = FormStartPosition.Manual;
memo.TopMost = true; memo.TopMost = true;
memo.Location = new Point(1018, 8); memo.Location = new Point(1018, 8);
memo.OnSave += (s1, e1) => {
this.richTextBox1.Text = e1.Data;
};
memo.Show(); memo.Show();
} }
@@ -300,12 +302,12 @@ namespace UniMarc.마크
}; };
string[] EditColumn = string[] EditColumn =
{ {
mCompidx, oriMarc, "1",mOldMarc, "0", etc1.Text, PUB.user.CompanyIdx, oriMarc, "1",mOldMarc, "0", etc1.Text,
etc2.Text, tag056, text008.Text, date, mUserName, etc2.Text, tag056, text008.Text, date, PUB.user.UserName,
grade.ToString() grade.ToString()
}; };
string[] SearchTable = { "idx","compidx" }; string[] SearchTable = { "idx","compidx" };
string[] SearchColumn = { MarcIndex, mCompidx }; string[] SearchColumn = { MarcIndex, PUB.user.CompanyIdx };
//int marcChk = subMarcChk(Table, MarcIndex); //int marcChk = subMarcChk(Table, MarcIndex);
//if (IsCovertDate) //if (IsCovertDate)
@@ -335,31 +337,10 @@ namespace UniMarc.마크
// break; // break;
//} //}
string UpCMD = db.More_Update(Table, EditTable, EditColumn, SearchTable, SearchColumn); string UpCMD = db.More_Update(Table, EditTable, EditColumn, SearchTable, SearchColumn);
PUB.log.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpCMD.Replace("\r", " ").Replace("\n", " "))); PUB.log.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, UpCMD.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(UpCMD); Helper_DB.ExcuteNonQuery(UpCMD);
} }
#region UpdateSub
/// <summary>
/// 어느곳이 최근 저장인지 확인
/// </summary>
/// <param name="table">테이블명</param>
/// <param name="midx">idx</param>
/// <returns>marcChk 번호</returns>
private int subMarcChk(string table, string midx)
{
string Area = "`marc_chk`, `marc_chk1`, `marc_chk2`";
string cmd = db.DB_Select_Search(Area, table, "idx", midx);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] chk_ary = db_res.Split('|');
for (int a = 0; a < chk_ary.Length; a++)
{
if (chk_ary[a] == "1")
return a;
}
return 0;
}
#endregion
/// <summary> /// <summary>
/// 마크DB에 INSERT해주는 함수 /// 마크DB에 INSERT해주는 함수
@@ -382,12 +363,12 @@ namespace UniMarc.마크
{ {
BookData[0], BookData[1], BookData[2], BookData[3], BookData[4], BookData[0], BookData[1], BookData[2], BookData[3], BookData[4],
oriMarc, etc1.Text, etc2.Text, grade.ToString(), "1", oriMarc, etc1.Text, etc2.Text, grade.ToString(), "1",
mUserName, tag056, text008.Text, date, mCompidx PUB.user.UserName, tag056, text008.Text, date, PUB.user.CompanyIdx
}; };
string InCMD = db.DB_INSERT(Table, InsertTable, InsertColumn); string InCMD = db.DB_INSERT(Table, InsertTable, InsertColumn);
PUB.log.Add("ADDMarcINSERT", string.Format("{0}({1}) : {2}", mUserName, mCompidx, InCMD.Replace("\r", " ").Replace("\n", " "))); PUB.log.Add("ADDMarcINSERT", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, InCMD.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(InCMD); Helper_DB.ExcuteNonQuery(InCMD);
} }
/// <summary> /// <summary>
@@ -400,7 +381,7 @@ namespace UniMarc.마크
{ {
if (TimeSpanDaysValue < -1) if (TimeSpanDaysValue < -1)
return false; return false;
if (user != mUserName) if (user != PUB.user.UserName)
return false; return false;
return true; return true;
} }
@@ -2787,21 +2768,22 @@ namespace UniMarc.마크
{ {
TextBox tb = sender as TextBox; TextBox tb = sender as TextBox;
if (e.Alt && e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z)
{
var letter = e.KeyCode.ToString().ToLower();
tb.InvokeInsertText("▽" + letter);
e.SuppressKeyPress = true;
return;
}
if (e.KeyCode == Keys.F3) if (e.KeyCode == Keys.F3)
{ {
tb.InvokeInsertText("▽"); tb.InvokeInsertText("▽");
//tb.Select(tb.Text.Length, 0);
} }
else if (e.KeyCode == Keys.F4) else if (e.KeyCode == Keys.F4)
{ {
tb.InvokeInsertText("△"); tb.InvokeInsertText("△");
//tb.Select(tb.Text.Length, 0);
} }
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
} }
private void etc_KeyDown(object sender, KeyEventArgs e) private void etc_KeyDown(object sender, KeyEventArgs e)
{ {

View File

@@ -0,0 +1,272 @@
namespace UniMarc
{
partial class AddMarc2
{
/// <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.btn_close = new System.Windows.Forms.Button();
this.btn_Save = new System.Windows.Forms.Button();
this.Btn_SearchKolis = new System.Windows.Forms.Button();
this.cb_SearchCol = new System.Windows.Forms.ComboBox();
this.btn_Empty = new System.Windows.Forms.Button();
this.tb_Search = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.marcEditorControl1 = new UniMarc.MarcEditorControl();
this.panel5 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.rtEtc1 = new System.Windows.Forms.RichTextBox();
this.rtEtc2 = new System.Windows.Forms.RichTextBox();
this.panel6 = new System.Windows.Forms.Panel();
this.lbl_SaveData = new System.Windows.Forms.Label();
this.cb_grade = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.panel2.SuspendLayout();
this.panel5.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.panel6.SuspendLayout();
this.SuspendLayout();
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(102, 156);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(77, 23);
this.btn_close.TabIndex = 381;
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(19, 185);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(77, 23);
this.btn_Save.TabIndex = 398;
this.btn_Save.Text = "저장(F9)";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// Btn_SearchKolis
//
this.Btn_SearchKolis.Location = new System.Drawing.Point(102, 185);
this.Btn_SearchKolis.Name = "Btn_SearchKolis";
this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23);
this.Btn_SearchKolis.TabIndex = 397;
this.Btn_SearchKolis.Text = "코리스 검색";
this.Btn_SearchKolis.UseVisualStyleBackColor = true;
this.Btn_SearchKolis.Click += new System.EventHandler(this.Btn_SearchKolis_Click);
//
// cb_SearchCol
//
this.cb_SearchCol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_SearchCol.FormattingEnabled = true;
this.cb_SearchCol.Items.AddRange(new object[] {
"ISBN",
"서명",
"저자",
"출판사"});
this.cb_SearchCol.Location = new System.Drawing.Point(19, 15);
this.cb_SearchCol.Name = "cb_SearchCol";
this.cb_SearchCol.Size = new System.Drawing.Size(121, 20);
this.cb_SearchCol.TabIndex = 395;
//
// btn_Empty
//
this.btn_Empty.Location = new System.Drawing.Point(19, 156);
this.btn_Empty.Name = "btn_Empty";
this.btn_Empty.Size = new System.Drawing.Size(77, 23);
this.btn_Empty.TabIndex = 396;
this.btn_Empty.Text = "비 우 기";
this.btn_Empty.UseVisualStyleBackColor = true;
this.btn_Empty.Click += new System.EventHandler(this.btn_Empty_Click);
//
// tb_Search
//
this.tb_Search.Location = new System.Drawing.Point(11, 41);
this.tb_Search.Name = "tb_Search";
this.tb_Search.Size = new System.Drawing.Size(205, 21);
this.tb_Search.TabIndex = 0;
this.tb_Search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_ISBN_KeyDown);
//
// panel2
//
this.panel2.Controls.Add(this.marcEditorControl1);
this.panel2.Controls.Add(this.panel5);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1059, 751);
this.panel2.TabIndex = 394;
//
// marcEditorControl1
//
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(793, 751);
this.marcEditorControl1.TabIndex = 394;
//
// panel5
//
this.panel5.Controls.Add(this.tableLayoutPanel1);
this.panel5.Controls.Add(this.panel6);
this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
this.panel5.Location = new System.Drawing.Point(793, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(266, 751);
this.panel5.TabIndex = 395;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.rtEtc1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.rtEtc2, 0, 1);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 308);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(266, 443);
this.tableLayoutPanel1.TabIndex = 0;
//
// rtEtc1
//
this.rtEtc1.BackColor = System.Drawing.SystemColors.ScrollBar;
this.rtEtc1.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtEtc1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.rtEtc1.Location = new System.Drawing.Point(3, 3);
this.rtEtc1.Name = "rtEtc1";
this.rtEtc1.Size = new System.Drawing.Size(260, 215);
this.rtEtc1.TabIndex = 32;
this.rtEtc1.Text = "Remark1";
//
// rtEtc2
//
this.rtEtc2.BackColor = System.Drawing.SystemColors.ScrollBar;
this.rtEtc2.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtEtc2.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.rtEtc2.Location = new System.Drawing.Point(3, 224);
this.rtEtc2.Name = "rtEtc2";
this.rtEtc2.Size = new System.Drawing.Size(260, 216);
this.rtEtc2.TabIndex = 32;
this.rtEtc2.Text = "Remark2";
//
// panel6
//
this.panel6.Controls.Add(this.tb_Search);
this.panel6.Controls.Add(this.cb_SearchCol);
this.panel6.Controls.Add(this.btn_Save);
this.panel6.Controls.Add(this.Btn_SearchKolis);
this.panel6.Controls.Add(this.lbl_SaveData);
this.panel6.Controls.Add(this.cb_grade);
this.panel6.Controls.Add(this.label6);
this.panel6.Controls.Add(this.btn_Empty);
this.panel6.Controls.Add(this.btn_close);
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Location = new System.Drawing.Point(0, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(266, 308);
this.panel6.TabIndex = 1;
//
// lbl_SaveData
//
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.Color.PaleTurquoise;
this.lbl_SaveData.Location = new System.Drawing.Point(32, 119);
this.lbl_SaveData.Name = "lbl_SaveData";
this.lbl_SaveData.Size = new System.Drawing.Size(64, 19);
this.lbl_SaveData.TabIndex = 319;
this.lbl_SaveData.Text = "[] []";
//
// cb_grade
//
this.cb_grade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_grade.FormattingEnabled = true;
this.cb_grade.Items.AddRange(new object[] {
"A (F9)",
"B (F10)",
"C (F11)",
"D (F12)"});
this.cb_grade.Location = new System.Drawing.Point(19, 96);
this.cb_grade.Name = "cb_grade";
this.cb_grade.Size = new System.Drawing.Size(75, 20);
this.cb_grade.TabIndex = 222;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label6.Location = new System.Drawing.Point(16, 78);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(62, 12);
this.label6.TabIndex = 223;
this.label6.Text = "마크 등급";
//
// AddMarc2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Gray;
this.ClientSize = new System.Drawing.Size(1324, 939);
this.Controls.Add(this.panel2);
this.Name = "AddMarc2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "마크 작성(2-New)";
this.Load += new System.EventHandler(this.AddMarc_Load);
this.panel2.ResumeLayout(false);
this.panel5.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox tb_Search;
private System.Windows.Forms.ComboBox cb_SearchCol;
private System.Windows.Forms.Button btn_Empty;
private System.Windows.Forms.Button Btn_SearchKolis;
private MarcEditorControl marcEditorControl1;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
public System.Windows.Forms.RichTextBox rtEtc1;
public System.Windows.Forms.RichTextBox rtEtc2;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Label lbl_SaveData;
private System.Windows.Forms.ComboBox cb_grade;
private System.Windows.Forms.Label label6;
}
}

View File

@@ -0,0 +1,585 @@
using SHDocVw;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public partial class AddMarc2 : Form
{
Helper_DB db = new Helper_DB();
String_Text st = new String_Text();
Help008Tag tag008 = new Help008Tag();
private string mOldMarc = string.Empty;
private MacEditorParameter _param;
Main m;
public AddMarc2(Main _m)
{
InitializeComponent();
m = _m;
}
private void AddMarc_Load(object sender, EventArgs e)
{
cb_SearchCol.SelectedIndex = 0;
db.DBcon();
TextReset();
marcEditorControl1.db = this.db;
this.KeyPreview = true;
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.F9)
{
btn_Save_Click(this, EventArgs.Empty);
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
public void SetKolisValueApply(string marc)
{
this.marcEditorControl1.SetMarcString(marc);
}
private void btn_Save_Click(object sender, EventArgs e)
{
if (marcEditorControl1.CheckValidation() == false) return;
string dbMarc = marcEditorControl1.MakeMarcString();
string tag056 = Tag056(dbMarc, _param);
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = st.made_Ori_marc(dbMarc).Replace(@"\", "₩");
if (!isMustTag(orimarc))
{
return;
}
var MarcText = dbMarc;
string midx = this.lbl_Midx;
string[] BookData = GetBookData(MarcText);
bool IsCoverDate = false;
if (_param != null && _param.SaveDate != "")
{
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
TimeSpan sp = CheckDate(_param.SaveDate, date);
IsCoverDate = IsCoverData(sp.Days, _param.User);
}
string Table = "Marc";
bool isUpdate;
if (lbl_Midx != "")
isUpdate = true;
else
isUpdate = false;
var grade = this.cb_grade.SelectedIndex;// int.Parse(param.Grade);
if (isUpdate)
UpdateMarc(Table, midx, orimarc, grade, tag056, date, IsCoverDate, _param);
else
InsertMarc(Table, BookData, orimarc, grade, tag056, date, _param);
MessageBox.Show("저장되었습니다.", "저장");
}
private void MarcEditorControl1_BookSaved(object sender, EventArgs e)
{
// Removed - logic moved to btn_Save_Click
}
private void tb_ISBN_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter)
return;
TextReset();
string SearchText = tb_Search.Text;
string SearchCol = cb_SearchCol.SelectedItem.ToString();
var mcs = new MarcCopySelect2(this);
mcs.Init(SearchCol, SearchText);
mcs.Show();
}
/// <summary>
/// ISBN 검색후 특정 마크 선택시 현재폼에 적용시키는 폼
/// </summary>
/// <param name="Marc">뷰형태 마크데이터</param>
/// <param name="ISBN">ISBN</param>
/// <param name="GridData">
/// 0:idx <br></br>
/// 1:compidx <br></br>
/// 2:user <br></br>
/// 3:date <br></br>
/// 4:grade <br></br>
/// 5:tag008 <br></br>
/// 6:LineMarc</param>
public void SelectMarc_Sub(string Marc, string ISBN, string[] GridData)
{
_param = new MacEditorParameter
{
ISBN13 = ISBN,
SaveDate = string.Format("[{0}] [{1}]", GridData[2], GridData[3]),
User = GridData[2],
NewMake = true,
text008 = GridData[5]
};
this.marcEditorControl1.LoadBookData(Marc, ISBN);
mOldMarc = GridData[6];
lbl_Midx = GridData[0];
}
string lbl_Midx = "";
private void btn_close_Click(object sender, EventArgs e)
{
this.Close();
}
private void btn_Empty_Click(object sender, EventArgs e)
{
TextReset();
}
/// <summary>
/// 전체 초기화
/// </summary>
/// <param name="isDelete">탭 컨트롤에서 사용할 경우 false</param>
public void TextReset(bool isDelete = true)
{
if (isDelete)
{
var emptymarc = TextResetSub();
_param = new MacEditorParameter
{
ISBN13 = string.Empty,
SaveDate = string.Empty,
NewMake = true,
};
marcEditorControl1.LoadBookData(emptymarc, string.Empty);
}
}
string TextResetSub()
{
// 입력일자 (00-05)
// 발행년유형 (6)
// 발행년1 (07-10)
// 발행년2 (11-14)
// 발행국 (15-17)
// 삽화표시 (18-21)
// 이용대상자수준 (22) v
// 개별자료형태 (23) v
// 내용형식1 (24) v
// 내용형식2 (25) v
// 한국대학부호 (26-27)
// 수정레코드 (28)
// 회의간행물 (29) c
// 기념논문집 (30) c
// 색인 (31)
// 목록전거 (32)
// 문학형식 (33) v
// 전기 (34) v
// 언어 (35-37) v
// 한국정부기관부호 (38-39)
string yyMMdd = DateTime.Now.ToString("yyMMdd");
string yyyy = DateTime.Now.ToString("yyyy");
string Empty_008 = yyMMdd + "s" + yyyy + " 000 kor ▲";
string Empty_text = string.Format(
$"008\t {Empty_008.Replace("", "")}" +
"020\t \t▼a▼c▲\n" +
"056\t \t▼a▼2▲\n" +
"100\t \t▼a▲\n" +
"245\t \t▼a▼d▲\n" +
"260\t \t▼b▲\n" +
"300\t \t▼a▼c▲\n" +
"653\t \t▼a▲\n" +
"700\t \t▼a▲\n" +
"950\t \t▼b▲\n");
return Empty_text;
}
#region SaveSub
/// <summary>
/// 마크DB에 UPDATE해주는 함수
/// </summary>
/// <param name="Table">테이블 이름</param>
/// <param name="MarcIndex">마크 인덱스 번호</param>
/// <param name="oriMarc">한줄짜리 마크</param>
/// <param name="grade">마크 등급</param>
/// <param name="tag056">분류기호</param>
/// <param name="date">저장시각 yyyy-MM-dd HH:mm:ss</param>
/// <param name="IsCovertDate">덮어씌울지 유무</param>
void UpdateMarc(string Table, string MarcIndex, string oriMarc, int grade, string tag056, string date, bool IsCovertDate, MacEditorParameter param)
{
var etc1 = rtEtc1.Text.Trim();
var etc2 = rtEtc2.Text.Trim();
string[] EditTable =
{
"compidx", "marc", "marc_chk","marc1", "marc_chk1", "비고1",
"비고2", "division", "008tag", "date", "user",
"grade"
};
string[] EditColumn =
{
PUB.user.CompanyIdx, oriMarc, "1",mOldMarc, "0", etc1,
etc2, tag056, param.text008, date, PUB.user.UserName,
grade.ToString()
};
string[] SearchTable = { "idx", "compidx" };
string[] SearchColumn = { MarcIndex, PUB.user.CompanyIdx };
//int marcChk = subMarcChk(Table, MarcIndex);
//if (IsCovertDate)
// marcChk--;
//switch (marcChk)
//{
// case 0:
// EditTable[1] = "marc1";
// EditTable[2] = "marc_chk1";
// EditTable[3] = "marc_chk";
// break;
// case 1:
// EditTable[1] = "marc2";
// EditTable[2] = "marc_chk2";
// EditTable[3] = "marc_chk1";
// break;
// case 2:
// EditTable[1] = "marc";
// EditTable[2] = "marc_chk";
// EditTable[3] = "marc_chk2";
// break;
// default:
// EditTable[1] = "marc";
// EditTable[2] = "marc_chk";
// EditTable[3] = "marc_chk2";
// break;
//}
string UpCMD = db.More_Update(Table, EditTable, EditColumn, SearchTable, SearchColumn);
PUB.log.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, UpCMD.Replace("\r", " ").Replace("\n", " ")));
Helper_DB.ExcuteNonQuery(UpCMD);
}
/// <summary>
/// 마크DB에 INSERT해주는 함수
/// </summary>
/// <param name="Table">테이블 이름</param>
/// <param name="BookData">0:ISBN 1:서명 2:저자 3:출판사 4:정가</param>
/// <param name="oriMarc">한줄짜리 마크</param>
/// <param name="grade">마크 등급</param>
/// <param name="tag056">분류기호</param>
/// <param name="date">저장시각 yyyy-MM-dd HH:mm:ss</param>
void InsertMarc(string Table, string[] BookData, string oriMarc, int grade, string tag056, string date, MacEditorParameter param)
{
var etc1 = rtEtc1.Text.Trim();
var etc2 = rtEtc2.Text.Trim();
string[] InsertTable =
{
"ISBN", "서명", "저자", "출판사", "가격",
"marc", "비고1", "비고2", "grade", "marc_chk",
"user", "division", "008tag", "date", "compidx"
};
string[] InsertColumn =
{
BookData[0], BookData[1], BookData[2], BookData[3], BookData[4],
oriMarc, etc1, etc2, grade.ToString(), "1",
PUB.user.UserName, tag056, param.text008, date, PUB.user.CompanyIdx
};
string InCMD = db.DB_INSERT(Table, InsertTable, InsertColumn);
PUB.log.Add("ADDMarcINSERT", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, InCMD.Replace("\r", " ").Replace("\n", " ")));
Helper_DB.ExcuteNonQuery(InCMD);
}
/// <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 != PUB.user.UserName)
return false;
return true;
}
private TimeSpan CheckDate(string LastDate, string SaveDate)
{
DateTime Last = Convert.ToDateTime(LastDate);
DateTime Save = Convert.ToDateTime(SaveDate);
return Last - Save;
}
/// <summary>
/// 필수태그 검사
/// </summary>
/// <param name="orimarc">한줄짜리 마크</param>
/// <returns>필수태그 없을시 false 반환</returns>
private bool isMustTag(string orimarc)
{
string[] SearchTag = { "056a", "0562", "245a", "245d", "260a", "260c", "300a", "300c", "653a" };
string[] Tag = st.Take_Tag(orimarc, SearchTag);
int count = 0;
string msg = "";
bool isTag = true;
foreach (string tag in Tag)
{
if (tag == "")
{
msg += SearchTag[count] + " ";
isTag = false;
}
count++;
}
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
return false;
}
bool is1XX = false;
string[] AuthorTag = { "100a", "110a", "111a" };
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is1XX = true;
}
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
return false;
}
bool is7XX = false;
AuthorTag[0] = "700a";
AuthorTag[1] = "710a";
AuthorTag[2] = "711a";
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is7XX = true;
}
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
return false;
}
return true;
}
/// <summary>
/// 관련 도서 정보를 가져옴
/// </summary>
/// <param name="ViewMarc">뷰형태의 마크</param>
/// <returns>0:ISBN 1:서명 2:저자 3:출판사 4:정가</returns>
string[] GetBookData(string ViewMarc)
{
// ISBN, BookName, Author, BookComp, Price
string[] result = { "", "", "", "", "" };
bool IsISBN = false;
string[] TargetArr = ViewMarc.Split('\n');
foreach (string Target in TargetArr)
{
string[] tmp = Target.Replace("▲", "").Split('\t');
// 0:ISBN 4:Price
if (tmp[0] == "020" && !IsISBN)
{
IsISBN = true;
result[0] = GetMiddelString(tmp[2], "▼a", "▼");
result[4] = GetMiddelString(tmp[2], "▼c", "▼");
}
// 2:Author
if (tmp[0] == "100")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
else if (tmp[0] == "110")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
else if (tmp[0] == "111")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
// 1:BookName
if (tmp[0] == "245")
result[1] = GetMiddelString(tmp[2], "▼a", "▼");
// 3:BookComp
if (tmp[0] == "300")
result[3] = GetMiddelString(tmp[2], "▼b", "▼");
}
return result;
}
string Tag056(string marc,MacEditorParameter param)
{
// string marc = richTextBox1.Text;
string[] temp = marc.Split('\n');
List<string> target = temp.ToList();
bool isEight = false;
bool eight_chk = false;
string tag056 = string.Empty;
int count = 0;
for (int a = 0; a < target.Count - 1; a++)
{
string[] tmp = target[a].Split('\t');
string tag = tmp[0];
if (tag == "") break;
int eight = Convert.ToInt32(tag.Substring(0, 3));
if (eight == 008)
{
count = a;
eight_chk = true;
isEight = true;
}
else if (eight > 008 && !eight_chk)
{
count = a;
eight_chk = true;
}
if (tag == "056")
tag056 = GetMiddelString(tmp[2], "▼a", "▼");
}
if (!isEight)
target.Insert(count, string.Format("{0}\t{1}\t{2}▲", "008", " ", param.text008));
//richTextBox1.Text = string.Join("\n", target.ToArray());
return tag056;
}
/// <summary>
/// 문자와 문자사이의 값 가져오기
/// </summary>
/// <param name="str">대상 문자열</param>
/// <param name="begin">시작 문자열</param>
/// <param name="end">마지막 문자열</param>
/// <param name="TagNum">불러올 태그 번호</param>
/// <returns>문자 사이값</returns>
public string GetMiddelString(string str, string begin, string end, string TagNum = "")
{
string result = "";
if (string.IsNullOrEmpty(str) || str == "")
return result;
int count = 0;
bool loop = false;
for (int a = count; a < str.Length; a++)
{
count = str.IndexOf(begin);
if (count > -1)
{
str = str.Substring(count + begin.Length);
if (loop)
// 여러 태그들 구분을 지어줌.
result += "▽";
if (str.IndexOf(end) > -1)
result += str.Substring(0, str.IndexOf(end));
else
result += str;
result = TrimEndGubun(result, TagNum);
}
else
break;
loop = true;
}
return result;
}
string TrimEndGubun(string str, string TagNum)
{
char[] gu = { '.', ',', ':', ';', '/', ' ' };
if (TagNum == "300" || TagNum == "300a")
{
str = str.Trim();
if (TagNum == "300a")
{
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")
return str;
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]);
}
//foreach (char gubun in gu)
//{
// if (str.Length < 1) continue;
// if (str[str.Length - 1] == gubun)
// {
// str = str.Remove(str.Length - 1);
// str = str.Trim();
// }
//}
return str;
}
#endregion
private void Btn_SearchKolis_Click(object sender, EventArgs e)
{
AddMarc_FillBlank af = new AddMarc_FillBlank(this);
af.Show();
}
}
}

View File

@@ -0,0 +1,123 @@
<?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="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>32</value>
</metadata>
</root>

View File

@@ -1,4 +1,4 @@
namespace UniMarc. namespace UniMarc
{ {
partial class AddMarc_FillBlank partial class AddMarc_FillBlank
{ {

View File

@@ -8,19 +8,25 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace UniMarc. namespace UniMarc
{ {
public partial class AddMarc_FillBlank : Form public partial class AddMarc_FillBlank : Form
{ {
AddMarc am; AddMarc am;
AddMarc2 am2;
public AddMarc_FillBlank(AddMarc _am) public AddMarc_FillBlank(AddMarc _am)
{ {
InitializeComponent(); InitializeComponent();
am = _am; am = _am;
} }
public AddMarc_FillBlank(AddMarc2 _am)
{
InitializeComponent();
am2 = _am;
}
private void AddMarc_FillBlank_Load(object sender, EventArgs e) private void AddMarc_FillBlank_Load(object sender, EventArgs e)
{ {
webBrowser1.ScriptErrorsSuppressed = true;
webBrowser1.Navigate("https://nl.go.kr/kolisnet/search/searchResultAllList.do?"); webBrowser1.Navigate("https://nl.go.kr/kolisnet/search/searchResultAllList.do?");
} }
@@ -108,7 +114,10 @@ namespace UniMarc.마크
if (ary[1].Length != 2) ary[1].PadRight(2); if (ary[1].Length != 2) ary[1].PadRight(2);
tmp += String.Join("\t", ary) + "\n"; tmp += String.Join("\t", ary) + "\n";
} }
if(am != null)
am.richTextBox1.Text = tmp; am.richTextBox1.Text = tmp;
if(am2 != null)
am2.SetKolisValueApply(tmp);
} }
private void Btn_Close_Click(object sender, EventArgs e) private void Btn_Close_Click(object sender, EventArgs e)

View File

@@ -1,5 +1,5 @@
namespace UniMarc. namespace UniMarc
{ {
partial class All_Book_Detail partial class All_Book_Detail
{ {

View File

@@ -7,10 +7,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1.Mac;
using WindowsFormsApp1;
namespace UniMarc. namespace UniMarc
{ {
public partial class All_Book_Detail : Form public partial class All_Book_Detail : Form
{ {
@@ -22,14 +20,12 @@ namespace UniMarc.마크
/// </summary> /// </summary>
public string[] data = { "", "", "", "" }; public string[] data = { "", "", "", "" };
string compidx;
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
All_Book_manage manage; All_Book_manage manage;
public All_Book_Detail(All_Book_manage _manage) public All_Book_Detail(All_Book_manage _manage)
{ {
InitializeComponent(); InitializeComponent();
manage = _manage; manage = _manage;
compidx = manage.compidx;
} }
private void All_Book_Detail_Load(object sender, EventArgs e) private void All_Book_Detail_Load(object sender, EventArgs e)

View File

@@ -1,4 +1,4 @@
namespace WindowsFormsApp1.Mac namespace UniMarc
{ {
partial class All_Book_manage partial class All_Book_manage
{ {

View File

@@ -7,22 +7,17 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using UniMarc.;
namespace WindowsFormsApp1.Mac namespace UniMarc
{ {
public partial class All_Book_manage : Form public partial class All_Book_manage : Form
{ {
public string compidx;
public string charge;
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
Main main; Main main;
public All_Book_manage(Main _main) public All_Book_manage(Main _main)
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
compidx = main.com_idx;
charge = main.User;
} }
private void All_Book_manage_Load(object sender, EventArgs e) private void All_Book_manage_Load(object sender, EventArgs e)
@@ -36,7 +31,7 @@ namespace WindowsFormsApp1.Mac
string text = textBox1.Text; string text = textBox1.Text;
// 세트명 세트ISBN 세트수량 세트정가 저자 출판사 추가자 // 세트명 세트ISBN 세트수량 세트정가 저자 출판사 추가자
string Area_db = "`set_name`, `set_isbn`, `set_count`, `set_price`, `author`, `book_comp`, `charge`"; string Area_db = "`set_name`, `set_isbn`, `set_count`, `set_price`, `author`, `book_comp`, `charge`";
string cmd = db.DB_Contains("Set_Book", compidx, "set_name", text, Area_db); string cmd = db.DB_Contains("Set_Book", PUB.user.CompanyIdx, "set_name", text, Area_db);
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
string[] db_data = db_res.Split('|'); string[] db_data = db_res.Split('|');
input_Grid(db_data); input_Grid(db_data);
@@ -176,8 +171,8 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[V_idx].Cells["set_count"].Value.ToString(), dataGridView1.Rows[V_idx].Cells["set_count"].Value.ToString(),
dataGridView1.Rows[V_idx].Cells["set_price"].Value.ToString() }; dataGridView1.Rows[V_idx].Cells["set_price"].Value.ToString() };
string cmd = db.DB_Delete_No_Limit("Set_Book", "compidx", compidx, delete_area, delete_data); string cmd = db.DB_Delete_No_Limit("Set_Book", "compidx", PUB.user.CompanyIdx, delete_area, delete_data);
db.DB_Send_CMD_reVoid(cmd); Helper_DB.ExcuteNonQuery(cmd);
} }
btn_Search_Click(null, null); btn_Search_Click(null, null);

View File

@@ -1,5 +1,5 @@
namespace UniMarc. namespace UniMarc
{ {
partial class All_Book_manage_Add partial class All_Book_manage_Add
{ {

View File

@@ -7,10 +7,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
namespace UniMarc. namespace UniMarc
{ {
public partial class All_Book_manage_Add : Form public partial class All_Book_manage_Add : Form
{ {
@@ -75,7 +73,7 @@ namespace UniMarc.마크
"set_name", "set_count", "set_isbn", "set_price", "set_pubyear", "set_name", "set_count", "set_isbn", "set_price", "set_pubyear",
"book_name", "series_title", "sub_title", "series_num", "author", "book_comp", "isbn", "price", "book_name", "series_title", "sub_title", "series_num", "author", "book_comp", "isbn", "price",
"charge" }; "charge" };
string[] insert_col = { manage.compidx, string[] insert_col = { PUB.user.CompanyIdx,
tb_setName.Text, tb_setCount.Text, tb_setISBN.Text, tb_setPrice.Text, tb_setYear.Text, tb_setName.Text, tb_setCount.Text, tb_setISBN.Text, tb_setPrice.Text, tb_setYear.Text,
dataGridView1.Rows[a].Cells["book_name"].Value.ToString(), dataGridView1.Rows[a].Cells["book_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["series_title"].Value.ToString(), dataGridView1.Rows[a].Cells["series_title"].Value.ToString(),
@@ -84,10 +82,10 @@ namespace UniMarc.마크
dataGridView1.Rows[a].Cells["author"].Value.ToString(), dataGridView1.Rows[a].Cells["author"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_comp"].Value.ToString(), dataGridView1.Rows[a].Cells["book_comp"].Value.ToString(),
dataGridView1.Rows[a].Cells["ISBN"].Value.ToString(), dataGridView1.Rows[a].Cells["ISBN"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(), manage.charge }; dataGridView1.Rows[a].Cells["price"].Value.ToString(), PUB.user.UserName };
string Incmd = db.DB_INSERT("Set_Book", insert_tbl, insert_col); string Incmd = db.DB_INSERT("Set_Book", insert_tbl, insert_col);
db.DB_Send_CMD_reVoid(Incmd); Helper_DB.ExcuteNonQuery(Incmd);
} }
MessageBox.Show("저장완료"); MessageBox.Show("저장완료");

View File

@@ -1,5 +1,5 @@
namespace UniMarc. namespace UniMarc
{ {
partial class All_Book_manage_Edit partial class All_Book_manage_Edit
{ {

View File

@@ -7,21 +7,17 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
namespace UniMarc. namespace UniMarc
{ {
public partial class All_Book_manage_Edit : Form public partial class All_Book_manage_Edit : Form
{ {
All_Book_manage manage; All_Book_manage manage;
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
string compidx;
public All_Book_manage_Edit(All_Book_manage _manage) public All_Book_manage_Edit(All_Book_manage _manage)
{ {
InitializeComponent(); InitializeComponent();
manage = _manage; manage = _manage;
compidx = manage.compidx;
} }
private void All_Book_manage_Edit_Load(object sender, EventArgs e) private void All_Book_manage_Edit_Load(object sender, EventArgs e)
@@ -48,7 +44,7 @@ namespace UniMarc.마크
{ {
string table = "Set_Book"; string table = "Set_Book";
string[] sear_tbl = { "compidx", "set_name", "set_isbn", "set_count", "set_price" }; string[] sear_tbl = { "compidx", "set_name", "set_isbn", "set_count", "set_price" };
string[] sear_col = { compidx, string[] sear_col = { PUB.user.CompanyIdx,
tb_set_name_old.Text, tb_set_name_old.Text,
tb_set_isbn_old.Text, tb_set_isbn_old.Text,
tb_set_count_old.Text, tb_set_count_old.Text,
@@ -61,7 +57,7 @@ namespace UniMarc.마크
tb_set_price_new.Text }; tb_set_price_new.Text };
string U_cmd = db.More_Update(table, edit_tbl, edit_col, sear_tbl, sear_col); string U_cmd = db.More_Update(table, edit_tbl, edit_col, sear_tbl, sear_col);
db.DB_Send_CMD_reVoid(U_cmd); Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("변경되었습니다!"); MessageBox.Show("변경되었습니다!");
manage.btn_Search_Click(null, null); manage.btn_Search_Click(null, null);
this.Close(); this.Close();

View File

@@ -0,0 +1,15 @@
namespace UniMarc
{
public class BookGridItem
{
public string header { get; set; }
public string num { get; set; }
public string BookName { get; set; }
public string Author { get; set; }
public string BookComp { get; set; }
public string Count { get; set; } = "1";
public string Price { get; set; } = "0";
public string Total { get; set; } = "0";
public string ISBN { get; set; }
}
}

View File

@@ -1,5 +1,5 @@
namespace UniMarc. namespace UniMarc
{ {
partial class CD_LP partial class CD_LP
{ {

View File

@@ -7,16 +7,13 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc. namespace UniMarc
{ {
public partial class CD_LP : Form public partial class CD_LP : Form
{ {
Main main; Main main;
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
string compidx;
string name;
public CD_LP(Main _m) public CD_LP(Main _m)
{ {
InitializeComponent(); InitializeComponent();
@@ -26,8 +23,6 @@ namespace UniMarc.마크
private void CD_LP_Load(object sender, EventArgs e) private void CD_LP_Load(object sender, EventArgs e)
{ {
db.DBcon(); db.DBcon();
compidx = main.com_idx;
name = main.User;
string[] Site = { "교보문고", "알라딘" }; string[] Site = { "교보문고", "알라딘" };
cb_SiteCon.Items.AddRange(Site); cb_SiteCon.Items.AddRange(Site);
@@ -62,7 +57,7 @@ namespace UniMarc.마크
{ {
CD_LP_SelectList selectList = new CD_LP_SelectList(this); CD_LP_SelectList selectList = new CD_LP_SelectList(this);
selectList.Show(); selectList.Show();
selectList.LoadList(compidx); selectList.LoadList(PUB.user.CompanyIdx);
dataGridView1.Rows.Clear(); dataGridView1.Rows.Clear();
} }
@@ -74,7 +69,7 @@ namespace UniMarc.마크
string Table = "DVD_List_Product"; string Table = "DVD_List_Product";
string Area = "`idx`, `num`, `code`, `title`, `artist`, `comp`, `price`, `m_idx`"; string Area = "`idx`, `num`, `code`, `title`, `artist`, `comp`, `price`, `m_idx`";
string[] Search_Table = { "compidx", "listname", "date" }; string[] Search_Table = { "compidx", "listname", "date" };
string[] Search_Column = { compidx, ListName, date }; string[] Search_Column = { PUB.user.CompanyIdx, ListName, date };
string cmd = db.More_DB_Search(Table, Search_Table, Search_Column, Area); string cmd = db.More_DB_Search(Table, Search_Table, Search_Column, Area);
string res = db.DB_Send_CMD_Search(cmd); string res = db.DB_Send_CMD_Search(cmd);
@@ -143,7 +138,7 @@ namespace UniMarc.마크
int row = dataGridView1.CurrentRow.Index; int row = dataGridView1.CurrentRow.Index;
string midx = dataGridView1.Rows[row].Cells["m_idx"].Value.ToString(); string midx = dataGridView1.Rows[row].Cells["m_idx"].Value.ToString();
string code = dataGridView1.Rows[row].Cells["code"].Value.ToString(); string code = dataGridView1.Rows[row].Cells["code"].Value.ToString();
string user = Properties.Settings.Default.User; string user = PUB.user.UserName;
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string etcData1 = etc1.Text; string etcData1 = etc1.Text;
@@ -169,7 +164,7 @@ namespace UniMarc.마크
string[] SearchCol = { "idx" }; string[] SearchCol = { "idx" };
string[] SearchData = { midx }; string[] SearchData = { midx };
db.DB_Send_CMD_reVoid(db.More_Update("DVD_Marc", EditCol, EditData, SearchCol, SearchData)); Helper_DB.ExcuteNonQuery(db.More_Update("DVD_Marc", EditCol, EditData, SearchCol, SearchData));
dataGridView1.Rows[row].Cells["marc"].Value = orimarc; dataGridView1.Rows[row].Cells["marc"].Value = orimarc;
} }
@@ -301,7 +296,7 @@ namespace UniMarc.마크
int row = dataGridView1.CurrentRow.Index; int row = dataGridView1.CurrentRow.Index;
string code = dataGridView1.Rows[row].Cells["code"].Value.ToString(); string code = dataGridView1.Rows[row].Cells["code"].Value.ToString();
string user = Properties.Settings.Default.User; string user = PUB.user.UserName;// Properties.Settings.Default.User;
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
@@ -338,7 +333,7 @@ namespace UniMarc.마크
string[] InsertCol = { "Code", "user", "date", "Marc", "etc1", "etc2" }; string[] InsertCol = { "Code", "user", "date", "Marc", "etc1", "etc2" };
string[] InsertData = { code, user, date, orimarc, etcData1, etcData2 }; string[] InsertData = { code, user, date, orimarc, etcData1, etcData2 };
db.DB_Send_CMD_reVoid(db.DB_INSERT("DVD_Marc", InsertCol, InsertData)); Helper_DB.ExcuteNonQuery(db.DB_INSERT("DVD_Marc", InsertCol, InsertData));
dataGridView1.Rows[row].Cells["m_idx"].Value = dataGridView1.Rows[row].Cells["m_idx"].Value =
db.DB_Send_CMD_Search( db.DB_Send_CMD_Search(
@@ -513,10 +508,10 @@ namespace UniMarc.마크
string[] Insert_col = { "compidx", "listname", "date", "user", "num", "code", "title", "artist", "comp", "price" }; string[] Insert_col = { "compidx", "listname", "date", "user", "num", "code", "title", "artist", "comp", "price" };
string[] Insert_data = string[] Insert_data =
{ {
compidx, PUB.user.CompanyIdx,
lbl_ListTitle.Text, lbl_ListTitle.Text,
lbl_date.Text, lbl_date.Text,
Properties.Settings.Default.User, PUB.user.UserName,
dataGridView1.Rows[a].Cells["num"].Value.ToString(), dataGridView1.Rows[a].Cells["num"].Value.ToString(),
dataGridView1.Rows[a].Cells["code"].Value.ToString(), dataGridView1.Rows[a].Cells["code"].Value.ToString(),
dataGridView1.Rows[a].Cells["title"].Value.ToString(), dataGridView1.Rows[a].Cells["title"].Value.ToString(),
@@ -524,7 +519,7 @@ namespace UniMarc.마크
dataGridView1.Rows[a].Cells["comp"].Value.ToString(), dataGridView1.Rows[a].Cells["comp"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString() dataGridView1.Rows[a].Cells["price"].Value.ToString()
}; };
db.DB_Send_CMD_reVoid(db.DB_INSERT("DVD_List_Product", Insert_col, Insert_data)); Helper_DB.ExcuteNonQuery(db.DB_INSERT("DVD_List_Product", Insert_col, Insert_data));
} }
} }
@@ -532,7 +527,7 @@ namespace UniMarc.마크
for (int a = 0; a < DeleteIndex.Count; a++) for (int a = 0; a < DeleteIndex.Count; a++)
{ {
db.DB_Send_CMD_reVoid(db.DB_Delete("DVD_List_Product", "compidx", compidx, "idx", DeleteIndex[a])); Helper_DB.ExcuteNonQuery(db.DB_Delete("DVD_List_Product", "compidx", PUB.user.CompanyIdx, "idx", DeleteIndex[a]));
} }
} }

View File

@@ -1,4 +1,4 @@
namespace UniMarc. namespace UniMarc
{ {
partial class CD_LP_AddList partial class CD_LP_AddList
{ {

Some files were not shown because too many files have changed in this diff Show More