대기자 버그수정
This commit is contained in:
@@ -400,6 +400,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
|
|||||||
var result = MetroMessageBox.Show(this, "발급 하시겠습니까?", "증명서 발급", MessageBoxButtons.YesNo,
|
var result = MetroMessageBox.Show(this, "발급 하시겠습니까?", "증명서 발급", MessageBoxButtons.YesNo,
|
||||||
MessageBoxIcon.Question);
|
MessageBoxIcon.Question);
|
||||||
if (result == DialogResult.No) return;
|
if (result == DialogResult.No) return;
|
||||||
|
|
||||||
string no = dataGridView_List.SelectedRows[0].Cells[0].Value.ToString();
|
string no = dataGridView_List.SelectedRows[0].Cells[0].Value.ToString();
|
||||||
CertificateInformation certificateInformation = Database.GetUserCertificate(no);
|
CertificateInformation certificateInformation = Database.GetUserCertificate(no);
|
||||||
|
|
||||||
|
@@ -141,7 +141,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
|
|||||||
|
|
||||||
private void metroButton_UpdateUser_Click(object sender, EventArgs e)
|
private void metroButton_UpdateUser_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var count = dataGridView_List.Rows.Count - 1;
|
var count = dataGridView_List.Rows.Count;
|
||||||
if (count == 0) return;
|
if (count == 0) return;
|
||||||
|
|
||||||
Promotion promotion = new Promotion("대기자 이용기간");
|
Promotion promotion = new Promotion("대기자 이용기간");
|
||||||
|
@@ -564,7 +564,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
|
|||||||
public static void DeleteUser(string no)
|
public static void DeleteUser(string no)
|
||||||
{
|
{
|
||||||
DateTime endDate = new DateTime();
|
DateTime endDate = new DateTime();
|
||||||
var query = $"SELECT DateEnd FROM UserList Where No='{no}'";
|
var query = $"SELECT DateStart FROM UserList Where No='{no}'";
|
||||||
using (var command = _sqLiteConnection.CreateCommand())
|
using (var command = _sqLiteConnection.CreateCommand())
|
||||||
{
|
{
|
||||||
command.CommandText = query;
|
command.CommandText = query;
|
||||||
|
Reference in New Issue
Block a user