Ejemplo n.º 1
0
        public List <MDMSVC.DC_MasterAttribute> GetAllAttributeAndValues(MDMSVC.DC_MasterAttribute RQParams)
        {
            object result = null;

            ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["Masters_AttributeGet"], RQParams, typeof(MDMSVC.DC_MasterAttribute), typeof(List <MDMSVC.DC_MasterAttribute>), out result);
            return(result as List <DC_MasterAttribute>);
        }
        protected void btnHotelGeoCode_Click(object sender, EventArgs e)
        {
            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();
            RQ.MasterFor = "MappingFileConfig";
            RQ.Name      = "MappingEntity";
            var resvalues = _objMasterSVC.GetAllAttributeAndValues(RQ);

            if (resvalues != null && resvalues.Count > 0)
            {
                Guid entityId   = Guid.Parse((resvalues.Where(x => x.AttributeValue == "GeoCode").Select(y => y.MasterAttributeValue_Id).FirstOrDefault()).ToString());
                Guid SupplierId = Guid.Parse(ddlSupplierName.SelectedItem.Value);
                var  res        = MapSvc.Pentaho_SupplierApiLocationId_Get(SupplierId, entityId);

                if (res != null && res.Count > 0)
                {
                    string callby            = System.Web.HttpContext.Current.User.Identity.Name;
                    var    ApplicationCallId = Guid.Parse(res[0].ApiLocation_Id.ToString());
                    var    Geo_res           = MapSvc.Pentaho_SupplierApi_Call(ApplicationCallId, callby);
                    BootstrapAlert.BootstrapAlertMessage(dvMsgHotel, Geo_res.StatusMessage, BootstrapAlertType.Information);
                }
                else
                {
                    BootstrapAlert.BootstrapAlertMessage(dvMsgHotel, "API Location not found", BootstrapAlertType.Information);
                }
            }
        }
Ejemplo n.º 3
0
        public void fillattributes(string masterfor, string attributename, DropDownList ddl)
        {
            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();
            RQ.MasterFor = masterfor;
            RQ.Name      = attributename;
            var resvalues = mastersvc.GetAllAttributeAndValues(RQ);

            ddl.DataSource     = resvalues;
            ddl.DataTextField  = "AttributeValue";
            ddl.DataValueField = "MasterAttributeValue_Id";
            ddl.DataBind();
            ddl.Items.Insert(0, new ListItem("---ALL---", "0"));
        }
Ejemplo n.º 4
0
        protected void fillddlstatus()
        {
            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();
            RQ.MasterFor = "SystemStatus";
            RQ.Name      = "Status";
            var res = masterscv.GetAllAttributeAndValues(RQ);

            ddlStatus.DataSource     = res;
            ddlStatus.DataTextField  = "AttributeValue";
            ddlStatus.DataValueField = "MasterAttributeValue_Id";
            ddlStatus.DataBind();
            ddlStatus.Items.Insert(0, new ListItem("---ALL---", "0"));
        }
