Ejemplo n.º 1
0
        public ActionResult Details(string mandt, string sysid,
                                    string CapDo, string GiaTriCapDo,
                                    string CongDoan, DateTime Date)
        {
            List <SanLuongNgay> SL_Details = new List <SanLuongNgay>();
            CommonModel         cm         = new CommonModel();

            ViewBag.CapDoCha = GiaTriCapDo;
            ViewBag.Ngay     = Date.ToShortDateString();
            if (CapDo == "NGANH")
            {
                ViewBag.CapDoCon = "Khu Vực";
                SL_Details       = cm.GetDetailNganh(mandt, sysid, GiaTriCapDo, Date, CongDoan);
            }
            else if (CapDo == "KHVUC")
            {
                ViewBag.CapDoCon = "Work Center";
                SL_Details       = cm.GetDetailKhuVuc(mandt, sysid, GiaTriCapDo, Date, CongDoan);
            }
            else
            {
                ViewBag.CapDoCon = "Chuyền";
                SL_Details       = cm.GetDetailWrkct(mandt, sysid, GiaTriCapDo, Date, CongDoan);
            }
            ViewData["SLDetails"] = SL_Details;
            return(View("Details"));
        }