예제 #1
0
        private void FillCombo()
        {
            try
            {
                HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_TFactory TurnCancelCommantID_intFactory = new HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_TFactory();
                DataTable TurnCancelCommantID_intDataTable = new DataTable();
                TurnCancelCommantID_intFactory.GetAll(ref TurnCancelCommantID_intDataTable);
                this.TurnCancelCommantID_intComboBox.DisplayMember = HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_T.TurnCancelComment_TField.TurnCancelComment_nvc.ToString();
                DataRow[] rows;

                if (HPS.Common.CurrentUser.user.UserGroupID_int != 16)
                {
                    rows = TurnCancelCommantID_intDataTable.Select(" TurnCancelCommentID_int=57");
                    foreach (DataRow row in rows)
                    {
                        TurnCancelCommantID_intDataTable.Rows.Remove(row);
                    }
                }
                this.TurnCancelCommantID_intComboBox.ValueMember   = HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_T.TurnCancelComment_TField.TurnCancelCommentID_int.ToString();
                this.TurnCancelCommantID_intComboBox.DataSource    = TurnCancelCommantID_intDataTable;
                this.TurnCancelCommantID_intComboBox.SelectedIndex = -1;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
 private void LoadTurnCancelComment()
 {
     try
     {
         HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_TFactory TurnCancelCommentFactory = new HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_TFactory();
         DataTable TurnCancelCommentDataTable = new DataTable();
         TurnCancelCommentFactory.GetAll(ref TurnCancelCommentDataTable);
         this.TurnCancelCommentGridView.DataSource = TurnCancelCommentDataTable;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }