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);
 }
        public static List <int> GetProductionTypeSystemList(int IdProductionType)
        {
            List <int> list = new List <int>();

            ds_productiontype.productiontypeRow productionType = ProductionTypeClass.GetProductionType(IdProductionType);
            if (productionType == null)
            {
                return(list);
            }
            ds_productiontype.productiontypesystemsRow[] productiontypesystemsRowArray = productionType.GetproductiontypesystemsRows();
            if (productiontypesystemsRowArray == null || productiontypesystemsRowArray.Length == 0)
            {
                return(list);
            }
            foreach (ds_productiontype.productiontypesystemsRow productiontypesystemsRow in productiontypesystemsRowArray)
            {
                if (productiontypesystemsRow._active)
                {
                    list.Add(productiontypesystemsRow.idsystem);
                }
            }
            return(list);
        }