protected void btnSave_Click(object sender, EventArgs e) { int Res = BLL_PB_PortageBill.INS_Crew_Salary_Instruction(GetCrewID(), UDFLib.ConvertToInteger(ddlVessel.SelectedValue), GetVoyageID(), UDFLib.ConvertToInteger(rdoEarndeduction.SelectedValue), txtPBDate.Text, UDFLib.ConvertToInteger(ddlType.SelectedValue), UDFLib.ConvertToDecimal(txtAmount.Text), txtRemarks.Text, GetSessionUserID()); Load_SalInstructions(); if (Res == 1) { lblMessage.Text = "Salary instruction added for the crew"; } }
protected void btnSave_Click(object sender, EventArgs e) { int Res = BLL_PB_PortageBill.INS_Crew_Salary_Instruction(GetCrewID(), UDFLib.ConvertToInteger(ddlVessel.SelectedValue), GetVoyageID(), UDFLib.ConvertToInteger(rdoEarndeduction.SelectedValue), txtPBDate.Text, UDFLib.ConvertToInteger(ddlType.SelectedValue), UDFLib.ConvertToDecimal(txtAmount.Text), txtRemarks.Text, GetSessionUserID()); if (Res == 1) { string js1 = "alert('Salary instruction added for the staff');parent.hideModal('dvPopupFrame');"; ScriptManager.RegisterStartupScript(this, this.GetType(), "msg11", js1, true); } }