protected void cbx_search_CheckedChanged(object sender, EventArgs e)
{
string strYH = Session["yh_name"].ToString().Trim();
for (int i = 0; i < gridcl.Rows.Count; i++)
{
CheckBox cbxTemp = (CheckBox)gridcl.Rows[i].FindControl("cbx_search");
if (cbxTemp.Checked)
{
if (DB.ConnectDBServer())
{
string strBM = gridcl.Rows[i].Cells[1].Text;
string strMc = gridcl.Rows[i].Cells[2].Text;
string strJG = gridcl.Rows[i].Cells[4].Text;
string strSQL = "insert into WXCLMX(WXD_SJ,WXD_SQR,WZ_BH,WZ_MC,WZ_ZT,WZ_JHJG,WZ_YL)" + "values('" + this.lbltime.Text.Trim() + "','" + strYH + "','" + strBM + "','"+strMc+"','new','" + strJG + "',1)";
int iReturn = DB.ExcuteSqlReturnRowsCont(strSQL);
}
}
cbxTemp.Checked = false;
}