日期:2014-05-17 浏览次数:20478 次
取数据库数据,用,隔开 ch是手机号码 number是序号 dw是部门 while (dr.Read()) { a.Append(dr["number"].ToString()); a.Append(","); b.Append(dr["dw"].ToString()); b.Append(","); c.Append(dr["ch"].ToString()); c.Append(","); } 比如得出number=1,2,3,4,5 ch=A,B,C,D,E number放在hf1.Value ch放在hf2.Value 然后发送信息 bool f = mgr.sendMsg(hf1.Value, hf2.Value); //发送语句