private void btnOperName_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            //修改用户名称
            Oper oper = (Oper)Session[ConstValue.LOGIN_USER_SESSION];

            try
            {
                oper.cnvcOperName = txtOperName.Text;
                Dept    curDept = Session[ConstValue.LOGIN_DEPT_SESSION] as Dept;
                Oper    curOper = Session[ConstValue.LOGIN_USER_SESSION] as Oper;
                BusiLog busiLog = new BusiLog();
                busiLog.cndOperDate  = DateTime.Now;
                busiLog.cnnSerial    = Guid.NewGuid();
                busiLog.cnvcOperName = curOper.cnvcOperName;
                busiLog.cnvcComments = "修改操作员名称:" + oper.cnvcOperName;
                busiLog.cnvcDeptID   = curDept.cnvcDeptID;
                busiLog.cnvcDeptName = curDept.cnvcDeptName;
                busiLog.cnvcOperType = "BS006";
                busiLog.cnvcSource   = "网站";

                OperFacade.UpdatePwd(oper, busiLog);
                CommonStatic.LoadOperDictionary();
                Session[ConstValue.LOGIN_USER_SESSION] = oper;
                Popup("用户名称已修改!");
            }
            catch (BusinessException bex)
            {
                Popup(bex.Message);
                return;
            }
        }
        private void btnOK_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            //添加用户
            try
            {
                if (txtOperID.Text.Length == 0 || txtOperName.Text.Length == 0)
                {
                    throw new BusinessException("AddOper", "不能为空!");
                }

                if (GetLength(txtOperID.Text) > 8)
                {
                    throw new BusinessException("", "操作员ID过长!");
                }
                if (GetLength(txtOperName.Text) > 20)
                {
                    throw new BusinessException("", "操作员姓名过长!");
                }
                Oper oper = new Oper();
                oper.cnvcOperName = txtOperID.Text;
                Oper oldOper = OperFacade.GetOper(oper);
                if (oldOper == null)
                {
                    oper.cnvcOperName = txtOperName.Text;
                    oper.cnvcPwd      = "666666";
                    //OperFacade.AddOper(oper);
                    Popup("新建用户成功!");
                }
                else
                {
                    Popup("用户已存在!");
                }

                CommonStatic.LoadOperDictionary();
            }
            catch (BusinessException bex)
            {
                Popup(bex.Message);
            }
        }