using System;
using CoreSavingLibrary;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataLibrary;
namespace Saving
{
public partial class FrameDialog : System.Web.UI.MasterPage
{
public String HM9ColorFilter { set; get; }
protected void Page_Load(object sender, EventArgs e)
{
// สร้าง fullpath ของโฟลเดอร์ GCOOP
Session["virtual_directory"] = WebUtil.GetVirtualDirectory();
String vDir = "";
try { vDir = Session["virtual_directory"].ToString(); }
catch { vDir = "IEXT"; }
Session["currentDir"] = HttpContext.Current.Request.MapPath("~/").Substring(0, 1);
String gcoopPath = Session["currentDir"] + ":\\ICOOP_ALL\\" + vDir + "\\ICOOP\\";
// สร้าง object xml เป็นตัวแปร local
XmlConfigService xml = new XmlConfigService(gcoopPath);
HM9ColorFilter = xml.HM9ColorFilter;
PageWebDialog pd = (PageWebDialog)ContentPlace.Page;
if (pd.isLogon)
{
string strq = "?qdt" + DateTime.Today.ToString("yyyyMMdd");
LtHideJs.Text = "\n";
LtHideJs.Text += "";
}
else
{
pd.Response.Clear();
pd.Response.Write("