Esempio n. 1
0
        public void SelectRow(string xypoint, string hphm, string clpp, string csys, string hpzl, string clzt)
        {
            ShowLine(xypoint);
            strhphm = hphm;
            strhpzl = hpzl;
            DataRow[] drs = Dt_passcar.Select("hphm='" + hphm + "'");
            DataTable dt  = GetData();

            foreach (DataRow dr in drs)
            {
                dt.Rows.Add(dr.ItemArray);
            }
            winhphm.Title = hphm;
            clppwin.Text  = clpp;
            csyswin.Text  = csys;
            hpzlwin.Text  = (hpzl != "" ? gethpzl(hpzl) : "");

            winhphm.Show();
            wingcjl.Title = hphm + GetLangStr("FrequentOverCar45", "_过车记录");
            wingcjl.Show();
            if (dt != null && dt.Rows.Count > 0)
            {
                Storegcjl.DataSource = dt;
                Storegcjl.DataBind();
                this.ResourceManager1.RegisterAfterClientInitScript("isScroll()");
            }
            else
            {
                Storegcjl.RemoveAll();
                Storegcjl.DataBind();
            }
            RowSelectionModel sm1 = this.GridRoadManager.SelectionModel.Primary as RowSelectionModel;

            sm1.SelectedRows.Clear();
            sm1.UpdateSelection();
        }
Esempio n. 2
0
        public void showwin(string hphm, string clpp, string csys, string hpzl, string clzt)
        {
            strhphm = hphm;
            strhpzl = hpzl;
            DataRow[] drs = Dt_passcar.Select("hphm='" + hphm + "' or hphm='" + cboplate.VehicleText + txtplate.Text + "'", "gwsj asc");
            DataTable dt  = GetData();

            foreach (DataRow dr in drs)
            {
                if (Dt_passcar.Select("kkid='" + dr["kkid"] + "' and hphm='" + hphm + "'").Length > 0)
                {
                    dt.Rows.Add(dr.ItemArray);
                }
            }
            winhphm.Title = hphm;
            //clppwin.Text = clpp;
            //csyswin.Text = csys;
            //hpzlwin.Text = (hpzl != "" ? gethpzl(hpzl) : "");
            showcarinfo(hphm, clpp, csys, hpzl);

            //clztwin.Text = clzt;
            winhphm.Show();
            wingcjl.Title = hphm + "_过车记录";
            wingcjl.Show();
            if (dt != null && dt.Rows.Count > 0)
            {
                Storegcjl.DataSource = dt;
                Storegcjl.DataBind();
                //this.ResourceManager1.RegisterAfterClientInitScript("isScroll();");
            }
            else
            {
                Storegcjl.RemoveAll();
                Storegcjl.DataBind();
            }
        }