コード例 #1
0
        internal void InitData(string refinv)
        {
            List <SetPalletListData> obj = new SetPalletControllers().GetJobListPallet(refinv);

            if (obj.Count > 0)
            {
                int x = 0;
                obj.ForEach(i => {
                    x += i.ITem;
                });
                prAffCode.Value    = obj[0].AffCode;
                prInvoiceNo.Value  = obj[0].RefInv;
                prRefNo.Value      = obj[0].RefNo;
                prQrCode.Value     = obj[0].RefNo;
                prCustCode.Value   = obj[0].CustCode;
                prCountry.Value    = obj[0].CustName;
                prShipType.Value   = obj[0].ShipType;
                prFactory.Value    = obj[0].Factory;
                prGroupOrder.Value = obj[0].CombInv;
                pPartName.Value    = "PARTNO";
                if (obj[0].Factory != "INJ")
                {
                    pPartName.Value = "PARTNAME";
                }

                prContainerType.Value = obj[0].ContainerType;
                prDesinations.Value   = "";
                prEtdDate.Value       = obj[0].EtdDte;
                prQty.Value           = x;
                prPrintDate.Value     = DateTime.Now;
            }
            objectDataSource1.DataSource = obj;
        }
コード例 #2
0
        void Reload()
        {
            npl.Clear();
            gridPartControl.DataSource          = null;
            gridPalletControl.DataSource        = null;
            gridPalleteDetailControl.DataSource = null;
            List <SetPallatData> list = new SetPalletControllers().GetPartListDetail(inv);
            List <SetPallatData> ord  = new List <SetPallatData>();

            if (list.Count > 0)
            {
                var r = list[0];
                bbiFactory.EditValue  = r.Factory;
                bbiShip.EditValue     = r.ShipType;
                bbiZone.EditValue     = r.ZName;
                bbiEtd.EditValue      = r.EtdDte;
                bbiAff.EditValue      = r.AffCode;
                bbiCustCode.EditValue = r.CustCode;
                bbiCustName.EditValue = r.CustName;
                bbiOrderBy.EditValue  = r.CombInv;
                bbiRefInv.EditValue   = r.RefNo;
                bbiInv.EditValue      = r.RefInv;
                list.ForEach(i => {
                    if (i.Ctn > 0)
                    {
                        ord.Add(i);
                    }
                });
            }
            gridPartControl.DataSource = ord;
            bsiRecordsCount.Caption    = "RECORDS : " + ord.Count;
            npl = new SetPalletControllers().GetPartListCompletedDetail(inv);
            gridPalletControl.DataSource = npl;
        }
コード例 #3
0
        public SetPalletAddToForm(SetPallatData obj)
        {
            InitializeComponent();
            ob = obj;
            List <SetPallatData> list = new SetPalletControllers().GetPartListCompletedDetail(ob.RefNo);

            list.ForEach(i => {
                cbPalletObj.Properties.Items.Add(i.ShipPlNo);
            });
        }