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

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.Code = SysConvert.ToInt32(txtCode.Text.Trim());
            entity.Name = SysConvert.ToString(txtName.Text.Trim());
            //entity.Name = txtName.Text.Trim();
            //if (txtOPName.Text.Trim() == "")
            //{
            //    entity.OPName = FParamConfig.LoginName;
            //}
            //else
            //{
            //    entity.OPName = txtOPName.Text.Trim();
            //}
            //entity.Rate = SysConvert.ToDecimal(txtRate.Text.Trim());
            //entity.Symbol = txtSymbol.Text.Trim();
            entity.Remark = txtRemark.Text.Trim();
            //if (txtRDate.DateTime.ToString() != "")
            //{
            //    entity.RDate = SysConvert.ToDateTime(txtRDate.DateTime.Date.ToString("yyyy-MM-dd"));
            //}
            //else
            //{
            //    entity.RDate = SysConvert.ToDateTime(DateTime.Now.Date.ToString("yyyy-mm-dd"));
            //}
            //entity.BaseName = SysConvert.ToString(drpBaseName.EditValue);
            return(entity);
        }
Beispiel #2
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            SaleGroup entity = new SaleGroup();

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

            txtCode.Text = entity.Code.ToString();
            txtName.Text = SysConvert.ToString(entity.Name);
            //drpName.EditValue = SysConvert.ToString(entity.Name );
            //txtName.Text = SysConvert.ToString(entity.Name);
            //txtRate.Text = SysConvert.ToString(entity.Rate);
            txtRemark.Text = SysConvert.ToString(entity.Remark);
            //drpBaseName.EditValue = SysConvert.ToString(entity.b);
            //txtSymbol.Text = SysConvert.ToString(entity.Symbol);
            //txtOPName.Text = SysConvert.ToString(entity.OPName);
            //txtRDate.DateTime = SysConvert.ToDateTime(entity.r);
        }