/// <summary> /// Update Images in Law /// </summary> /// <param name="document"></param> private void UpdateDocumentImageInLaw(LawSyncDocumentDetail document) { var lawDocumentUpdate = new LawDocumentBEO { LawDocId = document.LawDocumentId, ImagePaths = document.ProducedImages }; _lawEvAdapter.UpdateLawImagePaths(lawDocumentUpdate); _documentProcessStateList.Add(GetDocumentProcessStateInformationForImageSync(document, (int)LawSyncProcessState.Completed)); }
protected void btnSyncImagePaths_Click(object sender, EventArgs e) { try { string lawIniFile = txtLawIniFile.Text; int lawDocID = Convert.ToInt32(txtLawDocID.Text); List <string> imagePaths = SplitStr(txtImagePaths.Text, "\r\n".ToCharArray()); IEVLawAdapter adapter = EVLawAdapterFactory.NewEVLawAdapter(lawIniFile, "law_user", "law32sql"); var lawDoc = new LawDocumentBEO() { LawDocId = lawDocID, ImagePaths = imagePaths }; adapter.UpdateLawImagePaths(lawDoc); ltlResult.Text = "Update image paths complete"; } catch (Exception ex) { ltlResult.Text = string.Format("Error Code: {0}\r\nUser Message: {1}\r\n{2}", ex.GetErrorCode(), ex.ToUserString(), ex.ToString()); } }