public static bool getLocalLogIDMaxValueInfo(string varColName, int varFKSign, ref string varMaxValue, int varUseFileSign, ref string varErrorStr) { bool backSign = false; string stDefaultValue = ""; XmlControl.CXDocumentControl ACXDocumentControl = new XmlControl.CXDocumentControl(); string sRootNode = CCommon.Key_XML_RootNode_Nvar; string sNodeKeyName = CCommon.Key_T_S_LocalLog_XML_NodeName_Nvar; string sFilePathInfo = ""; try { stDefaultValue = "0000000001"; if (!GetXmlFilePathByUseFilePathKind(GLocalLogFilePathInfo, varUseFileSign, ref sFilePathInfo, ref varErrorStr)) { return(backSign); } if (ACXDocumentControl.GetSingleFieldNewMaxValue(sFilePathInfo, sRootNode, sNodeKeyName, varColName, varFKSign, "10", 1, stDefaultValue, ref varMaxValue, 0, ref varErrorStr)) { backSign = true; } } catch (Exception ee) { throw new Exception(ee.Message); } return(backSign); }
public bool getNetFirewallLogIDMaxValueInfo(string varGetMaxValueColName, int varFKSign, ref string varMaxValue, int varUseFileSign, ref string varErrorStr) { bool backSign = false; string stDefaultValue = ""; try { stDefaultValue = "000000000000001"; if (!GetXmlFilePathByUseFilePathKind(_FilePathInfo, varUseFileSign, ref sFilePathInfo, ref varErrorStr)) { return(backSign); } if (ACXDocumentControl.GetSingleFieldNewMaxValue(sFilePathInfo, sRootNode, sNodeKeyName, varGetMaxValueColName, varFKSign, "15", 1, stDefaultValue, ref varMaxValue, 0, ref varErrorStr)) { backSign = true; } } catch (Exception ee) { throw new Exception(ee.Message); } return(backSign); }