diff --git a/wms/contract/contract-input.php b/wms/contract/contract-input.php index 55413366..361ae9ba 100644 --- a/wms/contract/contract-input.php +++ b/wms/contract/contract-input.php @@ -13,6 +13,18 @@ $stmt = $conn->prepare($sql_str); $stmt->bindParam(':accounttype',$accounttype); $stmt->execute(); $contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC); +$accounttype = "B"; +$sql_str = "SELECT accountid, name FROM account WHERE accounttype = :accounttype"; +$stmt = $conn->prepare($sql_str); +$stmt->bindParam(':accounttype',$accounttype); +$stmt->execute(); +$workers = $stmt->fetchAll(PDO::FETCH_ASSOC); +$accounttype = "M"; +$sql_str = "SELECT id,accountid, name FROM account WHERE accounttype = :accounttype"; +$stmt = $conn->prepare($sql_str); +$stmt->bindParam(':accounttype',$accounttype); +$stmt->execute(); +$contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> @@ -245,6 +257,25 @@ $contractpersons = $stmt->fetchAll(PDO::FETCH_ASSOC); + + + +