/// <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;
        }
    }
示例#2
0
    protected void btnPassAudit_Click(object sender, EventArgs e)
    {
        List <TiannuoPM.MODEL.LocaleViseCostModel> CostList = new List <TiannuoPM.MODEL.LocaleViseCostModel>();

        RmsPM.BFL.LocaleViseBFL ViseBFL = new RmsPM.BFL.LocaleViseBFL();
        foreach (GridViewRow grow in this.GridView1.Rows)
        {
            if (grow.FindControl("TxtCheckMoney") != null)
            {
                TiannuoPM.MODEL.LocaleViseCostModel CostModel = ViseBFL.GetLocalViseCost(int.Parse(this.GridView1.DataKeys[grow.RowIndex].Value.ToString()))[0];
                CostModel.CheckMoney = decimal.Parse(((Infragistics.WebUI.WebDataInput.WebNumericEdit)grow.FindControl("TxtCheckMoney")).Value.ToString());
                CostList.Add(CostModel);
            }
        }
        ViseBFL.PassAudit(int.Parse(Request["ViseCode"].ToString()), CostList);
        Response.Write("<script>window.opener.WinReload();window.close();</script>");
        Response.End();
    }