Ejemplo n.º 1
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        string Redirect = String.Empty;

        //if (PIKCV.BUS.Test.UserTestPerfectionCtrl(this.smUserID)) { Redirect = this.smMemberType.ToString() + "-Membership-UserInfo"; }

        hlMatResult.NavigateUrl = "#" + this.smMemberType.ToString() + "-Membership-TestResults";
        if (CARETTA.COM.Util.IsNumeric(Request.QueryString["esr"]))
        {
            if (int.Parse(Request.QueryString["esr"]) == 1)
            {
                hlMatResult.NavigateUrl += "&esr=1";
                if (Redirect != String.Empty)
                {
                    Redirect += "&esr=1";
                }
            }
        }
        if (Redirect != String.Empty)
        {
            this.Redirect(Redirect);
        }


        UCVTabs1.TabActive(PIKCV.COM.Enumerations.CVTabs.TestResults);
        GetTestScore();
        if (this.dtTestScore.Rows.Count > 5)
        {
            FillTestScore();
        }

        liMAT.Visible = !PIKCV.BUS.Test.UserTestCtrl(this.smUserID);
        liYET.Visible = !PIKCV.BUS.Test.UserTestPerfectionCtrl(this.smUserID);
    }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     UImageUpload1.ImageUploaded += new UserControls_Common_uImageUpload.ImageUploadedDelegate(UImageUpload1_ImageUploaded);
     UImageUpload1.RaiseEvents    = true;
     UImageUpload1.ImageTooSmall += new UserControls_Common_uImageUpload.ImageTooSmallDelegate(UImageUpload1_ImageTooSmall);
     if (!this.smIsLogin)
     {
         this.Redirect("Employee-Membership-CV");
     }
     else
     {
         if (this.smPhotoFileName != String.Empty)
         {
             //if (this.smIsCvConfirmed) { this.Redirect("Employee-Membership-UserInfo"); }
             //else { this.Redirect("Employee-Membership-Tests"); }
             //imgUserPhoto.ImageUrl = "~/" + this.Config(PIKCV.COM.EnumUtil.Config.UserImagePath) + this.smPhotoFileName;
         }
         if (!IsPostBack)
         {
             imgUserPhoto.Attributes.Add("onerror", "this.src='" + this.Config(PIKCV.COM.EnumUtil.Config.UserImagePath) + "0.png';");
             FillImageDetail();
             UCVTabs1.TabActive(PIKCV.COM.Enumerations.CVTabs.Photo);
         }
     }
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         hlPersonalInfo.NavigateUrl = hlPersonalInfo.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.CVFocusCode.PersonalInfo).ToString());
         hlEducation.NavigateUrl    = hlEducation.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.CVFocusCode.Education).ToString());
         hlEmployment.NavigateUrl   = hlEmployment.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.CVFocusCode.Employment).ToString());
         hlSocial.NavigateUrl       = hlSocial.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.CVFocusCode.DriverLicense).ToString());
         hlPreferences.NavigateUrl  = hlPreferences.NavigateUrl.Replace("||FocusNo||", ((int)PIKCV.COM.EnumDB.CVFocusCode.EmploymentChooices).ToString());
     }
     CtrlStep();
     UCVTabs1.TabActive(PIKCV.COM.Enumerations.CVTabs.CV);
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     imgUserPhoto.ImageUrl = "~/Images/UserImages/";
     if (!IsPostBack)
     {
         SetEmployeeExaminet();
         //imgUserPhoto.Attributes.Add("onerror", "this.src='Images/UserImages/0.png';");
         txtEMail.ReadOnly = (this.smIsLogin);
         txtIdentityNo.ReadOnly = (this.smIsLogin);
         UCVTabs1.TabActive(PIKCV.COM.Enumerations.CVTabs.UserInfo);
     }
     if (this.smIsLogin) { 
         ltlDescription.Text = "Lütfen istediðiniz alanlarý güncelleyiniz";
         pnlPrivacy.Enabled = false;
         hlRemoveUser.NavigateUrl = this.OpenConfirm(PIKCV.COM.EnumDB.ErrorTypes.cRemoveMemberShip, 0);
     }
     trRemoveUser.Visible = this.smIsLogin;
 }
