public override string ChangeStatusWhenSend(StandardEntityDAO dao)
 {
     try
     {
         base.ChangeStatusWhenSend(dao);
         RmsPM.BFL.LocaleViseBFL ViseBFL = new RmsPM.BFL.LocaleViseBFL();
         ViseBFL.StartAudit(int.Parse(this.OperationCode));
         return("");
     }
     catch (Exception ex)
     {
         ApplicationLog.WriteLog(this.ToString(), ex, "");
         Response.Write(Rms.Web.JavaScript.Alert(true, "改变业务数据状态出错:" + ex.Message));
         throw ex;
     }
 }
    /// <summary>
    /// 业务审核
    /// </summary>
    public override bool Audit(string pm_sOpinionConfirm)
    {
        base.Audit(pm_sOpinionConfirm);

        try
        {
            string ErrMsg = "";

            if (pm_sOpinionConfirm != "")
            {
                RmsPM.BFL.LocaleViseBFL ViseBFL = new RmsPM.BFL.LocaleViseBFL();
                switch (pm_sOpinionConfirm)
                {
                case "Approve":
                    ViseBFL.PassAudit(int.Parse(this.OperationCode), ViseBFL.GetLocalViseCosts(int.Parse(this.OperationCode)));
                    ViseBFL.UpdateComeToMoney(int.Parse(this.OperationCode), RmsPM.BFL.LocaleViseBFL.GetViseSumMoney(int.Parse(this.OperationCode)));
                    break;

                case "Reject":
                    ViseBFL.StartAudit(int.Parse(this.OperationCode));
                    break;

                case "Unknow":
                    ErrMsg = "请选择评审结果!";
                    break;

                default:
                    ErrMsg = "请选择评审结果!";
                    break;
                }

                if (ErrMsg != "")
                {
                    Response.Write(Rms.Web.JavaScript.Alert(true, ErrMsg));
                    return(false);
                }
            }

            return(true);
        }
        catch (Exception ex)
        {
            ApplicationLog.WriteLog(this.ToString(), ex, "");
            Response.Write(Rms.Web.JavaScript.Alert(true, "业务审核出错:" + ex.Message));
            throw ex;
        }
    }