93 lines
6.4 KiB
Plaintext
93 lines
6.4 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="True" Codebehind="XLBJD_WLHQTZList.aspx.cs" Inherits="GThinking.N_XLXSBJ.XLBJD_WLHQTZList"
|
|
MasterPageFile="~/N_MODEL/Page/MasterOperation.Master" Title="调整物料行情" %>
|
|
|
|
<%@ MasterType VirtualPath="~/N_MODEL/Page/MasterOperation.Master" %>
|
|
<asp:Content ID="ContentButton" ContentPlaceHolderID="CPHButton" runat="server">
|
|
<asp:Table ID="CustomButton" runat="server" CellPadding="0" CellSpacing="0">
|
|
<asp:TableRow>
|
|
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
|
<gtc:gtToolButton ID="btnCGHQ" BorderWidth="0px" BorderStyle="NotSet" Width="106px"
|
|
Height="19px" ButtonType="Button" ShowCaption="True" OnClick="btnCGHQ_OnClick"
|
|
Caption="更新自采购行情" runat="server" />
|
|
</asp:TableCell>
|
|
<asp:TableCell BorderWidth="0px" BorderStyle="NotSet">
|
|
<gtc:gtToolButton ID="btnWLHQ" BorderWidth="0px" BorderStyle="NotSet" Width="106px"
|
|
Height="19px" ButtonType="Button" ShowCaption="True" OnClick="btnWLHQ_OnClick"
|
|
Caption="更新自物料行情" runat="server" />
|
|
</asp:TableCell>
|
|
</asp:TableRow>
|
|
</asp:Table>
|
|
</asp:Content>
|
|
<asp:Content ID="Query" ContentPlaceHolderID="CphQuery" runat="server">
|
|
</asp:Content>
|
|
<asp:Content ID="Grid" ContentPlaceHolderID="CphForm" runat="server">
|
|
<gtc:gtPageControl ID="Tab" runat="server" AutoPostBack="True" ActiveTabIndex="0">
|
|
<gtc:gtPagePanel ID="pagSHD2" runat="server" HeaderText="调整物料行情">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel runat="server" ID="UPSHD2" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="divGDZSY0">
|
|
<gtc:gtAjaxGridView ShowPager="false" ID="grdSHD2" runat="server" ReadOnly="false" Height="100%" OnCalculateField="grdSHD2_CalculateField">
|
|
<Columns>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="物料编码" DataField="XLXSBJCLWL_WLID" EditType="etString"
|
|
ReadOnly="true" Width="80px"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="物料名称" DataField="WLMC" EditType="etString"
|
|
ReadOnly="true" Width="200px"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="加工原报价材料" DataField="JGYBJCLXX" EditType="etString"
|
|
ReadOnly="true" Width="200px"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="无税材料价格(元/Kg)" DataField="JGYBJCLID_WSJG" EditType="etNumber" NumberDecimalPlace="2"
|
|
ReadOnly="true" Width="120px"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="增值税率(%)" DataField="XLXSBJCL_ZZSL" EditType="etNumber" NumberDecimalPlace="2"
|
|
ReadOnly="true" Width="80px"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="含税材料价格(元/Kg)" DataField="JGYBJCLID_HSJG" EditType="etNumber" NumberDecimalPlace="2"
|
|
ReadOnly="true" Width="120px"></gtc:gtAjaxGridViewColumn>
|
|
|
|
<gtc:gtAjaxGridViewColumn HeaderText="无税加工费(元/Kg)" DataField="WSJGF" EditType="etNumber" NumberDecimalPlace="2"
|
|
Width="120px" CalculateField="true"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="含税加工费(元/Kg)" DataField="HSJGF" EditType="etNumber" NumberDecimalPlace="2"
|
|
Width="120px" CalculateField="true"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="无税价格(元/Kg)" DataField="WSJG" EditType="etNumber" NumberDecimalPlace="2"
|
|
Width="120px" CalculateField="true"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="含税价格(元/Kg)" DataField="HSJG" EditType="etNumber" NumberDecimalPlace="2"
|
|
Width="120px" CalculateField="true"></gtc:gtAjaxGridViewColumn>
|
|
|
|
<gtc:gtAjaxGridViewColumn HeaderText="维护人" DataField="V_XLXSBJDWLHQ_WHR" EditType="etString"
|
|
ReadOnly="true" Width="72px"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="维护人ID" DataField="V_XLXSBJDWLHQ_WHRID" EditType="etString"
|
|
ReadOnly="true" Width="72px" Visible="false"></gtc:gtAjaxGridViewColumn>
|
|
<gtc:gtAjaxGridViewColumn HeaderText="维护时间" DataField="V_XLXSBJDWLHQ_WHSJ" EditType="etDateTime" DateTimeEditKind="dtDateTime"
|
|
ReadOnly="true" Width="125px"></gtc:gtAjaxGridViewColumn>
|
|
</Columns>
|
|
</gtc:gtAjaxGridView>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</gtc:gtPagePanel>
|
|
</gtc:gtPageControl>
|
|
<script type="text/javascript">
|
|
function gridCellReadOnly(grid,gridid,row)
|
|
{
|
|
if(gridid == 'grdSHD2')
|
|
{
|
|
var JGYBJCLXX = grid.getFieldValue('JGYBJCLXX',row);
|
|
if(JGYBJCLXX != '')
|
|
{
|
|
grid.setFieldReadOnly("WSJGF", false, row);
|
|
grid.setFieldReadOnly("HSJGF", false, row);
|
|
grid.setFieldReadOnly("WSJG", true, row);
|
|
grid.setFieldReadOnly("HSJG", true, row);
|
|
}
|
|
else
|
|
{
|
|
grid.setFieldReadOnly("WSJGF", true, row);
|
|
grid.setFieldReadOnly("HSJGF", true, row);
|
|
grid.setFieldReadOnly("WSJG", false, row);
|
|
grid.setFieldReadOnly("HSJG", false, row);
|
|
}
|
|
|
|
}
|
|
}
|
|
</script>
|
|
</asp:Content>
|