//验证订单
        public string CheckOrderInfoEx(System.Net.CookieContainer cookie)
        {
            var webrequest = new WebRequestHelper(Properties.Resources.otn_checkOrderInfo,
                                                    Properties.Resources.otn_initDc, "POST", _postdata, cookie);

            return webrequest.SendDataToServer();
        }
 //获取列车到站信息
 public void GetArriveStationInfo(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_czxxQueryByTrainNo + QueryString, Properties.Resources.otn_leftTicket_init, "GET", "", cookie);
     webHelper.SendDataToServer((str) =>
     {
         callback(str);
     });
 }
 //取消订单
 public void CancelNotCompleteOrder(Action<string> callback, System.Net.CookieContainer cookie)
 {
     WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.otn_orderAction_cancelMyOrderNotComplete, Properties.Resources.otn_orderAction_cancelMyOrderNotCompleteREF, "POST", PostData, cookie);
     webHelper.SendDataToServer((str) =>
     {
         callback(str);
     });
 }
 /**********************************************************更新********************************************************/
 public void InitModifyPassenger(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_passengersEdit, Properties.Resources.otn_passengersShow, "POST", PostData, cookie);
     webHelper.SendDataToServer((str) =>
     {
         callback(str);
     });
 }
 //已完成订单查询
 public void SelectOrder(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_queryMyOrder, Properties.Resources.otn_queryOrderInit, "POST", PostData, cookie);
     webHelper.SendDataToServer((str) =>
     {
         if(str!="")
             callback(str);
     });
 }
 //查询余票信息(不可预订)
 public void GetLeftTicketsEx(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_lcxxcxQuery + this._querystring, Properties.Resources.otn_lcxxcxInit, "GET", "", cookie);
     webHelper.SendDataToServer((str) =>
     {
         if (str != "")
             callback(str);
     });
 }
 //获取登录验证码
 public void GetLoginRandCodeImg(Action<Image> callback)
 {
     //WebRequestHelper webrequest = new WebRequestHelper(Properties.Resources.passCodeNewAction, "", "GET", "", cookieContainer);
     var webrequest = new WebRequestHelper(Properties.Resources.otn_passCodeAction_sjrand, Properties.Resources.otn_loginAction_init, "GET", "", cookieContainer);
     webrequest.GetBitMap((bit) =>
     {
         callback(bit);
     });
 }
 public void CheckRandCodeAsync(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_checkRandCodeAsync, Properties.Resources.otn_leftTicket_init, "POST", this._postdata, cookie);
     webHelper.SendDataToServer((str) =>
     {
         if (str != "")
             callback(str);
     });
 }
 //获取联系人信息
 public void GetPassengersAllJson(Action<string> callback,System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_GetPassengerDTOs, Properties.Resources.otn_initDc, "POST", this._postdata, cookie);
     //var webHelper = new WebRequestHelper(Properties.Resources.otn_GetPassengerDTOs, Properties.Resources.otn_leftTicket_init, "POST", "", cookie);
     webHelper.SendDataToServer((str) => {
         if(str!="")
             callback(str);
     });
 }
 //开始占座
 public void BeginGetSeat(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_queryOrderWaitTime + this._querystring, Properties.Resources.otn_initDc, "GET", "", cookie);
     webHelper.SendDataToServer((str) =>
     {
         if(str!="")
             callback(str);
     });
 }
 /**************************************************************更新******************************************************************/
 //加载未完成订单
 public void QueryMyOrderNoComplete(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_queryMyOrderNoComplete, Properties.Resources.otn_initNoComplete, "POST", "_json_att=", cookie);
     webHelper.SendDataToServer((str) =>
     {
         if (str != "")
             callback(str);
     });
 }
 //Action<string,CookieContainer> callback
 //登录
 public Hashtable BeginLogin()
 {
     //WebRequestHelper webrequest = new WebRequestHelper(Properties.Resources.loginAction_login, Properties.Resources.loginAction_init, "POST", this._postdata, cookieContainer);
     //webrequest.SendDataToServer((str,cookie) => {
     //    if(str!="")
     //        callback(str,cookie);
     //});
     var webrequest = new WebRequestHelper(Properties.Resources.otn_loginAction_login, Properties.Resources.otn_loginAction_init, "POST", this._postdata, cookieContainer);
     return webrequest.SendDataToServerHash();
 }
 public void GetLeftTicketsEx( System.Net.CookieContainer cookie)
 {
     //+" "+DateTime.Now.Subtract(Convert.ToDateTime("1970-01-01")).Ticks.ToString().Substring(0,13)
     var webHelper = new WebRequestHelper("http://kyfw.12306.cn/otn/dynamicJs/queryJs", Properties.Resources.otn_leftTicket_init, "GET", "", cookie);
     webHelper.SendDataToServer((str) =>
     {
         //if (str != "")
         //    callback(str);
     });
 }
 //验证订单
 public void CheckOrderInfo(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webrequest = new WebRequestHelper(Properties.Resources.otn_checkOrderInfo,
                                             Properties.Resources.otn_initDc, "POST", _postdata, cookie);
     webrequest.SendDataToServer((str) =>
     {
         if(str!="")
             callback(str);
     });
 }
 //查询余票信息
 public void GetLeftTickets(Action<string> callback, Action<object> callbackExpires, System.Net.CookieContainer cookie)
 {
     //+" "+DateTime.Now.Subtract(Convert.ToDateTime("1970-01-01")).Ticks.ToString().Substring(0,13)
     var webHelper = new WebRequestHelper(Properties.Resources.otn_leftTicket_Query + this._querystring, Properties.Resources.otn_leftTicket_init, "GET", "", cookie);
     webHelper.SendDataToServer((str, expires) =>
     {
         if(str!="")
             callback(str);
         if (expires != null && expires != "")
         {
             callbackExpires(expires);
         }
     });
 }
 /****************************************************更新******************************************************/
 //进入预定页
 public void EnterSubmitPage(Action<string> callback, System.Net.CookieContainer cookie, string referer = "")
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_submitOrderRequest, Properties.Resources.otn_leftTicket_init,
             "POST", this._postdata, cookie);
     webHelper.SendDataToServer((str) =>
     {
         if(str!="")
             callback(str);
     }, false, referer);
 }
 //获取服务器时间
 public void GetServerTime(Action<object> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_indexInit, "", "GET", "", cookie);
     webHelper.GetTime((str) =>
     {
         if(str.ToString()!="")
             callback(str);
     });
 }
 //获取Token
 public void GetTokenFromSubmitPageSync(Action<string> callback,System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_initDc, Properties.Resources.otn_leftTicket_init, "POST", "_json_att=", cookie);
     webHelper.SendDataToServer((str) =>
     {
         callback(str);
     });
 }
 //获取订单验证码
 public void GetAsyncOrderRandCodeImg(Action<Image> callback, System.Net.CookieContainer cookie)
 {
     var webrequest = new WebRequestHelper(Properties.Resources.otn_getPassCodeNewAsync+this.QueryString, Properties.Resources.otn_leftTicket_init, "GET", "", cookie);
     webrequest.GetBitMap((bit) =>
     {
         callback(bit);
     },true);
 }
 /***********************************************************更新******************************************************/
 public void RedirectMy12306(Action<object> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_initMy12306, Properties.Resources.otn_loginAction_init, "GET", "", cookie);
     webHelper.SendDataToServer((str) =>
     {
         if (str.ToString() != "")
             callback(str);
     });
 }
 //获取订单验证码
 public void GetOrderRandCodeImg(Action<Image> callback, System.Net.CookieContainer cookie)
 {
     var webrequest = new WebRequestHelper(Properties.Resources.otn_getPassCodeNew, Properties.Resources.otn_initDc, "GET", "", cookie);
     webrequest.GetBitMap((bit) =>
     {
         callback(bit);
     });
 }
 //确认队列
 public void ConfirmSingleForQueue(Action<string> callback, System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_confirmSingleForQueue, Properties.Resources.otn_initDc,
             "POST", this._postdata, cookie);
     webHelper.SendDataToServer((str) =>
     {
         if (str != "")
             callback(str);
     });
 }
 //获取Token
 public string GetTokenFromSubmitPage(System.Net.CookieContainer cookie)
 {
     var webHelper = new WebRequestHelper(Properties.Resources.otn_initDc, Properties.Resources.otn_leftTicket_init, "POST", "_json_att=", cookie);
     return webHelper.SendDataToServer();
 }