Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //이창을 포커싱한다.
                ClientAction.WindowFocus(null);

                //이미지경로 받아서 이미지
                if (Request.QueryString["gcID"] != null)
                {
                    gcID = Request.QueryString["gcID"];
                    if (this.LargeImageViewBind())
                    {
                        System.Drawing.Size drawingSize = ImageLib.Self.GetDrawingImageSize(this.imgLIV.ImageUrl);
                        //사이즈수정
                        if (drawingSize.IsEmpty)
                        {
                            ClientAction.WindowResizeTo(Convert.ToUInt16(imgLIV.Width.Value + 120), Convert.ToUInt16(imgLIV.Height.Value + 165));
                        }
                        else
                        {
                            ClientAction.WindowResizeTo(Convert.ToUInt16(drawingSize.Width + 200), Convert.ToUInt16(drawingSize.Height + 170));
                            //ImageLib.Self.ImageResize(ref imgLIV, 1000, 1000);
                        }
                    }
                    else
                    {
                        ClientAction.ShowMsgAndClose("해당 데이터가 없습니다.");
                    }
                }
                else
                {
                    ClientAction.ShowMsgAndClose("정상적인 접근이 아닙니다");
                }


                //타이틀명 설정
                if (Request.QueryString["tn"] != null)
                {
                    ClientAction.SetBrowserTitleBar("이미지확대 - [" + Request.QueryString["tn"] + "]");
                }
                else
                {
                    ClientAction.AddBrowserTitleBar("이미지확대");
                }

                //기타 설정
                if (Request.QueryString["etc"] != null)
                {
                }
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //이창을 포커싱한다.
                ClientAction.WindowFocus(null);

                //이미지경로 받아서 이미지
                if (Request.QueryString["pi"] != null)
                {
                    //ClientAction.ShowInfoMsg("a=" + imgZoom.Width.Value.ToString());

                    //사이즈수정
                    //ClientAction.WindowResizeTo(800, 800);
                    _pathInfo    = Request.QueryString["pi"];
                    _drawingSize = ImageLib.Self.GetDrawingImageSize(_pathInfo);

                    if (_drawingSize.IsEmpty)
                    {
                        ClientAction.WindowResizeTo(Convert.ToUInt16(imgZoom.Width.Value + 120), Convert.ToUInt16(imgZoom.Height.Value + 190));
                    }
                    else
                    {
                        imgZoom.ImageUrl = _pathInfo;
                        imgZoom.Width    = _drawingSize.Width;
                        imgZoom.Height   = _drawingSize.Height;
                        ClientAction.WindowResizeTo(Convert.ToUInt16(_drawingSize.Width + 120), Convert.ToUInt16(_drawingSize.Height + 190));
                    }
                    imgZoom.Dispose();
                }

                //타이틀명 설정
                if (Request.QueryString["tn"] != null)
                {
                    ClientAction.SetBrowserTitleBar("이미지확대 - [" + Request.QueryString["tn"] + "]");
                }
                else
                {
                    ClientAction.AddBrowserTitleBar("이미지확대");
                }

                //기타 설정
                if (Request.QueryString["etc"] != null)
                {
                }
            }
        }
Exemplo n.º 3
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     //페이지타이틀설정
     ClientAction.AddBrowserTitleBar("Calendar Helper");
     if (!Page.IsPostBack)
     {
         //Page_Load에서 발생할 이벤트들을 미리 알수 있는가?
         //string evtSender = Request["__EVENTTARGET"];   //'이벤트발생 컨트롤 ID
         //string evtArg = Request["__EVENTARGUMENT"];    //'이벤트발생 매개변수
         //Response.Write("영기영 --> " +  evtSender);
         hlReset.NavigateUrl = Request.Url.ToString();                // + "?" + URLQuery.Self.GetQueryString();
     }
     else
     {
         calBasic.SelectedDate = System.DateTime.MinValue;
     }
 }