protected void btnSave_Click(object sender, EventArgs e)
        {
            if (IsPageValid())
            {
                int fsid = Convert.ToInt32(Request.Form["AsScoreId"].ToString());
                AssistantScoreInfo fs = new AssistantScoreInfo(fsid);
                fs.YearId = Convert.ToInt32(ddlYear.SelectedValue);
                fs.MonthId = Convert.ToInt32(ddlMonth.SelectedValue);
                fs.DateSpan = ddlYear.SelectedItem.Text + "��" + ddlMonth.SelectedItem.Text + "��";

                fs.Selfas1 = Request.Form["Selfas1"].ToString();
                fs.Selfas2 = Request.Form["Selfas2"].ToString();
                fs.Selfas3 = Request.Form["Selfas3"].ToString();
                fs.Selfas4 = Request.Form["Selfas4"].ToString();
                fs.Selfas5 = Request.Form["Selfas5"].ToString();
                fs.Selfas6 = Request.Form["Selfas6"].ToString();
                fs.Selfas7 = Request.Form["Selfas7"].ToString();
                fs.Selfas8 = Request.Form["Selfas8"].ToString();
                fs.Selfas9 = Request.Form["Selfas9"].ToString();
                fs.Selfas10 = Request.Form["Selfas10"].ToString();
                fs.Selfas11 = Request.Form["Selfas11"].ToString();
                fs.Selfas12 = Request.Form["Selfas12"].ToString();
                fs.Selfas13 = Request.Form["Selfas13"].ToString();
                fs.Selfas14 = Request.Form["Selfas14"].ToString();
                fs.Selfas15 = Request.Form["Selfas15"].ToString();
                fs.Selfas16 = Request.Form["Selfas16"].ToString();
                fs.Selfas17 = Request.Form["Selfas17"].ToString();
                fs.Selfas18 = Request.Form["Selfas18"].ToString();
                fs.Selfas19 = Request.Form["Selfas19"].ToString();
                fs.Save();
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('����ɹ���');</script>");
            }
        }
Example #2
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     int AsScoreId = Convert.ToInt32(((Button)sender).CommandArgument.ToString());
     AssistantScoreInfo at = new AssistantScoreInfo(AsScoreId);
     at.IsSubmit = 1;
     int recvid = Convert.ToInt32(Common.getEmployeeIdOfMarketManager());
     EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(at.EmployeeId));
     EmployeeInfo ems = new EmployeeInfo(recvid);
     MessageInfo.Msgs1(recvid, at.AssistantScoreId, "~/Score/AsistantScoreApprove.aspx", em.EmployeeName + "����������", em.EmployeeName, "daiban", em.EmployeeName + "����������");
     MessageInfo.SendMail(ems.Qq, "����������", em.EmployeeName + "����������");
     at.Save();
     gvDataBind();
 }
