def getSSSContribution(val):
    res = db.SubList("SSSContributions", "ID", val)
    for row in res:
        if row is not None:
            SSSContribution = SSSContributions.SSSContributions(
                str(row[0]), str(row[1]))
    return SSSContributions
def getOfficeEmployeeType(val):
    res = db.SubList("OfficeEmployeeTypes", "ID", val)
    for row in res:
        if row is not None:
            OfficeEmployeeType = OfficeEmployeeTypes.OfficeEmployeeTypes(
                str(row[0]), str(row[1]))
    return OfficeEmployeeType
Ejemplo n.º 3
0
def getClient(val):
    res = db.SubList("Clients", "ID", val)
    for row in res:
        if row is not None:
            Client = Clients.Clients(str(row[0]), str(row[1]), str(row[2]),
                                     str(row[3]), str(row[4]), str(row[5]))
    return Client
Ejemplo n.º 4
0
def getLog(val):
    res = db.SubList("Logs", "ID", val)
    for row in res:
        if row is not None:
            Log = Logs.Logs(int(row[0]), int(row[1]), str(row[2]), str(row[3]),
                            str(row[4]))
    return Log
Ejemplo n.º 5
0
def getAllowance(val):
    res = db.SubList("Allowances", "ID", val)
    for row in res:
        if row is not None:
            Allowance = Allowances.Allowances(int(row[0]), int(row[1]),
                                              int(row[2]), int(row[3]),
                                              str(row[4]), str(row[5]))
    return Allowance
def getAuthorizedManHour(val):
    res = db.SubList("AuthorizedManHours", "ID", val)
    for row in res:
        if row is not None:
            AuthorizedManHours = AuthorizedManHours.AuthorizedManHours(
                int(row[0]), int(row[1]), int(row[2]), int(row[3]),
                int(row[4]), str(row[5]))
    return Allowance
Ejemplo n.º 7
0
def getPayrollRecord(val):
    res = db.SubList("PersonalPayables", "ID", val)
    for row in res:
        if row is not None:
            PersonalPayable = PersonalPayables.PersonalPayables(
                int(row[0]), int(row[1]), str(row[2]), str(row[3]),
                str(row[4]), str(row[5]))
    return PersonalPayables
def getDetachmentContactPersons(val):
  res = db.SubList("DetachmentContactPersons", "DetachID", val)
  DetachmentContactPersonsList = []
  for row in res:
    if row is not None:
      DetachmentContactPerson = DetachmentContactPersons.DetachmentContactPersons( int(row[0]), int(row[1]), str(row[2]), str(row[3]), str(row[4]), str(row[5]), str(row[6]), str(row[7]), str(row[8]) )
      DetachmentContactPersonsList.append(DetachmentContactPerson)
      row = db.cur.fetchone()
  return DetachmentContactPersonsList
Ejemplo n.º 9
0
def getAllDetachmentsbyID(val):
  res = db.SubList("Detachments", "ClientID", val)
  DetachmentList = []
  for row in res:
    if row is not None:
      Detachment = Detachments.Detachments( int(row[0]), int(row[1]), str(row[2]), str(row[3]), str(row[4]), str(row[5]), str(row[6]), str(row[7]), str(row[8]) )
      DetachmentList.append(Detachment)
      row = db.cur.fetchone()
  return DetachmentList
def getClientContactPerson(val):
    res = db.SubList("ClientContactPersons", "ID", val)
    for row in res:
        if row is not None:
            Contact = ClientContactPersons.ClientContactPersons(
                str(row[0]), str(row[1]), str(row[2]), str(row[3]),
                str(row[4]), str(row[5]), str(row[6]), str(row[7]),
                str(row[8]))
    return Contact
Ejemplo n.º 11
0
def getPayrollRecord(val):
    res = db.SubList("PayrollRecord", "ID", val)
    for row in res:
        if row is not None:
            PayrollRecord = PayrollRecord.PayrollRecord(
                int(row[0]), int(row[1]), int(row[2]), int(row[3]),
                int(row[4]), int(row[5]), int(row[6]), int(row[7]),
                int(row[8]), int(row[9]), int(row[10]), int(row[11]),
                int(row[12]), int(row[13]), int(row[14]), int(row[15]))
    return PayrollRecord
Ejemplo n.º 12
0
def getAllowances(val):
    res = db.SubList("Allowances", "DetachID", val)
    AllowanceList = []
    for row in res:
        if row is not None:
            Allowance = Allowances.Allowances(int(row[0]), int(row[1]),
                                              int(row[2]), int(row[3]),
                                              str(row[4]), str(row[5]))
            AllowanceList.append(Allowance)
            row = db.cur.fetchone()
    return AllowanceList
Ejemplo n.º 13
0
def getRate(val):
    res = db.SubList("Rates", "ID", val)
    for row in res:
        if row is not None:
            Rate = Rates.Rates(int(row[0]), int(row[1]), str(row[2]),
                               str(row[3]), str(row[4]), int(row[5]),
                               int(row[6]), int(row[7]), int(row[8]),
                               int(row[9]), int(row[10]), int(row[11]),
                               int(row[12]), int(row[13]), int(row[14]),
                               str(row[15]))
    return Rate
Ejemplo n.º 14
0
def getPayables(val):
    res = db.SubList("PersonalPayables", "PeriodCode", val)
    PayableList = []
    for row in res:
        if row is not None:
            Payable = PersonalPayables.PersonalPayables(
                int(row[0]), int(row[1]), str(row[2]), str(row[3]),
                str(row[4]), str(row[5]))
            PayableList.append(Payable)
            row = db.cur.fetchone()
    return PayableList
