//chen protected void btnMarker_Click(object sender, EventArgs e) { for (int i = 0; i <= gvTaskList.Rows.Count - 1; i++) { System.Web.UI.HtmlControls.HtmlInputCheckBox cbx = (System.Web.UI.HtmlControls.HtmlInputCheckBox)gvTaskList.Rows[i].FindControl("cbxContact"); if (cbx.Checked) { LinkButton l_btnMarker = (LinkButton)gvTaskList.Rows[i].FindControl("lbnQuickMarker"); String l_strProcessTemplate = l_btnMarker.CommandName; String l_strTableName = TableName.GetCirculateTableName(l_strProcessTemplate); B_Circulate l_burCirculate = new B_Circulate(l_strTableName); l_burCirculate.ID = Convert.ToInt32(l_btnMarker.CommandArgument); l_burCirculate.Is_Read = true; try { l_burCirculate.MultiRead(l_strTableName, l_burCirculate.ID); } catch (Exception err) { } } } LoadTaskList(); ClientScriptM.RefreshLeft(Page); }
/// <summary> /// 快速阅知 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void lbnQuickMarker_Click(object sender, EventArgs e) { LinkButton l_lbnQuickMarker = sender as LinkButton; String l_strProcessTemplate = l_lbnQuickMarker.CommandName; String l_strTableName = TableName.GetCirculateTableName(l_strProcessTemplate); B_Circulate l_burCirculate = new B_Circulate(l_strTableName); l_burCirculate.ID = Convert.ToInt32(l_lbnQuickMarker.CommandArgument); l_burCirculate.Is_Read = true; bool ret = l_burCirculate.Save(); if (ret) { LoadTaskList(); ClientScriptM.RefreshLeft(Page); } }