コード例 #1
0
 protected void clearfields()
 {
     try
     {
         RTB_RasiedBy.Text       = string.Empty;
         RTB_Designation.Text    = string.Empty;
         RTB_Dateofcreation.Text = string.Empty;
         RTB_Businessunit.Text   = string.Empty;
         RTB_ApplicantName.Text  = string.Empty;
         RTB_Department.Text     = string.Empty;
         // RCMB_Applicant.ClearSelection();
         RTB_JobRequistionDescription.Text = string.Empty;
         RCMB_JobRequistion.ClearSelection();
         RCB_SalaryStructure.ClearSelection();
         RCMB_leavestructure.ClearSelection();
         RDP_JoinDate.SelectedDate  = null;
         RDP_Offerdate.SelectedDate = null;
         RTB_OfferSalary.Text       = string.Empty;
         RCMB_Applicant.ClearSelection();
         RCMB_Applicant.Items.Clear();
         RCMB_Applicant.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));
         RDP_JoinDate.MinDate = Convert.ToDateTime("01-01-1900");
         RTB_Directorate.Text = string.Empty;
         RTB_Scale.Text       = string.Empty;
         //RDP_Offerdate.MinDate = Convert.ToDateTime("01-01-1900");
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_JobOffers", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
コード例 #2
0
    protected void RCMB_JobRequistion_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        //_obj_Rec_JobOffers = new RECRUITMENT_JOBOFFERS();
        //_obj_Rec_JobOffers.MODE = 1;
        //_obj_Rec_JobOffers.JOBOFFRS_REQCODE = Convert.ToInt32(RCMB_JobRequistion.SelectedItem.Value);
        //DataTable dt_joboffer = BLL.get_OfferLetterCheck(_obj_Rec_JobOffers);
        //if (Convert.ToInt32(dt_joboffer.Rows[0]["count"]) == 0)
        //{
        try
        {
            RTB_RasiedBy.Text       = string.Empty;
            RTB_Designation.Text    = string.Empty;
            RTB_Dateofcreation.Text = string.Empty;
            RTB_Businessunit.Text   = string.Empty;
            RTB_ApplicantName.Text  = string.Empty;
            RTB_Department.Text     = string.Empty;
            RTB_Directorate.Text    = string.Empty;
            RTB_Scale.Text          = string.Empty;
            // RCMB_Applicant.ClearSelection();
            RTB_JobRequistionDescription.Text = string.Empty;
            //RCMB_JobRequistion.ClearSelection();
            RCB_SalaryStructure.ClearSelection();
            RCMB_leavestructure.ClearSelection();
            RDP_JoinDate.SelectedDate  = null;
            RDP_Offerdate.SelectedDate = null;
            RTB_OfferSalary.Text       = string.Empty;
            RCMB_Applicant.ClearSelection();
            RCMB_Applicant.Items.Clear();
            RCMB_Applicant.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));

            DataTable dt_Details = new DataTable();
            _obj_Rec_JobRequisition           = new RECRUITMENT_JOBREQUISITION();
            _obj_Rec_JobRequisition.OPERATION = operation.load;
            _obj_Rec_JobRequisition.JOBREQ_ID = Convert.ToInt32(RCMB_JobRequistion.SelectedItem.Value);
            dt_Details = Recruitment_BLL.get_JobReqDetails(_obj_Rec_JobRequisition);
            if (dt_Details.Rows.Count != 0)
            {
                //lbl_id.Text = Convert.ToString(dt_Details.Rows[0]["JOBREQ_ID"]);
                RTB_JobRequistionDescription.Text = Convert.ToString(dt_Details.Rows[0]["JOBREQ_REQNAME"]);
                RTB_Businessunit.Text             = Convert.ToString(dt_Details.Rows[0]["JOBREQ_BUSINESSUNIT_ID"]);
                RTB_RasiedBy.Text       = Convert.ToString(dt_Details.Rows[0]["RASIEDBY"]);
                RTB_Designation.Text    = Convert.ToString(dt_Details.Rows[0]["JOBREQ_DESIGNATION"]);
                RTB_Department.Text     = Convert.ToString(dt_Details.Rows[0]["JOBREQ_DEPARTMENT"]);
                RTB_Dateofcreation.Text = Convert.ToString(dt_Details.Rows[0]["JOBREQ_REQEXPIRY"]);
                RTB_Directorate.Text    = Convert.ToString(dt_Details.Rows[0]["DIRECTORATE_CODE"]);
                RTB_Scale.Text          = Convert.ToString(dt_Details.Rows[0]["EMPLOYEEGRADE_CODE"]);
                RTB_OfferSalary.Text    = Convert.ToString(dt_Details.Rows[0]["EMPLOYEEGRADE_SLAB_AMOUNT"]);
                //RDP_Offerdate.SelectedDate = Convert.ToDateTime(Convert.ToString(dt_Details.Rows[0]["INTREM_JOININGDATE"]));

                JOBREQ_ID = Convert.ToInt32(dt_Details.Rows[0]["JOBREQ_ID"]);
                LoadApplicant(JOBREQ_ID);
            }
            else
            {
                LoadApplicant(JOBREQ_ID);
                job_applicant();
            }
            //}
            //else
            //{

            //    BLL.ShowMessage(this, "Offer Letter already generated");
            //    return;
            //}
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_JobOffers", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
            return;
        }
    }