/// <summary> /// 绑定货币(货币名称 -- 汇率)列表 /// </summary> /// <param name="list">要添加期数的控件</param> public static void BindCurrency_Rate(DropDownList list) { list.Items.Clear(); List <CurrencyModel> currencyModelList = AddFreeOrderDAL.GetRateAndName(); foreach (CurrencyModel model in currencyModelList) { ListItem list2 = new ListItem(model.Name, model.ID.ToString()); list.Items.Add(list2); } list.SelectedValue = CurrencyDAL.GetDefaultCurrencyId().ToString(); }
/// <summary> /// 绑定货币(货币名称 -- 汇率)列表 /// </summary> /// <param name="list">要添加期数的控件</param> public static void BindCurrency_Rate(DropDownList list, string storeid) { list.Items.Clear(); List <CurrencyModel> currencyModelList = AddFreeOrderDAL.GetRateAndName(); foreach (CurrencyModel model in currencyModelList) { string str = CommonDataBLL.GetLanguageStr(model.ID, "Currency", "Name"); ListItem list2 = new ListItem(str, model.ID.ToString()); list.Items.Add(list2); } list.SelectedValue = AddFreeOrderDAL.GetBzTypeId(storeid).ToString(); }