This commit is contained in:
chikyun.kim
2018-10-02 17:33:28 +09:00
parent c49f039d03
commit 340a6fd3ef
26 changed files with 1275 additions and 520 deletions

View File

@@ -99,6 +99,23 @@ namespace FCOMMON
where = string.Format(where, GroupCode);
return getTwoColumnList("Common", "code", "memo", where, "code");
}
public static string getCodeSavlue(string GroupCode, string code)
{
var cn = getCn();
cn.Open();
var sql = "select isnull(SValue,'')" +
" from Common" +
" where Grp = '{0}' and code = '{1}'";
sql = string.Format(sql, GroupCode, code);
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);
var data = cmd.ExecuteScalar();
cmd.Dispose();
cn.Close();
cn.Dispose();
return data.ToString();
}
public static System.Data.DataTable getCodeTable(string GroupCode = "99")
{
var list = getCodeList(GroupCode);