Beispiel #1
0
 public void Fill(Pallet pallet)
 {
     PalletNumber.Text = pallet.PalletNumber.ToString();
     TexImage.Image = pallet.Tex.TexImage;
     Shipment.Text = pallet.Shipment.ToString();
     Date.Text = DateTime.Now.ToShortDateString();
     BarCode.Text = String.Format("P.{0}.{1}", AddZero(pallet.Shipment.ToString(), 7), AddZero(pallet.PalletNumber.ToString(), 2));
 }
Beispiel #2
0
        public void Fill(Pallet PL)
        {
            int i = 0;
            int j = 0;
            for (int k = 0; k < 4; k++) sum[k] = 0;
            while ((i < PL.Bobbins.Rows.Count)&&(i < 30))
                {
                    DataRow row = dataSet1.Tables[0].NewRow();
                    row[1] = Convert.ToDouble(PL.Bobbins.Rows[i]["Weight"].ToString());
                    row[0] = PL.Bobbins.Rows[i]["BobbinNumber"];
                    row[2] = PL.Bobbins.Rows[i]["Customer"];
                    dataSet1.Tables[0].Rows.Add(row);
                    sum[j] += Convert.ToDouble(row[1].ToString());
                    i++;
                    j = ((int)(i / 30));
                }
            while ( i < PL.Bobbins.Rows.Count && i <= 120)
            {
            dataSet1.Tables[0].Rows[i - j * 30][j * 3 + 1] = Convert.ToDouble(PL.Bobbins.Rows[i]["Weight"].ToString());
            dataSet1.Tables[0].Rows[i - j * 30][j * 3] = PL.Bobbins.Rows[i]["BobbinNumber"];
            dataSet1.Tables[0].Rows[i - j * 30][j * 3 + 2] = PL.Bobbins.Rows[i]["Customer"];
            sum[j] += Convert.ToDouble(PL.Bobbins.Rows[i]["Weight"].ToString());
                i++;
                j = ((int)(i / 30));
            }
            if (i > 30)
            {
                xrTable2.Visible = true;
                xrTable6.Visible = true;
                xrTable10.Visible = true;
            }
            if (i > 60)
                {
                    xrTable3.Visible = true;
                    xrTable7.Visible = true;
                    xrTable11.Visible = true;
                }

            if (i > 90)
            {
                xrTable4.Visible = true;
                xrTable8.Visible = true;
                xrTable12.Visible = true;
            }
            Total1.Text = sum[0].ToString();
            Total2.Text = sum[1].ToString();
            Total3.Text = sum[2].ToString();
            Total4.Text = sum[3].ToString();
            LBSender.Text = PL.Sender.Name;
            LBDate.Text = PL.Date.ToString();
            LBPart.Text = PL.Shipment.ToString();
            LBShippingNum.Text = PL.PalletNumber.ToString();
            LBTeks.Text = PL.Tex.Description;
            LBTotalWeight.Text = Math.Round(PL.TotalPalletWeight,3).ToString();
            LBTotalPartWeight.Text = ((Shipment)PL.ShipmentDoc.Read()).TotalShipmentWeight.ToString();
        }
Beispiel #3
0
        public void Fill(Pallet pallet, string netStr, int bobbinNumber)
        {
            Tex.Text = pallet.Tex.Description;
            TexImage.Image = pallet.Tex.TexImage;
            if (pallet.PrintLenght && pallet.PackType != null)
                {
                Length.Visible = true;
                xrLabel10.Visible = true;
                xrLabel2.Visible = true;
                Length.Text = ( pallet.PackType.Weight * 1000 / Convert.ToInt32(pallet.Tex.Description) ).ToString();
                }
            else
                {
                Length.Visible = false;
                xrLabel10.Visible = false;
                xrLabel2.Visible = false;
                }

            Specification.Text = pallet.Specification.Number;
            if ( pallet.Complectation == Aramis.Enums.ComplectationType.Group )
                {
                Count.Visible = true;
                Count.Text = pallet.BobbinCount.ToString();
                xrLabel3.Visible = true;
                }
            else
                {
                Count.Visible = false;
                xrLabel3.Visible = false;
                }

            Net.Text = netStr;
            Shipment.Text = pallet.Shipment.ToString();
            BobbinNumber.Text = bobbinNumber.ToString();
            Date.Text = DateTime.Now.ToShortDateString();
            Senders sender = pallet.Sender;
            SenderDescription.Text = pallet.Sender.Name;
            SenderCity.Text = pallet.Sender.City;
            SenderAddress.Text = String.Format("{0}, {1}", pallet.Sender.Street, pallet.Sender.HouseNum);
            SenderPhone1.Text = pallet.Sender.Phone1;
            SenderPhone2.Text = pallet.Sender.Phone2;
            SenderPhone3.Text = pallet.Sender.Phone3;
            BarCode.Text = String.Format("B.{0}.{1}", AddZero(pallet.Shipment.ToString(), 7), AddZero(bobbinNumber.ToString(), 4));
        }
Beispiel #4
0
 private void StandartPackButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     Pallet newItem = new Pallet();
     newItem.Complectation = ComplectationType.Standart;
     newItem.FillFromTemplate();
     //Aramis.UI.UserInterface.Current.ShowSystemObject(newItem, new PalletItemForm());
     Aramis.UI.UserInterface.Current.ShowItem(newItem);
 }
Beispiel #5
0
 private void GroupPackButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     Pallet newItem = new Pallet();
     newItem.Complectation = ComplectationType.Group;
     newItem.FillFromTemplate();
     Aramis.UI.UserInterface.Current.ShowItem(newItem);
 }
Beispiel #6
0
 private void StandartPackButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     Pallet newItem = new Pallet();
     newItem.Complectation = ComplectationType.Standart;
     newItem.FillFromTemplate();
     AbstructUI.UI.ShowDatabaseObject(newItem);
 }