資源簡介
一個http post協議傳參 獲取并傳遞值

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Threading;
using?System.Security.Cryptography;
using?System.xml;
using?System.Net;
using?System.IO;
using?System.IO.Compression;
using?DYDJEK.Model;
using?DYDJEK.SQLServerDAL;
using?System.Collections;
using?DYDJEK.Mdoel;
namespace?DYDJEK
{
????public?partial?class?Dyxtdj?:?Form
????{
????????
????????#region?測試用信息
????????////1.01??獲取DYEK發送訂單接口地址
????????//private?string?serviceUrl1_1?=?@“http://58.83.226.244/Dy_BLOC/BLOC_TMS.aspx“;
????????private?string?serviceUrl1_1?=?@“http://119.145.9.55/GZFY_BLOC/BLOC_TMS.aspx“;
????????#endregion
????????#region?DYEK發送給CoTMS的接口參數(主動模式)
????????private?static?string?custcode?=?“8100“;?//custcode:DYEK分配給DyPd的編碼
????????private?static?string?sign_type?=?“CoTMSgzfyEK2500#Rcqvpzib5Co“;?????//sign_type:簽名方式MD5
?????????//e. 簽名約定:對通訊的業務參數(content,下文會提到)進行校驗,簽名生成公式:base64(MD5(custcode+content+keyValue))
?????????private?static?string?dyek_id?=?““;?????//dyek_id:消息通知ID(用于區分不同消息,同一運單,第一次發后退回,當分揀中心再次下發到同一合作伙伴時)
?????????private?static?string?notify_type?=?“tms_jobno_notify“;??????//notify_type:消息通知類型,固定值:tms_jobno_notify
?????????private?static?string?notify_time?=?DateTime.Now.ToString(“yyyy-MM-dd?hh:mm:ss“);
?????????private?static?string?signature?=?““;?//簽名內容
?????????//notify_time:消息通知時間:YYYY-MM-DD?hh:mm:ss
??????????//content:消息內容詳細見?業務參數??參數是伙伴商CoTMS收到的運單相關參數,即content的內容
????????#endregion
?????????private?string?providername?=?“廣州大洋百貨“;
?????????public?Thread?ReadData;?//讀取訂單進程
?????????public?Thread?getData;?//讀取數據進程
?????????public?Thread?sendData;//post數據線程
?????????private?string?postGet_order_xml?=?““;//獲取返回的運單xml
?????????private?string?get_Messagexml?=?““;//返回的結果xml到DYEK
????????#region?加載窗體
?????????public?Dyxtdj()
????????{
????????????InitializeComponent();
????????????this.Load?+=?new?EventHandler(Dyxtdj_Load);
????????}
????????void?Dyxtdj_Load(object?sender?EventArgs?e)
????????{
????????????//初始化
????????????//關閉線程安全
???????????Control.CheckForIllegalCrossThreadCalls?=?false;
???????????//綁定時間間隔
???????????bindTime();
???????????//綁定反饋類型
???????????bindType();
???????????bindfkType();
????????}
????????//綁定類型
????????private?void?bindType()
????????{
????????????cmbType.Items.Clear();
????????????ArrayList?al?=?new?ArrayList();
????????????al.Add(new?ClassHelper(“全部“?“A0“));
????????????al.Add(new?ClassHelper(“獲取訂單“?“B0“));
????????????al.Add(new?ClassHelper(“支付反饋“?“C0“));
????????????al.Add(new?ClassHelper(“入分揀中心“?“124“));
????????????al.Add(new?ClassHelper(“出分揀中心“?“126“));
????????????al.Add(new?ClassHelper(“入配送站“?“130“));
????????????al.Add(new?ClassHelper(“出配送站“?“140“));
????????????al.Add(new?ClassHelper(“分配配送員“?“160“));
????????????al.Add(new?ClassHelper(“配送成功“?“170“));
????????????al.Add(new?C
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-11-30?09:42??DYDJEk\
?????目錄???????????0??2012-12-04?11:31??DYDJEk\DYDJEK\
?????目錄???????????0??2012-12-07?08:45??DYDJEk\DYDJEK\DYDJEK\
?????文件????????2536??2012-12-04?11:32??DYDJEk\DYDJEK\DYDJEK.sln
?????文件???????51200??2012-12-08?10:34??DYDJEk\DYDJEK\DYDJEK.suo
?????目錄???????????0??2012-11-30?09:44??DYDJEk\DYDJEK\DYDJEK\bin\
?????目錄???????????0??2012-12-08?09:51??DYDJEk\DYDJEK\DYDJEK\bin\Debug\
?????文件????????1825??2012-12-08?09:51??DYDJEk\DYDJEK\DYDJEK\bin\Debug\DYDJEK.application
?????文件???????74752??2012-12-08?09:51??DYDJEk\DYDJEK\DYDJEK\bin\Debug\DYDJEK.exe
?????文件????????3578??2012-12-08?09:51??DYDJEk\DYDJEK\DYDJEK\bin\Debug\DYDJEK.exe.manifest
?????文件??????144896??2012-12-08?09:51??DYDJEk\DYDJEK\DYDJEK\bin\Debug\DYDJEK.pdb
?????文件???????11608??2012-12-06?10:40??DYDJEk\DYDJEK\DYDJEK\bin\Debug\DYDJEK.vshost.exe
?????文件?????????490??2010-03-17?22:39??DYDJEk\DYDJEK\DYDJEK\bin\Debug\DYDJEK.vshost.exe.manifest
?????文件??????196608??2012-12-03?16:57??DYDJEk\DYDJEK\DYDJEK\bin\Debug\DYEK.mdb
?????目錄???????????0??2012-12-06?09:23??DYDJEk\DYDJEK\DYDJEK\bin\Debug\Log\
?????文件????????1000??2012-12-06?09:23??DYDJEk\DYDJEK\DYDJEK\bin\Debug\Log\log_Act_20121206.txt
?????目錄???????????0??2012-11-30?09:44??DYDJEk\DYDJEK\DYDJEK\bin\Release\
?????文件????????5990??2012-12-07?08:45??DYDJEk\DYDJEK\DYDJEK\DYDJEK.csproj
?????文件?????????493??2012-12-07?08:44??DYDJEk\DYDJEK\DYDJEK\DYDJEK.csproj.user
?????文件???????45941??2012-12-07?16:03??DYDJEk\DYDJEK\DYDJEK\Dyek.cs
?????文件???????13385??2012-12-06?09:22??DYDJEk\DYDJEK\DYDJEK\Dyek.Designer.cs
?????文件????????5817??2012-12-06?09:22??DYDJEk\DYDJEK\DYDJEK\Dyek.resx
?????目錄???????????0??2012-12-03?13:50??DYDJEk\DYDJEK\DYDJEK\Mdoel\
?????文件???????20527??2012-12-03?16:44??DYDJEk\DYDJEK\DYDJEK\Mdoel\AccessDB.cs
?????文件?????????668??2012-11-30?09:47??DYDJEk\DYDJEK\DYDJEK\Mdoel\ClassHelper.cs
?????文件????????5617??2012-11-30?09:47??DYDJEk\DYDJEK\DYDJEK\Mdoel\DBHelper.cs
?????文件???????15414??2012-11-30?17:11??DYDJEk\DYDJEK\DYDJEK\Mdoel\DbHelperSQL.cs
?????文件????????1138??2012-11-30?09:47??DYDJEk\DYDJEK\DYDJEK\Mdoel\LogError.cs
?????文件????????3351??2012-12-04?11:49??DYDJEk\DYDJEK\DYDJEK\Mdoel\LogEvent.cs
?????文件????????6822??2012-11-30?09:47??DYDJEk\DYDJEK\DYDJEK\Mdoel\OrderInfo.cs
?????文件????????2640??2012-12-03?14:39??DYDJEk\DYDJEK\DYDJEK\Mdoel\Post_2.cs
............此處省略90個文件信息
評論
共有 條評論