Example #1
0
        public JsonResult GetSearchx()
        {
            ITransaksiPOProcService svc = new TransaksiPOProcService();
            //var model = svc.GetAll();
            var model = svc.GetAll();

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public ActionResult DetailBPKB(string poNumber)
        {
            ITransaksiPOProcService svc = new TransaksiPOProcService();

            this.ViewBag.DetailProblem = new SelectList(this.GetDetailProblem(), "Key", "Value");
            var model = svc.GetDetailBPKB(poNumber);

            return(View("~/Views/Transaksi/Procurement/DetailBPKB.cshtml", model));
        }
Example #3
0
        public ActionResult GetSearch(string PONumber, string NoRangka)
        {
            ITransaksiPOProcService svc = new TransaksiPOProcService();
            //var model = svc.GetAll();
            var model = svc.GetSearch(PONumber, NoRangka);

            // return Json( new { data = model}, JsonRequestBehavior.AllowGet);
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
Example #4
0
        public ActionResult Index()
        {
            ITransaksiPOProcService svc = new TransaksiPOProcService();

            //var model = svc.GetAll();
            //var model = svc.GetAll();
            //return View("~/Views/Transaksi/Procurement/Index.cshtml", model);
            return(View("~/Views/Transaksi/Procurement/Index.cshtml"));
        }
Example #5
0
        public ActionResult DetailDelivery(string poNumber)
        {
            ITransaksiPOProcService svc = new TransaksiPOProcService();
            var model = svc.GetDetailDelivery(poNumber);

            if (model != null)
            {
                model.PriceFormated    = model.OnTheRoadPrice == null ? "" : model.OnTheRoadPrice.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.DiscountFormated = model.Discount == null ? "" : model.Discount.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.NetFormated      = model.NetPrice == null ? "" : model.NetPrice.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
            }
            return(View("~/Views/Transaksi/Procurement/DetailDelivery.cshtml", model));
        }
Example #6
0
 public ActionResult DetailBPKB(DetailBPKBPOProcViewModel model)
 {
     try
     {
         ITransaksiPOProcService svc = new TransaksiPOProcService();
         var result = svc.UpdateBPKB(model);
         this.AddNotification("Your Data Has Been Successfully Updated. ", NotificationType.SUCCESS);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         general.AddLogError("POProcurement DetailBPKB", ex.Message, ex.StackTrace);
         return(View("~/Views/Transaksi/Procurement/Index.cshtml", model));
     }
 }
Example #7
0
        public ActionResult DetailAssignment(string poNumber)
        {
            ITransaksiPOProcService svc = new TransaksiPOProcService();

            this.ViewBag.TujuanDeliveryUnit = new SelectList(this.GetTujuanDelivery(), "Key", "Value");
            var model = svc.GetDetailAssignment(poNumber);

            if (model != null)
            {
                model.PriceFormated    = model.OnTheRoadPrice == null ? "" : model.OnTheRoadPrice.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.DiscountFormated = model.Discount == null ? "" : model.Discount.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.NetFormated      = model.NetPrice == null ? "" : model.NetPrice.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
            }
            return(View("~/Views/Transaksi/Procurement/DetailAssignment.cshtml", model));
        }
Example #8
0
        public ActionResult DetailInvoice(string poNumber)
        {
            ITransaksiPOProcService svc = new TransaksiPOProcService();
            var model = svc.GetDetailInvoice(poNumber);

            if (model != null)
            {
                model.InvoiceStatus    = model.ActualInvoiceReceived != null ? "completed" : model.InvoiceNo != "" ? "in progress" : "";
                model.PriceFormated    = model.OnTheRoadPrice == null ? "" : model.OnTheRoadPrice.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.DiscountFormated = model.Discount == null ? "" : model.Discount.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.NetFormated      = model.NetPrice == null ? "" : model.NetPrice.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.DPPFormated      = model.DPPByVendor == null ? "" : model.DPPByVendor.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.PPNFormated      = model.PPNByVendor == null ? "" : model.PPNByVendor.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
                model.BBNFormated      = model.BBNPriceByVendor == null ? "" : model.BBNPriceByVendor.Value.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo("de"));
            }
            return(View("~/Views/Transaksi/Procurement/DetailInvoice.cshtml", model));
        }
Example #9
0
 public void ReviseDetailBPKB(string PONumber, string ReasonForRevise)
 {
     ITransaksiPOProcService svc = new TransaksiPOProcService();
     var model = svc.ReviseDetailBPKB(PONumber, ReasonForRevise);
 }