private void LoadLadBillCancelComment() { try { HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_TFactory LadBillCancelCommentFactory = new HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_TFactory(); DataTable LadBillCancelCommentDataTable = new DataTable(); LadBillCancelCommentFactory.GetAll(ref LadBillCancelCommentDataTable); this.LadBillCancelCommentGridView.DataSource = LadBillCancelCommentDataTable; } catch (System.Exception ex) { throw ex; } }
private void LoadCheckListBox() { HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_TFactory LadBillCancelCommentFactory = new HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_TFactory(); DataTable LadBillCreditCancelDataTable = new DataTable(); try { this.LadBillCreditCancelCommentID_intCheckedListBox.Items.Clear(); List <HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_T> lst = LadBillCancelCommentFactory.GetAll(); if (lst != null && lst.Count > 0) { foreach (HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_T itm in lst) { this.LadBillCreditCancelCommentID_intCheckedListBox.Items.Add(itm, false); } } this.LadBillCreditCancelCommentID_intCheckedListBox.DisplayMember = HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_T.LadBillCancelComment_TField.LadbillCancelComment_nvc.ToString(); this.LadBillCreditCancelCommentID_intCheckedListBox.ValueMember = HPS.BLL.LadBillCancelCommentBLL.BLLLadBillCancelComment_T.LadBillCancelComment_TField.LadBillCancelCommentID_int.ToString(); } catch (Exception ex) { throw ex; } }