public GenerateDisbursementController()
 {
     errorobj = new ErrorLog();
     requisitionFacade = new RequisitionFacade();
     catalogueFacade = new CatalogueFacade();
     departmentFacade = new DepartmentFacade();
     helperFacade = new HelperFacade();
 }
        public void createRequisition(string requisitionId, DateTime date, string userId, string departmentId, string rejectReason, string status, DataTable requisitionDetails)
        {
            HelperFacade helperFacade = new HelperFacade();
            codeGenerator codeG = helperFacade.getCode("requisitionId");
            int id = codeG.lastValue + 1;
            codeG.lastValue = id;
            string reqId = codeG.prefix + id;
            requisitionId = reqId;

            foreach(DataRow row in requisitionDetails.Rows)
            {
                row["requisitionId"] = reqId;
                //row["deliveredQty"] = 0;
            }

            requisitionFacade.createRequisition_PyaePyae(requisitionId, date, userId, departmentId, rejectReason, status, requisitionDetails);

            helperFacade.updateCode(codeG);
        }