コード例 #1
0
        public IActionResult GetQuoteFollowUp(string QRFID)
        {
            try
            {
                FollowUpViewModel model    = new FollowUpViewModel();
                FollowUpGetRes    response = new FollowUpGetRes();
                FollowUpGetReq    request  = new FollowUpGetReq();
                request.QRFID  = QRFID;
                response       = salesProviders.GetFollowUpForQRF(request, token).Result;
                model.FollowUp = response.FollowUp;

                FollowUpMasterGetRes masterResponse = new FollowUpMasterGetRes();
                request.CompanyId = ckUserCompanyId;
                masterResponse    = salesProviders.GetFollowUpMasterData(request, token).Result;

                model.FollowUpTaskList = masterResponse.FollowUpTaskList;
                model.InternalUserList = masterResponse.InternalUserList;
                model.ExternalUserList = masterResponse.ExternalUserList;

                model.InternalUserList.ForEach(a => { a.FIRSTNAME = a.CommonTitle + " " + a.FIRSTNAME + " " + a.LastNAME; a.Contact_Id = a.Contact_Id + "|" + a.MAIL; });
                model.ExternalUserList.ForEach(a => { a.FIRSTNAME = a.CommonTitle + " " + a.FIRSTNAME + " " + a.LastNAME; a.Contact_Id = a.Contact_Id + "|" + a.MAIL; });

                model.FollowUpDate = DateTime.Now;
                model.QRFID        = QRFID;

                return(PartialView("_FollowUp", model));
            }
            catch (Exception ex)
            {
                throw;
                return(View());
            }
        }
コード例 #2
0
        public async Task <FollowUpGetRes> GetFollowUpForQRF(FollowUpGetReq followUpGetReq, string ticket)
        {
            FollowUpGetRes followUpGetRes = new FollowUpGetRes();

            followUpGetRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceFollowUp:GetFollowUpForQRF"), followUpGetReq, typeof(FollowUpGetRes), ticket);

            return(followUpGetRes);
        }