public void UcDataBind()
        {
            GroupDS.GroupAgentDSDataTable dt = BllProxyGroupAgent.GetAllGroupAgents(groupId);

            if (dt.Rows.Count != 0)
            {
                //lblSurvey.Text = dt[0].survey_name;

                objectdatasourceList.SelectParameters.Clear();
                objectdatasourceList.SelectParameters.Add("group_id", groupId.ToString());

                gvList.Sort(sortExpression, sortDirection);
            }
            else
            {
                this.showErrorMessage("Group does not exist!");
            }
        }
        public void UcDataBind()
        {
            if (!this.AllowManagement)
            {
                gvList.Columns[2].Visible = false;
            }

            GroupDS.GroupAgentDSDataTable dt = BllProxyGroupAgent.GetAllGroupAgents(agentId);

            if (dt.Rows.Count != 0)
            {
                objectdatasourceList.SelectParameters.Clear();
                objectdatasourceList.SelectParameters.Add("agent_id", agentId.ToString());

                gvList.Sort(sortExpression, sortDirection);
            }
            else
            {
                this.showErrorMessage("Agent does not exist!");
            }
        }
Esempio n. 3
0
 public static GroupDS.GroupAgentDSDataTable GetAllGroupAgents(Int32 groupId)
 {
     GroupDS.GroupAgentDSDataTable dt = DalGroupAgent.GetAllGroupAgents(groupId);
     return(processData(dt));
 }