示例#1
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     try
     {
         var obj = new frmTestDataList_AU();
         obj.dtTestDataList = dtTestDataList;
         obj.dtTestType     = dtTestType;
         obj.vAction        = action.Insert;
         obj.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
示例#2
0
 private void cmdUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdTestData.CurrentRow == null || grdTestData.CurrentRow.RowType != RowType.Record)
         {
             return;
         }
         var obj = new frmTestDataList_AU();
         obj.dtTestDataList = dtTestDataList;
         obj.dtTestType     = dtTestType;
         obj.vAction        = action.Update;
         obj.drData         = Utility.GetDataRow(dtTestDataList, LStandardTest.Columns.TestDataId, grdTestData.GetValue("TestData_ID"));
         obj.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
示例#3
0
 private void cmdUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdTestData.CurrentRow == null || grdTestData.CurrentRow.RowType != RowType.Record) return;
         var obj = new frmTestDataList_AU();
         obj.dtTestDataList = dtTestDataList;
         obj.dtTestType = dtTestType;
         obj.vAction = action.Update;
         obj.drData = Utility.GetDataRow(dtTestDataList, LStandardTest.Columns.TestDataId,grdTestData.GetValue("TestData_ID"));
         obj.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
示例#4
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     try
     {
         var obj = new frmTestDataList_AU();
         obj.dtTestDataList = dtTestDataList;
         obj.dtTestType = dtTestType;
         obj.vAction = action.Insert;
         obj.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }