/// <summary>
        /// 创建一个弹出窗体
        /// </summary>
        /// <param name="sdata"></param>
        private void AddWindow(string sdata)
        {
            Window win = WindowShow.AddPeccancyArea(sdata);

            win.Render(this.Form);
            win.Show();
        }
Exemplo n.º 2
0
        private void AddWindow(string sdata)
        {
            //DataTable dt = tgsDataInfo.GetPassCarImageUrl(Bll.Common.GetdatabyField(sdata, "col0"));
            Window win = WindowShow.AddPeccancy(sdata);

            win.Render(this.Form);
            win.Show();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Adds the window.
 /// </summary>
 /// <param name="sdata"></param>
 /// <returns></returns>
 private void AddWindow(string sdata)
 {
     try {
         Window win = WindowShow.AddPeccancyArea(sdata);
         win.Render(this.Form);
         win.Show();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("PeccancyAreaQuery.aspx-AddWindow", ex.Message + ";" + ex.StackTrace, "AddWindow has an exception");
     }
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="sdata"></param>
 private void AddWindow(string sdata)
 {
     try
     {
         Window win = WindowShow.AddFlowCar(sdata);
         win.Render(this.Form);
         win.Show();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("FlowInfoQuery.aspx-AddWindow", ex.Message, "AddWindow has an exception");
     }
 }
Exemplo n.º 5
0
        public void Show()
        {
            if (!visible && modal)
            {
                app.SceneManager.PushModalStack(this);
            }
            visible = true;

            OnShow();
            if (WindowShow != null)
            {
                WindowShow.Invoke(this, new EventArgs());
            }
        }
Exemplo n.º 6
0
 /// <summary>
 /// 显示详细信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ShowDetails(object sender, DirectEventArgs e)
 {
     try
     {
         string sdata = e.ExtraParams["data"];
         Window win   = WindowShow.AddLogErrInfo(sdata);
         win.Render(this.Form);
         win.Show();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("LogError.aspx-ShowDetails", ex.Message + ";" + ex.StackTrace, "ShowDetails has an exception");
     }
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="sdata"></param>
 private void AddWindow(string sdata)
 {
     try
     {
         string page = "MyNet.Atmcs.Uscmcp.Web.AlarmInfoQuery";
         Window win  = WindowShow.AddAlarmCar(page, sdata);
         win.Render(this.Form);
         win.Show();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("AlarmInfoQuery.aspx-AddWindow", ex.Message + ";" + ex.StackTrace, "AddWindow has an exception");
     }
 }
Exemplo n.º 8
0
 /// <summary>
 /// 显示详细信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ShowDetails(object sender, DirectEventArgs e)
 {
     try
     {
         string sdata    = e.ExtraParams["data"];
         string filepath = Server.MapPath("./data/QQWry.Dat");
         Window win      = WindowShow.AddLogInfo(sdata, filepath);
         win.Render(this.Form);
         win.Show();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("LogRunning.aspx-ShowDetails", ex.Message + ";" + ex.StackTrace, "ShowDetails has an exception");
     }
 }
        /// <summary>
        /// 显示详细信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void ShowDetails(object sender, DirectEventArgs e)
        {
            try
            {
                string    data = e.ExtraParams["data"];
                string    wfid = Bll.Common.GetdatabyField(data, "col8");
                DataTable dt   = null;
                if (!string.IsNullOrEmpty(wfid))
                {
                    dt = tgsDataInfo.GetPeccancyInfo(" xh='" + wfid + "' ", 0, 15);
                    if (dt != null)
                    {
                        Window win = WindowShow.AddPeccancy(dt.Rows[0]);
                        win.Render(this.Form);
                        win.Show();
                    }
                    else
                    {
                        Notice("信息提示提示", "没查询到违法信息");
                        return;
                    }
                }
                else
                {
                    Notice("信息提示提示", "没查询到违法信息");
                    return;
                }

                //string sdata = e.ExtraParams["data"];
                //string filepath = Server.MapPath("./data/QQWry.Dat");
                //Window win = WindowShow.AddLogInfo(sdata, filepath);
                //win.Render(this.Form);
                //win.Show();
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("LogRunning.aspx-ShowDetails", ex.Message + ";" + ex.StackTrace, "ShowDetails发生异常");
            }
        }