예제 #1
0
 private void applypagging()
 {
     if (Request.QueryString["action"] != null)
     {
         index = Int32.Parse(Request.QueryString["index"]);
         if ("prev".Equals(Request.QueryString["action"]) && index == 0)
         {
             string[] str = CatDetailsService.getRelLastProduct(Request.QueryString["htm"]);
             style = str[0];
             index = Int32.Parse(str[1]);
         }
         else if ("next".Equals(Request.QueryString["action"]))
         {
             index = index + 1;
             string[] str = CatDetailsService.getRelProductDT(Request.QueryString["htm"], index);
             style = str[0];
             index = Int32.Parse(str[1]);
         }
         else
         {
             string[] str = CatDetailsService.getRelProductDT(Request.QueryString["htm"], index);
             style = str[0];
             index = Int32.Parse(str[1]);
         }
     }
 }
예제 #2
0
 public void fillproductdetails()
 {
     style  = dt.Rows[0]["StyleCode"] + "".Trim() == "" ? dt.Rows[0]["SKUCode"] + "".Trim() : dt.Rows[0]["StyleCode"] + "";
     isSize = "Size".Equals(dt.Rows[0]["VariantType"] + "") ? "true" : "false";
     if (!StringUtil.isNullOrEmpty(style))
     {
         if ("true".Equals(isSize))
         {
             sizeDT = CatDetailsService.getSizeDT(style, true);
         }
         colorDT = CatDetailsService.getColorDT(style, true);
     }
     else
     {
         if ("true".Equals(isSize))
         {
             sizeDT = CatDetailsService.getSizeDT(style, false);
         }
         colorDT = CatDetailsService.getColorDT(dt.Rows[0]["SKUCode"] + "", false);
     }
     if (!CommonUtil.DT.isEmptyOrNull(colorDT))
     {
         color = colorDT.Rows[0]["Color"] + "";
     }
     isColor   = CommonUtil.DT.isEmptyOrNull(colorDT) ? "false" : "true";
     isSku     = StringUtil.isNullOrEmpty(dt.Rows[0]["StyleCode"] + "") ? "false" : "true";
     inventory = AjaxService.getInventory(dt.Rows[0]["SKUCode"] + "");
     if (inventory < 20)
     {
         if (inventory == 0)
         {
             avalibilty = "Sold Out.";
         }
     }
 }
예제 #3
0
 public void fillReatedProductType()
 {
     relProductDT = CatDetailsService.getRelProductDT(dt.Rows[0]["SKUProductType"] + "");
 }