public static DataScriptRule getInfo(string fid) { DataScriptRule result = null; string sql = string.Format("SELECT * FROM MDS_IMP_DATA_SCRIPT_RULE WHERE FID='{0}'", fid); DataSet ds = OracleHelper.Query(sql); foreach (DataRow dr in ds.Tables[0].Rows) { DataScriptRule item = DataScriptRule.Parse(dr); result = item; } return(result); }
public static List <DataScriptRule> getList() { List <DataScriptRule> result = new List <DataScriptRule>(); string sql = "SELECT * FROM MDS_IMP_DATA_SCRIPT_RULE"; DataSet ds = OracleHelper.Query(sql); foreach (DataRow dr in ds.Tables[0].Rows) { DataScriptRule item = DataScriptRule.Parse(dr); result.Add(item); } return(result); }