Files
ayanova7/source/WBI/GlobalSet.aspx.cs
2018-06-29 19:47:36 +00:00

56 lines
2.0 KiB
C#

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using GZTW.AyaNova.BLL;
public partial class GlobalSet : System.Web.UI.Page
{
protected void Page_Init()
{
if (Util.CurrentUser.IsClientOrHeadOfficeAccount || AyaBizUtils.Right("Object.Global") < (int)SecurityLevelTypes.ReadWrite)
{
Util.Denied(Context);
}
}
protected void Page_Load(object sender, EventArgs e)
{
this.Title = "WBI Client login settings";
if (!IsPostBack)
{
//fill report list
cbrpts.Items.Add(new ListItem("No report", Guid.Empty.ToString()));
ReportPickList r = ReportPickList.GetList(WorkorderServiceList.ReportKey,
WorkorderServiceDetailedReportData.ReportKey,false);
foreach (ReportPickList.ReportPickListInfo i in r)
{
if (i.Active)
cbrpts.Items.Add(new ListItem(i.Name, i.ID.ToString()));
}
cbrpts.SelectedValue = Util.IntegrationData.ClientWorkorderReportID.ToString();//Util.ClientWorkorderReportID.ToString();
edCSRText.Text = Util.IntegrationData.CSRInfoText;
ckWoWiki.Checked = Util.IntegrationData.ClientViewWorkorderWiki;//case 1169
}
else
{
Util.IntegrationData.ClientWorkorderReportID = Util.ComboValue(cbrpts);
Util.IntegrationData.CSRInfoText = edCSRText.Text;
Util.IntegrationData.ClientViewWorkorderWiki = ckWoWiki.Checked; //case 1169
Util.SaveIntegrationData();
//case 755
Response.Write("<script type=\"text/javascript\"> window.open('','_parent',''); window.close(); </script> ");
}
}
}