Esempio n. 1
0
 private void List_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         PO_Summary           po       = (PO_Summary)e.AddedItems[0];
         List <PickingDetail> pickings = new List <PickingDetail>();
         Random rnd = new Random();
         for (int i = 0; i < po.PRODUCT_COUNT; i++)
         {
             PickingDetail pick = new PickingDetail(i + 1, "23058403", "ฟุตลองสไปซี่ (SCB-12)", 445, 20, 16.2m, 36, rnd.Next(5), rnd.Next(20), DateTime.Now, "นาย ก อ่านบาร์โค้ด");
             pickings.Add(pick);
         }
         lvDetail.ItemsSource = null;
         lvDetail.ItemsSource = pickings;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 2
0
        private void DefineSampleData()
        {
            PO_Summary        item;
            List <PO_Summary> items = new List <PO_Summary>();

            item = new PO_Summary(lineCode: "NNSS09", poName: "สุวรรณภูมิ ไส้กรอก PO9", productCount: 41, weight: 932, totalTake: 5234, fullFIll: 100, residualBaskets: 30, residual: 800, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ก, ฟุตลองสไปซี่ (SCB-12), 20/36");
            items.Add(item);
            item = new PO_Summary(lineCode: "NNSS10", poName: "สุวรรณภูมิ ไส้กรอก P10", productCount: 30, weight: 934, totalTake: 2334, fullFIll: 200, residualBaskets: 31, residual: 801, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ข, ฟุตลองสไปซี่ (SCB-12), เสร็จแล้ว");
            items.Add(item);
            item = new PO_Summary(lineCode: "NNSS11", poName: "สุวรรณภูมิ ไส้กรอก P11", productCount: 33, weight: 935, totalTake: 3434, fullFIll: 300, residualBaskets: 32, residual: 802, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ค, ฟุตลองสไปซี่ (SCB-12), 40/106");
            items.Add(item);
            item = new PO_Summary(lineCode: "NNSS12", poName: "สุวรรณภูมิ ไส้กรอก P12", productCount: 20, weight: 936, totalTake: 4534, fullFIll: 400, residualBaskets: 33, residual: 804, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ง, ฟุตลองสไปซี่ (SCB-12), 60/306");
            items.Add(item);
            item = new PO_Summary(lineCode: "NNSS13", poName: "สุวรรณภูมิ ไส้กรอก P13", productCount: 40, weight: 937, totalTake: 5634, fullFIll: 500, residualBaskets: 34, residual: 805, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);
            item = new PO_Summary(lineCode: "NNSS14", poName: "สุวรรณภูมิ ไส้กรอก P14", productCount: 35, weight: 938, totalTake: 6734, fullFIll: 600, residualBaskets: 35, residual: 806, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);
            item = new PO_Summary(lineCode: "NNSS15", poName: "สุวรรณภูมิ ไส้กรอก P15", productCount: 27, weight: 939, totalTake: 7834, fullFIll: 700, residualBaskets: 36, residual: 807, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);
            item = new PO_Summary(lineCode: "NNSS16", poName: "สุวรรณภูมิ ไส้กรอก P16", productCount: 17, weight: 940, totalTake: 8934, fullFIll: 800, residualBaskets: 37, residual: 808, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);

            list.ItemsSource = items;
        }
Esempio n. 3
0
        private void DefineSampleData()
        {
            PO_Summary        item;
            List <PO_Summary> items = new List <PO_Summary>();

            item = new PO_Summary(lineCode: "NNSS09", poName: "สุวรรณภูมิ ไส้กรอก PO9", productCount: 41, weight: 932, totalTake: 5234, fullFIll: 100, residualBaskets: 30, residual: 800, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ก, ฟุตลองสไปซี่ (SCB-12), 20/36");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(18.796143, 98.979263), Colors.Green);
            item = new PO_Summary(lineCode: "NNSS10", poName: "สุวรรณภูมิ ไส้กรอก P10", productCount: 41, weight: 934, totalTake: 2334, fullFIll: 200, residualBaskets: 31, residual: 801, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ข, ฟุตลองสไปซี่ (SCB-12), เสร็จแล้ว");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(13.69269, 100.750465), Colors.Green);
            item = new PO_Summary(lineCode: "NNSS11", poName: "สุวรรณภูมิ ไส้กรอก P11", productCount: 41, weight: 935, totalTake: 3434, fullFIll: 300, residualBaskets: 32, residual: 802, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ค, ฟุตลองสไปซี่ (SCB-12), 40/106");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(9.14011, 99.33311), Colors.Green);
            item = new PO_Summary(lineCode: "NNSS12", poName: "สุวรรณภูมิ ไส้กรอก P12", productCount: 41, weight: 936, totalTake: 4534, fullFIll: 400, residualBaskets: 33, residual: 804, currentPicks: 1000, lastActDateTime: DateTime.Now, lastActivity: "นาย ง, ฟุตลองสไปซี่ (SCB-12), 60/306");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(7.900544, 98.985268), Colors.Green);
            item = new PO_Summary(lineCode: "NNSS13", poName: "สุวรรณภูมิ ไส้กรอก P13", productCount: 41, weight: 937, totalTake: 5634, fullFIll: 500, residualBaskets: 34, residual: 805, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(13.03887, 101.490104), Colors.Green);
            item = new PO_Summary(lineCode: "NNSS14", poName: "สุวรรณภูมิ ไส้กรอก P14", productCount: 41, weight: 938, totalTake: 6734, fullFIll: 600, residualBaskets: 35, residual: 806, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(13.922104600, 101.577931500), Colors.Green);
            item = new PO_Summary(lineCode: "NNSS15", poName: "สุวรรณภูมิ ไส้กรอก P15", productCount: 41, weight: 939, totalTake: 7834, fullFIll: 700, residualBaskets: 36, residual: 807, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(10.72167, 99.26259), Colors.Green);
            item = new PO_Summary(lineCode: "NNSS16", poName: "สุวรรณภูมิ ไส้กรอก P16", productCount: 41, weight: 940, totalTake: 8934, fullFIll: 800, residualBaskets: 37, residual: 808, currentPicks: 1000, lastActDateTime: null, lastActivity: "");
            items.Add(item);
            PlaceProgressBar(MyMap, item.PICK_PERCENTS, new Location(12.671163982, 101.273998904), Colors.Green);

            list.ItemsSource = items;

            //Location textLocation = MyMap.Center;
            //string text = "70%";
            //PlaceText(MyMap, text, textLocation, Colors.Yellow, 16.0);
        }