protected void BtnSave_Click(object sender, EventArgs e) { AdmUser cont = new AdmUser(); CFun.GetPageData <AdmUser>(cont, this); //cont.GroupIdList = CFun.RequestPamStr("gname"); string GroupIdList = CFun.RequestPamStr("gname"); string platformList = CFun.RequestPamStr("platformname"); cont.GroupIdList = "," + GroupIdList + ','; if (cont.Ld == 0) { cont.CreateDate = DateTime.Now; } cont.LastDate = DateTime.Now; if (TxtUPass.Text != "") { cont.UPassword = CFun.MD5(TxtUPass.Text); } if (new BllAdmUser().InsertorUpdateitem(cont)) { BllAdmActHistory.SaveLog(CurrentUId, (int)EnumCCActiveClass.客服人员管理, cont.Ld.Value, ""); CFun.AlertMegT("保存成功!", "closeFlowPanel", ""); } else { CFun.AlertMegT("发生错误,请稍后再试!", "back", ""); } }
protected void Page_Load(object sender, EventArgs e) { string rStr = ""; string act = CFun.RequestPamStr("act"); switch (act) { case "get": rStr = GetValue(); break; case "del": rStr = DelItem(); break; case "getclass": rStr = GetClass(); break; case "delclass": rStr = DelClass(); break; } Response.Write(rStr); Response.End(); }
private string GetValueLogin() { int id = CFun.RequestPamInt("id"); string sTime, eTime; sTime = CFun.RequestPamStr("stime"); eTime = CFun.RequestPamStr("etime"); string sqlWhere = " uid=" + id.ToString(); if (CFun.StrIsDate(sTime)) { sqlWhere += " and CreateDate>'" + sTime + "'"; } if (CFun.StrIsDate(eTime)) { sqlWhere += " and CreateDate<'" + eTime + " 23:59:59'"; } int pageSize = CFun.RequestPamInt("rows"); if (pageSize <= 0) { pageSize = CFun.pagesize(); } int pageCurrent = CFun.RequestPamInt("page"); if (pageCurrent <= 0) { pageCurrent = 1; } return(new BllAdmLoginHistory().GetAllByPage("*", pageSize, pageCurrent, sqlWhere, "Ld desc")); }
protected void Page_Load(object sender, EventArgs e) { parentId = CFun.RequestPamStr("id"); if (parentId == "") { parentId = "0"; } }
protected void BtnSave_Click(object sender, EventArgs e) { bool error = false; AdmUserGroup usergroup = new AdmUserGroup(); CFun.GetPageData <AdmUserGroup>(usergroup, this); AdmGroupRoleList cont = new AdmGroupRoleList(); string KeyCode = CFun.RequestPamStr("mname"); if (usergroup.Ld == 0) { usergroup.CreateDate = DateTime.Now; } usergroup.LastDate = DateTime.Now; if (new BllAdmUserGroup().InsertorUpdateitem(usergroup)) { int GroupId = usergroup.GroupId.Value; new BllAdmGroupRoleList().DeleteItemByGroupId(GroupId); cont.GroupId = GroupId; cont.Ld = 0; if (KeyCode != null) { string[] ss = KeyCode.Trim().Split(new char[] { ',' }); if (ss.Length > 0) { for (int i = 0; i < ss.Length; i++) { cont.KeyCode = ss[i]; error = new BllAdmGroupRoleList().InsertorUpdateitem(cont); } } } error = true; } if (error) { BllAdmActHistory.SaveLog(CurrentUId, (int)EnumCCActiveClass.权限组管理, usergroup.Ld.Value, ""); CFun.AlertMegT("保存成功!", "closeFlowPanel", ""); } else { CFun.AlertMegT("发生错误,请稍后再试!", "back", ""); } }
protected void Page_Load(object sender, EventArgs e) { string rStr = ""; string act = CFun.RequestPamStr("act"); switch (act) { case "getlogin": rStr = GetValueLogin(); break; case "getact": rStr = GetValueAct(); break; } Response.Write(rStr); Response.End(); }
protected void Page_Load(object sender, EventArgs e) { parentId = CFun.RequestPamStr("id"); parentId = parentId == "" ? "0" : parentId; parentName = CFun.RequestPamStr("mname"); }