You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
<?php
|
|
include "./header.php";
|
|
$submit = $_GET['submit'];
|
|
$state = $_GET['state'];
|
|
$BillNo = $_POST['BillNo'];
|
|
$BillDate = (int)$_POST['BillDate'];
|
|
$CurrId = $_POST['CurrId'];
|
|
$DeptId = $_POST['DeptId'];
|
|
$PersonId = $_POST['PersonId'];
|
|
$BizPartnerId = $_POST['BizPartnerId'];
|
|
$TaxId = $_POST['TaxId'];
|
|
|
|
if ($submit == "add") {
|
|
$SQL1 = "INSERT INTO rib_business (`BillNo`,`BillDate`,`BizPartnerId`,`CurrId`,`TaxId`,
|
|
`PersonId`,`DeptId`,`CreditAgeDate`,`RecBizPartnerId`,`CurrentState`,`CreatorId`) VALUES (
|
|
'$BillNo',$BillDate,'$BizPartnerId','$CurrId','$TaxId','$PersonId','$DeptId',$BillDate,'$BizPartnerId',
|
|
0,'$user_id')";
|
|
mysqli_query($link, $SQL1);
|
|
if (mysqli_affected_rows($link)) {
|
|
echo '<script>alert("新增 成功")</script>';
|
|
} else {
|
|
echo '<script>alert("新增 失敗")</script>';
|
|
}
|
|
echo $SQL1;
|
|
?>
|
|
<!-- <script>
|
|
window.location.href = "rib02-business-create.php?BillNo=<?php echo $BillNo ?>&RowCode=1&TaxId=<?= $TaxId?>&<?= $token_link ?>";
|
|
</script> -->
|
|
<?php
|
|
}
|
|
|