Example #1
0
        public Retrieval GenRetrievalForm(long date)
        {
            int clerkid = (int)HttpContext.Session.GetInt32("Id");
            List <Requisition> listreq = scservice.GetAllReqFormByDateAndStatus(date, clerkid, Status.RequsitionStatus.confirmed); //retrieve requisition where status is confirmed

            if (listreq == null || listreq.Count == 0)
            {
                throw new Exception("Sorry, you currently don't have any confirmed requisition on this provided date that requires retrieval");
            }
            Retrieval r1 = scservice.GenRetrievalForm(date, clerkid, listreq);

            return(r1);
        }