Example #1
0
        public static string TemplateTypeChange(string cid)
        {
            StringBuilder strHtml = new StringBuilder();

            strHtml.Append("<option value=\"\">请选择设计模版</option>");

            if (!string.IsNullOrWhiteSpace(cid))
            {
                Leadin.BLL.DesignTemplate bllTemplateChange = new Leadin.BLL.DesignTemplate();
                DataSet ds = bllTemplateChange.GetList("TypeId=" + cid + " and StateInfo=1");

                foreach (DataRow item in ds.Tables[0].Rows)
                {
                    strHtml.Append("<option value=\"" + item["Id"].ToString() + "\">" + item["Title"].ToString() + "</option>");
                }
            }

            return(strHtml.ToString());
        }