frmPopPlanExit.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. using com.hnshituo.pur.vo;
  11. using Core.Mes.Client.Comm.Tool;
  12. using CoreFS.CA06;
  13. using Pur.Entity;
  14. namespace Pur.Pop_upWindow
  15. {
  16. public partial class frmPopPlanExit : FrmPmsBase
  17. {
  18. //private string status;
  19. private ArrayList list;
  20. public string tips = "0";
  21. public string isAudit = "";
  22. public frmPopPlanExit()
  23. {
  24. InitializeComponent();
  25. }
  26. public frmPopPlanExit(ArrayList listM, OpeBase OB)
  27. {
  28. InitializeComponent();
  29. this.ob = OB;
  30. this.list = listM;
  31. }
  32. /// <summary>
  33. /// 状态 1:不通过2:通过
  34. /// </summary>
  35. private void button2_Click(object sender, EventArgs e)
  36. {
  37. tips = "0";
  38. this.Close();
  39. }
  40. private void button1_Click(object sender, EventArgs e)
  41. {
  42. if (ultraTextEditor1.Text.Trim() == "" && radioButton1.Checked == false)
  43. {
  44. MessageUtil.ShowTips("请输入意见");
  45. return;
  46. }
  47. else
  48. {
  49. if (radioButton1.Checked)
  50. {
  51. isAudit = "2";//审批通过
  52. }
  53. else if (radioButton2.Checked)
  54. {
  55. isAudit = "1";//审批不通过
  56. }
  57. String auditMessage = ultraTextEditor1.Text.ToString().Trim();
  58. CoreResult rt = this.execute<CoreResult>("com.hnshituo.pur.purplan.service.PurPlanMService", "doAudit", new object[] { list, isAudit, auditMessage });
  59. if (rt.Resultcode == 0)
  60. {
  61. tips = "1";
  62. MessageUtil.ShowTips("退回成功!");
  63. this.Close();
  64. }
  65. else
  66. {
  67. MessageUtil.ShowTips("操作失败:" + rt.Resultmsg);
  68. tips = "0";
  69. }
  70. }
  71. }
  72. }
  73. }