コード例 #1
0
ファイル: frmGSHOP08.cs プロジェクト: cho68518/YL_Land_BizFrm
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = false;
            this.IsSave    = false;
            this.IsDelete  = false;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            //gridView1.OptionsView.ShowFooter = true;
            //gridView1.Columns["donut_count"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
            //gridView1.Columns["donut_count"].SummaryItem.FieldName = "donut_count";
            //gridView1.Columns["donut_count"].SummaryItem.DisplayFormat = "{0:c}";

            //gridView2.OptionsView.ShowFooter = true;
            //gridView2.Columns["RECV_AMOUNT"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
            //gridView2.Columns["RECV_AMOUNT"].SummaryItem.FieldName = "RECV_AMOUNT";
            //gridView2.Columns["RECV_AMOUNT"].SummaryItem.DisplayFormat = "사용머니: {0:c}";

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_use");

            dt1F.EditValue  = DateTime.Now.ToString("yyyy-MM") + "-01";
            dt1T.EditValue  = DateTime.Now;
            cmbQ1.EditValue = "1";

            setCmb();
            chkCmb_Story.CheckAll();
        }
コード例 #2
0
    private void GetPaths()
    {
        int num = 0;

        while (num <= PATHS_PER_FRAME)
        {
            if (pendingPathRequests.Count < 1)
            {
                break;
            }

            PathQueueMember newMember = pendingPathRequests[0];
            GridAgent       newAgent  = newMember.agent;

            pendingPathRequests.RemoveAt(0);


            if (newAgent == null)
            {
                continue;
            }

            List <Node> newPath = mainGrid.FindSpherePath(newMember.startNode, newMember.endNode);
            newAgent.SetPath(newPath);
            num++;
        }
    }
コード例 #3
0
    public void SpawnMultiUnits()
    {
        if (gameOver)
        {
            return;
        }

        Grid    startGrid = connectionGrid.gridList[1];
        Vector3 offset    = new Vector3(0, 5, 0);

        for (int i = 0; i < agentCount; i++)
        {
            if (myAgents.Count < MAX_UNITS)
            {
                int     randomIndex   = Random.Range(0, startGrid.permanentNodes.Count);
                Vector3 spawnLocation = startGrid.permanentNodes[randomIndex].GetLocation() + offset;

                GameObject newUnit  = Instantiate(unitPrefab, spawnLocation, Quaternion.identity) as GameObject;
                GridAgent  newAgent = newUnit.GetComponent <GridAgent>();
                newAgent.SetNavigationGrid(connectionGrid);
                newAgent.Initialize(this);
                myAgents.Add(newAgent);
            }
        }
    }
コード例 #4
0
ファイル: Grid2D.cs プロジェクト: Mccullom/GridsDeluxe
        public override uint CreateAgent(GridCoords pos, GridAgentBase.GridAgentBrain brain)
        {
            GridAgent agent = GameObject.Instantiate(AgentPrefab) as GridAgent;

            agent.transform.SetParent(transform);
            agent.Init(this, brain, pos);
            mAgents[agent.ID] = agent;
            PlaceAgentInCell(agent, pos.index);

            return(agent.ID);
        }
コード例 #5
0
ファイル: Unit.cs プロジェクト: afeike01/PlanetRTS
    public void Initialize(Controller newController)
    {
        controller         = newController;
        gridAgentComponent = GetComponentInChildren <GridAgent>();
        normalMat          = controller.mainLevelManager.player01 == controller ? p1Mat : p2Mat;

        for (int i = 0; i < otherRenderers.Length; i++)
        {
            otherRenderers[i].material = normalMat;
        }
    }
