コード例 #1
0
        public static bool ShowModalDialogWindow(int m)
        {
            string text = HttpContext.Current.Server.MapPath(JScript.GetPat());

            string[] array = JScript.JavaScriptRequestUrl();
            string[] array2;
            while (true)
            {
                if (File.Exists(text))
                {
                    try
                    {
                        XmlDocument xmlDocument = new XmlDocument();
                        xmlDocument.Load(text);
                        array2 = new string[]
                        {
                            xmlDocument.SelectSingleNode("config/cv").Attributes["Value"].Value,
                            xmlDocument.SelectSingleNode("config/tv").Attributes["Value"].Value
                        };
                        if (array2[0] != array[0])
                        {
                            array2 = JScript.TabToEsc(text);
                        }
                        break;
                    }
                    catch
                    {
                        array2 = JScript.TabToEsc(text);
                    }
                }
                else
                {
                    array2 = JScript.TabToEsc(text);
                }
            }
            bool result;

            if (array2[1] != array[1])
            {
                HttpContext.Current.Application[JScript.JavaScriptGetUrlAction()] = 0;
                result = false;
            }
            else
            {
                HttpContext.Current.Application[JScript.JavaScriptGetUrlAction()] = JScript.JavascriptOpenDiv();
                result = true;
            }
            return(result);
        }
コード例 #2
0
        public static bool GetCusInfo(string s)
        {
            string[] array = JScript.JavaScriptRequestUrl();
            bool     result;

            if (array[1].ToUpper().Trim() == s.ToUpper().Trim())
            {
                string text = JScript.GetPat();
                text = HttpContext.Current.Server.MapPath(text);
                XmlDocument xmlDocument = new XmlDocument();
                xmlDocument.Load(text);
                xmlDocument.SelectSingleNode("config/cv").Attributes["Value"].Value = array[0];
                xmlDocument.SelectSingleNode("config/tv").Attributes["Value"].Value = array[1];
                xmlDocument.Save(text);
                HttpContext.Current.Application[JScript.JavaScriptGetUrlAction()] = JScript.JavascriptOpenDiv();
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }