Esempio n. 1
0
        public IActionResult Print(string RowNumber, string fromdate)
        {
            string token = Request.HttpContext.Session.Id.ToString();
            string username = Request.HttpContext.User.Claims.FirstOrDefault().Value.ToString();           

            var Log_Select_Print = _context.Log_Select_Print.Where(w => w.opt == "PrintSummaryWIP");

            var flag = false;
            flag = LogPrint.Log_Print(RowNumber, "PrintSummaryWIP", token, username, _context);
           
            return Json(flag);
        }
        public IActionResult Print(string FCode)
        {
            IPHostEntry heserver = Dns.GetHostEntry(Dns.GetHostName());
            var         ip       = heserver.AddressList[1].ToString();

            string token    = Request.HttpContext.Session.Id.ToString();
            string username = Request.HttpContext.User.Claims.FirstOrDefault().Value.ToString();
            //var Log_Select_Print = _context.Log_Select_Print.Where(w => w.opt == "PrintProductionDailyReport2");
            var flag = false;

            flag = LogPrint.Log_Print(FCode, "PrintProductionDailyReport2", token, username, _context);
            return(Json(flag));
        }
        public IActionResult Print(string RowNumber, string fromdate, string todate)
        {
            var    correlationId = HttpContext.Connection.Id.ToString();
            string token         = Request.HttpContext.Session.Id.ToString();
            string username      = Request.HttpContext.User.Claims.FirstOrDefault().Value.ToString();
            var    flag          = false;

            flag = LogPrint.Log_Print(RowNumber, "PrintDCWIPbyShiftHistory", token, username, _context);

            //IPHostEntry heserver = Dns.GetHostEntry(Dns.GetHostName());
            //var ip = heserver.AddressList[1].ToString();
            //IPHostEntry heserver1 = Dns.GetHostEntry(Dns.GetHostName());
            //var ipAddress = token;

            return(Json(flag));
        }
        public IActionResult Print(string RowNumber)
        {
            string token    = Request.HttpContext.Session.Id.ToString();
            string username = Request.HttpContext.User.Claims.FirstOrDefault().Value.ToString();

            IPHostEntry heserver  = Dns.GetHostEntry(Dns.GetHostName());
            var         ip        = heserver.AddressList[1].ToString();
            IPHostEntry heserver1 = Dns.GetHostEntry(Dns.GetHostName());
            var         ipAddress = token;

            var Log_Select_Print = _context.Log_Select_Print.Where(w => w.opt == "PrintDCWIPbyProcessRealtime");

            var flag = false;

            flag = LogPrint.Log_Print(RowNumber, "PrintDCWIPbyProcessRealtime", token, username, _context);
            return(Json(flag));
        }
Esempio n. 5
0
        public IActionResult Print(string RowNumber, string fromdate, string todate, string Process, string FCode, string ItemCode, string Model)
        {
            string token    = Request.HttpContext.Session.Id.ToString();
            string username = Request.HttpContext.User.Claims.FirstOrDefault().Value.ToString();

            IPHostEntry heserver  = Dns.GetHostEntry(Dns.GetHostName());
            var         ip        = heserver.AddressList[1].ToString();
            IPHostEntry heserver1 = Dns.GetHostEntry(Dns.GetHostName());
            var         ipAddress = token;

            var Log_Select_Print = _context.Log_Select_Print.Where(w => w.opt == "PrintWipMovement");

            var flag = false;

            flag = LogPrint.Log_Print(RowNumber, "PrintWipMovement", token, username, _context);
            //return View(pdr);
            return(Json(flag));
        }