public string findata(string obj, string column, string value) { sql sql = new sql(); var o = sql.finddatasql(obj, "where " + column + "='" + value + "'"); string rs = ""; if (o.Count > 0) { rs = JsonConvert.SerializeObject(o); } return(rs); }
public string findidobj2(string table, string columncp, string vl, string clget) { sql sql = new sql(); try { return(sql.finddatasql(table, "where " + columncp)[clget].ToString()); } catch { return("-1"); } }