public override void DoSave() { try { this.grdDetail.UpdateData(); SY0005Dao.GetInstance().Update02(this.grdDetail.UpdateSave()); } catch (Exception ex) { } finally { DoInquiryDetail(); } }
private void DoInquiryDetail() { if (this.grdMaster.ActiveRow == null) { return; } var code = this.grdMaster.ActiveRow.Cells["CODE"].Value.ToString(); this.grdDetail.Layouts.Clear(); DataTable resultTable = SY0005Dao.GetInstance().Select02(code); this.grdDetail.DataSource = resultTable; this.grdDetail.SetColumnAutoResize(); }
public override void DoInquiry() { DataTable resultTable = SY0005Dao.GetInstance().Select01(); this.grdMaster.DataSource = resultTable; }