// GET: Slab Detail Partial View
        public ActionResult SlabDetailPartial(QC_SlabList models)
        {
            if (TempData["SlabID"] == null)
            {
                models.SlabID = 999999;
            }
            else
            {
                models.SlabID = (UInt64)(TempData["SlabID"]);
            }

            models.OrderNo = 999999;

            if (models.SlabID.ToString().Length > 2)
            {
                var str = (models.SlabID.ToString()).Substring(0, 2);

                switch (str)
                {
                case "10":
                    models.MatType = "ERAMO";
                    break;

                case "14":
                    models.MatType = "APHRODITE";
                    break;

                case "27":
                    models.MatType = "PALISSANDRO";
                    break;

                case "30":
                    models.MatType = "BLUETTE";
                    break;

                case "40":
                    models.MatType = "DIONYSOS";
                    break;

                case "60":
                    models.MatType = "NESTOS GRAY";
                    break;

                case "62":
                    models.MatType = "ALIVERY";
                    break;

                case "70":
                    models.MatType = "NESTOS ROYAL";
                    break;

                case "74":
                    models.MatType = "ERABUS";
                    break;

                default:
                    models.MatType = "N/A";
                    break;
                }
            }

            return(RedirectToAction("SlabDetail", "QC_DefectDataInput", models));
        }
 public ActionResult Index(QC_SlabList models)
 {
     TempData["SlabID"] = models.SlabID;
     return(RedirectToAction("SlabDetailPartial", "QC_DefectDataInput", TempData["SlabID"]));
 }