using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using com.hnshituo.pur.vo;
using Core.Mes.Client.Comm.Tool;
using CoreFS.CA06;
using Pur.Entity;
namespace Pur.Pop_upWindow
{
public partial class frmPopPlanExit : FrmPmsBase
{
//private string status;
private ArrayList list;
public string tips = "0";
public string isAudit = "";
public frmPopPlanExit()
{
InitializeComponent();
}
public frmPopPlanExit(ArrayList listM, OpeBase OB)
{
InitializeComponent();
this.ob = OB;
this.list = listM;
}
///
/// 状态 1:不通过2:通过
///
private void button2_Click(object sender, EventArgs e)
{
tips = "0";
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
if (ultraTextEditor1.Text.Trim() == "" && radioButton1.Checked == false)
{
MessageUtil.ShowTips("请输入意见");
return;
}
else
{
if (radioButton1.Checked)
{
isAudit = "2";//审批通过
}
else if (radioButton2.Checked)
{
isAudit = "1";//审批不通过
}
String auditMessage = ultraTextEditor1.Text.ToString().Trim();
CoreResult rt = this.execute("com.hnshituo.pur.purplan.service.PurPlanMService", "doAudit", new object[] { list, isAudit, auditMessage });
if (rt.Resultcode == 0)
{
tips = "1";
MessageUtil.ShowTips("退回成功!");
this.Close();
}
else
{
MessageUtil.ShowTips("操作失败:" + rt.Resultmsg);
tips = "0";
}
}
}
}
}