1570 lines
84 KiB
Plaintext
1570 lines
84 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="True" MasterPageFile="~/N_MODEL/Page/MasterBDOBill.Master"
|
||
Codebehind="XLBJDInfo.aspx.cs" Inherits="GThinking.U20261363_N_XLXSBJ.XLBJDInfo" Title="线缆销售报价单" %>
|
||
|
||
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterBDOBill.Master" %>
|
||
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
||
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
||
<asp:TableRow>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnMXOper" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||
ButtonType="DropDown" ShowCaption="True" runat="server" OnMenuItemClick="btnMXOper_MenuItemClick"
|
||
OnDropDown="btnMXOper_DropDown" Caption="明细" OnClientClick="$find('ctl00_CPHButton_btnMXOper').__dropDownClick();">
|
||
<Nodes>
|
||
</Nodes>
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtToolButton ID="btnAIZXQK" Caption="AI助理任务执行情况" ShowCaption="true" runat="server" Width="130px"
|
||
Height="19px" OnClientClick="openAIZXQK();">
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtToolButton ID="btnBJCPJX" Caption="线缆报价深度解析导入" ShowCaption="true" runat="server" Width="142px"
|
||
Height="19px" OnClientClick="openBJCPJXDR();">
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
|
||
<%--报价利润/线缆销售报价单价差--%>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnBJLR" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnBJLR_Click"
|
||
Caption="价 差">
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
|
||
<%--材料成本--%>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnCLCB" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnCLCB_Click"
|
||
Caption="表价" OnMenuItemClick="btnCLCB_MenuItemClick" OnDropDown="btnCLCB_DropDown"/>
|
||
</asp:TableCell>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnLJ" BorderWidth="0px" BorderStyle="NotSet" Width="58px"
|
||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnLJ_Click"
|
||
Caption="料价" OnMenuItemClick="btnLJ_MenuItemClick" OnDropDown="btnLJ_DropDown">
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnBJ" BorderWidth="0px" BorderStyle="NotSet" Width="82px"
|
||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnBJ_Click"
|
||
Caption="批量调价" OnMenuItemClick="btnBJ_MenuItemClick" OnDropDown="btnBJ_DropDown">
|
||
<Nodes>
|
||
</Nodes>
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefresh1" OnClick="btnRefreshDRBJDMX_Click"
|
||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnCLCYZD" BorderWidth="0px" BorderStyle="NotSet" Width="106px"
|
||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnCLCYZD_Click"
|
||
Caption="材料用量制定" OnMenuItemClick="btnCLCYZD_MenuItemClick" OnDropDown="btnCLCYZD_DropDown">
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnYLZDFP" BorderWidth="0px" BorderStyle="NotSet" Width="130px"
|
||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnYLZDFP_Click"
|
||
Caption="材料用量制定分派" OnMenuItemClick="btnYLZDFP_MenuItemClick" OnDropDown="btnYLZDFP_DropDown">
|
||
</gtc:gtToolButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnZDFX" BorderWidth="0px" BorderStyle="NotSet" Width="80px"
|
||
Height="19px" ButtonType="DropDown" ShowCaption="True" runat="server" OnClick="btnZDFX_Click"
|
||
Caption="撞单分析" OnMenuItemClick="btnTBYSZDFX_MenuItemClick" OnDropDown="btnZDFX_DropDown" />
|
||
</asp:TableCell>
|
||
<asp:TableCell HorizontalAlign="Left" BorderWidth="0px" BorderStyle="notset">
|
||
<gtc:gtToolButton ID="btnBJFK" BorderWidth="0px" BorderStyle="NotSet" Width="70px"
|
||
Height="19px" ButtonType="Button" ShowCaption="True" runat="server" OnClick="btnBJFK_Click"
|
||
Caption="报价反馈" />
|
||
</asp:TableCell>
|
||
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnReLoad" OnClick="btnReLoad_Click" runat="server"
|
||
Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshOper" OnClick="btnRefreshOper_Click"
|
||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--只是简单的刷新界面,重新加载下记录--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshCLHQTZ" OnClick="btnOnlyRefresh_Click"
|
||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--外部报价单导入刷新--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshWBBJD" OnClick="btnRefreshWBBJD_Click"
|
||
runat="server" Visible="true" EnableTheming="false" SkinID="hidden"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----报价单因子--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshBJDYZ" OnClick="btnRefreshBJDYZ_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----运费因子--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshYFYZ1" OnClick="btnRefreshYFYZ1_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshYFYZ2" OnClick="btnRefreshYFYZ2_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshYFYZ3" OnClick="btnRefreshYFYZ3_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----报价数量--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshBJSL" OnClick="btnRefreshBJSL_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----价格表表价--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshJGBBJTZ" OnClick="btnRefreshJGBBJTZ_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量删除表价刷新----价格表表价--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshJGBBJSC" OnClick="btnRefreshJGBBJSC_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----报价上浮--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshBJSF" OnClick="btnRefreshBJSF_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----报价下浮--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshBJXF" OnClick="btnRefreshBJXF_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----料价价差--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshBJJCL" OnClick="btnRefreshBJJCL_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----料价价差--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshLJJCL" OnClick="btnRefreshLJJCL_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----报价限价--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshBJXJ" OnClick="btnRefreshBJXJ_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调价刷新----所有因子界面的刷新--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshBJPLTJ" OnClick="btnRefreshBJPLTJ_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--批量调整标准刷新--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshPLTZBZ" OnClick="btnRefreshPLTZBZ_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
|
||
<%--报价单备注以及报价说明助手--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnCODECLASS" OnClick="btnCODECLASS_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--报价单备注以及报价说明助手--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshYZZCheck" OnClick="btnRefreshYZZCheck_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--刷新铜铝价<a>标签--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefTLJ" OnClick="btnRefTLJ_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnPFZP" OnClick="btnPFZP_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnPFJE" OnClick="btnPFJE_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnShowFJXX" OnClick="btnShowFJXX_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
<%--调价因子价格表-付款期限--%>
|
||
<asp:TableCell>
|
||
<gtc:gtButton Style="display: none" ID="btnRefreshFKQXTJB" OnClick="btnRefreshFKQXTJB_Click"
|
||
runat="server" Visible="true" EnableTheming="false"></gtc:gtButton>
|
||
</asp:TableCell>
|
||
|
||
</asp:TableRow>
|
||
</asp:Table>
|
||
</asp:Content>
|
||
<asp:Content ID="GridSetId" ContentPlaceHolderID="CphForm" runat="server">
|
||
<div style="display: none">
|
||
<asp:TextBox ID="hidKH" runat="server" TextMode="MultiLine" Width="10px" Height="19px"></asp:TextBox>
|
||
<asp:TextBox ID="hidXM" runat="server" TextMode="MultiLine" Width="10px" Height="19px"></asp:TextBox>
|
||
<asp:TextBox ID="hidYZ" runat="server" TextMode="MultiLine" Width="10px" Height="19px"></asp:TextBox>
|
||
</div>
|
||
<table style="width: 99.9%" border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="center">
|
||
<table>
|
||
<tr>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="GtLabel1" runat="server">报价单号:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtBJDID" runat="server" Width="125px"></gtc:gtTextBox>
|
||
<gtc:gtButton ID="lblBJDID" runat="server" Text="+" ToolTip="点击进行多次报价" UseSubmitBehavior="false" OnClientClick="document.getElementById('ctl00_CphForm_txtOLDBJDID').value=document.getElementById('ctl00_CphForm_txtBJDID').value;document.getElementById('ctl00_btnCopyButton').click();" />
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblBJRQ" runat="server">报价日期:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtDateTimeTextBox ID="datBJRQ" runat="Server" Width="72px" Tag="Star" AutoPostBack="true"
|
||
OnTextChanged="datBJRQ_TextChanged"></gtc:gtDateTimeTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<asp:LinkButton ID="lblJGBID" runat="server" Text="价格表" Font-Underline="true" OnClick="lblJGBID_Click" Width="54px" ToolTip="价格表调整"></asp:LinkButton>
|
||
|
||
<gtc:gtLabel ID="lblJGBIDMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left" colspan="3">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxJGBID" runat="server" ShowValue="false" Tag="Star" Width="363px"
|
||
AutoPostBack="true" OnSelectedIndexChanged="cbxJGBID_SelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<asp:LinkButton ID="lblTJ" runat="server" Text="铜价" Font-Underline="true" OnClick="lblTJ_Click" Width="54px" ToolTip="铜铝价调整"></asp:LinkButton>
|
||
<gtc:gtLabel ID="lblTJMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtNumTextBox ID="txtTJ" runat="server" Width="62px" AutoPostBack="true" OnTextChanged="txtTJ_TextChanged"></gtc:gtNumTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<asp:LinkButton ID="lblLJ" runat="server" Text="铝价" Font-Underline="true" OnClick="lblTJ_Click" Width="54px" ToolTip="铜铝价调整"></asp:LinkButton>
|
||
<gtc:gtLabel ID="lblLJMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtNumTextBox ID="txtLJ" runat="server" Width="62px" AutoPostBack="true" OnTextChanged="txtTJ_TextChanged"></gtc:gtNumTextBox>
|
||
</td>
|
||
<td align="left" >
|
||
<a href="javascript:void(0)" id="aRefTLJ" runat="server" onclick="document.getElementById('ctl00_CPHButton_btnRefTLJ').click();" title="获取报价日铜铝价">
|
||
<i class="gticonfont iconfont-refresh" style="color:#2E8965;background-color:#f0fbec;margin-left:10px;border-right:1px solid #c8e4ff;border-bottom:1px solid #c8e4ff;"></i>
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr runat="server" id= "trHQJCJY">
|
||
<td></td>
|
||
<td align="left">
|
||
<gtc:gtLabel ID="lblHQJCJY" runat="server">行情价差校验正常</gtc:gtLabel>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblBJFL" runat="server">报价分类:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxBJFLID" runat="Server" Width="129px" Tag="Star" AutoPostBack="true"
|
||
OnSelectedIndexChanged="cbxBJFLID_SelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblXSQYID" runat="server">销售区域:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxXSQYID" runat="server" Width="129px">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<asp:LinkButton ID="lblZJE" runat="server" Text="报价总金额" Font-Underline="true" OnClick="lblZJE_Click" ToolTip="报价总金额调整"></asp:LinkButton><gtc:gtLabel
|
||
ID="lbllblZJEMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtNumTextBox ID="txtZJE" runat="server" DecimalPlaces="2" Width="120px"></gtc:gtNumTextBox>
|
||
</td>
|
||
<td id="Td1" align="right" runat="server" style="width: 84px;">
|
||
<gtc:gtLabel ID="lblZZL" runat="server">材料总重量:</gtc:gtLabel>
|
||
<asp:LinkButton ID="linkZZL" runat="server" Text="材料总重量" Font-Underline="true" OnClick="linkZZL_Click"></asp:LinkButton><gtc:gtLabel
|
||
ID="LinkZZLMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtNumTextBox ID="txtZZL" runat="server" DecimalPlaces="3" Width="138px"></gtc:gtNumTextBox>
|
||
<gtc:gtButton ID="lblZLGZCLS" runat="server" Text="关注材料" OnClick="lblZLGZCLS_Click"
|
||
ToolTip="点击查看关注材料的重量" UseSubmitBehavior="false"/>
|
||
<gtc:gtLabel ID="lblKB1" runat="server" Width="100px" Text=""></gtc:gtLabel>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblSYDWID" runat="server">销售单位:</gtc:gtLabel>
|
||
<asp:LinkButton ID="linkSYDWID" runat="server" Text="销售单位" Font-Underline="true" OnClick="linkSYDWID_Click" ToolTip="销售单位调整"></asp:LinkButton>
|
||
<gtc:gtLabel ID="linkSYDWIDMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxSYDWID" runat="Server" Width="129px" Tag="Star" AutoPostBack="true"
|
||
OnSelectedIndexChanged="cbxSYDWID_SelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
<gtc:gtComboBox ID="cbxKHID" runat="Server" Width="129px">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblXSJL" runat="server">销售经理:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxXSJLMC" runat="server" Width="129px" AutoPostBack="true" OnSelectedIndexChanged="cbxXSJLMC_SelectedIndexChanged"
|
||
ShowValue="false">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblKH" runat="server">客户:</gtc:gtLabel>
|
||
<asp:LinkButton ID="linkKH" runat="server" Text="客户" Font-Underline="true" OnClick="linkKH_Click" ToolTip="售前客户登记"></asp:LinkButton><gtc:gtLabel
|
||
ID="linkKHMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left" colspan="3">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtKHID" runat="server" Width="100px" AutoPostBack="true" OnTextChanged="txtKHID_TextChanged">
|
||
</gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtKH" runat="server" Width="354px" onkeyup="return edtKeyUp(this,idSel)"
|
||
onfocus="cc()" AutoCompleteType="none" OnTextChanged="txtKH_TextChanged">
|
||
</gtc:gtTextBox>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblXSBMID" runat="server">销售部门:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxXSBMID" runat="server" Width="129px">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblTXY" runat="server">销售员:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxTXY" runat="server" Width="129px" AutoPostBack="true" OnSelectedIndexChanged="cbxTXY_SelectedIndexChanged"
|
||
ShowValue="false">
|
||
</gtc:gtComboBox>
|
||
<gtc:gtTextBox ID="txtTXY" runat="server" Width="0px" Visible="false"></gtc:gtTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblKHLXR" runat="server">客户联系人:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtKHLXR" runat="server" Width="120px" AutoPostBack="true" OnTextChanged="txtKHLXR_OnTextChanged"></gtc:gtTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblLXDH" runat="server">客户电话:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtLXDH" runat="server" Width="138px"></gtc:gtTextBox>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblFKQXNR" runat="server">付款期限:</gtc:gtLabel>
|
||
<asp:LinkButton ID="linkFKQXNR" runat="server" Text="付款期限" Font-Underline="true" OnClick="linkFKQXNR_Click" ToolTip="付款期限调整"></asp:LinkButton>
|
||
<gtc:gtLabel ID="linkFKQXNRMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td>
|
||
<gtc:gtTextBox ID="txtFKQXNR" runat="server" Width="125px"></gtc:gtTextBox>
|
||
</td>
|
||
<td>
|
||
<gtc:gtComboBox ID="cbxFKQXNR" runat="server" Width="129px" ShowValue="false" AutoPostBack="true" OnSelectedIndexChanged="cbxFKQXNR_SelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td>
|
||
<gtc:gtButton ID="lblFKQXTJB" runat="server" Text="+" ToolTip="点击打开调价因子价格表-付款期限" UseSubmitBehavior="false" OnClick="lblFKQXTJB_OnClientClick" />
|
||
</td></tr></table>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblKHDH" runat="server">客户单号:</gtc:gtLabel>
|
||
<asp:LinkButton ID="linkKHDH" runat="server" Text="客户单号" Font-Underline="true" OnClick="linkKHDH_Click" ToolTip="客户单号"></asp:LinkButton><gtc:gtLabel
|
||
ID="linkKHDHMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtKHDH" runat="server" Width="125px" CharCase="ecUpperCase"></gtc:gtTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblXM" runat="server">项目:</gtc:gtLabel>
|
||
<asp:LinkButton ID="linkXM" runat="server" Text="项目" Font-Underline="true" OnClick="linkXM_Click" ToolTip="售前项目登记"></asp:LinkButton><gtc:gtLabel
|
||
ID="linkXMMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left" colspan="3">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxKHSZDPRO" runat="server" Width="60px" ShowValue="false" AutoPostBack="true"
|
||
OnSelectedIndexChanged="cbxKHSZDPRO_OnSelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxKHSZDCITY" runat="server" Width="60px" ShowValue="false" AutoPostBack="true"
|
||
OnSelectedIndexChanged="cbxKHSZDCITY_OnSelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxKHSZDCOUNTY" runat="server" Width="60px" ShowValue="false">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtXM" runat="server" Width="354px" onkeyup="return edtKeyUp2(this,idSel2)"
|
||
onfocus="cc2()" AutoCompleteType="none" AutoPostBack="true" OnTextChanged="txtXM_OnTextChanged"></gtc:gtTextBox>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right">
|
||
<asp:LinkButton ID="lblPJLX" runat="server" Text="付款方式" Font-Underline="true" OnClick="lblPJLX_Click" ToolTip="付款方式调整"></asp:LinkButton>
|
||
<gtc:gtLabel ID="lblPJLXMH" runat="server">:</gtc:gtLabel>
|
||
<asp:LinkButton ID="lblFKSM" runat="server" Text="付款说明" Font-Underline="true" OnClick="lblFKSM_Click"></asp:LinkButton>
|
||
<gtc:gtLabel ID="lblFKSMMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left" colspan="3">
|
||
<gtc:gtComboBox ID="cbxPJLX" runat="server" Width="352px" AutoPostBack="true" OnSelectedIndexChanged="cbxPJLX_SelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
<gtc:gtTextBox ID="txtFKSM" runat="server" Width="352px" TextMode="MultiLine" Rows="1"></gtc:gtTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblXXDZ" runat="server">详细地址:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtXXDZ" runat="server" Width="120px" onkeyup="return edtKeyUp3(this,idSel3)"
|
||
onfocus="cc3()" AutoCompleteType="none"></gtc:gtTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblWPID" runat="server">流程状态:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtLCZT" runat="server" Width="138px"></gtc:gtTextBox>
|
||
<gtc:gtLabel ID="lblLRL" runat="server" Visible="false">表价价差率(%):</gtc:gtLabel>
|
||
<gtc:gtNumTextBox ID="txtLRL" runat="server" DecimalPlaces="2" Width="0px" Visible="false"></gtc:gtNumTextBox>
|
||
</td>
|
||
</tr>
|
||
<tr id="trYSDW" runat="server">
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblYSJDID" runat="server">送货地点:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxYSJDID" runat="server" Width="129px" ShowValue="false" AutoPostBack="true"
|
||
OnSelectedIndexChanged="cbxYSJDID_SelectedIndexChanged">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblGYSID" runat="server">运输单位:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxGYSID" runat="server" Width="129px" ShowValue="false">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblYSFY" runat="server">运费:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left" colspan="3">
|
||
<gtc:gtNumTextBox ID="txtYSFY" runat="server" Width="120px">
|
||
</gtc:gtNumTextBox>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right" valign="top" rowspan="2">
|
||
<asp:LinkButton ID="lblBZ" runat="server" Text="报价备注" Font-Underline="true" OnClick="lblBZ_Click"></asp:LinkButton>
|
||
<gtc:gtLabel ID="lblBZMH" runat="server">:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left" colspan="3" rowspan="2">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtBZ" runat="server" Width="352px" TextMode="MultiLine" Rows="3"></gtc:gtTextBox>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblCZJSXY" runat="server">有无技术协议:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="left">
|
||
<gtc:gtComboBox ID="cbxCZJSXY" runat="server" Width="76px" ShowValue="false">
|
||
</gtc:gtComboBox>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtCheckBox ID="chkKQZYZDBS" runat="server" Text="跨区/专营撞单标识" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblFJS" runat="server">附件数:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td align="left">
|
||
<gtc:gtNumTextBox ID="txtFJS" runat="server" DecimalPlaces="0" Width="50px"></gtc:gtNumTextBox>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtCheckBox ID="chkJZBJHS" runat="server" Text="表价含税" AutoPostBack="true" OnCheckedChanged="chkJZBJHS_CheckedChanged" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblWHR" runat="server">维护人:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtTextBox ID="txtWHR" runat="server" Width="72px"></gtc:gtTextBox>
|
||
</td>
|
||
<td align="right">
|
||
<gtc:gtLabel ID="lblWHSJ" runat="server">维护时间:</gtc:gtLabel>
|
||
</td>
|
||
<td align="left">
|
||
<gtc:gtDateTime ID="datWHSJ" runat="server" Width="142px">
|
||
</gtc:gtDateTime>
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
<tr>
|
||
<td align="left" style="display: none;">
|
||
<gtc:gtTextBox ID="txtBJDYZ" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtJZBJHS" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtTJYSList" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtJGBIDS" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtJGCIDS" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtBJLY" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtYZWPIDList" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtJGBTJYS" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtJSBLFS" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--只读因子--%>
|
||
<gtc:gtTextBox ID="txtReadOnlyYZ" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--必填因子--%>
|
||
<gtc:gtTextBox ID="txtBTYZ" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--显示金额因子--%>
|
||
<gtc:gtTextBox ID="txtXSJEYZ" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--反算因子--%>
|
||
<gtc:gtTextBox ID="txtFSYZ" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--只读流程--%>
|
||
<gtc:gtTextBox ID="txtZDWPIDList" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtTZJGBBJ" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--调整表价--%>
|
||
<gtc:gtTextBox ID="txtTZBJDHQLJ" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--调整报价单行情料价--%>
|
||
<gtc:gtNumTextBox ID="txtZDXJJCL" runat="server" Width="12px"></gtc:gtNumTextBox>
|
||
<%--最低限价价差率--%>
|
||
<gtc:gtNumTextBox ID="txtLJJCL" runat="server" Width="12px"></gtc:gtNumTextBox>
|
||
<gtc:gtTextBox ID="txtPFYZID" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtBZPFYZID" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<%--盘费因子ID--%>
|
||
<gtc:gtDateTime ID="txtDRSJ" runat="server" Width="12px"></gtc:gtDateTime>
|
||
<%--新建明细报价数量,计量单位--%>
|
||
<gtc:gtTextBox ID="txtFirstBJSL" runat="server" Width="12px"></gtc:gtTextBox>
|
||
<gtc:gtTextBox ID="txtFirstJLDW" runat="server" Width="12px"></gtc:gtTextBox>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<div id="divFJXXLabel" runat="server" style="width:80px; height:22px; margin-top:-22px; cursor:pointer;">
|
||
<table width="100%" cellpadding="0" cellspacing="0" align="left">
|
||
<tr style="height: 5px;">
|
||
</tr>
|
||
<tr>
|
||
<td align="left">
|
||
<div onclick="Change('imgFJXX','ctl00_CphForm_divFJXX');">
|
||
<img id="imgFJXX" src="../../components/U20261363_N_XLXSBJ/images/helpmenu.gif" />
|
||
<gtc:gtLabel ID="lblFJXX" runat="server" Text="附加信息"></gtc:gtLabel>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div id="divFJXX" class="1" runat="server" style="width: 100%;">
|
||
</div>
|
||
<div onresize="initFitDiv(divGDZSY0);" style="position: absolute; width: 100%;">
|
||
</div>
|
||
|
||
<div id="divGDZSY0" style="overflow: hidden;">
|
||
<gtc:gtPager ID="pgBar" runat="server" GridViewType="gtAjaxGridView" style="position:absolute; z-index:1; right:0px; margin-top:1px; width:50%;">
|
||
</gtc:gtPager>
|
||
<gtc:gtAjaxGridView ID="grdXLBJDMX" runat="server" Height="100%" EnabledToolBar="true"
|
||
ShowFixedRowNo="true" CanInsertAtIndex="true" OnGetDropDownColumnItems="grdXLBJDMX_GetDropDownColumnItems"
|
||
OnGetDropListColumnItems="grdXLBJDMX_GetDropListColumnItems" OnNewRecord="grdXLBJDMX_NewRecord"
|
||
OnCopyRecord="grdXLBJDMX_CopyRecord" OnCalculateField="grdXLBJDMX_CalculateField" MaintainScrollPositionYOnPostback="true" showCalcLoading="true"
|
||
OnAjaxGridCellDoubleClick="grdXLBJDMX_AjaxGridCellDoubleClick" CheckBox="true" EnabledFilterRow="true" OnColumnFilter="grdXLBJDMX_ColumnFilter" >
|
||
<Columns>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_BJDID" HeaderText="报价单号" EditType="etString"
|
||
Visible="false" Width="10px"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_XH" HeaderText="序号" EditType="etNumber"
|
||
Visible="false" Width="10px"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="OLD_XLXSBJDMX_XH" HeaderText="原序号" EditType="etNumber"
|
||
Visible="false" Width="10px"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_XSSX" HeaderText="显示序号" EditType="etNumber"
|
||
NumberDecimalPlace="0" Width="50px" ReadOnly="true" FilterColumn="false"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_XLXHID" HeaderText="型号" EditType="etDropList"
|
||
CalculateField="true" Width="120px" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_XLGGID" HeaderText="规格" EditType="etDropList"
|
||
CalculateField="true" Width="120px" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLGGB_XLGGDW" HeaderText="规格单位" EditType="etString"
|
||
ReadOnly="true" Width="60px"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_XLBZID" HeaderText="标准" EditType="etDropDown"
|
||
CalculateField="true" Width="60px" DropDownEnabledValue="false" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLBZ_XLBZMS" HeaderText="线缆标准描述" EditType="etDropList"
|
||
CalculateField="true" Width="120px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_DYDJID" HeaderText="电压等级" EditType="etDropDown"
|
||
CalculateField="true" Width="120px" DropDownEnabledValue="false" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_XLYSID" HeaderText="颜色" EditType="etDropList"
|
||
CalculateField="true" DropDownEnabledValue="false" Width="60px" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_WLID" HeaderText="物料编码" EditType="etString"
|
||
Width="80px" ReadOnly="true" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_ZHCPMLMC" HeaderText="组合产品目录名称" EditType="etDropList"
|
||
Width="104px" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_CPMLMC" HeaderText="产品目录名称" EditType="etString"
|
||
Width="80px" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_BJCP" HeaderText="报价产品" EditType="etString"
|
||
Width="200px" FilterColumn="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLWLXX" HeaderText="报价产品" EditType="etString"
|
||
ReadOnly="true" Visible="false" Width="200px" FilterColumn="false"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_GYKH" HeaderText="工艺卡号" EditType="etDropList"
|
||
Width="100px" FilterColumn="true" CalculateField="true" ></gtc:gtAjaxGridViewColumn>
|
||
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_PWQDID" HeaderText="配网清单ID" EditType="etString"
|
||
Width="100px" ></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_PWQDWLMC" HeaderText="物料名称" EditType="etString"
|
||
Width="100px" ></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_PWQDMS" HeaderText="描述" EditType="etString"
|
||
Width="100px"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_WGCPBZ" HeaderText="外购" EditType="etcheckbox" CheckBoxTrueValue="Y" CheckBoxFalseValue="N"
|
||
Width="33px" FilterColumn="false" CalculateField="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_JLDW" HeaderText="计量单位" EditType="etDropDown"
|
||
DropDownEnabledValue="false" CalculateField="true" Width="80px" FilterColumn="false"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_BJSL" HeaderText="报价数量" EditType="etNumber"
|
||
NumberDecimalPlace="3" CalculateField="true" Width="80px" FilterColumn="false" NumberIsQuantity="true"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_BJDHQCLCB" HeaderText="报价单行情料价" EditType="etNumber"
|
||
NumberDecimalPlace="5" Visible="false" CalculateField="true" Width="90px" FilterColumn="false">
|
||
</gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_CLCB" HeaderText="价格表行情料价" EditType="etNumber"
|
||
NumberDecimalPlace="5" Visible="false" ReadOnly="true" Width="90px" FilterColumn="false">
|
||
</gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_JGBJJ" HeaderText="基价" EditType="etNumber"
|
||
NumberDecimalPlace="5" Visible="false" ReadOnly="true" Width="80px" FilterColumn="false">
|
||
</gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_JGBBJ" HeaderText="表价" EditType="etNumber"
|
||
NumberDecimalPlace="5" CalculateField="true" Width="80px" FilterColumn="true" FilterEditType="etNumber"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_JGBBJGXSJ" HeaderText="表价变更时间" EditType="etDateTime" DateTimeEditKind="dtDateTime"
|
||
Width="142px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_LSJGBBJ" HeaderText="临时表价" EditType="etNumber"
|
||
NumberDecimalPlace="5" CalculateField="true" Width="80px" FilterColumn="true" FilterEditType="etNumber"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_JMBGS" HeaderText="截面比公式" EditType="etString"
|
||
CalculateField="true" Width="142px"></gtc:gtAjaxGridViewColumn>
|
||
<gtc:gtAjaxGridViewColumn DataField="XLXSBJDMX_CJ" HeaderText="厂价核算" EditType="etNumber"
|
||
NumberDecimalPlace="5" Width="80px" FilterColumn="true" FilterEditType="etNumber" ReadOnly="true"></gtc:gtAjaxGridViewColumn>
|
||
</Columns>
|
||
</gtc:gtAjaxGridView>
|
||
</div>
|
||
<asp:HiddenField ID="txtWHRID" runat="server" />
|
||
<asp:HiddenField ID="txtZDZDLX" runat="server" />
|
||
<asp:HiddenField ID="txtTXYold" runat="server" />
|
||
<asp:HiddenField ID="txtWFID" runat="server" />
|
||
<asp:HiddenField ID="txtWPID" runat="server" />
|
||
<asp:HiddenField ID="txtWFINST" runat="server" />
|
||
<asp:HiddenField ID="txtHANDLER" runat="server" />
|
||
<asp:HiddenField ID="txtAWAITER" runat="server" />
|
||
<asp:HiddenField ID="maxXH" runat="server" />
|
||
<asp:HiddenField ID="ctrlState" runat="server" />
|
||
<asp:HiddenField ID="txtCLHQJGBID" runat="server" />
|
||
<asp:HiddenField ID="txtNEWBJDID" runat="server" />
|
||
<%-- 当前用户是否是询价员、审价员、核价员 --%>
|
||
<asp:HiddenField ID="IsXJY" runat="server" />
|
||
<asp:HiddenField ID="IsSJY" runat="server" />
|
||
<asp:HiddenField ID="IsHJY" runat="server" />
|
||
<%--复制时是否复制明细--%>
|
||
<asp:HiddenField ID="CanCopyMX" runat="server" />
|
||
<%--行过滤字段--%>
|
||
<asp:HiddenField ID="txtXSSXFilter" runat="server" />
|
||
<asp:HiddenField ID="txtXLXHIDFilter" runat="server" />
|
||
<asp:HiddenField ID="txtXLGGIDFilter" runat="server" />
|
||
<asp:HiddenField ID="txtXLBZIDFilter" runat="server" />
|
||
<asp:HiddenField ID="txtDYDJIDFilter" runat="server" />
|
||
<asp:HiddenField ID="txtXLYSIDFilter" runat="server" />
|
||
<asp:HiddenField ID="txtBJCPFilter" runat="server" />
|
||
<asp:HiddenField ID="txtCPMLFilter" runat="server" />
|
||
<asp:HiddenField ID="txtZHCPMLFilter" runat="server" />
|
||
<asp:HiddenField ID="txtJGBBJFilter" runat="server" />
|
||
<asp:HiddenField ID="txtZDXJJCLFilter" runat="server" />
|
||
<asp:HiddenField ID="txtBZFilter" runat="server" />
|
||
|
||
|
||
<%--普通因子----BJ01|20|Y--%>
|
||
<asp:HiddenField ID="txtPLSZYZList" runat="server" />
|
||
<asp:HiddenField ID="txtPLSZAll" runat="server" />
|
||
<asp:HiddenField ID="txtPLSZJMBGS" runat="server" />
|
||
<%--报价数量--%>
|
||
<asp:HiddenField ID="txtBJSL" runat="server" />
|
||
<%--价格表表价调整--%>
|
||
<asp:HiddenField ID="txtJGBBJTZ" runat="server" />
|
||
<%--报价上浮--%>
|
||
<asp:HiddenField ID="txtBJSF" runat="server" />
|
||
<%--报价下浮--%>
|
||
<asp:HiddenField ID="txtBJXF" runat="server" />
|
||
<%--料价价差率--%>
|
||
<asp:HiddenField ID="txtTZZ" runat="server" />
|
||
<asp:HiddenField ID="txtOLDTJ" runat="server" />
|
||
<asp:HiddenField ID="txtOLDLJ" runat="server" />
|
||
<asp:HiddenField ID="txtOLDBJDID" runat="server" />
|
||
<asp:HiddenField ID="txtOLDBJDID2" runat="server" />
|
||
<%--批量调整标准--%>
|
||
<asp:HiddenField ID="txtPLSZBZID" runat="server" />
|
||
<%--行政划分--%>
|
||
<asp:HiddenField ID="txtXZQHID" runat="server" />
|
||
<%--与售前项目关联的项目ID--%>
|
||
<asp:HiddenField ID="txtXMID" runat="server" />
|
||
<%--项目--%>
|
||
<asp:HiddenField ID="txtOLDXM" runat="server" />
|
||
<%--报价单备注以及报价说明助手--%>
|
||
<asp:HiddenField ID="txtZDM" runat="server" />
|
||
<asp:HiddenField ID="txtSMID" runat="server" />
|
||
<asp:HiddenField ID="txtSQR" runat="server" />
|
||
<asp:HiddenField ID="txtSQRGH" runat="server" />
|
||
<asp:HiddenField ID="txtZDQRRGH" runat="server" />
|
||
<asp:HiddenField ID="txtSQRID" runat="server" />
|
||
<asp:HiddenField ID="txtSQRQ" runat="server" />
|
||
<asp:HiddenField ID="txtYBJDIDS" runat="server" />
|
||
<asp:HiddenField ID="txtZT" runat="server" />
|
||
<asp:HiddenField ID="txtLogicValid" runat="server" />
|
||
<asp:HiddenField ID="txtOldJGBID" runat="server" />
|
||
<asp:HiddenField ID="txtRefOldJGBBJ" runat="server" />
|
||
<asp:HiddenField ID="txtPTBB" runat="server" />
|
||
<asp:HiddenField ID="txtBGQKHID" runat="server" />
|
||
<asp:HiddenField ID="txtBGQKH" runat="server" />
|
||
<asp:HiddenField ID="txtFZBZ" runat="server" />
|
||
<asp:HiddenField ID="txtBJSQDH" runat="server" />
|
||
<%--客户ID --%>
|
||
<asp:HiddenField ID="txtHidKHID" runat="server" />
|
||
<asp:HiddenField ID="txtIsWebCtrl" runat="server" />
|
||
<script language="javascript" type="text/javascript">
|
||
var objReport = GetWebCtrl('Y');
|
||
if (objReport == undefined) {
|
||
document.getElementById('ctl00_CphForm_txtIsWebCtrl').value = "N";
|
||
}
|
||
else {
|
||
document.getElementById('ctl00_CphForm_txtIsWebCtrl').value = "Y";
|
||
}
|
||
</script>
|
||
<div id="idSel" onmouseover="isin=true" onmouseout="isin=false" style="clear: none;
|
||
left: 314px; width: 340px; position: absolute; top: 76px; height: 1px; display: none;">
|
||
<select size="8" name="lstUSR" id="lstUSR" style="width: 351px;" ondblclick="lstUSRClick()"
|
||
onkeydown="if(event.keyCode==13) lstUSRClick()">
|
||
</select>
|
||
<button id="btnSel" style="width: 19px; height: 8px; display: none;" type="button">
|
||
</button>
|
||
</div>
|
||
<div id="idSel2" onmouseover="isin=true" onmouseout="isin=false" style="clear: none;
|
||
left: 314px; width: 340px; position: absolute; top: 128px; height: 1px; display: none;">
|
||
<select size="8" name="lstUSR2" id="lstUSR2" style="width: 351px;" ondblclick="lstUSR2Click()"
|
||
onkeydown="if(event.keyCode==13) lstUSR2Click()">
|
||
</select>
|
||
<button id="btnSel2" style="width: 19px; height: 8px; display: none;" type="button">
|
||
</button>
|
||
</div>
|
||
<div id="idSel3" onmouseover="isin=true" onmouseout="isin=false" style="clear: none;
|
||
left: 314px; width: 340px; position: absolute; top: 154px; height: 1px; display: none;">
|
||
<select size="8" name="lstUSR3" id="lstUSR3" style="width: 351px;" ondblclick="lstUSR3Click()"
|
||
onkeydown="if(event.keyCode==13) lstUSR3Click()">
|
||
</select>
|
||
<button id="btnSel3" style="width: 19px; height: 8px; display: none;" type="button">
|
||
</button>
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
//研发自测:孙天赐 2026/05/12 13:36:50
|
||
var isIE = /*@cc_on!@*/false || !!document.documentMode;
|
||
if (!isIE) {
|
||
debugger;
|
||
// 若不是IE模式,AI按钮从渲染的第一刻起就是隐藏的
|
||
document.write('<style type="text/css">#ctl00_CphForm_divAiButton { opacity: 0 !important; }</style>');
|
||
}
|
||
</script>
|
||
|
||
<div id="divAiButton" runat="server" class="ai-button">
|
||
</div>
|
||
<div class="overlay" id="overlay"></div>
|
||
|
||
<div class="modal" id="modal">
|
||
<div class="modal-header" style="display: none;">
|
||
<h2> 🤖报价单AI助手</h2>
|
||
<div class="close-btn" onclick="refreshIframeSrc()">×</div>
|
||
</div>
|
||
<iframe id='iframeAI' src=""></iframe>
|
||
</div>
|
||
<style>
|
||
/* 基础样式 */
|
||
body {
|
||
margin: 0;
|
||
font-family: 'Segoe UI', sans-serif;
|
||
}
|
||
|
||
/* 悬浮按钮样式 */
|
||
.ai-button {
|
||
|
||
position: fixed;
|
||
top: 20px;
|
||
right: 120px;
|
||
width: 60px;
|
||
height: 60px;
|
||
border-radius: 50%;
|
||
background: linear-gradient(135deg, #00ffcc, #0066ff);
|
||
cursor: pointer;
|
||
box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
transition: transform 0.3s, box-shadow 0.3s;
|
||
z-index: 9999;
|
||
animation: pulse 2s infinite;
|
||
cursor: move; /* 添加可拖动光标 */
|
||
}
|
||
|
||
.ai-button:hover {
|
||
transform: scale(1.1);
|
||
box-shadow: 0 0 30px rgba(0, 102, 255, 0.6);
|
||
}
|
||
|
||
.ai-button::before {
|
||
content: "";
|
||
display: block;
|
||
width: 60px;
|
||
height: 60px;
|
||
background-image: url('images/touxiang.png'); /* 替换为您的图片路径 */
|
||
background-size: contain;
|
||
background-repeat: no-repeat;
|
||
background-position: center;
|
||
filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
|
||
/* 去除黑边的滤镜组合 */
|
||
filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
|
||
}
|
||
/* 拖动时的样式 */
|
||
.ai-button.dragging {
|
||
cursor: grabbing;
|
||
box-shadow: 0 0 30px rgba(0, 102, 255, 0.8);
|
||
transform: scale(1.15);
|
||
}
|
||
|
||
/* 模态框样式 */
|
||
.modal {
|
||
position: fixed;
|
||
top: 0;
|
||
right: -800px;
|
||
width: 800px;
|
||
height: 100vh;
|
||
background: rgba(255, 255, 255, 0.95);
|
||
backdrop-filter: blur(10px);
|
||
box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
|
||
transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||
z-index: 10000;
|
||
}
|
||
|
||
.modal.active {
|
||
right: 0;
|
||
}
|
||
|
||
.modal-header {
|
||
padding: 6px;
|
||
background: linear-gradient(90deg, #0066ff, #00ccff);
|
||
color: white;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.close-btn {
|
||
cursor: pointer;
|
||
font-size: 24px;
|
||
transition: transform 0.3s;
|
||
}
|
||
|
||
.close-btn:hover {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
iframe {
|
||
width: 100%;
|
||
height: calc(100vh);
|
||
border: none;
|
||
}
|
||
|
||
|
||
</style>
|
||
|
||
<script language="javascript" type="text/javascript">
|
||
window.onerror = function(){return true;}
|
||
|
||
window.onresize = resize;
|
||
|
||
window.onload = resize;
|
||
|
||
window.onReload = resize;
|
||
|
||
//研发自测:周国强 2025/5/14 13:30:15
|
||
function showZDYDIVAIZL(url) {
|
||
// 创建内部容器div_ZDY2
|
||
var innerContainer = document.createElement('div');
|
||
innerContainer.id = 'divZDY_102849000';
|
||
innerContainer.style.width = '100%';
|
||
innerContainer.style.height = '100%';
|
||
innerContainer.style.position = 'relative'; // 关键定位基准
|
||
|
||
// 创建隐藏输入字段
|
||
var hiddenInput = document.createElement('input');
|
||
hiddenInput.type = 'hidden';
|
||
hiddenInput.id = 'hiddenBJDID';
|
||
hiddenInput.name = 'hiddenBJDID';
|
||
hiddenInput.value = document.getElementById('ctl00_CphForm_txtBJDID').value; // 设置 BJDID 的值
|
||
sessionStorage.setItem('quoteBJDID', document.getElementById('ctl00_CphForm_txtBJDID').value);
|
||
|
||
// 创建iframe元素
|
||
var iframe = document.createElement('iframe');
|
||
iframe.id = 'iframeZDY_102849000';
|
||
iframe.style.width = '45%';
|
||
iframe.style.height = '100%';
|
||
iframe.style.marginRight = 'auto';
|
||
iframe.style.backgroundColor = '#ffffff';
|
||
/* 现代浏览器定位方案 */
|
||
iframe.style.position = 'absolute';
|
||
iframe.style.right = '0';
|
||
|
||
iframe.src = url;
|
||
iframe.scrolling = 'no';
|
||
iframe.frameBorder = '0';
|
||
|
||
|
||
// 添加iframe到容器
|
||
innerContainer.appendChild(hiddenInput);
|
||
innerContainer.appendChild(iframe);
|
||
//debugger;
|
||
// 确保父容器存在
|
||
var parentDiv = top.document.getElementById('div_ZDY');
|
||
if (parentDiv) {
|
||
//研发自测:周国强 2025/5/14 13:30:15
|
||
if(top.document.getElementById('hiddenBJDID') != null)
|
||
{
|
||
var bjdidValue = top.document.getElementById('hiddenBJDID').value;
|
||
//研发自测:周国强 2025/5/14 13:30:15
|
||
if (bjdidValue && (bjdidValue.trim() !== '')&& (bjdidValue.trim() !==document.getElementById('ctl00_CphForm_txtBJDID').value))//换报价单了,需要清空其他报价单的DIV容器
|
||
{
|
||
parentDiv.innerHTML = ''; // 直接清空所有子节点(包括文本和元素)
|
||
}
|
||
}
|
||
var ZDYDiv_102849000 = top.document.getElementById('divZDY_102849000');
|
||
if(top.document.getElementById('divZDY_102849000')== null)
|
||
{
|
||
parentDiv.appendChild(innerContainer);
|
||
}
|
||
else
|
||
{
|
||
//研发自测:黄文波 2025/5/14 23:28:49
|
||
if(ZDYDiv_102849000)
|
||
{
|
||
ZDYDiv_102849000.style.display = 'block';
|
||
ZDYDiv_102849000.style.width = '100%';
|
||
ZDYDiv_102849000.style.height = '100%';
|
||
}
|
||
}
|
||
parentDiv.style.display = "block";
|
||
parentDiv.onclick = function() {
|
||
hideZDYDIV();
|
||
}
|
||
}
|
||
|
||
// IE7不支持flex布局,使用block替代
|
||
innerContainer.style.display = 'block';
|
||
|
||
// 创建动画样式
|
||
var style = top.document.createElement('style');
|
||
style.type = 'text/template'; // 避免立即解析
|
||
style.innerHTML = "@keyframes slideInFromRight {0% {transform: translateX(100%);opacity: 0;}100% {transform: translateX(0);opacity: 1;}}";
|
||
top.document.getElementsByTagName('head')[0].appendChild(style);
|
||
|
||
// 设置动画 - 注意:IE7不支持CSS动画,此处仅保留代码结构
|
||
innerContainer.style.animation = 'slideInFromRight 0.5s ease-out forwards';
|
||
}
|
||
function showZDYDIV(url) {
|
||
//研发自测:黄文波 2025/5/12 17:16:15
|
||
// 创建内部容器div_ZDY2
|
||
//研发自测:黄文波 2025/5/14 23:28:49
|
||
var divZDY_102849000 = top.document.getElementById('divZDY_102849000');
|
||
if(divZDY_102849000)
|
||
{
|
||
divZDY_102849000.display = 'none';
|
||
divZDY_102849000.style.width = '0%';
|
||
divZDY_102849000.style.height = '0%';
|
||
}
|
||
var innerContainer = document.createElement('div');
|
||
//研发自测:黄文波 2025/5/14 23:28:49
|
||
innerContainer.id = 'divZDY_102849002';
|
||
innerContainer.style.width = '100%';
|
||
innerContainer.style.height = '100%';
|
||
innerContainer.style.display = 'block';
|
||
|
||
// 创建iframe元素
|
||
var iframe = document.createElement('iframe');
|
||
//研发自测:黄文波 2025/5/13 11:49:27
|
||
iframe.id = 'iframeZDY_102849002';
|
||
iframe.style.width = '100%';
|
||
iframe.style.height = '100%';
|
||
iframe.style.marginLeft = 'auto';
|
||
iframe.style.backgroundColor = '#ffffff';
|
||
iframe.src = url;
|
||
iframe.scrolling = 'no';
|
||
iframe.frameBorder = '0';
|
||
iframe.style.display = 'block';
|
||
|
||
// 添加iframe到容器
|
||
innerContainer.appendChild(iframe);
|
||
|
||
// 确保父容器存在
|
||
var parentDiv = top.document.getElementById('div_ZDY');
|
||
if (parentDiv) {
|
||
parentDiv.appendChild(innerContainer);
|
||
parentDiv.style.display = "block";
|
||
}
|
||
|
||
// IE7不支持flex布局,使用block替代
|
||
|
||
// 创建动画样式
|
||
var style = top.document.createElement('style');
|
||
style.type = 'text/template'; // 避免立即解析
|
||
style.innerHTML = "@keyframes slideInFromRight {0% {transform: translateX(100%);opacity: 0;}100% {transform: translateX(0);opacity: 1;}}";
|
||
top.document.getElementsByTagName('head')[0].appendChild(style);
|
||
|
||
// 设置动画 - 注意:IE7不支持CSS动画,此处仅保留代码结构
|
||
innerContainer.style.animation = 'slideInFromRight 0.5s ease-out forwards';
|
||
}
|
||
//研发自测:周国强 2025/5/13 13:16:16
|
||
hideZDYDIV = function(){
|
||
//debugger;
|
||
var divZDY = top.document.getElementById('div_ZDY');
|
||
divZDY.style.display = "none";
|
||
sessionStorage.setItem('quoteBJDID', '');
|
||
}
|
||
//研发自测:黄文波 2025/5/13 11:49:27
|
||
function openAIZXQK() {
|
||
//研发自测:黄文波 2025/5/12 17:16:15
|
||
var protocol = window.location.protocol;
|
||
var host = window.location.host;
|
||
|
||
// 拼接动态地址
|
||
var basePath = '../Components/N_XLBJAIZL/';
|
||
var pageName = "AIZLRWZXQKList.aspx?BJDID="+document.getElementById('ctl00_CphForm_txtBJDID').value;
|
||
var sUrl = basePath + pageName;
|
||
sessionStorage.setItem('quoteBJDID', document.getElementById('ctl00_CphForm_txtBJDID').value);
|
||
showZDYDIV(sUrl);
|
||
}
|
||
|
||
function openBJCPJXDR() {
|
||
//研发自测:王威 2025/08/07 09:44:24
|
||
var protocol = window.location.protocol;
|
||
var host = window.location.host;
|
||
|
||
// 拼接动态地址
|
||
var basePath = '../Components/U20261363_N_XLXSBJ/';
|
||
var pageName = "BJCPJXDR.aspx?BJDID="+document.getElementById('ctl00_CphForm_txtBJDID').value;
|
||
var sUrl = basePath + pageName;
|
||
showZDYDIV(sUrl);
|
||
}
|
||
|
||
//研发自测:孙天赐 2026/04/28 13:55:19
|
||
function initDragButton() {
|
||
debugger;
|
||
var aiButton = document.getElementById('ctl00_CphForm_divAiButton');
|
||
|
||
//研发自测:孙天赐 2026/05/12 11:43:31
|
||
var isIE = /*@cc_on!@*/false || !!document.documentMode;
|
||
if (!isIE) {
|
||
aiButton.style.opacity = '0';
|
||
} else {
|
||
aiButton.style.opacity = '1';
|
||
aiButton.style.filter = 'alpha(opacity=100)';
|
||
}
|
||
|
||
console.log('初始化AI按钮拖动功能...');
|
||
|
||
var isDragging = false;
|
||
var startX, startY, initialLeft, initialTop;
|
||
var dragStartTime;
|
||
var minDragDistance = 5;
|
||
|
||
// 清除旧的事件监听器(避免重复绑定)
|
||
aiButton.replaceWith(aiButton.cloneNode(true));
|
||
aiButton = document.getElementById('ctl00_CphForm_divAiButton'); // 重新获取引用
|
||
|
||
// 鼠标按下事件
|
||
aiButton.addEventListener('mousedown', function(e) {
|
||
isDragging = false;
|
||
aiButton.classList.add('dragging');
|
||
|
||
startX = e.clientX;
|
||
startY = e.clientY;
|
||
dragStartTime = Date.now();
|
||
initialLeft = parseInt(aiButton.style.left) || (window.innerWidth - aiButton.offsetWidth - 120);
|
||
initialTop = parseInt(aiButton.style.top) || 20;
|
||
|
||
console.log('鼠标按下 - 初始位置:', initialLeft, initialTop);
|
||
e.preventDefault();
|
||
});
|
||
|
||
// 鼠标移动事件
|
||
document.addEventListener('mousemove', function(e) {
|
||
if (!dragStartTime) return;
|
||
|
||
var deltaX = Math.abs(e.clientX - startX);
|
||
var deltaY = Math.abs(e.clientY - startY);
|
||
|
||
if (deltaX > minDragDistance || deltaY > minDragDistance) {
|
||
isDragging = true;
|
||
}
|
||
|
||
if (!isDragging) return;
|
||
|
||
var moveDeltaX = e.clientX - startX;
|
||
var moveDeltaY = e.clientY - startY;
|
||
|
||
var newLeft = initialLeft + moveDeltaX;
|
||
var newTop = initialTop + moveDeltaY;
|
||
|
||
// 边界检查
|
||
newLeft = Math.max(0, Math.min(newLeft, window.innerWidth - aiButton.offsetWidth));
|
||
newTop = Math.max(0, Math.min(newTop, window.innerHeight - aiButton.offsetHeight));
|
||
|
||
aiButton.style.left = newLeft + 'px';
|
||
aiButton.style.top = newTop + 'px';
|
||
aiButton.style.right = 'auto';
|
||
|
||
e.preventDefault();
|
||
});
|
||
|
||
// 鼠标释放事件
|
||
document.addEventListener('mouseup', function(e) {
|
||
if (!dragStartTime) return;
|
||
|
||
var dragEndTime = Date.now();
|
||
var dragDuration = dragEndTime - dragStartTime;
|
||
var deltaX = Math.abs(e.clientX - startX);
|
||
var deltaY = Math.abs(e.clientY - startY);
|
||
|
||
dragStartTime = null;
|
||
|
||
if (isDragging) {
|
||
console.log('拖拽结束 - 新位置:', aiButton.style.left, aiButton.style.top);
|
||
isDragging = false;
|
||
aiButton.classList.remove('dragging');
|
||
saveButtonPosition();
|
||
} else {
|
||
var maxClickDuration = 300;
|
||
if (dragDuration < maxClickDuration && deltaX < minDragDistance && deltaY < minDragDistance) {
|
||
console.log('点击事件触发');
|
||
toggleModal();
|
||
}
|
||
}
|
||
|
||
e.preventDefault();
|
||
});
|
||
|
||
// 触摸事件支持
|
||
aiButton.addEventListener('touchstart', function(e) {
|
||
isDragging = false;
|
||
aiButton.classList.add('dragging');
|
||
|
||
var touch = e.touches[0];
|
||
startX = touch.clientX;
|
||
startY = touch.clientY;
|
||
dragStartTime = Date.now();
|
||
initialLeft = parseInt(aiButton.style.left) || (window.innerWidth - aiButton.offsetWidth - 120);
|
||
initialTop = parseInt(aiButton.style.top) || 20;
|
||
|
||
e.preventDefault();
|
||
});
|
||
|
||
document.addEventListener('touchmove', function(e) {
|
||
if (!dragStartTime) return;
|
||
|
||
var touch = e.touches[0];
|
||
var deltaX = Math.abs(touch.clientX - startX);
|
||
var deltaY = Math.abs(touch.clientY - startY);
|
||
|
||
if (deltaX > minDragDistance || deltaY > minDragDistance) {
|
||
isDragging = true;
|
||
}
|
||
|
||
if (!isDragging) return;
|
||
|
||
var moveDeltaX = touch.clientX - startX;
|
||
var moveDeltaY = touch.clientY - startY;
|
||
|
||
var newLeft = initialLeft + moveDeltaX;
|
||
var newTop = initialTop + moveDeltaY;
|
||
|
||
newLeft = Math.max(0, Math.min(newLeft, window.innerWidth - aiButton.offsetWidth));
|
||
newTop = Math.max(0, Math.min(newTop, window.innerHeight - aiButton.offsetHeight));
|
||
|
||
aiButton.style.left = newLeft + 'px';
|
||
aiButton.style.top = newTop + 'px';
|
||
aiButton.style.right = 'auto';
|
||
|
||
e.preventDefault();
|
||
});
|
||
|
||
document.addEventListener('touchend', function(e) {
|
||
if (!dragStartTime) return;
|
||
|
||
var dragEndTime = Date.now();
|
||
var dragDuration = dragEndTime - dragStartTime;
|
||
|
||
dragStartTime = null;
|
||
|
||
if (isDragging) {
|
||
isDragging = false;
|
||
aiButton.classList.remove('dragging');
|
||
saveButtonPosition();
|
||
} else {
|
||
var maxClickDuration = 300;
|
||
if (dragDuration < maxClickDuration) {
|
||
toggleModal();
|
||
}
|
||
}
|
||
|
||
e.preventDefault();
|
||
});
|
||
|
||
// 加载保存的位置
|
||
loadButtonPosition();
|
||
console.log('AI按钮拖动功能初始化完成');
|
||
}
|
||
|
||
// 页面加载完成后初始化
|
||
window.addEventListener('load', function() {
|
||
console.log('页面加载完成,开始初始化AI按钮...');
|
||
|
||
// 延迟初始化,确保所有元素都已加载
|
||
setTimeout(function() {
|
||
initializePage();
|
||
}, 500);
|
||
});
|
||
|
||
//研发自测:孙天赐 2026/05/12 09:21:39
|
||
// 如果页面是动态加载的,添加对部分页面刷新的支持
|
||
if (typeof Sys !== 'undefined' && Sys.WebForms && Sys.WebForms.PageRequestManager) {
|
||
debugger;
|
||
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function(sender, args) {
|
||
console.log('异步回发完成,重新初始化AI按钮...');
|
||
//研发自测:孙天赐 2026/05/12 09:21:39
|
||
// 异步回发后,AI按钮被重新渲染,需要重新隐藏
|
||
var isIE = /*@cc_on!@*/false || !!document.documentMode;
|
||
if (!isIE) {
|
||
var aiButton = document.getElementById('ctl00_CphForm_divAiButton');
|
||
if (aiButton) {
|
||
aiButton.style.cssText += '; opacity: 0 !important;';
|
||
}
|
||
}
|
||
|
||
setTimeout(initDragButton, 100);
|
||
});
|
||
}
|
||
|
||
// 改进的页面加载处理
|
||
function initializePage() {
|
||
console.log('页面开始初始化...');
|
||
|
||
// 确保DOM完全加载
|
||
if (document.readyState === 'loading') {
|
||
document.addEventListener('DOMContentLoaded', function() {
|
||
initDragButton();
|
||
//研发自测:孙天赐 2026/05/12 13:55:38
|
||
setupResizeHandler();
|
||
});
|
||
} else {
|
||
// DOM已经加载完成
|
||
setTimeout(function() {
|
||
initDragButton();
|
||
//研发自测:孙天赐 2026/05/12 13:55:41
|
||
setupResizeHandler();
|
||
}, 100);
|
||
}
|
||
}
|
||
|
||
// 设置窗口调整大小事件处理
|
||
function setupResizeHandler() {
|
||
debugger;
|
||
//研发自测:孙天赐 2026/05/12 13:53:19
|
||
window.addEventListener('resize', function() {
|
||
var aiButton = document.getElementById('ctl00_CphForm_divAiButton');
|
||
if (!aiButton) return;
|
||
|
||
var currentLeft = parseInt(aiButton.style.left);
|
||
var currentTop = parseInt(aiButton.style.top);
|
||
|
||
if (currentLeft > window.innerWidth - aiButton.offsetWidth) {
|
||
aiButton.style.left = (window.innerWidth - aiButton.offsetWidth - 20) + 'px';
|
||
}
|
||
if (currentTop > window.innerHeight - aiButton.offsetHeight) {
|
||
aiButton.style.top = (window.innerHeight - aiButton.offsetHeight - 20) + 'px';
|
||
}
|
||
|
||
saveButtonPosition();
|
||
});
|
||
}
|
||
|
||
// 保存按钮位置到本地存储
|
||
function saveButtonPosition() {
|
||
var aiButton = document.getElementById('ctl00_CphForm_divAiButton');
|
||
if (!aiButton) return;
|
||
|
||
var position = {
|
||
left: parseInt(aiButton.style.left) || (window.innerWidth - aiButton.offsetWidth - 120),
|
||
top: parseInt(aiButton.style.top) || 20
|
||
};
|
||
|
||
try {
|
||
localStorage.setItem('aiButtonPosition', JSON.stringify(position));
|
||
console.log('保存按钮位置:', position);
|
||
} catch (e) {
|
||
console.log('无法保存按钮位置:', e);
|
||
}
|
||
}
|
||
|
||
// 从本地存储加载按钮位置
|
||
function loadButtonPosition() {
|
||
var aiButton = document.getElementById('ctl00_CphForm_divAiButton');
|
||
if (!aiButton) return;
|
||
|
||
try {
|
||
var savedPosition = localStorage.getItem('aiButtonPosition');
|
||
if (savedPosition) {
|
||
var position = JSON.parse(savedPosition);
|
||
aiButton.style.left = position.left + 'px';
|
||
aiButton.style.top = position.top + 'px';
|
||
aiButton.style.right = 'auto';
|
||
console.log('加载按钮位置:', position);
|
||
} else {
|
||
console.log('无保存的按钮位置,使用默认位置');
|
||
}
|
||
//研发自测:孙天赐 2026/05/12 13:45:55
|
||
if (!isIE) {
|
||
aiButton.style.cssText += '; opacity: 1 !important;';
|
||
}
|
||
|
||
} catch (e) {
|
||
console.log('无法加载按钮位置:', e);
|
||
//研发自测:孙天赐 2026/05/12 13:45:52
|
||
if (!isIE) {
|
||
aiButton.style.cssText += '; opacity: 1 !important;';
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
//研发自测:王威2025/05/06 21:29:43
|
||
function toggleModal() {
|
||
//debugger;
|
||
refreshIframeSrc();
|
||
}
|
||
//研发自测:周国强2025/05/13 01:29:44
|
||
function refreshIframeSrc() {
|
||
//debugger;
|
||
var sUrl="../Components/N_XLBJAIZL/AIindex.html?MDID=102849000&FROMPARENTDIV=BJDAIZL&BJDID="+document.getElementById('ctl00_CphForm_txtBJDID').value;
|
||
//研发自测:黄文波 2025/5/13 11:49:27
|
||
showZDYDIVAIZL(sUrl);
|
||
}
|
||
function Change(imageName, divName) {
|
||
if (document.getElementById(divName).className == '1') {
|
||
document.getElementById(divName).style.display = 'none';
|
||
document.getElementById(divName).className = '0';
|
||
document.getElementById(imageName).src = "../../components/U20261363_N_XLXSBJ/images/helpmenu2.gif";
|
||
|
||
}
|
||
else {
|
||
document.getElementById(divName).style.display = 'block';
|
||
document.getElementById(divName).className = '1';
|
||
document.getElementById(imageName).src = "../../components/U20261363_N_XLXSBJ/images/helpmenu.gif";
|
||
}
|
||
document.getElementById("ctl00_CPHButton_btnShowFJXX").click();
|
||
}
|
||
function Setblock()
|
||
{
|
||
document.getElementById('ctl00_CphForm_divFJXX').style.display = 'block';
|
||
document.getElementById('ctl00_CphForm_divFJXX').className = '1';
|
||
document.getElementById('imgFJXX').src = "../../components/U20261363_N_XLXSBJ/images/helpmenu.gif";
|
||
}
|
||
function Setnone()
|
||
{
|
||
document.getElementById('ctl00_CphForm_divFJXX').style.display = 'none';
|
||
document.getElementById('ctl00_CphForm_divFJXX').className = '0';
|
||
document.getElementById('imgFJXX').src = "../../components/U20261363_N_XLXSBJ/images/helpmenu2.gif";
|
||
}
|
||
function gridCellReadOnly(grid,gridid,row){
|
||
var sTZJGBBJ = document.getElementById("ctl00_CphForm_txtTZJGBBJ").value;
|
||
var sTZBJDHQLJ=document.getElementById("ctl00_CphForm_txtTZBJDHQLJ").value;
|
||
//3|仅允许调整无清单产品的表价
|
||
if(sTZJGBBJ == '3'){
|
||
var HasCLQD = grid.getFieldValue('HasCLQD',row);
|
||
if(HasCLQD == 'Y'){
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", true, row);
|
||
}
|
||
else
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", false, row);
|
||
}
|
||
else if(sTZJGBBJ == '4')
|
||
{
|
||
var JGBBJ = grid.getFieldValue('XLXSBJDMX_JGBBJ',row);
|
||
var JGBBJTZ=grid.getFieldValue('XLXSBJDMX_JGBBJTZ',row);
|
||
if(JGBBJ != 0&&JGBBJTZ=='N'){
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", true, row);
|
||
}
|
||
else{
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", false, row);
|
||
}
|
||
}
|
||
//2|仅允许调整无清单产品的报价单行情料价
|
||
if(sTZBJDHQLJ == '2'){
|
||
var HasCLQD = grid.getFieldValue('HasCLQD',row);
|
||
if(HasCLQD == 'Y'){
|
||
grid.setFieldReadOnly("XLXSBJDMX_BJDHQCLCB", true, row);
|
||
}
|
||
else
|
||
grid.setFieldReadOnly("XLXSBJDMX_BJDHQCLCB", false, row);
|
||
}
|
||
if(gridid == 'grdXLBJDMX'){
|
||
var HasYLDZSQ = grid.getFieldValue('HasYLDZSQ',row);
|
||
var YLZDYXTZ = grid.getFieldValue('YLZDYXTZ',row);
|
||
if(HasYLDZSQ == 'Y'&& YLZDYXTZ == 'N'){
|
||
grid.setFieldReadOnly("XLXSBJDMX_XLXHID", true, row);
|
||
grid.setFieldReadOnly("XLXSBJDMX_XLGGID", true, row);
|
||
grid.setFieldReadOnly("XLXSBJDMX_XLBZID", true, row);
|
||
grid.setFieldReadOnly("XLXSBJDMX_DYDJID", true, row);
|
||
grid.setFieldReadOnly("XLXSBJDMX_WGCPBZ", true, row);
|
||
}
|
||
var HasCPMLID = grid.getFieldValue('HasCPMLID',row);
|
||
if(typeof(HasCPMLID) !="undefined"){
|
||
if(HasCPMLID.trim() != ''){
|
||
grid.setFieldReadOnly("XLXSBJDMX_CPMLMC", true, row);
|
||
}
|
||
else{
|
||
grid.setFieldReadOnly("XLXSBJDMX_CPMLMC", false, row);
|
||
}
|
||
}
|
||
var ZDXJBJDID = grid.getFieldValue('XLXSBJDMX_ZDXJBJDID',row);
|
||
if(ZDXJBJDID!= ''){
|
||
grid.setFieldReadOnly("XLXSBJDMX_XLXHID", true, row);
|
||
grid.setFieldReadOnly("XLXSBJDMX_XLGGID", true, row);
|
||
grid.setFieldReadOnly("XLXSBJDMX_XLBZID", true, row);
|
||
grid.setFieldReadOnly("XLXSBJDMX_DYDJID", true, row);
|
||
}
|
||
}
|
||
}
|
||
function resize(){
|
||
if(document.getElementById('ctl00_CphForm_divBarQY') != null)
|
||
{
|
||
//setTimeout(function() {calcwidth();}, 100);
|
||
}
|
||
}
|
||
|
||
function AjaxGridDblClick(grid, gridId, cellIndex, row)
|
||
{
|
||
var PFYZ = document.getElementById("ctl00_CphForm_txtPFYZID").value;
|
||
var LM = grid._coldef[cellIndex]["F"]
|
||
if( LM == 'TZYZ_' + PFYZ )
|
||
{
|
||
document.getElementById("ctl00_CPHButton_btnPFZP").click();
|
||
}
|
||
if(LM=='XLXSBJDMX_PJJE')
|
||
{
|
||
document.getElementById("ctl00_CPHButton_btnPFJE").click();
|
||
}
|
||
}
|
||
function gridFieldChange(grid, gridId, field, row){
|
||
|
||
var sTZJGBBJ = document.getElementById("ctl00_CphForm_txtTZJGBBJ").value;
|
||
var sTZBJDHQLJ=document.getElementById("ctl00_CphForm_txtTZBJDHQLJ").value;
|
||
//3|仅允许调整无清单产品的表价
|
||
if(sTZJGBBJ == '3') {
|
||
var HasCLQD = grid.getFieldValue('HasCLQD',row);
|
||
if(HasCLQD == 'Y'){
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", true, row);
|
||
}
|
||
else{
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", false, row);
|
||
}
|
||
}
|
||
else if(sTZJGBBJ == '4')
|
||
{
|
||
var JGBBJ = grid.getFieldValue('XLXSBJDMX_JGBBJ',row);
|
||
var JGBBJTZ=grid.getFieldValue('XLXSBJDMX_JGBBJTZ',row);
|
||
if(JGBBJ != 0&&JGBBJTZ=='N'){
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", true, row);
|
||
}
|
||
else{
|
||
grid.setFieldReadOnly("XLXSBJDMX_JGBBJ", false, row);
|
||
}
|
||
}
|
||
//2|仅允许调整无清单产品的报价单行情料价
|
||
if(sTZBJDHQLJ == '2'){
|
||
var HasCLQD = grid.getFieldValue('HasCLQD',row);
|
||
if(HasCLQD == 'Y'){
|
||
grid.setFieldReadOnly("XLXSBJDMX_BJDHQCLCB", true, row);
|
||
}
|
||
else
|
||
grid.setFieldReadOnly("XLXSBJDMX_BJDHQCLCB", false, row);
|
||
}
|
||
var HasCPMLID = grid.getFieldValue('HasCPMLID',row);
|
||
if(typeof(HasCPMLID) !="undefined"){
|
||
if(HasCPMLID.trim() != ''){
|
||
grid.setFieldReadOnly("XLXSBJDMX_CPMLMC", true, row);
|
||
}
|
||
else{
|
||
grid.setFieldReadOnly("XLXSBJDMX_CPMLMC", false, row);
|
||
}
|
||
}
|
||
|
||
|
||
|
||
if(row.rowIndex==1){
|
||
var sJLDW=grid.getFieldValue('XLXSBJDMX_JLDW',row);
|
||
var sBJSL=grid.getFieldValue('XLXSBJDMX_BJSL',row);
|
||
document.getElementById("ctl00_CphForm_txtFirstJLDW").value=sJLDW.split("|")[0];
|
||
document.getElementById("ctl00_CphForm_txtFirstBJSL").value=sBJSL;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
</script>
|
||
|
||
</asp:Content>
|
||
|
||
|