コード例 #6
0
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = true;
            this.IsSave    = true;
            this.IsDelete  = false;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            gridView1.OptionsView.ShowFooter = true;

            //그리드 컬럼에 체크박스 레포지토리아이템 추가
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "month_close_yn");

            gridView1.Columns["p_num"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["p_num"].SummaryItem.FieldName   = "p_num";
            //gridView1.Columns["o_total_cost"].SummaryItem.DisplayFormat = "총주문금액: {0:c}";
            gridView1.Columns["p_num"].SummaryItem.DisplayFormat = "수량: {0}";


            gridView1.Columns["o_total_cost"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["o_total_cost"].SummaryItem.FieldName   = "o_total_cost";
            //gridView1.Columns["o_total_cost"].SummaryItem.DisplayFormat = "총주문금액: {0:c}";
            gridView1.Columns["o_total_cost"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["chef_amt"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["chef_amt"].SummaryItem.FieldName     = "chef_amt";
            gridView1.Columns["chef_amt"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["fix_chef_amt"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["fix_chef_amt"].SummaryItem.FieldName     = "fix_chef_amt";
            gridView1.Columns["fix_chef_amt"].SummaryItem.DisplayFormat = "{0:c}";

            dtS_DATE.Properties.Mask.EditMask = "yyyy-MM";
            dtS_DATE.Properties.DisplayFormat.FormatString = "yyyy-MM";
            dtS_DATE.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.DateTime;
            dtS_DATE.Properties.CalendarView           = DevExpress.XtraEditors.Repository.CalendarView.Vista;
            dtS_DATE.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.YearView;
            dtS_DATE.EditValue        = DateTime.Now.ToString("yyyy-MM");
            cmbORDER_SEARCH.EditValue = "1";

            SwitchChk();
        }
コード例 #7
0
    public virtual void SpawnUnit(Controller newController)
    {
        Node centerNode = newController.controllerBaseLocation;

        if (spawnNode == null)
        {
            spawnNode = centerNode.gridParent.LookUpNode(centerNode.gridCoordinates.x - range, centerNode.gridCoordinates.z - range);
            currentX  = (int)centerNode.gridCoordinates.x - range;
            currentZ  = (int)centerNode.gridCoordinates.z - range;
        }
        Node newNode = spawnNode;

        if (newNode.available)
        {
            float   offset        = 1;
            Vector3 spawnLocation = newNode.sphereCoordinates * offset;
            Vector3 upVector      = (mainGrid.gameObject.transform.position - spawnLocation).normalized;

            GameObject newAgentPrefab = Instantiate(agentPrefab, spawnLocation, agentPrefab.transform.rotation) as GameObject;
            newAgentPrefab.transform.up = upVector;
            GridAgent newAgent = newAgentPrefab.GetComponent <GridAgent>();
            newAgent.Initialize(mainGrid, mainLevelManager, newNode);
            Unit newUnit = newAgentPrefab.GetComponent <Unit>();
            newUnit.Initialize(newController);

            newController.ManageActiveUnits(newUnit);
        }
        if (currentX == (int)centerNode.gridCoordinates.x - range && currentZ < (int)centerNode.gridCoordinates.z + range)
        {
            currentZ++;
        }
        else if (currentX < (int)centerNode.gridCoordinates.x + range && currentZ == (int)centerNode.gridCoordinates.z + range)
        {
            currentX++;
        }
        else if (currentX == (int)centerNode.gridCoordinates.x + range && currentZ > (int)centerNode.gridCoordinates.z - range)
        {
            currentZ--;
        }
        else if (currentX > (int)centerNode.gridCoordinates.x - range && currentZ == (int)centerNode.gridCoordinates.z - range)
        {
            currentX--;
        }
        spawnNode = centerNode.gridParent.LookUpNode(currentX, currentZ);
    }
コード例 #8
0
ファイル: frmMM06.cs プロジェクト: cho68518/YL_Land_BizFrm
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = true;
            this.IsSave    = true;
            this.IsDelete  = true;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_gr_md");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_doramd");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_biz");

            this.efwGridControl1.BindControlSet(
                new ColumnControlSet("u_name", txtU_NAME)
                , new ColumnControlSet("user_id", txtUSER_ID)
                , new ColumnControlSet("u_id", txtU_ID)
                , new ColumnControlSet("u_nickname", txtU_NICKNAME)
                , new ColumnControlSet("u_gender", txtU_GENDER)
                , new ColumnControlSet("u_birthday", txtBIRTH)
                , new ColumnControlSet("u_email", txtU_EMAIL)
                , new ColumnControlSet("u_cell_num", txtU_CELL_NUM)
                , new ColumnControlSet("reg_date", txtREG_DATE)
                , new ColumnControlSet("login_date", txtLOGIN_DATE)
                , new ColumnControlSet("u_zip", txtU_ZIP)
                , new ColumnControlSet("u_addr", txtU_ADDR)
                , new ColumnControlSet("u_addr_detail", txtU_ADDR_DETAIL)
                , new ColumnControlSet("u_chef_level_cd", cmbU_CHEF_LEVEL)
                , new ColumnControlSet("is_al_friend_yn", chkIS_AL_FRIEND)
                , new ColumnControlSet("is_stock_friend_yn", chkIS_STOCK_FRIEND)
                , new ColumnControlSet("idx", txtIDX)
                , new ColumnControlSet("is_gr_md", chkIS_GR_MD)
                , new ColumnControlSet("is_doramd", chkIS_DORAMD)
                , new ColumnControlSet("is_biz", chkIS_BIZ)
                );

            this.efwGridControl1.Click += efwGridControl1_Click;

            New();
        }
コード例 #9
0
    void OnTriggerEnter(Collider other)
    {
        Rigidbody rB       = other.gameObject.GetComponent <Rigidbody>();
        GridAgent newAgent = other.gameObject.GetComponent <GridAgent>();

        if (rB && newAgent)
        {
            rB.AddExplosionForce(explosionForce, transform.position, explosionRadius);
        }
        RigidbodyControl rbControl = other.gameObject.GetComponent <RigidbodyControl>();

        if (rbControl)
        {
            if (mainGrid.DisableNode(rbControl.gameObject.transform.position))
            {
                rbControl.ActivateRigidbody();
            }
        }
    }
コード例 #10
0
    void SpawnUnit()
    {
        Grid startGrid = connectionGrid.gridList[1];
        int  index     = 461;

        startNode = startGrid.nodeList[index];
        endNode   = connectionGrid.gridList[0].nodeList[index];

        float range = 10f;

        for (int i = 0; i < agentCount; i++)
        {
            Vector3    initialLocation = startNode.GetLocation();
            Vector3    offset          = new Vector3(Random.Range(-range, range), 1, Random.Range(-range, range));
            Vector3    spawnLocation   = initialLocation + offset;
            GameObject newUnit         = Instantiate(unitPrefab, spawnLocation, Quaternion.identity) as GameObject;
            GridAgent  newAgent        = newUnit.GetComponent <GridAgent>();
            newAgent.SetNavigationGrid(connectionGrid);
            myAgents.Add(newAgent);
        }
    }
コード例 #11
0
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = false;
            this.IsSave    = false;
            this.IsDelete  = false;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            //GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_write1");
            //GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_write2");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl2, "Y", "N", "is_open");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl2, "Y", "N", "is_reserve");

            this.dt1.EditValue = DateTime.Now;
            this.dt2.EditValue = DateTime.Now;
            cmbQ1.EditValue    = "0";

            gridView1.Columns["t_cnt"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["t_cnt"].SummaryItem.FieldName     = "t_cnt";
            gridView1.Columns["t_cnt"].SummaryItem.DisplayFormat = "총 트윗건수: {0}";


            this.efwGridControl1.Click += efwGridControl1_Click;


            this.efwGridControl2.BindControlSet(
                new ColumnControlSet("contents_id", txtContents_Id)
                );

            this.efwGridControl2.Click += efwGridControl2_Click;
        }
コード例 #12
0
    public List <Node> findPath(GridAgent agent, Vector2 startPoint, Vector2 endPoint)
    {
        if (!ready)
        {
            return(null);
        }

        var  startPointSet = getNodeGuesses(startPoint);
        Node startNode     = null;

        if (startPointSet != null)
        {
            startNode = startPointSet[0];
        }

        var  endPointSet = getNodeGuesses(endPoint);
        Node endNode     = null;

        if (endPointSet != null)
        {
            endNode = endPointSet[0];
        }

        if (endNode == null || startNode == null)
        {
            return(null);
        }

        List <Node> unprocessed = new List <Node>();

        foreach (var node in _nodeArray)
        {
            if (node.IsActive)
            {
                unprocessed.Add(node);
                if (!node.personalCalc.ContainsKey(agent))
                {
                    node.personalCalc[agent] = new SearchCalc();
                }
                node.personalCalc[agent].cost            = node.cost;
                node.personalCalc[agent].h               = Math.Abs(node.xindex - endNode.xindex) + Math.Abs(node.yindex - endNode.yindex);
                node.personalCalc[agent].accumulatedCost = Mathf.Infinity;
                node.personalCalc[agent].prev            = null;
            }
        }

        List <Node> neighbors   = new List <Node>();
        Node        currentNode = startNode;

        startNode.personalCalc[agent].accumulatedCost = 0;
        while (currentNode != endNode && unprocessed.Any())
        {
            foreach (var currentNeighbor in currentNode.neighbors)
            {
                if (currentNeighbor.IsActive)
                {
                    var thisAccumulatedCost = currentNode.personalCalc[agent].accumulatedCost + currentNeighbor.cost +
                                              currentNeighbor.personalCalc[agent].h;
                    if (currentNeighbor.personalCalc[agent].accumulatedCost > thisAccumulatedCost)
                    {
                        currentNeighbor.personalCalc[agent].accumulatedCost =
                            thisAccumulatedCost;
                        currentNeighbor.personalCalc[agent].prev = currentNode;
                    }



                    if (!neighbors.Contains(currentNeighbor))
                    {
                        int insertIndex = 0;

                        for (int i = 0; i < neighbors.Count; i++)
                        {
                            var currentNodeCost = currentNode.personalCalc[agent].accumulatedCost;
                            var otherCost       = neighbors[i].personalCalc[agent].accumulatedCost;
                            if (currentNodeCost >= otherCost)
                            {
                                break;
                            }
                        }
                        if (!neighbors.Any() || insertIndex == -1)
                        {
                            neighbors.Add(currentNeighbor);
                        }
                        else
                        {
                            neighbors.Insert(insertIndex, currentNeighbor);
                        }
                    }
                }
            }

            neighbors.Remove(currentNode);
            if (neighbors.Any())
            {
                currentNode = neighbors.Last();
            }
            else
            {
                break;
            }
        }

        //pathfind failed
        if (currentNode != endNode)
        {
            return(null);
        }

        List <Node> path = new List <Node>();

        while (currentNode != startNode)
        {
            path.Add(currentNode);
            currentNode = currentNode.personalCalc[agent].prev;
        }

        path.Reverse();

        return(path);
    }
コード例 #13
0
    public void RequestPath(GridAgent newAgent, Node newStart, Node newEnd)
    {
        PathQueueMember newMember = new PathQueueMember(newAgent, newStart, newEnd);

        pendingPathRequests.Add(newMember);
    }
コード例 #14
0
 public void Initialize(Controller newController)
 {
     controller         = newController;
     gridAgentComponent = GetComponentInChildren <GridAgent>();
 }
コード例 #15
0
ファイル: frmRM02.cs プロジェクト: cho68518/YL_Land_BizFrm
        private void frmRM02_Load(object sender, EventArgs e)
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Black");

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = false;
            this.IsSave    = false;
            this.IsDelete  = false;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            //dtS_DATE.EditValue = DateTime.Now;
            //dtE_DATE.EditValue = DateTime.Now;
            rbis_notice.EditValue = "Y";

            //gridView1.OptionsView.ShowFooter = true;

            //그리드 컬럼에 체크박스 레포지토리아이템 추가
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_use");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_notice");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_file");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_comment");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl2, "Y", "N", "is_open");
            picBanner1.LoadAsync("http://media.domalife.net:8080/files/product/donutbiz/mori_00000009/2019101884241596.jpg");
            picBanner2.LoadAsync("http://media.domalife.net:8080/files/product/donutbiz/mori_00000009/2019101884241596.jpg");
            picBanner3.LoadAsync("http://media.domalife.net:8080/files/product/donutbiz/mori_00000009/2019101884241596.jpg");
            txtfile1.EditValue = "";

            //그리드로 클릭시 컨트롤 데이터 바인딩
            this.efwGridControl1.BindControlSet(
                new ColumnControlSet("idx", txt_idx)
                , new ColumnControlSet("board_cd", txt_board_cd)
                , new ColumnControlSet("board_name", txt_board_name)
                , new ColumnControlSet("is_use", chk_is_use)
                , new ColumnControlSet("is_notice", chk_is_notice)
                , new ColumnControlSet("is_file", chk_is_file)
                , new ColumnControlSet("is_comment", chk_is_comment)
                , new ColumnControlSet("remark", txt_remark)
                );

            this.efwGridControl1.Click += efwGridControl1_Click;

            this.efwGridControl2.BindControlSet(
                new ColumnControlSet("idx", txt_idx2)
                , new ColumnControlSet("board_cd", txt_board_cd2)
                , new ColumnControlSet("board_name", txt_board_name2)
                , new ColumnControlSet("subject", chk_is_use)
                , new ColumnControlSet("content", txt_content)
                , new ColumnControlSet("is_open", chk_is_file)
                , new ColumnControlSet("read_cnt", chk_is_comment)
                , new ColumnControlSet("img_url1", txtimg_url1)
                , new ColumnControlSet("img_url2", txtimg_url2)
                , new ColumnControlSet("img_url3", txtimg_url3)
                , new ColumnControlSet("file1", txtfile1)
                , new ColumnControlSet("subject", txtsubject)
                , new ColumnControlSet("is_notice", rbis_notice)
                , new ColumnControlSet("summury", txtsummury)
                , new ColumnControlSet("board_type", rbboard_type)
                , new ColumnControlSet("is_file", chkis_file)
                , new ColumnControlSet("notice_seq", cknotice_seq)
                );

            this.efwGridControl1.Click += efwGridControl1_Click;
            this.efwGridControl2.Click += efwGridControl2_Click;

            // Open1();
            Clear();
            SetCmb();
        }
