示例#1
0
 public string SubmitFeedBack(string queryParam)
 {
     try
     {
         // TPOrderQueryService.TPOrderQueryClient tpqc = new TPOrderQueryService.TPOrderQueryClient();
         TPStateFeedbackService.TPStateFeedbackClient tpsfbc = new TPStateFeedbackService.TPStateFeedbackClient();
         result = tpsfbc.thematicProductStateFeedback(queryParam);
         return(result);
     }
     catch (System.ServiceModel.EndpointNotFoundException e)
     {
         System.Windows.Forms.MessageBox.Show("请检查网络情况!");
         return(null);
     }
 }
示例#2
0
        public string FeedBackThematicOrder(ThematicOrder to, string status)
        {
            try{
                string paramXml = "<?xml version='1.0' encoding='UTF-8'?><root><condition>";
                paramXml += "<orderid>" + to.Orderid + "</orderid>";
                paramXml += "<username>" + "生态环境系统" + "</username>";
                paramXml += "<content>" + status + "</content>";
                //paramXml += "<content>" + "数据准备中" + "</content>";
                paramXml += "<time>" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "</time>";
                paramXml += "</condition></root>";

                TPStateFeedbackService.TPStateFeedbackClient tpsfb = new TPStateFeedbackService.TPStateFeedbackClient();
                result = tpsfb.thematicProductStateFeedback(paramXml);
                return(result);
            }
            catch (System.ServiceModel.EndpointNotFoundException e)
            {
                System.Windows.Forms.MessageBox.Show("请检查网络情况!");
                return(null);
            }
        }