コード例 #1
0
        private void btnLinkTest_Click(object sender, EventArgs e)
        {
            this.btnLinkTest.Enabled = false;
            bool mesFlg = messageCheck();

            if (mesFlg)
            {
                this.btnLinkTest.Enabled = true;
                return;
            }
            NetWorkFileShare netWorkFileShare = new NetWorkFileShare();
            string           serverFolderPath = @"\\" + this.txtTrIp.Text.Trim();

            if (netWorkFileShare.ConnectState(serverFolderPath, txtTraccount.Text.Trim(), txtTrPass.Text.Trim()))
            {
                MsgHelper.InfoMsg(ValidationRegex.C001, ValidationRegex.publicTitle);
                this.connectFlg           = true;
                this.btnReference.Enabled = true;
            }
            else
            {
                MsgHelper.InfoMsg(ValidationRegex.C002, ValidationRegex.publicTitle);
                this.connectFlg           = false;
                this.btnReference.Enabled = false;
            }
            this.btnLinkTest.Enabled = true;
        }
コード例 #2
0
        private void btnRun_Click(object sender, EventArgs e)
        {
            this.btnRun.Enabled = false;
            try
            {
                bool isAuto = this.rdBtnAuto.Checked;
                //set 自動 or 手動
                ConfigurationManager.AppSettings["ControlFlg"] = isAuto ? "1" : "0";

                //配置中设定的时间:
                //DateTime startTime = DateTime.Parse(ConfigurationManager.AppSettings["BatchStartTime"]);
                //DateTime endTime = DateTime.Parse(ConfigurationManager.AppSettings["BatchEndTime"]);

                //自动:结束时间设为此时的上一分钟,明天在设置的开始时间自动执行;
                //手动:使得结束时间在此时的后两小时,可以立即执行
                //ConfigurationManager.AppSettings["BatchEndTime"] = isAuto ? startTime.AddHours(3).ToString("HH:mm") : endTime.AddHours(2).ToString("HH:mm");

                BudFileListen budFileListen = new BudFileListen();
                this.Hide();
                budFileListen.Show();
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message);
                MsgHelper.InfoMsg("失敗しました", "失敗提示");
                Application.Exit();
            }
        }
コード例 #3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            bool mesFlg = messageCheck();

            if (mesFlg)
            {
                return;
            }
            else
            {
                string id = this.txtTrId.Text;
                //save operation
                //BackupServer backupServer = new BackupServer();
                this.innerBackupServerGroup.monitorServerID       = this.cobMonitorServer.SelectedValue.ToString();
                this.innerBackupServerGroup.backupServerGroupName = innerBackupServer.backupServerName = this.txtTrName.Text.Trim();
                innerBackupServer.backupServerIP       = this.txtTrIp.Text.Trim();
                this.innerBackupServerGroup.memo       = innerBackupServer.memo = this.txtTrMemo.Text.Trim();
                innerBackupServer.account              = this.txtTraccount.Text.Trim();
                innerBackupServer.password             = this.txtTrPass.Text.Trim();
                innerBackupServer.startFile            = this.txtTrStfile.Text.Trim();
                innerBackupServer.ssbpath              = this.txtssbpath.Text.Trim();
                this.innerBackupServerGroup.deleteFlg  = innerBackupServer.deleteFlg = 0;
                this.innerBackupServerGroup.creater    = innerBackupServer.creater = FrmMain.userinfo.loginID;
                this.innerBackupServerGroup.createDate = innerBackupServer.createDate = CommonUtil.DateTimeNowToString();
                this.innerBackupServerGroup.updater    = innerBackupServer.updater = FrmMain.userinfo.loginID;
                this.innerBackupServerGroup.updateDate = innerBackupServer.updateDate = CommonUtil.DateTimeNowToString();

                IBackupServerService backupService = BLLFactory.ServiceAccess.CreateBackupServer();
                //int flag = -1;
                if (id == "")
                {
                    if (MsgHelper.QuestionMsg(ValidationRegex.Q001, ValidationRegex.publicTitle))
                    {
                        ProgressbarEx.Progress.StartProgessBar(new ProgressbarEx.ShowProgess(saveOperation));
                    }
                    if (innerFlag > -1)
                    {
                        MsgHelper.InfoMsg(ValidationRegex.I001, ValidationRegex.publicTitle);
                        gFlag = true;
                        this.Dispose();
                    }
                }
                else
                {
                    innerBackupServer.id = id;
                    if (MsgHelper.QuestionMsg(ValidationRegex.Q002, ValidationRegex.publicTitle))
                    {
                        ProgressbarEx.Progress.StartProgessBar(new ProgressbarEx.ShowProgess(updateOperation));
                    }

                    if (innerFlag > -1)
                    {
                        MsgHelper.InfoMsg(ValidationRegex.U001, ValidationRegex.publicTitle);
                        gFlag = true;
                        this.Dispose();
                    }
                }
            }
        }
