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

                fs.Selffs1 = Request.Form["Selffs1"].ToString();
                fs.Selffs2 = Request.Form["Selffs2"].ToString();
                fs.Selffs3 = Request.Form["Selffs3"].ToString();
                fs.Selffs4 = Request.Form["Selffs4"].ToString();
                fs.Selffs5 = Request.Form["Selffs5"].ToString();
                fs.Selffs6 = Request.Form["Selffs6"].ToString();
                fs.Selffs7 = Request.Form["Selffs7"].ToString();
                fs.Selffs8 = Request.Form["Selffs8"].ToString();
                fs.Selffs9 = Request.Form["Selffs9"].ToString();
                fs.Selffs10 = Request.Form["Selffs10"].ToString();
                fs.Selffs11 = Request.Form["Selffs11"].ToString();
                fs.Selffs12 = Request.Form["Selffs12"].ToString();
                fs.Selffs13 = Request.Form["Selffs13"].ToString();
                fs.Selffs14 = Request.Form["Selffs14"].ToString();
                fs.Selffs15 = Request.Form["Selffs15"].ToString();
                fs.Selffs16 = Request.Form["Selffs16"].ToString();
                fs.Selffs17 = Request.Form["Selffs17"].ToString();
                fs.Selffs18 = Request.Form["Selffs18"].ToString();
                fs.Selffs19 = Request.Form["Selffs19"].ToString();
                fs.Selffs20 = Request.Form["Selffs20"].ToString();
                fs.Selffs21 = Request.Form["Selffs21"].ToString();
                fs.Save();
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('����ɹ���');</script>");
            }
        }
Beispiel #2
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            int FsScoreId = Convert.ToInt32(((Button)sender).CommandArgument.ToString());
            FrontScoreInfo fs = new FrontScoreInfo(FsScoreId);
            fs.IsSubmit = 1;

            int recvid = Convert.ToInt32(Common.getEmployeeIdOfMarketManager());
            EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(fs.EmployeeId));
            EmployeeInfo ems = new EmployeeInfo(recvid);
            MessageInfo.Msgs1(recvid, fs.FrontScoreId, "~/Score/FrontScoreApprove.aspx", em.EmployeeName + "����������", em.EmployeeName, "daiban", em.EmployeeName + "����������");
            MessageInfo.SendMail(ems.Qq, "����������", em.EmployeeName + "����������");
            fs.Save();
            gvDataBind();
        }
        protected void btnSave_Click(object sender, EventArgs e)
        {
            int fsid = Convert.ToInt32(Request["FrontScoreId"].ToString());
            FrontScoreInfo fs = new FrontScoreInfo(fsid);
            fs.Upfs1 = Request.Form["Upfs1"].ToString();
            fs.Upfs2 = Request.Form["Upfs2"].ToString();
            fs.Upfs3 = Request.Form["Upfs3"].ToString();
            fs.Upfs4 = Request.Form["Upfs4"].ToString();
            fs.Upfs5 = Request.Form["Upfs5"].ToString();
            fs.Upfs6 = Request.Form["Upfs6"].ToString();
            fs.Upfs7 = Request.Form["Upfs7"].ToString();
            fs.Upfs8 = Request.Form["Upfs8"].ToString();
            fs.Upfs9 = Request.Form["Upfs9"].ToString();
            fs.Upfs10 = Request.Form["Upfs10"].ToString();
            fs.Upfs11 = Request.Form["Upfs11"].ToString();
            fs.Upfs12 = Request.Form["Upfs12"].ToString();
            fs.Upfs13 = Request.Form["Upfs13"].ToString();
            fs.Upfs14 = Request.Form["Upfs14"].ToString();
            fs.Upfs15 = Request.Form["Upfs15"].ToString();
            fs.Upfs16 = Request.Form["Upfs16"].ToString();
            fs.Upfs17 = Request.Form["Upfs17"].ToString();
            fs.Upfs18 = Request.Form["Upfs18"].ToString();
            fs.Upfs19 = Request.Form["Upfs19"].ToString();
            fs.Upfs20 = Request.Form["Upfs20"].ToString();
            fs.Upfs21 = Request.Form["Upfs21"].ToString();

            fs.Secfs1 = Convert.ToString(Math.Round(float.Parse(lblSelffs1.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs1"].ToString()), 2) * 0.6);
            fs.Secfs2 = Convert.ToString(Math.Round(float.Parse(lblSelffs2.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs2"].ToString()), 2) * 0.6);
            fs.Secfs3 = Convert.ToString(Math.Round(float.Parse(lblSelffs3.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs3"].ToString()), 2) * 0.6);
            fs.Secfs4 = Convert.ToString(Math.Round(float.Parse(lblSelffs4.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs4"].ToString()), 2) * 0.6);
            fs.Secfs5 = Convert.ToString(Math.Round(float.Parse(lblSelffs5.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs5"].ToString()), 2) * 0.6);
            fs.Secfs6 = Convert.ToString(Math.Round(float.Parse(lblSelffs6.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs6"].ToString()), 2) * 0.6);
            fs.Secfs7 = Convert.ToString(Math.Round(float.Parse(lblSelffs7.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs7"].ToString()), 2) * 0.6);

            fs.Secfs9 = Convert.ToString(Math.Round(float.Parse(lblSelffs9.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs9"].ToString()), 2) * 0.6);
            fs.Secfs10 = Convert.ToString(Math.Round(float.Parse(lblSelffs10.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs10"].ToString()), 2) * 0.6);
            fs.Secfs11 = Convert.ToString(Math.Round(float.Parse(lblSelffs11.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs11"].ToString()), 2) * 0.6);
            fs.Secfs12 = Convert.ToString(Math.Round(float.Parse(lblSelffs12.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs12"].ToString()), 2) * 0.6);
            fs.Secfs13 = Convert.ToString(Math.Round(float.Parse(lblSelffs13.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs13"].ToString()), 2) * 0.6);
            fs.Secfs14 = Convert.ToString(Math.Round(float.Parse(lblSelffs14.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs14"].ToString()), 2) * 0.6);
            fs.Secfs15 = Convert.ToString(Math.Round(float.Parse(lblSelffs15.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs15"].ToString()), 2) * 0.6);
            fs.Secfs16 = Convert.ToString(Math.Round(float.Parse(lblSelffs16.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs16"].ToString()), 2) * 0.6);
            fs.Secfs17 = Convert.ToString(Math.Round(float.Parse(lblSelffs17.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs17"].ToString()), 2) * 0.6);
            fs.Secfs18 = Convert.ToString(Math.Round(float.Parse(lblSelffs18.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs18"].ToString()), 2) * 0.6);
            fs.Secfs19 = Convert.ToString(Math.Round(float.Parse(lblSelffs19.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs19"].ToString()), 2) * 0.6);
            fs.Secfs20 = Convert.ToString(Math.Round(float.Parse(lblSelffs20.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs20"].ToString()), 2) * 0.6);
            fs.Secfs21 = Convert.ToString(Math.Round(float.Parse(lblSelffs21.Text.ToString()), 2) * 0.4 + Math.Round(float.Parse(Request.Form["Upfs21"].ToString()), 2) * 0.6);

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

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