コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Valid = new Validation();

        BoxScannTextBox.Attributes.Add("onfocus", "this.value=''");
        LocationTextBox.Attributes.Add("onfocus", "this.value=''");
        ProductTextBox.Attributes.Add("onfocus", "this.value=''");
        QuantityTextBox.Attributes.Add("onfocus", "this.value=''");
        if (Panel1.Visible == true)
        {
            StartLocationBox.Focus();
        }
        if (BoxScannTextBox.Text != "")
        {
            BoxID = BoxScannTextBox.Text;
            if (CurrentLocationTextBox.Text != "")
            {
                CurrentZone = CurrentLocationTextBox.Text;
            }
            //cant use these because of update pannel, have to call the function in the query
            // string shipmentID = Valid.GetShipmentID(BoxID);
            // string orderNumber = Valid.GetOrderNumber(BoxID);

            if (Panel2.Visible == true && Valid.IsValidOrder(BoxID) == true && CheckBox1.Checked == false)
            {
                PickTicketDataSource.SelectCommand = "SELECT PRODUCT_MASTER.DESCRIPTION, PRODUCT_MASTER.SHORT_DESCRIPTION, PRODUCT_MASTER.PIECE_PICK_LOCATION as From_Location, OUTBOUND_SHIPMENT_DETAILS.ORDER_LINE, OUTBOUND_SHIPMENT_DETAILS.Ordered_units as quantity FROM OUTBOUND_SHIPMENT_DETAILS INNER JOIN PRODUCT_MASTER ON OUTBOUND_SHIPMENT_DETAILS.PRODUCT_ID = PRODUCT_MASTER.PRODUCT_ID where OUTBOUND_SHIPMENT_DETAILS.shipment_id='" + Valid.GetShipmentID(BoxID) + "' and OUTBOUND_SHIPMENT_DETAILS.order_Number='" + Valid.GetOrderNumber(BoxID) + "'and OUTBOUND_SHIPMENT_DETAILS.UOM='EA'";
            }
            if (Panel2.Visible == true && Valid.IsValidOrder(BoxID) == true && CheckBox1.Checked == true)
            {
                PickTicketDataSource.SelectCommand = "select MQ.order_line, MQ.FROM_LOCATION,PM.DESCRIPTION,PM.short_description,  Sum(MQ.QUANTITY_REQUIRED) as quantity From Move_queue MQ (NOLOCK),  inventory INV (NOLOCK), Locations L (NOLOCK), Product_Master PM (NOLOCK) Where (INV._RID_ = MQ.INV_RID) And (PM.PRODUCT_ID = INV.PRODUCT_ID) And (MQ.FROM_LOCATION = L.LOCATION_ID) And (MQ.TYPE = 'PICK') And (MQ.LABELLEVEL = 'EA') And  L.PICKING_ZONE = '" + CurrentZone + "' And (MQ.SHIPMENT_ID = '" + Valid.GetShipmentID(BoxID) + "') And (MQ.ORDER_NUMBER = '" + Valid.GetOrderNumber(BoxID) + "') Group By MQ.SHIPMENT_ID, MQ.ORDER_NUMBER, MQ.ORDER_LINE, MQ.LABELLEVEL, ISNULL(INV.CASELABEL, ''), INV.PRODUCT_ID,PM.description, PM.SHORT_DESCRIPTION, L.PICKING_ZONE, L.LOCATION_GROUP, MQ.FROM_LOCATION, PICK_SEQUENCE, TO_LOCATION Order By L.LOCATION_GROUP, FROM_LOCATION";
            }
        }
    }
