using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Data;
using System.Data.SqlClient;

using Sybase.DataWindow;
using TXSoft.Common;
using TXSoft.ExtPB;
using TXSoft.DataStore;


namespace A8ERP.CuXiao.CuXiaoSheZhi_Base
{
    public partial class W_CXFASZ_Edit
    {
       
        protected string cur_Win_Title = string.Empty;
        protected string cur_DW_Top = string.Empty;
        protected string cur_DW_BM = string.Empty;
        public W_CXFASZ_Edit()
        {

        }
        public override void OnLoad()
        {
            base.OnLoad();
            //if (string.IsNullOrEmpty(cur_Win_Title))
            //{
            //    cur_Win_Title = "一般促销方案设置";
            //}
            //if (string.IsNullOrEmpty(cur_DW_Top))
            //{
            //    cur_DW_Top = "";
            //}
            //if (string.IsNullOrEmpty(cur_DW_BM))
            //{
            //    cur_DW_BM = "";
            //}
            //this.Title = cur_Win_Title;
            //dw_bm.DataStore.DataWindowObject = cur_DW_BM;
            //dw_top.DataStore.DataWindowObject = cur_DW_Top;
            //dw_top.InsertRow(0);
            ////A8ERP.Common.DWServiceHelp.AddReportService(dw_kh);
            //A8ERP.Common.DWServiceHelp.AddReportService(dw_bm);

            if (Request["CURGNQXSTR"] != null)
            {
                if (Request["CURGNQXSTR"].ToString().IndexOf("btn_Edit") < 0)
                {
                    this.cb_2.Enabled = false;
                }
            }
            if (Request["CURFHJB"] != null)
            {
                if ("T".Equals(Request["CURFHJB"].ToString()))
                {
                    this.cb_2.Enabled = false;
                }
            }
            if (this.Page != null)
            {
                this.Page.ClientScript.RegisterClientScriptInclude("W_YiBanCuXiaoSheZhi", "/CuXiao/YiBanCuXiaoSheZhi/W_YiBanCuXiaoSheZhi.win.js?JSV=" + AppService.GetJSVesion());
                this.Page.ClientScript.RegisterClientScriptInclude("W_CXFASZ_Edit", "/CuXiao/YiBanCuXiaoSheZhi/W_YiBanCuXiaoSheZhi_Edit.win.js?JSV=" + AppService.GetJSVesion());
                this.Page.ClientScript.RegisterClientScriptInclude("OpenWindowQueryBase", "/DangAn/Base/OpenWindowQueryBase.win.js?JSV=" + AppService.GetJSVesion());
                this.Page.ClientScript.RegisterClientScriptInclude("OpenWindowQueryNewBase", "/DangAn/Base/OpenWindowQueryNewBase.win.js?a=" + new DateTime());
                this.Page.ClientScript.RegisterClientScriptInclude("OpenWindowInsertRowCxfaSpkhBase", "/DangAn/Base/OpenWindowInsertRowCxfaSpkhBase.win.js?JSV=" + AppService.GetJSVesion());
                this.Page.ClientScript.RegisterClientScriptInclude("W_mmxyjyyzszsp_Fajb_list", "/CuXiao/Mmxyjyyszjsp/W_mmxyjyyzszsp_Fajb_list.win.js?JSV=" + AppService.GetJSVesion());
                this.Page.ClientScript.RegisterClientScriptInclude("W_CXFSSPDR", "/import/W_CXFSSPDR.win.js?JSV=" + AppService.GetJSVesion());
            }

            this.IsRegisterScriptFile = false;
        
        }
    }
}
