=====* UniMarc [0.0128] 버전 업데이트 내용 *=====
** ERP 작업 전면 중단 (마크우선) ** 1. 마크 목록 ㄴ> 마크 목록을 생성할 수 있게 추가. ㄴ> 마크 목록 생성폼(Mac_List_Add) 추가. 2. 마크 반출 ㄴ> 반출창 입장 시 오류표출되는 버그 수정. 3. ISBN조회 ㄴ> 모든 도서 마크ISBN으로 들어가게 수정.
This commit is contained in:
Binary file not shown.
23
unimarc/unimarc/Main.Designer.cs
generated
23
unimarc/unimarc/Main.Designer.cs
generated
@@ -122,6 +122,7 @@
|
||||
this.botUserLabel = new System.Windows.Forms.ToolStripLabel();
|
||||
this.VersionText = new System.Windows.Forms.ToolStripLabel();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
@@ -139,7 +140,7 @@
|
||||
this.마스터ToolStripMenuItem});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(1252, 24);
|
||||
this.menuStrip1.Size = new System.Drawing.Size(1259, 24);
|
||||
this.menuStrip1.TabIndex = 0;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
@@ -759,7 +760,7 @@
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 24);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1252, 64);
|
||||
this.panel1.Size = new System.Drawing.Size(1259, 64);
|
||||
this.panel1.TabIndex = 2;
|
||||
//
|
||||
// ShortCut12
|
||||
@@ -897,13 +898,15 @@
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripLabel2,
|
||||
this.botUserLabel,
|
||||
this.VersionText});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 607);
|
||||
this.VersionText,
|
||||
this.toolStripSeparator1,
|
||||
this.botUserLabel});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 681);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1252, 25);
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1259, 25);
|
||||
this.toolStrip1.TabIndex = 4;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
@@ -926,11 +929,16 @@
|
||||
this.VersionText.Size = new System.Drawing.Size(116, 22);
|
||||
this.VersionText.Text = "UniMarc Ver 0.0000";
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// Main
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1252, 632);
|
||||
this.ClientSize = new System.Drawing.Size(1259, 706);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.menuStrip1);
|
||||
@@ -1046,5 +1054,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 복본조사1;
|
||||
private System.Windows.Forms.ToolStripMenuItem dLS복본조사;
|
||||
private System.Windows.Forms.ToolStripLabel VersionText;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
}
|
||||
}
|
||||
@@ -71,11 +71,16 @@ namespace WindowsFormsApp1
|
||||
User = result[3];
|
||||
}
|
||||
|
||||
if (result[7] != "관리자") { 마스터ToolStripMenuItem.Visible = false; }
|
||||
|
||||
cmd = _DB.DB_Select_Search("`idx`", "Comp", "comp_name", result[4]);
|
||||
com_idx = _DB.DB_Send_CMD_Search(cmd).Replace("|", "");
|
||||
|
||||
|
||||
if (com_idx != "1")
|
||||
{
|
||||
납품관리ToolStripMenuItem.Visible = false;
|
||||
회계ToolStripMenuItem.Visible = false;
|
||||
}
|
||||
if (result[7] != "관리자") { 마스터ToolStripMenuItem.Visible = false; }
|
||||
|
||||
Settings.Default.compidx = com_idx;
|
||||
Settings.Default.User = botUserLabel.Text;
|
||||
|
||||
@@ -90,7 +95,6 @@ namespace WindowsFormsApp1
|
||||
private void VersionInfo()
|
||||
{
|
||||
StreamReader sr = new StreamReader(Application.StartupPath + "\\update.inf");
|
||||
int i = -1;
|
||||
while (!sr.EndOfStream)
|
||||
{
|
||||
string line = sr.ReadLine();
|
||||
@@ -1361,5 +1365,6 @@ namespace WindowsFormsApp1
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -96,6 +96,12 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\Mac_List_Add.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="마크\Mac_List_Add.Designer.cs">
|
||||
<DependentUpon>Mac_List_Add.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\MarcCopySelect.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -717,6 +723,9 @@
|
||||
<Compile Include="작업일지\Work_Log.Designer.cs">
|
||||
<DependentUpon>Work_Log.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="마크\Mac_List_Add.resx">
|
||||
<DependentUpon>Mac_List_Add.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="마크\MarcCopySelect.resx">
|
||||
<DependentUpon>MarcCopySelect.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
c9a37397ce81171a999be7f243aae70c43742cd9
|
||||
dc7073770bb20d0b1c8cfac5924007831e358ac9
|
||||
|
||||
@@ -132,3 +132,4 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.Marc_FillBlank.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_Sub_SelectList_Morge.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.MarcCopySelect.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Mac_List_Add.resources
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.Mac_List_Add.resources
Normal file
BIN
unimarc/unimarc/obj/Debug/UniMarc.마크.Mac_List_Add.resources
Normal file
Binary file not shown.
Binary file not shown.
43
unimarc/unimarc/마크/Check_ISBN.Designer.cs
generated
43
unimarc/unimarc/마크/Check_ISBN.Designer.cs
generated
@@ -28,9 +28,9 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -74,13 +74,13 @@
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
@@ -107,17 +107,17 @@
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(12, 35);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dataGridView1.RowHeadersWidth = 20;
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1608, 547);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
@@ -354,6 +354,9 @@
|
||||
// Check_Marc
|
||||
//
|
||||
this.Check_Marc.AutoSize = true;
|
||||
this.Check_Marc.Checked = true;
|
||||
this.Check_Marc.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.Check_Marc.Enabled = false;
|
||||
this.Check_Marc.Location = new System.Drawing.Point(1422, 10);
|
||||
this.Check_Marc.Name = "Check_Marc";
|
||||
this.Check_Marc.Size = new System.Drawing.Size(132, 16);
|
||||
|
||||
89
unimarc/unimarc/마크/Mac_List.Designer.cs
generated
89
unimarc/unimarc/마크/Mac_List.Designer.cs
generated
@@ -52,13 +52,18 @@
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.btn_Save = new System.Windows.Forms.Button();
|
||||
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
|
||||
this.btn_Merge = new System.Windows.Forms.Button();
|
||||
this.btn_Progress = new System.Windows.Forms.Button();
|
||||
this.btn_Completion = new System.Windows.Forms.Button();
|
||||
this.btn_Delete = new System.Windows.Forms.Button();
|
||||
this.btn_AddList = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(21, 14);
|
||||
this.label1.Location = new System.Drawing.Point(21, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(57, 12);
|
||||
this.label1.TabIndex = 5;
|
||||
@@ -66,7 +71,7 @@
|
||||
//
|
||||
// tb_Search
|
||||
//
|
||||
this.tb_Search.Location = new System.Drawing.Point(80, 10);
|
||||
this.tb_Search.Location = new System.Drawing.Point(80, 9);
|
||||
this.tb_Search.Name = "tb_Search";
|
||||
this.tb_Search.Size = new System.Drawing.Size(241, 21);
|
||||
this.tb_Search.TabIndex = 6;
|
||||
@@ -188,7 +193,7 @@
|
||||
//
|
||||
this.cb_state.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_state.FormattingEnabled = true;
|
||||
this.cb_state.Location = new System.Drawing.Point(372, 10);
|
||||
this.cb_state.Location = new System.Drawing.Point(372, 9);
|
||||
this.cb_state.Name = "cb_state";
|
||||
this.cb_state.Size = new System.Drawing.Size(74, 20);
|
||||
this.cb_state.TabIndex = 49;
|
||||
@@ -196,7 +201,7 @@
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(341, 14);
|
||||
this.label2.Location = new System.Drawing.Point(341, 13);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(29, 12);
|
||||
this.label2.TabIndex = 5;
|
||||
@@ -204,9 +209,9 @@
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(452, 4);
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(509, 3);
|
||||
this.btn_Lookup.Name = "btn_Lookup";
|
||||
this.btn_Lookup.Size = new System.Drawing.Size(75, 32);
|
||||
this.btn_Lookup.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Lookup.TabIndex = 50;
|
||||
this.btn_Lookup.Text = "조 회";
|
||||
this.btn_Lookup.UseVisualStyleBackColor = true;
|
||||
@@ -214,9 +219,9 @@
|
||||
//
|
||||
// btn_Excel
|
||||
//
|
||||
this.btn_Excel.Location = new System.Drawing.Point(950, 4);
|
||||
this.btn_Excel.Location = new System.Drawing.Point(978, 3);
|
||||
this.btn_Excel.Name = "btn_Excel";
|
||||
this.btn_Excel.Size = new System.Drawing.Size(75, 32);
|
||||
this.btn_Excel.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Excel.TabIndex = 50;
|
||||
this.btn_Excel.Text = "엑셀반출";
|
||||
this.btn_Excel.UseVisualStyleBackColor = true;
|
||||
@@ -224,9 +229,9 @@
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(1031, 4);
|
||||
this.btn_Close.Location = new System.Drawing.Point(1045, 3);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(75, 32);
|
||||
this.btn_Close.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Close.TabIndex = 50;
|
||||
this.btn_Close.Text = "닫 기";
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
@@ -234,22 +239,77 @@
|
||||
//
|
||||
// btn_Save
|
||||
//
|
||||
this.btn_Save.Location = new System.Drawing.Point(869, 4);
|
||||
this.btn_Save.Location = new System.Drawing.Point(911, 3);
|
||||
this.btn_Save.Name = "btn_Save";
|
||||
this.btn_Save.Size = new System.Drawing.Size(75, 32);
|
||||
this.btn_Save.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Save.TabIndex = 50;
|
||||
this.btn_Save.Text = "체크사항\r\n저장";
|
||||
this.btn_Save.UseVisualStyleBackColor = true;
|
||||
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
|
||||
//
|
||||
// btn_Merge
|
||||
//
|
||||
this.btn_Merge.Location = new System.Drawing.Point(643, 3);
|
||||
this.btn_Merge.Name = "btn_Merge";
|
||||
this.btn_Merge.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Merge.TabIndex = 51;
|
||||
this.btn_Merge.Text = "목록병합";
|
||||
this.btn_Merge.UseVisualStyleBackColor = true;
|
||||
this.btn_Merge.Click += new System.EventHandler(this.btn_Merge_Click);
|
||||
//
|
||||
// btn_Progress
|
||||
//
|
||||
this.btn_Progress.Location = new System.Drawing.Point(710, 3);
|
||||
this.btn_Progress.Name = "btn_Progress";
|
||||
this.btn_Progress.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Progress.TabIndex = 51;
|
||||
this.btn_Progress.Text = "진행처리";
|
||||
this.btn_Progress.UseVisualStyleBackColor = true;
|
||||
this.btn_Progress.Click += new System.EventHandler(this.btn_Progress_Click);
|
||||
//
|
||||
// btn_Completion
|
||||
//
|
||||
this.btn_Completion.Location = new System.Drawing.Point(777, 3);
|
||||
this.btn_Completion.Name = "btn_Completion";
|
||||
this.btn_Completion.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Completion.TabIndex = 51;
|
||||
this.btn_Completion.Text = "완료처리";
|
||||
this.btn_Completion.UseVisualStyleBackColor = true;
|
||||
this.btn_Completion.Click += new System.EventHandler(this.btn_Completion_Click);
|
||||
//
|
||||
// btn_Delete
|
||||
//
|
||||
this.btn_Delete.Location = new System.Drawing.Point(844, 3);
|
||||
this.btn_Delete.Name = "btn_Delete";
|
||||
this.btn_Delete.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Delete.TabIndex = 51;
|
||||
this.btn_Delete.Text = "목록삭제";
|
||||
this.btn_Delete.UseVisualStyleBackColor = true;
|
||||
this.btn_Delete.Click += new System.EventHandler(this.btn_Delete_Click);
|
||||
//
|
||||
// btn_AddList
|
||||
//
|
||||
this.btn_AddList.Location = new System.Drawing.Point(576, 3);
|
||||
this.btn_AddList.Name = "btn_AddList";
|
||||
this.btn_AddList.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_AddList.TabIndex = 50;
|
||||
this.btn_AddList.Text = "목록생성";
|
||||
this.btn_AddList.UseVisualStyleBackColor = true;
|
||||
this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click);
|
||||
//
|
||||
// Mac_List
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1122, 661);
|
||||
this.Controls.Add(this.btn_Delete);
|
||||
this.Controls.Add(this.btn_Completion);
|
||||
this.Controls.Add(this.btn_Progress);
|
||||
this.Controls.Add(this.btn_Merge);
|
||||
this.Controls.Add(this.btn_Close);
|
||||
this.Controls.Add(this.btn_Excel);
|
||||
this.Controls.Add(this.btn_Save);
|
||||
this.Controls.Add(this.btn_AddList);
|
||||
this.Controls.Add(this.btn_Lookup);
|
||||
this.Controls.Add(this.cb_state);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
@@ -289,5 +349,10 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn check;
|
||||
private System.Windows.Forms.Button btn_Merge;
|
||||
private System.Windows.Forms.Button btn_Progress;
|
||||
private System.Windows.Forms.Button btn_Completion;
|
||||
private System.Windows.Forms.Button btn_Delete;
|
||||
private System.Windows.Forms.Button btn_AddList;
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using UniMarc.마크;
|
||||
using WindowsFormsApp1.마크;
|
||||
|
||||
namespace WindowsFormsApp1.Mac
|
||||
@@ -47,6 +48,7 @@ namespace WindowsFormsApp1.Mac
|
||||
btn_Lookup_Click(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_Lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
string table = "Obj_List";
|
||||
@@ -72,6 +74,9 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
input_Grid(data);
|
||||
}
|
||||
|
||||
#region 목록조회 서브함수
|
||||
|
||||
/// <summary>
|
||||
/// Grid에 데이터를 집어넣는 함수.
|
||||
/// </summary>
|
||||
@@ -104,13 +109,22 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void btn_AddList_Click(object sender, EventArgs e)
|
||||
{
|
||||
Mac_List_Add listAdd = new Mac_List_Add();
|
||||
|
||||
listAdd.Show();
|
||||
}
|
||||
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(MessageBox.Show("선택사항을 저장하시겠습니까?", "저장", MessageBoxButtons.YesNo) == DialogResult.No) {
|
||||
if (MessageBox.Show("선택사항을 저장하시겠습니까?", "저장", MessageBoxButtons.YesNo) == DialogResult.No)
|
||||
return;
|
||||
}
|
||||
string table = "Obj_List_Marc";
|
||||
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
|
||||
|
||||
string table = "Obj_List";
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
|
||||
string[] edit_col = {
|
||||
@@ -129,7 +143,7 @@ namespace WindowsFormsApp1.Mac
|
||||
dataGridView1.Rows[a].Cells["etc"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["charge"].Value.ToString()
|
||||
};
|
||||
string[] sear_col = { "idx", "compidx" };
|
||||
string[] sear_col = { "idx", "comp_num" };
|
||||
string[] sear_tbl = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(), compidx };
|
||||
|
||||
string U_cmd = db.More_Update(table, edit_col, edit_tbl, sear_col, sear_tbl);
|
||||
@@ -138,6 +152,7 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
}
|
||||
|
||||
private void btn_Excel_Click(object sender, EventArgs e)
|
||||
{
|
||||
Excel_text et = new Excel_text();
|
||||
@@ -163,11 +178,13 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
et.Mk_Excel(Excel_title, inputExcel);
|
||||
}
|
||||
|
||||
private void btn_Merge_Click(object sender, EventArgs e)
|
||||
{
|
||||
Mac_List_Merge merge = new Mac_List_Merge(this);
|
||||
merge.Show();
|
||||
}
|
||||
|
||||
private void btn_Progress_Click(object sender, EventArgs e)
|
||||
{
|
||||
for(int a = 0; a < dataGridView1.Rows.Count - 1; a++)
|
||||
@@ -190,20 +207,7 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
MessageBox.Show("진행처리되었습니다.", "목록진행");
|
||||
}
|
||||
/// <summary>
|
||||
/// 목록의 상태를 바꾸기 위한 함수.
|
||||
/// DB내 적용됨.
|
||||
/// </summary>
|
||||
/// <param name="count"></param>
|
||||
void state_Save(int count)
|
||||
{
|
||||
string[] edit_col = { "state" };
|
||||
string[] edit_tbl = { dataGridView1.Rows[count].Cells["state"].Value.ToString() };
|
||||
string[] sear_col = { "idx", "compidx" };
|
||||
string[] sear_tbl = { dataGridView1.Rows[count].Cells["idx"].Value.ToString(), compidx };
|
||||
string U_cmd = db.More_Update("Obj_List_Marc", edit_col, edit_tbl, sear_col, sear_tbl);
|
||||
db.DB_Send_CMD_reVoid(U_cmd);
|
||||
}
|
||||
|
||||
private void btn_Completion_Click(object sender, EventArgs e)
|
||||
{
|
||||
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
|
||||
@@ -226,21 +230,42 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
MessageBox.Show("완료처리되었습니다.", "목록완료");
|
||||
}
|
||||
|
||||
#region 진행/완료처리 서브함수
|
||||
|
||||
/// <summary>
|
||||
/// 목록의 상태를 바꾸기 위한 함수.
|
||||
/// DB내 적용됨.
|
||||
/// </summary>
|
||||
/// <param name="count"></param>
|
||||
void state_Save(int row)
|
||||
{
|
||||
string[] edit_col = { "state" };
|
||||
string[] edit_tbl = { dataGridView1.Rows[row].Cells["state"].Value.ToString() };
|
||||
string[] sear_col = { "idx", "comp_num" };
|
||||
string[] sear_tbl = { dataGridView1.Rows[row].Cells["idx"].Value.ToString(), compidx };
|
||||
string U_cmd = db.More_Update("Obj_List", edit_col, edit_tbl, sear_col, sear_tbl);
|
||||
db.DB_Send_CMD_reVoid(U_cmd);
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void btn_Delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["check"].Value.ToString() == "V") {
|
||||
string D_cmd = db.DB_Delete("Obj_List_Marc", "compidx", compidx,
|
||||
string D_cmd = db.DB_Delete("Obj_List", "comp_num", compidx,
|
||||
"idx", dataGridView1.Rows[a].Cells["idx"].Value.ToString());
|
||||
db.DB_Send_CMD_reVoid(D_cmd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int idx_row = e.RowIndex;
|
||||
|
||||
336
unimarc/unimarc/마크/Mac_List_Add.Designer.cs
generated
Normal file
336
unimarc/unimarc/마크/Mac_List_Add.Designer.cs
generated
Normal file
@@ -0,0 +1,336 @@
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
partial class Mac_List_Add
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.tb_divComp = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btn_AddList = new System.Windows.Forms.Button();
|
||||
this.tb_divName = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.cb_User = new System.Windows.Forms.ComboBox();
|
||||
this.tb_ExpectList = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.btn_Empty = new System.Windows.Forms.Button();
|
||||
this.header = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.BookName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Author = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.BookComp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Total = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
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.cb_User);
|
||||
this.panel1.Controls.Add(this.btn_Close);
|
||||
this.panel1.Controls.Add(this.btn_Empty);
|
||||
this.panel1.Controls.Add(this.btn_AddList);
|
||||
this.panel1.Controls.Add(this.label3);
|
||||
this.panel1.Controls.Add(this.label2);
|
||||
this.panel1.Controls.Add(this.label4);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Controls.Add(this.tb_ExpectList);
|
||||
this.panel1.Controls.Add(this.tb_divName);
|
||||
this.panel1.Controls.Add(this.tb_divComp);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(897, 59);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.dataGridView1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 59);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(897, 621);
|
||||
this.panel2.TabIndex = 0;
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.header,
|
||||
this.num,
|
||||
this.BookName,
|
||||
this.Author,
|
||||
this.BookComp,
|
||||
this.Price,
|
||||
this.Count,
|
||||
this.Total,
|
||||
this.ISBN});
|
||||
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(897, 621);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
//
|
||||
// tb_divComp
|
||||
//
|
||||
this.tb_divComp.Location = new System.Drawing.Point(69, 5);
|
||||
this.tb_divComp.Name = "tb_divComp";
|
||||
this.tb_divComp.Size = new System.Drawing.Size(100, 21);
|
||||
this.tb_divComp.TabIndex = 0;
|
||||
this.tb_divComp.TextChanged += new System.EventHandler(this.Delivery_TextChanged);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(26, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(41, 12);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "납품처";
|
||||
//
|
||||
// btn_AddList
|
||||
//
|
||||
this.btn_AddList.Location = new System.Drawing.Point(728, 4);
|
||||
this.btn_AddList.Name = "btn_AddList";
|
||||
this.btn_AddList.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_AddList.TabIndex = 2;
|
||||
this.btn_AddList.Text = "저 장";
|
||||
this.btn_AddList.UseVisualStyleBackColor = true;
|
||||
this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click);
|
||||
//
|
||||
// tb_divName
|
||||
//
|
||||
this.tb_divName.Location = new System.Drawing.Point(221, 5);
|
||||
this.tb_divName.Name = "tb_divName";
|
||||
this.tb_divName.Size = new System.Drawing.Size(100, 21);
|
||||
this.tb_divName.TabIndex = 0;
|
||||
this.tb_divName.TextChanged += new System.EventHandler(this.Delivery_TextChanged);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(178, 9);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(41, 12);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "납품명";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(330, 9);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(41, 12);
|
||||
this.label3.TabIndex = 1;
|
||||
this.label3.Text = "담당자";
|
||||
//
|
||||
// cb_User
|
||||
//
|
||||
this.cb_User.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_User.FormattingEnabled = true;
|
||||
this.cb_User.Location = new System.Drawing.Point(373, 5);
|
||||
this.cb_User.Name = "cb_User";
|
||||
this.cb_User.Size = new System.Drawing.Size(82, 20);
|
||||
this.cb_User.TabIndex = 3;
|
||||
//
|
||||
// tb_ExpectList
|
||||
//
|
||||
this.tb_ExpectList.Enabled = false;
|
||||
this.tb_ExpectList.Location = new System.Drawing.Point(114, 31);
|
||||
this.tb_ExpectList.Name = "tb_ExpectList";
|
||||
this.tb_ExpectList.Size = new System.Drawing.Size(250, 21);
|
||||
this.tb_ExpectList.TabIndex = 0;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(27, 35);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(81, 12);
|
||||
this.label4.TabIndex = 1;
|
||||
this.label4.Text = "생성될 목록명";
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(809, 4);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Close.TabIndex = 2;
|
||||
this.btn_Close.Text = "닫 기";
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
|
||||
//
|
||||
// btn_Empty
|
||||
//
|
||||
this.btn_Empty.Location = new System.Drawing.Point(647, 5);
|
||||
this.btn_Empty.Name = "btn_Empty";
|
||||
this.btn_Empty.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Empty.TabIndex = 2;
|
||||
this.btn_Empty.Text = "비 우 기";
|
||||
this.btn_Empty.UseVisualStyleBackColor = true;
|
||||
this.btn_Empty.Click += new System.EventHandler(this.btn_Empty_Click);
|
||||
//
|
||||
// header
|
||||
//
|
||||
this.header.HeaderText = "머리글";
|
||||
this.header.Name = "header";
|
||||
this.header.Width = 65;
|
||||
//
|
||||
// num
|
||||
//
|
||||
this.num.HeaderText = "번호";
|
||||
this.num.Name = "num";
|
||||
this.num.Width = 45;
|
||||
//
|
||||
// BookName
|
||||
//
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.BookName.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.BookName.HeaderText = "도서명";
|
||||
this.BookName.Name = "BookName";
|
||||
this.BookName.Width = 200;
|
||||
//
|
||||
// Author
|
||||
//
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.Author.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.Author.HeaderText = "저자";
|
||||
this.Author.Name = "Author";
|
||||
//
|
||||
// BookComp
|
||||
//
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.BookComp.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.BookComp.HeaderText = "출판사";
|
||||
this.BookComp.Name = "BookComp";
|
||||
this.BookComp.Width = 120;
|
||||
//
|
||||
// Price
|
||||
//
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
dataGridViewCellStyle5.Format = "N0";
|
||||
dataGridViewCellStyle5.NullValue = "0";
|
||||
this.Price.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.Price.HeaderText = "가격";
|
||||
this.Price.Name = "Price";
|
||||
this.Price.Width = 80;
|
||||
//
|
||||
// Count
|
||||
//
|
||||
dataGridViewCellStyle6.Format = "N0";
|
||||
dataGridViewCellStyle6.NullValue = "1";
|
||||
this.Count.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.Count.HeaderText = "수량";
|
||||
this.Count.Name = "Count";
|
||||
this.Count.Width = 45;
|
||||
//
|
||||
// Total
|
||||
//
|
||||
dataGridViewCellStyle7.Format = "N0";
|
||||
dataGridViewCellStyle7.NullValue = "0";
|
||||
this.Total.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.Total.HeaderText = "합계";
|
||||
this.Total.Name = "Total";
|
||||
this.Total.Width = 80;
|
||||
//
|
||||
// ISBN
|
||||
//
|
||||
this.ISBN.HeaderText = "ISBN";
|
||||
this.ISBN.Name = "ISBN";
|
||||
//
|
||||
// Mac_List_Add
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(897, 680);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "Mac_List_Add";
|
||||
this.Text = "마크 목록 생성";
|
||||
this.Load += new System.EventHandler(this.Mac_List_Add_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.Button btn_AddList;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox tb_divName;
|
||||
private System.Windows.Forms.TextBox tb_divComp;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.ComboBox cb_User;
|
||||
private System.Windows.Forms.TextBox tb_ExpectList;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
private System.Windows.Forms.Button btn_Empty;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn header;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn num;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn BookName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Author;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn BookComp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Count;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Total;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
|
||||
}
|
||||
}
|
||||
181
unimarc/unimarc/마크/Mac_List_Add.cs
Normal file
181
unimarc/unimarc/마크/Mac_List_Add.cs
Normal file
@@ -0,0 +1,181 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WindowsFormsApp1;
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
public partial class Mac_List_Add : Form
|
||||
{
|
||||
Helper_DB db = new Helper_DB();
|
||||
Skill_Grid sg = new Skill_Grid();
|
||||
|
||||
public Mac_List_Add()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Mac_List_Add_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
|
||||
string compidx = Properties.Settings.Default.compidx;
|
||||
string MyName = Properties.Settings.Default.User;
|
||||
|
||||
string CompQuery = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", compidx);
|
||||
string cmd = string.Format("SELECT `name` FROM `User_Data` WHERE `affil` = ({0});", CompQuery);
|
||||
string[] cmdResult = db.DB_Send_CMD_Search(cmd).Split('|');
|
||||
|
||||
foreach (string UserName in cmdResult)
|
||||
{
|
||||
if (UserName != "")
|
||||
cb_User.Items.Add(UserName);
|
||||
}
|
||||
|
||||
cb_User.SelectedItem = MyName;
|
||||
}
|
||||
|
||||
private void Delivery_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
string divComp = tb_divComp.Text;
|
||||
string divName = tb_divName.Text;
|
||||
|
||||
string ListName = string.Format("[{0}]{1}", divComp, divName);
|
||||
tb_ExpectList.Text = ListName;
|
||||
}
|
||||
|
||||
private void btn_Empty_Click(object sender, EventArgs e)
|
||||
{
|
||||
tb_divComp.Text = "";
|
||||
tb_divName.Text = "";
|
||||
dataGridView1.Rows.Clear();
|
||||
}
|
||||
|
||||
private void btn_AddList_Click(object sender, EventArgs e)
|
||||
{
|
||||
string compidx = Properties.Settings.Default.compidx;
|
||||
string Today = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
string listName = tb_ExpectList.Text;
|
||||
string charge = cb_User.Text;
|
||||
|
||||
if (!CopyCheck(compidx, listName, Today)) {
|
||||
MessageBox.Show("목록이 중복되었습니다! 다시 확인해주세요.", "Error");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
string InBook_Area = "`compidx`, `list_name`, `date`, `header`, `num`, " +
|
||||
"`book_name`, `author`, `book_comp`, `pay`, `count`, " +
|
||||
"`total`, `isbn_marc`";
|
||||
List<string> InBook_List = new List<string>();
|
||||
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
GridNotNull(a);
|
||||
|
||||
if (dataGridView1.Rows[a].Cells["BookName"].Value.ToString() == "")
|
||||
break;
|
||||
|
||||
string header = dataGridView1.Rows[a].Cells["header"].Value.ToString();
|
||||
string num = dataGridView1.Rows[a].Cells["num"].Value.ToString();
|
||||
string bookname = dataGridView1.Rows[a].Cells["BookName"].Value.ToString();
|
||||
string author = dataGridView1.Rows[a].Cells["Author"].Value.ToString();
|
||||
string bookcomp = dataGridView1.Rows[a].Cells["BookComp"].Value.ToString();
|
||||
string price = dataGridView1.Rows[a].Cells["Price"].Value.ToString().Replace(",", "");
|
||||
string count = dataGridView1.Rows[a].Cells["Count"].Value.ToString().Replace(",", "");
|
||||
string total = dataGridView1.Rows[a].Cells["Total"].Value.ToString().Replace(",", "");
|
||||
string isbn = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
|
||||
|
||||
string tmp = string.Format(
|
||||
"(\"{0}\", \"{1}\", \"{2}\", \"{3}\", \"{4}\", " +
|
||||
"\"{5}\", \"{6}\", \"{7}\", \"{8}\", \"{9}\", " +
|
||||
"\"{10}\", \"{11}\")",
|
||||
compidx, listName, Today, header, num,
|
||||
bookname, author, bookcomp, price, count,
|
||||
total, isbn );
|
||||
|
||||
InBook_List.Add(tmp);
|
||||
}
|
||||
|
||||
int TotalCount = InBook_List.Count;
|
||||
|
||||
string[] InList_Tbl = { "comp_num", "date", "list_name", "charge", "state", "vol" };
|
||||
string[] InList_Col = { compidx, Today, listName, charge, "진행", TotalCount.ToString()};
|
||||
|
||||
string InList_Cmd = db.DB_INSERT("Obj_List", InList_Tbl, InList_Col);
|
||||
|
||||
string InBook_Col = string.Join(", ", InBook_List);
|
||||
string InBook_Cmd = string.Format("INSERT INTO `Obj_List_Book` ({0}) VALUES {1};", InBook_Area, InBook_Col);
|
||||
|
||||
db.DB_Send_CMD_reVoid(InList_Cmd);
|
||||
db.DB_Send_CMD_reVoid(InBook_Cmd);
|
||||
|
||||
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
}
|
||||
|
||||
#region AddList_Sub
|
||||
|
||||
/// <summary>
|
||||
/// INSERT할 목록 중복체크
|
||||
/// </summary>
|
||||
/// <param name="compidx"></param>
|
||||
/// <param name="listName"></param>
|
||||
/// <param name="date"></param>
|
||||
/// <returns></returns>
|
||||
bool CopyCheck(string compidx, string listName, string date)
|
||||
{
|
||||
string cmd = string.Format(
|
||||
"SELECT `list_name` " +
|
||||
"FROM `Obj_List` " +
|
||||
"WHERE `comp_num` = \"{0}\" " +
|
||||
"AND `list_name` = \"{1}\" " +
|
||||
"AND `date` = \"{2}\";", compidx, listName, date);
|
||||
string cmdResult = db.DB_Send_CMD_Search(cmd);
|
||||
|
||||
if (cmdResult.Length > 2)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid에서 Null인 부분을 ""로 바꿔줌
|
||||
/// </summary>
|
||||
/// <param name="row">rowIndex</param>
|
||||
void GridNotNull(int row)
|
||||
{
|
||||
for (int a = 0; a < dataGridView1.Columns.Count; a++)
|
||||
{
|
||||
if (dataGridView1.Columns[a].Name == "Count")
|
||||
dataGridView1.Rows[row].Cells[a].Value = "1";
|
||||
|
||||
if (dataGridView1.Rows[row].Cells[a].Value == null)
|
||||
dataGridView1.Rows[row].Cells[a].Value = "";
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
sg.Print_Grid_Num(sender, e);
|
||||
}
|
||||
|
||||
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
sg.Excel_to_DataGridView(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
147
unimarc/unimarc/마크/Mac_List_Add.resx
Normal file
147
unimarc/unimarc/마크/Mac_List_Add.resx
Normal file
@@ -0,0 +1,147 @@
|
||||
<?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="header.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="BookName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="BookComp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Total.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ISBN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
13
unimarc/unimarc/마크/Mac_Output.Designer.cs
generated
13
unimarc/unimarc/마크/Mac_Output.Designer.cs
generated
@@ -39,7 +39,6 @@
|
||||
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btn_close = new System.Windows.Forms.Button();
|
||||
this.connect_list = new System.Windows.Forms.ComboBox();
|
||||
this.cb_list = new System.Windows.Forms.ComboBox();
|
||||
this.btn_file_save = new System.Windows.Forms.Button();
|
||||
this.cb_years = new System.Windows.Forms.ComboBox();
|
||||
@@ -125,7 +124,6 @@
|
||||
//
|
||||
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel1.Controls.Add(this.btn_close);
|
||||
this.panel1.Controls.Add(this.connect_list);
|
||||
this.panel1.Controls.Add(this.cb_list);
|
||||
this.panel1.Controls.Add(this.btn_file_save);
|
||||
this.panel1.Controls.Add(this.cb_years);
|
||||
@@ -147,16 +145,6 @@
|
||||
this.btn_close.UseVisualStyleBackColor = true;
|
||||
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
|
||||
//
|
||||
// connect_list
|
||||
//
|
||||
this.connect_list.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.connect_list.FormattingEnabled = true;
|
||||
this.connect_list.Location = new System.Drawing.Point(1147, 9);
|
||||
this.connect_list.Name = "connect_list";
|
||||
this.connect_list.Size = new System.Drawing.Size(121, 20);
|
||||
this.connect_list.TabIndex = 6;
|
||||
this.connect_list.Visible = false;
|
||||
//
|
||||
// cb_list
|
||||
//
|
||||
this.cb_list.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
@@ -248,7 +236,6 @@
|
||||
private System.Windows.Forms.ComboBox cb_years;
|
||||
private System.Windows.Forms.ComboBox cb_list;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.ComboBox connect_list;
|
||||
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
|
||||
private System.Windows.Forms.Button btn_close;
|
||||
}
|
||||
|
||||
@@ -63,35 +63,32 @@ namespace WindowsFormsApp1.Mac
|
||||
private void Input_list_combo()
|
||||
{
|
||||
cb_list.Items.Clear();
|
||||
string area = "`date`, `list_name`, `connect_data`";
|
||||
string[] table = { "compidx", "state" };
|
||||
string[] data = { compidx, cb_state.Text };
|
||||
string cmd = db.More_DB_Search("Obj_List_Marc", table, data, area);
|
||||
string area = "`date`, `list_name`";
|
||||
string cmd = string.Format("SELECT {0} FROM `Obj_List` WHERE `comp_num` = \"{1}\" AND `state` = \"{2}\" AND `chk_marc` > 0;",
|
||||
area, compidx, cb_state.Text);
|
||||
string db_res = db.DB_Send_CMD_Search(cmd);
|
||||
string[] marc_list = db_res.Split('|');
|
||||
|
||||
string[] tmp = { "", "", "" };
|
||||
string[] tmp = { "", "" };
|
||||
bool years = true;
|
||||
|
||||
for(int a = 0; a < marc_list.Length - 1; a++)
|
||||
{
|
||||
if (a % 3 == 0) { tmp[0] = marc_list[a];
|
||||
if (a % 2 == 0) { tmp[0] = marc_list[a];
|
||||
years = years_UpAndDown(tmp[0]);
|
||||
if (cb_state.SelectedIndex == 0) years = true;
|
||||
}
|
||||
if (a % 3 == 1) { tmp[1] = marc_list[a]; }
|
||||
if (a % 3 == 2) { tmp[2] = marc_list[a];
|
||||
if (a % 2 == 1) { tmp[1] = marc_list[a];
|
||||
if (years) {
|
||||
save_date.Add(tmp[0]);
|
||||
cb_list.Items.Add(tmp[1]);
|
||||
connect_list.Items.Add(tmp[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
private bool years_UpAndDown(string years)
|
||||
{
|
||||
if(cb_years.Text == "") { return false; }
|
||||
if(cb_years.Text == "") return false;
|
||||
int select = Convert.ToInt32(cb_years.Text);
|
||||
int year = Convert.ToInt32(years.Substring(0, 4));
|
||||
|
||||
@@ -105,10 +102,9 @@ namespace WindowsFormsApp1.Mac
|
||||
private void cb_list_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
connect_list.SelectedIndex = cb_list.SelectedIndex;
|
||||
string area = "`isbn`, `book_name`, `author`, `book_comp`, `price`";
|
||||
string[] col = { "compidx", "list_name", "date" };
|
||||
string[] data = { compidx, connect_list.Text, save_date[cb_list.SelectedIndex] };
|
||||
string[] data = { compidx, cb_list.Text, save_date[cb_list.SelectedIndex] };
|
||||
string cmd = db.More_DB_Search("Obj_List_Book", col, data, area);
|
||||
string db_res = db.DB_Send_CMD_Search(cmd);
|
||||
string[] tmp_ary = db_res.Split('|');
|
||||
|
||||
@@ -1484,6 +1484,21 @@ namespace ExcelTest
|
||||
}
|
||||
}
|
||||
|
||||
private void FillTextBox_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
|
||||
TextBox tb = sender as TextBox;
|
||||
|
||||
if (e.KeyCode == Keys.Control)
|
||||
{
|
||||
if (e.KeyCode == Keys.T)
|
||||
{
|
||||
tb.Text += "▽";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region DataGridView 드래그 행이동 이벤트 함수
|
||||
|
||||
Skill_Grid sg = new Skill_Grid();
|
||||
|
||||
11
unimarc/unimarc/마크/Marc.designer.cs
generated
11
unimarc/unimarc/마크/Marc.designer.cs
generated
@@ -1432,6 +1432,7 @@
|
||||
this.text900a.Name = "text900a";
|
||||
this.text900a.Size = new System.Drawing.Size(435, 21);
|
||||
this.text900a.TabIndex = 292;
|
||||
this.text900a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text910a
|
||||
//
|
||||
@@ -1441,6 +1442,7 @@
|
||||
this.text910a.Name = "text910a";
|
||||
this.text910a.Size = new System.Drawing.Size(435, 21);
|
||||
this.text910a.TabIndex = 299;
|
||||
this.text910a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// label35
|
||||
//
|
||||
@@ -1550,6 +1552,7 @@
|
||||
this.text700a.Name = "text700a";
|
||||
this.text700a.Size = new System.Drawing.Size(435, 21);
|
||||
this.text700a.TabIndex = 287;
|
||||
this.text700a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text710a
|
||||
//
|
||||
@@ -1559,6 +1562,7 @@
|
||||
this.text710a.Name = "text710a";
|
||||
this.text710a.Size = new System.Drawing.Size(435, 21);
|
||||
this.text710a.TabIndex = 298;
|
||||
this.text710a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// label21
|
||||
//
|
||||
@@ -1794,6 +1798,7 @@
|
||||
this.text260b.Name = "text260b";
|
||||
this.text260b.Size = new System.Drawing.Size(178, 21);
|
||||
this.text260b.TabIndex = 268;
|
||||
this.text260b.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text260c
|
||||
//
|
||||
@@ -1963,6 +1968,7 @@
|
||||
this.text650a.Name = "text650a";
|
||||
this.text650a.Size = new System.Drawing.Size(429, 21);
|
||||
this.text650a.TabIndex = 277;
|
||||
this.text650a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
@@ -2049,6 +2055,7 @@
|
||||
this.text041h.Name = "text041h";
|
||||
this.text041h.Size = new System.Drawing.Size(94, 21);
|
||||
this.text041h.TabIndex = 253;
|
||||
this.text041h.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text041k
|
||||
//
|
||||
@@ -2277,6 +2284,7 @@
|
||||
this.text245b.Name = "text245b";
|
||||
this.text245b.Size = new System.Drawing.Size(389, 21);
|
||||
this.text245b.TabIndex = 291;
|
||||
this.text245b.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245x
|
||||
//
|
||||
@@ -2313,6 +2321,7 @@
|
||||
this.text245e.Name = "text245e";
|
||||
this.text245e.Size = new System.Drawing.Size(457, 21);
|
||||
this.text245e.TabIndex = 283;
|
||||
this.text245e.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245p
|
||||
//
|
||||
@@ -2424,6 +2433,7 @@
|
||||
this.text653a.Name = "text653a";
|
||||
this.text653a.Size = new System.Drawing.Size(429, 21);
|
||||
this.text653a.TabIndex = 284;
|
||||
this.text653a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text507t
|
||||
//
|
||||
@@ -2441,6 +2451,7 @@
|
||||
this.text500a.Name = "text500a";
|
||||
this.text500a.Size = new System.Drawing.Size(372, 48);
|
||||
this.text500a.TabIndex = 278;
|
||||
this.text500a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text507a
|
||||
//
|
||||
|
||||
@@ -240,6 +240,8 @@ namespace WindowsFormsApp1.Home
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
cmd = _DB.DB_INSERT("User_Access", Update_Col, Update_Data);
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
cmd = string.Format("INSERT INTO `User_ShortCut` (`id`) VALUES ('{0}')", tb_ID.Text);
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user