Ejemplo n.º 15
0
def getFieldEmployee(val):
    res = db.SubList("FieldEmployees", "ID", val)
    for row in res:
        if row is not None:
            FieldEmployee = FieldEmployees.FieldEmployees(
                str(row[0]), str(row[1]), str(row[2]), str(row[3]),
                str(row[4]), str(row[5]), str(row[6]), str(row[7]),
                str(row[8]), str(row[9]), str(row[10]), str(row[11]),
                str(row[12]), str(row[13]), int(row[14]), str(row[15]),
                str(row[16]), str(row[17]), str(row[18]), str(row[19]),
                str(row[20]))
    return FieldEmployee
def getClientContactPersons(val):
    res = db.SubList("ClientContactPersons", "ClientID", val)
    ClientContactPersonsList = []
    for row in res:
        if row is not None:
            ClientContactPerson = ClientContactPersons.ClientContactPersons(
                str(row[0]), str(row[1]), str(row[2]), str(row[3]),
                str(row[4]), str(row[5]), str(row[6]), str(row[7]),
                str(row[8]))
            ClientContactPersonsList.append(ClientContactPerson)
            row = db.cur.fetchone()
    return ClientContactPersonsList
Ejemplo n.º 17
0
def getPayrollRate(val):
    res = db.SubList("Rates", "DetachID", val)
    RateArray = []
    for row in res:
        if row is not None:
            Rate = Rates.Rates(int(row[0]), int(row[1]), str(row[2]),
                               str(row[3]), str(row[4]), int(row[5]),
                               int(row[6]), int(row[7]), int(row[8]),
                               int(row[9]), int(row[10]), int(row[11]),
                               int(row[12]), int(row[13]), int(row[14]),
                               str(row[15]))
            RateArray.append(Rate)
    return RateArray
Ejemplo n.º 18
0
def getFieldEmployeeTypes(val):
  res = db.SubList("FieldEmployeeTypes", "ID", val)
  for row in res:
    if row is not None:
      FieldEmployeeType = FieldEmployeeTypes.FieldEmployeeTypes( str(row[0]), str(row[1]) )
  return Detachment
Ejemplo n.º 19
0
def getReceivable(val):
    res = db.SubList("Receivables", "ID", val)
    for row in res:
        if row is not None:
            Receivable = Receivables.Receivables(str(row[0]), str(row[1]))
    return Receivables
Ejemplo n.º 20
0
def getRateType(val):
    res = db.SubList("RateTypes", "ID", val)
    for row in res:
        if row is not None:
            RateType = RateTypes.RateTypes(str(row[0]), str(row[1]))
    return RateType
def getOfficeEmployeeType(val):
  res = db.SubList("PagibigCalamityLoan", "ID", val)
  for row in res:
    if row is not None:
      PagibigCalamityLoan = PagibigCalamityLoans.PagibigCalamityLoans( int(row[0]), int(row[1]), int(row[2]), int(row[3]), int(row[4]), str(row[5]) )
  return PagibigCalamityLoan
Ejemplo n.º 22
0
def getDetachment(val):
  res = db.SubList("Detachments", "ID", val)
  for row in res:
    if row is not None:
      Detachment = Detachments.Detachments( int(row[0]), int(row[1]), str(row[2]), str(row[3]), str(row[4]), str(row[5]), str(row[6]), str(row[7]), str(row[8]))
  return Detachment
Ejemplo n.º 23
0
def getUniformDeposit(val):
  res = db.SubList("UniformDeposits", "ID", val)
  for row in res:
    if row is not None:
      UniformDeposit = UniformDeposits.UniformDeposits( str(row[0]), str(row[1]) )
  return UniformDeposit
def getPagibigSalaryLoan(val):
  res = db.SubList("PagibigSalaryLoans", "ID", val)
  for row in res:
    if row is not None:
      PagibigSalaryLoans = PagibigSalaryLoans.PagibigSalaryLoans( int(row[0]), int(row[1]), int(row[2]), int(row[3]), int(row[4]), str(row[5]) )
  return PagibigSalaryLoans
Ejemplo n.º 25
0
def getHolidayMOR(val):
    res = db.SubList("HolidayMOR", "ID", val)
    for row in res:
        if row is not None:
            HolidayMOR = HolidayMOR.HolidayMOR(str(row[0]), str(row[1]))
    return HolidayMOR
Ejemplo n.º 26
0
def getIncentiveMOR(val):
    res = db.SubList("IncentiveMOR", "ID", val)
    for row in res:
        if row is not None:
            IncentiveMOR = IncentiveMOR.IncentiveMOR(str(row[0]), str(row[1]))
    return IncentiveMOR
Ejemplo n.º 27
0
def getOfficeEmployee(val):
  res = db.SubList("OfficeEmployees", "Username", val)
  for row in res:
    if row is not None:
      OfficeEmployee = OfficeEmployees.OfficeEmployees( int(row[0]), str(row[1]), str(row[2]), str(row[3]), str(row[4]), str(row[5]), str(row[6]), str(row[7]), str(row[8]), str(row[9]), str(row[10]), str(row[11]), str(row[12]), str(row[13]), int(row[14]), str(row[15]), str(row[16]), str(row[17]), str(row[18]) )
  return OfficeEmployee