Beispiel #1
0
    public void testGetZBcpid()
    {
        Model.ChannelProgram mcp = new Model.ChannelProgram();
        mcp.DataTypeID = 1;

        BLL.DataBLL dbll = new BLL.DataBLL();
        //int done = sbll.setStationsInfo(msr, "insert");
        Label1.Text = dbll.getZBcpid(mcp).CP_ID.ToString();
    }
Beispiel #2
0
 public void testGetDataType()
 {
     BLL.DataBLL         dbll = new BLL.DataBLL();
     Model.RecordeData[] mrd2 = dbll.getDataType(null);
     for (int i = 0; i < mrd2.Length; i++)
     {
         al.Add(mrd2[i]);
     }
 }
Beispiel #3
0
 public void changePage(string cpid)
 {
     BLL.DataBLL         dbll = new BLL.DataBLL();
     Model.RecordeData[] mrd  = dbll.getRealStations(cpid);
     for (int i = 0; i < mrd.Length; i++)
     {
         al.Add(mrd[i]);
     }
 }
Beispiel #4
0
    public void testSearchStationInfo2()
    {
        Model.StationRelation msr = new Model.StationRelation();
        msr.StationID   = 54511;
        msr.StationName = "北xx京";

        BLL.DataBLL           dbll = new BLL.DataBLL();
        Model.StationRelation msr2 = dbll.searchStationInfo2(msr);
        //Label1.Text = msr2.SelectID + "|" + msr2.StationID + "|" + msr2.StationName + "|" + msr2.StationTableID;
    }
Beispiel #5
0
    public void testGetTimeType()
    {
        Model.RecordeData mrd = new Model.RecordeData();
        mrd.DataType = 1;

        BLL.DataBLL         dbll = new BLL.DataBLL();
        Model.RecordeData[] mrd2 = dbll.getTimeType(mrd);
        for (int i = 0; i < mrd2.Length; i++)
        {
            al.Add(mrd2[i]);
        }
    }
Beispiel #6
0
    public void testGetAllElement()
    {
        Model.ElementRelation mer = new Model.ElementRelation();
        mer.DataTypeID = 2;

        BLL.DataBLL             dbll = new BLL.DataBLL();
        Model.ElementRelation[] mer2 = dbll.getAllElement(mer);
        for (int i = 0; i < mer2.Length; i++)
        {
            al.Add(mer2[i]);
        }
    }
Beispiel #7
0
    public void testSearchStationInfo()
    {
        Model.StationRelation msr = new Model.StationRelation();
        msr.StationID = 54511;
        //msr.StationName = "北";

        BLL.DataBLL             dbll = new BLL.DataBLL();
        Model.StationRelation[] msr2 = dbll.searchStationInfo(msr);
        for (int i = 0; i < msr2.Length; i++)
        {
            al.Add(msr2[i]);
        }
    }
Beispiel #8
0
    public void testGetZBSX()
    {
        Model.RecordeData mrd = new Model.RecordeData();
        mrd.TimeType = 6;
        mrd.DataType = 1;



        BLL.DataBLL         dbll = new BLL.DataBLL();
        Model.RecordeData[] msr2 = dbll.getZBSX(mrd);
        for (int i = 0; i < msr2.Length; i++)
        {
            al.Add(msr2[i]);
        }
        Label1.Text = msr2.Length.ToString();
    }
Beispiel #9
0
    public void testGetZBstations()
    {
        Model.ChannelProgram mcp = new Model.ChannelProgram();
        mcp.DataTypeID = 1;
        mcp.TimeTypeID = 6;



        BLL.DataBLL             dbll = new BLL.DataBLL();
        Model.StationRelation[] msr2 = dbll.getZBStations(mcp);
        for (int i = 0; i < msr2.Length; i++)
        {
            al.Add(msr2[i]);
        }
        Label1.Text = msr2.Length.ToString();
    }
Beispiel #10
0
    public void testGetData()
    {
        //public Model.RecordeData[] getData(String cpid)


        //Model.StationRelation msr = new Model.StationRelation();
        //msr.StationID = 54511;
        //msr.StationName = "北";

        BLL.DataBLL         dbll = new BLL.DataBLL();
        Model.RecordeData[] msr2 = dbll.getData("75");
        for (int i = 0; i < msr2.Length; i++)
        {
            al.Add(msr2[i]);
        }
    }