Пример #1
0
        private void DealDisCommit(DataSet1.T_OCRX_CNTRow row)
        {
            row.CTOSERRORMSG  = string.Empty;
            row.CTOSERRORCODE = string.Empty;



            row.RCONTAINER_NO    = row.IsRCONTAINER_NONull() ? string.Empty : row.RCONTAINER_NO;
            row.RCONTAINER_SHAPE = row.IsRCONTAINER_SHAPENull() ? string.Empty : row.RCONTAINER_SHAPE;
            //改写识别记录处理结果为已成功处理
            row.CSTATUS      = Convert.ToDecimal(Config.CStatus.Success);
            row.OPERATORNAME = Config.UserId;
            row.ISARCHIVED   = "Y";
            OCRX.DAL.cctdbDAL.UpdateCntStatus(row);
        }
Пример #2
0
        private void SaveRowInfo(DataSet1.T_OCRX_CNTRow row)
        {
            row.RCONTAINER_NO    = row.IsRCONTAINER_NONull() ? string.Empty : row.RCONTAINER_NO;
            row.RCONTAINER_SHAPE = row.IsRCONTAINER_SHAPENull() ? string.Empty : row.RCONTAINER_SHAPE;
            row.LINECODE         = row.IsLINECODENull() ? string.Empty : row.LINECODE;

            row.BINDSEQ = Convert.ToDecimal(cntCtrl.txtBndl1.Text);

            row.ISOVERTOP = cntCtrl.ckbOOG.Checked ? "Y" : "N";
            row.OVA       = cntCtrl.ckbOOG.Checked && !String.IsNullOrEmpty(cntCtrl.txtOA.Text.Trim()) ? Convert.ToDecimal(cntCtrl.txtOA.Text.Trim()) : decimal.Zero;
            row.OVF       = cntCtrl.ckbOOG.Checked && !String.IsNullOrEmpty(cntCtrl.txtOF.Text.Trim()) ? Convert.ToDecimal(cntCtrl.txtOF.Text.Trim()) : decimal.Zero;
            row.OVH       = cntCtrl.ckbOOG.Checked && !String.IsNullOrEmpty(cntCtrl.txtOH.Text.Trim()) ? Convert.ToDecimal(cntCtrl.txtOH.Text.Trim()) : decimal.Zero;
            row.OVR       = cntCtrl.ckbOOG.Checked && !String.IsNullOrEmpty(cntCtrl.txtOR.Text.Trim()) ? Convert.ToDecimal(cntCtrl.txtOR.Text.Trim()) : decimal.Zero;
            row.OVL       = cntCtrl.ckbOOG.Checked && !String.IsNullOrEmpty(cntCtrl.txtOL.Text.Trim()) ? Convert.ToDecimal(cntCtrl.txtOL.Text.Trim()) : decimal.Zero;

            row.DMGMODIFIED = (cntCtrl.ckbIsDmg.Checked ? "Y" : "N") == row.ISDAMAGE ? "N" : "Y";
            row.ISDAMAGE    = cntCtrl.ckbIsDmg.Checked ? "Y" : "N";
            row.Dmg         = cntCtrl.ckbIsDmg.Checked ? cntCtrl.txtDmg.Text.Trim() : string.Empty;

            row.ISIMDG = cntCtrl.ckbDanger.Checked ? "Y" : "N";
            row.Imdg1  = cntCtrl.ckbDanger.Checked ? cntCtrl.txtImdg1.Text.Trim() : string.Empty;
            row.Imdg2  = cntCtrl.ckbDanger.Checked ? cntCtrl.txtImdg2.Text.Trim() : string.Empty;
            row.Imdg3  = cntCtrl.ckbDanger.Checked ? cntCtrl.txtImdg3.Text.Trim() : string.Empty;

            row.ISOVERDIS = "N";

            if (iso != null)
            {
                row.CONTAINER_SIZE   = iso.CONTAINERSIZE;
                row.CONTAINER_HEIGHT = iso.CONTAINERHEIGHT;
                row.CONTAINERTYPE    = iso.CONTAINERTYPE;
            }
            else
            {
                row.CONTAINER_HEIGHT = 0;
                row.CONTAINERTYPE    = string.Empty;
            }
        }