protected void btnSave_Click(object sender, EventArgs e) { M_Style mStyle = new M_Style(); mStyle.StyleCategoryId = int.Parse(ddlStyleType.SelectedValue.ToString()); mStyle.StyleCategoryId = 1; mStyle.Name = txtTypeName.Text.Trim(); B_KyCommon bllCom = new B_KyCommon(); bool flag = bllCom.CheckHas(mStyle.Name, "Name", "KyStyle"); mStyle.Content = test.Value.Trim(); mStyle.Type = modelId; B_Style bllStyle = new B_Style(); if (btnSave.Text == "添加样式") { if (!flag) { bllStyle.AddStyle(mStyle); StyleBind(); } else { Response.Write("<script>alert('己存在此样式')</script>"); StyleBind(); } } }
protected void Page_Load(object sender, EventArgs e) { string input = string.Empty; string fileldName = string.Empty; string tableName = string.Empty; if(!string.IsNullOrEmpty(Request.Form["Input"])) { input = Request.Form["Input"]; } if(!string.IsNullOrEmpty(Request.Form["FileldName"])) { fileldName = Request.Form["FileldName"]; } if(!string.IsNullOrEmpty(Request.Form["TableName"])) { tableName = Request.Form["TableName"]; } if(fileldName==string.Empty||tableName==string.Empty) { return; } B_KyCommon kycommonBll = new B_KyCommon(); if (kycommonBll.CheckHas(input, fileldName, tableName)) { Response.Write("1"); } else { Response.Write("0"); } }
protected void btnSave_Click(object sender, EventArgs e) { //try //{ M_StyleCategory model = new M_StyleCategory(); model.Name = txtStyleTypeName.Text.Trim(); model.ParentID = int.Parse(dropType.SelectedValue.ToString()); model.Desc = txtExplain.Text.Trim(); B_StyleCategory b_styleCategory = new B_StyleCategory(); B_KyCommon bllCom = new B_KyCommon(); bool flag = false; flag = bllCom.CheckHas(model.Name, "Name", "KyStyleCategory"); if (btnSave.Text == "修改样式") { model.StyleCategoryID = int.Parse(Request.QueryString["styleCategoryId"].ToString()); b_styleCategory.Update(model); Response.Redirect(SkipPageUrl); } else { if (!flag) { b_styleCategory.Add(model); Response.Redirect(SkipPageUrl); } else Response.Write("<script>alert('此样式名称已存在')</script>"); } //} //catch //{ // Response.Write("文件出错!!!"); //} }
public bool CheckValidate() { if (txtCateName.Text.Trim().Length == 0) Function.ShowMsg(0, "<li>专栏名称必须填写</li><li><a href='javascript:history.back()'>返回上一级</a></li>"); B_KyCommon kycommonBll = new B_KyCommon(); if (UCId <= 0) { if (kycommonBll.CheckHas(txtCateName.Text.Trim(), "CateName", "KyUserCate")) { Function.ShowMsg(0, "<li>对不起,该专栏名称已经被占用</li><li><a href='info/SetUserCate.aspx'>重新创建</a></li><li><a href='info/UserCateList.aspx'>返回专栏列表</a></li>"); } } return true; }
protected void btnSave_Click(object sender, EventArgs e) { M_LabelContent model = new M_LabelContent(); B_LabelContent bll = new B_LabelContent(); B_KyCommon bllCom = new B_KyCommon(); bool flag = false; if (txtLabelName.Text.Length==1 || !(txtLabelName.Text.ToString().Substring(0, 2).ToLower() == "s_")) { model.Name = lblPrefix.Text.ToString() + txtLabelName.Text.Trim() + lblPostfix.Text.ToString(); model.LbCategoryId = int.Parse(dllLbCategory.SelectedValue.ToString()); model.Content = lblContent.Value; model.AnomalyStyle = string.Empty; model.ModeType = int.Parse(hidModelId.Value.ToString()); flag = bllCom.CheckHas(model.Name, "Name", "KyLabelContent"); if (btnSave.Text == "修改标签") { model.LabelCategoryID = int.Parse(Request.QueryString["labelCategoryId"]); model.AnomalyStyle = string.Empty; bll.Update(model); Response.Redirect(SkipPageUrl); } else { if (!flag) { bll.Add(model); Response.Redirect(SkipPageUrl); } else Response.Write("<script>alert('此标签已存在');</script>"); } } else { Response.Write("<script>alert('此标签与超级标签冲突');</script>"); } }
protected void btnSave_Click(object sender, EventArgs e) { try { M_LbCategory m_LbCategory = new M_LbCategory(); m_LbCategory.Name = txtLabelTypeName.Text.Trim(); m_LbCategory.ParentID = int.Parse(dropLabelType.SelectedValue.ToString()); m_LbCategory.Desc = txtExplain.Text.Trim(); B_LbCategory b_Lbcategory = new B_LbCategory(); B_KyCommon bllCom = new B_KyCommon(); bool flag = false; flag = bllCom.CheckHas(m_LbCategory.Name, "Name", "KyLbCategory"); if (btnSave.Text == "修改类别") { m_LbCategory.LbCategoryID=int.Parse(Request.QueryString["lbCategoryId"].ToString()); B_LbCategory bll = new B_LbCategory(); bll.Update(m_LbCategory); Response.Redirect(SkipPageUrl); } else { if (!flag) { b_Lbcategory.Add(m_LbCategory); Response.Redirect(SkipPageUrl); } else Response.Write("<script>alert('己存在此标签名称')</script>"); } } catch { Response.Write("<script>alert('操作有误')</script>"); } }
/// <summary> /// 添加/修改专题 /// </summary> protected void btnAdd_Click(object sender, EventArgs e) { M_Special model = new M_Special(); if (txtCName.Text.Trim() == "" || txtEName.Text.Trim() == "") { Function.ShowSysMsg(0, "<li>专题中文名和英文名不能为空</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } else { model.SpecialCName = txtCName.Text; model.SpecialEName = txtEName.Text; } string content = string.Empty; for (int i = 1; i <= 10; i++) { TextBox ctt = (TextBox)Page.FindControl("txtItemContent" + i); if (ctt.Text.Trim() != "") { content += ctt.Text; } content += "|"; } content = content.Substring(0, content.Length - 1); model.IsCommand = rblIsRcmd.SelectedValue == "1"; model.IsLock = rblIsLock.SelectedValue == "1"; model.MetaKeyWord = ""; model.MetaRemark = ""; model.ParentID = int.Parse(ddlSpeacil.SelectedValue); model.SaveDirType = ddlDirType.SelectedValue; model.SiteID = int.Parse(ddlChannel.SelectedValue); model.SpecialAddTime = DateTime.Now; model.SpecialDomain = txtDomain.Text; B_SiteInfo site = new B_SiteInfo(); model.SpecialRemark = site.GetFiltering(txtRemark.Text); model.SpecialContent = site.GetFiltering(content); model.SpecialItemNum = int.Parse(ddlItemNum.SelectedValue); model.Extension = rblExtension.SelectedValue; model.PicSavePath = "/" + txtPic.Text; if (txtTemplet.Text.Trim() == "") { Function.ShowSysMsg(0, "<li>专题模板路径不能为空</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } else { model.SpecialTemplet = txtTemplet.Text; } if (Key != 0) { model.ID = Key; model.SpecialAddTime = DateTime.Parse(txtAddTime.Text); model.IsDeleted = Boolean.Parse(txtIsdelete.Text); special.Update(model); Response.Redirect("SpecialList.aspx"); } else { B_KyCommon kycomm = new B_KyCommon(); if (kycomm.CheckHas(txtEName.Text, "SpecialEName", "KySpecial")) { Function.ShowSysMsg(0, "<li>专题英文名重复,请修改</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } else { special.Add(model); Response.Redirect("SpecialList.aspx"); } } }
protected void btnSave_Click(object sender, EventArgs e) { M_LabelContent model = new M_LabelContent(); B_LabelContent bll = new B_LabelContent(); B_KyCommon bllCom = new B_KyCommon(); bool flag = false; if (!(txtName.Text.ToString().Substring(0, 2).ToLower() == "s_")) { model.Name = lblPrefix.Text.ToString() + txtName.Text.Trim() + lblPostfix.Text.ToString(); model.LbCategoryId = 1; model.Content = GetContent(txtContent.Value); model.AnomalyStyle = txtContent.Value; ChannelM = ChannelBll.GetChannel(Chid); int modelId = ChannelM.ModelType; model.ModeType = modelId; flag = bllCom.CheckHas(model.Name, "Name", "KyLabelContent"); if (btnSave.Text == "修改标签") { model.LabelCategoryID = int.Parse(Request.QueryString["labelCategoryId"]); bll.Update(model); Response.Redirect(SkipPageUrl); } else { if (!flag) { bll.Add(model); Response.Redirect(SkipPageUrl); } else Response.Write("<script>alert('此标签己存在');</script>"); } } else { Response.Write("<script>alert('此标签与超级标签冲突');</script>"); } }
protected void btnSave_Click(object sender, EventArgs e) { string id; if (Request.QueryString["id"] == null) { id = Request.QueryString["modelId"].ToString(); } else { id = Request.QueryString["id"].ToString(); } M_Style mStyle = new M_Style(); mStyle.StyleCategoryId = int.Parse(ddlStyleType.SelectedValue.ToString()); mStyle.Name = txtTypeName.Text.Trim(); B_KyCommon bllCom = new B_KyCommon(); bool flag = bllCom.CheckHas(mStyle.Name, "Name", "KyStyle"); mStyle.Content = test.Value.Trim(); mStyle.Type = int.Parse(id); B_Style bllStyle = new B_Style(); if (btnSave.Text == "添加样式") { if (!flag) { bllStyle.AddStyle(mStyle); Response.Redirect(SkipPageUrl); } else Response.Write("<script>alert('此样式已存在')</script>"); } else { mStyle.StyleID = int.Parse(Request.QueryString["StyleId"].ToString()); bllStyle.UpadteStyle(mStyle); Response.Redirect(SkipPageUrl); } }
protected void btnOK_Click(object sender, EventArgs e) { M_Column model = new M_Column(); model.ChId = ChId; model.ColId = ColumnId; if (litColIdStr.Text.IndexOf("|" + ddlColumn.SelectedValue + "|") != -1) { Function.ShowSysMsg(0, "<li>所属栏目不能为当前栏目或子栏目</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ColParentId = int.Parse(ddlColumn.SelectedValue); if (txtColName.Text.Trim().Length == 0) { Function.ShowSysMsg(0, "<li>栏目中文名必须填写</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ColName = txtColName.Text.Trim(); string dirName = txtColDirName.Text.Trim(); if (!Regex.IsMatch(dirName, @"^[a-zA-Z][0-9a-zA-Z]*$")) { Function.ShowSysMsg(0, "<li>栏目英文名必须以字母开头,必须是字母和数字组成</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ColDirName = dirName; if (ColumnId == 0) { B_KyCommon kyCommonBll = new B_KyCommon(); bool flag = kyCommonBll.CheckHas(dirName, "ColDirName", "KyColumn"); if (flag) { Function.ShowSysMsg(0, "<li>栏目英文名已经存在</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } } if(model.IsOuterColumn&&txtOuterColumnUrl.Text.Trim().Length==0) { Function.ShowSysMsg(0, "<li>设置栏目为外部栏目,外部链接地址必须填写</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.IsOuterColumn = rbIsOuterColumn0.Checked ? false : true; model.OuterColumnUrl = model.IsOuterColumn ? txtOuterColumnUrl.Text.Trim() : ""; if (txtColumnTemplatePath.Text.Trim().Length == 0) { Function.ShowSysMsg(0, "<li>栏目页模板必须选择</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ColumnTemplatePath = txtColumnTemplatePath.Text.Trim(); if (txtInfoTemplatePath.Text.Trim().Length == 0) { Function.ShowSysMsg(0, "<li>内容页模板必须选择</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.InfoTemplatePath = txtInfoTemplatePath.Text.Trim(); if (txtCommentTemplatePath.Text.Trim().Length == 0) { Function.ShowSysMsg(0, "<li>评论页模板必须选择</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.CommentTemplatePath = txtCommentTemplatePath.Text.Trim(); if (txtDescription.Text.Trim().Length > 255) { Function.ShowSysMsg(0, "<li>栏目描述不能超过255个字</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ColumnImgPath = txtColumnImgPath.Text.Trim(); model.Description = txtDescription.Text.Trim(); model.IsAllowAddInfo = bool.Parse(rblIsAllowAddInfo.SelectedValue); if (!Function.CheckNumber(txtSort.Text.Trim())) { Function.ShowSysMsg(0, "<li>栏目排序编号必须是0或整正数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.Sort = int.Parse(txtSort.Text.Trim()); model.IsAllowComment = bool.Parse(rblIsAllowComment.SelectedValue); model.IsCheckComment = bool.Parse(rblIsCheckComment.SelectedValue); if (txtKeyword.Text.Trim().Length > 100) { Function.ShowSysMsg(0, "<li>栏目META关键词不能超过100个字</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.Keyword = txtKeyword.Text.Trim(); if (txtContent.Text.Trim().Length > 300) { Function.ShowSysMsg(0, "<li>栏目META网页描述不能超过300个字</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.Content = txtContent.Text.Trim(); model.IsOpened = bool.Parse(rblIsOpened.SelectedValue); model.GroupIdStr = string.Empty; if (!Function.CheckNumber(txtScoreReward.Text.Trim())) { Function.ShowSysMsg(0, "<li>积分奖励必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ScoreReward = int.Parse(txtScoreReward.Text.Trim()); if (!Function.CheckNumber(txtPointCount.Text.Trim())) { Function.ShowSysMsg(0, "<li>收费点数必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.PointCount = int.Parse(txtPointCount.Text.Trim()); if(rbChargeType1.Checked) { model.ChargeType = 1; } else if (rbChargeType2.Checked) { model.ChargeType = 2; if (!Function.CheckNumber(txtChargeHourCount.Text.Trim())) { Function.ShowSysMsg(0, "<li>重复收费时间必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ChargeHourCount = int.Parse(txtChargeHourCount.Text.Trim()); } else if (rbChargeType3.Checked) { model.ChargeType = 3; if (!Function.CheckNumber(txtChargeViewCount.Text.Trim())) { Function.ShowSysMsg(0, "<li>重复收费浏览次数必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ChargeViewCount = int.Parse(txtChargeViewCount.Text.Trim()); } else if(rbChargeType4.Checked) { model.ChargeType = 4; if (!Function.CheckNumber(txtChargeHourCount.Text.Trim())) { Function.ShowSysMsg(0, "<li>重复收费时间必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ChargeHourCount = int.Parse(txtChargeHourCount.Text.Trim()); if (!Function.CheckNumber(txtChargeViewCount.Text.Trim())) { Function.ShowSysMsg(0, "<li>重复收费浏览次数必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ChargeViewCount = int.Parse(txtChargeViewCount.Text.Trim()); } else if (rbChargeType5.Checked) { model.ChargeType = 5; if (!Function.CheckNumber(txtChargeHourCount.Text.Trim())) { Function.ShowSysMsg(0, "<li>重复收费时间必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ChargeHourCount = int.Parse(txtChargeHourCount.Text.Trim()); if (!Function.CheckNumber(txtChargeViewCount.Text.Trim())) { Function.ShowSysMsg(0, "<li>重复收费浏览次数必须是0或正整数</li><li><a href='javascript:window.history.back(-1)'>返回上一步</a></li>"); } model.ChargeViewCount = int.Parse(txtChargeViewCount.Text.Trim()); } else { model.ChargeType = 6; } model.ColumnPageType = int.Parse(rblColumnPageType.SelectedValue); model.InfoPageType = int.Parse(rblInfoPageType.SelectedValue); model.IsDeleted = false; model.AddTime = DateTime.Now; model.InfoTableName = string.Empty; int currColId = 0; if (ColumnId > 0) { currColId = ColumnBll.Update(model); } else { currColId = ColumnBll.Add(model); } for (int i = 0; i < cblGroupIdStr1.Items.Count; i++) { int groupId = int.Parse(cblGroupIdStr1.Items[i].Value); M_UserGroup userGroupModel = GroupBll.GetModel(groupId); string power = userGroupModel.ColumnPower; int a = cblGroupIdStr1.Items[i].Selected ? 1 : 0; int b = cblGroupIdStr2.Items[i].Selected ? 1 : 0; int c = cblGroupIdStr3.Items[i].Selected ? 1 : 0; power = GroupBll.ColumnPower_ColumnPower(ChId, currColId, power, a, b, c); userGroupModel.ColumnPower = power; GroupBll.Update(userGroupModel); } Response.Write("<script>parent.document.frames['LeftIframe'].location.reload();location.href('ColumnList.aspx?ChId=" + ChId + "');</script>"); }
protected void btnAdd_Click(object sender, EventArgs e) { B_Channel channelBll = new B_Channel(); M_Channel model = new M_Channel(); if (txtChName.Text.Trim().Length == 0) { litMsg.Text = "<script>alert('频道名称必须填写')</script>"; return; } model.ChId = ChId; model.ChName = txtChName.Text.Trim(); model.ChType = ChType; model.ModelType = int.Parse(ddlModelType.SelectedValue); string dirName = txtDirName.Text.Trim(); if (!Regex.IsMatch(dirName, @"^[a-zA-Z][0-9a-zA-Z]*$")) { litMsg.Text = "<script>alert('频道(目录)英文名必须以字母开头,必须是字母和数字组成')</script>"; return; } model.DirName = dirName; if (ChId == 0) { B_KyCommon commonBll = new B_KyCommon(); bool flag = commonBll.CheckHas(model.DirName, "DirName", "KyChannel"); if (flag) { litMsg.Text = "<script>alert('频道英文名已经存在')</script>"; return; } } if (txtTypeName.Text.Trim().Length == 0) { litMsg.Text = "<script>alert('项目名称必须填写')</script>"; return; } model.TypeName = txtTypeName.Text.Trim(); if (txtTypeUnit.Text.Trim().Length == 0) { litMsg.Text = "<script>alert('项目单位必须填写')</script>"; return; } model.TypeUnit = txtTypeUnit.Text.Trim(); if (rdIsChildSite2.Checked) { model.IsChildSite = true; } else { model.IsChildSite = false; } if (model.IsChildSite && txtChildSiteUrl.Text.Trim().Length == 0) { litMsg.Text = "<script>alert('设置该频道为分站,分站地址必须填写')</script>"; return; } model.ChildSiteUrl = model.IsChildSite ? txtChildSiteUrl.Text.Trim() : ""; if (txtDescription.Text.Trim().Length > 255) { litMsg.Text = "<script>alert('网站描述不能超过255个字')</script>"; return; } model.Description = txtDescription.Text.Trim(); if (string.IsNullOrEmpty(Request.Form["txtTemplatePath"].Trim())) { litMsg.Text = "<script>alert('频道模板必须选择')</script>"; return; } model.TemplatePath = Request.Form["txtTemplatePath"].Trim(); if (string.IsNullOrEmpty(Request.Form["txtColumnTemplatePath"].Trim())) { litMsg.Text = "<script>alert('栏目页模板必须选择')</script>"; return; } model.ColumnTemplatePath = Request.Form["txtColumnTemplatePath"].Trim(); if (string.IsNullOrEmpty(Request.Form["txtInfoTemplatePath"].Trim())) { litMsg.Text = "<script>alert('内容页模板必须选择')</script>"; return; } model.InfoTemplatePath = Request.Form["txtInfoTemplatePath"].Trim(); if (string.IsNullOrEmpty(Request.Form["txtCommentTemplatePath"].Trim())) { litMsg.Text = "<script>alert('评论页模板必须选择')</script>"; return; } model.CommentTemplatePath = Request.Form["txtCommentTemplatePath"].Trim(); model.Keyword = txtKeyword.Text.Trim(); if (txtContent.Text.Trim().Length > 300) { litMsg.Text = "<script>alert('META网页描述不能超过300个字')</script>"; return; } model.Content = txtContent.Text.Trim(); model.IsDisabled = bool.Parse(rblIsDisabled.SelectedValue); model.IsOpenLink = bool.Parse(rblIsOpenLink.SelectedValue); string miniHitCount = txtMiniHitCount.Text.Trim(); if (!Function.CheckNumber(miniHitCount)) { litMsg.Text = "<script>alert('热点点击数最小值必须是0或正整数')</script>"; return; } model.MiniHitCount = int.Parse(miniHitCount); model.IsOpened = bool.Parse(rblIsOpened.SelectedValue); model.GroupIdStr = ""; string columnPower = string.Empty; string power = string.Empty; model.VerifyType = int.Parse(ddlVerifyType.SelectedValue); if (txtNotice1.Text.Trim().Length > 500) { litMsg.Text = "<script>alert('退稿时通知信息内容不能超过500个字')</script>"; return; } model.Notice1 = txtNotice1.Text.Trim(); if (txtNotice2.Text.Trim().Length > 500) { litMsg.Text = "<script>alert('采纳时通知信息内容不能超过500个字')</script>"; return; } model.Notice2 = txtNotice2.Text.Trim(); model.IsStaticType = bool.Parse(rblIsStaticType.SelectedValue); model.ColumnSortType = int.Parse(ddlColumnSortType.SelectedValue); model.InfoSortType = int.Parse(ddlInfoSortType.SelectedValue); model.FileNameType = int.Parse(ddlFileNameType.SelectedValue); model.ChannelPageType = int.Parse(rblChannelPageType.SelectedValue); model.ColumnPageType = int.Parse(rblColumnPageType.SelectedValue); model.InfoPageType = int.Parse(rblInfoPageType.SelectedValue); model.IsDeleted = false; string sort = txtSort.Text.Trim(); if (!Function.CheckNumber(sort)) { litMsg.Text = "<script>alert('频道排序编号必须是0或正整数')</script>"; return; } model.Sort = int.Parse(sort); model.AddTime = DateTime.Now; int currChId = 0; if (ChId == 0) { currChId = channelBll.Add(model); } else { currChId = channelBll.Update(model); } foreach (ListItem li in cblGroupIdStr.Items) { int groupId = int.Parse(li.Value); M_UserGroup userGroupModel = GroupBll.GetModel(groupId); power = userGroupModel.ColumnPower; int a = GroupBll.Power_ColumnPower(currChId, 0, power, 1) ? 1 : 0; int c = GroupBll.Power_ColumnPower(currChId, 0, power, 3) ? 1 : 0; if (li.Selected) power = GroupBll.ColumnPower_ColumnPower(currChId, 0, power, a, 1, c); else power = GroupBll.ColumnPower_ColumnPower(currChId, 0, power, a, 0, c); userGroupModel.ColumnPower = power; GroupBll.Update(userGroupModel); } Response.Write("<script>parent.document.frames['LeftIframe'].location.reload();location.href('ChannelList.aspx');</script>"); }
void CheckInput() { if (txtAdminLoginID.Text.Trim() == "") { Function.ShowSysMsg(0,"<li>登录名不能为空</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } if (txtAdminPWD.Text.Trim() == "") { Function.ShowSysMsg(0, "<li>密码不能为空</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } if (txtAdminPWD.Text.Length>18 || txtAdminPWD.Text.Length<6) { Function.ShowSysMsg(0, "<li>密码长度为6-18位。请重新输入</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } if (txtAdminPWD.Text != txtAdminPWDAG.Text) { Function.ShowSysMsg(0, "<li>两次输入的密码不一致,请重新输入</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } if (UserId == 0) { B_KyCommon kycomm = new B_KyCommon(); if (kycomm.CheckHas(txtAdminLoginID.Text, "LoginName", "KyAdmin")) { Function.ShowSysMsg(0, "<li>对不起,此登录名已存在,请重新输入</li><li><a href='javascript:window.history.back()'>返回上一步</a></li>"); } } }