Beispiel #1
0
        private void BuildDropDownList()
        {
            MiscUtil.PopulateBDProject(ddlProjectID, false);

            if (OverviewProjectID > 0)
            {
                ddlProjectID.SelectedValue = OverviewProjectID.ToString();
                ddlProjectID.Enabled       = false;
            }
            MiscUtil.PopulateHREmployee(ddlEmployeeID, false);
            MiscUtil.PopulateMDProjectAssignedPersonTeamRole(ddlProjectAssignedPersonTeamRoleID, false);
        }
Beispiel #2
0
        protected void odsBDProjectUnitLocation_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            String fe = SqlExpressionBuilder.PrepareFilterExpression("BDProjectUnitLocation." + BDProjectUnitLocationEntity.FLD_NAME_ProjectID, OverviewProjectID.ToString(), SQLMatchType.Equal);

            e.InputParameters["filterExpression"] = fe;
        }
Beispiel #3
0
        protected void odsBDProjectFloorUnit_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
        {
            String fe_floor = SqlExpressionBuilder.PrepareFilterExpression("BDProjectFloor.ProjectID", OverviewProjectID.ToString(), SQLMatchType.Equal);

            e.InputParameters["filterExpression"] = fe_floor;
        }
Beispiel #4
0
        private void BuildApprovalNavigation()
        {
            String fe = SqlExpressionBuilder.PrepareFilterExpression(BDProjectCollectedDocumentInfoEntity.FLD_NAME_ProjectID, OverviewProjectID.ToString(), SQLMatchType.Equal);
            IList <BDProjectCollectedDocumentInfoEntity> lstBDProjectCollectedDocumentInfo = FCCBDProjectCollectedDocumentInfo.GetFacadeCreate().GetIL(null, null, String.Empty, fe, DatabaseOperationType.LoadWithFilterExpression);

            String navUrl = String.Empty;

            if (lstBDProjectCollectedDocumentInfo != null && lstBDProjectCollectedDocumentInfo.Count > 0)
            {
                navUrl = UrlHelper.BuildSecureUrl("~/BD/BDProjectCollectedDocumentInfo.aspx", string.Empty, UrlConstants.OVERVIEW_PROJECT_ID, OverviewProjectID.ToString()).ToString();
            }
            else
            {
                navUrl = UrlHelper.BuildSecureUrl("~/BD/BDProjectCollectedDocumentSetup.aspx", string.Empty, UrlConstants.OVERVIEW_PROJECT_ID, OverviewProjectID.ToString()).ToString();
            }

            hypApprovalRequired.NavigateUrl = navUrl;
            hypApprovalRequired.Target      = "_blank";
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "selecttab", "$('#tabs').tabs({ selected: " + hidLastTab.Value + " });", true);

            if (!IsPostBack)
            {
                PrepareValidator();
                PrepareInitialView();
            }

            hypProjectReport.NavigateUrl = UrlHelper.BuildSecureUrl("~/Reports/ReportViewer.aspx", string.Empty, "do", "ProjectReport", UrlConstants.OVERVIEW_PROJECT_ID, OverviewProjectID.ToString()).ToString();

            hypProjectReport.Target = "_blank";
        }