Exemplo n.º 1
0
        /// <summary>
        /// 绑定合作单位下拉列表
        /// </summary>
        protected void BindSalesDDL()
        {
            Dictionary <string, object> dict = new Dictionary <string, object>();

            var dt = GetService.GetByCondition(dict, "Name");

            DropWorkNameID.Items.Clear();
            DropWorkNameID.Items.Add(new ListItem("请选择", ""));
            foreach (DataRow row in dt.Rows)
            {
                this.DropWorkNameID.Items.Add(new ListItem("" + row[0], "" + row[0]));
            }
        }