protected void btnRead_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(Request.QueryString[ConstString.QueryString.CIRCULATE_ID])) { if (IsGoOnCirculate) { DoCirculate(); } String cyTB = TableName.GetCirculateTableName(base.TemplateName); B_Circulate l_burCirculate = new B_Circulate(cyTB); l_burCirculate.ID = SysConvert.ToInt32(Request.QueryString[ConstString.QueryString.CIRCULATE_ID]); l_burCirculate.Comment = this.ucGoOnCirculate.UCComment; l_burCirculate.Is_Read = true; Boolean l_blnIsSuccess = l_burCirculate.Save(); if (!l_blnIsSuccess) { JScript.Alert(SysString.GetErrMsgs(l_burCirculate.ErrMsgs)); return; } btnRead.Visible = false; base.ShowMsgBox(this.Page, MsgType.VbInformation, "处理成功", "3"); } }
protected void btnGoOnCirculate_Click(object sender, EventArgs e) { if (Request.QueryString["IsRead"] != "True") { String cyTB = TableName.GetCirculateTableName(base.TemplateName); B_Circulate l_burCirculate = new B_Circulate(cyTB); l_burCirculate.ID = SysConvert.ToInt32(Request.QueryString[ConstString.QueryString.CIRCULATE_ID]); l_burCirculate.Comment = this.ucGoOnCirculate.UCComment; l_burCirculate.Is_Read = true; Boolean l_blnIsSuccess = l_burCirculate.Save(); if (!l_blnIsSuccess) { JScript.Alert(SysString.GetErrMsgs(l_burCirculate.ErrMsgs)); return; } } DoCirculate(); }