11
This commit is contained in:
@@ -235,7 +235,16 @@ namespace FineUIPro.Web.WeldMat.Stock
|
||||
var s = BLL.UnitStoreService.GetUnitStoreById(q.UnitStoreId);
|
||||
if (s != null && s.UnitId == CurrUser.UnitId)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInEdit.aspx?StockInId={0}", id, "编辑 - ")));
|
||||
if (s.IsUse == true)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInEdit.aspx?StockInId={0}", id, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("该仓库已停用,不能修改!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -234,7 +234,15 @@ namespace FineUIPro.Web.WeldMat.Stock
|
||||
var s = BLL.UnitStoreService.GetUnitStoreById(q.UnitStoreId);
|
||||
if (s != null && s.UnitId == CurrUser.UnitId)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInitEdit.aspx?StockInId={0}", id, "编辑 - ")));
|
||||
if (s.IsUse == true)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockInitEdit.aspx?StockInId={0}", id, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("该仓库已停用,不能修改!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace FineUIPro.Web.WeldMat.Stock
|
||||
if (drpUnit.SelectedValue != Const._Null)
|
||||
{
|
||||
drpUnitStore.Items.Clear();
|
||||
BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, drpUnit.SelectedValue, true);
|
||||
BLL.UnitStoreService.InitUnitStoreAll(drpUnitStore, drpUnit.SelectedValue, true);
|
||||
drpUnitStore.SelectedValue = Const._Null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user