コード例 #4
0
 /// <summary>
 /// Load
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BudFileTransfer_Load(object sender, EventArgs e)
 {
     try
     {
         dgrdMain_Load();
         ThreadTimer.Enabled = true;
     }
     catch (Exception ex)
     {
         logger.Error(ex.Message);
         MsgHelper.InfoMsg("失敗しました", "失敗提示");
         Application.Exit();
     }
 }
コード例 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgrdMain_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex >= 0)
         {
             DataGridViewColumn column = dgrdMain.Columns[e.ColumnIndex];
             if (column is DataGridViewButtonColumn)
             {
                 int CIndex = e.ColumnIndex;
                 //get the column index
                 //get the monitor server record id
                 string monitorServerId = dgrdMain[0, e.RowIndex].Value.ToString();
                 string backupGroupid   = dgrdMain[3, e.RowIndex].Tag.ToString();
                 if (CIndex == 5)
                 {
                     if (backupGroupid != "0")
                     {
                         if (dgrdMain[5, e.RowIndex].Tag.ToString() == "0")
                         {
                             //Transfer
                             bool result = ButtonTansferStart(monitorServerId, backupGroupid, e.RowIndex);
                             if (!result)
                             {
                                 MsgHelper.InfoMsg("転送が失敗しました", "失敗提示");
                             }
                         }
                         else
                         {
                             MsgHelper.InfoMsg("今転送中します", "成功提示");
                         }
                     }
                     else
                     {
                         MsgHelper.InfoMsg("バックアップ先未選択", "失敗提示");
                     }
                 }
                 if (CIndex == 6)
                 {
                     ButtonTansferStop(monitorServerId, e.RowIndex);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex.Message);
     }
 }
コード例 #6
0
ファイル: BudBackupCopy.cs プロジェクト: hst-bridge/BBS
        private void buttonTest_Click(object sender, EventArgs e)
        {
            NetWorkFileShare netWorkFileShare = new NetWorkFileShare();
            string           sharePath        = @"\\" + this.textBoxIP.Text.Trim();

            if (netWorkFileShare.ConnectState(sharePath, textBoxUserID.Text.Trim(), textBoxPassword.Text.Trim()))
            {
                MsgHelper.InfoMsg(ValidationRegex.C001, ValidationRegex.publicTitle);
                this.buttonTest.Enabled      = false;
                this.connectFlg              = true;
                this.buttonCopyStart.Enabled = true;
            }
            else
            {
                MsgHelper.InfoMsg(ValidationRegex.C002, ValidationRegex.publicTitle);
                this.buttonTest.Enabled      = true;
                this.connectFlg              = false;
                this.buttonCopyStart.Enabled = false;
            }
        }
