Browse Source

报表页面调整 以及逻辑优化

master
qian 10 months ago
parent
commit
f7b75380a3
  1. 21
      北京北汽/SCP/Views/PlanData/SCP_TB_ASK_DETAIL_PO.aspx
  2. 14
      北京北汽/SCP/Views/PlanData/SCP_TB_ASK_DETAIL_PO.aspx.cs
  3. 18
      北京北汽/SCP/Views/PlanData/SCP_TB_ASK_DETAIL_PO.aspx.designer.cs

21
北京北汽/SCP/Views/PlanData/SCP_TB_ASK_DETAIL_PO.aspx

@ -10,10 +10,22 @@
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<f:PageManager runat="server" AutoSizePanelID="Panel1" /> <f:PageManager runat="server" AutoSizePanelID="Panel1" />
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> <f:Panel ID="Panel1" runat="server" Title="" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start" >
<Items> <Items>
<f:Button ID="Button1" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload" OnClientClick="location.reload();"/>
<f:Form runat="server">
<Toolbars>
<f:Toolbar ID="Toolbar1" runat="server">
<Items>
<f:Button ID="Button1" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload" OnClientClick="location.reload();" />
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:GroupPanel runat="server" ID="gp1" Layout="HBox">
<Items>
<f:Form runat="server" Title=""> <f:Form runat="server" Title="">
<Items> <Items>
<f:FormRow runat="server" ColumnWidths="15% 15% 15% 15% "> <f:FormRow runat="server" ColumnWidths="15% 15% 15% 15% ">
@ -45,8 +57,11 @@
</f:FormRow> </f:FormRow>
</Items> </Items>
</f:Form> </f:Form>
</Items>
</f:GroupPanel>
<f:Grid ID="Grid_V_TB_ASK_DETAIL_PO" ShowBorder="true" ShowHeader="true" PageSize="15" BoxFlex="1" CssClass="maingrid" <f:Grid ID="Grid_V_TB_ASK_DETAIL_PO" ShowBorder="true" ShowHeader="true" BoxFlex="1" CssClass="maingrid"
runat="server" DataKeyNames="UID,PoBillNum,ModType_DESC,AskBillNum,VendName,VendId,BeginTime,PoLine,PartCode,PartDesc,VendPartCode,PoUnit,Price,AskQty,ShippedQty,ReceivedQty,ArriveQty,EndTime,Site_Desc,Buyer,BuyerPhone" runat="server" DataKeyNames="UID,PoBillNum,ModType_DESC,AskBillNum,VendName,VendId,BeginTime,PoLine,PartCode,PartDesc,VendPartCode,PoUnit,Price,AskQty,ShippedQty,ReceivedQty,ArriveQty,EndTime,Site_Desc,Buyer,BuyerPhone"
IsDatabasePaging="True" AllowPaging="True" IsDatabasePaging="True" AllowPaging="True"
EnableRowSelectEvent="True" AutoScroll="True" EnableRowSelectEvent="True" AutoScroll="True"

14
北京北汽/SCP/Views/PlanData/SCP_TB_ASK_DETAIL_PO.aspx.cs

@ -40,7 +40,7 @@ namespace SCP.PlanData
} }
else else
{ {
_entity.TimeBegin = DateTime.Now.AddYears(-1); _entity.TimeBegin = DateTime.Now.AddMonths(-3);
} }
if (TimeEnd.SelectedDate != null) if (TimeEnd.SelectedDate != null)
{ {
@ -65,8 +65,20 @@ namespace SCP.PlanData
_entity.UserInAddress = CurrentUser.FactoryList; _entity.UserInAddress = CurrentUser.FactoryList;
if (CurrentUser.VenderList != null && CurrentUser.VenderList.Count > 0) if (CurrentUser.VenderList != null && CurrentUser.VenderList.Count > 0)
{ {
if (User.Identity.Name == "admin")
{
_entity.TimeBegin = DateTime.Now.AddMonths(-3);
_entity.TimeEnd = DateTime.Now;
}
_entity.UserName = User.Identity.Name; _entity.UserName = User.Identity.Name;
} }
else
{
Alert.Show("您的账号下未绑定供应商账号,请绑定供应商账号");
return list;
}
//_entity.UserInSubSite = CurrentUser.SubSiteList; //_entity.UserInSubSite = CurrentUser.SubSiteList;
#endregion #endregion
list = SCP_ASK_CONTROLLER.Get_V_TB_ASK_DETAIL_PO_List(_entity); list = SCP_ASK_CONTROLLER.Get_V_TB_ASK_DETAIL_PO_List(_entity);

18
北京北汽/SCP/Views/PlanData/SCP_TB_ASK_DETAIL_PO.aspx.designer.cs

@ -32,6 +32,15 @@ namespace SCP.PlanData
/// </remarks> /// </remarks>
protected global::FineUI.Panel Panel1; protected global::FineUI.Panel Panel1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.Toolbar Toolbar1;
/// <summary> /// <summary>
/// Button1 控件。 /// Button1 控件。
/// </summary> /// </summary>
@ -41,6 +50,15 @@ namespace SCP.PlanData
/// </remarks> /// </remarks>
protected global::FineUI.Button Button1; protected global::FineUI.Button Button1;
/// <summary>
/// gp1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.GroupPanel gp1;
/// <summary> /// <summary>
/// TXT_PoBillNum 控件。 /// TXT_PoBillNum 控件。
/// </summary> /// </summary>

Loading…
Cancel
Save