Beispiel #1
0
        protected override object[] LoadDataSource(int inclusive, int exclusive)
        {
            //获取rcard对应的工单,包括返工前工单
            QueryFacade2 queryFacade = new QueryFacade2(base.DataProvider);

            object[] rcard2MOs = queryFacade.GetMOByRcard(this.txtSN.Value);
            return(rcard2MOs);

            #region

//            object[] objs = new object[1] ;
//			if(_facade ==null)
//			{
//				_facade = new FacadeFactory(base.DataProvider).CreateMOFacade();
//			}
//            object mo = this._facade.GetMO( this.txtMO.Value );
//            if(mo==null)
//            {
//                return null ;
//            }
//            else
//            {
//                objs[0] = mo ;
//                return objs ;
//            }

            #endregion
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                string rcard = this.GetRequestParam("RCARD");
                int    rcardseq;
                try
                {
                    rcardseq = int.Parse(this.GetRequestParam("RCARDSEQ"));
                }
                catch
                {
                    rcardseq = -1;
                }
                string moCode = this.GetRequestParam("MOCODE");

                this.ViewState["TCARD"] = this.GetRequestParam("TCARD");

                //				try
                //				{
                //					this.ViewState["IsHistoryDB"] = this.GetRequestParam("History") ;
                //				}
                //				catch
                //				{
                //					this.IsHistoryDB = false;
                //				}

                if (_facade == null)
                {
                    //_facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2() ;
                    //					if(this.IsHistoryDB)
                    //					{
                    //						_facade = new FacadeFactory(this.HisProvider).CreateQueryFacade2() ;
                    //					}
                    //					else
                    //					{
                    _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
                    //					}
                }

                object obj = this._facade.GetProductionProcess(moCode, rcard, rcardseq);
                if (obj == null)
                {
                    ExceptionManager.Raise(this.GetType(), "$Error_ItemTracing_not_exist");
                }

                this.txtItem.Value  = ((ProductionProcess)obj).ItemCode;
                this.txtMO.Value    = ((ProductionProcess)obj).MOCode;
                this.txtModel.Value = ((ProductionProcess)obj).ModelCode;
                this.txtSN.Value    = ((ProductionProcess)obj).RCard;
                this.txtSeq.Value   = ((ProductionProcess)obj).RCardSequence.ToString();

                this.txtMO.Visible      = false;
                this.lblMOQuery.Visible = false;
            }
        }
        protected void Page_Load(object sender, System.EventArgs e)
        {
            try
            {
                string[] urls = this.Request.RawUrl.Split(new char[] { '/' });
                this.rawURL = urls[urls.Length - 1];
            }
            catch
            {
                this.rawURL = string.Empty;
            }

            if (!this.IsPostBack)
            {
                this.gridHelper  = new GridHelperNew(this.gridWebGrid, this.DtSource);
                this.gridHelper2 = new GridHelperNew(this.gridWebGrid2, this.DtSource2);
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                string rcard = this.GetRequestParam("RCARD");
                int    rcardseq;
                try
                {
                    rcardseq = int.Parse(this.GetRequestParam("RCARDSEQ"));
                }
                catch
                {
                    rcardseq = -1;
                }
                string moCode = this.GetRequestParam("MOCODE");

                if (_facade == null)
                {
                    _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
                }
                object obj = this._facade.GetProductionProcess(moCode, rcard, rcardseq);
                if (obj == null)
                {
                    ExceptionManager.Raise(this.GetType(), "$Error_ItemTracing_not_exist");
                }

                this.txtItem.Value  = ((ProductionProcess)obj).ItemCode;
                this.txtMO.Value    = ((ProductionProcess)obj).MOCode;
                this.txtModel.Value = ((ProductionProcess)obj).ModelCode;
                this.txtSN.Value    = ((ProductionProcess)obj).RCard;
                this.txtSeq.Value   = ((ProductionProcess)obj).RCardSequence.ToString();
            }

            //this.gridSNHelper = new GridHelper(this.gridSN) ;
            //this.gridSNHelper.LoadDataSourceHandle = new LoadDataSourceDelegate(this.LoadDataSourceSN);
            //this.gridSNHelper.GetRowCountHandle = new GetRowCountDelegate(this.GetRowCountSN);
            //this.gridSNHelper.BuildGridRowhandle = new BuildGridRowDelegate(this.GetGridRowSN);

            //InitWebGridSN() ;
            //this.pagerSizeSelector.Readonly = true ;
        }
