private static bool GetXmlFilePathByUseFilePathKind(string varJoinFilePathInfo, int varUseFilePathKindSign, ref string varGetFilePathInfo, ref string varErrorStr)
        {
            bool backSign = false;

            XmlControl.CXDocumentControl ACXDocumentControl = new XmlControl.CXDocumentControl();

            string sSaveSubFolderName1 = CCommon.Key_XML_Path_ProjectManagerData_Nvar + @"\" + CCommon.Key_XML_Path_SecondLevel_LocalLogData_Nvar;
            string sSaveSubFolderName2 = CCommon.Key_XML_Path_ProjectApplicationData_Nvar + @"\" + CCommon.Key_XML_Path_SecondLevel_LocalLogData_Nvar;


            try
            {
                //程序自构造文件路径和路径
                if (varUseFilePathKindSign == 0)
                {
                    if (ACXDocumentControl.getXmlFilePath(CCommon.Key_T_S_LocalLog_TableName, sSaveSubFolderName1, ref varGetFilePathInfo, ref varErrorStr))
                    {
                        backSign = true;
                    }
                }

                //外部输入文件路径,自己构造完整文件路径和文件名
                if (varUseFilePathKindSign == 1)
                {
                    if (ACXDocumentControl.getXmlFilePath2(CCommon.Key_T_S_LocalLog_TableName, sSaveSubFolderName2, varJoinFilePathInfo, ref varGetFilePathInfo, ref varErrorStr))
                    {
                        backSign = true;
                    }
                }

                //外部直接输入完整文件路径和文件名
                if (varUseFilePathKindSign == 2)
                {
                    backSign = true;
                }
                return(backSign);
            }
            catch (Exception ee)
            {
                throw ee;
            }
        }
Exemple #2
0
        public bool GetXmlFilePathByUseFilePathKind(string varJoinFilePathInfo, int varUseFilePathKindSign, ref string varGetFilePathInfo, ref string varErrorStr)
        {
            bool backSign = false;

            try
            {
                //程序自构造文件路径和路径
                if (varUseFilePathKindSign == 0)
                {
                    if (ACXDocumentControl.getXmlFilePath(CCommon.Key_T_S_FirewallLog_TableName, sSaveSubFolderName1, ref varGetFilePathInfo, ref varErrorStr))
                    {
                        backSign = true;
                    }
                }

                //外部输入文件路径,自己构造完整文件路径和文件名
                if (varUseFilePathKindSign == 1)
                {
                    if (ACXDocumentControl.getXmlFilePath2(CCommon.Key_T_S_FirewallLog_TableName, sSaveSubFolderName2, varJoinFilePathInfo, ref varGetFilePathInfo, ref varErrorStr))
                    {
                        backSign = true;
                    }
                }

                //外部直接输入完整文件路径和文件名
                if (varUseFilePathKindSign == 2)
                {
                    sFilePathInfo = varJoinFilePathInfo;
                    backSign      = true;
                }
                return(backSign);
            }
            catch (Exception ee)
            {
                throw ee;
            }
        }