using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace LYFZ.Web.WeiXinAPP.Satisfaction { public partial class SatisfactionOrderView : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string StrClientView = ""; if (!IsPostBack) { string StrClientNumber = ""; string cusid = Request.QueryString["cusid"]; string appid = Request.QueryString["appid"]; string openid = Request.QueryString["openid"]; if (!string.IsNullOrEmpty(Request.QueryString["cusid"]) && !string.IsNullOrEmpty(Request.QueryString["openid"]) && !string.IsNullOrEmpty(Request.QueryString["appid"])) { LYFZ.WeixinServiceDate.Model.Model_CustomerInterfaces cusModel = LYFZ.WeixinServers.Global.GetCustomerModelById(cusid); //cusModel.GetRequestUrl() string getCheckText = LYFZ.WinAPI.HttpClientHelper.GetResponse(cusModel.GetRequestUrl() + "/Api/WXApi.ashx/GetWXCustomerHaveOrder?openid=" + openid + "&appid=" + appid); dynamic dyObject = Newtonsoft.Json.JsonConvert.DeserializeObject(getCheckText); Newtonsoft.Json.Linq.JArray arrayList = (Newtonsoft.Json.Linq.JArray)dyObject.data; if (arrayList.Count>0) { if (arrayList.Count > 1) { StrClientView = Funt_GetOrderMianPanel(arrayList, StrTitleText: "我的订单", StrNotShowText: "Ord_Number,Ordv_ViceNumber", LinkAddressName: "SatisfactionOrderDetail.aspx", openid: openid, cusid: cusid, appid: appid); } else { Response.Redirect("SatisfactionOrderDetail.aspx?cusid=" + cusid + "&openId=" + openid + "&appid=" + appid + "&OrdNumber=" + arrayList[0]["Ord_Number"] + "&ViceOrdNumber=" + arrayList[0]["Ordv_ViceNumber"]); } } else { StrClientView = "
"; } } ViewState["ClientView"] = StrClientView; } } string Funt_GetOrderMianPanel(Newtonsoft.Json.Linq.JArray dt, string StrTitleText, string StrNotShowText = "", string LinkAddressName = "",string openid="",string cusid="",string appid="") { string StrDataList = ""; List