제보된 버그 수정
This commit is contained in:
@@ -50,7 +50,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
|
|||||||
|
|
||||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
var result = excelWrapper.WriteDataTableToExcel((DataTable)dataGridView_List.DataSource, "UserList", saveFileDialog.FileName, "대기자 등록 리스트", Environment.MachineName, DateTime.Now);
|
var result = excelWrapper.WriteDataTableToExcel((DataTable)dataGridView_List.DataSource, "당첨 결과 리스트", saveFileDialog.FileName, "당첨 결과 리스트", Environment.MachineName, DateTime.Now);
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
MetroMessageBox.Show(this, "엑셀 파일 저장에 성공하였습니다.", "Excel Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MetroMessageBox.Show(this, "엑셀 파일 저장에 성공하였습니다.", "Excel Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
using HSUCO_Cargo_Garage_Operation_Program.Properties;
|
using MetroFramework;
|
||||||
using MetroFramework;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@@ -23,7 +22,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
|
|||||||
|
|
||||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
var result = excelWrapper.WriteDataTableToExcel((DataTable)dataGridView_List.DataSource, "Certificate", saveFileDialog.FileName, "정기권 발급 대장", Environment.MachineName, DateTime.Now);
|
var result = excelWrapper.WriteDataTableToExcel((DataTable)dataGridView_List.DataSource, "Certificate", saveFileDialog.FileName, "증명서 발급 대장", Environment.MachineName, DateTime.Now);
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
MetroMessageBox.Show(this, "엑셀 파일 저장에 성공하였습니다.", "Excel Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MetroMessageBox.Show(this, "엑셀 파일 저장에 성공하였습니다.", "Excel Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
@@ -200,7 +200,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
|
|||||||
|
|
||||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
var result = excelWrapper.WriteDataTableToExcel((DataTable)dataGridView_List.DataSource, "당첨 신청자 리스트", saveFileDialog.FileName, "당첨 신청자 리스트", Environment.MachineName, DateTime.Now);
|
var result = excelWrapper.WriteDataTableToExcel((DataTable)dataGridView_List.DataSource, "대기자 리스트", saveFileDialog.FileName, "대기자 리스트", Environment.MachineName, DateTime.Now);
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
MetroMessageBox.Show(this, "엑셀 파일 저장에 성공하였습니다.", "Excel Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MetroMessageBox.Show(this, "엑셀 파일 저장에 성공하였습니다.", "Excel Export", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
@@ -217,7 +217,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
|
|||||||
{
|
{
|
||||||
var selectCount = dataGridView_List.SelectedRows.Count;
|
var selectCount = dataGridView_List.SelectedRows.Count;
|
||||||
if (selectCount == 0) return;
|
if (selectCount == 0) return;
|
||||||
string no = dataGridView_List.SelectedRows[0].Cells[0].Value.ToString();
|
string no = dataGridView_List.SelectedRows[0].Cells[1].Value.ToString();
|
||||||
|
|
||||||
UpdateUserInformation updateUserInformation = Database.GetUserData(EUserInformationType.ApplicantList, no);
|
UpdateUserInformation updateUserInformation = Database.GetUserData(EUserInformationType.ApplicantList, no);
|
||||||
UpdateUserData updateUserData = new UpdateUserData(updateUserInformation);
|
UpdateUserData updateUserData = new UpdateUserData(updateUserInformation);
|
||||||
|
@@ -17,7 +17,5 @@ namespace HSUCO_Cargo_Garage_Operation_Program
|
|||||||
this.Text = $"{Global.GlobalSettings.GarageName} 화물 차고지 운영프로그램 v{System.Reflection.Assembly.GetExecutingAssembly().GetName().Version}";
|
this.Text = $"{Global.GlobalSettings.GarageName} 화물 차고지 운영프로그램 v{System.Reflection.Assembly.GetExecutingAssembly().GetName().Version}";
|
||||||
applicant1.GarageName(Global.GlobalSettings.GarageName);
|
applicant1.GarageName(Global.GlobalSettings.GarageName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user