/// <summary>
        /// 查询按钮按下
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ruleInquiry_CustomValidationMethod(object sender, CustomValidationEventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            CardVo cardvo = new CardVo();

            cardvo.IFacCd       = this.atxtFactoryCd.Text;
            cardvo.IDispItemCd  = this.atxtDispItemCd.Text;
            cardvo.IDispItemRev = this.atxtDispItemRev.Text;
            cardvo.IDlCd        = this.atxtCustomerCd.Text;
            cardvo.IDrwNo       = this.txtDrwNo.Text;
            cardvo.IItemCls     = this.clsddlItemCls.Selectedvalue;
            cardvo.IItemType    = this.atxtItemType.Text;
            cardvo.IMakerCd     = this.atxtMakerCd.Text;
            cardvo.IMntCls      = this.clsddlMntCls.Selectedvalue;
            cardvo.IModel       = this.txtModel.Text;
            cardvo.IQryMtrl     = this.txtQryMtrl.Text;
            cardvo.ISeiban      = this.txtSeiban.Text;
            cardvo.ISpec        = this.txtSpec.Text;


            IAction_MaterialSearch action = ComponentLocator.Instance().Resolve <IAction_MaterialSearch>();
            int count = action.GetPmMsDetail(this.FrmMaterialSearch_pagerGridView1, cardvo);

            if (count == 0)
            {
                e.IsValid = false;
            }
            else
            {
                e.IsValid = true;
            }
            this.Cursor = Cursors.Default;
        }
 private void commonToolStrip1_GobackClick(object sender, EventArgs e)
 {
     ClearError();
     if (currentGroup == 2)
     {
         ClearG2();
     }
     if (currentGroup == 3)
     {
         IAction_MaterialSearch action = ComponentLocator.Instance().Resolve <IAction_MaterialSearch>();
         action.Init_GridView(this.FrmMaterialSearch_pagerGridView1);
     }
     currentGroup--;
     this.SetCommonToolstrip();
     this.SetGroupLayout();
 }
        /// <summary>
        /// 画面初始化
        /// </summary>
        private void Initialize()
        {
            ToolStripManager.Renderer = new Office2007Renderer();

            this.btnFactoryHelper.Image      = (Image)Com.GainWinSoft.Common.ResourcesUtils.GetResource("AssistantButtonDownArrow");
            this.btnCustomerHelper.Image     = (Image)Com.GainWinSoft.Common.ResourcesUtils.GetResource("AssistantButtonDownArrow");
            this.btnMakerHelper.Image        = (Image)Com.GainWinSoft.Common.ResourcesUtils.GetResource("AssistantButtonDownArrow");
            this.btnItemTypeHelper.Image     = (Image)Com.GainWinSoft.Common.ResourcesUtils.GetResource("AssistantButtonDownArrow");
            this.clsddlItemCls.Selectedindex = 0;
            this.clsddlMntCls.Selectedindex  = 0;

            IAction_MaterialSearch action = ComponentLocator.Instance().Resolve <IAction_MaterialSearch>();

            action.Init_GridView(this.FrmMaterialSearch_pagerGridView1);

            uservo = (LoginUserInfoVo)SessionUtils.GetSession(SessionUtils.COMMON_LOGIN_USER_INFO);

            SetCommonToolstrip();
            SetGroupLayout();

            if (uservo.Factory != null)
            {
                FactoryVo factoryvo = uservo.Factory;
                this.atxtFactoryCd.Text = factoryvo.IFacCd;
                this.lblFactoryNm.Text  = factoryvo.IFacDesc;
                this.tlpG1.Enabled      = false;
                this.tlpG2.Enabled      = true;
                this.tlpG3.Enabled      = false;
                this.firstGroup         = 2;
                this.currentGroup       = 2;
            }
            else
            {
                this.tlpG1.Enabled = true;
                this.firstGroup    = 1;
                this.currentGroup  = 1;
            }
        }