Example #1
0
        private int getLetterRefferences(int userid)
        {
            ReferLetterBL     bl     = new ReferLetterBL();
            ReferLetterEntity entity = bl.getByUserId(userid);

            return(entity.Tables[entity.FilledTableName].Rows.Count);
        }
Example #2
0
        private void removeUserRefs(int userid)
        {
            ReferChequeBL cbl = new ReferChequeBL();
            ReferLetterBL rbl = new ReferLetterBL();

            cbl.removeUserRefer(userid);
            rbl.removeUserRefer(userid);
        }
Example #3
0
        public void initForm(int letterid)
        {
            ReferLetterBL     refLetterBl = new ReferLetterBL();
            ReferLetterEntity entity      = refLetterBl.get(letterid);

            //_letterBl.get(LetterType);

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

            //_gridTools.bindDataToGrid(dataGridView1, entity, new GridTools.changingRow(_gridTools.changeColor), hash);
            _gridTools.bindDataToGrid(dataGridView1, entity, null, hash);
        }