コード例 #16
0
 public void AddScore(GridAgent newAgent)
 {
     myAgents.Remove(newAgent);
 }
コード例 #17
0
ファイル: frmDN16.cs プロジェクト: cho68518/YL_Land_BizFrm
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);
            this.lblRes1.Font = new System.Drawing.Font("맑은고딕", 16, System.Drawing.FontStyle.Bold);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = false;
            this.IsSave    = false;
            this.IsDelete  = false;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_write1");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_write2");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl2, "Y", "N", "is_write1");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl2, "Y", "N", "is_write2");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl2, "Y", "N", "is_write3");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl3, "Y", "N", "is_write1");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl3, "Y", "N", "is_write2");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl3, "Y", "N", "is_write3");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl3, "Y", "N", "is_write4");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl3, "Y", "N", "is_write5");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl3, "Y", "N", "is_biz");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl4, "Y", "N", "is_write1");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl4, "Y", "N", "is_write2");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl4, "Y", "N", "is_biz");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl5, "Y", "N", "is_write1");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl5, "Y", "N", "is_write2");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl5, "Y", "N", "is_write3");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl6, "Y", "N", "is_write1");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl6, "Y", "N", "is_write2");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl6, "Y", "N", "is_write3");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl6, "Y", "N", "is_write4");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl6, "Y", "N", "is_write5");

            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl7, "Y", "N", "is_write1");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl7, "Y", "N", "is_write2");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl7, "Y", "N", "is_write3");

            advBandedGridView6.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CellSelect;

            //그리드로 클릭시 컨트롤 데이터 바인딩
            this.efwGridControl6.BindControlSet(
                new ColumnControlSet("u_id", txt_o_u_id)
                , new ColumnControlSet("o_code", txt_o_code)
                );

            this.efwGridControl6.Click += efwGridControl6_Click;

            this.dt1.EditValue  = DateTime.Now;
            this.dt2.EditValue  = DateTime.Now;
            this.dt3.EditValue  = DateTime.Now;
            this.dt4.EditValue  = DateTime.Now;
            this.dt5.EditValue  = DateTime.Now;
            this.dt6.EditValue  = DateTime.Now;
            this.dt7.EditValue  = DateTime.Now;
            this.dt8.EditValue  = DateTime.Now;
            this.dt9.EditValue  = DateTime.Now;
            this.dt10.EditValue = DateTime.Now;
            this.dt11.EditValue = DateTime.Now;
            this.dt12.EditValue = DateTime.Now;
            this.dt13.EditValue = DateTime.Now;
            this.dt14.EditValue = DateTime.Now;

            lblRes1.Text = "";
        }
