コード例 #1
0
    private void SaveData()
    {
        try
        {
            string strLeaveUpdate = "";
            this.UploadCV();
            this.UploadDocument();
            this.UploadSignature();

            if (hfLPakId.Value.ToString() == ddlLeavePackage.SelectedValue.ToString()) // || (hfJoiningDate.Value == Common.DisplayDate(txtJoiningDate.Text))) //mn
            {
                strLeaveUpdate = "N";
            }
            else
            {
                strLeaveUpdate = "Y";
            }

            objEmpInfoMgr.InsertEmpInfoTabHR(this.BindObject(), strLeaveUpdate, chkIsNew.Checked == true ? "Y" : "N", Session["FISCALYRID"].ToString());

            lblMsg.Text = "Record Updated Successfully";

            this.EntryMode(false);
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }