Files
N_XLXSBJ----MX/XLBJD_BDBJList.aspx
2026-08-21 17:03:02 +08:00

402 lines
22 KiB
Plaintext

<%@ Page Language="C#" MasterPageFile="~/N_MODEL/Page/MasterSingleGrid.Master" AutoEventWireup="true"
Codebehind="XLBJD_BDBJList.aspx.cs" Inherits="GThinking.N_XLXSBJ.XLBJD_BDBJList"
Title="比对报价" %>
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterSingleGrid.Master" %>
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
<asp:Table ID="AddTable" runat="server" CellPadding="0" CellSpacing="0">
<asp:TableRow>
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
<gtc:gtToolButton ID="btnCPBJ" runat="server" Caption="取报价" OnMenuItemClick="btnCPBJ_MenuItemClick"
OnClick="btnCPBJ_Click" ShowCaption="True" Width="70px" ButtonType="DropDown">
<Nodes>
<gtc:gtTreeNode Text="报价日期最近" Value="0" />
</Nodes>
</gtc:gtToolButton>
</asp:TableCell>
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
<gtc:gtToolButton ID="btnCLCBLRL" runat="server" Caption="取材料料价价差率" OnMenuItemClick="btnCLCBLRL_MenuItemClick"
OnClick="btnCLCBLRL_Click" ShowCaption="True" Width="130px" ButtonType="DropDown">
<Nodes>
<gtc:gtTreeNode Text="报价日期最近" Value="0" />
</Nodes>
</gtc:gtToolButton>
</asp:TableCell>
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
<gtc:gtToolButton ID="btnLRL" runat="server" Caption="取表价价差率" OnMenuItemClick="btnLRL_MenuItemClick"
OnClick="btnLRL_Click" ShowCaption="True" Width="106px" ButtonType="DropDown">
<Nodes>
<gtc:gtTreeNode Text="报价日期最近" Value="0" />
</Nodes>
</gtc:gtToolButton>
</asp:TableCell>
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
<gtc:gtToolButton ID="btnPLHF" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnPLHF_Click"
Caption="恢 复" />
</asp:TableCell>
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
<gtc:gtToolButton ID="btnDBFX" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnDBFX_Click"
Caption="对比分析" />
</asp:TableCell>
<asp:TableCell>
<gtc:gtButton Style="display: none" ID="btnTZJG" OnClick="btnTZJG_Click" runat="server"
Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
</asp:TableCell>
<asp:TableCell>
<gtc:gtButton Style="display: none" ID="btnRecovery" OnClick="btnRecovery_Click"
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
</asp:TableCell>
<asp:TableCell>
<gtc:gtButton Style="display: none" ID="btnRefresh" OnClick="btnRefresh_Click" runat="server"
Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<input id="txtScrollTop" runat="server" type="text" style="display:none;"/>
</asp:Content>
<asp:Content ID="ContentForm" ContentPlaceHolderID="CPHForm" runat="server">
<script type="text/javascript">
function GetScrollTop()
{
$get('ctl00_CPHButton_txtScrollTop').value=$get('ctl00_CPHForm_grdGrid_ScrollDiv').scrollTop;
}
function SetScrollTop()
{
$get('ctl00_CPHForm_grdGrid_ScrollDiv').scrollTop = parseInt($get('ctl00_CPHButton_txtScrollTop').value);//页面回发后恢复滚动条位置
}
function btnRefreshclick()
{
$get('ctl00_CPHButton_btnRefresh').click();
}
</script>
<gtc:gtGridView ID="grdGrid" runat="server" CellPadding="2" CellSpacing="2" AutoGenerateColumns="False"
AllowPaging="True" EnableViewState="false" OnRowDoubleClick="grdGrid_OnRowDoubleClick">
<FixRowCol TableHeight="100%" TableWidth="100%" />
<Columns>
<%--报价单汇总--%>
<asp:BoundField HeaderText="报价单号|显示序号|报价日期" DataField="BJDHZXX">
<itemstyle width="160px"></itemstyle>
<headerstyle width="160px"></headerstyle>
</asp:BoundField>
<%--<asp:BoundField HeaderText="关联报价单ID" DataField="GLBJDID">
<itemstyle width="72px"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="关联报价单序号" DataField="GLBJDXH">
<itemstyle width="100px" horizontalalign="Right"></itemstyle>
<headerstyle width="100px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="比对报价单ID" DataField="BDBJDID" >
<itemstyle width="72px"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="比对报价单序号" DataField="BDBJDXH">
<itemstyle width="100px" horizontalalign="Right"></itemstyle>
<headerstyle width="10px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="比对报价单日期" DataField="BDBJDBJRQ">
<itemstyle width="100px"></itemstyle>
<headerstyle width="100px"></headerstyle>
</asp:BoundField>--%>
<%--型号明细--%>
<asp:BoundField HeaderText="产品" DataField="BJCPXX">
<itemstyle width="200px"></itemstyle>
<headerstyle width="200px"></headerstyle>
</asp:BoundField>
<%--<asp:BoundField HeaderText="型号" DataField="XLXHID">
<itemstyle width="120px"></itemstyle>
<headerstyle width="120px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="规格" DataField="XLGGID">
<itemstyle width="72px"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="标准" DataField="XLBZID">
<itemstyle width="72px"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="电压等级" DataField="DYDJID">
<itemstyle width="72px"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>--%>
<asp:BoundField HeaderText="颜色" DataField="XLYSID">
<itemstyle width="72px"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="计量单位" DataField="JLDW">
<itemstyle width="72px"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="报价数量" DataField="BJSL">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<%--比对--%>
<asp:BoundField HeaderText="比对" DataField="BDBZ">
<itemstyle width="210px"></itemstyle>
<headerstyle width="210px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="报价" DataField="CPBJ">
<itemstyle width="120px" horizontalalign="Right"></itemstyle>
<headerstyle width="120px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="材料料价价差率" DataField="CLCBLRL">
<itemstyle width="120px" horizontalalign="Right"></itemstyle>
<headerstyle width="120px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="表价价差率" DataField="LRL">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<%--表价/报价单行情料价--%>
<asp:BoundField HeaderText="表价" DataField="CPJJ">
<itemstyle width="120px" horizontalalign="Right"></itemstyle>
<headerstyle width="120px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="报价单行情料价" DataField="BJDHQCLCB">
<itemstyle width="120px" horizontalalign="Right"></itemstyle>
<headerstyle width="120px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="调整报价(%)" DataField="TZJG">
<itemstyle width="120px" horizontalalign="Right"></itemstyle>
<headerstyle width="120px"></headerstyle>
</asp:BoundField>
<%--因子--%>
<asp:BoundField HeaderText="因子" DataField="BJDYZ">
<itemstyle width="150px" horizontalalign="Right"></itemstyle>
<headerstyle width="150px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子01" DataField="YZZ01">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子02" DataField="YZZ02">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子03" DataField="YZZ03">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子04" DataField="YZZ04">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子05" DataField="YZZ05">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子06" DataField="YZZ06">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子07" DataField="YZZ07">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子08" DataField="YZZ08">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子09" DataField="YZZ09">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子10" DataField="YZZ10">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子11" DataField="YZZ11">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子12" DataField="YZZ12">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子13" DataField="YZZ13">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子14" DataField="YZZ14">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子15" DataField="YZZ15">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子16" DataField="YZZ16">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子17" DataField="YZZ17">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子18" DataField="YZZ18">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子19" DataField="YZZ19">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField HeaderText="因子20" DataField="YZZ20">
<itemstyle width="72px" horizontalalign="Right"></itemstyle>
<headerstyle width="72px"></headerstyle>
</asp:BoundField>
<asp:BoundField DataField="BDBJDID" HeaderText="比对报价单ID" Visible="False" />
</Columns>
<ColumnsEx>
<gtc:gtGridView_Column DataField="BJDHZXX" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BDBJDID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<%--<gtc:gtGridView_Column DataField="GLBJDID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="GLBJDXH" EditType="etNumber" ShowHint="true" NumberDecimalPlace="0"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BDBJDID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BDBJDXH" EditType="etNumber" ShowHint="true" NumberDecimalPlace="0"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BDBJDBJRQ" EditType="etDateTime" DateTimeEditKins="dtDate"
ShowHint="true">
</gtc:gtGridView_Column>--%>
<gtc:gtGridView_Column DataField="BJCPXX" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="XLXHID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="XLGGID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="XLBZID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="DYDJID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="XLYSID" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="JLDW" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BJSL" EditType="etNumber" ShowHint="true" NumberDecimalPlace="3" NumberIsQuantity="true"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BDBZ" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="CPBJ" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="CLCBLRL" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="LRL" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="CPJJ" EditType="etNumber" ShowHint="true" NumberDecimalPlace="5"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BJDHQCLCB" EditType="etNumber" ShowHint="true"
NumberDecimalPlace="4" ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="TZJG" EditType="etNumber" ShowHint="true" NumberDecimalPlace="6"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="BJDYZ" EditType="etstring" ShowHint="true">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ01" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ02" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ03" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ04" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ05" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ06" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ07" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ08" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ09" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ10" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ11" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ12" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ13" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ14" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ15" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ16" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ17" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ18" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ19" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
<gtc:gtGridView_Column DataField="YZZ20" EditType="etNumber" ShowHint="true" NumberDecimalPlace="2"
ShowZero="false">
</gtc:gtGridView_Column>
</ColumnsEx>
</gtc:gtGridView>
<asp:HiddenField ID="txtFLAG" runat="server" />
<asp:HiddenField ID="txtVALUE" runat="server" />
<asp:HiddenField ID="txtBJDID" runat="server" />
<asp:HiddenField ID="txtBJDXH" runat="server" />
<asp:HiddenField ID="txtBDBJDID" runat="server" />
<asp:HiddenField ID="txtBDBJDXH" runat="server" />
<asp:HiddenField ID="txtBJDYZ" runat="server" />
<script type="text/javascript">
function CellClick(flag, sValue, sBJDID, sBJDXH, sBDBJDID, sBDBJDXH)
{
document.getElementById("ctl00_CPHForm_txtFLAG").value = flag;
document.getElementById("ctl00_CPHForm_txtVALUE").value = sValue;
document.getElementById("ctl00_CPHForm_txtBJDID").value = sBJDID;
document.getElementById("ctl00_CPHForm_txtBJDXH").value = sBJDXH;
document.getElementById("ctl00_CPHForm_txtBDBJDID").value = sBDBJDID;
document.getElementById("ctl00_CPHForm_txtBDBJDXH").value = sBDBJDXH;
setTimeout("$get('ctl00_CPHButton_btnTZJG').click();", 100);
}
function RecoveryClick(flag, sBJDID, sBJDXH, sBDBJDID, sBDBJDXH)
{
document.getElementById("ctl00_CPHForm_txtFLAG").value = flag;
document.getElementById("ctl00_CPHForm_txtBJDID").value = sBJDID;
document.getElementById("ctl00_CPHForm_txtBJDXH").value = sBJDXH;
document.getElementById("ctl00_CPHForm_txtBDBJDID").value = sBDBJDID;
document.getElementById("ctl00_CPHForm_txtBDBJDXH").value = sBDBJDXH;
setTimeout("$get('ctl00_CPHButton_btnRecovery').click();", 100);
}
</script>
</asp:Content>