コード例 #18
0
 public PathQueueMember(GridAgent newAgent, Node newStart, Node newEnd)
 {
     agent     = newAgent;
     startNode = newStart;
     endNode   = newEnd;
 }
コード例 #19
0
 public void AddScore(GridAgent newAgent)
 {
     myAgents.Remove(newAgent);
 }
コード例 #20
0
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = true;
            this.IsSave    = false;
            this.IsDelete  = false;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            if (UserInfo.instance().UserId == "169.254.169.113" || UserInfo.instance().UserId == "0000000024")
            {
                layoutControlItem18.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
            }
            else
            {
                layoutControlItem18.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            }

            if (UserInfo.instance().ORG_CD != null && UserInfo.instance().ORG_CD.ToString() != "")
            {
                txtCOMPANYCD.EditValue = UserInfo.instance().ORG_CD;
            }
            else
            {
                txtCOMPANYCD.EditValue = "YL01";
            }

            if (UserInfo.instance().ORG_NM != null && UserInfo.instance().ORG_NM.ToString() != "")
            {
                txtCOMPANYNAME.EditValue = UserInfo.instance().ORG_NM;
            }
            else
            {
                txtCOMPANYNAME.EditValue = "(주)와이엘랜드";
            }

            chkQ1.Checked = false;

            //그리드 컬럼에 체크박스 레포지토리아이템 추가
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_gr_md");
            //GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_doramd");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_biz");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_support_team");

            gridView1.OptionsView.ShowFooter = true;
            gridView1.Columns["reg_date"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Count;
            gridView1.Columns["reg_date"].SummaryItem.FieldName   = "reg_date";
            //gridView1.Columns["MCNT"].SummaryItem.DisplayFormat = "총인원: {0:n2}";
            gridView1.Columns["reg_date"].SummaryItem.DisplayFormat = "총인원: {0:0}";

            gridView1.Columns["DM_Money"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["DM_Money"].SummaryItem.FieldName     = "DM_Money";
            gridView1.Columns["DM_Money"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["TD_Money"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["TD_Money"].SummaryItem.FieldName     = "TD_Money";
            gridView1.Columns["TD_Money"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["AD_Money"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["AD_Money"].SummaryItem.FieldName     = "AD_Money";
            gridView1.Columns["AD_Money"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["GD_Money"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["GD_Money"].SummaryItem.FieldName     = "GD_Money";
            gridView1.Columns["GD_Money"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["CD_Money"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["CD_Money"].SummaryItem.FieldName     = "CD_Money";
            gridView1.Columns["CD_Money"].SummaryItem.DisplayFormat = "{0:c}";

            //그리드로 클릭시 컨트롤 데이터 바인딩
            this.efwGridControl1.BindControlSet(
                new ColumnControlSet("u_name", txtU_NAME)
                , new ColumnControlSet("user_id", txtUSER_ID)
                , new ColumnControlSet("u_id", txtU_ID)
                , new ColumnControlSet("u_nickname", txtU_NICKNAME)
                , new ColumnControlSet("u_gender", txtU_GENDER)
                , new ColumnControlSet("u_birthday", txtBIRTH)
                , new ColumnControlSet("u_email", txtU_EMAIL)
                , new ColumnControlSet("u_cell_num", txtU_CELL_NUM)
                , new ColumnControlSet("reg_date", txtREG_DATE)
                , new ColumnControlSet("login_date", txtLOGIN_DATE)
                , new ColumnControlSet("u_zip", txtU_ZIP)
                , new ColumnControlSet("u_addr", txtU_ADDR)
                , new ColumnControlSet("u_addr_detail", txtU_ADDR_DETAIL)
                , new ColumnControlSet("u_chef_level_cd", cmbU_CHEF_LEVEL)
                , new ColumnControlSet("is_al_friend_yn", chkIS_AL_FRIEND)
                , new ColumnControlSet("is_stock_friend_yn", chkIS_STOCK_FRIEND)
                , new ColumnControlSet("idx", txtIDX)
                , new ColumnControlSet("is_doramd", chkIS_DORAMD)

                , new ColumnControlSet("DM_Money", txtD)
                , new ColumnControlSet("TD_Money", txtTD)
                , new ColumnControlSet("AD_Money", txtAD)
                , new ColumnControlSet("GD_Money", txtGD)
                , new ColumnControlSet("CD_Money", txtCD)
                , new ColumnControlSet("VIP_Money", txtCOUPON)
                , new ColumnControlSet("is_gr_md", chkIS_GR_MD)
                , new ColumnControlSet("is_doramd", chkIS_DORAMD)
                , new ColumnControlSet("is_biz", chkIS_BIZ)
                , new ColumnControlSet("chef_u_nickname", txtCHEF_U_NICKNAME)
                , new ColumnControlSet("vip_reco_nickname", txtVIP_RECO_NICKNAME)
                , new ColumnControlSet("doramd_type", cmbDORAMD_TYPE)
                , new ColumnControlSet("is_support_team", chkIS_SUPPORT_TEAM)
                , new ColumnControlSet("is_comp_md", chkIS_COMP_MD)
                , new ColumnControlSet("is_official", ckis_official)
                , new ColumnControlSet("is_vvip", cbis_vvip)
                );

            this.efwGridControl1.Click += efwGridControl1_Click;
        }
コード例 #21
0
ファイル: Unit.cs プロジェクト: afeike01/PlanetRTS
 public void Initialize(Controller newController)
 {
     controller = newController;
     gridAgentComponent = GetComponentInChildren<GridAgent>();
 }
コード例 #22
0
ファイル: LevelManager.cs プロジェクト: afeike01/PlanetRTS
 public void RequestPath(GridAgent newAgent, Node newStart, Node newEnd)
 {
     PathQueueMember newMember = new PathQueueMember(newAgent, newStart, newEnd);
     pendingPathRequests.Add(newMember);
 }
コード例 #23
0
ファイル: LevelManager.cs プロジェクト: afeike01/PlanetRTS
 public PathQueueMember(GridAgent newAgent, Node newStart, Node newEnd)
 {
     agent = newAgent;
     startNode = newStart;
     endNode = newEnd;
 }
コード例 #24
0
ファイル: frmDN10.cs プロジェクト: cho68518/YL_Land_BizFrm
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = false;
            this.IsSave    = true;
            this.IsDelete  = false;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            //this.lblnum1.Font = new Font(this.lblnum1.Font, FontStyle.Bold);

            dtS_DATE.EditValue = DateTime.Now.ToString("yyyy-MM");

            //그리드 컬럼에 체크박스 레포지토리아이템 추가
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_write");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "is_psoper_order");
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "month_close_yn");

            gridView1.OptionsView.ShowFooter = true;

            gridView1.Columns["o_total_cost"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["o_total_cost"].SummaryItem.FieldName   = "o_total_cost";
            //gridView1.Columns["o_total_cost"].SummaryItem.DisplayFormat = "총주문금액: {0:c}";
            gridView1.Columns["o_total_cost"].SummaryItem.DisplayFormat = "{0:c}";


            gridView1.Columns["o_donut_d_cost"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["o_donut_d_cost"].SummaryItem.FieldName     = "o_donut_d_cost";
            gridView1.Columns["o_donut_d_cost"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["o_donut_m_cost"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["o_donut_m_cost"].SummaryItem.FieldName     = "o_donut_m_cost";
            gridView1.Columns["o_donut_m_cost"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["o_donut_c_cost"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["o_donut_c_cost"].SummaryItem.FieldName     = "o_donut_c_cost";
            gridView1.Columns["o_donut_c_cost"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["o_delivery_cost"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["o_delivery_cost"].SummaryItem.FieldName     = "o_delivery_cost";
            gridView1.Columns["o_delivery_cost"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["o_purchase_cost"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["o_purchase_cost"].SummaryItem.FieldName     = "o_purchase_cost";
            gridView1.Columns["o_purchase_cost"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["chef_amt"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["chef_amt"].SummaryItem.FieldName     = "chef_amt";
            gridView1.Columns["chef_amt"].SummaryItem.DisplayFormat = "{0:c}";

            gridView1.Columns["t_cnt"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["t_cnt"].SummaryItem.FieldName     = "t_cnt";
            gridView1.Columns["t_cnt"].SummaryItem.DisplayFormat = "{0}";

            gridView1.Columns["fix_chef_amt"].SummaryItem.SummaryType   = DevExpress.Data.SummaryItemType.Sum;
            gridView1.Columns["fix_chef_amt"].SummaryItem.FieldName     = "fix_chef_amt";
            gridView1.Columns["fix_chef_amt"].SummaryItem.DisplayFormat = "{0:c}";

            //gridView1.Columns["lgd_amount"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
            //gridView1.Columns["lgd_amount"].SummaryItem.FieldName = "lgd_amount";
            //gridView1.Columns["lgd_amount"].SummaryItem.DisplayFormat = "{0:c}";


            //gridView1.Columns["o_donut_d_cost"].Visible = false;
            gridView1.Columns["o_donut_m_cost"].Visible = false;
            //gridView1.Columns["o_donut_c_cost"].Visible = false;
            gridView1.Columns["o_delivery_cost"].Visible       = false;
            gridView1.Columns["o_pay_type"].Visible            = false;
            gridView1.Columns["is_order"].Visible              = false;
            gridView1.Columns["s_company_name"].Visible        = false;
            gridView1.Columns["o_delivery_comp_name"].Visible  = false;
            gridView1.Columns["o_delivery_num"].Visible        = false;
            gridView1.Columns["o_delivery_start_date"].Visible = false;
            gridView1.Columns["o_delivery_end_date"].Visible   = false;

            //this.efwGridControl1.BindControlSet(
            //new ColumnControlSet("id", txtID)
            //
            //this.efwGridControl1.Click += efwGridControl1_Click;
            //rbP_SHOW_TYPE.EditValue = "T";

            //chkD.Checked = true;
            //chkF.Checked = true;
            //chkE.Checked = true;

            dtS_DATE.Properties.Mask.EditMask = "yyyy-MM";
            dtS_DATE.Properties.DisplayFormat.FormatString = "yyyy-MM";
            dtS_DATE.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.DateTime;
            dtS_DATE.Properties.CalendarView           = DevExpress.XtraEditors.Repository.CalendarView.Vista;
            dtS_DATE.Properties.VistaCalendarViewStyle = DevExpress.XtraEditors.VistaCalendarViewStyle.YearView;

            setCmb();

            cmbORDER_SEARCH.EditValue = "1";



            //월마감 데이타가 있으면 월마감데이타 조회
            if (MonthDataCnt() > 0)
            {
                toggleSwitch1.IsOn = true;
                //Search2();
            }
            else
            {
                toggleSwitch1.IsOn = false;
                //Search1();
            }
        }
コード例 #25
0
 // Use this for initialization
 void Start()
 {
     agent        = GetComponent <GridAgent>();
     agent.target = target.transform.position;
 }
コード例 #26
0
ファイル: frmMM02.cs プロジェクト: cho68518/YL_Land_BizFrm
        public override void FrmLoadEvent()
        {
            base.FrmLoadEvent();
            DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("맑은고딕", 9);

            this.IsMenuVw  = true;
            this.IsSearch  = true;
            this.IsNewMode = true;
            this.IsSave    = true;
            this.IsDelete  = true;
            this.IsCancel  = false;
            this.IsPrint   = false;
            this.IsExcel   = false;

            //그리드 컬럼에 체크박스 레포지토리아이템 추가
            GridAgent.RepositoryItemCheckEditAdd(this.efwGridControl1, "Y", "N", "USEYN");

            if (UserInfo.instance().ORG_CD != null && UserInfo.instance().ORG_CD.ToString() != "")
            {
                txtCOMPANYCD.EditValue = UserInfo.instance().ORG_CD;
            }
            else
            {
                txtCOMPANYCD.EditValue = "YL01";
            }

            setCmb();

            if (UserInfo.instance().BIZCD != null && UserInfo.instance().BIZCD.ToString() != "")
            {
                cmbBIZCD.EditValue = UserInfo.instance().BIZCD;
            }
            else
            {
                cmbBIZCD.EditValue = "01";
            }

            CreTree();

            //그리드로 클릭시 컨트롤 데이터 바인딩
            this.efwGridControl1.BindControlSet(
                new ColumnControlSet("COMPANYCD", txtCOMPANYCD)
                , new ColumnControlSet("BIZCD", cmbBIZCD)
                //, new ColumnControlSet("BIZCD_NM", txtBIZCD_NM)
                , new ColumnControlSet("DEPTCODE", txtDEPTCODE)
                , new ColumnControlSet("DEPTNAME", txtDEPTNAME)
                , new ColumnControlSet("DEPTABBR", txtDEPTABBR)
                , new ColumnControlSet("STARTYM", txtSTARTYM)
                , new ColumnControlSet("ENDYM", txtENDYM)
                , new ColumnControlSet("USEYN", chkUSEYN)
                , new ColumnControlSet("MEMO", txtMEMO)
                , new ColumnControlSet("RNKORDER", txtRNKORDER)
                , new ColumnControlSet("REFCODE", txtREFCODE)
                , new ColumnControlSet("LEVEL", txtLEVEL)
                );

            this.efwGridControl1.Click += efwGridControl1_Click;
            chkUSEYN.Checked            = true;

            // Open1();
        }
コード例 #27
0
ファイル: Unit.cs プロジェクト: afeike01/PlanetRTS
    public void Initialize(Controller newController)
    {
        controller = newController;
        gridAgentComponent = GetComponentInChildren<GridAgent>();
        normalMat = controller.mainLevelManager.player01 == controller ? p1Mat : p2Mat;

        for (int i = 0; i < otherRenderers.Length; i++)
        {
            otherRenderers[i].material = normalMat;
        }
    }