Beispiel #1
0
 /// <summary>
 /// 绑定采购状态
 /// </summary>
 protected void BindApplyState()
 {
     RcbApplyState.DataSource = ApplyStockStateList.Where(act => act.Key >= (int)ApplyStockState.Obligation).ToDictionary(act => act.Key, a => a.Value);
     RcbApplyState.DataBind();
     RcbApplyState.Items.Insert(0, new RadComboBoxItem("全部", string.Empty));
     if (!IsPostBack)
     {
         RcbApplyState.SelectedValue = string.Format("{0}", (int)ApplyStockState.Applying);
     }
 }
Beispiel #2
0
        /// <summary>
        /// 店铺类型选择
        /// </summary>
        /// <param name="o"></param>
        /// <param name="e"></param>
        protected void RcbShopTypeIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            var obj = o as RadComboBox;

            if (obj != null)
            {
                RcbShopFrontList.Text = "";
                if (!string.IsNullOrEmpty(obj.SelectedValue) && obj.SelectedValue != "0")
                {
                    BindApplyShop(Convert.ToInt32(obj.SelectedValue));
                }
                else
                {
                    RcbApplyState.DataSource = new Dictionary <Guid, string>();
                    RcbApplyState.DataBind();

                    RcbShopFrontList.DataSource = new Dictionary <Guid, string>();
                    RcbShopFrontList.DataBind();
                }
            }
        }
Beispiel #3
0
 /// <summary>
 /// 绑定退货状态
 /// </summary>
 protected void BindExchangedState()
 {
     RcbApplyState.DataSource = ApplyStateList;
     RcbApplyState.DataBind();
 }
Beispiel #4
0
 /// <summary>
 /// 绑定退货状态
 /// </summary>
 protected void BindExchangedState()
 {
     RcbApplyState.DataSource = ApplyStateList.Where(act => act.Key != (int)ExchangedState.Returning && act.Key != (int)ExchangedState.Checked);
     RcbApplyState.DataBind();
 }