Exemple #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 StationeryRetrievalForm(int Id)
        {
            emp = JsonConvert.DeserializeObject <Employee>(HttpContext.Session.GetString("employee")) as Employee;
            StationeryRetrievalViewModel SRviewModel = new StationeryRetrievalViewModel();

            SRviewModel.stationeryRetrieval   = srformservice.GetSRDetails(Id);
            SRviewModel.retrievalRequisitions = srformservice.GetRequisitionDetailBySR_RF(Id);
            SRviewModel.retrievalProducts     = srformservice.GetSRPListForAssign(Id);
            SRviewModel.employee  = emp;
            SRviewModel.sRRFPList = srformservice.FindSRRFPList(Id);
            SRviewModel.srrfList  = srformservice.FindSRRFList(Id);

            return(View("StationeryRetrievalFormView", SRviewModel));
        }