적정인원보고서 수정

This commit is contained in:
chi
2025-06-18 10:31:59 +09:00
parent 6f4b9355e1
commit a1477fcdd1
20 changed files with 994 additions and 520 deletions

View File

@@ -15,6 +15,28 @@ namespace Console_SendMail
cn.ConnectionString = cs;
return cn;
}
public static bool GetGroupEnableMail(string GroupColumn)
{
List<string> retval = new List<string>();
var cn = getCn();
cn.Open();
var sql = "select isnull(usemail,'False') " +
" from UserGroup WITH (nolock) " +
$" where gcode='{GroupColumn}' ";
var cmd = new SqlCommand(sql, cn);
var value = cmd.ExecuteScalar().ToString().ToUpper();
cmd.Dispose();
cn.Close();
cn.Dispose();
return value == "TRUE";
}
public static List<String> getGroupListWithoutGcode(string GroupColumn, string table, string where = "", Boolean desc = false, Boolean useColumncover = true)
{
List<string> retval = new List<string>();