protected void grdTLGXMasters_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName != "Page")
     {
         List <MDMSVC.DC_CityMapping> RQ = new List <MDMSVC.DC_CityMapping>();
         Guid        myRow_Id            = Guid.Parse(e.CommandArgument.ToString());
         GridViewRow row   = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
         int         index = row.RowIndex;
         if (e.CommandName == "Select")
         {
             if (myRow_Id != null)
             {
                 CityKey = myRow_Id;
                 MDMSVC.DC_CityMapping newObj = new MDMSVC.DC_CityMapping
                 {
                     CityMapping_Id = CityMapping_Id,
                     Country_Id     = CountryKey,
                     City_Id        = CityKey,
                     Status         = "MAPPED",
                     Supplier_Id    = Guid.Parse(ddlSupplierName.SelectedItem.Value),
                     Edit_Date      = DateTime.Now,
                     Edit_User      = System.Web.HttpContext.Current.User.Identity.Name,
                 };
                 RQ.Add(newObj);
                 if (mapperSVc.UpdateCityMappingDatat(RQ))
                 {
                     fillmappeddata();
                     SortBy = "CountryName";
                     SortEx = "";
                     fillmappingdata();
                 }
             }
         }
     }
 }
Esempio n. 2
0
        public bool UpdateHotelDetail(MDMSVC.DC_CityMapping HotelData)
        {
            object result = null;

            ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["Mapping_UpdateCityMappingURI"], HotelData, typeof(MDMSVC.DC_CityMapping), typeof(bool), out result);
            return((bool)result);
        }