RoadFlow2.1 临时演示

Default.aspx 1.6KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebForm.Platform.WorkFlowSign.Default" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title></title>
  7. </head>
  8. <body>
  9. <form id="form1" runat="server">
  10. <div style="margin:0 auto; text-align:center; padding-top:100px;">
  11. <div>
  12. <asp:FileUpload ID="FileUpload1" runat="server" />
  13. <input id="Button1" type="submit" class="mybutton" value=" 上 传 " />
  14. <input type="submit" name="reset" class="mybutton" value="恢复默认" />
  15. </div>
  16. <div style="margin-top:80px;">您的签名:
  17. <%
  18. string signFile = string.Concat(Server.MapPath(WebForm.Common.Tools.BaseUrl + "/Files/UserSigns/"), RoadFlow.Platform.Users.CurrentUserID, ".gif");
  19. string signSrc = string.Concat(WebForm.Common.Tools.BaseUrl + "/Files/UserSigns/", RoadFlow.Platform.Users.CurrentUserID, ".gif");
  20. if (!System.IO.File.Exists(signFile))
  21. {
  22. System.Drawing.Bitmap img = new RoadFlow.Platform.WorkFlow().CreateSignImage(RoadFlow.Platform.Users.CurrentUserName);
  23. if (img != null)
  24. {
  25. img.Save(signFile, System.Drawing.Imaging.ImageFormat.Gif);
  26. }
  27. }
  28. %>
  29. <img alt="" src="<%=signSrc %>" id="signimg" style="vertical-align:middle;" />
  30. </div>
  31. </div>
  32. </form>
  33. </body>
  34. </html>