Beispiel #4
0
 protected override int GetRowCount3()
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     return(this._facade.QueryPackingInfoRCardCount(
                currentCartonNo
                ));
 }
Beispiel #5
0
 protected override object[] LoadDataSource3(int inclusive, int exclusive)
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     return(this._facade.QueryPackingInfoRCard(
                currentCartonNo,
                inclusive, exclusive));
 }
 protected override int GetRowCount3()
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     return(this._facade.QueryRunningItemInfoCount(
                this.txtMO.Value,
                this.txtSN.Value
                ));
 }
Beispiel #7
0
 protected override int GetRowCount()
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     return(this._facade.QueryItemTracingCount(
                string.Empty,
                string.Empty,
                this.txtMO.Value
                ));
 }
Beispiel #8
0
 protected override int GetRowCount2()
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     return(this._facade.QueryPackingInfoCount(
                this.txtMO.Value,
                this.txtSN.Value,
                int.Parse(this.txtSeq.Value)
                ));
 }
 protected override object[] LoadDataSource3(int inclusive, int exclusive)
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     return(this._facade.QueryRunningItemInfo(
                this.txtMO.Value,
                this.txtSN.Value,
                int.Parse(this.txtSeq.Value),
                1, int.MaxValue));
 }
Beispiel #10
0
 protected override object[] LoadDataSource(int inclusive, int exclusive)
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     return(this._facade.QueryItemTracing(
                string.Empty,
                string.Empty,
                this.txtMO.Value,
                inclusive, exclusive));
 }
Beispiel #11
0
 private void _helper_LoadGridDataSource(object sender, EventArgs e)
 {
     if (_facade == null)
     {
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
     }
     (e as WebQueryEventArgsNew).GridDataSource = this._facade.QueryPackingInfoRCard1(
         this.txtCartonNoQuery.Text.Trim().ToUpper(),
         (e as WebQueryEventArgsNew).StartRow,
         (e as WebQueryEventArgsNew).EndRow);
     (e as WebQueryEventArgsNew).RowCount = this._facade.QueryPackingInfoRCardCount1(
         this.txtCartonNoQuery.Text.Trim().ToUpper());
 }
Beispiel #12
0
        protected override object[] LoadDataSource(int inclusive, int exclusive)
        {
            //将序列号转换为SourceCode
            DataCollectFacade dataCollectfacade = new DataCollectFacade(this.DataProvider);
            //对于序列号的输入框,需要进行一下处理
            string startRCard = FormatHelper.CleanString(this.txtStartSnQuery.Text.Trim().ToUpper());
            string endRCard   = FormatHelper.CleanString(this.txtEndSnQuery.Text.Trim().ToUpper());
            //转换成SourceCard
            string startSourceCard = dataCollectfacade.GetSourceCard(startRCard, string.Empty);
            string endSourceCard   = dataCollectfacade.GetSourceCard(endRCard, string.Empty);

            //end

            if (_facade == null)
            {
                _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
            }

            if (rdbBackword.Checked)
            {
                return(this._facade.QueryItemTracingForSplitboard(
                           FormatHelper.PKCapitalFormat(startSourceCard),
                           FormatHelper.PKCapitalFormat(endSourceCard),
                           //string.Empty,
                           FormatHelper.CleanString(this.txtConditionMo.Text.Trim()),
                           FormatHelper.CleanString(this.txtConditionItem.Text.Trim()),
                           FormatHelper.CleanString(this.txtMaterialModelCodeWhere.Text.Trim()),
                           FormatHelper.CleanString(this.txtBigSSCodeWhere.Text.Trim()),
                           inclusive, exclusive));
            }
            else if (rdbForword.Checked)
            {
                return(this._facade.QueryItemTracingForwordForSplitboard(
                           FormatHelper.PKCapitalFormat(startSourceCard),
                           FormatHelper.PKCapitalFormat(endSourceCard),
                           FormatHelper.CleanString(this.txtConditionMo.Text.Trim()),
                           FormatHelper.CleanString(this.txtConditionItem.Text.Trim()),
                           FormatHelper.CleanString(this.txtMaterialModelCodeWhere.Text.Trim()),
                           FormatHelper.CleanString(this.txtBigSSCodeWhere.Text.Trim()),
                           inclusive, exclusive));
            }

            return(null);
        }
 protected override int GetRowCount()
 {
     if (_facade == null)
     {
         //				if(this.IsHistoryDB)
         //				{
         //					_facade = new FacadeFactory(this.HisProvider).CreateQueryFacade2() ;
         //				}
         //				else
         //				{
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
         //				}
     }
     return(this._facade.QueryProductionProcessCountForSplitboard(
                string.Empty,
                this.txtSN.Value//,
                //this.ViewState["TCARD"].ToString()
                ));
 }
