...
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user