| | |
| | | 账号充值 <input type="hidden" name="apid" id="apid" value="0"/></h4> |
| | | </div> |
| | | <div class="modal-body"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 账号ID</label> |
| | | <div class="col-sm-6 "> |
| | | <input type="text" class="form-control" name="spId" id="spId" value="<%=GwOrder.SpId %>" readonly="readonly"/> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 客户账号</label> |
| | | <div class="col-sm-6 "> |
| | | <input type="text" class="form-control" name="clientId" id="clientId" value="<%=GwOrder.ClientId %>" readonly="readonly"/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 客户ID</label> |
| | | <div class="col-sm-6 "> |
| | | <select name="clientId" id="clientId" class="form-control" disabled="disabled"> |
| | | <%=GetClientOptions(GwOrder.ClientId)%> |
| | | </select> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 公司名称</label> |
| | | <div class="col-sm-6 "> |
| | | <input type="text" class="form-control" name="company" id="company" value="<%=GwOrder.Company %>" readonly="readonly"/> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <%if (_controlFlag == 0) |
| | | { %> |
| | | <!-- |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 客户账号</label> |
| | | <div class="col-sm-6 "> |
| | | <select name="clientId" id="clientId" class="form-control" disabled="disabled"> |
| | | <!%=GetClientOptions(GwOrder.ClientId)%> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | --> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 短信账号</label> |
| | | <div class="col-sm-6 "> |
| | | <select name="spId" id="spId" class="form-control" onchange="getGwSp(this);" > |
| | | <%=GetSpOptions()%> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <%} |
| | | else { %> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 短信账号</label> |
| | | <div class="col-sm-6 "> |
| | | <input type="text" class="form-control" name="spId" id="spId" value="<%=GwOrder.SpId %>" readonly="readonly"/> |
| | | </div> |
| | | </div> |
| | | <%} %> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"> |
| | | 产品ID</label> |
| | | 产品名称</label> |
| | | <div class="col-sm-6 "> |
| | | <select name="productId" id="productId" class="form-control" disabled="disabled"> |
| | | <%=GetProductOptions(GwOrder.ProductId)%> |
| | | </select> |
| | | <input type="text" class="form-control" name="productName" id="productName" value="<%=GwOrder.ProductName %>" readonly="readonly"/> |
| | | <input type="hidden" class="form-control" name="productId" id="productId" value="<%=GwOrder.ProductId %>" /> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | |
| | | 基本条数余额</label> |
| | | <div class="col-sm-6"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" value="<%=GwOrder.BasicNum %>" |
| | | <input type="text" class="form-control" name="_basicNum" id="_basicNum" value="<%=GwOrder.BasicNum %>" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" readonly="readonly" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | 赠送条数余额</label> |
| | | <div class="col-sm-6"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" value="<%=GwOrder.GivingNum %>" |
| | | <input type="text" class="form-control" name="_givingNum" id="_givingNum" value="<%=GwOrder.GivingNum %>" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" readonly="readonly" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="form-group classes-span classes-span-1"> |
| | | <label class="col-sm-2 control-label"> |
| | | 用户余额</label> |
| | | 客户余额</label> |
| | | <div class="col-sm-6"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" value="<%=(double)Balance/1000 %>" |
| | | <input type="text" class="form-control" name="balance" id="balance" value="<%=(double)GwOrder.Balance/1000 %>" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" readonly="readonly" /><span class="input-group-addon">元 </span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group classes-span classes-span-1"> |
| | | <label class="col-sm-2 control-label"> |
| | | 充值金额</label> |
| | | <div class="col-sm-6"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="payAmount" id="payAmount" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">元 </span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | 订单基本条数</label> |
| | | <div class="col-sm-6"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="basicNum" id="basicNum" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="basicNum" id="basicNum" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | 订单赠送条数</label> |
| | | <div class="col-sm-6"> |
| | | <div class="input-group"> |
| | | <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="5" |
| | | <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="10" |
| | | onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" |
| | | oncontextmenu="return false" /><span class="input-group-addon">条 </span> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <a class="btn btn-primary action-save" href="javascript:;">保存</a> |
| | | <a class="btn btn-default action-back" href="javascript:;" onclick="return window.location = 'GwSp.aspx'">返回</a> |
| | | <a class="btn btn-default action-back" href="javascript:;" onclick="return window.location = '<%=backUrl %>'">返回</a> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | var spId = $("#spId").val(); |
| | | var clientId = $("#clientId").val(); |
| | | var productId = $("#productId").val(); |
| | | var productId = $("#productId").val(); |
| | | var price = $("#price").val(); |
| | | var payAmount = $("#payAmount").val(); |
| | | var basicNum = $("#basicNum").val(); |
| | | var givingNum = $("#givingNum").val(); |
| | | var remark = $("#remark").val(); |
| | |
| | | |
| | | if (b) { |
| | | |
| | | $.post("gwOrder.ashx", { action: "add", spId: spId, clientId: clientId, productId: productId, basicNum: basicNum, givingNum: givingNum, remark: remark }, function (r) { |
| | | $.post("gwOrder.ashx", { action: "add", spId: spId, clientId: clientId, productId: productId, price: price, payAmount:payAmount, basicNum: basicNum, givingNum: givingNum, remark: remark }, function (r) { |
| | | |
| | | mytek.alert(r.Message, r.OK, function () { |
| | | //loadPageList(); |
| | | if (r.OK) { |
| | | window.location = "<%=backUrl%>"; |
| | | } else { |
| | | mytek.alert(r.Message, false); |
| | | } |
| | | }); |
| | | |
| | | }); |
| | |
| | | |
| | | //} |
| | | |
| | | |
| | | function getGwSp(obj) { |
| | | if (obj.value != "") { |
| | | $.get("gwOrder.ashx", { "action": "getOrderBySpId", spId: obj.value }, function (r) { |
| | | |
| | | //$("#orderId").val(r.Message.OrderId).attr("readonly", "readonly"); |
| | | $("#clientId").val(r.Message.ClientId).attr("disabled", "disabled"); |
| | | $("#company").val(r.Message.Company).attr("disabled", "disabled"); |
| | | $("#spId").val(r.Message.SpId); |
| | | $("#productId").val(r.Message.ProductId).attr("disabled", "disabled"); |
| | | $("#productName").val(r.Message.ProductName).attr("disabled", "disabled"); |
| | | $("#_basicNum").val(r.Message.BasicNum, 0); |
| | | $("#_givingNum").val(r.Message.GivingNum, 0); |
| | | $("#price").val(r.Message.Price / 1000, 0.00).attr("readonly", "readonly"); |
| | | $("#balance").val(r.Message.Balance / 1000, 0.00).attr("readonly", "readonly"); |
| | | //$("#payAmount").val(r.Message.PayAmount / 1000, 0); |
| | | $("#remark").val(r.Message.Remark); |
| | | |
| | | }, "json"); |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
| | | |