private void LoadCheckBoxes() { Color colors = new Color(); colors.LoadAll(); uiRepeaterColors.DataSource = colors.DefaultView; uiRepeaterColors.DataBind(); Dimension dims = new Dimension(); dims.GetAllDims(); uiRepeaterSizes.DataSource = dims.DefaultView; uiRepeaterSizes.DataBind(); }
private void LoadDDLs() { Color colors = new Color(); colors.LoadAll(); uiDropDownListColor.DataSource = colors.DefaultView; uiDropDownListColor.DataTextField = "ColorNameEng"; uiDropDownListColor.DataValueField = "ColorID"; uiDropDownListColor.DataBind(); Dimension dims = new Dimension(); dims.GetAllDims(); uiDropDownListDim.DataSource = dims.DefaultView; uiDropDownListDim.DataTextField = "DisplayName"; uiDropDownListDim.DataValueField = "DimensionID"; uiDropDownListDim.DataBind(); }
private void LoadCardInfo() { CardLayouts layout = new CardLayouts(); layout.GetCardLayoutByCardID(CardID); for (int i = 0; i < layout.RowCount; i++) { uiRadioButtonListLayouts.Items.Add(new ListItem(String.Format("<img src='{0}' style='width:100px' />", "../" + layout.LayoutImage), "../" + layout.LayoutImage + "#" + "../" + layout.LayeoutBackImage)); layout.MoveNext(); } CardColor colors = new CardColor(); colors.GetCardColorsByCardID(CardID); uiRepeaterColors.DataSource = colors.DefaultView; uiRepeaterColors.DataBind(); Dimension dims = new Dimension(); dims.GetAllDims(); uiRepeaterSizes.DataSource = dims.DefaultView; uiRepeaterSizes.DataBind(); CardText texts = new CardText(); texts.GetCardTxtByCardID(CardID); uiDataListCardText.DataSource = texts.DefaultView; uiDataListCardText.DataBind(); Cards card = new Cards(); card.LoadByPrimaryKey(CardID); uiImageMain.ImageUrl = "../" + card.MainPhoto; }
private void LoadCardInfo() { CardLayouts layout = new CardLayouts(); layout.GetCardLayoutByCardID(CardID); for (int i = 0; i < layout.RowCount; i++) { uiRadioButtonListLayouts.Items.Add(new ListItem(String.Format("<img src='{0}' style='width:100px' />", ".." + layout.LayoutImage), ".." + layout.LayoutImage + "#" + ".." + layout.LayeoutBackImage)); layout.MoveNext(); } if (uiRadioButtonListLayouts.Items.Count > 0) uiRadioButtonListLayouts.Items[0].Selected = true; CardColor colors = new CardColor(); colors.GetCardColorsByCardID(CardID); uiRepeaterColors.DataSource = colors.DefaultView; uiRepeaterColors.DataBind(); Dimension dims = new Dimension(); dims.GetAllDims(); uiRepeaterSizes.DataSource = dims.DefaultView; uiRepeaterSizes.DataBind(); CardText texts = new CardText(); texts.GetCardTxtByCardID(CardID); uiDataListCardText.DataSource = texts.DefaultView; uiDataListCardText.DataBind(); CardImages images = new CardImages(); images.GetCardImageByCardID(CardID); if (images.RowCount > 0) { uiDataListImages.DataSource = images.DefaultView; uiDataListImages.DataBind(); uiPanelNoImages.Visible = false; } else { uiDataListImages.Visible = false; uiPanelNoImages.Visible = true; } Cards card = new Cards(); card.LoadByPrimaryKey(CardID); Categories cat = new Categories(); cat.LoadByPrimaryKey(card.CategoryID); MainCat mcat = new MainCat(); mcat.LoadByPrimaryKey(cat.MainCatId); TopLevelCat tcat = new TopLevelCat(); tcat.LoadByPrimaryKey(mcat.TopLevelCatID); uiImageMain.ImageUrl = "../" + card.GeneralPreviewPhoto; FullPath = tcat.NameEng + " > " + mcat.NameEng + " > " + cat.CatNameEng; }
private void LoadDDLs() { Color colors = new Color(); colors.LoadAll(); uiDropDownListColor.DataSource = colors.DefaultView; uiDropDownListColor.DataTextField = "ColorNameEng"; uiDropDownListColor.DataValueField = "ColorID"; uiDropDownListColor.DataBind(); uiDropDownListBackColor.DataSource = colors.DefaultView; uiDropDownListBackColor.DataTextField = "ColorNameEng"; uiDropDownListBackColor.DataValueField = "ColorID"; uiDropDownListBackColor.DataBind(); Dimension dims = new Dimension(); dims.GetAllDims(); uiDropDownListDim.DataSource = dims.DefaultView; uiDropDownListDim.DataTextField = "DisplayName"; uiDropDownListDim.DataValueField = "DimensionID"; uiDropDownListDim.DataBind(); TopLevelCat Tcats = new TopLevelCat(); Tcats.LoadAll(); uiDropDownListTC.DataSource = Tcats.DefaultView; uiDropDownListTC.DataTextField = "NameEng"; uiDropDownListTC.DataValueField = "TopLevelCatID"; uiDropDownListTC.DataBind(); LoadMainCat(); }
private void LoadDDLs() { Color colors = new Color(); colors.LoadAll(); uiDropDownListColor.DataSource = colors.DefaultView; uiDropDownListColor.DataTextField = "ColorNameEng"; uiDropDownListColor.DataValueField = "ColorID"; uiDropDownListColor.DataBind(); uiDropDownListBackColor.DataSource = colors.DefaultView; uiDropDownListBackColor.DataTextField = "ColorNameEng"; uiDropDownListBackColor.DataValueField = "ColorID"; uiDropDownListBackColor.DataBind(); Dimension dims = new Dimension(); dims.GetAllDims(); uiDropDownListDim.DataSource = dims.DefaultView; uiDropDownListDim.DataTextField = "DisplayName"; uiDropDownListDim.DataValueField = "DimensionID"; uiDropDownListDim.DataBind(); TopLevelCat Tcats = new TopLevelCat(); Tcats.Where.IsPartySupplier.Value = true; Tcats.Where.IsPartySupplier.Operator = MyGeneration.dOOdads.WhereParameter.Operand.NotEqual; Tcats.Sort = "NameEng"; Tcats.Query.Load(); uiDropDownListTC.DataSource = Tcats.DefaultView; uiDropDownListTC.DataTextField = "NameEng"; uiDropDownListTC.DataValueField = "TopLevelCatID"; uiDropDownListTC.DataBind(); LoadMainCat(); }