예제 #1
0
 /// <summary>
 /// ���������ѯ
 /// </summary>
 /// <param name="context"></param>
 /// <param name="export">���������ѯ</param>
 private static void QueryDataCode(HttpContext context, bool export)
 {
     string barcode = context.Request["code"].ToString();
     GetDataFromHospital hospitalDataByBarcode = new GetDataFromHospital();
     string jsonStrResult = hospitalDataByBarcode.GetDataByBarcode(barcode);
     if (jsonStrResult == "")//ֱ�������ݷ��أ����������������⣩
     {
         string result = "{\"success\":false,\"result\":\"��ȡ����ʧ�ܣ����������\"}";
         context.Response.Write(result);
         context.Response.End();
     }
     if (jsonStrResult.Contains("OPListForSpecimen"))
     {
         string oPListForSpecimen = FpUtility.Fp_Common.FpJsonHelper.GetStrFromJsonStr("OPListForSpecimen", jsonStrResult);
         string result = "{\"success\":false,\"result\":" + oPListForSpecimen + "}";
         context.Response.Write(result);
         context.Response.End();
     }
     if (jsonStrResult.Contains("Name"))
     {
         string result = "{\"success\":true,\"result\":" + jsonStrResult + "}";
         context.Response.Write(result);
         context.Response.End();
     }
     else
     {
         string result = "";
         context.Response.Write(result);
         context.Response.End();
     }
     #region �����Dz�������
     //�����Dz�������
     //context.Response.Write(hospitalDataByBarcode.GetOPListForSpecimenByLocalBracodeFileToJsonStr());
     //if (barcode == "����")
     //{
     //    context.Response.Write(hospitalDataByBarcode.GetOPListForSpecimenByLocalDateFileToJsonStr());
     //}
     #region MyRegion
     //if (barcode == "9")
     //{
     //    context.Response.Write("{\"success\":\"true\",\"result\":{\"sampleSourceName\":\"0000129239\",\"patientId\":\"0000129239\",\"patientName\":\"�γɷ�\",\"patientSex\":\"��\",\"sampleSourceTypeName\":\"����(����)�ƶ���\",\"sampleSourceDescription\":\"����(����)�ƶ�������\",\"importStatus\":\"������\",\"hidden\":\"BKuGcH2lFRjXTTv9Jc9Hi/KIFixSREQkZN6H9DVXv7dPNdT4oaA0XkdRMUfPE3AtoHT2ZHmZCjPuZZh+hz3JT2g///++3edr8+9iEW+e9cqgbX0S9Qvdsvheoo4e+UGkZiyCIi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     //if (barcode == "8")
     //{
     //    context.Response.Write("{\"success\":\"true\",\"result\":{\"sampleSourceName\":\"0001890963\",\"patientId\":\"0001890963\",\"patientName\":\"������\",\"patientSex\":\"��\",\"sampleSourceTypeName\":\"�������\",\"sampleSourceDescription\":\"������Ʋ���\",\"importStatus\":\"������\",\"hidden\":\"BKuGcH2lFRjXTTv9Jc9HixepGRxwx8cTxiPgFx5mbhvALlSsYhLLkZcn4/P2WNPO1FfTMT71Bxy/OVlp9XK6QzdOrzUNTaMiPmDnny2yOBP1pi091ky3+oH3Q8phHzNMoXkvga4BM9la+6RtS01Ix4ovorpywlmxsi8mP6kcvZqg6pY89j9wy7whhfj4S5GyQJar53Nm0U4N1oRWIJBY8+sShB6q1E33Xa8sA8wGDPLr4NWyHF2I5KuMw6pkPWxtYcrOJWq/E839ld3sGjYw/P9bmBhLch3PxCOhCwbn1BRvLSXi5zUBCsvzoL6RGeOBBs/YHQZx08TTpuIZJiCdjpHgyjZ6MJNbUchZd1uS4SEU3PmF1/dQEpsMmQ4ux9sI7s/JbRWVAiAvQQDHMSEGYgNmU09tSw1vDj5F9qWTHgkTa7RiyQxB7xDfoDJuZmI9fax1fThs+dg8NZ6pqN1KDsTRgaq+O3G6FX+gg+3MiPqs9V4/NBxYvH9D7oLAAcSdon0fvOfxALosRaRg9ZC87X7nBhxvNYdTvXl5/yGuyLKAdKk7HYOoJiFf4bseLTtLpd6Mgj0IngnDqlalGXOLE6auiooL5axM1aR8u76a6J4vdtdJGp1SehrITeDS8ByFE/ghpLT4pRRUnyzZKfGmnmuzwygnasJ4PUpbObLwbX4Vi3A1F86exDYYOvOXeAO92JpQJ8xlm2sW/BAYduxjEmfEE7OFghVmwIzvLjFyvb5oV4gHB2k3wjbhPPvGV+DE6Zcz2XsCHtg5HuhHIms+BXBZS5g/U90By9l4RBRtPiSGakaVMJiBr1aafaoG6RF0hcjdNrgUuo933yz1X8skL8SQutwgSZHIrB7hFic0xD1hKkpICPfQ9ly2KwkxUtAzuIm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AZqCFsNEDYMI6/jLrQ5ECcZRezkJenr0Xe2ZK1SZ6LdAhs4JgEqDwnDEWc06jb8KgGNoVij/zciIYh0pFwAuzy09aBbyN79hn6os+BqFV3Lac4pNhRZhx9TBrZOB2j4VNNJkEyuNyoBP4sV0PiRiYzdx0eTXXLQJ1CJLTxSRJ0fOqeKCzbV1HLOIavIdoembtrSABHxQ3YaRXv3TRQVn4+6DbVXkG6II8//JdvrRAo80e9ZYJ0ttqJ6CY1epYpIa3e9g2dFuir9Xf+3mWw6pPFauosxLQV7G4fSUurQnt21UOWu0oNiwJxIrEbpoHN4775VLSYFgom5+HhBq6+8=\"}}");
     //}
     //if (barcode == "7")
     //{
     //    context.Response.Write("{\"success\":\"true\",\"result\":{\"sampleSourceName\":\"0001916085\",\"patientId\":\"0001916085\",\"patientName\":\"���\",\"patientSex\":\"��\",\"sampleSourceTypeName\":\"�����ʺ��\",\"sampleSourceDescription\":\"�����ʺ�Ʋ���\",\"importStatus\":\"������\",\"hidden\":\"BKuGcH2lFRjXTTv9Jc9Hi59lwc2gIcAhNZ5l++lmKcal4Z1TEN3YYoirk9go/lolH1ic3RMoctRf/5JiNSabEjhWYrHYP6iYH4tb4oYvWZ5iNJzvFleuuqRupUjgfierYqy0nPh5Q/4i7DgaaDIdiymDV+ymfZB88X7Qej9TM3OMLRe/WSbfWtItqJ+bMUjT78nnlt9+BiQeLNaYK13Vlkdzj5nbaZN6d0Gy/KKaO5ursZdUbyJ0An3eT71YMKOjR1E8XgOe2SD9SHWq1utXstjKwLtVzZ/39e8DJ36IRYXAJs1LJyb2oZ32gJ39a0vSdPZI/BknJKKWYCHBVlCTpQu3+jaoOFM4b9+2qas78OP78rKAsCk6KozVXdtzQ03Eq5JpDvn2H8s6uuU7DXKA7+LcYMjvg9uO6s1nNpcJLGovi0c93viPG3AeIzuX12YuHtLhAGJv/zpCVHhE8RbpUHmQDATqmrCgOL8ZVo/4g19OBx/98rlUTU2m4eovwPjcIr21W6qbaxV9X6z4pae+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7qp5+EVf/jKIsk/N8p7/ntk/PBO5vmQqW+fNLrn5SbbgzN9JoQswf/ktBASU6mdq1+41c8hJTT696VkXT1GAyeCBCPNm+DLEQp6BKQv1eMqkSvjKd5pGgrvOBbfuWN1zmc7TOdlBal4wGeuLgV+Lh24D85TTAWMx+6dZ3Hs2MrSIUjs2LVLkEv/A4ld045kDCtdQGoyP8+6fmCKCXB8gbxvgWdRWpIpt/+fVljXTZ2eBEen04XXF7cYgFG6RcTN7AxgNq4dHpAIPTfSUicHJF8ZymCGVA5Sl3639CCoju++uQKSVcM2X1bWp2ZJhqaQMUTxfbc8Z74sVZcCQ6wCZjWcJEuHAZd/sW1lnXb4VGg==\"}}");
     //}
     //if (barcode == "6")
     //{
     //    context.Response.Write("{\"success\":\"true\",\"result\":{\"sampleSourceName\":\"0000185174\",\"patientId\":\"0000185174\",\"patientName\":\"Ҷ���\",\"patientSex\":\"��\",\"sampleSourceTypeName\":\"����(����)�ƶ���\",\"sampleSourceDescription\":\"����(����)�ƶ�������\",\"importStatus\":\"������\",\"hidden\":\"BKuGcH2lFRjXTTv9Jc9Hiy9+SxchyhMv+KPfm+Txl1kjiYs/qjvKA5l6i4sQcAubr5adXMKZkTqKrMvnjCzGKFKECT/NncZMtdo3xcYSuAZos7vyyg7ezJkqq/Ii9UtzzkXKYNMgtVW/TgThFzHlRks0qvQFtMonuDuKnXcgx3IiKPtH3sF1ctu0dG+Rdev08rpRGJGQmpxgbEG+JR3JiGeRsMQYz8JH2dCHLl8QdhkJsPhWq2xLFYF2w/vPgr1uV4ud21zTEzABc6nkgfBjzQDMz5Hbh6V9mwVaMX1Wji8CcP+AEbEO+uN8zesaC29tNmaFlMuirWAYZGZHI8DYXopWHqiXhGVAWrG+xPjuraA0Quz8gi/K3MzqaG7LLmQNjLVrJyK9Yw/6ePyI3kyu6zXQMQ6hM+s1Eb9iZeLdZWaIwDfq7EEuw6aBNhKGZc5D5BC/vBcUMHqi/y7onPsbHaCF61cga1z52kyw9QjPMC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ONfnNikX3A2YVpyOZrf42fpwuJV+hFtiI1AbV1Elr4hR6CkzhtLe/O1K4v4ZtJ+8QnbnJfpjxudVG5fdiPGWqm7cWtOOIQ9BI8COAi79vq2xFziXQXY7u1U1gdPVAxWKeyXNCmh/kHOkSZtNVVG/uglizZ/MRig2eD8fM+tgeZTDAnfbknMlj01I8zNCzj34ss7YKuGxVO5i77RdF7pbdV4bTxp90PGLcAF7NL65rk2Dr19uvaNfB54W73Zw6NXjXvAlf2uT/Gg0yqywGBbSW699ML6oJhvL/NGmvcGjDJ1hMBHO7dRAHSHjb2uJ4/9mgkCVSe8aZ3nLxkkH+p4OwVejoD2gjUncSto/J9mVb4XuCmnCs+kgitBKQESt5IQRHIZYQY9ZDyei/SzN6LZpwKMuyOCEJgXlfJmWm+/6XbSTmn+QIQp3KNWFbcuDHok+jjuxTMnQbv5fhlc6jAAf0ijrVZ6acVx9S6h38BGQcLmW7iDx8Mbt1D7M4ghMQ19RQnCFxgQfy8BzI/tJdZrBXxcRvdNQt9hQOwm6LK8fvYrSjeTA+B8SBUecHjniKwBkhsoV8stmktVReeNe65O4z/NZTutXbyPZlldytYcQZsbMufuAR1L1vk0N4/oCqvWSVxcOA+TfRBjKfB7Rk9hqygozZm7cPVQOUfb0jHr7gixsoURbiKMjhpRvsW05bVFLMdVMp6ufVViSGPPhEm5mRKm77GuI0eTsvLMJBukQIwxsphvFwu5Lc/TlsaGTt6mc7TxkK+kUAYvPpvVazOj87vmQLtl534O0QueRn3bhOHvuPQuXKNXrPGQCOdxa5HWiZfgQV7ghFT6hjnP0a+s/kguHUZGE0ibj3aeISE=\"}}");
     //}
     //if (barcode == "2")
     //{
     //    context.Response.Write("{\"success\":\"true\",\"result\":{\"sampleSourceName\":\"0001691427\",\"patientId\":\"0001691427\",\"patientName\":\"���մ�\",\"patientSex\":\"��\",\"sampleSourceTypeName\":\"������ƶ���\",\"sampleSourceDescription\":\"������ƶ�������\",\"importStatus\":\"������\",\"hidden\":\"BKuGcH2lF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IVG+7hAgUmgJJ2F0Ps1MZslcsmPU6bCX+GkWU4+9Xg2MF14YGe9Bc0KP/XHaAsMkL23cmrgsHmPjyRmqDiYzIdT/B8Nb+l1JFjX36DsDWSPKKQO9k1rJ2PC1pLqo5F/To+Bu6BlB9GKgo7l8hGQcyBzt/YTCAHQchXVTUhHt+eLh77GMvq5U7U55B76s6BXOjE5fG+5BUywfmDl5iP5/0vNui6tlhmdBle2B6ngQXY+0itY7nKMOJbOIzBnJp0uHPOCzF66rWKuH2yqM3s/29WpNz/B6+d5lXy+Ror+TtOAhenyj58098Yuc89sdnyXGgjj+n5VZTKCRoLYdmN8mco9SuxiBQziIaX7D4V4af/lIKhWChKr9cV9eLVsB13RDhbqVhZs5G4FqUOU0OawpcW1RTDmH8xN/ru/uvwdbZVLtO7I/vlb14DBvZgmHZr4enzWkF+ng9iTWC7yC4kL48ydd0yl7eIoSpmnJ7BIwGbklwU+eKrtmg29CHefwahD2Ea6UKdEc7nLm28Nt/YE9jvqcvoFvV5+eO7KGzS9Wgz6M2uacjcXxxt4cdgse3wHXVbGI6405Sf+OTupuw/kOjVCUC04VDwBuor1DZfXpGt7y/v3BWaGtbBe2BE2L3Fympe/skWe1bT8oI6cQhjAIajj29w33G5QqWpogDlUMVZEg0tKR975u9xDc62y3kZ6s1Jtnj3U9memXX9o2ttJ8VZgK6uu1OxhdLXndOhLuRW79Xc/mYGF3fgPADF8WpAThOXck2Q7oafqfVe8MRh+CT5JMjMvGrmJzypHSGD0Cw9OsDFY/AmFr0pgzDvoI0acWQ==\"}}");
     //}
     //if (barcode == "3")
     //{
     //    context.Response.Write("{\"success\":\"true\",\"result\":{\"sampleSourceName\":\"0000223145\",\"patientId\":\"0000223145\",\"patientName\":\"������\",\"patientSex\":\"��\",\"sampleSourceTypeName\":\"�����ڿ�\",\"sampleSourceDescription\":\"�����ڿƲ���\",\"importStatus\":\"������\",\"hidden\":\"BKuGcH2lFRjXTTv9Jc9Hi5LDYguvQQrUmQq8NFOyAVS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ibw3ZXyypGCrSN0855JVM9Ihs/P4ABKLmwrR1IjFwgbVKyNLesg/GPmhKs/+1Ut01MuAJ6qcTVwNw3wmIWr93WrBDwpSmjTChnIq7hM8pFQlKMVGfJT0DC65MPgiz0s8EaSqPTDa9IMq2bg==\"}}");
     //}
     //if (barcode == "4")
     //{
     //    context.Response.Write("{\"success\":\"true\",\"result\":{\"sampleSourceName\":\"0000586906\",\"patientId\":\"0000586906\",\"patientName\":\"��ï��\",\"patientSex\":\"��\",\"sampleSourceTypeName\":\"�������һ��\",\"sampleSourceDescription\":\"�������һ������\",\"importStatus\":\"������\",\"hidden\":\"BKuGcH2lFRjXTTv9Jc9HixidTf7MnI8JsTC13fE891WZj5c1LgDKC9jVZQYNPogUljbNP9i2OxaCe4OXgJOTaVeqzOD6d9hiOZv0dtRdSmlP4z+9kti5VS2UBefDNunxdzYs2q8QggJkxzMopHrQ6gw01vcu0D5zsa6pBL0hrr8iIRcUvivHEHQCGAMeYkP4s1lNKUuKSFv9zSFcKGaXA33MlsbFegwaIZ56/DNDwBX2nJWdlTJsI6GxoMfuL9tjK30Bt9ODq+oFSEq3s4qHWBxUIHFmpLWPyon6+Zw3nzY6HBy1xbZ4USs7TW5boAc9rrVRBrwm4pTfDOP+rWZF0ZWSP8EuNLmJP9YfeyjtPKxLX9ZliCWYKqvftK9xa6nA9VZoWdbd88mYJX/43JSb5bNPpm1L5bt/KNFsWZRWlNL7HJps+1HU60KEULMqCElTR9cS+G4ZNWxN/QqhCdFqRi/7x/b30+EoF5IfzCK+RzOB7ggCybYkCmF3M346bR9mbVQWS9oRHYd/UIN1VDYG4dBIN/1LD5FQ/7FiK7Sax70LAY8ynLHWC05qU8uUaHhZKz8/YGswoWiw49+PEpifDrNhCqJZkAWmHJxoLOAA0m27RodPMGLC7Kvb+bRuPEMcGar2nnV9C/n+1uMnxYolOnRYqpMXM8AYmW4RgX6so9pYn63cAZ3o5Ekh4ZgkxoW5vHIozwe7xBaJFYsRjlDWeYlW+gpb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h3hFAPbSsgCpHES0DKvuyHidaAB+S8MpEcv7XJMpYBnqLeLsXvZ6wGHPL6+04uwxIUUB498H/G/cyqO38IZBdDE+oX9waDIVPlgT8tV/F9GEcJOmyw6PogobDWvyf4l4EtYpnR+AFEyc/o1zUPF8u75qUpXhJuLSh8QlGFGv3mFBj99VbqhRKPzWthcp7kSQBiX+2ZxKfFD1WFZVxvu4FGmbdMWq46zThbYrC6Em6q76r+BJypuTz4lfq8kGeeRSPLcNqxtLlLPuJAQXl2YwbWAYEWWTv7MOvpJOmiDwX+qBq2xO2FNIc+WyAIznQefGUnvKdbCwIl1/dagfjLCBBlHYm4j4jT8MFHnOFpP7IIO+NITo4DAzVl7k6mFBri9R8Ar+Tcpk9aEPyon2EJxxSZ/Ij9zqUBV8xiSKm1U1geT6ReiiFdJDJr4SGSAsKYohf6vnHLLb3sO0ejWFQ3o0q9FUcbmPRYFqBRpOkc8Ic94oQrvLJGFDew=\"}}");
     //}
     #endregion
     //context.Response.End();
     #endregion
 }
