示例#1
0
 public override void DoSave()
 {
     try
     {
         this.grdDetail.UpdateData();
         SY0005Dao.GetInstance().Update02(this.grdDetail.UpdateSave());
     }
     catch (Exception ex)
     {
     }
     finally
     {
         DoInquiryDetail();
     }
 }
示例#2
0
        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();
        }
示例#3
0
        public override void DoInquiry()
        {
            DataTable resultTable = SY0005Dao.GetInstance().Select01();

            this.grdMaster.DataSource = resultTable;
        }