using System;
using CLIP.eForm.Consent.WebService;

namespace CLIP.eForm.Consent.Web
{
    public partial class RemoveTempFile : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void btnDelete_Click(object sender, EventArgs e)
        {
            using (ConsentSvc svc = new ConsentSvc())
            {
                //int iResult = svc.DeleteTempFile(this.calendar1.SelectedDate.Date.AddDays(-1).ToShortDateString());
                //if (iResult == 1)
                //{
                //    System.Text.StringBuilder sb = new System.Text.StringBuilder();
                //    sb.Append("<script type = 'text/javascript'>");
                //    sb.Append("window.onload=function(){");
                //    sb.Append("alert('임시파일이 삭제되었습니다.')};");
                //    sb.Append("</script>");
                //    ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", sb.ToString());
                //}
            }
        }
    }
}