예제 #1
0
        public async Task <IHttpActionResult> Get(int id)
        {
            try
            {
                var req = await Task.Run(() => reqService.GetRequisitionById(id, loadDocs: false));

                return(Ok(req));
            }
            catch (Exception ex)
            {
                return(new System.Web.Http.Results.ExceptionResult(ex, this));
            }
        }
예제 #2
0
        public RequisitionModel(int?id) : this()
        {
            if (id != null)
            {
                var RequisitionEntry = _requisitionService.GetRequisitionById(id.Value);
                Id                  = RequisitionEntry.Id;
                Products            = RequisitionEntry.Products;
                ProductsId          = RequisitionEntry.ProductsId;
                RequisitionQuantity = RequisitionEntry.RequisitionQuantity;
                RequisitionNo       = RequisitionEntry.RequisitionNo;
                Status              = RequisitionEntry.Status;

                CreatedBy     = RequisitionEntry.CreatedBy;
                CreatedByUser = RequisitionEntry.CreatedByUser;
                UpdatedAt     = RequisitionEntry.UpdatedAt;
                UpdatedBy     = RequisitionEntry.UpdatedBy;
                UpdatedByUser = RequisitionEntry.UpdatedByUser;
                Status        = RequisitionEntry.Status;
            }
        }
        //Author: Wang Wang Wang
        public ActionResult UpdateEmployeeRequisition(int id)
        {
            Requisition requisition = reqService.GetRequisitionById(id);

            return(View("~/Views/Department/Representative/UpdateEmployeeRequisition.cshtml", requisition));
        }
예제 #4
0
        public ActionResult UpdateRequisitionDetails(int id_requisition)
        {
            Requisition requisition = reqService.GetRequisitionById(id_requisition);

            return(View("~/Views/Store/Clerk/UpdateRequisitionDetails.cshtml", requisition));
        }