protected void Page_Load(object sender, EventArgs e) { int userid = BLL.Util.GetLoginUserID(); EmployeeAgent a = BLL.EmployeeAgent.Instance.GetEmployeeAgentByUserID(userid); if (a.RegionID.HasValue) { RegionID = a.RegionID.Value; } if (!IsPostBack) { long intVal = 0; if (KID != string.Empty && long.TryParse(KID, out intVal)) { //如果是编辑 BindKnowledgeInfo(); BindFiles(); this.knowID.Value = KID; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int userid = BLL.Util.GetLoginUserID(); EmployeeAgent a = BLL.EmployeeAgent.Instance.GetEmployeeAgentByUserID(userid); if (a.RegionID.HasValue) { RegionID = a.RegionID.Value; } bindKnowledgeCategory(); int kid = 0; int.TryParse(KID, out kid); Control ctl; if (kid > 0) { this.Title = "编辑试题"; ctl = this.LoadControl("~/KnowledgeLib/UCKnowledgeLib/UCQuestionEdit.ascx", kid); } else { this.Title = "添加试题"; ctl = this.LoadControl("~/KnowledgeLib/UCKnowledgeLib/UCQuestionAdd.ascx"); } this.phQuestion.Controls.Add(ctl); } }
/// <summary> /// 保存对坐席所属分组的修改 /// </summary> /// <param name="errMsg"></param> /// <returns></returns> private string SaveBusinessGroupSetting(string errMsg) { try { string[] userArr = UserIDs.Split(','); string[] bgidArr = BGIDS.Split(','); if (bgidArr.Length > 0 && !string.IsNullOrEmpty(bgidArr[0])) { EmployeeAgent model; for (int i = 0; i < userArr.Length; i++) { model = BitAuto.ISDC.CC2012.BLL.EmployeeAgent.Instance.GetEmployeeAgentByUserID(Convert.ToInt32(userArr[i])); if (model == null) { model = new EmployeeAgent(); } model.UserID = Convert.ToInt32(userArr[i]); model.BGID = Convert.ToInt32(bgidArr[0]); model.RegionID = ReginId; model.CreateUserID = BLL.Util.GetLoginUserID(); BitAuto.ISDC.CC2012.BLL.EmployeeAgent.Instance.Update(model); } } } catch (Exception ex) { errMsg = "modifyErr"; } return(errMsg); }
protected void Page_Load(object sender, EventArgs e) { int userid = BLL.Util.GetLoginUserID(); EmployeeAgent a = BLL.EmployeeAgent.Instance.GetEmployeeAgentByUserID(userid); if (a.RegionID.HasValue) { RegionID = a.RegionID.Value; } bindKnowledgeCategory(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int userid = BLL.Util.GetLoginUserID(); EmployeeAgent a = BLL.EmployeeAgent.Instance.GetEmployeeAgentByUserID(userid); if (a.RegionID.HasValue) { RegionID = a.RegionID.Value; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataAddButton = BLL.Util.CheckButtonRight("SYS024MOD3201"); right_btnCategory = BLL.Util.CheckRight(BLL.Util.GetLoginUserID(), "SYS024MOD3204"); right_NewFAQ = BLL.Util.CheckRight(BLL.Util.GetLoginUserID(), "SYS024MOD3202"); right_NewQuestion = BLL.Util.CheckRight(BLL.Util.GetLoginUserID(), "SYS024MOD3203"); bindCreateUser(); int userid = BLL.Util.GetLoginUserID(); EmployeeAgent a = BLL.EmployeeAgent.Instance.GetEmployeeAgentByUserID(userid); if (a.RegionID.HasValue) { RegionID = a.RegionID.Value; } } }