Пример #1
0
    public static string[] GetCompletionList(string prefixText, int count, string contextKey)
    {
        DMPropertyMaintenance Obj_Con = new DMPropertyMaintenance();

        String[] SearchList = Obj_Con.GetSuggestRecord(prefixText);
        return(SearchList);
    }
Пример #2
0
    public void ReportGrid(string RepCondition)
    {
        string StrError = "";

        try
        {
            DS = Obj_PM.GetProject(RepCondition, out StrError);

            if (DS.Tables.Count > 0 && DS.Tables[0].Rows.Count > 0)
            {
                ViewState["CurrentProject"] = DS.Tables[0];
                GrdReport.DataSource        = DS.Tables[0];
                GrdReport.DataBind();
                HttpContext.Current.Cache["Dir"] = DS.Tables[0];
            }
            else
            {
                GrdReport.DataSource = null;
                GrdReport.DataBind();
            }
            Obj_PM = null;
            DS     = null;
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }