Exemplo n.º 1
0
        protected void btn_refresh_Click(object sender, EventArgs e)
        {
            string txt = "";

            string sxrIds = this.txtReceiverIds.Text.Trim(new char[] { ',' });

            if (string.IsNullOrEmpty(sxrIds))
            {
                this.db_fsdx.Text = "";
                return;
            }

            DataTable dt = BLL.RetrieveSjml_List(sxrIds).Result;

            foreach (string item in sxrIds.Split(','))
            {
                DataRow[] rows = dt.Select("SjmlID=" + item);
                if (rows.Length > 0)
                {
                    txt += rows[0]["SjmlName"] + "【" + rows[0]["sjmlMobile"] + "】,";
                }
            }
            this.db_fsdx.Text = txt.Trim(new char[] { ',' });
        }