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); }
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); }
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); }