ReadMe.MD ㅍㅏ일추가
유틸리티 및 데이터그리드뷰 내보내기 기능 추가 (사과) 거래처목록 내보내기 기능 추가
This commit is contained in:
BIN
unimarc/dll/CarlosAg.ExcelXmlWriter.dll
Normal file
BIN
unimarc/dll/CarlosAg.ExcelXmlWriter.dll
Normal file
Binary file not shown.
BIN
unimarc/dll/arCommUtil.dll
Normal file
BIN
unimarc/dll/arCommUtil.dll
Normal file
Binary file not shown.
BIN
unimarc/dll/arControl.Net4.dll
Normal file
BIN
unimarc/dll/arControl.Net4.dll
Normal file
Binary file not shown.
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
|
||||
// 기본값으로 할 수 있습니다.
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.0.0.185")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.185")]
|
||||
|
||||
10
unimarc/unimarc/ReadMe.MD
Normal file
10
unimarc/unimarc/ReadMe.MD
Normal file
@@ -0,0 +1,10 @@
|
||||
## 파일업데이트 사용 방법
|
||||
## 작성자 : chi(tindevil@nate.com)
|
||||
## 장성일 : 2025-06-16 21:00
|
||||
|
||||
1. 프로그램 업데이트
|
||||
프로그램런타임 폴더의 update.ini 에 업데이트 버젼과 대상파일을 지정
|
||||
2. 데이터베이스에 기록 추가
|
||||
(update table 에 버젼과 히스토리 기입)
|
||||
3. 업데이트 파일 업로드(FTP)
|
||||
FTPGloria\unimarc 에 파일을 업로드한다.
|
||||
@@ -75,9 +75,18 @@
|
||||
<ManifestKeyFile>UniMarc_TemporaryKey.pfx</ManifestKeyFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="arCommUtil">
|
||||
<HintPath>..\dll\arCommUtil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="arControl.Net4">
|
||||
<HintPath>..\dll\arControl.Net4.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ArLog.Net4">
|
||||
<HintPath>..\dll\ArLog.Net4.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CarlosAg.ExcelXmlWriter">
|
||||
<HintPath>..\dll\CarlosAg.ExcelXmlWriter.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualBasic" />
|
||||
<Reference Include="MySql.Data, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
@@ -1733,6 +1742,7 @@
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<None Include="ReadMe.MD" />
|
||||
<None Include="UniMarc_TemporaryKey.pfx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
7c3f3c7bd336cd4a22fbf71f45e129479c488ff9
|
||||
a980cc54cfee34721f8734aaae513dd71cd3d934
|
||||
|
||||
@@ -148,4 +148,7 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\ArLog.Net4.dll
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.From_User_manage_List.resources
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Memory.dll
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Numerics.Vectors.dll
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\arControl.Net4.dll
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\CarlosAg.ExcelXmlWriter.dll
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\arCommUtil.dll
|
||||
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.csproj.AssemblyReference.cache
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
303
unimarc/unimarc/홈/Transaction_manage.Designer.cs
generated
303
unimarc/unimarc/홈/Transaction_manage.Designer.cs
generated
@@ -28,14 +28,15 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.components = new System.ComponentModel.Container();
|
||||
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();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.NameLabel = new System.Windows.Forms.Label();
|
||||
this.tb_sangho = new System.Windows.Forms.TextBox();
|
||||
this.tb_addr = new System.Windows.Forms.TextBox();
|
||||
@@ -53,7 +54,7 @@
|
||||
this.tb_tel = new System.Windows.Forms.TextBox();
|
||||
this.cb_gubun2 = new System.Windows.Forms.ComboBox();
|
||||
this.rtb_etc = new System.Windows.Forms.RichTextBox();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.dv1 = new arCtl.arDatagridView();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.sangho = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.gubun = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -107,6 +108,10 @@
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.label19 = new System.Windows.Forms.Label();
|
||||
this.tbSearch = new System.Windows.Forms.TextBox();
|
||||
this.btnInit = new System.Windows.Forms.Button();
|
||||
this.lbl_idx = new System.Windows.Forms.Label();
|
||||
this.cb_dlsArea = new System.Windows.Forms.ComboBox();
|
||||
this.label18 = new System.Windows.Forms.Label();
|
||||
@@ -128,14 +133,13 @@
|
||||
this.panel7 = new System.Windows.Forms.Panel();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.tbSearch = new System.Windows.Forms.TextBox();
|
||||
this.label19 = new System.Windows.Forms.Label();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnInit = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.btExportList = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.marcGrid)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gearGrid)).BeginInit();
|
||||
this.panel4.SuspendLayout();
|
||||
@@ -143,7 +147,7 @@
|
||||
this.panel7.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// NameLabel
|
||||
@@ -309,20 +313,25 @@
|
||||
this.rtb_etc.TabIndex = 38;
|
||||
this.rtb_etc.Text = "";
|
||||
//
|
||||
// dataGridView1
|
||||
// dv1
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dv1.A_DelCurrentCell = true;
|
||||
this.dv1.A_EnterToTab = true;
|
||||
this.dv1.A_KoreanField = null;
|
||||
this.dv1.A_UpperField = null;
|
||||
this.dv1.A_ViewRownumOnHeader = true;
|
||||
this.dv1.AllowUserToAddRows = false;
|
||||
this.dv1.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dv1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
this.sangho,
|
||||
this.gubun,
|
||||
@@ -345,26 +354,27 @@
|
||||
this.label,
|
||||
this.program,
|
||||
this.bigo});
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.MultiSelect = false;
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.ControlDark;
|
||||
dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.dataGridView1.RowHeadersWidth = 21;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(967, 425);
|
||||
this.dataGridView1.TabIndex = 44;
|
||||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
|
||||
this.dv1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dv1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
this.dv1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dv1.MultiSelect = false;
|
||||
this.dv1.Name = "dv1";
|
||||
this.dv1.ReadOnly = true;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.ControlDark;
|
||||
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.dv1.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dv1.RowHeadersWidth = 21;
|
||||
this.dv1.RowTemplate.Height = 23;
|
||||
this.dv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dv1.Size = new System.Drawing.Size(967, 425);
|
||||
this.dv1.TabIndex = 44;
|
||||
this.dv1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
|
||||
//
|
||||
// idx
|
||||
//
|
||||
@@ -753,7 +763,7 @@
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.dataGridView1);
|
||||
this.panel3.Controls.Add(this.dv1);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 417);
|
||||
this.panel3.Name = "panel3";
|
||||
@@ -812,6 +822,71 @@
|
||||
this.panel2.Size = new System.Drawing.Size(967, 417);
|
||||
this.panel2.TabIndex = 48;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||
this.tableLayoutPanel1.ColumnCount = 9;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.label19, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbSearch, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_search, 3, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_close, 8, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_delete, 7, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_save, 6, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_add, 5, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnInit, 4, 0);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 1;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(967, 44);
|
||||
this.tableLayoutPanel1.TabIndex = 49;
|
||||
//
|
||||
// label19
|
||||
//
|
||||
this.label19.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label19.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label19.Location = new System.Drawing.Point(4, 1);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(100, 42);
|
||||
this.label19.TabIndex = 0;
|
||||
this.label19.Text = "업 체 명";
|
||||
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// tbSearch
|
||||
//
|
||||
this.tableLayoutPanel1.SetColumnSpan(this.tbSearch, 2);
|
||||
this.tbSearch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbSearch.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbSearch.Location = new System.Drawing.Point(108, 6);
|
||||
this.tbSearch.Margin = new System.Windows.Forms.Padding(0, 5, 0, 5);
|
||||
this.tbSearch.Name = "tbSearch";
|
||||
this.tbSearch.Size = new System.Drawing.Size(213, 32);
|
||||
this.tbSearch.TabIndex = 1;
|
||||
this.tbSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_sangho_KeyDown);
|
||||
//
|
||||
// btnInit
|
||||
//
|
||||
this.btnInit.DialogResult = System.Windows.Forms.DialogResult.Abort;
|
||||
this.btnInit.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnInit.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.btnInit.Location = new System.Drawing.Point(432, 4);
|
||||
this.btnInit.Name = "btnInit";
|
||||
this.btnInit.Size = new System.Drawing.Size(100, 36);
|
||||
this.btnInit.TabIndex = 39;
|
||||
this.btnInit.Text = "초기화";
|
||||
this.btnInit.UseVisualStyleBackColor = true;
|
||||
this.btnInit.Click += new System.EventHandler(this.btnInit_Click);
|
||||
//
|
||||
// lbl_idx
|
||||
//
|
||||
this.lbl_idx.AutoSize = true;
|
||||
@@ -843,14 +918,14 @@
|
||||
//
|
||||
this.marcGrid.AllowUserToAddRows = false;
|
||||
this.marcGrid.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.marcGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.marcGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.Column1,
|
||||
@@ -868,8 +943,8 @@
|
||||
//
|
||||
// Column1
|
||||
//
|
||||
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column1.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column1.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.Column1.HeaderText = "내용";
|
||||
this.Column1.Name = "Column1";
|
||||
this.Column1.Width = 150;
|
||||
@@ -882,8 +957,8 @@
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column3.DefaultCellStyle = dataGridViewCellStyle13;
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column3.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.Column3.HeaderText = "내용";
|
||||
this.Column3.Name = "Column3";
|
||||
this.Column3.Width = 150;
|
||||
@@ -914,14 +989,14 @@
|
||||
//
|
||||
this.gearGrid.AllowUserToAddRows = false;
|
||||
this.gearGrid.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle14.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.gearGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.gearGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewTextBoxColumn1,
|
||||
@@ -939,8 +1014,8 @@
|
||||
//
|
||||
// dataGridViewTextBoxColumn1
|
||||
//
|
||||
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle15;
|
||||
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.dataGridViewTextBoxColumn1.HeaderText = "내용";
|
||||
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
|
||||
this.dataGridViewTextBoxColumn1.Width = 150;
|
||||
@@ -953,8 +1028,8 @@
|
||||
//
|
||||
// dataGridViewTextBoxColumn3
|
||||
//
|
||||
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle16;
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.dataGridViewTextBoxColumn3.HeaderText = "내용";
|
||||
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
|
||||
this.dataGridViewTextBoxColumn3.Width = 150;
|
||||
@@ -1042,70 +1117,19 @@
|
||||
this.panel5.Size = new System.Drawing.Size(830, 35);
|
||||
this.panel5.TabIndex = 51;
|
||||
//
|
||||
// tbSearch
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.tableLayoutPanel1.SetColumnSpan(this.tbSearch, 2);
|
||||
this.tbSearch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbSearch.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbSearch.Location = new System.Drawing.Point(108, 6);
|
||||
this.tbSearch.Margin = new System.Windows.Forms.Padding(0, 5, 0, 5);
|
||||
this.tbSearch.Name = "tbSearch";
|
||||
this.tbSearch.Size = new System.Drawing.Size(213, 32);
|
||||
this.tbSearch.TabIndex = 1;
|
||||
this.tbSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_sangho_KeyDown);
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.btExportList});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 48);
|
||||
//
|
||||
// label19
|
||||
// btExportList
|
||||
//
|
||||
this.label19.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label19.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label19.Location = new System.Drawing.Point(4, 1);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(100, 42);
|
||||
this.label19.TabIndex = 0;
|
||||
this.label19.Text = "업 체 명";
|
||||
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||
this.tableLayoutPanel1.ColumnCount = 9;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.label19, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbSearch, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_search, 3, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_close, 8, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_delete, 7, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_save, 6, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_add, 5, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnInit, 4, 0);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 1;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(967, 44);
|
||||
this.tableLayoutPanel1.TabIndex = 49;
|
||||
//
|
||||
// btnInit
|
||||
//
|
||||
this.btnInit.DialogResult = System.Windows.Forms.DialogResult.Abort;
|
||||
this.btnInit.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnInit.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.btnInit.Location = new System.Drawing.Point(432, 4);
|
||||
this.btnInit.Name = "btnInit";
|
||||
this.btnInit.Size = new System.Drawing.Size(100, 36);
|
||||
this.btnInit.TabIndex = 39;
|
||||
this.btnInit.Text = "초기화";
|
||||
this.btnInit.UseVisualStyleBackColor = true;
|
||||
this.btnInit.Click += new System.EventHandler(this.btnInit_Click);
|
||||
this.btExportList.Name = "btExportList";
|
||||
this.btExportList.Size = new System.Drawing.Size(180, 22);
|
||||
this.btExportList.Text = "목록 내보내기";
|
||||
this.btExportList.Click += new System.EventHandler(this.btExportList_Click);
|
||||
//
|
||||
// Transaction_manage
|
||||
//
|
||||
@@ -1117,11 +1141,13 @@
|
||||
this.Name = "Transaction_manage";
|
||||
this.Text = "납품 / 거래처 관리";
|
||||
this.Load += new System.EventHandler(this.Transaction_manage_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.marcGrid)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.gearGrid)).EndInit();
|
||||
this.panel4.ResumeLayout(false);
|
||||
@@ -1131,8 +1157,7 @@
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.panel5.PerformLayout();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -1149,7 +1174,7 @@
|
||||
private System.Windows.Forms.Button btn_add;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.DataGridView dataGridView1;
|
||||
private arCtl.arDatagridView dv1;
|
||||
private System.Windows.Forms.Button btn_search;
|
||||
public System.Windows.Forms.TextBox tb_sangho;
|
||||
public System.Windows.Forms.TextBox tb_addr;
|
||||
@@ -1235,5 +1260,7 @@
|
||||
private System.Windows.Forms.Label label19;
|
||||
public System.Windows.Forms.TextBox tbSearch;
|
||||
private System.Windows.Forms.Button btnInit;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem btExportList;
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using UniMarc;
|
||||
using WindowsFormsApp1.Delivery;
|
||||
using AR;
|
||||
|
||||
namespace WindowsFormsApp1.Home
|
||||
{
|
||||
@@ -49,7 +50,7 @@ namespace WindowsFormsApp1.Home
|
||||
"`c_program`, `c_etc`";
|
||||
string cmd = db.DB_Select_Search(seartempdb, "Client", "campanyidx", compidx);
|
||||
string db_res = db.DB_Send_CMD_Search(cmd);
|
||||
dataGridView1.Rows.Clear();
|
||||
dv1.Rows.Clear();
|
||||
string[] data = db_res.Split('|');
|
||||
string[] result = { "", "", "", "", "",
|
||||
"", "", "", "", "",
|
||||
@@ -57,20 +58,25 @@ namespace WindowsFormsApp1.Home
|
||||
"", "", "", "", "",
|
||||
"", "" };
|
||||
int ea = 0;
|
||||
for(int a = 0; a < data.Length; a++)
|
||||
for (int a = 0; a < data.Length; a++)
|
||||
{
|
||||
if (ea == 11) {
|
||||
if (ea == 11)
|
||||
{
|
||||
result[10] += " | " + data[a];
|
||||
}
|
||||
else if (a % 21 == ea) {
|
||||
if (ea > 11) {
|
||||
else if (a % 21 == ea)
|
||||
{
|
||||
if (ea > 11)
|
||||
{
|
||||
result[ea - 1] = data[a];
|
||||
if (ea == 20) {
|
||||
dataGridView1.Rows.Add(result);
|
||||
if (ea == 20)
|
||||
{
|
||||
dv1.Rows.Add(result);
|
||||
ea = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
result[ea] = data[a];
|
||||
}
|
||||
}
|
||||
@@ -112,11 +118,11 @@ namespace WindowsFormsApp1.Home
|
||||
{
|
||||
TextInit();
|
||||
}
|
||||
|
||||
|
||||
public void btn_add_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null) return;
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
if (dv1.CurrentCell == null) return;
|
||||
int RowIndex = dv1.CurrentCell.RowIndex;
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
string tText = string.Format("{0} 를 추가 하시겠습니까?", tb_sangho.Text);
|
||||
@@ -173,15 +179,15 @@ namespace WindowsFormsApp1.Home
|
||||
}
|
||||
private void btn_save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.SelectedRows.Count == 0)
|
||||
if (dv1.SelectedRows.Count == 0)
|
||||
{
|
||||
MessageBox.Show("수정 할 업체를 선택해 주세요.");
|
||||
return;
|
||||
}
|
||||
int tRowIndex = dataGridView1.SelectedRows[0].Index;
|
||||
int tRowIndex = dv1.SelectedRows[0].Index;
|
||||
if (tRowIndex < 0)
|
||||
return;
|
||||
string tText = string.Format("{0} 를 수정 하시겠습니까?", dataGridView1.Rows[tRowIndex].Cells["sangho"].Value.ToString());
|
||||
string tText = string.Format("{0} 를 수정 하시겠습니까?", dv1.Rows[tRowIndex].Cells["sangho"].Value.ToString());
|
||||
if (CUtill.MsgQ(tText) != DialogResult.Yes) return;
|
||||
if (tb_sangho.Text == "")
|
||||
{
|
||||
@@ -210,26 +216,26 @@ namespace WindowsFormsApp1.Home
|
||||
|
||||
//if (isCopy) // 중복 데이터가 있을 경우
|
||||
//{
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
string[] editcol = { "c_sangho", "c_gu", "c_boss", "c_bubin", "c_uptae",
|
||||
int RowIndex = dv1.CurrentCell.RowIndex;
|
||||
string[] editcol = { "c_sangho", "c_gu", "c_boss", "c_bubin", "c_uptae",
|
||||
"c_jongmok", "c_tel", "c_fax", "c_email", "c_man",
|
||||
"c_mantel", "c_user", "c_zip", "c_addr", "c_dlsID",
|
||||
"c_dlsPW", "c_division", "c_label", "c_program", "c_etc",
|
||||
"c_dlsArea" };
|
||||
|
||||
string[] editname = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
|
||||
string[] editname = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
|
||||
tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
|
||||
tb_man1.Text, tb_user.Text, tb_zip.Text, tb_addr.Text, tb_id.Text,
|
||||
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
|
||||
cb_dlsArea.Text };
|
||||
|
||||
string[] searchcol = { "idx", "campanyidx" };
|
||||
string[] searchname = { lbl_idx.Text, compidx };
|
||||
string[] searchcol = { "idx", "campanyidx" };
|
||||
string[] searchname = { lbl_idx.Text, compidx };
|
||||
|
||||
string U_cmd = db.More_Update("Client", editcol, editname, searchcol, searchname);
|
||||
string U_cmd = db.More_Update("Client", editcol, editname, searchcol, searchname);
|
||||
|
||||
db.DB_Send_CMD_reVoid(U_cmd);
|
||||
MessageBox.Show(tb_sangho.Text + "가 성공적으로 수정되었습니다.");
|
||||
db.DB_Send_CMD_reVoid(U_cmd);
|
||||
MessageBox.Show(tb_sangho.Text + "가 성공적으로 수정되었습니다.");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
@@ -252,18 +258,18 @@ namespace WindowsFormsApp1.Home
|
||||
// MessageBox.Show(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
//}
|
||||
SearchList();
|
||||
dataGridView1.Rows[RowIndex].Selected = true;
|
||||
dv1.Rows[RowIndex].Selected = true;
|
||||
|
||||
}
|
||||
private void btn_delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null) return;
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
{
|
||||
if (dv1.CurrentCell == null) return;
|
||||
int RowIndex = dv1.CurrentCell.RowIndex;
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dataGridView1.Rows[RowIndex].Cells["sangho"].Value.ToString());
|
||||
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dv1.Rows[RowIndex].Cells["sangho"].Value.ToString());
|
||||
if (CUtill.MsgQ(tText) != DialogResult.Yes) return;
|
||||
string D_cmd = db.DB_Delete("Client", "idx", dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString(), "c_sangho", tb_sangho.Text);
|
||||
string D_cmd = db.DB_Delete("Client", "idx", dv1.Rows[RowIndex].Cells["idx"].Value.ToString(), "c_sangho", tb_sangho.Text);
|
||||
db.DB_Send_CMD_reVoid(D_cmd);
|
||||
Made_Grid();
|
||||
SearchList();
|
||||
@@ -289,34 +295,34 @@ namespace WindowsFormsApp1.Home
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
|
||||
lbl_idx.Text = dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString();
|
||||
lbl_idx.Text = dv1.Rows[RowIndex].Cells["idx"].Value.ToString();
|
||||
|
||||
tb_sangho.Text = dataGridView1.Rows[RowIndex].Cells["sangho"].Value.ToString();
|
||||
tb_boss.Text = dataGridView1.Rows[RowIndex].Cells["boss"].Value.ToString();
|
||||
tb_bubin.Text = dataGridView1.Rows[RowIndex].Cells["bubin"].Value.ToString();
|
||||
tb_division.Text = dataGridView1.Rows[RowIndex].Cells["division"].Value.ToString();
|
||||
tb_jongmok.Text = dataGridView1.Rows[RowIndex].Cells["jongmok"].Value.ToString();
|
||||
tb_label.Text = dataGridView1.Rows[RowIndex].Cells["label"].Value.ToString();
|
||||
tb_mail.Text = dataGridView1.Rows[RowIndex].Cells["mail"].Value.ToString();
|
||||
tb_man.Text = dataGridView1.Rows[RowIndex].Cells["man"].Value.ToString();
|
||||
tb_man1.Text = dataGridView1.Rows[RowIndex].Cells["mantel"].Value.ToString();
|
||||
tb_program.Text = dataGridView1.Rows[RowIndex].Cells["program"].Value.ToString();
|
||||
tb_id.Text = dataGridView1.Rows[RowIndex].Cells["DLSid"].Value.ToString();
|
||||
tb_pw.Text = dataGridView1.Rows[RowIndex].Cells["DLSpw"].Value.ToString();
|
||||
tb_uptae.Text = dataGridView1.Rows[RowIndex].Cells["uptae"].Value.ToString();
|
||||
tb_zip.Text = dataGridView1.Rows[RowIndex].Cells["post_num"].Value.ToString();
|
||||
tb_user.Text = dataGridView1.Rows[RowIndex].Cells["assumer"].Value.ToString();
|
||||
tb_tel.Text = dataGridView1.Rows[RowIndex].Cells["tel"].Value.ToString();
|
||||
tb_fax.Text = dataGridView1.Rows[RowIndex].Cells["fax"].Value.ToString();
|
||||
tb_addr.Text = dataGridView1.Rows[RowIndex].Cells["addr"].Value.ToString();
|
||||
tb_sangho.Text = dv1.Rows[RowIndex].Cells["sangho"].Value.ToString();
|
||||
tb_boss.Text = dv1.Rows[RowIndex].Cells["boss"].Value.ToString();
|
||||
tb_bubin.Text = dv1.Rows[RowIndex].Cells["bubin"].Value.ToString();
|
||||
tb_division.Text = dv1.Rows[RowIndex].Cells["division"].Value.ToString();
|
||||
tb_jongmok.Text = dv1.Rows[RowIndex].Cells["jongmok"].Value.ToString();
|
||||
tb_label.Text = dv1.Rows[RowIndex].Cells["label"].Value.ToString();
|
||||
tb_mail.Text = dv1.Rows[RowIndex].Cells["mail"].Value.ToString();
|
||||
tb_man.Text = dv1.Rows[RowIndex].Cells["man"].Value.ToString();
|
||||
tb_man1.Text = dv1.Rows[RowIndex].Cells["mantel"].Value.ToString();
|
||||
tb_program.Text = dv1.Rows[RowIndex].Cells["program"].Value.ToString();
|
||||
tb_id.Text = dv1.Rows[RowIndex].Cells["DLSid"].Value.ToString();
|
||||
tb_pw.Text = dv1.Rows[RowIndex].Cells["DLSpw"].Value.ToString();
|
||||
tb_uptae.Text = dv1.Rows[RowIndex].Cells["uptae"].Value.ToString();
|
||||
tb_zip.Text = dv1.Rows[RowIndex].Cells["post_num"].Value.ToString();
|
||||
tb_user.Text = dv1.Rows[RowIndex].Cells["assumer"].Value.ToString();
|
||||
tb_tel.Text = dv1.Rows[RowIndex].Cells["tel"].Value.ToString();
|
||||
tb_fax.Text = dv1.Rows[RowIndex].Cells["fax"].Value.ToString();
|
||||
tb_addr.Text = dv1.Rows[RowIndex].Cells["addr"].Value.ToString();
|
||||
|
||||
rtb_etc.Text = dataGridView1.Rows[RowIndex].Cells["bigo"].Value.ToString();
|
||||
cb_dlsArea.Text = dataGridView1.Rows[RowIndex].Cells["dlsArea"].Value.ToString();
|
||||
rtb_etc.Text = dv1.Rows[RowIndex].Cells["bigo"].Value.ToString();
|
||||
cb_dlsArea.Text = dv1.Rows[RowIndex].Cells["dlsArea"].Value.ToString();
|
||||
Select_Gubun(RowIndex);
|
||||
}
|
||||
private void Select_Gubun(int pRowIndex)
|
||||
{
|
||||
string gubun = dataGridView1.Rows[pRowIndex].Cells["gubun"].Value.ToString();
|
||||
string gubun = dv1.Rows[pRowIndex].Cells["gubun"].Value.ToString();
|
||||
if (gubun.Contains("학교") || gubun == "도서관" || gubun == "유치원")
|
||||
{
|
||||
cb_gubun1.SelectedIndex = 1;
|
||||
@@ -374,7 +380,7 @@ namespace WindowsFormsApp1.Home
|
||||
}
|
||||
private void SearchList()
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
dv1.Rows.Clear();
|
||||
|
||||
string search = "`idx`, `c_sangho`, `c_gu`, `c_boss`, `c_bubin`, " +
|
||||
"`c_uptae`, `c_jongmok`, `c_tel`, `c_fax`, `c_email`, " +
|
||||
@@ -382,10 +388,10 @@ namespace WindowsFormsApp1.Home
|
||||
"`c_dlsArea`, `c_dlsID`, `c_dlsPW`, `c_division`, `c_label`," +
|
||||
" `c_program`, `c_etc`";
|
||||
string cmd = db.DB_Contains("Client", compidx, "c_sangho", tbSearch.Text, search);
|
||||
db.DB_Send_CMD_Search_ApplyGrid(cmd, dataGridView1);
|
||||
db.DB_Send_CMD_Search_ApplyGrid(cmd, dv1);
|
||||
|
||||
dataGridView1.Focus();
|
||||
dataGridView1.ClearSelection();
|
||||
dv1.Focus();
|
||||
dv1.ClearSelection();
|
||||
}
|
||||
private void cb_gubun1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
@@ -404,11 +410,11 @@ namespace WindowsFormsApp1.Home
|
||||
cb_gubun2.SelectedIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void btn_marc_expand_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null) return;
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
if (dv1.CurrentCell == null) return;
|
||||
int RowIndex = dv1.CurrentCell.RowIndex;
|
||||
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
@@ -429,7 +435,7 @@ namespace WindowsFormsApp1.Home
|
||||
|
||||
private void lookup(bool chk)
|
||||
{
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
int RowIndex = dv1.CurrentCell.RowIndex;
|
||||
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
@@ -442,7 +448,7 @@ namespace WindowsFormsApp1.Home
|
||||
marcGrid.Rows.Add(150);
|
||||
gearGrid.Rows.Add(100);
|
||||
|
||||
string idx = dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString();
|
||||
string idx = dv1.Rows[RowIndex].Cells["idx"].Value.ToString();
|
||||
string Area = "`cm_m1`, `cm_m2`, `cm_m3`";
|
||||
|
||||
string cmd = String.Format("Select {0} From {1} where cm_midx = {2} and cm_opt = {3} Order by cm_opt asc, cm_sq asc;",
|
||||
@@ -465,7 +471,7 @@ namespace WindowsFormsApp1.Home
|
||||
private void Add_Grid(string[] ary_data, DataGridView gridView)
|
||||
{
|
||||
int rowCount = 0;
|
||||
for(int a = 0; a < ary_data.Length; a++)
|
||||
for (int a = 0; a < ary_data.Length; a++)
|
||||
{
|
||||
if (a % 3 == 0) { gridView.Rows[rowCount].Cells[0].Value = ary_data[a]; }
|
||||
if (a % 3 == 1) { gridView.Rows[rowCount].Cells[1].Value = ary_data[a]; }
|
||||
@@ -476,7 +482,7 @@ namespace WindowsFormsApp1.Home
|
||||
private void tb_marcSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
string idx = lbl_idx.Text;
|
||||
|
||||
|
||||
if (string.IsNullOrEmpty(idx))
|
||||
return;
|
||||
|
||||
@@ -507,10 +513,10 @@ namespace WindowsFormsApp1.Home
|
||||
m1 = dgv.Rows[a].Cells[0].Value.ToString();
|
||||
m2 = dgv.Rows[a].Cells[1].Value.ToString();
|
||||
m3 = dgv.Rows[a].Cells[2].Value.ToString();
|
||||
|
||||
|
||||
string Icmd = string.Format("INSERT INTO custm_tbl (cm_m1, cm_m2, cm_m3, cm_sq, cm_opt, cm_midx)" +
|
||||
" values(\"{0}\", \"{1}\", \"{2}\", {3}, {4}, {5});", m1, m2, m3, a, gridNum, idx);
|
||||
|
||||
|
||||
db.DB_Send_CMD_reVoid(Icmd);
|
||||
}
|
||||
}
|
||||
@@ -525,11 +531,13 @@ namespace WindowsFormsApp1.Home
|
||||
{
|
||||
string name = ((Button)sender).Name;
|
||||
|
||||
if (name.Contains("marc")) {
|
||||
if (name.Contains("marc"))
|
||||
{
|
||||
marcGrid.Rows.Clear();
|
||||
marcGrid.Rows.Add(150);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
gearGrid.Rows.Clear();
|
||||
gearGrid.Rows.Add(100);
|
||||
}
|
||||
@@ -547,6 +555,26 @@ namespace WindowsFormsApp1.Home
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
private void btExportList_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var sd = new SaveFileDialog())
|
||||
{
|
||||
sd.Filter = "텍스트(콤마로 분리된 파일)|*.csv";
|
||||
sd.FilterIndex = 0;
|
||||
sd.FileName = "exportdata.csv";
|
||||
if (sd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.dv1.ExportData(sd.FileName);
|
||||
if(UTIL.MsgQ("생성된 파일을 확인 할까요?") == DialogResult.Yes)
|
||||
UTIL.RunExplorer(sd.FileName);
|
||||
}
|
||||
|
||||
catch (Exception ex) { UTIL.MsgE(ex.Message); }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,6 +183,9 @@
|
||||
<metadata name="bigo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
Reference in New Issue
Block a user