protected void btnSave_Click(object sender, System.EventArgs e) { System.Collections.Generic.List <string> userCodes = this.GetUserCodes(this.hfldUserCodes.Value); string text = base.Request["ids"].ToString().TrimEnd(new char[] { ',' }); text = text.Replace(",", "\",\""); try { if (text.Contains(",")) { System.Collections.Generic.List <string> userCodes2 = this.GetUserCodes(text); TenderUser.AddUser(userCodes2, userCodes); } else { TenderUser.AddUser(text, userCodes); } base.RegisterScript("top.ui.alert('更新成功!'); top.ui.closeWin(); top.ui.reloadTab();"); } catch (System.Exception) { base.RegisterShow("系统提示", "更新失败"); } }
protected void btnSave_Click(object sender, System.EventArgs e) { System.Collections.Generic.List <string> @string = this.GetString(this.hfldUserCodes.Value); string text = base.Request["ids"].ToString(); try { if (text.Contains(",")) { System.Collections.Generic.List <string> string2 = this.GetString(text); TenderUser.AddUser(string2, @string); } else { TenderUser.AddUser(text, @string); } System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); stringBuilder.Append("alert('系统提示:\\n\\n更新成功')").Append(System.Environment.NewLine); stringBuilder.Append("winclose('SetPrjRole', 'PrjInfoList.aspx', true);"); base.RegisterScript(stringBuilder.ToString()); } catch { base.RegisterScript("alert('系统提示:\\n\\n更新失败')"); } }