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)); }
public IActionResult StationeryRetrievalForm2(int SFId) { StationeryRetrievalViewModel SRviewModel = new StationeryRetrievalViewModel(); //emp = JsonConvert.DeserializeObject<Employee>(HttpContext.Session.GetString("employee")) as Employee; //SR details_clerkid,date,...to show in SR details page //by htp StationeryRetrieval sr = srfservice.GetSRDetails(SFId); SRviewModel.stationeryRetrieval = sr; //data for requisition form summary in SR details //by htp List <RequisitionForm> rfList = srfservice.GetRequisitionDetailBySR_RF(SFId); SRviewModel.retrievalRequisitions = rfList; //data for warehouse stock preview table(all products) in SR details //by htp List <StationeryRetrievalProduct> srpList = srfservice.GetSRDetailProducts(SFId); SRviewModel.retrievalProducts = srpList; //SRviewModel.employee = emp; SRviewModel.srrfList = srfservice.GetSRRFListBySRID(SFId); return(Ok(SRviewModel)); }