public int GetConfigDicOrderingPos(string ConfigName, string ModuleID) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { return(Row.OrderingPos); } else { return(0); } }
public string GetConfigDicPropertyDesc(string ConfigName, int ModuleID) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { return(Row.PropertyDesc); } else { return(""); } }
public string GetConfigDicValue(string ConfigName, string ModuleID) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { return(Row.Value); } else { return(""); } }
public string GetConfigDicDomain(string ConfigName, int ModuleID) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { return(Row.Domain); } else { return(""); } }
public int GetConfigDicInheritance(string ConfigName, int ModuleID) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { return(Row.Inheritance); } else { return(0); } }
public int GetConfigDicIsHidden(string ConfigName, int ModuleID) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { return(Row.IsHidden); } else { return(0); } }
public int GetConfigDicExportable(string ConfigName, int ModuleID) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { return(Row.Exportable); } else { return(0); } }
public int SetConfigDicValue(string ConfigName, string ModuleID, string Value) { DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID); if (Row != null) { if (Row.Value.CompareTo(Value) != 0) { Row.Value = Value; Server.Business.ClientFramework.ConfigDic obj = new ConfigDic(); obj.WriteConfigDicRow(Row, 2); } } else { DsConfigDic.ConfigDicRow row; row = this.m_dsConfigDic.ConfigDic.AddConfigDicRow(ConfigName, Value, ModuleID, "", 0, "", "", 0, 0, 1, 0, "0"); Server.Business.ClientFramework.ConfigDic obj = new ConfigDic(); obj.WriteConfigDicRow(row, 2); } return(0); }
public DsConfigDic.ConfigDicRow GetConfigDicRow(string ConfigName, string ModuleID) { DsConfigDic.ConfigDicRow Row = null; Row = this.m_dsConfigDic.ConfigDic.FindByConfigNameModuleID(ConfigName, ModuleID); return(Row); }
/// <summary> /// Write Config Diction value to database /// </summary> /// <param name="row">Contains updated datay</param> /// <param name="iType">Type of the data</param> /// <returns></returns> public int WriteConfigDicRow(DsConfigDic.ConfigDicRow row, int iType) { return(DaoInstanceFactory.GetInstance().WriteConfigDicRow(row, iType)); }