예제 #1
0
        public void GetUserRecord(string username, string category)
        {
            objServiceTimelinesBEL.Roll     = category;
            objServiceTimelinesBEL.UserName = username;

            DataSet ds = new DataSet();

            try
            {
                ds = objServiceTimelinesBLL.GetUserRecords(objServiceTimelinesBEL);
                if (ds.Tables[0].Rows.Count >= 0)
                {
                    lbldesignationid = ds.Tables[0].Rows[0]["DesignationID"].ToString();

                    int       userID        = Convert.ToInt32(ds.Tables[0].Rows[0][0].ToString());
                    LoginInfo _objLoginInfo = new LoginInfo(username, category, userID);
                    Session["objLoginInfo"] = _objLoginInfo;
                }
            }
            catch (Exception ex)
            {
                ExceptionLogging.SendExcepToDB(ex);
                Response.Write("Oops! error occured :" + ex.Message.ToString());
            }
            finally
            {
                objServiceTimelinesBEL = null;
                objServiceTimelinesBLL = null;
            }


            masterMenu(Session["Type"].ToString().Trim());
        }
        private void bindQualification()
        {
            belBookDetails   objServiceTimelinesBEL = new belBookDetails();
            BooksDetails_BLL objServiceTimelinesBLL = new BooksDetails_BLL();
            DataSet          ds = new DataSet();

            try
            {
                if (ds != null)
                {
                    ds = objServiceTimelinesBLL.GetQualification();
                    ddlQuaification.DataSource     = ds;
                    ddlQuaification.DataTextField  = "Qualification";
                    ddlQuaification.DataValueField = "ID";
                    ddlQuaification.DataBind();
                    ddlQuaification.Items.Insert(0, new ListItem("--Select--", "0"));
                }
            }
            catch (Exception ex)
            {
                Response.Write("Oops! error occured :" + ex.Message.ToString());
            }
            finally
            {
                objServiceTimelinesBEL = null;
                objServiceTimelinesBLL = null;
            }
        }
        private void bindgridforUsercreation()
        {
            belBookDetails   objServiceTimelinesBEL = new belBookDetails();
            BooksDetails_BLL objServiceTimelinesBLL = new BooksDetails_BLL();
            DataSet          ds = new DataSet();

            try
            {
                ds = objServiceTimelinesBLL.GetgridforUsercreation();
                if (ds != null)
                {
                    gridUsercreationdetails.DataSource = ds;
                    gridUsercreationdetails.DataBind();
                }
            }
            catch (Exception ex)
            {
                Response.Write("Oops! error occured :" + ex.Message.ToString());
            }
            finally
            {
                objServiceTimelinesBEL = null;
                objServiceTimelinesBLL = null;
            }
        }
        private void bindgridDepartments()
        {
            belBookDetails   objServiceTimelinesBEL = new belBookDetails();
            BooksDetails_BLL objServiceTimelinesBLL = new BooksDetails_BLL();
            DataSet          ds = new DataSet();

            try
            {
                ds = objServiceTimelinesBLL.GetgridforDepartments();
                if (ds != null)
                {
                    Grid_Departments.DataSource = ds;
                    Grid_Departments.DataBind();
                }
            }
            catch (Exception ex)
            {
                Response.Write("Oops! error occured :" + ex.Message.ToString());
            }
        }
        private void bindgridQualification()
        {
            belBookDetails   objServiceTimelinesBEL = new belBookDetails();
            BooksDetails_BLL objServiceTimelinesBLL = new BooksDetails_BLL();
            DataSet          ds = new DataSet();

            try
            {
                ds = objServiceTimelinesBLL.GetgridforQualification();
                if (ds != null)
                {
                    Grid_Qualification.DataSource = ds;
                    Grid_Qualification.DataBind();
                }
            }
            catch (Exception ex)
            {
                ExceptionLogging.SendExcepToDB(ex);
                Response.Write("Oops! error occured :" + ex.Message.ToString());
            }
        }
예제 #6
0
        protected void BindDDLNode()
        {
            belBookDetails   objServiceTimelinesBEL = new belBookDetails();
            BooksDetails_BLL objServiceTimelinesBLL = new BooksDetails_BLL();

            DataSet dsR = new DataSet();

            try
            {
                dsR = objServiceTimelinesBLL.GetAllNodeForDDl();
                ddl_Node.DataSource     = dsR.Tables[0];
                ddl_Node.DataTextField  = "ParkName";
                ddl_Node.DataValueField = "ParkNo";
                ddl_Node.DataBind();
                ddl_Node.Items.Insert(0, new ListItem("--Select--", "0"));
            }
            catch (Exception ex)
            {
                ExceptionLogging.SendExcepToDB(ex);
                Response.Write("Oops! error occured :" + ex.Message.ToString());
            }
        }
예제 #7
0
        private void BindPlotsInGrid()
        {
            objServiceTimelinesBEL.NodeID = Convert.ToInt32(ddl_Node.SelectedValue.Trim());
            DataSet ds = new DataSet();

            try
            {
                ds = objServiceTimelinesBLL.GetAdvertisedPlot(objServiceTimelinesBEL);

                if (ds.Tables.Count > 0)
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        btnSave.Enabled     = true;
                        GridPlot.DataSource = ds.Tables[0];
                        GridPlot.DataBind();
                    }
                    else
                    {
                        string message = "Please note that for the industrial area you selected there are no plots available for allotment at this time. You can explore other industrial areas for the availability of plots.";
                        System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "call_show", "DisplayMultiLineAlert('" + message + "');", true);
                        btnSave.Enabled     = false;
                        GridPlot.DataSource = null;
                        GridPlot.DataBind();
                    }
                }
            }
            catch (Exception ex)
            {
                Response.Write("Oops! error occured :" + ex.Message.ToString());
            }
            finally
            {
                objServiceTimelinesBEL = null;
                objServiceTimelinesBLL = null;
            }
        }