대기자 버그수정
This commit is contained in:
@@ -400,6 +400,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
|
||||
var result = MetroMessageBox.Show(this, "발급 하시겠습니까?", "증명서 발급", MessageBoxButtons.YesNo,
|
||||
MessageBoxIcon.Question);
|
||||
if (result == DialogResult.No) return;
|
||||
|
||||
string no = dataGridView_List.SelectedRows[0].Cells[0].Value.ToString();
|
||||
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)
|
||||
{
|
||||
var count = dataGridView_List.Rows.Count - 1;
|
||||
var count = dataGridView_List.Rows.Count;
|
||||
if (count == 0) return;
|
||||
|
||||
Promotion promotion = new Promotion("대기자 이용기간");
|
||||
|
@@ -564,7 +564,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
|
||||
public static void DeleteUser(string no)
|
||||
{
|
||||
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())
|
||||
{
|
||||
command.CommandText = query;
|
||||
|
Reference in New Issue
Block a user