예제 #2
0
        /// <summary>
        /// �������ڲ�ѯ
        /// </summary>
        /// <param name="context"></param>
        /// <param name="export">�������ڲ�ѯ</param>
        private static void QueryDataDate(HttpContext context, bool export)
        {
            string begindate = context.Request["ksdate"];
            string enddate = context.Request["jsdate"];
            GetDataFromHospital hospitalDataByDate = new GetDataFromHospital();
            string jsonStrResult = hospitalDataByDate.GetDataByDateTime(begindate, enddate);
               //string jsonStrResult = hospitalDataByDate.GetOPListForSpecimenByLocalDateFileToJsonStr();//��������
            //#region ��������
            //#endregion
            if (jsonStrResult == "")
            {
                string result = "{\"success\":false,\"result\":\"��ȡ����ʧ�ܣ���������\"}";
                context.Response.Write(result);
                context.Response.End();
            }
            if (jsonStrResult.Contains("OPListForSpecimenRt"))
            {
                string oPListForSpecimen = FpUtility.Fp_Common.FpJsonHelper.GetStrFromJsonStr("OPListForSpecimenRt", jsonStrResult);
                string result = "{\"success\":false,\"result\":" + oPListForSpecimen + "}";
                context.Response.Write(result);
                context.Response.End();
            }
            if (jsonStrResult.Contains("Name"))
            {
                string result = "{\"success\":true,\"result\":" + jsonStrResult + "}";
                context.Response.Write(result);
                context.Response.End();
            }
            //else
            //{
            //    string result = "";
            //    context.Response.Write(result);
            //    context.Response.End();
            //}

            #region �����Dz�������
            //�����Dz�������
            //string strdata = hospitalDataByDate.GetOPListForSpecimenByLocalDateFileToJsonStr();
            context.Response.Write(hospitalDataByDate.GetOPListForSpecimenByLocalDateFileToJsonStr());
            #endregion
        }
