/// <summary> /// 获取流程是否好用 /// </summary> /// <param name="flowName"></param> /// <returns></returns> public bool GetEnable(string flowName) { GetAllWorkFlow(); DataRow[] rows = TS_WorkFlow.Select("流程名称='" + flowName + "'"); if (rows.Length > 0) { return(bool.Parse(rows[0]["有效"].ToString())); } else { return(false); } }
/// <summary> /// 获取是否强制采购 /// </summary> /// <returns></returns> public bool GetProcurementEnable() { GetAllWorkFlow(); DataRow[] rows = TS_WorkFlow.Select("流程名称='强制采购计划'"); if (rows.Length > 0) { return(bool.Parse(rows[0]["有效"].ToString())); } else { return(false); } }