当前位置: 首页>>代码示例>>C#>>正文


C# DataLayer.getNextService方法代码示例

本文整理汇总了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");
     }
 }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:29,代码来源:CustomerPage.aspx.cs

示例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");
    }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:27,代码来源:home.aspx.cs

示例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);
 }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:60,代码来源:PlaceOrder.aspx.cs

示例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"));
 }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:29,代码来源:DisplayLaptops.aspx.cs

示例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);
 }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:60,代码来源:ApplyCoupon.aspx.cs

示例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";
        }
    }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:55,代码来源:EnterShippingAddress.aspx.cs

示例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"));
 }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:11,代码来源:DisplayCart.aspx.cs

示例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);
 }
开发者ID:nikhilp2,项目名称:SoftwareDesign,代码行数:44,代码来源:SelectShippingSpeed.aspx.cs


注:本文中的DataLayer.getNextService方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。