Ejemplo n.º 5
0
        protected void fillIcons()
        {
            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();
            RQ.MasterFor = "Icons";
            RQ.Name      = "GlyphIcons";
            var res = masterscv.GetAllAttributeAndValues(RQ);

            ddlglyphiconForAttributes.DataSource     = res;
            ddlglyphiconForAttributes.DataTextField  = "AttributeValue";
            ddlglyphiconForAttributes.DataValueField = "MasterAttributeValue_Id";
            ddlglyphiconForAttributes.DataBind();

            ddlglyphiconForAttributes.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Ejemplo n.º 6
0
        protected void GetLookUpData()
        {
            DropDownList ddlHotelUpdateSource = (DropDownList)frmHotelUpdate.FindControl("ddlHotelUpdateSource");

            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();
            RQ.MasterFor = AttributeOptionFor;
            RQ.Name      = "UpdateSource";
            var updates = mastersvc.GetAllAttributeAndValues(RQ);

            //ddlHotelUpdateSource.DataSource = LookupAtrributes.GetAllAttributeAndValuesByFOR(AttributeOptionFor, "UpdateSource").MasterAttributeValues;
            ddlHotelUpdateSource.DataSource     = updates;
            ddlHotelUpdateSource.DataTextField  = "AttributeValue";
            ddlHotelUpdateSource.DataValueField = "MasterAttributeValue_Id";
            ddlHotelUpdateSource.DataBind();
        }
Ejemplo n.º 7
0
        protected void GetLookUpValues()
        {
            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();
            RQ.MasterFor = AttributeOptionFor;
            RQ.Name      = "RuleName";
            var rules = mastersvc.GetAllAttributeAndValues(RQ);

            DropDownList ddlRuleName = (DropDownList)frmRule.FindControl("ddlRuleName");

            //ddlRuleName.DataSource = LookupAtrributes.GetAllAttributeAndValuesByFOR(AttributeOptionFor, "RuleName").MasterAttributeValues;
            ddlRuleName.DataSource     = rules;
            ddlRuleName.DataTextField  = "AttributeValue";
            ddlRuleName.DataValueField = "MasterAttributeValue_Id";
            ddlRuleName.DataBind();
        }
Ejemplo n.º 8
0
        protected void GetFacilityCategory()
        {
            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();

            RQ.MasterFor = AttributeOptionFor;
            RQ.Name      = "FacilityCategory";
            var Categories = mastersvc.GetAllAttributeAndValues(RQ);

            DropDownList ddlFacilityCategory = (DropDownList)frmFacilityDetail.FindControl("ddlFacilityCategory");

            //ddlFacilityCategory.DataSource = LookupAtrributes.GetAllAttributeAndValuesByFOR(AttributeOptionFor, "FacilityCategory").MasterAttributeValues;
            ddlFacilityCategory.DataSource     = Categories;
            ddlFacilityCategory.DataTextField  = "AttributeValue";
            ddlFacilityCategory.DataValueField = "MasterAttributeValue_Id";
            ddlFacilityCategory.DataBind();
        }
Ejemplo n.º 9
0
        protected void fillEntityFor()
        {
            MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();
            RQ.MasterFor = "MappingFileConfig";
            RQ.Name      = "MappingEntity";
            var res = masterscv.GetAllAttributeAndValues(RQ);

            chklistEntityFor.DataSource     = res;
            chklistEntityFor.DataTextField  = "AttributeValue";
            chklistEntityFor.DataValueField = "AttributeValue";
            chklistEntityFor.DataBind();

            chkListEntityForSearch.DataSource     = res;
            chkListEntityForSearch.DataTextField  = "AttributeValue";
            chkListEntityForSearch.DataValueField = "AttributeValue";
            chkListEntityForSearch.DataBind();

            RQ = null;
        }
Ejemplo n.º 10
0
        protected void GetFacilityType()
        {
            DropDownList ddlFacilityCategory = (DropDownList)frmFacilityDetail.FindControl("ddlFacilityCategory");
            DropDownList ddlFacilityType     = (DropDownList)frmFacilityDetail.FindControl("ddlFacilityType");

            ddlFacilityType.Items.Clear();

            if (ddlFacilityCategory.SelectedItem.Value != "0")
            {
                MDMSVC.DC_MasterAttribute RQ = new MDMSVC.DC_MasterAttribute();

                RQ.MasterFor = AttributeOptionFor;
                RQ.Name      = "FacilityType";
                RQ.ParentAttributeValue_Id = Guid.Parse(ddlFacilityCategory.SelectedItem.Value);
                var types = mastersvc.GetAllAttributeAndValues(RQ);

                //ddlFacilityType.DataSource = LookupAtrributes.GetAllAttributeAndValuesByFOR(AttributeOptionFor, "FacilityType").MasterAttributeValues;
                ddlFacilityType.DataSource     = types;
                ddlFacilityType.DataTextField  = "AttributeValue";
                ddlFacilityType.DataValueField = "MasterAttributeValue_Id";
                ddlFacilityType.DataBind();
            }
            ddlFacilityType.Items.Insert(0, new ListItem("-Select-", "0"));
        }