本文整理汇总了C#中DataLayer.getNextService方法的典型用法代码示例。如果您正苦于以下问题:C# DataLayer.getNextService方法的具体用法?C# DataLayer.getNextService怎么用?C# DataLayer.getNextService使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataLayer
的用法示例。
在下文中一共展示了DataLayer.getNextService方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
OrgID = System.Convert.ToInt32(Session["TenantID"]);
}
catch (Exception ex)
{
try
{
OrgID = System.Convert.ToInt32(Request.QueryString["OrgID"]);
}
catch (Exception ex2)
{
}
}
DataLayer dl = new DataLayer();
string url = "";
string name = "";
int next = 0;
url = dl.getNextService(OrgID, next, "Display Items");
while (url.CompareTo("") != 0 && url.CompareTo("home.aspx") != 0)
{
name = DataLayer.getServiceName(url);
itemsToDisplay.Controls.Add(new LiteralControl("<a href=" + url + ">" + name + "</a> | "));
next = next + 1;
url = dl.getNextService(OrgID, next, "Display Items");
}
}
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
OrgID = System.Convert.ToInt32(Session["TenantID"]);
}
catch (Exception ex)
{
try
{
OrgID = System.Convert.ToInt32(Request.QueryString["OrgID"]);
}
catch (Exception ex2)
{
}
}
DataLayer dl = new DataLayer();
string loginurl = dl.getNextService(OrgID,0,"User Login");
string registerurl = dl.getNextService(OrgID, 0, "User Registration");
login.HRef = loginurl;
register.HRef = registerurl;
if (Session["user"] != null)
Response.Redirect("members.aspx");
if (Session["user1"] != null)
Response.Redirect("CustomerPage.aspx");
}
示例3: btnPlaceOrder_Click
protected void btnPlaceOrder_Click(object sender, EventArgs e)
{
PlaceOrderService wsPlaceOrder = new PlaceOrderService();
DataLayer dLayer = new DataLayer();
int OrgID;
int serviceOrder;
int shopperID;
int cartID;
string url;
string workflow;
try
{
workflow = Session["workflow"].ToString();
}
catch(Exception ex)
{
workflow = "";
}
try
{
OrgID = System.Convert.ToInt32(Session["OrgID"]);
}
catch (Exception ex)
{
OrgID = 0;
}
try
{
shopperID = System.Convert.ToInt32(Session["shopperID"]);
}
catch (Exception ex)
{
shopperID = 0;
}
try
{
serviceOrder = System.Convert.ToInt32(Session["serviceOrder"]);
}
catch (Exception ex)
{
serviceOrder = 0;
}
try
{
cartID = System.Convert.ToInt32(Session["cartID"]);
}
catch (Exception ex)
{
cartID = 0;
}
Session["orderID"] = wsPlaceOrder.PlaceOrder(OrgID, shopperID, cartID);
serviceOrder = serviceOrder + 1;
Session["serviceOrder"] = serviceOrder;
url = dLayer.getNextService(OrgID, serviceOrder, workflow);
if (url == "")
{
url = "PlaceOrder.aspx";
}
Response.Redirect(url);
}
示例4: btnAddToCart_Click
protected void btnAddToCart_Click(object sender, EventArgs e)
{
DataLayer dl = new DataLayer();
string items = "";
for (int x = 0; x < chkBox.Length; x++)
{
try
{
if (chkBox[x].Checked)
{
if (items == "")
{
items = cell[x + 1, 1].Text;
}
else
{
items = items + "," + cell[x + 1, 1].Text;
}
}
}
catch
{
}
}
Session["Items"] = items;
Session["ObjID"] = 3;
Session["orgID"] = 1001;
Response.Redirect(dl.getNextService(1001, 0, "Add to cart"));
}
示例5: ApplyButton_Click
protected void ApplyButton_Click(object sender, EventArgs e)
{
Coupons coupon = new Coupons();
DataLayer dLayer = new DataLayer();
int OrgID;
int serviceOrder;
int shopperID;
string url;
string workflow = Session["workflow"].ToString();
try
{
OrgID = System.Convert.ToInt32(Session["OrgID"]);
}
catch (Exception ex)
{
OrgID = 0;
}
try
{
shopperID = System.Convert.ToInt32(Session["shopperID"]);
}
catch (Exception ex)
{
shopperID = 0;
}
try
{
serviceOrder = System.Convert.ToInt32(Session["serviceOrder"]);
}
catch (Exception ex)
{
serviceOrder = 0;
}
double total = 0; //TODO: change to get from order
try
{
total = System.Convert.ToDouble(Session["total"]);
int couponID = System.Convert.ToInt32(txtCID.Text);
TempLabel.Text = System.Convert.ToString(coupon.ValidateCoupon(couponID, OrgID, total));
}
catch (FormatException ex)
{
TempLabel.Text = "Can not convert string";
}
catch (OverflowException ex)
{
TempLabel.Text = "Number too large";
}
catch (Exception ex)
{
}
serviceOrder = serviceOrder + 1;
Session["serviceOrder"] = serviceOrder;
url = dLayer.getNextService(OrgID, serviceOrder, workflow);
if (url == "")
{
url = "ApplyCoupon.aspx";
}
Response.Redirect(url);
}
示例6: VerifyAddressButton_Click
protected void VerifyAddressButton_Click(object sender, EventArgs e)
{
string Street = txtStreet.Text;
string City = txtCity.Text;
string State = ddlState.Text;
string Zip = txtZip.Text;
string url;
string workflow = Session["workflow"].ToString();
int shopperID;
int OrgID;
int serviceOrder;
DataLayer dLayer = new DataLayer();
try
{
OrgID = System.Convert.ToInt32(Session["OrgID"]);
}
catch (Exception ex)
{
OrgID = 0;
}
try
{
shopperID = System.Convert.ToInt32(Session["shopperID"]);
}
catch (Exception ex)
{
shopperID = 0;
}
try
{
serviceOrder = System.Convert.ToInt32(Session["serviceOrder"]);
}
catch (Exception ex)
{
serviceOrder = 0;
}
GetShippingInfo wsShippingInfo = new GetShippingInfo();
if (wsShippingInfo.VerifyShippingInfo(Street, City, State, Zip))
{
lblVerified.Text = wsShippingInfo.StoreShippingInfo(shopperID, Street, City, State, Zip, OrgID);
serviceOrder = serviceOrder + 1;
Session["serviceOrder"] = serviceOrder;
url = dLayer.getNextService(OrgID, serviceOrder, workflow);
if (url == "")
{
url = "EnterShippingAddress.aspx";
}
Response.Redirect(url);
}
else
{
lblVerified.Text = "Not Verified";
}
}
示例7: btnCheckOut_Click
protected void btnCheckOut_Click(object sender, EventArgs e)
{
DataLayer dl = new DataLayer();
Session["workflow"] = "Check out";
Session["OrgID"] = OrgID;
Session["shopperID"] = cell[1, 1];
Session["serviceOrder"] = 0;
Session["cartID"] = cell[1, 0];
Session["total"] = cell[1, 3].Text;
Response.Redirect(dl.getNextService(OrgID, 0, "Check out"));
}
示例8: bnNext_Click
protected void bnNext_Click(object sender, EventArgs e)
{
ShippingSpeedService wsShippingSpeed = new ShippingSpeedService();
DataLayer dLayer = new DataLayer();
int OrgID;
int serviceOrder;
int shopperID;
string url;
string workflow = Session["workflow"].ToString();
try
{
OrgID = System.Convert.ToInt32(Session["OrgID"]);
}
catch (Exception ex)
{
OrgID = 0;
}
try
{
shopperID = System.Convert.ToInt32(Session["shopperID"]);
}
catch (Exception ex)
{
shopperID = 0;
}
try
{
serviceOrder = System.Convert.ToInt32(Session["serviceOrder"]);
}
catch (Exception ex)
{
serviceOrder = 0;
}
double newCost = wsShippingSpeed.CalcShippingCost(0, OrgID, ddlShippingSpeed.Text, 180.0);
lblCurTotal.Text = newCost + "";
serviceOrder = serviceOrder + 1;
Session["serviceOrder"] = serviceOrder;
url = dLayer.getNextService(OrgID, serviceOrder, workflow);
if (url == "")
{
url = "SelectShippingSpeed.aspx";
}
Response.Redirect(url);
}