protected void btnAll_Click(object sender, EventArgs e) { try { int j = 0; string[] filearray = new String[11]; filearray[0] = " "; for (int i = 0; i < gvMsg.Rows.Count; i++) { CheckBox ckb = gvMsg.Rows[i].FindControl("ckbChoose") as CheckBox; if (ckb.Checked == true) { int msgid = Convert.ToInt32(gvMsg.DataKeys[i].Value); MessageInfo msg = new MessageInfo(msgid); EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(msg.RecvEmployeeId)); MessageInfo.SendMail(em.Qq, "OA新的消息", msg.EmployeeName + "," + msg.Msg); } } gvDataBind(); Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('提醒成功!');</script>"); } catch (Exception Ex) { ClientScript.RegisterStartupScript(this.GetType(), "Save", "alert('错误信息:" + Ex.Message + "');", true); } }
protected void btnSubmit_Click(object sender, EventArgs e) { int msgid = Convert.ToInt32(((Button)sender).CommandArgument.ToString());; MessageInfo msg = new MessageInfo(msgid); EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(msg.RecvEmployeeId)); MessageInfo.SendMail(em.Qq, "OA新的消息", msg.EmployeeName + "," + msg.Msg); Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('提醒成功!');</script>"); }
protected void btnSubmit_Click(object sender, EventArgs e) { int DsScoreId = Convert.ToInt32(((Button)sender).CommandArgument.ToString()); DriverScoreInfo ds = new DriverScoreInfo(DsScoreId); ds.IsSubmit = 1; int recvid = Convert.ToInt32(Common.getEmployeeIdOfAdmin()); EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(ds.EmployeeId)); EmployeeInfo ems = new EmployeeInfo(recvid); MessageInfo.Msgs1(recvid, ds.DriverScoreId, "~/Score/DriveScoreApprove.aspx", em.EmployeeName + "绩效考核申请", em.EmployeeName, "daiban", em.EmployeeName + "绩效考核申请"); MessageInfo.SendMail(ems.Qq, "绩效考核申请", em.EmployeeName + "绩效考核申请"); ds.Save(); gvDataBind(); }
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(); }
protected void btnSubmit_Click(object sender, EventArgs e) { int TechEmScoreId = Convert.ToInt32(((Button)sender).CommandArgument.ToString()); TechEmScoreInfo tes = new TechEmScoreInfo(TechEmScoreId); tes.IsSubmit = 1; int recvid = Convert.ToInt32(Common.getEmployeeIdOfTechManager()); EmployeeInfo em = new EmployeeInfo(Convert.ToInt32(tes.EmployeeId)); EmployeeInfo ems = new EmployeeInfo(recvid); MessageInfo.Msgs1(recvid, tes.TechEmScoreId, "~/Score/TechEmApprove.aspx", em.EmployeeName + "绩效考核申请", em.EmployeeName, "daiban", em.EmployeeName + "绩效考核申请"); MessageInfo.SendMail(ems.Qq, "绩效考核申请", em.EmployeeName + "绩效考核申请"); tes.Save(); gvDataBind(); }