/// <summary>
    /// 1.當共用檔使用有問題時,須額外撈取現在是否最後一關時使用。
    /// 2.只有最基本的流程走法不會用到,其他情況幾乎看這。
    /// </summary>
    /// <param name="OTCompID">加班人公司</param>
    /// <param name="flowCaseID">FlowCaseID</param>
    /// <param name="otModel">A/D</param>
    /// <returns>現在是否為最後一關</returns>
    private bool isLastFlowNow(string OTCompID, string flowCaseID, string otModel)
    {
        DataRow retrunRow;
        string  message = "";

        try
        {
            if (!FlowUtility.QueryHRFlowEngineDatas_Now(OTCompID, flowCaseID, otModel, out retrunRow, out message))
            {
                return(false);
            }
            else if (retrunRow.Table.Rows.Count > 0)
            {
                string FlowEndFlag = retrunRow["FlowEndFlag"].ToString();
                return(FlowEndFlag == "1" ? true : false);
            }
            else
            {
                return(false);
            }
        }
        catch (Exception ex)
        {
            return(true);
        }
    }
예제 #2
0
    public static void Main()
    {
        var       isSuccess  = false;
        var       compID     = "";
        var       flowCaseID = "";
        var       otModel    = "";
        DataTable dt         = new DataTable("Test");
        DataRow   row        = dt.NewRow();
        var       message    = "";

        isSuccess = FlowUtility.QueryHRFlowEngineDatas_Now(compID, flowCaseID, otModel, out row, out message);
    }