This commit is contained in:
chi
2023-01-26 09:16:01 +09:00
parent 3775d2ba91
commit 3a1fd6401c
31 changed files with 1565 additions and 733 deletions

View File

@@ -95,5 +95,20 @@ namespace FCM0000
{
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
var gcode = FCOMMON.info.Login.gcode;
var uid = FCOMMON.info.Login.no;
if (FCOMMON.Util.MsgQ("없는 목록을 기본값에서 생성 할까요?") != DialogResult.Yes) return;
var sql = "insert into MailForm(gcode,cate,title,[subject],tail,body,selfcc,wuid,wdate)" +
$" select '{gcode}',cate,title,[subject],tail,body,selfcc,'{uid}',GETDATE() from MailForm" +
$" where gcode = 'EET1P'" +
$" and cate not in (select cate from MailForm where gcode = '{gcode}')";
var cnt = FCOMMON.DBM.ExecuteNonQuery(sql);
FCOMMON.Util.MsgI($"{cnt}건의 목록이 생성 되었습니다");
refreshData();
}
}
}