=====* UniMarc [0.0115] 버전관리 시작 *=====

1. 소장자료검색에서 더블클릭시 마크편집폼으로 전환

2. 마크편집에서 [저장시각, 작성자, 비고, 등급] 추가로 표시

3. 복본조사 - 특수문자, 괄호안의 문자 제거기능 추가

4. 저자기호 일괄전환 추가

5. 마크목록생성 - 수량분리기능 추가.
This commit is contained in:
SeungHo Yang
2022-01-18 17:24:47 +09:00
parent 44259a1148
commit ed81f7d1d3
31 changed files with 1478 additions and 545 deletions

View File

@@ -98,6 +98,7 @@ namespace UniMarc.마크
string listName = tb_listName.Text;
string Time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string outnum = tb_outnum.Text + "차";
string user = marc.user_name;
bool isAuthor = false;
bool isBook = false;
@@ -111,12 +112,12 @@ namespace UniMarc.마크
string[] insert_list_col = {
"compidx", "work_list", "date", "state", "gu",
"first_Author", "symbol_Author", "book_Author", "divType", "divNum",
"etc"
"etc", "user"
};
string[] insert_list_data = {
compidx, listName, Time, "진행", cb_listType.Text,
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text,
rtb_etc.Text
rtb_etc.Text, user
};
string cmdByList = db.DB_INSERT("Specs_List", insert_list_col, insert_list_data);
@@ -125,21 +126,25 @@ namespace UniMarc.마크
"compidx", "work_list", "date", "ISBN", "book_name",
"s_book_name1", "s_book_num1", "author", "book_comp", "pubdate",
"price", "tag008", "class_symbol", "author_symbol", "marc",
"imageURL", "count", "num", "out_num", "midx"
"imageURL", "count", "num", "out_num", "midx",
"editDate", "user"
};
string[] insert_marc_data = {
compidx, listName, Time, "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", ""
"", "", "", "", "",
Time, user
}; // 마크에서 추출 ( 3 ~ 12 )
int[] row = checkGridRow();
int num = 0;
progressBar1.Maximum = row.Length;
progressBar1.Maximum = row.Length + 1;
string cmdByMarc = string.Format("INSERT INTO {0} {1}", "Specs_Marc", db.DB_INSERT_SUB("", insert_marc_col));
bool CountSplit = chk_countSplit.Checked;
// 필터링하여 DB에 집어넣는 작업
for (int a = 0; a < row.Length; a++)
{
@@ -152,6 +157,8 @@ namespace UniMarc.마크
insert_marc_data[17] = num.ToString();
insert_marc_data[18] = outnum;
insert_marc_data[19] = marc.List_Book.Rows[row[a]].Cells["marc_idx"].Value.ToString();
insert_marc_data[20] = marc.List_Book.Rows[row[a]].Cells["SaveDate"].Value.ToString();
insert_marc_data[21] = marc.List_Book.Rows[row[a]].Cells["user"].Value.ToString();
string[] Marc = st.Take_Tag(insert_marc_data[14], Search);
string[] Author = { "", Marc[1] }; // 저자, 도서명
@@ -184,16 +191,38 @@ namespace UniMarc.마크
string res_Author = sb.SymbolAuthor(Author[0], Author[1], authorType, isType);
insert_marc_data[13] = res_Author;
if (a == row.Length - 1)
cmdByMarc += db.DB_INSERT_SUB("value", insert_marc_data) + ";";
int count = Convert.ToInt32(marc.List_Book.Rows[row[a]].Cells["count"].Value.ToString());
if (CountSplit)
{
for (int b = 1; b <= count; b++)
{
if (a == 0)
cmdByMarc += "value" + db.DB_INSERT_SUB("value", insert_marc_data) + ",";
else
cmdByMarc += db.DB_INSERT_SUB("value", insert_marc_data) + ",";
}
}
else
cmdByMarc += "value" + db.DB_INSERT_SUB("value", insert_marc_data) + ", ";
{
if (a == 0)
cmdByMarc += "value" + db.DB_INSERT_SUB("value", insert_marc_data) + ",";
else
cmdByMarc += db.DB_INSERT_SUB("value", insert_marc_data) + ",";
}
progressBar1.PerformStep();
}
cmdByMarc = cmdByMarc.TrimEnd(',');
cmdByMarc += ";";
MessageBox.Show(cmdByMarc);
db.DB_Send_CMD_reVoid(cmdByList);
db.DB_Send_CMD_reVoid(cmdByMarc);
progressBar1.PerformStep();
if (progressBar1.Value == progressBar1.Maximum) {
label2.Text = "완료되었습니다!";
db.DB_Send_CMD_reVoid(cmdByList);
db.DB_Send_CMD_reVoid(cmdByMarc);
}
}
#region mkList_Sub
@@ -220,13 +249,5 @@ namespace UniMarc.마크
this.Close();
}
private void chk_countSplit_Click(object sender, EventArgs e)
{
if (chk_countSplit.Checked)
chk_countSplit.Checked = false;
else
chk_countSplit.Checked = true;
}
}
}