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]); } } }
/// <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); }
/// <remarks/> public void SynchLabResultsAsync(string RegistrationKey, LabResultm[] labResultmList) { this.SynchLabResultsAsync(RegistrationKey, labResultmList, null); }
public void SynchLabResults(string RegistrationKey, LabResultm[] labResultmList) { this.Invoke("SynchLabResults", new object[] { RegistrationKey, labResultmList}); }