Beispiel #1
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            ProductionNotice entity = new ProductionNotice();

            entity.ID = HTDataID;
            bool findFlag = entity.SelectByID();

            txtFormNo.Text                = entity.FormNo.ToString();
            txtMakeOPName.Text            = entity.MakeOPName.ToString();
            txtMakeDate.DateTime          = entity.MakeDate;
            txtFormDate.DateTime          = entity.FormDate;
            txtOutDate.DateTime           = entity.OutDate;
            drpSaleOPID.EditValue         = entity.SaleOPID.ToString();
            drpTrackOPID.EditValue        = entity.TrackOPID.ToString();
            drpProductionLeader.EditValue = entity.ProductionLeader.ToString();
            txtRemark.Text                = entity.Remark.ToString();


            drpTrackOPID2.EditValue = entity.TrackOPID2.ToString();
            drpTrackOPID3.EditValue = entity.TrackOPID3.ToString();
            drpSOTypeID.EditValue   = entity.SOTypeID;

            txtAddress.Text       = entity.Address.ToString();
            txtQtyReq.Text        = entity.QtyReq.ToString();
            txtCheckStandard.Text = entity.CheckStandard.ToString();
            txtCheckReq.Text      = entity.CheckReq.ToString();

            chkLightSource.Text = entity.LightSource;

            txtCPItemCode.Text = entity.CPItemCode.ToString();
            txtCPDensity.Text  = entity.CPDensity.ToString();
            txtCPMWidth.Text   = entity.CPMWidth.ToString();
            txtCPMWeight.Text  = entity.CPMWeight.ToString();

            txtPBItemCode.Text = entity.PBItemCode.ToString();
            txtPBDensity.Text  = entity.PBDensity.ToString();
            txtPBMWidth.Text   = entity.PBMWidth.ToString();
            txtPBMWeight.Text  = entity.PBMWeight.ToString();

            drpFactoryID.Text  = entity.FactoryID.ToString();
            drpFactoryID2.Text = entity.FactoryID2.ToString();

            txtXGDate.DateTime = entity.XGDate;
            txtXGReason.Text   = entity.XGReason.ToString();

            HTDataSubmitFlag = entity.SubmitFlag;
            HTDataDelFlag    = entity.DelFlag;
            if (!findFlag)
            {
            }

            BindGridDts();


            SetPDInfo();
        }
