学 赵
4 years ago
85 changed files with 5740 additions and 1066 deletions
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace CK.SCP.Models.ScpEntity |
||||
|
{ |
||||
|
public partial class TB_PALLETS |
||||
|
{ |
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
[Key] |
||||
|
public long UID { get; set; } |
||||
|
[StringLength(50)] |
||||
|
public string AsnBillNum { get; set; } |
||||
|
public string PalletNum { get; set; } |
||||
|
public string PartCode { get; set; } |
||||
|
public string Batch { get; set; } |
||||
|
public string VendId { get; set; } |
||||
|
public int Box { get; set; } |
||||
|
public decimal Qty { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
|
||||
|
namespace CK.SCP.Models.ScpEntity |
||||
|
{ |
||||
|
public partial class TS_BARCODE_RULE_SMALL |
||||
|
{ |
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] |
||||
|
public int UID { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
[Column(Order = 0)] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
|
||||
|
[Key] |
||||
|
[Column(Order = 1)] |
||||
|
[StringLength(50)] |
||||
|
public string RuleBatch { get; set; } |
||||
|
|
||||
|
public int LastNumber { get; set; } |
||||
|
|
||||
|
[Required(AllowEmptyStrings = true)] |
||||
|
[StringLength(500)] |
||||
|
public string LastBarCode { get; set; } |
||||
|
|
||||
|
public DateTime LastTime { get; set; } |
||||
|
|
||||
|
public int State { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,101 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
|
||||
|
namespace CK.SCP.Models.ScpEntity |
||||
|
{ |
||||
|
public partial class TS_BARCODE_SMALL |
||||
|
{ |
||||
|
[Key] |
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
public long UID { get; set; } |
||||
|
|
||||
|
|
||||
|
[StringLength(50)] |
||||
|
public string BarCode { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[StringLength(500)] |
||||
|
public string FullBarCode { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string PartCode { get; set; } |
||||
|
|
||||
|
[StringLength(50)] |
||||
|
public string VendPartCode { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string Batch { get; set; } |
||||
|
|
||||
|
[Column(TypeName = "datetime2")] |
||||
|
public DateTime ProduceDate { get; set; } |
||||
|
|
||||
|
public int ManageType { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string SerialNum { get; set; } |
||||
|
|
||||
|
[Column(TypeName = "money")] |
||||
|
public decimal Qty { get; set; } |
||||
|
|
||||
|
public int BarCodeType { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string BillNum { get; set; } |
||||
|
|
||||
|
public int PoBillLine { get; set; } |
||||
|
|
||||
|
[StringLength(50)] |
||||
|
public string VendId { get; set; } |
||||
|
|
||||
|
[StringLength(50)] |
||||
|
public string VendBatch { get; set; } |
||||
|
|
||||
|
[Column(TypeName = "money")] |
||||
|
public decimal SmallPackQty { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
[StringLength(50)] |
||||
|
public string CreateOper { get; set; } |
||||
|
|
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
public int State { get; set; } |
||||
|
|
||||
|
[StringLength(500)] |
||||
|
public string Remark { get; set; } |
||||
|
|
||||
|
public string PoUnit { get; set; } |
||||
|
public string LocUnit { get; set; } |
||||
|
|
||||
|
|
||||
|
public string Site { get; set; } |
||||
|
public string Qlevel { get; set; } |
||||
|
public string QMark { get; set; } |
||||
|
public string ProjectId { get; set; } |
||||
|
|
||||
|
public string PoBillNum { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
[DisplayName("供应商名称")] |
||||
|
public string VendName => ScpCache.GetVendName(VendId, Site); |
||||
|
|
||||
|
|
||||
|
[DisplayName("零件名称")] |
||||
|
|
||||
|
|
||||
|
public string PartDesc => ScpCache.GetPartDesc1(PartCode, Site); |
||||
|
|
||||
|
[DisplayName("零件名称")] |
||||
|
public string PartName => ScpCache.GetPartDesc1(PartCode, Site); |
||||
|
[NotMapped] |
||||
|
public List<long> UIDList { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
|
||||
|
namespace CK.SCP.Models.ScpEntity |
||||
|
{ |
||||
|
public partial class V_TB_PALLETS |
||||
|
{ |
||||
|
|
||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
||||
|
[Key] |
||||
|
public long UID { get; set; } |
||||
|
[StringLength(50)] |
||||
|
public string AsnBillNum { get; set; } |
||||
|
public string PalletNum { get; set; } |
||||
|
public string PartCode { get; set; } |
||||
|
public string PartName { get; set; } |
||||
|
public string Batch { get; set; } |
||||
|
public string VendId { get; set; } |
||||
|
public int Box { get; set; } |
||||
|
public decimal Qty { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,110 @@ |
|||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlanMonth.aspx.cs" Inherits="SCP.PlanData.PlanMonth" %> |
||||
|
|
||||
|
<!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:Button ID="Button3" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnAdd" runat="server" EnablePostBack="True" Text="新增" Icon="ApplicationAdd"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnEdit" runat="server" EnablePostBack="True" Text="修改" Icon="ApplicationEdit" OnClick="btnEdit_OnClick"> |
||||
|
</f:Button> |
||||
|
<%-- <f:Button ID="btnDelete" runat="server" EnablePostBack="True" Text="删除" Icon="ApplicationDelete" OnClick="btnDelete_Click"> |
||||
|
</f:Button>--%> |
||||
|
<f:ToolbarSeparator runat="server" /> |
||||
|
<f:Button ID="btnPublish" runat="server" EnablePostBack="True" Text="发布" Icon="Accept" OnClick="btnPublish_OnClick"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="Button6" runat="server" EnablePostBack="True" Text="导出" Icon="PageExcel" OnClick="Button6_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:Label runat="server" Label="供应商编号" /> |
||||
|
<f:TextBox ID="txtSupplierCode" runat="server" /> |
||||
|
<f:Label runat="server" Label="供应商名称" /> |
||||
|
<f:TextBox ID="txtVendName" runat="server" /> |
||||
|
<f:Label runat="server" Label="文件编号" /> |
||||
|
<f:TextBox ID="txtCode" runat="server" /> |
||||
|
<f:Label runat="server" Label="文件描述" /> |
||||
|
<f:TextBox ID="txtName" runat="server" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server"> |
||||
|
<Items> |
||||
|
<f:Label runat="server" Label="版本号" /> |
||||
|
<f:TextBox ID="txtVer" runat="server" /> |
||||
|
<f:Label runat="server" Label="发布用户" /> |
||||
|
<f:TextBox ID="txtUserName" runat="server" /> |
||||
|
<f:Label runat="server" Label="是否发布" /> |
||||
|
<f:CheckBox ID="txtIsSend" runat="server" /> |
||||
|
<f:Label runat="server" Label="新增时间" /> |
||||
|
<f:DatePicker ID="DatePicker1" runat="server" Required="true" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server"> |
||||
|
<Items> |
||||
|
<f:Label runat="server" Label="发布时间" /> |
||||
|
<f:DatePicker ID="DatePicker2" runat="server" Required="true" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server"> |
||||
|
<Items> |
||||
|
<f:Button runat="server" ID="btnClose" Text="关闭" OnClick="btnClose_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="Grid1" ShowBorder="true" ShowHeader="true" PageSize="20" BoxFlex="1" CssClass="maingrid" |
||||
|
runat="server" DataKeyNames="ID" IsDatabasePaging="True" AllowPaging="True" |
||||
|
EnableRowSelectEvent="True" AutoScroll="True"> |
||||
|
<Columns> |
||||
|
<f:BoundField runat="server" HeaderText="供应商编号" ColumnID="" DataField="SupplierCode" /> |
||||
|
<f:BoundField runat="server" HeaderText="供应商名称" ColumnID="" DataField="VendName" /> |
||||
|
<f:BoundField runat="server" HeaderText="文件编号" ColumnID="" DataField="Code" /> |
||||
|
<f:BoundField runat="server" HeaderText="文件描述" ColumnID="" DataField="Name" /> |
||||
|
<f:BoundField runat="server" HeaderText="版本号" ColumnID="" DataField="Ver" /> |
||||
|
<f:HyperLinkField HeaderText="文件下载" DataToolTipField="FileName" DataTextField="FileName" |
||||
|
DataTextFormatString="{0}" DataNavigateUrlFields="FileName" DataNavigateUrlFormatString="../../uploadfiles/{0}" |
||||
|
DataNavigateUrlFieldsEncode="true" Target="_blank" ColumnID="FileName" Width="260px" /> |
||||
|
<f:BoundField runat="server" HeaderText="新增时间" ColumnID="" DataField="AddTime" /> |
||||
|
<f:BoundField runat="server" HeaderText="发布用户" ColumnID="" DataField="UserName" /> |
||||
|
<f:BoundField runat="server" HeaderText="是否发布" ColumnID="" DataField="IsSend" /> |
||||
|
<f:BoundField runat="server" HeaderText="发布时间" ColumnID="" DataField="SendTime" /> |
||||
|
</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="640px" Width="700px" /> |
||||
|
|
||||
|
</form> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,272 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
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.ScpEntity; |
||||
|
using CK.SCP.Utils; |
||||
|
using CK.SCP.Common; |
||||
|
using CK.SCP.Controller; |
||||
|
using FineUI; |
||||
|
|
||||
|
using SCP.admin; |
||||
|
|
||||
|
|
||||
|
namespace SCP.PlanData |
||||
|
{ |
||||
|
public partial class PlanMonth : PageBase |
||||
|
{ |
||||
|
public List<V_PlanMonth> _list; |
||||
|
public static int num; |
||||
|
private TB_PlanMonth modelPlanMonth; |
||||
|
protected void Page_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (!IsPostBack) |
||||
|
{ |
||||
|
|
||||
|
BindData(); |
||||
|
DatePicker1.SelectedDate = DateTime.Now; |
||||
|
DatePicker2.SelectedDate = DateTime.Now; |
||||
|
btnAdd.OnClientClick = Window1.GetShowReference("../PlanData/PlanMonthEdit.aspx", "新增"); |
||||
|
|
||||
|
//OpenWindow_New("/PlanData/PlanMonthEdit.aspx", "新增");
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public void BindData() |
||||
|
{ |
||||
|
Expression<Func<V_PlanMonth, dynamic>> select = c => c; |
||||
|
|
||||
|
Expression<Func<V_PlanMonth, bool>> where = c => true; |
||||
|
|
||||
|
Expression<Func<V_PlanMonth, int>> order = c => c.ID; |
||||
|
|
||||
|
List<V_PlanMonth> listsss = SCPDB.V_PlanMonth.Where(where.Compile()).ToList(); |
||||
|
Grid1.DataSource = listsss; |
||||
|
Grid1.RecordCount = listsss.Count; |
||||
|
Grid1.DataBind(); |
||||
|
} |
||||
|
|
||||
|
//显示
|
||||
|
protected void btnShow_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
gp1.Hidden = false; |
||||
|
} |
||||
|
//关闭
|
||||
|
protected void btnClose_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
gp1.Hidden = true; |
||||
|
} |
||||
|
//查询
|
||||
|
protected void BtnSearch_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
_list = SearchData(out num); |
||||
|
Grid1.RecordCount = num; |
||||
|
Grid1.DataSource = _list; |
||||
|
Grid1.DataBind(); |
||||
|
} |
||||
|
public List<V_PlanMonth> SearchData(out int num) |
||||
|
{ |
||||
|
Expression<Func<V_PlanMonth, bool>> where = c => true; |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(txtSupplierCode.Text)) |
||||
|
{ |
||||
|
where = c => c.SupplierCode.Contains(txtSupplierCode.Text); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtVendName.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.VendName.Contains(txtVendName.Text)); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtCode.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.Code.Contains(txtCode.Text)); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtName.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.Name.Contains(txtName.Text)); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtVer.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.Ver.Contains(txtVer.Text)); |
||||
|
} |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(txtUserName.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.UserName.Contains(txtUserName.Text)); |
||||
|
} |
||||
|
if (txtIsSend.Checked) |
||||
|
{ |
||||
|
where = where.And(p => p.IsSend == "是"); |
||||
|
} |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(DatePicker1.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.AddTime == DatePicker1.SelectedDate); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(DatePicker1.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.SendTime == DatePicker2.SelectedDate); |
||||
|
} |
||||
|
|
||||
|
List<V_PlanMonth> list = SCPDB.V_PlanMonth.Where(where.Compile()).ToList(); |
||||
|
num = SCPDB.V_PlanMonth.Where(where.Compile()).Count(); |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
//导出
|
||||
|
protected void Button6_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
DateTime dt1 = (DateTime)DatePicker1.SelectedDate; |
||||
|
DateTime dt2 = (DateTime)DatePicker2.SelectedDate; |
||||
|
|
||||
|
//Expression<Func<V_QadOrder, dynamic>> select = c => c;
|
||||
|
|
||||
|
//Expression<Func<V_QadOrder, bool>> where = c => c.StartDate >= dt1 && c.EndDate <= dt2;
|
||||
|
|
||||
|
//Expression<Func<V_QadOrder, decimal>> order = c => c.ID;
|
||||
|
|
||||
|
//int total;
|
||||
|
|
||||
|
//var list = EntitiesHelper.GetPagedDataDesc(SCPDB,
|
||||
|
// select,
|
||||
|
// where,
|
||||
|
// order,
|
||||
|
// Grid1.PageIndex,
|
||||
|
// Grid1.PageSize,
|
||||
|
// out total).ToList();
|
||||
|
//DataTable dtData = ListHelper.ListToDataTable(list);
|
||||
|
//string downname = MyWebString.GetOrderNumber() + ".xls";
|
||||
|
//string filename = Server.MapPath("~/exportfiles/" + downname);
|
||||
|
|
||||
|
|
||||
|
|
||||
|
//MyExcel excel = new MyExcel();
|
||||
|
//excel.NewExcel(filename);
|
||||
|
//excel.NewSheet("Sheet1");
|
||||
|
//int rowindex = 0; //当前列所在位置
|
||||
|
|
||||
|
////创建第一行的字段
|
||||
|
//excel.CreateRow(rowindex);
|
||||
|
//int colindex = 0;
|
||||
|
//for (int i = 0; i < dtData.Columns.Count; i++)
|
||||
|
//{
|
||||
|
// excel.CreateCell(rowindex, colindex);
|
||||
|
// excel.SetCellValue(rowindex, colindex, Grid1.Columns[i].HeaderText.Trim());
|
||||
|
|
||||
|
// colindex++;
|
||||
|
//}
|
||||
|
|
||||
|
//rowindex++;
|
||||
|
//foreach (DataRow drOutput in dtData.Rows)
|
||||
|
//{
|
||||
|
// excel.CreateRow(rowindex);
|
||||
|
// colindex = 0;
|
||||
|
// for (int k = 0; k < Grid1.Columns.Count; k++)
|
||||
|
// {
|
||||
|
// excel.CreateCell(rowindex, colindex);
|
||||
|
// excel.SetCellValue(rowindex, colindex, drOutput[k].ToString());
|
||||
|
|
||||
|
// colindex++;
|
||||
|
// }
|
||||
|
// rowindex++;
|
||||
|
//}
|
||||
|
//excel.Save();
|
||||
|
|
||||
|
//Alert.Show("<a href='/exportfiles/" + downname + "'>" + downname + "</a>", "文件导出成功,请点击文件名下载", MessageBoxIcon.Information);
|
||||
|
} |
||||
|
|
||||
|
//TODO 找不到email
|
||||
|
public void SendMail(string Name) |
||||
|
{ |
||||
|
TA_VENDER model = new TA_VENDER(); |
||||
|
TA_VENDER modelVender = SCP_PLAN_MONTH_CONTROLLER.GetVend(); |
||||
|
if (modelVender != null) |
||||
|
{ |
||||
|
string mails = ""; |
||||
|
mails += modelVender.Email + ","; |
||||
|
if (mails != "") |
||||
|
{ |
||||
|
mails = mails.Substring(0, mails.Length - 1); |
||||
|
} |
||||
|
string mailbody = ""; |
||||
|
mailbody += "尊敬的供应商<br>"; |
||||
|
mailbody += "你好!<br><br>"; |
||||
|
mailbody += "月计划 <b>" + Name + "</b> 已经发布,请到供应商协同网站打开查看!<br>"; |
||||
|
mailbody += "<br><br><br><br>日期:" + DateTime.Now; |
||||
|
MyWebSmtpMail webmail = new MyWebSmtpMail(); |
||||
|
webmail.Send(mails, mailbody, "月计划发布通知"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected void btnEdit_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
string id = GetSelectedDataKey(Grid1, 0); |
||||
|
string url = String.Format("../PlanData/PlanMonthEdit.aspx?ID={0}", id); |
||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(url)); |
||||
|
} |
||||
|
|
||||
|
protected void btnPublish_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
//TODO 获取不到选中行 多选没测试
|
||||
|
string id = GetSelectedDataKey(Grid1, 0); |
||||
|
if (id != null) |
||||
|
{ |
||||
|
int ID = Convert.ToInt32(id); |
||||
|
modelPlanMonth = SCP_PLAN_MONTH_CONTROLLER.GetPlanMonthById(ID); |
||||
|
|
||||
|
if (modelPlanMonth != null) |
||||
|
{ |
||||
|
if (modelPlanMonth.IsSend != "是") |
||||
|
{ |
||||
|
SCP_PLAN_MONTH_CONTROLLER.UpdatePlanMonthById(modelPlanMonth); |
||||
|
} |
||||
|
try |
||||
|
{ |
||||
|
SendMail(modelPlanMonth.Name); |
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
throw; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected void btnDelete_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string id = GetSelectedDataKey(Grid1, 0); |
||||
|
if (id != null) |
||||
|
{ |
||||
|
int ID = Convert.ToInt32(id); |
||||
|
modelPlanMonth = SCP_PLAN_MONTH_CONTROLLER.GetPlanMonthById(ID); |
||||
|
|
||||
|
if (modelPlanMonth != null) |
||||
|
{ |
||||
|
//if (modelPlanMonth.IsSend != "是")
|
||||
|
//{
|
||||
|
var _res = SCP_PLAN_MONTH_CONTROLLER.DeletePlanMonthById(modelPlanMonth); |
||||
|
if (_res) |
||||
|
{ |
||||
|
BindData(); |
||||
|
Alert.Show("删除成功"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
Alert.Show("删除失败"); |
||||
|
} |
||||
|
//}
|
||||
|
//else
|
||||
|
//{
|
||||
|
// Alert.Show("发布信息不能删除!");
|
||||
|
//}
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlanMonthEdit.aspx.cs" Inherits="SCP.PlanData.PlanMonthEdit" %> |
||||
|
|
||||
|
<!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="btnOK" runat="server" Text="保存关闭" OnClick="btnOK_OnClick"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_OnClick"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnClose" runat="server" OnClick="btnClose_OnClick" Text="关闭" > |
||||
|
</f:Button> |
||||
|
</Items> |
||||
|
</f:Toolbar> |
||||
|
</Toolbars> |
||||
|
<Items> |
||||
|
<f:SimpleForm ID="SimpleForm1" runat="server" BodyPadding="20px" |
||||
|
ShowHeader="false" ShowBorder="False"> |
||||
|
<Items> |
||||
|
<f:DropDownList runat="server" Label="供应商" ID="ddl"/> |
||||
|
<f:TextBox ID="txtCode" runat="server" Label="文件编号" Text="" MinLength="1" Required="True" MaxLength="50" NextFocusControl="txtName"></f:TextBox> |
||||
|
<f:TextBox ID="txtName" runat="server" Label="文件描述" Text="" MinLength="1" Required="True" MaxLength="50" NextFocusControl="txtVer"></f:TextBox> |
||||
|
<f:TextBox ID="txtVer" runat="server" Label="版本号" Text="" MinLength="1" Required="True" MaxLength="50" NextFocusControl="txtFileName"></f:TextBox> |
||||
|
<f:FileUpload ID="txtFileName" runat="server" Label="文件上传" NextFocusControl="linkFileName"></f:FileUpload> |
||||
|
<f:HyperLink ID="linkFileName" runat="server" Label="已经上传文件" NavigateUrl="" Target="_blank" |
||||
|
Text="HyperLink"> |
||||
|
</f:HyperLink> |
||||
|
</Items> |
||||
|
</f:SimpleForm> |
||||
|
</Items> |
||||
|
</f:Panel> |
||||
|
</form> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,113 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.IO; |
||||
|
using System.Web; |
||||
|
using System.Web.UI; |
||||
|
using System.Web.UI.WebControls; |
||||
|
using CK.SCP.Models.ScpEntity; |
||||
|
using CK.SCP.Controller; |
||||
|
|
||||
|
namespace SCP.PlanData |
||||
|
{ |
||||
|
public partial class PlanMonthEdit : PageBase |
||||
|
{ |
||||
|
protected void Page_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (!IsPostBack) |
||||
|
{ |
||||
|
DDLBindData(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void DDLBindData() |
||||
|
{ |
||||
|
this.ddl.DataSource = SCP_PLAN_MONTH_CONTROLLER.GetVendList(); |
||||
|
this.ddl.DataTextField = "VendName"; |
||||
|
this.ddl.DataValueField = "VendId"; |
||||
|
this.ddl.DataBind(); |
||||
|
//TODO 权限控制 只能修改自己上传的数据
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
//关闭
|
||||
|
protected void btnClose_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
//保存
|
||||
|
protected void btnSave_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
TB_PlanMonth model = new TB_PlanMonth(); |
||||
|
model.SupplierCode = ddl.SelectedValue; |
||||
|
model.Code = txtCode.Text; |
||||
|
model.Name = txtName.Text; |
||||
|
model.Ver = txtVer.Text; |
||||
|
model.FileName = txtFileName.FileName; |
||||
|
model.AddTime=DateTime.Now; |
||||
|
if (txtFileName.FileName != "") |
||||
|
{ |
||||
|
Upload(txtFileName, ""); |
||||
|
} |
||||
|
SCP_PLAN_MONTH_CONTROLLER.SaveTbPlanMonth(model); |
||||
|
|
||||
|
} |
||||
|
//保存关闭
|
||||
|
protected void btnOK_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
throw new NotImplementedException(); |
||||
|
} |
||||
|
public static string Upload(FineUI.FileUpload fUpload, string ext) |
||||
|
{ |
||||
|
string[] allowedExtensions = { ".jpg", ".gif", ".jpeg", ".png", ".rar", ".zip", ".flv", ".doc", ".docx", ".xls", ".xlsx", ".pdf", ".cad", ".txt" };//允许上传的文件类型
|
||||
|
|
||||
|
string filename = ""; //MyWebString.GetOrderNumber();
|
||||
|
|
||||
|
bool fileOK = false; |
||||
|
string fileExtension = System.IO.Path.GetExtension(fUpload.FileName).ToLower(); |
||||
|
for (int i = 0; i < allowedExtensions.Length; i++) |
||||
|
{ |
||||
|
if (fileExtension == allowedExtensions[i]) |
||||
|
{ |
||||
|
fileOK = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (ext != "") |
||||
|
{ |
||||
|
if (fileExtension != ext.ToLower()) |
||||
|
{ |
||||
|
throw new Exception("只能上传 " + ext + " 类型的文件!"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (fileOK) |
||||
|
{ |
||||
|
if (fUpload.HasFile) |
||||
|
{ |
||||
|
// filename = GetMD5HashFromFile(fUpload.PostedFile.InputStream); //TODO 将文件名改为MD5
|
||||
|
//
|
||||
|
// filename = filename + fileExtension;
|
||||
|
filename = Path.GetFileName(fUpload.FileName); |
||||
|
|
||||
|
if (!File.Exists(System.Web.HttpContext.Current.Server.MapPath("~/uploadfiles/") + filename)) |
||||
|
{ |
||||
|
fUpload.SaveAs(System.Web.HttpContext.Current.Server.MapPath("~/uploadfiles/") + filename); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
throw new Exception("文件上传失败!"); |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
throw new Exception("上传文件格式不正确!"); |
||||
|
} |
||||
|
|
||||
|
return filename; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlanMonth.aspx.cs" Inherits="SCP.SupplierData.PlanMonth" %> |
||||
|
|
||||
|
<!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:Button ID="Button3" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="Button6" runat="server" EnablePostBack="True" Text="导出" Icon="PageExcel" OnClick="Button6_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:Label runat="server" Label="供应商编号" /> |
||||
|
<f:TextBox ID="txtSupplierCode" runat="server" /> |
||||
|
<f:Label runat="server" Label="供应商名称" /> |
||||
|
<f:TextBox ID="txtVendName" runat="server" /> |
||||
|
<f:Label runat="server" Label="文件编号" /> |
||||
|
<f:TextBox ID="txtCode" runat="server" /> |
||||
|
<f:Label runat="server" Label="文件描述" /> |
||||
|
<f:TextBox ID="txtName" runat="server" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server"> |
||||
|
<Items> |
||||
|
<f:Label runat="server" Label="版本号" /> |
||||
|
<f:TextBox ID="txtVer" runat="server" /> |
||||
|
<f:Label runat="server" Label="发布用户" /> |
||||
|
<f:TextBox ID="txtUserName" runat="server" /> |
||||
|
<f:Label runat="server" Label="是否发布" /> |
||||
|
<f:CheckBox ID="txtIsSend" runat="server" /> |
||||
|
<f:Label runat="server" Label="新增时间" /> |
||||
|
<f:DatePicker ID="DatePicker1" runat="server" Required="true" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server"> |
||||
|
<Items> |
||||
|
<f:Label runat="server" Label="发布时间" /> |
||||
|
<f:DatePicker ID="DatePicker2" runat="server" Required="true" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server"> |
||||
|
<Items> |
||||
|
<f:Button runat="server" ID="btnClose" Text="关闭" OnClick="btnClose_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="Grid1" ShowBorder="true" ShowHeader="true" PageSize="20" BoxFlex="1" CssClass="maingrid" |
||||
|
runat="server" DataKeyNames="ID" IsDatabasePaging="True" AllowPaging="True" |
||||
|
EnableRowSelectEvent="True" AutoScroll="True"> |
||||
|
<Columns> |
||||
|
<f:BoundField runat="server" HeaderText="供应商编号" ColumnID="" DataField="SupplierCode" /> |
||||
|
<f:BoundField runat="server" HeaderText="供应商名称" ColumnID="" DataField="VendName" /> |
||||
|
<f:BoundField runat="server" HeaderText="文件编号" ColumnID="" DataField="Code" /> |
||||
|
<f:BoundField runat="server" HeaderText="文件描述" ColumnID="" DataField="Name" /> |
||||
|
<f:BoundField runat="server" HeaderText="版本号" ColumnID="" DataField="Ver" /> |
||||
|
<f:HyperLinkField HeaderText="文件下载" DataToolTipField="FileName" DataTextField="FileName" |
||||
|
DataTextFormatString="{0}" DataNavigateUrlFields="FileName" DataNavigateUrlFormatString="/uploadfiles/{0}" |
||||
|
DataNavigateUrlFieldsEncode="true" Target="_blank" ColumnID="FileName" Width="260px" /> |
||||
|
<f:BoundField runat="server" HeaderText="新增时间" ColumnID="" DataField="AddTime" /> |
||||
|
<f:BoundField runat="server" HeaderText="发布用户" ColumnID="" DataField="UserName" /> |
||||
|
<f:BoundField runat="server" HeaderText="是否发布" ColumnID="" DataField="IsSend" /> |
||||
|
<f:BoundField runat="server" HeaderText="发布时间" ColumnID="" DataField="SendTime" /> |
||||
|
</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="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> |
@ -0,0 +1,191 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Data; |
||||
|
using System.Linq; |
||||
|
using System.Linq.Expressions; |
||||
|
using System.Web; |
||||
|
using System.Web.UI; |
||||
|
using System.Web.UI.WebControls; |
||||
|
using CK.SCP.Models.ScpEntity; |
||||
|
using CK.SCP.Utils; |
||||
|
using CK.SCP.Common; |
||||
|
using CK.SCP.Controller; |
||||
|
using FineUI; |
||||
|
|
||||
|
|
||||
|
namespace SCP.SupplierData |
||||
|
{ |
||||
|
public partial class PlanMonth : PageBase |
||||
|
{ |
||||
|
public List<V_PlanMonth> _list; |
||||
|
public static int num; |
||||
|
private TB_PlanMonth modelPlanMonth; |
||||
|
protected void Page_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (!IsPostBack) |
||||
|
{ |
||||
|
BindData(); |
||||
|
DatePicker1.SelectedDate = DateTime.Now; |
||||
|
DatePicker2.SelectedDate = DateTime.Now; |
||||
|
//OpenWindow_New("/PlanData/PlanMonthEdit.aspx", "新增");
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
public void BindData() |
||||
|
{ |
||||
|
string name = GetIdentityName(); |
||||
|
Expression<Func<V_PlanMonth, dynamic>> select = c => c; |
||||
|
|
||||
|
Expression<Func<V_PlanMonth, bool>> where = c => c.IsSend == "是" && c.SupplierCode == name; |
||||
|
|
||||
|
Expression<Func<V_PlanMonth, int>> order = c => c.ID; |
||||
|
|
||||
|
List<V_PlanMonth> listsss = SCPDB.V_PlanMonth.Where(where.Compile()).ToList(); |
||||
|
Grid1.DataSource = listsss; |
||||
|
Grid1.RecordCount = listsss.Count; |
||||
|
Grid1.DataBind(); |
||||
|
|
||||
|
|
||||
|
// int total;
|
||||
|
//
|
||||
|
// var list = EntitiesHelper.GetPagedDataDesc(SCPDB,
|
||||
|
// select,
|
||||
|
// where,
|
||||
|
// order,
|
||||
|
// Grid1.PageIndex,
|
||||
|
// Grid1.PageSize,
|
||||
|
// out total).ToList();
|
||||
|
// Grid1.RecordCount = total;
|
||||
|
// Grid1.DataSource = list;
|
||||
|
// Grid1.DataBind();
|
||||
|
} |
||||
|
|
||||
|
//显示
|
||||
|
protected void btnShow_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
gp1.Hidden = false; |
||||
|
} |
||||
|
//关闭
|
||||
|
protected void btnClose_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
gp1.Hidden = true; |
||||
|
} |
||||
|
//查询
|
||||
|
protected void BtnSearch_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
_list = SearchData(out num); |
||||
|
Grid1.RecordCount = num; |
||||
|
Grid1.DataSource = _list; |
||||
|
Grid1.DataBind(); |
||||
|
} |
||||
|
public List<V_PlanMonth> SearchData(out int num) |
||||
|
{ |
||||
|
Expression<Func<V_PlanMonth, bool>> where = c => true; |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(txtSupplierCode.Text)) |
||||
|
{ |
||||
|
where = c => c.SupplierCode.Contains(txtSupplierCode.Text); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtVendName.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.VendName.Contains(txtVendName.Text)); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtCode.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.Code.Contains(txtCode.Text)); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtName.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.Name.Contains(txtName.Text)); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(txtVer.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.Ver.Contains(txtVer.Text)); |
||||
|
} |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(txtUserName.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.UserName.Contains(txtUserName.Text)); |
||||
|
} |
||||
|
if (txtIsSend.Checked) |
||||
|
{ |
||||
|
where = where.And(p => p.IsSend == "是"); |
||||
|
} |
||||
|
|
||||
|
if (!string.IsNullOrEmpty(DatePicker1.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.AddTime == DatePicker1.SelectedDate); |
||||
|
} |
||||
|
if (!string.IsNullOrEmpty(DatePicker1.Text)) |
||||
|
{ |
||||
|
where = where.And(p => p.SendTime == DatePicker2.SelectedDate); |
||||
|
} |
||||
|
|
||||
|
List<V_PlanMonth> list = SCPDB.V_PlanMonth.Where(where.Compile()).ToList(); |
||||
|
num = SCPDB.V_PlanMonth.Where(where.Compile()).Count(); |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
//导出
|
||||
|
protected void Button6_OnClick(object sender, EventArgs e) |
||||
|
{ |
||||
|
// DateTime dt1 = (DateTime)DatePicker1.SelectedDate;
|
||||
|
// DateTime dt2 = (DateTime)DatePicker2.SelectedDate;
|
||||
|
|
||||
|
// Expression<Func<V_QadOrder, dynamic>> select = c => c;
|
||||
|
|
||||
|
// Expression<Func<V_QadOrder, bool>> where = c => c.StartDate >= dt1 && c.EndDate <= dt2;
|
||||
|
|
||||
|
// Expression<Func<V_QadOrder, decimal>> order = c => c.ID;
|
||||
|
|
||||
|
// int total;
|
||||
|
|
||||
|
// var list = EntitiesHelper.GetPagedDataDesc(SCPDB,
|
||||
|
// select,
|
||||
|
// where,
|
||||
|
// order,
|
||||
|
// Grid1.PageIndex,
|
||||
|
// Grid1.PageSize,
|
||||
|
// out total).ToList();
|
||||
|
// DataTable dtData = ListHelper.ListToDataTable(list);
|
||||
|
// string downname = MyWebString.GetOrderNumber() + ".xls";
|
||||
|
// string filename = Server.MapPath("~/exportfiles/" + downname);
|
||||
|
|
||||
|
|
||||
|
|
||||
|
// MyExcel excel = new MyExcel();
|
||||
|
// excel.NewExcel(filename);
|
||||
|
// excel.NewSheet("Sheet1");
|
||||
|
// int rowindex = 0; //当前列所在位置
|
||||
|
|
||||
|
// //创建第一行的字段
|
||||
|
// excel.CreateRow(rowindex);
|
||||
|
// int colindex = 0;
|
||||
|
// for (int i = 0; i < dtData.Columns.Count; i++)
|
||||
|
// {
|
||||
|
// excel.CreateCell(rowindex, colindex);
|
||||
|
// excel.SetCellValue(rowindex, colindex, Grid1.Columns[i].HeaderText.Trim());
|
||||
|
|
||||
|
// colindex++;
|
||||
|
// }
|
||||
|
|
||||
|
// rowindex++;
|
||||
|
// foreach (DataRow drOutput in dtData.Rows)
|
||||
|
// {
|
||||
|
// excel.CreateRow(rowindex);
|
||||
|
// colindex = 0;
|
||||
|
// for (int k = 0; k < Grid1.Columns.Count; k++)
|
||||
|
// {
|
||||
|
// excel.CreateCell(rowindex, colindex);
|
||||
|
// excel.SetCellValue(rowindex, colindex, drOutput[k].ToString());
|
||||
|
|
||||
|
// colindex++;
|
||||
|
// }
|
||||
|
// rowindex++;
|
||||
|
// }
|
||||
|
// excel.Save();
|
||||
|
|
||||
|
// Alert.Show("<a href='/exportfiles/" + downname + "'>" + downname + "</a>", "文件导出成功,请点击文件名下载", MessageBoxIcon.Information);
|
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,99 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlanDetail.aspx.cs" Inherits="SCP.SupplierData.PlanDetail" %> |
|
||||
|
|
||||
<!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="box"> |
|
||||
</f:Button> |
|
||||
|
|
||||
<f:Button ID="btnConfirm" runat="server" EnablePostBack="True" Text="确认订单" Icon="Accept" OnClick="btnConfirm_OnClick" OnClientClick="if(!confirm('是否要确认订单?'))return false;"> |
|
||||
</f:Button> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
<Items> |
|
||||
<f:Form runat="server" Title=""> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<%-- <f:Label runat="server" Label="状态"/>--%> |
|
||||
<f:TextBox ID="txtState" runat="server" Label="状态" Text="" Width="600"> |
|
||||
</f:TextBox> |
|
||||
<f:TextBox ID="txtbillnum" runat="server" Label="订单号" Text="" Width="600"> |
|
||||
</f:TextBox> |
|
||||
<f:TextBox runat="server" ID="txtBillTime" Label="创建时间" Text="" Readonly="true" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
<f:FormRow runat="server" ColumnWidths="33% 33% 33%"> |
|
||||
<Items> |
|
||||
<f:TextBox runat="server" ID="txtSupplierCode" Label="供应商" Text="" Readonly="true" /> |
|
||||
<f:TextBox ID="txtDeliveryAddress" 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="txtDueTime" runat="server" Label="截止日期" Text="" Readonly="true" /> |
|
||||
<f:TextBox ID="txtRemark" runat="server" Label="备注" Text=""> |
|
||||
</f:TextBox> |
|
||||
<f:Label runat="server" /> |
|
||||
|
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
<f:Toolbar runat="server"> |
|
||||
<Items> |
|
||||
<f:Button ID="btnCreate" runat="server" EnablePostBack="True" OnClick="btnCreate_OnClick" Text="生成发货单" Icon="CssAdd"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarSeparator runat="server" /> |
|
||||
<f:Button ID="btnOutput" runat="server" Text="导出" Icon="PageExcel"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarFill runat="server" /> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" PageSize="10" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" DataKeyNames="" IsDatabasePaging="True" AllowPaging="True" |
|
||||
EnableRowSelectEvent="True" AutoScroll="True"> |
|
||||
<Columns> |
|
||||
|
|
||||
<f:BoundField DataField="ID" HeaderText="ID" ColumnID="ID" Hidden="true" /> |
|
||||
<f:BoundField SortField="Line" DataField="Line" HeaderText="行号" ColumnID="Line" Width="40px" /> |
|
||||
<f:BoundField SortField="ProductCode" DataField="PartCode" HeaderText="零件号" ColumnID="ProductCode" Width="100px" /> |
|
||||
<f:BoundField SortField="ProductName" DataField="PartDesc1" HeaderText="零件描述" ColumnID="ProductName" Width="300px" /> |
|
||||
<f:BoundField SortField="UnitCode" DataField="Unit" HeaderText="单位" ColumnID="UnitCode" Width="40px" /> |
|
||||
<f:BoundField SortField="PackageQty" DataField="PackQty" HeaderText="标包数量" ColumnID="PackageQty" Width="40px" /> |
|
||||
<f:BoundField SortField="CurrencyCode" DataField="Currency" HeaderText="币种" ColumnID="CurrencyCode" Width="40px" /> |
|
||||
<f:BoundField SortField="Price" DataField="Price" HeaderText="价格" ColumnID="Price" Width="80px" /> |
|
||||
<f:BoundField SortField="PlanQty" DataField="BillQty" HeaderText="订单数量" ColumnID="PlanQty" Width="60px" /> |
|
||||
<f:BoundField SortField="OpenQty" DataField="ShippedQty" HeaderText="发货数量" ColumnID="OpenQty" Width="60px" /> |
|
||||
<f:BoundField SortField="ShipQty" DataField="ShippedQty" HeaderText="发货数量" ColumnID="ShipQty" Width="60px" /> |
|
||||
<f:BoundField SortField="ReceiveQty" DataField="ReceiveQty" HeaderText="收货数量" ColumnID="ReceiveQty" Width="60px" /> |
|
||||
<f:BoundField SortField="RejectQty" DataField="Expr3" HeaderText="说明" ColumnID="RejectQty" 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,90 +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.Common; |
|
||||
using CK.SCP.Controller; |
|
||||
using FineUI; |
|
||||
|
|
||||
|
|
||||
namespace SCP.SupplierData |
|
||||
{ |
|
||||
public partial class PlanDetail : PageBase |
|
||||
{ |
|
||||
//private List<V_POAllDetail> _list;
|
|
||||
//private V_POAllDetail _Model;
|
|
||||
public V_POAll model; |
|
||||
|
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
|
|
||||
string id = GetQueryValue("ID"); |
|
||||
model = POController.GetPOAlllistByBillNum(id); |
|
||||
|
|
||||
txtState.Text = EnumHelper.GetDescription((PlanState) model.State); |
|
||||
txtbillnum.Text = model.BillNum; |
|
||||
txtBillTime.Text = Convert.ToDateTime(model.BillTime).ToString("yyyy-MM-dd"); |
|
||||
txtSupplierCode.Text = model.VendName; |
|
||||
txtDeliveryAddress.Text = model.ShipToSite; |
|
||||
txtDueTime.Text = Convert.ToDateTime(model.DueDate).ToString("yyyy-MM-dd"); |
|
||||
txtRemark.Text = model.Remark; |
|
||||
BindData(id); |
|
||||
|
|
||||
//this.btnEdit.OnClientClick = OpenWindow_Edit("/BillData/PlanDetailEdit.aspx?ParentID=" + ParentID, "修改");
|
|
||||
|
|
||||
} |
|
||||
} |
|
||||
public void BindData(string id) |
|
||||
{ |
|
||||
Expression<Func<V_POAllDetail, dynamic>> select = c => c; |
|
||||
|
|
||||
Expression<Func<V_POAllDetail, bool>> where = c => c.BillNum == id; |
|
||||
|
|
||||
Expression<Func<V_POAllDetail, int>> order = c => c.UID; |
|
||||
|
|
||||
int total; |
|
||||
|
|
||||
var list = EntitiesHelper.GetPagedDataDesc(SCPDB, |
|
||||
select, |
|
||||
where, |
|
||||
order, |
|
||||
Grid1.PageIndex, |
|
||||
Grid1.PageSize, |
|
||||
out total).ToList(); |
|
||||
Grid1.RecordCount = total; |
|
||||
Grid1.DataSource = list; |
|
||||
Grid1.DataBind(); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
|
|
||||
//订单作废
|
|
||||
protected void Button5_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
string id = GetQueryValue("ID"); |
|
||||
TF_PO POModel = POController.GetlistByBillNum(id); |
|
||||
TF_PO order = POController.GetlistByID(POModel.UID); |
|
||||
order.State = (int) PlanState.Reject; |
|
||||
POController.UpdatePOState(order); |
|
||||
PageContext.Refresh(); |
|
||||
} |
|
||||
//确认订单
|
|
||||
protected void btnConfirm_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
throw new NotImplementedException(); |
|
||||
} |
|
||||
//生产发货单
|
|
||||
protected void btnCreate_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
throw new NotImplementedException(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,135 @@ |
|||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_ASN.aspx.cs" Inherits="SCP.Views.青岛一汽法雷奥.SupplierData.SCP_ASN" %> |
||||
|
|
||||
|
<!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="" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start"> |
||||
|
<Items> |
||||
|
<f:Form runat="server"> |
||||
|
<Toolbars> |
||||
|
<f:Toolbar ID="Toolbar2" runat="server"> |
||||
|
<Items> |
||||
|
<f:Button ID="Button1" runat="server" EnablePostBack="True" Text="刷新" Icon="Reload" OnClientClick="location.reload();"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="BtnOutPut" runat="server" EnablePostBack="True" Text="导出" Icon="PageExcel" OnClick="BtnOutPut_Click"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnDetail" runat="server" EnablePostBack="True" Text="明细" Icon="Find" OnClick="btnDetail_Click"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnNew" runat="server" EnablePostBack="True" Text="新建发货单" Hidden="true" Icon="Add" OnClick="btnNew_Click"> |
||||
|
</f:Button> |
||||
|
<%--<f:Button ID="btnDelete" runat="server" EnablePostBack="True" Text="删除" Icon="Add" OnClick="btnDelete_Click" Hidden="True"> |
||||
|
</f:Button>--%> |
||||
|
<f:Button ID="btnShow" runat="server" Icon="Find" Text="显示查询面板" OnClick="btnShow_Click"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnPallet" runat="server" Icon="Add" Text="创建托盘" OnClick="btnPallet_Click" Hidden="true"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnPalletDetail" runat="server" Icon="Zoom" Text="查看托盘" OnClick="btnPalletDetail_Click" Hidden="true"> |
||||
|
</f:Button> |
||||
|
</Items> |
||||
|
</f:Toolbar> |
||||
|
</Toolbars> |
||||
|
</f:Form> |
||||
|
<f:Label runat="server" Label="物料发出前,请确认发货单是【已发货】状态,如果是发货单是【新建】状态请进入明细,点击【确认发货】按钮。" LabelWidth="800" ColumnWidth="800" Width="800" /> |
||||
|
<f:GroupPanel runat="server" ID="gp1" Hidden="True" Layout="HBox"> |
||||
|
<Items> |
||||
|
<f:Form runat="server"> |
||||
|
<Rows> |
||||
|
<f:FormRow runat="server" ID="FormRow_1" Hidden="true"> |
||||
|
<Items> |
||||
|
<f:DropDownList runat="server" ID="ddl" Label="状态"> |
||||
|
<f:ListItem Text="-" Value="" /> |
||||
|
<f:ListItem Text="新建" Value="0" /> |
||||
|
<f:ListItem Text="已发货" Value="1" /> |
||||
|
<f:ListItem Text="已收货" Value="2" /> |
||||
|
<f:ListItem Text="已作废" Value="-1" /> |
||||
|
</f:DropDownList> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server" ID="FormRow_2"> |
||||
|
<Items> |
||||
|
|
||||
|
<f:TextBox ID="txtBill" runat="server" Label="发货单号" /> |
||||
|
|
||||
|
<f:TextBox ID="TXT_VenderName" runat="server" Label="供应商" /> |
||||
|
<f:TextBox ID="TXT_ASK" runat="server" Label="看板编号" /> |
||||
|
<f:TextBox ID="txtPO" runat="server" Label="订单编号" /> |
||||
|
<f:DropDownList runat="server" ID="DropDownList1" Label="地点" DataTextField="FactoryName" DataValueField=" ErpDomain"> |
||||
|
</f:DropDownList> |
||||
|
<f:TextBox ID="TXT_Extend1" runat="server" Label="子网站" Hidden="true" /> |
||||
|
<f:TextBox ID="TXT_Extend2" runat="server" Label="子网站" Hidden="true" /> |
||||
|
<f:TextBox ID="TXT_Extend3" runat="server" Label="子网站" Hidden="true" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server" ID="FormRow_3" Hidden="true"> |
||||
|
<Items> |
||||
|
<f:Label runat="server" Label="发往地点" /> |
||||
|
<f:TextBox ID="txtShipTosite" runat="server" /> |
||||
|
<f:DatePicker ID="dateShip" runat="server" Required="True" Label="发货时间" /> |
||||
|
<f:Label runat="server" Label="发货时间" /> |
||||
|
<f:DatePicker ID="dateReceive" runat="server" Required="true" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server" ID="FormRow_4"> |
||||
|
<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_ASN" ShowBorder="true" ShowHeader="true" PageSize="20" BoxFlex="1" CssClass="maingrid" |
||||
|
runat="server" DataKeyNames="UID,AsnBillNum,AskBillNum,PoBillNum,VendId,State,Remark,ShipTime,ShipUser,ReceiveTime,ReceiveUser,ErpBillNum,ModType,Contacter,Buyer,BuyerPhone,VendName,Site,State_DESC,ModType_DESC,CreateTime,CreateUser,UpdateTime,UpdateUser,UpdateInfo,IsDeleted,GUID" |
||||
|
IsDatabasePaging="true" AllowPaging="true" SortDirection="DESC" SortField="ShipTime" |
||||
|
AutoScroll="True" EnableRowDoubleClickEvent="True" OnRowDoubleClick="Grid_V_TB_ASN_RowDoubleClick" OnPageIndexChange="Grid_V_TB_ASN_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="20" Value="10" /> |
||||
|
<f:ListItem Text="40" Value="40" /> |
||||
|
<f:ListItem Text="80" Value="80" /> |
||||
|
<f:ListItem Text="100" Value="100" /> |
||||
|
|
||||
|
</f:DropDownList> |
||||
|
</PageItems> |
||||
|
|
||||
|
<Columns> |
||||
|
<f:BoundField Width="100px" DataField="State_DESC" DataFormatString="{0}" HeaderText="状态" /> |
||||
|
<f:BoundField runat="server" HeaderText="发货单号" ColumnID="" DataField="AsnBillNum" /> |
||||
|
<f:BoundField runat="server" HeaderText="要货单号" ColumnID="" DataField="AskBillNum" /> |
||||
|
<f:BoundField runat="server" HeaderText="车牌号" ColumnID="" DataField="PlateNumber" Hidden="false"></f:BoundField> |
||||
|
<f:BoundField runat="server" HeaderText="供应商" ColumnID="" DataField="VendName" /> |
||||
|
<f:BoundField runat="server" HeaderText="订单号" ColumnID="" DataField="PoBillNum" /> |
||||
|
<f:BoundField Width="100px" DataField="ShipTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="发货时间" Hidden="true" /> |
||||
|
<f:BoundField Width="100px" DataField="ShipUser" DataFormatString="{0}" HeaderText="发货人" /> |
||||
|
<f:BoundField Width="100px" DataField="ReceiveTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="收货时间" Hidden="true" /> |
||||
|
<f:BoundField Width="100px" DataField="ReceiveUser" DataFormatString="{0}" HeaderText="收货人" /> |
||||
|
<f:BoundField runat="server" HeaderText="发往地点" ColumnID="" DataField="Site_Desc" /> |
||||
|
<f:BoundField runat="server" HeaderText="备注" ColumnID="" DataField="Remark" Hidden="true" /> |
||||
|
|
||||
|
|
||||
|
</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" /> |
||||
|
</form> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,203 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Web; |
||||
|
using System.Web.UI; |
||||
|
using System.Web.UI.WebControls; |
||||
|
using CK.SCP.Models.ScpEntity; |
||||
|
using CK.SCP.Controller; |
||||
|
using FineUI; |
||||
|
using System.Data; |
||||
|
namespace SCP.Views.青岛一汽法雷奥.SupplierData |
||||
|
{ |
||||
|
public partial class SCP_ASN : PageBase |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 页面加载
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void Page_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (!IsPostBack) |
||||
|
{ |
||||
|
LoadData(); |
||||
|
} |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 数据加载
|
||||
|
/// </summary>
|
||||
|
public void LoadData() |
||||
|
{ |
||||
|
if (!CurrentUser.RoleList.Contains("供应商")) |
||||
|
{ |
||||
|
Alert.Show("当前用户角色不能操作模块!"); |
||||
|
return; |
||||
|
} |
||||
|
if (CurrentUser.VenderList.Count == 0) |
||||
|
{ |
||||
|
Alert.Show("当前用户分配供应商!"); |
||||
|
return; |
||||
|
} |
||||
|
BindASN(); |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 数据绑定
|
||||
|
/// </summary>
|
||||
|
public void BindASN() |
||||
|
{ |
||||
|
SearchV_TB_ASN((result) => { |
||||
|
Grid_V_TB_ASN.RecordCount = result.Count(); |
||||
|
var list = SortAndPage<V_TB_ASN>(result, Grid_V_TB_ASN); |
||||
|
Grid_V_TB_ASN.DataSource = list; |
||||
|
|
||||
|
|
||||
|
Grid_V_TB_ASN.DataBind(); |
||||
|
}); |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 获取数据
|
||||
|
/// </summary>
|
||||
|
/// <param name="p_action"></param>
|
||||
|
public void SearchV_TB_ASN(Action<IQueryable<V_TB_ASN>> p_action) |
||||
|
{ |
||||
|
var ls = SCPDB.TB_FACTORY.Where(p => p.ErpDomain == CurrentUser.UsedDomain).ToList(); |
||||
|
DropDownList1.DataSource = ls; |
||||
|
DropDownList1.DataBind(); |
||||
|
V_TB_ASN _entity = new V_TB_ASN(); |
||||
|
_entity.IsDeleted = false; |
||||
|
_entity.VendId = TXT_VenderName.Text; |
||||
|
_entity.PoBillNum = txtPO.Text; |
||||
|
_entity.AsnBillNum = txtBill.Text; |
||||
|
_entity.AskBillNum = TXT_ASK.Text; |
||||
|
_entity.UserInVendIds = CurrentUser.VenderList; |
||||
|
_entity.UserInAddress = CurrentUser.FactoryList; |
||||
|
_entity.SubSite = DropDownList1.SelectedValue; |
||||
|
_entity.Extend1 = TXT_Extend1.Text; |
||||
|
_entity.Extend2 = TXT_Extend2.Text; |
||||
|
_entity.Extend3 = TXT_Extend3.Text; |
||||
|
SCP_ASN_CONTROLLER.Get_V_TB_ASN_List(_entity, (_ret) => { |
||||
|
if (_ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
p_action(_ret.Result); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// Grid双击事件
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void Grid_V_TB_ASN_RowDoubleClick(object sender, FineUI.GridRowClickEventArgs e) |
||||
|
{ |
||||
|
object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[e.RowIndex]; |
||||
|
string AsnBillNum = rowDataKeys[1] as string; |
||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(string.Format("../SupplierData/SCP_ASN_DETAIL.aspx?AsnBillNum={0}", AsnBillNum))); |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 导出发货单
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void BtnOutPut_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
List<string> _ls = new List<string>(); |
||||
|
SearchV_TB_ASN(rs => { |
||||
|
_ls=rs.Select(p => p.AsnBillNum).ToList(); |
||||
|
DataSet ds = SCP_EXCEL_CONTROLLER.GET_ASN_EXECEL(_ls); |
||||
|
PageBase.DataSetToExcel(ds, "发货单"); |
||||
|
}); |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 查看明细
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void btnDetail_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0) |
||||
|
{ |
||||
|
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); |
||||
|
return; |
||||
|
} |
||||
|
object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex]; |
||||
|
string AsnBillNum = rowDataKeys[1] as string; |
||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(string.Format("../SupplierData/SCP_ASN_DETAIL.aspx?AsnBillNum={0}", AsnBillNum))); |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 显示查询面板
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void btnShow_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
gp1.Hidden = false; |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 关闭查询面板
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void btnClose_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
gp1.Hidden = true; |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 查询事件
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void BtnSearch_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
BindASN(); |
||||
|
} |
||||
|
protected void Grid_V_TB_ASN_PageIndexChange(object sender, GridPageEventArgs e) |
||||
|
{ |
||||
|
BindASN(); |
||||
|
} |
||||
|
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
Grid_V_TB_ASN.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
||||
|
BindASN(); |
||||
|
} |
||||
|
protected void BtnOutPut_Click1(object sender, EventArgs e) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
protected void btnNew_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference("../SupplierData/SCP_ASK.aspx")); |
||||
|
} |
||||
|
|
||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e) |
||||
|
{ |
||||
|
BindASN(); |
||||
|
} |
||||
|
|
||||
|
protected void btnPallet_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0) |
||||
|
{ |
||||
|
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); |
||||
|
return; |
||||
|
} |
||||
|
object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex]; |
||||
|
string AsnBillNum = rowDataKeys[1] as string; |
||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(string.Format("../../Views/SupplierData/SCP_PALLET_CREATE.aspx?AsnBillNum={0}", AsnBillNum))); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
protected void btnPalletDetail_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (Grid_V_TB_ASN.SelectedRowIndexArray.Count() == 0) |
||||
|
{ |
||||
|
PageContext.RegisterStartupScript(Alert.GetShowInTopReference("没有选择数据!")); |
||||
|
return; |
||||
|
} |
||||
|
object[] rowDataKeys = Grid_V_TB_ASN.DataKeys[Grid_V_TB_ASN.SelectedRowIndex]; |
||||
|
string AsnBillNum = rowDataKeys[1] as string; |
||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(string.Format("../../SupplierData/SCP_PALLET.aspx?AsnBillNum={0}", AsnBillNum))); |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,323 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <自动生成>
|
||||
|
// 此代码由工具生成。
|
||||
|
//
|
||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||
|
// 重新生成代码,则所做更改将丢失。
|
||||
|
// </自动生成>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace SCP.Views.青岛一汽法雷奥.SupplierData |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
public partial class SCP_ASN |
||||
|
{ |
||||
|
|
||||
|
/// <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>
|
||||
|
/// BtnOutPut 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button BtnOutPut; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnDetail 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnDetail; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnNew 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnNew; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnShow 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnShow; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnPallet 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnPallet; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnPalletDetail 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnPalletDetail; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// gp1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.GroupPanel gp1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// FormRow_1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.FormRow FormRow_1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// ddl 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.DropDownList ddl; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// FormRow_2 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.FormRow FormRow_2; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// txtBill 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox txtBill; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_VenderName 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_VenderName; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_ASK 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_ASK; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// txtPO 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox txtPO; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// DropDownList1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.DropDownList DropDownList1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_Extend1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_Extend1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_Extend2 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_Extend2; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_Extend3 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_Extend3; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// FormRow_3 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.FormRow FormRow_3; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// txtShipTosite 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox txtShipTosite; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// dateShip 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.DatePicker dateShip; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// dateReceive 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.DatePicker dateReceive; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// FormRow_4 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.FormRow FormRow_4; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnClose 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnClose; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// BtnSearch 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button BtnSearch; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Grid_V_TB_ASN 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Grid Grid_V_TB_ASN; |
||||
|
|
||||
|
/// <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; |
||||
|
} |
||||
|
} |
@ -0,0 +1,184 @@ |
|||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_ASN_DETAIL.aspx.cs" Inherits="SCP.青岛一汽法雷奥.SupplierData.SCP_ASN_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="btnRefresh" runat="server" EnablePostBack="True" Text="刷新" Icon="Add" OnClientClick="location.reload();"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnSend" runat="server" EnablePostBack="True" Text="确认已发货" Icon="Car" OnClick="btnSend_Click" OnClientClick="send();if(!confirm('是否要发货?一旦发货,就将不能删除和修改此发货单!'))return false;"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnPrint" runat="server" EnablePostBack="true" Text="打印发货单" Icon="Printer" OnClick="btnPrint_Click"> |
||||
|
</f:Button> |
||||
|
<f:Button ID="btnCancel" runat="server" EnablePostBack="true" Text="作废发货单" Icon="Printer" OnClick="btnCancel_Click" OnClientClick="if(!confirm('是否要作废?新建状态作废,数量批次填写错误可以作废,如果作废单据再用之前送货单发货,一律按退货处理!'))return false;"/> |
||||
|
</Items> |
||||
|
</f:Toolbar> |
||||
|
</Toolbars> |
||||
|
<Items> |
||||
|
<f:Form runat="server" Title=""> |
||||
|
<Items> |
||||
|
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25%" ID="FormRow_1"> |
||||
|
<Items> |
||||
|
|
||||
|
<f:TextBox runat = "server" Label = "单据状态" EmptyText = "" ID = "TXT_StateDesc" /> |
||||
|
<f:TextBox runat = "server" Label = "发货单号" EmptyText = "" ID = "TXT_AsnBillNum" /> |
||||
|
<f:TextBox runat = "server" Label = "供应商" EmptyText = "" ID = "TXT_VendName" /> |
||||
|
<f:TextBox runat = "server" Label = "收货地点" EmptyText = "" ID = "TXT_Site" /> |
||||
|
|
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server" ColumnWidths="25% 25% 25% 25%" ID="FormRow_2"> |
||||
|
<Items> |
||||
|
<f:DatePicker runat="server" Required ="true" DateFormatString="yyyy-MM-dd" Label="发货日期" EmptyText="请选择日期" ID="DP_ShipTime" /> |
||||
|
<f:TextBox runat = "server" Label = "发货人" EmptyText = "" ID = "TXT_ShipUser" /> |
||||
|
<f:DatePicker runat="server" Required ="true" DateFormatString="yyyy-MM-dd" Label="到货日期" EmptyText="请选择日期" ID="DP_ReceiveTime" /> |
||||
|
<f:TextBox runat = "server" Label = "收货人" EmptyText = "" ID = "TXT_ReceiveUser" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
<f:FormRow runat="server" ID="FormRow_3"> |
||||
|
<Items> |
||||
|
<f:TextBox runat = "server" Label = "车牌号" EmptyText = "" ID = "TXT_PlateNumber" /> |
||||
|
<f:TextBox runat = "server" Label = "备注" EmptyText = "" ID = "TXT_Remark" /> |
||||
|
</Items> |
||||
|
</f:FormRow> |
||||
|
</Items> |
||||
|
</f:Form> |
||||
|
<f:Toolbar runat="server"> |
||||
|
<Items> |
||||
|
<f:Toolbar runat="server" ID="Toolbar1"> |
||||
|
<Items> |
||||
|
<%-- <f:Button runat="server" ID="btnEdit" Text="修改" Icon="ApplicationEdit" OnClick="btnEdit_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnDel" Text="删除" Icon="ApplicationDelete" OnClick="btnDel_OnClick"></f:Button>--%> |
||||
|
<f:Button runat="server" ID="btnCreateBarCode" Text="创建条码" Icon="Printer" OnClick="CreateBarCode_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnSelectedBarCode" Text="打印全部条码" Icon="Printer" OnClick="btnSelectedBarCode_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnBarCodeList" Text="显示条码列表" Icon="Layers" OnClick="btnBarCodeList_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnCreatePallet" Text="生成托盘" Icon="Printer" OnClick="btnCreatePallet_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnOutputPallet" Text="导出或打印托盘" Icon="Printer" OnClick="btnOutputPallet_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnCreateSmallBarCode" Text="生成小包装" Icon="Printer" OnClick="CreateSmallBarCode_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnOutputSmallBarCode" Text="导出或打印小包装" Icon="Printer" OnClick="btnOutputSmallBarCode_Click"></f:Button> |
||||
|
<f:Button runat="server" ID="btnOutPut" Text="导出明细" Icon="PageExcel" OnClick="btnOutput_Click"></f:Button> |
||||
|
</Items> |
||||
|
</f:Toolbar> |
||||
|
</Items> |
||||
|
</f:Toolbar> |
||||
|
<f:Grid ID="Grid_V_TB_ASN_DETAIL" ShowBorder="true" ShowHeader="true" PageSize="500" BoxFlex="1" CssClass="maingrid" |
||||
|
runat="server" DataKeyNames="UID,PoBillNum,PoLine,PartCode,PoUnit,LocUnit,Price,Currency,PackQty,UnConv,DockCode,State,Remark,CreateTime,CreateUser,UpdateTime,UpdateUser,UpdateInfo,IsDeleted,PartDesc1,CurrencyDesc,Site,VendName,PartDesc2,AsnBillNum,Qty,VendBatch,ProduceDate,Batch,VendId,AskBillNum,CanQty,Guid,ReceivedPort" |
||||
|
IsDatabasePaging="True" AllowPaging="True" |
||||
|
EnableRowSelectEvent="True" AutoScroll="True" |
||||
|
SortField="PartCode" SortDirection="DESC" |
||||
|
OnPageIndexChange="Grid_V_TB_ASN_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="1000" Value="1000" /> |
||||
|
</f:DropDownList> |
||||
|
</PageItems> |
||||
|
<Columns> |
||||
|
|
||||
|
<f:BoundField Width = "80px" DataField = "AsnBillNum" DataFormatString = "{0}" HeaderText = "发货单号" /> |
||||
|
|
||||
|
<%-- <f:TemplateField HeaderText="标包数量" Width="80px"> |
||||
|
<ItemTemplate> |
||||
|
<asp:TextBox ID="TXT_PackQty" runat="server" Width="60px" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" |
||||
|
Text='<%# Eval("PackQty") %>' MaxLength="6"></asp:TextBox> |
||||
|
</ItemTemplate> |
||||
|
</f:TemplateField> |
||||
|
<f:TemplateField HeaderText="发货数量" Width="80px"> |
||||
|
<ItemTemplate> |
||||
|
<asp:TextBox ID="TXT_Qty" runat="server" Width="60px" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" |
||||
|
Text='<%# Eval("Qty") %>' MaxLength="6"></asp:TextBox> |
||||
|
</ItemTemplate> |
||||
|
</f:TemplateField> --%> |
||||
|
<f:BoundField Width = "100px" DataField = "PackQty" DataFormatString = "{0:F}" HeaderText = "标包数量" /> |
||||
|
<f:BoundField Width = "100px" DataField = "Qty" 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 = "50px" DataField = "CurrencyDesc" DataFormatString = "{0}" HeaderText = "币种" /> |
||||
|
<%--<f:BoundField Width = "100px" DataField = "Site" DataFormatString = "{0}" HeaderText = "收货地点" />--%> |
||||
|
<f:BoundField Width = "100px" DataField = "Batch" DataFormatString = "{0}" HeaderText = "批次" /> |
||||
|
<f:BoundField Width = "100px" DataField = "VendBatch" DataFormatString = "{0}" HeaderText = "供应商批次" /> |
||||
|
<f:BoundField Width = "100px" DataField = "ProduceDate" DataFormatString = "{0}" HeaderText = "生产日期" /> |
||||
|
<f:BoundField Width = "100px" DataField = "EndTime" DataFormatString = "{0}" HeaderText = "到货截至日期" /> |
||||
|
<f:BoundField Width = "50px" DataField = "PoUnit" DataFormatString = "{0}" HeaderText = "单位" /> |
||||
|
<f:BoundField Width = "80px" DataField = "Price" DataFormatString = "{0}" HeaderText = "价格" Hidden="true"/> |
||||
|
<%-- <f:TemplateField HeaderText="供应商批次" Width="110px"> |
||||
|
<ItemTemplate> |
||||
|
<asp:TextBox ID="TXT_VenBatch" runat="server" Width="100px" |
||||
|
Text='<%# Eval("VendBatch") %>' MaxLength="20"></asp:TextBox> |
||||
|
</ItemTemplate> |
||||
|
</f:TemplateField> |
||||
|
|
||||
|
|
||||
|
<f:TemplateField HeaderText="生产日期" Width="110px"> |
||||
|
<ItemTemplate> |
||||
|
<asp:TextBox ID="TXT_ProduceDate" runat="server" Width="100px" |
||||
|
Text='<%# Eval("ProduceDate") %>' MaxLength="30"></asp:TextBox> |
||||
|
</ItemTemplate> |
||||
|
</f:TemplateField>--%> |
||||
|
|
||||
|
<f:BoundField Width = "100px" DataField = "State" DataFormatString = "{0}" HeaderText = "" Hidden="true" /> |
||||
|
<f:BoundField SortField="ReceivedPort" DataField="ReceivedPort" HeaderText="收货口" ColumnID="ReceivedPort_Desc" /> |
||||
|
<f:BoundField Width = "100px" DataField = "Remark" 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" |
||||
|
IFrameUrl="about:blank" Height="500px" Width="1000px" /> |
||||
|
<f:Window ID="WindowUpload" runat="server" Hidden="True" |
||||
|
WindowPosition="Center" IsModal="true" Title="明细" Target="Parent" EnableIFrame="true" |
||||
|
IFrameUrl="about:blank" Height="200px" Width="400px"> |
||||
|
</f:Window> |
||||
|
</form> |
||||
|
<script> |
||||
|
var _btnSend = '<%= btnSend.ClientID %>'; |
||||
|
function update(num) { |
||||
|
var secs = 60 * 5; |
||||
|
if (num == secs) { |
||||
|
$("#"+_btnSend).val("发货"); |
||||
|
$("#"+_btnSend).attr("disabled", false); |
||||
|
} |
||||
|
else { |
||||
|
printnr = secs - num; |
||||
|
$("#" + _btnSend).val("发货中" + printnr + "秒"); |
||||
|
$("#" + _btnSend).attr("disabled", true); |
||||
|
} |
||||
|
alert('3434'); |
||||
|
} |
||||
|
function send() |
||||
|
{ |
||||
|
|
||||
|
for (i = 1; i <= 60 * 5; i++) { |
||||
|
window.setTimeout("update( " + i + ") ", i * 1000); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
</body> |
||||
|
</html> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,573 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Web; |
||||
|
using System.Web.UI; |
||||
|
using System.Web.UI.WebControls; |
||||
|
using CK.SCP.Models.ScpEntity; |
||||
|
using CK.SCP.Controller; |
||||
|
using System.Data; |
||||
|
using CK.SCP.Models.Enums; |
||||
|
using FineUI; |
||||
|
using CK.SCP.Utils; |
||||
|
using System.Data.Entity.Migrations; |
||||
|
|
||||
|
namespace SCP.青岛一汽法雷奥.SupplierData |
||||
|
{ |
||||
|
public partial class SCP_ASN_DETAIL : PageBase |
||||
|
{ |
||||
|
|
||||
|
protected void Page_Load(object sender, EventArgs e) |
||||
|
{ |
||||
|
if (!IsPostBack) |
||||
|
{ |
||||
|
GetV_TB_ASNData(); |
||||
|
BindDetail(); |
||||
|
SetRoleRule(); |
||||
|
TranslatorAgents(Toolbar2); |
||||
|
TranslatorAgents(Toolbar1); |
||||
|
TranslatorAgent(Grid_V_TB_ASN_DETAIL); |
||||
|
TranslatorAgents(FormRow_1); |
||||
|
TranslatorAgents(FormRow_2); |
||||
|
TranslatorAgents(FormRow_3); |
||||
|
} |
||||
|
} |
||||
|
private void SetRoleRule() |
||||
|
{ |
||||
|
IsPriceVisible(Grid_V_TB_ASN_DETAIL, "价格"); |
||||
|
} |
||||
|
|
||||
|
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.AsnBillNum = Request["AsnBillNum"]; |
||||
|
SCP_ASN_CONTROLLER.Get_V_TB_ASN_DETAIL_List(_entity, (_ret) => |
||||
|
{ |
||||
|
if (_ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
p_action(_ret.Result); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
} |
||||
|
public void GetV_TB_ASNData() |
||||
|
{ |
||||
|
V_TB_ASN _entity = new V_TB_ASN(); |
||||
|
_entity.AsnBillNum = Request["AsnBillNum"]; |
||||
|
_entity.UserInVendIds = CurrentUser.VenderList; |
||||
|
_entity.UserInAddress = CurrentUser.FactoryList; |
||||
|
SCP_ASN_CONTROLLER.Get_V_TB_ASN_List(_entity, (_ret) => |
||||
|
{ |
||||
|
if (_ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
var _result = _ret.Result.FirstOrDefault(); |
||||
|
Session["Asn"] = _result; |
||||
|
TXT_AsnBillNum.Text = _result.AsnBillNum; |
||||
|
TXT_PlateNumber.Text = _result.PlateNumber; |
||||
|
TXT_ReceiveUser.Text = _result.ReceiveUser; |
||||
|
TXT_ShipUser.Text = _result.ShipUser; |
||||
|
TXT_Site.Text = _result.Site_Desc; |
||||
|
TXT_Remark.Text = _result.Remark; |
||||
|
TXT_VendName.Text = _result.VendName; |
||||
|
DP_ReceiveTime.SelectedDate = _result.ReceiveTime; |
||||
|
DP_ShipTime.SelectedDate = _result.ShipTime; |
||||
|
TXT_StateDesc.Text = _result.State_DESC; |
||||
|
} |
||||
|
SCP_BARCODE_CONTROLLER.Get_TS_BARCODE_List(new TS_BARCODE() { BillNum = TXT_AsnBillNum.Text.Trim() }, retobj => |
||||
|
{ |
||||
|
if (retobj.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
if (retobj.Result.Count() > 0) |
||||
|
{ |
||||
|
this.btnCreateBarCode.Enabled = false; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.btnCreateBarCode.Enabled = true; |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
SCP_BARCODE_CONTROLLER.Get_TS_BARCODE_SMALL_List(new TS_BARCODE_SMALL() { BillNum = TXT_AsnBillNum.Text.Trim() }, retobj => |
||||
|
{ |
||||
|
if (retobj.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
if (retobj.Result.Count() > 0) |
||||
|
{ |
||||
|
this.btnCreateSmallBarCode.Enabled = false; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.btnCreateSmallBarCode.Enabled = true; |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
SCP_PALLET_CONTROLLER.Get_TB_PALLETS_List(new TB_PALLETS() { AsnBillNum = TXT_AsnBillNum.Text.Trim()}, (ret) => |
||||
|
{ |
||||
|
if (ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
if (ret.Result.Count() > 0) |
||||
|
{ |
||||
|
this.btnCreatePallet.Enabled = false; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
this.btnCreatePallet.Enabled = true; |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
|
||||
|
}); |
||||
|
} |
||||
|
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); |
||||
|
Grid_V_TB_ASN_DETAIL.DataSource = list; |
||||
|
Grid_V_TB_ASN_DETAIL.DataBind(); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
protected void btnOutput_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
List<V_TB_ASN_DETAIL> _ls = new List<V_TB_ASN_DETAIL>(); |
||||
|
for (int i = 0, count = Grid_V_TB_ASN_DETAIL.Rows.Count; i < count; i++) |
||||
|
{ |
||||
|
V_TB_ASN_DETAIL inv = new V_TB_ASN_DETAIL(); |
||||
|
object[] rowDataKeys = Grid_V_TB_ASN_DETAIL.DataKeys[i]; |
||||
|
|
||||
|
if (rowDataKeys[24] != null) |
||||
|
{ |
||||
|
inv.AsnBillNum = rowDataKeys[24].ToString();//发货单号
|
||||
|
} |
||||
|
if (rowDataKeys[8] != null) |
||||
|
{ |
||||
|
inv.PackQty = decimal.Parse(rowDataKeys[8].ToString());//标包数量
|
||||
|
} |
||||
|
if (rowDataKeys[25] != null) |
||||
|
{ |
||||
|
inv.Qty = decimal.Parse(rowDataKeys[25].ToString());//发货数量
|
||||
|
} |
||||
|
inv.PartCode = rowDataKeys[3].ToString();//零件编号
|
||||
|
if (rowDataKeys[19] != null) |
||||
|
{ |
||||
|
inv.PartDesc1 = rowDataKeys[19].ToString();//零件名称
|
||||
|
} |
||||
|
if (rowDataKeys[20] != null) |
||||
|
{ |
||||
|
inv.CurrencyDesc = rowDataKeys[20].ToString();//货种
|
||||
|
} |
||||
|
if (rowDataKeys[28] != null) |
||||
|
{ |
||||
|
inv.Batch = rowDataKeys[28].ToString();//批次
|
||||
|
} |
||||
|
if (rowDataKeys[26] != null) |
||||
|
{ |
||||
|
inv.VendBatch = rowDataKeys[26].ToString();//供应商批次
|
||||
|
} |
||||
|
if (rowDataKeys[27] != null) |
||||
|
{ |
||||
|
inv.ProduceDate = DateTime.Parse(rowDataKeys[27].ToString());//生产日期
|
||||
|
} |
||||
|
//if (rowDataKeys[26] != null)
|
||||
|
//{
|
||||
|
// inv.EndTime = DateTime.Parse(rowDataKeys[34].ToString());//到货截至日期
|
||||
|
//}
|
||||
|
inv.PoUnit = rowDataKeys[4].ToString();//采购单位
|
||||
|
// if (rowDataKeys[6] != null)
|
||||
|
// {
|
||||
|
// inv.Price = decimal.Parse(rowDataKeys[6].ToString());//价格
|
||||
|
// }
|
||||
|
// if (rowDataKeys[34] != null)
|
||||
|
//{
|
||||
|
// inv.ReceivedPort_Desc = rowDataKeys[34].ToString();//收货口
|
||||
|
//}
|
||||
|
_ls.Add(inv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
Dictionary<string, string> cellheader = new Dictionary<string, string> |
||||
|
{ |
||||
|
{ "AsnBillNum", "发货单号" }, |
||||
|
{ "PackQty", "标包数量" }, |
||||
|
{ "Qty", "发货数量" }, |
||||
|
{ "PartCode", "零件编号" }, |
||||
|
{ "PartDesc1", "零件名称" }, |
||||
|
{ "Batch", "批次" }, |
||||
|
{ "VendBatch", "供应商批次" }, |
||||
|
{ "ProduceDate", "生产日期" }, |
||||
|
{ "EndTime", "到货截至日期" }, |
||||
|
{ "PoUnit", "单位" } |
||||
|
}; |
||||
|
|
||||
|
string url = EntityListToExcel2003(cellheader, _ls, "发货明细"); |
||||
|
} |
||||
|
|
||||
|
protected void btnCreate_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
|
||||
|
BindDetail(); |
||||
|
} |
||||
|
|
||||
|
protected void btnEdit_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
var _asn = Session["Asn"] as V_TB_ASN; |
||||
|
if (_asn == null) |
||||
|
{ |
||||
|
Alert.Show("发货订单信息不能为空!"); |
||||
|
} |
||||
|
List<V_TB_ASN_DETAIL> _list = new List<V_TB_ASN_DETAIL>(); |
||||
|
for (int i = 0, count = Grid_V_TB_ASN_DETAIL.Rows.Count; i < count; i++) |
||||
|
{ |
||||
|
GridRow row = Grid_V_TB_ASN_DETAIL.Rows[i]; |
||||
|
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
||||
|
object[] rowDataKeys = Grid_V_TB_ASN_DETAIL.DataKeys[i]; |
||||
|
_entity.UID = ConvertHelper.To<Int32>(rowDataKeys[0]); |
||||
|
_entity.PoBillNum = rowDataKeys[1] as string; |
||||
|
_entity.PoLine = ConvertHelper.To<Int32>(rowDataKeys[2]); |
||||
|
_entity.PartCode = rowDataKeys[3] as string; |
||||
|
_entity.PoUnit = rowDataKeys[4] as string; |
||||
|
_entity.LocUnit = rowDataKeys[5] as string; |
||||
|
_entity.Price = ConvertHelper.To<Decimal>(rowDataKeys[6]); |
||||
|
_entity.Currency = rowDataKeys[7] as string; |
||||
|
_entity.PackQty = ConvertHelper.To<Decimal>(rowDataKeys[8]); |
||||
|
_entity.UnConv = ConvertHelper.To<Decimal>(rowDataKeys[9]); |
||||
|
_entity.DockCode = rowDataKeys[10] as string; |
||||
|
_entity.State = ConvertHelper.To<int?>(rowDataKeys[11]); |
||||
|
_entity.Remark = rowDataKeys[12] as string; |
||||
|
_entity.CreateTime = ConvertHelper.To<DateTime>(rowDataKeys[13]); |
||||
|
_entity.CreateUser = rowDataKeys[14] as string; |
||||
|
_entity.UpdateTime = ConvertHelper.To<DateTime>(rowDataKeys[15]); |
||||
|
_entity.UpdateUser = rowDataKeys[16] as string; |
||||
|
_entity.UpdateInfo = rowDataKeys[17] as string; |
||||
|
_entity.IsDeleted = ConvertHelper.To<Boolean>(rowDataKeys[18]); |
||||
|
_entity.PartDesc1 = rowDataKeys[19] as string; |
||||
|
_entity.CurrencyDesc = rowDataKeys[20] as string; |
||||
|
_entity.Site = rowDataKeys[21] as string; |
||||
|
_entity.VendName = rowDataKeys[22] as string; |
||||
|
_entity.PartDesc2 = rowDataKeys[23] as string; |
||||
|
_entity.AsnBillNum = rowDataKeys[24] as string; |
||||
|
_entity.Qty = ConvertHelper.To<Decimal>(rowDataKeys[25]); |
||||
|
_entity.VendBatch = rowDataKeys[26] as string; |
||||
|
_entity.Batch = rowDataKeys[28] as string; |
||||
|
_entity.VendId = rowDataKeys[29] as string; |
||||
|
System.Web.UI.WebControls.TextBox TXT_VenBatch = (System.Web.UI.WebControls.TextBox)row.FindControl("TXT_VenBatch"); |
||||
|
System.Web.UI.WebControls.TextBox TXT_PackQty = (System.Web.UI.WebControls.TextBox)row.FindControl("TXT_PackQty"); |
||||
|
System.Web.UI.WebControls.TextBox TXT_Qty = (System.Web.UI.WebControls.TextBox)row.FindControl("TXT_Qty"); |
||||
|
System.Web.UI.WebControls.TextBox TXT_ProduceDate = (System.Web.UI.WebControls.TextBox)row.FindControl("TXT_ProduceDate"); |
||||
|
_entity.VendBatch = TXT_VenBatch.Text; |
||||
|
|
||||
|
|
||||
|
if (string.IsNullOrEmpty(TXT_ProduceDate.Text)) |
||||
|
{ |
||||
|
Alert.Show("包装量填写错误!"); |
||||
|
return; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
_entity.ProduceDate = DateTime.Parse(TXT_ProduceDate.Text); |
||||
|
} |
||||
|
_list.Add(_entity); |
||||
|
} |
||||
|
if (_list.Count > 0) |
||||
|
{ |
||||
|
var _first = _list.FirstOrDefault(); |
||||
|
if (_first.State != (int)AsnState.New) |
||||
|
{ |
||||
|
Alert.Show("不是新建状态,不能保存信息!"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
protected void btnRefresh_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
private List<V_TB_ASN_DETAIL> GetSelectedList() |
||||
|
{ |
||||
|
List<V_TB_ASN_DETAIL> _list = new List<V_TB_ASN_DETAIL>(); |
||||
|
int _flag = 0; |
||||
|
for (int i = 0, count = Grid_V_TB_ASN_DETAIL.Rows.Count; i < count; i++) |
||||
|
{ |
||||
|
GridRow row = Grid_V_TB_ASN_DETAIL.Rows[i]; |
||||
|
V_TB_ASN_DETAIL _entity = new V_TB_ASN_DETAIL(); |
||||
|
object[] rowDataKeys = Grid_V_TB_ASN_DETAIL.DataKeys[i]; |
||||
|
_entity.UID = ConvertHelper.To<Int32>(rowDataKeys[0]); |
||||
|
_entity.PoBillNum = rowDataKeys[1] as string; |
||||
|
_entity.PoLine = ConvertHelper.To<Int32>(rowDataKeys[2]); |
||||
|
_entity.PartCode = rowDataKeys[3] as string; |
||||
|
_entity.PoUnit = rowDataKeys[4] as string; |
||||
|
_entity.LocUnit = rowDataKeys[5] as string; |
||||
|
_entity.Price = ConvertHelper.To<Decimal>(rowDataKeys[6]); |
||||
|
_entity.Currency = rowDataKeys[7] as string; |
||||
|
_entity.PackQty = ConvertHelper.To<Decimal>(rowDataKeys[8]); |
||||
|
_entity.UnConv = ConvertHelper.To<Decimal>(rowDataKeys[9]); |
||||
|
_entity.DockCode = rowDataKeys[10] as string; |
||||
|
_entity.State = ConvertHelper.To<int>(rowDataKeys[11]); |
||||
|
_entity.Remark = rowDataKeys[12] as string; |
||||
|
_entity.CreateTime = ConvertHelper.To<DateTime>(rowDataKeys[13]); |
||||
|
_entity.CreateUser = rowDataKeys[14] as string; |
||||
|
_entity.UpdateTime = ConvertHelper.To<DateTime?>(rowDataKeys[15]); |
||||
|
_entity.UpdateUser = rowDataKeys[16] as string; |
||||
|
_entity.UpdateInfo = rowDataKeys[17] as string; |
||||
|
_entity.IsDeleted = ConvertHelper.To<Boolean>(rowDataKeys[18]); |
||||
|
_entity.PartDesc1 = rowDataKeys[19] as string; |
||||
|
_entity.CurrencyDesc = rowDataKeys[20] as string; |
||||
|
_entity.Site = rowDataKeys[21] as string; |
||||
|
_entity.VendName = rowDataKeys[22] as string; |
||||
|
_entity.PartDesc2 = rowDataKeys[23] as string; |
||||
|
_entity.AsnBillNum = rowDataKeys[24] as string; |
||||
|
_entity.Qty = ConvertHelper.To<Decimal>(rowDataKeys[25]); |
||||
|
_entity.VendBatch = rowDataKeys[26] as string; |
||||
|
_entity.ProduceDate = ConvertHelper.To<DateTime>(rowDataKeys[27]); |
||||
|
_entity.Batch = rowDataKeys[28] as string; |
||||
|
_entity.VendId = rowDataKeys[29] as string; |
||||
|
_entity.Guid = ConvertHelper.To<Guid>(rowDataKeys[29]); |
||||
|
|
||||
|
_list.Add(_entity); |
||||
|
} |
||||
|
if (_flag == 1) |
||||
|
{ _list = new List<V_TB_ASN_DETAIL>(); } |
||||
|
return _list; |
||||
|
} |
||||
|
protected void btnSend_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
var _asn = Session["Asn"] as V_TB_ASN; |
||||
|
if (_asn == null) |
||||
|
{ |
||||
|
Alert.Show("发货订单信息不能为空!"); |
||||
|
} |
||||
|
var _list = GetSelectedList(); |
||||
|
if (_list.Count > 0) |
||||
|
{ |
||||
|
var _first = _list.FirstOrDefault(); |
||||
|
if (_first.State != (int)AsnState.New) |
||||
|
{ |
||||
|
Alert.Show("不是新建状态,不能保存信息!"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
var result = SCP_BARCODE_CONTROLLER.Get_TB_PRINT_COUNT_List(new TB_PRINT_COUNT() { BillNo = _asn.AsnBillNum }); |
||||
|
if (result.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
if (result.Result.Count(p => p.PrintType == (int)PrintType.ASN) == 0) |
||||
|
{ |
||||
|
Alert.Show(_asn.AsnBillNum + "发货单未打印!"); |
||||
|
return; |
||||
|
} |
||||
|
if (result.Result.Count(p => p.PrintType == (int)PrintType.BAR_CODE) == 0) |
||||
|
{ |
||||
|
Alert.Show(_asn.AsnBillNum + "标签未打印!"); |
||||
|
return; |
||||
|
} |
||||
|
} |
||||
|
var check = SCP_ASN_CONTROLLER.Get_TS_UNI_API(_asn); |
||||
|
if (check.State == ReturnStatus.Failed) |
||||
|
{ |
||||
|
Alert.Show(_asn.AsnBillNum + "请勿重复提交数据!"); |
||||
|
return; |
||||
|
} |
||||
|
var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_DETAIL(_asn, _list); |
||||
|
if (ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
SET_ASN_STATE("发货成功", AsnState.Ship); |
||||
|
GetV_TB_ASNData(); |
||||
|
BindDetail(); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
Alert.Show(string.Join("\n\r", ret.MessageList.ToArray())); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
private void SET_ASN_STATE(string p_msg, AsnState p_state) |
||||
|
{ |
||||
|
if (Session["Asn"] != null) |
||||
|
{ |
||||
|
if (CurrentUser.Name == "admin"|| CurrentUser.RoleList.Contains("分厂管理员")) |
||||
|
{ |
||||
|
if (p_state == AsnState.Reject) |
||||
|
{ |
||||
|
var _asn = Session["Asn"] as V_TB_ASN; |
||||
|
var asn = SCPDB.TB_ASN.Where(p => p.AsnBillNum == _asn.AsnBillNum).FirstOrDefault(); |
||||
|
var detail = SCPDB.TB_ASN_DETAIL.Where(p => p.AsnBillNum == _asn.AsnBillNum).ToArray(); |
||||
|
if (asn != null) |
||||
|
{ |
||||
|
asn.State = -1; |
||||
|
asn.IsDeleted = true; |
||||
|
SCPDB.TB_ASN.AddOrUpdate(asn); |
||||
|
} |
||||
|
if (detail.Count() > 0) |
||||
|
{ |
||||
|
foreach (var itm in detail) |
||||
|
{ |
||||
|
itm.IsDeleted = true; |
||||
|
itm.State = -1; |
||||
|
} |
||||
|
SCPDB.TB_ASN_DETAIL.AddOrUpdate(detail); |
||||
|
} |
||||
|
if (SCPDB.SaveChanges() != -1) |
||||
|
{ |
||||
|
Alert.Show("发货单删除成功"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
var _ask = Session["Asn"] as V_TB_ASN; |
||||
|
var ret = SCP_ASN_CONTROLLER.Save_TB_ASN_STATE(new List<string>() { _ask.AsnBillNum }, p_state); |
||||
|
if (ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
Alert.Show(p_msg); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
Alert.Show(ret.Message); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
protected void btnCancel_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
|
||||
|
SET_ASN_STATE("发货单作废成功", AsnState.Reject); |
||||
|
|
||||
|
} |
||||
|
protected void ddlGridPageSize_SelectedIndexChanged(object sender, EventArgs e) |
||||
|
{ |
||||
|
Grid_V_TB_ASN_DETAIL.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
||||
|
|
||||
|
BindDetail(); |
||||
|
} |
||||
|
|
||||
|
protected void Grid_V_TB_ASN_DETAIL_PageIndexChange(object sender, GridPageEventArgs e) |
||||
|
{ |
||||
|
BindDetail(); |
||||
|
} |
||||
|
|
||||
|
protected void CreateBarCode_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
|
||||
|
var _list = GetSelectedList(); |
||||
|
if (_list.Count > 0) |
||||
|
{ |
||||
|
btnCreateBarCode.Enabled = false; |
||||
|
var ret = SCP_ASN_CONTROLLER.Save_TB_CREATE_BARCODE(_list); |
||||
|
if (ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
Alert.Show("条码创建成功!"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
btnCreateBarCode.Enabled = true; |
||||
|
Alert.Show(string.Join("<BR>", ret.MessageList.ToArray())); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 打印小包装条码
|
||||
|
/// </summary>
|
||||
|
/// <param name="sender"></param>
|
||||
|
/// <param name="e"></param>
|
||||
|
protected void CreateSmallBarCode_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
|
||||
|
var _list = GetSelectedList(); |
||||
|
if (_list.Count > 0) |
||||
|
{ |
||||
|
btnCreateSmallBarCode.Enabled = false; |
||||
|
var ret = SCP_ASN_CONTROLLER.Save_TB_CREATE_SMALLBARCODE(_list); |
||||
|
if (ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
Alert.Show("小包装条码创建成功!"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
btnCreateSmallBarCode.Enabled = true; |
||||
|
Alert.Show(string.Join("<BR>", ret.MessageList.ToArray())); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
protected void btnBarCodeList_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
string AsnBillNum = Request["AsnBillNum"]; |
||||
|
string script = Window1.GetShowReference("../../SCP_SHIP_DETAIL_BARCODE.aspx?BillNo=" + AsnBillNum, "条码列表"); |
||||
|
PageContext.RegisterStartupScript(script); |
||||
|
|
||||
|
} |
||||
|
catch (Exception ex) |
||||
|
{ |
||||
|
Alert.Show(ex.Message); |
||||
|
} |
||||
|
} |
||||
|
protected void btnSelectedBarCode_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string AsnBillNum = Request["AsnBillNum"]; |
||||
|
if (!string.IsNullOrEmpty(AsnBillNum)) |
||||
|
{ |
||||
|
var str = string.Format("window.open(\"../../../Handlers/GenerateReport.ashx?report=Material&data=101&type=pdf&filename=标签.pdf&AsnBillNum={0}&open=\")", AsnBillNum); |
||||
|
PageContext.RegisterStartupScript(str); |
||||
|
} |
||||
|
SCP_BARCODE_CONTROLLER.Save_TB_PRINT_COUNT(new TB_PRINT_COUNT() { BillNo = AsnBillNum, PrintType = (int)PrintType.BAR_CODE }); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
protected void btnPrint_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string AsnBillNum = Request["AsnBillNum"]; |
||||
|
var str = string.Format("window.open(\"../../../Handlers/GenerateReport.ashx?report=SendBill_Pallet&data=107&type=pdf&filename=SendBill_Pallet.pdf&AsnBillNum={0}&open=\")", AsnBillNum); |
||||
|
PageContext.RegisterStartupScript(str); |
||||
|
SCP_BARCODE_CONTROLLER.Save_TB_PRINT_COUNT(new TB_PRINT_COUNT() { BillNo = AsnBillNum, PrintType = (int)PrintType.ASN }); |
||||
|
} |
||||
|
|
||||
|
protected void btnOutputSmallBarCode_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string AsnBillNum = Request["AsnBillNum"]; |
||||
|
if (!string.IsNullOrEmpty(AsnBillNum)) |
||||
|
{ |
||||
|
var str = string.Format("window.open(\"../../../Handlers/GenerateReport.ashx?report=Small_Material&data=106&type=pdf&filename=Small_Material.pdf&AsnBillNum={0}&open=\")", AsnBillNum); |
||||
|
PageContext.RegisterStartupScript(str); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected void btnOutputPallet_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
string AsnBillNum = Request["AsnBillNum"]; |
||||
|
if (!string.IsNullOrEmpty(AsnBillNum)) |
||||
|
{ |
||||
|
var str = string.Format("window.open(\"../../../Handlers/GenerateReport.ashx?report=Pallet&data=105&type=pdf&filename=托盘标签.pdf&AsnBillNum={0}&open=\")", AsnBillNum); |
||||
|
PageContext.RegisterStartupScript(str); |
||||
|
} |
||||
|
SCP_BARCODE_CONTROLLER.Save_TB_PRINT_COUNT(new TB_PRINT_COUNT() { BillNo = AsnBillNum, PrintType = (int)PrintType.Pallet_CODE }); |
||||
|
} |
||||
|
protected void btnCreatePallet_Click(object sender, EventArgs e) |
||||
|
{ |
||||
|
var _list = GetSelectedList(); |
||||
|
if (_list.Count > 0) |
||||
|
{ |
||||
|
btnCreatePallet.Enabled = false; |
||||
|
var ret = SCP_ASN_CONTROLLER.Save_TB_PALLET(_list); |
||||
|
if (ret.State == ReturnStatus.Succeed) |
||||
|
{ |
||||
|
Alert.Show("托码创建成功!"); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
btnCreatePallet.Enabled = true; |
||||
|
Alert.Show(string.Join("<br>", ret.MessageList)); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,332 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <自动生成>
|
||||
|
// 此代码由工具生成。
|
||||
|
//
|
||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||
|
// 重新生成代码,则所做更改将丢失。
|
||||
|
// </自动生成>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace SCP.青岛一汽法雷奥.SupplierData |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
public partial class SCP_ASN_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>
|
||||
|
/// btnRefresh 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnRefresh; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnSend 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnSend; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnPrint 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnPrint; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnCancel 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnCancel; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// FormRow_1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.FormRow FormRow_1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_StateDesc 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_StateDesc; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_AsnBillNum 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_AsnBillNum; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_VendName 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_VendName; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_Site 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_Site; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// FormRow_2 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.FormRow FormRow_2; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// DP_ShipTime 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.DatePicker DP_ShipTime; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_ShipUser 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_ShipUser; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// DP_ReceiveTime 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.DatePicker DP_ReceiveTime; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_ReceiveUser 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_ReceiveUser; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// FormRow_3 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.FormRow FormRow_3; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_PlateNumber 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_PlateNumber; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// TXT_Remark 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.TextBox TXT_Remark; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Toolbar1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Toolbar Toolbar1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnCreateBarCode 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnCreateBarCode; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnSelectedBarCode 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnSelectedBarCode; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnBarCodeList 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnBarCodeList; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnCreatePallet 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnCreatePallet; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnOutputPallet 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnOutputPallet; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnCreateSmallBarCode 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnCreateSmallBarCode; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnOutputSmallBarCode 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnOutputSmallBarCode; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btnOutPut 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Button btnOutPut; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Grid_V_TB_ASN_DETAIL 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Grid Grid_V_TB_ASN_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>
|
||||
|
/// Window1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Window Window1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// WindowUpload 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.Window WindowUpload; |
||||
|
} |
||||
|
} |
@ -1,57 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_SHIP_DETAIL_BARCODE.aspx.cs" Inherits="SCP.青岛一汽法雷奥.SupplierData.SCP_SHIP_DETAIL_BARCODE" %> |
|
||||
|
|
||||
<!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 ID="PageManager1" runat="server" /> |
|
||||
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True"> |
|
||||
<Items> |
|
||||
<f:Toolbar ID="Toolbar1" runat="server"> |
|
||||
<Items> |
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server"> |
|
||||
</f:ToolbarSeparator> |
|
||||
<f:Button ID="btnRefresh" runat="server" Text="刷新" Icon="Reload" OnClientClick="location.reload();"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator2" runat="server"> |
|
||||
</f:ToolbarSeparator> |
|
||||
<f:Button ID="btnOutput" runat="server" Text="导出" OnClick="btnOutput_Click" Icon="PageExcel" > |
|
||||
</f:Button> |
|
||||
<f:Button ID="btnPrintRe" runat="server" Text="补打条码" OnClick="btnPrintRe_Click" Icon="Printer"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"> |
|
||||
</f:ToolbarFill> |
|
||||
<f:TextBox ID="txtKeyword" runat="server" Label="" Text=""> |
|
||||
</f:TextBox> |
|
||||
<f:Button ID="btnSearch" runat="server" Text="快速查找" OnClick="btnSearch_Click" Icon="SystemSearch"> |
|
||||
</f:Button> |
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text=" "> |
|
||||
</f:ToolbarText> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
|
|
||||
|
|
||||
<f:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="true" ShowHeader="False" |
|
||||
AllowPaging="True" PageSize="100" OnPageIndexChange="Grid1_PageIndexChange" |
|
||||
ShowBorder="False" AutoScroll="true" |
|
||||
DataKeyNames="UID,BarCode" AllowSorting="true" IsDatabasePaging="true" > |
|
||||
<Columns> |
|
||||
<f:BoundField DataField="ID" HeaderText="ID" ColumnID="ID" Hidden="true" /> |
|
||||
<f:BoundField SortField="BarCode" DataField="BarCode" HeaderText="条码" ColumnID="BarCode" Width="200" /> |
|
||||
<f:BoundField SortField="PartCode" DataField="PartCode" HeaderText="零件号" ColumnID="ProductCode"/> |
|
||||
<f:BoundField SortField="PartName" DataField="PartName" HeaderText="零件名称" ColumnID="ProductName" Width="300px"/> |
|
||||
<f:BoundField SortField="Batch" DataField="Batch" HeaderText="批次" ColumnID="Batch"/> |
|
||||
<f:BoundField SortField="PackQty" DataField="PackQty" HeaderText="标包数量" ColumnID="PackageQty"/> |
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
</form> |
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
@ -1,89 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
using CK.SCP.Controller; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
using CK.SCP.Utils; |
|
||||
using FineUI; |
|
||||
|
|
||||
namespace SCP.青岛一汽法雷奥.SupplierData |
|
||||
{ |
|
||||
public partial class SCP_SHIP_DETAIL_BARCODE : PageBase |
|
||||
{ |
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
TranslatorAgents(Toolbar1); |
|
||||
TranslatorAgent(Grid1); |
|
||||
BindData(); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
public void BindData() |
|
||||
{ |
|
||||
Search(ret => { |
|
||||
Grid1.RecordCount = ret.Count(); |
|
||||
Grid1.DataSource = ret.ToList(); |
|
||||
Grid1.DataBind(); |
|
||||
}); |
|
||||
|
|
||||
} |
|
||||
public void Search(Action<IQueryable<TS_BARCODE>> p_action) |
|
||||
{ |
|
||||
string billnum = GetQueryValue("BillNo"); |
|
||||
TS_BARCODE _code = new TS_BARCODE(); |
|
||||
_code.BillNum = billnum; |
|
||||
SCP_BARCODE_CONTROLLER.Get_TS_BARCODE_List(_code, ret => { |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
//查询
|
|
||||
protected void btnSearch_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindData(); |
|
||||
} |
|
||||
//导出
|
|
||||
|
|
||||
|
|
||||
|
|
||||
protected void btnOutput_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
//补打条码
|
|
||||
protected void btnPrintRe_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
List<string> _ls = new List<string>(); |
|
||||
for (int i = 0, count = Grid1.Rows.Count; i < count; i++) |
|
||||
{ |
|
||||
if (Grid1.SelectedRowIndexArray.Contains(i)) |
|
||||
{ |
|
||||
object[] rowDataKeys = Grid1.DataKeys[i]; |
|
||||
int id = ConvertHelper.To<int>(rowDataKeys[0]); |
|
||||
_ls.Add(id.ToString()); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
var str=string.Format("window.open(\"../../Handlers/GenerateReport.ashx?report=Material&data=101&type=pdf&filename=标签.pdf&Barcode={0}&open=\")",string.Join("_",_ls.ToArray())); |
|
||||
PageContext.RegisterStartupScript(str); |
|
||||
|
|
||||
} |
|
||||
//查询
|
|
||||
protected void btnSearch_Click(object sender, EventArgs e) |
|
||||
{ |
|
||||
BindData(); |
|
||||
} |
|
||||
|
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) |
|
||||
{ |
|
||||
BindData(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,61 +0,0 @@ |
|||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCP_TS_BARCODE.aspx.cs" Inherits="SCP.青岛一汽法雷奥.SupplierData.SCP_TS_BARCODE" %> |
|
||||
|
|
||||
<!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="Button3" runat="server" EnablePostBack="True" Text="导出" Icon="PageExcel" OnClick="Button3_OnClick"> |
|
||||
</f:Button> |
|
||||
<f:Button ID="Button2" runat="server" EnablePostBack="True" Text="补打条码" Icon="Printer" OnClick="Button2_OnClick"> |
|
||||
</f:Button> |
|
||||
<f:Button ID="btnSearch" runat="server" Text="快速查找" Icon="Printer" OnClick="btnSearch_OnClick"> |
|
||||
</f:Button> |
|
||||
</Items> |
|
||||
</f:Toolbar> |
|
||||
</Toolbars> |
|
||||
<Items> |
|
||||
<f:Form runat="server" Layout="Column" ID="FormRow_1"> |
|
||||
<Items> |
|
||||
<f:FormRow runat="server" BoxFlex="1"> |
|
||||
<Items> |
|
||||
<f:Label runat="server" Label="条码" /> |
|
||||
<f:TextBox ID="txtBarCode" runat="server" /> |
|
||||
<f:Label runat="server" Label="零件号" /> |
|
||||
<f:TextBox ID="txtPartCode" runat="server" /> |
|
||||
<f:Label runat="server" Label="批次" /> |
|
||||
<f:TextBox ID="txtBatch" runat="server" /> |
|
||||
</Items> |
|
||||
</f:FormRow> |
|
||||
</Items> |
|
||||
</f:Form> |
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" PageSize="10" BoxFlex="1" CssClass="maingrid" |
|
||||
runat="server" DataKeyNames="" IsDatabasePaging="True" AllowPaging="True" SortField="BarCode" SortDirection="DESC" |
|
||||
EnableRowSelectEvent="True" AutoScroll="True"> |
|
||||
<Columns> |
|
||||
<f:BoundField DataField="ID" HeaderText="ID" ColumnID="ID" Hidden="true" /> |
|
||||
<f:BoundField SortField="BarCode" DataField="BarCode" HeaderText="条码" ColumnID="BarCode" Width="100px" /> |
|
||||
<f:BoundField SortField="PartCode" DataField="PartCode" HeaderText="零件号" ColumnID="PartCode" Width="100px" /> |
|
||||
<f:BoundField SortField="PartName" DataField="PartName" HeaderText="零件名称" ColumnID="PartName" Width="300px" /> |
|
||||
<f:BoundField SortField="Batch" DataField="Batch" HeaderText="批次" ColumnID="Batch" Width="100px" /> |
|
||||
<f:BoundField SortField="PackQty" DataField="PackQty" HeaderText="装箱数量" ColumnID="PackQty" Width="100px" DataFormatString = "{0:F}" /> |
|
||||
|
|
||||
</Columns> |
|
||||
</f:Grid> |
|
||||
</Items> |
|
||||
</f:Panel> |
|
||||
</form> |
|
||||
|
|
||||
</body> |
|
||||
</html> |
|
@ -1,82 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Web; |
|
||||
using System.Web.UI; |
|
||||
using System.Web.UI.WebControls; |
|
||||
using CK.SCP.Controller; |
|
||||
using CK.SCP.Models.ScpEntity; |
|
||||
|
|
||||
namespace SCP.青岛一汽法雷奥.SupplierData |
|
||||
{ |
|
||||
public partial class SCP_TS_BARCODE : PageBase |
|
||||
{ |
|
||||
|
|
||||
protected void Page_Load(object sender, EventArgs e) |
|
||||
{ |
|
||||
if (!IsPostBack) |
|
||||
{ |
|
||||
TranslatorAgents(Toolbar2); |
|
||||
TranslatorAgent(Grid1); |
|
||||
TranslatorAgents(FormRow_1); |
|
||||
LoadData(); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
public void LoadData() |
|
||||
{ |
|
||||
SearchData((ret) => { |
|
||||
Grid1.RecordCount = ret.Count(); |
|
||||
var list = SortAndPage<TS_BARCODE>(ret, Grid1); |
|
||||
Grid1.DataSource = list; |
|
||||
Grid1.DataBind(); |
|
||||
}); |
|
||||
} |
|
||||
//查询
|
|
||||
protected void btnSearch_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
LoadData(); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
public void SearchData(Action<IQueryable<TS_BARCODE>> p_action) |
|
||||
{ |
|
||||
string billnum = GetQueryValue("BillNum"); |
|
||||
var _barCode = new TS_BARCODE(); |
|
||||
_barCode.BillNum = billnum; |
|
||||
SCP_TS_BARCODE_CONTROLLER.Get_TS_BARCODE_List(_barCode, (ret) => |
|
||||
{ |
|
||||
if (ret.State == ReturnStatus.Succeed) |
|
||||
{ |
|
||||
p_action(ret.Result); |
|
||||
} |
|
||||
}); |
|
||||
} |
|
||||
//导出
|
|
||||
protected void Button3_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
SearchData((ret)=> { |
|
||||
|
|
||||
var list = SortAndPage<TS_BARCODE>(ret, Grid1).ToList(); |
|
||||
// 2.设置单元格抬头
|
|
||||
// key:实体对象属性名称,可通过反射获取值
|
|
||||
// value:Excel列的名称
|
|
||||
Dictionary<string, string> cellheader = new Dictionary<string, string> { |
|
||||
{ "BarCode", "条码" }, |
|
||||
{ "PartCode", "零件号" }, |
|
||||
{ "PartName", "零件名称" }, |
|
||||
{ "Batch", "批次" }, |
|
||||
{ "PackQty", "装箱数量" }, |
|
||||
}; |
|
||||
|
|
||||
string url = EntityListToExcel2003(cellheader, list, "条码列表"); |
|
||||
}); |
|
||||
|
|
||||
} |
|
||||
//补打条码
|
|
||||
protected void Button2_OnClick(object sender, EventArgs e) |
|
||||
{ |
|
||||
throw new NotImplementedException(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,321 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <自动生成>
|
||||
|
// 此代码由工具生成。
|
||||
|
//
|
||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||
|
// 重新生成代码,则所做更改将丢失。
|
||||
|
// </自动生成>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace SCP { |
||||
|
|
||||
|
|
||||
|
public partial class _default { |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// form1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// div1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl div1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Label1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl Label1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// factory 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlSelect factory; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// div_1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// lb_name 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lb_name; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// textName 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputText textName; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// div_3 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_3; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// lb_mobile 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lb_mobile; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// textMobile 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputGenericControl textMobile; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// lab1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lab1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// textUserName 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputText textUserName; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// div_2 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_2; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// lb_Mail 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lb_Mail; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// textEmail 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputGenericControl textEmail; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// lab2 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lab2; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// textPassword 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputPassword textPassword; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// div_4 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_4; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// lb_PwdNew 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lb_PwdNew; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// textPassword1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputText textPassword1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// div_5 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl div_5; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// lb_PwdConf 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lb_PwdConf; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// textConfim 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputText textConfim; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btn_pass 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputButton btn_pass; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btn_Login 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.WebControls.Button btn_Login; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btn_MailLogin 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.WebControls.Button btn_MailLogin; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// btn_back 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputButton btn_back; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// factoryValue 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlInputText factoryValue; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// p_content 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl p_content; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// p_title4 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl p_title4; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// p_title1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlAnchor p_title1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// p_title2 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlAnchor p_title2; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// p_title3 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::System.Web.UI.HtmlControls.HtmlAnchor p_title3; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// PageManager1 控件。
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// 自动生成的字段。
|
||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
|
/// </remarks>
|
||||
|
protected global::FineUI.PageManager PageManager1; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue