Exemplo n.º 1
0
        public List <JobMarketingListBO> getJobMarketingList()
        {
            DataSet                   objDataSet             = null;
            JobMarketingListBO        objJobMarketingListBO  = null;
            List <JobMarketingListBO> objJobMarketingBOList  = new List <JobMarketingListBO>();
            List <ProcParameterBO>    objProcParameterBOList = new List <ProcParameterBO>();

            try
            {
                objDataSet = objDBAccess.execuitDataSet(ProcGetJobMarketingList, ref objProcParameterBOList);
                if (objDataSet != null && objDataSet.Tables.Count > 0)
                {
                    for (int i = 0; i < objDataSet.Tables[0].Rows.Count; i++)
                    {
                        objJobMarketingListBO                   = new JobMarketingListBO();
                        objJobMarketingListBO.JobName           = objDataSet.Tables[0].Rows[i][0].ToString();
                        objJobMarketingListBO.JobDescription    = objDataSet.Tables[0].Rows[i][1].ToString();
                        objJobMarketingListBO.NoOfPositions     = Convert.ToInt32(objDataSet.Tables[0].Rows[i][2].ToString());
                        objJobMarketingListBO.JobLocation       = objDataSet.Tables[0].Rows[i][3].ToString();
                        objJobMarketingListBO.Status            = objDataSet.Tables[0].Rows[i][4].ToString();
                        objJobMarketingListBO.MarketingStatus   = objDataSet.Tables[0].Rows[i][5].ToString();
                        objJobMarketingListBO.MarketedBy        = Convert.ToInt32(objDataSet.Tables[0].Rows[i][6].ToString());
                        objJobMarketingListBO.MarketingComments = objDataSet.Tables[0].Rows[i][7].ToString();
                        objJobMarketingBOList.Add(objJobMarketingListBO);
                    }
                }
            }
            catch (Exception ex)
            {
                ExceptionError.Error_Log(ex, "getJobMarketingList");
                throw ex;
            }
            return(objJobMarketingBOList);
        }
Exemplo n.º 2
0
        // GET: JobMarketingList
        public ActionResult Index()
        {
            ViewBag.MainTitle = "Job Marketing List";
            ViewBag.Title     = "Job Marketing";
            ViewBag.Icon      = "fa fa-user";
            JobMarketingListBO objJobMarketingListBO = new JobMarketingListBO();

            return(View(objJobMarketingListBO));
        }