-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vsenih
committed
Sep 12, 2008
1 parent
710fd9f
commit d002553
Showing
20 changed files
with
158 additions
and
62 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<%@ Import Namespace="System.IO" %> | ||
<%@ Import Namespace="GCheckout.MerchantCalculation" %> | ||
<%@ Import Namespace="GCheckout.Util" %> | ||
<%@ Import Namespace="Orders" %> | ||
<script runat="server" language="c#"> | ||
void Page_Load(Object sender, EventArgs e) | ||
{ | ||
try | ||
{ | ||
// Extract the XML from the request. | ||
Stream RequestStream = Request.InputStream; | ||
StreamReader RequestStreamReader = new StreamReader(RequestStream); | ||
string RequestXml = RequestStreamReader.ReadToEnd(); | ||
RequestStream.Close(); | ||
Log.Debug("Request XML: " + RequestXml); | ||
// Process the incoming XML. | ||
string orderId = EncodeHelper.GetElementValue(RequestXml, "MERCHANT_DATA_HIDDEN"); | ||
CallbackProcessor P = new CallbackProcessor(new Callback(orderId)); | ||
byte[] ResponseXML = P.Process(RequestXml); | ||
Log.Debug("Response XML: " + EncodeHelper.Utf8BytesToString(ResponseXML)); | ||
Response.BinaryWrite(ResponseXML); | ||
} | ||
catch (Exception ex) | ||
{ | ||
Log.Debug(ex.ToString()); | ||
} | ||
} | ||
</script> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="orders.aspx.cs" Inherits="setup_orders" %> | ||
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head runat="server"> | ||
<title></title> | ||
</head> | ||
<body> | ||
<form id="form1" runat="server"> | ||
<div> | ||
<asp:GridView ID="GridView1" runat="server"> | ||
</asp:GridView> | ||
<asp:GridView ID="GridView2" runat="server"> | ||
</asp:GridView> | ||
<asp:GridView ID="GridView3" runat="server"> | ||
</asp:GridView> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.UI; | ||
using System.Web.UI.WebControls; | ||
using Orders; | ||
|
||
public partial class setup_orders : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
List<order> source = Orders.Orders.GetAllOrders(); | ||
GridView1.DataSource = source; | ||
GridView1.DataBind(); | ||
|
||
List<customer> source1 = Orders.Orders.GetAllCustomers(); | ||
GridView2.DataSource = source1; | ||
GridView2.DataBind(); | ||
|
||
List<order_item> source2 = Orders.Orders.GetAllOrderItems(); | ||
GridView3.DataSource = source2; | ||
GridView3.DataBind(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters