Пример #1
0
    bool IBaseControl.LoginControl(string Email, string Password)
    {
        PIKCV.BUS.User objUser = new PIKCV.BUS.User();

        if (objUser.LoginControl(Email, Password))
        {
            this.smUserID           = objUser.UserID;
            this.smIsLogin          = true;
            this.smEmployeeType     = objUser.EmployeeType;
            this.smFirstName        = objUser.FirstName;
            this.smIsEmailConfirmed = objUser.IsEmailConfirmed;
            this.smIsCvActive       = objUser.IsCVActive;
            this.smIsCvConfirmed    = objUser.IsCVConfirmed;
            this.smLastLoginDate    = objUser.LastLoginDate;
            this.smLastName         = objUser.LastName;
            this.smUserEmail        = objUser.Email;
            this.smMemberType       = PIKCV.COM.EnumDB.MemberTypes.Employee;

            PIKCV.BUS.UserCVs objUserCvs = new PIKCV.BUS.UserCVs();
            DataTable         dtUserCV   = objUserCvs.GetUserCV(this.smUserID);
            if (dtUserCV.Rows.Count < 1)
            {
                this.smCVFocus       = PIKCV.COM.EnumDB.CVFocusCode.PersonalInfo;
                this.smPhotoFileName = String.Empty;
            }
            else
            {
                this.smCVFocus       = (PIKCV.COM.EnumDB.CVFocusCode)(Convert.ToInt32(dtUserCV.Rows[0]["CvFocusCode"]));
                this.smPhotoFileName = dtUserCV.Rows[0]["PhotoFileName"].ToString().Trim();
            }
            return(true);
        }
        return(false);
    }
Пример #2
0
    protected void imgContinue_Click(object sender, ImageClickEventArgs e)
    {
        string ErrMsg = String.Empty;
        string Email = txtEMail.Text.Trim();
        string Password = txtPassword.Text.Trim();
        string IdentityNo = txtIdentityNo.Text.Trim();

        if (Util.isNeedClearString(Email)) { ErrMsg += PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.ValidationEmail); }
        if (Util.isNeedClearString(Password)) { ErrMsg += PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.ValidationPassword); }
        if (Util.isNeedClearString(IdentityNo)) { ErrMsg += PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.ValidationIdentity); }

        if (ErrMsg == String.Empty)
        {
            PIKCV.BUS.User objUser = new PIKCV.BUS.User();

            if ((this.smIsLogin) || (!objUser.UserExist(Email, IdentityNo)))
            {
                int SavedUserID = objUser.SaveUserInfo(this.smUserID, txtName.Text, txtSurName.Text, Email, IdentityNo, Password, txtPrivateQuestion.Text, txtPrivateAnswer.Text, chIsWantedSMS.Checked);
                this.smFirstName = txtName.Text;
                this.smLastName = txtSurName.Text;
                if (SavedUserID > 0)
                {
                    if (!this.smIsLogin)
                    {
                        string ActivationCode = PIKCV.COM.Util.CreateActivationNumber(SavedUserID);
                        if (objUser.SaveActivation(SavedUserID, ActivationCode))
                        {
                            //Aktivasyon Linkini Mail Yolla 
                            if (MailTemplates.Send_Tmp_Activation(MailTemplates.Activation, ActivationCode, SavedUserID, this.smFirstName, this.smLastName, Email))
                            {
                                this.Redirect("Employee-Membership-CV");    //2.Adýma Yönlendir 
                            }
                            else
                            {
                                ErrMsg += PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.OkSaveNoSendMail); //**
                            }
                        }
                    }
                    else
                    {
                        this.Redirect("Employee-Membership-CV");
                    }
                }
                else
                {
                    ErrMsg += PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoSave);
                }
            }
            else
            {
                ErrMsg += PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.UserExist);
            }
        }
        this.ShowError(ErrMsg);
    }
Пример #3
0
    protected void ImgBtnSend_Click(object sender, ImageClickEventArgs e)
    {
        PIKCV.BUS.User objUser = new PIKCV.BUS.User();
        DataRow        drUser  = null;

        if (trEmail.Visible)
        {
            drUser = objUser.GetUserByEmail(txtEmail.Text);
            if (drUser != null)
            {
                trEmail.Visible          = false;
                trSecretQuestion.Visible = true;
                trSecretAnswer.Visible   = true;
                this.fpUserID            = Convert.ToInt32(drUser["UserID"]);
                ltlSecretQuestion.Text   = drUser["SecretQuestion"].ToString();
                ltlInfoMessage.Text      = "Þifreniz gizli soruya verdiðiniz cevaptan sonra e-posta adresinize gönderilecektir";
            }
            else
            {
                Response.Write("<script>alert('Bu eposta adresi ile kayýtlý kullanýcý bulunamadý!')</script>");
            }
        }
        else if (trSecretQuestion.Visible)
        {
            DataTable dtUserDetail = objUser.GetUserDetail(this.fpUserID);
            if (dtUserDetail.Rows[0]["SecretAnswer"].ToString() == txtSecretAnswer.Text.Trim())
            {
                string Pass  = Encryption.Decrypt(dtUserDetail.Rows[0]["Password"].ToString());
                string Email = dtUserDetail.Rows[0]["Email"].ToString();
                if (MailTemplates.Send_Tmp_ForgotPass(MailTemplates.ForgotPassword, Pass, dtUserDetail.Rows[0]["FirstName"].ToString(), dtUserDetail.Rows[0]["LastName"].ToString(), Email))
                {
                    //Response.Write("<script>alert('Þifreniz Email Adresinize Gönderildi')</script>");
                    //this.GoToDefaultPage();
                    this.GoToFeedback(PIKCV.COM.EnumDB.ErrorTypes.ForgotPassword);
                }
                else
                {
                    Response.Write("<script>alert('Þifreniz Email Adresinize Gönderirken Hata Oluþtu')</script>");
                }
            }
            else
            {
                this.smSecretAnswerCount++;

                if (this.smSecretAnswerCount >= MaxSecretAnswerCount)
                {
                    Cookie objCook = new Cookie();
                    objCook.Write(PIKCV.COM.EnumUtil.Cookies.UserIP, Request.ServerVariables["REMOTE_ADDR"].ToString());
                }
                dvScript.InnerHtml = "<script>alert('Gizli sorunuzun cevabýný yanlýþ girdiniz, tekrar giriþ yapýnýz')</script>";
            }
        }
    }
Пример #4
0
    private void GetTestScore()
    {
        if (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Company)
        {
            PIKCV.BUS.User objUser = new PIKCV.BUS.User();
            this.EmployeeType = (PIKCV.COM.EnumDB.EmployeeTypes)Convert.ToInt32(objUser.GetUserDetail(this.smUserID).Rows[0]["EmployeeTypeCode"]);
        }
        else
        {
            this.EmployeeType = this.smEmployeeType;
        }

        this.dtTestScore = PIKCV.BUS.Test.GetTestScore(PIKCV.COM.EnumDB.TestTypeCode.General, this.smUserID, this.smLanguageID, EmployeeType);
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        try
        {
            this.TestDate = Convert.ToDateTime(objUserCV.GetUserCV(this.smUserID).Rows[0]["TestMatDate"]);
        }
        catch (Exception) { }
    }
Пример #5
0
    private void GetData()
    {
        PIKCV.BUS.User    objUser   = new PIKCV.BUS.User();
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        this.dtUser   = objUser.GetUserDetail(this.smUserID);
        this.dtUserCV = objUserCV.GetUserCV(this.smUserID);
        this.dtUserComputerKnowledge = objUserCV.GetUserComputerKnowledges(this.smUserID, (int)this.smLanguageID);

        this.dtUserEducationUniversity0 = objUserCV.GetUserEducations(this.smUserID, PIKCV.COM.EnumDB.EducationTypes.University0, PIKCV.COM.EnumDB.LanguageID.Turkish, false);
        this.dtUserEducationUniversity1 = objUserCV.GetUserEducations(this.smUserID, PIKCV.COM.EnumDB.EducationTypes.University1, PIKCV.COM.EnumDB.LanguageID.Turkish, false);
        this.dtUserEducationUniversity2 = objUserCV.GetUserEducations(this.smUserID, PIKCV.COM.EnumDB.EducationTypes.University2, PIKCV.COM.EnumDB.LanguageID.Turkish, false);
        this.dtUserEducationDoktorate   = objUserCV.GetUserEducations(this.smUserID, PIKCV.COM.EnumDB.EducationTypes.Doktorate, PIKCV.COM.EnumDB.LanguageID.Turkish, false);

        this.dtUserEmployment           = objUserCV.GetUserEmployment(this.smUserID, (int)this.smLanguageID);
        this.dtUserLabouringTypes       = objUserCV.GetUserLabouringTypes(this.smUserID, (int)this.smLanguageID);
        this.dtUserLanguages            = objUserCV.GetUserLanguages(this.smUserID, (int)this.smLanguageID);
        this.dtUserPlacementPreferences = objUserCV.GetUserPlaces(this.smUserID, (int)this.smLanguageID);
        this.dtUserPositions            = objUserCV.GetUserPositions(this.smUserID, (int)this.smLanguageID);
        this.dtUserReferences           = objUserCV.GetUserReferences(this.smUserID);
        this.dtUserSectors = objUserCV.GetUserSectors(this.smUserID, (int)this.smLanguageID);
    }
Пример #6
0
 protected void CVStatusChange(object sender, EventArgs e)
 {
     PIKCV.BUS.User objUser = new PIKCV.BUS.User();
     if (objUser.UpdateCVStatus(this.smUserID, chIsCvActive.Checked))
     {
         this.smIsCvActive = chIsCvActive.Checked;
         if (this.smIsCvActive)
         {
             ShowModal.Show(UserControls_Common_uModalPopup.Icons.info, "ÖZGEÇMÝÞ DURUM DEÐÝÞÝMÝ", "Özgeçmiþiniz aktif hale gelmiþtir", false);
         }
         else
         {
             ShowModal.Show(UserControls_Common_uModalPopup.Icons.info, "ÖZGEÇMÝÞ DURUM DEÐÝÞÝMÝ", "Özgeçmiþiniz pasif hale gelmiþtir", false);
         }
     }
     else
     {
         ShowModal.Show(UserControls_Common_uModalPopup.Icons.error, PIKCV.COM.Data.GetErrorMessageTitleCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.CVNoConfirmed), PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.CVNoConfirmed), false);
         chIsCvActive.Checked = false;
     }
     //Response.Redirect(Util.ReturnPageName());
 }
Пример #7
0
    private void FillUserNames()
    {
        ArrayList arrUsers = this.smMessageUserIDs;
        string    UserName = "";

        for (int i = 0; i < arrUsers.Count; i++)
        {
            PIKCV.BUS.User obj = new PIKCV.BUS.User();
            DataTable      dt  = obj.GetUserDetail(Convert.ToInt32(arrUsers[i]));
            if (dt.Rows.Count > 0)
            {
                UserName = dt.Rows[0]["FirstName"].ToString() + " " + dt.Rows[0]["LastName"].ToString();
            }
            if (i != 0)
            {
                lbUserNames.Text = lbUserNames.Text + ", " + UserName;
            }
            else
            {
                lbUserNames.Text = UserName;
            }
        }
    }
Пример #8
0
    private void FillDetails(int UserID)
    {
        PIKCV.BUS.User obj = new PIKCV.BUS.User();
        DataTable      dt  = obj.GetUserInterviewPikcv(UserID);

        if (dt.Rows.Count > 0)
        {
            lbInterviewDate.Text   = string.Format("{0:d}", dt.Rows[0]["InterviewDate"]);
            lbInterviewResult.Text = dt.Rows[0]["InterviewResult"].ToString();
            lbRequestedWage.Text   = dt.Rows[0]["RequestedWage"].ToString();
            lbTakingWage.Text      = dt.Rows[0]["TakingWage"].ToString();
            lbAveragePoints.Text   = dt.Rows[0]["AveragePoints"].ToString();
            lbWorkLeaveReason.Text = dt.Rows[0]["WorkLeaveReason"].ToString();
            dt = obj.GetUserInterviewPikcvPropertiesPoints(Convert.ToInt32(dt.Rows[0]["InterviewPikcvID"]), (int)this.smLanguageID);
            CARETTA.COM.DataBindHelper.BindRepeater(ref rptIntervies, dt);
            pnlNoRecord.Visible = false;
            pnlRecord.Visible   = true;
        }
        else
        {
            pnlNoRecord.Visible = true;
            pnlRecord.Visible   = false;
        }
    }
