복본검사 화면 분리. - 등록된 부서의 사용자만 보이도록 함.
This commit is contained in:
84
unimarc/unimarc/Main.Designer.cs
generated
84
unimarc/unimarc/Main.Designer.cs
generated
@@ -131,8 +131,9 @@
|
||||
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.IPText = new System.Windows.Forms.ToolStripLabel();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.lblStatus = new System.Windows.Forms.ToolStripLabel();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.복본조사2 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
@@ -171,28 +172,28 @@
|
||||
// 사업체정보
|
||||
//
|
||||
this.사업체정보.Name = "사업체정보";
|
||||
this.사업체정보.Size = new System.Drawing.Size(175, 22);
|
||||
this.사업체정보.Size = new System.Drawing.Size(180, 22);
|
||||
this.사업체정보.Text = "사업체 정보";
|
||||
this.사업체정보.Click += new System.EventHandler(this.사용자정보ToolStripMenuItem_Click);
|
||||
//
|
||||
// 사용자관리
|
||||
//
|
||||
this.사용자관리.Name = "사용자관리";
|
||||
this.사용자관리.Size = new System.Drawing.Size(175, 22);
|
||||
this.사용자관리.Size = new System.Drawing.Size(180, 22);
|
||||
this.사용자관리.Text = "사용자 관리";
|
||||
this.사용자관리.Click += new System.EventHandler(this.사용자관리ToolStripMenuItem_Click);
|
||||
//
|
||||
// 납품거래처관리
|
||||
//
|
||||
this.납품거래처관리.Name = "납품거래처관리";
|
||||
this.납품거래처관리.Size = new System.Drawing.Size(175, 22);
|
||||
this.납품거래처관리.Size = new System.Drawing.Size(180, 22);
|
||||
this.납품거래처관리.Text = "납품 / 거래처 관리";
|
||||
this.납품거래처관리.Click += new System.EventHandler(this.납품거래처관리ToolStripMenuItem_Click);
|
||||
//
|
||||
// 주문처관리
|
||||
//
|
||||
this.주문처관리.Name = "주문처관리";
|
||||
this.주문처관리.Size = new System.Drawing.Size(175, 22);
|
||||
this.주문처관리.Size = new System.Drawing.Size(180, 22);
|
||||
this.주문처관리.Text = "주문처 관리";
|
||||
this.주문처관리.Click += new System.EventHandler(this.주문처관리ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -200,14 +201,14 @@
|
||||
//
|
||||
this.비밀번호변경.Enabled = false;
|
||||
this.비밀번호변경.Name = "비밀번호변경";
|
||||
this.비밀번호변경.Size = new System.Drawing.Size(175, 22);
|
||||
this.비밀번호변경.Size = new System.Drawing.Size(180, 22);
|
||||
this.비밀번호변경.Text = "비밀번호 변경";
|
||||
this.비밀번호변경.Click += new System.EventHandler(this.비밀번호변경ToolStripMenuItem_Click);
|
||||
//
|
||||
// 도서정보관리
|
||||
//
|
||||
this.도서정보관리.Name = "도서정보관리";
|
||||
this.도서정보관리.Size = new System.Drawing.Size(175, 22);
|
||||
this.도서정보관리.Size = new System.Drawing.Size(180, 22);
|
||||
this.도서정보관리.Text = "도서정보 관리";
|
||||
this.도서정보관리.Click += new System.EventHandler(this.도서정보관리ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -215,7 +216,7 @@
|
||||
//
|
||||
this.사용대장.Enabled = false;
|
||||
this.사용대장.Name = "사용대장";
|
||||
this.사용대장.Size = new System.Drawing.Size(175, 22);
|
||||
this.사용대장.Size = new System.Drawing.Size(180, 22);
|
||||
this.사용대장.Text = "사용대장";
|
||||
this.사용대장.Click += new System.EventHandler(this.사용대장ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -236,49 +237,49 @@
|
||||
// 목록등록
|
||||
//
|
||||
this.목록등록.Name = "목록등록";
|
||||
this.목록등록.Size = new System.Drawing.Size(166, 22);
|
||||
this.목록등록.Size = new System.Drawing.Size(180, 22);
|
||||
this.목록등록.Text = "물품등록";
|
||||
this.목록등록.Click += new System.EventHandler(this.물품등록ToolStripMenuItem_Click);
|
||||
//
|
||||
// 목록조회
|
||||
//
|
||||
this.목록조회.Name = "목록조회";
|
||||
this.목록조회.Size = new System.Drawing.Size(166, 22);
|
||||
this.목록조회.Size = new System.Drawing.Size(180, 22);
|
||||
this.목록조회.Text = "목록조회";
|
||||
this.목록조회.Click += new System.EventHandler(this.목록등록편의ToolStripMenuItem_Click);
|
||||
//
|
||||
// 목록집계
|
||||
//
|
||||
this.목록집계.Name = "목록집계";
|
||||
this.목록집계.Size = new System.Drawing.Size(166, 22);
|
||||
this.목록집계.Size = new System.Drawing.Size(180, 22);
|
||||
this.목록집계.Text = "목록집계";
|
||||
this.목록집계.Click += new System.EventHandler(this.목록집계ToolStripMenuItem_Click);
|
||||
//
|
||||
// 주문입력
|
||||
//
|
||||
this.주문입력.Name = "주문입력";
|
||||
this.주문입력.Size = new System.Drawing.Size(166, 22);
|
||||
this.주문입력.Size = new System.Drawing.Size(180, 22);
|
||||
this.주문입력.Text = "주문입력";
|
||||
this.주문입력.Click += new System.EventHandler(this.주문입력ToolStripMenuItem_Click);
|
||||
//
|
||||
// 입고작업
|
||||
//
|
||||
this.입고작업.Name = "입고작업";
|
||||
this.입고작업.Size = new System.Drawing.Size(166, 22);
|
||||
this.입고작업.Size = new System.Drawing.Size(180, 22);
|
||||
this.입고작업.Text = "입고작업";
|
||||
this.입고작업.Click += new System.EventHandler(this.매입ToolStripMenuItem_Click);
|
||||
//
|
||||
// 재고입력및조회
|
||||
//
|
||||
this.재고입력및조회.Name = "재고입력및조회";
|
||||
this.재고입력및조회.Size = new System.Drawing.Size(166, 22);
|
||||
this.재고입력및조회.Size = new System.Drawing.Size(180, 22);
|
||||
this.재고입력및조회.Text = "재고입력 및 조회";
|
||||
this.재고입력및조회.Click += new System.EventHandler(this.재고입력및조회ToolStripMenuItem_Click);
|
||||
//
|
||||
// 반품처리
|
||||
//
|
||||
this.반품처리.Name = "반품처리";
|
||||
this.반품처리.Size = new System.Drawing.Size(166, 22);
|
||||
this.반품처리.Size = new System.Drawing.Size(180, 22);
|
||||
this.반품처리.Text = "반품처리";
|
||||
this.반품처리.Click += new System.EventHandler(this.반품처리ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -297,14 +298,14 @@
|
||||
// 송금내역조회
|
||||
//
|
||||
this.송금내역조회.Name = "송금내역조회";
|
||||
this.송금내역조회.Size = new System.Drawing.Size(154, 22);
|
||||
this.송금내역조회.Size = new System.Drawing.Size(180, 22);
|
||||
this.송금내역조회.Text = "송금 내역 조회";
|
||||
this.송금내역조회.Click += new System.EventHandler(this.송금내역조회ToolStripMenuItem_Click);
|
||||
//
|
||||
// 송금등록
|
||||
//
|
||||
this.송금등록.Name = "송금등록";
|
||||
this.송금등록.Size = new System.Drawing.Size(154, 22);
|
||||
this.송금등록.Size = new System.Drawing.Size(180, 22);
|
||||
this.송금등록.Text = "송금 등록";
|
||||
this.송금등록.Click += new System.EventHandler(this.송금등록ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -315,7 +316,7 @@
|
||||
this.매입장부,
|
||||
this.매입미결제ToolStripMenuItem});
|
||||
this.매입.Name = "매입";
|
||||
this.매입.Size = new System.Drawing.Size(154, 22);
|
||||
this.매입.Size = new System.Drawing.Size(180, 22);
|
||||
this.매입.Text = "매입";
|
||||
//
|
||||
// 매입집계
|
||||
@@ -348,7 +349,7 @@
|
||||
this.매출조회,
|
||||
this.매출집계});
|
||||
this.매출.Name = "매출";
|
||||
this.매출.Size = new System.Drawing.Size(154, 22);
|
||||
this.매출.Size = new System.Drawing.Size(180, 22);
|
||||
this.매출.Text = "매출";
|
||||
//
|
||||
// 매출입력
|
||||
@@ -382,7 +383,7 @@
|
||||
// 파트타임관리
|
||||
//
|
||||
this.파트타임관리.Name = "파트타임관리";
|
||||
this.파트타임관리.Size = new System.Drawing.Size(154, 22);
|
||||
this.파트타임관리.Size = new System.Drawing.Size(180, 22);
|
||||
this.파트타임관리.Text = "파트타임 관리";
|
||||
this.파트타임관리.Click += new System.EventHandler(this.파트타임관리ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -408,13 +409,13 @@
|
||||
this.불용어,
|
||||
this.작업지시서});
|
||||
this.마크설정.Name = "마크설정";
|
||||
this.마크설정.Size = new System.Drawing.Size(156, 22);
|
||||
this.마크설정.Size = new System.Drawing.Size(180, 22);
|
||||
this.마크설정.Text = "설정";
|
||||
//
|
||||
// 단축키설정
|
||||
//
|
||||
this.단축키설정.Name = "단축키설정";
|
||||
this.단축키설정.Size = new System.Drawing.Size(138, 22);
|
||||
this.단축키설정.Size = new System.Drawing.Size(180, 22);
|
||||
this.단축키설정.Text = "단축키";
|
||||
this.단축키설정.Visible = false;
|
||||
this.단축키설정.Click += new System.EventHandler(this.단축키설정ToolStripMenuItem_Click);
|
||||
@@ -422,14 +423,14 @@
|
||||
// 매크로문구
|
||||
//
|
||||
this.매크로문구.Name = "매크로문구";
|
||||
this.매크로문구.Size = new System.Drawing.Size(138, 22);
|
||||
this.매크로문구.Size = new System.Drawing.Size(180, 22);
|
||||
this.매크로문구.Text = "매크로 문구";
|
||||
this.매크로문구.Click += new System.EventHandler(this.매크로문구설정ToolStripMenuItem_Click);
|
||||
//
|
||||
// 불용어
|
||||
//
|
||||
this.불용어.Name = "불용어";
|
||||
this.불용어.Size = new System.Drawing.Size(138, 22);
|
||||
this.불용어.Size = new System.Drawing.Size(180, 22);
|
||||
this.불용어.Text = "불용어";
|
||||
this.불용어.Visible = false;
|
||||
this.불용어.Click += new System.EventHandler(this.불용어ToolStripMenuItem_Click);
|
||||
@@ -437,7 +438,7 @@
|
||||
// 작업지시서
|
||||
//
|
||||
this.작업지시서.Name = "작업지시서";
|
||||
this.작업지시서.Size = new System.Drawing.Size(138, 22);
|
||||
this.작업지시서.Size = new System.Drawing.Size(180, 22);
|
||||
this.작업지시서.Text = "작업지시서";
|
||||
this.작업지시서.Visible = false;
|
||||
this.작업지시서.Click += new System.EventHandler(this.작업지시서ToolStripMenuItem_Click);
|
||||
@@ -450,50 +451,51 @@
|
||||
this.소장자료검색,
|
||||
this.마크정리,
|
||||
this.복본조사1,
|
||||
this.복본조사2,
|
||||
this.iSBN조회});
|
||||
this.마크작업.Name = "마크작업";
|
||||
this.마크작업.Size = new System.Drawing.Size(156, 22);
|
||||
this.마크작업.Size = new System.Drawing.Size(180, 22);
|
||||
this.마크작업.Text = "마크 작업";
|
||||
//
|
||||
// 마크작성
|
||||
//
|
||||
this.마크작성.Name = "마크작성";
|
||||
this.마크작성.Size = new System.Drawing.Size(146, 22);
|
||||
this.마크작성.Size = new System.Drawing.Size(180, 22);
|
||||
this.마크작성.Text = "마크 작성";
|
||||
this.마크작성.Click += new System.EventHandler(this.마크작성ToolStripMenuItem_Click);
|
||||
//
|
||||
// 마크목록
|
||||
//
|
||||
this.마크목록.Name = "마크목록";
|
||||
this.마크목록.Size = new System.Drawing.Size(146, 22);
|
||||
this.마크목록.Size = new System.Drawing.Size(180, 22);
|
||||
this.마크목록.Text = "마크 목록";
|
||||
this.마크목록.Click += new System.EventHandler(this.마크목록ToolStripMenuItem_Click);
|
||||
//
|
||||
// 소장자료검색
|
||||
//
|
||||
this.소장자료검색.Name = "소장자료검색";
|
||||
this.소장자료검색.Size = new System.Drawing.Size(146, 22);
|
||||
this.소장자료검색.Size = new System.Drawing.Size(180, 22);
|
||||
this.소장자료검색.Text = "소장자료검색";
|
||||
this.소장자료검색.Click += new System.EventHandler(this.소장자료검색ToolStripMenuItem_Click);
|
||||
//
|
||||
// 마크정리
|
||||
//
|
||||
this.마크정리.Name = "마크정리";
|
||||
this.마크정리.Size = new System.Drawing.Size(146, 22);
|
||||
this.마크정리.Size = new System.Drawing.Size(180, 22);
|
||||
this.마크정리.Text = "마크 정리";
|
||||
this.마크정리.Click += new System.EventHandler(this.마크정리ToolStripMenuItem_Click);
|
||||
//
|
||||
// 복본조사1
|
||||
//
|
||||
this.복본조사1.Name = "복본조사1";
|
||||
this.복본조사1.Size = new System.Drawing.Size(146, 22);
|
||||
this.복본조사1.Size = new System.Drawing.Size(180, 22);
|
||||
this.복본조사1.Text = "복본조사";
|
||||
this.복본조사1.Click += new System.EventHandler(this.복본조사ToolStripMenuItem1_Click);
|
||||
//
|
||||
// iSBN조회
|
||||
//
|
||||
this.iSBN조회.Name = "iSBN조회";
|
||||
this.iSBN조회.Size = new System.Drawing.Size(146, 22);
|
||||
this.iSBN조회.Size = new System.Drawing.Size(180, 22);
|
||||
this.iSBN조회.Text = "ISBN 조회";
|
||||
this.iSBN조회.Click += new System.EventHandler(this.iSBN조회ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -503,7 +505,7 @@
|
||||
this.목록,
|
||||
this.편목});
|
||||
this.dVDCDLPToolStripMenuItem.Name = "dVDCDLPToolStripMenuItem";
|
||||
this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
|
||||
this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.dVDCDLPToolStripMenuItem.Text = "DVD / CD / LP";
|
||||
//
|
||||
// 목록
|
||||
@@ -527,7 +529,7 @@
|
||||
this.마크반입,
|
||||
this.마크반출});
|
||||
this.반입및반출.Name = "반입및반출";
|
||||
this.반입및반출.Size = new System.Drawing.Size(156, 22);
|
||||
this.반입및반출.Size = new System.Drawing.Size(180, 22);
|
||||
this.반입및반출.Text = "반입 및 반출";
|
||||
//
|
||||
// 마크반입
|
||||
@@ -552,7 +554,7 @@
|
||||
this.검수,
|
||||
this.저자기호});
|
||||
this.부가기능.Name = "부가기능";
|
||||
this.부가기능.Size = new System.Drawing.Size(156, 22);
|
||||
this.부가기능.Size = new System.Drawing.Size(180, 22);
|
||||
this.부가기능.Text = "부가기능";
|
||||
//
|
||||
// 마크수집
|
||||
@@ -593,7 +595,7 @@
|
||||
this.DLS조회,
|
||||
this.dLS복본조사});
|
||||
this.DLS.Name = "DLS";
|
||||
this.DLS.Size = new System.Drawing.Size(156, 22);
|
||||
this.DLS.Size = new System.Drawing.Size(180, 22);
|
||||
this.DLS.Text = "DLS";
|
||||
//
|
||||
// DLS조회
|
||||
@@ -617,7 +619,7 @@
|
||||
this.마크통계,
|
||||
this.장비관리});
|
||||
this.마크기타.Name = "마크기타";
|
||||
this.마크기타.Size = new System.Drawing.Size(156, 22);
|
||||
this.마크기타.Size = new System.Drawing.Size(180, 22);
|
||||
this.마크기타.Text = "기타";
|
||||
//
|
||||
// 서류작성
|
||||
@@ -1065,6 +1067,13 @@
|
||||
this.lblStatus.Size = new System.Drawing.Size(27, 22);
|
||||
this.lblStatus.Text = "WD";
|
||||
//
|
||||
// 복본조사2
|
||||
//
|
||||
this.복본조사2.Name = "복본조사2";
|
||||
this.복본조사2.Size = new System.Drawing.Size(180, 22);
|
||||
this.복본조사2.Text = "복본조사(New)";
|
||||
this.복본조사2.Click += new System.EventHandler(this.복본조사2_Click);
|
||||
//
|
||||
// Main
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -1197,5 +1206,6 @@
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
|
||||
public System.Windows.Forms.ToolStripLabel IPText;
|
||||
private System.Windows.Forms.ToolStripLabel lblStatus;
|
||||
private System.Windows.Forms.ToolStripMenuItem 복본조사2;
|
||||
}
|
||||
}
|
||||
@@ -1510,5 +1510,14 @@ namespace WindowsFormsApp1
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void 복본조사2_Click(object sender, EventArgs e)
|
||||
{
|
||||
var Mac_check_Copy = new Check_copyWD(this);
|
||||
Mac_check_Copy.MdiParent = this;
|
||||
Mac_check_Copy.WindowState = FormWindowState.Normal;
|
||||
Mac_check_Copy.FormClosed += (o, ea) => Mac_check_Copy = null;
|
||||
Mac_check_Copy.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -236,6 +236,12 @@
|
||||
<Compile Include="마크\CD_LP_Sub.Designer.cs">
|
||||
<DependentUpon>CD_LP_Sub.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_copyWD.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_copyWD.Designer.cs">
|
||||
<DependentUpon>Check_copyWD.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\Check_Copy_Login.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -930,6 +936,9 @@
|
||||
<EmbeddedResource Include="마크\CD_LP_Sub.resx">
|
||||
<DependentUpon>CD_LP_Sub.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\Check_copyWD.resx">
|
||||
<DependentUpon>Check_copyWD.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\Check_Copy_Login.resx">
|
||||
<DependentUpon>Check_Copy_Login.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
@@ -16,8 +16,8 @@ namespace UniMarc.마크
|
||||
public partial class Check_Copy_Sub_List : Form
|
||||
{
|
||||
Helper_DB db = new Helper_DB();
|
||||
Check_copy cc;
|
||||
public Check_Copy_Sub_List(Check_copy _cc)
|
||||
Form cc;
|
||||
public Check_Copy_Sub_List(Form _cc)
|
||||
{
|
||||
InitializeComponent();
|
||||
cc = _cc;
|
||||
@@ -122,23 +122,59 @@ namespace UniMarc.마크
|
||||
|
||||
string cmd = db.More_DB_Search("Specs_Marc", search_col, search_data, area);
|
||||
Result(db.DB_Send_CMD_Search(cmd));
|
||||
cc.btn_SearchList.Text = list_name;
|
||||
cc.SearchCount.Value = cc.dataGridView1.Rows.Count - 1;
|
||||
|
||||
if(cc is Check_copy)
|
||||
{
|
||||
var cc2 = cc as Check_copy;
|
||||
cc2.btn_SearchList.Text = list_name;
|
||||
cc2.SearchCount.Value = cc2.dataGridView1.Rows.Count - 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
var cc2 = cc as Check_copyWD;
|
||||
cc2.btn_SearchList.Text = list_name;
|
||||
cc2.SearchCount.Value = cc2.dataGridView1.Rows.Count - 1;
|
||||
|
||||
}
|
||||
|
||||
this.Close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void Result(string query)
|
||||
{
|
||||
cc.dataGridView1.Rows.Clear();
|
||||
|
||||
string[] ary = query.Split('|');
|
||||
|
||||
string[] grid = { "", "", "" };
|
||||
for(int a= 0; a < ary.Length; a++)
|
||||
if (cc is Check_copy)
|
||||
{
|
||||
if (a % 2 == 0) { grid[0] = ary[a]; }
|
||||
if (a % 2 == 1) { grid[1] = ary[a]; cc.dataGridView1.Rows.Add(grid); }
|
||||
var cc2 = cc as Check_copy;
|
||||
cc2.dataGridView1.Rows.Clear();
|
||||
|
||||
string[] ary = query.Split('|');
|
||||
string[] grid = { "", "", "" };
|
||||
for (int a = 0; a < ary.Length; a++)
|
||||
{
|
||||
if (a % 2 == 0) { grid[0] = ary[a]; }
|
||||
if (a % 2 == 1) { grid[1] = ary[a]; cc2.dataGridView1.Rows.Add(grid); }
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var cc2 = cc as Check_copyWD;
|
||||
cc2.dataGridView1.Rows.Clear();
|
||||
|
||||
string[] ary = query.Split('|');
|
||||
string[] grid = { "", "", "" };
|
||||
for (int a = 0; a < ary.Length; a++)
|
||||
{
|
||||
if (a % 2 == 0) { grid[0] = ary[a]; }
|
||||
if (a % 2 == 1) { grid[1] = ary[a]; cc2.dataGridView1.Rows.Add(grid); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -14,8 +14,8 @@ namespace UniMarc.마크
|
||||
{
|
||||
public partial class Check_Copy_Sub_Search : Form
|
||||
{
|
||||
Check_copy cc;
|
||||
public Check_Copy_Sub_Search(Check_copy _cc)
|
||||
Form cc;
|
||||
public Check_Copy_Sub_Search(Form _cc)
|
||||
{
|
||||
InitializeComponent();
|
||||
cc = _cc;
|
||||
@@ -79,15 +79,26 @@ namespace UniMarc.마크
|
||||
|
||||
string lib_Category = string.Format("{0}_{1}", Province, Area);
|
||||
|
||||
cc.lib_Category = lib_Category;
|
||||
cc.Code = Code;
|
||||
cc.URL = URL;
|
||||
cc.tb_SearchTarget.Text = lib_name;
|
||||
cc.SearcherNo = searcher;
|
||||
|
||||
cc.groupBox1.Enabled = int.TryParse(searcher, out int vno) && vno > 0;
|
||||
cc.chkRetryErrData.Enabled = cc.groupBox1.Enabled;
|
||||
|
||||
if (cc is Check_copy)
|
||||
{
|
||||
var cc2 = cc as Check_copy;
|
||||
cc2.lib_Category = lib_Category;
|
||||
cc2.Code = Code;
|
||||
cc2.URL = URL;
|
||||
cc2.tb_SearchTarget.Text = lib_name;
|
||||
cc2.SearcherNo = searcher;
|
||||
}
|
||||
else if (cc is Check_copyWD)
|
||||
{
|
||||
var cc2 = cc as Check_copyWD;
|
||||
cc2.lib_Category = lib_Category;
|
||||
cc2.Code = Code;
|
||||
cc2.URL = URL;
|
||||
cc2.tb_SearchTarget.Text = lib_name;
|
||||
cc2.SearcherNo = searcher;
|
||||
cc2.groupBox1.Enabled = int.TryParse(searcher, out int vno) && vno > 0;
|
||||
cc2.chkRetryErrData.Enabled = cc2.groupBox1.Enabled;
|
||||
}
|
||||
|
||||
if (lib_name.Contains("Kolasys.net"))
|
||||
{
|
||||
@@ -98,8 +109,19 @@ namespace UniMarc.마크
|
||||
|
||||
public void SetLogin(string id, string pw)
|
||||
{
|
||||
cc.lbl_ID.Text = id;
|
||||
cc.lbl_PW.Text = pw;
|
||||
if (cc is Check_copy)
|
||||
{
|
||||
var cc2 = cc as Check_copy;
|
||||
cc2.lbl_ID.Text = id;
|
||||
cc2.lbl_PW.Text = pw;
|
||||
}
|
||||
else if (cc is Check_copyWD)
|
||||
{
|
||||
var cc2 = cc as Check_copyWD;
|
||||
cc2.lbl_ID.Text = id;
|
||||
cc2.lbl_PW.Text = pw;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
98
unimarc/unimarc/마크/Check_copy.Designer.cs
generated
98
unimarc/unimarc/마크/Check_copy.Designer.cs
generated
@@ -30,11 +30,6 @@
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.radTargetErr = new System.Windows.Forms.RadioButton();
|
||||
this.radTargetEmpty = new System.Windows.Forms.RadioButton();
|
||||
this.radTargetErrEmpty = new System.Windows.Forms.RadioButton();
|
||||
this.radTargetAll = new System.Windows.Forms.RadioButton();
|
||||
this.rb_isNumber = new System.Windows.Forms.RadioButton();
|
||||
this.rb_isHave = new System.Windows.Forms.RadioButton();
|
||||
this.btn_SearchList = new System.Windows.Forms.Button();
|
||||
@@ -67,9 +62,7 @@
|
||||
this.chk_spChar = new System.Windows.Forms.CheckBox();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
|
||||
this.chkRetryErrData = new System.Windows.Forms.CheckBox();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.SearchCount)).BeginInit();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
@@ -83,8 +76,6 @@
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.chkRetryErrData);
|
||||
this.panel1.Controls.Add(this.groupBox1);
|
||||
this.panel1.Controls.Add(this.rb_isNumber);
|
||||
this.panel1.Controls.Add(this.rb_isHave);
|
||||
this.panel1.Controls.Add(this.btn_SearchList);
|
||||
@@ -93,64 +84,9 @@
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 34);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(629, 106);
|
||||
this.panel1.Size = new System.Drawing.Size(629, 34);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.radTargetErr);
|
||||
this.groupBox1.Controls.Add(this.radTargetEmpty);
|
||||
this.groupBox1.Controls.Add(this.radTargetErrEmpty);
|
||||
this.groupBox1.Controls.Add(this.radTargetAll);
|
||||
this.groupBox1.Location = new System.Drawing.Point(318, 34);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(304, 39);
|
||||
this.groupBox1.TabIndex = 6;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "검색대상";
|
||||
//
|
||||
// radTargetErr
|
||||
//
|
||||
this.radTargetErr.AutoSize = true;
|
||||
this.radTargetErr.Location = new System.Drawing.Point(197, 16);
|
||||
this.radTargetErr.Name = "radTargetErr";
|
||||
this.radTargetErr.Size = new System.Drawing.Size(47, 16);
|
||||
this.radTargetErr.TabIndex = 9;
|
||||
this.radTargetErr.Text = "오류";
|
||||
this.radTargetErr.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radTargetEmpty
|
||||
//
|
||||
this.radTargetEmpty.AutoSize = true;
|
||||
this.radTargetEmpty.Location = new System.Drawing.Point(144, 16);
|
||||
this.radTargetEmpty.Name = "radTargetEmpty";
|
||||
this.radTargetEmpty.Size = new System.Drawing.Size(47, 16);
|
||||
this.radTargetEmpty.TabIndex = 8;
|
||||
this.radTargetEmpty.Text = "없음";
|
||||
this.radTargetEmpty.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radTargetErrEmpty
|
||||
//
|
||||
this.radTargetErrEmpty.AutoSize = true;
|
||||
this.radTargetErrEmpty.Location = new System.Drawing.Point(61, 17);
|
||||
this.radTargetErrEmpty.Name = "radTargetErrEmpty";
|
||||
this.radTargetErrEmpty.Size = new System.Drawing.Size(77, 16);
|
||||
this.radTargetErrEmpty.TabIndex = 7;
|
||||
this.radTargetErrEmpty.Text = "오류+없음";
|
||||
this.radTargetErrEmpty.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radTargetAll
|
||||
//
|
||||
this.radTargetAll.AutoSize = true;
|
||||
this.radTargetAll.Checked = true;
|
||||
this.radTargetAll.Location = new System.Drawing.Point(8, 16);
|
||||
this.radTargetAll.Name = "radTargetAll";
|
||||
this.radTargetAll.Size = new System.Drawing.Size(47, 16);
|
||||
this.radTargetAll.TabIndex = 6;
|
||||
this.radTargetAll.TabStop = true;
|
||||
this.radTargetAll.Text = "전체";
|
||||
this.radTargetAll.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// rb_isNumber
|
||||
//
|
||||
this.rb_isNumber.AutoSize = true;
|
||||
@@ -178,7 +114,7 @@
|
||||
//
|
||||
this.btn_SearchList.Location = new System.Drawing.Point(4, 4);
|
||||
this.btn_SearchList.Name = "btn_SearchList";
|
||||
this.btn_SearchList.Size = new System.Drawing.Size(305, 93);
|
||||
this.btn_SearchList.Size = new System.Drawing.Size(305, 24);
|
||||
this.btn_SearchList.TabIndex = 3;
|
||||
this.btn_SearchList.Text = "목록 검색";
|
||||
this.btn_SearchList.UseVisualStyleBackColor = true;
|
||||
@@ -324,7 +260,7 @@
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(629, 542);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(629, 614);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
@@ -383,16 +319,16 @@
|
||||
this.panel6.Controls.Add(this.dataGridView1);
|
||||
this.panel6.Controls.Add(this.statusStrip1);
|
||||
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel6.Location = new System.Drawing.Point(0, 174);
|
||||
this.panel6.Location = new System.Drawing.Point(0, 102);
|
||||
this.panel6.Name = "panel6";
|
||||
this.panel6.Size = new System.Drawing.Size(629, 564);
|
||||
this.panel6.Size = new System.Drawing.Size(629, 636);
|
||||
this.panel6.TabIndex = 3;
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.lblStatus});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 542);
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 614);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(629, 22);
|
||||
this.statusStrip1.TabIndex = 2;
|
||||
@@ -414,7 +350,7 @@
|
||||
this.panel4.Controls.Add(this.btn_ApplyFilter);
|
||||
this.panel4.Controls.Add(this.chk_spChar);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel4.Location = new System.Drawing.Point(0, 140);
|
||||
this.panel4.Location = new System.Drawing.Point(0, 68);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(629, 34);
|
||||
this.panel4.TabIndex = 2;
|
||||
@@ -488,18 +424,6 @@
|
||||
this.webBrowser1.Size = new System.Drawing.Size(662, 738);
|
||||
this.webBrowser1.TabIndex = 2;
|
||||
//
|
||||
// chkRetryErrData
|
||||
//
|
||||
this.chkRetryErrData.AutoSize = true;
|
||||
this.chkRetryErrData.Checked = true;
|
||||
this.chkRetryErrData.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkRetryErrData.Location = new System.Drawing.Point(319, 81);
|
||||
this.chkRetryErrData.Name = "chkRetryErrData";
|
||||
this.chkRetryErrData.Size = new System.Drawing.Size(188, 16);
|
||||
this.chkRetryErrData.TabIndex = 7;
|
||||
this.chkRetryErrData.Text = "검색 후 오류 데이터 추가 검색";
|
||||
this.chkRetryErrData.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Check_copy
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -513,8 +437,6 @@
|
||||
this.Load += new System.EventHandler(this.Check_copy_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.SearchCount)).EndInit();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
@@ -562,15 +484,9 @@
|
||||
private System.Windows.Forms.WebBrowser webBrowser1;
|
||||
private System.Windows.Forms.StatusStrip statusStrip1;
|
||||
private System.Windows.Forms.ToolStripLabel lblStatus;
|
||||
private System.Windows.Forms.RadioButton radTargetAll;
|
||||
private System.Windows.Forms.RadioButton radTargetErr;
|
||||
private System.Windows.Forms.RadioButton radTargetEmpty;
|
||||
private System.Windows.Forms.RadioButton radTargetErrEmpty;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Count;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_remark;
|
||||
public System.Windows.Forms.CheckBox chkRetryErrData;
|
||||
public System.Windows.Forms.GroupBox groupBox1;
|
||||
}
|
||||
}
|
||||
@@ -25,20 +25,6 @@ namespace WindowsFormsApp1.Mac
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
db.DBcon();
|
||||
|
||||
//도서검색(크롤링)
|
||||
_searchService = new BookSearchService();
|
||||
//_searchService.AddSearcher(new KwangjuCityLibrarySearcher_central());
|
||||
//_searchService.AddSearcher(new KwangjuCityLibrarySearcher_choisangjun());
|
||||
//_searchService.AddSearcher(new KwangjuCityLibrarySearcher_dagachi());
|
||||
//_searchService.AddSearcher(new KwangjuCityLibrarySearcher_Indi());
|
||||
//_searchService.AddSearcher(new KwangjuCityLibrarySearcher_Student());
|
||||
//_searchService.AddSearcher(new KwangjuCityLibrarySearcher_Kumho());
|
||||
_searchService.AddSearcher(new NamguLibrarySearcher_Munhwa(1));
|
||||
_searchService.AddSearcher(new NamguLibrarySearcher_Children(2));
|
||||
_searchService.AddSearcher(new NamguLibrarySearcher_Smart(3));
|
||||
_searchService.AddSearcher(new NamguLibrarySearcher_Purungil(4));
|
||||
_searchService.AddSearcher(new NamguLibrarySearcher_Hyocheon(5));
|
||||
}
|
||||
|
||||
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
@@ -54,99 +40,9 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
//크롤링
|
||||
InitializeChromeDriver();
|
||||
}
|
||||
|
||||
|
||||
#region 크롤링
|
||||
|
||||
private readonly BookSearchService _searchService;
|
||||
private bool _isSearching = false;
|
||||
private bool _isDriverReady = false;
|
||||
|
||||
private async void InitializeChromeDriver()
|
||||
{
|
||||
var lblStatus = this.lblStatus;// (Label)this.Controls["lblStatus"];
|
||||
lblStatus.Text = "WebDriver:Chrome 드라이버 확인 중...";
|
||||
lblStatus.ForeColor = Color.Blue;
|
||||
|
||||
try
|
||||
{
|
||||
// Chrome 설치 확인
|
||||
if (!ChromeDriverManager.IsChromeInstalled())
|
||||
{
|
||||
MessageBox.Show("Google Chrome이 설치되어 있지 않습니다. Chrome을 설치한 후 프로그램을 다시 실행해주세요.",
|
||||
"Chrome 필요", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
lblStatus.Text = "WebDriver:Chrome이 설치되지 않음";
|
||||
lblStatus.ForeColor = Color.Red;
|
||||
return;
|
||||
}
|
||||
|
||||
// 기존 드라이버가 준비되어 있는지 확인
|
||||
if (ChromeDriverManager.IsDriverReady())
|
||||
{
|
||||
lblStatus.Text = "WebDriver:Ready";
|
||||
lblStatus.ForeColor = Color.Green;
|
||||
_isDriverReady = true;
|
||||
return;
|
||||
}
|
||||
|
||||
// 드라이버가 없거나 작동하지 않으면 다운로드 진행 창 표시
|
||||
using (var progressForm = new DownloadProgressForm())
|
||||
{
|
||||
progressForm.Show();
|
||||
|
||||
try
|
||||
{
|
||||
// ChromeDriver 설정
|
||||
await ChromeDriverManager.SetupChromeDriverAsync(progressForm);
|
||||
|
||||
// 드라이버 테스트
|
||||
var isWorking = await ChromeDriverManager.TestChromeDriverAsync(progressForm);
|
||||
|
||||
if (isWorking)
|
||||
{
|
||||
_isDriverReady = true;
|
||||
lblStatus.Text = "WebDriver:Ready";
|
||||
lblStatus.ForeColor = Color.Green;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblStatus.Text = "WebDriver:Chrome 드라이버 테스트 실패";
|
||||
lblStatus.ForeColor = Color.Red;
|
||||
MessageBox.Show("Chrome 드라이버 테스트에 실패했습니다. 인터넷 연결을 확인하고 프로그램을 다시 실행해주세요.",
|
||||
"드라이버 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
lblStatus.Text = "WebDriver:드라이버 다운로드가 취소되었습니다.";
|
||||
lblStatus.ForeColor = Color.Orange;
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
lblStatus.Text = "WebDriver:Chrome 드라이버 설정 실패";
|
||||
lblStatus.ForeColor = Color.Red;
|
||||
MessageBox.Show($"Chrome 드라이버 설정 중 오류가 발생했습니다: {ex.Message}",
|
||||
"설정 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
lblStatus.Text = "WebDriver:Chrome 드라이버 설정 실패";
|
||||
lblStatus.ForeColor = Color.Red;
|
||||
MessageBox.Show($"Chrome 드라이버 설정 중 오류가 발생했습니다: {ex.Message}",
|
||||
"설정 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
private void tb_SearchTarget_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
@@ -160,7 +56,7 @@ namespace WindowsFormsApp1.Mac
|
||||
// if (Target == "") { MessageBox.Show("도서관명이 비어있습니다."); return; }
|
||||
|
||||
string area = "`Province`, `Area`, `LibName`, `Code`, `URL`, `SearcherNo`";
|
||||
string cmd = string.Format("SELECT {0} FROM `lib_CopyCheck` WHERE CONCAT( province , '_' , AREA , '_' , libname) LIKE '%{1}%';", area, Target);
|
||||
string cmd = string.Format("SELECT {0} FROM `lib_CopyCheck` WHERE CONCAT( province , '_' , AREA , '_' , libname) LIKE '%{1}%' and ifnull(searcherno,0) = 0;", area, Target);
|
||||
string data = db.self_Made_Cmd(cmd);
|
||||
string[] ary = data.Split('|');
|
||||
Check_Copy_Sub_Search ccs = new Check_Copy_Sub_Search(this);
|
||||
@@ -182,7 +78,7 @@ namespace WindowsFormsApp1.Mac
|
||||
SearchCount.Value = dataGridView1.Rows.Count;
|
||||
}
|
||||
|
||||
async private void btn_Start_Click(object sender, EventArgs e)
|
||||
private void btn_Start_Click(object sender, EventArgs e)
|
||||
{
|
||||
var libraryName = tb_SearchTarget.Text.Trim();
|
||||
if (libraryName.isEmpty())
|
||||
@@ -282,151 +178,8 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
else
|
||||
{
|
||||
if (DateTime.Now > new DateTime(2025, 08, 31))
|
||||
{
|
||||
UTIL.MsgE("테스트 기간이 종료되었습니다\n개발자 문의 하세요");
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._isDriverReady == false)
|
||||
{
|
||||
UTIL.MsgE("웹드라이버가 초기화되지 않았습니다\n1.크롬브라우즈가 설치되어있는지 확인하세요\n\n2.개발자 문의하세요");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
//chrome web driver
|
||||
webBrowser1.Visible = false;
|
||||
var searcher = this._searchService.Get(this.SearcherNo.toInt());
|
||||
if (searcher == null)
|
||||
{
|
||||
UTIL.MsgE($"검색서비스가 존재하지 않습니다. 개발자에 문의 하세요\n검색서비스번호:{SearcherNo}");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
this._isSearching = true;
|
||||
btn_Start.Enabled = false;
|
||||
btn_Stop.Enabled = false;
|
||||
searcher.StartDriver();
|
||||
byte searchopt = 0; //전체검색
|
||||
if (radTargetEmpty.Checked) searchopt = 1;
|
||||
else if (radTargetErr.Checked) searchopt = 2;
|
||||
else if (radTargetErrEmpty.Checked) searchopt = 3;
|
||||
|
||||
bool retry = false;
|
||||
var cnt_totalcnt = 0;
|
||||
int cnt_skip = 0;
|
||||
int cnt_ok = 0;
|
||||
int cnt_ng = 0;
|
||||
int cnt_er = 0;
|
||||
|
||||
|
||||
RetrySearch:
|
||||
foreach (DataGridViewRow drow in this.dataGridView1.Rows)
|
||||
{
|
||||
if (this._isSearching == false)
|
||||
{
|
||||
drow.Cells["dvc_remark"].Value = "Cancel";
|
||||
continue;
|
||||
}
|
||||
|
||||
dataGridView1.CurrentCell = drow.Cells[0];
|
||||
//var vBookName = drow.Cells["book_name"].Value;
|
||||
var bookName = drow.Cells["book_name"].Value?.ToString() ?? string.Empty;
|
||||
if (bookName.isEmpty())
|
||||
{
|
||||
cnt_skip += 1;
|
||||
drow.Cells["dvc_remark"].Value = "No Title";
|
||||
drow.DefaultCellStyle.BackColor = Color.HotPink;
|
||||
drow.DefaultCellStyle.ForeColor = Color.Blue;
|
||||
continue;
|
||||
}
|
||||
|
||||
var cntValue = drow.Cells["Count"].Value?.ToString() ?? string.Empty;
|
||||
cntValue = cntValue.ToLower().Trim();
|
||||
|
||||
if (radTargetErr.Checked) //오류데이터만 처리
|
||||
{
|
||||
if ( cntValue.Equals("-1")==false)
|
||||
continue;
|
||||
}
|
||||
else if (radTargetEmpty.Checked) //빈데이터만 처리
|
||||
{
|
||||
if (int.TryParse(cntValue, out int cntvalue) && cntvalue > 0)
|
||||
continue;
|
||||
}
|
||||
else if (radTargetErrEmpty.Checked) //오류+빈데이터처리
|
||||
{
|
||||
if (cntValue.Equals("-1") == false && int.TryParse(cntValue, out int cntvalue) && cntvalue > 0)
|
||||
continue;
|
||||
}
|
||||
|
||||
cnt_totalcnt += 1;
|
||||
var rlt = await searcher.SearchAsync(bookName);
|
||||
if (rlt.IsSuccess)
|
||||
{
|
||||
drow.Cells["dvc_remark"].Value = rlt.ErrorMessage;
|
||||
drow.Cells["Count"].Value = $"{rlt.BookCount}";
|
||||
if (rlt.BookCount == 0)
|
||||
{
|
||||
cnt_ng += 1;
|
||||
drow.DefaultCellStyle.BackColor = Color.LightGray;
|
||||
drow.DefaultCellStyle.ForeColor = Color.Red;
|
||||
}
|
||||
else
|
||||
{
|
||||
cnt_ok += 1;
|
||||
drow.DefaultCellStyle.BackColor = Color.Yellow;
|
||||
drow.DefaultCellStyle.ForeColor = Color.Blue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cnt_er += 1;
|
||||
drow.Cells["dvc_remark"].Value = $"Error|{rlt.ErrorMessage}";
|
||||
drow.DefaultCellStyle.BackColor = Color.HotPink;
|
||||
drow.DefaultCellStyle.ForeColor = Color.Blue;
|
||||
}
|
||||
}
|
||||
|
||||
if (retry == false && chkRetryErrData.Checked)
|
||||
{
|
||||
retry = true;
|
||||
radTargetErr.Checked = true;
|
||||
goto RetrySearch;
|
||||
}
|
||||
else
|
||||
{
|
||||
searcher.StopDriver();
|
||||
UTIL.MsgI($"검색 완료\n전체:{cnt_totalcnt}건/오류:{cnt_er}/성공:{cnt_ok}/없음:{cnt_ng}");
|
||||
|
||||
//재시도한경우라면 원복해준다
|
||||
if(retry)
|
||||
{
|
||||
if (searchopt == 1) radTargetEmpty.Checked = true;
|
||||
else if (searchopt == 2) radTargetErr.Checked = true;
|
||||
else if (searchopt == 3) radTargetErrEmpty.Checked = true;
|
||||
else radTargetAll.Checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
UTIL.MsgE("Web Driver Error\n" + ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
btn_Stop.Enabled = true;
|
||||
btn_Start.Enabled = true;
|
||||
this._isSearching = false;
|
||||
}
|
||||
|
||||
|
||||
UTIL.MsgE("이 기능은 WebDriver 에서 실행하세요");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
int RowCount = 0;
|
||||
@@ -1630,7 +1383,6 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
private void btn_Stop_Click(object sender, EventArgs e)
|
||||
{
|
||||
_isSearching = false;
|
||||
webBrowser1.Stop();
|
||||
webBrowser1.DocumentCompleted -= this.webBrowser1_DocumentCompleted;
|
||||
}
|
||||
|
||||
576
unimarc/unimarc/마크/Check_copyWD.Designer.cs
generated
Normal file
576
unimarc/unimarc/마크/Check_copyWD.Designer.cs
generated
Normal file
@@ -0,0 +1,576 @@
|
||||
namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
partial class Check_copyWD
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.chkRetryErrData = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.radTargetErr = new System.Windows.Forms.RadioButton();
|
||||
this.radTargetEmpty = new System.Windows.Forms.RadioButton();
|
||||
this.radTargetErrEmpty = new System.Windows.Forms.RadioButton();
|
||||
this.radTargetAll = new System.Windows.Forms.RadioButton();
|
||||
this.rb_isNumber = new System.Windows.Forms.RadioButton();
|
||||
this.rb_isHave = new System.Windows.Forms.RadioButton();
|
||||
this.btn_SearchList = new System.Windows.Forms.Button();
|
||||
this.btn_Start = new System.Windows.Forms.Button();
|
||||
this.btn_Stop = new System.Windows.Forms.Button();
|
||||
this.SearchCount = new System.Windows.Forms.NumericUpDown();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.tb_SearchTarget = new System.Windows.Forms.TextBox();
|
||||
this.btSearchLibrary = new System.Windows.Forms.Button();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.btn_SiteDenote = new System.Windows.Forms.Button();
|
||||
this.lbl_PW = new System.Windows.Forms.Label();
|
||||
this.lbl_ID = new System.Windows.Forms.Label();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dvc_remark = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.btn_ApplyFilter = new System.Windows.Forms.Button();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||
this.lblStatus = new System.Windows.Forms.ToolStripLabel();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.chk_RemoveBrit = new System.Windows.Forms.CheckBox();
|
||||
this.btn_ResultEmpty = new System.Windows.Forms.Button();
|
||||
this.btn_GridReset = new System.Windows.Forms.Button();
|
||||
this.btn_OpenMemo = new System.Windows.Forms.Button();
|
||||
this.chk_spChar = new System.Windows.Forms.CheckBox();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
|
||||
this.panel1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.SearchCount)).BeginInit();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.chkRetryErrData);
|
||||
this.panel1.Controls.Add(this.groupBox1);
|
||||
this.panel1.Controls.Add(this.rb_isNumber);
|
||||
this.panel1.Controls.Add(this.rb_isHave);
|
||||
this.panel1.Controls.Add(this.btn_SearchList);
|
||||
this.panel1.Controls.Add(this.btn_Start);
|
||||
this.panel1.Controls.Add(this.btn_Stop);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 34);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(629, 106);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// chkRetryErrData
|
||||
//
|
||||
this.chkRetryErrData.AutoSize = true;
|
||||
this.chkRetryErrData.Checked = true;
|
||||
this.chkRetryErrData.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkRetryErrData.Location = new System.Drawing.Point(319, 81);
|
||||
this.chkRetryErrData.Name = "chkRetryErrData";
|
||||
this.chkRetryErrData.Size = new System.Drawing.Size(188, 16);
|
||||
this.chkRetryErrData.TabIndex = 7;
|
||||
this.chkRetryErrData.Text = "검색 후 오류 데이터 추가 검색";
|
||||
this.chkRetryErrData.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.radTargetErr);
|
||||
this.groupBox1.Controls.Add(this.radTargetEmpty);
|
||||
this.groupBox1.Controls.Add(this.radTargetErrEmpty);
|
||||
this.groupBox1.Controls.Add(this.radTargetAll);
|
||||
this.groupBox1.Location = new System.Drawing.Point(318, 34);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(304, 39);
|
||||
this.groupBox1.TabIndex = 6;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "검색대상";
|
||||
//
|
||||
// radTargetErr
|
||||
//
|
||||
this.radTargetErr.AutoSize = true;
|
||||
this.radTargetErr.Location = new System.Drawing.Point(197, 16);
|
||||
this.radTargetErr.Name = "radTargetErr";
|
||||
this.radTargetErr.Size = new System.Drawing.Size(47, 16);
|
||||
this.radTargetErr.TabIndex = 9;
|
||||
this.radTargetErr.Text = "오류";
|
||||
this.radTargetErr.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radTargetEmpty
|
||||
//
|
||||
this.radTargetEmpty.AutoSize = true;
|
||||
this.radTargetEmpty.Location = new System.Drawing.Point(144, 16);
|
||||
this.radTargetEmpty.Name = "radTargetEmpty";
|
||||
this.radTargetEmpty.Size = new System.Drawing.Size(47, 16);
|
||||
this.radTargetEmpty.TabIndex = 8;
|
||||
this.radTargetEmpty.Text = "없음";
|
||||
this.radTargetEmpty.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radTargetErrEmpty
|
||||
//
|
||||
this.radTargetErrEmpty.AutoSize = true;
|
||||
this.radTargetErrEmpty.Location = new System.Drawing.Point(61, 17);
|
||||
this.radTargetErrEmpty.Name = "radTargetErrEmpty";
|
||||
this.radTargetErrEmpty.Size = new System.Drawing.Size(77, 16);
|
||||
this.radTargetErrEmpty.TabIndex = 7;
|
||||
this.radTargetErrEmpty.Text = "오류+없음";
|
||||
this.radTargetErrEmpty.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// radTargetAll
|
||||
//
|
||||
this.radTargetAll.AutoSize = true;
|
||||
this.radTargetAll.Checked = true;
|
||||
this.radTargetAll.Location = new System.Drawing.Point(8, 16);
|
||||
this.radTargetAll.Name = "radTargetAll";
|
||||
this.radTargetAll.Size = new System.Drawing.Size(47, 16);
|
||||
this.radTargetAll.TabIndex = 6;
|
||||
this.radTargetAll.TabStop = true;
|
||||
this.radTargetAll.Text = "전체";
|
||||
this.radTargetAll.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// rb_isNumber
|
||||
//
|
||||
this.rb_isNumber.AutoSize = true;
|
||||
this.rb_isNumber.Location = new System.Drawing.Point(394, 8);
|
||||
this.rb_isNumber.Name = "rb_isNumber";
|
||||
this.rb_isNumber.Size = new System.Drawing.Size(71, 16);
|
||||
this.rb_isNumber.TabIndex = 5;
|
||||
this.rb_isNumber.TabStop = true;
|
||||
this.rb_isNumber.Text = "숫자표출";
|
||||
this.rb_isNumber.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// rb_isHave
|
||||
//
|
||||
this.rb_isHave.AutoSize = true;
|
||||
this.rb_isHave.Checked = true;
|
||||
this.rb_isHave.Location = new System.Drawing.Point(318, 8);
|
||||
this.rb_isHave.Name = "rb_isHave";
|
||||
this.rb_isHave.Size = new System.Drawing.Size(71, 16);
|
||||
this.rb_isHave.TabIndex = 5;
|
||||
this.rb_isHave.TabStop = true;
|
||||
this.rb_isHave.Text = "소장표출";
|
||||
this.rb_isHave.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_SearchList
|
||||
//
|
||||
this.btn_SearchList.Location = new System.Drawing.Point(4, 4);
|
||||
this.btn_SearchList.Name = "btn_SearchList";
|
||||
this.btn_SearchList.Size = new System.Drawing.Size(305, 93);
|
||||
this.btn_SearchList.TabIndex = 3;
|
||||
this.btn_SearchList.Text = "목록 검색";
|
||||
this.btn_SearchList.UseVisualStyleBackColor = true;
|
||||
this.btn_SearchList.Click += new System.EventHandler(this.btn_SearchList_Click);
|
||||
//
|
||||
// btn_Start
|
||||
//
|
||||
this.btn_Start.Location = new System.Drawing.Point(470, 4);
|
||||
this.btn_Start.Name = "btn_Start";
|
||||
this.btn_Start.Size = new System.Drawing.Size(75, 24);
|
||||
this.btn_Start.TabIndex = 2;
|
||||
this.btn_Start.Text = "검색시작";
|
||||
this.btn_Start.UseVisualStyleBackColor = true;
|
||||
this.btn_Start.Click += new System.EventHandler(this.btn_Start_Click);
|
||||
//
|
||||
// btn_Stop
|
||||
//
|
||||
this.btn_Stop.Location = new System.Drawing.Point(548, 4);
|
||||
this.btn_Stop.Name = "btn_Stop";
|
||||
this.btn_Stop.Size = new System.Drawing.Size(75, 24);
|
||||
this.btn_Stop.TabIndex = 2;
|
||||
this.btn_Stop.Text = "검색중지";
|
||||
this.btn_Stop.UseVisualStyleBackColor = true;
|
||||
this.btn_Stop.Click += new System.EventHandler(this.btn_Stop_Click);
|
||||
//
|
||||
// SearchCount
|
||||
//
|
||||
this.SearchCount.Location = new System.Drawing.Point(491, 6);
|
||||
this.SearchCount.Maximum = new decimal(new int[] {
|
||||
10000,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.SearchCount.Name = "SearchCount";
|
||||
this.SearchCount.Size = new System.Drawing.Size(54, 21);
|
||||
this.SearchCount.TabIndex = 2;
|
||||
this.SearchCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(548, 4);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(75, 24);
|
||||
this.btn_Close.TabIndex = 2;
|
||||
this.btn_Close.Text = "닫 기";
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(444, 10);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(45, 12);
|
||||
this.label2.TabIndex = 0;
|
||||
this.label2.Text = "검색 수";
|
||||
//
|
||||
// tb_SearchTarget
|
||||
//
|
||||
this.tb_SearchTarget.ImeMode = System.Windows.Forms.ImeMode.Hangul;
|
||||
this.tb_SearchTarget.Location = new System.Drawing.Point(66, 6);
|
||||
this.tb_SearchTarget.Name = "tb_SearchTarget";
|
||||
this.tb_SearchTarget.Size = new System.Drawing.Size(243, 21);
|
||||
this.tb_SearchTarget.TabIndex = 1;
|
||||
this.tb_SearchTarget.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_SearchTarget_KeyDown);
|
||||
//
|
||||
// btSearchLibrary
|
||||
//
|
||||
this.btSearchLibrary.AutoSize = true;
|
||||
this.btSearchLibrary.Location = new System.Drawing.Point(3, 5);
|
||||
this.btSearchLibrary.Name = "btSearchLibrary";
|
||||
this.btSearchLibrary.Size = new System.Drawing.Size(63, 23);
|
||||
this.btSearchLibrary.TabIndex = 0;
|
||||
this.btSearchLibrary.Text = "검색대상";
|
||||
this.btSearchLibrary.Click += new System.EventHandler(this.btSearchLibrary_Click);
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel2.Controls.Add(this.btn_SiteDenote);
|
||||
this.panel2.Controls.Add(this.lbl_PW);
|
||||
this.panel2.Controls.Add(this.lbl_ID);
|
||||
this.panel2.Controls.Add(this.SearchCount);
|
||||
this.panel2.Controls.Add(this.tb_SearchTarget);
|
||||
this.panel2.Controls.Add(this.btSearchLibrary);
|
||||
this.panel2.Controls.Add(this.btn_Close);
|
||||
this.panel2.Controls.Add(this.label2);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(629, 34);
|
||||
this.panel2.TabIndex = 0;
|
||||
//
|
||||
// btn_SiteDenote
|
||||
//
|
||||
this.btn_SiteDenote.Location = new System.Drawing.Point(317, 5);
|
||||
this.btn_SiteDenote.Name = "btn_SiteDenote";
|
||||
this.btn_SiteDenote.Size = new System.Drawing.Size(77, 23);
|
||||
this.btn_SiteDenote.TabIndex = 4;
|
||||
this.btn_SiteDenote.Text = "사이트 표출";
|
||||
this.btn_SiteDenote.UseVisualStyleBackColor = true;
|
||||
this.btn_SiteDenote.Click += new System.EventHandler(this.btn_SiteDenote_Click);
|
||||
//
|
||||
// lbl_PW
|
||||
//
|
||||
this.lbl_PW.AutoSize = true;
|
||||
this.lbl_PW.Location = new System.Drawing.Point(379, 10);
|
||||
this.lbl_PW.Name = "lbl_PW";
|
||||
this.lbl_PW.Size = new System.Drawing.Size(9, 12);
|
||||
this.lbl_PW.TabIndex = 3;
|
||||
this.lbl_PW.Text = " ";
|
||||
//
|
||||
// lbl_ID
|
||||
//
|
||||
this.lbl_ID.AutoSize = true;
|
||||
this.lbl_ID.Location = new System.Drawing.Point(316, 10);
|
||||
this.lbl_ID.Name = "lbl_ID";
|
||||
this.lbl_ID.Size = new System.Drawing.Size(9, 12);
|
||||
this.lbl_ID.TabIndex = 3;
|
||||
this.lbl_ID.Text = " ";
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
|
||||
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.book_name,
|
||||
this.book_comp,
|
||||
this.Count,
|
||||
this.dvc_remark});
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(629, 542);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
//
|
||||
// book_name
|
||||
//
|
||||
this.book_name.HeaderText = "도서명(총서명)";
|
||||
this.book_name.Name = "book_name";
|
||||
this.book_name.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
this.book_name.Width = 300;
|
||||
//
|
||||
// book_comp
|
||||
//
|
||||
this.book_comp.HeaderText = "출판사";
|
||||
this.book_comp.Name = "book_comp";
|
||||
this.book_comp.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
this.book_comp.Width = 120;
|
||||
//
|
||||
// Count
|
||||
//
|
||||
this.Count.HeaderText = "검색 수";
|
||||
this.Count.Name = "Count";
|
||||
this.Count.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
this.Count.Width = 50;
|
||||
//
|
||||
// dvc_remark
|
||||
//
|
||||
this.dvc_remark.HeaderText = "비고";
|
||||
this.dvc_remark.Name = "dvc_remark";
|
||||
this.dvc_remark.Width = 110;
|
||||
//
|
||||
// btn_ApplyFilter
|
||||
//
|
||||
this.btn_ApplyFilter.Location = new System.Drawing.Point(317, 4);
|
||||
this.btn_ApplyFilter.Name = "btn_ApplyFilter";
|
||||
this.btn_ApplyFilter.Size = new System.Drawing.Size(75, 24);
|
||||
this.btn_ApplyFilter.TabIndex = 2;
|
||||
this.btn_ApplyFilter.Text = "필터적용";
|
||||
this.btn_ApplyFilter.UseVisualStyleBackColor = true;
|
||||
this.btn_ApplyFilter.Click += new System.EventHandler(this.btn_ApplyFilter_Click);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.panel6);
|
||||
this.panel3.Controls.Add(this.panel4);
|
||||
this.panel3.Controls.Add(this.panel1);
|
||||
this.panel3.Controls.Add(this.panel2);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(629, 738);
|
||||
this.panel3.TabIndex = 3;
|
||||
//
|
||||
// panel6
|
||||
//
|
||||
this.panel6.Controls.Add(this.dataGridView1);
|
||||
this.panel6.Controls.Add(this.statusStrip1);
|
||||
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel6.Location = new System.Drawing.Point(0, 174);
|
||||
this.panel6.Name = "panel6";
|
||||
this.panel6.Size = new System.Drawing.Size(629, 564);
|
||||
this.panel6.TabIndex = 3;
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.lblStatus});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 542);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(629, 22);
|
||||
this.statusStrip1.TabIndex = 2;
|
||||
this.statusStrip1.Text = "statusStrip1";
|
||||
//
|
||||
// lblStatus
|
||||
//
|
||||
this.lblStatus.Name = "lblStatus";
|
||||
this.lblStatus.Size = new System.Drawing.Size(27, 20);
|
||||
this.lblStatus.Text = "WD";
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel4.Controls.Add(this.chk_RemoveBrit);
|
||||
this.panel4.Controls.Add(this.btn_ResultEmpty);
|
||||
this.panel4.Controls.Add(this.btn_GridReset);
|
||||
this.panel4.Controls.Add(this.btn_OpenMemo);
|
||||
this.panel4.Controls.Add(this.btn_ApplyFilter);
|
||||
this.panel4.Controls.Add(this.chk_spChar);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel4.Location = new System.Drawing.Point(0, 140);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(629, 34);
|
||||
this.panel4.TabIndex = 2;
|
||||
//
|
||||
// chk_RemoveBrit
|
||||
//
|
||||
this.chk_RemoveBrit.AutoSize = true;
|
||||
this.chk_RemoveBrit.Location = new System.Drawing.Point(113, 8);
|
||||
this.chk_RemoveBrit.Name = "chk_RemoveBrit";
|
||||
this.chk_RemoveBrit.Size = new System.Drawing.Size(128, 16);
|
||||
this.chk_RemoveBrit.TabIndex = 0;
|
||||
this.chk_RemoveBrit.Text = "괄호안의 문자 제거";
|
||||
this.chk_RemoveBrit.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btn_ResultEmpty
|
||||
//
|
||||
this.btn_ResultEmpty.Location = new System.Drawing.Point(471, 4);
|
||||
this.btn_ResultEmpty.Name = "btn_ResultEmpty";
|
||||
this.btn_ResultEmpty.Size = new System.Drawing.Size(75, 24);
|
||||
this.btn_ResultEmpty.TabIndex = 2;
|
||||
this.btn_ResultEmpty.Text = "결과 비움";
|
||||
this.btn_ResultEmpty.UseVisualStyleBackColor = true;
|
||||
this.btn_ResultEmpty.Click += new System.EventHandler(this.btn_ResultEmpty_Click);
|
||||
//
|
||||
// btn_GridReset
|
||||
//
|
||||
this.btn_GridReset.Location = new System.Drawing.Point(548, 4);
|
||||
this.btn_GridReset.Name = "btn_GridReset";
|
||||
this.btn_GridReset.Size = new System.Drawing.Size(75, 24);
|
||||
this.btn_GridReset.TabIndex = 2;
|
||||
this.btn_GridReset.Text = "표 비우기";
|
||||
this.btn_GridReset.UseVisualStyleBackColor = true;
|
||||
this.btn_GridReset.Click += new System.EventHandler(this.btn_GridReset_Click);
|
||||
//
|
||||
// btn_OpenMemo
|
||||
//
|
||||
this.btn_OpenMemo.Location = new System.Drawing.Point(394, 4);
|
||||
this.btn_OpenMemo.Name = "btn_OpenMemo";
|
||||
this.btn_OpenMemo.Size = new System.Drawing.Size(75, 24);
|
||||
this.btn_OpenMemo.TabIndex = 2;
|
||||
this.btn_OpenMemo.Text = ".txt 열기";
|
||||
this.btn_OpenMemo.UseVisualStyleBackColor = true;
|
||||
this.btn_OpenMemo.Click += new System.EventHandler(this.btn_OpenMemo_Click);
|
||||
//
|
||||
// chk_spChar
|
||||
//
|
||||
this.chk_spChar.AutoSize = true;
|
||||
this.chk_spChar.Location = new System.Drawing.Point(7, 8);
|
||||
this.chk_spChar.Name = "chk_spChar";
|
||||
this.chk_spChar.Size = new System.Drawing.Size(100, 16);
|
||||
this.chk_spChar.TabIndex = 0;
|
||||
this.chk_spChar.Text = "특수문자 제거";
|
||||
this.chk_spChar.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.Controls.Add(this.webBrowser1);
|
||||
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel5.Location = new System.Drawing.Point(629, 0);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(662, 738);
|
||||
this.panel5.TabIndex = 4;
|
||||
//
|
||||
// webBrowser1
|
||||
//
|
||||
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.webBrowser1.Location = new System.Drawing.Point(0, 0);
|
||||
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
|
||||
this.webBrowser1.Name = "webBrowser1";
|
||||
this.webBrowser1.ScriptErrorsSuppressed = true;
|
||||
this.webBrowser1.Size = new System.Drawing.Size(662, 738);
|
||||
this.webBrowser1.TabIndex = 2;
|
||||
//
|
||||
// Check_copyWD
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1291, 738);
|
||||
this.Controls.Add(this.panel5);
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Name = "Check_copyWD";
|
||||
this.Text = "복본조사(WebDriver)";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Check_copy_FormClosing);
|
||||
this.Load += new System.EventHandler(this.Check_copy_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.SearchCount)).EndInit();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.panel6.PerformLayout();
|
||||
this.statusStrip1.ResumeLayout(false);
|
||||
this.statusStrip1.PerformLayout();
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel4.PerformLayout();
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Button btSearchLibrary;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
private System.Windows.Forms.Button btn_Stop;
|
||||
private System.Windows.Forms.Button btn_Start;
|
||||
public System.Windows.Forms.TextBox tb_SearchTarget;
|
||||
public System.Windows.Forms.DataGridView dataGridView1;
|
||||
public System.Windows.Forms.Button btn_SearchList;
|
||||
private System.Windows.Forms.Button btn_ApplyFilter;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.Panel panel6;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Panel panel5;
|
||||
private System.Windows.Forms.CheckBox chk_spChar;
|
||||
private System.Windows.Forms.CheckBox chk_RemoveBrit;
|
||||
public System.Windows.Forms.NumericUpDown SearchCount;
|
||||
private System.Windows.Forms.RadioButton rb_isNumber;
|
||||
private System.Windows.Forms.RadioButton rb_isHave;
|
||||
private System.Windows.Forms.Button btn_GridReset;
|
||||
private System.Windows.Forms.Button btn_OpenMemo;
|
||||
private System.Windows.Forms.Button btn_ResultEmpty;
|
||||
public System.Windows.Forms.Label lbl_PW;
|
||||
public System.Windows.Forms.Label lbl_ID;
|
||||
private System.Windows.Forms.Button btn_SiteDenote;
|
||||
private System.Windows.Forms.WebBrowser webBrowser1;
|
||||
private System.Windows.Forms.StatusStrip statusStrip1;
|
||||
private System.Windows.Forms.ToolStripLabel lblStatus;
|
||||
private System.Windows.Forms.RadioButton radTargetAll;
|
||||
private System.Windows.Forms.RadioButton radTargetErr;
|
||||
private System.Windows.Forms.RadioButton radTargetEmpty;
|
||||
private System.Windows.Forms.RadioButton radTargetErrEmpty;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Count;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_remark;
|
||||
public System.Windows.Forms.CheckBox chkRetryErrData;
|
||||
public System.Windows.Forms.GroupBox groupBox1;
|
||||
}
|
||||
}
|
||||
1839
unimarc/unimarc/마크/Check_copyWD.cs
Normal file
1839
unimarc/unimarc/마크/Check_copyWD.cs
Normal file
File diff suppressed because it is too large
Load Diff
135
unimarc/unimarc/마크/Check_copyWD.resx
Normal file
135
unimarc/unimarc/마크/Check_copyWD.resx
Normal file
@@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dvc_remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -14,16 +14,23 @@ namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
Main main;
|
||||
public string compidx;
|
||||
string url = "https://reading.jnei.go.kr";
|
||||
public DLS_Copy(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
|
||||
|
||||
url = "https://dls.edunet.net/DLS/totalLoginMain";
|
||||
//url = "https://read365.edunet.net/TotalSearch";
|
||||
|
||||
//변경된 홈페이지: https://dls.edunet.net/DLS/totalLoginMain사용 ID / 비번 : t5191774 / tb5191774
|
||||
}
|
||||
|
||||
private void DLS_Copy_Load(object sender, EventArgs e)
|
||||
{
|
||||
webBrowser1.Navigate("https://reading.jnei.go.kr");
|
||||
webBrowser1.Navigate(url);
|
||||
}
|
||||
|
||||
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
@@ -72,16 +79,17 @@ namespace WindowsFormsApp1.Mac
|
||||
string url = webBrowser1.Url.AbsoluteUri;
|
||||
|
||||
webBrowser1.Document.GetElementById("headerLoginBtn").InvokeMember("click");
|
||||
|
||||
|
||||
Delay(5000);
|
||||
|
||||
|
||||
DLS_Login(url);
|
||||
}
|
||||
#region Connect_SUB
|
||||
|
||||
private void DLS_Login(string url)
|
||||
{
|
||||
if (lbl_ID.Text == "" || lbl_PW.Text == "") {
|
||||
if (lbl_ID.Text == "" || lbl_PW.Text == "")
|
||||
{
|
||||
MessageBox.Show("ID 혹은 PW가 없습니다.");
|
||||
return;
|
||||
}
|
||||
@@ -102,11 +110,13 @@ namespace WindowsFormsApp1.Mac
|
||||
private void btn_Search_Click(object sender, EventArgs e)
|
||||
{
|
||||
tStop = false;
|
||||
if (dataGridView1.Rows[0].Cells["ISBN"].Value == null && rBtn_ISBN.Checked) {
|
||||
if (dataGridView1.Rows[0].Cells["ISBN"].Value == null && rBtn_ISBN.Checked)
|
||||
{
|
||||
MessageBox.Show("ISBN이 입력되지않았습니다!");
|
||||
return;
|
||||
}
|
||||
if (dataGridView1.Rows[0].Cells["Book_name"].Value == null && rBtn_BookName.Checked) {
|
||||
if (dataGridView1.Rows[0].Cells["Book_name"].Value == null && rBtn_BookName.Checked)
|
||||
{
|
||||
MessageBox.Show("도서명이 입력되지않았습니다!");
|
||||
return;
|
||||
}
|
||||
@@ -119,22 +129,25 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
private bool SearchCopy(bool isISBN)
|
||||
{
|
||||
if (!webBrowser1.Url.AbsoluteUri.Contains("collectionFormMA")) {
|
||||
if (!webBrowser1.Url.AbsoluteUri.Contains("collectionFormMA"))
|
||||
{
|
||||
MessageBox.Show("자료관리 창이 아닙니다!");
|
||||
return false;
|
||||
}
|
||||
|
||||
int count = dataGridView1.Rows.Count;
|
||||
|
||||
for(int a = 0; a < count; a++)
|
||||
for (int a = 0; a < count; a++)
|
||||
{
|
||||
if (tSearchIDX != 0) a = tSearchIDX;
|
||||
string Check;
|
||||
if (isISBN) {
|
||||
if (isISBN)
|
||||
{
|
||||
string Target = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
|
||||
Check = SearchISBN(Target);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
string Target = dataGridView1.Rows[a].Cells["Book_name"].Value.ToString();
|
||||
Check = SearchName(Target);
|
||||
}
|
||||
@@ -148,9 +161,9 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
if (tStop)
|
||||
{
|
||||
tSearchIDX = a+1;
|
||||
tSearchIDX = a + 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tStop) MessageBox.Show("검색이 중지 되었습니다.");
|
||||
return true;
|
||||
@@ -261,12 +274,22 @@ namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
if (code == dlsArea)
|
||||
break;
|
||||
|
||||
|
||||
idx++;
|
||||
}
|
||||
|
||||
if (move)
|
||||
webBrowser1.Navigate(webBrowser1.Document.GetElementById(Code[idx]).GetAttribute("value"));
|
||||
{
|
||||
try
|
||||
{
|
||||
webBrowser1.Navigate(webBrowser1.Document.GetElementById(Code[idx]).GetAttribute("value"));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
AR.UTIL.MsgE("지역변경실패, 사이트가 변경되었을 수 있습니다.\n잠시 후 다시시도하세요\n"+ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return Code[idx];
|
||||
}
|
||||
@@ -310,7 +333,8 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
private void tb_URL_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter) {
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
string url = tb_URL.Text;
|
||||
webBrowser1.Navigate(url);
|
||||
}
|
||||
@@ -324,7 +348,7 @@ namespace WindowsFormsApp1.Mac
|
||||
dataGridView1.Rows[a].Cells["Check"].Value = "";
|
||||
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.White;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void btnStop_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace WindowsFormsApp1.Home
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
string Area = "`name`, `position`, `Phone`, `ID`, `PW`,`affil`";
|
||||
string cmd = mDB.DB_Select_Search(Area, "User_Data");//, "affil", comp_name);
|
||||
string cmd = mDB.DB_Select_Search(Area, "User_Data", "affil", comp_name);
|
||||
string db_res = mDB.DB_Send_CMD_Search(cmd);
|
||||
string[] data = db_res.Split('|');
|
||||
string[] grid = { "", "", "", "", "", "", "" };
|
||||
|
||||
Reference in New Issue
Block a user