Esempio n. 1
0
 protected void btnSavePropertyStratingPrice_Click(object sender, EventArgs e)
 {
     try
     {
         if (checkDublicateRoomNO() == false)
         {
             string mobile = Session["s_MobileNo"].ToString();
             if (ddlProperty.SelectedItem.Value != "0")
             {
                 string acNonAc = rdbtnAcNonAC.Checked ? "AC" : "NON-AC";
                 uc.AddPropertyStartingPrice(mobile, ddlProperty.SelectedItem.Text, ddlProperty.SelectedItem.Value, acNonAc, txtRoomSharingType.Text.ToUpper(), txtStartingPrice.Text);
                 string textmsg = "Rooms Types " + txtRoomSharingType.Text + " starting price " + txtStartingPrice.Text + " added  Successfully !";
                 ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpopsuccess('" + textmsg + "')</script>", false);
                 txtRoomSharingType.Text = string.Empty;
                 txtStartingPrice.Text   = string.Empty;
                 btnSavePropertyStratingPrice.Visible = true;
                 btnSaveChenge.Visible = false;
             }
             else
             {
                 string text = "Please select Property Name";
                 ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
             }
         }
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }