学 赵
4 years ago
28 changed files with 0 additions and 3864 deletions
@ -1,88 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_QUALITY_CREATE.aspx.cs" Inherits="SCP.Views.Quality.SCP_QUALITY_CREATE" %> |
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Toolbars> |
|
||||
<f:Toolbar ID="Toolbar2" runat="server"> |
|
||||
<Items> |
|
||||
<f:Button ID="btnRelease" runat="server" EnablePostBack="True" OnClick="btnRelease_Click" Text="生成不合格记录" Icon="CssAdd" OnClientClick="if(!confirm('是否要生成不合格单据?'))return false;"> |
|
||||
</f:Button> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
<Items> |
|
||||
<f:Form runat="server" Title="" Margin="5"> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" ColumnWidths="100%"> |
|
||||
<Items> |
|
||||
<f:TextBox runat = "server" Label = "发货单号" EmptyText = "" ID = "TXT_AsnBillNum" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:Button runat="server" ID="btnQuery" Text="查询" OnClick="btnQuery_Click"></f:Button> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
|
|
||||
<f:Grid ID="Grid_V_TB_ASN_DETAIL" ShowBorder="true" ShowHeader="true" PageSize="1000" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" DataKeyNames="UID,PoBillNum,PoLine,PartCode,AsnBillNum,Batch,VendId" |
|
||||
IsDatabasePaging="True" AllowPaging="True" |
|
||||
EnableRowSelectEvent="True" AutoScroll="True" |
|
||||
SortField="PartCode" SortDirection="DESC" |
|
||||
AllowCellEditing="true" ClicksToEdit="2" |
|
||||
OnPageIndexChange="Grid_V_TB_ASN_DETAIL_PageIndexChange"> |
|
||||
|
|
||||
<Columns> |
|
||||
|
|
||||
<f:BoundField Width = "80px" DataField = "AsnBillNum" DataFormatString = "{0}" HeaderText = "发货单号" /> |
|
||||
<f:BoundField Width = "80px" DataField = "PackQty" DataFormatString = "{0:F}" HeaderText = "标包数量" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartCode" DataFormatString = "{0}" HeaderText = "零件编号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartDesc1" DataFormatString = "{0}" HeaderText = "零件名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Batch" DataFormatString = "{0}" HeaderText = "供应商批次" /> |
|
||||
<f:BoundField Width = "100px" DataField = "VendBatch" DataFormatString = "{0}" HeaderText = "批次" /> |
|
||||
<f:BoundField Width = "50px" DataField = "PoUnit" DataFormatString = "{0}" HeaderText = "单位" /> |
|
||||
<f:RenderField Width="100px" ColumnID="Failqty" DataField="Failqty" FieldType="Float" |
|
||||
HeaderText="不合格数量"> |
|
||||
<Editor> |
|
||||
<f:NumberBox ID="NB_PublishNum" runat="server" MinValue="0" |
|
||||
MaxValue="99999999" DecimalPrecision="3" > |
|
||||
</f:NumberBox> |
|
||||
</Editor> |
|
||||
</f:RenderField> |
|
||||
<f:RenderField Width="100px" ColumnID="FailReason" DataField="FailReason" FieldType="String" HeaderText="不合格原因"> |
|
||||
<Editor> |
|
||||
|
|
||||
<f:DropDownList ID="fail" Required="true" runat="server" EnableMultiSelect="true"> |
|
||||
|
|
||||
<f:ListItem Text="成分" Value="成分" /> |
|
||||
<f:ListItem Text="颜色" Value="颜色" /> |
|
||||
<f:ListItem Text="新能" Value="新能" /> |
|
||||
<f:ListItem Text="包装" Value="包装" /> |
|
||||
<f:ListItem Text="其他" Value="其他" /> |
|
||||
</f:DropDownList> |
|
||||
</Editor> |
|
||||
</f:RenderField> |
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
|
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
|
|
||||
<f:HiddenField ID="highlightRows" runat="server"> |
|
||||
</f:HiddenField> |
|
||||
|
|
||||
</form> |
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
@ -1,109 +0,0 @@ |
|||||
using CK.SCP.Controller; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Utils; |
|
||||
using FineUI; |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
|
|
||||
namespace SCP.Views.Quality |
|
||||
{ |
|
||||
public partial class SCP_QUALITY_CREATE : PageBase |
|
||||
{ |
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
} |
|
||||
public void SearchV_TB_ASN_DETAILData(Action<IQueryable<V_TB_ASN_DETAIL>> p_action) |
|
||||
{ |
|
||||
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
|
||||
//_entity.AskBillNum = "";
|
|
||||
_entity.AsnBillNum =!string.IsNullOrEmpty(TXT_AsnBillNum.Text)? TXT_AsnBillNum.Text:"9999999"; |
|
||||
SCP_ASN_CONTROLLER.Get_V_TB_ASN_DETAIL_List(_entity, (_ret) => { |
|
||||
if (_ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(_ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
/// <summary>
|
|
||||
/// 绑定明细
|
|
||||
/// </summary>
|
|
||||
public void BindDetail() |
|
||||
{ |
|
||||
SearchV_TB_ASN_DETAILData((ret) => { |
|
||||
Grid_V_TB_ASN_DETAIL.RecordCount = ret.Count(); |
|
||||
var list = SortAndPage<V_TB_ASN_DETAIL>(ret, Grid_V_TB_ASN_DETAIL); |
|
||||
var ls = list.ToList(); |
|
||||
Grid_V_TB_ASN_DETAIL.DataSource = ls; |
|
||||
Grid_V_TB_ASN_DETAIL.DataBind(); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void Grid_V_TB_ASN_DETAIL_PageIndexChange(object sender, FineUI.GridPageEventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
protected void btnRelease_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
List<V_TB_ASN_DETAIL> _list = new List<V_TB_ASN_DETAIL>(); |
|
||||
Dictionary<int, Dictionary<string, object>> modifiedDict = Grid_V_TB_ASN_DETAIL.GetModifiedDict(); |
|
||||
for (int i = 0, count = Grid_V_TB_ASN_DETAIL.Rows.Count; i < count; i++) |
|
||||
{ |
|
||||
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
|
||||
object[] rowDataKeys = Grid_V_TB_ASN_DETAIL.DataKeys[i]; |
|
||||
_entity.UID = ConvertHelper.To<long>(rowDataKeys[0]); |
|
||||
_entity.PoBillNum = rowDataKeys[1] as string; |
|
||||
_entity.PoLine = ConvertHelper.To<Int32>(rowDataKeys[2]); |
|
||||
_entity.PartCode = rowDataKeys[3] as string; |
|
||||
_entity.AsnBillNum = rowDataKeys[4] as string; |
|
||||
_entity.Batch = rowDataKeys[5] as string; |
|
||||
_entity.VendId= rowDataKeys[6] as string; |
|
||||
|
|
||||
if (modifiedDict.Keys.Contains(i)) |
|
||||
{ |
|
||||
var modifyValue = modifiedDict[i]; |
|
||||
var _FailQty = modifyValue.Keys.Contains("Failqty") ? modifyValue["Failqty"] : 0; |
|
||||
var _FailReason = modifyValue.Keys.Contains("FailReason") ? modifyValue["FailReason"] : string.Empty; |
|
||||
_entity.FailQty = ConvertHelper.To<decimal>(_FailQty); |
|
||||
_entity.FailReason =_FailReason.ToString(); |
|
||||
_list.Add(_entity); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
|
|
||||
} |
|
||||
var ret = SCP_QUALITY_CONTROLLER.Save_ASN_TO_QUALITY(_list, CurrentUser.ChineseName); |
|
||||
if (ret.Result == true) |
|
||||
{ |
|
||||
Alert.Show("添加不合格品信息成功!"); |
|
||||
} |
|
||||
//var ret = SCP_ASK_CONTROLLER.Save_ASK_TO_ASN(_model, _askDetaillist, TXT_PlateNumber.Text, CurrentUser.ChineseName, CurrentUser.CellPhone);
|
|
||||
//if (ret.State == ReturnStatus.Succeed)
|
|
||||
//{
|
|
||||
// Alert.Show("生成发货单成功!");
|
|
||||
// GetV_TB_POData();
|
|
||||
// BindDetail();
|
|
||||
//}
|
|
||||
} |
|
||||
|
|
||||
protected void btnQuery_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
} |
|
||||
} |
|
@ -1,105 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.Views.Quality { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_QUALITY_CREATE { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Toolbar2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Toolbar Toolbar2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnRelease 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnRelease; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_AsnBillNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_AsnBillNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnQuery 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnQuery; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_V_TB_ASN_DETAIL 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_V_TB_ASN_DETAIL; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// NB_PublishNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.NumberBox NB_PublishNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// fail 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList fail; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// highlightRows 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.HiddenField highlightRows; |
|
||||
} |
|
||||
} |
|
@ -1,109 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_QUALITY_MANAGER.aspx.cs" Inherits="SCP.Views.Quality.SCP_QUALITY_MANAGER" %> |
|
||||
|
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" ID="pmg1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Toolbars> |
|
||||
<f:Toolbar ID="Toolbar2" runat="server"> |
|
||||
<Items> |
|
||||
<f:Button runat="server" ID="btnNew" Text="新建" OnClick="btnNew_Click" Icon="Add"></f:Button> |
|
||||
<f:Button ID="btnOutput" runat="server" Text="导出" OnClick="btnOutput_Click" Icon="PageExcel"> |
|
||||
</f:Button> |
|
||||
<f:Button runat="server" ID="btnDelete" Text="删除" OnClick="btnDelete_Click" Icon="Delete"></f:Button> |
|
||||
<f:Button runat="server" ID="btnSQE" Text="供应商质量统计" OnClick="btnSQE_Click" Icon="Report"></f:Button> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
<Items> |
|
||||
<f:Form runat="server" Title=""> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25%" ID="FormRow1"> |
|
||||
<Items> |
|
||||
<f:TextBox ID="TXT_Code" runat="server" Label="质检单号"/> |
|
||||
<f:TextBox ID="TXT_AsnBill" runat="server" Label="发货单号"/> |
|
||||
<f:TextBox ID="TXT_PoBillNum" runat="server" Label="订单编号"/> |
|
||||
<f:TextBox ID="TXT_PageCode" runat="server" Label="包装箱号"/> |
|
||||
|
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25%" ID="FormRow_1"> |
|
||||
<Items> |
|
||||
<f:DropDownList ID="TXT_Vendid" runat="server" Label="供应商编码" EnableMultiSelect="false" EnableEdit="true"></f:DropDownList> |
|
||||
<f:TextBox ID="TXT_PartCode" runat="server" Label="零件编号" /> |
|
||||
<f:TextBox ID="TXT_Batch" runat="server" Label="批次" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_3" > |
|
||||
<Items> |
|
||||
<f:Button runat="server" ID="btnQuery" Text="查询" OnClick="btnQuery_Click"></f:Button> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
<f:Grid ID = "Grid_TB_QUALITY" Title = "质量列表" |
|
||||
EnableCollapse = "true" |
|
||||
ShowBorder = "true" |
|
||||
ShowHeader = "true" |
|
||||
runat ="server" |
|
||||
EnableCheckBoxSelect = "true" |
|
||||
DataKeyNames = "UID,Type,Barcode,Loccode,Pobillnum,Poline,Inspecttype,Partcode,Batch,ReceiveQty,SampleQty,Inspqty,Passqty,Failqty,Crackqty,Inspresult,Failreason,Vendid,Vendbatch,state,Billtime,Domain,Site,By1,By2,By3,CreateTime,CreateUser,UpdateTime,UpdateUser,UpdateInfo,IsDeleted,GUID,UserInAddress,UserInVendIds,BillStateList" |
|
||||
PageSize="100" |
|
||||
IsDatabasePaging="true" AllowPaging="true" |
|
||||
AutoScroll="True" |
|
||||
SortDirection="DESC" SortField="Billtime" |
|
||||
> |
|
||||
<PageItems> |
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator2" runat="server"> |
|
||||
</f:ToolbarSeparator> |
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:"> |
|
||||
</f:ToolbarText> |
|
||||
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged" |
|
||||
runat="server"> |
|
||||
<f:ListItem Text="100" Value="100" /> |
|
||||
<f:ListItem Text="200" Value="200" /> |
|
||||
</f:DropDownList> |
|
||||
</PageItems> |
|
||||
<Columns> |
|
||||
|
|
||||
<f:BoundField Width = "100px" DataField = "UID" HeaderText = "" Hidden="true"/> |
|
||||
<f:BoundField Width = "100px" DataField = "QualityNo" HeaderText = "检验单据号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "By1" HeaderText = "发货单号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Barcode" HeaderText = "箱码" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Pobillnum" HeaderText = "订单号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Poline" HeaderText = "订单行" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Partcode" HeaderText = "零件编号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "VendName" HeaderText = "供应商名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartDesc1" HeaderText = "零件名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartDesc2" HeaderText = "零件名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Batch" DataFormatString = "{0}" HeaderText = "批次" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Failqty" DataFormatString = "{0:F}" HeaderText = "不合格数" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Failreason" DataFormatString = "{0}" HeaderText = "不合格原因" /> |
|
||||
|
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
<f:Window runat="server" ID="Window1" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="创建质量评审" Target="Parent" EnableIFrame="true" CloseAction="HidePostBack" |
|
||||
IFrameUrl="about:blank" Height="600px" Width="1024px" AutoScroll="True" OnClose="Window1_Close" /> |
|
||||
<f:Window ID="WindowUpload" runat="server" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" |
|
||||
IFrameUrl="about:blank" Height="200px" Width="400px"> |
|
||||
|
|
||||
</f:Window> |
|
||||
<f:HiddenField runat="server" ID ="TXT_State"></f:HiddenField> |
|
||||
</form> |
|
||||
|
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
||||
|
|
@ -1,143 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Linq.Expressions; |
|
||||
using System.Web; |
|
||||
using System.Web.Security; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
using CK.SCP.Models.AppBoxEntity; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Controller; |
|
||||
using FineUI; |
|
||||
using SCP.Code; |
|
||||
|
|
||||
namespace SCP.Views.Quality |
|
||||
{ |
|
||||
public partial class SCP_QUALITY_MANAGER : PageBase |
|
||||
{ |
|
||||
|
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!Page.IsPostBack) |
|
||||
{ |
|
||||
Bind(); |
|
||||
BindVender(TXT_Vendid); |
|
||||
} |
|
||||
} |
|
||||
public void Bind() |
|
||||
{ |
|
||||
Search((result) => { |
|
||||
Grid_TB_QUALITY.RecordCount = result.Count(); |
|
||||
var list = SortAndPage<V_TB_QUALITY>(result, Grid_TB_QUALITY); |
|
||||
Grid_TB_QUALITY.DataSource = list; |
|
||||
Grid_TB_QUALITY.DataBind(); |
|
||||
}); |
|
||||
} |
|
||||
public void Search(Action<IQueryable<V_TB_QUALITY>> p_action) |
|
||||
{ |
|
||||
V_TB_QUALITY _entity = new V_TB_QUALITY(); |
|
||||
_entity.Pobillnum = TXT_PoBillNum.Text; |
|
||||
_entity.Barcode = TXT_PageCode.Text; |
|
||||
_entity.Partcode = TXT_PartCode.Text; |
|
||||
_entity.By1 = TXT_AsnBill.Text; |
|
||||
_entity.Vendid = TXT_Vendid.SelectedValue; |
|
||||
_entity.Batch = TXT_Batch.Text; |
|
||||
_entity.IsDeleted = false; |
|
||||
_entity.UserInAddress = CurrentUser.FactoryList; |
|
||||
_entity.UserInVendIds = CurrentUser.VenderList; |
|
||||
SCP_QUALITY_CONTROLLER.Get_TB_QUALITY_List(_entity, (_ret) => { |
|
||||
if (_ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(_ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void btnOutput_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
Search((rs) => { |
|
||||
Dictionary<string, string> cellheader = new Dictionary<string, string>(); |
|
||||
cellheader.Add("Type_Desc", "检验类型"); |
|
||||
cellheader.Add("Barcode", "箱码"); |
|
||||
cellheader.Add("Pobillnum", "订单编号"); |
|
||||
cellheader.Add("Poline", "订单行号"); |
|
||||
cellheader.Add("Partcode", "零件编码"); |
|
||||
cellheader.Add("Batch", "发货批次"); |
|
||||
cellheader.Add("Failqty", "不合格数"); |
|
||||
cellheader.Add("Failreason", "不合格原因"); |
|
||||
cellheader.Add("Vendbatch", "供应商批次"); |
|
||||
cellheader.Add("Billtime", "检查日期"); |
|
||||
cellheader.Add("PartDesc1", "零件名1"); |
|
||||
cellheader.Add("PartDesc2", "零件名2"); |
|
||||
cellheader.Add("ProjectId", "项目名称"); |
|
||||
cellheader.Add("Qlevel", "质检等级"); |
|
||||
cellheader.Add("VendName", "供应商名称"); |
|
||||
string url = EntityListToExcel2003(cellheader, rs.ToList(), "质量不合格零件导出"); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void btnQuery_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
Bind(); |
|
||||
} |
|
||||
|
|
||||
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
|
||||
{ |
|
||||
Bind(); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
protected void btnSave_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected void btnDelete_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (Grid_TB_QUALITY.SelectedRowIndexArray.Count() == 0) |
|
||||
{ |
|
||||
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); |
|
||||
return; |
|
||||
} |
|
||||
List<TB_QUALITY> _ls = new List<TB_QUALITY>(); |
|
||||
for (int i = 0, count = Grid_TB_QUALITY.Rows.Count; i < count; i++) |
|
||||
{ |
|
||||
if (Grid_TB_QUALITY.SelectedRowIndexArray.Contains(i)) |
|
||||
{ |
|
||||
object[] rowDataKeys = Grid_TB_QUALITY.DataKeys[i]; |
|
||||
var _entity = new TB_QUALITY(); |
|
||||
_entity.UID = long.Parse(rowDataKeys[0].ToString()) ; |
|
||||
_ls.Add(_entity); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
var _ret = SCP_QUALITY_CONTROLLER.Del_TB_QUALITY(_ls); |
|
||||
if (_ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
Bind(); |
|
||||
Alert.Show("删除不合格评审成功!"); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
protected void btnNew_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference("../Quality/SCP_QUALITY_CREATE.aspx")); |
|
||||
} |
|
||||
|
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e) |
|
||||
{ |
|
||||
Bind(); |
|
||||
} |
|
||||
|
|
||||
protected void btnSQE_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference("../Quality/SCP_SQE.aspx")); |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,249 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.Views.Quality { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_QUALITY_MANAGER { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// pmg1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.PageManager pmg1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Toolbar2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Toolbar Toolbar2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnNew 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnNew; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnOutput 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnOutput; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnDelete 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnDelete; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnSQE 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnSQE; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_Code 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_Code; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_AsnBill 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_AsnBill; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_PoBillNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_PoBillNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_PageCode 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_PageCode; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow_1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow_1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_Vendid 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList TXT_Vendid; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_PartCode 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_PartCode; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_Batch 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_Batch; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow_3 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow_3; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnQuery 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnQuery; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_TB_QUALITY 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_TB_QUALITY; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarSeparator2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarSeparator ToolbarSeparator2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarText1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarText ToolbarText1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ddlGridPageSize 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList ddlGridPageSize; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Window1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window Window1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// WindowUpload 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window WindowUpload; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_State 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.HiddenField TXT_State; |
|
||||
} |
|
||||
} |
|
@ -1,149 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_REJECT_LIST.aspx.cs" Inherits="SCP.Quality.RejectList" %> |
|
||||
|
|
||||
<%@ Import Namespace="CK.SCP.Utils" %> |
|
||||
<%@ Import Namespace="CK.SCP.Models.Enums" %> |
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
||||
<title></title> |
|
||||
<style> |
|
||||
.totalpanel .x-panel-body { |
|
||||
border-top-width: 0 !important; |
|
||||
} |
|
||||
</style> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Items> |
|
||||
<f:Form runat="server"> |
|
||||
<Toolbars> |
|
||||
<f:Toolbar ID="Toolbar2" runat="server"> |
|
||||
<Items> |
|
||||
<f:Button ID="Button1" runat="server" EnablePostBack="True" Text="刷新" Icon="Add" OnClientClick="location.reload();"> |
|
||||
</f:Button> |
|
||||
<%-- <f:Button ID="btnCreate" runat="server" EnablePostBack="True" Text="生成发票" OnClick="btnCreate_OnClick" Icon="Add"> |
|
||||
</f:Button>--%> |
|
||||
<%--<f:Button ID="btn" runat="server" EnablePostBack="True" Text="补开发票" Icon="Add" Hidden="true"> |
|
||||
</f:Button>--%> |
|
||||
<f:Button ID="Button2" runat="server" EnablePostBack="True" Text="导出" Icon="Add" OnClick="btnOutput_OnClick"> |
|
||||
</f:Button> |
|
||||
<f:Button ID="btnCanIn" runat="server" EnablePostBack="True" Text="只看可开票零件" Icon="Zoom" OnClick="btnCanIn_Click" Hidden="true"> |
|
||||
</f:Button> |
|
||||
<f:Button ID="btnSave" runat="server" EnablePostBack="True" Text="保存" Icon="Accept" OnClick="btnSave_Click"> |
|
||||
</f:Button> |
|
||||
|
|
||||
|
|
||||
<f:Button ID="btnShow" runat="server" Text="查询面板" OnClick="btnShow_Click"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarFill runat="server" Hidden="true"/> |
|
||||
<f:TextBox ID="tb_RecvBillNum" runat="server" Label="单据号" Hidden="true"/> |
|
||||
<f:Button ID="btn_Search" runat="server" EnablePostBack="True" Text="快速查找" OnClick="btnSearch_Click" Hidden="true"></f:Button> |
|
||||
<f:TextBox runat="server" Label="供应商税率" ID="lbTaxRate" Readonly="true" Enabled="false" Hidden="true"></f:TextBox> |
|
||||
|
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
</f:Form> |
|
||||
<f:GroupPanel runat="server" ID="gp1" Hidden="true" Layout="HBox" > |
|
||||
<Items> |
|
||||
<f:Form runat="server" > |
|
||||
<Rows> |
|
||||
<f:FormRow runat="server" ID="FormRow_1"> |
|
||||
<Items> |
|
||||
<f:TextBox runat = "server" Label = "订单编号" EmptyText = "" ID = "TXT_BillNo" /> |
|
||||
<f:TextBox runat = "server" Label = "发货单号" EmptyText = "" ID = "TXT_ASNBill" /> |
|
||||
<f:TextBox runat = "server" Label = "供应商名称" EmptyText = "" ID = "TXT_VendName" /> |
|
||||
<f:TextBox runat = "server" Label = "供应商编号" EmptyText = "" ID = "TXT_VendId" /> |
|
||||
|
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
|
|
||||
<f:FormRow runat="server" ID="FormRow_2"> |
|
||||
<Items> |
|
||||
<f:TextBox runat = "server" Label = "项目编号" EmptyText = "" ID = "TXT_ProjectId" /> |
|
||||
<f:TextBox runat = "server" Label = "零件编号" EmptyText = "" ID = "TXT_PartCode" /> |
|
||||
<f:DatePicker runat="server" Required ="true" DateFormatString="yyyy-MM-dd" Label="收货日期" EmptyText="请选择日期" ID="DP_StartDate" /> |
|
||||
<f:DatePicker runat="server" Required ="true" DateFormatString="yyyy-MM-dd" EmptyText="请选择日期" Label="至" ID="Date_EndDate" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ID="FormRow_3"> |
|
||||
<Items> |
|
||||
<f:Button runat="server" Text="关闭" ID="BtnClose" OnClick="BtnClose_Click"></f:Button> |
|
||||
<f:Button ID="BtnSearch" runat="server" OnClick="BtnSearch_Click" Text="快速查找"> |
|
||||
</f:Button> |
|
||||
|
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Rows> |
|
||||
</f:Form> |
|
||||
|
|
||||
</Items> |
|
||||
</f:GroupPanel> |
|
||||
<f:Grid ID="Grid_V_TB_RECEIVE_LIST" ShowBorder="true" ShowHeader="true" PageSize="20" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" DataKeyNames="UID" IsDatabasePaging="true" AllowPaging="True" SortDirection="DESC" SortField="CreateTime" |
|
||||
AutoScroll="True" OnPageIndexChange="Grid_V_TB_RECEIVE_LIST_PageIndexChange" EnableCheckBoxSelect = "true" OnRowDataBound="Grid_V_TB_RECEIVE_LIST_RowDataBound" > |
|
||||
<PageItems> |
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server"> |
|
||||
</f:ToolbarSeparator> |
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:"> |
|
||||
</f:ToolbarText> |
|
||||
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_OnSelectedIndexChanged" |
|
||||
runat="server"> |
|
||||
|
|
||||
<f:ListItem Text="50" Value="50" /> |
|
||||
<f:ListItem Text="100" Value="100" /> |
|
||||
</f:DropDownList> |
|
||||
</PageItems> |
|
||||
<Columns> |
|
||||
|
|
||||
|
|
||||
<f:BoundField runat="server" HeaderText="项目编码" DataField="ProjectId" width="80" Hidden="true"/> |
|
||||
<f:BoundField runat="server" HeaderText="单据类型" ColumnID="BillType_DESC" DataField="BillType_DESC" width="80" Hidden="true"/> |
|
||||
<f:BoundField runat="server" HeaderText="单据号" ColumnID="RecvBillNum" DataField="RecvBillNum" width="80" /> |
|
||||
<f:TemplateField HeaderText="质检单号" ColumnID="Remark" width="150"> |
|
||||
<ItemTemplate> |
|
||||
<asp:TextBox runat="server" ID="Remark" Text='<%# Eval("Remark") %>' width="140"></asp:TextBox> |
|
||||
</ItemTemplate> |
|
||||
</f:TemplateField> |
|
||||
|
|
||||
|
|
||||
<f:TemplateField HeaderText="发货单号" ColumnID="AsnBillNum" width="150" Hidden="true"> |
|
||||
<ItemTemplate> |
|
||||
<asp:TextBox runat="server" ID="AsnBillNum" Text='<%# Eval("AsnBillNum") %>' width="140"></asp:TextBox> |
|
||||
</ItemTemplate> |
|
||||
</f:TemplateField> |
|
||||
|
|
||||
<%--<f:BoundField runat="server" HeaderText="发货单号" ColumnID="AsnBillNum" DataField="AsnBillNum" width="80"/>--%> |
|
||||
<f:BoundField runat="server" HeaderText="供应商" ColumnID="VendName" DataField="VendName" /> |
|
||||
<f:BoundField runat="server" HeaderText="供应商编码" DataField="VendId" width="80"/> |
|
||||
<f:BoundField runat="server" HeaderText="订单号" ColumnID="" DataField="PoBillNum" width="80"/> |
|
||||
<f:BoundField runat="server" HeaderText="订单行" ColumnID="" DataField="PoLine" width="50" /> |
|
||||
<%--<f:BoundField runat="server" HeaderText="单价" ColumnID="" DataField="Price" width="80" Hidden="true"/>--%> |
|
||||
<f:BoundField runat="server" HeaderText="退货数量" ColumnID="" DataField="Qty" width="80"/> |
|
||||
<f:BoundField runat="server" HeaderText="零件号" ColumnID="" DataField="PartCode" width="80"/> |
|
||||
<f:BoundField runat="server" HeaderText="零件名称" ColumnID="" DataField="PartDesc1" /> |
|
||||
<f:BoundField runat="server" HeaderText="单位" ColumnID="" DataField="LocUnit" width="50"/> |
|
||||
<f:BoundField runat="server" HeaderText="币种" ColumnID="" DataField="Currency" width="50" Hidden="true"/> |
|
||||
|
|
||||
<f:BoundField runat="server" HeaderText="要货日期" ColumnID="" DataField="BeginTime" Hidden="true"/> |
|
||||
<f:BoundField runat="server" HeaderText="收货时间" ColumnID="" DataField="CreateTime" DataFormatString="{0:yyyy-MM-dd}" /> |
|
||||
|
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
|
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
<f:Window runat="server" ID="Window1" Hidden="True" Height="600px" Width="1024px" AutoScroll="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="明细详情" Target="Parent" EnableIFrame="true" |
|
||||
IFrameUrl="about:blank" /> |
|
||||
</form> |
|
||||
|
|
||||
|
|
||||
</script> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,333 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Linq.Expressions; |
|
||||
using System.Web; |
|
||||
using System.Web.Security; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
using CK.SCP.Models.AppBoxEntity; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Controller; |
|
||||
using FineUI; |
|
||||
using SCP.Code; |
|
||||
using System.Drawing; |
|
||||
using CK.SCP.Utils; |
|
||||
using CK.SCP.Models.Enums; |
|
||||
|
|
||||
namespace SCP.Quality |
|
||||
{ |
|
||||
public partial class RejectList : PageBase |
|
||||
{ |
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
IsRoleRight(); |
|
||||
|
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
|
|
||||
LoadData(); |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
public void IsRoleRight() |
|
||||
{ |
|
||||
if (!CurrentUser.RoleList.Contains("供应商")) |
|
||||
{ |
|
||||
btnSave.Hidden = true; |
|
||||
} |
|
||||
//else
|
|
||||
//{
|
|
||||
// if (CurrentUser.RoleList.Contains("采购人员"))
|
|
||||
// {
|
|
||||
// Alert.Show("当前用户角色不能操作该模块!");
|
|
||||
// return;
|
|
||||
// }
|
|
||||
//}
|
|
||||
//if (CurrentUser.VenderList == null || CurrentUser.VenderList.Count == 0)
|
|
||||
//{
|
|
||||
// Alert.Show("当前用户未选择地点!");
|
|
||||
// return;
|
|
||||
//}
|
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
public void LoadData() |
|
||||
{ |
|
||||
// 每页记录数
|
|
||||
Grid_V_TB_RECEIVE_LIST.PageSize = 100; |
|
||||
ddlGridPageSize.SelectedValue = ConfigHelper.PageSize.ToString(); |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
private void SearchData(Action<IQueryable<V_TB_RECEIVE_LIST>> p_action) |
|
||||
{ |
|
||||
V_TB_RECEIVE_LIST _ls = new V_TB_RECEIVE_LIST(); |
|
||||
_ls.PoBillNum = TXT_BillNo.Text; |
|
||||
_ls.VendName = TXT_VendName.Text; |
|
||||
_ls.UserInVendIds = CurrentUser.VenderList; |
|
||||
_ls.AsnBillNum = TXT_ASNBill.Text; |
|
||||
_ls.PartCode = TXT_PartCode.Text; |
|
||||
_ls.VendId = TXT_VendId.Text; |
|
||||
_ls.ProjectId = TXT_ProjectId.Text; |
|
||||
if (DP_StartDate.SelectedDate != null) |
|
||||
{ |
|
||||
_ls.BeginTime = DP_StartDate.SelectedDate; |
|
||||
} |
|
||||
if (Date_EndDate.SelectedDate != null) |
|
||||
{ |
|
||||
_ls.ShipTime = Date_EndDate.SelectedDate; |
|
||||
} |
|
||||
_ls.BillType_DESC = "退货单"; |
|
||||
if (CurrentUser.FactoryList != null && CurrentUser.FactoryList.Count > 0) |
|
||||
{ |
|
||||
_ls.Site = CurrentUser.FactoryList[0]; |
|
||||
} |
|
||||
_ls.State = 1; |
|
||||
if (CurrentUser.VenderList != null && CurrentUser.VenderList.Count > 0) |
|
||||
{ |
|
||||
var _venderId = CurrentUser.VenderList.FirstOrDefault(); |
|
||||
//if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId))
|
|
||||
//{
|
|
||||
// var _vender= SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site);
|
|
||||
// if (_vender.Tax != null)
|
|
||||
// {
|
|
||||
// lbTaxRate.Text = _vender.Tax.ToString();
|
|
||||
// }
|
|
||||
// else
|
|
||||
// {
|
|
||||
// lbTaxRate.Text = "0";
|
|
||||
// }
|
|
||||
//}
|
|
||||
} |
|
||||
SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_LIST_List(_ls, (ret) => |
|
||||
{ |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
public void BindData() |
|
||||
{ |
|
||||
SearchData(ret => |
|
||||
{ |
|
||||
Grid_V_TB_RECEIVE_LIST.RecordCount = ret.Count(); |
|
||||
ret = SortAndPage(ret, Grid_V_TB_RECEIVE_LIST); |
|
||||
//List<V_TB_RECEIVE_LIST> temp = SCP_CONTRACT_CONTROLLER.GET_CONTRACT_PRICE_LIST(ret.ToList());
|
|
||||
//SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_LIST_PRICE(CurrentUser.VenderList[0], temp, (rs) =>
|
|
||||
//{
|
|
||||
|
|
||||
// if (rs.State == ReturnStatus.Succeed)
|
|
||||
// {
|
|
||||
// temp.ForEach(itm =>
|
|
||||
// {
|
|
||||
// var _entity = rs.Result.ToList().Where(p => p.PartCode == itm.PartCode && itm.CreateTime >= p.StartTime && itm.CreateTime <= p.EndTime).FirstOrDefault();
|
|
||||
// if (_entity != null)
|
|
||||
// {
|
|
||||
// itm.Price = itm.Price > 0 ? itm.Price : _entity.Amt;
|
|
||||
|
|
||||
// }
|
|
||||
// });
|
|
||||
// }
|
|
||||
//});
|
|
||||
|
|
||||
Grid_V_TB_RECEIVE_LIST.DataSource = ret.ToList(); |
|
||||
Grid_V_TB_RECEIVE_LIST.DataBind(); |
|
||||
}); |
|
||||
// 排列和数据库分页
|
|
||||
} |
|
||||
protected void Grid1_OnPageIndexChange(object sender, GridPageEventArgs e) |
|
||||
{ |
|
||||
Grid_V_TB_RECEIVE_LIST.PageIndex = e.NewPageIndex; |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
protected void ddlGridPageSize_OnSelectedIndexChanged(object sender, EventArgs e) |
|
||||
{ |
|
||||
Grid_V_TB_RECEIVE_LIST.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
|
||||
BindData(); |
|
||||
} |
|
||||
//生成发票
|
|
||||
protected void btnCreate_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected void Grid_V_TB_RECEIVE_LIST_PageIndexChange(object sender, GridPageEventArgs e) |
|
||||
{ |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
//导出
|
|
||||
protected void btnOutput_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
V_TB_RECEIVE_LIST _ls = new V_TB_RECEIVE_LIST(); |
|
||||
_ls.PoBillNum = TXT_BillNo.Text; |
|
||||
_ls.VendName = TXT_VendName.Text; |
|
||||
_ls.UserInVendIds = CurrentUser.VenderList; |
|
||||
_ls.AsnBillNum = TXT_ASNBill.Text; |
|
||||
_ls.PartCode = TXT_PartCode.Text; |
|
||||
_ls.VendId = TXT_VendId.Text; |
|
||||
_ls.ProjectId = TXT_ProjectId.Text; |
|
||||
if (DP_StartDate.SelectedDate != null) |
|
||||
{ |
|
||||
_ls.BeginTime = DP_StartDate.SelectedDate; |
|
||||
} |
|
||||
if (Date_EndDate.SelectedDate != null) |
|
||||
{ |
|
||||
_ls.ShipTime = Date_EndDate.SelectedDate; |
|
||||
} |
|
||||
_ls.BillType_DESC = "退货单"; |
|
||||
if (CurrentUser.FactoryList != null && CurrentUser.FactoryList.Count > 0) |
|
||||
{ |
|
||||
_ls.Site = CurrentUser.FactoryList[0]; |
|
||||
} |
|
||||
_ls.State = 1; |
|
||||
if (CurrentUser.VenderList != null && CurrentUser.VenderList.Count > 0) |
|
||||
{ |
|
||||
var _venderId = CurrentUser.VenderList.FirstOrDefault(); |
|
||||
if (!string.IsNullOrEmpty(_ls.Site) && !string.IsNullOrEmpty(_venderId)) |
|
||||
{ |
|
||||
var _vender = SCP_TB_VENDER_CONTROLLER.GetVender(_venderId, _ls.Site); |
|
||||
if (_vender.Tax != null) |
|
||||
{ |
|
||||
lbTaxRate.Text = _vender.Tax.ToString(); |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
lbTaxRate.Text = "0"; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_LIST_List(_ls, (ret) => |
|
||||
{ |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
var _lst = ret.Result.ToList(); |
|
||||
SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_LIST_PRICE(CurrentUser.VenderList[0], _lst, (rs) => |
|
||||
{ |
|
||||
|
|
||||
if (rs.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
_lst.ForEach(itm => |
|
||||
{ |
|
||||
var _entityList = rs.Result.ToList().Where(p => p.PartCode == itm.PartCode && itm.CreateTime >= p.StartTime && itm.CreateTime <= p.EndTime).ToList(); |
|
||||
if (_entityList.Count > 0) |
|
||||
{ |
|
||||
var _max = _entityList.Select(p => p.UID).Max(); |
|
||||
var _entity = _entityList.Where(p => p.UID == _max).FirstOrDefault(); |
|
||||
if (itm.ModType == (int)BillModType.Contract) |
|
||||
{ |
|
||||
if (CurrentUser.FactoryList.FirstOrDefault() == "CNS") |
|
||||
{ |
|
||||
itm.Price = _entity.Amt; |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
itm.Price = itm.Price > 0 ? itm.Price : _entity.Amt; |
|
||||
} |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
itm.Price = itm.Price > 0 ? itm.Price : _entity.Amt; |
|
||||
} |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
}); |
|
||||
Dictionary<string, string> cellheader = new Dictionary<string, string> |
|
||||
{ |
|
||||
{ "ProjectId", "项目编号" }, |
|
||||
{ "BillType_DESC", "单据类型" }, |
|
||||
{ "RecvBillNum", "单据编号" }, |
|
||||
{ "AsnBillNum", "发货单号" }, |
|
||||
{ "VendName", "供应商" }, |
|
||||
{ "VendId", "供应商编码" }, |
|
||||
{ "PoBillNum", "订单号" }, |
|
||||
{ "PoLine", "订单行" }, |
|
||||
{ "PartCode", "零件号" }, |
|
||||
{ "PartDesc1", "零件名称" }, |
|
||||
{ "LocUnit", "单位" }, |
|
||||
{ "Currency", "币种" }, |
|
||||
{ "CreateTime", "创建时间" } |
|
||||
|
|
||||
}; |
|
||||
|
|
||||
string url = EntityListToExcel2003(cellheader,_lst , "审核明细"); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
//快速查找
|
|
||||
protected void btnSearch_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
protected void btnShow_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
gp1.Hidden = false; |
|
||||
} |
|
||||
protected void BtnClose_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
gp1.Hidden = true; |
|
||||
} |
|
||||
protected void BtnSearch_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
protected void Grid_V_TB_RECEIVE_LIST_RowDataBound(object sender, GridRowEventArgs e) |
|
||||
{ |
|
||||
//System.Web.UI.WebControls.Label _label= (System.Web.UI.WebControls.Label)Grid_V_TB_RECEIVE_LIST.Rows[e.RowIndex].FindControl("Qty1");
|
|
||||
//if (!string.IsNullOrEmpty(_label.Text))
|
|
||||
//{
|
|
||||
// if (decimal.Parse(_label.Text) < 0)
|
|
||||
// {
|
|
||||
// _label.ForeColor = Color.Red;
|
|
||||
// }
|
|
||||
//}
|
|
||||
} |
|
||||
|
|
||||
protected void btnCanIn_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected void btnALL_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected void btnSave_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
List<V_TB_RECEIVE_DETAIL> _list = new List<V_TB_RECEIVE_DETAIL>(); |
|
||||
for (int i = 0; i < Grid_V_TB_RECEIVE_LIST.Rows.Count; i++) |
|
||||
{ |
|
||||
|
|
||||
V_TB_RECEIVE_DETAIL _entity = new V_TB_RECEIVE_DETAIL(); |
|
||||
GridRow row = Grid_V_TB_RECEIVE_LIST.Rows[i]; |
|
||||
object[] rowDataKeys = Grid_V_TB_RECEIVE_LIST.DataKeys[i]; |
|
||||
_entity.UID = ConvertHelper.To<Int32>(rowDataKeys[0]); |
|
||||
Dictionary<int, Dictionary<string, object>> modifiedDict = Grid_V_TB_RECEIVE_LIST.GetModifiedDict(); |
|
||||
System.Web.UI.WebControls.TextBox txtQualityal = (System.Web.UI.WebControls.TextBox)row.FindControl("Remark"); |
|
||||
System.Web.UI.WebControls.TextBox txtAsnBillNum = (System.Web.UI.WebControls.TextBox)row.FindControl("AsnBillNum"); |
|
||||
_entity.AsnBillNum = txtAsnBillNum.Text; |
|
||||
_entity.Remark = txtQualityal.Text; |
|
||||
_list.Add(_entity); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
|
|
||||
var ret = SCP_RECIVECE_CONTROLLER.Save_Reject(_list); |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
LoadData(); |
|
||||
Alert.Show("保存成功"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,303 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.Quality { |
|
||||
|
|
||||
|
|
||||
public partial class RejectList { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Toolbar2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Toolbar Toolbar2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Button1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button Button1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Button2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button Button2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnCanIn 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnCanIn; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnSave 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnSave; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnShow 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnShow; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// tb_RecvBillNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox tb_RecvBillNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btn_Search 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btn_Search; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// lbTaxRate 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox lbTaxRate; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// gp1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.GroupPanel gp1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow_1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow_1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_BillNo 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_BillNo; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_ASNBill 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_ASNBill; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_VendName 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_VendName; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_VendId 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_VendId; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow_2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow_2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_ProjectId 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_ProjectId; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_PartCode 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_PartCode; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// DP_StartDate 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DatePicker DP_StartDate; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Date_EndDate 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DatePicker Date_EndDate; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow_3 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow_3; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// BtnClose 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button BtnClose; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// BtnSearch 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button BtnSearch; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_V_TB_RECEIVE_LIST 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_V_TB_RECEIVE_LIST; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarSeparator1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarSeparator ToolbarSeparator1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarText1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarText ToolbarText1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ddlGridPageSize 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList ddlGridPageSize; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Remark 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.WebControls.TextBox Remark; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// AsnBillNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.WebControls.TextBox AsnBillNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Window1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window Window1; |
|
||||
} |
|
||||
} |
|
@ -1,81 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_RETURN_CREATE.aspx.cs" Inherits="SCP.Views.Quality.SCP_RETURN_CREATE" %> |
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Toolbars> |
|
||||
<f:Toolbar ID="Toolbar2" runat="server"> |
|
||||
<Items> |
|
||||
<f:Button ID="btnRelease" runat="server" EnablePostBack="True" OnClick="btnRelease_Click" Text="生成不合格记录" Icon="CssAdd" OnClientClick="if(!confirm('是否要生成不合格单据?'))return false;"> |
|
||||
</f:Button> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
<Items> |
|
||||
<f:Form runat="server" Title="" Margin="5"> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" ColumnWidths="100%"> |
|
||||
<Items> |
|
||||
<f:TextBox runat = "server" Label = "发货单号" EmptyText = "" ID = "TXT_AsnBillNum" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:Button runat="server" ID="btnQuery" Text="查询" OnClick="btnQuery_Click"></f:Button> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
|
|
||||
<f:Grid ID="Grid_V_TB_ASN_DETAIL" ShowBorder="true" ShowHeader="true" PageSize="1000" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" DataKeyNames="UID,PoBillNum,PoLine,PartCode,AsnBillNum,Batch,VendId" |
|
||||
IsDatabasePaging="True" AllowPaging="True" |
|
||||
EnableRowSelectEvent="True" AutoScroll="True" |
|
||||
SortField="PartCode" SortDirection="DESC" |
|
||||
AllowCellEditing="true" ClicksToEdit="2" |
|
||||
OnPageIndexChange="Grid_V_TB_ASN_DETAIL_PageIndexChange"> |
|
||||
|
|
||||
<Columns> |
|
||||
<f:BoundField Width = "80px" DataField = "AsnBillNum" DataFormatString = "{0}" HeaderText = "发货单号" /> |
|
||||
<f:BoundField Width = "80px" DataField = "PackQty" DataFormatString = "{0:F}" HeaderText = "标包数量" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartCode" DataFormatString = "{0}" HeaderText = "零件编号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartDesc1" DataFormatString = "{0}" HeaderText = "零件名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Batch" DataFormatString = "{0}" HeaderText = "供应商批次" /> |
|
||||
<f:BoundField Width = "100px" DataField = "VendBatch" DataFormatString = "{0}" HeaderText = "批次" /> |
|
||||
<f:BoundField Width = "50px" DataField = "PoUnit" DataFormatString = "{0}" HeaderText = "单位" /> |
|
||||
<f:RenderField Width="100px" ColumnID="RejectQty" DataField="RejectQty" FieldType="Float" |
|
||||
HeaderText="退货数量"> |
|
||||
<Editor> |
|
||||
<f:NumberBox ID="NB_PublishNum" runat="server" MinValue="0" |
|
||||
MaxValue="99999999" DecimalPrecision="3" > |
|
||||
</f:NumberBox> |
|
||||
</Editor> |
|
||||
</f:RenderField> |
|
||||
<f:RenderField Width="100px" ColumnID="AsnBillNum" DataField="AsnBillNum" FieldType="String" |
|
||||
HeaderText="发货单号"> |
|
||||
<Editor> |
|
||||
<f:TextBox ID="AsnBill" runat="server" > |
|
||||
</f:TextBox> |
|
||||
</Editor> |
|
||||
</f:RenderField> |
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
|
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
|
|
||||
<f:HiddenField ID="highlightRows" runat="server"> |
|
||||
</f:HiddenField> |
|
||||
|
|
||||
</form> |
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
@ -1,103 +0,0 @@ |
|||||
using CK.SCP.Controller; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Utils; |
|
||||
using FineUI; |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
|
|
||||
namespace SCP.Views.Quality |
|
||||
{ |
|
||||
public partial class SCP_RETURN_CREATE : PageBase |
|
||||
{ |
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
} |
|
||||
public void SearchV_TB_ASN_DETAILData(Action<IQueryable<V_TB_ASN_DETAIL>> p_action) |
|
||||
{ |
|
||||
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
|
||||
//_entity.AskBillNum = "";
|
|
||||
_entity.AsnBillNum =!string.IsNullOrEmpty(TXT_AsnBillNum.Text)? TXT_AsnBillNum.Text:"9999999"; |
|
||||
SCP_ASN_CONTROLLER.Get_V_TB_ASN_DETAIL_List(_entity, (_ret) => { |
|
||||
if (_ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(_ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
/// <summary>
|
|
||||
/// 绑定明细
|
|
||||
/// </summary>
|
|
||||
public void BindDetail() |
|
||||
{ |
|
||||
SearchV_TB_ASN_DETAILData((ret) => { |
|
||||
Grid_V_TB_ASN_DETAIL.RecordCount = ret.Count(); |
|
||||
var list = SortAndPage<V_TB_ASN_DETAIL>(ret, Grid_V_TB_ASN_DETAIL); |
|
||||
var ls = list.ToList(); |
|
||||
Grid_V_TB_ASN_DETAIL.DataSource = ls; |
|
||||
Grid_V_TB_ASN_DETAIL.DataBind(); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void Grid_V_TB_ASN_DETAIL_PageIndexChange(object sender, FineUI.GridPageEventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
protected void btnRelease_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
List<V_TB_ASN_DETAIL> _list = new List<V_TB_ASN_DETAIL>(); |
|
||||
Dictionary<int, Dictionary<string, object>> modifiedDict = Grid_V_TB_ASN_DETAIL.GetModifiedDict(); |
|
||||
for (int i = 0, count = Grid_V_TB_ASN_DETAIL.Rows.Count; i < count; i++) |
|
||||
{ |
|
||||
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
|
||||
object[] rowDataKeys = Grid_V_TB_ASN_DETAIL.DataKeys[i]; |
|
||||
_entity.UID = ConvertHelper.To<long>(rowDataKeys[0]); |
|
||||
_entity.PoBillNum = rowDataKeys[1] as string; |
|
||||
_entity.PoLine = ConvertHelper.To<Int32>(rowDataKeys[2]); |
|
||||
_entity.PartCode = rowDataKeys[3] as string; |
|
||||
_entity.AsnBillNum = rowDataKeys[4] as string; |
|
||||
_entity.Batch = rowDataKeys[5] as string; |
|
||||
_entity.VendId= rowDataKeys[6] as string; |
|
||||
if (modifiedDict.Keys.Contains(i)) |
|
||||
{ |
|
||||
var modifyValue = modifiedDict[i]; |
|
||||
var _RejectQty= modifyValue.Keys.Contains("RejectQty") ? modifyValue["RejectQty"] : 0; |
|
||||
_entity.RejectQty = ConvertHelper.To<decimal>(_RejectQty); |
|
||||
_list.Add(_entity); |
|
||||
} |
|
||||
} |
|
||||
var ret = SCP_QUALITY_CONTROLLER.Save_ASN_TO_RETURN(_list, CurrentUser.ChineseName); |
|
||||
if (ret.Result == true) |
|
||||
{ |
|
||||
Alert.Show("添加退货信息成功!"); |
|
||||
} |
|
||||
//var ret = SCP_ASK_CONTROLLER.Save_ASK_TO_ASN(_model, _askDetaillist, TXT_PlateNumber.Text, CurrentUser.ChineseName, CurrentUser.CellPhone);
|
|
||||
//if (ret.State == ReturnStatus.Succeed)
|
|
||||
//{
|
|
||||
// Alert.Show("生成发货单成功!");
|
|
||||
// GetV_TB_POData();
|
|
||||
// BindDetail();
|
|
||||
//}
|
|
||||
} |
|
||||
|
|
||||
protected void btnQuery_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
} |
|
||||
} |
|
@ -1,105 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.Views.Quality { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_RETURN_CREATE { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Toolbar2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Toolbar Toolbar2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnRelease 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnRelease; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_AsnBillNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_AsnBillNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnQuery 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnQuery; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_V_TB_ASN_DETAIL 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_V_TB_ASN_DETAIL; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// NB_PublishNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.NumberBox NB_PublishNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// AsnBill 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox AsnBill; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// highlightRows 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.HiddenField highlightRows; |
|
||||
} |
|
||||
} |
|
@ -1,115 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_RETURN_MANAGER.aspx.cs" Inherits="SCP.Views.Quality.SCP_RETURN_MANAGER" %> |
|
||||
|
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" ID="pmg1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Toolbars> |
|
||||
<f:Toolbar ID="Toolbar2" runat="server"> |
|
||||
<Items> |
|
||||
<f:Button runat="server" ID="btnNew" Text="新建" OnClick="btnNew_Click" Icon="Add"></f:Button> |
|
||||
<f:Button ID="btnOutput" runat="server" Text="导出" OnClick="btnOutput_Click" Icon="PageExcel"> |
|
||||
</f:Button> |
|
||||
<f:Button runat="server" ID="btnDelete" Text="删除" OnClick="btnDelete_Click" Icon="Delete"></f:Button> |
|
||||
|
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
<Items> |
|
||||
|
|
||||
<f:Form runat="server" Title=""> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25%" ID="FormRow1"> |
|
||||
<Items> |
|
||||
<f:TextBox ID="TXT_Code" runat="server" Label="质检单号"/> |
|
||||
<f:TextBox ID="TXT_AsnBill" runat="server" Label="发货单号"/> |
|
||||
|
|
||||
<f:TextBox ID="TXT_PoBillNum" runat="server" Label="订单编号"/> |
|
||||
<f:TextBox ID="TXT_PageCode" runat="server" Label="包装箱号"/> |
|
||||
|
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25%" ID="FormRow_1"> |
|
||||
<Items> |
|
||||
<f:DropDownList ID="TXT_Vendid" runat="server" Label="供应商编码" EnableMultiSelect="false" EnableEdit="true"></f:DropDownList> |
|
||||
<f:TextBox ID="TXT_PartCode" runat="server" Label="零件编号" /> |
|
||||
<f:TextBox ID="TXT_Batch" runat="server" Label="批次" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
|
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%" ID="FormRow_3" > |
|
||||
<Items> |
|
||||
<f:Button runat="server" ID="btnQuery" Text="查询" OnClick="btnQuery_Click"></f:Button> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
<f:Grid ID = "Grid_TB_RETURN" Title = "质量列表" |
|
||||
EnableCollapse = "true" |
|
||||
ShowBorder = "true" |
|
||||
ShowHeader = "true" |
|
||||
runat ="server" |
|
||||
EnableCheckBoxSelect = "true" |
|
||||
DataKeyNames = "UID,Type,Barcode,Loccode,Pobillnum,Poline,Inspecttype,Partcode,Batch,ReceiveQty,SampleQty,Inspqty,Passqty,Failqty,Crackqty,Inspresult,Failreason,Vendid,Vendbatch,state,Billtime,Domain,Site,By1,By2,By3,CreateTime,CreateUser,UpdateTime,UpdateUser,UpdateInfo,IsDeleted,GUID,UserInAddress,UserInVendIds,BillStateList" |
|
||||
PageSize="100" |
|
||||
IsDatabasePaging="true" AllowPaging="true" |
|
||||
AutoScroll="True" |
|
||||
SortDirection="DESC" SortField="Billtime" |
|
||||
> |
|
||||
|
|
||||
<PageItems> |
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator2" runat="server"> |
|
||||
</f:ToolbarSeparator> |
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:"> |
|
||||
</f:ToolbarText> |
|
||||
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged" |
|
||||
runat="server"> |
|
||||
<f:ListItem Text="100" Value="100" /> |
|
||||
<f:ListItem Text="200" Value="200" /> |
|
||||
</f:DropDownList> |
|
||||
</PageItems> |
|
||||
<Columns> |
|
||||
|
|
||||
<f:BoundField Width = "100px" DataField = "UID" HeaderText = "" Hidden="true"/> |
|
||||
<f:BoundField Width = "100px" DataField = "QualityNo" HeaderText = "检验单据号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "AsnBillNum" HeaderText = "发货单号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Barcode" HeaderText = "箱码" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Pobillnum" HeaderText = "订单编号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Poline" HeaderText = "订单行" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Partcode" HeaderText = "零件编号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "VendName" HeaderText = "供应商名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartDesc1" HeaderText = "零件名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartDesc2" HeaderText = "零件名称" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Batch" DataFormatString = "{0}" HeaderText = "批次" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Failqty" DataFormatString = "{0:F}" HeaderText = "不合格数" /> |
|
||||
<f:BoundField Width = "100px" DataField = "Failreason" DataFormatString = "{0}" HeaderText = "不合格原因" /> |
|
||||
|
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
|
|
||||
|
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
<f:Window runat="server" ID="Window1" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="创建质量评审" Target="Parent" EnableIFrame="true" CloseAction="HidePostBack" |
|
||||
IFrameUrl="about:blank" Height="600px" Width="1024px" AutoScroll="True" OnClose="Window1_Close" /> |
|
||||
<f:Window ID="WindowUpload" runat="server" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" |
|
||||
IFrameUrl="about:blank" Height="200px" Width="400px"> |
|
||||
|
|
||||
</f:Window> |
|
||||
<f:HiddenField runat="server" ID ="TXT_State"></f:HiddenField> |
|
||||
</form> |
|
||||
|
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
||||
|
|
@ -1,138 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Linq.Expressions; |
|
||||
using System.Web; |
|
||||
using System.Web.Security; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
using CK.SCP.Models.AppBoxEntity; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Controller; |
|
||||
using FineUI; |
|
||||
using SCP.Code; |
|
||||
|
|
||||
namespace SCP.Views.Quality |
|
||||
{ |
|
||||
public partial class SCP_RETURN_MANAGER : PageBase |
|
||||
{ |
|
||||
|
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!Page.IsPostBack) |
|
||||
{ |
|
||||
Bind(); |
|
||||
BindVender(TXT_Vendid); |
|
||||
} |
|
||||
} |
|
||||
public void Bind() |
|
||||
{ |
|
||||
Search((result) => { |
|
||||
Grid_TB_RETURN.RecordCount = result.Count(); |
|
||||
var list = SortAndPage<V_TB_RETURN>(result, Grid_TB_RETURN); |
|
||||
Grid_TB_RETURN.DataSource = list; |
|
||||
Grid_TB_RETURN.DataBind(); |
|
||||
}); |
|
||||
} |
|
||||
public void Search(Action<IQueryable<V_TB_RETURN>> p_action) |
|
||||
{ |
|
||||
V_TB_RETURN _entity = new V_TB_RETURN(); |
|
||||
_entity.Pobillnum = TXT_PoBillNum.Text; |
|
||||
_entity.Barcode = TXT_PageCode.Text; |
|
||||
_entity.Partcode = TXT_PartCode.Text; |
|
||||
_entity.By1 = TXT_AsnBill.Text; |
|
||||
_entity.Vendid = TXT_Vendid.SelectedValue; |
|
||||
_entity.Batch = TXT_Batch.Text; |
|
||||
_entity.IsDeleted = false; |
|
||||
_entity.UserInAddress = CurrentUser.FactoryList; |
|
||||
_entity.UserInVendIds = CurrentUser.VenderList; |
|
||||
SCP_QUALITY_CONTROLLER.Get_TB_RETURN_List(_entity, (_ret) => { |
|
||||
if (_ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(_ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void btnOutput_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
Search((rs) => { |
|
||||
Dictionary<string, string> cellheader = new Dictionary<string, string>(); |
|
||||
cellheader.Add("Type_Desc", "检验类型"); |
|
||||
cellheader.Add("Barcode", "箱码"); |
|
||||
cellheader.Add("Pobillnum", "订单编号"); |
|
||||
cellheader.Add("Poline", "订单行号"); |
|
||||
cellheader.Add("Partcode", "零件编码"); |
|
||||
cellheader.Add("Batch", "发货批次"); |
|
||||
cellheader.Add("Failqty", "不合格数"); |
|
||||
cellheader.Add("Failreason", "不合格原因"); |
|
||||
cellheader.Add("Vendbatch", "供应商批次"); |
|
||||
cellheader.Add("Billtime", "检查日期"); |
|
||||
cellheader.Add("PartDesc1", "零件名1"); |
|
||||
cellheader.Add("PartDesc2", "零件名2"); |
|
||||
cellheader.Add("ProjectId", "项目名称"); |
|
||||
cellheader.Add("Qlevel", "质检等级"); |
|
||||
cellheader.Add("VendName", "供应商名称"); |
|
||||
string url = EntityListToExcel2003(cellheader, rs.ToList(), "退货数量导出"); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void btnQuery_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
Bind(); |
|
||||
} |
|
||||
|
|
||||
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
|
||||
{ |
|
||||
Bind(); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
protected void btnSave_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected void btnDelete_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (Grid_TB_RETURN.SelectedRowIndexArray.Count() == 0) |
|
||||
{ |
|
||||
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); |
|
||||
return; |
|
||||
} |
|
||||
List<TB_RETURN> _ls = new List<TB_RETURN>(); |
|
||||
for (int i = 0, count = Grid_TB_RETURN.Rows.Count; i < count; i++) |
|
||||
{ |
|
||||
if (Grid_TB_RETURN.SelectedRowIndexArray.Contains(i)) |
|
||||
{ |
|
||||
object[] rowDataKeys = Grid_TB_RETURN.DataKeys[i]; |
|
||||
var _entity = new TB_RETURN(); |
|
||||
_entity.UID = long.Parse(rowDataKeys[0].ToString()) ; |
|
||||
_ls.Add(_entity); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
var _ret = SCP_QUALITY_CONTROLLER.Del_TB_RETURN(_ls); |
|
||||
if (_ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
Bind(); |
|
||||
Alert.Show("删除退货数量成功!"); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
protected void btnNew_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference("../Quality/SCP_RETURN_CREATE.aspx")); |
|
||||
} |
|
||||
|
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e) |
|
||||
{ |
|
||||
Bind(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,240 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.Views.Quality { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_RETURN_MANAGER { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// pmg1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.PageManager pmg1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Toolbar2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Toolbar Toolbar2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnNew 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnNew; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnOutput 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnOutput; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnDelete 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnDelete; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_Code 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_Code; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_AsnBill 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_AsnBill; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_PoBillNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_PoBillNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_PageCode 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_PageCode; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow_1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow_1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_Vendid 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList TXT_Vendid; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_PartCode 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_PartCode; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_Batch 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox TXT_Batch; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// FormRow_3 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.FormRow FormRow_3; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnQuery 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnQuery; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_TB_RETURN 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_TB_RETURN; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarSeparator2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarSeparator ToolbarSeparator2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarText1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarText ToolbarText1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ddlGridPageSize 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList ddlGridPageSize; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Window1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window Window1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// WindowUpload 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window WindowUpload; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TXT_State 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.HiddenField TXT_State; |
|
||||
} |
|
||||
} |
|
@ -1,58 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_SQE.aspx.cs" Inherits="SCP.Views.Quality.SCP_SQE" %> |
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
|
|
||||
<Items> |
|
||||
<f:Form runat="server" Title="" Margin="5"> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" ColumnWidths="100%"> |
|
||||
<Items> |
|
||||
<f:DropDownList ID="ddl_Vender" runat="server" Label="供应商" EnableEdit="true" ></f:DropDownList> |
|
||||
<f:DatePicker runat="server" Required ="true" DateFormatString="yyyy-MM-dd" Label="日期" EmptyText="请选择日期" ID="DP_StartDate" /> |
|
||||
<f:DatePicker runat="server" Required ="true" DateFormatString="yyyy-MM-dd" Label="至" ID="Date_EndDate" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:Button runat="server" ID="btnQuery" Text="查询" OnClick="btnQuery_Click"></f:Button> |
|
||||
<f:Button runat="server" ID="btnExcel" Text="导出" OnClick="btnExcel_Click"></f:Button> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
|
|
||||
<f:Grid ID="Grid_SQE" ShowBorder="true" ShowHeader="true" PageSize="1000" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" |
|
||||
IsDatabasePaging="True" AllowPaging="True" |
|
||||
EnableRowSelectEvent="True" AutoScroll="True" |
|
||||
SortField="VendId" SortDirection="DESC" |
|
||||
|
|
||||
OnPageIndexChange="Grid_SQE_PageIndexChange"> |
|
||||
<Columns> |
|
||||
<f:BoundField Width = "100px" DataField = "VendId" DataFormatString = "{0}" HeaderText = "供应商编码" /> |
|
||||
<f:BoundField Width = "200px" DataField = "VendName" DataFormatString = "{0:F}" HeaderText = "供应商名称" /> |
|
||||
<f:BoundField Width = "100px" DataField ="FailQty" DataFormatString = "{0}" HeaderText = "不合格数量" /> |
|
||||
<f:BoundField Width = "100px" DataField ="RecQty" DataFormatString = "{0}" HeaderText = "收货数量" /> |
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
|
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
|
|
||||
<f:HiddenField ID="highlightRows" runat="server"> |
|
||||
</f:HiddenField> |
|
||||
|
|
||||
</form> |
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
@ -1,96 +0,0 @@ |
|||||
using CK.SCP.Controller; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Utils; |
|
||||
using FineUI; |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
|
|
||||
namespace SCP.Views.Quality |
|
||||
{ |
|
||||
public partial class SCP_SQE : PageBase |
|
||||
{ |
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
BindVender(ddl_Vender); |
|
||||
} |
|
||||
} |
|
||||
public void SearchData(Action<IQueryable<SCP_TB_SQE>> p_action) |
|
||||
{ |
|
||||
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
|
||||
if (!string.IsNullOrEmpty(DP_StartDate.Text)) |
|
||||
{ |
|
||||
_entity.SQE_BeginTime = DP_StartDate.SelectedDate.Value.ToShortDateString(); |
|
||||
} |
|
||||
if (!string.IsNullOrEmpty(Date_EndDate.Text)) |
|
||||
{ |
|
||||
_entity.SQE_EndTime = Date_EndDate.SelectedDate.Value.ToShortDateString(); |
|
||||
} |
|
||||
_entity.VendId = ddl_Vender.SelectedValue; |
|
||||
SCP_REPORT_CONTROLLER.Get_SQE(_entity, (_ret) => { |
|
||||
if (_ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(_ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
/// <summary>
|
|
||||
/// 绑定明细
|
|
||||
/// </summary>
|
|
||||
public void BindDetail() |
|
||||
{ |
|
||||
SearchData((ret) => { |
|
||||
Grid_SQE.RecordCount = ret.Count(); |
|
||||
var list = SortAndPage<SCP_TB_SQE>(ret, Grid_SQE); |
|
||||
var ls = list.ToList(); |
|
||||
Grid_SQE.DataSource = ls; |
|
||||
Grid_SQE.DataBind(); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void Grid_V_TB_ASN_DETAIL_PageIndexChange(object sender, FineUI.GridPageEventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
protected void btnQuery_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
protected void Grid_SQE_PageIndexChange(object sender, GridPageEventArgs e) |
|
||||
{ |
|
||||
BindDetail(); |
|
||||
} |
|
||||
|
|
||||
protected void btnExcel_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
SearchData((ret) => { |
|
||||
|
|
||||
Dictionary<string, string> cellheader = new Dictionary<string, string>(){ |
|
||||
{"VendId" , "供应商编码" }, |
|
||||
{"VendName" , "供应商名称" }, |
|
||||
{ "FailQty" , "不合格数量" }, |
|
||||
{ "RecQty" , "收货数量" }, |
|
||||
|
|
||||
}; |
|
||||
string url = EntityListToExcel2003(cellheader, ret.ToList(), "SQE导出"); |
|
||||
|
|
||||
}); |
|
||||
|
|
||||
|
|
||||
|
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,96 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.Views.Quality { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_SQE { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ddl_Vender 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList ddl_Vender; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// DP_StartDate 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DatePicker DP_StartDate; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Date_EndDate 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DatePicker Date_EndDate; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnQuery 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnQuery; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnExcel 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnExcel; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_SQE 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_SQE; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// highlightRows 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.HiddenField highlightRows; |
|
||||
} |
|
||||
} |
|
@ -1,107 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_COMPARE.aspx.cs" Inherits="SCP.Views.WarehouseData.SCP_COMPARE" %> |
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<Items> |
|
||||
<f:Grid ID = "Grid_V_TB_PO_DETAIL" EnableCollapse = "true" ShowBorder = "true" EnableMultiSelect="true" ShowHeader = "true" runat ="server" EnableCheckBoxSelect = "true" |
|
||||
DataKeyNames = "UID,PoBillNum,PoLine,PartCode,PlanQty,ShippedQty,ReceivedQty,RejectQty,BeginTime,EndTime,PoUnit,LocUnit,Price,Currency,PackQty,UnConv,DockCode,State,Remark,CreateTime,CreateUser,UpdateTime,UpdateUser,UpdateInfo,IsDeleted,PartDesc1,CurrencyDesc,ErpBillNum,ModType,Contacter,Site,Buyer,BuyerPhone,VendName,PartDesc2,TempQty,PublishQty" |
|
||||
SortField="PoLine" |
|
||||
AllowPaging="True" |
|
||||
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid_V_TB_PO_DETAIL_PageIndexChange" |
|
||||
> |
|
||||
<PageItems> |
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server"> |
|
||||
</f:ToolbarSeparator> |
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:"> |
|
||||
</f:ToolbarText> |
|
||||
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged" |
|
||||
runat="server"> |
|
||||
<f:ListItem Text="10" Value="10" /> |
|
||||
<f:ListItem Text="40" Value="40" /> |
|
||||
<f:ListItem Text="80" Value="80" /> |
|
||||
<f:ListItem Text="100" Value="100" /> |
|
||||
<f:ListItem Text="200" Value="200" /> |
|
||||
</f:DropDownList> |
|
||||
</PageItems> |
|
||||
<Columns> |
|
||||
|
|
||||
|
|
||||
<f:BoundField Width="100px" DataField="PoBillNum" HeaderText="订单编号"></f:BoundField> |
|
||||
<f:BoundField Width = "50px" DataField = "PoLine" DataFormatString = "{0}" HeaderText = "行号" /> |
|
||||
<f:BoundField Width = "100px" DataField = "PartDesc1" DataFormatString = "{0}" HeaderText = "零件名称" /> |
|
||||
<f:BoundField Width = "80px" DataField = "PartCode" DataFormatString = "{0}" HeaderText = "零件编码" /> |
|
||||
<f:BoundField Width = "80px" DataField = "PlanQty" DataFormatString = "{0:F}" HeaderText = "订单数量" /> |
|
||||
<f:BoundField Width = "100px" DataField = "TempQty" DataFormatString = "{0:F}" HeaderText = "已要数量" /> |
|
||||
<f:BoundField Width = "80px" DataField = "ShippedQty" DataFormatString = "{0:F}" HeaderText = "发货数量" /> |
|
||||
<f:BoundField Width = "80px" DataField = "ReceivedQty" DataFormatString = "{0:F}" HeaderText = "收货数量" /> |
|
||||
<f:BoundField Width = "80px" DataField = "RejectQty" DataFormatString = "{0:F}" HeaderText = "退货数量" /> |
|
||||
<f:BoundField Width = "100px" DataField = "EndTime" DataFormatString = "{0:yyyy-MM-dd}" HeaderText = "到货日期" /> |
|
||||
<f:BoundField Width = "50px" DataField = "PoUnit" DataFormatString = "{0}" Hidden="true" HeaderText = "单位" /> |
|
||||
|
|
||||
<f:BoundField Width = "80px" DataField = "Price" DataFormatString = "{0}" HeaderText = "价格" Hidden="true" /> |
|
||||
<f:BoundField Width = "50px" DataField = "CurrencyDesc" DataFormatString = "{0}" HeaderText = "币种" /> |
|
||||
|
|
||||
|
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
|
|
||||
<f:HiddenField ID="highlightRows" runat="server"> |
|
||||
</f:HiddenField> |
|
||||
</Items> |
|
||||
</form> |
|
||||
<script type="text/javascript"> |
|
||||
var highlightRowsClientID = '<%= highlightRows.ClientID %>'; |
|
||||
var gridClientID = '<%= Grid1.ClientID %>'; |
|
||||
|
|
||||
function highlightRows() { |
|
||||
// 增加延迟,等待HiddenField更新完毕 |
|
||||
window.setTimeout(function () { |
|
||||
var highlightRows = F(highlightRowsClientID); |
|
||||
var grid = F(gridClientID); |
|
||||
|
|
||||
$(grid.el.dom).find('.x-grid-item.highlight').removeClass('highlight'); |
|
||||
|
|
||||
$.each(highlightRows.getValue().split(','), function (index, item) { |
|
||||
if (item !== '') { |
|
||||
var row = grid.getView().getNode(parseInt(item, 10)); |
|
||||
$(row).addClass('highlight'); |
|
||||
} |
|
||||
}); |
|
||||
}, 100); |
|
||||
} |
|
||||
|
|
||||
// 页面第一个加载完毕后执行的函数 |
|
||||
F.ready(function () { |
|
||||
|
|
||||
var grid = F(gridClientID); |
|
||||
|
|
||||
grid.on('columnhide', function () { |
|
||||
highlightRows(); |
|
||||
}); |
|
||||
|
|
||||
grid.on('columnshow', function () { |
|
||||
highlightRows(); |
|
||||
}); |
|
||||
|
|
||||
grid.getStore().on('refresh', function () { |
|
||||
highlightRows(); |
|
||||
}); |
|
||||
|
|
||||
highlightRows(); |
|
||||
|
|
||||
}); |
|
||||
|
|
||||
//// 页面AJAX回发后执行的函数 |
|
||||
//F.ajaxReady(function () { |
|
||||
// highlightRows(); |
|
||||
//}); |
|
||||
</script> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,37 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Data; |
|
||||
using System.Linq; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
|
|
||||
namespace SCP.Views.WarehouseData |
|
||||
{ |
|
||||
public partial class SCP_COMPARE : System.Web.UI.Page |
|
||||
{ |
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected void Grid_V_TB_PO_DETAIL_RowDataBound(object sender, FineUI.GridRowEventArgs e) |
|
||||
{ |
|
||||
DataRowView row = e.DataItem as DataRowView; |
|
||||
if (row != null) |
|
||||
{ |
|
||||
// row["PlanQty"]
|
|
||||
|
|
||||
// row["ReceivedQty"]
|
|
||||
|
|
||||
// row["RejectQty"]
|
|
||||
int entranceYear = Convert.ToInt32(row["EntranceYear"]); |
|
||||
|
|
||||
if (entranceYear >= 2006) |
|
||||
{ |
|
||||
highlightRows.Text += e.RowIndex.ToString() + ","; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,69 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.Views.WarehouseData { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_COMPARE { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_V_TB_PO_DETAIL 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_V_TB_PO_DETAIL; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarSeparator1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarSeparator ToolbarSeparator1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarText1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarText ToolbarText1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ddlGridPageSize 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList ddlGridPageSize; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// highlightRows 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.HiddenField highlightRows; |
|
||||
} |
|
||||
} |
|
@ -1,136 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_REJECT.aspx.cs" Inherits="SCP.WarehouseData.SCP_REJECT" %> |
|
||||
|
|
||||
<%@ Import Namespace="CK.SCP.Models.Enums" %> |
|
||||
<%@ Import Namespace="CK.SCP.Utils" %> |
|
||||
|
|
||||
|
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Items> |
|
||||
<f:Form runat="server"> |
|
||||
<Toolbars> |
|
||||
<f:Toolbar ID="Toolbar2" runat="server"> |
|
||||
<Items> |
|
||||
<f:ToolbarSeparator runat="server" /> |
|
||||
<f:Button ID="Button3" runat="server" EnablePostBack="True" Text="刷新" Icon="Add"> |
|
||||
</f:Button> |
|
||||
|
|
||||
<%-- <f:Button ID="Button1" runat="server" EnablePostBack="True" Text="修改" Icon="Add">--%> |
|
||||
<%-- </f:Button>--%> |
|
||||
<%-- <f:Button ID="Button2" runat="server" EnablePostBack="True" Text="删除" Icon="Add">--%> |
|
||||
<%-- </f:Button>--%> |
|
||||
<f:Button ID="btnCheck" runat="server" EnablePostBack="True" OnClick="btnCheck_OnClick" Text="审核通过" Icon="Accept" OnClientClick="if(!confirm('是否要将勾选的单据通过审核?'))return false;"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarSeparator runat="server" /> |
|
||||
<f:Button ID="btnOutput" runat="server" Text="导出" Icon="PageExcel" OnClick="btnOutput_OnClick"> |
|
||||
</f:Button> |
|
||||
<f:Button ID="btnDetail" runat="server" Text="明细" Icon="Zoom" OnClick="btnDetail_OnClick"> |
|
||||
</f:Button> |
|
||||
<f:Button ID="btnShow" runat="server" Text="显示查询面板" OnClick="btnShow_OnClick"> |
|
||||
</f:Button> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
</f:Form> |
|
||||
<f:GroupPanel runat="server" ID="gp1" Hidden="True" Layout="HBox"> |
|
||||
<Items> |
|
||||
<f:Form runat="server"> |
|
||||
<Rows> |
|
||||
<f:FormRow runat="server"> |
|
||||
<Items> |
|
||||
<f:DropDownList runat="server" ID="ddl" Label="状态"> |
|
||||
<f:ListItem Text="-" Value="" /> |
|
||||
<f:ListItem Text="已退货" Value="0" /> |
|
||||
<f:ListItem Text="审核通过" Value="1" /> |
|
||||
</f:DropDownList> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server"> |
|
||||
<Items> |
|
||||
<f:Label runat="server" Label="收货单号" /> |
|
||||
<f:TextBox ID="txtReceiveBill" runat="server" /> |
|
||||
<f:Label runat="server" Label="供应商" /> |
|
||||
<f:TextBox ID="txtSupplier" runat="server" /> |
|
||||
<f:Label runat="server" Label="订单号" /> |
|
||||
<f:TextBox ID="txtPO" runat="server" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server"> |
|
||||
<Items> |
|
||||
<f:Label runat="server" Label="发货单号" /> |
|
||||
<f:TextBox ID="AsnBillNum" runat="server" /> |
|
||||
<f:Label runat="server" Label="操作员" /> |
|
||||
<f:TextBox ID="OperName" runat="server" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server"> |
|
||||
<Items> |
|
||||
<f:Button runat="server" Text="关闭" OnClick="OnClick"></f:Button> |
|
||||
<f:Button ID="BtnSearch" runat="server" OnClick="BtnSearch_OnClick" Text="快速查找"> |
|
||||
</f:Button> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Rows> |
|
||||
</f:Form> |
|
||||
</Items> |
|
||||
</f:GroupPanel> |
|
||||
<f:Grid ID="Grid_V_TB_REJECT" ShowBorder="true" ShowHeader="true" PageSize="20" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" DataKeyNames="UID,RjctBillNum" IsDatabasePaging="True" AllowPaging="True" EnableRowDoubleClickEvent="True" |
|
||||
OnRowDoubleClick="Grid1_OnRowDoubleClick" SortDirection="DESC" SortField="RjctBillNum" EnableCheckBoxSelect="True" |
|
||||
EnableRowSelectEvent="False" AutoScroll="True" OnPageIndexChange="Grid1_OnPageIndexChange" OnRowDataBound="Grid_V_TB_REJECT_RowDataBound"> |
|
||||
<PageItems> |
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server"> |
|
||||
</f:ToolbarSeparator> |
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:"> |
|
||||
</f:ToolbarText> |
|
||||
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_OnSelectedIndexChanged" |
|
||||
runat="server"> |
|
||||
<f:ListItem Text="10" Value="10" /> |
|
||||
<f:ListItem Text="20" Value="20" /> |
|
||||
<f:ListItem Text="50" Value="50" /> |
|
||||
<f:ListItem Text="100" Value="100" /> |
|
||||
</f:DropDownList> |
|
||||
</PageItems> |
|
||||
<Columns> |
|
||||
<f:BoundField runat="server" HeaderText="状态" ColumnID="" DataField="State" /> |
|
||||
<f:BoundField runat="server" HeaderText="供应商" ColumnID="" DataField="VendName" /> |
|
||||
<f:BoundField runat="server" HeaderText="退货单号" ColumnID="" DataField="RjctBillNum" /> |
|
||||
<f:BoundField runat="server" HeaderText="订单号" ColumnID="" DataField="PoBillNum" /> |
|
||||
<f:BoundField runat="server" HeaderText="发货单号" ColumnID="" DataField="AsnBillNum" /> |
|
||||
|
|
||||
<f:BoundField runat="server" HeaderText="发货时间" ColumnID="" DataField="ShipTime" /> |
|
||||
<f:BoundField runat="server" HeaderText="发货地点" ColumnID="" DataField="Site_Desc" /> |
|
||||
<f:BoundField runat="server" HeaderText="审核员" ColumnID="" DataField="OperName" /> |
|
||||
<f:BoundField runat="server" HeaderText="备注" ColumnID="" DataField="Remark" /> |
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
<f:Window runat="server" ID="Window1" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="收货详情" Target="Parent" EnableIFrame="true" |
|
||||
IFrameUrl="about:blank" Height="600px" Width="1024px" AutoScroll="True" /> |
|
||||
<f:Window ID="WindowUpload" runat="server" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" |
|
||||
IFrameUrl="about:blank" Height="200px" Width="400px"> |
|
||||
</f:Window> |
|
||||
</form> |
|
||||
<script> |
|
||||
var basePath = '<%=ResolveUrl("~/")%>'; |
|
||||
|
|
||||
|
|
||||
function btnDetail_OnClick(id) { |
|
||||
parent.addExampleTab.apply(null, ['id', basePath + 'WarehouseData/ReceiveDetail.aspx?ID=' + 2, '收货明细', basePath + 'res/images/filetype/vs_aspx.png', undefined, true]); |
|
||||
} |
|
||||
</script> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,198 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Data.Entity.Migrations; |
|
||||
using System.Linq; |
|
||||
using System.Linq.Expressions; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
using CK.SCP.Models.Enums; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Utils; |
|
||||
using CK.SCP.Controller; |
|
||||
using FineUI; |
|
||||
|
|
||||
namespace SCP.WarehouseData |
|
||||
{ |
|
||||
public partial class SCP_REJECT : PageBase |
|
||||
{ |
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
LoadData(); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
public void LoadData() |
|
||||
{ |
|
||||
Grid_V_TB_REJECT.PageSize = ConfigHelper.PageSize; |
|
||||
ddlGridPageSize.SelectedValue = ConfigHelper.PageSize.ToString(); |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
public void BindData() |
|
||||
{ |
|
||||
var _entity = new V_TB_REJECT(); |
|
||||
_entity.RjctBillNum = txtReceiveBill.Text; |
|
||||
if (!string.IsNullOrEmpty(ddl.SelectedValue)) |
|
||||
{ |
|
||||
_entity.State = Convert.ToInt32(ddl.SelectedValue); |
|
||||
} |
|
||||
_entity.PoBillNum = txtPO.Text; |
|
||||
_entity.AsnBillNum = AsnBillNum.Text; |
|
||||
_entity.OperName = OperName.Text; |
|
||||
|
|
||||
SCP_REJECT_CONTROLLER.Get_V_TB_REJECT_List(_entity, (ret) => |
|
||||
{ |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
Grid_V_TB_REJECT.RecordCount = ret.Result.Count(); |
|
||||
var _list = SortAndPage(ret.Result, Grid_V_TB_REJECT); |
|
||||
Grid_V_TB_REJECT.DataSource = _list; |
|
||||
Grid_V_TB_REJECT.DataBind(); |
|
||||
} |
|
||||
}); |
|
||||
|
|
||||
} |
|
||||
protected void ddlGridPageSize_OnSelectedIndexChanged(object sender, EventArgs e) |
|
||||
{ |
|
||||
Grid_V_TB_REJECT.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
|
||||
BindData(); |
|
||||
} |
|
||||
protected void Grid1_OnRowDoubleClick(object sender, GridRowClickEventArgs e) |
|
||||
{ |
|
||||
string ID = GetSelectedDataKey(Grid_V_TB_REJECT, 1); |
|
||||
string url = String.Format("../WarehouseData/SCP_REJECT_DETAIL.aspx?ID={0}", ID); |
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(url)); |
|
||||
} |
|
||||
|
|
||||
//明细
|
|
||||
protected void btnDetail_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
string roleID = GetSelectedDataKey(Grid_V_TB_REJECT, 1); |
|
||||
string url = String.Format("../WarehouseData/SCP_REJECT_DETAIL.aspx?ID={0}", roleID); |
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(url)); |
|
||||
} |
|
||||
//查询
|
|
||||
protected void BtnSearch_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
//显示面板
|
|
||||
protected void btnShow_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
gp1.Hidden = false; |
|
||||
} |
|
||||
//关闭面板
|
|
||||
protected void OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
gp1.Hidden = true; |
|
||||
} |
|
||||
//审核通过
|
|
||||
protected void btnCheck_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
List<int> listids = GetSelectedDataKeyIDs(Grid_V_TB_REJECT); |
|
||||
if (listids.Count == 0) |
|
||||
{ |
|
||||
PageContext.RegisterStartupScript(Alert.GetShowInParentReference("请勾选要审核的单据")); |
|
||||
return; |
|
||||
} |
|
||||
|
|
||||
var _ls = new List<string>(); |
|
||||
int[] selections = Grid_V_TB_REJECT.SelectedRowIndexArray; |
|
||||
for (int i = 0, count = Grid_V_TB_REJECT.Rows.Count; i < count; i++) |
|
||||
{ |
|
||||
if (selections.Contains(i)) |
|
||||
{ |
|
||||
object[] rowDataKeys = Grid_V_TB_REJECT.DataKeys[i]; |
|
||||
_ls.Add(rowDataKeys[1] as string); |
|
||||
} |
|
||||
} |
|
||||
var ret = SCP_REJECT_CONTROLLER.Save_TB_REJECT_STATE(_ls, RejectState.Check); |
|
||||
PageContext.RegisterStartupScript(Alert.GetShowInParentReference("审核成功")); |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
protected void Grid1_OnPageIndexChange(object sender, GridPageEventArgs e) |
|
||||
{ |
|
||||
Grid_V_TB_REJECT.PageIndex = e.NewPageIndex; |
|
||||
BindData(); |
|
||||
} |
|
||||
//导出
|
|
||||
protected void btnOutput_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
//string billnum = GetQueryValue("ID");
|
|
||||
|
|
||||
//IQueryable<V_REJECTDetail> q = SCPDB.V_ReceiveDetail.Where(p => p.BillNum == billnum);
|
|
||||
|
|
||||
//// 排列和数据库分页
|
|
||||
//var list = SortAndPage<V_REJECTDetail>(q, Grid_V_TB_REJECT).ToList();
|
|
||||
|
|
||||
//// 2.设置单元格抬头
|
|
||||
//// key:实体对象属性名称,可通过反射获取值
|
|
||||
//// value:Excel列的名称
|
|
||||
//Dictionary<string, string> cellheader = new Dictionary<string, string> {
|
|
||||
// { "BillNum", "状态" },
|
|
||||
// { "AsnBillNum", "单据类型" },
|
|
||||
// { "VendName", "供应商" },
|
|
||||
// { "BillNum", "收货单号" },
|
|
||||
// { "PoBillNum", "订单号" },
|
|
||||
// { "AsnBillNum", "发货单号" },
|
|
||||
// { "ReceiveTime", "收货时间" },
|
|
||||
// { "DeliveryAddress", "收货地点" },
|
|
||||
// { "OperName", "审核员" },
|
|
||||
// { "Remark", "备注" },
|
|
||||
//};
|
|
||||
|
|
||||
//string url = EntityListToExcel2003(cellheader, list, "收货审核明细");
|
|
||||
var _entity = new V_TB_RECEIVE(); |
|
||||
_entity.RecvBillNum = txtReceiveBill.Text; |
|
||||
if (!string.IsNullOrEmpty(ddl.SelectedValue)) |
|
||||
{ |
|
||||
_entity.State = Convert.ToInt32(ddl.SelectedValue); |
|
||||
} |
|
||||
_entity.PoBillNum = txtPO.Text; |
|
||||
_entity.AsnBillNum = AsnBillNum.Text; |
|
||||
_entity.OperName = OperName.Text; |
|
||||
SCP_RECIVECE_CONTROLLER.Get_V_TB_RECEIVE_List(_entity, (ret) => |
|
||||
{ |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
Dictionary<string, string> cellheader = new Dictionary<string, string> |
|
||||
{ |
|
||||
{ "State", "状态" }, |
|
||||
//{ "AsnBillNum", "单据类型" },
|
|
||||
{ "VendName", "供应商" }, |
|
||||
{ "RjctBillNum", "退货单号" }, |
|
||||
{ "PoBillNum", "订单号" }, |
|
||||
{ "AsnBillNum", "发货单号" }, |
|
||||
{ "ShipTime", "发货时间" }, |
|
||||
{ "Site_Desc", "发货地点" }, |
|
||||
{ "OperName", "审核员" }, |
|
||||
{ "Remark", "备注" }, |
|
||||
}; |
|
||||
|
|
||||
string url = EntityListToExcel2003(cellheader, ret.Result.ToList(), "退货审核明细"); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected void Grid_V_TB_REJECT_RowDataBound(object sender, GridRowEventArgs e) |
|
||||
{ |
|
||||
if (e.Row.RowIndex != -1)//.RowType == DataControlRowType.DataRow)
|
|
||||
{ |
|
||||
if (e.Row.Values != null && e.Row.Values[0] != null && e.Row.Values[0].ToString() == "0") |
|
||||
{ |
|
||||
e.Row.Values[0] = "已退货"; |
|
||||
} |
|
||||
|
|
||||
if (e.Row.Values != null && e.Row.Values[0] != null && e.Row.Values[0].ToString() == "1") |
|
||||
{ |
|
||||
e.Row.Values[0] = "审核通过"; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,213 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.WarehouseData { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_REJECT { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Toolbar2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Toolbar Toolbar2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Button3 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button Button3; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnCheck 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnCheck; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnOutput 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnOutput; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnDetail 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnDetail; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnShow 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnShow; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// gp1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.GroupPanel gp1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ddl 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList ddl; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtReceiveBill 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtReceiveBill; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtSupplier 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtSupplier; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtPO 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtPO; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// AsnBillNum 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox AsnBillNum; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// OperName 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox OperName; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// BtnSearch 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button BtnSearch; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_V_TB_REJECT 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_V_TB_REJECT; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarSeparator1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarSeparator ToolbarSeparator1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ToolbarText1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.ToolbarText ToolbarText1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// ddlGridPageSize 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.DropDownList ddlGridPageSize; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Window1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window Window1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// WindowUpload 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window WindowUpload; |
|
||||
} |
|
||||
} |
|
@ -1,102 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_REJECT_DETAIL.aspx.cs" Inherits="SCP.WarehouseData.SCP_REJECT_DETAIL" %> |
|
||||
|
|
||||
<!DOCTYPE html> |
|
||||
|
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
||||
<head runat="server"> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
||||
<title></title> |
|
||||
</head> |
|
||||
<body> |
|
||||
<form id="form1" runat="server"> |
|
||||
<f:PageManager runat="server" AutoSizePanelID="Panel1" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Toolbars> |
|
||||
<f:Toolbar ID="Toolbar2" runat="server"> |
|
||||
<Items> |
|
||||
<f:Button ID="Button1" runat="server" EnablePostBack="True" Text="刷新" Icon="Add"> |
|
||||
</f:Button> |
|
||||
<f:Button ID="btnCheck" runat="server" OnClick="btnCheck_OnClick" Text="审核通过" Icon="Accept" OnClientClick="if(!confirm('是否要审核通过?'))return false;" Hidden="True" EnablePostBack="True"> |
|
||||
</f:Button> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
<Items> |
|
||||
<f:Form runat="server" Title=""> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:TextBox ID="txtBillNo" runat="server" Label="收货单号" Text="" Width="600"> |
|
||||
</f:TextBox> |
|
||||
<f:TextBox ID="txtShipBillNo" runat="server" Label="发货单" Text="" Width="600"> |
|
||||
</f:TextBox> |
|
||||
<f:TextBox ID="txtPlanBillNo" runat="server" Label="订单号" Text="" Readonly="true" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:TextBox ID="txtState" runat="server" Label="状态" Text="" Readonly="true" /> |
|
||||
<f:TextBox ID="txtSupplierName" runat="server" Label="供应商" Text=""> |
|
||||
</f:TextBox> |
|
||||
<f:Label runat="server" /> |
|
||||
|
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:TextBox ID="txtType" runat="server" Label="单据类型" Text="" Readonly="true" /> |
|
||||
<f:TextBox ID="txtDeliveryAddress" runat="server" Label="收货地址" Text=""> |
|
||||
</f:TextBox> |
|
||||
<f:TextBox ID="txtReceiveTime" runat="server" Label="收货时间" Text=""> |
|
||||
</f:TextBox> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:TextBox ID="txtUserName" runat="server" Label="审核员" Text="" Readonly="true" /> |
|
||||
<f:TextBox ID="txtMemo" runat="server" Label="备注" Text=""> |
|
||||
</f:TextBox> |
|
||||
<f:Label ID="TextBox2" runat="server" Text=""> |
|
||||
</f:Label> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
<f:Toolbar runat="server"> |
|
||||
<Items> |
|
||||
<f:ToolbarSeparator runat="server" /> |
|
||||
<f:Button ID="btnOutput" runat="server" Text="导出" Icon="PageExcel" OnClick="btnOutput_OnClick"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarFill runat="server" /> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
<f:Grid ID="Grid_V_TB_REJECT_DETAIL" ShowBorder="true" ShowHeader="true" PageSize="20" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" DataKeyNames="" IsDatabasePaging="True" AllowPaging="True" SortField="PartCode" SortDirection="DESC" |
|
||||
EnableRowSelectEvent="False" AutoScroll="True"> |
|
||||
<Columns> |
|
||||
|
|
||||
<f:BoundField DataField="ID" HeaderText="ID" ColumnID="ID" Hidden="true" /> |
|
||||
<f:BoundField SortField="RjctBillNum" DataField="RjctBillNum" HeaderText="退货单号" ColumnID="Line" Width="100px" /> |
|
||||
<f:BoundField SortField="AsnBillNum" DataField="AsnBillNum" HeaderText="发货单号" ColumnID="ProductCode" Width="120px" /> |
|
||||
<f:BoundField SortField="PoBillNum" DataField="PoBillNum" HeaderText="订单号" ColumnID="ProductName" Width="100px" /> |
|
||||
<f:BoundField SortField="PoLine" DataField="PoLine" HeaderText="订单行" ColumnID="UnitCode" Width="60px" /> |
|
||||
<f:BoundField SortField="PartCode" DataField="PartCode" HeaderText="零件号" ColumnID="PackageQty" Width="100px" /> |
|
||||
<f:BoundField SortField="PartDesc1" DataField="PartDesc1" HeaderText="零件名称" ColumnID="CurrencyCode" Width="200px" /> |
|
||||
<f:BoundField SortField="Unit" DataField="Unit" HeaderText="单位" ColumnID="Price" Width="80px" /> |
|
||||
<f:BoundField SortField="Qty" DataField="Qty" HeaderText="收货数量" ColumnID="PlanQty" Width="60px" /> |
|
||||
<f:BoundField SortField="ShipTime" DataField="ShipTime" HeaderText="收货时间" ColumnID="ShipQty" Width="60px" DataFormatString="{0:yy-MM-dd}"/> |
|
||||
<f:BoundField SortField="Remark" DataField="Remark" HeaderText="备注" ColumnID="ReceiveQty" Width="60px" /> |
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
<f:Window runat="server" ID="Window1" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" |
|
||||
IFrameUrl="about:blank" Height="640px" Width="700px" /> |
|
||||
<f:Window ID="WindowUpload" runat="server" Hidden="True" |
|
||||
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" |
|
||||
IFrameUrl="about:blank" Height="200px" Width="400px"> |
|
||||
</f:Window> |
|
||||
</form> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,115 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Linq.Expressions; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
using CK.SCP.Models.Enums; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Utils; |
|
||||
using CK.SCP.Controller; |
|
||||
using FineUI; |
|
||||
|
|
||||
|
|
||||
namespace SCP.WarehouseData |
|
||||
{ |
|
||||
public partial class SCP_REJECT_DETAIL : PageBase |
|
||||
{ |
|
||||
|
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
LoadData(); |
|
||||
BindData(); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
public void LoadData() |
|
||||
{ |
|
||||
var _receive = new V_TB_REJECT(); |
|
||||
_receive.RjctBillNum = GetQueryValue("ID"); |
|
||||
|
|
||||
SCP_REJECT_CONTROLLER.Get_V_TB_REJECT_List(_receive, (ret) => { |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
var _rec = ret.Result.FirstOrDefault(); |
|
||||
txtState.Text = _rec.State_DESC; |
|
||||
txtBillNo.Text = _rec.RjctBillNum; |
|
||||
txtReceiveTime.Text = Convert.ToDateTime(_rec.ShipTime).ToString("yyyy-MM-dd"); |
|
||||
txtShipBillNo.Text = _rec.AsnBillNum; |
|
||||
txtPlanBillNo.Text = _rec.PoBillNum; |
|
||||
txtUserName.Text = _rec.OperName; |
|
||||
txtSupplierName.Text = _rec.VendName; |
|
||||
txtMemo.Text = _rec.Remark; |
|
||||
} |
|
||||
|
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
public void BindData() |
|
||||
{ |
|
||||
var _receive = new V_TB_REJECT_DETAIL(); |
|
||||
_receive.RjctBillNum = GetQueryValue("ID"); |
|
||||
SCP_REJECT_CONTROLLER.Get_V_TB_REJECT_DETAIL_List(_receive, (ret) => |
|
||||
{ |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
|
|
||||
Grid_V_TB_REJECT_DETAIL.RecordCount = ret.Result.Count(); |
|
||||
var _ls = SortAndPage(ret.Result, Grid_V_TB_REJECT_DETAIL); |
|
||||
|
|
||||
Grid_V_TB_REJECT_DETAIL.DataSource = _ls; |
|
||||
Grid_V_TB_REJECT_DETAIL.DataBind(); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
protected void btnCheck_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
//try
|
|
||||
//{
|
|
||||
// string id = GetQueryValue("ID");
|
|
||||
// _Model = ReceiveDetailController.GetlistByBillNum(id);
|
|
||||
// bool flag = ReceiveDetailController.UpdateReceive(_Model);
|
|
||||
// if (flag)
|
|
||||
// PageContext.Refresh();
|
|
||||
//}
|
|
||||
//catch (Exception ex)
|
|
||||
//{
|
|
||||
// Alert.ShowInTop(ex.Message);
|
|
||||
//}
|
|
||||
} |
|
||||
//导出
|
|
||||
protected void btnOutput_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
var _receive = new V_TB_REJECT_DETAIL(); |
|
||||
_receive.RjctBillNum = GetQueryValue("ID"); |
|
||||
SCP_REJECT_CONTROLLER.Get_V_TB_REJECT_DETAIL_List(_receive, (ret) => |
|
||||
{ |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
|
|
||||
Dictionary<string, string> cellheader = new Dictionary<string, string> { |
|
||||
{ "RjctBillNum", "退货单号" }, |
|
||||
{ "AsnBillNum", "发货单号" }, |
|
||||
{ "PoBillNum", "订单号" }, |
|
||||
{ "PoLine", "订单行" }, |
|
||||
{ "PartCode", "零件号" }, |
|
||||
{ "PartDesc1", "零件名称" }, |
|
||||
{ "Unit", "单位" }, |
|
||||
{ "Qty", "退货数量" }, |
|
||||
//{ "ReceivedQty", "已开票数量" },
|
|
||||
{ "ShipTime", "收货时间" }, |
|
||||
{ "Remark", "备注" }, |
|
||||
}; |
|
||||
|
|
||||
string url = EntityListToExcel2003(cellheader, ret.Result.ToList(), "收货审核明细"); |
|
||||
|
|
||||
} |
|
||||
}); |
|
||||
|
|
||||
|
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,195 +0,0 @@ |
|||||
//------------------------------------------------------------------------------
|
|
||||
// <自动生成>
|
|
||||
// 此代码由工具生成。
|
|
||||
//
|
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
|
||||
// 重新生成代码,则所做更改将丢失。
|
|
||||
// </自动生成>
|
|
||||
//------------------------------------------------------------------------------
|
|
||||
|
|
||||
namespace SCP.WarehouseData { |
|
||||
|
|
||||
|
|
||||
public partial class SCP_REJECT_DETAIL { |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// form1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Panel1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Panel Panel1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Toolbar2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Toolbar Toolbar2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Button1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button Button1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnCheck 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnCheck; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtBillNo 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtBillNo; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtShipBillNo 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtShipBillNo; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtPlanBillNo 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtPlanBillNo; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtState 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtState; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtSupplierName 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtSupplierName; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtType 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtType; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtDeliveryAddress 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtDeliveryAddress; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtReceiveTime 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtReceiveTime; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtUserName 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtUserName; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// txtMemo 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.TextBox txtMemo; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// TextBox2 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Label TextBox2; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// btnOutput 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Button btnOutput; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Grid_V_TB_REJECT_DETAIL 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Grid Grid_V_TB_REJECT_DETAIL; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Window1 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window Window1; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// WindowUpload 控件。
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// 自动生成的字段。
|
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||
/// </remarks>
|
|
||||
protected global::FineUI.Window WindowUpload; |
|
||||
} |
|
||||
} |
|
Loading…
Reference in new issue