private int getLetterRefferences(int userid) { ReferLetterBL bl = new ReferLetterBL(); ReferLetterEntity entity = bl.getByUserId(userid); return(entity.Tables[entity.FilledTableName].Rows.Count); }
private void removeUserRefs(int userid) { ReferChequeBL cbl = new ReferChequeBL(); ReferLetterBL rbl = new ReferLetterBL(); cbl.removeUserRefer(userid); rbl.removeUserRefer(userid); }
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); }