/// <summary>
        /// Approved
        /// </summary>
        private void ChangeRequestStatus_Approved()
        {
            SealRequestsEntity sealRequestsEntity = CheckData();

            if (sealRequestsEntity != null)
            {
                //List<SealUnionRequestsEntity> list = app.GetSealUnionRequestsList(sealRequestsEntity.ID);
                if (app.SealRequestApproved(sealRequestsEntity.ID, UserInfo.ID))
                {
                    string mailTemplatePath = Server.MapPath(@"~\Template\SendEmailToSealed.txt");
                    string mailTemplate     = File.ReadAllText(mailTemplatePath);
                    string mailTitle        = "[Approved] " + sealRequestsEntity.Title;

                    UsersEntity usersEntity = new App.UserApplication().GetUser(sealRequestsEntity.RequestedBy);

                    foreach (SealUnionRequestsEntity user_unionEntity in app.GetSealedByList(sealRequestsEntity.ID))
                    {
                        string content = mailTemplate.Replace("[ClientName]", user_unionEntity.FirstName).Replace("[applicant]", usersEntity.FirstName)
                                         .Replace("[content]", sealRequestsEntity.Description);
#if !DEBUG
                        new SmtpClientEmailSender(new TextFileLogger()).SendMail(user_unionEntity.Email, Config.DefaultSendEmail, mailTitle, content);
#endif
                    }
                }
                else
                {
                    ShowFailMessageToClient(app.BrokenRuleMessages);
                }
            }
            else
            {
                ShowFailMessageToClient("unauthorized access.");
            }
        }
        /// <summary>
        /// Approved
        /// </summary>
        protected string Approved(int sealRequestID, HttpServerUtility server)
        {
            SealRequestsEntity sealRequestsEntity = CheckData(sealRequestID);

            if (sealRequestsEntity != null)
            {
                if (sealRequestsEntity.Status == RequestStatus.Submit)
                {
                    List <SealUnionRequestsEntity> list = app.GetSealUnionRequestsList(sealRequestsEntity.ID);
                    if (list.Find(r => r.ApprovedBy == UserID) != null)
                    {
                        if (app.SealRequestApproved(sealRequestsEntity.ID, true))
                        {
                            string mailTemplatePath = server.MapPath(@"~\Template\SendEmailToSealed.txt");
                            string mailTemplate     = File.ReadAllText(mailTemplatePath);
                            string mailTitle        = "[批准使用公章] " + sealRequestsEntity.Title;

                            UsersEntity usersEntity = new App.UserApplication().GetUser(sealRequestsEntity.RequestedBy);

                            foreach (SealUnionRequestsEntity user_unionEntity in app.GetSealedByList(sealRequestsEntity.ID))
                            {
                                string content = mailTemplate.Replace("[ClientName]", user_unionEntity.FirstName).Replace("[applicant]", usersEntity.FirstName)
                                                 .Replace("[content]", sealRequestsEntity.Description);

                                if (Config.IsTest)
                                {
                                    new SmtpClientEmailSender(new TextFileLogger()).SendMail(Config.TestMails, Config.DefaultSendEmail, mailTitle, content);
                                }
                                else
                                {
                                    new SmtpClientEmailSender(new TextFileLogger()).SendMail(user_unionEntity.Email, Config.DefaultSendEmail, mailTitle, content);
                                }
                            }
                            return("1");
                        }
                        else
                        {
                            return("2");
                        }
                    }
                    else
                    {
                        return("0");
                    }
                }
            }
            return("2");
        }