• 对账日清前台


    <%@ Control Language="C#" Inherits="Modules.duizhang_riqing.Viewduizhang_riqing"
    AutoEventWireup="true" CodeBehind="Viewduizhang_riqing.ascx.cs" %>
    <%@ Register assembly="C1.Web.Wijmo.Controls.4" namespace="C1.Web.Wijmo.Controls.C1GridView" tagprefix="wijmo" %>
    <%@ Register assembly="C1.Web.Wijmo.Controls.4" namespace="C1.Web.Wijmo.Controls.C1Tabs" tagprefix="wijmo" %>
    <script type="text/javascript" src="../../DesktopModules/duizhang_riqing/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
    $(function () {
    $("#tijiao13x").click(function () {
    alert();
    });
    });
    </script>
    <style>


    .wijmo-wijgrid tr.wijmo-wijgrid-row th
    {
    border-right:0px;
    }

    .ui-widget-content{border:0px}
    body
    {
    font-size:13px;
    }

    .wijmo-wijgrid-innercell {
    text-align: center;
    font-size:13px;
    }

    .wijmo-wijgrid .wijmo-wijgrid-headerrow .wijmo-wijgrid-headertext {
    padding:0;
    height:0px;
    }

    .table01 {
    text-align:center;
    100%;
    margin-bottom:50px;
    table-layout:fixed;
    }

    .table01 td {border-bottom:1px solid #808080;}
    .table01 {
    100%;
    border-top:1px solid #808080;
    border-left:1px solid #808080;
    border-bottom:1px solid black;
    text-align:center;}
    .tab1 {
    100%;
    text-align:center;}

    .displaytext {
    display:none;
    }
    </style>
    <%--<style type="text/css">
    body
    {
    font-size:13px;
    }
    .table01 {
    100%;
    border-top:1px solid #808080;
    border-right:1px solid #808080;
    border-left:1px solid #808080;
    text-align:center;}

    .table1 {
    100%;
    border-top:1px solid #808080;
    border-right:1px solid #808080;
    border-left:1px solid #808080;
    text-align:center;}
    .table1 td {border-bottom:1px solid #808080;}
    .tab1 {
    100%;
    text-align:center;}
    .tab1 td {border-bottom:1px solid #FFFFFF;}
    </style>--%>
    <wijmo:C1Tabs ID="C1Tab1" runat="server" >
    <Pages>
    <wijmo:C1TabPage ID="C1TabPage1" Text="未完成">
    <div id="kefuduiying" runat="server" visible="false">
    <asp:Label ID="Label2" runat="server" Text="管家婆销售:"></asp:Label>
    <asp:DropDownList ID="DropDownList1" runat="server">
    </asp:DropDownList>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label3" runat="server" Text="对应客服:"></asp:Label>
    <asp:TextBox ID="txtkefu" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button id="btn_addxiaoshou" runat="server" Text="添加" Width="80px" OnClick="btn_addxiaoshou_Click" OnClientClick="addkefu()"/>


    </div>
    <div style="100%;height:auto;">
    <div style="100%;height:30px;">
    <asp:Label ID="Label7" runat="server" Text="选择时间:"></asp:Label>
    <asp:TextBox ID="textbox_date1" runat="server" data-rule="required" CssClass="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd ',onpicked:hui})" ReadOnly="false" ></asp:TextBox> 客户名称:<asp:TextBox ID="CustomerTextbox1" Width="150" Height="25" runat="server" ></asp:TextBox> 订单号:<asp:TextBox ID="billcodeTextBoxt1" Width="150" Height="25" runat="server" ></asp:TextBox>
    订单状态:
    <asp:DropDownList ID="orderState" runat="server">
    <asp:ListItem Value="99" Text="全部"></asp:ListItem>
    <asp:ListItem Value="5" Text="已调度"></asp:ListItem>
    <asp:ListItem Value="1" Text="预确认有欠款"></asp:ListItem>
    <asp:ListItem Value="4" Text="确认收款结束"></asp:ListItem>
    </asp:DropDownList>
    <asp:Button ID="CustomerButton1" runat="server" Text="查询" OnClick="customerButton1_Click" />

    <asp:TextBox ID="textbox_state" Width="150" Height="15" runat="server" Visible="false"></asp:TextBox>
    <asp:Button ID="btnSearch" runat="server" Text="查询" CommandName="search" Visible="false"/><%--onclick="btnSearch_Click"--%>
    </div>
    <wijmo:C1GridView ID="GridView1" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
    EnableModelValidation="false" ForeColor="#333333" GridLines="None" Width="100%" Height="90%" DataKeyNames="id" OnRowCreated="GridView1_RowCreated" >
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
    <wijmo:C1TemplateField HeaderText="序号" Visible="false" FooterStyle-HorizontalAlign="NotSet" ControlStyle-Font-Size="18px" HeaderStyle-Width="5%" ControlStyle-Height="100px" FooterStyle-Height="100px">
    <ItemTemplate>
    <%#Container.DataItemIndex+1%>
    </ItemTemplate>
    </wijmo:C1TemplateField>
    <wijmo:C1BoundField DataField="id" HeaderText="编号" ReadOnly="True" Visible="false" SortExpression="id" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1TemplateField HeaderText="" HeaderStyle-Width="100%">
    <ItemTemplate>
    </ItemTemplate>
    </wijmo:C1TemplateField>
    <%-- <wijmo:C1BoundField DataField="billNumberId" HeaderText="billNumberId" ReadOnly="True" Visible="false" SortExpression="billNumberId" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="btypeid" HeaderText="btypeid" ReadOnly="True" Visible="false" SortExpression="btypeid" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="payType" HeaderText="payType" ReadOnly="True" Visible="false" SortExpression="payType" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="totalmoney" HeaderText="totalmoney" ReadOnly="True" Visible="false" SortExpression="totalmoney" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="reallyPrice" HeaderText="reallyPrice" ReadOnly="True" Visible="false" SortExpression="reallyPrice" FooterStyle-HorizontalAlign="NotSet" />--%>
    </Columns>
    </wijmo:C1GridView>
    </div>

    </wijmo:C1TabPage>
    <wijmo:C1TabPage ID="C1TabPage2" Text="预确认">


    <div id="Div2" runat="server" visible="false">
    <asp:Label ID="Label8" runat="server" Text="管家婆销售:"></asp:Label>
    <asp:DropDownList ID="DropDownList3" runat="server">
    </asp:DropDownList>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label9" runat="server" Text="对应客服:"></asp:Label>
    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button id="Button3" runat="server" Text="添加" Width="80px" OnClick="btn_addxiaoshou_Click" OnClientClick="addkefu()"/>

    </div>
    <div style="100%;height:auto;">
    <div style="100%;height:30px;">
    <asp:Label ID="Label1" runat="server" Text="选择时间:"></asp:Label>
    <asp:TextBox ID="textbox_date2" runat="server" data-rule="required" CssClass="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd ',onpicked:hui})" ReadOnly="false" ></asp:TextBox> 客户名称:<asp:TextBox ID="CustomerTextbox2" Width="150" Height="25" runat="server" ></asp:TextBox> 订单号:<asp:TextBox ID="billcodeTextBoxt2" Width="150" Height="25" runat="server" ></asp:TextBox> <asp:Button ID="CustomerButton2" runat="server" Text="查询" OnClick="customerButton2_Click" />
    <asp:TextBox ID="textbox6" Width="150" Height="15" runat="server" Visible="false"></asp:TextBox>
    <asp:Button ID="Button4" runat="server" Text="查询" CommandName="search" Visible="false"/><%--onclick="btnSearch_Click"--%>
    </div>
    <wijmo:C1GridView ID="GridView2" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
    EnableModelValidation="false" ForeColor="#333333" GridLines="None" Width="100%" Height="90%" DataKeyNames="id" OnRowCreated="GridView2_RowCreated" >
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
    <wijmo:C1TemplateField HeaderText="序号" Visible="false" FooterStyle-HorizontalAlign="NotSet" ControlStyle-Font-Size="18px" HeaderStyle-Width="5%" ControlStyle-Height="100px" FooterStyle-Height="100px">
    <ItemTemplate>
    <%#Container.DataItemIndex+1%>
    </ItemTemplate>
    </wijmo:C1TemplateField>
    <wijmo:C1BoundField DataField="id" HeaderText="编号" ReadOnly="True" Visible="false" SortExpression="id" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1TemplateField HeaderText="" HeaderStyle-Width="100%">
    <ItemTemplate>
    </ItemTemplate>
    </wijmo:C1TemplateField>
    <%-- <wijmo:C1BoundField DataField="billNumberId" HeaderText="billNumberId" ReadOnly="True" Visible="false" SortExpression="billNumberId" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="btypeid" HeaderText="btypeid" ReadOnly="True" Visible="false" SortExpression="btypeid" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="payType" HeaderText="payType" ReadOnly="True" Visible="false" SortExpression="payType" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="totalmoney" HeaderText="totalmoney" ReadOnly="True" Visible="false" SortExpression="totalmoney" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="reallyPrice" HeaderText="reallyPrice" ReadOnly="True" Visible="false" SortExpression="reallyPrice" FooterStyle-HorizontalAlign="NotSet" />--%>
    </Columns>
    </wijmo:C1GridView>
    </div>

    </wijmo:C1TabPage>
    <wijmo:C1TabPage ID="C1TabPage3" Text="已完成">
    <div>
    <asp:Label ID="Label4" runat="server" Text="选择时间:"></asp:Label>
    <asp:TextBox ID="textbox_date" runat="server" data-rule="required" CssClass="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd ',onpicked:hui})" ReadOnly="false" ></asp:TextBox> 客户名称:<asp:TextBox ID="CustomerTextbox3" Width="150" Height="25" runat="server" ></asp:TextBox> 订单号:<asp:TextBox ID="billcodeTextBoxt3" Width="150" Height="25" runat="server" ></asp:TextBox> <asp:Button ID="textbox_datebtn" runat="server" Text="查询" OnClick="textbox_datebtn_Click" /><%-- <asp:Button ID="Button5" runat="server" Text="查询全部" OnClick="textbox_datebtnALL_Click" /> --%> <asp:TextBox ID="textbox1all" runat="server" CssClass="displaytext" ></asp:TextBox> <%--HH:mm:ss-dd--%>
    </div>
    <br />
    <div id="Div1" runat="server" visible="false">
    <asp:Label ID="Label5" runat="server" Text="管家婆销售:"></asp:Label>
    <asp:DropDownList ID="DropDownList2" runat="server">
    </asp:DropDownList>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label6" runat="server" Text="对应客服:"></asp:Label>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button id="Button1" runat="server" Text="添加" Width="80px" OnClick="btn_addxiaoshou_Click" OnClientClick="addkefu()"/>

    </div>
    <div style="100%;height:auto;">
    <div style="100%;height:10px;">

    <asp:TextBox ID="textbox3" Width="150" Height="15" runat="server" Visible="false"></asp:TextBox>
    <asp:Button ID="Button2" runat="server" Text="查询" CommandName="search" Visible="false"/><%--onclick="btnSearch_Click"--%>
    </div>
    <wijmo:C1GridView ID="GridView3" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
    EnableModelValidation="false" ForeColor="#333333" GridLines="None" Width="100%" Height="90%" DataKeyNames="id" OnRowCreated="GridView3_RowCreated" AllowPaging="True" OnPageIndexChanging="C1GridView3_PageIndexChanging" PageSize="10">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
    <wijmo:C1TemplateField HeaderText="序号" Visible="false" FooterStyle-HorizontalAlign="NotSet" ControlStyle-Font-Size="18px" HeaderStyle-Width="5%" ControlStyle-Height="100px" FooterStyle-Height="100px">
    <ItemTemplate>
    <%#Container.DataItemIndex+1%>
    </ItemTemplate>
    </wijmo:C1TemplateField>
    <wijmo:C1BoundField DataField="id" HeaderText="编号" ReadOnly="True" Visible="false" SortExpression="id" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1TemplateField HeaderText="" HeaderStyle-Width="100%">
    <ItemTemplate>
    </ItemTemplate>
    </wijmo:C1TemplateField>
    <%-- <wijmo:C1BoundField DataField="billNumberId" HeaderText="billNumberId" ReadOnly="True" Visible="false" SortExpression="billNumberId" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="btypeid" HeaderText="btypeid" ReadOnly="True" Visible="false" SortExpression="btypeid" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="payType" HeaderText="payType" ReadOnly="True" Visible="false" SortExpression="payType" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="totalmoney" HeaderText="totalmoney" ReadOnly="True" Visible="false" SortExpression="totalmoney" FooterStyle-HorizontalAlign="NotSet" />
    <wijmo:C1BoundField DataField="reallyPrice" HeaderText="reallyPrice" ReadOnly="True" Visible="false" SortExpression="reallyPrice" FooterStyle-HorizontalAlign="NotSet" />--%>
    </Columns>
    </wijmo:C1GridView>
    </div>

    </wijmo:C1TabPage>
    </Pages>
    </wijmo:C1Tabs>
    <input type="hidden" runat="server" id="yincang1"/>
    <input type="hidden" runat="server" id="yincang2"/>
    <input type="hidden" runat="server" id="yincang3"/>
    <input type="hidden" runat="server" id="yincang4"/>
    <script>
    function addkefu() {
    confirm("确认么?")
    }
    var i = 0;
    var hkje1;
    var hkl1;
    var zffs1;
    var zfsj1;
    var qkqk;
    var clock;

    function addqiankuan(trObj)
    {
    i++;
    var qk = $(trObj.parentNode.parentNode.parentNode);
    qkqk = qk.context.rows[3].cells[4].innerHTML;
    var aa = $(trObj.parentNode.parentNode);
    var id=aa.context.cells[0].id
    zffs1 = $("#" + id + " option:selected").val();
    //var neirong = $("#" + id + "").html();
    var now = new Date();

    var year = now.getFullYear(); //年
    var month = now.getMonth() + 1; //月
    var day = now.getDate(); //日

    clock = year + "-";

    if (month < 10)
    clock += "0";

    clock += month + "-";

    if (day < 10)
    clock += "0";

    clock += day + " ";
    zfsj1 = clock;
    hkje1 = aa.context.cells[2].innerHTML;
    var bb = $(trObj.parentNode.parentNode.parentNode);
    $(trObj.parentNode.parentNode).after("<tr><td ID='a" + i + "'><select id='xingjia" + i + "'><option>现金</option><option>微信</option><option>支付宝</option><option>余额</option></select></td><td ID='b" + i + "'></td><td ID='c" + i + "' contentEditable='true'></td><td ID='d" + i + "'></td><td></td><tr/>");
    }

    function CurentTime() {
    var now = new Date();

    var year = now.getFullYear(); //年
    var month = now.getMonth() + 1; //月
    var day = now.getDate(); //日

    var clock = year + "-";

    if (month < 10)
    clock += "0";

    clock += month + "-";

    if (day < 10)
    clock += "0";

    clock += day + " ";
    }

    function huanqian(str, BIANHAO,btypeid,FULLNAME,usid) {
    var now = new Date();

    var year = now.getFullYear(); //年
    var month = now.getMonth() + 1; //月
    var day = now.getDate(); //日

    clock = year + "-";

    if (month < 10)
    clock += "0";

    clock += month + "-";

    if (day < 10)
    clock += "0";

    clock += day + " ";
    var aa = $(str.parentNode.parentNode);
    var id = aa.context.cells[0].id
    zffs1 = $("#" + id + " option:selected").val();
    if (i == 0) {
    var id = aa.context.cells[0].id
    zffs1 = $("#" + id + " option:selected").val();
    var zffs = zffs1;
    var zfsj = clock;
    var hkje = aa.context.cells[2].innerHTML;
    }
    else {
    var zffs = zffs1;//aa.context.cells[0].innerHTML;
    var zfsj = zfsj1;//aa.context.cells[1].innerHTML;
    var hkje = hkje1;//aa.context.cells[2].innerHTML;
    }
    var aaa = $(str.parentNode.parentNode.parentNode);
    qkqk = aaa.context.rows[3].cells[4].innerHTML;
    var billcode = aaa.context.rows[1].cells[1].innerHTML;
    for(var j=1;j<=i;j++)
    {
    zffs = zffs + ',' + $("#xingjia" + j + " option:selected").val();
    zfsj = zfsj + ',' + clock;
    hkje = hkje + '!' + $("#c" + j + "").text();
    }
    var a = zffs;
    var b = zfsj;
    var c = hkje;
    $.ajax({
    type: "post",
    url: '/DesktopModules/duizhang_riqing/huankuan.ashx',
    data: {
    zffs: a,
    zfsj: b,
    hkje: c,
    hkl: qkqk,
    billcode: billcode,
    BIANHAO: BIANHAO,
    btypeid: btypeid,
    FULLNAME: FULLNAME,
    usid: usid,
    },
    dataType: "html",
    success: function (data) {
    alert('添加成功');
    window.location.href = window.location.href;


    },
    error: function () {
    alert("错误操作!!");
    }
    })
    }

    function jianyan(obj) {
    var aa = $(obj.parentNode.parentNode);
    var aaa = $(obj.parentNode.parentNode.parentNode);
    var billcode = aa.context.cells[2].innerHTML;
    var bill = aaa.context.rows[1].cells[1].innerHTML;
    $.ajax({
    type: "post",
    url: '/DesktopModules/duizhang_riqing/jianyan.ashx',
    data: {
    billcode: billcode,
    bill: bill
    },
    dataType: "html",
    success: function (data) {
    //$(obj.parentNode.parentNode).after("<tr><tr/>");
    var newstr = data.replace("[", "[ ");
    var obj1 = eval('(' + newstr + ')');
    for (var i in obj1) {
    for (var j in obj1[i]) {
    $(obj.parentNode.parentNode).after("<tr id='aaa'><td>" + obj1[i][j].产品 + "</td><td>" + obj1[i][j].数量 + "</td><td>" + obj1[i][j].fanpincp + "</td><td>" + obj1[i][j].fanpinsl + "</td><td></td></tr>");
    };
    };
    $(obj.parentNode.parentNode).after("<tr><td style='background-color:#CAE8EA'>实际产品</td><td style='background-color:#CAE8EA'>实际数量</td><td style='background-color:#CAE8EA'>退货产品</td><td style='background-color:#CAE8EA'>退货数量</td><td></td></tr>");
    },
    error: function () {
    alert("连接出错!!");
    }
    })
    }


    function daiqueren(obj,b,c,d) {
    var aa = $(obj.parentNode.parentNode);
    var aaa = $(obj.parentNode.parentNode.parentNode);
    var beizhu = aaa.context.rows[aaa.context.rows.length - 2].cells[1].innerHTML;
    //var billNumberId = aa.context.cells[0].billNumberId.innerHTML;
    //var billNumberId = tijiao13xa.CommandArgument.innerHTML;
    var qiankuan = aaa.context.rows[3].cells[4].innerHTML;
    qiankuan = qiankuan.replace("¥", "");
    if (parseFloat(qiankuan) <= 0) {
    qiankuan = '0';
    } else {
    qiankuan = '1';
    }
    //if (qiankuan == "¥0.00") {
    // qiankuan = '0';

    //} else {

    // qiankuan = '1';

    //}
    $.ajax({
    type: "post",
    url: '/DesktopModules/duizhang_riqing/daiqueren.ashx',
    data: {

    beizhu: beizhu,
    b: b,
    c: c,
    d: d,
    qiankuan: qiankuan


    //b; b,

    //beizhu; beizhu

    //beizhu;beizhu,


    },
    dataType: "html",
    success: function (data) {

    //billNumberId; b,

    //beizhu; beizhu

    alert("预确认成功!!");


    //aleet(data);
    //var newstr = data.replace("[", "[ ");
    //var obj1 = eval('(' + newstr + ')');
    //for (var i in obj1) {
    // for (var j in obj1[i]) {
    // $(obj.parentNode.parentNode).after("<tr id='aaa'><td>" + obj1[i][j].产品 + "</td><td>" + obj1[i][j].数量 + "</td><td>" + obj1[i][j].fanpincp + "</td><td>" + obj1[i][j].fanpinsl + "</td><td></td></tr>");
    // };
    //};
    //$(obj.parentNode.parentNode).after("<tr><td style='background-color:#CAE8EA'>实际产品</td><td style='background-color:#CAE8EA'>实际数量</td><td style='background-color:#CAE8EA'>退货产品</td><td style='background-color:#CAE8EA'>退货数量</td><td></td></tr>");
    },
    error: function () {
    alert("连接出错!!");
    }
    })
    }


    function queren(obj) {
    var a = obj;
    $.ajax({
    type: "post",
    url: '/DesktopModules/duizhang_riqing/queren.ashx',
    data: {
    canshu:a
    },
    dataType: "html",
    success: function (data) {
    aleet(data);
    },
    error: function () {
    alert("连接出错!!");
    }
    })
    }


    function hui() {
    var date = $('#<%=textbox_date.ClientID %>').val();
    $('#<%=textbox_datebtn.ClientID %>').click();
    }
    </script>

  • 相关阅读:
    获得 Web Service 方法的描述信息
    make menuconfig 报错
    汇编调用c函数为什么要设置栈
    UBoot Makefile文件分析
    UBoot启动过程完全分析(转)
    (转)在fedora12下用crosstoolng建立armlinux交叉编译环境
    UBoot编译过程完全分析(转)
    雷军:给互联网创业者的“七字”建议
    uboot根目录下makefile
    Redhat 5 配置Samba服务器
  • 原文地址:https://www.cnblogs.com/1971855407qq/p/8539127.html
Copyright © 2020-2023  润新知