コード例 #1
0
    public static string[] GetPenaltyName(string prefixText, int count, string contextKey)
    {
        Pay_Employee_Penalty objpenalty = new Pay_Employee_Penalty();
        DataTable            dt         = objpenalty.GetPenaltyName("", HttpContext.Current.Session["CompId"].ToString());

        dt = new DataView(dt, "Penalty_Name lIKE '" + prefixText + "%'", "", DataViewRowState.CurrentRows).ToTable();


        string[] str = new string[dt.Rows.Count];
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            str[i] = dt.Rows[i][0].ToString();
        }
        return(str);
    }