Ejemplo n.º 1
0
 /// <summary>
 /// Delete User Document
 /// </summary>
 /// <param name="userDocId">User Document Id</param>
 /// <returns>return success 1</returns>
 public static int DeleteUserDocument(int userDocId)
 {
     int result;
     TMSDataLibrary.TransporterDocument objTranDocument = new TMSDataLibrary.TransporterDocument();
     result = objTranDocument.DeleteUserDocument(userDocId);
     return result;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update User Document
 /// </summary>
 /// <param name="transporterDocument">Transporter Document</param>
 /// <returns>return success 1</returns>
 public static int UpdateUserDocument(TransporterDocument transporterDocument)
 {
     int result;
     TMSDataLibrary.TransporterDocument objTranDocument = new TMSDataLibrary.TransporterDocument();
     result = objTranDocument.UpdateUserDocument(transporterDocument.DocTypeId, transporterDocument.DocumentNo, transporterDocument.DocPath,
         transporterDocument.IssueDate, transporterDocument.UserId);
     return result;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get User Documents
 /// </summary>
 /// <param name="userId">User id</param>
 /// <returns>DataTable of User Documents</returns>
 public static DataTable GetUserDocument(int userId)
 {
     TMSDataLibrary.TransporterDocument objTranDocument = new TMSDataLibrary.TransporterDocument();
     return objTranDocument.SelectUserDocument(userId);
 }