示例#1
0
        private void cmdBack_Click(object sender, System.EventArgs e)
        {
            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
            HtmlForm FrmNewDocument        = (HtmlForm)this.Page.FindControl("PostilDocument");
            TextBox  tmpText;

            tmpText = (TextBox)FrmNewDocument.FindControl("txtPostil");
            long PostilID;

            try
            {
                PostilID = df.AddPostil(UserName, DocID, tmpText.Text, 4, ProjectID, 2);
                df.BackDocument(DocID);
                UploadFile(PostilID);
            }
            catch (Exception ex)
            {
                UDS.Components.Error.Log(ex.ToString());
            }
            finally
            {
                df = null;
            }
            Response.AddHeader("Refresh", "1");
        }
示例#2
0
 private void cmdBack_Click(object sender, System.EventArgs e)
 {
     UDS.Components.DocumentFlow df	= new UDS.Components.DocumentFlow();
     HtmlForm FrmNewDocument			= (HtmlForm)this.Page.FindControl("PostilDocument");
     TextBox tmpText;
     tmpText							= (TextBox)FrmNewDocument.FindControl("txtPostil");
     long PostilID;
     try
     {
         PostilID = df.AddPostil(UserName,DocID,tmpText.Text,4,ProjectID,2);
         df.BackDocument(DocID);
         UploadFile(PostilID);
     }
     catch(Exception ex)
     {
         UDS.Components.Error.Log(ex.ToString());
     }
     finally
     {
         df = null;
     }
     Response.AddHeader("Refresh","1");
 }