Пример #1
0
        /// <summary>
        /// 新增功能
        /// </summary>
        public override void AddNew()
        {
            JobFilesEditForm sub = new JobFilesEditForm();

            if (sub.ShowDialog() == DialogResult.OK)
            {
                Query();
            }
        }
Пример #2
0
 /// <summary>
 /// 预览
 /// </summary>
 public override void Preview()
 {
     if (gvData.FocusedRowHandle >= 0)
     {
         Guid Id = clsPublic.GetObjGUID(gvData.GetFocusedRowCellValue("Id"));
         Models.ys_JobFiles md = manager.GetOneById(Id);
         if (md != null)
         {
             JobFilesEditForm sub = new JobFilesEditForm(md);
             sub.ShowDialog();
         }
     }
     else
     {
         clsPublic.ShowMessage("没有可供预览的记录", Text);
     }
 }