打包时间统计功能优化
来源:互联网 发布:php 一句话 编辑:程序博客网 时间:2024/06/03 19:52
HTML<input type="button" onclick="$('#DetermineEndTime').dialog('open');" class="button" value="确定结束时间" style="cursor:pointer"><div id="DetermineEndTime" style="display:none" title="提示信息"> <h3 style='text-align:center'>确定结束时间<h3>"; <input type='hidden' name='op_pack_end'></div>Js<script> //初始化 $(function(){ $("#DetermineEndTime").dialog({ autoOpen: false, width: 300, height: 150, modal: true, show: "slide", buttons: { "确定": function () { $(this).dialog("close"); submitEndTime(); }, "取消": function () { $(this).dialog("close"); } } }); }); function submitEndTime() { var orders_code_ch = $('#orders_code_ch').val(); $.ajax({ type: "post", async: false, dataType: "json", url: "/warehouse/pack-check/determine-end-time/", data: {"orders_code_ch": orders_code_ch}, success: function (json) { alertTip(json.msg); } }); }</script>/** 控制器* 获取质检总数量*/class Warehouse_PackCheckController extends Zend_Controller_Action { public function determineEndTimeAction() { $result = array('ask' => 0, 'msg' => ''); $orders_code_ch = $this->_request->getParam("orders_code_ch", ""); $op_code = Order_Service_OrderPickup::getByValue($orders_code_ch, "op_code"); if (empty($op_code)) { $result['msg'] = "请输入下架单号"; die(json_encode($result)); } else { if ($op_code['op_pack_end'] == "0000-00-00 00:00:00" || $op_code['op_pack_end'] == "") { $time = array( "op_pack_end" => date("Y-m-d H:i:s"), ); $update = Order_Service_OrderPickup::update($time, $op_code['op_id']); $result = array('ask' => 1, 'msg' => '打包结束时间更新成功'); die(json_encode($result)); } else { $result['msg'] = "该订单已打包结束"; die(json_encode($result)); } } }}
阅读全文
0 0
- 打包时间统计功能优化
- 使用Spring AOP添加统计时间的功能
- paip.程序功能时间性能优化及SQL语句优化
- 统计时间
- 批量打包错误统计
- 系统优化(一)Maven打包同一个jar有不同的:版本+时间戳(解决思路)
- 存在汇总统计等功能的大数据量报表的优化方案
- 使用MyBatis对项目中的统计功能进行处理的查询语句优化
- 多渠道打包-友盟统计
- webpack打包计算器功能
- csdn的统计功能
- 微博 字数统计功能
- ALV排序统计功能
- SolrCloud统计功能小记
- Highcharts 数据统计功能
- HDFS nnTop统计功能
- TextInputLayout字数统计功能
- ucos统计功能
- UITextField左侧空出一段距离
- C#的JSON操作工具类
- linux_服务
- js中方法调用加括号和不加括号的区别
- 操作activiti出现的bug
- 打包时间统计功能优化
- POJ 1566(toj 1952)
- 修改静态库输出路径
- 如何在 Linux 上安装服务器程序?
- jfinal急速demo的坑!!!很多人会看过我转载的这篇文章,但是这个其实是有bug的!!!
- Java过滤器模式(条件模式)
- linux安装redis遇到过的一些坑
- ubuntu64位,出现hadoop2.6部署警告: Unable to load native-hadoop library
- 搬家了搬家了!