Beispiel #1
0
    public string GetFilter(int companyId, int indicatorType, DateTime?from, DateTime?to, int?processId, int?processTypeId, int?targetId, int status)
    {
        var filter = new StringBuilder("{");

        filter.Append(Tools.JsonPair("companyId", companyId)).Append(",");
        filter.Append(Tools.JsonPair("indicatorType", indicatorType)).Append(",");
        filter.Append(Tools.JsonPair("from", from)).Append(",");
        filter.Append(Tools.JsonPair("to", to)).Append(",");
        filter.Append(Tools.JsonPair("process", processId)).Append(",");
        filter.Append(Tools.JsonPair("processType", processTypeId)).Append(",");
        filter.Append(Tools.JsonPair("objetivo", targetId)).Append(",");
        filter.Append(Tools.JsonPair("status", status)).Append("}");
        Session["IndicadorFilter"] = filter.ToString();
        return(Indicador.FilterList(companyId, indicatorType, from, to, processId, processTypeId, targetId, status));
    }