Exemplo n.º 1
0
 private void New()
 {
     lmDatasets.ActivityConfig.ActivityCodeRow ar = (lmDatasets.ActivityConfig.ActivityCodeRow)AtMng.acMng.GetActivityCode().Add(null);
     activityCodeBindingSource.Position = activityCodeBindingSource.Find("ActivityCodeID", ar.ActivityCodeID);
     NewAcId = ar.ActivityCodeID;
     pnlActivitiesList.Closed = true;
 }
Exemplo n.º 2
0
 public ActivityCodeConverter()
 {
     System.Data.DataView dvAC = new System.Data.DataView(UIHelper.AtMng.acMng.DB.ActivityCode, "ACSeriesid is null and Obsolete=false", "ActivityCode", System.Data.DataViewRowState.CurrentRows);
     ac.Clear();
     acV.Clear();
     foreach (System.Data.DataRowView dvr in dvAC)
     {
         lmDatasets.ActivityConfig.ActivityCodeRow acr = (lmDatasets.ActivityConfig.ActivityCodeRow)dvr.Row;
         ac.Add(acr.ActivityCodeID, acr.ActivityCode + " - " + acr.ActivityNameEng);
         acV.Add(acr.ActivityCode + " - " + acr.ActivityNameEng, acr.ActivityCodeID);
     }
 }
Exemplo n.º 3
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     NewAC.RejectChanges();
     NewAC = null;
     this.Hide();
 }