代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
public partial class BaseFactoryEdit: PageBase
|
||||
public partial class BaseFactoryEdit : PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
@@ -32,7 +27,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.FactoryId = Request.Params["FactoryId"];
|
||||
@@ -68,7 +63,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
table.FactoryCode = this.txtFactoryCode.Text;
|
||||
table.FactoryName = this.txtFactoryName.Text;
|
||||
table.Address = this.txtAddress.Text;
|
||||
table.MapCoordinates=this.txtMapCoordinates.Text;
|
||||
table.MapCoordinates = this.txtMapCoordinates.Text;
|
||||
if (string.IsNullOrEmpty(this.FactoryId))
|
||||
{
|
||||
table.FactoryId = SQLHelper.GetNewID(typeof(Model.Base_Factory));
|
||||
@@ -86,9 +81,9 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
bool result = true;
|
||||
var model = BLL.Base_FactoryService.GetBase_FactoryByCode(this.txtFactoryCode.Text);
|
||||
if(model != null && model.FactoryId !=this.FactoryId)
|
||||
if (model != null && model.FactoryId != this.FactoryId)
|
||||
{
|
||||
result=false;
|
||||
result = false;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
@@ -153,7 +151,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
BindGrid();
|
||||
PageContext.RegisterStartupScript("onNewButtonClick();");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 编辑
|
||||
@@ -266,7 +264,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
var q = Funs.DB.Base_Certificate.FirstOrDefault(x => x.CertificateCode == this.txtCertificateCode.Text.Trim() && (x.CertificateId != hfFormID.Text || (hfFormID.Text == null && x.CertificateId != null)));
|
||||
if (q != null)
|
||||
{
|
||||
isok = false;
|
||||
isok = false;
|
||||
ShowNotify("输入的证书编号已存在!", MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
@@ -327,7 +325,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
if (doplist != null)
|
||||
{
|
||||
name = doplist.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Text;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
@@ -25,8 +23,8 @@ namespace FineUIPro.Web.BaseInfo
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var tb = BLL.CheckTemplateService.getListData( Grid1);
|
||||
{
|
||||
var tb = BLL.CheckTemplateService.getListData(Grid1);
|
||||
Grid1.RecordCount = CheckTemplateService.count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
Grid1.DataSource = tb;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.CheckTemplateID = Request.Params["CheckTemplateID"];
|
||||
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtIndexs.Text= ((Funs.DB.ProjectSupervision_CheckTemplate.Max(x => x.Indexs) ?? 0) + 1).ToString();
|
||||
this.txtIndexs.Text = ((Funs.DB.ProjectSupervision_CheckTemplate.Max(x => x.Indexs) ?? 0) + 1).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
Model.ProjectSupervision_CheckTemplate newCheckTemplate = new Model.ProjectSupervision_CheckTemplate
|
||||
{
|
||||
ID = this.CheckTemplateID,
|
||||
SortIndex = Funs.GetNewInt( this.txtSortIndex.Text),
|
||||
SortIndex = Funs.GetNewInt(this.txtSortIndex.Text),
|
||||
CheckItem = this.txtCheckItem.Text.Trim(),
|
||||
CheckStandard = this.txtCheckStandard.Text.Trim(),
|
||||
CheckMethod = this.txtCheckMethod.Text.Trim(),
|
||||
@@ -83,7 +83,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using BLL;
|
||||
using System;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using AspNet=System.Web.UI.WebControls;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
@@ -66,7 +62,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
|
||||
private bool Save()
|
||||
{
|
||||
bool result=true;
|
||||
bool result = true;
|
||||
var q = BLL.Base_CompanytemplateService.GetBase_CompanyTemplateByCode(this.txtCode.Text);
|
||||
if (q != null && q.TemplateId != this.TemplateId)
|
||||
{
|
||||
@@ -110,7 +106,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
|
||||
@@ -59,12 +59,12 @@ namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
DataRow row = table.NewRow();
|
||||
row[0] = item.CostTypeId;
|
||||
row[1] ="-1";
|
||||
row[1] = "-1";
|
||||
row[2] = item.CostTypeCode;
|
||||
row[3] = item.CostTypeCode+ item.CostTypeName;
|
||||
row[3] = item.CostTypeCode + item.CostTypeName;
|
||||
row[4] = item.Remark;
|
||||
table.Rows.Add(row);
|
||||
var getU = Funs.DB.Base_CostTypeItem.Where(x => x.CostTypeId == item.CostTypeId).OrderBy(x=>x.SortIndex);
|
||||
var getU = Funs.DB.Base_CostTypeItem.Where(x => x.CostTypeId == item.CostTypeId).OrderBy(x => x.SortIndex);
|
||||
foreach (var itemU in getU)
|
||||
{
|
||||
DataRow rowC = table.NewRow();
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
Model.Base_CostType title = new Model.Base_CostType();
|
||||
title.CostTypeCode = Funs.GetNewIntOrZero(this.txtCostTypeCode.Text.Trim());
|
||||
title.CostTypeName = this.txtCostTypeName.Text.Trim();
|
||||
title.Remark = this.txtRemark.Text.Trim();
|
||||
title.Remark = this.txtRemark.Text.Trim();
|
||||
if (string.IsNullOrEmpty(this.CostTypeId))
|
||||
{
|
||||
this.CostTypeId = SQLHelper.GetNewID(typeof(Model.Base_CostType));
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.BaseInfo
|
||||
{
|
||||
@@ -49,7 +48,7 @@ namespace FineUIPro.Web.BaseInfo
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user