コード例 #7
0
ファイル: FrmGroupDetail.cs プロジェクト: hst-bridge/BBS
        private void btnGroupDetailSave_Click(object sender, EventArgs e)
        {
            IBackupServerService            bs = BLLFactory.ServiceAccess.CreateBackupServer();
            IBackupServerGroupDetailService backGroupDetail = BLLFactory.ServiceAccess.CreateBackupServerGroupDetailService();
            //get the combobox selected value
            string selectGroupId = this.cobBKServerGroup.SelectedValue.ToString();

            if (MsgHelper.QuestionMsg(ValidationRegex.Q002, ValidationRegex.publicTitle))
            {
                int delFlg = backGroupDetail.DeleteBackupServerGroupDetailByGroupId(Convert.ToInt32(selectGroupId), FrmMain.userinfo.loginID);
                if (delFlg > -1)
                {
                    for (int i = 0; i < this.dgrdMonitorServer.Rows.Count; i++)
                    {
                        BackupServerGroupDetail bsgd = new BackupServerGroupDetail();
                        string backupServerId        = this.dgrdMonitorServer.Rows[i].Cells[0].Value.ToString();
                        bsgd.backupServerGroupId = Convert.ToInt32(selectGroupId);
                        bsgd.backupServerId      = Convert.ToInt32(backupServerId);
                        bsgd.creater             = FrmMain.userinfo.loginID;
                        bsgd.createDate          = DateTime.Now.ToString();
                        bsgd.updater             = FrmMain.userinfo.loginID;
                        bsgd.updateDate          = DateTime.Now.ToString();
                        int insertFlg = backGroupDetail.InsertBackupServerGroupDetail(bsgd);
                        if (insertFlg > -1)
                        {
                            MsgHelper.InfoMsg(ValidationRegex.I001, ValidationRegex.publicTitle);
                            this.Dispose();
                        }
                        else
                        {
                            MsgHelper.InfoMsg(ValidationRegex.I002, ValidationRegex.publicTitle);
                        }
                    }
                }
            }
        }
コード例 #8
0
ファイル: FrmGroupTransfer.cs プロジェクト: hst-bridge/BBS
        private void btnSave_Click(object sender, EventArgs e)
        {
            string nameMessage   = ValidationRegex.ValidteEmpty(this.lblName.Text, this.txtMonitorName.Text);
            string serverMessage = ValidationRegex.ValidteEmpty(this.lblServer.Text, this.cobMonitorServer.Text);

            if (nameMessage != "")
            {
                MsgHelper.WarningMsg(nameMessage, ValidationRegex.publicTitle);
                return;
            }
            else if (serverMessage != "")
            {
                MsgHelper.WarningMsg(serverMessage, ValidationRegex.publicTitle);
                return;
            }
            else
            {
                string id = this.txtMonitorId.Text;
                //save operation
                //BackupServerGroup backupServerGroup = new BackupServerGroup();

                innerBackupServerGroup.backupServerGroupName = this.txtMonitorName.Text.Trim();
                innerBackupServerGroup.monitorServerID       = this.cobMonitorServer.SelectedValue.ToString();
                innerBackupServerGroup.memo       = this.txtMonitorMemo.Text.Trim();
                innerBackupServerGroup.deleteFlg  = 0;
                innerBackupServerGroup.creater    = FrmMain.userinfo.loginID;
                innerBackupServerGroup.createDate = CommonUtil.DateTimeNowToString();
                innerBackupServerGroup.updater    = FrmMain.userinfo.loginID;
                innerBackupServerGroup.updateDate = CommonUtil.DateTimeNowToString();

                //IBackupServerGroupService backupService = BLLFactory.ServiceAccess.CreateBackupServerGroupService();
                //int flag = -1;
                if (id == "")
                {
                    IList <BackupServerGroup> existLists = backupService.GetBackupServerGroupByName(this.txtMonitorName.Text.Trim());
                    if (existLists.Count > 0)
                    {
                        string msg = ValidationRegex.W008;
                        msg = msg.Replace("{1}", this.lblName.Text);
                        MsgHelper.WarningMsg(msg, ValidationRegex.publicTitle);
                    }
                    else
                    {
                        if (MsgHelper.QuestionMsg(ValidationRegex.Q001, ValidationRegex.publicTitle))
                        {
                            ProgressbarEx.Progress.StartProgessBar(new ProgressbarEx.ShowProgess(saveOperation));
                        }
                        if (innerFlag > -1)
                        {
                            MsgHelper.InfoMsg(ValidationRegex.I001, ValidationRegex.publicTitle);
                            gFlag = true;
                            this.Dispose();
                        }
                    }
                }
                else
                {
                    innerBackupServerGroup.id = id;
                    if (MsgHelper.QuestionMsg(ValidationRegex.Q002, ValidationRegex.publicTitle))
                    {
                        ProgressbarEx.Progress.StartProgessBar(new ProgressbarEx.ShowProgess(updateOperation));
                    }
                    if (innerFlag > -1)
                    {
                        MsgHelper.InfoMsg(ValidationRegex.U001, ValidationRegex.publicTitle);
                        gFlag = true;
                        this.Dispose();
                    }
                }
            }
        }
