예제 #1
0
 //-------------------------------------------------------------------------------
 public void ReleaseIncident(Int32 incidentId)
 {
     PoolDS.PoolDSDataTable dt = BllProxyPool.GetAllPoolAgents();
     foreach (PoolDS.PoolDSRow row in dt.Rows)
     {
         if (!dt[0].Isincident_idNull())
         {
             if (row.incident_id == incidentId)
             {
                 BllProxyPool.SetPoolAgentIncident(row.agent_id, 0);
             }
         }
     }
 }
예제 #2
0
        public void DoRoutine()
        {
            try
            {
                PoolDS.PoolDSDataTable dtAllPoolAgents = BllProxyPool.GetAllPoolAgents();

                cancelObsoleteIncidents();

                if (this.cleanUp(dtAllPoolAgents))
                {
                    dtAllPoolAgents = BllProxyPool.GetAllPoolAgents();
                }

                if (this.checkReservations(dtAllPoolAgents))
                {
                    dtAllPoolAgents = BllProxyPool.GetAllPoolAgents();
                }

                this.handleIncidentQueue(dtAllPoolAgents);
            }
            catch
            {
            }
        }
예제 #3
0
        public bool Update()
        {
            PoolDS.PoolDSDataTable dt   = BllProxyPool.GetAllPoolAgents();
            PoolDS.PoolDSRow[]     rows = (PoolDS.PoolDSRow[])dt.Select("", "agent_full_name");


            rptAgentPool.DataSource = rows;
            rptAgentPool.DataBind();



            foreach (RepeaterItem item in rptAgentPool.Items)
            {
                UcGroupRadioButton ucGroupRadioButton = (UcGroupRadioButton)item.FindControl("ucGroupRadioButton");

                if (ucGroupRadioButton != null)
                {
                    ucGroupRadioButton.Checked = false;

                    HiddenField hfAgentId = (HiddenField)item.FindControl("hfAgentId");
                    if (hfAgentId != null)
                    {
                        Int32 id = Convert.ToInt32(hfAgentId.Value);

                        if (id == this.selectedAgentId)
                        {
                            ucGroupRadioButton.Checked = true;
                        }
                    }
                }
            }


            upWork.Update();
            return(true);
        }