예제 #1
0
        void LoadListSubJenisBrgTree()
        {
            //  list jenisBrg
            var listJenisBrg = _jenisBrgBL.ListData();

            if (listJenisBrg == null)
            {
                return;
            }
            //
            SubJenisBrgTree.Nodes.Clear();
            foreach (var item in listJenisBrg)
            {
                SubJenisBrgTree.Nodes.Add(item.JenisBrgID, item.JenisBrgName);
                var listSubJenisBrg = _subJenisBrgBL.ListData(item.JenisBrgID);
                if (listSubJenisBrg != null)
                {
                    foreach (var item2 in listSubJenisBrg)
                    {
                        SubJenisBrgTree.Nodes[item.JenisBrgID]
                        .Nodes.Add(item2.SubJenisBrgID, item2.SubJenisBrgName);
                    }
                }
            }
        }
예제 #2
0
        private void ListData()
        {
            var listJenisBrg = _jenisBrgBL.ListData();

            if (listJenisBrg == null)
            {
                return;
            }

            JenisBrgGrid.Rows.Clear();
            foreach (var item in listJenisBrg)
            {
                object[] rowData = { item.JenisBrgID, item.JenisBrgName };
                JenisBrgGrid.Rows.Add(rowData);
            }
        }
예제 #3
0
        private void ListDataJenisBrg()
        {
            var listJenisBrg = _jenisBrgBL.ListData();

            if (listJenisBrg == null)
            {
                return;
            }

            SetLayoutJenisBrgGrid();
            foreach (var item in listJenisBrg)
            {
                object[] rowData = { item.JenisBrgID, item.JenisBrgName };
                JenisBrgGrid.Rows.Add(rowData);
            }

            if (JenisBrgGrid.CurrentRow == null)
            {
                return;
            }

            var jenisBrgID    = JenisBrgGrid.CurrentRow.Cells["JenisBrgID"].Value.ToString();
            var searchKeyword = SearchTextBox.Text;

            ListDataTipeBrg(jenisBrgID, searchKeyword);
        }
예제 #4
0
        public void ListData_CallDalListData()
        {
            //  arrange

            //  act
            var actual = _jenisBrgBL.ListData();

            //  assert
            _jenisBrgDal.Verify(x => x.ListData(), Times.Once);
        }