Ejemplo 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)));
 }
Ejemplo 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)));
 }
Ejemplo 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)));
 }
Ejemplo 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)));
 }
Ejemplo 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)));
 }
Ejemplo 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)));
 }
Ejemplo 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)));
 }