39 lines
992 B
C#
39 lines
992 B
C#
using BLL;
|
|
using System;
|
|
|
|
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;
|
|
}
|
|
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";
|
|
}
|
|
}
|
|
}
|
|
} |