Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string Imei = Request.QueryString["Imei"] ?? "019d3110a2145081";

            ws      ws = new ws();
            DataSet ds = ws.PV_Imei(Imei);
        }
Exemplo n.º 2
0
		protected void Page_Load(object sender, EventArgs e)
		{
			string Imei = Request.QueryString["Imei"] ?? "019d3110a2145081";

			ws ws = new ws();
			DataSet ds = ws.PV_Imei(Imei);
		}
Exemplo n.º 3
0
        protected void btnQuery_Click(object sender, EventArgs e)
        {
            string Imei = txtImei.Text;

            int      FirstLogType     = 0;
            int      LastLogType      = 0;
            DateTime FirstTime        = new DateTime(9999, 12, 31);
            string   FirstPlatform    = "未知";
            string   FirstSMSC        = "未知";
            string   FirstProvince    = "未知";
            DateTime LastTime         = new DateTime(9999, 12, 31);
            string   LastPlatform     = "未知";
            string   LastSMSC         = "未知";
            string   LastProvince     = "未知";
            int      VisitCountTotal  = 0;
            int      VisitCountWeek   = 0;
            int      VisitCountDWeek  = 0;
            int      VisitCountMonth  = 0;
            int      VisitCountNMonth = 0;

            ws      ws = new ws();
            DataSet ds = ws.PV_Imei(Imei);
            DataRow dr = ds.Tables[0].Rows[0];

            FirstLogType     = dr["FirstLogType"] == null ? 0 : Convert.ToInt32(dr["FirstLogType"]);
            FirstTime        = dr["FirstTime"] == null ? new DateTime(9999, 12, 31) : Convert.ToDateTime(dr["FirstTime"]);
            FirstPlatform    = dr["FirstPlatform"] == null ? "未知" : dr["FirstPlatform"].ToString();
            FirstSMSC        = dr["FirstSMSC"] == null ? "未知" : dr["FirstSMSC"].ToString();
            FirstProvince    = dr["FirstProvince"] == null ? "未知" : dr["FirstProvince"].ToString();
            LastTime         = dr["LastTime"] == null ? new DateTime(9999, 12, 31) : Convert.ToDateTime(dr["LastTime"]);
            LastLogType      = dr["LastLogType"] == null ? 0 : Convert.ToInt32(dr["LastLogType"]);
            LastPlatform     = dr["LastPlatform"] == null ? "未知" : dr["LastPlatform"].ToString();
            LastSMSC         = dr["LastSMSC"] == null ? "未知" : dr["LastSMSC"].ToString();
            LastProvince     = dr["LastProvince"] == null ? "未知" : dr["LastProvince"].ToString();
            VisitCountTotal  = dr["VisitCountTotal"] == null ? 0 : Convert.ToInt32(dr["VisitCountTotal"]);
            VisitCountWeek   = dr["VisitCountWeek"] == null ? 0 : Convert.ToInt32(dr["VisitCountWeek"]);
            VisitCountDWeek  = dr["VisitCountDWeek"] == null ? 0 : Convert.ToInt32(dr["VisitCountDWeek"]);
            VisitCountMonth  = dr["VisitCountMonth"] == null ? 0 : Convert.ToInt32(dr["VisitCountMonth"]);
            VisitCountNMonth = dr["VisitCountNMonth"] == null ? 0 : Convert.ToInt32(dr["VisitCountNMonth"]);

            txtOut.Text = FirstTime.ToString("yyyy-MM-dd HH:mm:ss") + "," + FirstLogType + "," + FirstPlatform + "," + FirstSMSC + "," + FirstProvince + ","
                          + LastLogType + "," + LastTime.ToString("yyyy-MM-dd HH:mm:ss") + "," + LastPlatform + "," + LastSMSC + "," + LastProvince + ","
                          + VisitCountTotal + "," + VisitCountWeek + "," + VisitCountDWeek + "," + VisitCountMonth + "," + VisitCountNMonth;
        }
Exemplo n.º 4
0
		protected void btnQuery_Click(object sender, EventArgs e)
		{
			string Imei = txtImei.Text;

			int FirstLogType = 0;
			int LastLogType = 0;
			DateTime FirstTime = new DateTime(9999, 12, 31);
			string FirstPlatform = "未知";
			string FirstSMSC = "未知";
			string FirstProvince = "未知";
			DateTime LastTime = new DateTime(9999, 12, 31);
			string LastPlatform = "未知";
			string LastSMSC = "未知";
			string LastProvince = "未知";
			int VisitCountTotal = 0;
			int VisitCountWeek = 0;
			int VisitCountDWeek = 0;
			int VisitCountMonth = 0;
			int VisitCountNMonth = 0;

			ws ws = new ws();
			DataSet ds = ws.PV_Imei(Imei);
			DataRow dr = ds.Tables[0].Rows[0];

			FirstLogType = dr["FirstLogType"] == null ? 0 : Convert.ToInt32(dr["FirstLogType"]);
			FirstTime = dr["FirstTime"] == null ? new DateTime(9999, 12, 31) : Convert.ToDateTime(dr["FirstTime"]);
			FirstPlatform = dr["FirstPlatform"] == null ? "未知" : dr["FirstPlatform"].ToString();
			FirstSMSC = dr["FirstSMSC"] == null ? "未知" : dr["FirstSMSC"].ToString();
			FirstProvince = dr["FirstProvince"] == null ? "未知" : dr["FirstProvince"].ToString();
			LastTime = dr["LastTime"] == null ? new DateTime(9999, 12, 31) : Convert.ToDateTime(dr["LastTime"]);
			LastLogType = dr["LastLogType"] == null ? 0 : Convert.ToInt32(dr["LastLogType"]);
			LastPlatform = dr["LastPlatform"] == null ? "未知" : dr["LastPlatform"].ToString();
			LastSMSC = dr["LastSMSC"] == null ? "未知" : dr["LastSMSC"].ToString();
			LastProvince = dr["LastProvince"] == null ? "未知" : dr["LastProvince"].ToString();
			VisitCountTotal = dr["VisitCountTotal"] == null ? 0 : Convert.ToInt32(dr["VisitCountTotal"]);
			VisitCountWeek = dr["VisitCountWeek"] == null ? 0 : Convert.ToInt32(dr["VisitCountWeek"]);
			VisitCountDWeek = dr["VisitCountDWeek"] == null ? 0 : Convert.ToInt32(dr["VisitCountDWeek"]);
			VisitCountMonth = dr["VisitCountMonth"] == null ? 0 : Convert.ToInt32(dr["VisitCountMonth"]);
			VisitCountNMonth = dr["VisitCountNMonth"] == null ? 0 : Convert.ToInt32(dr["VisitCountNMonth"]);

			txtOut.Text = FirstTime.ToString("yyyy-MM-dd HH:mm:ss") + "," + FirstLogType + "," + FirstPlatform + "," + FirstSMSC + "," + FirstProvince + ","
				+ LastLogType + "," + LastTime.ToString("yyyy-MM-dd HH:mm:ss") + "," + LastPlatform + "," + LastSMSC + "," + LastProvince + ","
				+ VisitCountTotal + "," + VisitCountWeek + "," + VisitCountDWeek + "," + VisitCountMonth + "," + VisitCountNMonth;
		}