Esempio n. 1
0
        public string GetOptionsString(string itemCode)
        {
            DataItemDetailBLL dataItemDetailBLL = new DataItemDetailBLL();
            var           data = dataItemDetailBLL.GetListByCode(itemCode);
            StringBuilder sb   = new StringBuilder();

            foreach (DataRow dr in data.Rows)
            {
                sb.AppendFormat("<option value='{0}'>{1}</option>", dr[1].ToString(), dr[0].ToString());
            }
            return(sb.ToString());
        }
Esempio n. 2
0
        public string GetLiString(string itemCode)
        {
            DataItemDetailBLL dataItemDetailBLL = new DataItemDetailBLL();
            var           data = dataItemDetailBLL.GetListByCode(itemCode);
            StringBuilder sb   = new StringBuilder();

            foreach (DataRow dr in data.Rows)
            {
                sb.AppendFormat("<li class='option-item' style='padding:8px 1em;' data-index='{0}' data-value='{0}'>{1}</option>", dr[1].ToString(), dr[0].ToString());
            }
            return(sb.ToString());
        }