private void BindData(string orderId) { var expressInfo = OrderProvider.GetExpressTrackInfo(orderId); if (expressInfo != null) { lblReceiver.Text = expressInfo.ReceivingName ?? string.Empty; lblReceiverPhone.Text = expressInfo.ReceivingPhone ?? string.Empty; lblCarriers.Text = expressInfo.ExpressCompanyName ?? string.Empty; lblWaybillNumber.Text = expressInfo.ExpressNum ?? string.Empty; lblOrderStatus.CssClass = expressInfo.Status.ToString().ToLower(); if (expressInfo.TotalPackageUnits != null) { string packUnitsTxt = GetLocalResourceString("TotalNPackage"); lblPackageUnit.Text = string.Format(packUnitsTxt, expressInfo.TotalPackageUnits.Value); } if (!string.IsNullOrWhiteSpace(expressInfo.ExpressNum)) { var delivertType = expressInfo.OrderDeliveryType != null ? expressInfo.OrderDeliveryType.Trim().ToLower() : string.Empty; if (delivertType == "exp" || delivertType == "puca") { switch (expressInfo.ExpressCode.ToLower().Trim()) { case "yunda": case "sf": case "fedex": case "bestway": ScriptManager.RegisterStartupScript(this, this.GetType(), "GetExternalExpressTrackInfo" , string.Format("setTimeout( function() {{ GetExpressTrackInfo('{0}','{1}'); }}, 1000);", expressInfo.ExpressCode, expressInfo.ExpressNum) , true); break; } } } } }