Exemple #1
0
    protected void DealOutTimeAudit()
    {
        DataTable dataTable = FlowAuditAction.OutTimeAudit();

        if (dataTable.Rows.Count > 0)
        {
            for (int i = 0; i < dataTable.Rows.Count; i++)
            {
                string dueMode = FlowAuditAction.GetDueMode(Convert.ToInt32(Convert.ToInt32(dataTable.Rows[i]["NodeId"]).ToString()));
                if (dueMode == "0")
                {
                    FlowAuditAction.ProcessFlow(Convert.ToInt32(dataTable.Rows[i]["NoteId"].ToString()), dataTable.Rows[i]["IsAllPass"].ToString(), dataTable.Rows[i]["Operator"].ToString(), false, "超时驳回");
                }
                else
                {
                    if (dueMode == "1")
                    {
                        FlowAuditAction.ProcessFlow(Convert.ToInt32(dataTable.Rows[i]["NoteId"].ToString()), dataTable.Rows[i]["IsAllPass"].ToString(), dataTable.Rows[i]["Operator"].ToString(), true, "超时通过");
                    }
                }
            }
        }
    }