Beispiel #1
0
        public CallContext DiePriceListDetailsSave(List <DiePriceListDetail> entities, CallContext resultContext)
        {
            resultContext.securitySettings = ETEMEnums.SecuritySettings.DiePriceListDetailsSave;
            CallContext resContext = new DiePriceListDetailBL().EntitySave <DiePriceListDetail>(entities, resultContext);

            return(resContext);
        }
        public CallContext DiePriceListDetailsSave(List<DiePriceListDetail> entities, CallContext resultContext)
        {
            resultContext.securitySettings = ETEMEnums.SecuritySettings.DiePriceListDetailsSave;
            CallContext resContext = new DiePriceListDetailBL().EntitySave<DiePriceListDetail>(entities, resultContext);

            return resContext;
        }
        internal List<string> GetPressIntCodeListByDimension(Offer offer)
        {
             DiePriceListDetail diePriceListDetail = new DiePriceListDetailBL().GetEntityById(offer.idDiePriceListDetail.Value);
            string dimensions = diePriceListDetail.DimensionA_String.Trim() + "x" + diePriceListDetail.DimensionB_String.Trim();

            List<KeyValue> listDieDimensions = new KeyValueBL().GetAllKeyValueByKeyTypeIntCode("DieDimensions")
                                                               .Where(k=>k.KeyValueIntCode == dimensions).ToList();

            List<string> keyValueIntCodeCostCenter = new List<string>();

            foreach (KeyValue keyvalue in listDieDimensions)
            {
                keyValueIntCodeCostCenter.AddRange(keyvalue.DefaultValue1.Split(','));//RETURN KEY VALUES OF PROPER PRESS
            }

            keyValueIntCodeCostCenter = keyValueIntCodeCostCenter.Distinct().ToList();//List of press

            return keyValueIntCodeCostCenter;
        }