protected void BtnSave_Click(object sender, EventArgs e) { Desktop_Weblink desktop_Weblink = new Desktop_Weblink(); ClientScriptManager arg_11_0 = this.Page.ClientScript; desktop_Weblink.userCode = base.UserCode; string webName = this.txtWebName.Text.ToString(); string text = this.txtWebAddr.Text.ToString(); desktop_Weblink.orderId = 1; if (this.GirdColNum.SelectedItem.Text.ToString() == null) { return; } desktop_Weblink.orderId = Convert.ToInt32(this.GirdColNum.SelectedItem.Text.ToString()); if (!(this.txtWebName.Text.ToString() != "")) { return; } desktop_Weblink.WebName = this.txtWebName.Text.ToString(); if (!(this.txtWebAddr.Text.ToString() != "")) { return; } desktop_Weblink.WebAddr = this.txtWebAddr.Text.ToString(); if (this.txtRemark.Text.ToString() != "") { desktop_Weblink.Remark = this.txtRemark.Text.ToString(); } else { desktop_Weblink.Remark = ""; } if (!UserSet.IsEmail(text)) { base.RegisterScript("top.ui.alert('网址格式不正确!');"); return; } if (this.ExistsWebName(webName)) { base.RegisterScript("top.ui.alert('网站名称已存在!');"); return; } if (this.ExistsWebAddr(text)) { base.RegisterScript("top.ui.alert('网址已存在!');"); return; } if (!this.Add(desktop_Weblink)) { base.RegisterScript("top.ui.alert('操作失败!');"); } base.RegisterScript("top.ui.winSuccess();top.ui.reloadTab();"); }