Exemplo n.º 1
0
        private void cmdOK_Click(object sender, System.EventArgs e)
        {
            string FileName;

            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
            try
            {
                FileName = UploadFile();
                if (StyleID == 0)
                {
                    StyleID = df.AddStyle(txtStyleName.Text, txtStyleRemark.Text, FileName);
                }
                else
                {
                    df.UpdateStyle(StyleID, txtStyleName.Text, txtStyleRemark.Text, FileName, Server.MapPath(".") + @"\Template");
                }
            }
            finally
            {
                if (df != null)
                {
                    df = null;
                }
            }
            //Server.Transfer("ManageStyle.aspx");
            Server.Transfer("DefineStyle.aspx?StyleID=" + StyleID.ToString());
        }
Exemplo n.º 2
0
 private void cmdOK_Click(object sender, System.EventArgs e)
 {
     string FileName;
     UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();
     try
     {
         FileName = UploadFile();
         if(StyleID==0)
             StyleID = df.AddStyle(txtStyleName.Text,txtStyleRemark.Text,FileName);
         else
         {
             df.UpdateStyle(StyleID,txtStyleName.Text,txtStyleRemark.Text,FileName,Server.MapPath(".")+@"\Template");
         }
     }
     finally
     {
         if(df!=null)
             df = null;
     }
     //Server.Transfer("ManageStyle.aspx");
     Server.Transfer("DefineStyle.aspx?StyleID=" + StyleID.ToString());
 }