Exemplo n.º 1
0
        private void MoreInformLink_Click(object sender, EventArgs e)
        {
            string selectStatement = "select * from orderlist where order_id = \"" + order_lists[current] + "\"";

            com = new MySqlCommand(selectStatement, Login.con);
            com.ExecuteNonQuery();
            MySqlDataReader dataReader = com.ExecuteReader();

            dataReader.Read();
            string _order_id    = order_lists[current];
            string _receiver_id = dataReader.GetString("receiver_id");
            string _count       = dataReader.GetString("money_amount");
            string _state       = "";

            switch (dataReader.GetString("state"))
            {
            case "placed":
                _state = "已经成功下单,等待确认中";
                break;

            case "checked":
                _state = "订单已经被确认,等待接收中";
                break;

            case "received":
                _state = "货物已经被接收,等待入库";
                break;

            case "entered":
                _state = "货物已经入库,等待配送员配送";
                break;

            case "dised":
                _state = "订单正在配送中";
                break;

            case "finished":
                _state = "已经成功送达到收货方";
                break;

            default: break;
            }
            dataReader.Close();
            MorInform inform = new MorInform(_order_id, _receiver_id, _count, _state);

            inform.Show();
        }
Exemplo n.º 2
0
 private void MoreInformLink_Click(object sender, EventArgs e)
 {
     string selectStatement = "select * from orderlist where order_id = \"" + order_lists[current] + "\"";
     com = new MySqlCommand(selectStatement, Login.con);
     com.ExecuteNonQuery();
     MySqlDataReader dataReader = com.ExecuteReader();
     dataReader.Read();
     string _order_id = order_lists[current];
     string _receiver_id = dataReader.GetString("receiver_id");
     string _count = dataReader.GetString("money_amount");
     string _state = "";
     switch (dataReader.GetString("state"))
     {
         case "placed":
             _state = "已经成功下单,等待确认中";
             break;
         case "checked":
             _state = "订单已经被确认,等待接收中";
             break;
         case "received":
             _state = "货物已经被接收,等待入库";
             break;
         case "entered":
             _state = "货物已经入库,等待配送员配送";
             break;
         case "dised":
             _state = "订单正在配送中";
             break;
         case "finished":
             _state = "已经成功送达到收货方";
             break;
         default: break;
     }
     dataReader.Close();
     MorInform inform = new MorInform(_order_id, _receiver_id, _count, _state);
     inform.Show();
 }