示例#1
0
        private void BindFormContents()
        {
            var pl = new PalletLocation();

            lkPalletLocations.DataSource = PalletLocation.GetAll();
            gridReceives.DataSource      = pl.GetReceivesForGRVPrinting(CurrentContext.UserId, 2);
        }
示例#2
0
        private void BindFormContents()
        {
            if (!BLL.Settings.IsCenter)
            {
                lkAccount.SetupActivityEditor().SetDefaultActivity();
            }
            else
            {
                colLocation.Visible      = false;
                layoutAccount.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            }
            //Warehouse
            lkWarehouse.Properties.DataSource = BLL.Warehouse.GetWarehouseWithCluster(CurrentContext.UserId);

            PalletLocation pl = new PalletLocation();

            lkPalletLocations.DataSource = PalletLocation.GetAll();

            if (currentMode == Modes.QuantityConfirmation)
            {
                gridReceives.DataSource = pl.GetReceivesForQtyConfirmation(CurrentContext.UserId);
                if (CurrentContext.LoggedInUser.UserType == UserType.Constants.STORE)
                {
                    btnConfirm.Enabled = false;
                }
            }
        }
示例#3
0
        private void BindFormContents()
        {
            PalletLocation pl = new PalletLocation();

            lkPalletLocations.DataSource = PalletLocation.GetAll();

            if (currentMode == Modes.GRVPrinting)
            {
                gridReceives.DataSource = pl.GetReceivesForGRVPrinting(CurrentContext.UserId, 1);
            }
        }
        private void BindFormContents()
        {
            PalletLocation pl = new PalletLocation();

            lkPalletLocations.DataSource = PalletLocation.GetAll();

            if (currentMode == Modes.DeliveryNotePrinting)
            {
                gridReceives.DataSource = pl.GetReceivesForGRVPrinting(CurrentContext.UserId, 3);
                colLocation.Visible     = false;
                colInsurance.Visible    = false;
                colMargin.Visible       = false;
            }
        }
示例#5
0
        private void BindFormContents()
        {
            var pl = new PalletLocation();

            lkPalletLocations.DataSource = PalletLocation.GetAll();
            if (currentMode == Modes.GRVConfirmation)
            {
                gridReceives.DataSource  = pl.GetReceivesForGRVConfirmation(CurrentContext.UserId);
                colLocation.Visible      = false;
                colInsurance.Visible     = false;
                colMargin.Visible        = false;
                lcReprint.Visibility     = LayoutVisibility.Always;
                lcRequestVoid.Visibility = LayoutVisibility.Always;
                lcVoid.Visibility        = LayoutVisibility.Always;
            }
        }