public virtual Adjudication.DocumentMasterDataTable GetAllDocument() { this.Adapter.SelectCommand = this.CommandCollection[4]; Adjudication.DocumentMasterDataTable dataTable = new Adjudication.DocumentMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual Adjudication.DocumentMasterDataTable GetDocumentDetailsByDocumentId(global::System.Nullable<global::System.Guid> DocumentTypeId) { this.Adapter.SelectCommand = this.CommandCollection[5]; if ((DocumentTypeId.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((System.Guid)(DocumentTypeId.Value)); } else { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } Adjudication.DocumentMasterDataTable dataTable = new Adjudication.DocumentMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual Adjudication.DocumentMasterDataTable Addnew(string Name, string Description) { this.Adapter.SelectCommand = this.CommandCollection[3]; if ((Name == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(Name)); } if ((Description == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Description)); } Adjudication.DocumentMasterDataTable dataTable = new Adjudication.DocumentMasterDataTable(); this.Adapter.Fill(dataTable); return dataTable; }