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

45 lines
1.1 KiB
C#
Raw Normal View History

2025-04-07 17:43:30 +08:00
using BLL;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.common
{
public partial class main : 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;
2025-04-07 17:43:30 +08:00
}
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";
}
}
}
}