Beispiel #2
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private ProductionNotice EntityGet()
        {
            ProductionNotice entity = new ProductionNotice();

            entity.ID = HTDataID;
            entity.SelectByID();

            entity.FormNo           = txtFormNo.Text.Trim();
            entity.MakeOPName       = txtMakeOPName.Text.Trim();
            entity.MakeDate         = txtMakeDate.DateTime.Date;
            entity.FormDate         = txtFormDate.DateTime.Date;
            entity.OutDate          = txtOutDate.DateTime.Date;
            entity.SaleOPID         = SysConvert.ToString(drpSaleOPID.EditValue);
            entity.TrackOPID        = SysConvert.ToString(drpTrackOPID.EditValue);
            entity.ProductionLeader = SysConvert.ToString(drpProductionLeader.EditValue);
            entity.Remark           = txtRemark.Text.Trim();


            entity.SOTypeID   = SysConvert.ToInt32(drpSOTypeID.EditValue);
            entity.TrackOPID2 = SysConvert.ToString(drpTrackOPID2.EditValue);
            entity.TrackOPID3 = SysConvert.ToString(drpTrackOPID3.EditValue);



            entity.QtyReq        = txtQtyReq.Text.Trim();
            entity.CheckReq      = txtCheckReq.Text.Trim();
            entity.CheckStandard = txtCheckStandard.Text.Trim();
            entity.Address       = txtAddress.Text.Trim();

            entity.FormNoIndex = SysConvert.ToInt32(Common.GetSubStringRight(entity.FormNo, 2));//记录单号流水号

            entity.LightSource = SysConvert.ToString(chkLightSource.Text);


            entity.CPItemCode = txtCPItemCode.Text.Trim();
            entity.CPDensity  = txtCPDensity.Text.Trim();
            entity.CPMWidth   = txtCPMWidth.Text.Trim();
            entity.CPMWeight  = txtCPMWeight.Text.Trim();

            entity.PBItemCode = txtPBItemCode.Text.Trim();
            entity.PBDensity  = txtPBDensity.Text.Trim();
            entity.PBMWidth   = txtPBMWidth.Text.Trim();
            entity.PBMWeight  = txtPBMWeight.Text.Trim();


            entity.FactoryID  = drpFactoryID.Text.Trim();
            entity.FactoryID2 = drpFactoryID2.Text.Trim();

            entity.XGDate   = txtXGDate.DateTime.Date;
            entity.XGReason = txtXGReason.Text.Trim();

            return(entity);
        }
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            ProductionNotice entity = new ProductionNotice();

            entity.ID = HTDataID;
            bool findFlag = entity.SelectByID();

            txtFormNo.Text                = entity.FormNo.ToString();
            txtMakeOPName.Text            = entity.MakeOPName.ToString();
            txtMakeDate.DateTime          = entity.MakeDate;
            txtFormDate.DateTime          = entity.FormDate;
            txtOutDate.DateTime           = entity.OutDate;
            drpSaleOPID.EditValue         = entity.SaleOPID.ToString();
            drpTrackOPID.EditValue        = entity.TrackOPID.ToString();
            drpProductionLeader.EditValue = entity.ProductionLeader.ToString();
            txtRemark.Text                = entity.Remark.ToString();
            txtZZRemark.Text              = entity.ZZRemark.ToString();
            txtRSReamrk.Text              = entity.RSReamrk.ToString();
            txtHZLRemark.Text             = entity.HZLRemark.ToString();
            txtBZRemark.Text              = entity.BZRemark.ToString();

            drpTrackOPID2.EditValue = entity.TrackOPID2.ToString();
            drpTrackOPID3.EditValue = entity.TrackOPID3.ToString();
            drpSOTypeID.EditValue   = entity.SOTypeID;


            drpFactoryID.EditValue  = entity.FactoryID;
            drpFactoryID2.EditValue = entity.FactoryID2;
            drpFactoryID3.EditValue = entity.FactoryID3;
            drpFactoryID4.EditValue = entity.FactoryID4;
            drpFactoryID5.EditValue = entity.FactoryID5;

            txtHZLRemark2.Text = entity.HZLRemark2.ToString();
            txtHZLRemark3.Text = entity.HZLRemark3.ToString();


            HTDataSubmitFlag = entity.SubmitFlag;
            HTDataDelFlag    = entity.DelFlag;
            if (!findFlag)
            {
            }

            BindGridDts();

            BindZZDts();
        }
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private ProductionNotice EntityGet()
        {
            ProductionNotice entity = new ProductionNotice();

            entity.ID = HTDataID;
            entity.SelectByID();

            entity.FormNo           = txtFormNo.Text.Trim();
            entity.MakeOPName       = txtMakeOPName.Text.Trim();
            entity.MakeDate         = txtMakeDate.DateTime.Date;
            entity.FormDate         = txtFormDate.DateTime.Date;
            entity.OutDate          = txtOutDate.DateTime.Date;
            entity.SaleOPID         = SysConvert.ToString(drpSaleOPID.EditValue);
            entity.TrackOPID        = SysConvert.ToString(drpTrackOPID.EditValue);
            entity.ProductionLeader = SysConvert.ToString(drpProductionLeader.EditValue);
            entity.Remark           = txtRemark.Text.Trim();
            entity.ZZRemark         = txtZZRemark.Text.Trim();
            entity.RSReamrk         = txtRSReamrk.Text.Trim();
            entity.HZLRemark        = txtHZLRemark.Text.Trim();
            entity.BZRemark         = txtBZRemark.Text.Trim();

            entity.SOTypeID   = SysConvert.ToInt32(drpSOTypeID.EditValue);
            entity.TrackOPID2 = SysConvert.ToString(drpTrackOPID2.EditValue);
            entity.TrackOPID3 = SysConvert.ToString(drpTrackOPID3.EditValue);

            entity.FormNoIndex = SysConvert.ToInt32(Common.GetSubStringRight(entity.FormNo, 2));//记录单号流水号

            entity.FactoryID  = SysConvert.ToString(drpFactoryID.EditValue);
            entity.FactoryID2 = SysConvert.ToString(drpFactoryID2.EditValue);
            entity.FactoryID3 = SysConvert.ToString(drpFactoryID3.EditValue);
            entity.FactoryID4 = SysConvert.ToString(drpFactoryID4.EditValue);
            entity.FactoryID5 = SysConvert.ToString(drpFactoryID5.EditValue);

            //entity.HZGDOPID = SysConvert.ToString(drpHZGD.EditValue);
            entity.HZLRemark2 = txtHZLRemark2.Text.Trim();
            entity.HZLRemark3 = txtHZLRemark3.Text.Trim();

            return(entity);
        }