Esempio n. 1
0
 public int GetConfigDicOrderingPos(string ConfigName, string ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID);
     if (Row != null)
     {
         return(Row.OrderingPos);
     }
     else
     {
         return(0);
     }
 }
Esempio n. 2
0
 public string GetConfigDicPropertyDesc(string ConfigName, int ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID);
     if (Row != null)
     {
         return(Row.PropertyDesc);
     }
     else
     {
         return("");
     }
 }
Esempio n. 3
0
 public string GetConfigDicValue(string ConfigName, string ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID);
     if (Row != null)
     {
         return(Row.Value);
     }
     else
     {
         return("");
     }
 }
Esempio n. 4
0
 public string GetConfigDicDomain(string ConfigName, int ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID);
     if (Row != null)
     {
         return(Row.Domain);
     }
     else
     {
         return("");
     }
 }
Esempio n. 5
0
 public int GetConfigDicInheritance(string ConfigName, int ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID);
     if (Row != null)
     {
         return(Row.Inheritance);
     }
     else
     {
         return(0);
     }
 }
Esempio n. 6
0
 public int GetConfigDicIsHidden(string ConfigName, int ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID);
     if (Row != null)
     {
         return(Row.IsHidden);
     }
     else
     {
         return(0);
     }
 }
Esempio n. 7
0
 public int GetConfigDicExportable(string ConfigName, int ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = GetConfigDicRow(ConfigName, ModuleID);
     if (Row != null)
     {
         return(Row.Exportable);
     }
     else
     {
         return(0);
     }
 }
Esempio n. 8
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);
        }
Esempio n. 9
0
 public DsConfigDic.ConfigDicRow GetConfigDicRow(string ConfigName, string ModuleID)
 {
     DsConfigDic.ConfigDicRow Row = null;
     Row = this.m_dsConfigDic.ConfigDic.FindByConfigNameModuleID(ConfigName, ModuleID);
     return(Row);
 }
Esempio n. 10
0
 /// <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));
 }