Example #1
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private WHAmountCE EntityGet()
        {
            WHAmountCE entity = new WHAmountCE();

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.VendorID   = SysConvert.ToString(drpVendorID.EditValue);
            entity.BQty       = SysConvert.ToDecimal(txtBQty.Text.Trim());
            entity.BAmount    = SysConvert.ToDecimal(txtBAmount.Text.Trim());
            entity.Remark     = txtRemark.Text.Trim();
            entity.UpdateOP   = FParamConfig.LoginName;
            entity.UpdateDate = DateTime.Now;

            return(entity);
        }
Example #2
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            WHAmountCE entity = new WHAmountCE();

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

            drpVendorID.EditValue = entity.VendorID;
            txtBQty.Text          = entity.BQty.ToString();
            txtBAmount.Text       = entity.BAmount.ToString();
            txtRemark.Text        = entity.Remark.ToString();

            if (!findFlag)
            {
            }
        }