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.CaiGou.CaiGouDingDan
{
    public partial class W_CG_CGDD
    {
        public W_CG_CGDD()
        {

        }
        public override void OnLoad()
        {
            base.dw_yw_cg_list = "dw_yw_cg_ddhz_list_cx";
            base.dw_yw_cg_top = "dw_yw_cg_ddmx_top";
            base.dw_yw_cg_mx = "dw_yw_cg_ddmx_list";
            base.tableNameHz = "YW_CG_DDHZ";
            base.tableNameMx = "YW_CG_DDMX";
            base.tabpage_2.Text = "采购订单汇总";
            base.tabpage_1.Text = "采购订单明细";
            base.flag = "CG";
            base.cg_fs_dwChild = "CG_DDFS"; // 采购方式
            base.dw_yw_cg_top_title = "采购订单";
            base.OnLoad();
            DBHelp dbhelp = new DBHelp();
            dbhelp.Open();
            //获取价格控制
            //string str_jgqx = "SELECT lzfc FROM da_qx_mokuai WHERE cdbh='" + this.FunctionID + "' AND yhbh='" + AppService.GetUserID() + "'";
            //DataTable T_curjgqx = dbhelp.QueryRDataTable(str_jgqx);
            //string curjgqx = T_curjgqx.Rows[0][0].ToString();

            if (this.Page != null)
            {

                this.Page.ClientScript.RegisterClientScriptInclude("W_CG_CGDD", "/CaiGou/CaiGouDingDan/W_CG_CGDD.win.js?JSV=" + AppService.GetJSVesion());
            }
           
        }
    }
}
