public ActionResult VyhledaniSC(int RevizeSCId)
        {
            ProvedeniVymenyLahve pvl = new ProvedeniVymenyLahve();

            pvl = ProvedeniVymenyLahve.Main(RevizeSCId);
            return(View(pvl));
        }
        public ActionResult VyhledaniSCImport(int RevizeSCId, string SC)
        {
            ProvedeniVymenyLahve pvl = new ProvedeniVymenyLahve();

            pvl = ProvedeniVymenyLahve.Main(RevizeSCId);
            pvl.SAPSerioveCisloList = SAPSerioveCislo.LoadSCFromSAP(SC, 1);
            return(View(pvl));
        }
        public ActionResult ImportSCtoServis(int RevizeSCId, int ArticlId, string SerioveCislo, DateTime DatumVyroby, DateTime DatumDodani)
        {
            ProvedeniVymenyLahve pvl = new ProvedeniVymenyLahve();

            pvl = ProvedeniVymenyLahve.Main(RevizeSCId);
            ProvedeniVymenyLahve.VymenaLahve(RevizeSCId, ArticlId, SerioveCislo, DatumVyroby, DatumDodani);


            return(RedirectToAction("Details", "Revize", new { id = pvl.Revize.Id }));
        }