Пример #9
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        PIKCV.BUS.User objUser = new PIKCV.BUS.User();
        if (this.smIsLogin)
        {
            DataTable dtUser = objUser.GetUserDetail(this.smUserID);
            if (dtUser.Rows.Count > 0)
            {
                if (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Employee)
                {
                    txtName.Text = dtUser.Rows[0]["FirstName"].ToString();
                    txtSurName.Text = dtUser.Rows[0]["LastName"].ToString();
                    txtEMail.Text = dtUser.Rows[0]["Email"].ToString();
                    txtIdentityNo.Text = dtUser.Rows[0]["IdentityNo"].ToString();
                    txtPrivateQuestion.Text = dtUser.Rows[0]["SecretQuestion"].ToString();
                    txtPrivateAnswer.Text = dtUser.Rows[0]["SecretAnswer"].ToString();
                    chIsWantedSMS.Checked = Convert.ToBoolean(dtUser.Rows[0]["IsWantedSMS"]);
                    dvScript.InnerHtml = "<script>document.getElementById('chAggreement').checked = true; document.getElementById('chPrivacy').checked = true;</script>";
                    rqrPass.Enabled = false;
                    rqrPass2.Enabled = false;
                    CustomValidatorPassword.Enabled = false;
                    pnlCompany.Visible = false;
                    pnlEmployee.Visible = true;

                    ltlTitle.Visible = false;
                    ltlTitle2.Visible = false;
                    ltlTitle3.Visible = true;
                }
                else if (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Company || this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.TemporaryUser)
                {
                    lblPersonnelNameHeader.Text = "Adý:";
                    lblPersonnelSurnameHeader.Text = "Soyadý:";

                    trMsg.Visible = false;
                    lblName.Text = dtUser.Rows[0]["FirstName"].ToString();
                    lblSurName.Text = dtUser.Rows[0]["LastName"].ToString();

                    ltlTitle.Visible = false;
                    ltlTitle2.Visible = true;
                    ltlTitle2.Text = Util.SpecialName(lblName.Text + " " + lblSurName.Text);
                    ltlTitle3.Visible = false;

                    pnlEmployee.Visible = false;
                    pnlCompany.Visible = true;

                    // Get Company Folders
                    DataTable dtCOmpanyFolders = new DataTable();
                    PIKCV.BUS.Company Comp = new PIKCV.BUS.Company();
                    dtCOmpanyFolders = Comp.GetCompanyFolders(this.smCompanyID, false, false);
                    CARETTA.COM.DataBindHelper.BindDDL(ref ddlCompanyFolders, dtCOmpanyFolders, "FolderName", "FolderID", "", PIKCV.COM.Data.GetErrorMessageCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.SendFolder), "0");
                    
                    // Önceden bu herifin bilgileri alýnmýþ mý?
                    if (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Company)
                    {
                        imgBuyContactInfo.Visible = !(CheckBuyContactInfo(this.smCompanyID, this.smUserID));
                        liInterview.Visible = !(imgBuyContactInfo.Visible);
                        liSendMessage.Visible = !(imgBuyContactInfo.Visible);
                    }
                    else
                    {
                        imgBuyContactInfo.Visible = false;
                        liInterview.Visible = false;
                        liSendMessage.Visible = false;
                        ddlCompanyFolders.Visible = false;
                        liSentToFile.Visible = false;
                    }
                    
                    // Pozisyon
                    PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
                    DataTable dtUserPositions = new DataTable();
                    dtUserPositions = objUserCV.GetUserPositions(this.smUserID, (int)this.smLanguageID);
                    DataBindHelper.BindRepeater(ref rptUserPositions, dtUserPositions);
                    
                    // Tecrübe
                    DataTable dtUserCV = new DataTable();
                    dtUserCV = objUserCV.GetUserCV(this.smUserID);
                    int UserAge = DateTime.Now.Year - (Convert.ToDateTime(dtUserCV.Rows[0]["BirthDate"]).Year);
                    lblAge.Text = UserAge.ToString();

                    if (!imgBuyContactInfo.Visible)
                    {
                        trAddress.Visible = true;
                        trEmail.Visible = true;
                        trPhoto.Visible = true;
                        lblAddress.Text = dtUserCV.Rows[0]["HomeAddress"].ToString();
                        lblPhone.Text = dtUserCV.Rows[0]["HomePhone"].ToString();
                        lblEmail.Text = dtUser.Rows[0]["Email"].ToString();
                    }
                    else {
                        trAddress.Visible = false;
                        trEmail.Visible = false;
                        trPhoto.Visible = false;
                    }

                    ltlTotalWorkExperience.Text = dtUserCV.Rows[0]["TotalWorkExperience"].ToString();
                    this.smPhotoFileName = dtUserCV.Rows[0]["PhotoFileName"].ToString();
                }
            }
        }

        imgUserPhoto.ImageUrl += this.smPhotoFileName;
        if (!(System.IO.File.Exists(Request.MapPath(imgUserPhoto.ImageUrl))))
        {
            imgUserPhoto.ImageUrl = "~/Images/UserImages/0.png";
        }

        //txtPassword.Text = "Pass" + Util.CreateRandomNumber(6);
        //txtPassword2.Text = txtPassword.Text;
        //txtIdentityNo.Text = Util.CreateRandomNumber(11);
        //txtPrivateQuestion.Text = "Soru" + Util.CreateRandomNumber(5);
        //txtPrivateAnswer.Text = "Cevap" + Util.CreateRandomNumber(5);
    }