コード例 #9
0
ファイル: FrmObject.cs プロジェクト: hst-bridge/BBS
        /// <summary>
        /// save or update button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSave_Click(object sender, EventArgs e)
        {
            bool mesFlg = messageCheck();

            if (mesFlg)
            {
                return;
            }
            else
            {
                string id = this.txtId.Text;
                //save operation
                //MonitorServer monitorServer = new MonitorServer();
                innerMonitorServer.monitorServerName = this.txtMonitorName.Text.Trim();
                innerMonitorServer.monitorServerIP   = this.txtMonitorIp.Text.Trim();
                innerMonitorServer.monitorSystem     = 1;
                innerMonitorServer.memo             = this.txtMonitorMemo.Text.Trim();
                innerMonitorServer.account          = this.txtMonitorAccount.Text.Trim();
                innerMonitorServer.password         = this.txtMonitorPass.Text.Trim();
                innerMonitorServer.startFile        = this.txtMonitorStfile.Text.Trim().TrimEnd('\\');
                innerMonitorServer.monitorDrive     = "\\\\" + this.txtMonitorIp.Text.Trim() + "\\" + this.txtMonitorStfile.Text.Trim().TrimEnd('\\');
                innerMonitorServer.monitorDriveP    = "";
                innerMonitorServer.monitorLocalPath = this.txtLocalPath.Text.Trim();
                innerMonitorServer.monitorMacPath   = this.txtMacPath.Text.Trim();
                // Top Directory コピーするかどうか
                if (checkBoxTopDirFile.Checked)
                {
                    innerMonitorServer.copyInit = 1;
                }
                else
                {
                    innerMonitorServer.copyInit = 0;
                }
                innerMonitorServer.deleteFlg = 0;
                if (id == "")
                {
                    innerMonitorServer.creater    = FrmMain.userinfo.loginID;
                    innerMonitorServer.createDate = CommonUtil.DateTimeNowToString();
                }
                else
                {
                    innerMonitorServer.creater    = monitorServer.creater;
                    innerMonitorServer.createDate = monitorServer.createDate;
                }
                innerMonitorServer.updater    = FrmMain.userinfo.loginID;
                innerMonitorServer.updateDate = CommonUtil.DateTimeNowToString();

                //IMonitorServerService monitorService = BLLFactory.ServiceAccess.CreateMonitorServerService();
                //IMonitorServerFolderService imsfs = BLLFactory.ServiceAccess.CreateMonitorServerFolderService();
                //int flag = -1;
                if (id == "")
                {
                    IList <MonitorServer> existLists = monitorService.GetMonitorServerListByName(this.txtMonitorName.Text.Trim());
                    if (existLists.Count > 0)
                    {
                        string msg = ValidationRegex.W008;
                        msg = msg.Replace("{1}", this.lblName.Text);
                        MsgHelper.WarningMsg(msg, ValidationRegex.publicTitle);
                    }
                    else
                    {
                        if (MsgHelper.QuestionMsg(ValidationRegex.Q001, ValidationRegex.publicTitle))
                        {
                            ProgressbarEx.Progress.StartProgessBar(new ProgressbarEx.ShowProgess(saveOperation));
                        }
                        if (innerFlag > -1)
                        {
                            MsgHelper.InfoMsg(ValidationRegex.I001, ValidationRegex.publicTitle);
                            gFlag = true;
                            this.Dispose();
                        }
                    }
                }
                else
                {
                    innerMonitorServer.id = id;
                    if (MsgHelper.QuestionMsg(ValidationRegex.Q002, ValidationRegex.publicTitle))
                    {
                        ProgressbarEx.Progress.StartProgessBar(new ProgressbarEx.ShowProgess(updateOperation));
                    }
                    if (innerFlag > -1)
                    {
                        MsgHelper.InfoMsg(ValidationRegex.U001, ValidationRegex.publicTitle);
                        gFlag = true;
                        this.Dispose();
                    }
                }
            }
        }
