Exemple #1
0
    private void SaveData(string IsDelete)
    {
        try
        {
            objPayrollMgr.InsertPaySlipSalHeadSeq(txtSeqNo.Text.Trim(), ddlSalaryHead.SelectedValue.ToString(), hfIsUpdate.Value, IsDelete, ddlDisplayType.SelectedValue.ToString());

            if (hfIsUpdate.Value == "N")
            {
                lblMsg.Text = "Record Saved Successfully";
            }
            else
            {
                lblMsg.Text = "Record Updated Successfully";
            }
            Common.EmptyTextBoxValues(this);
            this.EntryMode(false);
            this.OpenRecord();
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }