private void btnOK_Click(object sender, EventArgs e)
 {
     if (this.date_ksrq.Value > this.date_jsrq.Value)
     {
         MessageManager.ShowMsgBox("INP-441203");
     }
     else if (this.CheckValid())
     {
         base.Close();
         XmlDocument document = AllocateCommon.CreateAllocateQueryInput(this.queryParams);
         if (this.logFlag)
         {
             document.Save(this.logPath + "AllocateQueryInput.xml");
         }
         string xml = string.Empty;
         if (HttpsSender.SendMsg("0040", document.InnerXml, ref xml) != 0)
         {
             MessageManager.ShowMsgBox(xml);
         }
         else
         {
             XmlDocument doc = new XmlDocument();
             doc.LoadXml(xml);
             if (this.logFlag)
             {
                 doc.Save(this.logPath + @"\AllocateQueryOutput.xml");
             }
             string msg = string.Empty;
             if (!AllocateCommon.ParseAllocateQueryOutput(doc, out msg, out this.outList))
             {
                 MessageManager.ShowMsgBox(msg);
             }
             else if (this.outList.Count == 0)
             {
                 MessageManager.ShowMsgBox("INP-441207", new string[] { "查询", "分配" });
             }
             else
             {
                 new AllocateQueryList(this.outList).ShowDialog();
             }
         }
     }
 }
        protected override object[] doService(object[] param)
        {
            List <string> queryParams = new List <string>();

            foreach (object obj2 in param)
            {
                queryParams.Add(obj2.ToString());
            }
            XmlDocument document = AllocateCommon.CreateAllocateQueryInput(queryParams);
            int         num      = 0;
            string      xml      = string.Empty;

            num = HttpsSender.SendMsg("0040", document.InnerXml, ref xml);
            if (num != 0)
            {
                XmlDocument    document2 = new XmlDocument();
                XmlDeclaration newChild  = document2.CreateXmlDeclaration("1.0", "GBK", null);
                document2.PreserveWhitespace = false;
                document2.AppendChild(newChild);
                XmlElement element = document2.CreateElement("FPXT");
                document2.AppendChild(element);
                XmlElement element2 = document2.CreateElement("OUTPUT");
                element.AppendChild(element2);
                XmlElement element3 = document2.CreateElement("CODE");
                element3.InnerText = num.ToString();
                element2.AppendChild(element3);
                XmlElement element4 = document2.CreateElement("MESS");
                element4.InnerText = xml;
                element2.AppendChild(element4);
                document2.PreserveWhitespace = true;
                return(new object[] { document2.InnerXml });
            }
            XmlDocument document3 = new XmlDocument();

            document3.LoadXml(xml);
            return(new object[] { document3.InnerXml });
        }