/// <summary>
        /// 这是查询的方法
        /// </summary>
        /// <param name="dgv"></param>
        /// <param name="where"></param>
        public void WorkPlaceSearch(DataGridView dgv, string where)
        {
            List <BillIndex> bi = new WorkPlaceService().GetReocrdBySearch(where);

            dgv.Rows.Clear();
            foreach (BillIndex item in bi)
            {
                int index = dgv.Rows.Add();
                dgv.Rows[index].Cells["dgvShipListID"].Value   = item.ID;
                dgv.Rows[index].Cells["dgvShipListName"].Value = item.Title;
                dgv.Rows[index].Cells["dgvShipListDate"].Value = item.Reg_Date.ToString("yyyy-MM-dd");
            }
        }
 public WorkPlaceController(WorkPlaceService WorkPlaceService)
 {
     this._WorkPlaceService = WorkPlaceService;
 }