private void btnEditDetail_Click(object sender, EventArgs e) { #region 修改子件 if (dal.ExistRef(model.Guid)) { throw new Exception("已经生成流转卡,不能修改!"); } FmWODetails frm = new FmWODetails(model.Guid); if (frm.ShowDialog() == DialogResult.OK) { this.model = dal.Get(model.Guid); gridControl2.DataSource = dal.GetDetail(model.Guid); } #endregion }
private void FormLoad(object sender, EventArgs e) { this.InitGrid(); this.model = dal.Get(guid); this.UIDataBinding(); this.ReflashUI(); this.GetFTPFileList(model.WOCode); }