提交集团数据穿透修改
This commit is contained in:
@@ -40,12 +40,8 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
{
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
var thisUnit = CommonService.GetIsThisUnit();
|
||||
if (thisUnit != null)
|
||||
{
|
||||
this.UnitId = thisUnit.UnitId;
|
||||
}
|
||||
|
||||
this.UnitId = BLL.Const.UnitId_CD;
|
||||
|
||||
this.btnNew.OnClientClick = Window1.GetShowReference("DrillRecordListEdit.aspx") + "return false;";
|
||||
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
|
||||
{
|
||||
@@ -87,7 +83,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
strSql += " AND DrillRecordCode LIKE @DrillRecordCode";
|
||||
listStr.Add(new SqlParameter("@DrillRecordCode", "%" + this.txtDrillRecordCode.Text.Trim() + "%"));
|
||||
}
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtDrillRecordName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND DrillRecordList.DrillRecordName LIKE @DrillRecordName";
|
||||
@@ -241,7 +237,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 导出方法
|
||||
/// </summary>
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
private void InitDropDownList()
|
||||
{
|
||||
//BLL.UnitService.InitUnitDropDownList(this.drpUnits, this.ProjectId, false);
|
||||
var thisUnit = CommonService.GetIsThisUnit();
|
||||
var thisUnit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CD);
|
||||
if (thisUnit != null)
|
||||
{
|
||||
this.txtUnit.Text = thisUnit.UnitName;
|
||||
|
||||
@@ -37,12 +37,8 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
var thisUnit = CommonService.GetIsThisUnit();
|
||||
if (thisUnit != null)
|
||||
{
|
||||
this.UnitId = thisUnit.UnitId;
|
||||
}
|
||||
|
||||
this.UnitId = BLL.Const.UnitId_CD;
|
||||
|
||||
//BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
|
||||
//if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
|
||||
//{
|
||||
@@ -56,7 +52,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
}
|
||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -81,7 +77,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
{
|
||||
listStr.Add(new SqlParameter("@UnitId", this.UnitId));
|
||||
strSql += " AND EmergencyList.States = @States"; ///状态为已完成
|
||||
listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
|
||||
listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -105,7 +101,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
@@ -194,13 +190,13 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
{
|
||||
if (this.btnMenuEdit.Hidden || Emergency.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EmergencyListView.aspx?EmergencyListId={0}", id, "查看 - ")));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EmergencyListView.aspx?EmergencyListId={0}", id, "查看 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EmergencyListEdit.aspx?EmergencyListId={0}", id, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -213,7 +209,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
{
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
@@ -229,9 +225,9 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
this.BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
/// </summary>
|
||||
private void InitDropDownList()
|
||||
{
|
||||
var thisUnit = CommonService.GetIsThisUnit();
|
||||
var thisUnit = BLL.UnitService.GetUnitByUnitId(BLL.Const.UnitId_CD);
|
||||
if (thisUnit != null)
|
||||
{
|
||||
this.txtUnit.Text = thisUnit.UnitName;
|
||||
|
||||
Reference in New Issue
Block a user