コード例 #2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="node">Dungeon node definition</param>
        public DungeonForm(XmlNode node)
        {
            InitializeComponent();

            // Create the dungeon
            Dungeon dungeon = new Dungeon();

            dungeon.Load(node);
            dungeon.Init();


            ItemTileSetBox.DataSource   = ResourceManager.GetAssets <TileSet>();
            ItemTileSetBox.SelectedItem = dungeon.ItemTileSetName;

            DecorationNameBox.Items.AddRange(ResourceManager.GetAssets <DecorationSet>().ToArray());
            DecorationNameBox.Items.Insert(0, "");
            WallTileSetNameBox.Items.AddRange(ResourceManager.GetAssets <TileSet>().ToArray());
            WallTileSetNameBox.Items.Insert(0, "");



            PreviewLoc = new DungeonLocation(dungeon.StartLocation);


            //		RebuildMazeList();
            DungeonNoteBox.Text = dungeon.Note;

            StartLocationBox.Dungeon = dungeon;
            StartLocationBox.SetTarget(dungeon.StartLocation);


            KeyboardScheme = ResourceManager.CreateAsset <InputScheme>(Game.InputSchemeName);
            if (KeyboardScheme == null)
            {
                KeyboardScheme = new InputScheme();
                KeyboardScheme["MoveForward"]  = Keys.Z;
                KeyboardScheme["MoveBackward"] = Keys.S;
                KeyboardScheme["StrafeLeft"]   = Keys.Q;
                KeyboardScheme["StrafeRight"]  = Keys.D;
                KeyboardScheme["TurnLeft"]     = Keys.A;
                KeyboardScheme["TurnRight"]    = Keys.E;
                KeyboardScheme["Inventory"]    = Keys.I;
                KeyboardScheme["SelectHero1"]  = Keys.D1;
                KeyboardScheme["SelectHero2"]  = Keys.D2;
                KeyboardScheme["SelectHero3"]  = Keys.D3;
                KeyboardScheme["SelectHero4"]  = Keys.D4;
                KeyboardScheme["SelectHero5"]  = Keys.D5;
                KeyboardScheme["SelectHero6"]  = Keys.D6;
            }



            Dungeon = dungeon;
        }
