示例#1
0
        /// <summary>
        /// To find route status after save
        /// </summary>
        /// <param name="ProjectId"></param>
        public void findRouteStatusafterSave(int ProjectId)
        {
            ProjectRouteBLL objProjectRouteBLL = new ProjectRouteBLL();
            ProjectRouteBO  objProjectRoute    = new ProjectRouteBO();

            objProjectRoute.Project_Id = ProjectId;

            objProjectRoute = objProjectRouteBLL.findRouteStatusafterSave(objProjectRoute);

            if ((objProjectRoute) != null)
            {
                txtFinalRoute.Enabled   = false;
                txtComments.Enabled     = false;
                txtapprovedby.Enabled   = false;
                txtapprovedDate.Enabled = false;
                GetApproavlComments();

                if (objProjectRoute.ApprovedstatusID == 3)
                {
                    pnlApprovel.Visible = false;
                    //StatusLabel.Visible = true;
                    ApprovalMessage1.SetMessage = ApprovalMessage.MessageValue.RouteApprovalSent;
                    //StatusLabel.Text = "Route Approval is Pending";
                    btn_Save.Visible       = false;
                    btn_Clear.Visible      = false;
                    ApproverButton.Visible = false;
                }
            }
        }
示例#2
0
        /// <summary>
        /// To find Route Status after Save
        /// </summary>
        /// <param name="ProjectId"></param>
        public void findRouteStatusafterSave(int ProjectId)
        {
            ProjectRouteBLL objProjectRouteBLL = new ProjectRouteBLL();
            ProjectRouteBO  objProjectRoute    = new ProjectRouteBO();

            objProjectRoute.Project_Id = ProjectId;

            objProjectRoute = objProjectRouteBLL.findRouteStatusafterSave(objProjectRoute);
            if ((objProjectRoute) != null)
            {
                if (objProjectRoute.ApprovedstatusID == 3)
                {
                    btnSave.Visible  = false;
                    btnClear.Visible = false;
                }
            }
        }
示例#3
0
        /// <summary>
        /// to find Route Status after Save
        /// </summary>
        /// <param name="ProjectId"></param>
        public void findRouteStatusafterSave(int ProjectId)
        {
            ProjectRouteBLL objProjectRouteBLL = new ProjectRouteBLL();
            ProjectRouteBO  objProjectRoute    = new ProjectRouteBO();

            objProjectRoute.Project_Id = ProjectId;

            objProjectRoute = objProjectRouteBLL.findRouteStatusafterSave(objProjectRoute);
            if ((objProjectRoute) != null)
            {
                if (objProjectRoute.ApprovedstatusID == 3)
                {
                    btn_Save.Visible        = false;
                    btn_Clear.Visible       = false;
                    btn_ImportExcel.Visible = false;
                    GrdRouteCoordinates.Columns[GrdRouteCoordinates.Columns.Count - 1].Visible = false;
                    GrdRouteCoordinates.Columns[GrdRouteCoordinates.Columns.Count - 2].Visible = false;
                }
            }
        }