Beispiel #1
0
        public static bool CheckServerCenter()
        {
            RefreshSnapShotBLL objBll = new RefreshSnapShotBLL();

            if (ConfigurationManager.AppSettings["ServerType"] == "0" && !objBll.IsExistsRefreshSnapShot("USP_REFRESH_SNAPSHOT", "PROCEDURE"))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!PrjPub.IsServerCenter)
            {
                RefreshSnapShotBLL objBll = new RefreshSnapShotBLL();
                if (!objBll.IsExistsRefreshSnapShot("BOOK", "MATERIALIZED VIEW"))
                {
                    Response.Redirect("RefreshDataDefault.aspx");
                }
            }

            BBSUrl = System.Configuration.ConfigurationManager.AppSettings["BBCUrl"].ToString();
            if (!IsPostBack)
            {
                BindGrid();
            }
        }
Beispiel #3
0
        public static bool IsCreateSnapShot()
        {
            RefreshSnapShotBLL objBll = new RefreshSnapShotBLL();

            return(objBll.IsExistsRefreshSnapShot("BOOK", "MATERIALIZED VIEW"));
        }