Exemplo n.º 1
0
        public MDMSVC.DC_M_masterattributelists GetAllAttributeAndValuesByFOR(string For, string AttributeName)
        {
            MasterDataSVCs _objMaster = new MasterDataSVCs();
            var            retClass   = new MDMSVC.DC_M_masterattributelists();

            retClass = _objMaster.GetListAttributeAndValuesByFOR(new MDMSVC.DC_MasterAttribute()
            {
                MasterFor = For, Name = AttributeName
            });
            return(retClass);
        }
Exemplo n.º 2
0
        private void fillAccomodationPriority(ListBox ddl)
        {
            lookupAttributeDAL LookupAtrributes = new lookupAttributeDAL();

            MDMSVC.DC_M_masterattributelists list = LookupAtrributes.GetAllAttributeAndValuesByFOR("Accommodation", "Priority");

            try
            {
                list.MasterAttributeValues = list.MasterAttributeValues.OrderBy(x => Convert.ToInt32(x.AttributeValue)).ToArray();
            }
            catch
            {
            }
            ddl.Items.Clear();
            ddl.DataSource     = list.MasterAttributeValues;
            ddl.DataValueField = "AttributeValue";
            ddl.DataTextField  = "OTA_CodeTableValue";
            ddl.DataBind();
        }