Esempio n. 1
0
        protected void btnApprove_Click(Object Sender, EventArgs e)
        {
            int intVacation = Int32.Parse(lblVacation.Text);

            oVacation.Update(intVacation, 1);
            int intUser = Int32.Parse(oVacation.Get(intVacation, "userid"));

            oFunction.SendEmail("ClearView Out of Office Request", oUser.GetName(intUser), "", strEMailIdsBCC, "ClearView Out of Office Request", "<p><b>The following out of office request has been APPROVED by your MANAGER (" + oUser.GetFullName(intProfile) + ")</b><p><p>" + oVacation.GetBody(intVacation, intEnvironment) + "</p>", true, false);
            Response.Redirect(oPage.GetFullLink(intPage) + "?action=finish");
        }