Example #1
0
        private OCRX.Model.CntCtrl InitCntCtrl()
        {
            OCRX.Model.CntCtrl cntCtrl = new OCRX.Model.CntCtrl();
            cntCtrl.numBndl            = this.numBndl;
            cntCtrl.numBndl.Value      = 1;
            cntCtrl.numMoves           = this.numMoves;
            cntCtrl.numMoves.Value     = 1;
            cntCtrl.txtFle             = this.txtFle;
            cntCtrl.txtFle.Text        = string.Empty;
            cntCtrl.rbnDis             = this.rbnDis;
            cntCtrl.rbnLoad            = this.rbnLoad;
            cntCtrl.ckbIsDmg           = this.ckbIsDmg;
            cntCtrl.ckbIsDmg.Checked   = false;
            cntCtrl.txtBndl1           = this.txtBndl1;
            cntCtrl.txtBndl1.Text      = "0";
            cntCtrl.txtContNo          = this.txtContNo;
            cntCtrl.txtDmg             = this.txtDmg;
            cntCtrl.txtDmg.Text        = string.Empty;
            cntCtrl.txtImdg1           = this.txtImdg1;
            cntCtrl.txtImdg1.Text      = string.Empty;
            cntCtrl.txtImdg2           = this.txtImdg2;
            cntCtrl.txtImdg2.Text      = string.Empty;
            cntCtrl.txtImdg3           = this.txtImdg3;
            cntCtrl.txtImdg3.Text      = string.Empty;
            cntCtrl.txtISO             = this.txtISO;
            cntCtrl.txtISO.Text        = string.Empty;
            cntCtrl.txtMove1           = this.txtMove1;
            cntCtrl.txtMove1.Text      = "1";
            cntCtrl.txtOA              = this.txtOA;
            cntCtrl.txtOA.Text         = string.Empty;
            cntCtrl.txtOF              = this.txtOF;
            cntCtrl.txtOF.Text         = string.Empty;
            cntCtrl.txtOH              = this.txtOH;
            cntCtrl.txtOH.Text         = string.Empty;
            cntCtrl.txtOL              = this.txtOL;
            cntCtrl.txtOL.Text         = string.Empty;
            cntCtrl.txtOR              = this.txtOR;
            cntCtrl.txtOR.Text         = string.Empty;
            cntCtrl.ckbDanger          = this.ckbDanger;
            cntCtrl.ckbDanger.Checked  = false;
            cntCtrl.ckbOOG             = this.ckbOOG;
            cntCtrl.ckbOOG.Checked     = false;
            cntCtrl.ckbOverDis         = this.ckbOverDis;
            cntCtrl.ckbOverDis.Checked = false;
            cntCtrl.lblLoadPos         = this.lblLoadPos;
            cntCtrl.lblLoadPos.Text    = string.Empty;

            cntCtrl.lblBerth          = this.lblBerth;
            cntCtrl.lblBerth.Text     = string.Empty;
            cntCtrl.lblShipAgent      = this.lblShipAgent;
            cntCtrl.lblShipAgent.Text = string.Empty;
            cntCtrl.lblService        = this.lblService;
            cntCtrl.lblService.Text   = string.Empty;
            cntCtrl.lblLinecode       = this.lblLinecode;
            cntCtrl.lblLinecode.Text  = string.Empty;
            cntCtrl.lblVessel         = this.lblVessel;
            cntCtrl.lblVessel.Text    = string.Empty;
            cntCtrl.lblVoyage         = this.lblVoyage;
            cntCtrl.lblVoyage.Text    = string.Empty;

            this.lblQC.Text = string.Empty;

            //cntCtrl.rbnDis.Checked = true;
            cntCtrl.rbnDis.Enabled  = true;
            cntCtrl.rbnLoad.Enabled = true;

            cntCtrl.btnNext = this.btnNext;

            cntCtrl.lblPicNum = this.lblPicNum;
            lblPicNum.Text    = string.Empty;

            txtISOEntered    = false;
            txtContNoEntered = false;

            return(cntCtrl);
        }
Example #2
0
 public MainBLL(OCRX.Model.CntCtrl cntCtrl)
 {
     this.cntCtrl = cntCtrl;
 }