示例#1
0
 public bool Insert( ref int EmployeeDocumentID,  int EmployeeDocumentTypeID,  int EmployeeID,  string Name,  string Path)
 {
     EmployeeDocumentDAC employeedocumentComponent = new EmployeeDocumentDAC();
     return employeedocumentComponent.InsertNewEmployeeDocument( ref EmployeeDocumentID,  EmployeeDocumentTypeID,  EmployeeID,  Name,  Path);
 }
示例#2
0
 public bool Insert(EmployeeDocument employeedocument)
 {
     int autonumber = 0;
     EmployeeDocumentDAC employeedocumentComponent = new EmployeeDocumentDAC();
     bool endedSuccessfuly = employeedocumentComponent.InsertNewEmployeeDocument( ref autonumber,  employeedocument.EmployeeDocumentTypeID,  employeedocument.EmployeeID,  employeedocument.Name,  employeedocument.Path);
     if(endedSuccessfuly)
     {
         employeedocument.EmployeeDocumentID = autonumber;
     }
     return endedSuccessfuly;
 }