인증서 발급 일자 오류 수정

This commit is contained in:
2023-10-26 11:15:50 +09:00
parent d95e7e3276
commit 587f09dfa2

View File

@@ -4,7 +4,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Linq; using System.Linq;
using System.Runtime.Remoting.Channels;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
@@ -151,7 +150,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
break; break;
} }
string vehicleType = ""; string vehicleType = "";
switch(nowUserList[i].VehicleType) switch (nowUserList[i].VehicleType)
{ {
case EVehicleType.Large_Down: case EVehicleType.Large_Down:
vehicleType = "대형(4.5톤 미만)"; vehicleType = "대형(4.5톤 미만)";
@@ -446,6 +445,8 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
int lastNo = Database.GetLastCertificate(nowDateTime.Year); int lastNo = Database.GetLastCertificate(nowDateTime.Year);
lastNo++; lastNo++;
certificateInformation.IssueNumber = nowDateTime.Year.ToString() + "-C" + lastNo.ToString(); certificateInformation.IssueNumber = nowDateTime.Year.ToString() + "-C" + lastNo.ToString();
certificateInformation.StartDate = promotion.StartDate;
certificateInformation.EndDate = promotion.EndDate;
SetCertificateInformation setCertificateInformation = new SetCertificateInformation(); SetCertificateInformation setCertificateInformation = new SetCertificateInformation();
setCertificateInformation.No = certificateInformation.IssueNumber; setCertificateInformation.No = certificateInformation.IssueNumber;
@@ -540,12 +541,12 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
if (status == EPaymentStatus.Delete) if (status == EPaymentStatus.Delete)
{ {
DialogResult dialogResult = MetroMessageBox.Show(this, "해당 사용자는 이미 삭제된 사용자입니다. 복구 하시겠습니까?", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Information); DialogResult dialogResult = MetroMessageBox.Show(this, "해당 사용자는 이미 삭제된 사용자입니다. 복구 하시겠습니까?", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if(dialogResult== DialogResult.No ) if (dialogResult == DialogResult.No)
{ {
return; return;
} }
bool result = Database.DeleteUserUndo(no); bool result = Database.DeleteUserUndo(no);
if(result) if (result)
{ {
MetroMessageBox.Show(this, "성공적으로 복구 하였습니다..", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); MetroMessageBox.Show(this, "성공적으로 복구 하였습니다..", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
DataChange(); DataChange();