SGGL_JT/SUBQHSE/FineUIPro.Web/common/main_old.aspx.cs

39 lines
996 B
C#
Raw Normal View History

2025-04-17 16:01:19 +08:00
using BLL;
using System;
namespace FineUIPro.Web.common
{
public partial class main_old : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
var thisUnit = CommonService.GetIsThisUnit();
if (thisUnit != null && thisUnit.CollCropCode== "913700001630777743")
{
Tab3.Hidden=true;
//Tab4.Hidden=true;
}
if(this.SysType == "SHIYE")
{
this.mainTabStrip.ActiveTabIndex = 2;
}
}
}
protected void mainTabStrip_TabIndexChanged(object sender, EventArgs e)
{
if (this.mainTabStrip.ActiveTabIndex == 2)
{
this.SysType = "SHIYE";
}
else
{
this.SysType = "GONGCHENG";
}
}
}
}