コード例 #10
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            IFileTypeSetService IFileTypeSetService = BLLFactory.ServiceAccess.CreateFileTypeSetService();
            FileTypeSet         fileTypeSet         = new FileTypeSet();

            if (msFolderName != "")
            {
                fileTypeSet.monitorServerFolderName = msFolderName;
            }
            fileTypeSet.monitorServerID     = Convert.ToInt32(mServerID);
            fileTypeSet.exceptAttribute1    = "";
            fileTypeSet.exceptAttribute2    = "";
            fileTypeSet.exceptAttribute3    = "";
            fileTypeSet.exceptAttributeFlg1 = "0";
            fileTypeSet.exceptAttributeFlg2 = "0";
            fileTypeSet.exceptAttributeFlg3 = "0";
            fileTypeSet.systemFileFlg       = "0";
            fileTypeSet.hiddenFileFlg       = "0";
            if (this.chkExceptAttr1.Checked == true && this.txtExceptAttr1.Text.Trim() != "")
            {
                fileTypeSet.exceptAttributeFlg1 = "1";
            }
            if (this.txtExceptAttr1.Text.Trim() != "")
            {
                fileTypeSet.exceptAttribute1 = this.txtExceptAttr1.Text.Trim();
            }
            if (this.chkExceptAttr2.Checked == true && this.txtExceptAttr2.Text.Trim() != "")
            {
                fileTypeSet.exceptAttributeFlg2 = "1";
            }
            if (this.txtExceptAttr2.Text.Trim() != "")
            {
                fileTypeSet.exceptAttribute2 = this.txtExceptAttr2.Text.Trim();
            }
            if (this.chkExceptAttr3.Checked == true && this.txtExceptAttr3.Text.Trim() != "")
            {
                fileTypeSet.exceptAttributeFlg3 = "1";
            }
            if (this.txtExceptAttr3.Text.Trim() != "")
            {
                fileTypeSet.exceptAttribute3 = this.txtExceptAttr3.Text.Trim();
            }
            //if (this.chkSystemFileFlg.Checked == true)
            //{
            //    fileTypeSet.systemFileFlg = "1";
            //}
            //if (this.chkHiddenFileFlg.Checked == true)
            //{
            //    fileTypeSet.hiddenFileFlg = "1";
            //}
            fileTypeSet.deleteFlg  = 0;
            fileTypeSet.creater    = FrmMain.userinfo.loginID;
            fileTypeSet.createDate = CommonUtil.DateTimeNowToString();
            fileTypeSet.updater    = FrmMain.userinfo.loginID;
            fileTypeSet.updateDate = CommonUtil.DateTimeNowToString();

            FileTypeSet fts = IFileTypeSetService.GetFileTypeSetByMonitorServerIdAndFolderName(mServerID, msFolderName);

            if (fts.id != "" && fts.id != null)
            {
                fileTypeSet.id = fts.id;
                int updateFlg = -1;
                if (MsgHelper.QuestionMsg(ValidationRegex.Q002, ValidationRegex.publicTitle))
                {
                    try
                    {
                        updateFlg = IFileTypeSetService.UpdateFileTypeSet(fileTypeSet);
                    }
                    catch (Exception ex)
                    {
                        logger.Error(ex.Message);
                    }
                }
                if (updateFlg > -1)
                {
                    MsgHelper.InfoMsg(ValidationRegex.U001, ValidationRegex.publicTitle);
                    gFlag = true;
                    this.Dispose();
                }
                else
                {
                    MsgHelper.InfoMsg(ValidationRegex.U002, ValidationRegex.publicTitle);
                }
            }
            else
            {
                int insertFlg = -1;
                if (this.txtExceptAttr1.Text.Trim() != "" ||
                    this.txtExceptAttr2.Text.Trim() != "" ||
                    this.txtExceptAttr3.Text.Trim() != "" ||
                    this.chkHiddenFileFlg.Checked == true ||
                    this.chkSystemFileFlg.Checked == true)
                {
                    if (MsgHelper.QuestionMsg(ValidationRegex.Q002, ValidationRegex.publicTitle))
                    {
                        try
                        {
                            insertFlg = IFileTypeSetService.InsertFileTypeSet(fileTypeSet);
                        }
                        catch (Exception ex)
                        {
                            logger.Error(ex.Message);
                        }
                    }
                }
                if (this.txtExceptAttr1.Text.Trim() == "" &&
                    this.txtExceptAttr2.Text.Trim() == "" &&
                    this.txtExceptAttr3.Text.Trim() == "" ||
                    this.chkHiddenFileFlg.Checked == true ||
                    this.chkSystemFileFlg.Checked == true)
                {
                    insertFlg = 0;
                }
                if (insertFlg > -1)
                {
                    MsgHelper.InfoMsg(ValidationRegex.I001, ValidationRegex.publicTitle);
                    gFlag = true;
                    this.Dispose();
                }
                else
                {
                    MsgHelper.InfoMsg(ValidationRegex.I002, ValidationRegex.publicTitle);
                }
            }
            this.DialogResult = DialogResult.OK;
        }
