Exemple #1
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();
        }
        /// <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发生异常");
            }
        }