示例#1
0
        //Loading data
        public void InitData()
        {
            progress = new ProgressDialog(this, Resource.Style.StyledDialog);
            progress.Indeterminate = true;
            progress.SetMessage("Please wait...");
            progress.SetCancelable(true);
            progress.Show();

            orderListAdapter = new OrderAddListAdapter(this, OrderController.GetOrderList(StartDate));

            orderListView.Adapter = orderListAdapter;


            RegisterForContextMenu(orderListView);

            progress.Dismiss();
        }
示例#2
0
        public int LoadOrderList()
        {
            this.EditType = Intent.GetStringExtra("type");

            var items = Intent.GetParcelableArrayListExtra("key");

            if (items != null)
            {
                items = items.Cast <OrderList1> ().ToArray();

                List <OrderList> orderList = new List <OrderList> ();

                foreach (OrderList1 item in items)
                {
                    OrderList order = new OrderList();
                    order.StockId   = item.Id;
                    order.StockName = item.StockName;
                    order.Unit      = item.Unit;
                    if (item.IsSkip == 0)
                    {
                        order.IsSkip = false;
                    }
                    else
                    {
                        order.IsSkip = true;
                    }

                    order.OrderNumber  = item.OrderNumber;
                    order.ShouldNumber = item.ShouldNumber;
                    order.StockNumber  = item.StockNumber;

                    orderList.Add(order);
                }

                orderListAdapter      = new OrderAddListAdapter(this, orderList);
                orderListView.Adapter = orderListAdapter;

                return(1);
            }
            else
            {
                return(0);
            }
        }
示例#3
0
 public OrderFilter(OrderAddListAdapter adapter)
 {
     _adapter = adapter;
 }