Пример #10
0
    private void GetTestScore()
    {
        if (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Company)
        {
            PIKCV.BUS.User objUser = new PIKCV.BUS.User();
            this.EmployeeType = (PIKCV.COM.EnumDB.EmployeeTypes)Convert.ToInt32(objUser.GetUserDetail(this.smUserID).Rows[0]["EmployeeTypeCode"]);
        }
        else
        {
            this.EmployeeType = this.smEmployeeType;
        }

        this.dtTestScore = PIKCV.BUS.Test.GetTestPerfectionScore(this.smUserID);
        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();
        try
        {
            this.TestDate = Convert.ToDateTime(objUserCV.GetUserCV(this.smUserID).Rows[0]["TestYetDate"]);
        }
        catch (Exception) { }

        int ActiveRowIndex = 0;

        float GroupLevelScore1 = 0;
        float GroupLevelScore2 = 0;
        float GroupLevelScore3 = 0;

        string Description  = String.Empty;
        int    PerfectionID = 0;
        int    LevelID      = 0;

        DataRow   dr;
        DataTable dtScoreResult;

        for (int i = 0; i <= 30; i = i + 6)
        {
            GroupLevelScore1 = ReturnLevelPoint(i);
            GroupLevelScore2 = ReturnLevelPoint(i + 2);
            GroupLevelScore3 = ReturnLevelPoint(i + 4);

            if (GroupLevelScore1 > GroupLevelScore2)
            {
                ActiveRowIndex = i;
            }
            else if (GroupLevelScore1 < GroupLevelScore2)
            {
                ActiveRowIndex = i + 2;
            }
            else if ((GetSmallPoint(i)) > (GetSmallPoint(i + 2)))
            {
                ActiveRowIndex = i;
            }
            else
            {
                ActiveRowIndex = i + 2;
            }

            if (ActiveRowIndex == i)
            {
                if (GroupLevelScore1 > GroupLevelScore3)
                {
                    ActiveRowIndex = i;
                }
                else if (GroupLevelScore1 < GroupLevelScore3)
                {
                    ActiveRowIndex = i + 4;
                }
                else if ((GetSmallPoint(i)) > (GetSmallPoint(i + 4)))
                {
                    ActiveRowIndex = i;
                }
                else
                {
                    ActiveRowIndex = i + 4;
                }
            }

            if (ActiveRowIndex == i + 2)
            {
                if (GroupLevelScore2 > GroupLevelScore3)
                {
                    ActiveRowIndex = i + 2;
                }
                else if (GroupLevelScore2 > GroupLevelScore3)
                {
                    ActiveRowIndex = i + 4;
                }
                else if ((GetSmallPoint(i + 2)) > (GetSmallPoint(i + 4)))
                {
                    ActiveRowIndex = i + 2;
                }
                else
                {
                    ActiveRowIndex = i + 4;
                }
            }


            dr = this.dtTestScore.Rows[ActiveRowIndex];

            PerfectionID = Convert.ToInt32(dr["PerfectionID"]);
            LevelID      = Convert.ToInt32(dr["TestLevelID"]);

            dtScoreResult = PIKCV.BUS.Test.GetTestPerfectionResult(this.EmployeeType, this.smLanguageID, PerfectionID, LevelID);
            Description   = dtScoreResult.Rows[0]["Description"].ToString();

            AddDtAllInfo(PerfectionID, dr["PerfectionName"].ToString(), LevelID, dr["LevelCode"].ToString(), Description);
        }
    }
