Пример #1
0
        /// <summary>
        /// 编辑
        /// </summary>
        public void Edit()
        {
            string             id = BaseInterfaceLogic.GetDataGridViewEntityId(this.grdItemDetails, BaseItemDetailsEntity.FieldId);
            FrmItemDetailsEdit frmItemDetailsEdit = new FrmItemDetailsEdit(id);

            frmItemDetailsEdit.TargetTableName = this.TargetTable;
            if (frmItemDetailsEdit.ShowDialog(this) == DialogResult.OK)
            {
                // 加载窗体
                this.FormOnLoad();
            }
        }
Пример #2
0
 /// <summary>
 /// 编辑
 /// </summary>
 public void Edit()
 {
     string id = BaseInterfaceLogic.GetDataGridViewEntityId(this.grdItemDetails, BaseItemDetailsEntity.FieldId);
     FrmItemDetailsEdit frmItemDetailsEdit = new FrmItemDetailsEdit(id);
     frmItemDetailsEdit.TargetTableName = this.TargetTable;
     if (frmItemDetailsEdit.ShowDialog(this) == DialogResult.OK)
     {
         // 加载窗体
         this.FormOnLoad();
     }
 }