移交管理
This commit is contained in:
@@ -32,8 +32,8 @@ namespace FineUIPro.Web.Transfer
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Type= Request.Params["Type"];
|
||||
if (Type=="1")
|
||||
Type = Request.Params["Type"];
|
||||
if (Type == "1")
|
||||
{
|
||||
var a = Grid1;
|
||||
Grid1.Columns[4].Hidden = false;
|
||||
@@ -41,7 +41,7 @@ namespace FineUIPro.Web.Transfer
|
||||
GetButtonPower();
|
||||
BindGrid();
|
||||
|
||||
btnNew.OnClientClick = Window1.GetShowReference("LHCSystemListEdit.aspx?Type="+Type) + "return false;";
|
||||
btnNew.OnClientClick = Window1.GetShowReference("LHCSystemListEdit.aspx?Type=" + Type) + "return false;";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ namespace FineUIPro.Web.Transfer
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID;
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LHCSystemListEdit.aspx?Id={0}&Type={1}", id,Type, "编辑 - ")));
|
||||
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LHCSystemListEdit.aspx?Id={0}&Type={1}", id, Type, "编辑 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -221,10 +221,53 @@ namespace FineUIPro.Web.Transfer
|
||||
/// <param name="e"></param>
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("LHCSystemListDataIn.aspx?Type="+Type, "导入 - ")));
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("LHCSystemListDataIn.aspx?Type=" + Type, "导入 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 导出
|
||||
|
||||
/// <summary>
|
||||
/// 导出
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode($"{(Type == "1" ? "非" : "")}工艺清单" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.ContentType = "application/excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = 100000;
|
||||
this.BindGrid();
|
||||
Response.Write(GetGridMultiHeaderTableHtml(Grid1));
|
||||
//Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 清空数据
|
||||
|
||||
/// <summary>
|
||||
/// 清空数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
var ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrWhiteSpace(ProjectId))
|
||||
{
|
||||
string strSql = $"delete from Transfer_LHCSystemList where ProjectId = '{ProjectId}' and Type = '{Type}';";
|
||||
BLL.SQLHelper.ExecutSql(strSql);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
@@ -242,8 +285,9 @@ namespace FineUIPro.Web.Transfer
|
||||
{
|
||||
menuId = BLL.Const.Transfer_LHCSystemListMenuId0;
|
||||
}
|
||||
else {
|
||||
menuId= BLL.Const.Transfer_LHCSystemListMenuId1;
|
||||
else
|
||||
{
|
||||
menuId = BLL.Const.Transfer_LHCSystemListMenuId1;
|
||||
}
|
||||
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, menuId);
|
||||
@@ -252,6 +296,7 @@ namespace FineUIPro.Web.Transfer
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDel.Hidden = false;
|
||||
this.btnClear.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user