Example #1
0
        private void cmdOK_Click(object sender, System.EventArgs e)
        {
            UDS.Components.DocumentFlow df =new UDS.Components.DocumentFlow();

            df.AddPostil(UserName,DocID,txtPostil.Text,Operation);

            switch(Operation)
            {
                case 1:
                    NextDocument(DocID);
                    break;
                case 2:
                    df.FaileDocument(DocID);
                    break;
                case 3:
                    df.FinishDocument(DocID);
                    break;
                default:
                    break;
            }

            df = null;
            Server.Transfer("ListDocument.aspx?DisplayType=3");

            //Response.Write("<script laguage='javascript'>window.close();</script>");
        }
Example #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");
        }
Example #3
0
        private void cmdOK_Click(object sender, System.EventArgs e)
        {
            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();

            df.AddPostil(UserName, DocID, txtPostil.Text, Operation);

            switch (Operation)
            {
            case 1:
                NextDocument(DocID);
                break;

            case 2:
                df.FaileDocument(DocID);
                break;

            case 3:
                df.FinishDocument(DocID);
                break;

            default:
                break;
            }

            df = null;
            Server.Transfer("ListDocument.aspx?DisplayType=3");

            //Response.Write("<script laguage='javascript'>window.close();</script>");
        }
Example #4
0
        private void cmdPostilNext_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
            {
                if (ProjectID >= 0)
                {
                    PostilID = df.AddPostil(UserName, DocID, tmpText.Text, 1, ProjectID, 2);

                    int iResult;
                    iResult = df.PostDocument(UserName, DocID, ProjectID);


                    if (iResult == 0)
                    {
                        UploadFile(PostilID);
                    }
                    else
                    {
                        Response.Write("<script lanuage='javascript'>alert('" + df.DoMessage(iResult, DocID, false) + "');</script>");
                    }
                }
                else
                {
                    Response.Write("<script lanuage='javascript'>alert('没有上级项目!');</script>");
                }
            }
            catch (Exception ex)
            {
                UDS.Components.Error.Log(ex.ToString());
            }
            finally
            {
                df = null;
            }
            Response.AddHeader("Refresh", "1");
        }
Example #5
0
        private void cmdPostilNext_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
            {
                if(ProjectID>=0)
                {
                    PostilID = df.AddPostil(UserName,DocID,tmpText.Text,1,ProjectID,2);

                    int iResult;
                    iResult = df.PostDocument(UserName,DocID,ProjectID);

                    if(iResult==0)
                    {
                        UploadFile(PostilID);
                    }
                    else
                    {
                        Response.Write("<script lanuage='javascript'>alert('" + df.DoMessage(iResult,DocID,false) + "');</script>");
                    }
                }
                else
                {
                    Response.Write("<script lanuage='javascript'>alert('û���ϼ���Ŀ��');</script>");
                }

            }
            catch(Exception ex)
            {
                UDS.Components.Error.Log(ex.ToString());
            }
            finally
            {
                df = null;
            }
            Response.AddHeader("Refresh","1");
        }
Example #6
0
 private void cmdPostilFinish_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,3,ProjectID,0);
         df.FinishDocument(DocID);
         UploadFile(PostilID);
     }
     catch(Exception ex)
     {
         UDS.Components.Error.Log(ex.ToString());
     }
     finally
     {
         df = null;
     }
     Response.AddHeader("Refresh","1");
 }