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); } }
private void fillGrid(string cond) { ReferenceCycleEntity entity = null; entity = _referenceCycleBl.get(cond); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
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); }
private void btnShow_Click(object sender, EventArgs e) { string cond = ""; cond = _searchTools.getNumberFldCond(LetterReplyCountViewEntity.FIELD_REPLYCOUNT, txtAnswerCount.Text, txtAnswerCount.Text, cmbCompare, cond); if (cond.Length > 0) { cond += " AND "; } if (cbArchive.Checked) { cond += " " + LetterReplyCountViewEntity.FIELD_ARCHIVE + "=1"; } else { cond += " (" + LetterReplyCountViewEntity.FIELD_ARCHIVE + "=0" + " OR " + LetterReplyCountViewEntity.FIELD_ARCHIVE + " is null)"; } LetterReplyCountViewEntity entity = null; entity = _replyCountBl.get(cond); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
private void fillGrid(string cond) { UsersEntity entity = null; if (cond.Length > 0) { cond += " AND "; } if (UnselectIds != null && UnselectIds.Length > 0) { cond += UsersEntity.FIELD_ID + " not in(" + UnselectIds + ")"; } if (!_showAdminUsers) { if (cond.Length > 0) { cond += " AND "; } cond += UsersEntity.FIELD_USER_TYPE + "<>" + UsersBS.ADMIN; } if (cond.Length > 0) { cond += "and"; } cond += " ACTIVE=1"; entity = _usersBS.get(cond); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
private void fillGrid() { LetterEntity entity; entity = _letterBL.getByGroupId(_groupId); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
private void bindToGrid(RMX_TOOLS.common.AbstractCommonData entity, DataGridView grid, String colorfield) { System.Collections.Hashtable hash = new Hashtable(); hash.Add("colorField", colorfield); //entity.Tables[1].TableName = "filledviwe"; entity.FilledTableName = entity.Tables[1].TableName; _gridTools.bindDataToGrid(grid, entity, new GridTools.changingRow(_gridTools.changeColor), hash); }
private void fillGrid() { LetterNumberPatternEntity entity = null; entity = _letterNumberPatternBL.get(); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
private void fillGrid() { AttachmentChequeReceiptEntity entity = null; entity = _attachmentChequeReceiptBl.get(_receiptId); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
private void fillGrid() { System.Collections.Hashtable hash = new System.Collections.Hashtable(); hash.Add("colorField", InsuranceTypeData.INSURANCETYPECOLOR_FIELD); _gridTools.bindDataToGrid( dataGridView1, new InsuranceTypeBS().laod(), InsuranceTypeData.InsuranceType_TABLE, new GridTools.changingRow(_gridTools.changeColor), hash); setControls(); }
private void fillGrid() { AttachmentEntity entity = null; entity = _attachmentBl.get(_insuranceId); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, AttachmentEntity.TableName, null, hash); }
private void fillGrid(string cond) { LetterGroupEntity entity = null; if (UnselectIds != null && UnselectIds.Length > 0) { if (cond.Length > 0) { cond += " AND "; } cond += LetterGroupEntity.FIELD_ID + " not in(" + UnselectIds + ")"; } entity = _letterGroupBL.get(cond); System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(gridLetterGroup, entity, null, hash); }
public void initForm(int chequeId) { ReferChequeBL refChequeBl = new ReferChequeBL(); ReferChequeEntity entity = refChequeBl.get(chequeId); 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); }
private void fillGrid(string condition) { lblMsg.Text = ""; System.Collections.Hashtable hash = new Hashtable(); hash.Add("colorField", InsuranceTypeData.INSURANCETYPECOLOR_FIELD); int id = int.Parse(UsersBS.loginedUser.Tables[UsersData.users_TABLE].Rows[0][UsersData.id_FIELD].ToString()); _dataSource = new ViewInsuranceInfoBS().loadUserLimitedList(id, condition); _gridTools.bindDataToGrid(dataGridView1, _dataSource , ViewInsuranceInfoData.VIEW_INSURANCEINFO_TABLE, new GridTools.changingRow(_gridTools.changeColor), hash); }
public void fillGrid() { WorkingStatisticEntity entity = null; entity = _workingStatisticBL.get(); System.Collections.Hashtable hash = new Hashtable(); entity.Tables[1].TableName = "filledviwe"; entity.FilledTableName = entity.Tables[1].TableName; _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
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); }
private void fillGrid(int parentId) { System.Collections.Hashtable hash = new Hashtable(); //hash.Add("colorField", InsuranceTypeData.INSURANCETYPECOLOR_FIELD); if (parentId < 0) { _basicInfoEntity = _basicInfoBl.getRoots(); } else { _basicInfoEntity = _basicInfoBl.getByParentId(parentId, true); } _gridTools.bindDataToGrid(dataGridView1, _basicInfoEntity, new GridTools.changingRow(_gridTools.changeColor), hash); }
private void fillGrid(string cond) { ChequeReplyEntity entity = null; entity = _chequeReplyBL.getByCheque(_id, cond); int count = entity.RowCount(); tblReply.Height = 70 + count * 20; System.Collections.Hashtable hash = new Hashtable(); if (_gridTools == null) { _gridTools = new GridTools(); } _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
private void fillGrid(string cond) { AgentEntity entity = null; if (_readOnly) { entity = _AgentBL.getOnlyActives(cond); } else { entity = _AgentBL.get(cond); } System.Collections.Hashtable hash = new Hashtable(); _gridTools.bindDataToGrid(dataGridView1, entity, null, hash); }
private void fillGrid(string cond) { //entity = _chequeBL.get(cond); if (rbDisplayAll.Checked) { _entity = _chequeBL.get(cond); } else if (rbDisplayArchived.Checked) { _entity = _chequeBL.get(cond, true); } else { _entity = _chequeBL.get(cond, false); } System.Collections.Hashtable hash = new Hashtable(); hash.Add("colorField", "COLOR"); _gridTools.bindDataToGrid(dataGridView1, _entity, new GridTools.changingRow(_gridTools.changeColor), hash); }
public void fillGrid() { if (LoginForm.Loggined == false) { return; } System.Collections.Hashtable hash = new System.Collections.Hashtable(); hash.Add("colorField", InsuranceTypeData.INSURANCETYPECOLOR_FIELD); _gridTools.bindDataToGrid(dataGridView1, getDataSet(), ViewInsuranceInfoData.VIEW_INSURANCEINFO_TABLE, _gridTools.changeColor, hash); DateTime t = DateTime.Now; lblTime.Text = t.Hour + ":" + t.Minute + ":" + t.Second; selectCurrentRow(); }