Esempio n. 1
0
 public static string GetCode(int num)
 {
     return(DBH.GetString(QA.DBCS_STATIC, CommandType.Text, "SELECT code FROM uid WHERE id=@id", new SqlParameter("@id", num)));
 }
Esempio n. 2
0
 public static string GetSetting(string name)
 {
     return(DBH.GetString(QA.DBCS_MAIN, CommandType.Text, "SELECT svalue FROM setting WHERE skey=@name", new SqlParameter("@name", name)));
 }
Esempio n. 3
0
 internal static string GetFilePhysicalPath(int type, int uid)
 {
     return(DBH.GetString(QA.DBCS_MAIN, CommandType.Text, "SELECT TOP 1 physicalpath FROM attachment WHERE type=@type AND uid=@uid ORDER BY created DESC", new SqlParameter("@type", type), new SqlParameter("@uid", uid)));
 }
Esempio n. 4
0
 internal static string GetUrl(int id)
 {
     return(DBH.GetString(QA.DBCS_MAIN, CommandType.Text, "SELECT www FROM user_account WHERE id=@id", new SqlParameter("@id", id)));
 }
Esempio n. 5
0
 internal static string GetDisplayName(int roleid)
 {
     return(DBH.GetString(QA.DBCS_MAIN, CommandType.Text, "SELECT displayname FROM role WHERE id=@id", new SqlParameter("@id", roleid)));
 }
Esempio n. 6
0
 public static string GetUrl(string tableName, string name)
 {
     return(DBH.GetString(QA.DBCS_MAIN, CommandType.Text, "SELECT url FROM " + tableName + " WHERE name=@name", new SqlParameter("@name", name)));
 }
Esempio n. 7
0
 internal static string GetTemplate(string templateName)
 {
     return(DBH.GetString(QA.DBCS_MAIN, CommandType.Text, "SELECT tmpl FROM template WHERE name=@name", new SqlParameter("@name", templateName)));
 }