Ejemplo n.º 5
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        if (!this.smIsLogin)
        {
            this.Redirect("Employee-Membership-CV");
        }
        else
        {
            //imgUserPhoto.Attributes.Add("onerror", "this.src='Images/UserImages/Small/0.png';");
            UCVTabs1.TabActive(PIKCV.COM.Enumerations.CVTabs.CVOutput);

            PIKCV.BUS.Company obJComp = new PIKCV.BUS.Company();
            this.IsOwned = ((this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Company) && (obJComp.CheckBuyContactInfo(this.smCompanyID, this.smUserID)));
            if (IsOwned)
            {
                tContact.Visible     = true;
                trReferences.Visible = true;
                trMail.Visible       = true;
            }
            else
            {
                tContact.Visible     = (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Employee);
                trReferences.Visible = (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Employee);
                trMail.Visible       = (this.smMemberType == PIKCV.COM.EnumDB.MemberTypes.Employee);
            }

            GetData();
            FillData();

            if (this.smIsLogin == true)
            {
                ltlEditUser.Visible = true;
                ltlNewUser.Visible  = false;
            }
            else
            {
                ltlEditUser.Visible = false;
                ltlNewUser.Visible  = true;
            }
        }
    }
Ejemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.smIsLogin)
        {
            this.Redirect("Employee-Membership-CV");
        }
        else
        {
            if (!IsPostBack)
            {
                UCVTabs1.TabActive(PIKCV.COM.Enumerations.CVTabs.Test);

                imgBtnTest.Attributes.Add("onclick", "BeginTest(" + ((int)PIKCV.COM.EnumDB.TestTypeCode.General).ToString() + ")");
                imgBtnTest.Style.Add("cursor", "pointer");
                imgBtnTest2.Attributes.Add("onclick", "BeginTest(" + ((int)PIKCV.COM.EnumDB.TestTypeCode.General).ToString() + ")");
                imgBtnTest2.Style.Add("cursor", "pointer");

                imgBtnTestPerfection.Attributes.Add("onclick", "BeginTest(" + ((int)PIKCV.COM.EnumDB.TestTypeCode.Perfection).ToString() + ")");
                imgBtnTestPerfection.Style.Add("cursor", "pointer");
                imgBtnTestPerfection2.Attributes.Add("onclick", "BeginTest(" + ((int)PIKCV.COM.EnumDB.TestTypeCode.Perfection).ToString() + ")");
                imgBtnTestPerfection2.Style.Add("cursor", "pointer");

                ltlFullName.Text = CARETTA.COM.Util.SpecialName(this.smFirstName + ' ' + this.smLastName);

                pnlPerfectionLink.Visible = (this.smEmployeeType == PIKCV.COM.EnumDB.EmployeeTypes.Goodpik);

                pnlMatLink.Visible = (PIKCV.BUS.Test.UserTestCtrl(this.smUserID));
                if (pnlPerfectionLink.Visible)
                {
                    pnlPerfectionLink.Visible = (PIKCV.BUS.Test.UserTestPerfectionCtrl(this.smUserID));
                }
            }
            if (CARETTA.COM.Util.IsNumeric(Request.QueryString["Notice"]))
            {
                if (int.Parse(Request.QueryString["Notice"]) == 1)
                {
                    pnlTest.Visible           = false;
                    pnlTestPerfection.Visible = true;
                    UCVTabs1.AllTabsHide();
                    ltlTitleTestPerfection.Visible = true;
                    ltlTitleTest.Visible           = false;
                }
            }
            else
            {
                ltlTitleTestPerfection.Visible = false;
                ltlTitleTest.Visible           = true;
            }

            if ((CARETTA.COM.Util.IsNumeric(Request.QueryString["TestType"])) && (CARETTA.COM.Util.IsNumeric(Request.QueryString["Ref"])))
            {
                int TestTypeCode = int.Parse(Request.QueryString["TestType"]);
                if ((PIKCV.COM.EnumDB.TestTypeCode)TestTypeCode == PIKCV.COM.EnumDB.TestTypeCode.General)
                {
                    pnlTest.Visible         = false;
                    pnlTestGeneral1.Visible = true;
                    imgBtnTest.Visible      = false;
                    lnkTestGeneral2.Visible = false;
                }
                else if ((PIKCV.COM.EnumDB.TestTypeCode)TestTypeCode == PIKCV.COM.EnumDB.TestTypeCode.Perfection)
                {
                    pnlTest.Visible               = false;
                    pnlTestPerfection.Visible     = true;
                    imgBtnTest2.Visible           = false;
                    imgBtnTestPerfection.Visible  = false;
                    imgBtnTestPerfection2.Visible = false;
                    lnkTestPerfection2_1.Visible  = false;
                }
            }
        }
    }