Example #3
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (IsPageValid())
            {
                int emid = Convert.ToInt32(Session["EmployeeId"]);
                AssistantScoreInfo at = new AssistantScoreInfo();
                at.EmployeeId = emid;
                at.YearId = Convert.ToInt32(ddlYear.SelectedValue);
                at.MonthId = Convert.ToInt32(ddlMonth.SelectedValue);
                at.DateSpan = ddlYear.SelectedItem.Text + "��" + ddlMonth.SelectedItem.Text + "��";
                at.EvaluateLevelId = 6;
                at.TotalScore = "����";
                at.IsSubmit = 0;

                at.Selfas1 = Request.Form["Selfas1"].ToString();
                at.Selfas2 = Request.Form["Selfas2"].ToString();
                at.Selfas3 = Request.Form["Selfas3"].ToString();
                at.Selfas4 = Request.Form["Selfas4"].ToString();
                at.Selfas5 = Request.Form["Selfas5"].ToString();
                at.Selfas6 = Request.Form["Selfas6"].ToString();
                at.Selfas7 = Request.Form["Selfas7"].ToString();
                at.Selfas8 = Request.Form["Selfas8"].ToString();
                at.Selfas9 = Request.Form["Selfas9"].ToString();
                at.Selfas10 = Request.Form["Selfas10"].ToString();
                at.Selfas11 = Request.Form["Selfas11"].ToString();
                at.Selfas12 = Request.Form["Selfas12"].ToString();
                at.Selfas13 = Request.Form["Selfas13"].ToString();
                at.Selfas14 = Request.Form["Selfas14"].ToString();
                at.Selfas15 = Request.Form["Selfas15"].ToString();
                at.Selfas16 = Request.Form["Selfas16"].ToString();
                at.Selfas17 = Request.Form["Selfas17"].ToString();
                at.Selfas18 = Request.Form["Selfas18"].ToString();
                at.Selfas19 = Request.Form["Selfas19"].ToString();
                at.Save();
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('����ɹ���');</script>");
            }
        }
 public object SaveAssistantScoreInfo(AssistantScoreInfo assistantScoreInfo)
 {
     assistantScoreInfo.Save();
     return assistantScoreInfo . AssistantScoreId;
 }
        protected void btnSave_Click(object sender, EventArgs e)
        {
            int asid = Convert.ToInt32(Request["AssistantScoreId"].ToString());
            AssistantScoreInfo at = new AssistantScoreInfo(asid);

            at.Upas1 = Request.Form["Upas1"].ToString();
            at.Upas2 = Request.Form["Upas2"].ToString();
            at.Upas3 = Request.Form["Upas3"].ToString();
            at.Upas4 = Request.Form["Upas4"].ToString();
            at.Upas5 = Request.Form["Upas5"].ToString();
            at.Upas6 = Request.Form["Upas6"].ToString();
            at.Upas7 = Request.Form["Upas7"].ToString();
            at.Upas8 = Request.Form["Upas8"].ToString();
            at.Upas9 = Request.Form["Upas9"].ToString();
            at.Upas10 = Request.Form["Upas10"].ToString();
            at.Upas11 = Request.Form["Upas11"].ToString();
            at.Upas12 = Request.Form["Upas12"].ToString();
            at.Upas13 = Request.Form["Upas13"].ToString();
            at.Upas14 = Request.Form["Upas14"].ToString();
            at.Upas15 = Request.Form["Upas15"].ToString();
            at.Upas16 = Request.Form["Upas16"].ToString();
            at.Upas17 = Request.Form["Upas17"].ToString();
            at.Upas18 = Request.Form["Upas18"].ToString();
            at.Upas19 = Request.Form["Upas19"].ToString();

            at.Secas1 = Convert.ToString(Math.Round(float.Parse(lblSelfas1.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas1"].ToString()), 2) * 0.6);
            at.Secas2 = Convert.ToString(Math.Round(float.Parse(lblSelfas2.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas2"].ToString()), 2) * 0.6);
            at.Secas3 = Convert.ToString(Math.Round(float.Parse(lblSelfas3.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas3"].ToString()), 2) * 0.6);
            at.Secas4 = Convert.ToString(Math.Round(float.Parse(lblSelfas4.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas4"].ToString()), 2) * 0.6);
            at.Secas5 = Convert.ToString(Math.Round(float.Parse(lblSelfas5.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas5"].ToString()), 2) * 0.6);
            at.Secas6 = Convert.ToString(Math.Round(float.Parse(lblSelfas6.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas6"].ToString()), 2) * 0.6);
            at.Secas7 = Convert.ToString(Math.Round(float.Parse(lblSelfas7.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas7"].ToString()), 2) * 0.6);
            at.Secas8 = Convert.ToString(Math.Round(float.Parse(lblSelfas8.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas8"].ToString()), 2) * 0.6);
            at.Secas9 = Convert.ToString(Math.Round(float.Parse(lblSelfas9.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas9"].ToString()), 2) * 0.6);
            at.Secas10 = Convert.ToString(Math.Round(float.Parse(lblSelfas10.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas10"].ToString()), 2) * 0.6);
            at.Secas11 = Convert.ToString(Math.Round(float.Parse(lblSelfas11.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas11"].ToString()), 2) * 0.6);
            at.Secas12 = Convert.ToString(Math.Round(float.Parse(lblSelfas12.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas12"].ToString()), 2) * 0.6);
            at.Secas13 = Convert.ToString(Math.Round(float.Parse(lblSelfas13.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas13"].ToString()), 2) * 0.6);
            at.Secas14 = Convert.ToString(Math.Round(float.Parse(lblSelfas14.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas14"].ToString()), 2) * 0.6);
            at.Secas15 = Convert.ToString(Math.Round(float.Parse(lblSelfas15.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas15"].ToString()), 2) * 0.6);
            at.Secas16 = Convert.ToString(Math.Round(float.Parse(lblSelfas16.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas16"].ToString()), 2) * 0.6);
            at.Secas17 = Convert.ToString(Math.Round(float.Parse(lblSelfas17.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas17"].ToString()), 2) * 0.6);
            at.Secas18 = Convert.ToString(Math.Round(float.Parse(lblSelfas18.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas18"].ToString()), 2) * 0.6);
            at.Secas19 = Convert.ToString(Math.Round(float.Parse(lblSelfas19.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upas19"].ToString()), 2) * 0.6);

            at.TotalScore = Request.Form["hid"].ToString();

            float Score = float.Parse(Request.Form["hid"].ToString());
            if (Score > 90)
            {
                at.EvaluateLevelId = 2;
            }
            else if (Score > 75 && Score < 90)
            {
                at.EvaluateLevelId = 3;
            }
            else if (Score > 60 && Score < 75)
            {
                at.EvaluateLevelId = 4;
            }
            else if (Score < 60)
            {
                at.EvaluateLevelId = 5;
            }
            at.IsSubmit = 2;
            at.UpViews = Request.Form["UpViews"].ToString();
            at.Save();
            Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('����ɹ���');</script>");
        }