This commit is contained in:
55
source/WBI/GlobalSet.aspx.cs
Normal file
55
source/WBI/GlobalSet.aspx.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
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> ");
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user