예제 #1
0
 public static void UpdateFromChangeList(List <LabResultm> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         LabResultm labresultm = Crud.LabResultmCrud.SelectOne(customerNum, list[i].LabResultNum);
         if (labresultm == null)               //not in db
         {
             Crud.LabResultmCrud.Insert(list[i], true);
         }
         else
         {
             Crud.LabResultmCrud.Update(list[i]);
         }
     }
 }
예제 #2
0
 /// <remarks/>
 public void SynchLabResultsAsync(string RegistrationKey, LabResultm[] labResultmList, object userState) {
     if ((this.SynchLabResultsOperationCompleted == null)) {
         this.SynchLabResultsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchLabResultsOperationCompleted);
     }
     this.InvokeAsync("SynchLabResults", new object[] {
                 RegistrationKey,
                 labResultmList}, this.SynchLabResultsOperationCompleted, userState);
 }
예제 #3
0
 /// <remarks/>
 public void SynchLabResultsAsync(string RegistrationKey, LabResultm[] labResultmList) {
     this.SynchLabResultsAsync(RegistrationKey, labResultmList, null);
 }
예제 #4
0
 public void SynchLabResults(string RegistrationKey, LabResultm[] labResultmList) {
     this.Invoke("SynchLabResults", new object[] {
                 RegistrationKey,
                 labResultmList});
 }