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