コード例 #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);
        }
    }
コード例 #2
0
    private void SaveData(string IsDelete)
    {
        long lngID = 0;

        try
        {
            MasterTablesManager MasMgr = new MasterTablesManager();

            if (hfIsUpadate.Value == "N")
            {
                lngID = objDB.GerMaxIDNumber("BloodGroupList", "BloodGroupId");
            }
            else
            {
                lngID = Convert.ToInt32(hfID.Value);
            }

            Desigation objCnt = new Desigation(lngID.ToString(), txtDesigation.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"));

            MasMgr.InsertBloodGroupList(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();
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }
コード例 #3
0
    private void SaveData(string IsDelete)
    {
        long lngID = 0;

        try
        {
            StringBuilder       strDivisionID = new StringBuilder();
            MasterTablesManager MasMgr        = new MasterTablesManager();

            if (hfIsUpadate.Value == "N")
            {
                lngID = objDB.GerMaxIDNumber("UnitList", "UnitId");
            }
            else
            {
                lngID = Convert.ToInt32(hfID.Value);
            }
            Desigation objCnt = new Desigation(lngID.ToString(), txtSbu.Text.Trim(), "N", Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "HRD", "N", "N", (chkInActive.Checked == true ? "N" : "Y"));

            MasMgr.InsertUnit(grDepartment, objCnt, hfIsUpadate.Value, IsDelete, (chkInActive.Checked == true ? "N" : "Y"));


            /* Division objDivision = new Division(lngID.ToString(), txtSbu.Text.Trim(), "N", Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N/A", "N", "N", (chkInActive.Checked == true ? "N" : "Y"));
             *
             * objMasMgr.InsertUnit(objDivision, hfIsUpadate.Value, IsDelete, (chkInActive.Checked == true ? "N" : "Y"));
             *
             * MasMgr.InsertUnit(grDepartment, objDivision, hfIsUpadate.Value, IsDelete, (chkInActive.Checked == true ? "N" : "Y"));*/
            if (hfIsUpadate.Value == "N")
            {
                lblMsg.Text = "Record Saved Successfully";
            }
            else
            {
                lblMsg.Text = "Record Updated Successfully";
            }
            Common.EmptyTextBoxValues(this);
            this.EntryMode(false);
            this.OpenRecord(0);
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }
コード例 #4
0
    private void SaveData(string IsDelete)
    {
        long lngID = 0;

        try
        {
            MasterTablesManager MasMgr = new MasterTablesManager();
            //Filling Class Properties with values
            //if (EntryMode(true))
            //    hfIsUpadate.Value="N";
            if (hfIsUpadate.Value == "N")
            {
                lngID = objDB.GerMaxIDNumber("JobTitle", "JbTlId");
            }
            else
            {
                lngID = Convert.ToInt32(hfID.Value);
            }

            Desigation objCnt = new Desigation(lngID.ToString(), txtDesigation.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"));

            MasMgr.InsertDesignation(objCnt, hfIsUpadate.Value, IsDelete, (ChkIsActive.Checked == true ? "N" : "Y"));

            if (hfIsUpadate.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);
        }
    }
コード例 #5
0
    private void SaveData(string IsDelete)
    {
        long lngID = 0;

        try
        {
            MasterTablesManager MasMgr = new MasterTablesManager();

            if (hfIsUpadate.Value == "N")
            {
                lngID = objDB.GerMaxIDNumber("SalaryLocation", "SalLocId");
            }
            else
            {
                lngID = Convert.ToInt32(hfID.Value);
            }

            Desigation objCnt = new Desigation(lngID.ToString(), txtDesigation.Text.Trim(), ddlCostCenterCode.SelectedItem.ToString().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"));

            MasMgr.InsertSalaryLocation(grSubLocation, objCnt, hfIsUpadate.Value, IsDelete, (ChkIsActive.Checked == true ? "N" : "Y"));

            if (hfIsUpadate.Value == "N")
            {
                lblMsg.Text = "Record Saved Successfully";
            }
            else
            {
                lblMsg.Text = "Record Updated Successfully";
            }
            Common.EmptyTextBoxValues(this);
            this.EntryMode(false);
            this.OpenRecord(0);
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }
コード例 #6
0
    private void SaveData(string IsDelete)
    {
        string sId = "";

        try
        {
            if (hfIsUpadate.Value == "N")
            {
                sId = Common.getMaxId("Designation", "DesigId");
            }
            else
            {
                sId = hfID.Value.ToString();
            }

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

            objMasMgr.InsertDesignation(objCnt, hfIsUpadate.Value, IsDelete, (ChkIsActive.Checked == true ? "N" : "Y"));

            if (hfIsUpadate.Value == "N")
            {
                lblMsg.Text = "Record Saved Successfully";
            }
            else
            {
                lblMsg.Text = "Record Updated Successfully";
            }
            Common.EmptyTextBoxValues(this);
            this.EntryMode(false);
            this.OpenRecord(0);
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }
    }
コード例 #7
0
    private void SaveData(string IsDelete)
    {
        try
        {
            MasterTablesManager MasMgr = new MasterTablesManager();
            //Filling Class Properties with values
            if (hfIsUpadate.Value == "N")
            {
                hfID.Value = Common.getMaxId("ProjectOfficeList", "ProjOfficeId");
            }
            else
            {
                hfID.Value = hfID.Value;
            }

            Desigation objCnt = new Desigation(hfID.Value.ToString(), txtName.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"));

            MasMgr.InsertProjectOffice(objCnt, hfIsUpadate.Value, IsDelete);

            if (hfIsUpadate.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);
        }
    }
コード例 #8
0
    private void SaveData(string IsDelete)
    {
        long lngID = 0;

        try
        {
            MasterTablesManager MasMgr = new MasterTablesManager();
            Desigation          objCnt = new Desigation(lngID.ToString(), "", "N", Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "HRD", "N", "N", "Y");
            MasMgr.UpdateProfessionalDegree(grprofessional, Session["USERID"].ToString());
            lblMsg.Text = "Record Updated Successfully";
            Common.EmptyTextBoxValues(this);
            //this.EntryMode(false);
            this.OpenRecord();
        }
        catch (Exception ex)
        {
            lblMsg.Text = "";
            throw (ex);
        }



        //  clsCommonSetup objCommonSetup = new clsCommonSetup(hfId.Value.ToString(), txtName.Text.Trim(), (chkInActive.Checked == true ? "N" : "Y"), "N",
        //        Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N", IsDelete);

        //   objEmpMgr.InsertDegree(objCommonSetup, hfIsUpdate.Value, IsDelete);
        //   lblMsg.Text = "Record Updated Successfully";
        //    Common.EmptyTextBoxValues(this);
        //    this.EntryMode(false);
        //    this.OpenRecord();
        //}
        //catch (Exception ex)
        //{
        //    lblMsg.Text = "";
        //    throw (ex);
        //}
    }