/// <summary>
        /// 新增资产信息
        /// </summary>
        public override void AddNew()
        {
            AssetsEditForm sub = new AssetsEditForm();

            sub.ShowDialog();
            Query();
        }
        /// <summary>
        /// 修改产资信息
        /// </summary>
        public override void Modify()
        {
            object objId = gvData.GetFocusedRowCellValue("Id");

            if (objId != null && gvData.GetFocusedRowCellValue("StatusName").ToString() != "报废" && gvData.GetFocusedRowCellValue("StatusName").ToString() != "删除")
            {
                Models.ys_Assets model = AllAssets.FirstOrDefault(a => a.Id == (Guid)objId);
                AssetsEditForm   sub   = new AssetsEditForm(model);
                if (sub.ShowDialog() == DialogResult.OK)
                {
                    Query();
                }
            }
        }