Ejemplo n.º 1
0
    public void Page_Load(object sender, System.EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        this.Btn_Dsearch.Click       += new System.EventHandler(this.Btn_Dsearch_Click);
        this.Btn_Citysearch.Click    += new System.EventHandler(this.Btn_Citysearch_Click);
        this.Btn_productsearch.Click += new System.EventHandler(this.Btn_productsearch_Click);
        this.btn_graph.Click         += new System.EventHandler(this.btn_graph_Click);
        this.btn_view.Click          += new System.EventHandler(this.btn_view_Click);
        this.Load += new System.EventHandler(this.Page_Load);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        if (!IsPostBack)
        {
            Response.Cache.SetExpires(DateTime.Now);
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            Permissions.CheckManagePermission(EnumCompanyPermission.ReportOrderReport);
            Session["language"]       = LanguageBLL.GetDefaultLanguageTableName();
            Session["LanguegeSelect"] = LanguageBLL.GetDefaultlLanguageName();

            DateTime dt = DateTime.Now;
            string   t  = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString();

            this.DatePicker1.Text = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd");
            this.DatePicker2.Text = DateTime.Now.ToString("yyyy-MM-dd");
            Session["Begin"]      = this.DatePicker1.Text;
            Session["End"]        = this.DatePicker2.Text;

            showChat();
        }

        Translations();
    }
Ejemplo n.º 2
0
    private void Page_Load(object sender, System.EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        this.Btn_Detail.Click += new System.EventHandler(this.Btn_Detail_Click);

        if (!IsPostBack)
        {
            Response.Cache.SetExpires(DateTime.Now);
            Permissions.CheckManagePermission(EnumCompanyPermission.ReportOrderDetail);

            DateTime dt = DateTime.Now;
            string   t  = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString();

            this.DatePicker1.Text = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd");
            this.DatePicker2.Text = DateTime.Now.ToString("yyyy-MM-dd");
            Btn_Detail_Click(null, null);
            Bind();
        }

        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        AddOrderBLL.BindCurrency_Rate(Dropdownlist1);
        Dropdownlist1.SelectedValue = CountryBLL.GetCurrency();

        // 在此处放置用户代码以初始化页面
        Session["language"]       = LanguageBLL.GetDefaultLanguageTableName();
        Session["LanguegeSelect"] = LanguageBLL.GetDefaultlLanguageName();


        Translations();
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        // 权限设置
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(EnumCompanyPermission.CustomerStoreHuikuanmingxi);
        // 在此处放置用户代码以初始化页面

        if (!IsPostBack)
        {
            Session["language"]       = LanguageBLL.GetDefaultLanguageTableName();
            Session["LanguegeSelect"] = LanguageBLL.GetDefaultlLanguageName();

            this.DatePicker1.Text = CommonDataBLL.GetDateBegin().ToString();
            this.DatePicker2.Text = CommonDataBLL.GetDateEnd().ToString();
            Bind();
        }
        CommonDataBLL.setlanguage();
        Translations();
    }
Ejemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        // 权限设置
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(EnumCompanyPermission.CustomerStoreHuikuanTotal);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        // 在此处放置用户代码以初始化页面
        this.Page.RegisterStartupScript("", "<script lanagage='javascript'></script>"); Translations();
        if (!IsPostBack)
        {
            Session["language"]       = LanguageBLL.GetDefaultLanguageTableName();
            Session["LanguegeSelect"] = LanguageBLL.GetDefaultlLanguageName();

            this.DatePicker1.Text   = CommonDataBLL.GetDateBegin();
            this.DatePicker2.Text   = CommonDataBLL.GetDateEnd();
            Session["Begin"]        = this.DatePicker1.Text;
            Session["End"]          = (DateTime.Parse(this.DatePicker2.Text).AddHours(23).AddMinutes(59).AddSeconds(59)).ToString();
            this.lbl_BeginDate.Text = CommonDataBLL.GetDateBegin();
            this.lbl_EndDate.Text   = CommonDataBLL.GetDateEnd();
            btn_view_Click(null, null);
        }
        CommonDataBLL.setlanguage();
    }