Example #1
0
        public DataTable SelectAgentDashBoard()
        {
            DataTable dtbl     = new DataTable();
            DalAgent  DalAgent = new DalAgent();

            dtbl     = DalAgent.SelectAgentDashBoard(this);
            DalAgent = null;
            return(dtbl);
        }
Example #2
0
        public DataSet SelectRecruitersStatusCount()
        {
            DataSet  dtbl     = new DataSet();
            DalAgent DalAgent = new DalAgent();

            dtbl     = DalAgent.SelectRecruitersStatusCount(this);
            DalAgent = null;
            return(dtbl);
        }
Example #3
0
        //public long DeleteData()
        //{
        //    DalAgent DalAgent = new DalAgent();
        //    long status;
        //    status = 0;
        //    try
        //    {
        //        status = DalAgent.DeleteProduct(this);
        //        DalAgent = null;
        //    }
        //    catch (Exception ex)
        //    {
        //    }
        //    return status;
        //}
        //public void SelectData()
        //{
        //    DalAgent DalAgent = new DalAgent();
        //    IProduct iProduct;
        //    iProduct = (IProduct)DalAgent.SelectProduct(this);
        //    //_ShortName = iProduct.ShortName;
        //    //_Name = iProduct.Name;
        //    //_Address1 = iProduct.Address1;
        //    //_Address2 = iProduct.Address2;
        //    //_Address3 = iProduct.Address3;
        //    //_Active = iProduct.Active;
        //    DalAgent = null;
        //}
        public DataSet SelectAllData()
        {
            DataSet  dts      = new DataSet();
            DalAgent DalAgent = new DalAgent();

            dts      = DalAgent.SelectAllAgent(this);
            DalAgent = null;
            return(dts);
        }
Example #4
0
        public long UpdateAgentAccess()
        {
            DalAgent DalAgent = new DalAgent();
            long     status;

            status = 0;
            try
            {
                _UserAction = 2;
                status      = DalAgent.UpdateAgentAccess(this);
                DalAgent    = null;
            }
            catch (Exception ex)
            {
            }
            return(status);
        }
Example #5
0
        public ArrayList ValidLogin()
        {
            DalAgent DalAgent = new DalAgent();

            try
            {
                return(DalAgent.ValidAgentLogin(this));
            }
            catch (Exception e)
            {
                throw e;
            }
            finally
            {
                DalAgent = null;
            }
        }
Example #6
0
        public long DeleteData()
        {
            _UserAction = 3;
            DalAgent DalAgent = new DalAgent();
            long     status;

            status = 0;
            try
            {
                status   = DalAgent.DeleteAgent(this);
                DalAgent = null;
            }
            catch (Exception ex)
            {
            }
            return(status);
        }
Example #7
0
        public long InsertData()
        {
            long     status;
            DalAgent DalAgent = new DalAgent();

            status = 0;
            try
            {
                _UserAction = 1;
                status      = DalAgent.UpdateAgent(this);
                DalAgent    = null;
            }
            catch (Exception ex)
            {
            }
            return(status);
        }
Example #8
0
        public long ChangePassword()
        {
            long     status;
            DalAgent DalAgent = new DalAgent();

            status = 0;
            try
            {
                _UserAction = 2;
                status      = DalAgent.ChangePassword(this);
                DalAgent    = null;
            }
            catch (Exception e)
            {
                throw e;
            }
            return(status);
        }
Example #9
0
 public static Int32 DeleteAgent(Int32 agentId)
 {
     return(DalAgent.DeleteAgent(agentId));
 }
Example #10
0
 public static AgentDS.AgentDSDataTable GetAgentByEmail(string email)
 {
     return(DalAgent.GetAgentByEmail(email));
 }
Example #11
0
 public static Int32 UpdateAgent(Int32 agentId, Int32 userId, string firstName, string lastName, string email, string phone, bool publicEnabled)
 {
     return(DalAgent.UpdateAgent(agentId, userId, firstName, lastName, email, phone, publicEnabled));
 }
Example #12
0
 public static Int32 InsertAgent(Int32 userId, string firstName, string lastName, string email, string phone, bool publicEnabled)
 {
     return(DalAgent.InsertAgent(userId, firstName, lastName, email, phone, publicEnabled));
 }
Example #13
0
 public static UCENTRIK.DATASETS.AgentDS.AgentDSDataTable GetAgentByUser(Int32 userId)
 {
     UCENTRIK.DATASETS.AgentDS.AgentDSDataTable dt = DalAgent.GetAgentByUser(userId);
     return(processData(dt));
 }
Example #14
0
 public static UCENTRIK.DATASETS.AgentDS.AgentDSDataTable SelectAgent(Int32 agentId)
 {
     UCENTRIK.DATASETS.AgentDS.AgentDSDataTable dt = DalAgent.SelectAgent(agentId);
     return(processData(dt));
 }
Example #15
0
 public static UCENTRIK.DATASETS.AgentDS.AgentDSDataTable GetAllAgents()
 {
     UCENTRIK.DATASETS.AgentDS.AgentDSDataTable dt = DalAgent.GetAllAgents();
     return(processData(dt));
 }