亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? teststockmanagementdata.java

?? java進銷存信息管理系統,實現了倉庫產品價格人員報表等功能
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
    result = stockManagementData.createSupplier(supplier);
    this.assertEquals("", 1, result);
  }
  //測試供應商更新方法
  public void testSupplierUpdate() throws Exception{
    String[] supplier = new String[]{"測試供應商1", "北部", "拼音碼1", "簡稱1", "021-556892",
        "張凡", "1350058956", "021-896523", "021-963258", "地址1", "511896",
        "中行", "銀行帳號", "jack@hotmail.com", "www.jack.com", "備注1"};
    //更新供應商的值
    int result = stockManagementData.updateSupplier(supplier);
    this.assertEquals("", 1, result);
  }
  //測試根據供應商名字取得記錄的方法
  public void testFindBySupplierName() throws Exception {
    String[][] detail = stockManagementData.getSuppliersBySupplierName("%供應商%");
    this.assertEquals("", 3, detail.length);
  }
  //測試根據地區取得記錄的方法
  public void testFindBySupplierZone() throws Exception {
    String[][] detail = stockManagementData.getSuppliersBySupplierZone("%北部%");
    this.assertEquals("", 2, detail.length);
  }
  //測試供應商刪除方法
  public void testSupplierDelete() throws Exception{
    String[] suppliers = new String[]{"測試供應商1", "測試供應商2", "測試供應商3"};
    //刪除供應商
    int result = stockManagementData.deleteSupplier(suppliers[0]);
    this.assertEquals("", 1, result);
    //刪除供應商
    result = stockManagementData.deleteSupplier(suppliers[1]);
    this.assertEquals("", 1, result);
    //刪除供應商
    result = stockManagementData.deleteSupplier(suppliers[2]);
    this.assertEquals("", 1, result);
  }
  //測試客戶創建方法
  public void testCustomerCreate() throws Exception {
    //創建客戶數組
    String[] customer = new String[] {
        "測試客戶1", "南部", "拼音碼1", "簡稱1", "021-556892",
        "張凡", "1350058956", "021-896523", "021-963258", "地址1", "511896",
        "中行", "銀行帳號", "jack@hotmail.com", "www.jack.com", "10000", "備注1"};
    //創建客戶
    int result = stockManagementData.createCustomer(customer);
    this.assertEquals("", 1, result);
    customer = new String[] {
        "測試客戶2", "北部", "拼音碼2", "簡稱2", "021-556892",
        "張凡", "1350058956", "021-896523", "021-963258", "地址2", "511896",
        "中行", "銀行帳號", "jack@hotmail.com", "www.jack.com", "10000", "備注2"};
    //創建客戶
    result = stockManagementData.createCustomer(customer);
    this.assertEquals("", 1, result);
    customer = new String[] {
        "測試客戶3", "南部", "拼音碼3", "簡稱3", "021-556892",
        "張凡", "1350058956", "021-896523", "021-963258", "地址3", "511896",
        "中行", "銀行帳號", "jack@hotmail.com", "www.jack.com", "10000", "備注3"};
    //創建客戶
    result = stockManagementData.createCustomer(customer);
    this.assertEquals("", 1, result);
  }
  //測試客戶更新方法
  public void testCustomerUpdate() throws Exception {
    String[] customer = new String[] {
        "測試客戶1", "北部", "拼音碼1", "簡稱1", "021-556892",
        "張凡", "1350058956", "021-896523", "021-963258", "地址1", "511896",
        "中行", "銀行帳號", "jack@hotmail.com", "www.jack.com", "10000", "備注1"};
    //更新客戶的值
    int result = stockManagementData.updateCustomer(customer);
    this.assertEquals("", 1, result);
  }
  //測試根據客戶名字取得記錄的方法
  public void testFindByCustomerName() throws Exception {
    String[][] detail = stockManagementData.getCustomersByCustomerName("%客戶%");
    this.assertEquals("", 6, detail.length);
  }
  //測試根據地區取得記錄的方法
  public void testFindByCustomerZone() throws Exception {
    String[][] detail = stockManagementData.getCustomersByCustomerZone("%北部%");
    this.assertEquals("", 4, detail.length);
  }
  //測試設置客戶信用的方法
  public void testSetCustomerCreditLimit() throws Exception{
    String customerName = "測試客戶1";
    double creditlimit = 0;
    int result = stockManagementData.setCreditCustomer(customerName, creditlimit);
    this.assertEquals("", 1, result);
  }
  //測試取得信用客戶記錄的方法
  public void testFindCreditCustomer() throws Exception {
    String[][] detail = stockManagementData.getCreditCustomer();
    this.assertEquals("", 5, detail.length);
  }
  //測試客戶刪除方法
  public void testCustomerDelete() throws Exception {
    String[] customers = new String[] {
        "測試客戶1", "測試客戶2", "測試客戶3"};
    //刪除客戶
    int result = stockManagementData.deleteCustomer(customers[0]);
    this.assertEquals("", 1, result);
    //刪除客戶
    result = stockManagementData.deleteCustomer(customers[1]);
    this.assertEquals("", 1, result);
    //刪除客戶
    result = stockManagementData.deleteCustomer(customers[2]);
    this.assertEquals("", 1, result);
  }
  //測試創建倉庫的方法
  public void testWarehouseCreate() throws Exception{
    String[] warehouse = new String[]{"測試倉庫1", "拼單碼1", "第1廠區", "描述1"};
    //創建測試倉庫
    int result = stockManagementData.createWarehouse(warehouse);
    this.assertEquals("", 1, result);
    warehouse = new String[]{"測試倉庫2", "拼單碼2", "第2廠區", "描述2"};
    //創建測試倉庫
    result = stockManagementData.createWarehouse(warehouse);
    this.assertEquals("", 1, result);
    warehouse = new String[]{"測試倉庫3", "拼單碼3", "第3廠區", "描述3"};
    //創建測試倉庫
    result = stockManagementData.createWarehouse(warehouse);
    this.assertEquals("", 1, result);
  }
  //測試修改倉庫的方法
  public void testWarehouseUpdate() throws Exception{
    String[] warehouseArray = new String[]{"測試倉庫1", "拼單碼1(u)", "第1廠區(u)", "描述1(u)"};
    //創建更新倉庫
    int result = stockManagementData.updateWarehouse(warehouseArray);
    this.assertEquals("", 1, result);
  }
  //測試取得全部記錄的方法
  public void testWarehouseFindAll() throws Exception {
    String[][] returnValue = stockManagementData.getAllWarehouse();
    this.assertEquals("", 3, returnValue.length);
  }
  //測試刪除倉庫的方法
  public void testWarehouseDelete() throws Exception{
    String[] warehouseArray = new String[]{"測試倉庫1", "測試倉庫2", "測試倉庫3"};
    //創建測試倉庫
    int result = stockManagementData.deleteWarehouse(warehouseArray[0]);
    this.assertEquals("", 1, result);
    //刪除測試倉庫
    result = stockManagementData.deleteWarehouse(warehouseArray[1]);
    this.assertEquals("", 1, result);
    //刪除測試倉庫
    result = stockManagementData.deleteWarehouse(warehouseArray[2]);
    this.assertEquals("", 1, result);
  }
  //測試創建會計科目的方法
  /*public void testAccountNameCreate() throws Exception{
    //創建會計科目
    int result = stockManagementData.createAccountName(0, "流動資產");
    this.assertEquals("", 1, result);
    //創建會計科目
    result = stockManagementData.createAccountName(0, "固定資產");
    this.assertEquals("", 1, result);
    //創建會計科目
    result = stockManagementData.createAccountName(1, "現金");
    this.assertEquals("", 1, result);
    //創建會計科目
    result = stockManagementData.createAccountName(1, "銀行存款");
    this.assertEquals("", 1, result);
  }
  //測試修改會計科目的方法
  public void testAccountNameUpdate() throws Exception{
    int result = stockManagementData.updateAccountName(1, 0, "流動資產(更新)");
    this.assertEquals("", 1, result);
  }
  //測試取得全部記錄的方法
  public void testAccountNameFindAll() throws Exception {
    String[][] returnValue = stockManagementData.getAllAccountName();
    this.assertEquals("", 4, returnValue.length);
  }
  //測試根據父標識取得記錄的方法
  public void testAccountNameFindByParentId() throws Exception {
    String[][] returnValue = stockManagementData.getAccountNameByParentid(1);
    this.assertEquals("", 2, returnValue.length);
  }
  //測試刪除會計科目的方法
  public void testAccountNameDelete() throws Exception{
    int result = stockManagementData.deleteAccountName(1);
    //由于流動資產科目有子科目,所以不能進行刪除操作
    this.assertEquals("", 0, result);
    //刪除會計科目
    result = stockManagementData.deleteAccountName(2);
    this.assertEquals("", 1, result);
    result = stockManagementData.deleteAccountName(3);
    this.assertEquals("", 1, result);
    result = stockManagementData.deleteAccountName(4);
    this.assertEquals("", 1, result);
    result = stockManagementData.deleteAccountName(1);
    this.assertEquals("", 1, result);
  }*/
  //測試取得科目余額的方法
  public void testGetAccountBalance() throws Exception {
    String ledgerDate = "200404";
    int onProcess = 0;
    String[][] returnValue = stockManagementData.getAccountBalance(ledgerDate, onProcess);
    this.assertEquals("", 2, returnValue.length);
  }
  //測試根據操作程序名字取得日志記錄的方法
  public void testUserLogFindByProgramName() throws Exception{
    String[][] detail = stockManagementData.getUserLogByProgramName("%登陸窗口%");
    this.assertEquals("", 105, detail.length);
  }
  //測試根據操作內容取得日志記錄的方法
  public void testUserLogFindByOperationContent() throws Exception{
    String[][] detail = stockManagementData.getUserLogByOperationContent("%刪除%");
    this.assertEquals("", 2, detail.length);
  }
  //測試根據用戶名取得日志記錄的方法
  public void testUserLogFindByUserName() throws Exception{
    String[][] detail = stockManagementData.getUserLogByUserName("%ame%");
    this.assertEquals("", 23, detail.length);
  }
  //測試根據日期范圍取得日志記錄的方法
  public void testUserLogFindByOperationDate() throws Exception{
    //創建日期類
    java.util.Calendar date = java.util.Calendar.getInstance();
    date.set(2004, 4, 4, 0, 0, 0);
    java.sql.Timestamp startDate = new java.sql.Timestamp(date.getTime().getTime());
    date.set(2004, 4, 8, 23, 59, 59);
    java.sql.Timestamp endDate = new java.sql.Timestamp(date.getTime().getTime());
    String[][] detail = stockManagementData.getUserLogByOperationDate(startDate, endDate);
    this.assertEquals("", 69, detail.length);
  }
  //測試根據單據編號或者請購員名字或者倉庫名字取得庫存賬套數據表記錄的方法
  public void testGetStockLedgerByStringField() throws Exception{
    //根據單據編號取得記錄
    String[][] detail = stockManagementData.getStockLedgerByStringField(
        "200404", "orderId", "1", 0);
    this.assertEquals("", 1, detail.length);
    //根據請購員名字取得記錄
    detail = stockManagementData.getStockLedgerByStringField("200404",
        "submitUser", "請", 0);
    this.assertEquals("", 5, detail.length);
    //根據倉庫名字取得記錄
    detail = stockManagementData.getStockLedgerByStringField("200404", "warehouse", "倉", 0);
    this.assertEquals("", 3, detail.length);
  }
  //測試根據訂單日期取得庫存賬套數據表記錄的方法
  public void testGetStockLedgerByOrderDate() throws Exception{
    //創建日期類
    java.util.Calendar date = java.util.Calendar.getInstance();
    date.set(2004, 3, 1, 0, 0, 0);
    date.set(java.util.Calendar.MILLISECOND, 0);
    java.sql.Timestamp startDate = new java.sql.Timestamp(date.getTime().getTime());
    date.set(2004, 3, 20, 23, 59, 59);
    date.set(java.util.Calendar.MILLISECOND, 998);
    java.sql.Timestamp endDate = new java.sql.Timestamp(date.getTime().getTime());
    String[][] detail = stockManagementData.getStockLedgerByOrderDate("200404", startDate, endDate, 0);
    this.assertEquals("", 5, detail.length);
  }
  //測試根據單據編號取得庫存賬套明細數據表的記錄
  public void testGetStockSubLedgerByOrderId() throws Exception{
    //根據單據編號取得記錄
    String[][] detail = stockManagementData.getStockSubLedgerByOrderId(
        "200404", "20040400001");
    this.assertEquals("", 2, detail.length);
  }
  //測試創建庫存賬套數據表和庫存賬套明細數據表記錄的方法
  public void testCreateStockLedgerAndSub() throws Exception{
    /*String ledgerDate = "200405";
    String[] stockLedger = {
        "", "0", "供應商1", "jack", "", "", "", "", "倉庫1", "2004-5-5", "2004-5-15",
        "0", ""};
    String[][] stockSubLedger = {{"", "", "10000001", "10", "50", "2004-12-5"},
        {"", "", "10000002", "17", "20", "2004-11-3"}};
    int result = stockManagementData.createStockLedgerAndSub(ledgerDate, stockLedger, stockSubLedger);
    this.assertEquals("", 1, result);*/
  }
  //測試更新庫存賬套數據表和庫存賬套明細數據表記錄的方法
  public void testUpdateStockLedgerAndSub() throws Exception{
    /*String ledgerDate = "200405";
    String[] stockLedger = {
        "20040500002", "0", "供應商1(u)", "jack(u)", "", "(u)", "(u)", "(u)",
        "倉庫1(u)", "2004-5-6", "2004-5-16", "0", "(u)"};
    String[][] stockSubLedger = {{"21", "20040500002", "10000001", "8.6", "30", "2004-12-8"},
        {"22", "20040500002", "10000002", "16.5", "12", "2004-12-9"}};
    int result = stockManagementData.updateStockLedgerAndSub(ledgerDate, stockLedger, stockSubLedger);
    this.assertEquals("", 1, result);*/
  }
  //測試撤消庫存賬套數據表記錄的方法
  public void testCancelStockLedgerAndSub() throws Exception{
    String ledgerDate = "200405";
    String orderId = "20040500002";
    String remark = "倉庫1不需要該存貨.";
    int result = stockManagementData.cancelStockLedgerAndSub(ledgerDate, orderId, remark);
    this.assertEquals("", 1, result);
  }
  //測試檢查供應商的方法
  public void testCheckSupplier() throws Exception{
    String supplier = "供應商";
    int result = stockManagementData.checkSupplier(supplier);
    this.assertEquals("", 0, result);
    result = stockManagementData.checkSupplier("供應商1");
    this.assertEquals("", 1, result);
  }
  //測試檢查倉庫的方法
  public void testCheckWarehouse() throws Exception{
    String warehouse = "倉庫";
    int result = stockManagementData.checkWarehouse(warehouse);
    this.assertEquals("", 0, result);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人va在线观看天堂| 欧美国产精品v| 美女诱惑一区二区| 欧美在线观看18| 亚洲视频一二区| 日本韩国精品在线| 亚洲人成精品久久久久| 成人18视频日本| 国产亚洲一区二区三区四区| 五月激情综合色| 欧美精品久久99| 日韩黄色片在线观看| 91.com视频| 国产精品自拍三区| 国产精品美女久久久久aⅴ| 国产成人亚洲精品青草天美| 国产精品色哟哟| av不卡一区二区三区| 亚洲三级免费观看| 欧美色成人综合| 午夜一区二区三区在线观看| 欧美日韩一区二区三区视频| 国产又粗又猛又爽又黄91精品| 久久久久久毛片| 欧美在线免费观看视频| 蜜桃91丨九色丨蝌蚪91桃色| 久久久久久一级片| 中文字幕av在线一区二区三区| 精品在线免费观看| 成人h动漫精品一区二区 | 久久99日本精品| 日韩精品一区二区三区蜜臀| 久久久www免费人成精品| 国产精品 欧美精品| 亚洲人成伊人成综合网小说| 91精品国产综合久久福利| 国产精一区二区三区| 婷婷六月综合亚洲| 久久一日本道色综合| 91精品国产美女浴室洗澡无遮挡| 成人v精品蜜桃久久一区| 精品在线一区二区三区| 亚洲成av人片在线| 国产精品久久毛片av大全日韩| 欧美色图天堂网| 91亚洲国产成人精品一区二三| 国产精品一区二区黑丝| 美腿丝袜亚洲综合| 国产麻豆视频精品| 国产一区二区三区免费| 麻豆一区二区在线| 蜜桃视频一区二区| 蜜桃视频第一区免费观看| 午夜激情久久久| 亚洲图片欧美一区| 亚洲综合色噜噜狠狠| 无吗不卡中文字幕| 日韩中文字幕区一区有砖一区| 丝袜美腿亚洲一区二区图片| 五月婷婷另类国产| 蜜桃久久久久久| 成人性生交大合| 成人av影视在线观看| 波波电影院一区二区三区| 成人免费毛片a| 91黄视频在线观看| 884aa四虎影成人精品一区| 欧美一区二区性放荡片| www久久精品| 亚洲国产精品精华液ab| 夜夜嗨av一区二区三区| 丝袜美腿成人在线| 国内外精品视频| 国产成人免费在线| 欧美精品在线一区二区| 国产精品嫩草久久久久| 午夜国产不卡在线观看视频| 国产在线视频一区二区三区| www.亚洲免费av| 91精品国产入口| 亚洲欧美在线另类| 蜜臀久久久99精品久久久久久| 国产精品系列在线观看| 99麻豆久久久国产精品免费 | 99久久久精品免费观看国产蜜| 欧美亚洲高清一区二区三区不卡| 日韩写真欧美这视频| 国产精品久久国产精麻豆99网站| 亚洲一区二区精品久久av| eeuss鲁片一区二区三区在线看| 欧美日韩精品一二三区| 亚洲欧洲精品天堂一级| 国产在线精品一区二区| 欧美一区二区三区啪啪| 亚洲欧美一区二区三区久本道91 | 久久疯狂做爰流白浆xx| 欧美婷婷六月丁香综合色| 一区二区三区视频在线看| 欧美日韩情趣电影| 国产精品国产成人国产三级| 精品一区二区三区欧美| 51午夜精品国产| 亚洲bt欧美bt精品| 欧美性生活久久| 亚洲成人黄色小说| 在线播放欧美女士性生活| 免费看日韩精品| 宅男噜噜噜66一区二区66| 午夜激情一区二区| 91麻豆精品国产91久久久更新时间| 亚洲丝袜精品丝袜在线| 欧美日韩精品电影| 麻豆91精品91久久久的内涵| 精品久久国产字幕高潮| 精品亚洲成a人| 欧美国产日产图区| 欧美丝袜丝nylons| 久久精品免费观看| 国产午夜精品美女毛片视频| 国产精品88av| 亚洲国产成人tv| 国产无遮挡一区二区三区毛片日本| 国产成人精品网址| 天堂午夜影视日韩欧美一区二区| 欧美一卡2卡三卡4卡5免费| 久久av老司机精品网站导航| 国产三级精品在线| 欧美私模裸体表演在线观看| 九色综合国产一区二区三区| 亚洲欧美日韩一区二区| 精品国产乱码久久久久久夜甘婷婷| 国产91色综合久久免费分享| 亚洲成av人**亚洲成av**| 国产日产欧美一区| 欧美激情一区二区三区在线| 91小视频免费看| 一区二区三区中文在线| 精品区一区二区| 欧美色图天堂网| 99精品欧美一区二区三区小说| 精品一区二区影视| 日日骚欧美日韩| 亚洲免费在线播放| 国产欧美一区二区精品仙草咪| 91丨九色丨蝌蚪丨老版| 99国产一区二区三精品乱码| 国产精品一品二品| 老司机精品视频线观看86| 亚洲蜜臀av乱码久久精品| 久久久久国产精品麻豆| 精品剧情在线观看| 久久亚洲捆绑美女| 国产欧美一区二区精品性色 | 国产精品自产自拍| 久久国产尿小便嘘嘘| 亚洲蜜臀av乱码久久精品 | 欧美日韩mp4| 欧美一区欧美二区| 精品成人私密视频| 国产三级精品在线| 亚洲人123区| 日韩av中文字幕一区二区三区| 青娱乐精品视频| 国产成人av一区| 色婷婷综合激情| 日韩免费观看2025年上映的电影| 亚洲精品在线观看网站| 亚洲女女做受ⅹxx高潮| 免费亚洲电影在线| 97精品久久久午夜一区二区三区 | 久草在线在线精品观看| 亚洲精品乱码久久久久久久久| 一区二区三区久久| 精品一区二区三区在线播放| 久久99久久久久久久久久久| 成人免费看视频| 91.com视频| 亚洲一区二区三区四区在线观看| 日本亚洲三级在线| 色综合一区二区| 国产日韩欧美精品一区| 亚洲综合男人的天堂| 91视频在线观看免费| 欧美国产综合一区二区| 日本不卡123| 欧美二区乱c少妇| 一区二区三区精品久久久| 91视视频在线观看入口直接观看www | 久久66热re国产| 欧美精品三级日韩久久| 亚洲女同一区二区| 91丨九色丨黑人外教| 成人欧美一区二区三区| 成人av免费在线| 1区2区3区国产精品| 99精品视频免费在线观看| 国产亚洲一区字幕| 国产精品一区不卡| 中文字幕第一页久久| 成人免费的视频|