public DepartmentMasterRowChangeEvent(DepartmentMasterRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveDepartmentMasterRow(DepartmentMasterRow row) { this.Rows.Remove(row); }
public EmployeeMasterRow AddEmployeeMasterRow( System.Guid EmployeeID, string EmployeeNo, string FirstName, string MiddleName, string LastName, string PostalAddress, string PermanentAddress, System.DateTime DateOfBirth, string FatherName, decimal Height, string VisibleMarks, System.Guid OfficeID, DepartmentMasterRow parentDepartmentMasterRowByFK_EmployeeMaster_DepartmentMaster1, DesignationMasterRow parentDesignationMasterRowByFK_EmployeeMaster_DesignationMaster, decimal Salary, decimal Allowances, System.DateTime StartDate, System.DateTime EndDate, string CreatedBy, System.DateTime CreatedAt, string ModifiedBy, System.DateTime ModifiedAt, bool IsDeleted, string DeletedBy, System.DateTime DeletedAt, string NameOfEmployee) { EmployeeMasterRow rowEmployeeMasterRow = ((EmployeeMasterRow)(this.NewRow())); object[] columnValuesArray = new object[] { EmployeeID, EmployeeNo, FirstName, MiddleName, LastName, PostalAddress, PermanentAddress, DateOfBirth, FatherName, Height, VisibleMarks, OfficeID, null, null, Salary, Allowances, StartDate, EndDate, CreatedBy, CreatedAt, ModifiedBy, ModifiedAt, IsDeleted, DeletedBy, DeletedAt, NameOfEmployee}; if ((parentDepartmentMasterRowByFK_EmployeeMaster_DepartmentMaster1 != null)) { columnValuesArray[12] = parentDepartmentMasterRowByFK_EmployeeMaster_DepartmentMaster1[0]; } if ((parentDesignationMasterRowByFK_EmployeeMaster_DesignationMaster != null)) { columnValuesArray[13] = parentDesignationMasterRowByFK_EmployeeMaster_DesignationMaster[0]; } rowEmployeeMasterRow.ItemArray = columnValuesArray; this.Rows.Add(rowEmployeeMasterRow); return rowEmployeeMasterRow; }
public void AddDepartmentMasterRow(DepartmentMasterRow row) { this.Rows.Add(row); }