public void ProcessRequest(HttpContext context) { string result = string.Empty; string str2 = string.Empty; str2 = context.Request["HIGW"]; SortedDictionary <string, string> sortedParams = OpenApiHelper.GetSortedParams(context); this.site = SettingsManager.GetMasterSettings(true); string str3 = str2; if (str3 != null) { if (!(str3 == "GetSoldProducts")) { if (str3 == "GetProduct") { this.GetProduct(sortedParams, ref result); goto Label_00AE; } if (str3 == "UpdateProductQuantity") { this.UpdateProductQuantity(sortedParams, ref result); goto Label_00AE; } if (str3 == "UpdateProductApproveStatus") { this.UpdateProductApproveStatus(sortedParams, ref result); goto Label_00AE; } } else { this.GetSoldProducts(sortedParams, ref result); goto Label_00AE; } } result = OpenApiErrorMessage.ShowErrorMsg(OpenApiErrorCode.Invalid_Method, "HIGW"); Label_00AE: context.Response.ContentType = "text/json"; context.Response.Write(result); }
public void ProcessRequest(HttpContext context) { string results = string.Empty; string str2 = string.Empty; str2 = context.Request["HIGW"]; SortedDictionary <string, string> sortedParams = OpenApiHelper.GetSortedParams(context); switch (str2) { case "GetSoldTrades": this.GetSoldTrades(sortedParams, ref results); break; case "GetTrade": this.GetTrade(sortedParams, ref results); break; case "GetIncrementSoldTrades": this.GetIncrementSoldTrades(sortedParams, ref results); break; case "SendLogistic": this.SendLogistic(sortedParams, ref results); break; case "UpdateTradeMemo": this.UpdateTradeMemo(sortedParams, ref results); break; case "ChangLogistics": this.ChangLogistics(sortedParams, ref results); break; default: results = OpenApiErrorMessage.ShowErrorMsg(OpenApiErrorCode.Invalid_Method, "HIGW"); break; } context.Response.ContentType = "text/json"; context.Response.Write(results); }
public void ProcessRequest(System.Web.HttpContext context) { string s = string.Empty; string text = string.Empty; string arg_11_0 = string.Empty; text = context.Request["HIGW"]; System.Collections.Generic.SortedDictionary <string, string> sortedParams = OpenApiHelper.GetSortedParams(context); this.site = SettingsManager.GetMasterSettings(true); string a; if ((a = text) != null) { if (a == "GetSoldProducts") { this.GetSoldProducts(sortedParams, ref s); goto IL_AE; } if (a == "GetProduct") { this.GetProduct(sortedParams, ref s); goto IL_AE; } if (a == "UpdateProductQuantity") { this.UpdateProductQuantity(sortedParams, ref s); goto IL_AE; } if (a == "UpdateProductApproveStatus") { this.UpdateProductApproveStatus(sortedParams, ref s); goto IL_AE; } } s = OpenApiErrorMessage.ShowErrorMsg(OpenApiErrorCode.Invalid_Method, "HIGW"); IL_AE: context.Response.ContentType = "text/json"; context.Response.Write(s); }
public void ProcessRequest(System.Web.HttpContext context) { string s = string.Empty; string text = string.Empty; string arg_11_0 = string.Empty; text = context.Request["HIGW"]; System.Collections.Generic.SortedDictionary <string, string> sortedParams = OpenApiHelper.GetSortedParams(context); string key; switch (key = text) { case "GetSoldTrades": this.GetSoldTrades(sortedParams, ref s); goto IL_115; case "GetTrade": this.GetTrade(sortedParams, ref s); goto IL_115; case "GetIncrementSoldTrades": this.GetIncrementSoldTrades(sortedParams, ref s); goto IL_115; case "SendLogistic": this.SendLogistic(sortedParams, ref s); goto IL_115; case "UpdateTradeMemo": this.UpdateTradeMemo(sortedParams, ref s); goto IL_115; case "ChangLogistics": this.ChangLogistics(sortedParams, ref s); goto IL_115; } s = OpenApiErrorMessage.ShowErrorMsg(OpenApiErrorCode.Invalid_Method, "HIGW"); IL_115: context.Response.ContentType = "text/json"; context.Response.Write(s); }