dll.aspx.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Web;
  5. using System.Web.Security;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Web.UI.HtmlControls;
  10. using System.IO;
  11. public partial class _Default : System.Web.UI.Page
  12. {
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. }
  16. protected void btnLook_Click(object sender, EventArgs e)
  17. {
  18. UNCOM.MyObject1 mycom = new UNCOM.MyObject1();
  19. txtResult.Text = mycom.GetUserInfo(this.txtUID.Text, this.txt_PWD.Text);
  20. }
  21. protected void bntSendNote_Click(object sender, EventArgs e)
  22. {
  23. UNCOM.MyObject1 com = new UNCOM.MyObject1();
  24. txtResult.Text = com.SendMessages(txtUID.Text, txt_PWD.Text, txtSmsmob.Text, txtSms.Text, "");
  25. }
  26. protected void btnSendFax_Click(object sender, EventArgs e)
  27. {
  28. UNCOM.MyObject1 mycom = new UNCOM.MyObject1();
  29. try
  30. {
  31. this.txtResult.Text = mycom.SendFax(txtUID.Text, txt_PWD.Text, txtFaxNO.Text, txtMen.Text, txtTitle.Text, this.fupFaxFilePath.PostedFile.FileName.ToString(), fupFaxFilePath.FileName.ToString());
  32. }
  33. catch
  34. {
  35. }
  36. finally
  37. {
  38. // fs.Close();
  39. }
  40. }
  41. protected void bntSendSound_Click(object sender, EventArgs e)
  42. {
  43. UNCOM.MyObject1 mycom = new UNCOM.MyObject1();
  44. try
  45. {
  46. txtResult.Text = mycom.SendVoice(txtUID.Text, this.txt_PWD.Text, this.txtFvTo.Text, this.txtFv.Text, RadioButtonList1.SelectedValue.ToString(), fupFvFilePath.PostedFile.FileName.ToString(), txtSvrNo.Text, "", "");
  47. }
  48. catch
  49. {
  50. txtResult.Text = "出错了";
  51. }
  52. finally
  53. {
  54. // fs.Close();
  55. }
  56. }
  57. protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
  58. {
  59. }
  60. }