Пример #1
0
        public IActionResult ViewAssignedProductsInPendingSR(int SFId)
        {
            StationeryRetrievalViewModel srVModel = new StationeryRetrievalViewModel();

            //emp = JsonConvert.DeserializeObject<Employee>(HttpContext.Session.GetString("employee")) as Employee;
            //srVModel.employee = emp;
            srVModel.retrievalProducts = srfservice.GetSRPListForAssign(SFId);
            StationeryRetrieval sr = srfservice.FindBySRId(SFId);

            srVModel.sRRFPList           = srfservice.FindSRRFPList(SFId);
            srVModel.stationeryRetrieval = sr;
            srVModel.srrfList            = srfservice.GetSRRFListBySRID(SFId);
            return(Ok(srVModel));
        }
        public IActionResult ViewAssignedProductsInPendingSR([FromRoute] int id)
        {
            StationeryRetrievalViewModel srVModel = new StationeryRetrievalViewModel();

            emp = JsonConvert.DeserializeObject <Employee>(HttpContext.Session.GetString("employee")) as Employee;
            srVModel.employee          = emp;
            srVModel.retrievalProducts = srformservice.GetSRPListForAssign(id);
            StationeryRetrieval sr = srformservice.FindBySRId(id);

            srVModel.sRRFPList           = srformservice.FindSRRFPList(id);
            srVModel.stationeryRetrieval = sr;
            srVModel.srrfList            = srformservice.GetSRRFListBySRID(id);
            return(View("StationeryRetrievalFormAssignment", srVModel));
        }