Example #1
0
 public void Delete(Model.PCDataInput pCDataInput)
 {
     foreach (var item in pCDataInput.PCOpticalMachineList)
     {
         this.PCOpticalMachineManager.Delete(item.PCOpticalMachineId);
     }
     foreach (var item in pCDataInput.PCLaserMachineList)
     {
         this.PCLaserMachineManager.Delete(item.PCLaserMachineId);
     }
     foreach (var item in pCDataInput.PCDefinitionList)
     {
         this.PCDefinitionManager.Delete(item.PCDefinitionId);
     }
     foreach (var item in pCDataInput.PCPerspectiveList)
     {
         this.PCPerspectiveManager.Delete(item.PCPerspectiveId);
     }
     foreach (var item in pCDataInput.PCHazeList)
     {
         this.PCHazeManager.Delete(item.PCHazeId);
     }
     foreach (var item in pCDataInput.PCEuropeOpticalList)
     {
         this.PCEuropeOpticalManager.Delete(item.PCEuropeOpticalId);
     }
 }
Example #2
0
 public DataInputForm(string PCDataInputId)
     : this()
 {
     this._PCDataInput = this.pcDataInputManager.GetDetails(PCDataInputId);
     this.action       = "view";
     this.LastFlag     = 1;
 }
Example #3
0
 private void ValiData(Model.PCDataInput model)
 {
     if (string.IsNullOrEmpty(model.CheckStandard))
     {
         throw new Helper.InvalidValueException(Model.PCDataInput.PRO_CheckStandard);
     }
 }
Example #4
0
 protected override void AddNew()
 {
     this._PCDataInput = new Book.Model.PCDataInput();
     this._PCDataInput.PCDataInputId   = Guid.NewGuid().ToString();
     this._PCDataInput.PCDataInputDate = DateTime.Now;
     this.action = "insert";
 }
Example #5
0
        public PCHazeRO(IList <Model.PCHaze> pcHazeList, Model.PCDataInput pcDataInput)
            : this()
        {
            this.TCDate.Text         = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
            this.TCTestQuantity.Text = pcHazeList.Count.ToString();
            this.TCEmployee.Text     = pcDataInput.Employee3 == null ? "" : pcDataInput.Employee3.ToString();

            foreach (var item in pcHazeList)
            {
                item.HelpNoid = "Sample." + item.NoId;
                if (item.LeftHaze < 2 && item.RightHaze < 2)
                {
                    item.Judge = "PASS";
                }
                else
                {
                    item.Judge = "FAIL";
                }
            }
            this.DataSource = pcHazeList;

            this.TCSample.DataBindings.Add("Text", this.DataSource, "HelpNoid");
            this.TCLHaze.DataBindings.Add("Text", this.DataSource, Model.PCHaze.PRO_LeftHaze);
            this.TCRHaze.DataBindings.Add("Text", this.DataSource, Model.PCHaze.PRO_RightHaze);
            this.TCJudge.DataBindings.Add("Text", this.DataSource, Model.PCHaze.PRO_Judge);
        }
Example #6
0
 protected override void MoveLast()
 {
     if (LastFlag == 1)
     {
         LastFlag = 0; return;
     }
     this._PCDataInput = this.pcDataInputManager.GetLast();
 }
        public DataInputANSI2015ENASRO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI pcExportReportANSI, Model.PCExportReportANSI pcEN, Model.PCExportReportANSI pcAS, int tag, int ENType)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }

            this.TCTSData.Text     = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
            this.TCTSQuantity.Text = pcDataInput.PCPerspectiveList.Count.ToString();
            this.TCTSEmployee.Text = pcDataInput.Employee3 == null ? "" : pcDataInput.Employee3.ToString();

            string customer = string.Empty;

            if (pcExportReportANSI != null)
            {
                this.xrSubreportANSI.ReportSource = new ANSI2015RO(pcExportReportANSI, tag);
                customer = pcExportReportANSI.Customer.CustomerName;
            }
            if (pcEN != null)
            {
                if (ENType != 1)
                {
                    this.xrSubreportEN.ReportSource = new CEENRO(pcEN, tag);
                }
                else
                {
                    this.xrSubreportEN.ReportSource = new CEENRO_WURTH(pcEN, tag);
                }
                customer = pcEN.Customer.CustomerName;
            }
            if (pcAS != null)
            {
                this.xrSubreportAS.ReportSource = new ASRO2017(pcAS, tag);
                customer = pcAS.Customer.CustomerName;
            }
            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);
            //this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput);

            if (pcDataInput.PCOpticalMachineList != null && pcDataInput.PCOpticalMachineList.Count != 0)
            {
                this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
            }

            if (pcDataInput.PCHazeList != null && pcDataInput.PCHazeList.Count != 0)
            {
                this.xrSubreportPCHaze.ReportSource = new PCHazeRO(pcDataInput.PCHazeList, pcDataInput);
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Example #8
0
        /// <summary>
        /// 透視率
        /// </summary>
        /// <param name="pcDataInput"></param>
        public PCPerspective(Model.PCDataInput pcDataInput)
        {
            InitializeComponent();


            this.TCTSData.Text     = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
            this.TCTSQuantity.Text = pcDataInput.PCPerspectiveList.Count.ToString();
            this.TCTSEmployee.Text = pcDataInput.Employee3 == null ? "" : pcDataInput.Employee3.ToString();
        }
Example #9
0
 protected override void MovePrev()
 {
     Model.PCDataInput pcDataInput = this.pcDataInputManager.GetPrev(this._PCDataInput);
     if (pcDataInput == null)
     {
         throw new InvalidOperationException(Properties.Resources.ErrorNoMoreRows);
     }
     this._PCDataInput = this.pcDataInputManager.Get(pcDataInput.PCDataInputId);
 }
Example #10
0
 public DataInputForm_CSAJihe(Model.PCDataInput PCDataInput)
     : this()
 {
     if (PCDataInput != null)
     {
         this._PCDataInput = this.pcDataInputManager.GetDetails(PCDataInput.PCDataInputId);
     }
     this.action = "view";
     LastFlag    = 1;
 }
Example #11
0
 public DataInputForm(Model.PCDataInput PCDataInput, string action)
     : this()
 {
     if (PCDataInput != null)
     {
         this._PCDataInput = this.pcDataInputManager.GetDetails(PCDataInput.PCDataInputId);
     }
     this.action = action;
     LastFlag    = 1;
 }
Example #12
0
 /// <summary>
 /// Update a PCDataInput.
 /// </summary>
 public void Update(Model.PCDataInput pCDataInput)
 {
     //
     // todo: add other logic here.
     //
     try
     {
         BL.V.BeginTransaction();
         pCDataInput.UpdateTime = DateTime.Now;
         accessor.Update(pCDataInput);
         Model.PCDataInput model = this.GetDetails(pCDataInput.PCDataInputId);
         if (model != null)
         {
             this.Delete(model);
         }
         //插入详细
         foreach (var item in pCDataInput.PCOpticalMachineList)
         {
             item.PCDataInputId = pCDataInput.PCDataInputId;
             this.PCOpticalMachineManager.Insert(item);
         }
         foreach (var item in pCDataInput.PCLaserMachineList)
         {
             item.PCDataInputId = pCDataInput.PCDataInputId;
             this.PCLaserMachineManager.Insert(item);
         }
         foreach (var item in pCDataInput.PCDefinitionList)
         {
             item.PCDataInputId = pCDataInput.PCDataInputId;
             this.PCDefinitionManager.Insert(item);
         }
         foreach (var item in pCDataInput.PCPerspectiveList)
         {
             item.PCDataInputId = pCDataInput.PCDataInputId;
             this.PCPerspectiveManager.Insert(item);
         }
         foreach (var item in pCDataInput.PCHazeList)
         {
             item.PCDataInputId = pCDataInput.PCDataInputId;
             this.PCHazeManager.Insert(item);
         }
         foreach (var item in pCDataInput.PCEuropeOpticalList)
         {
             item.PCDataInputId = pCDataInput.PCDataInputId;
             this.PCEuropeOpticalManager.Insert(item);
         }
         BL.V.CommitTransaction();
     }
     catch
     {
         BL.V.RollbackTransaction();
         throw;
     }
 }
Example #13
0
        public DataInputENRO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI EN, int tag, int ENType, bool isJihe)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }

            if (!isJihe)
            {
                this.xrSubreportPCPerspective.ReportSource = new PCPerspective(pcDataInput);
            }

            string customer = string.Empty;

            if (EN != null)
            {
                if (ENType != 1)
                {
                    this.xrSubreportEN.ReportSource = new CEENRO(EN, tag);
                }
                else
                {
                    this.xrSubreportEN.ReportSource = new CEENRO_WURTH(EN, tag);
                }

                customer = EN.Customer.CustomerName;
            }
            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);

            //if (pcDataInput.PCOpticalMachineList != null && pcDataInput.PCOpticalMachineList.Count != 0)
            //    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
            if (pcDataInput.PCOpticalMachineList != null)
            {
                if (pcDataInput.PCOpticalMachineList.Count <= 2)
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
                else
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO_2(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Example #14
0
 public ProductTestRO(Model.PCDataInput pcDataInput, string customer)
     : this()
 {
     this.TCCheckStandard.Text = pcDataInput.CheckStandard;
     //this.TCCustomerShortName.Text = pcDataInput.CustomerShortName;
     this.TCCustomerShortName.Text = customer;
     this.TCProduct.Text           = pcDataInput.Product == null ? "" : pcDataInput.Product.ProduceCounty;
     this.TCInvoiceCusId.Text      = pcDataInput.InvoiceCusId;
     this.TCTotalQuantity.Text     = pcDataInput.OrderQuantity.HasValue ? pcDataInput.OrderQuantity.Value.ToString("f0") : "";
     //this.TCTotalQuantity.Text = pcDataInput.PronoteHeader.DetailsSum.HasValue ? pcDataInput.PronoteHeader.DetailsSum.ToString() : "";
     this.TCTestQuantity.Text = pcDataInput.TestQuantity.HasValue ? pcDataInput.TestQuantity.ToString() : "";
     this.TCDate.Text         = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
 }
Example #15
0
        /// <summary>
        /// Insert a PCDataInput.
        /// </summary>
        public void Insert(Model.PCDataInput pCDataInput)
        {
            //
            // todo:add other logic here
            //
            try
            {
                BL.V.BeginTransaction();
                pCDataInput.InsertTime = DateTime.Now;
                pCDataInput.UpdateTime = DateTime.Now;
                accessor.Insert(pCDataInput);

                //插入详细
                foreach (var item in pCDataInput.PCOpticalMachineList)
                {
                    item.PCDataInputId = pCDataInput.PCDataInputId;
                    this.PCOpticalMachineManager.Insert(item);
                }
                foreach (var item in pCDataInput.PCLaserMachineList)
                {
                    item.PCDataInputId = pCDataInput.PCDataInputId;
                    this.PCLaserMachineManager.Insert(item);
                }
                foreach (var item in pCDataInput.PCDefinitionList)
                {
                    item.PCDataInputId = pCDataInput.PCDataInputId;
                    this.PCDefinitionManager.Insert(item);
                }
                foreach (var item in pCDataInput.PCPerspectiveList)
                {
                    item.PCDataInputId = pCDataInput.PCDataInputId;
                    this.PCPerspectiveManager.Insert(item);
                }
                foreach (var item in pCDataInput.PCHazeList)
                {
                    item.PCDataInputId = pCDataInput.PCDataInputId;
                    this.PCHazeManager.Insert(item);
                }
                foreach (var item in pCDataInput.PCEuropeOpticalList)
                {
                    item.PCDataInputId = pCDataInput.PCDataInputId;
                    this.PCEuropeOpticalManager.Insert(item);
                }
                BL.V.CommitTransaction();
            }
            catch
            {
                BL.V.RollbackTransaction();
                throw;
            }
        }
Example #16
0
        public DataInputAS2017RO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI AS, int tag, bool isJihe)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }

            if (!isJihe)
            {
                this.xrSubreportPCPerspective.ReportSource = new PCPerspective(pcDataInput);
            }

            string customer = string.Empty;

            if (AS != null)
            {
                this.xrSubreportAS.ReportSource = new ASRO2017(AS, tag);
                customer = AS.Customer.CustomerName;
            }
            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);

            //if (pcDataInput.PCOpticalMachineList != null && pcDataInput.PCOpticalMachineList.Count != 0)
            //    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
            if (pcDataInput.PCOpticalMachineList != null)
            {
                if (pcDataInput.PCOpticalMachineList.Count <= 2)
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
                else
                {
                    this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO_2(pcDataInput.PCOpticalMachineList, pcDataInput);
                }
            }

            if (pcDataInput.PCHazeList != null && pcDataInput.PCHazeList.Count != 0)
            {
                this.xrSubreportPCHaze.ReportSource = new PCHazeRO(pcDataInput.PCHazeList, pcDataInput);
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Example #17
0
 public Model.PCDataInput GetDetails(string id)
 {
     Model.PCDataInput model = this.Get(id);
     if (model != null)
     {
         model.PCOpticalMachineList = this.PCOpticalMachineManager.SelectByHeaderId(id);
         model.PCLaserMachineList   = this.PCLaserMachineManager.SelectByHeaderId(id);
         model.PCDefinitionList     = this.PCDefinitionManager.SelectByHeaderId(id);
         model.PCPerspectiveList    = this.PCPerspectiveManager.SelectByHeaderId(id);
         model.PCHazeList           = this.PCHazeManager.SelectByHeaderId(id);
         model.PCEuropeOpticalList  = this.PCEuropeOpticalManager.SelectByHeaderId(id);
     }
     return(model);
 }
Example #18
0
 protected override void Delete()
 {
     if (this._PCDataInput == null)
     {
         return;
     }
     if (MessageBox.Show(Properties.Resources.ConfirmToDelete, this.Text, MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.pcDataInputManager.Delete(this._PCDataInput.PCDataInputId);
     this._PCDataInput = this.pcDataInputManager.GetNext(this._PCDataInput);
     if (this._PCDataInput == null)
     {
         this._PCDataInput = this.pcDataInputManager.GetLast();
     }
 }
Example #19
0
        public DataInputCSA2015RO(Model.PCDataInput pcDataInput, Model.PCExportReportANSI ANSI, Model.PCExportReportANSI CSA, int tag)
            : this()
        {
            if (pcDataInput == null)
            {
                return;
            }

            this.TCTSData.Text     = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
            this.TCTSQuantity.Text = pcDataInput.PCPerspectiveList.Count.ToString();
            this.TCTSEmployee.Text = pcDataInput.Employee3 == null ? "" : pcDataInput.Employee3.ToString();

            string customer = string.Empty;

            if (ANSI != null)
            {
                this.xrSubreportANSI.ReportSource = new ANSI2015RO(ANSI, tag);
                customer = ANSI.Customer.CustomerName;
            }
            if (CSA != null)
            {
                this.xrSubreportCSA.ReportSource = new CSARO(CSA, tag);
                customer = CSA.Customer.CustomerName;
            }
            if (string.IsNullOrEmpty(customer))
            {
                customer = pcDataInput.CustomerShortName;
            }
            this.xrSubreportProductTest.ReportSource = new ProductTestRO(pcDataInput, customer);

            if (pcDataInput.PCOpticalMachineList != null && pcDataInput.PCOpticalMachineList.Count != 0)
            {
                this.xrSubreportPCOpticalMachine.ReportSource = new PCOpticalMachineRO(pcDataInput.PCOpticalMachineList, pcDataInput);
            }

            if (pcDataInput.PCHazeList != null && pcDataInput.PCHazeList.Count != 0)
            {
                this.xrSubreportPCHaze.ReportSource = new PCHazeRO(pcDataInput.PCHazeList, pcDataInput);
            }

            if (pcDataInput.PCDefinitionList != null && pcDataInput.PCDefinitionList.Count != 0)
            {
                this.subReport_PCDefinition.ReportSource = new PCDefinitionRO(pcDataInput.PCDefinitionList);
            }
        }
Example #20
0
 /// <summary>
 /// Delete PCDataInput by primary key.
 /// </summary>
 public void Delete(string pCDataInputId)
 {
     //
     // todo:add other logic here
     //
     try
     {
         BL.V.BeginTransaction();
         Model.PCDataInput model = this.GetDetails(pCDataInputId);
         if (model != null)
         {
             this.Delete(model);
         }
         accessor.Delete(pCDataInputId);
         BL.V.CommitTransaction();
     }
     catch
     {
         BL.V.RollbackTransaction();
         throw;
     }
 }
Example #21
0
 public Model.PCDataInput GetPrev(Model.PCDataInput e)
 {
     return(accessor.GetPrev(e));
 }
Example #22
0
 public Model.PCDataInput GetPrev(Model.PCDataInput e)
 {
     return(sqlmapper.QueryForObject <Model.PCDataInput>("PCDataInput.get_prev", e));
 }
Example #23
0
 public Model.PCDataInput GetNext(Model.PCDataInput e)
 {
     return(sqlmapper.QueryForObject <Model.PCDataInput>("PCDataInput.get_next", e));
 }
Example #24
0
 public bool HasRowsAfter(Model.PCDataInput e)
 {
     return(sqlmapper.QueryForObject <bool>("PCDataInput.has_rows_after", e));
 }
Example #25
0
 public bool HasRowsBefore(Model.PCDataInput e)
 {
     return(sqlmapper.QueryForObject <bool>("PCDataInput.has_rows_before", e));
 }
Example #26
0
 public void Update(Model.PCDataInput e)
 {
     this.Update <Model.PCDataInput>(e);
 }
Example #27
0
 public void Insert(Model.PCDataInput e)
 {
     this.Insert <Model.PCDataInput>(e);
 }
Example #28
0
        public PCOpticalMachineRO(IList <Model.PCOpticalMachine> PCOpticalMachineList, Model.PCDataInput pcDataInput)
            : this()
        {
            this.TCDate.Text         = pcDataInput.PCDataInputDate.HasValue ? pcDataInput.PCDataInputDate.Value.ToString("yyyy-MM-dd") : "";
            this.TCTestQuantity.Text = PCOpticalMachineList.Count.ToString();
            this.TCEmployee.Text     = pcDataInput.Employee == null ? "" : pcDataInput.Employee.ToString();

            if (PCOpticalMachineList != null && PCOpticalMachineList.Count > 0 && PCOpticalMachineList[0] != null)
            {
                this.TCLA.Text             = PCOpticalMachineList[0].LeftA.HasValue ? PCOpticalMachineList[0].LeftA.Value.ToString() : "";
                this.TCLC.Text             = PCOpticalMachineList[0].LeftC.HasValue ? PCOpticalMachineList[0].LeftC.Value.ToString("0.00") : "";
                this.TCLS.Text             = PCOpticalMachineList[0].LeftS.HasValue ? PCOpticalMachineList[0].LeftS.Value.ToString("0.00") : "";
                this.TCLLevelNum.Text      = PCOpticalMachineList[0].LeftLevelNum.HasValue ? PCOpticalMachineList[0].LeftLevelNum.Value.ToString("0.00") : "";
                this.TCLLevelJudge.Text    = PCOpticalMachineList[0].LeftLevelJudge;
                this.TCLVerticalNum.Text   = PCOpticalMachineList[0].LeftVerticalNum.HasValue ? PCOpticalMachineList[0].LeftVerticalNum.Value.ToString("0.00") : "";
                this.TCLVerticalJudge.Text = PCOpticalMachineList[0].LeftVerticalJudge;

                this.TCRA.Text             = PCOpticalMachineList[0].RightA.HasValue ? PCOpticalMachineList[0].RightA.Value.ToString() : "";
                this.TCRC.Text             = PCOpticalMachineList[0].RightC.HasValue ? PCOpticalMachineList[0].RightC.Value.ToString("0.00") : "";
                this.TCRS.Text             = PCOpticalMachineList[0].RightS.HasValue ? PCOpticalMachineList[0].RightS.Value.ToString("0.00") : "";
                this.TCRLevelNum.Text      = PCOpticalMachineList[0].RightLevelNum.HasValue ? PCOpticalMachineList[0].RightLevelNum.Value.ToString("0.00") : "";
                this.TCRLevelJudge.Text    = PCOpticalMachineList[0].RightLevelJudge;
                this.TCRVerticalNum.Text   = PCOpticalMachineList[0].RightVerticalNum.HasValue ? PCOpticalMachineList[0].RightVerticalNum.Value.ToString("0.00") : "";
                this.TCRVerticalJudge.Text = PCOpticalMachineList[0].RightVerticalJudge;

                if (!string.IsNullOrEmpty(PCOpticalMachineList[0].Condition))
                {
                    this.xrLabel4.Text = PCOpticalMachineList[0].Condition;
                }
            }

            if (PCOpticalMachineList != null && PCOpticalMachineList.Count > 1 && PCOpticalMachineList[1] != null)
            {
                this.TCLA2.Text             = PCOpticalMachineList[1].LeftA.HasValue ? PCOpticalMachineList[1].LeftA.Value.ToString() : "";
                this.TCLC2.Text             = PCOpticalMachineList[1].LeftC.HasValue ? PCOpticalMachineList[1].LeftC.Value.ToString("0.00") : "";
                this.TCLS2.Text             = PCOpticalMachineList[1].LeftS.HasValue ? PCOpticalMachineList[1].LeftS.Value.ToString("0.00") : "";
                this.TCLLevelNum2.Text      = PCOpticalMachineList[1].LeftLevelNum.HasValue ? PCOpticalMachineList[1].LeftLevelNum.Value.ToString("0.00") : "";
                this.TCLLevelJudge2.Text    = PCOpticalMachineList[1].LeftLevelJudge;
                this.TCLVerticalNum2.Text   = PCOpticalMachineList[1].LeftVerticalNum.HasValue ? PCOpticalMachineList[1].LeftVerticalNum.Value.ToString("0.00") : "";
                this.TCLVerticalJudge2.Text = PCOpticalMachineList[1].LeftVerticalJudge;

                this.TCRA2.Text             = PCOpticalMachineList[1].RightA.HasValue ? PCOpticalMachineList[1].RightA.Value.ToString() : "";
                this.TCRC2.Text             = PCOpticalMachineList[1].RightC.HasValue ? PCOpticalMachineList[1].RightC.Value.ToString("0.00") : "";
                this.TCRS2.Text             = PCOpticalMachineList[1].RightS.HasValue ? PCOpticalMachineList[1].RightS.Value.ToString("0.00") : "";
                this.TCRLevelNum2.Text      = PCOpticalMachineList[1].RightLevelNum.HasValue ? PCOpticalMachineList[1].RightLevelNum.Value.ToString("0.00") : "";
                this.TCRLevelJudge2.Text    = PCOpticalMachineList[1].RightLevelJudge;
                this.TCRVerticalNum2.Text   = PCOpticalMachineList[1].RightVerticalNum.HasValue ? PCOpticalMachineList[1].RightVerticalNum.Value.ToString("0.00") : "";
                this.TCRVerticalJudge2.Text = PCOpticalMachineList[1].RightVerticalJudge;

                if (!string.IsNullOrEmpty(PCOpticalMachineList[1].Condition))
                {
                    this.xrLabel6.Text = PCOpticalMachineList[1].Condition;
                }
            }
            //this.DataSource = PCOpticalMachineList;
            //this.TCLA.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_LeftA);
            //this.TCLC.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_LeftC);
            //this.TCLS.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_LeftS);
            //this.TCLLevelNum.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_LeftLevelNum);
            //this.TCLLevelJudge.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_LeftLevelJudge);
            //this.TCLVerticalNum.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_LeftVerticalNum);
            //this.TCLVerticalJudge.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_LeftVerticalJudge);

            //this.TCRA.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_RightA);
            //this.TCRC.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_RightC);
            //this.TCRS.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_RightS);
            //this.TCRLevelNum.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_RightLevelNum);
            //this.TCRLevelJudge.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_RightLevelJudge);
            //this.TCRVerticalNum.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_RightVerticalNum);
            //this.TCRVerticalJudge.DataBindings.Add("Text", this.DataSource, Model.PCOpticalMachine.PRO_RightVerticalJudge);
        }
Example #29
0
 public Model.PCDataInput GetNext(Model.PCDataInput e)
 {
     return(accessor.GetNext(e));
 }
Example #30
0
 public bool HasRowsAfter(Model.PCDataInput e)
 {
     return(accessor.HasRowsAfter(e));
 }