Beispiel #1
0
    private void SaveData(string IsDelete)
    {
        long lngID = 0;

        try
        {
            MasterTablesManager MasMgr = new MasterTablesManager();

            if (hfIsUpadate.Value == "N")
            {
                // lngID = objDB.GerMaxIDNumber("PostingDivisionList", "PostingDivId");TrainingNeedType
                lngID = objDB.GerMaxIDNumber("TrainingNeedType", "TrainingNeedTypeID");
            }
            else
            {
                lngID = Convert.ToInt32(hfID.Value);
            }



            Desigation objCnt = new Desigation(lngID.ToString(), txtTraniniType.Text.Trim(), "N", Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "HRD", "N", "N", (ChkIsActive.Checked == true ? "N" : "Y"));

            objTM.InsTainingTypeWiseSubtype(grLocation, objCnt, hfIsUpadate.Value, IsDelete, (ChkIsActive.Checked == true ? "N" : "Y"));

            lblMsg.Text = Common.GetMessage(hfIsUpadate.Value.ToString(), IsDelete);
            Common.EmptyTextBoxValues(this);
            this.EntryMode(false);
            this.OpenRecord(0);
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }