This commit is contained in:
2024-10-21 15:49:55 +08:00
parent 569948f958
commit bafdaa6c9f
19 changed files with 1009 additions and 191 deletions
@@ -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;
}
}