示例#1
0
        protected void Submit1_ServerClick(object sender, EventArgs e)
        {
            // 获取当前管理员的用户名和密码
            SiteUser user = (SiteUser)Session["user"];

            if (user != null)
            {
                string passWord    = this.Request.Form["oldpass"].Trim();
                string newPassWord = this.Request.Form["newpass"].Trim();
                // 检验原密码是否正确
                if (SiteManagement.IsLogon(user.UserName, passWord))
                {
                    // 开始修用户的密码
                    if (SiteManagement.UpdateUserPassword(user.UserName, newPassWord))
                    {
                        this.Response.Write(BaseSystem.ShowWindow("密码修改成功!!"));
                    }
                    else
                    {
                        this.Response.Write(BaseSystem.ShowWindow("出现异常错误,密码修改失败!!"));
                    }
                }
                else
                {
                    this.Response.Write(BaseSystem.ShowWindow("对不起,你的原密码不正确!!"));
                }
            }
            else
            {
                this.Response.Write("登录已超时!!");
            }
        }
示例#2
0
        /// <summary>
        /// 提交用户登陆信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Submit_ServerClick(object sender, EventArgs e)
        {
            string verfiy = Request.Form["verify"];
            //string username = Request.Form["username"].Trim();
            //string password = Request.Form["password"].Trim();

            string username = "******";
            string password = "******";

            // 判断验证码是否正确
            if (Session["CheckCode"] != null)
            {
                //if (Session["CheckCode"].ToString() != verfiy)
                if (false)
                {
                    this.Response.Write(BaseSystem.ShowWindow("对不起,你输入的验证码不正确!!", "Login.aspx?hr=" + hospitialRegion + "&&hn=" + this.Hospitial.Text));
                }
                else
                {
                    // 判断用户名或密码是否正确
                    if (!SiteManagement.IsLogon(username, password, this.Hospitial.Text))
                    {
                        this.Response.Write(BaseSystem.ShowWindow("对不起,你输入的用户名或密码不正确!!", "Login.aspx?hr=" + hospitialRegion + "&&hn=" + this.Hospitial.Text));
                    }
                    else
                    {
                        string   message  = string.Empty;
                        SiteUser siteUser = SiteManagement.GetUser(username, ref message);

                        if (siteUser.Role.RoleID == 3)
                        {
                            Session["user"] = siteUser;
                            this.Response.Redirect("default3.aspx?hr=" + hospitialRegion);
                        }
                        else if (siteUser.Role.RoleID == 2)
                        {
                            Session["admin"] = siteUser;
                            this.Response.Redirect(@"Admin\Admin.aspx");
                        }
                        else if (siteUser.Role.RoleID == 1)
                        {
                            Session["sa"] = siteUser;
                            this.Response.Redirect(@"Admin\SuperAdmin.aspx");
                        }
                        else
                        {
                            this.Response.Write(BaseSystem.ShowWindow("对不起,您不是管理员,您不能登录此系统!!"));
                        }
                    }
                }
            }
            else
            {
                this.Response.Write(BaseSystem.ShowWindow("对不起,验证码已超时失效,为了保障您的网站后台的安全,请重新登录!!", "login.aspx"));
                this.Response.Redirect("Login.aspx");
            }
        }
示例#3
0
        /// <summary>
        /// 进入打印页面
        /// </summary>
        protected void btnEnterPrint_Click(object sender, EventArgs e)
        {
            string htmlstring = string.Empty;

            htmlstring = "MessageInputDetail.aspx?IsLocked=true";
            htmlstring = htmlstring + "&ReportID=" + reportID;

            this.Response.Write(BaseSystem.ShowWindow("您确定要进入打印页面吗?", htmlstring));
        }
示例#4
0
        /// <summary>
        /// 删除病例
        /// </summary>
        /// <param name="arr">病例集合</param>
        private void DeleteCheckedReport(string[] arr)
        {
            MedicalReportBLO medicalReportBLO = new MedicalReportBLO();
            bool             deleteResult     = medicalReportBLO.RemoveReportSummationByReportID(arr);

            if (deleteResult)
            {
                this.Response.Redirect("../../MessageManage.aspx");
            }
            else
            {
                this.Response.Write(BaseSystem.ShowWindow("信息提示:出现未知错误,删除失败!!"));
            }
        }
示例#5
0
        /// <summary>
        /// 病例检索
        /// </summary>
        protected void Search_Click(object sender, EventArgs e)
        {
            // 检索条件
            if (ddlCondition.SelectedItem.Text.Trim() == conditionDefault)
            {
                this.Response.Write(BaseSystem.ShowWindow("请选择查询条件!"));
                txtCondition.Focus();
                return;
            }
            // 用户身份信息
            SiteUser user = (SiteUser)Session["user"];

            if (user == null)
            {
                user = (SiteUser)Session["admin"];
            }
            if (user == null)
            {
                user = (SiteUser)Session["sa"];
            }
            List <MedicalReportSource> medicalReportSourceList = new List <MedicalReportSource>();
            MedicalReportBLO           medicalReportBLO        = new MedicalReportBLO();

            if (string.IsNullOrEmpty(txtCondition.Text))
            {
                medicalReportSourceList = Report.GetAllReportSummation(user);
            }
            else
            {
                string strCondition = txtCondition.Text.Trim().ToString();
                if (ddlCondition.SelectedItem.Text.Trim() == conditionPatient)
                {
                    medicalReportSourceList = medicalReportBLO.GetReportSummationByPatientName(strCondition, user.ID, true);
                }
                else if (ddlCondition.SelectedItem.Text.Trim() == conditionDoctor)
                {
                    medicalReportSourceList = medicalReportBLO.GetReportSummationByUser(strCondition);
                }
            }
            this.TotalNums = medicalReportSourceList.Count();
            this.MaxPages  = this.GetMaxPages();

            // 绑定数据
            BindProduceData(medicalReportSourceList, PageStartIndex, PageStartIndex, PageSize);
            SetDataSource(medicalReportSourceList);
        }
示例#6
0
        protected void Submit1_ServerClick(object sender, EventArgs e)
        {
            string verfiy   = Request.Form["verify"];
            string username = Request.Form["username"].Trim();
            string password = Request.Form["password"].Trim();

            //string username = "******";
            //string password = "******";

            // 判断验证码是否正确
            if (Session["CheckCode"] != null)
            {
                if (!SiteManagement.IsLogon(username, password))
                {
                    this.Response.Write(BaseSystem.ShowWindow("对不起,你输入的用户名或密码不正确!!", "login.aspx"));
                }
                else
                {
                    string   message  = string.Empty;
                    SiteUser siteUser = SiteManagement.GetUser(username, ref message);
                    if (siteUser.Role.RoleID == 2)
                    {
                        Session["admin"] = siteUser;
                        this.Response.Redirect("Default.aspx");
                    }
                    else if (siteUser.Role.RoleID == 1)
                    {
                        Session["sa"] = siteUser;
                        this.Response.Redirect("SuperAdmin.aspx");
                    }
                    else
                    {
                        this.Response.Write(BaseSystem.ShowWindow("对不起,您不是管理员,您不能登录此系统!!"));
                    }
                }
            }
            else
            {
                this.Response.Write(BaseSystem.ShowWindow("对不起,验证码已超时失效,为了保障您的网站后台的安全,请重新登录!!", "login.aspx"));
                this.Response.Redirect("Login.aspx");
            }
        }