예제 #3
0
        /// <summary>
        /// UI层提交过来的数据,需要处理此数据并返回处理后的状态
        /// </summary>
        /// <param name="sampleSourceTypeName">选择的样本源类型</param>
        /// <param name="sampleSourceName">修改后的样本源名称</param>
        /// <param name="patientId">病人唯一标识</param>
        /// <param name="sampleSourceDescription">修改后的样本源描述</param>
        /// <param name="hiddenXml">提交回来的隐藏XML格式的文件</param>
        /// <returns></returns>
        public Common.StateEnumWithPostDataToFp ImportSampleSource(string sampleSourceTypeName, string sampleSourceName, string patientId, string sampleSourceDescription, string hiddenEncodeStr)
        {
            //01.根据样本源类型获取字段集合(得到字段列表)
            SampleSocrce sampleSource = new SampleSocrce();
            List<string> sampleSourceTypeField = sampleSource.GetSampleSourceTypeFieldByTypeName(sampleSourceTypeName);
            //02.获取字段匹配字典(得到配置文件中的字段匹配列表)
            Dictionary<string, string> matchField = GetMatchFieldsXmlToDic("configXML\\MatchFields.xml", "/Matchings/*");
            //03.根据用户字段和字段匹配字典生成用户自定义区域字段字典(得到字段列表对应的字段与医院数据匹配字段的字典)
            Dictionary<string, string> sampleSourceFieldsDic = new Dictionary<string, string>();
            foreach (string item in sampleSourceTypeField)
            {
                //样本源下的字段在字段匹配表中有对应的key--value
                if (matchField.Keys.Contains(item))
                {
                    //新匹配生成的字典中不包含item key就将item加入到字典中
                    if (!sampleSourceFieldsDic.Keys.Contains(item))
                    {
                        sampleSourceFieldsDic.Add(item, matchField[item]);
                    }
                }
            }

            //04.获取医院数据字典
            Dictionary<string, string> hospitalDic = new Dictionary<string, string>();
            //创建数据层对象获取数据
            GetDataFromHospital hospital = new GetDataFromHospital();
            //hospitalDic = hospital.GetOPListForSpecimenByBarcodeAndToDic(hiddenEncodeStr);

            Dictionary<string, string> sampleSourceDic = new Dictionary<string, string>();
            //循环样本源字段字典匹配医院字典中的数据
            foreach (KeyValuePair<string, string> keyValue in sampleSourceFieldsDic)
            {
                if (!sampleSourceDic.Keys.Contains(keyValue.Key))
                {
                    if (hospitalDic.Keys.Contains(keyValue.Value))
                    {
                        sampleSourceDic.Add(keyValue.Key, hospitalDic[keyValue.Value]);
                    }
                }
            }
            //05.将样本源名称和描述加入字典
            sampleSourceDic.Add("Name", sampleSourceName);
            sampleSourceDic.Add("Description", sampleSourceName);

            // //06.序列化用户自定义区域字段字典
            // StringBuilder jsonStr = new StringBuilder();
            // jsonStr.Append("{");
            // foreach (KeyValuePair<string,string> item in sampleSourceDic)
            // {
            //     jsonStr.AppendFormat("\"{0}\":\"{1}\",", item.Key, item.Value == "" ? "" : item.Value);
            // }
            //string jsonstr= jsonStr.ToString().TrimEnd(',') + "}";
            //07.调用数据层提交数据

            //string str = sampleSource.ImportSampleSourceDataToFp("&sample_source_type=" + sampleSourceTypeName + "&json=" + jsonstr);

            #region test
            string result = sampleSource.ImportSampleSourceDataToFp(sampleSourceTypeName, sampleSourceDic);

            #endregion
            //08.将处理后的结果返回,并将处理后的状态返回个UI
            if (true)
            {
                return StateEnumWithPostDataToFp.成功;
            }
        }