Пример #11
0
    private void NotificationCtrl()
    {
        DataRow drError = null;

        PIKCV.BUS.UserCVs objUserCV = new PIKCV.BUS.UserCVs();

        //CV si var mý?
        if (objUserCV.GetUserCV(this.smUserID).Rows.Count < 1)
        {
            pnlCVCtrl.Visible     = true;
            drError               = PIKCV.COM.Data.GetErrorCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoticeNOCV);
            ltlCVCtrlTitle.Text   = drError["ErrorTitle"].ToString();
            ltlCVCtrlMessage.Text = drError["Message"].ToString();
        }
        else
        {
            //Test Çözülmüþ mü Kontrol
            if (PIKCV.BUS.Test.UserTestCtrl(this.smUserID))
            {
                pnlTestCtrl.Visible = true;
                if (this.smEmployeeType == PIKCV.COM.EnumDB.EmployeeTypes.Pikpool)
                {
                    drError = PIKCV.COM.Data.GetErrorCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoticeTestCtrl);
                }
                else
                {
                    drError = PIKCV.COM.Data.GetErrorCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoticeTestCtrlForGoodPik);
                }
                ltlTestTitle.Text   = drError["ErrorTitle"].ToString();
                ltlTestMessage.Text = drError["Message"].ToString();
            }
            else if (this.smIsCvConfirmed)
            {
                //CV Güncel Kontrol
                DataTable dtUserCV     = objUserCV.GetUserCV(this.smUserID);
                DateTime  CVModifyDate = Convert.ToDateTime(dtUserCV.Rows[0]["ModifyDate"]);
                if (CVModifyDate < DateTime.Now.AddMonths((int.Parse(this.Config(PIKCV.COM.EnumUtil.Config.CVActualMonth))) * -1))
                {
                    pnlActualCtrl.Visible = true;
                    drError               = PIKCV.COM.Data.GetErrorCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoticeActualCtrl);
                    ltlActualTitle.Text   = drError["ErrorTitle"].ToString();
                    ltlActualMessage.Text = drError["Message"].ToString();
                }

                //CV Aktiflik Kontrol
                PIKCV.BUS.User objUser = new PIKCV.BUS.User();
                if (!Convert.ToBoolean(objUser.GetUserDetail(this.smUserID).Rows[0]["IsCVActive"]))
                {
                    pnlCVActive.Visible     = true;
                    drError                 = PIKCV.COM.Data.GetErrorCache(this.cmbErrors, PIKCV.COM.EnumDB.ErrorTypes.NoticeCvActiveCtrl);
                    ltlCVActiveTitle.Text   = drError["ErrorTitle"].ToString();
                    ltlCVActiveMessage.Text = drError["Message"].ToString();
                }
                else
                {
                    pnlCVActive.Visible = false;
                }
            }
        }
        pnlNotification.Visible = true;
        pnlNotification.Visible = (!((!pnlCVCtrl.Visible) && (!pnlActualCtrl.Visible) && (!pnlTestCtrl.Visible) && (!pnlCVActive.Visible)));
    }