提交代码
This commit is contained in:
@@ -66,8 +66,9 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
//var table = this.GetPagedDataTable(Grid1, tb);
|
||||
//Grid1.DataSource = table;
|
||||
//Grid1.DataBind();
|
||||
var list= BLL.HJGL_PackagingmanageService.GetPackagingManageList(this.CurrUser.LoginProjectId, this.txtPackagingCode.Text.Trim());
|
||||
Grid1.RecordCount = list.Count;
|
||||
var list2 = BLL.HJGL_PackagingmanageService.GetPackagingManageList(this.CurrUser.LoginProjectId, this.txtPackagingCode.Text.Trim(), 0, 10000);
|
||||
var list = BLL.HJGL_PackagingmanageService.GetPackagingManageList(this.CurrUser.LoginProjectId, this.txtPackagingCode.Text.Trim(), this.Grid1.PageIndex, this.Grid1.PageSize);
|
||||
Grid1.RecordCount = list2.Count;
|
||||
Grid1.DataSource = list;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
@@ -145,13 +146,13 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
#endregion
|
||||
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
if (e.CommandName == "cmd_detail" )
|
||||
if (e.CommandName == "cmd_detail")
|
||||
{
|
||||
string id = Grid1.SelectedRowID;
|
||||
string url = "PackagingManageView.aspx?PackagingManageId={0}";
|
||||
PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format(url, id, "操作 - ")));
|
||||
}
|
||||
else if (e.CommandName== "cmd_print")
|
||||
else if (e.CommandName == "cmd_print")
|
||||
{
|
||||
string Id = this.Grid1.SelectedRowID;
|
||||
Pring(Id);
|
||||
@@ -219,9 +220,9 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
string url = string.Empty;
|
||||
var wpq = BLL.HJGL_PackagingmanageService.GetHJGL_PackagingManageById(id);
|
||||
if (wpq != null)
|
||||
{
|
||||
url = "PackagingManageEdit.aspx?PackagingManageId={0}";
|
||||
|
||||
{
|
||||
url = "PackagingManageEdit.aspx?PackagingManageId={0}";
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format(url, id, "操作 - ")));
|
||||
}
|
||||
}
|
||||
@@ -429,9 +430,9 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
{
|
||||
if (state != null)
|
||||
{
|
||||
string txt= HJGL_PackagingmanageService.GetState().FirstOrDefault(x => x.Value == state.ToString()).Text;
|
||||
string txt = HJGL_PackagingmanageService.GetState().FirstOrDefault(x => x.Value == state.ToString()).Text;
|
||||
|
||||
return txt;
|
||||
return txt;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user