|
|
@ -44,6 +44,16 @@ namespace SCP.Views.沈阳金杯.WarehouseData |
|
|
|
private void SetRoleRule() |
|
|
|
{ |
|
|
|
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() |
|
|
|
{ |
|
|
@ -84,16 +94,7 @@ namespace SCP.Views.沈阳金杯.WarehouseData |
|
|
|
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; |
|
|
@ -270,16 +271,19 @@ namespace SCP.Views.沈阳金杯.WarehouseData |
|
|
|
{ |
|
|
|
Grid1.PageSize = Convert.ToInt32(ddlGridPageSize.SelectedValue); |
|
|
|
BindData(); |
|
|
|
SetRoleRule(); |
|
|
|
} |
|
|
|
protected void Grid_V_TB_INVOICE_DETAIL_PageIndexChange(object sender, FineUI.GridPageEventArgs e) |
|
|
|
{ |
|
|
|
BindData(); |
|
|
|
SetRoleRule(); |
|
|
|
} |
|
|
|
protected void Grid1_Sort(object sender, GridSortEventArgs e) |
|
|
|
{ |
|
|
|
Grid1.SortDirection = e.SortDirection; |
|
|
|
Grid1.SortField = e.SortField; |
|
|
|
BindData(); |
|
|
|
SetRoleRule(); |
|
|
|
} |
|
|
|
protected void Window1_Close(object sender, WindowCloseEventArgs e) |
|
|
|
{ |
|
|
|