예제 #1
0
        private void FillGrids()
        {
            if (UsersBS.loginedUser != null && UsersBS.loginedUser.get(UsersEntity.FIELD_ID) != null)
            {
                int userid = int.Parse(UsersBS.loginedUser.get(UsersEntity.FIELD_ID).ToString());

                LetterEntity entityRecieve = _letterBL.get(LetterBL.LETTER_TYPE_RECIEVE, false, userid, true);
                LetterEntity entitySend    = _letterBL.get(LetterBL.LETTER_TYPE_SEND, false, userid, true);

                ChequeEntity entityCheque = _chequeBL.get("(" + ChequeEntity.FIELD_PRICE + "<>" + ChequeEntity.VIEW_FIELD_REMAINED +
                                                          " OR " + ChequeEntity.VIEW_FIELD_REMAINED + " IS NULL)", false, userid);

                System.Collections.Hashtable hash = new Hashtable();
                hash.Add("colorField", "COLOR");

                _gridTools.bindDataToGrid(gridRecieveds, entityRecieve, new GridTools.changingRow(_gridTools.changeColor), hash);

                System.Collections.Hashtable hash2 = new Hashtable();
                hash2.Add("colorField", "COLOR_1");

                _gridTools.bindDataToGrid(gridSends, entitySend, new GridTools.changingRow(_gridTools.changeColor), hash2);

                //checque
                System.Collections.Hashtable hash3 = new Hashtable();
                hash3.Add("colorField", "COLOR_2");

                _gridTools.bindDataToGrid(chequeGridView, entityCheque, new GridTools.changingRow(_gridTools.changeColor), hash3);

                fastActionCheckBank_Tick(null, null);
            }
        }
예제 #2
0
        private void fillGrid(string cond)
        {
            _entity = _letterBl.get(cond, _letterType, cbWithChainig.Checked);

            //_letterBl.get(LetterType);
            System.Collections.Hashtable hash = new Hashtable();
            hash.Add("colorField", "COLOR");

            _gridTools.bindDataToGrid(dataGridView1, _entity, new GridTools.changingRow(_gridTools.changeColor), hash);
        }
예제 #3
0
        private void fillLists()
        {
            string       colorField = "COLOR";
            LetterEntity entity     = _letterBL.get(_letterIds);

            bindToGrid(entity, gridCurLetterAll, colorField);
        }