Beispiel #14
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                string rcard = this.GetRequestParam("RCARD");
                int    rcardseq;
                try
                {
                    rcardseq = int.Parse(this.GetRequestParam("RCARDSEQ"));
                }
                catch
                {
                    rcardseq = -1;
                }
                string moCode = this.GetRequestParam("MOCODE");

                if (_facade == null)
                {
                    _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
                }
                object obj = this._facade.GetProductionProcess(moCode, rcard, rcardseq);
                if (obj == null)
                {
                    ExceptionManager.Raise(this.GetType(), "$Error_ItemTracing_not_exist");
                }

                this.txtItem.Value  = ((ProductionProcess)obj).ItemCode;
                this.txtMO.Value    = ((ProductionProcess)obj).MOCode;
                this.txtModel.Value = ((ProductionProcess)obj).ModelCode;
                this.txtSN.Value    = ((ProductionProcess)obj).RCard;
                this.txtSeq.Value   = ((ProductionProcess)obj).RCardSequence.ToString();
            }


            this.gridBurnInHelper = new GridHelper(this.gridBurnIn);
            this.gridBurnInHelper.LoadDataSourceHandle = new LoadDataSourceDelegate(this.LoadDataSourceBurnIn);
            //this.gridBurnInHelper.GetRowCountHandle = new GetRowCountDelegate(this.GetRowCountBurnIn);
            this.gridBurnInHelper.BuildGridRowhandle = new BuildGridRowDelegate(this.GetGridRowBurnIn);
        }
 protected override object[] LoadDataSource(int inclusive, int exclusive)
 {
     // SPEC要求这里只用序列号过滤,MO不再做为条件
     if (_facade == null)
     {
         //				if(this.IsHistoryDB)
         //				{
         //					_facade = new FacadeFactory(this.HisProvider).CreateQueryFacade2() ;
         //				}
         //				else
         //				{
         _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
         //				}
     }
     return(this._facade.QueryProductionProcessForSplitboard(
                string.Empty,
                this.txtSN.Value,
                //this.ViewState["TCARD"].ToString(),
                inclusive, exclusive));
 }
Beispiel #16
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this.gridHelper  = new GridHelperNew(this.gridWebGrid, this.DtSource);
            this.gridHelper2 = new GridHelperNew(this.gridWebGrid2, this.DtSource2);
            this.gridHelper3 = new GridHelperNew(this.gridWebGrid3, this.DtSource3);
            if (!this.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                string rcard = this.GetRequestParam("RCARD");
                int    rcardseq;
                try
                {
                    rcardseq = int.Parse(this.GetRequestParam("RCARDSEQ"));
                }
                catch
                {
                    rcardseq = -1;
                }
                string moCode = this.GetRequestParam("MOCODE");

                if (_facade == null)
                {
                    _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
                }
                object obj = this._facade.GetProductionProcess(moCode, rcard, rcardseq);
                if (obj == null)
                {
                    ExceptionManager.Raise(this.GetType(), "$Error_ItemTracing_not_exist");
                }

                this.txtItem.Value  = ((ProductionProcess)obj).ItemCode;
                this.txtMO.Value    = ((ProductionProcess)obj).MOCode;
                this.txtModel.Value = ((ProductionProcess)obj).ModelCode;
                this.txtSN.Value    = ((ProductionProcess)obj).RCard;
                this.txtSeq.Value   = ((ProductionProcess)obj).RCardSequence.ToString();
            }

            //this.pagerSizeSelector.Readonly = true ;
        }
