public JsonResult GetDataFromDCC(string productName)
        {
            var result = LMCC.getData(productName);

            Dictionary <string, object> response = new Dictionary <string, object>();

            try
            {
                if (result.Rows.Count > 0)
                {
                    foreach (DataRow dr in result.Rows)
                    {
                        string partNo               = dr["PartNo"].ToString();
                        string casName              = dr["CASName"].ToString();
                        string casLink              = dr["CASLink"].ToString();
                        string specs                = dr["Specs"].ToString();
                        string packageType          = dr["PackageType"].ToString();
                        string markingInstructionID = dr["MarkingInstructionID"].ToString();
                        string pkgTemp              = dr["PkgTemp"].ToString();
                        string vlmName              = dr["VLMName"].ToString();
                        response.Add("PartNo", partNo);
                        response.Add("CASName", casName);
                        response.Add("CASLink", casLink);
                        response.Add("Specs", specs);
                        response.Add("PackageType", packageType);
                        response.Add("MarkingInstructionID", markingInstructionID);
                        response.Add("PkgTemp", pkgTemp);
                        response.Add("VLMName", vlmName);
                        response.Add("Error", false);
                    }
                }
                else
                {
                    response = new Dictionary <string, object>();
                    response.Add("Error", true);
                }
            }
            catch
            {
                response = new Dictionary <string, object>();
                response.Add("Error", true);
            }

            return(Json(response, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetLineText(string MarkingInstructionID, string PartNum, string LotNo, string PkgTemp)
        {
            var result = LMCC.getLineText(MarkingInstructionID, PartNum, LotNo, PkgTemp);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetLineNumber(string MarkingInstructionID)
        {
            var result = LMCC.getNumLine(MarkingInstructionID);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }