Browse Source

合并代码提交

master
TML 4 years ago
parent
commit
f0918d05aa
  1. 31
      Controller/SCP_EXCEL_CONTROLLER.cs
  2. 2
      SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx
  3. 8
      SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.cs
  4. 41
      SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.designer.cs

31
Controller/SCP_EXCEL_CONTROLLER.cs

@ -71,6 +71,34 @@ namespace CK.SCP.Controller
}
return _ds;
}
public static DataSet GET_OTD_VendId_REPORT_EXECEL(List<SCP_OTD_EXPORT> p_lst)
{
DataSet _ds = new DataSet();
var _exportList = new List<SCP_OTD_VendId_REPORT_EXPORT>();
using (ScpEntities db = EntitiesFactory.CreateScpInstance())
{
p_lst.ForEach(itm =>
{
SCP_OTD_VendId_REPORT_EXPORT _entity = new SCP_OTD_VendId_REPORT_EXPORT();
_entity. = itm.AskBillNum;
_entity. = itm.VendId;
_entity. = itm.VendName;
_entity. = Convert.ToDateTime(itm.EndTime).ToString("yyyy/MM/dd");
_entity. = itm.AskQty.ToString();
_entity. = itm.ArriveQty.ToString();
_entity. = itm.Qty.ToString();
_entity. = itm.NntimelyQty.ToString();
_entity. = itm.OTD.ToString();
_entity. = itm.ArriveOTD.ToString();
_exportList.Add(_entity);
});
var _dt = ConvertHelper.ToDataTable(_exportList);
_ds.Tables.Add(_dt);
}
return _ds;
}
public static List<SCP_PO_DETAIL_EXPORT_MODEL> GET_PO_EXECEL_Model(List<string> p_lst, bool p_IsDetail = false)
{
@ -113,9 +141,6 @@ namespace CK.SCP.Controller
po_detail. = itm.DockCode;
po_detail. = itm.ProjectId;
po_detail. = string.Empty;
po_detail. = "0";
po_detail. = "0";
po_detail. = "0";
_exportDetailList.Add(po_detail);
});

2
SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx

@ -22,7 +22,7 @@
<f:Toolbar ID="Toolbar2" runat="server">
<Items>
<f:ToolbarSeparator runat="server" />
<f:Button ID="Button3" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload" OnClientClick="location.reload();">
<f:Button ID="Button3" runat="server" EnablePostBack="True" Text="刷新" Icon="Add" OnClientClick="location.reload();">
</f:Button>

8
SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.cs

@ -49,7 +49,7 @@ namespace SCP.WarehouseData
public void BindData()
{
var _entity = new V_TB_RECEIVE();
_entity.RecvBillNum=txtReceiveBill.Text;//单据号
_entity.RecvBillNum = txtReceiveBill.Text;//单据号
_entity.ErpRecvBillNum = txtErpBill.Text;//ERP单据号
if (!string.IsNullOrEmpty(ddl.SelectedValue))
{
@ -103,9 +103,9 @@ namespace SCP.WarehouseData
{
if (ret.State == ReturnStatus.Succeed)
{
Grid_V_TB_RECEIVE.RecordCount =ret.Result.Count();
var _list= SortAndPage(ret.Result, Grid_V_TB_RECEIVE);
Grid_V_TB_RECEIVE.DataSource =_list;
Grid_V_TB_RECEIVE.RecordCount = ret.Result.Count();
var _list = SortAndPage(ret.Result, Grid_V_TB_RECEIVE);
Grid_V_TB_RECEIVE.DataSource = _list;
Grid_V_TB_RECEIVE.DataBind();
}
});

41
SCP/Views/WarehouseData/SCP_RECEIVE_VIEW.aspx.designer.cs

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace SCP.WarehouseData {
namespace SCP.WarehouseData
{
public partial class SCP_RECEIVE_VIEW {
public partial class SCP_RECEIVE_VIEW
{
/// <summary>
/// form1 控件。
@ -103,22 +105,31 @@ namespace SCP.WarehouseData {
protected global::FineUI.DropDownList ddl;
/// <summary>
/// txtReceiveBill 控件。
/// txtSupplier 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox txtReceiveBill;
protected global::FineUI.TextBox txtSupplier;
/// <summary>
/// txtSupplier 控件。
/// txtErpBill 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox txtSupplier;
protected global::FineUI.TextBox txtErpBill;
/// <summary>
/// txtReceiveBill 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.TextBox txtReceiveBill;
/// <summary>
/// txtPO 控件。
@ -138,6 +149,24 @@ namespace SCP.WarehouseData {
/// </remarks>
protected global::FineUI.TextBox AsnBillNum;
/// <summary>
/// txtShipTimeStar 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.DatePicker txtShipTimeStar;
/// <summary>
/// txtShipTimeEnd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUI.DatePicker txtShipTimeEnd;
/// <summary>
/// OperName 控件。
/// </summary>

Loading…
Cancel
Save