Beispiel #1
0
        public void LOG
            (string objtype, string action, int objID, string detail1, string detail2)
        {
            IEventLog engine       = new IEventLog(HELPERS.NewOdbcConn_FORCE());
            int       babylogentry =
                engine.NewEventLog
                    (DateTime.Now, this.idUser, this.strIPaddr,
                    action, objtype);

            engine.SetEventLog
                (babylogentry,
                DateTime.Now, this.idUser, this.strIPaddr,
                action, objID, detail1, detail2, objtype);
        }
Beispiel #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (this.FileUpload1.HasFile)
            {
                string pathTempFolder = System.IO.Path.GetTempPath();
                string pathTempFile   = System.IO.Path.GetTempFileName();

                FileUpload1.SaveAs(pathTempFile);

                IEASfileAttachment engine =
                    new IEASfileAttachment(HELPERS.NewOdbcConn_FORCE());
                int baby = engine.NewEASfileAttachment(
                    this.FileUpload1.FileName,
                    TXTcomment.Text, DateTime.Now,
                    this.session.idWorkspace);
                engine.UploadEASfileAttachmentContent
                    (baby, pathTempFile);
                Response.Redirect("PAGE_attachments.aspx?mode=success");
            }
        }