Exemplo n.º 1
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            QASample entity = new QASample();

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

            HTDataFormNo = entity.FormNo;

            txtFormNo.Text       = entity.FormNo.ToString();
            txtSampleTypeID.Text = entity.SampleTypeID.ToString();
            txtMakeDate.DateTime = entity.MakeDate;
            txtFormDate.DateTime = entity.FormDate;
            txtReqDate.DateTime  = entity.ReqDate;
            txtVendorID.Text     = entity.VendorID.ToString();
            txtSaleOPID.Text     = entity.SaleOPID.ToString();
            txtMVendorID.Text    = entity.MVendorID.ToString();
            txtYVendorID.Text    = entity.YVendorID.ToString();
            txtMakeOPID.Text     = entity.MakeOPID.ToString();
            txtRemark.Text       = entity.Remark.ToString();


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

            BindGridDts();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private QASample EntityGet()
        {
            QASample entity = new QASample();

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

            entity.FormNo       = txtFormNo.Text.Trim();
            entity.SampleTypeID = txtSampleTypeID.Text.Trim();
            entity.MakeDate     = txtMakeDate.DateTime.Date;
            entity.FormDate     = txtFormDate.DateTime.Date;
            entity.ReqDate      = txtReqDate.DateTime.Date;
            entity.VendorID     = txtVendorID.Text.Trim();
            entity.SaleOPID     = txtSaleOPID.Text.Trim();
            entity.MVendorID    = txtMVendorID.Text.Trim();
            entity.YVendorID    = txtYVendorID.Text.Trim();
            entity.MakeOPID     = txtMakeOPID.Text.Trim();
            entity.Remark       = txtRemark.Text.Trim();


            return(entity);
        }