Пример #1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (IsPageValid())
            {
                int             TesId = Convert.ToInt32(Request["TechMaScoreId"].ToString());
                TechMaScoreInfo tms   = new TechMaScoreInfo(TesId);

                tms.DateSpan    = ddlYear.SelectedItem.Text + "年" + ddlMonth.SelectedItem.Text + "月";
                tms.YearId      = Convert.ToInt32(ddlYear.SelectedValue.ToString());
                tms.MonthId     = Convert.ToInt32(ddlMonth.SelectedValue.ToString());
                tms.SelfScore1  = Request.Form["Project1"].ToString();
                tms.SelfScore2  = Request.Form["Project2"].ToString();
                tms.SelfScore3  = Request.Form["Project3"].ToString();
                tms.SelfScore4  = Request.Form["Project4"].ToString();
                tms.SelfScore5  = Request.Form["Project5"].ToString();
                tms.SelfScore6  = Request.Form["Project6"].ToString();
                tms.SelfScore7  = Request.Form["Project7"].ToString();
                tms.SelfScore8  = Request.Form["Project8"].ToString();
                tms.SelfScore9  = Request.Form["Project9"].ToString();
                tms.SelfScore10 = Request.Form["Project10"].ToString();
                tms.SelfScore11 = Request.Form["Project11"].ToString();
                tms.SelfScore12 = Request.Form["Project12"].ToString();
                tms.SelfScore13 = Request.Form["Project13"].ToString();
                tms.Save();
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('保存成功!');</script>");
            }
        }
Пример #2
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     if (ddlYear.SelectedValue == "" || ddlMonth.SelectedValue == "")
     {
         Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('请选择评价时间!');</script>");
     }
     else
     {
         int             emid = Convert.ToInt32(Session["EmployeeId"]);
         TechMaScoreInfo tms  = new TechMaScoreInfo();
         tms.EmployeeId      = emid;
         tms.DateSpan        = ddlYear.SelectedItem.Text + "年" + ddlMonth.SelectedItem.Text + "月";
         tms.YearId          = Convert.ToInt32(ddlYear.SelectedValue.ToString());
         tms.MonthId         = Convert.ToInt32(ddlMonth.SelectedValue.ToString());
         tms.SelfScore1      = Request.Form["Project1"].ToString();
         tms.SelfScore2      = Request.Form["Project2"].ToString();
         tms.SelfScore3      = Request.Form["Project3"].ToString();
         tms.SelfScore4      = Request.Form["Project4"].ToString();
         tms.SelfScore5      = Request.Form["Project5"].ToString();
         tms.SelfScore6      = Request.Form["Project6"].ToString();
         tms.SelfScore7      = Request.Form["Project7"].ToString();
         tms.SelfScore8      = Request.Form["Project8"].ToString();
         tms.SelfScore9      = Request.Form["Project9"].ToString();
         tms.SelfScore10     = Request.Form["Project10"].ToString();
         tms.SelfScore11     = Request.Form["Project11"].ToString();
         tms.SelfScore12     = Request.Form["Project12"].ToString();
         tms.SelfScore13     = Request.Form["Project13"].ToString();
         tms.EvaluateLevelId = 6;
         tms.IsSubmit        = 0;
         tms.Save();
         Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('保存成功!');</script>");
     }
 }
Пример #3
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            int             TechMaScoreId = Convert.ToInt32(((Button)sender).CommandArgument.ToString());
            TechMaScoreInfo tms           = new TechMaScoreInfo(TechMaScoreId);

            tms.IsSubmit = 1;
            int          recvid = Convert.ToInt32(Common.getEmployeeIdOfManager());
            EmployeeInfo em     = new EmployeeInfo(Convert.ToInt32(tms.EmployeeId));
            EmployeeInfo ems    = new EmployeeInfo(recvid);

            MessageInfo.Msgs1(recvid, tms.TechMaScoreId, "~/Score/TechMaScoreApprove.aspx", em.EmployeeName + "绩效考核申请", em.EmployeeName, "daiban", em.EmployeeName + "绩效考核申请");
            //MessageInfo.SendMail(ems.Qq, "绩效考核申请", em.EmployeeName + "绩效考核申请");
            tms.Save();
            gvDataBind();
        }
