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.CaiWu.ChaXun
{
    public partial class W_CaiWuChaXun
    {
        public W_CaiWuChaXun()
        {

        }
        public override void OnLoad()
        {
            base.OnLoad();

            string curFlag = string.Empty;
            curFlag = Request["flag"];

            if (curFlag == "SRX")
            {
                Title = "现金银行收入凭证查询";
                cb_7.Visible = false;
                sle_khorgys.Visible = false;
                st_9.Visible = false;
                st_5.Text = "收款方式";
                st_5.Y = 38;
                sle_skfs.Y = 35;
                cb_6.Y = 35;
            }
            else if (curFlag == "ZCX")
            {
                Title = "现金银行支出凭证查询";
                cb_7.Visible = false;
                sle_khorgys.Visible = false;
                st_9.Visible = false;
                st_5.Text = "付款方式";
                st_5.Y = 38;
                sle_skfs.Y = 35;
                cb_6.Y = 35;
            }
            else if (curFlag == "XS")
            {
                Title = "销货收款单查询";
                cb_7.Visible = true;
                sle_khorgys.Visible = true;
                st_9.Visible = true;
                st_9.Text = "客户";
                st_5.Text = "收款方式";
            }
            else if (curFlag == "XF")
            {
                Title = "销货费用单查询";
                cb_7.Visible = true;
                sle_khorgys.Visible = true;
                st_9.Visible = true;
                st_9.Text = "客户";
                st_5.Text = "付款方式";
            }
            else if (curFlag == "FK")
            {
                Title = "进货付款单查询";
                cb_7.Visible = true;
                sle_khorgys.Visible = true;
                st_9.Visible = true;
                st_9.Text = "供应商";
                st_5.Text = "付款方式";
            }
            else if (curFlag == "JF")
            {
                Title = "进货费用单查询";
                cb_7.Visible = true;
                sle_khorgys.Visible = true;
                st_9.Visible = true;
                st_9.Text = "供应商";
                st_5.Text = "付款方式";
            }
            else if (curFlag == "TT")
            {
                Title = "现金银行凭证查询";
                cb_7.Visible = false;
                sle_khorgys.Visible = false;
                st_9.Visible = false;
                cb_9.Visible = false;
                sle_jbr.Visible = false;
                st_11.Visible = false;
                st_5.Text = "调整类型";
                st_5.Y = 38;
                sle_skfs.Y = 35;
                cb_6.Y = 35;
            }
        }
    }
}
