private void GetPositionAppByID()
        {
            List <Performance.Error>     errors = new List <Performance.Error>();
            PositionApplicationViewModel pavm   = null;

            try
            {
                PositionApplication pa =
                    InstanceFactory.CreatePositionApplicationFacade().GetPositionApplicationByPKID(
                        Convert.ToInt32(_Context.Request.Params["Pkid"]));
                pavm = new PositionApplicationViewModel(pa);
            }
            catch (Exception e)
            {
                errors.Add(new Performance.Error("lblMessage", e.Message));
            }
            _ResponseString = string.Format("{{\"item\":{0},\"error\":{1}}}", JsonConvert.SerializeObject(pavm),
                                            JsonConvert.SerializeObject(errors));
        }
        private void SearchMyPositionApp()
        {
            List <Performance.Error>            errors = new List <Performance.Error>();
            List <PositionApplicationViewModel> positionViewModelUIs = new List <PositionApplicationViewModel>();

            try
            {
                List <PositionApplication> PositionApplications =
                    InstanceFactory.CreatePositionApplicationFacade().GetPositionApplicationByAccountID(_Operator.Id);
                positionViewModelUIs = PositionApplicationViewModel.Turn(PositionApplications);
            }
            catch (Exception e)
            {
                errors.Add(new Performance.Error("lblMessage", e.Message));
            }
            _ResponseString =
                string.Format("{{\"itemList\":{0},\"error\":{1}}}", JsonConvert.SerializeObject(positionViewModelUIs),
                              JsonConvert.SerializeObject(errors));
        }
        private void GetPositionAppHistoryByID()
        {
            List <Performance.Error>            errors = new List <Performance.Error>();
            List <PositionApplicationViewModel> positionViewFlowModelUIs = new List <PositionApplicationViewModel>();

            try
            {
                List <PositionApplicationFlow> flow =
                    InstanceFactory.CreatePositionApplicationFacade().GetPositionApplicationFlowByPositionApplicationID(
                        Convert.ToInt32(_Context.Request.Params["Pkid"]));
                positionViewFlowModelUIs = PositionApplicationViewModel.Turn(flow);
            }
            catch (Exception e)
            {
                errors.Add(new Performance.Error("lblMessage", e.Message));
            }
            _ResponseString =
                string.Format("{{\"itemList\":{0},\"error\":{1}}}", JsonConvert.SerializeObject(positionViewFlowModelUIs),
                              JsonConvert.SerializeObject(errors));
        }
        private void SearchPositionApped()
        {
            List <Performance.Error>            errors = new List <Performance.Error>();
            List <PositionApplicationViewModel> positionViewModelUIs = new List <PositionApplicationViewModel>();

            try
            {
                List <PositionApplication> PositionApplications =
                    InstanceFactory.CreatePositionApplicationFacade().GetPositionApplicationConfirmHistoryByOperatorID(
                        _Operator.Id, _Context.Request.Params["ApplicantName"]);
                positionViewModelUIs = PositionApplicationViewModel.Turn(PositionApplications);
            }
            catch (Exception e)
            {
                errors.Add(new Performance.Error("lblMessage", e.Message));
            }
            _ResponseString =
                string.Format("{{\"itemList\":{0},\"error\":{1}}}", JsonConvert.SerializeObject(positionViewModelUIs),
                              JsonConvert.SerializeObject(errors));
        }
        private void SearchPositionApp()
        {
            List <Performance.Error>            errors = new List <Performance.Error>();
            List <PositionApplicationViewModel> positionViewModelUIs = new List <PositionApplicationViewModel>();

            try
            {
                List <PositionApplication> PositionApplications =
                    InstanceFactory.CreatePositionApplicationFacade().GetPositionApplicationByCondition(
                        _Context.Request.Params["Name"], _Context.Request.Params["ApplicantName"],
                        Convert.ToInt32(_Context.Request.Params["IsPublish"]),
                        Convert.ToInt32(_Context.Request.Params["Status"]));
                positionViewModelUIs = PositionApplicationViewModel.Turn(PositionApplications);
            }
            catch (Exception e)
            {
                errors.Add(new Performance.Error("lblMessage", e.Message));
            }
            _ResponseString =
                string.Format("{{\"itemList\":{0},\"error\":{1}}}", JsonConvert.SerializeObject(positionViewModelUIs),
                              JsonConvert.SerializeObject(errors));
        }