Пример #1
0
        /// <summary>
        /// 绑定操作员
        /// </summary>
        private void GroupUser()
        {
            int    zId      = Utils.GetInt(Utils.GetQueryStringValue("zId"));
            string cityHtml = string.Empty;

            EyouSoft.BLL.CompanyStructure.Customer csBLL = new EyouSoft.BLL.CompanyStructure.Customer();
            IList <EyouSoft.Model.CompanyStructure.CustomerContactInfo> csList = null;

            csList = csBLL.GetCustomerContactList(zId);
            StringBuilder strBuilder = new StringBuilder();

            strBuilder.AppendFormat("<option value=\"0\"selected=\"selected\">--请选择--</option>");
            if (csList != null)
            {
                for (int i = 0; i < csList.Count; i++)
                {
                    strBuilder.AppendFormat("<option value=\"" + csList[i].ID + "\">" + csList[i].Name + "</option>");
                }
            }

            cityHtml = strBuilder.ToString();
            //异步执行代码返回
            Response.Clear();
            Response.Write(string.Format(cityHtml));
            Response.End();
            return;
        }