적정인원보고서 수정
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user