Beispiel #17
0
        private void _helper_LoadGridDataSource(object sender, EventArgs e)
        {
            //将序列号转换为SourceCode
            DataCollectFacade dataCollectfacade = new DataCollectFacade(this.DataProvider);
            //对于序列号的输入框,需要进行一下处理
            string startRCard = FormatHelper.CleanString(this.txtRCardStartQuery.Text.Trim().ToUpper());
            string endRCard   = FormatHelper.CleanString(this.txtRCardEndQuery.Text.Trim().ToUpper());
            //转换成SourceCard
            string startSourceCard = dataCollectfacade.GetSourceCard(startRCard, string.Empty);
            string endSourceCard   = dataCollectfacade.GetSourceCard(endRCard, string.Empty);

            //end

            if (_facade == null)
            {
                _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
            }
            (e as WebQueryEventArgsNew).GridDataSource = this._facade.QueryPackingInfoDetail(
                this.txtCartonNoQuery.Text.Trim().ToUpper(),
                FormatHelper.TODateInt(this.dateStartDateQuery.Text),
                FormatHelper.TODateInt(this.dateEndDateQuery.Text),
                startSourceCard.ToUpper(),
                endSourceCard.ToUpper(),
                this.txtConditionMo.Text.Trim().ToUpper(),
                this.txtConditionItem.Text.Trim().ToUpper(),
                this.txtCartonMemoQuery.Text.Trim().ToUpper(),
                (e as WebQueryEventArgsNew).StartRow,
                (e as WebQueryEventArgsNew).EndRow);

            (e as WebQueryEventArgsNew).RowCount = this._facade.QueryPackingInfoDetailCount(
                this.txtCartonNoQuery.Text.Trim().ToUpper(),
                FormatHelper.TODateInt(this.dateStartDateQuery.Text),
                FormatHelper.TODateInt(this.dateEndDateQuery.Text),
                startSourceCard.ToUpper(),
                endSourceCard.ToUpper(),
                this.txtConditionMo.Text.Trim().ToUpper(),
                this.txtConditionItem.Text.Trim().ToUpper(),
                this.txtCartonMemoQuery.Text.Trim().ToUpper());
        }
        protected override object[] LoadDataSource(int inclusive, int exclusive)
        {
            int seq;

            try
            {
                seq = int.Parse(this.txtSeq.Value);
            }
            catch
            {
                seq = -1;
            }
            if (_facade == null)
            {
                _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
            }
            return(this._facade.QueryOPResult(
                       this.txtMO.Value,
                       this.txtSN.Value,
                       seq,
                       caredActions,
                       inclusive, exclusive));
        }
        protected override int GetRowCount()
        {
            int seq;

            try
            {
                seq = int.Parse(this.txtSeq.Value);
            }
            catch
            {
                seq = -1;
            }
            if (_facade == null)
            {
                _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
            }
            return(this._facade.QueryOPResultCount(
                       this.txtMO.Value,
                       this.txtSN.Value,
                       seq,
                       caredActions
                       ));
        }
Beispiel #20
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            string rcard = this.GetRequestParam("RCARD");
            int    rcardseq;

            try
            {
                rcardseq = int.Parse(this.GetRequestParam("RCARDSEQ"));
            }
            catch
            {
                rcardseq = -1;
            }
            string moCode = this.GetRequestParam("MOCODE");

            if (_facade == null)
            {
                _facade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();
            }
            object obj = this._facade.GetProductionProcess(moCode, rcard, rcardseq);

            if (obj == null)
            {
                ExceptionManager.Raise(this.GetType(), "$Error_ItemTracing_not_exist");
            }

            this.txtItem.Value = ((ProductionProcess)obj).ItemCode;
            this.txtMO.Value   = ((ProductionProcess)obj).MOCode;
            this.txtSN.Value   = ((ProductionProcess)obj).RCard;

            if (!Page.IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);
            }
        }