コード例 #11
0
ファイル: FrmAuth.cs プロジェクト: hst-bridge/BBS
        private void btnAuthSave_Click(object sender, EventArgs e)
        {
            string loginIDMessage = ValidationRegex.ValidteEmpty(this.lblAuEditLoginId.Text, this.txtAuEditLoginId.Text);
            string passMessage    = ValidationRegex.ValidteEmpty(this.lblAuEditLoginPass.Text, this.txtAuEditLoginPass.Text);
            string nameMessage    = ValidationRegex.ValidteEmpty(this.lblAuEditName.Text, this.txtAuEditName.Text);
            string mailMessage    = ValidationRegex.ValidteEmpty(this.lblAuEditMail.Text, this.txtAuEditMail.Text);

            if (loginIDMessage != "")
            {
                MsgHelper.WarningMsg(loginIDMessage, ValidationRegex.publicTitle);
                return;
            }
            else if (passMessage != "")
            {
                MsgHelper.WarningMsg(passMessage, ValidationRegex.publicTitle);
                return;
            }
            else if (nameMessage != "")
            {
                MsgHelper.WarningMsg(nameMessage, ValidationRegex.publicTitle);
                return;
            }
            else if (mailMessage != "")
            {
                MsgHelper.WarningMsg(mailMessage, ValidationRegex.publicTitle);
                return;
            }
            else
            {
                string id = this.txtAuthEditId.Text;
                //save operation
                UserInfo userInfo = new UserInfo();

                userInfo.loginID  = this.txtAuEditLoginId.Text;
                userInfo.password = this.txtAuEditLoginPass.Text;
                userInfo.name     = this.txtAuEditName.Text;
                userInfo.mail     = this.txtAuEditMail.Text;
                if (this.rbAuthMailYes.Checked == true)
                {
                    userInfo.mailFlg = 1;
                }
                else
                {
                    userInfo.mailFlg = 0;
                }
                if (this.rbAuthFlgYes.Checked == true)
                {
                    userInfo.authorityFlg = 1;
                }
                else
                {
                    userInfo.authorityFlg = 0;
                }
                userInfo.deleteFlg  = 0;
                userInfo.creater    = FrmMain.userinfo.loginID;
                userInfo.createDate = CommonUtil.DateTimeNowToString();
                userInfo.updater    = FrmMain.userinfo.loginID;
                userInfo.updateDate = CommonUtil.DateTimeNowToString();

                IUserInfoService userInfoService = BLLFactory.ServiceAccess.CreateUserInfoService();

                int flag = -1;
                if (id == "")
                {
                    if (MsgHelper.QuestionMsg(ValidationRegex.Q001, ValidationRegex.publicTitle))
                    {
                        flag = userInfoService.InsertUserInfo(userInfo);
                    }
                    if (flag > -1)
                    {
                        MsgHelper.InfoMsg(ValidationRegex.I001, ValidationRegex.publicTitle);
                        this.Dispose();
                    }
                    else
                    {
                        MsgHelper.InfoMsg(ValidationRegex.I002, ValidationRegex.publicTitle);
                    }
                }
                else
                {
                    userInfo.id = id;
                    if (MsgHelper.QuestionMsg(ValidationRegex.Q002, ValidationRegex.publicTitle))
                    {
                        flag = userInfoService.UpdateUserInfo(userInfo);
                    }
                    if (flag > -1)
                    {
                        MsgHelper.InfoMsg(ValidationRegex.U001, ValidationRegex.publicTitle);
                        this.Dispose();
                    }
                    else
                    {
                        MsgHelper.InfoMsg(ValidationRegex.U002, ValidationRegex.publicTitle);
                    }
                }
            }
        }