<?php require_once 'lib.inc.php'; $GLOBAL_SESSION = returnsession(); $ExecTimeBegin = getmicrotime(); if ($_GET['action'] == "dataDeal") { //print_R($_POST); //print_R($_SESSION); $tablecode = returnDateAutoIncrement("tablecode", "stockinmain"); $tabledate = date("Y-m-d"); //print $tablecode."<HR>"; $USER_NAME = $_SESSION['SUNSHINE_USER_NAME']; $NICK_NAME = $_SESSION['SUNSHINE_USER_NICK_NAME']; $stockid = $_POST['stockid']; $supplyid = $_POST['supplyId']; $buyman = $_POST['buyman']; $amt = $_POST['amt']; $factpayamt = $_POST['factpayamt']; $state = $_POST['state']; $intype = $_POST['intype']; $chinaAmt = $_POST['chinaAmt']; $countAllAmt = $_POST['countAllAmt']; $factpayamt = ereg_replace(',', '', $factpayamt); $factpayamt = (int) $factpayamt; $countAllAmt = ereg_replace(',', '', $countAllAmt); $amt = (int) $countAllAmt; $factpayamt = $amt; $state = '1'; $_POST['state']; $flowState = '-1'; $intype = $_POST['intype'];
<form name="form1" action="/GRP_StockInAddMessage" method="post"> <table width="95%" class="TableBlock"> <tr> <td nowrap align="left" class="TableHeader" colspan="2"> <b>采购计划单据生成入库单据管理 :以下项目带*号的为必填项目</b></td> <td nowrap align="left" class="TableHeader" colspan="2"> </td> </tr> <tr> <td nowrap width="100" align="right" class="TableContent"><b>入库单编号 </b></td> <td nowrap align="left" class="TableData"> <input readonly type="text" name="tablecode" value="<?php echo returnDateAutoIncrement("tablecode", "requireplanmain"); ?> " size="15" maxlength="50" class="SmallInput"> <b>*</b> </td> <td nowrap width="100" align="right" class="TableContent"><b>入库日期 </b></td> <td nowrap align="left" class="TableData"> <input type="text" name="tabledate" value="<?php echo date("Y-m-d"); ?> " readonly class="SmallStatic"> <input type="button" name="b1" value="浏览" class="SmallButton" onclick="query_date('tabledate');"> <b>*</b> </td>
<form name="form1" action="/GRP_StockInAddMessage" method="post"> <table width="95%" class="TableBlock"> <tr> <td nowrap align="left" class="TableHeader" colspan="2"> <b>销售订单生成采购计划 :以下项目带*号的为必填项目</b></td> <td nowrap align="left" class="TableHeader" colspan="2"> </td> </tr> <tr> <td nowrap width="100" align="right" class="TableContent"><b>编号 </b></td> <td nowrap align="left" class="TableData"> <input readonly type="text" name="tablecode" value="<?php echo returnDateAutoIncrement("tablecode", "sellplanmain"); ?> " size="15" maxlength="50" class="SmallInput"> <b>*</b> </td> <td nowrap width="100" align="right" class="TableContent"><b>计划日期 </b></td> <td nowrap align="left" class="TableData"> <input type="text" name="tabledate" value="<?php echo date("Y-m-d"); ?> " readonly class="SmallStatic"> <input type="button" name="b1" value="浏览" class="SmallButton" onclick="query_date('tabledate');"> <b>*</b> </td>
<form name="form1" action="?action=dataDeal" method="post"> <table width="95%" class="TableBlock"> <tr> <td nowrap align="left" class="TableHeader" colspan="2"> <b>销售付款管理 :以下项目带*号的为必填项目</b></td> <td nowrap align="left" class="TableHeader" colspan="2"> </td> </tr> <tr> <td nowrap width="100" align="right" class="TableContent"><b>付款单编号 </b></td> <td nowrap align="left" class="TableData"> <input readonly type="text" name="tablecode" value="<?php echo returnDateAutoIncrement("tablecode", "getmain"); ?> " size="10" maxlength="50" class="SmallInput"> <b>*</b> </td> <td nowrap width="100" align="right" class="TableContent"><b>付款日期 </b></td> <td nowrap align="left" class="TableData"> <input type="text" name="tabledate" value="<?php echo $tabledate; ?> " readonly class="SmallStatic"> <input type="button" name="b1" value="浏览" class="SmallButton" onclick="query_date('tabledate');"> <b>*</b> </td>
echo $_GET['returnAction']; ?> " method="post"> <table width="95%" class="TableBlock"> <tr> <td nowrap align="left" class="TableHeader" style="Height:25" colspan="4"> <b>送货管理 :以下项目带*号的为必填项目</b></td> </tr> <tr> <td nowrap width="15%" align="right" class="TableContent"><b>出勤单编号 </b></td> <td nowrap width="35%" align="left" class="TableData"> <input readonly type="text" name="tablecode" value="<?php echo returnDateAutoIncrement("tablecode", "sendmain", $tablecode); ?> " size="15" maxlength="50" class="SmallInput"> <b>*</b> </td> <td nowrap width="15%" align="right" class="TableContent"><b>出勤日期 </b></td> <td nowrap width="35%" align="left" class="TableData"> <input type="text" name="tabledate" value="<?php echo $tabledate; ?> " readonly class="SmallStatic"> <input type="button" name="b1" value="浏览" class="SmallButton" onclick="query_date('tabledate');"> <b>*</b> </td>
<input type="text" name="sendDate" value="<?php echo $sendDate; ?> " readonly class="SmallStatic"> <input type="button" name="b1" value="浏览" class="SmallButton" onclick="query_date('sendDate');"> </td> </tr> <tr> <td nowrap width="15%" align="right" class="TableContent"><b>客订单号 </b></td> <td nowrap width="35%" align="left" class="TableData"> <?php if ($customerPO == "") { $customerPO = returnDateAutoIncrement("tablecode", "sellplanmain", $tablecode); } ?> <input type="text" name="customerPO" value="<?php echo $customerPO; ?> " size="20" maxlength="50" class="SmallInput"> <b>*</b> </td> <td nowrap width="15%" align="right" class="TableContent"> </b></td> <td nowrap width="35%" align="left" class="TableData"> </td> </tr>
function print_tr_auto_incrementdate($showtext, $var, $var_value = '', $colspan = 1, $readonly = '') { global $db, $primarykey_index, $tablename; if ($readonly == '') { $readonly = 'readonly'; } $var_value = returnDateAutoIncrement($var, $tablename, $var_value, $addText); //实时更新界面语言说明 $showtext = FilterFieldName($showtext, $var); print "<TR><TD class=TableData noWrap width=20%>{$showtext}</TD>\n"; print "<TD class=TableData colspan=\"{$colspan}\"><INPUT class='SmallStatic' maxLength=25 size='30' name={$var} {$readonly} value=\"{$var_value}\" onkeydown=\"if(event.keyCode==13)event.keyCode=9\">\n"; print "</TD></TR>\n"; }