public DC_Message CopyAccomodationInfo(MDMSVC.DC_Accomodation_CopyRoomDef AF)
        {
            object result = null;

            ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["Accomodation_CopyAccoRoomInfo"], AF, typeof(DC_Accomodation_CopyRoomDef), typeof(DC_Message), out result);
            return(result as DC_Message);
        }
Beispiel #2
0
 protected void btnCopyRoomDef_Click(object sender, EventArgs e)
 {
     //Get Accommodation_RoomInfo_Id and  Category
     Accomodation_ID = Guid.Parse(Request.QueryString["Hotel_Id"]);
     TLGX_Consumer.MDMSVC.DC_Accomodation_CopyRoomDef newObj = new MDMSVC.DC_Accomodation_CopyRoomDef
     {
         Accommodation_RoomInfo_Id = Guid.Parse(hdnAccommodation_RoomInfo_Id.Value),
         Accommodation_Id          = Accomodation_ID,
         NewRoomCategory           = txtRoomCategory.Text,
         Create_User = System.Web.HttpContext.Current.User.Identity.Name
     };
     MDMSVC.DC_Message _msg = new MDMSVC.DC_Message();
     _msg = AccSvc.CopyAccomodationInfo(newObj);
     if (_msg != null)
     {
         if (_msg.StatusCode == MDMSVC.ReadOnlyMessageStatusCode.Success)
         {
             GetRoomInfoDetails(PageSize, intPageIndex);
             hdnFlagCopyRoomInfo.Value = "true";
             BootstrapAlert.BootstrapAlertMessage(dvMsg, _msg.StatusMessage, BootstrapAlertType.Success);
         }
         else if (_msg.StatusCode == MDMSVC.ReadOnlyMessageStatusCode.Duplicate)
         {
             BootstrapAlert.BootstrapAlertMessage(dvmsgCopyStatus, _msg.StatusMessage, BootstrapAlertType.Duplicate);
         }
     }
     ;
 }