Пример #4
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            int             tmsid = Convert.ToInt32(Request["TechMaScoreId"].ToString());
            TechMaScoreInfo tms   = new TechMaScoreInfo(tmsid);

            tms.UpScore1  = Request.Form["project1"].ToString();
            tms.UpScore2  = Request.Form["project2"].ToString();
            tms.UpScore3  = Request.Form["project3"].ToString();
            tms.UpScore4  = Request.Form["project4"].ToString();
            tms.UpScore5  = Request.Form["project5"].ToString();
            tms.UpScore6  = Request.Form["project6"].ToString();
            tms.UpScore7  = Request.Form["project7"].ToString();
            tms.UpScore8  = Request.Form["project8"].ToString();
            tms.UpScore9  = Request.Form["project9"].ToString();
            tms.UpScore10 = Request.Form["project10"].ToString();
            tms.UpScore11 = Request.Form["project11"].ToString();
            tms.UpScore12 = Request.Form["project12"].ToString();
            tms.UpScore13 = Request.Form["project13"].ToString();


            tms.SectScore1  = Convert.ToString(Math.Round(float.Parse(lblSelfProject1.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project1"].ToString()), 2) * 0.6);
            tms.SectScore2  = Convert.ToString(Math.Round(float.Parse(lblSelfProject2.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project2"].ToString()), 2) * 0.6);
            tms.SectScore3  = Convert.ToString(Math.Round(float.Parse(lblSelfProject3.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project3"].ToString()), 2) * 0.6);
            tms.SectScore4  = Convert.ToString(Math.Round(float.Parse(lblSelfProject4.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project4"].ToString()), 2) * 0.6);
            tms.SectScore5  = Convert.ToString(Math.Round(float.Parse(lblSelfProject5.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project5"].ToString()), 2) * 0.6);
            tms.SectScore6  = Convert.ToString(Math.Round(float.Parse(lblSelfProject6.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project6"].ToString()), 2) * 0.6);
            tms.SectScore7  = Convert.ToString(Math.Round(float.Parse(lblSelfProject7.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project7"].ToString()), 2) * 0.6);
            tms.SectScore8  = Convert.ToString(Math.Round(float.Parse(lblSelfProject8.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project8"].ToString()), 2) * 0.6);
            tms.SectScore9  = Convert.ToString(Math.Round(float.Parse(lblSelfProject9.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project9"].ToString()), 2) * 0.6);
            tms.SectScore10 = Convert.ToString(Math.Round(float.Parse(lblSelfProject10.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project10"].ToString()), 2) * 0.6);
            tms.SectScore11 = Convert.ToString(Math.Round(float.Parse(lblSelfProject11.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project11"].ToString()), 2) * 0.6);
            tms.SectScore12 = Convert.ToString(Math.Round(float.Parse(lblSelfProject12.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project12"].ToString()), 2) * 0.6);
            tms.SectScore13 = Convert.ToString(Math.Round(float.Parse(lblSelfProject13.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["project13"].ToString()), 2) * 0.6);


            tms.TotalScore = Request.Form["hid"].ToString();
            tms.UpView     = Request.Form["tViews"].ToString();


            float Score = float.Parse(Request.Form["hid"].ToString());

            if (Score > 90)
            {
                tms.EvaluateLevelId = 2;
            }
            else if (Score > 75 && Score < 90)
            {
                tms.EvaluateLevelId = 3;
            }
            else if (Score > 60 && Score < 75)
            {
                tms.EvaluateLevelId = 4;
            }
            else if (Score < 60)
            {
                tms.EvaluateLevelId = 5;
            }
            tms.IsSubmit = 2;
            tms.Save();
            Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('保存成功!');</script>");
        }