1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TTTInsideInquiry.aspx.cs" Inherits="CY.WebForm.Pages.business.TTTInsideInquiry" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>内部询价</title>
    <%--  <uc:CMSHead ID="CMSHead1" runat="server" />--%>
    <uc:FrontQuote ID="FrontQuote1" runat="server" />
    <link href="../../Styles/ParticularWQJ.css" rel="stylesheet" type="text/css" />
    <script src="../../js/Inquiry/Inquiry.js" type="text/javascript"></script>
    <script src="../../js/business/Order.js" type="text/javascript"></script>
    <script src="../../js/jquery.form.js" type="text/javascript"></script>
    <%-- <link rel="stylesheet" type="text/css" href="../../myPagination/js/myPagination/page.css" />--%>
    <%--<script src="../../myPagination/js/myPagination/jquery.myPagination6.0.js" type="text/javascript"></script>--%>
    <script type="text/javascript">
        $(
 
            function () {
                var printTypeId = '<%=Request["PrintTypeId"]%>'
 
                $("#hidPrintTypeId").val(printTypeId);
 
                LoadPrintType(printTypeId, "1", "");
 
                //                $("#selPrintTypes").change(
                //                    function () {
                //                        $("#divInquiryResult").hide();
                //                        $("#hidPrintTypeId").val($(this).val());
                //                        DelayLoadPrintType($(this).val(), "1","");
                //                    }
                //                );
            }
        );
 
        function OpenInquiryDetail(obj) {
            var hidFirmId = $(obj).next().val();
            var num = $(obj).next().next().val();
            $(obj).next().next().val(2);
            //window.open("InquiryDetail.aspx?fid="+hidFirmId+"&num="+num, '询价详情', 'width=600px, top=(window.screen.availHeight-30-580)/2, left=(window.screen.availWidth-10-650)/2,toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no');
            //window.showModalDialog("InquiryDetail.aspx?fid=" + hidFirmId + "&num=" + num,,"dialogWidth=600px;dialogHeight=400px"); 
            showModalDialog("TTTInsideInquiryDetail.aspx?fid=" + hidFirmId + "&num=" + num + "&tmp=" + (new Date()).valueOf(), null, 'dialogWidth:750px;dialogHeight:800px;status:no;');
        }
 
        function form1Submit() {
            $("#form1").ajaxSubmit(function (dataJsonStr) {
                CloseWaitFront();
                var dataJson = eval('(' + dataJsonStr + ')');
                var pageCount = dataJson.pageCount;
                var inquiryList = dataJson.inquiryList;
                var trInsideHtml = "";
                var trHtml = "";
                for (var i = 0; i < inquiryList.length; i++) {
                    if (i == 0) {
                        trInsideHtml += "<tr>";
                        trInsideHtml += "<td align=\"center\" style=\"width:200px\">" + inquiryList[i].FirmName + "</td>";
                        trInsideHtml += "<td style=\"width:200px\"><b style=\"color: #ff6600;\">¥" + Float2('' + inquiryList[i].TotalPrice + '') + "</b></td>";
                        trInsideHtml += "<td style=\"width:200px\">" + inquiryList[i].Score + "分</td>";
                        trInsideHtml += "<td><a onclick=\"OpenInquiryDetail(this)\" class=\"showbox\">查看详情</a><input type=\"hidden\" id=\"hidFirmId\" value=\"" + inquiryList[i].FirmId + "\"/></td>";
                        trInsideHtml += "</tr>";
                    }
                    else {
                        trHtml += "<tr>";
                        trHtml += "<td align=\"center\" style=\"width:200px\">" + inquiryList[i].FirmName + "</td>";
                        trHtml += "<td style=\"width:200px\"><b style=\"color: #ff6600;\">¥" + Float2('' + inquiryList[i].TotalPrice + '') + "</b></td>";
                        trHtml += "<td style=\"width:200px\">" + inquiryList[i].Score + "分</td>";
                        trHtml += "<td><a onclick=\"OpenInquiryDetail(this)\" class=\"showbox\">查看详情</a><input type=\"hidden\" id=\"hidFirmId\" value=\"" + inquiryList[i].FirmId + "\"/></td>";
                        trHtml += "</tr>";
                    }
                }
                $("#tbInsideInquiryList tbody").html("");
                $("#tbInsideInquiryList tbody").append(trInsideHtml);
 
                //                        $("#tbInquiryList tbody").html("");
                //                        $("#tbInquiryList tbody").append(trHtml);
                $("#divInquiryResult").show();
 
            });
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" method="post" onsubmit="return form1Submit();">
    <input type="hidden" value="sumit" name="sumit" />
    <input type="hidden" id="hidPrintTypeId" value='' name="hidPrintTypeId" />
    <input type="hidden" id="hidPageIndex" value="1" name="hidPageIndex" />
    <input type="hidden" id="hidOrderId" name="hidOrderId" value="" />
    <div class='printTypeEdit' style="display: none">
        <table style="width: 700px; display: none">
            <tr>
                <td width="200">
                    <strong>&#12288;选择印刷类型:</strong>
                    <select name="selPrintTypes" id="selPrintTypes" keepdefaultstyle='true'>
                        <%Guid FirmId = CY.Infrastructure.Common.MyConvert.ConvertToGuid(Request["BussinessID"]);%>
                        <%
                            CY.BLL.Sys.SysInquiry_PrintingTypeBLL _printTypeBLL = new CY.BLL.Sys.SysInquiry_PrintingTypeBLL();
                            IEnumerable<CY.Model.SysInquiry_PrintingType> typeList = _printTypeBLL.SelectUsedModlesByFirm(FirmId);
                            foreach (CY.Model.SysInquiry_PrintingType printType in typeList)
                            {
                        %>
                        <option value="<%=printType.KeyId%>">
                            <%=printType.PrintName%></option>
                        <%
}
                        %>
                    </select>
                </td>
                <td>
                    <strong>&#12288;选择客户:</strong>
                    <select id="selCustomer" name="selCustomer" keepdefaultstyle='true'>
                        <%
                            CY.BLL.OA_CorporateClientsBLL _clientBLL = new CY.BLL.OA_CorporateClientsBLL();
                            IEnumerable<CY.Model.OA_CorporateClients> clientList = _clientBLL.SelectListByFirmId(FirmId);
                            foreach (CY.Model.OA_CorporateClients client in clientList)
                            {
                        %>
                        <option value="<%=client.Keyid%>">
                            <%=client.CompanyName%></option>
                        <%
}
                        %>
                    </select>
                </td>
                <td width="200">
                    <%--<div class="popupMenu fr" id="PCACCommon">
                    </div>--%>
                </td>
            </tr>
        </table>
    </div>
    <div id="divInquiry">
    </div>
    <table class="table2" style="border: none;">
        <tbody>
            <tr>
                <td style="width: 65px; padding-right: 0px; text-align: right;">
                    交货方式:
                </td>
                <td style="text-align: left; padding-left: 0px">
                    <select class="selectLaber" id="deliveryMode" keepdefaultstyle='true' name="deliveryMode">
                        <option value="104">自提</option>
                        <option value="105" selected="selected">代发货运</option>
                        <option value="106">送货上门</option>
                        <option value="107">指定货运公司</option>
                    </select>
                </td>
                <td style="width: 65px; padding-right: 0px; text-align: right;">
                    票据:
                </td>
                <td style="text-align: left; padding-left: 0px">
                    <select class="selectLaber" id="billMode" keepdefaultstyle='true' name="billMode">
                        <option value="108">不含税价</option>
                        <option value="109">普通发票</option>
                        <option value="110">增值税票</option>
                    </select>
                </td>
            </tr>
            <%-- <tr>
                    <td style="width: 60px; padding-right: 0px; text-align: right;">备注: </td>
                    <td colspan="3" style="padding-left: 0px;">
                        <textarea style="width:100%;height:50px;" class="Ber" cols="20" id="remarks" name="remarks" rows="2"></textarea>
                    </td>
                </tr>--%>
        </tbody>
    </table>
    <table class="table2" style="border: none;">
        <tbody>
            <tr>
                <td colspan="5">
                    <a class="CP" id="Inquiry">
                        <img src="../../images/Common/jsjg.gif"></a>
                </td>
            </tr>
        </tbody>
    </table>
    <div id="divInquiryResult" style="display: none">
        <table class="table4" id="tbInsideInquiryList">
            <thead>
                <tr>
                    <th colspan="4">
                        询价结果
                    </th>
                </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>
    </form>
    <%--<script type="text/javascript">
        PCAC('3031', '3032', ""); //城市数据存名称用Name,存编号则空字符
    </script>--%>
</body>
</html>