Ejemplo n.º 1
0
    private void SaveData(string IsDelete)
    {
        try
        {
            Payroll_Currency objCurr = new Payroll_Currency(hfID.Value.ToString(), txtCurrName.Text.Trim(), txtCurrSymbol.Text.Trim(),
                                                            txtSmallUnitName.Text, (chkDefault.Checked == true ? "Y" : "N"), txtConvAmt.Text,
                                                            (chkInActive.Checked == true ? "N" : "Y"), Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N", "N");

            objPayrollMgr.InsertCurrency(objCurr, hfIsUpdate.Value, IsDelete);

            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);
        }
    }