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

                QueryFacade2 _qFacade = new FacadeFactory(base.DataProvider).CreateQueryFacade2();

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

                object obj = _qFacade.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();
            }
        }