Exemple #1
0
        public ActionResult UpdUser(string userName, string oldPwd, string newPwd)
        {
            //ServiceReference1.MesWebSoapClient mws = new ServiceReference1.MesWebSoapClient();
            string XmlInfo = InteefaceHelp.getXmlInfo("82", "<document><CustomerNo>" + userName + "</CustomerNo ><CusPassword>" + oldPwd + "</CusPassword><NewCusPassword>" + newPwd + "</NewCusPassword></document>");

            return(Content(JsonHelper.XmlTojson(XmlInfo)));
        }
Exemple #2
0
        public ActionResult CheckUser(string userName, string pwd, string yzm)
        {
            string code    = Session["code"].ToString();
            string XmlInfo = "";

            if (!code.Equals(yzm))
            {
                XmlInfo = "<document><ReturnValue>0</ReturnValue><ReturnMessage>验证码错误!</ReturnMessage></document>";
            }
            else
            {
                XmlInfo = InteefaceHelp.getXmlInfo("81", "<document><CustomerNo>" + userName + "</CustomerNo ><CusPassword>" + pwd + "</CusPassword></document>");
            }
            return(Content(JsonHelper.XmlTojson(XmlInfo)));
        }
Exemple #3
0
        // GET: Main
        public ActionResult Index(Rows rowsinfo)
        {
            if (rowsinfo.RowNo != "1")
            {
                //return Content("<script>window.location.href='/login/Index'</script>");
                return(Redirect("/Login/Index"));
            }

            ViewBag.userInfo = rowsinfo;  //客户信息
            string XmlInfo = InteefaceHelp.getXmlInfo("83", "<document><CustomerNo>" + rowsinfo.CustomerNo + "</CustomerNo ></document>");

            ViewBag.jsonOrder = JsonHelper.XmlTojson(XmlInfo);  //订单数据



            return(View());
        }
Exemple #4
0
        /// <summary>
        /// 获取订单详情
        /// </summary>
        /// <param name="orderID"></param>
        /// <returns></returns>
        public ActionResult SelectOrder(string orderID)
        {
            //ServiceReference1.MesWebSoapClient s = new ServiceReference1.MesWebSoapClient();
            string XmlInfo = InteefaceHelp.getXmlInfo("84", "<document><SoCode>" + orderID + "</SoCode ></document>");
            //解析xml
            var doc = new XmlDocument();

            doc.LoadXml(XmlInfo);

            List <Hashtable> list = InteefaceHelp.AnalyXmlAttribute("/document/Data/Row", doc);

            if (list.Count > 0)
            {
                ViewBag.hs = list;
            }
            else
            {
                ViewBag.hs = null;
            }
            //出货情况及物流单号
            string goodsDeliver = InteefaceHelp.getXmlInfo("86", "<document><SoCode>" + orderID + "</SoCode ></document>");
            var    doc2         = new XmlDocument();

            doc2.LoadXml(goodsDeliver);
            List <Hashtable> list2 = InteefaceHelp.AnalyXmlAttribute("/document/Data/Row", doc2);

            if (list2.Count > 0)
            {
                ViewBag.list2 = list2;
            }
            else
            {
                ViewBag.list2 = null;
            }
            return(PartialView("_SelectOrder"));
        }
Exemple #5
0
        /// <summary>
        /// 资料信息
        /// </summary>
        /// <param name="moCode">生产单号</param>
        /// <returns></returns>
        public ActionResult downFileInfo(string moCode)
        {
            string XmlInfo = InteefaceHelp.getXmlInfo("87", "<document><MoCode>" + moCode + "</MoCode ></document>");

            return(Content(JsonHelper.XmlTojson(XmlInfo)));
        }