?? calbuyofproducts.ascx
字號(hào):
<%@ Register TagPrefix="cc2" Namespace="xImageButton" Assembly="xImageButton" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="CalBuyOfProducts.ascx.cs" Inherits="Storage.Buy.ASCX.CalBuyOfProducts" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<script src="../js/CommFunc.js" type="text/javascript"></script>
<script src="../js/Calendar.js" type="text/javascript"></script>
<script src="../js/CheckDataFunction.js" type="text/javascript"></script>
<script language="JavaScript">
function addBillDetail()
{
var getObj;
getObj=eval('document.all.'+clientName+'_txProcType');
var retValue;
if(getObj.value=='0')
retValue =fnOpenModWinM1("../Buy/ASCX/SelectOnlyPro0.aspx",""); //選擇原材料
else
retValue =fnOpenModWinM1("../Buy/ASCX/SelectOnlyPro1.aspx",""); //選擇半成品
if((retValue!='cancel')&&(retValue!=undefined))
{
getArr=retValue.split(',');
getObj=eval('document.all.'+clientName+'_txProID');
getObj.value=getArr[0];
getObj=eval('document.all.'+clientName+'_txProName')
getObj.value=getArr[1];
}
}
function addProClass()
{
var objDrp = document.getElementById(clientName+"_ddlGoodsType");
var getObj = objDrp.options[objDrp.selectedIndex];
//var getObj;
//getObj=eval('document.all.'+clientName+'_txProcType');
var retValue;
if(getObj.value=='0')
retValue =fnOpenModWinS1("../ascx/cwSelectGoodsType.aspx","goodstype=0"); //選擇原材料分類
else if(getObj.value=='1')
retValue =fnOpenModWinS1("../ascx/cwSelectGoodsType.aspx","goodstype=1"); //選擇半成品分類
else if(getObj.value=='3')
retValue =fnOpenModWinS1("../ascx/cwSelectGoodsType.aspx","goodstype=3"); //選擇包材分類
else
retValue =fnOpenModWinS1("../ascx/cwSelectGoodsType.aspx","goodstype=4"); //選擇易耗品分類
if((retValue!='cancel')&&(retValue!=undefined))
{
getArr=retValue.split(',');
getObj=eval('document.all.'+clientName+'_txProClassID');
getObj.value=getArr[0];
getObj=eval('document.all.'+clientName+'_txProClassName')
getObj.value=getArr[1];
}
}
</script>
<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="../images/button/in.gif">
<tr>
<td width="30"><img src="../images/button/left.gif" width="27" height="34"></td>
<td><span class="STYLE1"> <asp:label id="lblCaption" Width="344px" runat="server">采購(gòu)管理->材料采購(gòu)統(tǒng)計(jì)</asp:label></span>
</td>
<td width="60"><FONT face="宋體">
<cc2:MouseImage id="miClose" runat="server" ImageUrl="../../images/button/btnclose.gif" returnImgUrl="../images/button/btnclose.gif"
ChangeImgUrl="../images/button/btnclose_2.gif"></cc2:MouseImage></FONT></td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="../Images/dotline.gif" height="3"><FONT face="宋體"></FONT></td>
</tr>
<tr>
<td>年份:
<asp:dropdownlist id="ddlYear" runat="server">
<asp:ListItem Value="--所有--">--所有--</asp:ListItem>
<asp:ListItem Value="1">一季度</asp:ListItem>
<asp:ListItem Value="2">二季度</asp:ListItem>
<asp:ListItem Value="3">三季度</asp:ListItem>
<asp:ListItem Value="4">四季度</asp:ListItem>
</asp:dropdownlist>
季度:
<asp:dropdownlist id="ddlQuarter" runat="server">
<asp:ListItem>--所有--</asp:ListItem>
<asp:ListItem Value="1">一季度</asp:ListItem>
<asp:ListItem Value="2">二季度</asp:ListItem>
<asp:ListItem Value="3">三季度</asp:ListItem>
<asp:ListItem Value="4">四季度</asp:ListItem>
</asp:dropdownlist>
月份:
<asp:dropdownlist id="ddlMonth" runat="server">
<asp:ListItem>--所有--</asp:ListItem>
<asp:ListItem Value="1">一月</asp:ListItem>
<asp:ListItem Value="2">二月</asp:ListItem>
<asp:ListItem Value="3">三月</asp:ListItem>
<asp:ListItem Value="4">四月</asp:ListItem>
<asp:ListItem Value="5">五月</asp:ListItem>
<asp:ListItem Value="6">六月</asp:ListItem>
<asp:ListItem Value="7">七月</asp:ListItem>
<asp:ListItem Value="8">八月</asp:ListItem>
<asp:ListItem Value="9">九月</asp:ListItem>
<asp:ListItem Value="10">十月</asp:ListItem>
<asp:ListItem Value="11">十一月</asp:ListItem>
<asp:ListItem Value="12">十二月</asp:ListItem>
</asp:dropdownlist> 材料編號(hào)
<asp:textbox id="txProName" runat="server" Width="80px" ReadOnly="True"></asp:textbox><IMG style="CURSOR: hand" onclick="addBillDetail()" height="13" src="../Images/IconSearch.gif"
width="15" border="0"> 材料分類
<asp:textbox id="txProClassName" runat="server" Width="80px" ReadOnly="True"></asp:textbox><IMG style="CURSOR: hand" onclick="addProClass()" height="13" src="../Images/IconSearch.gif"
width="15" border="0"> 貨品類別
<asp:DropDownList id="ddlGoodsType" runat="server">
<asp:ListItem Value="0">原料</asp:ListItem>
<asp:ListItem Value="1">半成品</asp:ListItem>
<asp:ListItem Value="3">包材</asp:ListItem>
<asp:ListItem Value="4">易耗品</asp:ListItem>
</asp:DropDownList>
<asp:button id="btnSearch" runat="server" Text="查 詢"></asp:button></td>
</tr>
<tr>
<td align="center">
<table cellSpacing="2" cellPadding="3" width="98%" border="0">
<tr>
<td class="MainPageBar" width="65%" height="20">
<!-- background="../Images/bgtitle1.gif" bgcolor="#CCCCCC"--><strong><IMG height="15" src="../Images/OPENDOC.gif" width="20">統(tǒng)計(jì)結(jié)果
(金額單位:元)</strong></td>
</tr>
<tr vAlign="top">
<td align="center"><asp:datagrid id="dgProOfSell" runat="server" Width="100%" PageSize="1" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="2">
<Columns>
<asp:BoundColumn DataField="curYear" ReadOnly="True" HeaderText="年份"></asp:BoundColumn>
<asp:BoundColumn DataField="GoodsCode" ReadOnly="True" HeaderText="產(chǎn)品編號(hào)"></asp:BoundColumn>
<asp:BoundColumn DataField="goodsname" ReadOnly="True" HeaderText="產(chǎn)品名稱"></asp:BoundColumn>
<asp:BoundColumn DataField="sellnums" ReadOnly="True" HeaderText="當(dāng)期采購(gòu)量/上期采購(gòu)量"></asp:BoundColumn>
<asp:BoundColumn DataField="sellNumsMargin" ReadOnly="True" HeaderText="采購(gòu)差額"></asp:BoundColumn>
<asp:BoundColumn DataField="sellNumsRate" ReadOnly="True" HeaderText="比率(%)" DataFormatString="{0:F2}%"></asp:BoundColumn>
<asp:BoundColumn DataField="lastYear" ReadOnly="True" HeaderText="年份"></asp:BoundColumn>
<asp:BoundColumn DataField="sellMoney" ReadOnly="True" HeaderText="當(dāng)期金額/上期金額"></asp:BoundColumn>
<asp:BoundColumn DataField="sellMoneyMargin" ReadOnly="True" HeaderText="采購(gòu)差額"></asp:BoundColumn>
<asp:BoundColumn DataField="sellMoneyRate" ReadOnly="True" HeaderText="比率(%)" DataFormatString="{0:F2}%"></asp:BoundColumn>
</Columns>
<PagerStyle Visible="False" Mode="NumericPages"></PagerStyle>
</asp:datagrid><asp:textbox id="txProID" runat="server" Width="0px"></asp:textbox><asp:textbox id="txProClassID" runat="server" Width="0px"></asp:textbox>
</td>
</tr>
</table>
<table width="98%" align="center" border="0">
<tr>
<td align="left" width="50%"><FONT face="宋體"></FONT></td>
<td align="right" width="50%"><webdiyer:aspnetpager id="pager" runat="server"></webdiyer:aspnetpager></td>
</tr>
</table>
</td>
</tr>
</table>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -