Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DropDownListFiles.DataSource = FtpHelpers.GetListOfFiles(ConfigSettings.FtpDirectory, ConfigSettings.FtpUsername, ConfigSettings.FtpPassword);
            DropDownListFiles.DataBind();

            DimCase         = new Vector3D(300.0, 280.0, 275.0);
            WeightCase      = 1.0;
            DimPallet       = new Vector3D(1200.0, 1000.0, 155.0);
            WeightPallet    = 23.0;
            MaxPalletHeight = 1700.0;
            BoxPositions    = new List <BoxPosition>();
        }
    }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DropDownListFiles.DataSource = FtpHelpers.GetListOfFiles(ConfigSettings.FtpDirectory, ConfigSettings.FtpUsername, ConfigSettings.FtpPassword);
                DropDownListFiles.DataBind();

                DimCase        = new Vector3D(300.0, 280.0, 275.0);
                WeightCase     = 1.0;
                WeightPallet   = 23.0;
                PalletIndex    = 0;
                NumberOfLayers = 8;
                BoxPositions   = new List <BoxPositionIndexed>();
            }
        }