protected void Page_Load(object sender, EventArgs e) { if (function.isAjax()) { string flag = ""; Response.Write(flag); Response.End(); } if (Request.QueryString["menu"] != null && Request.QueryString["menu"] == "delete") { string code = Request.QueryString["code"]; bll.GetDeleteByCode(code);//以code为标准删除多表数据 } divImp.Visible = DataConvert.CLng(Request.QueryString["import"]) == 1; if (!IsPostBack) { //---------权限限制(Excel导入权与可查看所有用户权)分页中限制显示哪些 M_AdminInfo info = B_Admin.GetAdminByID(badmin.GetAdminLogin().AdminId);//info中有role信息 authDT = crmBll.GetAuthTable(info.RoleList.Split(',')); if (!crmBll.IsHasAuth(authDT, "AllowExcel", info))//如果ID不是自己的ID或ID为空则跳转到自己的ID上 { ExcelData.Enabled = false; fileImp.Enabled = false; } MyBind(); ViewState["adminList"] = badmin.Sel(); Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='AffairManage.aspx'>" + UC_BI() + "</a></li><li> <a href='CustomerList.aspx?usertype=0'>" + lang.LF("客户管理") + "</a></span> <a href='CustomerManage.aspx?FieldName=Person_Add&modelid=" + ModelID + "'>[" + lang.LF("添加客户") + "]</a> <a href='CustomerList.aspx?import=1'>[导入客户]</a></li>" + Call.GetHelp(47)); } }
public int ConstPassen_Del(string code) { basBll.GetDeleteByCode(code); return(1); }