|
@ -44,6 +44,16 @@ namespace SCP.Views.沈阳金杯.WarehouseData |
|
|
private void SetRoleRule() |
|
|
private void SetRoleRule() |
|
|
{ |
|
|
{ |
|
|
IsPriceVisible(Grid1, "要货日期"); |
|
|
IsPriceVisible(Grid1, "要货日期"); |
|
|
|
|
|
if (CurrentUser.RoleList.Contains("修改价格")) |
|
|
|
|
|
{ |
|
|
|
|
|
for (int i = 0, count = Grid1.Rows.Count; i < count; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
object[] rowDataKeys = Grid1.DataKeys[i]; |
|
|
|
|
|
GridRow row = Grid1.Rows[i]; |
|
|
|
|
|
var txtPrice = (System.Web.UI.WebControls.TextBox)row.FindControl("txtPrice"); |
|
|
|
|
|
txtPrice.Enabled = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
private void GetInvoice() |
|
|
private void GetInvoice() |
|
|
{ |
|
|
{ |
|
@ -84,16 +94,7 @@ namespace SCP.Views.沈阳金杯.WarehouseData |
|
|
this.btnCheckSuccess.Hidden = true; //Visible = false;
|
|
|
this.btnCheckSuccess.Hidden = true; //Visible = false;
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (CurrentUser.RoleList.Contains("修改价格")) |
|
|
|
|
|
{ |
|
|
|
|
|
for (int i = 0, count = Grid1.Rows.Count; i < count; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
object[] rowDataKeys = Grid1.DataKeys[i]; |
|
|
|
|
|
GridRow row = Grid1.Rows[i]; |
|
|
|
|
|
var txtPrice = (System.Web.UI.WebControls.TextBox)row.FindControl("txtPrice"); |
|
|
|
|
|
txtPrice.Enabled = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
this.btnEdit.Enabled = true; |
|
|
this.btnEdit.Enabled = true; |
|
@ -270,16 +271,19 @@ namespace SCP.Views.沈阳金杯.WarehouseData |
|
|
{ |
|
|
{ |
|
|
Grid1.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
|
|
Grid1.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
|
|
BindData(); |
|
|
BindData(); |
|
|
|
|
|
SetRoleRule(); |
|
|
} |
|
|
} |
|
|
protected void Grid_V_TB_INVOICE_DETAIL_PageIndexChange(object sender, FineUI.GridPageEventArgs e) |
|
|
protected void Grid_V_TB_INVOICE_DETAIL_PageIndexChange(object sender, FineUI.GridPageEventArgs e) |
|
|
{ |
|
|
{ |
|
|
BindData(); |
|
|
BindData(); |
|
|
|
|
|
SetRoleRule(); |
|
|
} |
|
|
} |
|
|
protected void Grid1_Sort(object sender, GridSortEventArgs e) |
|
|
protected void Grid1_Sort(object sender, GridSortEventArgs e) |
|
|
{ |
|
|
{ |
|
|
Grid1.SortDirection = e.SortDirection; |
|
|
Grid1.SortDirection = e.SortDirection; |
|
|
Grid1.SortField = e.SortField; |
|
|
Grid1.SortField = e.SortField; |
|
|
BindData(); |
|
|
BindData(); |
|
|
|
|
|
SetRoleRule(); |
|
|
} |
|
|
} |
|
|
protected void Window1_Close(object sender, WindowCloseEventArgs e) |
|
|
protected void Window1_Close(object sender, WindowCloseEventArgs e) |
|
|
{ |
|
|
{ |
|
|