Exemplo n.º 1
0
 public static string GetTxtValue(int IdProduct, string SettingName, string DefaultValue)
 {
     ds_productiontype.productiontypesettingRow settingVar = ProductionTypeClass.GetSettingVar(IdProduct, SettingName);
     if (settingVar == null || settingVar.IstxtvalueNull())
     {
         return(DefaultValue);
     }
     return(settingVar.txtvalue);
 }
Exemplo n.º 2
0
 public static DataTable GetTableValue(int IdProduct, string SettingName, DataTable DefaultValue)
 {
     ds_productiontype.productiontypesettingRow settingVar = ProductionTypeClass.GetSettingVar(IdProduct, SettingName);
     if (settingVar == null || settingVar.IsblbvalueNull())
     {
         return(DefaultValue);
     }
     return(settingVar.TableValue ?? DefaultValue);
 }
Exemplo n.º 3
0
 public static Decimal GetIntValue2(int IdProduct, string SettingName, Decimal DefaultValue)
 {
     ds_productiontype.productiontypesettingRow settingVar = ProductionTypeClass.GetSettingVar(IdProduct, SettingName);
     if (settingVar == null || settingVar.Isintvalue2Null())
     {
         return(DefaultValue);
     }
     return(settingVar.intvalue2);
 }