コード例 #3
0
        private void StoreData()
        {
            // Base info
            SelectedQuest.StartCondition.IsEnabled = IsEnabledBox.Text == @"True";
            SelectedQuest.ID             = (uint)IDBox.GetValue();
            SelectedQuest.Title.ID       = (uint)TitleBox.GetValue();
            SelectedQuest.Description.ID = (uint)DescriptionBox.GetValue();
            SelectedQuest.Region         = Convert.ToByte(RegionBox.GetValue());
            SelectedQuest.QuestType      = (QuestType)QuestTypeBox.SelectedIndex;
            SelectedQuest.IsRepeatAble   = IsRepeatableBox.Text == @"True";
            SelectedQuest.IsDailyQuest   = IsDailyQuestBox.Text == @"True";
            SelectedQuest.DailyType      = (DailyType)DailyQuestTypeBox.SelectedIndex;

            // Start info
            SelectedQuest.StartCondition.IsInstantAccept    = StartIsInstantAcceptBox.Text == @"True";
            SelectedQuest.StartCondition.IsWaitListView     = StartIsWaitListViewBox.Text == @"True";
            SelectedQuest.StartCondition.IsWaitListProgress = StartIsWaitListProgressBox.Text == @"True";
            SelectedQuest.StartCondition.NeedsLevel         = StartNeedsLevelBox.Text == @"True";
            SelectedQuest.StartCondition.LevelMin           = (byte)StartMinLevelBox.GetValue();
            SelectedQuest.StartCondition.LevelMax           = (byte)StartMaxLevelBox.GetValue();
            SelectedQuest.StartCondition.NeedsNPC           = StartNeedsNPCBox.Text == @"True";
            SelectedQuest.StartCondition.NPC.ID             = (ushort)StartNPCIDBox.GetValue();
            SelectedQuest.StartCondition.NeedsItem          = StartNeedsItemBox.Text == @"True";
            SelectedQuest.StartCondition.Item.ID            = (ushort)StartItemIDBox.GetValue();
            SelectedQuest.StartCondition.Item.Lot           = (ushort)StartItemLotBox.GetValue();
            SelectedQuest.StartCondition.NeedsLocation      = StartNeedsLocationBox.Text == @"True";
            SelectedQuest.StartCondition.Location           = (ushort)StartLocationBox.GetValue();
            SelectedQuest.StartCondition.LocationX          = (uint)StartXBox.GetValue();
            SelectedQuest.StartCondition.LocationY          = (uint)StartYBox.GetValue();
            SelectedQuest.StartCondition.LocationRange      = (uint)StartRangeBox.GetValue();
            SelectedQuest.StartCondition.Unk3 = (int)StartUnkBox.GetValue();
            SelectedQuest.StartCondition.NeedsPreviousQuest = StartNeedsQuestBox.Text == @"True";
            SelectedQuest.StartCondition.PreviousQuestID    = (ushort)StartPreviousQuestBox.GetValue();
            SelectedQuest.StartCondition.NeedsRace          = StartNeedsRaceBox.Text == @"True";
            SelectedQuest.StartCondition.Race        = (Race)StartRaceBox.SelectedIndex;
            SelectedQuest.StartCondition.NeedsClass  = StartNeedsClassBox.Text == @"True";
            SelectedQuest.StartCondition.Class       = (Class)StartClassBox.SelectedIndex;
            SelectedQuest.StartCondition.NeedsGender = StartNeedsGenderBox.Text == @"True";
            SelectedQuest.StartCondition.Gender      = (Gender)StartGenderBox.SelectedIndex;
            SelectedQuest.StartCondition.NeedsDate   = StartNeedsDateBox.Text == @"True";
            SelectedQuest.StartCondition.DateMode    = (DateMode)StartDateModeBox.SelectedIndex;
            SelectedQuest.StartCondition.DateStart   = (long)StartDateStartBox.GetValue();
            SelectedQuest.StartCondition.DateEnd     = (long)StartDateEndBox.GetValue();

            // End info
            SelectedQuest.EndCondition.IsInstantHandIn = EndIsInstantHandInBox.Text == @"True";
            SelectedQuest.EndCondition.NeedsLevel      = EndNeedsLevelBox.Text == @"True";
            SelectedQuest.EndCondition.Level           = (byte)EndLevelBox.GetValue();
            SelectedQuest.EndCondition.NeedsLocation   = EndNeedsLocationBox.Text == @"True";
            SelectedQuest.EndCondition.Location        = (ushort)EndLocationBox.GetValue();
            SelectedQuest.EndCondition.LocationX       = (uint)EndXBox.GetValue();
            SelectedQuest.EndCondition.LocationY       = (uint)EndYBox.GetValue();
            SelectedQuest.EndCondition.LocationRange   = (uint)EndRangeBox.GetValue();
            SelectedQuest.EndCondition.Unk7            = (int)EndUnkBox.GetValue();
            SelectedQuest.EndCondition.NeedsScenario   = EndNeedsScenarioBox.Text == @"True";
            SelectedQuest.EndCondition.ScenarioID      = (ushort)EndScenarioIDBox.GetValue();
            SelectedQuest.EndCondition.NeedsRace       = EndNeedsRaceBox.Text == @"True";
            SelectedQuest.EndCondition.Race            = (Race)EndRaceBox.SelectedIndex;
            SelectedQuest.EndCondition.NeedsClass      = EndNeedsClassBox.Text == @"True";
            SelectedQuest.EndCondition.Class           = (Class)EndClassBox.SelectedIndex;
            SelectedQuest.EndCondition.HasTimeLimit    = EndHasTimeLimitBox.Text == @"True";
            SelectedQuest.EndCondition.TimeLimit       = (ushort)EndTimeLimitBox.GetValue();

            // Scripts
            SelectedQuest.StartScript     = StartScriptBox.Text;
            SelectedQuest.StartScriptSize = (ushort)(StartScriptBox.Text.Length + 1);

            SelectedQuest.DoingScript     = ActiveScriptBox.Text;
            SelectedQuest.DoingScriptSize = (ushort)(ActiveScriptBox.Text.Length + 1);

            SelectedQuest.EndScript     = EndScriptBox.Text;
            SelectedQuest.EndScriptSize = (ushort)(EndScriptBox.Text.Length + 1);

            // Rewards
            StoreRewards();
        }