Exemplo n.º 1
0
 private void fillSystemCountry()
 {
     try
     {
         var result = _serviceMaster.GetCountryMasterData(new MDMSVC.DC_Country_Search_RQ()
         {
         });
         if (result != null)
         {
             if (result.Count > 0)
             {
                 ddlMasterCountry.Items.Clear();
                 ddlMasterCountry.DataSource     = result;
                 ddlMasterCountry.DataValueField = "Country_Id";
                 ddlMasterCountry.DataTextField  = "Name";
                 ddlMasterCountry.DataBind();
                 ddlMasterCountry.Items.Insert(0, new ListItem {
                     Text = "-- ALL--", Value = "0"
                 });
             }
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
        private void fillcountries()
        {
            MDMSVC.DC_Country_Search_RQ RQ = new MDMSVC.DC_Country_Search_RQ();
            RQ.PageNo   = 0;
            RQ.PageSize = int.MaxValue;
            var result = mastersvc.GetCountryMasterData(RQ);

            ddlCountry.DataSource     = result;
            ddlCountry.DataTextField  = "Name";
            ddlCountry.DataValueField = "Country_Id";
            ddlCountry.DataBind();
        }