コード例 #1
0
ファイル: GatePassPdf.java プロジェクト: cwaweru/FunsoftHMIS
  public void run() {

    System.out.println("System has entered running mode");

    while (threadCheck) {

      System.out.println("O.K. see how we execute target program");

      this.generatePdf(MNo);

      try {

        System.out.println("Right, let's wait for task to complete of fail");

        java.lang.Thread.currentThread().sleep(200);

        System.out.println("It's time for us threads to get back to work after the nap");

      } catch (java.lang.InterruptedException IntExec) {

        System.out.println(IntExec.getMessage());
      }

      threadCheck = false;

      System.out.println("We shall be lucky to get back to start in one piece");
    }

    if (!threadCheck) {

      Thread.currentThread().stop();
    }
  }
コード例 #2
0
  //  public void FinalPatientInvoicePdf(java.sql.Connection connDb, java.lang.String begindate,
  // java.lang.String endate, java.lang.String combox) {
  public void NHIFStatementAccPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String combox,
      java.lang.String combox1) {

    dbObject = new com.afrisoftech.lib.DBObject();

    memNo1 = combox1;

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;

    System.out.println("Days Date" + endDate);
    ageingSeries = new com.afrisoftech.timeseries.AgeingSeries(4, endate);
    // periodicDates = new com.afrisoftech.lib.PeriodicDates(endDate, 3);

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #3
0
  public void SalesReportPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String cashPoint,
      java.lang.String glAccount) {

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;

    CashPoint = cashPoint;

    gAccount = glAccount;

    dbObject = new com.afrisoftech.lib.DBObject();

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #4
0
  public void ReceiptsRtf(
      java.sql.Connection connDb,
      java.lang.String combox,
      java.lang.String name,
      java.lang.String amount,
      java.lang.String receipt,
      java.lang.String paymode) {

    MNo = combox;

    Name = name;

    Amount = amount;

    Receipt = receipt;

    connectDB = connDb;

    Paymode = paymode;

    // beginDate = begindate;

    // endDate = endate;
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #5
0
  //  public void FinalPatientInvoicePdf(java.sql.Connection connDb, java.lang.String begindate,
  // java.lang.String endate, java.lang.String combox) {
  public void StatementAccDetailPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String combox1,
      java.lang.String combox) {

    dbObject = new com.afrisoftech.lib.DBObject();

    memNo1 = combox1;
    memNo = combox;

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #6
0
  public void TransByAccountPdf1(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String combox,
      java.lang.String ptype) {

    bank = combox;

    paType = ptype;

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
    dbObject = new com.afrisoftech.lib.DBObject();
  }
コード例 #7
0
  public void RevenuePriceListPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String combox) {
    // public void StoresBalPdf(java.sql.Connection connDb) {

    dbObject = new com.afrisoftech.lib.DBObject();

    bank = combox;

    connectDB = connDb;

    // beginDate = begindate;

    // endDate = endate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #8
0
ファイル: GatePassPdf.java プロジェクト: cwaweru/FunsoftHMIS
  // public void ReceiptsPdf(java.sql.Connection connDb, java.lang.String begindate,
  // java.lang.String endate, java.lang.String combox) {
  public void GatePassPdf(java.sql.Connection connDb, java.lang.String combox, String invNo) {

    invoiceNo = invNo;

    MNo = combox;

    connectDB = connDb;

    // beginDate = begindate;

    // endDate = endate;
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #9
0
  public void CorporateTaxPdf(
      java.sql.Connection connDb, java.util.Date begindate, java.util.Date endate) {
    connectDB = connDb;
    beginDate = begindate;
    endDate = endate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #10
0
  public void BalanceSheetPdf(
      java.sql.Connection connDb, java.lang.String begindate, java.lang.String endate) {
    connectDB = connDb;
    beginDate = begindate;
    endDate = endate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #11
0
  public void RevenuesPdf(java.sql.Connection connDb) {

    connectDB = connDb;
    // beginDate = begindate;
    // endDate = endate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #12
0
  public DeliveriesMonthlyPdf(
      java.sql.Connection connDb, java.util.Date begindate, java.util.Date endate) {
    dbObject = new com.afrisoftech.lib.DBObject();
    connectDB = connDb;
    beginDate = begindate;
    endDate = endate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #13
0
  public void PettyCashPaymentsShiftPdf(
      java.sql.Connection connDb, java.lang.String combox, java.lang.String cashPoint) {

    memNo = combox;

    CashPoint = cashPoint;

    connectDB = connDb;
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #14
0
  //  public void FinalPatientInvoicePdf(java.sql.Connection connDb, java.lang.String begindate,
  // java.lang.String endate, java.lang.String combox) {
  public void FinalPatientInvoicePdf(java.sql.Connection connDb) {

    //  MNo = combox;

    connectDB = connDb;

    //    beginDate = begindate;

    //    endDate = endate;
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #15
0
  // public void ReceiptsPdf(java.sql.Connection connDb, java.lang.String begindate,
  // java.lang.String endate, java.lang.String combox) {
  public void PatientRefundPdf(java.sql.Connection connDb, java.lang.String voucno) {

    dbObject = new com.afrisoftech.lib.DBObject();
    vouchNo = voucno;
    connectDB = connDb;
    //  previewPrint = printPreview;
    // beginDate = begindate;

    // endDate = endate;
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #16
0
  public void DoctorStmsPdf(java.sql.Connection connDb, java.lang.String combox) {
    MNo = combox;

    dbObject = new com.afrisoftech.lib.DBObject();

    connectDB = connDb;

    // beginDate = begindate;

    // endDate = endate;
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #17
0
  //  public void FinalPatientInvoicePdf(java.sql.Connection connDb, java.lang.String begindate,
  // java.lang.String endate, java.lang.String combox) {
  public void FinalDescInvoiceByinvPdf(
      java.sql.Connection connDb, java.lang.String inv1, java.lang.String inv2) {

    dbObject = new com.afrisoftech.lib.DBObject();
    connectDB = connDb;

    INV01 = inv1;

    INV02 = inv2;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #18
0
  public void MOH204BOPOver5RegisterPdf(
      java.sql.Connection connDb, java.util.Date startDate, java.util.Date lastDate) {

    dbObject = new com.afrisoftech.lib.DBObject();

    connectDB = connDb;

    beginDate = startDate;

    endDate = lastDate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #19
0
  public void UnBankedItemsPdf(
      java.sql.Connection connDb, java.util.Date begindate, java.util.Date enddate) {

    //        bank = combox;

    connectDB = connDb;

    beginDate = begindate;

    endDate = enddate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #20
0
  public void JournalsIndvPdf(
      java.sql.Connection connDb, java.lang.String jno, java.lang.String jno1) {

    connectDB = connDb;

    //  beginDate = begindate;

    //  endDate = endate;

    Jno = jno;

    Jno1 = jno1;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #21
0
  public void TrialBalanceMvtPdf(
      java.sql.Connection connDb, java.util.Date begindate, java.util.Date endate) {

    dbObject = new com.afrisoftech.lib.DBObject();

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;

    ageingSeries = new com.afrisoftech.timeseries.AgeingSeries(2, endate);

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #22
0
  public void WeeklyComparisonRevPdf(
      java.sql.Connection connDb, java.util.Date begindate, java.util.Date endate) {
    // public void OrderedItemsPdf(java.sql.Connection connDb) {
    // Debtor = combox;
    connectDB = connDb;
    beginDate = begindate;
    endDate = endate;
    dbObject = new com.afrisoftech.lib.DBObject();
    System.out.println("Days Date" + endDate);
    // periodicDates = new com.afrisoftech.lib.PeriodicDates(endDate, 3);
    ageingSeries = new com.afrisoftech.timeseries.WeeklyAgeing(2, endate);
    // long enDate = java.util.Date.parse(endDate);

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #23
0
  public void PayerAgeingPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String combox) {
    // public void OrderedItemsPdf(java.sql.Connection connDb) {
    Debtor = combox;
    connectDB = connDb;
    beginDate = begindate;
    endDate = endate;
    dbObject = new com.afrisoftech.lib.DBObject();
    System.out.println("Days Date" + endDate);
    periodicDates = new com.afrisoftech.lib.PeriodicDates(endDate, 3);
    ageingSeries = new com.afrisoftech.timeseries.AgeingSeries(4, endate);
    // long enDate = java.util.Date.parse(endDate);

    // java.util.Date endDates = new java.util.Date(endDate);

    // java
    /* java.util.Calendar calendar = java.util.Calendar.getInstance();

                java.util.Calendar endCal = java.util.Calendar.getInstance();

                endCal.setTimeInMillis(java.util.Date.parse(endDate));

                calendar.set(endCal.getTime().getYear(), 0, 1);

                java.util.Date endDate = calendar.getTime();

                System.out.println("First day of year "+endDate.toString());
    */

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #24
0
  public void OpRevBrdwnPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String combox) {

    bank = combox;

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #25
0
  public void DebtorsageddateAlphaPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String bal) {

    balnc = bal;
    connectDB = connDb;
    beginDate = begindate;
    endDate = endate;
    dbObject = new com.afrisoftech.lib.DBObject();
    System.out.println("Days Date" + endDate);
    //   periodicDates = new com.afrisoftech.lib.PeriodicDates(endDate, 3);
    ageingSeries = new com.afrisoftech.timeseries.AgeingSeries(4, endate);

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #26
0
  public void SubStoresCostPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String store) {

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;

    StoreName = store;

    dbObject = new com.afrisoftech.lib.DBObject();
    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }
コード例 #27
0
  public void DebtorsStatementPdf(
      java.sql.Connection connDb,
      java.util.Date begindate,
      java.util.Date endate,
      java.lang.String debtor) {
    // public void OrderedItemsPdf(java.sql.Connection connDb) {
    dbObject = new com.afrisoftech.lib.DBObject();

    connectDB = connDb;

    beginDate = begindate;

    endDate = endate;

    Debtor = debtor;

    threadSample = new java.lang.Thread(this, "SampleThread");

    System.out.println("threadSample created");

    threadSample.start();

    System.out.println("threadSample fired");
  }